2003-01-06 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-06 Andrew Cagney <cagney@redhat.com>
2
3 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
4
5 2003-01-06 Andrew Cagney <cagney@redhat.com>
6
7 * MAINTAINERS (Target Instruction Set Architectures): Update
8 arm-elf. Can be built with -Werror, has been multiarched.
9
10 * value.h (unpack_long): Make buffer parameter constant.
11 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12 * scm-lang.h (scm_parse): Ditto.
13 * defs.h (extract_typed_address, extract_address): Ditto.
14 (extract_long_unsigned_integer): Ditto.
15 * inferior.h (unsigned_pointer_to_address): Ditto.
16 (signed_pointer_to_address): Ditto.
17 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
18 * gdbarch.h, gdbarch.c: Regenerate.
19 * findvar.c (extract_long_unsigned_integer): Update.
20 (extract_address): Update.
21 (extract_typed_address): Update.
22 (unsigned_pointer_to_address): Update.
23 * values.c (unpack_long): Update.
24 (unpack_double): Update.
25 (unpack_pointer): Update.
26 (unpack_field_as_long): Update.
27 * d10v-tdep.c (d10v_pointer_to_address): Update.
28 * avr-tdep.c (avr_pointer_to_address): Update.
29 * scm-lang.c (scm_unpack): Update.
30 * findvar.c (signed_pointer_to_address): Update.
31
32 2003-01-06 Michal Ludvig <mludvig@suse.cz>
33
34 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
35 since it is in i386-tdep.c.
36
37 2003-01-06 J. Brobecker <brobecker@gnat.com>
38
39 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
40 failure introduced in the previous change.
41
42 2003-01-05 Michael Chastain <mec@shout.net>
43
44 * README: Remove references to deleted remote-*.c files:
45 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
46 remote-nrom.c, remote-os9k.c, remote-udi.c.
47
48 2003-01-05 Mark Kettenis <kettenis@gnu.org>
49
50 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
51 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
52 i386_get_longjmp_target.
53
54 2003-01-05 Andrew Cagney <ac131313@redhat.com>
55
56 * arm-tdep.c (prologue_cache): Change to a pointer.
57 (_initialize_arm_tdep): Allocate prologue_cache.
58 (check_prologue_cache): Update.
59 (save_prologue_cache): Update.
60 (arm_gdbarch_init): Update.
61
62 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
63
64 * stabsread.c (update_method_name_from_physname): Call complaint()
65 instead of error.
66
67 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
68
69 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
70 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
71 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
72
73 * blockframe.c: Include "gdbcmd.h" and "command.h".
74 (backtrace_below_main): New variable.
75 (file_frame_chain_valid, func_frame_chain_valid)
76 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
77 (generic_func_frame_chain_valid): Remove functions.
78 (frame_chain_valid, do_flush_frames_sfunc): New functions.
79 (_initialize_blockframe): New function.
80 * Makefile.in (blockframe.o): Update dependencies.
81 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
82 comment. Call frame_chain_valid ().
83 * frame.h: Remove old prototypes. Add prototype for
84 frame_chain_valid and update comments to match.
85 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
86 Remove old comment.
87 * gdbarch.h: Regenerated.
88 * gdbarch.c: Regenerated.
89
90 * alpha-tdep.c (alpha_gdbarch_init): Don't call
91 set_gdbarch_frame_chain_valid.
92 * avr-tdep.c (avr_gdbarch_init): Likewise.
93 * cris-tdep.c (cris_gdbarch_init): Likewise.
94 * frv-tdep.c (frv_gdbarch_init): Likewise.
95 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
96 * i386-tdep.c (i386_svr4_init_abi): Likewise.
97 (i386_nw_init_abi): Likewise.
98 (i386_gdbarch_init): Likewise.
99 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
101 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
102 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
103 * mips-tdep.c (mips_gdbarch_init): Likewise.
104 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
105 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
106 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
107 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
108 * s390-tdep.c (s390_gdbarch_init): Likewise.
109 * sh-tdep.c (sh_gdbarch_init): Likewise.
110 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
111 * v850-tdep.c (v850_gdbarch_init): Likewise.
112 * vax-tdep.c (vax_gdbarch_init): Likewise.
113 * x86-64-tdep.c (x86_64_init_abi): Likewise.
114
115 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
116 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
117 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
118 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
119 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
120 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
121 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
122 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
123
124 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
125
126 * Makefile.in (acconfig_h): Remove incorrect macro.
127 (config_h): Define.
128 (osabi.o): Update dependencies.
129 * configure.tgt: Set gdb_osabi based on target triplet.
130 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
131 * configure: Regenerated.
132 * config.in: Regenerated.
133 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
134 (GDB_OSABI_DEFAULT): Define if not already defined.
135 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
136 (set_osabi_string): New variables.
137 (gdbarch_register_osabi): Add new OS ABI to
138 gdb_osabi_available_names.
139 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
140 (set_osabi, show_osabi): New functions.
141 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
142
143 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
144
145 * arch-utils.c (gdbarch_info_init): Set osabi to
146 GDB_OSABI_UNINITIALIZED.
147 * gdbarch.sh: Add osabi to struct gdbarch and to struct
148 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
149 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
150 * gdbarch.c: Regenerated.
151 * gdbarch.h: Regenerated.
152 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
153 there's no BFD.
154 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
155 * osabi.h (enum gdb_osabi): Move to defs.h.
156 (gdbarch_init_osabi): Update prototype.
157 * defs.h (enum gdb_osabi): Moved here.
158 * Makefile.in: Update dependencies.
159
160 * alpha-tdep.h: Don't include "osabi.h".
161 (struct gdbarch_tdep): Remove osabi member.
162 * alpha-tdep.c: Include "osabi.h".
163 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
164 iterate over arches. Update call to gdbarch_init_osabi.
165 (alpha_dump_tdep): Don't dump osabi.
166 * alpha-linux-tdep.c: Include "osabi.h".
167 * alpha-osf1-tdep.c: Include "osabi.h".
168 * alphafbsd-tdep.c: Include "osabi.h".
169 * alphanbsd-tdep.c: Include "osabi.h".
170
171 * arm-tdep.h: Don't include "osabi.h".
172 (struct gdbarch_tdep): Remove osabi member.
173 * arm-tdep.c: Include "osabi.h".
174 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
175 iterate over arches. Update call to gdbarch_init_osabi.
176 (arm_dump_tdep): Don't dump osabi.
177 * arm-linux-tdep.c: Include "osabi.h".
178 * armnbsd-tdep.c: Include "osabi.h".
179
180 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
181 Update call to gdbarch_init_osabi.
182
183 * i386-tdep.h: Don't include "osabi.h".
184 (struct gdbarch_tdep): Remove osabi member.
185 * i386-tdep.c: Include "osabi.h".
186 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
187 iterate over arches. Update call to gdbarch_init_osabi.
188 (i386_dump_tdep): Don't dump osabi.
189 * i386-linux-tdep.c: Include "osabi.h".
190 * i386-sol2-tdep.c: Include "osabi.h".
191 * i386bsd-tdep.c: Include "osabi.h".
192 * i386gnu-tdep.c: Include "osabi.h".
193 * i386ly-tdep.c: Include "osabi.h".
194 * i386nbsd-tdep.c: Include "osabi.h".
195 * i386obsd-tdep.c: Include "osabi.h".
196
197 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
198 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
199 check osabi when iterating over arches. Update call to
200 gdbarch_init_osabi.
201 (mips_dump_tdep): Don't dump osabi.
202
203 * ns32k-tdep.h: Don't include "osabi.h".
204 (struct gdbarch_tdep): Remove.
205 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
206 gdbarch_lookup_osabi. Don't iterate over arches. Don't
207 allocate tdep. Update call to gdbarch_init_osabi.
208 (ns32k_dump_tdep): Remove.
209 (_initialize_ns32k_tdep): Update call to gdbarch_register.
210 * ns32knbsd-tdep.c: Include "osabi.h".
211
212 * ppc-tdep.h: Don't include "osabi.h".
213 (struct gdbarch_tdep): Remove osabi member.
214 * rs6000-tdep.c: Include "osabi.h".
215 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
216 osabi when iterating over arches. Update call to
217 gdbarch_init_osabi.
218 (rs6000_dump_tdep): Don't dump osabi.
219 * ppc-linux-tdep.c: Include "osabi.h".
220 * ppcnbsd-tdep.c: Include "osabi.h".
221
222 * sh-tdep.h: Don't include "osabi.h".
223 (struct gdbarch_tdep): Remove osabi member.
224 * sh-tdep.c: Include "osabi.h".
225 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
226 iterate over arches. Update call to gdbarch_init_osabi.
227 (sh_dump_tdep): Don't dump osabi.
228 * shnbsd-tdep.c: Include "osabi.h".
229
230 * sparc-tdep.c: Include "osabi.h".
231 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
232 iterate over arches. Update call to gdbarch_init_osabi.
233 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
234 tdep structure.
235
236 * vax-tdep.h: Don't include "osabi.h".
237 (struct gdbarch_tdep): Remove.
238 * vax-tdep.c: Include "osabi.h".
239 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
240 iterate over arches. Don't allocate tdep. Update call
241 to gdbarch_init_osabi.
242 (vax_dump_tdep): Remove.
243 (_initialize_vax_tdep): Update call to gdbarch_register.
244
245 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
246
247 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
248 entirely.
249 (breakpoint_re_set_one): Don't fetch the value for a disabled
250 watchpoint.
251
252 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
253
254 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
255 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
256 (COERCE_FLOAT_TO_DOUBLE): Remove.
257 * gdbarch.c: Regenerate.
258 * gdbarch.h: Regenerate.
259 * Makefile.in: Remove value_h from gdbarch_h.
260 * valops.c (coerce_float_to_double): New variable.
261 (default_coerce_float_to_double): Remove.
262 (standard_coerce_float_to_double): Remove.
263 (value_arg_coerce): Use coerce_float_to_double.
264 (_initialize_valops): Add "set coerce-float-to-double".
265 * value.h (default_coerce_float_to_double): Remove prototype.
266 (standard_coerce_float_to_double): Remove prototype.
267
268 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
269 prototyped.
270 * mdebugread.c (parse_symbol): Likewise.
271 * stabsread.c (define_symbol): Mark all functions as prototyped.
272
273 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
274 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
275 set_gdbarch_coerce_float_to_double.
276 * arm-tdep.c (arm_gdbarch_init): Likewise.
277 * frv-tdep.c (frv_gdbarch_init): Likewise.
278 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
279 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
280 * mips-tdep.c (mips_gdbarch_init): Likewise.
281 (mips_coerce_float_to_double): Remove.
282 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
283 (rs6000_coerce_float_to_double): Remove.
284 * s390-tdep.c (s390_gdbarch_init): Likewise.
285 * sh-tdep.c (sh_gdbarch_init): Likewise.
286 (sh_coerce_float_to_double): Remove.
287 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
288 (sparc_coerce_float_to_double): Remove.
289 * v850-tdep.c (v850_gdbarch_init): Likewise.
290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
291 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
292 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
293 (hppa_coerce_float_to_double): Remove prototype.
294 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
295
296 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
297
298 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
299
300 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
301
302 Suggested by Stewart Brown <sb24@avaya.com>:
303 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
304 in recursive calls. Handle TYPE_CODE_TYPEDEF.
305 (c_type_print_varspec_suffix): Likewise.
306
307 2003-01-04 Mark Kettenis <kettenis@gnu.org>
308
309 * configure.in: Don't set and AC_SUBST SUBDIRS.
310 * configure: Regenerated.
311
312 * configure.in: Remove code dealing with shared libraries.
313 * Makefile.in: Remove HLDFLAGS and HLDENV.
314 * configure: Regenerated.
315
316 2003-01-04 Andrew Cagney <ac131313@redhat.com>
317
318 * frame.c (deprecated_frame_xmalloc): New function.
319 (deprecated_set_frame_saved_regs_hack): New function.
320 (deprecated_set_frame_extra_info_hack): New function.
321 * frame.h (deprecated_frame_xmalloc): Declare.
322 (deprecated_set_frame_saved_regs_hack): Declare.
323 (deprecated_set_frame_extra_info_hack): Declare.
324
325 2003-01-04 Mark Kettenis <kettenis@gnu.org>
326
327 * configure.in: Move code that provides the --enable-gdbtk option
328 right after the code that handles the --enable-tui option, and
329 polish it somewhat.
330 * configure: Regenerated.
331
332 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
333 AC_CHECK_FUNCS and remove the old check for pread64.
334 * acinclude.m4 (AC_GNU_SOURCE): New macro.
335 * acconfig.h (_GNU_SOURCE): Add.
336 (HAVE_PREAD64): Remove.
337 * configure, aclocal.m4, config.in: Regenerated.
338
339 2003-01-03 Andrew Cagney <ac131313@redhat.com>
340
341 * alpha-tdep.c: Use get_frame_saved_regs.
342 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
343 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
344 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
345 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
346 * vax-tdep.c, xstormy16-tdep.c: Ditto.
347
348 2003-01-03 Mark Kettenis <kettenis@gnu.org>
349
350 * configure.in: Remove all use of the SUBDIRS variable; add
351 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
352 code providing the --enable-multi-ice option, and move it right in
353 front of the code that checks whether gdbserver is supported.
354 Polish that too.
355 * configure: Regenerated.
356 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
357 @SUBDIRS@.
358
359 2003-01-03 Andrew Cagney <cagney@redhat.com>
360
361 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
362 * avr-tdep.c, cris-tdep.c: Ditto.
363 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
364 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
365
366 2003-01-03 Mark Kettenis <kettenis@gnu.org>
367
368 * configure.in: Remove --enable-netrom option.
369 * configure: Regenerated.
370
371 2003-01-03 Mark Kettenis <kettenis@gnu.org>
372
373 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
374 declaration for `struct re_pattern_buffer' instead.
375 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
376
377 2003-01-03 J. Brobecker <brobecker@gnat.com>
378
379 * mdebugread.c (parse_symbol): Count until the stEnd matching
380 the structure name.
381
382 2003-01-02 Mark Kettenis <kettenis@gnu.org>
383
384 * configure.in: Remove --with-cpu option.
385 subscripts. Remove evil changequotes here.
386 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
387 * config.in, configure: Regenerated.
388
389 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
390 * configure.in: Cleanup section that sources GDB and BFD configure
391 subscripts. Remove evil changequotes here.
392 * config.in, configure: Regenerated.
393
394 2003-01-02 Andrew Cagney <ac131313@redhat.com>
395
396 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
397 frame accessor methods.
398 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
399 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
400 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
401 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
402 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
403 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
404 * z8k-tdep.c: Ditto.
405
406 2003-01-02 Mark Kettenis <kettenis@gnu.org>
407
408 * configure.in: Remove UI_OUT configuration code.
409 * ada-lang.c: Update assuming UI_OUT is always true.
410 * Makefile.in (UIOUT_CFLAGS): Remove.
411 * configure: Regenerated.
412 * TODO: Remove blurb about elimination of -DUI_OUT.
413
414 * configure.in: Move code that provides the --enable-gdbcli,
415 --enable-gdbmi options right before the code that handles the
416 --enable-tui option. Polish a bit.
417 * configure: Regenerated.
418
419 * configure.in: Rewrite check for GNU regex and the
420 --without-included regex option, and move it into the "Checks for
421 library functions" section. This makes us use the system regex
422 again by default on systems with version 2 of the GNU C library.
423 This was apparently broken.
424 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
425 * acconfig.h (USE_INCLUDED_REGEX): Remove.
426 * config.in, configure: Regenerated.
427
428 * configure.in: Move code that provides the --enable-tui option
429 before the "Checks for libraries" section. Polish the code
430 somewhat and set need_curses to yes if we build the TUI. Rewrite
431 code that looks for a library providing termcap functionality to
432 match more closely what's done in the Readline library, and move
433 it into to the "Checks for libraries" section.
434 * configure: Regenerated.
435 * Makefile.in (TERMCAP): Remove variable.
436 * config/i386/go32.mh (TERMCAP): Remove variable.
437
438 2003-01-02 Andrew Cagney <ac131313@redhat.com>
439
440 * MAINTAINERS: Mention gdb_mbuild.sh.
441 * gdb_mbuild.sh: Rewrite.
442
443 2003-01-02 Mark Kettenis <kettenis@gnu.org>
444
445 * configure.in: Fix typo in last change.
446 * config.in, configure: Regenerated.
447
448 2003-01-02 Andrew Cagney <ac131313@redhat.com>
449
450 * valarith.c (value_binop): Delete obsolete code and comments.
451 * configure.host: Ditto.
452 * buildsym.h (make_blockvector): Ditto.
453 * buildsym.c (make_blockvector): Ditto.
454 * defs.h (enum language): Ditto.
455 (chill_demangle): Ditto.
456 * elfread.c (elf_symtab_read): Ditto.
457 * dwarfread.c (CHILL_PRODUCER): Ditto.
458 (set_cu_language): Ditto.
459 (handle_producer): Ditto.
460 * expprint.c (print_subexp): Ditto.
461 * gdbtypes.c (chill_varying_type): Ditto.
462 * gdbtypes.h (builtin_type_chill_bool): Ditto.
463 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
464 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
465 (chill_varying_type): Ditto.
466 * language.h (_LANG_chill): Ditto.
467 * language.c (binop_result_type, integral_type): Ditto.
468 (character_type, string_type, structured_type): Ditto.
469 (lang_bool_type, binop_type_check): Ditto.
470 * stabsread.h (os9k_stabs): Ditto.
471 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
472 (define_symbol, read_type, read_struct_fields): Ditto.
473 (read_array_type, read_enum_type, read_huge_number): Ditto.
474 (read_range_type, start_stabs): Ditto.
475 * symfile.c (init_filename_language_table): Ditto.
476 (add_psymbol_with_dem_name_to_list): Ditto.
477 * symtab.c (symbol_init_language_specific): Ditto.
478 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
479 * symtab.h (struct general_symbol_info): Ditto.
480 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
481 * typeprint.c (typedef_print): Ditto.
482 * utils.c (fprintf_symbol_filtered): Ditto.
483 * valops.c (value_cast, search_struct_field, value_slice): Delete
484 obsolete code.
485 (varying_to_slice): Delete function.
486 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
487 (varying_to_slice): Delete declaration.
488 * MAINTAINERS: Update.
489
490 2003-01-02 Mark Kettenis <kettenis@gnu.org>
491
492 * configure.in: Reorganize "Checks for library functions section"
493 a bit. Remove check for `btowc' and `isascii' functions.
494 * configure: Regenerated.
495
496 * acconfig.h (_MSE_INT_H): Remove.
497 * configure.in: Create "Checks for header files" section, and move
498 appropriate tests there. Don't check for objlist.h, wchar.h,
499 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
500 misdetection fix. Also add "Checks for types", "Checks for
501 compiler characteristics" and "Checks for library functions"
502 sections.
503 * config.in, configure: Regenerated.
504
505 * configure.in: Create "Checks for programs" section, and move
506 appropriate tests there.
507
508 2003-01-01 Mark Kettenis <kettenis@gnu.org>
509
510 * configure.in: Create "Checks for libraries" section, and move
511 appropriate tests there. Cleanup check for wctype in libw. Use
512 AC_SEARCH_LIBS to see whether we need libsocket.
513 * configure: Regenerated.
514
515 2002-12-31 Mark Kettenis <kettenis@gnu.org>
516
517 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
518 * config.in, configure: Regenerated.
519
520 2002-12-31 Mark Kettenis <kettenis@gnu.org>
521
522 * gdb_dirent.h: Cleanup and update code to match the example in
523 the Autoconf manual.
524 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
525 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
526 * configure: Regenerated.
527
528 2002-12-30 Adam Fedor <fedor@gnu.org>
529
530 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
531 (yylex): Initialize c to avoid uninitialized warning.
532
533 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
534
535 * doc/fdl.texi: Revert the last change.
536
537 2002-12-29 Mark Kettenis <kettenis@gnu.org>
538
539 * tracepoint.c (ISATTY): Removed.
540
541 2002-12-26 J. Brobecker <brobecker@gnat.com>
542
543 Continuing work to convert the hppa targets to multiarch partil.
544
545 * hppa-tdep.c: Add some missing forward declarations.
546 (frameless_function_invocation): Prefix the function name
547 by "hppa_" to avoid polluting the namespace. Update all calls
548 to use the new function name.
549 (saved_pc_after_call): Ditto.
550 (init_extra_frame_info): Ditto.
551 (frame_chain): Ditto.
552 (push_dummy_frame): Ditto.
553 (target_read_pc): Ditto.
554 (target_write_pc): Ditto.
555 (in_solib_call_trampoline): Ditto.
556 (in_solib_return_trampoline): Ditto.
557 (skip_trampoline_code): Ditto.
558 (hppa_read_fp): New function, renamed from target_read_fp.
559 (hppa_target_read_fp): New function, using hppa_read_fp.
560 This function conforms to the function profile for the
561 READ_FP gdbarch method.
562 (hppa_extract_struct_value_address): New function, extracted
563 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
564 macro.
565 (hppa_frame_num_args): New function.
566 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
567
568 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
569 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
570 for the switch to multiarch partial.
571 Update some of the macros definitions to match some changes
572 described above in the name of the function they are calling.
573 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
574 not be straightforward to convert. Do now wrap it inside
575 "#if !... #endif" to remember that this macro has still not
576 been taken care of.
577 (FIX_CALL_DUMMY): Likewise.
578
579 2002-12-26 J. Brobecker <brobecker@gnat.com>
580
581 Continuing work to convert the hppa targets to multiarch partial.
582
583 * hppa-tdep.c (hppa_register_raw_size): New function replacing
584 the body of macro REGISTER_RAW_SIZE.
585 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
586 config/pa/tm-hppah.h. These functions will be used to initialize
587 the gdbarch structure.
588 (hppa_hpux_pc_in_sigtramp): New function.
589 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
590 (hppa_hpux_frame_base_before_sigtramp): New function.
591 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
592 Add gdbcore.h #include.
593 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
594 of this gdbarch-eligible macro to a call to the new associated
595 function.
596 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
597 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
598 into a call to the new associated function.
599 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
600 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
601 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
602
603 2002-12-24 David Carlton <carlton@math.stanford.edu>
604
605 * config/sparc/tm-sparc.h: Delete duplicate definition of
606 DEPRECATED_PC_IN_CALL_DUMMY.
607
608 2002-12-24 Kevin Buettner <kevinb@redhat.com>
609
610 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
611 $(gdb_assert_h).
612 * configure.tgt: Recognize mips64*-*-linux*.
613 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
614 (supply_32_bit_reg): New function.
615 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
616 (fill_gregset): Use regcache_collect() instead of
617 deprecated_registers[].
618 (register_addr): Change name to mips_linux_register_addr().
619 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
620 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
621 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
622 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
623 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
624 (MIPS64_LINUX_JB_PC): New defines.
625 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
626 (mips64_elf_fpregset_t): New typedefs.
627 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
628 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
629 (mips64_linux_register_addr, set_mips_linux_register_addr)
630 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
631 (init_register_addr_data)
632 New functions.
633 (fetch_core_registers): Add support for core file formats with 64-bit
634 registers.
635 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
636 (register_addr_data): New static global variable.
637 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
638 gdbarch_register_osabi() for each MIPS machine.
639 * config/mips/linux64.mt: New file.
640 * config/mips/tm-linux64.h: New file.
641
642 2002-12-23 Adam Fedor <fedor@gnu.org>
643
644 * maint.c (maintenance_demangle): Add switch to demangle
645 ObjC language symbols as well.
646
647 2002-12-23 Adam Fedor <fedor@gnu.org>
648
649 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
650 last argument from complaint function call.
651
652 2002-12-23 Kevin Buettner <kevinb@redhat.com>
653
654 * exec.c (print_section_info): Add FIXME comments regarding format
655 string choices.
656
657 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
658
659 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
660 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
661
662 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
663
664 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
665
666 2002-12-23 David Carlton <carlton@math.stanford.edu>
667
668 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
669 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
670 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
671 information associated to a minsym, not lookup_symbol.
672
673 2002-12-21 Mark Kettenis <kettenis@gnu.org>
674
675 * x86-64-tdep.h (x86_64_init_abi): New prototype.
676 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
677 (x86_64_init_abi): Make non-static. Set number of pseudo
678 registers to 0.
679 (x86_64_gdbarch_init): Remove function.
680 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
681 Remove code dealing with dissambly.
682 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
683 (_initialize_x86_64_linux_tdep): New function.
684 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
685 i386-tdep.o.
686
687 2002-12-14 Mark Kettenis <kettenis@gnu.org>
688
689 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
690 (struct gdb_osabi_handler): Remove member `arch'. Add member
691 `arch_info'.
692 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
693 construct a `struct bfd_arch_info' and store it in the `struct
694 gdb_osabi_handler' that is created.
695 (gdbarch_init_osabi): Check for compatibility based on machine
696 type and architecture.
697 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
698 comment.
699 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
700 second argument in call to gdbarch_register_osabi.
701 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
702 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
703 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
704 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
705 * arm-tdep.c (_initialize_arm_tdep): Likewise.
706 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
707 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
708 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
709 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
710 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
711 * i386-tdep.c (_initialize_i386_tdep): Likewise.
712 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
713 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
714 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
715 _initialize_i386bsd_tdep and updated likewise.
716 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
717 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
718 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
719 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
720 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
721 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
722 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
723 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
724 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
725 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
726
727 2002-12-20 Kevin Buettner <kevinb@redhat.com>
728
729 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
730 DT_MIPS_RLD_MAP case for 64-bit targets.
731
732 2002-12-20 Kevin Buettner <kevinb@redhat.com>
733
734 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
735 ``temp_saved_regs'', not the pointer or other storage contiguous
736 to this pointer.
737
738 2002-12-20 Kevin Buettner <kevinb@redhat.com>
739
740 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
741 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
742 (mips_linux_get_longjmp_target): Delete declarations.
743 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
744 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
745 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
746 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
747 (mips_linux_get_longjmp_target)
748 (mips_linux_svr4_fetch_link_map_offsets): Make static.
749 (mips_linux_init_abi): New function.
750 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
751
752 2002-12-19 Keith Seitz <keiths@redhat.com>
753
754 patch committed by Elena Zannoni <ezannoni@redhat.com>
755 * thread.c (do_captured_list_thread_ids): Call prune_threads and
756 target_find_new_threads. Fix for PR mi/669.
757
758 2002-12-19 David Carlton <carlton@math.stanford.edu>
759
760 * linespec.c (decode_line_1): Move code into decode_all_digits.
761 (decode_all_digits): New function.
762
763 2002-12-19 Kevin Buettner <kevinb@redhat.com>
764
765 * exec.c (print_section_info): Select a format string to use with
766 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
767
768 2002-12-18 Andrew Cagney <ac131313@redhat.com>
769
770 * frame.c (deprecated_update_current_frame_pc_hack): Replace
771 deprecated_update_current_frame_pc_hack.
772 (deprecated_update_frame_base_hack): New function.
773 * frame.h (deprecated_update_frame_pc_hack): Replace
774 (deprecated_update_frame_base_hack): Declare.
775 * infrun.c (normal_stop): Update.
776
777 2002-12-18 Andrew Cagney <ac131313@redhat.com>
778
779 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
780 frame_extra_info_zalloc.
781 (rs6000_frame_args_address): Use get_frame_extra_info.
782 (frame_get_saved_regs): Use get_frame_saved_regs.
783 (frame_initial_stack_address): Use get_frame_saved_regs and
784 get_frame_extra_info.
785 (frame_initial_stack_address): Use get_frame_extra_info.
786
787 2002-12-17 Kevin Buettner <kevinb@redhat.com>
788
789 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
790 array size.
791 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
792 checks for r3900_regnames[].
793
794 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
795
796 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
797 All uses changed
798 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
799
800 2002-12-17 David Carlton <carlton@math.stanford.edu>
801
802 * symtab.c (lookup_partial_symbol): Don't search past the end of
803 the partial symbols.
804
805 2002-12-17 Andrew Cagney <ac131313@redhat.com>
806
807 * stack.c (frame_info): Use get_frame_saved_regs.
808 * breakpoint.c (until_break_command): Use get_frame_pc.
809
810 2002-12-16 Kevin Buettner <kevinb@redhat.com>
811
812 * buildsym.c (block_end_complaint, anon_block_end_complaint)
813 (innerblock_complaint, innerblock_anon_complaint)
814 (blockvector_complaint): Delete deprecated complaint structs.
815 (finish_block, make_blockvector, end_symtab): Replace calls
816 to complain() with calls to complaint().
817 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
818 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
819 (unexpected_type_complaint, bad_sclass_complaint)
820 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
821 Delete deprecated complaint structs.
822 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
823 Replace calls to complain() with calls to complaint().
824 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
825 (unknown_symtype_complaint, unknown_symchar_complaint)
826 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
827 (lbrac_mismatch_complaint, repeated_header_complaint)
828 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
829 Delete deprecated complaint structs.
830 (unknown_symtype_complaint, lbrac_mismatch_complaint)
831 (repeated_header_complaint)
832 (function_outside_compiliation_unit_complaint): New functions.
833 (add_old_header_file, find_corresponding_bincl_psymtab)
834 (set_namestring, find_stab_function_addr, read_dbx_symtab)
835 (process_one_symbol): Replace calls to complain() with, possibly
836 indirect, calls to complaint().
837 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
838 (unknown_attribute_form, unknown_attribute_length)
839 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
840 (const_ignored, botched_modified_type, op_deref2, op_deref4)
841 (basereg_not_handled, dup_user_type_allocation)
842 (dup_user_type_definition, missing_tag, bad_array_element_type)
843 (subscript_data_items, unhandled_array_subscript_format)
844 (unknown_array_subscript_format, not_row_major)
845 (missing_at_name): Delete deprecated complaint structs.
846 (bad_die_ref_complaint, unknown_attribute_form_complaint)
847 (dup_user_type_definition_complaint)
848 (bad_array_element_type_complaint): New functions.
849 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
850 (decode_subscript_data_item, dwarf_read_array_type)
851 (read_tag_string_type, read_subroutine_type, read_func_scope)
852 (locval, scan_partial_symbols, decode_modified_type)
853 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
854 (attribute_size): Replace calls to complain() with, possibly
855 indirect, calls to complaint().
856 * elfread.c (section_info_complaint, section_info_dup_complaint)
857 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
858 Delete deprecated complaint structs.
859 (elf_symtab_read, elfstab_offset_sections): Replace calls to
860 complain() with calls to complaint().
861 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
862 struct.
863 (stub_noname_complaint): New function.
864 (check_typedef, add_mangled_type): Replace calls to complain()
865 with calls to complaint().
866 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
867 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
868 (hpread_unhandled_type_complaint, hpread_struct_complaint)
869 (hpread_array_complaint, hpread_type_lookup_complaint)
870 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
871 (hpread_unhandled_common_complaint)
872 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
873 struct definitions and declarations.
874 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
875 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
876 Replace calls to complain() with, possibly indirect, calls to
877 complaint().
878 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
879 Likewise.
880 * mdebugread.c (bad_file_number_complaint, index_complaint)
881 (aux_index_complaint, block_index_complaint)
882 (unknown_ext_complaint, unknown_sym_complaint)
883 (unknown_st_complaint, block_overflow_complaint)
884 (basic_type_complaint, unknown_type_qual_complaint)
885 (array_index_type_complaint, bad_tag_guess_complaint)
886 (block_member_complaint, stEnd_complaint)
887 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
888 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
889 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
890 (bad_continued_complaint, bad_rfd_entry_complaint)
891 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
892 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
893 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
894 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
895 complaint structs.
896 (index_complaint, unknown_ext_complaint, basic_type_complaint)
897 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
898 (unexpected_type_code_complaint)
899 (function_outside_compilation_unit_complaint): New functions.
900 (parse_symbol, parse_type, upgrade_type, parse_procedure)
901 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
902 Replace calls to complain() with, possibly indirect calls to
903 complaint().
904 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
905 Delete deprecated complaint structs.
906 (lookup__objc_class, lookup_child_selector): Replace complain()
907 with complaint().
908 * remote-vx.c (cant_contact_target): Delete deprecated complaint
909 struct.
910 (vx_lookup_symbol): Replace complain() with complaint().
911 * stabsread.c (invalid_cpp_abbrev_complaint)
912 (invalid_cpp_type_complaint, member_fn_complaint)
913 (const_vol_complaint, error_type_complaint)
914 (invalid_member_complaint, range_type_base_complaint)
915 (reg_value_complaint, vtbl_notfound_complaint)
916 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
917 (unresolved_sym_chain_complaint, stabs_general_complaint)
918 (lrs_general_complaint, multiply_defined_struct): Delete
919 deprecated complaint structs.
920 (invalid_cpp_abbrev_complaint, ref_value_complaint)
921 (stabs_general_complaint, lrs_general_complaint)
922 (msg_unknown_complaint): New functions.
923 (dbx_lookup_type, read_cfront_baseclasses)
924 (read_cfront_member_functions, resolve_symbol_reference)
925 (define_symbol, resolve_live_range, add_live_range, read_type)
926 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
927 (read_one_struct_field, read_baseclasses, read_tilde_fields)
928 (read_cfront_static_fields, attach_fields_to_type)
929 (complain_about_struct_wipeout, read_range_type)
930 (common_block_start, common_block_end, cleanup_undefined_types)
931 (scan_file_globals): Replace complain() with complaint().
932 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
933 Delete deprecated complaint struct declarations.
934 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
935 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
936 (bf_not_found_complaint, ef_complaint, eb_complaint)
937 (function_outside_compilation_unit_complaint): New functions.
938 (record_include_begin, record_include_end, enter_line_range)
939 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
940 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
941 complain() with complaint().
942
943 2002-12-16 Andrew Cagney <ac131313@redhat.com>
944
945 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
946 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
947 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
948 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
949 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
950 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
951 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
952 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
953 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
954 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
955 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
956 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
957 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
958 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
959 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
960 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
961 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
962 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
963 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
964 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
965 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
966 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
967 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
968 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
969 * config/m88k/xm-dgux.h: Delete.
970 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
971 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
972 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
973 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
974 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
975 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
976 * ch-valprint.c: Delete.
977
978 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
979
980 * infrun.c (handle_inferior_event): Rearrange code to resume if
981 no catchpoint triggers for an event.
982
983 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
984
985 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
986 and TARGET_WAITKIND_VFORKED cases.
987
988 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
989
990 * infrun.c (handle_inferior_event): Assume that catchpoints
991 are not affected by DECR_PC_AFTER_BREAK.
992
993 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
994
995 * target.c (update_current_target): Don't inherit DONT_USE.
996 * target.h (struct target_ops): Remove DONT_USE.
997 (target_next): Remove macro.
998
999 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1000
1001 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1002
1003 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1004
1005 * arm-tdep.c (convert_from_extended): New argument to hold the
1006 type of floating point result we want to convert to. Make input
1007 argument const. Fix all callers.
1008 (convert_to_extended): Similarly.
1009 (arm_extract_return_value): Now takes a regcache argument. Change
1010 code to use regcache accessor functions. Correctly extract
1011 smaller-than-word results on big-endian machines.
1012 (arm_store_return_value): Now takes a regcache argument. Change
1013 code to use regcache accessor functions. Correctly zero/sign extend
1014 smaller than word results before storing into r0.
1015 (arm_gdbarch_init): Register new-style extract_return_value and
1016 store_return_value functions.
1017
1018 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1019
1020 * thread-db.c (thread_from_lwp): Uniquify error msg.
1021 (lwp_from_thread): Ditto.
1022 (check_event): Ditto.
1023 (find_new_threads_callback): Ditto.
1024 (thread_db_pid_to_str): Ditto.
1025
1026 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1027
1028 * frame.h (get_frame_saved_regs): Declare.
1029 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1030 pointer.
1031 * frame.c (get_frame_saved_regs): New function.
1032 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1033
1034 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1035
1036 * frame.c (deprecated_update_current_frame_pc_hack): New
1037 function.
1038 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1039 * infrun.c (normal_stop): Use said function instead of directly
1040 modifying the frame's PC.
1041
1042 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1043
1044 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1045
1046 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1047
1048 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1049 config/mips/tm-irix6.h (NUM_REGS): Delete.
1050 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1051 (temp_saved_regs): Declare as a pointer rather than an array.
1052 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1053 that ``temp_saved_regs'' has storage allocated to it and that
1054 it's the correct size.
1055
1056 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1057
1058 * defs.h (init_last_source_visited): New prototype.
1059 (add_path): Ditto.
1060 * source.c (add_path): New function that adds to a specified path.
1061 (mod_path): Change to call add_path.
1062 (init_last_source_visited): New function to allow interfaces to
1063 initialize static variable: last_source_visited. Part of fix
1064 for PR gdb/741.
1065 * Makefile.in: Add support for mi/mi-cmd-env.c.
1066
1067 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1068
1069 * frame.h (frame_id_unwind): Declare.
1070 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1071 id_unwind_cache.
1072 (frame_id_unwind_ftype): Declare.
1073 * frame.c (frame_id_unwind): New function.
1074 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1075 (create_new_frame, get_prev_frame): Pass id_unwind to
1076 set_unwind_by_pc.
1077 (frame_saved_regs_id_unwind): New function.
1078 (frame_saved_regs_id_unwind): New function.
1079 * dummy-frame.c (dummy_frame_id_unwind): New function.
1080 (struct dummy_frame): Add field id.
1081 (generic_push_dummy_frame): Initialize `id'.
1082 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1083
1084 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1085
1086 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1087 pass that to set_momentary_breakpoint. Move comments to where they
1088 belong.
1089 * frame.h (set_current_frame): Delete declaration.
1090 * frame.c (set_current_frame): Delete function.
1091
1092 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1093
1094 * frame.c (frame_extra_info_zalloc): New function.
1095 * frame.h (frame_extra_info_zalloc): Declare.
1096
1097 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1098
1099 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1100 in the previous prototype change to set_momentary_breakpoint.
1101
1102 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1103
1104 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1105 and saw_child_exec.
1106 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1107 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1108 (stop_stepping): Remove outdated check for child vfork events.
1109
1110 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1111
1112 * GDB 5.3 released from gdb_5_3-branch.
1113
1114 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1115
1116 * corelow.c (init_core_ops): Delete references to to_require_attach
1117 and to_require_detach.
1118 * exec.c (init_exec_ops): Likewise.
1119 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1120 hppa_require_detach directly.
1121 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1122 * inftarg.c (child_detach): Remove.
1123 (child_detach_from_process): Rename to child_detach, remove
1124 after_fork argument.
1125 (child_attach): Remove.
1126 (child_attach_to_process): Rename to child_attach, remove after_fork
1127 argument.
1128 (init_child_ops): Delete references to to_require_attach
1129 and to_require_detach.
1130 * infttrace.c (hppa_require_attach): Update comment.
1131 * target.c (cleanup_target, update_current_target)
1132 (init_dummy_target, setup_target_debug): Delete references to
1133 to_require_attach and to_require_detach.
1134 (find_default_require_detach, find_default_require_attach)
1135 (debug_to_require_attach, debug_to_require_detach): Remove
1136 functions.
1137 * target.h (struct target_ops): Remove to_require_attach
1138 and to_require_detach.
1139 (target_require_attach, target_require_detach): Delete macros.
1140 (find_default_require_detach, find_default_require_attach): Delete
1141 prototypes.
1142 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1143
1144 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1145
1146 * frame.c (get_frame_extra_info): New function.
1147 * frame.h (get_frame_extra_info): Declare.
1148
1149 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1150
1151 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1152 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1153 with `struct frame_id'.
1154 (set_longjmp_resume_breakpoint): Ditto.
1155 * infrun.c (handle_inferior_event): Update.
1156 * breakpoint.c (watch_command_1, until_break_command): Update.
1157 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1158 (handle_inferior_event, step_over_function): Update.
1159 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1160 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1161 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1162 * infcmd.c (finish_command, run_stack_dummy): Update.
1163
1164 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1165
1166 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1167 (dwarf2_non_const_array_bound_ignored)
1168 (dwarf2_missing_line_number_section)
1169 (dwarf2_statement_list_fits_in_line_number_section)
1170 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1171 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1172 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1173 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1174 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1175 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1176 (dwarf2_missing_member_fn_type_complaint)
1177 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1178 (dwarf2_const_value_length_mismatch)
1179 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1180 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1181 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1182 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1183 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1184 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1185 complaints using deprecated struct..
1186 (dwarf2_non_const_array_bound_ignored_complaint)
1187 (dwarf2_complex_location_expr_complaint)
1188 (dwarf2_unsupported_at_frame_base_complaint)
1189 (dwarf2_const_value_length_mismatch_complaint)
1190 (dwarf2_macros_too_long_complaint)
1191 (dwarf2_macro_malformed_definition_complaint)
1192 (dwarf2_invalid_attrib_class_complaint): New functions.
1193 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1194 (read_structure_scope, read_array_type, read_common_block)
1195 (read_tag_pointer_type, read_base_type, read_partial_die)
1196 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1197 (new_symbol, dwarf2_const_value, read_type_die)
1198 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1199 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1200 complain() with, possibly indirect, calls to complaint().
1201
1202 2002-12-11 Andrew Cagney <cagney@redhat.com>
1203
1204 * frame.c (deprecated_get_frame_saved_regs): Rename
1205 get_frame_saved_regs.
1206 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1207 * sparc-tdep.c: Update.
1208 * hppa-tdep.c: Update.
1209 * h8500-tdep.c: Update.
1210
1211 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1212
1213 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1214 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1215 ``char *'' for return and parameter types.
1216 * gdbarch.h, gdbarch.c: Regenerate.
1217 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1218 return type from ``char *'' to ``const char *''.
1219 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1220 const.
1221
1222 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1223
1224 * i386-tdep.c: Include "dummy-frame.h".
1225 (i386_frame_chain, i386_frame_saved_pc): Replace
1226 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1227 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1228
1229 2002-12-10 Andrew Cagney <cagney@redhat.com>
1230
1231 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1232 Change to a function with predicate.
1233 * gdbarch.h, gdbarch.c: Re-generate.
1234 * frame.c (get_prev_frame): Update. Test
1235 DEPRECATED_INIT_FRAME_PC_P.
1236 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1237 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1238 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1239 * alpha-tdep.c (alpha_gdbarch_init): Update.
1240 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1241 * mips-tdep.c (mips_gdbarch_init): Update.
1242 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1243 * arm-tdep.c: Update comments.
1244 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1245 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1246 * frv-tdep.c (frv_gdbarch_init): Ditto.
1247 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1248 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1249 * s390-tdep.c (s390_gdbarch_init): Ditto.
1250 * v850-tdep.c (v850_gdbarch_init): Ditto.
1251 * vax-tdep.c (vax_gdbarch_init): Ditto.
1252 * sh-tdep.c (sh_gdbarch_init): Ditto.
1253 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1256 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1257 * i386-tdep.c (i386_gdbarch_init): Ditto.
1258 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1259 * cris-tdep.c (cris_gdbarch_init): Ditto.
1260 * avr-tdep.c (avr_gdbarch_init): Ditto.
1261 * arm-tdep.c (arm_gdbarch_init): Ditto.
1262 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1263 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1264
1265 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1266
1267 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1268 CHILD_FOLLOW_FORK.
1269 * hppah-nat.c (saved_vfork_pid): Add.
1270 (child_post_follow_vfork): Remove.
1271 (child_follow_fork): New function.
1272 (child_wait): Call detach_breakpoints after receiving the child vfork.
1273 Call child_resume directly instead of going through resume ().
1274 Make sure we have the exec before reporting the vfork.
1275 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1276 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1277 (follow_fork): New function. Call target_follow_fork.
1278 (follow_inferior_reset_breakpoints): New function broken out from
1279 old follow_inferior_fork.
1280 (resume): Remove hack to follow exec after vfork.
1281 * inftarg.c (child_post_follow_vfork): Remove.
1282 (child_follow_fork): New function.
1283 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1284 * target.c (cleanup_target): Replace to_post_follow_vfork with
1285 to_follow_fork.
1286 (update_current_target): Likewise.
1287 (setup_target_debug): Likewise.
1288 (debug_to_post_follow_vfork): Remove.
1289 (debug_to_follow_fork): New function.
1290 * target.h (struct target_ops): Replace to_post_folow_vfork with
1291 to_follow_fork.
1292 (child_post_follow_vfork): Remove prototype.
1293 (child_follow_fork): Add prototype.
1294 (target_post_follow_vfork): Remove macro.
1295 (target_follow_fork): Add macro.
1296
1297 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1300 (child_post_follow_vfork): Cancel pending exec event if we follow
1301 the parent.
1302 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1303 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1304 event at the following wait call if necessary.
1305 * infrun.c (follow_vfork): Don't follow_exec here.
1306 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1307 case about HP/UX 10.20. Remove code pushed down to
1308 hppah-nat.c:child_wait.
1309 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1310 vfork_in_flight is set.
1311
1312 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1315 for the parent's fork event.
1316 * infrun.c (handle_inferior_event): Only expect one fork event.
1317 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1318 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1319
1320 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1321
1322 * PROBLEMS: Delete reference to PR gdb/725.
1323
1324 * MAINTAINERS (gdb.c++): Add David Carlton.
1325
1326 2002-12-09 David Carlton <carlton@math.stanford.edu>
1327
1328 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1329 * cli/cli-cmds.c: Ditto.
1330
1331 2002-12-09 Andrew Cagney <cagney@redhat.com>
1332
1333 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1334 function address in <>.
1335 * gdbarch.c: Re-generate.
1336
1337 2002-12-09 David Carlton <carlton@math.stanford.edu>
1338
1339 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1340
1341 2002-12-09 David Carlton <carlton@math.stanford.edu>
1342
1343 * linespec.c (symtab_from_filename): New function.
1344 (decode_line_1): Move code into symtab_from_filename.
1345
1346 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1347
1348 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1349
1350 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1351
1352 * f-valprint.c (info_common_command): Use get_frame_pc.
1353 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1354 * ax-gdb.c (agent_command): Ditto.
1355 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1356 (rs6000_pop_frame): Ditto.
1357 (rs6000_frameless_function_invocation): Ditto.
1358 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1359 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1360 * macroscope.c (default_macro_scope): Ditto.
1361 * stack.c (print_frame_info_base): Ditto.
1362 (print_frame, frame_info, print_frame_label_vars): Ditto.
1363 (return_command, func_command, get_frame_language): Ditto.
1364 * infcmd.c (finish_command): Ditto.
1365 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1366 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1367 (break_at_finish_at_depth_command_1): Ditto.
1368 (break_at_finish_command_1): Ditto.
1369 (until_break_command, get_catch_sals): Ditto.
1370 * blockframe.c (func_frame_chain_valid): Ditto.
1371 (frameless_look_for_prologue): Ditto.
1372 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1373
1374 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1375
1376 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1377 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1378
1379 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1380
1381 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1382 to pure functions.
1383 * gdbarch.h, gdbarch.c: Re-generate.
1384 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1385 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1386
1387 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1388 declaration to a function returning a CORE_ADDR.
1389 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1390 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1391 (init_frame_pc_default): Ditto.
1392 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1393 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1394 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1395 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1396 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1397 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1398
1399 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1400 to init_frame_pc_noop.
1401 (i386_interix_init_frame_pc): Delete function.
1402 * z8k-tdep.c (init_frame_pc): Delete function.
1403 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1404 (INIT_FRAME_PC_FIRST): Ditto.
1405 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1406 (INIT_FRAME_PC_FIRST): Ditto.
1407 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1408 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1409 init_frame_pc_noop.
1410 (INIT_FRAME_PC_FIRST): Convert to an expression.
1411 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1412
1413 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1414
1415 * blockframe.c: Use get_frame_base instead of directly accessing
1416 the `struct frame_info' member frame.
1417 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1418 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1419
1420 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1421
1422 * Makefile.in (readline_h): Define.
1423 (completer.o): Depend on readline_h.
1424 (corelow.o): Ditto.
1425 (event-top.o): Ditto.
1426 (exec.o): Ditto.
1427 (solib.o): Ditto.
1428 (source.o): Ditto.
1429 (symfile.o): Ditto.
1430 (symmisc.o): Ditto.
1431 (top.o): Ditto.
1432 (tracepoint.o): Ditto.
1433 (utils.o): Ditto.
1434 (cli-dump.o): Ditto.
1435 (tui-hooks.o): Ditto.
1436 (tuiWin.o): Ditto.
1437
1438 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1439
1440 More cleanup from import of readline 4.3.
1441 * completer.h (complete_line, readline_line_completion_function):
1442 Update prototypes.
1443 (line_completion_function): Removed, not used outside of completer.c.
1444 * completer.c (readline_line_completion_function,
1445 complete_function, line_completion_function): Use const for first
1446 parameter.
1447 (line_completion_function): Make static.
1448 (filename_completer): filename_completion_function is now called
1449 rl_filename_completion_function
1450 * corelow.c: Include <readline/readline.h>.
1451 * exec.c: Ditto.
1452 * solib.c: Ditto.
1453 * source.c: Ditto.
1454 * symfile.c: Ditto.
1455 * symmisc.c: Ditto.
1456 * top.c (init_main): No need to coerce
1457 readline_line_completion_function anymore.
1458 * cli/cli-dump.c: Include <readline/readline.h>.
1459
1460 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1461
1462 * stack.c (frame_info): Use get_prev_frame.
1463 * blockframe.c (frame_address_in_block): Ditto.
1464 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1465 (rs6000_frameless_function_invocation): Ditto.
1466 (rs6000_frame_saved_pc): Ditto.
1467 (rs6000_frame_chain): Ditto.
1468 * arch-utils.c (init_frame_pc_default): Ditto.
1469
1470 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1471
1472 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1473 Delete redundant definition.
1474
1475 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1476
1477 Import of readline 4.3:
1478 * cli/cli-cmds.c: Include readline/tilde.h.
1479 * cli/cli-setshow.c: Ditto.
1480 * defs.h: Don't declare tilde_expand anymore, since readline
1481 exports it.
1482
1483 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1484
1485 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1486 -Werror on this file.
1487
1488 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1489
1490 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1491 the format name.
1492 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1493 * gdbarch.c: Regenerate.
1494
1495 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1496
1497 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1498 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1499 provide a default value.
1500 * gdbarch.h, gdbarch.c: Regenerate.
1501 * frame.c (get_prev_frame): Update. Check
1502 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1503 * s390-tdep.c (s390_gdbarch_init): Update.
1504 * mips-tdep.c (mips_gdbarch_init): Update.
1505 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1506 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1507 * alpha-tdep.c (alpha_gdbarch_init): Update.
1508
1509 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1510
1511 * ia64-linux-nat.c: Include gdb_string.h.
1512 * alpha-nat.c: Ditto.
1513 * ppc-linux-nat.c: Ditto.
1514 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1515 Update dependencies.
1516
1517 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1518
1519 * gdbthread.h: Include "frame.h".
1520 (struct thread_info): Replace step_frame_address with
1521 step_frame_id.
1522 * inferior.h: Include "frame.h".
1523 (step_frame_id): Replace external variable step_frame_address.
1524 * gdbthread.h (save_infrun_state): Replace step_frame_address
1525 parameter with step_frame_id parameter.
1526 (load_infrun_state): Ditto.
1527 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1528 * infcmd.c (step_frame_id, step_1, step_once): Update.
1529 * thread.c (load_infrun_state, save_infrun_state): Update.
1530 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1531 (handle_inferior_event, step_over_function): Update.
1532 (normal_stop, context_switch, restore_inferior_status): Update.
1533 (struct inferior_status): Replace step_frame_address with
1534 step_frame_id.
1535
1536 2002-12-05 David Carlton <carlton@math.stanford.edu>
1537
1538 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1539 DW_TAG_member as well as a declaration as being a C++ static data
1540 member.
1541 (read_structure_scope): Combine tests for DW_TAG_member and
1542 DW_TAG_variable.
1543
1544 2002-12-05 David Carlton <carlton@math.stanford.edu>
1545
1546 * linespec.c (decode_compound): New function.
1547 (decode_line_1): Move code into decode_compound.
1548
1549 2002-12-05 David Carlton <carlton@math.stanford.edu>
1550
1551 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1552 argument.
1553 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1554 the static block. See PR gdb/804.
1555
1556 2002-12-05 David Carlton <carlton@math.stanford.edu>
1557
1558 * symtab.c (lookup_symbol_aux_block): New function.
1559 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1560
1561 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1562
1563 * gdbarch.sh: Dump the predicate function and macro values.
1564 (read): Print error on standard error.
1565 * gdbarch.c: Regenerate.
1566
1567 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1568
1569 * Makefile.in (mips_tdep_h): Define.
1570 (mips-tdep.o): Add mips_tdep_h to dependency list.
1571 * mips-tdep.h: New file.
1572 * mips-tdep.c (mips-tdep.h): Include.
1573 (enum mips_abi): Move to mips-tdep.h.
1574 (mips_abi): New function.
1575
1576 2002-12-04 David Carlton <carlton@math.stanford.edu>
1577
1578 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1579
1580 2002-12-04 David Carlton <carlton@math.stanford.edu>
1581
1582 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1583 function.
1584 (lookup_symbol_aux_minsyms): New function.
1585
1586 2002-12-04 J. Brobecker <brobecker@gnat.com>
1587
1588 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1589
1590 2002-12-04 J. Brobecker <brobecker@gnat.com>
1591
1592 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1593 which is an obsolete macro name.
1594
1595 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1598 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1599
1600 2002-12-03 H.J. Lu (hjl@gnu.org)
1601
1602 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1603 (create_breakpoints): Make sure the addr_string field is not
1604 NULL.
1605
1606 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1607
1608 * sparc-nat.c (fetch_inferior_registers)
1609 (store_inferior_registers): Add comment on problem of LWP vs
1610 threads.
1611
1612 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1613 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1614 (lin_lwp_store_registers): Remove.
1615 (init_lin_lwp_ops): Use fetch_inferior_registers
1616 and store_inferior_registers directly.
1617 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1618 (store_inferior_registers): Likewise.
1619 Fix PR gdb/725.
1620
1621 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1622
1623 * frame.h (get_frame_id): Convert to a function.
1624 (null_frame_id, frame_id_p): Declare.
1625 (frame_id_eq, frame_id_inner): Declare.
1626 (frame_id_build): New function.
1627 * frame.c (get_frame_id): Update. Use null_frame_id.
1628 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1629 frame_id_inner.
1630 (null_frame_id, frame_id_p): Define.
1631 (frame_id_eq, frame_id_inner): Define.
1632 (frame_id_build): New function.
1633 * varobj.c (varobj_create): Update.
1634 (varobj_update): Update.
1635 * valops.c (value_assign): Update.
1636 (new_root_variable): Update.
1637 * infrun.c (save_inferior_status): Update.
1638 * breakpoint.c (watch_command_1): Update.
1639
1640 2002-12-03 J. Brobecker <brobecker@gnat.com>
1641
1642 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1643 (SNAP2): Likewise.
1644
1645 2002-12-03 Andrew Cagney <cagney@redhat.com>
1646
1647 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1648 patch.
1649
1650 * PROBLEMS: Mention PR gdb/725.
1651
1652 2002-12-03 Andreas Schwab <schwab@suse.de>
1653
1654 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1655
1656 2002-12-02 Adam Fedor <fedor@gnu.org>
1657 Klee Dienes <kdienes@apple.com>
1658
1659 * objc-lang.c (objc_printstr): Add width arg to match
1660 printstr prototype.
1661 (compare_selectors): Add 'const' to arg types.
1662 (compare_classes): Likewise.
1663 (find_imps): Cast msym pointer to avoid compiler warning.
1664 (print_object_command): Validate the address before
1665 passing it to the print routine.
1666 (find_objc_msgcall_submethod): Change function argument to
1667 return an int.
1668 * objc-lang.h: Add 'extern' to all function declarations.
1669 (value_nsstring): Add declaration.
1670
1671 2002-12-02 J. Brobecker <brobecker@gnat.com>
1672
1673 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1674 Fixes a build failure on HP/UX.
1675
1676 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1677 failure on HP/UX.
1678 (hpread_has_name): Advance declaration to avoid a compilation warning.
1679 (pst_syms_count): Add missing variable type. By change, the compiler
1680 was defaulting to int, which seems a good choice. Fixes a compilation
1681 warning.
1682 (pst_syms_size): Likewise.
1683
1684 2002-12-02 J. Brobecker <brobecker@gnat.com>
1685
1686 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1687 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1688 later to set the proper gdbarch methods depending on the osabi.
1689 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1690
1691 2002-12-02 J. Brobecker <brobecker@gnat.com>
1692
1693 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1694 * osabi.c (gdb_osabi_name): Add strings images for the two new
1695 enum values.
1696 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1697
1698 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1699
1700 * MAINTAINERS (Java): Global maintainers are responible for Java.
1701 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1702 part Java maintainers.
1703
1704 2002-12-02 J. Brobecker <brobecker@gnat.com>
1705
1706 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1707 Fixes a compilation failure on AiX.
1708
1709 2002-12-02 J. Brobecker <brobecker@gnat.com>
1710
1711 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1712 why aix-thread.o is not listed.
1713
1714 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1715
1716 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1717 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1718 * gdbarch.h, gdbarch.c: Re-generate.
1719 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1720 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1721 * config/pa/tm-hppa.h, frame.h: Update.
1722 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1723 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1724 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1725 * cris-tdep.c, alpha-tdep.c: Update.
1726 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1727 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1728 (get_prev_frame): Ditto.
1729
1730 2002-11-30 Andrew Cagney <cagney@redhat.com>
1731
1732 * exec.c (xfer_memory): Replace boolean with int.
1733 * p-exp.y: Use 0 instead of false.
1734 * corelow.c (gdb_check_format): Change return type to int from
1735 boolean.
1736 * utils.c: Don't include <curses.h> or <term.h> first.
1737
1738 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1739
1740 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1741 (m68hc11_register_byte): Remove.
1742 (m68hc11_gdbarch_init): Don't set the above.
1743
1744 2002-11-29 Andrew Cagney <cagney@redhat.com>
1745
1746 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1747 by calling get_selected_frame.
1748 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1749 set_current_frame, create_new_frame, select_frame and
1750 get_current_frame.
1751 * remote-e7000.c (e7000_start_remote): Ditto.
1752 * remote-mips.c (common_open): Ditto
1753 * remote-rdp.c (remote_rdp_open): Ditto.
1754
1755 2002-11-29 Andreas Schwab <schwab@suse.de>
1756
1757 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1758 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1759 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1760 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1761 read_memory_unsigned_integer instead of read_memory_integer when
1762 dealing with addresses and instruction opcodes.
1763 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1764 (m68k_linux_frame_saved_pc): Likewise.
1765
1766 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1767
1768 * stack.c (selected_frame, select_frame): Move from here ...
1769 * frame.c (selected_frame, select_frame): ... to here. Include
1770 "language.h".
1771 * Makefile.in (frame.o): Update dependencies.
1772 * frame.c (get_selected_frame): New function.
1773 * frame.h (get_selected_frame): Declare.
1774 (deprecated_selected_frame): Rename selected_frame.
1775 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1776 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1777 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1778 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1779 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1780 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1781 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1782 * z8k-tdep.c, cli/cli-cmds.c: Update.
1783
1784 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1785
1786 * frame.h (get_selected_block): Add comments.
1787
1788 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1789
1790 * frame.c (pc_notcurrent): New function.
1791 (find_frame_sal): New function.
1792 * frame.h (find_frame_sal): Declare.
1793 (struct symtab_and_line): Add opaque declaration.
1794 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1795 find_pc_line.
1796 (frame_info): Ditto.
1797 * ada-lang.c (find_printable_frame): Ditto.
1798
1799 2002-11-28 J. Brobecker <brobecker@gnat.com>
1800
1801 * configure.in: Check that the pthdebug library is recent enough
1802 before enabling thread support on native AiX.
1803 * configure: Regenerate.
1804
1805 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1806 from the list of object files as it is now appended by configure
1807 if thread support is enabled.
1808 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1809 if thread support is enabled.
1810
1811 2002-11-28 Andrew Cagney <cagney@redhat.com>
1812
1813 * stack.c (get_selected_block): In-line get_current_block.
1814 * frame.h (get_current_block): Delete declaration.
1815 * blockframe.c (get_current_block): Delete function.
1816
1817 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1818
1819 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1820 USE_GENERIC_DUMMY_FRAMES.
1821 * gdbarch.h, gdbarch.c: Regenerate.
1822 * valops.c, frame.c: Update.
1823 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1824 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1825 * config/pa/tm-hppa.h, blockframe.c: Update.
1826 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1827 * m68k-tdep.c, alpha-tdep.c: Ditto.
1828
1829 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1830 * mips-tdep.c: Ditto.
1831
1832 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1833
1834 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1835 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1836 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1837 * gdbarch.c, gdbarch.h: Re-generate.
1838 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1839 (CALL_DUMMY_LOCATION): Delete macro definition.
1840 (PC_IN_CALL_DUMMY): Delete macro definitions.
1841
1842 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1843 default is already generic_pc_in_call_dummy.
1844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1845 * v850-tdep.c (v850_gdbarch_init): Ditto.
1846 * sh-tdep.c (sh_gdbarch_init): Ditto.
1847 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1848 * mips-tdep.c (mips_gdbarch_init): Ditto.
1849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1851 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1852 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1853 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1854 * avr-tdep.c (avr_gdbarch_init): Ditto.
1855
1856 * arm-tdep.c (arm_gdbarch_init): Do not set
1857 use_generic_dummy_frames, default is already 1.
1858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1859 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1860 * v850-tdep.c (v850_gdbarch_init): Ditto.
1861 * sh-tdep.c (sh_gdbarch_init): Ditto.
1862 * s390-tdep.c (s390_gdbarch_init): Ditto.
1863 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1864 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1865 * mips-tdep.c (mips_gdbarch_init): Ditto.
1866 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1868 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1869 * i386-tdep.c (i386_gdbarch_init): Ditto.
1870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1871 * frv-tdep.c (frv_gdbarch_init): Ditto.
1872 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1873 * cris-tdep.c (cris_gdbarch_init): Ditto.
1874 * avr-tdep.c (avr_gdbarch_init): Ditto.
1875
1876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1877 call_dummy_location, default is already AT_ENTRY_POINT.
1878 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1879 * v850-tdep.c (v850_gdbarch_init): Ditto.
1880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1881 * sh-tdep.c (sh_gdbarch_init): Ditto.
1882 * s390-tdep.c (s390_gdbarch_init): Ditto.
1883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1885 * mips-tdep.c (mips_gdbarch_init): Ditto.
1886 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1888 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1889 * i386-tdep.c (i386_gdbarch_init): Ditto.
1890 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1891 * frv-tdep.c (frv_gdbarch_init): Ditto.
1892 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1893 * cris-tdep.c (cris_gdbarch_init): Ditto.
1894 * avr-tdep.c (avr_gdbarch_init): Ditto.
1895 * arm-tdep.c (arm_gdbarch_init): Ditto.
1896 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1897
1898 2002-11-28 Andrew Cagney <cagney@redhat.com>
1899
1900 * frame.h: Update comments on set_current_frame, create_new_frame,
1901 flush_cached_frames, reinit_frame_cache, select_frame and
1902 selected_frame.
1903
1904 2002-11-27 Andrew Cagney <cagney@redhat.com>
1905
1906 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1907 deprecated pc_in_call_dummy function.
1908 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1909 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1910 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1911 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1912 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1913
1914 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1915
1916 * Makefile.in: Remove Tix dependencies.
1917 * acinclude.m4: Ditto.
1918 * aclocal.m4: Ditto.
1919 * configure.in: Ditto.
1920 * configure: Regenerated.
1921
1922 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1923
1924 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1925 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1926 * gdbarch.c: Re-generate.
1927
1928 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1929
1930 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1931 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1932 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1933 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1934 pc_in_call_dummy_at_entry_point.
1935 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1936 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1937 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1938 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1939 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1940 pc_in_call_dummy_on_stack.
1941 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1942 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1943 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1944 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1945 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1946
1947 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1948
1949 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1950 pc_in_call_dummy_before_text_end
1951 (deprecated_pc_in_call_dummy_after_text_end): Rename
1952 pc_in_call_dummy_after_text_end.
1953 (deprecated_pc_in_call_dummy_on_stack): Rename
1954 pc_in_call_dummy_on_stack.
1955 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1956 pc_in_call_dummy_at_entry_point.
1957 * m68k-tdep.c (m68k_gdbarch_init): Update.
1958 * s390-tdep.c (s390_gdbarch_init): Update.
1959 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1960 * vax-tdep.c (vax_gdbarch_init): Update.
1961 * sparc-tdep.c (sparc_gdbarch_init): Update.
1962 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1963 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1964 * i386-tdep.c (i386_gdbarch_init): Update.
1965 * frv-tdep.c (frv_gdbarch_init): Update.
1966 * cris-tdep.c (cris_gdbarch_init): Update.
1967 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1968 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1969 (deprecated_pc_in_call_dummy_after_text_end)
1970 (deprecated_pc_in_call_dummy_on_stack)
1971 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1972 * alpha-tdep.c (alpha_gdbarch_init): Update.
1973
1974 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1975
1976 * acconfig.h (HAVE_PREAD64): Add.
1977 * configure.in: Check for pread64.
1978 * config.in: Regenerated.
1979 * configure: Regenerated.
1980 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1981 * linux-proc.c (linux_proc_xfer_memory): New function.
1982 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1983
1984 2002-11-25 David Carlton <carlton@math.stanford.edu>
1985
1986 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1987 pdi's with no name.
1988
1989 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1990
1991 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1992 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1993
1994 2002-11-25 Jim Blandy <jimb@redhat.com>
1995
1996 * symfile.c (init_objfile_sect_indices): New function.
1997 (default_symfile_offsets): Move the section-index-initializing
1998 stuff into init_objfile_sect_indices, and call that.
1999
2000 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2001 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2002
2003 * symfile.c (syms_from_objfile): Adjust indentation.
2004
2005 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2006 || info_verbose isn't true.
2007
2008 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2009
2010 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2011 default to get_frame_base.
2012 * gdbarch.h, gdbarch.c: Regenerate.
2013 * arch-utils.c (default_frame_address): Delete function.
2014 * arch-utils.h (default_frame_address): Delete declaration
2015
2016 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2017
2018 * varobj.c (find_frame_addr_in_frame_chain):
2019 Use get_frame_base instead of FRAME_FP,
2020 obvious fix.
2021
2022 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2023
2024 * frame.h (FRAME_FP): Delete macro.
2025 (get_frame_base): New function declaration.
2026 * frame.c (get_frame_base): New function.
2027 (get_frame_id): Use ->frame.
2028 (frame_find_by_id): Rewrite to use get_frame_id.
2029 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2030 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2031 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2032 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2033 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2034 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2035 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2036
2037 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2038
2039 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2040
2041 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2042
2043 * frame.c (set_unwind_by_pc): Revert change below, use
2044 PC_IN_CALL_DUMMY.
2045 (get_prev_frame): Ditto.
2046
2047 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2048
2049 * dummy-frame.c (pc_in_dummy_frame): New function.
2050 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2051 (find_dummy_frame): Update comment.
2052 (generic_pop_current_frame): Use get_frame_type.
2053 * dummy-frame.h (pc_in_dummy_frame): Declare.
2054 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2055 (create_new_frame): Use pc_in_dummy_frame.
2056 (get_prev_frame): Use pc_in_dummy_frame.
2057 (frame_saved_regs_register_unwind): Use get_prev_frame.
2058 (deprecated_generic_get_saved_register): Use get_prev_frame.
2059
2060 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2061
2062 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2063 from here ...
2064 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2065 (varobj_create): Note that frame ID should be used.
2066 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2067
2068 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2069
2070 * breakpoint.c: Include "gdb_assert.h".
2071 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2072 not being used.
2073 * Makefile.in (breakpoint.o): Update dependencies.
2074 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2075 deprecated_frame_in_dummy.
2076 * stack.c (print_frame_info_base): Ditto.
2077 (frame_info): Ditto.
2078 (print_frame_info_base): Ditto. Delete dead code.
2079
2080 2002-11-23 Andreas Schwab <schwab@suse.de>
2081
2082 * Makefile.in (m68k_tdep_h): Define.
2083 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2084 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2085 * m68k-tdep.c: Move register number enum ...
2086 * m68k-tdep.h: ... to this new file and rename the constants from
2087 E_* to M68K_*. All uses changed.
2088 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2089 * abug-rom.c: Include "m68k-tdep.h". Use
2090 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2091 * cpu32bug-rom.c: Likewise.
2092 * dbug-rom.c: Likewise.
2093 * m68k-tdep.c: Likewise.
2094 * m68klinux-nat.c: Likewise.
2095 * remote-est.c: Likewise.
2096 * rom68k-rom.c: Likewise.
2097 * config/m68k/tm-linux.h: Likewise.
2098
2099 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2100
2101 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2102 dummy frame initialization code.
2103 * mips-tdep.c (mips_gdbarch_init): Ditto.
2104
2105 2002-11-22 Christopher Faylor <cgf@redhat.com>
2106
2107 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2108 attach will hang.
2109
2110 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2111
2112 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2113 to default_frame_address.
2114 * gdbarch.h, gdbarch.c: Re-generate.
2115
2116 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2117 or frame_locals_address to default_frame_address.
2118 * m68k-tdep.c (m68k_gdbarch_init): Update.
2119 * i386-tdep.c (i386_gdbarch_init): Update.
2120 * frv-tdep.c (frv_gdbarch_init): Update.
2121 * sh-tdep.c (sh_gdbarch_init): Update.
2122 * v850-tdep.c (v850_gdbarch_init): Update.
2123 * sparc-tdep.c (sparc_gdbarch_init): Update.
2124 * mips-tdep.c (mips_gdbarch_init): Update.
2125 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2126 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2128
2129 * cris-tdep.c (cris_frame_args_address): Delete function.
2130 (cris_frame_locals_address): Delete function.
2131 (cris_gdbarch_init): Do not set frame_args_address or
2132 frame_locals_address.
2133
2134 2002-11-22 Michael Snyder <msnyder@redhat.com>
2135
2136 * thread-db.c (thread_db_load): Tell the user what's going on
2137 if dlopen fails on libthread_db.
2138
2139 2002-11-23 Andreas Schwab <schwab@suse.de>
2140
2141 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2142 invariant return values.
2143
2144 2002-11-22 Andreas Schwab <schwab@suse.de>
2145
2146 * valops.c (value_slice): Move declaration of `offset' to avoid
2147 warning.
2148
2149 2002-11-22 Christopher Faylor <cgf@redhat.com>
2150
2151 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2152 (struct so_stuff): Add end_addr field.
2153 (register_loaded_dll): Calculate and store end address of loaded dll.
2154 (solib_address): New function.
2155 (child_solib_loaded_library_pathname): Pass carefully constructed
2156 section info to safe_symbol_file_add rather than ignoring it.
2157 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2158 DLL is loaded.
2159 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2160 (child_create_inferior): Fix a compiler warning.
2161 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2162 (solib_address): Declare new function.
2163
2164 2002-11-22 Andreas Schwab <schwab@suse.de>
2165
2166 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2167 and FPS registers.
2168
2169 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2170
2171 * maint.c (_initialize_maint_cmds): Fix typo. From
2172 Francesco Potorti` <pot@gnu.org>.
2173
2174 2002-11-21 Andrew Cagney <cagney@redhat.com>
2175
2176 * mips-tdep.c (mips_dump_tdep): Delete references to
2177 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2178 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2179 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2180 * printcmd.c (build_address_symbolic): Delete calls to
2181 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2182 (address_info): Ditto.
2183 Fix PR gdb/773.
2184
2185 2002-11-19 Klee Dienes <kdienes@apple.com>
2186 Adam Fedor <fedor@gnu.org>
2187
2188 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2189 the ability to explicitly specify the quote characters and word
2190 break characters; if NULL is specified for either, use the old
2191 behavior of using the characters used by the completer.
2192 (skip_chars): New function. Convenience wrapper around
2193 skip_quoted_chars to provide the original skip_chars behavior.
2194 * completer.h (skip_quoted_chars): Add prototype.
2195
2196 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2197
2198 Problems reported by Paul Eggert.
2199 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2200
2201 2002-11-19 Andreas Schwab <schwab@suse.de>
2202
2203 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2204 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2205 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2206 (m68k_linux_frame_saved_pc): Move to ...
2207 * m68klinux-tdep.c: ... here. New file.
2208 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2209 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2210
2211 2002-11-19 Adam Fedor <fedor@gnu.org>
2212
2213 * objc-exp.y: Revert to old skip_quoted usage.
2214
2215 2002-11-19 Adam Fedor <fedor@gnu.org>
2216
2217 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2218 (objc_lang_h): Define.
2219 (YYFILES): Add objc-exp.tab.c.
2220 (local-maintainer-clean): Remove objc-exp.tab.c.
2221 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2222
2223 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2224
2225 * p-exp.y (typecast rule): Add automatic dereference of
2226 pascal classes if needed.
2227 (THIS): Set current_type.
2228 Automatically dereference pascal classes.
2229 (typebase rule): Add ^typebase recognition.
2230
2231 2002-11-18 Adam Fedor <fedor@gnu.org>
2232
2233 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2234 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2235 (op_name): Handle OP_OBJC_SELF.
2236 * Makefile.in (expprint.o): Add additional depends.
2237
2238 2002-11-18 Adam Fedor <fedor@gnu.org>
2239
2240 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2241 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2242 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2243 * objc-exp.y: Likewise.
2244
2245 2002-11-18 Adam Fedor <fedor@gnu.org>
2246
2247 * gdb/parser-defs.h: (struct objc_class_str): New structure
2248 for parsing ObjC classes.
2249
2250 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2251
2252 * stack.c (frame_relative_level): Copy function from here ...
2253 * frame.c (frame_relative_level): ...to here.
2254
2255 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2256
2257 * frame.h (enum frame_type): Define.
2258 (get_frame_type): Declare.
2259 (struct frame_info): Add field `type'. Delete field
2260 signal_handler_caller.
2261 (deprecated_set_frame_signal_handler_caller): Declare.
2262 * frame.c (get_frame_type): New function.
2263 (deprecated_set_frame_type): New function.
2264 (create_new_frame): Set the frame's type.
2265 (get_prev_frame): Similar.
2266 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2267 * s390-tdep.c: Ditto.
2268 * m68klinux-nat.c: Ditto.
2269 * ns32k-tdep.c: Ditto.
2270 * x86-64-linux-tdep.c: Ditto.
2271 * vax-tdep.c: Ditto.
2272 * rs6000-tdep.c: Ditto.
2273 * ppc-linux-tdep.c: Ditto.
2274 * i386-interix-tdep.c: Ditto.
2275 * mips-tdep.c: Ditto.
2276 * m68k-tdep.c: Ditto.
2277 * hppa-tdep.c: Ditto.
2278 * ia64-tdep.c: Ditto.
2279 * cris-tdep.c: Ditto.
2280 * arm-tdep.c: Ditto.
2281 * alpha-tdep.c: Ditto.
2282 * i386-tdep.c: Ditto.
2283 * stack.c: Ditto.
2284 * ada-lang.c: Ditto.
2285 * blockframe.c: Update.
2286 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2287 deprecated_set_frame_type instead of signal_handler_caller.
2288 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2289 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2290 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2291
2292 2002-11-18 Klee Dienes <kdienes@apple.com>
2293
2294 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2295
2296 2002-11-18 Klee Dienes <kdienes@apple.com>
2297
2298 * buildsym.c (pop_context): Add comment.
2299
2300 2002-11-18 Klee Dienes <kdienes@apple.com>
2301
2302 * buildsym.h (pop_context): Convert to function, defined in
2303 buildsym.c.
2304 * buildsym.c: Include gdb_assert.h.
2305 (pop_context): Implement as C function. Add check for stack
2306 underflow.
2307 * dbxread.c (process_one_symbol): Complain and stop processing
2308 that symbol if we are already at the top of the context stack for
2309 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2310 when processing N_RBRAC.
2311
2312 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2313
2314 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2315 define.
2316 (struct target_waitstatus): Add opaque definition.
2317 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2318 * exec.c (init_exec_ops): Likewise.
2319 * fork-child.c (clone_and_follow_inferior): Remove.
2320 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2321 * inferior.h (clone_and_follow_inferior): Remove prototype.
2322 * infrun.c (follow_fork_mode_both): Remove.
2323 (follow_fork_mode_kind_names): Remove commented out "both".
2324 (follow_inferior_fork): Remove follow_fork_mode_both support.
2325 * inftarg.c (child_clone_and_follow_inferior): Remove.
2326 (child_post_follow_inferior_by_clone): Remove.
2327 (init_child_ops): Don't set to_clone_and_follow_inferior
2328 or to_post_follow_inferior_by_clone.
2329 * target.c (default_clone_and_follow_inferior): Remove.
2330 (cleanup_target): Don't set to_clone_and_follow_inferior
2331 or to_post_follow_inferior_by_clone.
2332 (find_default_clone_and_follow_inferior): Remove.
2333 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2334 (debug_to_clone_and_follow_inferior): Remove.
2335 (debug_to_post_follow_inferior_by_clone): Remove.
2336 (setup_target_debug): Don't set to_clone_and_follow_inferior
2337 or to_post_follow_inferior_by_clone.
2338 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2339 and to_post_follow_inferior_by_clone.
2340 (child_clone_and_follow_inferior): Remove prototype.
2341 (child_post_follow_inferior_by_clone): Remove prototype.
2342 (target_clone_and_follow_inferior): Remove macro.
2343 (target_post_follow_inferior_by_clone): Remove macro.
2344 (find_default_clone_and_follow_inferior): Remove prototype.
2345
2346 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2347
2348 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2349 inferior_has_vforked, and inferior_has_execd instead of
2350 target_has_forked, target_has_vforked, and target_has_execd.
2351 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2352 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2353 (CHILD_WAIT): Define.
2354 (child_wait): Add prototype.
2355 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2356 Add prototype.
2357 (hpux_has_vforked): Likewise, from child_has_vforked.
2358 (hpux_has_execd): Likewise, from child_has_execd.
2359 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2360 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2361 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2362 and hpux_has_syscall_event instead of the target hooks.
2363 * infrun.c (inferior_has_forked, inferior_has_vforked)
2364 (inferior_has_execd): New functions.
2365 * inftarg.c (not_same_real_pid): Remove.
2366 (child_wait): Remove references to not_same_real_pid,
2367 target_has_forked, target_has_vforked, target_has_execd,
2368 and target_has_syscall_event.
2369 (child_has_forked, child_has_vforked, child_has_execd)
2370 (child_has_syscall_event): Remove.
2371 (init_child_ops): Remove references to child_has_forked,
2372 child_has_vforked, child_has_execd, and child_has_syscall_event.
2373 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2374 (hpux_has_vforked): Likewise, from child_has_vforked.
2375 (hpux_has_execd): Likewise, from child_has_execd.
2376 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2377 * target.c (cleanup_target): Remove references to
2378 to_has_forked, to_has_vforked, to_has_execd, and
2379 to_has_syscall_event.
2380 (update_current_target): Likewise.
2381 (setup_target_debug): Likewise.
2382 (debug_to_has_forked): Remove.
2383 (debug_to_has_vforked): Remove.
2384 (debug_to_has_execd): Remove.
2385 (debug_to_has_syscall_event): Remove.
2386 * target.h (struct target_ops): Remove to_has_forked.
2387 to_has_vforked, to_has_execd, and to_has_syscall_event.
2388 (child_has_forked, child_has_vforked, child_has_execd)
2389 (child_has_syscall_event): Remove prototypes.
2390 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2391 prototypes.
2392 (target_has_forked, target_has_vforked, target_has_execd)
2393 (target_has_syscall_event): Remove macros.
2394
2395 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2396
2397 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2398 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2399 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2400 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2401 * target.c (cleanup_target): Remove reference to
2402 to_can_follow_vfork_prior_to_exec.
2403 (update_current_target): Likewise.
2404 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2405 (setup_target_debug): Remove reference to
2406 to_can_follow_vfork_prior_to_exec.
2407 * target.h (struct target_ops): Remove
2408 to_can_follow_vfork_prior_to_exec.
2409 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2410 (target_can_follow_vfork_prior_to_exec): Remove definition.
2411 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2412 define.
2413 * infrun.c (follow_vfork_when_exec): Remove.
2414 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2415 (follow_exec): Likewise.
2416 (handle_inferior_event): Likewise.
2417 (keep_going): Likewise.
2418
2419 2002-11-15 Andrew Cagney <cagney@redhat.com>
2420
2421 * frame.c (generic_unwind_get_saved_register): Make static.
2422 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2423 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2424 defaults to generic_unwind_get_saved_register.
2425 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2426 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2427 * frv-tdep.c (frv_gdbarch_init): Ditto.
2428 * i386-tdep.c (i386_gdbarch_init): Ditto.
2429 * s390-tdep.c (s390_gdbarch_init): Ditto.
2430 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2431 * v850-tdep.c (v850_gdbarch_init): Ditto.
2432 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2433 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2434 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2435
2436 2002-11-15 Andrew Cagney <cagney@redhat.com>
2437
2438 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2439 i386-tdep.c.
2440
2441 2002-11-15 Andrew Cagney <cagney@redhat.com>
2442
2443 * frame.h (sigtramp_saved_pc): Delete declaration.
2444 * blockframe.c (sigtramp_saved_pc): Delete function.
2445 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2446 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2447 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2448 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2449
2450 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2451
2452 * frame.c (frame_pc_unwind): New function.
2453 (frame_saved_regs_pc_unwind): New function.
2454 (frame_register_unwind): Pass unwind_cache instead of
2455 register_unwind_cache.
2456 (set_unwind_by_pc): Add unwind_pc parameter, set.
2457 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2458 (get_prev_frame): Ditto.
2459 * frame.h (frame_pc_unwind_ftype): Declare.
2460 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2461 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2462 (frame_pc_unwind): Declare.
2463 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2464 (struct dummy_frame): Add comment mentioning that values are for
2465 previous frame.
2466 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2467 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2468 (generic_file_frame_chain_valid): Ditto.
2469 * stack.c (frame_info): Ditto.
2470
2471 2002-11-15 David Carlton <carlton@math.stanford.edu>
2472
2473 * linespec.c (locate_first_half): New function.
2474 (decode_line_1): Move code into locate_first_half.
2475
2476 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2477
2478 * complaints.h: Add comment explaining how to eliminate a
2479 deprecated_complain call.
2480 * complaints.h: Fix spelling errors.
2481
2482 2002-11-15 David Carlton <carlton@math.stanford.edu>
2483
2484 * printcmd.c: Remove #include "disasm.h".
2485
2486 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2487
2488 * frame.h: Move the most relevant interface functions to the start
2489 of the file.
2490
2491 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2492
2493 * regcache.h (deprecated_registers): Rename registers.
2494 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2495 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2496 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2497 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2498 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2499 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2500 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2501 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2502 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2503 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2504 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2505 * v850ice.c: Update.
2506
2507 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2508
2509 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2510 NULL buffer.
2511
2512 2002-11-13 Andrew Cagney <cagney@redhat.com>
2513
2514 * regcache.h (deprecated_read_register_bytes): Rename
2515 read_register_bytes.
2516 (deprecated_write_register_bytes): Rename write_register_bytes.
2517 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2518 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2519 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2520 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2521 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2522 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2523 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2524 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2525 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2526 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2527 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2528 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2529 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2530 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2531
2532 2002-11-13 Jim Blandy <jimb@redhat.com>
2533
2534 * findvar.c (read_var_value): Doc fix.
2535
2536 2002-11-13 Andrew Cagney <cagney@redhat.com>
2537
2538 * regcache.c (struct regcache): Replace passthough_p with
2539 readonly_p.
2540 (regcache_xmalloc): Initialize readonly_p.
2541 (build_regcache): Initialize readonly_p.
2542 (regcache_save): New function.
2543 (regcache_restore): New function.
2544 (regcache_cpy): Re-implement using regcache_save and
2545 regcache_restore.
2546 (regcache_raw_read): Update.
2547 (regcache_cooked_read): When a read-only cache, checked for cached
2548 pseudo register values.
2549 (regcache_raw_write): Assert that the cache is not read-only.
2550 Remove code handling a non-passthrough cache.
2551 * regcache.h (regcache_save): Declare.
2552 (regcache_restore): Declare.
2553
2554 2002-11-13 Andrew Cagney <cagney@redhat.com>
2555
2556 * regcache.c (struct regcache_descr): Add fields
2557 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2558 (init_legacy_regcache_descr): Compute the size of a cooked
2559 register cache and then assign that to sizeof_raw_registers. Set
2560 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2561 (init_legacy_regcache_descr): Ditto.
2562
2563 2002-11-13 Andrew Cagney <cagney@redhat.com>
2564
2565 * regcache.c (register_buffer): Move to near start of file, update
2566 description.
2567 (regcache_raw_read): Use.
2568 (regcache_raw_write): Use.
2569 (struct regcache): Rename raw_registers to registers and
2570 raw_register_valid_p to register_valid_p.
2571 (regcache_xmalloc): Update.
2572 (regcache_xfree): Update.
2573 (register_buffer): Update.
2574 (regcache_cpy): Update.
2575 (regcache_cpy_no_passthrough): Update.
2576 (regcache_valid_p): Update.
2577 (deprecated_grub_regcache_for_registers): Update.
2578 (deprecated_grub_regcache_for_register_valid): Update.
2579 (set_register_cached): Update.
2580 (regcache_raw_write): Update.
2581
2582 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2583
2584 * p-exp.y (name_not_typename): Use copy_name to
2585 set current_type variable for fields of THIS.
2586
2587 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2588
2589 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2590 * monitor.c (init_base_monitor_ops): Likewise.
2591 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2592 * remote-array.c (init_array_ops): Likewise.
2593 * remote-e7000.c (init_e7000_ops): Likewise.
2594 * remote-es.c (init_es1800_ops): Likewise.
2595 (init_es1800_child_ops): Likewise.
2596 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2597 * remote-sim.c (init_gdbsim_ops): Likewise.
2598 * remote-st.c (init_st2000_ops): Likewise.
2599 * sol-thread.c (init_sol_core_ops): Likewise.
2600 (init_sol_thread_ops): Likewise.
2601 * v850ice.c (init_850ice_ops): Likewise.
2602 * win32-nat.c (init_child_ops): Likewise.
2603 * wince.c (init_child_ops): Likewise.
2604
2605 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2606
2607 * utils.c (gdb_realpath): Make rp a constant pointer.
2608
2609 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2610
2611 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2612 a constant buffer; cannonicalize_file_name(); realpath() with a
2613 pathconf() defined buffer, xstrdup().
2614
2615 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2616
2617 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2618 to hang2.C; hang3.c to hang3.C.
2619
2620 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2621
2622 * findvar.c (read_var_value): Reenable TLS code.
2623
2624 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2625 Jim Blandy <jimb@redhat.com>
2626
2627 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2628 * target.c (update_current_target): Add
2629 to_get_thread_local_address.
2630 * target.h (to_get_thread_local_address): Export.
2631 (target_get_thread_local_address): Define.
2632 (target_get_thread_local_address_p): Define.
2633 * thread-db.c: Include solib-svr4.h.
2634 (td_thr_tls_get_addr_p): Define.
2635 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2636 (thread_db_get_thread_local_address): New function.
2637 (init_thread_db_ops): Initialize to_get_thread_local_address.
2638 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2639 * configure: Regenerate.
2640 * config.in: Regenerate.
2641
2642 2002-11-11 David Carlton <carlton@math.stanford.edu>
2643
2644 * linespec.c (set_flags): New function.
2645 (decode_line_1): Move code into set_flags.
2646
2647 2002-11-11 David Carlton <carlton@math.stanford.edu>
2648
2649 * linespec.c (decode_line_1): Move chunks of code to separate
2650 functions.
2651 (initialize_defaults): New function.
2652 (decode_indirect): New function.
2653
2654 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2655
2656 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2657 instead of void_code_ptr.
2658 (sigtramp_saved_pc): Ditto.
2659
2660 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2661 i386_fp_regnum_p.
2662
2663 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2664
2665 * gdbtypes.h (struct main_type): Move artificial flag out of
2666 loc. New member of ``struct field'' named static_kind. Reduce
2667 overloaded meaning of bitsize.
2668 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2669 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2670 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2671
2672 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2673 new fields.
2674 (template_to_fixed_record_type, template_to_static_fixed_type)
2675 (to_record_with_fixed_variant_part): Likewise.
2676 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2677 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2678 * dwarfread.c (struct_type, enum_type): Likewise.
2679 * hpread.c (hpread_read_enum_type)
2680 (hpread_read_function_type, hpread_read_doc_function_type)
2681 (hpread_read_struct_type): Likewise.
2682 * mdebugread.c (parse_symbol): Likewise.
2683
2684 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2685
2686 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2687 * stack.c (print_frame_info_base): Update.
2688 (print_frame_info_base, frame_info): Update.
2689 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2690 (sparc_frame_saved_pc): Update.
2691 * ada-lang.c (find_printable_frame): Update.
2692 * breakpoint.c (deprecated_frame_in_dummy): Update.
2693
2694 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2695
2696 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2697 defined.
2698 (regmap): Extend to cover all registers.
2699 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2700 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2701 definitions.
2702 (fetch_register, sore_register): Simplify.
2703 (old_fetch_inferior_registers, old_store_inferior_registers):
2704 Remove functions.
2705 (cannot_fetch_register, cannot_store_register): Change
2706 implementation to use regmap array to decide which registers
2707 cannot be fetched/stored. This removes $orig_eax from the
2708 registers that cannot be fetched/stored.
2709 (fetch_inferior_registers): Call fetch_register directly instead
2710 of calling old_fetch_inferior_registers.
2711 (store_inferior_registers): Call store_register directly instead
2712 of calling old_store_inferior_registers.
2713 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2714 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2715 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2716
2717 2002-11-09 Klee Dienes <kdienes@apple.com>
2718
2719 * i387-tdep.c (i387_supply_register): When called with NULL as a
2720 buffer, mark the register as not provided (to mirror the behavior
2721 of supply_register).
2722 (i387_supply_fxsave): Ditto.
2723 (i387_supply_fsave): Ditto (inherits the behavior from
2724 i387_supply_register).
2725
2726 2002-11-09 Klee Dienes <kdienes@apple.com>
2727
2728 * blockframe.c (sigtramp_saved_pc): Use
2729 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2730 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2731 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2732
2733 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2734
2735 * frame.c (get_prev_frame): Test prev_p to identify a previously
2736 unwound frame. Initialize prev_p.
2737 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2738 comment.
2739
2740 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2741
2742 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2743 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2744 more comments. Zap dead code.
2745
2746 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2747
2748 * infcmd.c (print_vector_info, print_float_info): Move code that
2749 checks whether the target has any registers and whether there is a
2750 selected frame up, such that it is also used if a target provides
2751 multi-arch definitions of these functions.
2752
2753 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2754
2755 * Makefile.in (DESTDIR): Define.
2756 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2757 prefix.
2758
2759 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2760 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2761
2762 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2763
2764 * i386-linux-tdep.c: Include "reggroups.h".
2765 (i386_linux_register_reggroup_p): New function.
2766 (i386_linux_init_abi): Set register_reggroup_p to
2767 i386_linux_register_reggroup_p.
2768 * i386-tdep.h (i386_register_reggroup_p): Declare.
2769 * i386-tdep.c: Include "reggroups.h".
2770 (i386_init_reggroups): New function.
2771 (i386_add_reggroups): New function.
2772 (i386_register_reggroup_p): New function.
2773 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2774 (_initialize_i386_tdep): Call i386_init_reggroups.
2775 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2776 specific reggroups.
2777
2778 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2779
2780 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2781 request that's available in *BSD.
2782
2783 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2784
2785 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2786 FDOFF_REGNUM.
2787
2788 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2789
2790 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2791 * dummy-frame.c (find_dummy_frame): Rename
2792 generic_find_dummy_frame, make static. Return the dummy frame
2793 instead of the regcache.
2794 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2795 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2796 (dummy_frame_register_unwind): Rename
2797 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2798 * dummy-frame.h (dummy_frame_register_unwind): Rename
2799 generic_call_dummy_register_unwind.
2800
2801 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2802
2803 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2804 except the inclusion of "i386/tm-i386.h", to...
2805 * config/i386/nm-i386v42mp.h: ...here.
2806 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2807
2808 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2809
2810 * Makefile.in (frame.o): Update dependencies.
2811 * blockframe.c (current_frame, frame_obstack_alloc)
2812 (frame_saved_regs_zalloc, get_current_frame)
2813 (set_current_frame, create_new_frame)
2814 (set_unwind_by_pc, get_next_frame)
2815 (flush_cached_frames, reinit_frame_cache)
2816 (frame_saved_regs_register_unwind)
2817 (deprecated_generic_get_saved_register)
2818 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2819 (_initialize_blockframe): Move frame code from here...
2820 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2821 "annotate.h" and "dummy-frame.h".
2822 (_initialize_frame): New function.
2823
2824 2002-11-08 Jim Blandy <jimb@redhat.com>
2825
2826 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2827 when we finish a function a context.
2828 * buildsym.h (outermost_context_p): New macro.
2829 (Bug analyzed by David Edelsohn.)
2830
2831 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2832
2833 * blockframe.c: Include "dummy-frame.h".
2834 (struct dummy_frame, dummy_frame_stack)
2835 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2836 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2837 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2838 (generic_save_call_dummy_addr, generic_pop_current_frame)
2839 (generic_pop_dummy_frame, generic_fix_call_dummy)
2840 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2841 dummy frame code from here...
2842 * dummy-frame.c: ...to here. New file.
2843 * dummy-frame.h: New file.
2844 (generic_call_dummy_register_unwind): Declare.
2845 (generic_find_dummy_frame): Declare.
2846 * Makefile.in (SFILES): Add dummy-frame.c.
2847 (dummy-frame.o): Specify dependencies.
2848 (dummy_frame_h): Define.
2849 (COMMON_OBS): Add dummy-frame.o.
2850 (blockframe.o): Update dependencies.
2851
2852 2002-11-08 Jim Blandy <jimb@redhat.com>
2853
2854 * dwarf2read.c (read_func_scope): Restore local_symbols and
2855 param_symbols after we finish the function context. (Based on a
2856 patch from David Edelsohn.)
2857
2858 2002-11-08 David Carlton <carlton@math.stanford.edu>
2859
2860 * linespec.c (symbol_found): New function.
2861 (minsym_found): New function.
2862 (decode_line_1): Separate out some code into separate functions.
2863
2864 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2865
2866 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2867 the benefit of the interix target.
2868 * i386-tdep.h (i386_frameless_signal_p): Declare.
2869
2870 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2871
2872 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2873 declaration that snuck in from change below.
2874
2875 2002-11-06 Andrew Cagney <cagney@redhat.com>
2876
2877 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2878 all callers.
2879 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2880 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2881 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2882 (i386_mxcsr_regnum_p): new function. Use instead of
2883 MXCSR_REGNUM_P.
2884 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2885 (i386_sse_regnum_p): Declare.
2886 (i386_mxcsr_regnum_p): Declare.
2887 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2888 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2889 (IS_FP_REGNUM): Update definition.
2890 (IS_FPU_CTRL_REGNUM): Update definition..
2891 (IS_SSE_REGNUM): Update definition..
2892 * i386v-nat.c (register_u_addr): Update.
2893 * go32-nat.c (fetch_register): Update.
2894 (store_register): Update.
2895
2896 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2897
2898 Preparation work to convert the hppa targets to multiarch partial.
2899
2900 * hppa-tdep.c: Add new functions replacing macro bodies from
2901 config/pa/tm-hppa.h. These function will be used to initialize
2902 the gdbarch structure. Import some comments from tm-hppa.h,
2903 and place them where appropriate, to avoid loosing them when
2904 we cleanup this file.
2905 (hppa_reg_struct_has_addr): New function.
2906 (hppa_inner_than): New function.
2907 (hppa_stack_align): New function.
2908 (hppa_pc_requires_run_before_use): New function.
2909 (hppa_instruction_nullified): New function.
2910 (hppa_register_byte): New function.
2911 (hppa_register_virtual_type): New function.
2912 (hppa_store_struct_return): New function.
2913 (hppa_cannot_store_register): New function.
2914 (hppa_frame_args_address): New function.
2915 (hppa_frame_locals_address): New function.
2916 (hppa_smash_text_address): New function.
2917 (hppa_coerce_float_to_double): New function. Requires the inclusion
2918 of "language.h".
2919
2920 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2921
2922 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2923 gdbarch-eligible macro to a call to the new associated function
2924 created in hppa-tdep.c.
2925 (INNER_THAN): Likewise.
2926 (STACK_ALIGN): Likewise.
2927 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2928 (INSTRUCTION_NULLIFIED): Likewise.
2929 (REGISTER_BYTE): Likewise.
2930 (REGISTER_VIRTUAL_TYPE): Likewise.
2931 (STORE_STRUCT_RETURN): Likewise.
2932 (CANNOT_STORE_REGISTER): Likewise.
2933 (FRAME_ARGS_ADDRESS): Likewise.
2934 (FRAME_LOCALS_ADDRESS): Likewise.
2935 (SMASH_TEXT_ADDRESS): Likewise.
2936 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2937 (ABOUT_TO_RETURN): Delete, as no longer used.
2938
2939 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2940
2941 * printcmd.c (disassemble_command): Remove obsolete function.
2942 (_initialize_printcmd): Do not create disassemble command here.
2943 * cli/cli-cmds.c (disassemble_command): New function. Implements
2944 disassemble command.
2945 (init_cli_cmds): Create disassemble command here instead.
2946
2947 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2948
2949 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2950
2951 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2952
2953 * regcache.h (regcache_cooked_read_using_offset_hack)
2954 (regcache_cooked_write_using_offset_hack): Delete declarations.
2955 (register_changed): Delete declaration.
2956 * regcache.c (regcache_cooked_read_using_offset_hack)
2957 (regcache_cooked_write_using_offset_hack): Delete functions.
2958 (cooked_xfer_using_offset_hack): Delete function.
2959 (register_changed): Delete function.
2960
2961 2002-11-07 Jim Blandy <jimb@redhat.com>
2962
2963 * macroscope.c: #include "complaints.h".
2964 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2965 but not in the macro table.
2966 * Makefile.in (macroscope.o): Record dependency.
2967
2968 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2969
2970 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2971
2972 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2973
2974 * regcache.c (deprecated_registers_fetched): Update.
2975 * regcache.h (deprecated_registers_fetched): Rename
2976 registers_fetched.
2977 * remote-vxsparc.c (vx_read_register): Update.
2978 * remote-vxmips.c (vx_read_register): Update.
2979 * remote-vx68.c (vx_read_register): Update.
2980 * irix5-nat.c (fetch_core_registers): Update.
2981 * mipsm3-nat.c (fetch_inferior_registers): Update.
2982 * sun3-nat.c (fetch_inferior_registers): Update.
2983 * symm-nat.c (fetch_inferior_registers): Update.
2984 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2985 (fetch_core_registers): Update.
2986 (fetch_kcore_registers): Update.
2987 * mips-nat.c (fetch_inferior_registers): Update.
2988 * corelow.c (get_core_registers): Update.
2989 * a68v-nat.c (fetch_inferior_registers): Update.
2990
2991 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2992
2993 Put in place the framework necessary for multiarching the hppa targets.
2994 * hppa-tdep.c (hppa_gdbarch_init): New function.
2995 (hppa_dump_tdep): New function.
2996 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2997 tdep structure dumper.
2998 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2999 until the multi-arching conversion has partially been completed.
3000
3001 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3002
3003 * valops.c (value_assign): Merge lval_register case into
3004 lval_reg_frame_relative. Use frame_register and
3005 regcache_cooked_write instead of get_saved_register and
3006 write_register_bytes. After flushing the register cache, try to
3007 re-select the selected frame.
3008
3009 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3010
3011 * regcache.h (deprecated_register_valid): Rename register_valid.
3012 * regcache.c: Update.
3013 * ia64-aix-nat.c: Update.
3014 * i386gnu-nat.c: Update.
3015 * alpha-nat.c: Update.
3016 * sparc-nat.c: Update.
3017 * lynx-nat.c: Update.
3018 * remote-mips.c: Update.
3019
3020 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3021
3022 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3023 to end of file, to be more consistent with the pratice followed
3024 by other targets.
3025
3026 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3027
3028 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3029 (print_float_info): Print registers in float_reggroup.
3030 (print_vector_info): Print registers in vector_reggroup.
3031 (default_print_registers_info): When all, print registers in
3032 all_reggroup. Otherwize, print registers in general_reggroup.
3033 (registers_info): Rewrite. Add support for register groups.
3034 Eliminate a goto.
3035
3036 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3037
3038 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3039 ages.
3040 (symtab_symbol_info): Remove eons old ifdeffed out code.
3041 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3042 command.
3043
3044 2002-11-06 Theodore A. Roth <troth@openavr.org>
3045
3046 * c-exp.y: Add missing semi-colons.
3047 * f-exp.y: Add missing semi-colons.
3048 * m2-exp.y: Add missing semi-colons.
3049 * p-exp.y: Add missing semi-colons.
3050 Add empty action to start rule to avoid a type clash error when
3051 building with bison >= 1.50.
3052
3053 2002-11-06 Jim Blandy <jimb@redhat.com>
3054
3055 * macrotab.h (struct macro_source_file): Doc fix.
3056
3057 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3058
3059 * varobj.c (child_exists, cplus_number_of_children): Change
3060 STREQ macro references to strcmp.
3061 (cplus_name_of_child): Change code to handle the fact that
3062 fields are not necessarily contiguous with regards to their
3063 access control. This is a fix for PR gdb/792.
3064
3065 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3066
3067 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3068 * gdbarch.h, gdbarch.c: Regnerate.
3069 * frame.h (frame_register): Declare.
3070 * frame.c (frame_register): New function.
3071 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3072 GET_SAVED_REGISTER, otherwize call
3073 generic_unwind_get_saved_register.
3074 (frame_register_read): Use frame_register instead of
3075 get_saved_register.
3076
3077 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3078
3079 From Jim Ingham <jingham@apple.com>:
3080 * event-top.c (gdb_disable_readline): New function.
3081 (_initialize_event_loop): Move comment.
3082
3083 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3084
3085 * event-loop.c (start_event_loop): Add comment.
3086 Update copyright.
3087
3088 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3089
3090 * infcmd.c (default_print_registers_info): Do not call
3091 PRINT_REGISTER_HOOK.
3092
3093 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3094
3095 * sparc-tdep.c (sparc_print_register_hook): Make static.
3096 (sparc_print_registers_info): New function.
3097 (sparc_do_registers_info): New function.
3098 (sparclet_print_registers_info): New function.
3099 (sparclet_do_registers_info): New function.
3100 (do_sparc_print_registers_info): New function.
3101 (sparc_print_registers): New static function, clone of infcmd.c's
3102 default_print_registers_info.
3103 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3104 (sparclet_do_registers_info): Declare.
3105 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3106 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3107 Re-define.
3108 (sparc_do_registers_info): Declare.
3109 (PRINT_REGISTER_HOOK): Delete macro.
3110 (sparc_print_register_hook): Delete declaration.
3111
3112 2002-11-05 David Carlton <carlton@math.stanford.edu>
3113
3114 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3115 functions.
3116 (lookup_symbol_aux_local): New function.
3117 (lookup_symbol_aux_symtabs): New function.
3118 (lookup_symbol_aux_psymtabs): New function.
3119
3120 2002-11-05 David Carlton <carlton@math.stanford.edu>
3121
3122 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3123 previous values of 'objfile' and 'block'.
3124
3125 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3126
3127 * values.c (value_change_enclosing_type): Set
3128 enclosing_type field correctly also for the case where
3129 more memory needs to be allocated.
3130
3131 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3132
3133 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3134 of puts_filtered.
3135
3136 * i387-tdep.c (i387_print_float_info): Replace calls to
3137 register_read and deprecated_read_register_gen with calls to
3138 frame_register_read, and make the necessary adjustments to the
3139 surrounding code.
3140
3141 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3142
3143 * gdbarch.sh (register_reggroup_p): Allow default value.
3144 * gdbarch.h, gdbarch.c: Regenerate.
3145
3146 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3147
3148 * regcache.h: Add coment indicating replacements for deprecated
3149 functions.
3150
3151 2002-11-02 Andrew Cagney <cagney@redhat.com>
3152
3153 * reggroups.h, reggroups.c: New files.
3154 * regcache.c: Include "reggroups.h".
3155 (enum regcache_dump_what): Add `regcache_dump_groups'.
3156 (regcache_dump): Contract size of the "Type" column. When
3157 specified, dump the register's groups.
3158 (maintenance_print_register_groups): New function.
3159 (_initialize_regcache): Add command `maint print register-groups'.
3160 * Makefile.in (COMMON_OBS): Add reggroups.o
3161 (SFILES): Add reggroups.c.
3162 (reggroups_h): Define.
3163 (regcache.o, gdbarch.o): Update dependencies.
3164 (reggroups.o): Specify dependencies.
3165 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3166 Add opaque declaration for `struct reggroup' in generated .h file.
3167 Include "reggroups.h" in generated .c file.
3168 gdbarch.h, gdbarch.c: Re-generate.
3169
3170 2002-11-02 Andrew Cagney <cagney@redhat.com>
3171
3172 * regcache.h (deprecated_read_register_gen): Rename
3173 read_register_gen.
3174 (deprecated_write_register_gen): Rename write_register_gen.
3175 * i387-tdep.c: Update.
3176 * x86-64-linux-nat.c: Update
3177 * wince.c: Update.
3178 * thread-db.c: Update.
3179 * win32-nat.c: Update.
3180 * mips-tdep.c: Update.
3181 * d10v-tdep.c: Update.
3182 * cris-tdep.c: Update.
3183 * remote-sim.c: Update.
3184 * remote-rdi.c: Update.
3185 * remote-rdp.c: Update.
3186 * frame.c: Update.
3187 * target.c: Update.
3188 * blockframe.c: Update.
3189 * x86-64-tdep.c: Update.
3190 * xstormy16-tdep.c: Update.
3191 * sh-tdep.c: Update.
3192 * s390-tdep.c: Update.
3193 * rs6000-tdep.c: Update.
3194 * sparc-tdep.c: Update.
3195 * i386-tdep.c: Update.
3196 * dwarf2cfi.c: Update.
3197 * regcache.c: Update.
3198
3199 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3200
3201 New interix-specific files:
3202 * config/i386/nm-interix.h: New file.
3203 * config/i386/interix.mh: New file.
3204 * config/i386/interix.mt: New file.
3205 * i386-interix-nat.c: New file.
3206 * i386-interix-tdep.c: New file.
3207
3208 2002-11-01 Andrew Cagney <cagney@redhat.com>
3209
3210 * frame.h (deprecated_generic_get_saved_register): Rename
3211 generic_get_saved_register.
3212 * blockframe.c (deprecated_generic_get_saved_register): Update.
3213 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3214 (xstormy16_frame_saved_register): Update.
3215 * sh-tdep.c (sh_gdbarch_init): Update.
3216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3217 * ia64-tdep.c (ia64_get_saved_register): Update.
3218 * cris-tdep.c (cris_gdbarch_init): Update.
3219 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3220 * arm-tdep.c (arm_gdbarch_init): Update.
3221
3222 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3223
3224 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3225
3226 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3227
3228 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3229 trampolines in sigaction.
3230
3231 2002-10-31 Andrew Cagney <cagney@redhat.com>
3232
3233 * h8300-tdep.c: Include "gdb_assert.h".
3234 (h8300_print_register): Add gdbarch, file and frame parameters.
3235 Use frame_read_unsigned_register to read the register's value.
3236 Use fprintf_filtered to display output.
3237 (h8300_print_registers_info): Replace h8300_do_registers_info.
3238 (h8300_gdbarch_init): Set print_registers_info.
3239
3240 2002-10-31 Andrew Cagney <cagney@redhat.com>
3241
3242 * frame.c (frame_read_unsigned_register): New function.
3243 (frame_read_signed_register): New function.
3244 * frame.h (frame_read_unsigned_register): Declare.
3245 (frame_read_signed_register): Declare.
3246
3247 2002-10-31 Andrew Cagney <cagney@redhat.com>
3248
3249 * h8500-tdep.c (h8500_print_registers_info): New static function,
3250 clone of infcmd.c's default_print_registers_info.
3251 (h8500_do_registers_info): New funtion.
3252 (h8500_print_register_hook): Rename print_register_hook, make
3253 static.
3254
3255 * config/h8500/tm-h8500.h: Update copyright.
3256 (DEPRECATED_DO_REGISTERS_INFO): Define.
3257 (h8500_do_registers_info: Declare.
3258 (PRINT_REGISTER_HOOK): Delete macro.
3259 (print_register_hook): Delete function.
3260
3261 2002-10-31 Andrew Cagney <cagney@redhat.com>
3262
3263 * z8k-tdep.c (z8k_print_register_hook): Make static.
3264 (z8k_print_registers_info): New static function, clone of
3265 infcmd.c's default_print_registers_info.
3266 (z8k_do_registers_info): New function. Wrap
3267 z8k_print_registers_info.
3268 * config/z8k/tm-z8k.h: Update copyright.
3269 (PRINT_REGISTER_HOOK): Delete macro.
3270 (z8k_print_register_hook): Delete declaration.
3271 (DEPRECATED_DO_REGISTERS_INFO): Define.
3272 (z8k_do_registers_info): Declare.
3273
3274 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3275
3276 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3277 as this is already provided by value.h, and was actually causing
3278 a compilation error because of a conflict in parameter type
3279 declaration due to a missing const keyword.
3280 (low_text_segment_addres): Fix a compilation warning.
3281
3282 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3283
3284 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3285 registers without a name.
3286 (mips_linux_cannot_store_register): Don't store registers without
3287 a name.
3288
3289 2002-10-28 David Carlton <carlton@math.stanford.edu>
3290
3291 * symtab.c (find_addr_symbol): Delete. (It was already commented
3292 out.)
3293 * symtab.h: Delete prototype for find_addr_symbol.
3294
3295 2002-10-26 Andrew Cagney <cagney@redhat.com>
3296
3297 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3298 DO_REGISTERS_INFO.
3299 gdbarch.h, gdbarch.c: Re-generate.
3300 * infcmd.c (default_print_registers_info): Update reference.
3301 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3302 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3303 * sh-tdep.c (sh_gdbarch_init): Ditto.
3304 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3306
3307 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3308
3309 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3310 cfi_init_extra_frame_info.
3311 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3312 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3313
3314 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3315 target where necessary. Add more comments and remove the ones
3316 that don't provide any useful information.
3317
3318 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3319 deprecated_read_register_dummy with
3320 frame_unwind_unsigned_register.
3321
3322 * i386-tdep.c (i386_extract_struct_value_address): Use
3323 regcache_raw_read_unsigned instead of
3324 regcache_cooked_read_unsigned since we know that the register
3325 we're reading isn't a pseudo register. Rename variable 'val' into
3326 the more descriptive 'addr'.
3327
3328 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3329 (x86_64_push_return_address): Add comment.
3330 (x86_64_pop_frame): Make static.
3331 (examine_argument): Clarify comment.
3332 (x86_64_skip_prologue): Make prolog_expact variable static.
3333
3334 * dwarf2cfi.c: Fix some formatting problems.
3335 (context_cpy, read_encoded_pointer): Clarify comments.
3336
3337 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3338 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3339 i386 target back into x86_64_gdbarch_init. Add some comments and
3340 remove meaningless ones.
3341
3342 2002-10-25 Andrew Cagney <cagney@redhat.com>
3343
3344 * complaints.h (struct deprecated_complaint): Rename `struct
3345 complaint'.
3346 * complaints.c (complain): Update.
3347 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3348 incorrect comment indicating that "symfile.h" was being included
3349 for the `struct complaint' definition.
3350 * remote-vx.c: Update.
3351 * objc-lang.c: Update.
3352 * xcoffread.c: Update.
3353 * hpread.c: Update.
3354 * mdebugread.c: Update.
3355 * stabsread.c: Update.
3356 * dwarf2read.c: Update.
3357 * dwarfread.c: Update.
3358 * elfread.c: Update.
3359 * coffread.c: Update.
3360 * stabsread.h: Update.
3361 * dbxread.c: Update.
3362 * buildsym.c: Update.
3363 * gdbtypes.c: Update.
3364 * macrotab.c: Update.
3365
3366 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3367
3368 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3369 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3370 (x86_64_init_abi): ...new function.
3371
3372 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3373 * i386v-nat.c: Include "i386-tdep.h".
3374
3375 2002-10-25 Andrew Cagney <cagney@redhat.com>
3376
3377 * gdbtypes.c (address_space_name_to_int): Update.
3378 (address_space_int_to_name): Update.
3379 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3380 multi-arch predicate.
3381 (address_class_name_to_type_flags): Ditto.
3382 * gdbarch.h, gdbarch.c: Re-generate.
3383
3384 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3385
3386 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3387
3388 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3389
3390 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3391
3392 * symtab.h (INIT_SAL): Delete macro.
3393 (init_sal): Export.
3394 * symtab.c (init_sal): New function.
3395
3396 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3397 to init_sal function call.
3398 (find_sal_from_funcs_and_line): Ditto.
3399 (all_sals_for_line): Ditto.
3400 * breakpoint.c (create_internal_breakpoint): Ditto.
3401 (create_fork_vfork_event_catchpoint): Ditto.
3402 (create_exec_event_catchpoint): Ditto.
3403 (parse_breakpoint_sals): Ditto.
3404 (watch_command_1): Ditto.
3405 (handle_gnu_4_16_catch_command): Ditto.
3406 (clear_command): Ditto.
3407 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3408 * infcmd.c (run_stack_dummy): Ditto.
3409 * infrun.c (process_event_stop_test): Ditto.
3410 (check_sigtramp2): Ditto.
3411 (step_over_function): Ditto.
3412 * linespec.c (decode_line_2): Ditto.
3413 (decode_line_1): Ditto.
3414 * source.c (line_info): Ditto.
3415 * symtab.c (find_pc_sect_line): Ditto.
3416
3417 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3418
3419 * dwarf2cfi.c (struct context)
3420 (struct context_reg): Moved to dwarf2cfi.h
3421 (context_alloc, frame_state_alloc, context_cpy):
3422 Made extern instead of static, removed prototypes.
3423 * dwarf2cfi.h (struct context)
3424 (struct context_reg): New, moved from dwarf2cfi.c
3425 (context_alloc, frame_state_alloc, context_cpy):
3426 New prototypes.
3427 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3428 Changed from static to extern.
3429 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3430 (LINUX_SIGCONTEXT_FP_OFFSET)
3431 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3432 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3433 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3434 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3435 set_gdbarch_*() calls now use x86-64 specific functions
3436 instead of DWARF2 CFI ones.
3437 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3438 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3439 (x86_64_init_extra_frame_info): New prototypes.
3440
3441 2002-10-23 David Carlton <carlton@math.stanford.edu>
3442
3443 * linespec.c: #include "parser-defs.h".
3444 Delete prototype for find_template_name_end.
3445 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3446
3447 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3448
3449 * NEWS: add recent mi fixes.
3450 * varobj.c (struct varobj): Add new "updated" flag.
3451 (new_variable): Default "updated" flag to 0.
3452 (varobj_set_value): Set "updated" flag to 1 if value
3453 changes.
3454 (varobj_update): Check varobj "updated" flag before
3455 comparing old and refreshed values. Fix for
3456 PR gdb/702.
3457
3458 2002-10-23 David Carlton <carlton@math.stanford.edu>
3459
3460 * parse.c (parse_exp_1): Use BLOCK_START.
3461 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3462 SYMBOL_BLOCK_VALUE.
3463 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3464
3465 2002-10-23 David Carlton <carlton@math.stanford.edu>
3466
3467 * symtab.c: Delete cplusplus_hint.
3468 Delete prototype for find_template_name_end.
3469
3470 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3471
3472 * symtab.h: Update comment.
3473
3474 2002-10-23 Michael Snyder <msnyder@redhat.com>
3475
3476 * printcmd.c (address_info): Restore quotes in output.
3477 * valops.c (value_of_local): Restore quotes in error message.
3478
3479 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3480
3481 * symtab.c (symbol_demangled_name): New function.
3482 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3483 turning most of it into a function.
3484 (symbol_demangled_name): Export.
3485
3486 2002-10-23 Michael Snyder <msnyder@redhat.com>
3487
3488 * valops.c (value_of_local): Restore quotes in error message.
3489
3490 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3491
3492 * symtab.c (symbol_init_language_specific): New function.
3493 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3494 turning most of it into a function.
3495 (symbol_init_language_specific): Export.
3496
3497 2002-10-23 David Carlton <carlton@math.stanford.edu>
3498
3499 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3500 (dwarf_attr_name): Ditto.
3501 (dwarf_type_encoding_name): Ditto.
3502 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3503 (process_die): Handle DW_TAG_namespace,
3504 DW_TAG_imported_declaration, DW_TAG_imported_module.
3505 (read_namespace): New function.
3506
3507 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3508
3509 * configure.in: Define NEW_PROC_API on Interix too.
3510 * configure: Regenerate.
3511
3512 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3513
3514 * configure: Regenerate using the proper version of autoconf.
3515
3516 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3517
3518 * findvar.c (read_var_value): Temporarily disable TLS code, until
3519 complete TLS support is added.
3520
3521 2002-10-21 Jim Blandy <jimb@redhat.com>
3522 Elena Zannoni <ezannoni@redhat.com>
3523
3524 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3525 for thread local storage locations.
3526 (struct symbol): Add objfile field.
3527 (SYMBOL_OBJFILE): Define.
3528 * dwarf2read.c (is_thread_local): New static variable.
3529 (new_symbol): If variable is in thread local fill in address class
3530 and objfile appropriately.
3531 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3532 stack operation.
3533 * printcmd.c (address_info): Print the information for thread
3534 local storage variable.
3535 * findvar.c (read_var_value): In case of thread local variable,
3536 defer to the target vector code to compute address.
3537
3538 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3539
3540 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3541 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3542
3543 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3544
3545 * symtab.h (address_class): Rename
3546 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3547 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3548 * printcmd.c (address_info): Ditto.
3549 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3550
3551 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3552
3553 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3554 DBREG_DRX macro to acces debug registers.
3555
3556 * Makefile.in (i386obsd-tdep.o): New target.
3557
3558 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3559 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3560
3561 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3562 * config/i386/obsd.mt: New file.
3563 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3564 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3565 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3566 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3567 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3568 * i386obsd-tdep.c: New file.
3569
3570 2002-10-19 Adam Fedor <fedor@gnu.org>
3571
3572 * objc-exp.y (name_not_typename): Fix invalid comment.
3573
3574 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3575
3576 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3577 to allocate partial syms and macro byte caches.
3578
3579 2002-10-18 David Carlton <carlton@math.stanford.edu>
3580
3581 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3582
3583 2002-10-18 Adam Fedor <fedor@gnu.org>
3584
3585 * stabsread.c (find_name_end): New function.
3586 (define_symbol): Use it.
3587
3588 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3589
3590 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3591 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3592 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3593 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3594
3595 2002-10-17 David Carlton <carlton@math.stanford.edu>
3596
3597 * symfile.h: Add opaque declaration for struct obstack.
3598 Declare obsavestring to take a const char *.
3599 * symfile.c (obsavestring): Make first argument a const char *.
3600
3601 2002-10-16 Adam Fedor <fedor@gnu.org>
3602
3603 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3604 names when matching breakpoints in current file.
3605
3606 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3607
3608 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3609 (read_tag_pointer_type): Add address class support.
3610 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3611 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3612 New methods.
3613 * gdbarch.h, gdbarch.c: Regenerate.
3614 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3615 (make_type_with_address_space, recursive_type_dump): Add address
3616 class support.
3617 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3618 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3619 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3620
3621 2002-10-16 Klee Dienes <kdienes@apple.com>
3622
3623 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3624 to get the last character of a char[] buffer, not
3625 name[sizeof(vptr_name)-1].
3626
3627 2002-10-14 Adam Fedor <fedor@gnu.org>
3628
3629 * symtab.h: New objc_specific struct.
3630 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3631 (SYMBOL_DEMANGLED_NAME): Likewise.
3632
3633 2002-10-14 Adam Fedor <fedor@gnu.org>
3634
3635 * symfile.c (init_filename_language_table): Add ObjC file extension.
3636
3637 2002-10-14 Adam Fedor <fedor@gnu.org>
3638
3639 * utils.c (puts_filtered_tabular): New function.
3640 (fprintf_symbol_filtered): Get ObjC demangled name.
3641 * defs.h (puts_filtered_tabular): Declared.
3642
3643 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3644
3645 * c-lang.h (c_type_print_varspec_prefix): Delete.
3646 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3647 ``need_post_space'' parameter. Adjust all callers.
3648
3649 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3650
3651 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3652 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3653 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3654 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3655
3656 2002-10-13 Adam Fedor <fedor@gnu.org>
3657
3658 * source.c (print_source_lines): Update comments.
3659
3660 2002-10-13 Adam Fedor <fedor@gnu.org>
3661
3662 * valops.c (value_of_local): New function.
3663 (value_of_this): Use it.
3664 * value.h (value_of_local): Declared.
3665
3666 2002-10-13 Adam Fedor <fedor@gnu.org>
3667
3668 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3669 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3670
3671 2002-10-12 Adam Fedor <fedor@gnu.org>
3672
3673 * language.c (binop_result_type): Add language_objc to case.
3674 (integral_type): Likewise.
3675 (character_type): Likewise.
3676 (string_type): Likewise.
3677 (boolean_type): Likewise.
3678 (structured_type): Likewise.
3679 (binop_type_check): Likewise.
3680
3681 2002-10-11 Adam Fedor <fedor@gnu.org>
3682
3683 * printcmd.c (address_info): Print 'self' for ObjC.
3684
3685 2002-10-11 Adam Fedor <fedor@gnu.org>
3686
3687 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3688 OP_SELF.
3689
3690 2002-10-11 Adam Fedor <fedor@gnu.org>
3691
3692 * language.h (CAST_IS_CONVERSION): Add language_objc.
3693
3694 2002-10-11 Adam Fedor <fedor@gnu.org>
3695
3696 * defs.h (enum language): Add language_objc.
3697
3698 2002-10-11 Klee Dienes <kdienes@apple.com>
3699
3700 * corefile.c (read_memory_typed_address): New function.
3701 * gdbcore.h (read_memory_typed_address): Add prototype.
3702 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3703 to read a value destined for a CORE_ADDR, not read_memory_integer.
3704 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3705 (f77_get_dynamic_lowerbound): Ditto.
3706
3707 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3708
3709 * utils.c (string_to_core_addr): After turning string into
3710 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3711 which will do necessary sign-extension, etc.
3712
3713 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * c-exp.y (THIS): Delete token and grammar rule.
3716 (yylex): Don't return THIS.
3717 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3718 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3719 * demangle.c (cplus_markers): Update comment. Put '$'
3720 first. Remove CPLUS_MARKER.
3721 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3722 * jv-exp.y (THIS): Delete token and grammar rule.
3723 (yylex): Don't return THIS.
3724 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3725 * objc-exp.y (THIS): Delete token and grammar rule.
3726 (yylex): Don't return THIS.
3727 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3728 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3729 (read_member_functions): Likewise for opname.
3730 (read_tilde_fields): Use is_cplus_marker.
3731
3732 * defs.h (CPLUS_MARKER): Don't define.
3733 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3734 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3735 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3736 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3737 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3738
3739 * config/i386/tm-i386v4.h: Delete file.
3740 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3741 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3742 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3743 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3744 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3745 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3746 * config/i386/i386v4.mt (TM_FILE): Likewise.
3747 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3748
3749 2002-10-10 Marko Mlinar <markom@opencores.org>
3750
3751 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3752 accidentially not commited 2002-10-09
3753 * gdbarch.h, gdbarch.c: Re-generate.
3754
3755 2002-10-09 Marko Mlinar <markom@opencores.org>
3756
3757 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3758 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3759 * gdbarch.h, gdbarch.c: Re-generate.
3760
3761 2002-10-08 Petr Sorfa <petrs@caldera.com>
3762
3763 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3764
3765 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3766 so we can work on more than one compilation unit at a time. This
3767 helps prepare GDB to handle inter-CU die references.
3768 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3769 the code to be defined before struct comp_unit_head.
3770 (comp_unit_head): Added new members - offset, cu_head,
3771 begin_die, next and dwarf2_abbrevs.
3772 (dwarf2_abbrevs): Removed single static var; now member of
3773 struct comp_unit_head.
3774 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3775 members.
3776 (psymtab_to_symtab_1): Changed to work with the new
3777 struct comp_unit_head.
3778 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3779 constructs the dwarf2_abbrevs[] inside the cu_header.
3780 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3781 dwarf2_abbrev table to clean up.
3782 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3783 handling of dwarf2_abbrevs inside the cu_header.
3784 (read_partial_die): Now supports the call to the new
3785 dwarf2_lookup_abbrev.
3786 (read_full_die): Now supports the call to the new
3787 dwarf2_lookup_abbrev.
3788
3789 2002-10-06 Christopher Faylor <cgf@redhat.com>
3790
3791 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3792 insure that shell variables, such as "transformed_name" are propagated
3793 to later shell statements in rule.
3794
3795 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3796
3797 * config/i386/nm-i386sco.h: Add protection against
3798 multiple-inclusion. Include "i386/nm-i386v.h".
3799 (REGISTER_U_ADDR): Remove define.
3800 (i386_register_u_addr): Remove prototype.
3801
3802 2002-10-04 Michael Snyder <msnyder@redhat.com>
3803
3804 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3805 before treating it as a single-step event.
3806
3807 2002-10-03 Adam Fedor <fedor@gnu.org>
3808
3809 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3810 (objc_demangle): Remove assignment in if statements, Replace
3811 free with xfree.
3812 (add_msglist): Likewise.
3813 (end_msglist): Likewise.
3814 (complare_selectors): Likewise.
3815 (selectors_info): Likewise.
3816 (compare_classes): Likewise.
3817 (classes_info): Likewise.
3818 (print_object_command): Likewise.
3819 (find_objc_msgcall_submethod): Replace PTR with void *.
3820 * objc-lang.h: Remove check for __STDC__.
3821
3822 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3823
3824 * ui-out.h (ui_out_field_fmt_int): New prototype.
3825 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3826 of field width and alignment.
3827 * stack.c (print_frame_info_base): When printing frame level, use
3828 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3829 PR gdb/192
3830
3831 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3832
3833 * MAINTAINERS: Add self to Write After Approval list.
3834
3835 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3836
3837 * infcmd.c (interrupt_target_command_wrapper): Delete.
3838 (interrupt_target_command): Make non static.
3839 (nofp_registers_info): Make static.
3840 * stack.c (return_command_wrapper): Delete.
3841 (return_command): Make non static.
3842
3843 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3844
3845 * event-top.c (gdb_setup_readline): New function. Code moved from
3846 _initialize_event_loop().
3847 (_initialize_event_loop): Call gdb_setup_readline().
3848
3849 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3850
3851 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3852 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3853 * gdbarch.h, gdbarch.c: Re-generate.
3854
3855 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3856
3857 Fix PR gdb/778
3858 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3859 before recursing.
3860 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3861 of fill_in_vptr_fieldno.
3862
3863 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3864
3865 * inferior.h (registers_info, stepi_command, nexti_command,
3866 continue_command, interrupt_target_command): Export from infcmd.c.
3867 * frame.h (args_info, selected_frame_level_changed_hook,
3868 return_command): Export from stack.c.
3869 * v850ice.c (stepi_command, nexti_command, continue_command): use
3870 prototypes from inferior.h.
3871 * tracepoint.c (registers_info, args_info, locals_info): Use
3872 prototypes from frame.h and inferior.h.
3873 * Makefile.in (mi-main.o): Add dependency on frame.h.
3874
3875 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3876
3877 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3878 value in register 3 adjusted by ppc_gp0_regnum.
3879
3880 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3881
3882 2002-10-02 Marko Mlinar <markom@opencores.org>
3883
3884 * MAINTAINERS: Add myself to the Write After Approval list.
3885
3886 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3887
3888 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3889 of the section for the N64 ABI, fixed.
3890
3891 * config/mips/tm-irix6.h: Include solib.h.
3892
3893 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3894
3895 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3896 GNU operators.
3897
3898 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3899
3900 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3901 and that "mi0" syntax has been removed.
3902
3903 2002-09-30 David Carlton <carlton@math.stanford.edu>
3904
3905 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3906 * ppc-sysv-tdep.c: #include "gdb_string.h".
3907 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3908 pacify GCC.
3909
3910 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3911
3912 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3913 "vrsave"'s register number.
3914
3915 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3916
3917 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3918 use frame_unwind_signed_register to obtain the PC.
3919 (mips_frame_chain): Handle a generic dummy frame.
3920 (mips_init_extra_frame_info): When a generic dummy frame, don't
3921 re-compute the frame base.
3922 (mips_pop_frame): Handle generic dummy frames.
3923 (mips_gdbarch_init): When generic dummy frames, set
3924 use_generic_dummy_frames, push_dummy_frame to
3925 generic_push_dummy_frame, pc_in_call_dummy to
3926 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3927 generic_save_dummy_frame_tos.
3928
3929 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3930
3931 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3932 against TOP when TOP was explictly set.
3933 (generic_push_dummy_frame): Set TOP to zero.
3934
3935 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3936
3937 * event-loop.c (start_event_loop): Rename variable 'result' to
3938 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3939
3940 2002-09-30 Keith Seitz <keiths@redhat.com>
3941
3942 * gdb-events.sh (selected_thread_changed): New event.
3943 * gdb-events.c: Regenerated.
3944 * gdb-events.h: Regenerated.
3945
3946 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3947
3948 * MAINTAINERS: Add self to Write After Approval list.
3949
3950 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3951
3952 * disasm.c: New file.
3953 * disasm.h: New file.
3954 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3955 (compare_lines): Ditto.
3956 (dump_insns): Ditto.
3957 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3958 argument.
3959 (do_assembly_only): Ditto.
3960 (do_disassembly): Renamed to gdb_disassembly and moved to
3961 disasm.c. Sdded uiout argument.
3962 * Makefile.in: Add new files. Reorder SFILES list. Update
3963 dependencies. Include libgdb.a later in the insight executable.
3964
3965 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3966
3967 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3968 bfd/elf64-alpha-fbsd.c.
3969
3970 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3971
3972 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3973 i386gnu-tdep.c.
3974
3975 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3976
3977 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3978 __FUNCTION__.
3979 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3980 function name.
3981 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3982 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3983 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3984 (S_msg_sig_post_reply): Ditto.
3985
3986 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3987
3988 * sh-tdep.c (sh_use_struct_convention): Use definition according
3989 to ABI.
3990 (sh_push_arguments): Store in register with correct endianess.
3991 (sh_default_store_return_value): Ditto.
3992 (sh_gdbarch_init): Set sizeof long double to 8.
3993
3994 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3995
3996 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3997 Fix some whitespace problems.
3998
3999 2002-09-27 David Carlton <carlton@math.stanford.edu>
4000
4001 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4002 (mcore-tdep.o): Ditto.
4003 (ns32k-tdep.o): Ditto.
4004 (ns32knbsd-tdep.o): Ditto.
4005 (sh3-rom.o): Ditto.
4006 (vax-tdep.o): Ditto.
4007 * cris-tdep.c: #include "gdb_string.h"
4008 * mcore-tdep.c: Ditto.
4009 * ns32k-tdep.c: Ditto.
4010 * ns32knbsd-tdep.c: Ditto.
4011 * sh3-rom.c: Ditto.
4012 * vax-tdep.c: Ditto.
4013
4014 2002-09-27 David Carlton <carlton@math.stanford.edu>
4015
4016 * config/djgpp/fnchange.lst: Add entries for
4017 gdb/testsuite/gdb.c++/m-static files.
4018
4019 2002-09-27 Jim Wilson <wilson@redhat.com>
4020
4021 * MAINTAINERS: Add myself to the Write After Approval list.
4022
4023 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4024
4025 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4026
4027
4028 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4029
4030 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4031 frame.
4032
4033 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4034
4035 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4036 (rs6000_struct_return_address): Delete variable.
4037 (rs6000_store_struct_return): Update.
4038 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4039 deprecated_extract_struct_value_address.
4040 (rs6000_frame_align): New function.
4041 (rs6000_gdbarch_init): Set frame_align.
4042
4043 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4044
4045 From Grace Sainsbury <graces@redhat.com>:
4046 * Makefile.in (gdbtk-main.o): New target.
4047 (gdb.o): New target.
4048 (main_h): Define.
4049 (main.o): Update dependencies.
4050 (gdb$(EXEEXT)): Add gdb.o.
4051 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4052 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4053 (SUBDIR_GDBTK_CLEAN): Set.
4054 (install-gdbtk): Install the insight binary.
4055 (uninstall-gdbtk): New target.
4056 (all-gdbtk, clean-gdbtk): New rule.
4057 * top.c (use_windows): Default to zero.
4058 * main.c: Include "main.h".
4059 (main): Delete.
4060 (struct captured_main_args): Delete.
4061 (gdb_main): New function.
4062 * main.h: New file.
4063 * gdb.c: New File.
4064
4065 2002-09-25 Andrew Cagney <cagney@redhat.com>
4066
4067 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4068 (frame_map_regnum_to_name): New function.
4069 (frame_map_name_to_regnum): New function.
4070 * frame.h (frame_map_name_to_regnum): Declare.
4071 (frame_map_regnum_to_name): Declare.
4072 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4073 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4074 * parse.c: Do not include "builtin-regs.h".
4075 (target_map_name_to_register): Delete function.
4076 (write_dollar_variable): Use frame_map_name_to_regnum.
4077 * parser-defs.h (target_map_name_to_register): Delete declaration.
4078 * expprint.c: Include "frame.h".
4079 (print_subexp): Use frame_map_regnum_to_name.
4080 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4081 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4082
4083 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4084
4085 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4086 wasn't saved, and the next innermost frame is a dummy, return the
4087 dummy frame's link register.
4088
4089 2002-09-24 Jim Blandy <jimb@redhat.com>
4090
4091 Fix from Paul Breed:
4092 * main.c (captured_main): Add a `break' after the case for 'b'.
4093
4094 2002-09-24 Keith Seitz <keiths@redhat.com>
4095
4096 * varobj.c (c_type_of_child): Use get_target_type instead
4097 of TYPE_TARGET_TYPE.
4098
4099 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4100
4101 * source.c (get_current_or_default_source_symtab_and_line): Remove
4102 function.
4103 (set_default_source_symtab_and_line): New function. Attempts to
4104 determine a source file to list lines from if one is not currently
4105 defined.
4106 (get_current_source_symtab_and_line): Initialize sal.pc and
4107 sal.end fields.
4108 (set_current_source_symtab_and_line): Mark argument as const.
4109 * source.h: Update declarations and comments.
4110 * linespec.c (decode_line_1): Replace call to removed routine above.
4111 * stack.c (print_frame_info_base): Ditto.
4112 * cli/cli-cmds.c (edit_command): Ditto.
4113 (list_command): Ditto.
4114
4115 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4116
4117 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4118 sal.pc and sal.end fields.
4119 (get_current_or_default_source_symtab_and_line): Ditto.
4120 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4121 so we do not cause a new source symtab to be searched for (reverting an
4122 unintentional change from the 2002-09-20 patch).
4123 * scm-lang.c (scm_unpac): Ditto.
4124
4125 2002-09-21 Andrew Cagney <cagney@redhat.com>
4126
4127 * complaints.c (symfile_explanations): Remove new-line from
4128 ``isolated_message''.
4129 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4130 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4131
4132 2002-09-20 Nick Clifton <nickc@redhat.com>
4133
4134 * NEWS: Announce that V850EA ISA is no longer supported.
4135 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4136
4137 2002-09-20 David Carlton <carlton@math.stanford.edu>
4138
4139 * Makefile.in (c-lang.o): Correct dependencies.
4140 (utils.o): Gather dependencies.
4141 (charset.o): Move.
4142 * c-lang.c: #include "gdb_string.h"
4143
4144 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4145
4146 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4147 * cli/cli-cmds.c (list_command): New function. Implements the new
4148 cli edit command.
4149 (_init_cli_cmds): Add new command definition.
4150 * gdb.1: Document edit command.
4151 * doc/gdb.texinfo: Document edit command.
4152
4153 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4154
4155 * source.c: Make global variables current_source_symtab and
4156 current_source_line static.
4157 (list_command): Moved to cli/cli-cmds.c.
4158 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4159 (get_first_line_listed): New accessor function.
4160 (get_lines_to_list): New accessor function.
4161 (get_current_source_symtab_and_line): New function. Retrieves the
4162 position in the source code that we consider current.
4163 (get_current_or_default_source_symtab_and_line): New function.
4164 Like the above but attempts to determine a default position if one
4165 is not currently defined.
4166 (set_current_source_symtab_and_line): New function. Sets the source
4167 code position considered current and returns the previously set one.
4168 (clear_current_source_symtab_and_line): Reset stored information about
4169 a current source line.
4170 (_initialize_source): Remove registration for the "list" command and
4171 its alias.
4172 * source.h: Add declarations for the new functions above.
4173 * symtab.h: Remove declarations for the global variables mentioned
4174 above.
4175 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4176 obtain current source line.
4177 * linespec.c (decode_line_1): Ditto.
4178 * macroscope.c (default_macro_scope): Ditto.
4179 * scm-lang.c (scm_unpac): Ditto.
4180 * stack.c (print_frame_info_base): Ditto.
4181 * symfile.c (clear_symtab_users): Ditto.
4182 * symtab.c (decode_line_spec): Ditto.
4183 * cli/cli-cmds.c (list_command): Moved here from source.c.
4184 (ambiguous_line_spec): Moved here from source.c.
4185 (_init_cli_cmds): Add definition for "list" and its alias.
4186 * Makefile.in: Update dependencies.
4187
4188 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4189
4190 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4191 with what gcc thinks is correct.
4192
4193 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4194
4195 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4196 multiple register push instruction.
4197
4198 2002-09-19 Jim Blandy <jimb@redhat.com>
4199
4200 Add support for distinct host and target character sets.
4201 * charset.c, charset.h: New files.
4202 * c-exp.y: #include "charset.h".
4203 (yylex): Convert character and string literals to the target
4204 character set, before returning them as the semantic value of the
4205 token.
4206 * c-lang.c: #include "charset.h".
4207 (c_emit_char): Use charset-specific methods to recognize
4208 characters with backslash escape forms, to decide which characters
4209 to print literally and which to print using numeric escape
4210 sequences, and to convert target characters to host characters
4211 before printing.
4212 * utils.c: #include "charset.h".
4213 (no_control_char_error): New function.
4214 (parse_escape): Use charset-specific methods to recognize
4215 backslash escapes, parse `control character' notation, and convert
4216 characters from the host character set to the target character set.
4217 * configure.in: Set the default host character set.
4218 Check where to find iconv, and what its argument types might be.
4219 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4220 * Makefile.in (SFILES): List charset.c.
4221 (COMMON_OBS): List charset.o.
4222 (charset.o): New rule.
4223 (charset_h): New header dependency variable.
4224 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4225 (LIBICONV): New variable, set by configure.
4226 (CLIBS): Include $(LIBICONV) here.
4227 * aclocal.m4, config.in, configure: Regenerated.
4228
4229 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4230
4231 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4232 bison 1.35 warning.
4233
4234 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4235
4236 * gdb_mbuild.sh: New file.
4237
4238 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4239
4240 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4241
4242 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4243
4244 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4245 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4246 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4247 valops.c, value.h: Revert previous change.
4248
4249 2002-09-18 Michael Snyder <msnyder@redhat.com>
4250
4251 Preliminary support for Objective-C:
4252 * defs.h (language_objc): New enum value.
4253 (puts_filtered_tabular): Declaration only, exported from utils.c.
4254 (skip_quoted): Delete, declared in completer.h.
4255 * c-exp.y: Include completer.h.
4256 * p-exp.y: Ditto.
4257 * jv-exp.y: Ditto.
4258 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4259 New operator enum values.
4260 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4261 * language.c (binop_result_type): Handle language_objc case.
4262 (integral_type, character_type, string_type, boolean_type,
4263 structured_type, binop_type_check): Ditto.
4264 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4265 (struct objc_specific): Add to general_symbol_info.
4266 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4267 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4268 * parser-defs.h (struct objc_class_str): New struct type.
4269 (start_msglist, end_msglist, add_msglist): Declaration only,
4270 exported from objc-lang.c.
4271 * value.h (value_of_local, value_nsstring,
4272 call_function_by_hand_expecting_type): Exported from valops.c.
4273 * valops.c (find_function_addr): Export.
4274 (call_function_by_hand_expecting_type): New function.
4275 (value_of_local): New function.
4276 * symfile.c (init_filename_language_table): Add ".m" extension
4277 for Objective-C.
4278 * utils.c (puts_filtered_tabular): New function.
4279 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4280 (set/show demangle): Extend help-string to refer to ObjC.
4281 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4282 * stabsread.c (symbol_reference_defined): Objective-C symbols
4283 may contain colons: make allowances when scanning stabs strings
4284 for colons.
4285 (objc_find_colon): New function.
4286 * printcmd.c (address_info): If language == objc then print
4287 "self" instead of "this".
4288 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4289 OP_NSSTRING, and OP_SELF.
4290 (prefixify_subexp): Ditto.
4291 * source.c (print_source_lines): Mention objc in comment.
4292 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4293 method names.
4294
4295 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4296
4297 * complaints.h: Update copyright.
4298 (struct complaints): Declare.
4299 (struct complaint): Make `message' constant.
4300 (internal_complaint): Declare.
4301 (complaint): Declare.
4302 (complaint_root): Delete declaration.
4303 (symfile_complaints): Delete declaration.
4304 (struct complaints): Add opaque declaration.
4305 (clear_complaints): Add a complaints parameter.
4306 * complaints.c: Update copyright.
4307 (enum complaint_series): Define.
4308 (complaint_root): Delete.
4309 (struct complaints): Define.
4310 (complaint_sentinel, symfile_complaint_book): New variables.
4311 (symfile_explanations, symfile_complaints): New variables.
4312 New variables.
4313 (get_complaints): New function.
4314 (vcomplaint): New function.
4315 (complaint): New function.
4316 (internal_complaint): New function.
4317 (complain): Call vcomplain with symfile_complaint.
4318 (clear_complaints): Rewrite.
4319 (_initialize_complaints): Use add_setshow_command.
4320 * Makefile.in (complaints.o): Update dependencies.
4321 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4322 to call to clear_complaints.
4323 (new_symfile_objfile, reread_symbols): Ditto.
4324 (oldsyms_complaint): Delete.
4325 (empty_symtab_complaint, unknown_option_complaint): Delete.
4326 (free_named_symtabs): Use complaint instead of complain.
4327
4328 2002-09-18 Michael Snyder <msnyder@redhat.com>
4329
4330 Contributed by Apple Computer, Inc. Merged with current sources
4331 by Adam Fedor <fedor@doc.com> [cagney].
4332
4333 * objc-lang.c: First clean-up round: comments, indentation.
4334 * objc-lang.h: Ditto.
4335 * objc-lang.y: Ditto.
4336
4337 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4338
4339 * maint.c (maintenance_internal_error): Print the parameter as the
4340 error message.
4341 (maintenance_internal_warning): New function.
4342 (_initialize_maint_cmds): Add command `maint internal-warning'.
4343
4344 * defs.h (internal_warning, internal_vwarning): Declare.
4345 * utils.c (struct internal_problem): Define.
4346 (internal_vproblem): New function.
4347 (internal_warning): New function.
4348 (internal_vwarning): New function.
4349 (internal_warning_problem, internal_error_problem): New variables.
4350 (internal_verror): Just call internal_vproblem.
4351
4352 2002-09-18 Michael Snyder <msnyder@redhat.com>
4353
4354 * objc-lang.c: New file, support for Objective-C.
4355 Preliminary check-in, not yet integrated into gdb.
4356 * objc-lang.h: New file.
4357 * objc-exp.y: New file.
4358
4359 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4360
4361 * infrun.c (signal_stop_update): Convert definition to ISO C.
4362 (signal_print_update): Ditto.
4363 (signal_pass_update): Ditto.
4364 * inflow.c (terminal_save_ours): Ditto.
4365
4366 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4367 comments.
4368
4369 * config/djgpp/fnchange.lst: Handle name clashes between
4370 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4371 bfd/coff-tic80.c.
4372
4373 * i386-linux-tdep.h: Fix tipo.
4374
4375 2002-09-18 Adam Fedor <fedor@gnu.org>
4376
4377 * MAINTAINERS: Add myself to the Write After Approval list.
4378
4379 2002-09-18 Jim Blandy <jimb@redhat.com>
4380
4381 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4382 texthigh and textlow to reader-specific structs caused
4383 objfile_relocate to miss them. This is fixable, but the work that
4384 the change was supposed to prepare GDB for never got done anyway.
4385
4386 2002-09-18 David Carlton <carlton@math.stanford.edu>
4387
4388 * MAINTAINERS: Alphabetize Write After Approval list.
4389
4390 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4391
4392 Fix PR gdb/709
4393 * values.c (value_static_field): Call read_var_value.
4394
4395 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4396
4397 * valops.c (hand_function_call): Align the initial stack pointer
4398 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4399 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4400 return value.
4401 * mips-tdep.c (mips_frame_align): New function.
4402 (mips_gdbarch_init): Set frame_align.
4403 * gdbarch.sh (FRAME_ALIGN): New method.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4405
4406 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4407
4408 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4409 registers.
4410
4411 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4412
4413 * NEWS: Mention that MIPS $fp behavior changed.
4414 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4415 reference to FP_REGNUM.
4416 (mipsnbsd_cannot_store_register): Ditto.
4417 * mips-linux-nat.c: Update copyright.
4418 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4419 (mips_linux_cannot_store_register): Ditto.
4420 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4421 * config/mips/tm-mips.h: Update copyright.
4422 (FP_REGNUM): Delete macro.
4423 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4424 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4425 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4426 (mips_r3041_reg_names, mips_r3051_reg_names)
4427 (mips_r3081_reg_names): Replace "fp" with "".
4428 Fix PR gdb/480.
4429
4430 2002-09-17 Theodore A. Roth <troth@verinet.com>
4431
4432 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4433 generic_read_register_dummy() (PR gdb/703).
4434 (avr_push_return_address): #if 0 out unused vars.
4435 (avr_gdbarch_init): Enable use of avr_push_return_address().
4436
4437 2002-09-17 Michael Snyder <msnyder@redhat.com>
4438
4439 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4440 RTE will take care of it.
4441
4442 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4443
4444 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4445 invalid, return SP_REGNUM.
4446
4447 2002-09-17 Michael Snyder <msnyder@redhat.com>
4448
4449 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4450 point registers without sign extension.
4451
4452 2002-09-17 Andrew Cagney <cagney@redhat.com>
4453
4454 * blockframe.c (deprecated_read_register_dummy): Rename
4455 generic_read_register_dummy.
4456 * frame.c (frame_unwind_signed_register): New function.
4457 (frame_unwind_unsigned_register): New function.
4458 * frame.h (frame_unwind_signed_register): Declare.
4459 (frame_unwind_unsigned_register): Declare.
4460 (deprecated_read_register_dummy): Rename
4461 generic_read_register_dummy.
4462
4463 * h8300-tdep.c (h8300_frame_chain): Update.
4464 (h8300_frame_saved_pc): Update.
4465 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4466 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4467 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4468 (s390_frame_chain): Update.
4469 * v850-tdep.c (v850_find_callers_reg): Update.
4470 (v850_frame_saved_pc): Update.
4471 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4472 (m32r_find_callers_reg): Update.
4473 (m32r_frame_saved_pc): Update.
4474 * sh-tdep.c (sh_find_callers_reg): Update.
4475 (sh64_get_saved_pr): Update.
4476 (sh_init_extra_frame_info): Update.
4477 (sh_init_extra_frame_info): Update.
4478 (sh64_init_extra_frame_info): Update.
4479 (sh64_init_extra_frame_info): Update.
4480 * mcore-tdep.c (mcore_find_callers_reg): Update.
4481 (mcore_frame_saved_pc): Update.
4482 (mcore_init_extra_frame_info): Update.
4483 * i386-tdep.c (i386_frame_saved_pc): Update.
4484 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4485 (ia64_init_extra_frame_info): Update.
4486 (ia64_init_extra_frame_info): Update.
4487 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4488 * cris-tdep.c (cris_init_extra_frame_info): Update.
4489 * avr-tdep.c (avr_frame_chain): Update.
4490 (avr_init_extra_frame_info): Update.
4491 (avr_frame_saved_pc): Update.
4492 * arm-tdep.c (arm_find_callers_reg): Update.
4493 (arm_init_extra_frame_info): Update.
4494 (arm_frame_saved_pc): Update.
4495
4496 2002-09-17 Tom Tromey <tromey@redhat.com>
4497
4498 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4499 is "'".
4500
4501 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4502
4503 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4504 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4505 NEXT_PROLOGUE_INSN.
4506 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4507 NEXT_PROLOGUE_INSN.
4508
4509 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4510
4511 * osfsolib.c: Remove file, replaced by solib-osf.c.
4512 * Makefile.in: Remove compilation rules for osfsolib.c.
4513
4514 2002-09-16 David Carlton <carlton@math.stanford.edu>
4515
4516 * cp-valprint.c (cp_print_class_method): Correct args to
4517 check_stub_method_group.
4518
4519 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4520
4521 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4522 `set architecture'. Unify naming convention of functions.
4523 (h8300_skip_prologue): Improve prologue analysis.
4524 (h8300_push_arguments): Rewritten to more closely match GCC's
4525 bizarre argument-passing behavior, along with the comment describing
4526 said behavior.
4527 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4528 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4529 sim, remote-e7000.c, remote-hms.c and remote.c
4530
4531 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4532
4533 * i386-tdep.c (gdb_print_insn_i386): Removed.
4534 (i386_print_insn): New function.
4535 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4536 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4537 tm_print_insn_info.
4538
4539 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4540
4541 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4542 zero.
4543
4544 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4545
4546 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4547 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4548 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4549
4550 2002-09-13 Christopher Faylor <cgf@redhat.com>
4551
4552 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4553
4554 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4555
4556 * gdbtypes.c (check_stub_method): Make static.
4557 (check_stub_method_group): New function.
4558 * gdbtypes.h: Update prototypes.
4559 * cp-support.c: New file.
4560 * cp-support.h: New file.
4561
4562 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4563 (update_method_name_from_physname): New function.
4564 (read_member_functions): Correct method names for operators
4565 and v3 constructors/destructors. Separate v2 constructors and
4566 destructors.
4567 * Makefile.in (stabsread.o): Update dependencies.
4568 (SFILES): Add cp-support.c.
4569 (COMMON_OBS): Add cp-support.o.
4570 (cp_support_h, cp-support.o): Add.
4571
4572 * cp-valprint.c (cp_print_class_method): Call
4573 check_stub_method_group instead of check_stub_method. Remove
4574 extraneous QUITs.
4575 * p-valprint.c (pascal_object_print_class_method): Likewise.
4576 * valops.c (search_struct_method): Likewise.
4577 (find_method_list, value_struct_elt_for_reference): Likewise.
4578
4579 2002-09-13 Andrew Cagney <cagney@redhat.com>
4580
4581 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4582 * gdbarch.h, gdbarch.c: Regenerate.
4583
4584 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4585
4586 * frame.c (find_saved_register): Delete function.
4587 * frame.h (find_saved_register): Delete declaration.
4588 Fix PR gdb/631.
4589
4590 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4591
4592 * mips-tdep.c (read_next_frame_reg): Re-hack using
4593 frame_register_unwind.
4594
4595 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4596
4597 * mips-tdep.c (mips_get_saved_register): Re-hack using
4598 frame_register_unwind.
4599
4600 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4601
4602 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4603 vector. Will be useful for Interix.
4604 * gdbarch.h, gdbarch.c: Regenerate.
4605
4606 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4607 name of the malloc function by NAME_OF_MALLOC.
4608
4609 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4610
4611 * value.h (find_function_in_inferior): Add const keyword to
4612 one of the parameters. Allows us to invoke this function with
4613 a const char *.
4614 * valops.c (find_function_in_inferior): Likewise.
4615
4616 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4617
4618 * exec.c (xfer_memory): Fix compilation warning with old versions
4619 of GCC.
4620 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4621
4622 2002-09-12 David Carlton <carlton@math.stanford.edu>
4623
4624 * symtab.h: Run through gdb_indent.h.
4625 Add 2002 to Copyright year list.
4626
4627 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4628
4629 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4630 mach constants.
4631 * MAINTAINERS: Add myself to write after approval list.
4632
4633 2002-09-11 J. Brobecker <brobecker@gnat.com>
4634
4635 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4636
4637 2002-09-11 J. Brobecker <brobecker@gnat.com>
4638
4639 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4640 Interix.
4641
4642 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4643
4644 * procfs.c (do_detach): Clear current signal, not just fault.
4645 Corrects problem with breakpoint trap signal leaking to detached
4646 process on Tru64.
4647
4648 2002-09-10 Michael Snyder <msnyder@redhat.com>
4649
4650 * buildsym.c (finish_block): Protect against null pointer.
4651
4652 2002-09-10 Andrew Cagney <cagney@redhat.com>
4653
4654 * infcmd.c (default_print_registers_info): Send all output to
4655 ``file'' instead of ``gdb_stdout''.
4656
4657 2002-09-10 Michael Snyder <msnyder@redhat.com>
4658
4659 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4660 LONGEST, and use signed register read (addresses are sign-
4661 extended for mips).
4662
4663 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4664
4665 * event-loop.c (gdb_do_one_event): Make public.
4666 * event-loop.h (gdb_do_one_event): Declare.
4667
4668 2002-09-10 Jeff Law <law@redhat.com>
4669
4670 * infttrace.c (child_resume): Simplify and rework to avoid
4671 TT_PROC_CONTINUE.
4672
4673 2002-09-09 Fred Fish <fnf@intrinsity.com>
4674
4675 * printcmd.c (print_scalar_formatted): "len" is the number of
4676 target bytes, NOT the number of target bits.
4677
4678 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4679
4680 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4681 * top.c (init_main): Set rl_terminal_name.
4682
4683 2002-09-08 Aidan Skinner <aidan@velvet.net>
4684
4685 * ada-lang.c (ada_array_bound, ada_type_match,
4686 _initialize_ada_language): Fix K&R definitions.
4687 * ada-tasks.c (get_current_task): Fix K&R definitions.
4688 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4689
4690 2002-09-07 Christopher Faylor <cgf@redhat.com>
4691
4692 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4693 Add XP.
4694
4695 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4696
4697 * i386-tdep.c (i386_register_virtual_type,
4698 i386_register_convertible, i386_register_convert_to_virtual,
4699 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4700 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4701 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4702 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4703 Don't set push_arguments twice.
4704
4705 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4706 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4707 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4708 sigtramp_end to NULL.
4709 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4710 defines.
4711 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4712
4713 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4714 whitespace.
4715
4716 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4717 * gdbarch.h, gdbarch.c: Re-generate.
4718 * blockframe.c (find_pc_sect_partial_function): Convert to use
4719 SIGTRAMP_START_P predicate.
4720
4721 2002-09-05 Michael Snyder <msnyder@redhat.com>
4722
4723 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4724 generic_dummy_frame method and old method. Also distinguish
4725 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4726 (arm_extract_return_value): Use new regcache method.
4727
4728 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4729 adjustment that doesn't conform to the ABI.
4730 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4731 saved regcache, not from current regcache.
4732
4733 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4734
4735 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4736 * README: Update.
4737
4738 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4739
4740 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4741 if arm_apcs_32 is false.
4742
4743 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4744
4745 GDB 5.3 branch created.
4746
4747 2002-09-03 Theodore A. Roth <troth@verinet.com>
4748
4749 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4750 generic_unwind_get_saved_register.
4751
4752 2002-09-03 David Carlton <carlton@math.stanford.edu>
4753
4754 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4755 argument (PR gdb/653). Update call to smash_to_method_type.
4756 (read_structure_scope): Update call to dwarf2_add_member_fn.
4757
4758 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4759
4760 * x86-64-linux-tdep.c: Include gdb_string.h
4761 * x86-64-linux-nat.c: Ditto.
4762
4763 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4764
4765 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4766 when YYDEBUG is set to 1.
4767 * c-exp.y: Likewise.
4768 * f-exp.y: Likewise.
4769 * jv-exp.y: Likewise.
4770 * m2-exp.y: Likewise.
4771 * p-exp.y: Likewise.
4772
4773 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4774
4775 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4776 dependency list.
4777 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4778 solib_svr4_fetch_link_map_offsets to
4779 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4780 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4781 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4782 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4783 solib-svr4.o, and solib-legacy.o.
4784 * config/i386/tm-nbsd.h: Include solib.h.
4785
4786 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4787
4788 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4789 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4790 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4791 comment noting that this needs its own target configuration.
4792 * config/i386/nbsd.mt: New file.
4793 * config/i386/nbsdaout.mt: Remove.
4794 * config/i386/nbsdelf.mt: Ditto.
4795 * config/i386/tm-nbsdaout.h: Ditto.
4796
4797 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4798
4799 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4800 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4801 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4802 tdep->sigtramp_end.
4803 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4804 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4806
4807 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4808
4809 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4810 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4811 * i386-tdep.h (i386bsd_init_abi): New prototype.
4812 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4813 function declaration.
4814 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4815 for NetBSD-a.out or NetBSD-ELF.
4816 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4817 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4818 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4819 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4820 and nbsd-tdep.h.
4821 (i386nbsd_pc_in_sigtramp): New function.
4822 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4823 i386nbsd_pc_in_sigtramp.
4824 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4825 and i386nbsdelf_init_abi OS ABI handlers.
4826 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4827 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4828
4829 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4830
4831 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4832 registers if the target really has them.
4833
4834 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4835
4836 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4837 than nbsd-tdep.h.
4838
4839 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4840
4841 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4842 list.
4843 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4844 (alphanbsd_skip_sigtramp_frame): New functions.
4845 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4846 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4847 to alphanbsd_sigcontext_addr.
4848
4849 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4850
4851 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4852 list.
4853 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4854 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4855 nbsd_pc_in_sigtramp.
4856 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4857 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4858 * nbsd-tdep.c: Include gdb_string.h.
4859 (nbsd_pc_in_sigtramp): New function.
4860 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4861 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4862 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4863 ppcnbsd_pc_in_sigtramp.
4864 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4865 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4866 shnbsd_pc_in_sigtramp.
4867 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4868 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4869 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4870
4871 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4872
4873 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4874 watchpoints to NULL.
4875 (insert_breakpoints): set val field of watchpoints if NULL.
4876
4877
4878 2002-08-29 Jim Blandy <jimb@redhat.com>
4879
4880 * symtab.c (lookup_symbol_aux): In the cases where we find a
4881 minimal symbol of an appropriate name and use its address to
4882 select a symtab to read and search, use `name' (as passed to us)
4883 as the demangled name when searching the symtab's global and
4884 static blocks, not the minsym's name.
4885
4886 2002-08-29 Keith Seitz <keiths@redhat.com>
4887
4888 * stack.c (print_frame_info_base): Always set current_source_symtab
4889 and current_source_line.
4890
4891 2002-08-29 Donn Terry <donnte@microsoft.com>
4892
4893 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4894
4895 2002-08-28 Keith Seitz <keiths@redhat.com>
4896
4897 * stack.c (select_frame): Add FIXME concerning selected-frame
4898 events.
4899 (select_frame_command): Send selected-frame-level-changed
4900 event notification, but only if the level actually changed.
4901 (up_silently_base): Add selected-frame-level-changed event
4902 notification.
4903 (down_silently_base): Likewise.
4904
4905 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4906
4907 * Makefile.in: Update dependencies for all gdb/*.c files.
4908
4909 2002-08-27 Tom Tromey <tromey@redhat.com>
4910
4911 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4912 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4913 Update dependencies.
4914 * i387-tdep.c: Include gdb_string.h.
4915 * osabi.c: Likewise.
4916 * i386-linux-nat.c: Likewise.
4917 * lin-lwp.c: Likewise.
4918 * ax-gdb.c: Likewise.
4919 * signals/signals.c: Likewise.
4920 * jv-valprint.c: Likewise.
4921 * p-lang.c: Likewise.
4922 * c-valprint.c: Likewise.
4923 * cp-abi.c: Likewise.
4924
4925 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4926
4927 * cli/cli-script.h (copy_command_lines): Export.
4928 * breakpoint.c: Include cli/cli-script.h.
4929 * Makefile.in (breakpoint.o): Update dependencies.
4930
4931 2002-08-26 Michael Snyder <msnyder@redhat.com>
4932
4933 * breakpoint.c (insert_breakpoints): Protect all references
4934 to 'process_warning'. Shorten long lines.
4935
4936 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4937
4938 * cli/cli-script.c (copy_command_lines): New function.
4939 * defs.h (copy_command_lines): Export.
4940 * testsuite/gdb.base/commands.exp: New tests for commands
4941 attached to a temporary breakpoint, and for commands that
4942 delete the breakpoint they are attached to.
4943
4944 2002-08-26 Michael Snyder <msnyder@redhat.com>
4945
4946 * breakpoint.c (bpstat_stop_status): Instead of copying the
4947 pointer to the breakpoint commands struct, make a new copy
4948 of the struct and point to that.
4949 (bpstat_clear): Free the commands struct.
4950 (bpstat_clear_actions): Free the commands struct.
4951 (bpstat_do_actions): Free the command actions. Also execute
4952 the local cleanups, instead of deleting them.
4953 (delete_breakpoint): Leave the commands field of the bpstat
4954 chain alone -- it will be freed later.
4955
4956 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4957
4958 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4959 deleted in 2002-08-20 commit. This function is still used by
4960 ppc-linux-nat.c.
4961
4962 2002-08-26 Keith Seitz <keiths@redhat.com>
4963
4964 * gdb-events.sh: Add selected-frame-level-changed event.
4965 * gdb-events.c: Regenerated.
4966 * gdb-events.h: Regenerated.
4967
4968 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4969
4970 Fix PR gdb/393:
4971 * inflow.c (terminal_save_ours): New function to save terminal
4972 settings.
4973 * inferior.h (terminal_save_ours): Declare.
4974 * target.c (debug_to_terminal_save_ours): New function.
4975 (cleanup_target): Defaults to_terminal_save_ours.
4976 (update_current_target): Inherit to_terminal_save_ours.
4977 (setup_target_debug): Set to_terminal_save_ours.
4978 * target.h (target_terminal_save_ours): New to save terminal settings.
4979 (target_ops): New member to_terminal_save_ours.
4980 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4981 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4982 * inftarg.c (init_child_ops): Likewise.
4983 * m3-nat.c (init_m3_ops): Likewise.
4984 * procfs.c (init_procfs_ops): Likewise.
4985 * wince.c (init_child_ops): Likewise.
4986 * win32-nat.c (init_child_ops): Likewise.
4987 * sol-thread.c (init_sol_thread_ops): Likewise.
4988
4989 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4990
4991 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4992 use regcache_* functions.
4993 (i386_gdbarch_init): Set store_return_value instead of
4994 deprecated_store_return_value.
4995
4996 * regcache.c (regcache_raw_write_signed,
4997 regcache_raw_write_unsigned): New functions.
4998 * regcache.h (regcache_raw_write_signed,
4999 regcache_raw_write_unsigned): New prototypes.
5000
5001 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5002
5003 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5004 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5005 source file dependencies. Cleanup corresponding generator rules.
5006
5007 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5008
5009 * regcache.h (register_offset_hack): Declare.
5010 (regcache_cooked_read_using_offset_hack): Declare.
5011 (regcache_cooked_write_using_offset_hack): Declare.
5012
5013 * regcache.c (register_offset_hack): New function.
5014 (regcache_cooked_read_using_offset_hack): New function.
5015 (regcache_cooked_write_using_offset_hack): New function.
5016 (regcache_dump): Check that the registers, according to their
5017 offset, are packed hard against each other.
5018 (cooked_xfer_using_offset_hack): New function.
5019
5020 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5021
5022 * regcache.c (struct regcache_descr): Add field register_type.
5023 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5024 in as a parameter
5025 (init_regcache_descr): Initialize register_type. Pass the descr
5026 to init_legacy_regcache_descr. Use register_type instead of
5027 REGISTER_VIRTUAL_TYPE.
5028 (register_type): New function.
5029 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5030 * regcache.h (register_type): Declare.
5031
5032 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5033
5034 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5035 instead of deprecated_store_return_value. Fix fallout from
5036 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5037
5038 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5039
5040 * regcache.c (max_register_size): New function.
5041 (init_legacy_regcache_descr): Ensure that max_register_size is
5042 large enough for REGISTER_VIRTUAL_SIZE.
5043 * regcache.h (max_register_size): Declare.
5044
5045 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5046
5047 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5048 store_return_value.
5049 (e500_extract_return_value): Change type of valbuf pointer to
5050 void.
5051
5052 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5053
5054 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5055 workaround.
5056
5057 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5058 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5059 long long) to prevent compiler warning on 64-bit systems.
5060
5061 2002-08-23 Andrew Cagney <cagney@redhat.com>
5062
5063 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5064 (DEPRECATED_STORE_RETURN_VALUE): New method.
5065 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5066 * gdbarch.h, gdbarch.c: Re-generate.
5067
5068 * values.c (set_return_value): Pass current_regcache to
5069 STORE_RETURN_VALUE.
5070 * arch-utils.h (legacy_store_return_value): Declare.
5071 * arch-utils.c (legacy_store_return_value): New function.
5072 (legacy_extract_return_value): Update parameters.
5073
5074 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5075 STORE_RETURN_VALUE.
5076 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5077 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5078 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5079 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5080 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5081 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5082 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5083 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5084 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5085 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5086
5087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5088 * i386-tdep.c (i386_extract_return_value): Update.
5089 * arch-utils.c (legacy_extract_return_value): Update.
5090 * frv-tdep.c (frv_gdbarch_init): Update.
5091 * cris-tdep.c (cris_gdbarch_init): Update.
5092 * d10v-tdep.c (d10v_gdbarch_init): Update.
5093 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5094 * m68k-tdep.c (m68k_gdbarch_init): Update.
5095 * mcore-tdep.c (mcore_gdbarch_init): Update.
5096 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5097 * s390-tdep.c (s390_gdbarch_init): Update.
5098 * sparc-tdep.c (sparc_gdbarch_init): Update.
5099 * sh-tdep.c (sh_gdbarch_init): Update.
5100 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5101 * v850-tdep.c (v850_gdbarch_init): Update.
5102 * avr-tdep.c (avr_gdbarch_init): Update.
5103 * ia64-tdep.c (ia64_gdbarch_init): Update.
5104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5105 * vax-tdep.c (vax_gdbarch_init): Update.
5106 * alpha-tdep.c (alpha_gdbarch_init): Update.
5107 * arm-tdep.c (arm_gdbarch_init): Update.
5108 * mips-tdep.c (mips_gdbarch_init): Update.
5109 * i386-tdep.c (i386_gdbarch_init): Update.
5110
5111 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5112
5113 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5114 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5115
5116 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5117
5118 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5119 problems.
5120
5121 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5122
5123 * infrun.c (handle_inferior_event): Move a comment outside of a
5124 function call, in order to avoid indent reformatting this part
5125 of the code in an unreadable way.
5126
5127 2002-08-23 Grace Sainsbury <graces@redhat.com>
5128
5129 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5130 when breakpoints fail. Move general breakpoint error messages to
5131 insert_breakpoints.
5132 * breakpoint.c (insert_breakpoints): Change warnings when
5133 breakpoints are nto inserted to specify the type. Remove call to
5134 memory_error when hardware breakpoints can't be inserted. Remove
5135 multiple calls to warning so all messages are sent to the user at
5136 once.
5137 (delete_breakpoints): Make insert error messsages more explicit.
5138
5139 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5140
5141 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5142 gdbserver/ChangeLog.
5143
5144 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5145
5146 * i386-tdep.c: Include "objfiles.h".
5147 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5148 skip_trampoline_code.
5149 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5150 (CPLUS_MARKER): Define to '.'.
5151
5152 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5153 member.
5154 (linux_corefile_thread_callback): Increase args->num_notes.
5155 (linux_make_note_section): Initialize thread_args.num_notes, and
5156 use it to determine whether notes for any threads were created.
5157
5158 2002-08-23 Donn Terry <donnte@microsoft.com>
5159
5160 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5161 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5162 and PCUNKILL.
5163 (write_with_trace): Conditionalize out the switch branch handling
5164 PCSHOLD if the corresponding macro is not defined. Likewise for
5165 PRSABORT and PRSTOP.
5166 This change will be needed by the Interix port.
5167
5168 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5169
5170 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5171 write_register wherever possible instead of manipulating the
5172 register bytes directly.
5173 Assign VALUE_CONTENTS to a variable and use that.
5174 The GPR numbers are now dependent on the architecture.
5175
5176 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5177
5178 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5179 ev_offset fields.
5180 (skip_prologue): Add support for BookE/e500 instructions.
5181 (e500_extract_return_value): New function.
5182 (frame_get_saved_regs): Add support for saving ev registers and
5183 pseudo gpr's.
5184 (e500_store_return_value): New function.
5185 (rs6000_gdbarch_init): Move up default intializations of
5186 deprecated_extract_return_value and store_return_value. Overwrite
5187 init of store_return_value with e500 specific version.
5188 Set extract_return_value for e500.
5189
5190 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5191
5192 * blockframe.c (generic_call_dummy_register_unwind): Use
5193 regcache_cooked_read to catch cases in which the variable is
5194 stored in a pseudo register.
5195
5196 2002-08-22 Andrew Cagney <cagney@redhat.com>
5197
5198 * NEWS: Mention that the i960 has been made obsolete.
5199 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5200 i960-tdep.c
5201 (remote-nrom.o): Obsolete target.
5202 (remote-nindy.o, i960-tdep.o): Ditto.
5203 * remote-nrom.c: Make file obsolete.
5204 * remote-nindy.c, remote-vx960.c: Ditto.
5205 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5206 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5207 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5208 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5209 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5210 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5211 i960-*-vxworks* obsolete.
5212 * MAINTAINERS: Note that the i960 is obsolete.
5213
5214 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5215
5216 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5217 detach to allow reinitialization.
5218
5219 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5220
5221 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5222 attempt).
5223
5224 2002-08-22 Jim Blandy <jimb@redhat.com>
5225
5226 * coffread.c (coff_symfile_read): Don't try to read the line
5227 number table from disk if the image file doesn't have a symbol
5228 table; we'll never actually look at the info anyway, and Windows
5229 ships DLL's with bogus file offsets for the line number data.
5230
5231 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5232
5233 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5234 an e500 executable.
5235
5236 2002-08-21 Michael Snyder <msnyder@redhat.com>
5237
5238 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5239 (MSYMBOL_SIZE): Replace macro with function.
5240 (DEFAULT_MIPS_TYPE): Delete unused macro.
5241 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5242 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5243
5244 2002-08-21 Jim Blandy <jimb@redhat.com>
5245
5246 * valops.c (value_cast): Simplify and correct logic for doing a
5247 static cast from a pointer to a base class to a pointer to a
5248 derived class.
5249
5250 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5251
5252 * infcmd.c (default_print_registers_info): Replace
5253 do_registers_info.
5254 (registers_info): Use gdbarch_print_registers_info instead of
5255 DO_REGISTERS_INFO.
5256 * inferior.h (default_print_registers_info): Replace
5257 do_registers_info.
5258 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5259 (DO_REGISTERS_INFO): Change to a predicate function.
5260 * gdbarch.h, gdbarch.c: Regenerate.
5261
5262 2002-08-21 Keith Seitz <keiths@redhat.com>
5263
5264 * gdb-events.sh: Add target-changed event.
5265 * gdb-events.c: Regenerated.
5266 * gdb-events.c: Regenerated.
5267 * valops.c (value_assign): Add target-changed event notification
5268 to inlval_register, lval_memory, and lval_reg_frame_relative.
5269
5270 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5271
5272 * NEWS: Add an entry regarding the improvement of the next/step
5273 operation on Alpha Tru64 multi-processor machines.
5274
5275 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5276
5277 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5278 directores.
5279 * Makefile.in: Update all _h macro definitions.
5280 * Makefile.in (install-gdbtk): Move to install section.
5281 (rdi-share/libangsd.a): Move to end of file.
5282
5283 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5284
5285 * frame.c (frame_register_unwind): When a register, set addrp to
5286 the register's byte.
5287
5288 2002-08-20 Michael Snyder <msnyder@redhat.com>
5289
5290 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5291 used locally, so move them from the target machine header to here.
5292 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5293 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5294 Make static.
5295 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5296
5297 2002-08-20 Andrew Cagney <cagney@redhat.com>
5298
5299 * NEWS: Mention that the Apollo line was made obsolete.
5300 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5301 m68*-hp-hpux* obsolete.
5302 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5303 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5304 * buildsym.c (make_blockvector): Make static.
5305 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5306 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5307 (ALLDEPFILES): Remove dstread.c.
5308 (dstread.o): Obsolete make rule.
5309 * dstread.c: Makefile obsolete.
5310 * dst.h: Ditto.
5311 * config/m68k/hp300hpux.mt: Ditto.
5312 * config/m68k/hp300hpux.mh: Ditto.
5313 * config/m68k/hp300bsd.mt: Ditto.
5314 * config/m68k/hp300bsd.mh: Ditto.
5315 * config/m68k/apollo68b.mt: Ditto.
5316 * config/m68k/apollo68v.mh: Ditto.
5317 * config/m68k/apollo68b.mh: Ditto.
5318
5319 2002-08-20 Michael Snyder <msnyder@redhat.com>
5320
5321 * mips-tdep.c (mips_in_return_stub): Make static.
5322 (mips_gdbarch_init): Set in_solib_return_trampoline.
5323 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5324
5325 2002-08-20 Michael Snyder <msnyder@redhat.com>
5326
5327 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5328 * gdbarch.c, gdbarch.h: Regenerate.
5329 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5330 Add.
5331 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5332
5333 2002-08-20 Michael Snyder <msnyder@redhat.com>
5334
5335 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5336 (mips_gdbarch_init): Set skip_trampoline_code,
5337 in_solib_call_trampoline.
5338 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5339 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5340
5341 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5342
5343 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5344
5345 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5346 vector type for ev registers.
5347 (e500_pseudo_register_read): New function.
5348 (e500_pseudo_register_write): New function.
5349 (e500_dwarf2_reg_to_regnum): New function.
5350 (PPC_UISA_NOFP_SPRS): New macro.
5351 (PPC_EV_REGS): New macro.
5352 (PPC_GPRS_PSEUDO_REGS): New macro.
5353 (registers_e500): New register set for e500.
5354 (variants): Add e500 variant.
5355 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5356 before setting architectural dependent variations. Initialize ev
5357 registers numbers. Add case for e500 architecture. Set the
5358 number of pseudo registers.
5359
5360 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5361
5362 * rs6000-tdep.c: Clean up comments.
5363
5364 2002-08-20 Andrew Cagney <cagney@redhat.com>
5365
5366 * h8300-tdep.c: Re-indent file.
5367
5368 2002-08-20 Jim Blandy <jimb@redhat.com>
5369
5370 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5371 default for this.
5372
5373 2002-08-20 Keith Seitz <keiths@redhat.com>
5374
5375 * breakpoints.c (watch_command_1): Use internal breakpoint
5376 when setting a watchpoint_scope breakpoint.
5377
5378 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5379
5380 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5381 (build_builtin_type_vec64i): Ditto.
5382 (build_builtin_type_vec128): Ditto.
5383 (build_builtin_type_vec128i): Ditto.
5384
5385 2002-08-19 Michael Snyder <msnyder@redhat.com>
5386
5387 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5388 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5389 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5390 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5391 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5392 CALL_DUMMY_ADDRESS): Delete.
5393 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5394 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5395 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5396 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5397 push_return_address.
5398 (mips_register_raw_size, mips_eabi_use_struct_convention,
5399 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5400 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5401 mips_init_extra_frame_info, mips_eabi_push_arguments,
5402 mips_n32n64_push_arguments, mips_push_return_address,
5403 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5404 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5405
5406 2002-08-19 Michael Snyder <msnyder@redhat.com>
5407
5408 * mips-tdep.c (mips_frame_num_args): New function.
5409 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5410 frame_saved_pc, frame_args_address, frame_locals_address,
5411 frame_num_args, and frame_args_skip.
5412 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5413 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5414 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5415 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5416
5417 2002-08-20 Michael Snyder <msnyder@redhat.com>
5418
5419 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5420 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5421 * mips-tdep.c (mips_store_struct_return): New function.
5422 (mips_extract_struct_value_address): New function.
5423 (mips_gdbarch_init): Set store_struct_return and
5424 extract_struct_value_address.
5425
5426 2002-08-20 David Carlton <carlton@math.stanford.edu>
5427
5428 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5429 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5430 (read_file_scope): Check that line_header is nonzero before
5431 decoding macro information.
5432
5433 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5434
5435 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5436 flag the general-purpose registers as floating-point on targets
5437 that don't support the floating-point registers.
5438
5439 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5440
5441 * rs6000-tdep.c (altivec_register_p): Delete.
5442 (rs6000_do_altivec_registers): Delete.
5443 (rs6000_altivec_registers_info): Delete.
5444 (rs6000_do_registers_info): Delete.
5445 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5446 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5447
5448 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5449
5450 * infcmd.c (do_registers_info): Print vector registers in hex
5451 format only.
5452 (print_vector_info): Check that printing registers
5453 makes sense.
5454 (print_float_info): Ditto.
5455
5456 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5457
5458 * mips-tdep.c (mips_gdbarch_init): Update.
5459 (mips_o32_extract_return_value): Rewrite.
5460 (mips_o32_store_return_value): Rewrite.
5461 (mips_o32_xfer_return_value): New function.
5462 (mips_xfer_register): Tweak debug print message. Allow for
5463 buf_offset when dumping the value transfered.
5464
5465 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5466
5467 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5468 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5469 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5470 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5471 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5472
5473 2002-08-14 Michael Snyder <msnyder@redhat.com>
5474
5475 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5476
5477 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5478
5479 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5480 register.
5481 (P): New macro to define a register as a pseudo register.
5482 (R, R4, R8, R16, FR32, R64, R0): Updated.
5483 (struct variant): Add new fields for number of pseudo registers
5484 and number of total registers.
5485 (tot_num_registers): New macro replacing....
5486 (num_registers): ...deleted macro.
5487 (num_registers): New function.
5488 (num_pseudo_registers): New function.
5489 (variants): Update all variants to intialize new fields correctly.
5490 Postpone initialization of number of pseudo regs and real regs.
5491 (init_variants): New function.
5492 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5493 registers offsets.
5494
5495 2002-08-19 David Carlton <carlton@math.stanford.edu>
5496
5497 * valops.c (search_struct_field): Change error message to treat
5498 return value of 0 from value_static_field as meaning that field is
5499 optimized out.
5500 (value_struct_elt_for_reference): Ditto.
5501 * values.c (value_static_field): Treat an unresolved location the
5502 same as a nonexistent symbol. Fix PR gdb/635.
5503 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5504 enclosed. Fix PR gdb/574.
5505 * MAINTAINERS: Add self to Write After Approval list.
5506
5507 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5508
5509 * mips-tdep.c (mips_xfer_register): New function.
5510 (mips_n32n64_extract_return_value): Rewrite.
5511 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5512 instead of deprecated_extract_return_value.
5513
5514 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5515
5516 * rs6000-tdep.c (TDEP): Delete macro.
5517 (branch_dest): Replace use of TDEP macro with its body.
5518 (rs6000_pop_frame): Ditto.
5519 (rs6000_push_arguments): Ditto.
5520 (rs6000_skip_trampoline_code): Ditto.
5521 (rs6000_frame_saved_pc): Ditto.
5522 (rs6000_frame_chain): Ditto.
5523 (rs6000_register_name): Ditto.
5524 (rs6000_register_byte): Ditto.
5525 (rs6000_register_raw_size): Ditto.
5526 (rs6000_register_virtual_type): Ditto.
5527 (rs6000_register_convertible): Ditto.
5528 (rs6000_convert_from_func_ptr_addr): Ditto.
5529
5530 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5531
5532 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5533 conditionally.
5534 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5535 MIPS_LINUX_JB_ELEMENT_SIZE.
5536 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5537 for MAX_REGISTER_RAW_SIZE arrays.
5538 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5539 MIPS_LINUX_JB_ELEMENT_SIZE.
5540
5541 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5542
5543 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5544
5545 2002-08-19 Aidan Skinner <aidan@velvet.net>
5546
5547 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5548 ada-valprint.c ada-tasks.c.
5549 (YYFILES): Add ada-exp.y.
5550 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5551 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5552 (ada-exp.tab.o): New target.
5553
5554 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5555
5556 * regcache.c (regcache_xfer_part): New function.
5557 (regcache_raw_read_part): New function.
5558 (regcache_raw_write_part): New function.
5559 (regcache_cooked_read_part): New function.
5560 (regcache_cooked_write_part): New function.
5561 * regcache.h (regcache_raw_read_part): Declare.
5562 (regcache_raw_write_part): Declare.
5563 (regcache_cooked_read_part): Declare.
5564 (regcache_cooked_write_part): Declare.
5565
5566 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5567
5568 * remote.c (remote_open_1): Add async_p.
5569 (remote_async_open_1): Delete.
5570 (open_remote_target): Delete.
5571 (remote_open, extended_remote_open): Update calls to remote_open_1.
5572 (remote_async_open, extended_remote_async_open): Call
5573 remote_open_1 instead of remote_async_open_1.
5574
5575 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5576
5577 * blockframe.c: Fix a few coding standard violations.
5578
5579 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5580
5581 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5582 here from ...
5583 * config/i386/tm-i386sco5.h: ... here. File removed.
5584 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5585
5586 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5587 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5588 (TM_FILE): Set to tm-i386.h.
5589 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5590 * config/i386/tm-i386v.h: Remove file.
5591 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5592 instead of "i386/tm-i386v.h".
5593 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5594 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5595 "i386/tm-i386v.h".
5596 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5597 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5598 "i386/tm-i386.h".
5599
5600 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5601
5602 * config/i386/nm-i386v.h: Add protection against
5603 multiple-inclusion.
5604 (i386_register_u_addr): Remove prototype.
5605 (register_u_addr): New prototype.
5606 (REGISTER_U_ADDR): Redefine accordingly.
5607 * i386v-nat.c: Improve several comments.
5608 (i386_register_u_addr): Change signature and rename to
5609 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5610 ubase variable.
5611
5612 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5613
5614 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5615 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5616 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5617 deprecated_extract_return_value.
5618 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5619 rename mips_o32o64_push_arguments.
5620 (mips_gdbarch_init): Update.
5621 (mips_extract_return_value): Delete.
5622 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5623 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5624 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5625 (mips_n32n64_extract_return_value): Clone
5626 mips_extract_return_value.
5627 (mips_store_return_value): Delete.
5628 (mips_o32_store_return_value): Clone mips_store_return_value.
5629 (mips_o64_store_return_value): Clone mips_store_return_value.
5630 (mips_eabi_store_return_value): Clone mips_store_return_value.
5631 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5632
5633 2002-08-18 Aidan Skinner <aidan@velvet.net>
5634
5635 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5636 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5637
5638 2002-08-18 Aidan Skinner <aidan@velvet.net>
5639
5640 * ada-lang.c: Run through gdb_indent.sh.
5641 * ada-lang.h: Run through gdb_indent.sh.
5642 * ada-tasks.c: Run through gdb_indent.sh.
5643 * ada-typeprint.c: Run through gdb_indent.sh.
5644 * ada-valprint.c: Run through gdb_indent.sh.
5645
5646 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5647
5648 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5649 ABI.
5650
5651 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5652
5653 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5654
5655 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5656 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5657
5658 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5659 write_register_gen instead of write_register_bytes.
5660
5661 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5662 i[3456]-*-osf1mk* configurations have been made obsolete.
5663 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5664 i[3456]86-*-osf1mk* hosts obsolete.
5665 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5666 targets obsolete.
5667 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5668 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5669 config/i386/i386m3.mt, config/i386/nm-m3.h,
5670 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5671 config/i386/i386mk.mh, config/i386/i386mk.mt,
5672 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5673 obsolete.
5674 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5675 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5676 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5677
5678 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5679
5680 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5681 (hppa_value_returned_from_stack): Declare.
5682 (hppa_extract_return_value): Declare.
5683 * config/pa/hppa.mt: New file.
5684 * configure.tgt: Recognize hppa*-*-*.
5685 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5686
5687 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5688
5689 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5690 comment.
5691
5692 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5693
5694 * top.c (gdb_rl_operate_and_get_next): Make sure
5695 operate-and-get-next functions correctly even when the history
5696 list is completely filled.
5697
5698 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5699
5700 * MAINTAINERS (Target Instruction Set Architectures): Rename
5701 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5702 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5703 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5704 already listed under Host/Native.
5705
5706 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5707 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5708 mips*-*-*.
5709
5710 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5711
5712 * config/ia64/ia64.mt: New file.
5713 * config/alpha/alpha.mt: New file.
5714 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5715 ia64-linux-gnu. Mention that ia64-elf is broken.
5716 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5717
5718 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5719
5720 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5721 generic_func_frame_valid instead of func_frame_valid.
5722
5723 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5724
5725 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5726 procfs appears to be broken when debugging on multi-processor
5727 machines. So enable software single stepping in order to avoid
5728 using the procfs interface to do next/step operations, using
5729 internal breakpoints instead.
5730
5731 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5732 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5733 make this pc address equal to the value it would have if the
5734 system stepping capability was used. Also set a new flag used
5735 to ensure that we don't readjust the PC one more time later.
5736
5737 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5738 address by DECR_PC_AFTER_BREAK when software single step is
5739 in use for this architecture, as this has already been taken
5740 care of in handle_inferior_event().
5741
5742 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5743
5744 * infrun.c (handle_inferior_event): Minor reformatting, to make
5745 a rather long condition expression easier to read.
5746
5747 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5748
5749 * Makefile.in (gdbtk.o): Move to end of file.
5750 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5751 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5752 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5753 (gdbtk-wrapper.o, gdbres.o): Ditto.
5754
5755 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5756
5757 * Makefile.in (copying.o): Separate out compile rule.
5758 (hpux-thread.o, procfs.o, signals.o): Ditto.
5759 (v850ice.o, z8k-tdep.o): Ditto.
5760 (tui-file.o): Move to TUI section.
5761 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5762 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5763
5764 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5765
5766 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5767 skip_trampoline_code, for better namespace-proofing.
5768
5769 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5770
5771 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5772
5773 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5774
5775 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5776
5777 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5778 signal, check whether we hit a breakpoint before checking for a
5779 single step breakpoint. Otherwise, GDB fails to notice that a
5780 breakpoint has been hit when stepping onto a breakpoint.
5781
5782 2002-08-16 Keith Seitz <keiths@redhat.com>
5783
5784 * gdb-events.sh (clear_gdb_event_hooks): New function.
5785 * gdb-events.c: Regenerate.
5786 * gdb-events.h: Regenerate.
5787
5788 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5789
5790 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5791 not_a_sw_breakpoint.
5792 * breakpoint.h (bpstat_stop_status): Add parameter names.
5793
5794 2002-08-16 Grace Sainsbury <graces@redhat.com>
5795
5796 * remote.c (remote_insert_hw_breakpoint)
5797 (remote_remove_hw_breakpoint): Fix calculation of length field
5798 for Z-packet.
5799
5800 2002-08-15 Michael Snyder <msnyder@redhat.com>
5801
5802 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5803 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5804 (supply_fpregset): Ditto.
5805
5806 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5807 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5808 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5809 (TARGET_READ_SP): Delete.
5810 (DO_REGISTERS_INFO): Delete.
5811 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5812 Delete.
5813 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5814 from macros to functions.
5815
5816 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5817 (mips_register_convertible, mips_register_convert_to_virtual,
5818 mips_register_convert_to_raw): Make static.
5819 (mips_read_sp): New function.
5820 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5821 (mips_do_registers_info): Make static.
5822 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5823 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5824 (mips_register_convert_from_type, mips_register_convert_to_type):
5825 New functions.
5826 (mips_gdbarch_init): Set up function_start_offset,
5827 register_virtual_size, pc_in_sigtramp.
5828
5829 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5830
5831 * infcmd.c (vector_info): New function.
5832 (_initialize_infcmd): Add command "info vector".
5833 (print_vector_info): New function.
5834
5835 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5836 * gdbarch.h, gdbarch.c: Regenerate.
5837
5838 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5839
5840 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5841 ``print_all''. Only print vector registers when ``print_all''.
5842
5843 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5844
5845 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5846 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5847
5848 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5849 Add `args' parameter.
5850 * gdbarch.h, gdbarch.c: Regenerate.
5851
5852 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5853
5854 * infcmd.c (float_info): Call print_float_info.
5855 (print_float_info): New function. By default, print the
5856 floating-point registers.
5857
5858 * arch-utils.h (default_print_float_info): Delete declaration.
5859 * arch-utils.c (default_print_float_info): Delete function.
5860
5861 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5862
5863 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5864 out define.
5865
5866 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5867 FRAME.
5868
5869 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5870 * configure.host: Make i[3456]86-*-aix host obsolete.
5871 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5872 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5873 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5874 config/i386/xm-i386aix.h: Make files obsolete.
5875 * i386aix-nat.c: Make file obsolete.
5876 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5877 (i386aix-nat.o): Make target obsolete.
5878
5879 * config/i386/nm-gnu.h: Removed.
5880 * config/i386/nm-i386gnu.h: New file.
5881 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5882 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5883 Moved here from ...
5884 * config/i386/tm-i386gnu.h: ... here. Removed.
5885 * config/i386/xm-i386gnu.h: Removed.
5886 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5887 (NAT_FILE): Set to nm-i386gnu.h.
5888 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5889 * i386-tdep.c: New file.
5890 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5891 (i386gnu-tdep.o): Specify dependencies.
5892
5893 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5894
5895 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5896 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5897 Adjust a few comments to reflect reality a bit closer.
5898 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5899 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5900 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5901 target_insert_watchpoint, target_remove_watchpoint):
5902 Move defines to ...
5903 * config/i386/nm-i386sco5.h: ... here.
5904 (kernel_u_size): Add prototype. Improve a few comments and add
5905 protection against multiple inclusion.
5906
5907 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5908 out define.
5909
5910 * uw-thread.c (SP_ARG0): Define if not already defined.
5911 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5912
5913 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5914
5915 * config/i386/tm-i386.h: Don't include "regcache.h".
5916
5917 * i387-tdep.h (i387_print_float_info): New prototype.
5918 * i387-tdep.c (print_i387_value, print_i387_ext,
5919 print_i387_status_word, print_i387_control_word): Add `struct
5920 ui_file *' argument and use it for output.
5921 (i387_print_float_info): Renamed from i387_float_info. Add
5922 `struct gdbarch *' and `struct ui_file *' arguments and use the
5923 latter for output.
5924 * i386-tdep.c: Include "i387-tdep.h".
5925 (i386_gdbarch_init): Set print_float_info.
5926 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5927 (FLOAT_INFO): Remove define.
5928
5929 2002-08-13 Michael Snyder <msnyder@redhat.com>
5930
5931 * mips-tdep.c (mips_push_arguments): Rename to
5932 mips_eabi_push_arguments, and tune for EABI.
5933 (MIPS_REGS_HAVE_HOME_P): Delete.
5934 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5935 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5936 Delete references to mips_regs_have_home_p.
5937
5938 2002-08-14 Keith Seitz <keiths@redhat.com>
5939
5940 * Makefile.in (install-gdbtk): Create insight plugin directory.
5941 Install plugins.tcl file.
5942
5943 2002-08-14 Keith Seitz <keiths@redhat.com>
5944
5945 * configure.in: Move SUBDIRS to near top of the file so that
5946 --enable options may add things to it.
5947 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5948 * configure: Regenerate.
5949
5950 2002-08-13 Michael Snyder <msnyder@redhat.com>
5951
5952 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5953 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5954 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5955
5956 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5957
5958 * vax-tdep.c (vax_get_saved_register): Delete function.
5959 (vax_gdbarch_init): Update.
5960 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5961 (ns32k_gdbarch_init): Update.
5962 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5963 (alpha_gdbarch_init): Update.
5964
5965 2002-08-13 Andrew Cagney <cagney@redhat.com>
5966
5967 * regcache.c (init_regcache_descr): Overallocate the
5968 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5969 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5970 nr_raw_registers.
5971 (set_register_cached): Add range checking assertions. Use
5972 current_regcache.
5973
5974 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5975
5976 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5977 numbers for MMX registers.
5978
5979 2002-08-13 Andrew Cagney <cagney@redhat.com>
5980
5981 * i386-tdep.c (i386_gdbarch_init): Use
5982 generic_unwind_get_saved_register.
5983
5984 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5985
5986 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5987 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5988 target vector.
5989 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5990 Delete. Add comment regarding this now-deleted target method.
5991
5992 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5993
5994 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5995 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5996 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5997 real PC and the page number (if it's within the memory bank window).
5998 (m68hc11_pseudo_register_write): Likewise when saving.
5999 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6000 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6001 (m68hc11_register_raw_size): And use 32-bit for it.
6002 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6003 16K memory bank is used by the prog; also use the virtual pc.
6004
6005 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6006
6007 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6008 (m68hc11_gdbarch_init): Install it in gdbarch.
6009 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6010 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6011 (MSYMBOL_SIZE): New for documentation.
6012 (insn_return_kind): Enum to specify how a function returns.
6013 (frame_extra_info): Cleanup and record the return mode.
6014 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6015 register in address computation.
6016 (m68hc11_get_return_insn): New to obtain the return instruction used
6017 by the function.
6018 (m68hc11_frame_init_saved_regs): Take into account the return
6019 instruction used by the function for far and interrupt functions.
6020 (m68hc11_init_extra_frame_info): Take into account page register.
6021 (m68hc11_frame_args_address): Adjust according to the return mode.
6022 (show_regs): Print page register only when it's used.
6023
6024 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6025
6026 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6027 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6028 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6029 registers.
6030 (m68hc11_register_raw_size): Likewise.
6031
6032 2002-08-13 Andrew Cagney <cagney@redhat.com>
6033
6034 * i386-tdep.c (i386_register_name): Handle mmx registers.
6035 (mmx_regnum_p): New function.
6036 (i386_mmx_names): New array.
6037 (mmx_num_regs): New variable.
6038 (i386_pseudo_register_read): New function.
6039 (i386_pseudo_register_write): New function.
6040 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6041
6042 * regcache.c (regcache_raw_read_unsigned): New function.
6043 (regcache_raw_read_signed): New function.
6044 * regcache.h (regcache_raw_read_unsigned): Declare.
6045 (regcache_raw_read_signed): Declare.
6046
6047 2002-08-13 Andrew Cagney <cagney@redhat.com>
6048
6049 * regcache.c (regcache_raw_read_as_address): Delete function.
6050 (regcache_cooked_read_signed): New function.
6051 (regcache_cooked_read_unsigned): New function.
6052 * regcache.h (regcache_cooked_read_signed): Declare.
6053 (regcache_cooked_read_unsigned): Declare.
6054 (regcache_raw_read_as_address): Delete declaration.
6055
6056 * blockframe.c (generic_read_register_dummy): Use
6057 regcache_cooked_read_unsigned.
6058 * i386-tdep.c (i386_extract_struct_value_address): Use
6059 regcache_cooked_read_unsigned.
6060
6061 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6062
6063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6064 double sizes according to ELF ABI flags.
6065 (gdbarch_tdep): Record elf_flags.
6066
6067 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6068
6069 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6070 (m6812_prolog): They can appear in 68HC12 function prologue.
6071 (m68hc11_frame_chain): Cleanup.
6072
6073 2002-08-12 Andrew Cagney <cagney@redhat.com>
6074
6075 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6076 declarations.
6077 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6078 (i386_linux_register_raw_size): Delete function.
6079 (i386_linux_init_abi): Update.
6080 * i386-tdep.c (i386_register_raw_size): Delete function.
6081 (i386_register_byte): Delete function.
6082 (i386_gdbarch_init): Update.
6083 (i386_register_size): Delete array.
6084 (i386_register_offset): Delete array.
6085
6086 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6087 (REGISTER_RAW_SIZE): Delete macro.
6088 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6089 (REGISTER_BYTE): Delete macro.
6090
6091 2002-08-11 Aidan Skinner <aidan@velvet.net>
6092
6093 * ada-lang.c (ada_lookup_partial_symbol)
6094 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6095 prototype names so that grep ^func works properly.
6096
6097 * ada-lang.c (ada_array_element_type)
6098 (ada_lookup_partial_symbol): Fix typos in parameter list.
6099
6100 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6101 Fix prototype names so that grep ^func works properly.
6102
6103 2002-08-10 Andrew Cagney <cagney@redhat.com>
6104 Elena Zannoni <ezannoni@redhat.com>
6105 Martin M. Hunt <hunt@redhat.com>
6106
6107 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6108 (build_builtin_type_vec128i): Set the vector bit.
6109 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6110 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6111 (build_builtin_type_vec64): New function.
6112 (build_builtin_type_vec64i): New function.
6113 (build_gdbtypes): Initialize builtin_type_vec64 and
6114 builtin_type_vec64i.
6115
6116 2002-08-09 Andrew Cagney <cagney@redhat.com>
6117
6118 * regcache.c (regcache_dump): Compare the register offset
6119 with REGISTER_BYTE.
6120 * arch-utils.c (generic_register_byte): New function.
6121 * arch-utils.h (generic_register_byte): Declare.
6122 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6123 * gdbarch.h, gdbarch.c: Regenerate.
6124
6125 2002-08-09 Andrew Cagney <cagney@redhat.com>
6126
6127 * regcache.c: Include "gdbcmd.h"
6128 (_initialize_regcache): Add commands "maintenance print
6129 registers", "maintenance print raw-registers" and "maintenance
6130 print cooked-registers".
6131 (enum regcache_dump_what): Define.
6132 (dump_endian_bytes): New function.
6133 (regcache_dump): New function.
6134 (regcache_print): New function.
6135 (maintenance_print_registers): New function.
6136 (maintenance_print_raw_registers): New function.
6137 (maintenance_print_cooked_registers): New function.
6138 * Makefile.in (regcache.o): Update dependencies.
6139
6140 2002-08-09 Michael Snyder <msnyder@redhat.com>
6141
6142 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6143 (mips_push_arguments): Correct some comments. Use paddr_nz
6144 for printing addresses in debug output. Replace static
6145 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6146 (mips_n32n64_push_arguments): New function, cloned from
6147 mips_push_arguments and tuned for the n32/n64 ABI.
6148 (mips_push_register): Buffer needs dynamic allocation.
6149 (mips_print_register): Ditto.
6150 (do_gp_register_row): Ditto.
6151 (mips_store_return_value): Ditto.
6152 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6153
6154 2002-08-09 Don Howard <dhoward@redhat.com>
6155
6156 * memattr.c (mem_info_command): Print special case of upper bound
6157 as max CORE_ADDR + 1.
6158
6159 2002-08-08 Michael Snyder <msnyder@redhat.com>
6160
6161 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6162 returns structs by ref if they're too big to fit in two registers.
6163
6164 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6165
6166 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6167 saved regs value.
6168 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6169 mips_find_saved_regs().
6170 (mips_pop_frame): Likewise.
6171
6172 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6173
6174 * blockframe.c (frame_saved_regs_register_unwind): Revise
6175 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6176 frames are in use.
6177
6178 2002-08-09 Grace Sainsbury <graces@redhat.com>
6179
6180 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6181 T-packets; the 'a' is not taken as a register number.
6182 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6183 (remote_stopped_data_address): New functions; add to target
6184 vector.
6185 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6186 prototypes to match other implementations of this
6187 function. replace integer argument with pointer -- the length
6188 field in the Z-packet is the length of what is pointed to or 1 if
6189 pointer is null. Add to target vector.
6190 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6191 target vector.
6192
6193 From Mark Salter:
6194 * remote.c (remote_wait): Add support to extract optional
6195 watchpoint information from T-packet. Ignore unrecognized
6196 optional info in T-packet.
6197 (remote_async_wait): Ditto.
6198
6199 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6200
6201 * cli/cli-dump.c: Change fopen modes to use binary open modes
6202 as defined in include/fopen-bin.h throughout.
6203
6204 2002-08-08 Michael Snyder <msnyder@redhat.com>
6205
6206 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6207
6208 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6209
6210 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6211 assertion failure by returning early after a warning.
6212
6213 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6214
6215 * mips-tdep.c (mips_find_saved_regs): Make static.
6216 (mips_frame_init_saved_regs): New function.
6217 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6218 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6219 (mips_find_saved_regs): Delete declaration.
6220
6221 2002-08-08 Grace Sainsbury <graces@redhat.com>
6222
6223 * remote.c (remote_wait, remote_async_wait): Change
6224 thread_num from int to ULONGEST.
6225 (unpack_varlen_hex): Change result parameter from
6226 int * to ULONGEST *.
6227
6228 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6229
6230 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6231 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6232 powerpc*-*-*.
6233 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6234
6235 2002-08-08 Andrew Cagney <cagney@redhat.com>
6236
6237 * gcore.c (override_derive_stack_segment): Delete variable.
6238 (preempt_derive_stack_segment): Delete function.
6239 (derive_stack_segment): Delete function.
6240 (default_derive_stack_segment): Renamed to derive_stack_segment.
6241 (override_derive_heap_segment): Delete variable.
6242 (preempt_derive_heap_segment): Delete function.
6243 (derive_heap_segment): Delete function.
6244 (default_derive_heap_segment): Rename to derive_heap_segment.
6245
6246 2002-08-06 Michael Snyder <msnyder@redhat.com>
6247
6248 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6249 * mips-tdep.c (mips_EABI_use_struct_convention,
6250 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6251 New functions. (mips_use_struct_convention): Delete.
6252 (mips_gdbarch_init): set use_gdbarch_convention.
6253
6254 2002-08-06 Michael Snyder <msnyder@redhat.com>
6255
6256 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6257 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6258 mips_o32_reg_struct_has_addr): New functions.
6259 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6260
6261 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6262
6263 * regcache.c (pseudo_register): Delete function.
6264 (fetch_register): Delete function.
6265 (store_register): Delete function.
6266 (regcache_raw_read, legacy_read_register_gen): Use
6267 target_fetch_registers instead of fetch_register.
6268 (legacy_write_register_gen, regcache_raw_write): Use
6269 target_store_register instead of store_register.
6270 (write_register_bytes): Ditto.
6271
6272 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6273 (STORE_PSEUDO_REGISTER): Delete.
6274 * gdbarch.h, gdbarch.c: Regenerate.
6275
6276 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6277
6278 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6279 write dump file binary.
6280
6281 2002-08-05 Michael Snyder <msnyder@redhat.com>
6282
6283 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6284 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6285 (mips_gdbarch_init): Set N32 target to be mips64.
6286
6287 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6288
6289 * frame.c (find_saved_register): Break out of loop once saved
6290 register address is found. Don't mention sparc in loop comment
6291 anymore.
6292
6293 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6294
6295 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6296 mips_default_saved_regsize to 8.
6297
6298 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6299
6300 * gcore.c: Do not include <sys/procfs.h>.
6301 * Makefile.in (gcore.o): Update dependencies.
6302
6303 2002-08-06 Andrew Cagney <cagney@redhat.com>
6304
6305 * configure.tgt: Make arc-*-* obsolete.
6306 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6307 * MAINTAINERS: Make arc-elf obsolete.
6308 * arc-tdep.c: Make file obsolete.
6309 * config/arc/arc.mt: Ditto.
6310 * config/arc/tm-arc.h: Ditto.
6311
6312 2002-08-05 Theodore A. Roth <troth@verinet.com>
6313
6314 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6315
6316 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6317
6318 * mcore-tdep.c (mcore_gdbarch_init): Use
6319 generic_unwind_get_saved_register instead of
6320 generic_get_saved_register.
6321 * v850-tdep.c (v850_gdbarch_init): Ditto.
6322 * frv-tdep.c (frv_gdbarch_init): Ditto.
6323 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6324 * s390-tdep.c (s390_gdbarch_init): Ditto.
6325 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6326 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6327 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6328
6329 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6330
6331 * objfiles.h: Add missing #include "symfile.h"
6332
6333 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6334
6335 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6336
6337 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6338 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6339 of FIELD_BITSIZE.
6340
6341 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6342
6343 * NEWS: Cleanup and nitpick.
6344
6345 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6346
6347 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6348
6349 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6350
6351 * Makefile.in (gdbtk-bp.o): Update dependencies.
6352 (gdbtk-register.o): Ditto.
6353 (gdbtk-varobj.o): Ditto.
6354
6355 2002-08-03 Andrew Cagney <cagney@redhat.com>
6356
6357 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6358 m68hc11_fetch_pseudo_register.
6359 (m68hc11_pseudo_register_write): Replace
6360 m68hc11_store_pseudo_register.
6361 (m68hc11_gdbarch_init): Update.
6362
6363 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6364
6365 * gdbarch.sh: Include "gdb_string.h".
6366 * gdbarch.c: Regenerate.
6367
6368 * regcache.c: Include "gdb_string.h".
6369 * ax-general.c: Ditto.
6370 * varobj.c: Ditto.
6371 * std-regs.c: Ditto.
6372 * fbsd-proc.c: Ditto.
6373 * thread.c: Ditto.
6374
6375 * Makefile.in (regcache.o): Update dependencies.
6376 (thread.o, gdbarch.o): Ditto.
6377 (ax-general.o, gdbarch.o): Ditto.
6378 (varobj.o, std-regs.o): Ditto.
6379 (fbsd-proc.o): Specify dependencies.
6380
6381 2002-08-02 Andrew Cagney <cagney@redhat.com>
6382
6383 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6384 regnum.
6385 (regcache_cooked_write): Ditto.
6386
6387 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6388
6389 * regcache.c (regcache_cooked_read): New function.
6390 (regcache_cooked_write): New function.
6391 (read_register_gen): Rewrite using regcache_cooked_read.
6392 (write_register_gen): Rewrite using regcache_cooked_write.
6393
6394 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6395 Declare.
6396
6397 2002-08-02 Andrew Cagney <cagney@redhat.com>
6398
6399 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6400 Replace the architecture methods register_read and register_write.
6401 * gdbarch.h, gdbarch.c: Regenerate.
6402 * regcache.c (init_regcache_descr): Update.
6403 (read_register_gen): Update.
6404 (write_register_gen): Update.
6405 (supply_register): Update comment.
6406
6407 * sh-tdep.c (sh_gdbarch_init): Update.
6408 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6409 `regcache' and `gdbarch' parameters. Make `buffer' a void
6410 pointer. Update code.
6411 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6412 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6413 void pointer. Update code.
6414 (sh64_register_write): Delete.
6415 (sh4_register_read): Delete.
6416 (sh64_register_read): Delete.
6417 (sh4_register_write): Delete.
6418 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6419 void pointer, `to' parameter a void pointer.
6420 (sh_sh64_register_convert_to_raw): Ditto.
6421
6422 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6423
6424 * mips-tdep.c (mips_register_virtual_type): Use architecture
6425 invariant return values.
6426
6427 2002-08-01 Andrew Cagney <cagney@redhat.com>
6428
6429 * linux-proc.c: Include "gdb_string.h".
6430 * Makefile.in (linux-proc.o): Update dependency list.
6431
6432 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6433
6434 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6435 comment.
6436
6437 2002-08-01 Grace Sainsbury <graces@redhat.com>
6438
6439 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6440 to_insert_watchpoint, to_remove_watchpoint,
6441 to_stopped_by_watchpoint, to_stopped_data_address,
6442 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6443 target vecctor. Define their corresponding macros so they call
6444 them.
6445
6446 * target.c: Add default and debug versions of for
6447 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6448 to_insert_watchpoint, to_remove_watchpoint,
6449 to_stopped_by_watchpoint, to_stopped_data_address,
6450 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6451
6452 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6453
6454 * mips-tdep.c (mips_register_virtual_type): New function.
6455 (mips_gdbarch_init): Register mips_register_virtual_type()
6456 with gdbarch machinery.
6457 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6458 this file instead of tm-bigmips.h.
6459 (MIPS_REGSIZE): Delete this macro.
6460 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6461 multiarch version in mips-tdep.c will be found.
6462
6463 2002-08-01 Andrew Cagney <cagney@redhat.com>
6464
6465 * NEWS: Menion that CHILL has been made obsolete.
6466
6467 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6468 * stabsread.c (read_range_type): Ditto.
6469 * gdbtypes.h: Ditto.
6470 * language.c (binop_type_check): Ditto.
6471 (binop_result_type): Ditto.
6472 (integral_type): Ditto.
6473 (character_type): Ditto.
6474 (string_type): Ditto.
6475 (boolean_type): Ditto.
6476 (structured_type): Ditto.
6477 (lang_bool_type): Ditto.
6478 (binop_type_check): Ditto.
6479 * language.h (_LANG_chill): Ditto.
6480 * dwarfread.c (set_cu_language): Ditto.
6481 * dwarfread.c (CHILL_PRODUCER): Ditto.
6482 * dwarfread.c (handle_producer): Ditto.
6483 * expression.h (enum exp_opcode): Ditto.
6484 * eval.c: Ditto for comments.
6485 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6486 * expprint.c (print_subexp): Ditto.
6487 (print_subexp): Ditto.
6488 * valops.c (value_cast): Ditto.
6489 (search_struct_field): Ditto.
6490 * value.h (COERCE_VARYING_ARRAY): Ditto.
6491 * symfile.c (init_filename_language_table): Ditto.
6492 (add_psymbol_with_dem_name_to_list): Ditto.
6493 * valarith.c (value_binop): Ditto.
6494 (value_neg): Ditto.
6495 * valops.c (value_slice): Ditto.
6496 * symtab.h (union language_specific): Ditto.
6497 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6498 (SYMBOL_DEMANGLED_NAME): Ditto.
6499 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6500 * defs.h (enum language): Ditto.
6501 * symtab.c (got_symtab): Ditto.
6502 * utils.c (fprintf_symbol_filtered): Ditto.
6503
6504 * ch-typeprint.c: Make file obsolete.
6505 * ch-valprint.c: Make file obsolete.
6506 * ch-lang.h: Make file obsolete.
6507 * ch-exp.c: Make file obsolete.
6508 * ch-lang.c: Make file obsolete.
6509
6510 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6511 CHILL_LIB.
6512 (TARGET_FLAGS_TO_PASS): Ditto.
6513 (CHILLFLAGS): Obsolete.
6514 (CHILL): Obsolete.
6515 (CHILL_FOR_TARGET): Obsolete.
6516 (CHILL_LIB): Obsolete.
6517 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6518 ch-valprint.c.
6519 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6520 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6521 ch-lang.o.
6522 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6523 targets.
6524
6525 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6526
6527 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6528 This does not change anything at the moment, but will be helpful
6529 later when full Ada support is integrated.
6530
6531 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6532
6533 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6534 help message.
6535
6536 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6537
6538 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6539 and save it in a local variable. Use variable in later test.
6540
6541 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6542
6543 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6544 test. (Thanks to Daniel Jacobowitz.)
6545
6546 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6547
6548 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6549 (mips_abi_strings): Add "n64".
6550 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6551
6552 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6553
6554 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6555 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6556
6557 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6558
6559 * utils.c (host_pointer_to_address, address_to_host_pointer):
6560 Use gdb_assert() instead of explicit call to internal_error().
6561
6562 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6563
6564 * Makefile.in (rs6000-nat.o): Update dependencies.
6565
6566 From Nicholas Duffek:
6567 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6568 (aix-thread.o): New rule.
6569 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6570 * config/powerpc/aix432.mh: New file.
6571
6572 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6573
6574 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6575 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6576 (fetch_core_registers, ppc_linux_supply_gregset)
6577 (ppc_linux_supply_fpregset): New functions.
6578 (ppc_linux_regset_core_fns): New.
6579 (_initialize_ppc_linux_tdep): Call add_core_fns.
6580 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6581 and ppc_linux_supply_gregset.
6582 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6583 (supply_fpregset): Call ppc_linux_supply_fpregset.
6584 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6585 corelow.o.
6586 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6587
6588 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6589
6590 * symtab.c (lookup_symbol): Demangle before lowercasing.
6591
6592 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6593
6594 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6595 declaration.
6596 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6597 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6598 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6599 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6600 "gdb_string.h".
6601 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6602 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6603 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6604 (avr-tdep.o, mon960-rom.o): Ditto.
6605 (aout_stabs_gnu_h): Define.
6606 (symtab_h): Remove $(gdb_obstack_h).
6607
6608 2002-07-30 Jim Blandy <jimb@redhat.com>
6609
6610 Patch from David Carlton <carlton@math.stanford.edu>:
6611 * gdbinit.in: Move the `dir' commands that add GDB's own source
6612 directory to the search path to the end, so that the `gdb' source
6613 directory will be searched first.
6614
6615 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6616
6617 * gdb_obstack.h: New file.
6618 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6619 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6620 * objfiles.h: Include "gdb_obstack.h".
6621 * Makefile.in (gdb_obstack_h): Define.
6622 (symtab_h): Add $(gdb_obstack_h).
6623 (objfiles_h): Add $(gdb_obstack_h).
6624
6625 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6626 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6627 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6628 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6629 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6630 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6631 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6632 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6633
6634 * Makefile.in (bcache.o): Update dependencies.
6635 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6636 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6637 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6638 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6639 (stabsread.o, symfile.o, symmisc.o): Ditto.
6640 (symtab.o, typeprint.o, macroexp.o): Ditto.
6641 (macrotab.o, mdebugread.o): Ditto.
6642 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6643 (coff_ecoff_h, aout_aout64_h): Define.
6644 (aout_stabs_gnu_h, libaout_h): Define.
6645
6646 2002-07-29 Andrew Cagney <cagney@redhat.com>
6647
6648 * regcache.c (struct regcache_descr): Rename nr_registers to
6649 nr_cooked_registers. Revise comments describing the structure
6650 member fields.
6651 (init_regcache_descr): Update.
6652 (init_legacy_regcache_descr): Update.
6653 (read_register_gen, write_register_gen): When a cooked register in
6654 the raw register range, directly access the value from the raw
6655 register cache.
6656
6657 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6658
6659 * z8k-tdep.c: Do not include "obstack.h".
6660 * h8300-tdep.c, h8500-tdep.c: Ditto.
6661 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6662 * valprint.c, v850-tdep.c: Ditto.
6663 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6664 * mn10200-tdep.c: Ditto.
6665
6666 * Makefile.in (z8k-tdep.o): Update dependencies.
6667 (m68hc11-tdep.o, valprint.o): Ditto.
6668 (v850-tdep.o, d10v-tdep.o): Ditto.
6669 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6670 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6671 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6672 (sh_opc_h, gdb_sim_sh_h): Define.
6673 (elf_sh_h, elf_bfd_h): Define.
6674 (opcode_m68hc11_h): Define.
6675 (OPCODES_SRC, OPCODES_DIR): define.
6676 (OPCODES): Use $(OPCODES_DIR).
6677 (gdb_sim_d10v_h): Rename sim_d10v_h.
6678 (gdb_sim_arm_h): Rename sim_arm_h.
6679
6680 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6681
6682 * utils.c (host_pointer_to_address, address_to_host_pointer):
6683 Change internal_error() message to indicate function responsible
6684 for the error.
6685
6686 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6687
6688 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6689 calls to local_hex_string_custom().
6690
6691 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6692
6693 * irix5-nat.c: Move IRIX shared library support from here...
6694 * solib-irix.c: ...to here. Revised substantially to work with
6695 generic solib framework.
6696
6697 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6698 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6699 * mips-irix-tdep.c: New file.
6700
6701 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6702 (mips-irix-tdep.o, solib-irix.o): New rules.
6703 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6704 solib-irix.o.
6705 * config/mips/irix6.mt (TDEPFILES): Likewise.
6706 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6707
6708 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6709
6710 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6711 disabled (via ``#if 0'') includes.
6712
6713 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6714
6715 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6716 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6717 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6718 Add support for the fpscr register.
6719 * rs6000-nat.c (regmap, fetch_inferior_registers)
6720 (store_inferior_registers, fetch_core_registers): Likewise.
6721
6722 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6723
6724 * rs6000-nat.c (language.h): Include.
6725 (special_regs): Delete this array.
6726 (regmap): New function.
6727 (fetch_register, store_register): Use regmap() to map gdb
6728 register numbers to ptrace register numbers. Also, use
6729 outputs from regmap() to make decisions regarding type of
6730 ptrace() call to make. In particular, don't compare against
6731 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6732 (fetch_inferior_registers, store_inferior_registers): Where
6733 possible, obtain register numbers from tdep struct. Don't
6734 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6735 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6736 (LAST_UISA_SP_REGNUM): Delete.
6737
6738 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6739
6740 * rs6000-nat.c (ppc-tdep.h): Include.
6741 (fetch_registers, store_register, fetch_core_registers): Don't
6742 access registers[] directly. Instead, use supply_register() or
6743 regcache_collect() as appropriate.
6744 (find_toc_address): Format hex address with local_hex_string().
6745
6746 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6747
6748 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6749 bfd/elf32-frv.c.
6750
6751 2002-07-24 Tom Tromey <tromey@redhat.com>
6752
6753 * jv-exp.y: Marked all strings with _().
6754 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6755 internal_error.
6756 (MethodInvocation, CastExpression, parse_number, yyerror,
6757 java_type_from_name, push_expression_name, yylex): Typo fixes.
6758
6759 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6760
6761 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6762 (tee_file_flush, tee_file_write, tee_file_fputs)
6763 (tee_file_isatty): New.
6764 * ui-file.h (tee_file_new): Add prototype.
6765
6766 2002-07-24 Aidan Skinner <aidan@velvet.net>
6767
6768 * ada-lang.c: Change k&r style function definitions to prototyped
6769 form.
6770 * ada-typeprint.c: Change k&r style function definitions to prototyped
6771 form.
6772 * ada-valprint.c: Change k&r style function definitions to prototyped
6773 form.
6774
6775 2002-07-24 Andrew Cagney <cagney@redhat.com>
6776
6777 * README: Remove reference to remote-bug.
6778 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6779 remote-bug.c.
6780 (m88k-nat.o): Delete rule.
6781 (m88k-tdep.o): Delete rule.
6782 (remote-bug.o): Delete rule.
6783 * MAINTAINERS: Mark as obsolete.
6784 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6785 * m88k-tdep.c: Make file obsolete.
6786 * config/m88k/m88k.mh: Ditto.
6787 * config/m88k/delta88v4.mh: Ditto.
6788 * config/m88k/delta88v4.mt: Ditto.
6789 * config/m88k/delta88.mt: Ditto.
6790 * config/m88k/delta88.mh: Ditto.
6791 * remote-bug.c: Ditto.
6792 * config/m88k/tm-delta88.h: Ditto.
6793 * config/m88k/nm-delta88v4.h: Ditto.
6794 * config/m88k/xm-delta88.h: Ditto.
6795 * config/m88k/xm-dgux.h: Ditto.
6796 * config/m88k/tm-m88k.h: Ditto.
6797 * config/m88k/nm-m88k.h: Ditto.
6798 * config/m88k/tm-delta88v4.h: Ditto.
6799 * m88k-nat.c: Ditto.
6800 * cxux-nat.c: Ditto.
6801 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6802 and m88*-*-* obsolete.
6803 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6804 m88*-*-* obsolete.
6805
6806 2002-07-24 Andrew Cagney <cagney@redhat.com>
6807
6808 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6809 constant. Same for local pointer variables.
6810 (extract_signed_integer): Ditto.
6811 * defs.h (extract_unsigned_integer): Update.
6812 (extract_signed_integer): Update.
6813
6814 2002-07-24 Andrew Cagney <cagney@redhat.com>
6815
6816 * regcache.c (regcache_raw_write): Change buf parameter to a
6817 constant void pointer.
6818 (regcache_raw_read): Change buf parameter to a void pointer.
6819 (legacy_write_register_gen): Change myaddr parameter a constant
6820 void pointer.
6821 (supply_register): Change val parameter to a const void pointer.
6822 * regcache.h (regcache_raw_write): Update declaration.
6823 (regcache_raw_read): Update declaration.
6824 (supply_register): Update declaration.
6825
6826 2002-07-24 Tom Tromey <tromey@redhat.com>
6827
6828 * defs.h (gdb_readline_wrapper): Declare.
6829 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6830 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6831 * top.c (gdb_readline_wrapper): New function.
6832 (command_line_input): Use it.
6833
6834 2002-07-24 Andrew Cagney <cagney@redhat.com>
6835
6836 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6837 regcache_read and regcache_write.
6838 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6839 * regcache.c: Update.
6840 * sh-tdep.c (sh64_push_arguments): Update comment.
6841 (sh_pseudo_register_read): Update.
6842 (sh_pseudo_register_write): Update.
6843 (sh4_register_read): Update.
6844 (sh4_register_write): Update.
6845 (sh64_pseudo_register_read): Update.
6846 (sh64_pseudo_register_write): Update.
6847 (sh64_register_read): Update.
6848 (sh64_register_write): Update.
6849 * i386-tdep.c (i386_extract_return_value): Update.
6850 (i386_extract_struct_value_address): Update.
6851 (i386_extract_return_value): Update.
6852 * blockframe.c (generic_read_register_dummy): Update.
6853 (generic_call_dummy_register_unwind): Update
6854 * infrun.c (write_inferior_status_register): Update.
6855
6856 2002-07-23 Jim Blandy <jimb@redhat.com>
6857
6858 * parser-defs.h (expression_context_pc): Make this extern.
6859 (Thanks to Michael Snyder.)
6860
6861 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6862
6863 GDB 5.2.1 released from 5.2 branch.
6864 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6865 * README: Update to mention 5.2.1.
6866
6867 2002-07-23 Mark Salter <msalter@redhat.com>
6868
6869 * remote.c (remote_read_bytes): Fix check for error.
6870
6871 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6872
6873 * aix-thread.c (language.h): Include.
6874 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6875 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6876 Print newlines at end of debug messages.
6877 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6878 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6879
6880 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6881
6882 * aix-thread.c (ppc-tdep.h): Include.
6883 (special_register_p): New function.
6884 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6885 (store_regs_user_thread): Use register number information from
6886 gdbarch_tdep struct instead of hardcoded offsets relative to
6887 FIRST_UISA_SP_REGNUM.
6888 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6889 special_register_p() instead of using FPLAST_REGNUM and
6890 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6891 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6892 will be MQ's register number.
6893
6894 2002-07-22 Michael Snyder <msnyder@redhat.com>
6895
6896 * aix-thread.c (ops): Rename to aix_thread_ops.
6897 (base_ops): Rename to base_target.
6898 (ops_attach): Rename to aix_thread_attach.
6899 (ops_detach): Rename to aix_thread_detach.
6900 (ops_resume): Rename to aix_thread_detach.
6901 (ops_wait): Rename to aix_thread_wait.
6902 (ops_kill): Rename to aix_thread_kill.
6903 (init_ops): Rename to init_aix_thread_ops.
6904 (ops_fetch_register): Rename to aix_thread_fetch_register.
6905 (ops_store_register): Rename to aix_thread_store_register.
6906 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6907 (ops_thread_alive): Rename to aix_thread_thread_alive.
6908 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6909 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6910 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6911 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6912 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6913 (store_regs_lib): Rename to store_regs_user_thread.
6914 (store_regs_kern): Rename to store_regs_kernel_thread.
6915
6916 2002-07-22 Michael Snyder <msnyder@redhat.com>
6917
6918 * aix-thread.c (ops_prepare_to_store): Eliminate.
6919 (init_ops): Don't initialize ops.prepare_to_store.
6920 (store_regs_kern): Pre-fetch register buffers from child,
6921 because some registers may not be in the cache. Copy
6922 regs from register cache only if they are cached.
6923 (store_regs_lib): Copy regs from register cache only
6924 if they are cached.
6925 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6926 fill_gprs64): Ditto.
6927
6928 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6929
6930 * aix-thread.c (gdb_assert.h): Include.
6931 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6932 register sizes (from register cache) match size of buffer holding
6933 register data.
6934 (fill_sprs32): Change parameter types to match those in the ptrace()
6935 buffer.
6936 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6937 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6938
6939 2002-07-22 Michael Snyder <msnyder@redhat.com>
6940
6941 * aix-thread.c (supply_sprs64): Cosmetic change.
6942 (supply_sprs32): Cosmetic change.
6943 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6944 (fill_sprs64): Use regcache_collect instead of read_register.
6945 (store_regs_lib): Use regcache_collect instead of
6946 read_register. Use fill_sprs32 instead of fill_sprs64,
6947 if debugging a 32-bit architecture.
6948 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6949 out of the register cache, instead of passing a pointer into
6950 the register cache directly to ptrace. Use regcache_collect
6951 insteaad of read_register.
6952 (ops_prepare_to_store): Use target_read_registers instead
6953 of read_register_bytes.
6954
6955 2002-07-20 Aidan Skinner <aidan@velvet.net>
6956
6957 * MAINTAINERS: Add self under write after approval.
6958
6959 2002-07-20 Aidan Skinner <aidan@velvet.net>
6960
6961 * ada-tasks.c: Change k&r style function definitions to prototyped
6962 form.
6963
6964 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6965
6966 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6967 * x86-64-tdep.c: Include "objfiles.h".
6968 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6969 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6970
6971 2002-07-17 Michal Ludvig <michal@suse.cz>
6972
6973 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6974 (update_context): Initialise cfa variable.
6975
6976 2002-07-17 Michael Snyder <msnyder@redhat.com>
6977
6978 * aix-thread.c: Shorten some long lines.
6979 Bring comments into line with code spec.
6980
6981 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6982
6983 * infrun.c: Re-indent using gdb_indent.sh.
6984
6985 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6986
6987 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6988 Leave the indentation temporarily untouched, to minimize the diffs.
6989
6990 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6991
6992 * stabsread.c: Make os9k sections of the code obsolete,
6993 for real this time.
6994 * stabsread.h: Make os9k sections of the code obsolete.
6995
6996 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6997
6998 * linux-low.c (regsets_store_inferior_registers): Add free()
6999 at the end of a loop to prevent memory leak.
7000 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7001 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7002 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7003 line a comment.
7004 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7005
7006 2002-07-17 Jim Blandy <jimb@redhat.com>
7007
7008 * macrocmd.c (info_macro_command): Remove newline from error
7009 message.
7010
7011 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7012
7013 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7014 (sh_gdbarch_init): Use it for sh-dsp.
7015
7016 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7017
7018 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7019 64-bit DWARF2 format.
7020
7021 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7022
7023 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7024 <sys/proc.h> when not available.
7025
7026 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7027
7028 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7029 * stabsread.c: Make os9k sections of the code obsolete.
7030 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7031 * config/i386/i386os9k.mt: Make file obsolete.
7032 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7033 (COMMON_OBS): Remove os9kread.o
7034 (SFILES): Remove os9kread.c.
7035 (os9kread.o, remote-os9k.o): Make target obsolete.
7036 * remote-os9k.c: Make file obsolete.
7037 * os9kread.c: Make file obsolete.
7038 * Makefile.in
7039
7040 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7041
7042 * NEWS: Mention that the FR30 has been made obsolete.
7043 * fr30-tdep.c: Make file obsolete.
7044 * config/fr30/tm-fr30.h: Ditto.
7045 * config/fr30/fr30.mt: Ditto.
7046 * configure.tgt: Make fr30-*-elf obsolete.
7047 * MAINTAINERS: Make fr30-elf obsolete.
7048
7049 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7050
7051 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7052 found is not inside a section.
7053
7054 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7055
7056 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7057 strerror().
7058 (pdc_realloc): Use xrealloc() instead of realloc().
7059
7060 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7061
7062 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7063 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7064 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7065 macros.
7066
7067 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7068
7069 * aix-thread.c (ptrace_check): Eliminate goto.
7070 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7071 problem.
7072
7073 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7074
7075 * aix-thread.c (gdbcmd.h): Include.
7076 (DEBUG, DBG, DBG2, dbg): Eliminate.
7077 (debug_aix_thread): New static global.
7078 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7079 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7080 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7081 invocations to DBG and DBG2 macros to test against
7082 ``debug_aix_thread'' and call fprintf_unfiltered().
7083 (_initialize_aix_thread): Add new command "set debug aix-thread".
7084
7085 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7086
7087 From Gerhard Tonn <TON@de.ibm.com>:
7088 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7089 instead of supply_register.
7090
7091 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7092
7093 * dwarf2cfi.c: Include "gdb_assert.h".
7094 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7095 non-NULL.
7096 (update_context): Do not use __func__. Add missing ``break''.
7097 (update_context): Do not use __func__.
7098
7099 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7100
7101 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7102 and its setting. Set gdbarch instruction printing functions
7103 directly. For non-rs6000 case use new function
7104 gdb_print_insn_powerpc.
7105 (gdb_print_insn_powerpc): New function.
7106
7107 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7108
7109 * NEWS: Mention that the d30v has been marked obsolete.
7110 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7111 * configure.tgt: Mark d30v-*-* as obsolete.
7112 * d30v-tdep.c: Mark file as obsolete.
7113 * config/d30v/d30v.mt: Ditto.
7114 * config/d30v/tm-d30v.h: Ditto.
7115
7116 2002-07-13 Aidan Skinner <aidan@velvet.net>
7117
7118 * ada-tasks.c (add_task_entry): replace calls to
7119 malloc() with xmalloc
7120 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7121
7122 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7123 ada_finish_decode_line_1, all_sals_for_line
7124 ada_breakpoint_rewrite): replace calls to free() with xfree()
7125
7126 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7127
7128 From Nicholas Duffek (with minor changes by Martin Hunt,
7129 Louis Hamilton, and Kevin Buettner):
7130 * aix-thread.c: New file.
7131
7132 2002-07-12 Petr Sorfa <petrs@caldera.com>
7133
7134 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7135 complaint for invalid attribute class or form.
7136 (read_func_scope): DW_AT_frame_base
7137 better handling of DW_AT_block*.
7138 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7139 better handling of DW_AT_block*.
7140 (read_common_block): DW_AT_location
7141 better handling of DW_AT_block*.
7142 (read_partial_die): DW_AT_location better handling
7143 of DW_AT_block*.
7144 (new_symbol): DW_AT_external better handling of
7145 DW_AT_block*. Proper initialization of variable
7146 "addr".
7147 (attr_form_is_block): New function that returns true
7148 if the attribute's form is of DW_FORM_block*.
7149
7150 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7151
7152 * valops.c (find_method_list): Remove comment about
7153 removed STATIC_MEMFUNCP argument.
7154 (value_find_oload_method_list): Likewise.
7155
7156 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7157
7158 From Nicholas Duffek:
7159 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7160 target_new_objfile_hook.
7161
7162 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7163
7164 From Nicholas Duffek:
7165 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7166 csect.
7167
7168 2002-07-12 Andrew Cagney <cagney@redhat.com>
7169
7170 * MAINTAINERS: Mention --enable-sim-build-warnings.
7171 (m68hc11-elf): Disable sim build warnings.
7172 (m32r-elf): Mark as broken obsolete candidate.
7173 (x86_64-linux-gnu): Mark as buildable with -Werror.
7174 (arm-elf): Change -w to ``,'' which enables warnings but not
7175 -Werror.
7176
7177 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7178
7179 * bcache.h: Update copyright.
7180 (struct bstring, struct bcache): Move definition to "bcache.c".
7181 Replaced by opaque declaration.
7182 (bcache_xfree): Replace free_bcache.
7183 (bcache_xmalloc, bcache_memory_used): Declare.
7184
7185 * bcache.c: Update copyright.
7186 (struct bstring, struct bcache): Moved to here from "bcache.h".
7187 Update comments.
7188 (bcache_xmalloc, bcache_memory_used): New functions.
7189 (bcache_xfree): Replace function free_bcache.
7190
7191 * Makefile.in (objfiles.o): Add $(bcache_h).
7192 (objfiles_h): Remove $(bcache_h).
7193 (symfile.o): Add $(bcache_h).
7194
7195 * symmisc.c: Update copyright.
7196 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7197 (print_objfile_statistics): Use bcache_memory_used.
7198
7199 * symfile.c: Include "bcache.h".
7200 (reread_symbols): Use bcache_xfree.
7201 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7202 (add_psymbol_to_list): Pass psymbol_cache by value.
7203 (add_psymbol_with_dem_name_to_list): Ditto.
7204
7205 * objfiles.h: Update copyright.
7206 (struct bcache): Declare opaque. Do not include "bcache.h".
7207 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7208 bcache'' pointers.
7209 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7210
7211 * objfiles.c: Include "bcache.h". Update copyright.
7212 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7213 macro_cache.
7214 (free_objfile): Use bcache_xfree.
7215
7216 2002-07-11 Grace Sainsbury <graces@redhat.com>
7217
7218 * monitor.c (monitor_fetch_register): Make name a constant.
7219 (monitor_store_register): Same.
7220
7221 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7222
7223 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7224 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7225 (finish_block) For non-function blocks, hash the symbol table. For
7226 function blocks, mark the symbol table as unhashed.
7227 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7228 (msymbol_hash_iw): Likewise.
7229 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7230 value.
7231 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7232 (lookup_minimal_symbol): Likewise for both.
7233 * symtab.h (struct block): Add `hashtable' flag. Comment the
7234 hashtable.
7235 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7236 (ALL_BLOCK_SYMBOLS): Update.
7237 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7238 (struct symbol): Add `hash_next' pointer.
7239 * symtab.c (lookup_block_symbol): Search using the hash table when
7240 possible.
7241 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7242 (search_symbols, find_addr_symbol): Likewise.
7243
7244 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7245 (read_dst_symtab): Likewise.
7246 * jv-lang.c (get_java_class_symtab): Likewise.
7247 * mdebugread.c: Include "gdb_assert.h".
7248 (shrink_block): Assert that the block being modified is not hashed.
7249 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7250 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7251 symbols.
7252 (dump_symtab): Recognize hashed blocks.
7253 * printcmd.c (print_frame_args): Assert that function blocks do not
7254 have hashed symbol tables.
7255 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7256 (fill_in_ada_prototype, debug_print_block): Likewise.
7257 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7258
7259 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7260
7261 * stack.c (print_frame): Use result of frame_address_in_block()
7262 instead of fi->pc when evaluating symbols.
7263 (backtrace_command_1): Ditto.
7264
7265 2002-07-11 Andrew Cagney <cagney@redhat.com>
7266
7267 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7268 Make static.
7269
7270 * arm-tdep.c (arm_register_name): Make return type constant.
7271
7272 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7273
7274 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7275 prototype.
7276 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7277 * s390-tdep.c (s390_fp_regnum): Ditto.
7278 (s390_read_fp): Ditto.
7279 (s390_pop_frame): Ditto.
7280 (_initialize_s390_tdep): Ditto.
7281 * remote.c (get_remote_state): Ditto.
7282 * procfs.c (mappingflags): Ditto.
7283 * memattr.c (_initialize_mem): Ditto.
7284 * mcore-tdep.c (mcore_pop_frame): Ditto.
7285 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7286 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7287 * language.c (set_case_str): Ditto.
7288 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7289 * frv-tdep.c (new_variant): Ditto.
7290 (frv_stopped_data_address): Ditto.
7291 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7292 (context_alloc): Ditto.
7293 (frame_state_alloc): Ditto.
7294 (unwind_tmp_obstack_init): Ditto.
7295 (unwind_tmp_obstack_free): Ditto.
7296 (cfi_read_fp): Ditto.
7297 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7298 (cris_pop_frame): Ditto.
7299 * c-lang.c (scanning_macro_expansion): Ditto.
7300 (finished_macro_expansion): Ditto.
7301 (c_preprocess_and_parse): Ditto.
7302 * gdbarch.sh: Ditto.
7303 * gdbarch.h, gdbarch.c: Regenerate.
7304 * config/mn10200/tm-mn10200.h: Adjust indentation.
7305 * target.c: Adjust indentation.
7306 * symtab.h: Adjust indentation.
7307 * stabsread.h: Adjust indentation.
7308 * remote-es.c: Adjust indentation.
7309 * os9kread.c: Adjust indentation.
7310
7311 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7312
7313 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7314 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7315
7316 2002-07-10 Grace Sainsbury <graces@redhat.com>
7317
7318 * NEWS: Mention m68k, mcore multi-arching.
7319 * MAINTAINERS: Change status of m68k, mcore to reflect
7320 multi-arching.
7321
7322 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7323
7324 * valops.c (find_overload_match): Free oload_syms.
7325
7326 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7327
7328 Define HAVE_SYS_PROC_H if sys/proc.h exists
7329 * configure.in: Add check for sys/proc.h
7330 * config.in: Regenerate.
7331 * configure: Regenerate.
7332
7333 2002-07-09 Grace Sainsbury <graces@redhat.com>
7334
7335 * config/m68k/tm-m68k.h: Remove macros wrapped in
7336 #if !GDB_MULTI_ARCH.
7337
7338 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7339
7340 * config.in, configure: Regenerate.
7341
7342 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7343
7344 * dwarf2cfi.c: Include "gcore.h".
7345 (execute_stack_op): Fix implementation of the
7346 DW_OP_deref and DW_OP_deref_size operators by letting do their
7347 lookup in the target.
7348
7349 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7350
7351 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7352 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7353 tdep->sc_sp_offset.
7354
7355 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7356
7357 Fix PR gdb/595, gdb/602
7358 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7359 Don't call value_cast, just read the vtable pointer; update comments
7360 to match.
7361
7362 2002-07-05 Grace Sainsbury <graces@redhat.com>
7363
7364 * config/mcore/tm-mcore.h: Remove file.
7365 * config/mcore/mcore.mt: Remove definition of TM_FILE
7366 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7367
7368 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7369
7370 * i386bsd-tdep.c: Include "gdb_string.h".
7371
7372 2002-07-04 Grace Sainsbury <graces@redhat.com>
7373
7374 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7375 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7376 mcore-tdep.
7377 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7378 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7379 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7380 (RETVAL_REGNUM): Move macros from tm-mcore.h
7381 (mcore_reg_struct_has_addr): New function.
7382 (mcore_gdbarch_init): Added initializations for the macros removed
7383 from tm-mcore.h.
7384
7385 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7386
7387 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7388 traditonal string branding within the ELF header.
7389
7390 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7391
7392 * symtab.c (remove_params): New function.
7393 (make_symbol_overload_list): Use it instead of cplus_demangle.
7394 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7395
7396 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7397
7398 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7399
7400 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7401 New variables.
7402 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7403 and tdep->sigtramp_end.
7404 * i386obsd-nat.c: New file.
7405 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7406
7407 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7408 Don't call get_current_frame().
7409
7410 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7411
7412 * i386-nat.c (child_post_startup_inferior): New function
7413 calling i386_cleanup_dregs if
7414 I386_USE_GENERIC_WATCHPOINTS is defined.
7415 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7416 conditional to acknowledge that i386-nat.c has its
7417 own child_post_startup_inferior function.
7418
7419 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7420
7421 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7422 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7423 instead of MAX_REGISTER_RAW_SIZE.
7424 (i386_extract_return_value, i386_extract_struct_value_address):
7425 Convert to use regcache.
7426 (i386_gdbarch_init): Set max_register_raw_size and
7427 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7428 Set extract_return_value and extract_struct_value_address instead
7429 of their deprecated variants.
7430
7431 Convert i386 target to generic dummy frames.
7432 * i386-tdep.c: Include "symfile.h".
7433 (i386_frameless_signal_p): Consider a function to be frameless if
7434 the pc points at the first instruction of the function.
7435 (i386_frame_chain): Handle (generic) call dummies.
7436 (i386_frame_saved_pc): Likewise.
7437 (i386_frame_init_saved_regs): Remove code dealing with call
7438 dummies on the stack.
7439 (i386_push_dummy_frame): Removed.
7440 (i386_call_dummy_words): Removed.
7441 (i386_fix_call_dummy): Removed.
7442 (i386_push_return_address): New function.
7443 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7444 parameter, and don't call get_current_frame.
7445 (i386_pop_frame): New function.
7446 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7447 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7448 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7449 call_dummy_length to 0, set call_dummy_words to NULL, set
7450 sizeof_call_dummy_words to 0, set fix_call_dummy to
7451 generic_fix_call_dummy, set pc_in_call_dummy to
7452 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7453 generic_push_dummy_frame, set push_return_address to
7454 i386_push_return_address and set frame_chain_valid to
7455 generic_file_frame_chain_valid.
7456
7457 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7458
7459 * gdbarch.sh (struct regcache): Add opaque declaration.
7460 (EXTRACT_RETURN_VALUE): New architecture method.
7461 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7462 * gdbarch.h, gdbarch.c: Regenerate.
7463 * arch-utils.c (legacy_extract_return_value): New function.
7464 * arch-utils.h (legacy_extract_return_value): Declare.
7465 * values.c (value_being_returned): Re-enable code handling
7466 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7467 deprecated_grub_regcache_for_registers call to block handling
7468 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7469 (EXTRACT_RETURN_VALUE): Do not define.
7470
7471 2002-07-03 Grace Sainsbury <graces@redhat.com>
7472
7473 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7474 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7475 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7476 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7477 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7478 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7479 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7480 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7481 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7482 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7483 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7484 argument so the function fits the prototype in the architecture
7485 vector.
7486 (mcore_pop_frame): Remove argument so the function fits the
7487 prototype. Use get_current_frame instead of the argument.
7488 (mcore_push_arguments): Change type of struct_return so the
7489 function can be used in the architecture vector.
7490 (mcore_store_struct_return): Add.
7491 (mcore_frame_init_saved_regs): Add.
7492 (mcore_gdbarch_init): Add function calls to replace the macros
7493 removed from tm-mcore.h
7494
7495 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7496
7497 * infcmd.c (print_return_value): Remove compatibility code calling
7498 deprecated_grub_regcache_for_registers.
7499
7500 * values.c: Include "regcache.h".
7501 (value_being_returned): Update. Use
7502 deprecated_grub_regcache_for_registers to extract the register
7503 buffer address.
7504 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7505 ``struct regcache''.
7506 * Makefile.in (values.o): Add dependency on $(regcache_h).
7507
7508 * inferior.h (run_stack_dummy): Change type of second parameter to
7509 a ``struct regcache''.
7510 * valops.c (hand_function_call): Change type of retbuf to ``struct
7511 regcache''. Allocate using regcache_xmalloc, clean using
7512 make_cleanup_regcache_xfree.
7513 * infcmd.c (run_stack_dummy): Update. Use
7514 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7515
7516 * regcache.c (do_regcache_xfree): New function.
7517 (make_cleanup_regcache_xfree): New function.
7518 * regcache.h (make_cleanup_regcache_xfree): Declare.
7519
7520 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7521
7522 * event-top.c (command_line_handler): Don't read past
7523 beginning of buffer.
7524
7525 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7526
7527 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7528 struct frame_id.
7529 (varobj_create): Store frame_id for root.
7530 (varobj_gen_name): Use xasprintf.
7531 (varobj_update): Save and restore frame using get_frame_id() and
7532 frame_find_by_id().
7533 (create_child): Use xasprintf.
7534 (new_root_variable): Initialize frame_id.
7535 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7536 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7537 to prevent memory leak.
7538
7539 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7540
7541 * valops.c (hand_function_call): Move declaration of retbuf to
7542 start of function, allocate using malloc, add a cleanup but before
7543 the inf_status cleanup, cleanup the buffer. Rename local variable
7544 old_chain to inf_status_cleanup.
7545
7546 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7547
7548 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7549
7550 * cli/cli-decode.c (cmd_func_p): New function.
7551 (cmd_func): New function.
7552
7553 * command.h: Add cmd_func() and cmd_func_p().
7554
7555 2002-07-03 Grace Sainsbury <graces@redhat.com>
7556
7557 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7558 (REGISTER_SIZE): Remove.
7559 (MAX_REGISTER_RAW_SIZE): Remove.
7560 (REGISTER_VIRTUAL_TYPE): Remove.
7561 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7562 (REGISTER_NAME): Remove.
7563 (USE_GENERIC_DUMMY_FRAMES): Remove.
7564 (CALL_DUMMY): Remove.
7565 (CALL_DUMMY_START_OFFSET): Remove.
7566 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7567 (CALL_DUMMY_LOCATION): Remove.
7568 (FIX_CALL_DUMMY): Remove.
7569 (CALL_DUMMY_ADDRESS): Remove.
7570 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7571 (SAVE_DUMMY_FRAME_TOS): Remove.
7572 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7573 (mcore_register_virtual_type): New function.
7574 (mcore_register_byte): New function.
7575 (mcore_register_size): New function.
7576 (mcore_register_name): New function.
7577 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7578 macros removed from tm-mcore.h.
7579 (mcore_dump_tdep): Add.
7580 (_initialize_mcore_tdep): Add gdbarch_register call.
7581
7582 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7583
7584 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7585 frameless_look_for_prologue, such that we actually call this
7586 function.
7587
7588 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7589
7590 * frame.h (frame_address_in_block): New function.
7591
7592 * blockframe.c (frame_address_in_block): New function extracted
7593 from get_frame_block().
7594 (get_frame_block): Use frame_address_in_block().
7595 (block_innermost_frame): Use frame_address_in_block() to match
7596 the frame pc address against the block boundaries rather than
7597 the frame pc directly. This prevents a failure when a frame pc
7598 is actually a return-address pointing immediately after the end
7599 of the given block.
7600
7601 2002-07-02 Grace Sainsbury <graces@redhat.com>
7602
7603 * MAINTAINERS: Add self under write after approval.
7604
7605 2002-07-02 Grace Sainsbury <graces@redhat.com>
7606
7607 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7608 used in architecture vector. The default is
7609 m68k_local_breakpoint_from_pc.
7610 (m68k_local_breakpoint_from_pc): Add.
7611 (enum): Add register numbers from tm-m68k.h.
7612 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7613 vector.
7614 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7615 GDB_MULTI_ARCH_PARTIAL.
7616 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7617 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7618 m68k-tdep.c.
7619 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7620 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7621 to enum in m68k-tdep.c
7622
7623 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7624
7625 * solib-osf.c (open_map): Compute the list of shared libraries
7626 loaded by the inferior, rather than the list of libraries loaded
7627 by GDB itself. Otherwise, GDB ends up reading the symbols from
7628 the wrong shared libraries...
7629
7630 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7631
7632 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7633 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7634 macros.
7635 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7636 Remove functions.
7637 (FRAMELESS_SIGNAL): Remove function.
7638 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7639 i386_linux_saved_pc_after_call): Removed.
7640 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7641 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7642 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7643
7644 * i386-tdep.c (i386_frameless_signal_p): New function.
7645 (i386_frame_chain): Deal with frameless signals.
7646 (i386_sigtramp_saved_sp): New function.
7647 (i386_frame_saved_pc): Deal with frameless signals.
7648 (i386_saved_pc_after_call): Make sure the correct value is
7649 returned just after entry into a sigtramp.
7650 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7651 i386fbsd4_sc_sp_offset): New variables.
7652 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7653 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7654 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7655 similiar to what we already did for sc_pc_offset.
7656 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7657 tdep->sc_sp_offset.
7658
7659 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7660
7661 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7662
7663 * config/i386/tm-x86-64linux.h: New.
7664 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7665 definitions.
7666 * config/i386/nm-x86-64.h: Rename to ...
7667 * config/i386/nm-x86-64linux.h: ... this one.
7668 * config/i386/x86-64linux.mh: Reflect the above change.
7669
7670 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7671
7672 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7673 with sigcontext_addr. Add sc_sp_offset.
7674 (i386bsd_sigtramp_saved_pc): Remove prototype.
7675 (i386bsd_sicontext_addr): Add prototype.
7676 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7677 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7678 (i386_svr4_sigtramp_saved_pc): Removed.
7679 (i386_svr4_sigcontext_addr): New function.
7680 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7681 Initialize tdep->sigcontext_addr instead. Initialize
7682 tdep->sc_pc_offset and tdep->sc_sp_offset.
7683 (i386_gdbarch_init): Likewise.
7684 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7685 any more.
7686 (i386bsd_sigtramp_saved_pc): Remove function.
7687 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7688 Initialize tdep->sigcontext_addr instead. Initialize
7689 tdep->sc_pc_offset.
7690 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7691 of tdep->sigtramp_saved_pc.
7692 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7693 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7694 instead.
7695
7696 * i386-tdep.c (i386_frameless_function_invocation,
7697 i386_frame_num_args, i386_frame_init_saved_regs,
7698 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7699 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7700 i386_extract_return_value, i386_store_return_value,
7701 i386_extract_struct_value_address, i386_register_virtual_type,
7702 i386_register_convertible, i386_register_convert_to_virtual,
7703 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7704 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7705 static.
7706
7707 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7708
7709 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7710
7711 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7712 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7713 this macro. Include "value.h".
7714
7715 2002-06-30 Aidan Skinner <aidan@velvet.net>
7716
7717 * ada-exp.tab.c: remove as it's a generated file
7718 * ada-lex.c: remove as it's a generated file
7719
7720 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7721
7722 * config/i386/tm-i386.h (struct frame_info, struct
7723 frame_saved_regs, struct value, struct type): Remove forward
7724 declarations.
7725
7726 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7727 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7728 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7729 (FILL_FPXREGSET): Define.
7730
7731 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7732
7733 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7734 i[3456]86-*-netbsd* case.
7735 * config/i386/tm-obsd.h: Removed.
7736 * config/i386/obsd.mt: Removed.
7737 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7738 core-aout.o.
7739 (MH_CFLAGS): Add -DYYDEBUG=0.
7740
7741 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7742 i386nbsd_sc_pc_offset on OpenBSD too.
7743
7744 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7745 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7746 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7747 define.
7748 * i386bsd-tdep.c: Include "arch-utils.h".
7749 (i386bsd_aout_in_solib_call_trampoline): New function.
7750 (i386bsd_init_abi): Set in_solib_call_trampoline to
7751 i386bsd_aout_in_solib_call_trampoline.
7752 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7753 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7754
7755 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7756
7757 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7758 (struct obstack, struct bcache): Add opaque declarations.
7759 * Makefile.in (macrotab_h): Update
7760
7761 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7762
7763 * blockframe.c (generic_find_dummy_frame): Change return type to
7764 ``struct regcache''.
7765 (struct dummy_frame): Replace field ``registers'' with regcache, a
7766 struct regcache object.
7767 (generic_find_dummy_frame): Update.
7768 (generic_push_dummy_frame): Update. Use regcache_xfree,
7769 regcache_xmalloc and regcache_cpy.
7770 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7771 regcache_xfree.
7772 (deprecated_generic_find_dummy_frame): Update.
7773 (generic_read_register_dummy): Update. Use
7774 regcache_read_as_address.
7775 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7776 (generic_get_saved_register): Update. Use regcache_read.
7777
7778 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7779
7780 * Makefile.in (objfiles_h): Add $(bcache_h).
7781 * objfiles.h: Include "bcache.h".
7782
7783 * Makefile.in (symtab_h): Remove $(bcache_h).
7784 * symtab.h: Do not include "bcache.h".
7785
7786 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7787
7788 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7789 generic_func_frame_chain_valid.
7790
7791 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7792
7793 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7794 * config/i386/tm-fbsd.h: Likewise.
7795
7796 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7797
7798 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7799 generic_unwind_get_saved_register.
7800
7801 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7802
7803 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7804 * regcache.c (supply_register): Add missing argument to
7805 register_buffer call.
7806
7807 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7808
7809 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7810 Solaris /bin/grep does not not like it. From Peter Schauer.
7811
7812 2002-06-26 Tom Tromey <tromey@redhat.com>
7813
7814 * command.h (add_setshow_cmd): Declare.
7815 (add_setshow_cmd_full): Declare.
7816 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7817 returns void. Use add_setshow_cmd_full.
7818 (add_setshow_cmd_full): New function.
7819 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7820 (add_setshow_boolean_cmd): Likewise.
7821
7822 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7823
7824 * config/vax/tm-vax.h: Protect from multiple inclusion.
7825 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7826 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7827 * config/vax/tm-vaxbsd.h: ...here. New file.
7828 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7829
7830 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7831
7832 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7833 (BELIEVE_PCC_PROMOTION): Remove.
7834 (AP_REGNUM): Move to...
7835 * config/vax/nm-vax.h: ...here.
7836 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7837 (vax_breakpoint_from_pc): New function.
7838 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7839 and gdbarch_believe_pcc_promotion.
7840
7841 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7842
7843 * Makefile.in (vax_tdep_h): Define.
7844 (vax-tdep.o): Use $(vax_tdep_h).
7845 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7846 (vax_dump_tdep): New function.
7847 (_initialize_vax_tdep): Register vax_dump_tdep.
7848 * vax-tdep.h: Include osabi.h.
7849 (struct gdbarch_tdep): New.
7850
7851 2002-06-26 Andrew Cagney <cagney@redhat.com>
7852
7853 * frame.h (deprecated_generic_find_dummy_frame): Rename
7854 generic_find_dummy_frame.
7855 * blockframe.c (generic_find_dummy_frame): Make static.
7856 (deprecated_generic_find_dummy_frame): New function.
7857 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7858 generic_find_dummy_frame with deprecated_find_dummy_frame.
7859 (sh64_nofp_frame_init_saved_regs): Ditto.
7860 (sh_fp_frame_init_saved_regs): Ditto.
7861 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7862 (s390_frame_chain): Ditto.
7863 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7864
7865 2002-06-26 Grace Sainsbury <graces@redhat.com>
7866
7867 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7868 gdbarch vector are at the top.
7869 (NUM_REGS): Remove.
7870 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7871 (FRAME_ARGS_ADDRESS): Remove.
7872 (FRAME_LOCALS_ADDRESS): Remove.
7873 (FRAME_NUM_ARGS): Remove.
7874 (FRAME_ARGS_SKIP): Remove.
7875 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7876 (m68k_gdbarch_init): Add gdbarch initializations for macros
7877 undefined in tm-m68k.h
7878
7879 2002-06-26 Grace Sainsbury <graces@redhat.com>
7880
7881 * monitor.h: Add the function regname to monitor_ops
7882 structure. This way NUM_REGS does not have to be a constant.
7883 * monitor.c (monitor_fetch_register): Added support for regname
7884 function. The function is called if the array regnames is NULL.
7885 (monitor_store_register): Same.
7886 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7887 regnames array.
7888 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7889 cpu32bug_cmds.regname to point to new function.
7890 * abug-rom.c (abug_regname): Same as above.
7891 (init_abug_cmds): Same.
7892 * dbug-rom.c (dbug_regname): Same as above.
7893 (init_dbug_cmds): Same.
7894 * remote-est.c (est_regname): Same.
7895 (init_est_cmds): Same.
7896 * rom68k-rom.c (rom68k_regname): Same.
7897 (init_rom68k_cmds): Same.
7898
7899 2002-06-25 Tom Tromey <tromey@redhat.com>
7900
7901 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7902
7903 2002-06-25 Andrew Cagney <cagney@redhat.com>
7904
7905 * infrun.c (stop_registers): Change variable's type to ``struct
7906 regcache'''.
7907 (xmalloc_inferior_status): Delete function.
7908 (free_inferior_status): Delete function.
7909 (normal_stop): Use regcache_cpy.
7910 (struct inferior_status): Change type of fields ``stop_registers''
7911 and ``registers'' to ``struct regcache''.
7912 (write_inferior_status_register): Use regcache_write.
7913 (save_inferior_status): Instead of calling
7914 xmalloc_inferior_status, allocate the inf_status buffer directly.
7915 Use regcache_dup_no_passthrough and regcache_dup to save the
7916 buffers.
7917 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7918 Replace the stop_registers regcache instead of overriding it. Use
7919 regcache_xfree. Instead of calling free_inferior_status, xfree
7920 the buffer directly.
7921 (discard_inferior_status): Use regcache_xfree. Instead of calling
7922 free_inferior_status, xfree the buffer directly.
7923 (build_infrun): Use regcache_xmalloc.
7924 (_initialize_infrun): Delete redundant call to build_infrun.
7925
7926 * Makefile.in (infcmd.o): Add $(regcache_h).
7927
7928 * infcmd.c: Include "regcache.h".
7929 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7930 obtain the address of `stop_registers' register buffer.
7931 (print_return_value): Ditto.
7932
7933 * inferior.h (struct regcache): Add opaque declaration.
7934 (stop_registers): Change variable's declared type to ``struct
7935 regcache''.
7936
7937 2002-06-24 Tom Tromey <tromey@redhat.com>
7938
7939 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7940 * target.c (initialize_targets): Fixed typo in
7941 trust-readonly-sections `show' documentation.
7942
7943 * main.c: Marked all strings with _().
7944
7945 2002-06-24 Don Howard <dhoward@redhat.com>
7946
7947 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7948 that means max CORE_ADDR+1.
7949 (lookup_mem_region): Ditto.
7950 (mem_info_command): Ditto.
7951
7952 2002-06-24 Grace Sainsbury <graces@redhat.com>
7953
7954 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7955 (REGISTER_BYTES_OK): Remove.
7956 (REGISTER_BYTES): Remove.
7957 (STORE_STRUCT_RETURN): Remove.
7958 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7959 (STORE_RETURN_VALUE): Remove.
7960 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7961 (FRAME_CHAIN): Remove.
7962 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7963 (FRAME_SAVED_PC): Remove.
7964 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7965 (m68k_store_struct_return): Add.
7966 (m68k_deprecated_extract_return_value): Add.
7967 (m68k_deprecated_extract_struct_value_address): Add.
7968 (m68k_store_return_value): Add.
7969 (m68k_frame_chain): Add.
7970 (m68k_frameless_function_invocation): Add.
7971 (m68k_frame_saved_pc): Add.
7972 (m68k_gdbarch_init): added set_gdbarch calls for new
7973 functions and deleted macros.
7974
7975 2002-06-23 Tom Tromey <tromey@redhat.com>
7976
7977 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7978 (ALLDEPFILES): Likewise.
7979 (udiheaders): Removed.
7980 (udip2soc.o): Likewise.
7981 (udi2go32.o): Likewise.
7982 (udr.o): Likewise.
7983 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7984
7985 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7986
7987 * infrun.c (_initialize_infrun): Delete unnecessary call to
7988 build_infrun.
7989
7990 * regcache.h: Update comments describing the regcache_cpy family
7991 of functions.
7992 (regcache_save, regcache_restore): Delete declaration.
7993 (regcache_save_no_passthrough): Delete declaration.
7994 (regcache_restore_no_passthrough): Delete declaration.
7995 * regcache.c (regcache_save): Delete function.
7996 (regcache_save_no_passthrough): Delete function.
7997 (regcache_restore): Delete function.
7998 (regcache_restore_no_passthrough): Delete function.
7999
8000 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8001
8002 * config/m68k/tm-m68k.h: Fix typo.
8003 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8004 (m68k_frame_init_saved_regs): Declare.
8005
8006 2002-06-21 Jim Blandy <jimb@redhat.com>
8007
8008 Remove some vestiges of Harris 88k support.
8009 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8010 register numbering quirk.
8011 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8012 odd symbols occurring in Harris 88k ELF targets.
8013
8014 2002-06-21 Tom Tromey <tromey@redhat.com>
8015
8016 * gdb_locale.h: New file.
8017 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8018 (defs_h): Added gdb_locale.h.
8019 * configure, config.in: Rebuilt.
8020 * configure.in (PACKAGE): Define.
8021 * defs.h: Include gdb_locale.h.
8022 * main.c (captured_main): Call setlocale, bindtextdomain,
8023 textdomain.
8024
8025 2002-06-21 Dave Brolley <brolley@redhat.com>
8026
8027 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8028 * config/frv/frv.mt: New file.
8029 * config/frv/tm-frv.h: New file.
8030 * configure.tgt: Support frv-*-*.
8031 * Makefile.in (frv-tdep.o): New target.
8032 * frv-tdep.c: New file.
8033 * NEWS: Mention frv.
8034
8035 2002-06-21 Dave Brolley <brolley@redhat.com>
8036
8037 * MAINTAINERS: Add self to "Write After Approval" list.
8038
8039 2002-06-21 Grace Sainsbury <graces@redhat.com>
8040
8041 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8042 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8043 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8044 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8045 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8046
8047 * m68k-tdep.c: Include arch-utils.h
8048 (m68k_register_raw_size): Add.
8049 (m68k_register_virtual_size): Add.
8050 (m68k_register_virtual_type): Add.
8051 (m68k_register_name): Add.
8052 (m68k_stack_align): Add.
8053 (m68k_register_byte): Add.
8054 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8055 tm-m68k.h.
8056
8057 2002-06-21 Grace Sainsbury <graces@redhat.com>
8058
8059 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8060 m68k_find_saved_regs.
8061 (m68k_pop_frame): Removed saved_regs structure, and replaced
8062 references to it with frame->saved_regs.
8063 (m68k_gdbarch_init): Added function calls to initialize the
8064 gdbarch structure.
8065 (m68k_fix_call_dummy): Add.
8066 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8067 (CALL_DUMMY): Remove.
8068 (CALL_DUMMY_LENGTH): Remove.
8069 (CALL_DUMMY_START_OFFSET): Remove.
8070 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8071 (FIX_CALL_DUMMY): Remove.
8072 (PUSH_DUMMY_FRAME): Remove.
8073 (POP_FRAME): Remove.
8074
8075 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8076
8077 * parse.c (parse_fprintf): New function used to avoid calls to
8078 fprintf in bison parser generated debug code.
8079 * parser-defs.h: Declaration of new parse_fprintf function.
8080 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8081 Set YYDEBUG to 1 by default.
8082 Set YYFPRINTF as parse_fprintf.
8083
8084 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8085
8086 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8087 encoding anymore.
8088 (pointer_encoding, enum ptr_encoding): New.
8089 (execute_cfa_program): Take care about pointer encoding.
8090 (dwarf2_build_frame_info): Only call parse_frame_info for
8091 .debug_frame and .eh_frame.
8092 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8093 fixed augmentation handling, added relative addressing,
8094 ignore duplicate FDEs. Added comments.
8095 * dwarf2cfi.c: Reindented.
8096
8097 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8098
8099 * event-top.c (command_handler): Don't use space_at_cmd_start
8100 unless there is sbrk() on the host. Assign time and space data
8101 to union fields of the appropriate length.
8102
8103 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8104
8105 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8106 x86_64_register_name. Return type changed to 'const char *'.
8107 (x86_64_register_name2nr): Rename to x86_64_register_number.
8108 (x86_64_gdbarch_init): Update to reflect the change.
8109 * x86-64-tdep.h: Ditto.
8110 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8111 (supply_fpregset): Ditto.
8112
8113 2002-06-19 Andrew Cagney <cagney@redhat.com>
8114
8115 * regcache.h: Update copyright.
8116 (struct regcache, struct gdbarch): Add opaque declarations.
8117 (current_regcache): Declare global variable.
8118 (regcache_read, regcache_write): Add gdbarch parameter.
8119 (regcache_save, regcache_save_no_passthrough)
8120 (regcache_restore, regcache_restore_no_passthrough)
8121 (regcache_dup, regcache_dup_no_passthrough)
8122 (regcache_cpy, regcache_cpy_no_passthrough)
8123 (deprecated_grub_regcache_for_registers)
8124 (deprecated_grub_regcache_for_register_valid)
8125 (regcache_valid_p): Add function declarations.
8126
8127 * regcache.c: Update copyright.
8128 (regcache_descr_handle): New global variable.
8129 (struct regcache_descr): Define.
8130 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8131 (regcache_descr, xfree_regcache_descr): New functions.
8132 (struct regcache): Define.
8133 (regcache_xmalloc, regcache_xfree): New functions.
8134 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8135 (regcache_dup, regcache_dup_no_passthrough): New functions.
8136 (regcache_valid_p, regcache_read_as_address): New functions.
8137 (deprecated_grub_regcache_for_registers): New function.
8138 (deprecated_grub_regcache_for_register_valid): New function.
8139 (current_regcache): New global variable.
8140 (register_buffer): Add regcache parameter. Update calls.
8141 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8142 (read_register_gen, write_register_gen): Update register_buffer
8143 call. Test for legacy_p instead of gdbarch_register_read_p or
8144 gdbarch_register_write_p.
8145 (regcache_collect): Update register_buffer call.
8146 (build_regcache): Rewrite. Use deprecated grub functions.
8147 (regcache_save, regcache_save_no_passthrough): New functions.
8148 (regcache_restore, regcache_restore_no_passthrough): New
8149 functions.
8150 (_initialize_regcache): Create the regcache_data_handle. Swap
8151 current_regcache global variable.
8152
8153 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8154 parameter to regcache_read and regcache_write calls.
8155 (sh4_register_read): Ditto.
8156 (sh64_pseudo_register_read): Ditto.
8157 (sh64_register_read): Ditto.
8158 (sh_pseudo_register_write): Ditto.
8159 (sh4_register_write): Ditto.
8160 (sh64_pseudo_register_write): Ditto.
8161 (sh64_register_write): Ditto.
8162
8163 * defs.h (XCALLOC): Define.
8164
8165 2002-06-19 Grace Sainsbury <graces@redhat.com>
8166
8167 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8168 * m68k-tdep.c (m68k_gdbarch_init): Added.
8169 (m68k_dump_tdep): Added.
8170
8171 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8172
8173 * ada-lang.c (fill_in_ada_prototype): Update comment.
8174
8175 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8178 MIPS_ABI_LAST.
8179 (mips_abi_string, mips_abi_strings): New.
8180 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8181 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8182 tdep->mips_abi_string. Honor mips_abi_string. Default to
8183 O32 if no ABI is found.
8184 (mips_dump_tdep): Use mips_abi_strings.
8185 (mips_abi_update): New function.
8186 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8187 ``set mips abi'' and ``show mips abi''. Check the size of
8188 mips_abi_strings.
8189
8190 2002-06-19 Andrew Cagney <cagney@redhat.com>
8191
8192 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8193 constant.
8194
8195 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8196
8197 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8198 current frame using only the first stack size adjustment. All
8199 subsequent size adjustments are not considered to be part of
8200 the "static" part of the current frame.
8201 Compute the address of the saved registers relative to the
8202 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8203 in use in this frame.
8204
8205 2002-06-18 Don Howard <dhoward@redhat.com>
8206
8207 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8208 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8209 suggesting this solution.
8210
8211 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8212
8213 * config/romp/xm-rtbsd.h: Delete file.
8214 * config/romp/rtbsd.mh: Delete file.
8215
8216 2002-06-18 Keith Seitz <keiths@redhat.com>
8217
8218 * breakpoint.c (condition_command): Post breakpoint_modify
8219 when a condition is added to an existing breakpoint.
8220 (commands_command): Likewise for commands.
8221 (set_ignore_count): Likewise for ignore counts.
8222 If no tty, do not simply return, still need to send event
8223 notification.
8224 (ignore_command): Only print a newline if the command came
8225 from a tty.
8226 Don't call breakpoints_changed, since this is now properly
8227 handled by set_ignore_count.
8228
8229 2002-06-18 Andrew Cagney <cagney@redhat.com>
8230
8231 * MAINTAINERS: Note that cris-elf target can be compiled with
8232 -Werror.
8233 * cris-tdep.c (cris_register_name): Make return type constant.
8234 (cris_breakpoint_from_pc): Ditto.
8235
8236 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8237
8238 * frame.h (struct frame_info): Change type of context to
8239 'struct context'.
8240
8241 2002-06-17 Andrew Cagney <cagney@redhat.com>
8242
8243 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8244 pointer.
8245 * gdbarch.h, gdbarch.c: Regenerate.
8246 * config/mips/tm-mips.h (mips_register_name): Update.
8247 * i386-tdep.h (i386_register_name): Update.
8248 * mips-tdep.c (mips_register_name): Update
8249 * alpha-tdep.c (alpha_register_name): Update.
8250 * arch-utils.c (legacy_register_name): Update.
8251 * arch-utils.h (legacy_register_name): Update.
8252 * avr-tdep.c (avr_register_name): Update.
8253 * ia64-tdep.c (ia64_register_name): Update.
8254 * i386-tdep.c (i386_register_name): Update.
8255 * sparc-tdep.c (sparc32_register_name): Update.
8256 (sparc64_register_name): Update.
8257 (sparclite_register_name): Update.
8258 (sparclet_register_name): Update.
8259 * sh-tdep.c (sh_generic_register_name): Update.
8260 (sh_sh_register_name): Update.
8261 (sh_sh3_register_name): Update.
8262 (sh_sh3e_register_name): Update.
8263 (sh_sh_dsp_register_name): Update.
8264 (sh_sh3_dsp_register_name): Update.
8265 (sh_sh4_register_name): Update.
8266 (sh_sh64_register_name): Update.
8267 * s390-tdep.c (s390_register_name): Update.
8268 * rs6000-tdep.c (rs6000_register_name): Update.
8269 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8270 (ns32k_register_name_32382): Update.
8271 * d10v-tdep.c (d10v_ts2_register_name): Update.
8272 (d10v_ts3_register_name): Update.
8273 * xstormy16-tdep.c (xstormy16_register_name): Update.
8274 * vax-tdep.c (vax_register_name): Update.
8275 * v850-tdep.c (v850_register_name): Update.
8276 * m68hc11-tdep.c (m68hc11_register_name): Update.
8277 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8278 (am33_register_name): Update.
8279
8280 2002-06-17 Grace Sainsbury <graces@redhat.com>
8281
8282 * m68k-tdep.c: Reindented.
8283
8284 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8285
8286 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8287 list of predefined types.
8288
8289 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8290
8291 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8292 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8293 REGISTER_CONVERT_TO_RAW): Remove defines.
8294 (i386_register_virtual_type, i386_register_convertible,
8295 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8296 Remove prototypes.
8297 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8298 macros mentioned above.
8299
8300 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8301 (i386lynx_saved_pc_after_call): Remove prototype.
8302 * i386ly-tdep.c: Include "i386-tdep.h".
8303 (i386lynx_saved_pc_after_call): Make static. Use
8304 read_memory_nobpt instead of read_memory. Use
8305 read_memory_unsigned_integer instead of read_memory_integer.
8306 (i386lynx_init_abi): New function.
8307 (i386lynx_coff_osabi_sniffer): New function.
8308 (_initialize_i386bsd_tdep): New function.
8309
8310 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8311 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8312 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8313 (i386_fix_call_dummy): Remove prototype.
8314 * i386-tdep.c (i386_call_dummy_words): New variable.
8315 (i386_gdbarch_init): Adjust for removal of the
8316 macros mentioned above.
8317
8318 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8319
8320 * command.h (add_setshow_auto_boolean_cmd): Replace
8321 add_set_auto_boolean_cmd.
8322 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8323 add_set_auto_boolean_cmd.
8324 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8325 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8326 mask-address'' command.
8327 (show_mask_address): Add cmd parameter.
8328 * remote.c (add_packet_config_cmd): Update. Change type of
8329 set_func and show_func to cmd_sfunc_ftype.
8330 (_initialize_remote): Update `set remote Z-packet'
8331 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8332 (show_remote_protocol_e_packet_cmd): Ditto.
8333 (show_remote_protocol_E_packet_cmd): Ditto.
8334 (show_remote_protocol_P_packet_cmd): Ditto.
8335 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8336 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8337 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8338 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8339 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8340 (show_remote_protocol_Z_packet_cmd): Ditto.
8341 (show_remote_protocol_binary_download_cmd): Ditto.
8342 (show_remote_cmd): Pass NULL to all of above.
8343
8344 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8345
8346 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8347 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8348 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8349 POP_FRAME): Remove defines.
8350 (i386_push_arguments, i386_store_struct_return,
8351 i386_extract_return_value, i386_store_return_value,
8352 i386_extract_struct_value_address, i386_push_dummy_frame,
8353 i386_pop_frame): Renove prototypes.
8354 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8355 macros mentioned above.
8356
8357 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8358
8359 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8360 add_set_boolean_cmd.
8361 (add_setshow_cmd): New function.
8362 * command.h (add_setshow_boolean_cmd): Replace
8363 add_set_boolean_cmd.
8364 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8365 and ``set rdiromatzero''.
8366 * maint.c (_initialize_maint_cmds): Update commented out code.
8367 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8368 * target.c (initialize_targets): Update `set
8369 trust-readonly-sections'.
8370 * remote.c (_initialize_remote): Update `set remotebreak'.
8371
8372 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8373
8374 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8375 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8376 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8377 fit into multi-arch framework.
8378 (i386_breakpoint_from_pc): New function.
8379 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8380 above.
8381
8382 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8383 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8384 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8385 (i386_frameless_function_invocation, i386_frame_num_args,
8386 i386_frame_init_saved_regs): Remove prototypes.
8387 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8388 macros mentioned above.
8389
8390 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8391
8392 * cli/cli-decode.c (set_cmd_cfunc): Update.
8393 (set_cmd_sfunc): Update.
8394 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8395 (set_cmd_sfunc, set_cmd_cfunc): Update.
8396 * cli/cli-decode.h: Update.
8397
8398 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8399
8400 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8401 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8402
8403 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8404
8405 * defs.h (auto_boolean): Declare enum.
8406 * command.h (cmd_auto_boolean): Delete enum.
8407 * mips-tdep.c (mask_address_var): Update.
8408 (mips_mask_address_p): Update.
8409 (show_mask_address): Update.
8410 * remote.c (struct packet_config): Update.
8411 (update_packet_config): Update.
8412 (show_packet_config_cmd): Update.
8413 (packet_ok): Update.
8414 (add_packet_config_cmd): Update.
8415 (_initialize_remote):
8416 * command.h: Update.
8417 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8418 (do_setshow_command): Update.
8419 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8420 * cli/cli-decode.h: Update.
8421
8422 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8423
8424 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8425 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8426 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8427 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8428 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8429 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8430
8431 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8432 list of DJGPP COFF targets.
8433
8434 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8435 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8436 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8437 (FP0_REGNUM): Remove define.
8438 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8439 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8440 (i386_register_virtual_size): Remove protoype.
8441 * i386-tdep.c (i386_register_virtual_size): Removed.
8442 (i386_extract_return_value, i386_store_return_value): Use
8443 FP0_REGNUM instead of NUM_FREGS to determine whether the
8444 floating-point registers are available.
8445 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8446 Adjust for removal of macros mentioned above.
8447
8448 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8449
8450 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8451 comments.
8452 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8453 Remove prototypes.
8454 (supply_gregset, fill_gregset): Remove use of register keyword and
8455 remove declaration for regmap. Use I386_NUM_GREGS instead of
8456 NUM_REGS and NUM_FREGS.
8457 (FPREGSET_FSAVE_OFFSET): Remove.
8458 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8459 NUM_FREGS to determine whether the floating-point registers are
8460 available.
8461
8462 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8463 gnu_store_registers): Replace usage of NUM_GREGS with
8464 I386_NUM_GREGS.
8465
8466 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8467 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8468 usage of NUM_GREGS with I386_NUM_GREGS.
8469
8470 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8471
8472 * i386bsd-nat.c: Include "i386-tdep.h".
8473 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8474 I386_NUM_GREGS.
8475
8476 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8477 and associated comment. They no longer make any sense, since we
8478 don't use this file anymore on Linux.
8479
8480 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8481 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8482 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8483 elements in these arrays.
8484 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8485 MAX_NUM_REGS.
8486
8487 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8488
8489 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8490 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8491
8492 2002-06-14 Andrew Cagney <cagney@redhat.com>
8493
8494 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8495 EXTRACT_RETURN_VALUE.
8496 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8497 EXTRACT_STRUCT_VALUE_ADDRESS.
8498 * gdbarch.h, gdbarch.c: Regenerate.
8499
8500 * values.c (value_being_returned): Handle
8501 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8502 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8503
8504 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8505 * arm-tdep.c (arm_gdbarch_init): Update.
8506 * avr-tdep.c (avr_gdbarch_init): Update.
8507 * cris-tdep.c (cris_gdbarch_init): Update.
8508 * d10v-tdep.c (d10v_gdbarch_init): Update.
8509 * ia64-tdep.c (ia64_gdbarch_init): Update.
8510 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8512 * s390-tdep.c (s390_gdbarch_init): Update.
8513 * sh-tdep.c (sh_gdbarch_init): Update.
8514 * s390-tdep.c (s390_gdbarch_init): Update.
8515 * sparc-tdep.c (sparc_gdbarch_init): Update.
8516 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8517 * v850-tdep.c (v850_gdbarch_init): Update.
8518 * vax-tdep.c (vax_gdbarch_init): Update.
8519 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8521
8522 * config/arc/tm-arc.h: Update.
8523 * config/d30v/tm-d30v.h: Update.
8524 * config/fr30/tm-fr30.h: Update.
8525 * config/h8300/tm-h8300.h: Update.
8526 * config/h8500/tm-h8500.h: Update.
8527 * config/i386/tm-i386.h: Update.
8528 * config/i386/tm-ptx.h: Update.
8529 * config/i386/tm-symmetry.h: Update.
8530 * config/i960/tm-i960.h: Update.
8531 * config/m32r/tm-m32r.h: Update.
8532 * config/m68k/tm-delta68.h: Update.
8533 * config/m68k/tm-linux.h: Update.
8534 * config/m68k/tm-m68k.h: Update.
8535 * config/m88k/tm-m88k.h: Update.
8536 * config/mcore/tm-mcore.h: Update.
8537 * config/mips/tm-mips.h: Update.
8538 * config/mn10200/tm-mn10200.h: Update.
8539 * config/pa/tm-hppa.h: Update.
8540 * config/pa/tm-hppa64.h: Update.
8541 * config/sparc/tm-sp64.h: Update.
8542 * config/sparc/tm-sparc.h: Update.
8543 * config/sparc/tm-sparclet.h: Update.
8544 * config/z8k/tm-z8k.h: Update.
8545
8546 2002-06-14 Andrew Cagney <cagney@redhat.com>
8547
8548 * Makefile.in (i386_linux_tdep_h): Define.
8549 (i386_tdep_h, i387_tdep_h): Define.
8550 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8551 $(i386_tdep_h) and $(i387_tdep_h).
8552 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8553
8554 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8555
8556 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8557 Already covered by the default.
8558
8559 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8560 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8561 (i386_gdbarch_init): Initialize long_double_format and long_double
8562 bit.
8563
8564 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8565 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8566 Move these to ...
8567 * config/i386/i386sol2.mh: ... here.
8568 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8569 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8570 (SIGCONTEXT_PC_OFFSET): Remove define.
8571 (IN_SIGTRAMP): Remove define.
8572 * i386-sol2-tdep.c: New file.
8573
8574 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8575 * config/i386/tm-i386nw.h: Removed.
8576
8577 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8578 USE_STRUCT_CONVENTION): Remove defines.
8579 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8580 (get_longjmp_target): Remove prototype.
8581 (IN_SIGTRAMP): Remove define.
8582 (i386bsd_in_sigtramp): Remove prototype.
8583 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8584 function. Update comment accordingly
8585 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8586 (FRAME_SAVED_PC): Remove define.
8587 (i386bsd_frame_saved_pc): Remove prototype.
8588 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8589 GET_LONGJMP_TARGET): Remove defines.
8590 (get_longjmp_target): Remove prototype.
8591 (IN_SIGTRAMP): Remove define.
8592 (i386bsd_in_sigtramp): Remove prototype.
8593 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8594 function. Update comment accordingly
8595 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8596 (FRAME_SAVED_PC): Remove define.
8597 (i386bsd_frame_saved_pc): Remove prototype.
8598 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8599 Remove prototype.
8600 (USE_STRUCT_CONVENTION): Remove prototype.
8601 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8602 declaration.
8603 (_initialize_i386bsd_nat): Revise logic to determine some
8604 constants at compile time when compiling a native GDB. Warn if
8605 things don't match up with what we expect.
8606 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8607 Remove variables.
8608 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8609 to use date stored in `struct gdbarch_tdep'.
8610 (i386bsd_sigcontext_offset): Remove varaible.
8611 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8612 stored in `struct gdbarch_tdep'.
8613 (i386bsd_frame_saved_pc): Make static.
8614 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8615 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8616 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8617 i386fbsd4_sc_pc_offset): New variables.
8618 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8619 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8620 functions.
8621 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8622 functions.
8623 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8624 Modify the value of i386fbsd_sigtramp_start and
8625 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8626 i386fbsd_sigtramp_end.
8627 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8628 function.
8629
8630 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8631 define to i386-linux-tdep.h.
8632 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8633 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8634 defines.
8635 (i386_linux_register_name, i386_linux_register_byte,
8636 i386_linux_register_raw_size): Remove prototypes.
8637 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8638 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8639 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8640 TARGET_WRITE_PC): Remove defines.
8641 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8642 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8643 i386_linux_write_pc): Remove prototypes.
8644 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8645 (get_longjmp_target): Remove prototype.
8646 * i386-linux-tdep.h: New file.
8647 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8648 * i386-linux-tdep.c: Include "i386-tdep.h" and
8649 "i386-linux-tdep.h".
8650 (i386_linux_register_name, i386_linux_register_byte,
8651 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8652 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8653 Make static.
8654 (i386_linux_init_abi): New function.
8655 (_initialize_i386_linux_tdep): New function.
8656
8657 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8658 (i386_saved_pc_after_call): Remove prototype.
8659 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8660 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8661 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8662 (i386_register_name, i386_stab_reg_to_regnum,
8663 i386_dwarf_reg_to_regnum): Remove prototypes.
8664 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8665 SIZEOF_SSE_REGS): Remove defines.
8666 (REGISTER_BYTES): Remove define.
8667 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8668 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8669 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8670 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8671 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8672 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8673 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8674 (get_longjmp_target): Remove prototype.
8675 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8676 (sigtramp_saved_pc): Remove define.
8677 (i386v4_sigtramp_saved_pc): Remove prototype.
8678 * config/i386/tm-go32.h (FRAME_CHAIN,
8679 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8680 (i386go32_frame_saved_pc): Remove prototype.
8681 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8682 (get_longjmp_target): Remove prototype.
8683 * i386-tdep.h: Include "osabi.h".
8684 (enum i386_abi): Removed.
8685 (enum struct_return): New enum.
8686 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8687 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8688 sc_pc_offset members.
8689 (i386_gdbarch_register_os_abi): Remove prototype.
8690 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8691 I386_SSE_NUM_REGS): New defines.
8692 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8693 I386_SSE_SIZEOF_REGS): New defines.
8694 (i386_register_name, i386_register_byte, i386_register_raw_size):
8695 New prototypes.
8696 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8697 (i386bsd_sigtramp_saved_pc): New prototype.
8698 * i386-tdep.c: Don't include "elf-bfd.h".
8699 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8700 i386_frame_chain, i386_saved_pc_after_call): Make static.
8701 (i386_frame_saved_pc): Rewrite to call architecture dependent
8702 function to deal with signal handlers. Make static.
8703 (i386go32_frame_saved_pc): Removed.
8704 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8705 Removed.
8706 (i386_get_longjmp_target): New function.
8707 (default_struct_convention, pcc_struct_convention,
8708 reg_struct_convention, valid_conventions, struct_convention): New
8709 variables.
8710 (i386_use_struct_convention): New function.
8711 (i386v4_sigtramp_saved_pc): Renamed to
8712 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8713 (i386_pc_in_sigtramp): New function.
8714 (i386_abi_names): Removed.
8715 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8716 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8717 Removed.
8718 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8719 i386_gdbarch_register_os_abi): Removed.
8720 (struct i386_abi_handler): Removed.
8721 (i386_abi_handler_list): Removed.
8722 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8723 functions.
8724 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8725 i386_nw_init_abi): New functions.
8726 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8727 Use set_gdbarch_xxx() calls instead of relying on macros for a
8728 number of calls.
8729 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8730 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8731 Register the various architecture variants defined in this file.
8732
8733 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8734
8735 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8736 (struct main_type): Remove arg_types member. Update comments for
8737 struct field.
8738 (TYPE_ARG_TYPES): Remove.
8739 (TYPE_FN_FIELD_ARGS): Update.
8740 (smash_to_method_type): Update prototype.
8741
8742 * c-typeprint.c (cp_type_print_method_args): Take method type
8743 instead of argument list. Use new argument layout. Simplify.
8744 (c_type_print_args): Use new argument layout. Simplify.
8745 (c_type_print_base): Update call to cp_type_print_method_args.
8746 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8747 argument; use die->type instead. Update call to
8748 smash_to_method_type.
8749 (read_structure_scope): Update call to dwarf2_add_member_fn.
8750 * gdbtypes.c (allocate_stub_method): Update comment.
8751 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8752 Use new argument layout.
8753 (check_stub_method): Use new argument layout. Don't count
8754 void as an argument.
8755 (print_arg_types): Update comments. Use new argument layout.
8756 (recursive_dump_type): Don't print arg_types member.
8757 * hpread.c (hpread_read_struct_type): Use new argument layout.
8758 (fixup_class_method_type): Likewise.
8759 (hpread_type_lookup): Likewise.
8760 * stabsread.c (read_type): Update calls to read_args and
8761 smash_to_method_type.
8762 (read_args): Use new argument layout. Simplify.
8763 * valops.c (typecmp): Use new argument layout. Update parameters
8764 and comments. Simplify.
8765 (hand_function_call): Use new argument layout.
8766 (search_struct_method): Update call to typecmp.
8767 (find_overload_match): Use new argument layout.
8768
8769 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8770
8771 * NEWS: Mention multithreaded debug support for gdbserver.
8772
8773 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8774
8775 * MAINTAINERS: Mention NEWS.
8776
8777 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8778
8779 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8780 (struct mips_objfile_private, compare_pdr_entries): New.
8781 (non_heuristic_proc_desc): Read the ".pdr" section if it
8782 is present.
8783
8784 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8785
8786 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8787 (arm_debug): New static variable.
8788 (_initialize_arm_tdep): Add ``set debug arm'' command.
8789
8790 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8791
8792 * Makefile.in (sim_arm_h): Define.
8793 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8794 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8795 (arm_register_sim_regno): New function, map an internal REGNUM
8796 onto a simulator register number.
8797 (arm_gdbarch_init): Set register_sim_regno.
8798
8799 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8800
8801 * MAINTAINERS: Add self.
8802
8803 2002-06-11 Jim Blandy <jimb@redhat.com>
8804
8805 * source.c (source_info): Mention whether the symtab has
8806 information about preprocessor macros.
8807
8808 Call the command `info macro', not `show macro'.
8809 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8810 Fix error message.
8811 (_initialize_macrocmd): Register `info_macro_command' in
8812 `infolist', not `showlist'.
8813
8814 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8817 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8818 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8819 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8820 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8821 unconditionally.
8822 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8823 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8824 (_initialize_mips_tdep): Remove dead code.
8825 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8826 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8827 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8828 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8829 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8830 MIPS_LAST_FP_ARG_REGNUM): Remove.
8831
8832 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8833
8834 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8835 (unwind_tmp_obstack_free, parse_frame_info)
8836 (update_context, cfi_read_fp, cfi_write_fp)
8837 (cfi_frame_chain, cfi_init_extra_frame_info)
8838 (cfi_virtual_frame_pointer): Use the above function.
8839 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8840
8841 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8842
8843 * v850-tdep.c (v850_type_is_scalar): New function.
8844 (v850_use_struct_convention): Match current gcc implementation
8845 as close as possible.
8846 (v850_push_arguments): Fix stack_offset handling. Don't write
8847 struct_addr into register. This is done by v850_store_struct_return.
8848 (v850_extract_return_value): Care for structs.
8849 (v850_store_return_value): Ditto.
8850 (v850_store_struct_return): Actually write address.
8851
8852 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8853
8854 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8855 without debug information too.
8856
8857 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8858
8859 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8860 Make multi-arch pure.
8861 * gdbarch.h, gdbarch.c: Re-generate.
8862 * arm-tdep.c (arm_print_float_info): Update.
8863 * arch-utils.h (default_print_float_info): Update.
8864 * arch-utils.c (default_print_float_info): Update.
8865 * infcmd.c (float_info): Update call.
8866
8867 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8868
8869 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8870 the front of the initialize list.
8871
8872 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8873
8874 * infrun.c (struct inferior_status): Replace fields
8875 selected_frame_address and selected_level with field
8876 selected_frame_id.
8877 (save_inferior_status): Update. Use get_frame_id.
8878 (struct restore_selected_frame_args): Delete.
8879 (restore_selected_frame): Update. Use frame_find_by_id.
8880 (restore_inferior_status): Update.
8881
8882 * breakpoint.h (struct breakpoint): Change type of
8883 watchpoint_frame to frame_id.
8884 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8885 call to get_current_frame.
8886 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8887 get_current_frame.
8888 (watchpoint_check): Use frame_find_by_id.
8889
8890 * frame.h (record_selected_frame): Delete declaration.
8891 * stack.c (record_selected_frame): Delete function.
8892
8893 * frame.h (struct frame_id): Define.
8894 (get_frame_id): Declare.
8895 (frame_find_by_id): Declare.
8896 * frame.c (frame_find_by_id): New function.
8897 (get_frame_id): New function.
8898
8899 2002-06-10 Andrey Volkov <avolkov@transas.com>
8900
8901 * ser-e7kpc.c: Fix duplicated define and call of
8902 _initialize_ser_e7000pc
8903
8904 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * signals/signals.c (target_signal_from_host): Fix #ifdef
8907 SIGRTMIN case.
8908 (do_target_signal_to_host): Likewise.
8909
8910 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * mips-tdep.c (mips_find_abi_section): New function.
8913 (mips_gdbarch_init): Call it.
8914
8915 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8916
8917 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8918 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8919 after Andrew's 2002-06-08 gdbarch change.
8920
8921 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8922
8923 * i386-linux-nat.c (suppy_gregset): Don't supply
8924 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8925 register cache.
8926 (fill_gregset): Don't fetch it under the same circumstances.
8927
8928 2002-06-09 Andrew Cagney <cagney@redhat.com>
8929
8930 * Makefile.in (callback_h): Define.
8931 (remote_sim_h): Update path to remote-sim.h.
8932 (remote-rdp.o): Add $(callback_h).
8933 (remote-sim.o): Use $(callback_h).
8934 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8935 * remote-rdp.c: Include "gdb/callback.h".
8936
8937 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8938
8939 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8940 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8941
8942 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8943
8944 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8945 * rdi-share/serpardr.c: Ditto.
8946 * rdi-share/unixcomm.c: Ditto.
8947 * rdi-share/serdrv.c: Ditto.
8948 * rdi-share/hostchan.h: Ditto.
8949 * rdi-share/hostchan.c: Ditto.
8950 * rdi-share/host.h: Ditto.
8951 * rdi-share/devsw.c: Ditto.
8952
8953 * objfiles.h: Change type of obj_private to void pointer.
8954 * pa64solib.c: Update copyright. Don't include "assert.h", use
8955 strcmp instead of STREQ, use LONGEST, do not use PTR
8956 * somsolib.c: Ditto.
8957
8958 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8959 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8960 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8961
8962 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8963
8964 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8965 (default_get_saved_register): Delete function.
8966 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8967 generic_unwind_get_saved_register.
8968 * gdbarch.h, gdbarch.c: Re-generate.
8969
8970 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8971
8972 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8973 generic_func_frame_chain_valid.
8974 * gdbarch.h, gdbarch.c: Re-generate.
8975 * blockframe.c (generic_func_frame_chain_valid): Only check
8976 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8977 passing FP to PC_IN_CALL_DUMMY.
8978 Fix PR gdb/360.
8979
8980 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8981
8982 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8983 (register_gdbarch_data): Initialize init_p.
8984 (gdbarch_data): Initialize data pointer using the init function.
8985 (init_gdbarch_data): Delete function.
8986 (gdbarch_update_p): Update.
8987 (initialize_non_multiarch): Update.
8988 (struct gdbarch): Add field initialized_p.
8989 * gdbarch.h, gdbarch.c: Re-generate.
8990
8991 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8992
8993 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8994 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8995 better do the things actually here.
8996 * x86-64-tdep.c (x86_64_register_name2nr): New.
8997 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8998 (x86_64_gdbarch_init): Respect the above change.
8999 * x86-64-tdep.h (x86_64_register_name2nr)
9000 (x86_64_register_nr2name): Add prototypes.
9001 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9002
9003 2002-06-06 Michael Snyder <msnyder@redhat.com>
9004
9005 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9006 Delete extra braces and re-indent.
9007 (d10v_store_return_value): Char return values
9008 must be shifted over by one byte in R0.
9009 (d10v_extract_return_value): Delete extra braces, re-indent.
9010
9011 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9012
9013 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9014 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9015 (d10v_integer_to_address): Rewrite.
9016 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9017 the d10v specific functions which take care of converting to the
9018 correct space.
9019
9020 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9021
9022 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9023 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9024
9025 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9026
9027 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9028 includes.
9029 * config/tm-linux.h: Ditto.
9030 * config/alpha/tm-alphalinux.h: Ditto.
9031 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9032 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9033 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9034 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9035 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9036 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9037 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9038 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9039 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9040 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9041 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9042 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9043 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9044 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9045 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9046 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9047 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9048 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9049 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9050 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9051 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9052 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9053 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9054 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9055 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9056 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9057 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9058 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9059 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9060 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9061 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9062 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9063 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9064 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9065 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9066 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9067 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9068
9069 2002-05-04 Aidan Skinner <aidan@velvet.net>
9070
9071 * ada-exp.tab.c: New file
9072 * ada-exp.y: New file
9073 * ada-lang.c: New file
9074 * ada-lang.h: New file
9075 * ada-lex.c: New file
9076 * ada-lex.l: New file
9077 * ada-tasks.c: New file
9078 * ada-typeprint.c: New file
9079 * ada-valprint.c: New file
9080
9081 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9082
9083 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9084 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9085
9086 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9087
9088 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9089 insetead of ppc-linux-tdep.o.
9090 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9091 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9092
9093 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9094
9095 2002-05-07 Christian Groessler <chris@groessler.org>
9096 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9097 bit register contents for little endian hosts.
9098
9099 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9100
9101 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9102 any maintainer.
9103
9104 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9105
9106 * gdbarch.h: Regenerate.
9107
9108 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9109
9110 * MAINTAINERS: Add everyone to write-after-approval list.
9111
9112 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9113
9114 * stack.c (frame_info): Use frame_register_unwind instead of
9115 saved_regs. Mention when the SP is on the stack or in a register.
9116
9117 * frame.h (frame_register_unwind_ftype): Define. Document.
9118 (struct frame_info): Add field register_unwind and
9119 register_unwind_cache.
9120 (frame_register_unwind): Declare.
9121 (generic_unwind_get_saved_register): Declare.
9122
9123 * frame.c (frame_register_unwind): New function.
9124 (generic_unwind_get_saved_register): New function.
9125
9126 * blockframe.c (generic_call_dummy_register_unwind): New function.
9127 (frame_saved_regs_register_unwind): New function.
9128 (set_unwind_by_pc): New function.
9129 (create_new_frame): New function.
9130 (get_prev_frame): New function.
9131
9132 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9133
9134 * a29k-share/: Delete directory.
9135 * remote-vx29k.c: Delete file.
9136
9137 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9138
9139 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9140 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9141
9142 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9143
9144 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9145 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9146 (sparc64nbsd-nat.o)
9147 (sparcnbsd-nat.o)
9148 (sparcnbsd-tdep.o): New dependency lists.
9149 * NEWS: Note new UltraSPARC NetBSD native configuration.
9150 * configure.host (sparc64-*-netbsd*): New host.
9151 * configure.tgt (sparc-*-netbsdelf*)
9152 (sparc-*-netbsd*): Set gdb_target to nbsd.
9153 (sparc64-*-netbsd*): New target.
9154 * sparc64nbsd-nat.c: New file.
9155 * sparcnbsd-nat.c: New file.
9156 * sparcnbsd-tdep.c: New file.
9157 * sparcnbsd-tdep.h: New file.
9158 * config/sparc/nbsd.mt: New file.
9159 * config/sparc/nbsd64.mh: New file.
9160 * config/sparc/nbsd64.mt: New file.
9161 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9162 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9163 (HOST_IPC): Remove.
9164 * config/sparc/nbsdaout.mt: Remove.
9165 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9166 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9167 (HOST_IPC): Remove.
9168 * config/sparc/nbsdelf.mt: Remove.
9169 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9170 sparc-nat.c compatiblity defines.
9171 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9172 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9173 * config/sparc/tm-nbsd64.h: New file.
9174 * config/sparc/tm-nbsdaout.h: Remove.
9175 * config/sparc/xm-nbsd.h: Remove.
9176
9177 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9178
9179 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9180 * sparc-tdep.c: Include osabi.h.
9181 (gdbarch_tdep): Add osabi member.
9182 (_initialize_sparc_tdep): Use gdbarch_register.
9183 (sparc_gdbarch_init): Use generic OS ABI framework.
9184 (sparc_dump_tdep): New function.
9185
9186 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9187
9188 * corefile.c (do_captured_read_memory_integer): Return non-zero
9189 result.
9190 (safe_read_memory_integer): Copy result of memory read when
9191 status is non-zero. Also, add comments.
9192
9193 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9194
9195 * Makefile.in (ppc_tdep_h): Define.
9196 (ppc-linux-nat.o)
9197 (ppc-linux-tdep.o)
9198 (rs6000-tdep.o): Use $(ppc_tdep_h).
9199 (ppc-sysv-tdep.o)
9200 (ppcnbsd-nat.o)
9201 (ppcnbsd-tdep.o): New dependency lists.
9202 * ppc-tdep.h: Use generic OS ABI framework.
9203 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9204 (ppc_linux_init_abi): New functions.
9205 (ppc_sysv_abi_broken_use_struct_convention)
9206 (ppc_sysv_abi_use_struct_convention)
9207 (ppc_sysv_abi_push_arguments): Move to...
9208 * ppc-sysv-tdep.c: ...here.
9209 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9210 * rs6000-tdep.c (process_note_abi_tag_sections)
9211 (get_elfosabi): Remove.
9212 (rs6000_gdbarch_init): Use generic OS ABI framework.
9213 (rs6000_dump_tdep): New function.
9214 (_initialize_rs6000_tdep): Use gdbarch_register.
9215 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9216 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9217 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9218 of ppc-linux-tdep.o.
9219 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9220 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9221 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9222 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9223 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9224 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9225
9226 2002-05-29 Jim Blandy <jimb@redhat.com>
9227
9228 * macroscope.c (default_macro_scope): Put `void' in empty argument
9229 list.
9230
9231 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9232
9233 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9234 * arch-utils.c: Include "sim-regno.h".
9235 * gdbarch.sh: Don't include "sim-regno.h".
9236 * gdbarch.h, gdbarch.c: Regenerate.
9237 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9238 here.
9239 * arch-utils.h (legacy_register_sim_regno): To here.
9240 * remote-sim.c (legacy_register_sim_regno): Move function from
9241 here.
9242 * arch-utils.c (legacy_register_sim_regno): To here.
9243
9244 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9245
9246 * sim-regno.h: New file.
9247 * Makefile.in (sim_regno_h): Define.
9248 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9249 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9250 (legacy_register_sim_regno): New function.
9251 (one2one_register_sim_regno): New function.
9252 (gdbsim_fetch_register): Rewrite.
9253 (gdbsim_store_register): Only store a register when
9254 REGISTER_SIM_REGNO is valid.
9255 * d10v-tdep.c: Include "sim-regno.h".
9256 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9257 (d10v_ts3_register_sim_regno): Ditto.
9258 * gdbarch.sh: Include "sim-regno.h".
9259 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9260 * gdbarch.h, gdbarch.c: Regenerate.
9261 * arch-utils.h (default_register_sim_regno): Delete declaration.
9262 * arch-utils.c (default_register_sim_regno): Delete function.
9263
9264 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9265
9266 * ppcnbsd-nat.c: Rewrite.
9267 * ppcnbsd-tdep.c: New file.
9268 * ppcnbsd-tdep.h: New file.
9269 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9270 solib.o, and solib-svr4.o.
9271 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9272 nbsd-tdep.o, and corelow.o.
9273
9274 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9275
9276 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9277 `tr' and `sed'. Mention that `broken' targets are not expected to
9278 build.
9279
9280 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9281
9282 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9283 Let PC point right after the prologue before looking up symbols.
9284
9285 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9286
9287 * i386-tdep.c (i386_register_virtual_type): Return
9288 builtin_type_vec128i for SSE registers.
9289
9290 * gdbtypes.h (builtin_type_vec128i): Declare.
9291
9292 * gdbtypes.c (build_builtin_type_vec128i): New function.
9293 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9294 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9295 (build_gdbtypes): Initialize new builtin vector types.
9296 (_initialize_gdbtypes): Register new vector types with gdbarch.
9297
9298 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9299
9300 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9301 since it has been multi-arch'd.
9302 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9303 Move Alpha and VAX multi-arch news entries to same section
9304 as other multi-arch news.
9305
9306 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9307
9308 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9309 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9310 static. Rename some register numbers to put them in ns32k-tdep
9311 private namespace.
9312 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9313 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9314 functions.
9315 (_initialize_ns32k_tdep): Use gdbarch_register.
9316 * ns32k-tdep.h: New file.
9317 * ns32knbsd-tdep.c: New file.
9318 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9319 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9320 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9321 REGISTER_BYTES, REGISTER_BYTE): Remove.
9322 * config/ns32k/tm-ns32k.h: New file.
9323 * config/ns32k/tm-umax.h: Remove.
9324
9325 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9326
9327 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9328 ns32k_store_struct_return, ns32k_extract_return_value,
9329 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9330 functions.
9331 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9332 ns32k_saved_pc_after_call.
9333 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9334 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9335 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9336 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9337 ns32k_extract_struct_value_address.
9338
9339 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9342 ns32k_fix_call_dummy): New.
9343 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9344 ns32k_call_dummy_words.
9345 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9346 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9347 CALL_DUMMY_NARGS): Remove.
9348 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9349
9350 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9351
9352 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9353 ns32k_frame_saved_pc, ns32k_frame_args_address,
9354 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9355 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9356 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9357 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9358 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9359 (BREAKPOINT): Remove..
9360 (FRAME_CHAIN): Define as ns32k_frame_chain.
9361 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9362 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9363 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9364 (FRAME_FIND_SAVED_REGS): Remove.
9365 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9366 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9367 (POP_FRAME): Define as ns32k_pop_frame.
9368
9369 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9370
9371 * ns32k-tdep.c (ns32k_register_byte_32082,
9372 ns32k_register_byte_32382, ns32k_register_raw_size,
9373 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9374 functions.
9375 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9376 ns32k_register_byte_32382.
9377 * config/ns32k/tm-umax.h: Update copyright years.
9378 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9379 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9380 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9381 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9382 (ns32k_get_enter_addr): Fix prototype.
9383
9384 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9385
9386 * ns32k-tdep.c: Update copyright years.
9387 (ns32k_register_name_32082): New function.
9388 (ns32k_register_name_32382): Ditto.
9389 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9390 (REGISTER_NAME): Define as ns32k_register_name_32382.
9391 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9392 (REGISTER_NAME): Define as ns32k_register_name_32082.
9393
9394 2002-05-24 Jim Blandy <jimb@redhat.com>
9395
9396 * dwarf2read.c (free_line_header): Use xfree, not free.
9397
9398 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9399
9400 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9401 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9402
9403 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9404
9405 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9406
9407 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9408
9409 From Ross Alexander at NEC Europe:
9410 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9411
9412 2002-05-23 Michael Snyder <msnyder@redhat.com>
9413
9414 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9415 for input, rather than parse_and_eval_address.
9416
9417 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9418
9419 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9420 * Makefile.in (sim_d10v_h): Update definition.
9421
9422 2002-05-24 Andrew Cagney <cagney@redhat.com>
9423
9424 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9425 change `2002-05-22 Michael Snyder' below.
9426 (d10v_push_arguments): Ditto.
9427 (d10v_extract_return_value): Ditto.
9428
9429 2002-05-23 Jim Blandy <jimb@redhat.com>
9430
9431 * macrotab.c (check_for_redefinition): Don't complain if the new
9432 definition is the same as the previous one. Take more arguments
9433 to allow the comparison.
9434 (macro_define_object, macro_define_function): Pass more arguments
9435 to check_for_redefinition.
9436
9437 2002-05-22 Michael Snyder <msnyder@redhat.com>
9438
9439 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9440 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9441 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9442 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9443 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9444 Add a temp variable to save a call (and a memory read).
9445 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9446 if possible (so that PC_IN_CALL_DUMMY will work).
9447
9448 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9449
9450 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9451
9452 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9453
9454 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9455 fde->cie_ptr.
9456 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9457 (dwarf2_build_frame_info): Add offset to fde->initial_location
9458 so that frames of shared libraries are mapped correctly.
9459 (execute_stack_op): Change type of 'result' from ULONGEST to
9460 CORE_ADDR.
9461
9462 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9463
9464 * config/alpha/tm-nbsd.h: Include solib.h.
9465
9466 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9467
9468 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9469 assumptions about the host's byte order.
9470
9471 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9472
9473 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9474 to dependency list.
9475 * alphanbsd-tdep.c: Include solib-svr4.h.
9476 * shnbsd-tdep.c: Ditto.
9477
9478 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9479
9480 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9481 nbsd-tdep.h to dependency list.
9482 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9483 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9484 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9485 nbsdaout.mh and nbsdelf.mh consistently.
9486 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9487 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9488 nbsdaout.mt and nbsdelf.mh consistently.
9489 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9490 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9491 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9492 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9493 a.out shared library stuff from here...
9494 * config/nm-nbsdaout.h: ...to here.
9495 * config/tm-nbsd.h: Remove.
9496 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9497 * config/arm/nbsd.mh: Remove.
9498 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9499 nbsd-tdep.o.
9500 * config/arm/nbsdaout.mh: New file.
9501 * config/arm/nbsdelf.mh: New file.
9502 * config/arm/nm-nbsdaout.h: New file.
9503 * config/i386/nbsd.mh: Remove.
9504 * config/i386/nbsd.mt: Remove.
9505 * config/i386/nbsdaout.mh: New file.
9506 * config/i386/nbsdaout.mt: New file.
9507 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9508 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9509 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9510 i386_register_u_addr): Remove.
9511 * config/i386/nm-nbsdaout.h: New file.
9512 * config/i386/nm-nbsdelf.h: Remove.
9513 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9514 (USE_STRUCT_CONVENTION): Remove.
9515 * config/i386/tm-nbsdaout.h: New file.
9516 * config/i386/tm-nbsdelf.h: Remove.
9517 * config/m68k/nbsd.mh: Remove.
9518 * config/m68k/nbsd.mt: Remove.
9519 * config/m68k/nbsdaout.mh: New file.
9520 * config/m68k/nbsdaout.mt: New file.
9521 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9522 * config/m68k/nm-nbsdaout.h: New file.
9523 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9524 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9525 * config/ns32k/nbsd.mh: Remove.
9526 * config/ns32k/nbsd.mt: Remove.
9527 * config/ns32k/nbsdaout.mh: New file.
9528 * config/ns32k/nbsdaout.mt: New file.
9529 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9530 * config/ns32k/nm-nbsdaout.h: New file.
9531 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9532 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9533 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9534 (SVR4_SHARED_LIBS): Remove.
9535 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9536 * config/sparc/nbsd.mh: Remove.
9537 * config/sparc/nbsd.mt: Remove.
9538 * config/sparc/nbsdaout.mh: New file.
9539 * config/sparc/nbsdaout.mt: New file.
9540 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9541 * config/sparc/nbsdelf.mt: New file.
9542 * config/sparc/nm-nbsdaout.h: New file.
9543 * config/sparc/nm-nbsdelf.h: Remove.
9544 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9545 * config/sparc/tm-nbsdaout.h: New file.
9546
9547 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9548
9549 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9550 mipsnbsd-tdep.c
9551 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9552
9553 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9554
9555 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9556 shnbsd-nat.c.
9557 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9558
9559 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9560
9561 * NEWS: Note new MIPS NetBSD native configuration.
9562 * configure.host (mips*-*-netbsd*): New host.
9563 * configure.tgt (mips*-*-netbsd*): New target.
9564 * mipsnbsd-nat.c: New file.
9565 * mipsnbsd-tdep.c: New file.
9566 * mipsnbsd-tdep.h: New file.
9567 * config/mips/nbsd.mh: New file.
9568 * config/mips/nbsd.mt: New file.
9569 * config/mips/nm-nbsd.h: New file.
9570 * config/mips/tm-nbsd.h: New file.
9571
9572 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9573
9574 * Makefile.in (SFILES): Add osabi.c.
9575 (COMMON_OBS): Add osabi.o.
9576 (osabi.o): New dependency list.
9577 * osabi.c: New file.
9578 * osabi.h: New file.
9579 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9580
9581 * Makefile.in (alpha_tdep_h): Define and use instead of
9582 alpha-tdep.h.
9583 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9584 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9585 Remove.
9586 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9587 * alpha-tdep.h: Include osabi.h.
9588 (alpha_abi): Remove.
9589 (gdbarch_tdep): Use generic OS ABI framework.
9590 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9591 gdbarch_register_osabi.
9592 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9593 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9594 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9595
9596 * Makefile.in (sh_tdep_h): Add osabi.h.
9597 * sh-tdep.h (sh_osabi): Remove.
9598 (gdbarch_tdep): Use generic OS ABI framework.
9599 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9600 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9601 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9602 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9603
9604 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9605 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9606 gdbarch_register_osabi.
9607 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9608 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9609 (get_elfosabi): Rename to...
9610 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9611 ABI framework support routines.
9612 (arm_gdbarch_init): Use generic OS ABI framework.
9613 (arm_dump_tdep): Likewise.
9614 (_initialize_arm_tdep): Likewise.
9615 * arm-tdep.h: Include osabi.h.
9616 (arm_abi): Remove.
9617 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9618 osabi member.
9619 (arm_gdbarch_register_os_abi): Remove prototype.
9620 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9621 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9622
9623 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9624 * mips-tdep.c: Include osabi.h.
9625 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9626 OS ABI framework.
9627
9628 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9629
9630 * h8300-tdep.c: Fix formatting.
9631
9632 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9633
9634 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9635 printing vector registers.
9636
9637 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9638
9639 From Fernando Nasser:
9640 * remote.c (remote_async_open_1): Re-throw the exception when the
9641 connection fails.
9642 (remote_cisco_open): Ditto.
9643 (remote_open_1): Ditto.
9644
9645 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9646
9647 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9648 (remote_start_remote): Add uiout parameter. Pass through to
9649 remote_start_remote_dummy.
9650 (remote_open_1): Use catch_exception instead of catch_errors.
9651 (remote_async_open_1): Ditto.
9652 (remote_cisco_open): Ditto.
9653
9654 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9655
9656 * remote.c (remote_start_remote): Replace PTR with void pointer.
9657 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9658 static.
9659
9660 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9661
9662 * gdb_indent.sh: Allow the script to be run in the sim directory.
9663
9664 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9665
9666 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9667 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9668
9669 * corelow.c (core_open): Only call set_gdbarch_from_file if
9670 exec_bfd is NULL.
9671
9672 2002-05-17 Andrey Volkov <avolkov@transas.com>
9673
9674 * h8300-tdep.c: Add support of EXR register
9675 * config/h8300/tm-h8300.h: Ditto.
9676
9677 2002-05-17 Andrey Volkov <avolkov@transas.com>
9678
9679 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9680
9681 2002-05-17 Andrey Volkov <avolkov@transas.com>
9682
9683 * h8300-tdep.c: Change literal regnums to REGNO.
9684
9685 2002-05-17 Jim Blandy <jimb@redhat.com>
9686
9687 * NEWS: Note addition of macro support.
9688
9689 Expand preprocessor macros in C expressions.
9690 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9691 (scan_macro_expansion, scanning_macro_expansion,
9692 finished_macro_expansion): New function declarations.
9693 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9694 variable declarations.
9695 * parser-defs.h (expression_context_pc): New declaration.
9696 * parse.c (expression_context_pc): New variable.
9697 (parse_exp_1): Set expression_context_pc, as well as
9698 expression_context_block.
9699 * c-exp.y (yylex): If we're not already reading the result of a
9700 macro expansion, try to macro-expand the next token. When we're
9701 done scanning a macro expansion, switch back to the mainline text.
9702 Commas and `if's in a macro's expansion don't terminate the input.
9703 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9704 (macro_original_text, macro_expanded_text,
9705 expression_macro_lookup_func, expression_macro_lookup_baton): New
9706 variables.
9707 (scan_macro_expansion, scanning_macro_expansion,
9708 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9709 c_preprocess_and_parse): New functions.
9710 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9711 c_preprocess_and_parse, instead of c_parse.
9712 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9713 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9714
9715 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9716
9717 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9718 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9719 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9720
9721 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9722
9723 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9724
9725 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9726
9727 * Makefile.in (sh_tdep_h): Define and use.
9728 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9729 register enum): Move to...
9730 * * sh-tdep.h: ...here.
9731 * sh-tdep.c: Include sh-tdep.h.
9732 * sh3-rom.c: Likewise.
9733 * shnbsd-tdep.c: Likewise.
9734
9735 2002-05-16 Michael Snyder <msnyder@redhat.com>
9736
9737 * arm-tdep.c: Spelling fix in comment.
9738
9739 2002-05-16 Jim Blandy <jimb@redhat.com>
9740
9741 Add commands for manually expanding macros and showing their
9742 definitions.
9743 * macrocmd.c, macroscope.c, macroscope.h: New files.
9744 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9745 (macroscope_h): New variable.
9746 (HFILES_NO_SRCDIR): Add macroscope.h.
9747 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9748 (macroscope.o, macrocmd.o): New rules.
9749
9750 Teach the Dwarf 2 reader to read macro information.
9751 * dwarf2read.c: #include "macrotab.h".
9752 (dwarf_macinfo_buffer): New variable.
9753 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9754 dwarf_macinfo_size.
9755 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9756 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9757 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9758 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9759 dwarf2_macro_spaces_in_definition): New complaints.
9760 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9761 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9762 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9763 the partial symbol table.
9764 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9765 from what's recorded in the partial symbol table.
9766 (read_file_scope): If the compilation unit has a
9767 `DW_AT_macro_info' attribute, read its macro information.
9768 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9769
9770 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9771
9772 Fix PR gdb/546
9773 * ser-tcp.c: Don't include <netinet/udp.h>.
9774
9775 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9776
9777 * MAINTAINERS: Update my email address.
9778
9779 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9782 include file of the same name.
9783
9784 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9785
9786 * configure.tgt: Mark v850 as multi-arched.
9787 * config/v850/tm-v850.h: Remove file.
9788 * config/v850/v850.mt: Eliminate TM_FILE.
9789
9790 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9791
9792 * v850-tdep.c: Full multi-arch.
9793 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9794 Define GDB_MULTI_ARCH to 2.
9795
9796 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9797
9798 * p-exp.y (current_type): New static variable.
9799 Carries the type of the expression at the position that is parsed.
9800 (push_current_type, pop_current_type): Two new functions. Used
9801 to store/restore current_type in expression on specific tokens.
9802 (search_field): New static variable. Set to one after parsing a point
9803 as at that point only a FIELDNAME token should be searched.
9804 (FIELDNAME): New token. After a point only a token belonging to
9805 current_type type definition is allowed.
9806 (all over token rules): reset and change current_type according
9807 to rules.
9808 (exp '[' rule): insert implicit array index field if
9809 exp is a pascal string type.
9810
9811 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9812
9813 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9814 frame info. Use frame_info's saved_regs instead of matching member
9815 in extra_frame_info throughout.
9816 (v850_frame_init_saved_regs): New function.
9817 (v850_init_extra_frame_info): Move most functionality into
9818 v850_frame_init_saved_regs().
9819 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9820 (v850_frame_find_saved_regs): Remove declaration.
9821 (FRAME_FIND_SAVED_REGS): Remove definition.
9822 (v850_frame_init_saved_regs): Add declaration.
9823 (FRAME_INIT_SAVED_REGS): Add definition.
9824
9825 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9826
9827 * v850-tdep.c: Begin multi-arch'ing v850.
9828 (v850_target_architecture_hook): Remove function.
9829 (v850_gdbarch_init): New function. Add code previously in
9830 v850_target_architecture_hook().
9831 (_initialize_v850_tdep): Don't set target_architecture_hook.
9832 Call register_gdbarch_init() instead.
9833
9834 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9835
9836 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9837 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9838 (fixup_class_method_type): Likewise.
9839
9840 2002-05-15 Jim Blandy <jimb@redhat.com>
9841
9842 Add macro structures to GDB's symbol tables. Nobody puts anything
9843 in them yet.
9844 * symtab.h (struct symtab): New member: `macro_table'.
9845 * buildsym.h (pending_macros): New global variable.
9846 * buildsym.c: #include "macrotab.h".
9847 (buildsym_init): Initialize `pending_macros'.
9848 (end_symtab): If we found macro information while reading a CU's
9849 debugging info, do build a symtab structure for it. Make the
9850 symtab point to the macro information, and clear the
9851 `pending_macros' pointer which held it while we were reading the
9852 debug info.
9853 (really_free_pendings): Free any pending macro table.
9854 * objfiles.h (struct objfile): New member: `macro_cache'.
9855 * objfiles.c (allocate_objfile): Set allocate and free functions
9856 for the macro cache's objstack.
9857 (free_objfile): Empty the macro cache's obstack.
9858 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9859 set new allocate and free functions for it.
9860 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9861 free functions for the macro cache's objstack. (Why is this
9862 function building its own objfile?)
9863 * symmisc.c (print_objfile_statistics): Print statistics on the
9864 macro bcache.
9865 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9866
9867 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9868
9869 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9870 (REGISTER_U_ADDR): Delete definition.
9871 (arm_register_u_addr): Delete declaration.
9872
9873 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9874
9875 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9876 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9877
9878 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9879
9880 * regcache.c (register_valid): Revise comments refering to "Not
9881 available" and "unavailable".
9882 * frame.c (frame_register_read): Ditto.
9883 * findvar.c (value_of_register): Ditto.
9884
9885 2002-05-15 Andrew Cagney <cagney@redhat.com>
9886
9887 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9888 (remote-sim.o): Update dependencies.
9889 (d10v-tdep.o): Specify dependencies.
9890 (sim_d10v_h): Define.
9891
9892 2002-05-14 Jim Blandy <jimb@redhat.com>
9893
9894 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9895 * macrotab.c (macro_lookup_inclusion, find_definition,
9896 new_macro_table): Same.
9897
9898 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9899 not `! strcmp ()'. This is a dubious improvement.
9900 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9901
9902 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9903 although it's not necessary, to avoid a warning.
9904
9905 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9906
9907 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9908 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9909 TYPE_INSTANCE_FLAGS.
9910 (struct main_type): New.
9911 (struct type): Move most members to struct main_type. Change
9912 cv_type and as_type to new type_chain member. Add instance_flags.
9913 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9914 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9915 (finish_cv_type): Remove prototype.
9916 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9917 Set TYPE_CHAIN.
9918 (alloc_type_instance): New function.
9919 (smash_type): New function.
9920 (make_pointer_type, make_reference_type, make_function_type)
9921 (smash_to_member_type, smash_to_method_type): Call smash_type.
9922 (make_qualified_type): New function.
9923 (make_type_with_address_space): Call make_qualified_type.
9924 (make_cv_type): Likewise.
9925 (finish_cv_type): Remove unnecessary function.
9926 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9927 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9928 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9929 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9930 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9931 * hpread.c (hpread_read_struct_type): Likewise.
9932 * stabsread.c (read_struct_type): Likewise.
9933
9934 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9935
9936 * configure.tgt: Add a catch all sh* target, for cases like
9937 sh[2,3,4]-elf and sh-hms.
9938
9939 2002-05-14 Keith Seitz <keiths@redhat.com>
9940
9941 * event-loop.c (create_file_handler): Don't do anything but
9942 update data when we are given a fd which we are already
9943 monitoring.
9944
9945 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9946
9947 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9948 (update_context): Use __func__ in warnings.
9949
9950 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9951
9952 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9953 and tcp_close to net_open and net_close.
9954 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9955 using UDP if requested. Don't try to disable Nagle on UDP
9956 sockets.
9957 * remote.c (remote_serial_open): New function. Warn about UDP.
9958 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9959
9960 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9961
9962 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9963
9964 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9965
9966 * configure.tgt: Remove sh-hms target.
9967 * MAINTAINERS: Don't list sh-hms as a separate target.
9968
9969 2002-05-13 Jim Blandy <jimb@redhat.com>
9970
9971 Add first preprocessor macro-expansion files.
9972 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9973 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9974 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9975 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9976 (COMMON_OBS): Add macrotab.o, macroexp.o.
9977 (macroexp.o, macrotab.o): New rules.
9978
9979 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9980
9981 * config/m88k/tm-m88k.h: Update copyright.
9982 (m88k_target_write_pc): Declare
9983 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9984 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9985 (SHIFT_INST_REGS): Update definition.
9986 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9987 using old definition of TARGET_WRITE_PC.
9988 * regcache.c (generic_target_write_pc): Delete code handling
9989 NNPC_REGNUM.
9990 * gdbarch.sh (NNPC_REGNUM): Delete.
9991 * gdbarch.h, gdbarch.c: Regenerate.
9992
9993 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9994
9995 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9996 builtin reg number.
9997
9998 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9999
10000 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10001 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10002 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10003 access macros.
10004 * c-typeprint.c (cp_type_print_method_args): Likewise.
10005 (c_type_print_args): Likewise.
10006 * d10v-tdep.c (d10v_push_arguments): Likewise.
10007 (d10v_extract_return_value): Likewise.
10008 * expprint.c (print_subexp): Likewise.
10009 * gdbtypes.c (lookup_primitive_typename): Likewise.
10010 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10011 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10012 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10013 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10014 (TYPE_VECTOR): Likewise.
10015 * hpread.c (hpread_read_struct_type)
10016 (fix_static_member_physnames, fixup_class_method_type)
10017 (hpread_type_lookup): Likewise.
10018 * mdebugread.c (parse_symbol, parse_type): Likewise.
10019 * p-lang.c (is_pascal_string_type): Likewise.
10020 * valops.c (hand_function_call): Likewise.
10021 * x86-64-tdep.c (classify_argument): Likewise.
10022
10023 * hpread.c (hpread_read_function_type)
10024 (hpread_read_doc_function_type): Call replace_type.
10025 * dstread.c (create_new_type): Delete.
10026 (decode_dst_structure, process_dst_function): Call alloc_type.
10027 Use type access macros.
10028
10029 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10030
10031 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10032 the're not supported by the current architecture.
10033 (i387_fill_fxsave): Likewise.
10034
10035 2002-05-12 Fred Fish <fnf@redhat.com>
10036
10037 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10038 sect_index_xxx members to index the first slot in section_offsets
10039 if all of the section_offsets are zero.
10040
10041 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10042
10043 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10044 checked in with last change.
10045
10046 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10047
10048 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10049 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10050 config.sub.
10051
10052 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10053
10054 * Makefile.in: Update dependencies.
10055
10056 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10057
10058 * language.c (local_hex_string_custom): Simplify. Do not depend
10059 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10060
10061 * memattr.c (mem_info_command): Replace calls to
10062 longest_local_hex_string and longest_local_hex_string_custom.
10063 * buildsym.c (make_blockvector): Ditto.
10064 * solib.c (info_sharedlibrary_command): Ditto.
10065 * tracepoint.c (tracepoints_info): Ditto.
10066 * symtab.c (print_msymbol_info): Ditto.
10067
10068 * language.c (local_hex_string): Delete.
10069 (local_hex_string_custom): Delete.
10070 (longest_local_hex_string): Rename to local_hex_string.
10071 (longest_local_hex_string_custom): Rename to
10072 local_hex_string_custom.
10073 * language.h (local_hex_string): Change parameter type to LONGEST.
10074 (local_hex_string_custom): Ditto.
10075 (longest_local_hex_string): Delete declaration.
10076 (longest_local_hex_string_custom): Ditto.
10077
10078 * solib.c: Update copyright.
10079 * memattr.c: Update copyright.
10080
10081 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10082
10083 * arch-utils.h (legacy_register_to_value): Declare.
10084 (legacy_value_to_register): Declare.
10085 (legacy_convert_register_p): Declare.
10086 * arch-utils.c (legacy_register_to_value): New function.
10087 (legacy_value_to_register): New function.
10088 (legacy_convert_register_p): New function.
10089
10090 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10091 (VALUE_TO_REGISTER): Define.
10092 (CONVERT_REGISTER_P): Define.
10093 * gdbarch.h, gdbarch.c: Regenerate.
10094
10095 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10096 VALUE_TO_REGISTER.
10097 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10098 CONVERT_REGISTER_P.
10099
10100 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10101 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10102
10103 * Makefile.in: Update dependencies for valops.c.
10104 * valops.c: Include "gdb_assert.h".
10105 (typecmp): Skip THIS parameter to methods.
10106 (find_method_list): Remove static_memfuncp argument,
10107 update callers. Check for stub methods.
10108 (find_value_oload_method_list): Don't set *static_memfuncp.
10109 (find_overload_match): Don't check for stub methods. Assert
10110 that methods are not stubbed. Handle static methods.
10111 (value_find_oload_method_list): Remove static_memfuncp argument.
10112 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10113 to the argument list for static stub methods.
10114 * value.h (value_find_oload_method_list): Update prototype.
10115
10116 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10117
10118 * arch-utils.h (generic_register_size): Declare.
10119 (generic_register_raw_size, generic_register_virtual_size): Delete
10120 declarations.
10121 * arch-utils.c (generic_register_raw_size): Delete.
10122 (generic_register_size): New function.
10123 (generic_register_virtual_size): Delete.
10124
10125 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10126 default generic_register_size.
10127 * gdbarch.h, gdbarch.c: Re-generate.
10128
10129 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10130 register_virtual_size.
10131 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10133
10134 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10135
10136 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10137 * gdbarch.h, gdbarch.c: Regenerate.
10138 * gnu-v3-abi.c: Update copyright.
10139 (vtable_address_point_offset): Update.
10140 (gnuv3_rtti_type): Update.
10141 (gnuv3_baseclass_offset): Update.
10142 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10143 (init_fetch_link_map_offsets): Update.
10144 * remote.c (get_remote_state): Update.
10145
10146 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10147
10148 * TODO: Remove value_headof/value_from_vtable_info comment.
10149 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10150 * values.c (value_headof, value_from_vtable_info): Delete.
10151 * value.h (value_from_vtable_info): Delete prototype.
10152
10153 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10154
10155 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10156 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10157 $(gdb_regex_h).
10158 (gdb_assert_h): Define.
10159 (gdb_wait_h): Define.
10160 (gdb_regex_h): Define.
10161
10162 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10163
10164 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10165 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10166
10167 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10168
10169 * nbsd-tdep.c: Fix comment.
10170
10171 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10172
10173 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10174 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10175 (nbsd-tdep.o): New dependency list.
10176 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10177 nbsd-tdep.h.
10178 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10179 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10180 * nbsd-tdep.c: New file.
10181 * nbsd-tdep.h: New file.
10182 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10183 nbsd-tdep.h.
10184 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10185 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10186 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10187 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10188
10189 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10190
10191 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10192 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10193 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10194 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10195 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10196 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10197
10198 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10199
10200 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10201 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10202 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10203 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10204 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10205 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10206 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10207
10208 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10209
10210 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10211 fetch_elfcore_registers to...
10212 * i386nbsd-tdep.c: ...here.
10213 (i386nbsd_use_struct_convention): Rename to...
10214 (i386nbsd_aout_use_struct_convention): ...this.
10215 (i386nbsd_supply_reg): New function.
10216 (i386nbsd_fill_reg): New function.
10217 (fetch_core_registers): Use i386nbsd_supply_reg.
10218 (fetch_elfcore_registers): Likewise.
10219 (_initialize_i386nbsd_tdep): New function.
10220 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10221 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10222 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10223 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10224 (i386nbsd_aout_use_struct_convention): ...this.
10225
10226 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10227
10228 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10229 (store_inferior_registers): Use shnbsd_fill_reg.
10230 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10231 sh_nbsd_supply_register): Collapse into...
10232 (shnbsd_supply_reg): ...this.
10233 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10234 (shnbsd_fill_reg): ...this.
10235 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10236 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10237 (fetch_core_registers): Use shnbsd_supply_reg.
10238 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10239 (sh_nbsd_core_fns): Rename to...
10240 (shnbsd_core_fns): ...this.
10241 (sh_nbsd_elfcore_fns): Rename to...
10242 (shnbsd_elfcore_fns): ...this.
10243 (sh_nbsd_init_abi): Rename to...
10244 (shnbsd_init_abi): ...this.
10245 (_initialize_sh_nbsd_tdep): Rename to...
10246 (_initialize_shnbsd_tdep): ...this.
10247 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10248 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10249 sh_nbsd_fill_register): Remove prototypes.
10250 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10251
10252 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10253
10254 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10255 (i387-nat.o): Delete dependency list.
10256 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10257 (x86-64-linux-nat.o): Likewise.
10258 * i387-nat.c: Delete file, moving contents to...
10259 * i387-tdep.c: ...here.
10260 * i387-nat.h: Rename...
10261 * i387-tdep.h: ...to this.
10262 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10263 * i386-linux-nat.c: Likewise.
10264 * i386bsd-nat.c: Likewise.
10265 * i386gnu-nat.c: Likewise.
10266 * i386nbsd-nat.c: Likewise.
10267 * i386v4-nat.c: Likewise.
10268 * x86-64-linux-nat.c: Likewise.
10269 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10270 * config/i386/go32.mh (NATDEPFILES): Likewise.
10271 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10272 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10273 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10274 * config/i386/linux.mh (NATDEPFILES): Likewise.
10275 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10276 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10277 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10278 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10279
10280 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10281
10282 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10283 (alphanbsd-nat.o): Remove dependency list.
10284 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10285 * alphanbsd-nat.c: Delete. Contents moved to...
10286 * alphanbsd-tdep.c: ...here.
10287 (_initialize_alphanbsd_tdep): Register core functions.
10288 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10289
10290 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10291
10292 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10293 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10294 (alphanbsd-nat.o): Likewise.
10295 (alphabsd-tdep.o): New dependency list.
10296 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10297 (fill_gregset): Use alphabsd_fill_reg.
10298 (supply_fpregset): Use alphabsd_supply_fpreg.
10299 (fill_fpregset): Use alphabsd_fill_fpreg.
10300 (fetch_inferior_registers): Use struct reg and struct fpreg
10301 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10302 and alphabsd_supply_fpreg.
10303 (store_inferior_registers): Use struct reg and struct fpreg
10304 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10305 and alphabsd_fill_fpreg.
10306 * alphabsd-tdep.c: New file.
10307 * alphabsd-tdep.h: New file.
10308 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10309 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10310 alphabsd_supply_fpreg.
10311 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10312 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10313
10314 2002-05-11 Eric Christopher <echristo@redhat.com>
10315
10316 * mips-tdep.c (mips_double_register_type): Fix thinko.
10317 (mips_single_register_type): Ditto.
10318 * MAINTAINERS: Add self.
10319
10320 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10321
10322 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10323 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10324 right thing on architectures with different endianness and/or
10325 integer sizes.
10326
10327 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10328
10329 From Christian Limpach <chris@Pin.LU>
10330 * configure.in: Change sed expression which comments out
10331 NATDEPFILES to also comment out continuation lines.
10332 * configure: Regenerate.
10333
10334 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10335
10336 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10337 big patch.
10338
10339 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10340
10341 * sh-tdep.c: Include correct file.
10342
10343 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10344
10345 New support for sh64-elf (sh5) target.
10346
10347 * configure.tgt: For sh64-elf target, default to sh-elf.
10348
10349 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10350 (struct gdbarch_tdep): Add new fields for new registers and ABI
10351 info.
10352
10353 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10354 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10355 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10356 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10357 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10358 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10359 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10360 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10361 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10362 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10363 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10364 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10365 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10366 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10367 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10368 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10369 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10370 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10371 sign_extend, sh64_nofp_frame_init_saved_regs,
10372 sh64_init_extra_frame_info, sh64_get_saved_register,
10373 sh64_extract_struct_value_address, sh64_pop_frame,
10374 sh64_push_arguments, sh64_extract_return_value,
10375 sh64_store_return_value, sh64_show_media_regs,
10376 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10377 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10378 sh_sh64_register_virtual_type,
10379 sh_sh64_register_convert_to_virtual,
10380 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10381 sh64_register_read, sh64_pseudo_register_write,
10382 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10383 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10384 sh64_do_pseudo_register, sh_compact_do_registers_info,
10385 sh64_do_registers_info, sh_gdbarch_init): New functions.
10386
10387 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10388
10389 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10390
10391 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10392
10393 * linespec.c (decode_line_1): Check for a double quote after
10394 a filename correctly.
10395
10396 2002-05-10 Jim Blandy <jimb@redhat.com>
10397
10398 Properly track the size of the current objfile's .debug_line section.
10399 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10400 (DWARF_LINE_SIZE): New macro.
10401 (dwarf2_build_psymtabs_hard): Record the line section's size in
10402 the partial symbol table.
10403 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10404 symbol table.
10405
10406 2002-05-10 Petr Sorfa <petrs@caldera.com>
10407
10408 * ia64-tdep.c: Handle breakpoints on L instruction type
10409 in MLX instruction bundle by moving the breakpoint to
10410 the third slot (X instruction type) as L holds only data.
10411
10412 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10413
10414 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10415 (process_one_symbol): Complain about discarding local symbols
10416 due to a misplaced N_LBRAC entry.
10417
10418 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10419
10420 From Daniel Berlin <dan@cgsoftware.com>
10421 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10422 decrease the depth we are at, in the case of templates.
10423
10424 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10425
10426 * mips-tdep.c (mips_float_register_type): New function.
10427 (mips_double_register_type): New function.
10428 (mips_print_register): Use them.
10429 (do_fp_register_row): Likewise.
10430
10431 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * signals/signals.c (signals): Remove conditional compilation around
10434 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10435 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10436
10437 2002-05-09 Michael Snyder <msnyder@redhat.com>
10438
10439 * remote-rdp.c (remote_rdp_can_run): Remove.
10440
10441 2002-05-09 Tom Tromey <tromey@redhat.com>
10442
10443 * jv-valprint.c (java_val_print): Handle `char' as a special case
10444 of TYPE_CODE_INT.
10445
10446 2002-05-09 Michael Snyder <msnyder@redhat.com>
10447
10448 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10449 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10450 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10451 str r(0123),[sp,#nn].
10452 (arm_skip_prologue): Ditto. Also make disassembly
10453 order-independent by placing it in a loop.
10454
10455 2002-05-06 Michael Snyder <msnyder@redhat.com>
10456
10457 * stabsread.c (read_type): Add recognition for new attribute:
10458 "@V;" means that an array type is actually a vector.
10459 This is analogous to the vector flag that's been added to dwarf2.
10460
10461 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10462
10463 * i386-tdep.h (i386_abi): New enum.
10464 (struct gdbarch_tdep): Replace os_ident member with abi.
10465 (i386_gdbarch_register_os_abi): New prototype.
10466 * i386-tdep.c (i386_abi_names): New array.
10467 (process_note_abi_tag_sections): Removed.
10468 (process_note_sections): New function.
10469 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10470 (struct i386_abi_handler): New struct.
10471 (i386_abi_handler_list): New variable.
10472 (i386_gdbarch_register_os_abi): New function.
10473 (i386_gdbarch_init): Adapt for the changes given above.
10474
10475 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10476
10477 * gregset.h: Say "GNU/Linux".
10478
10479 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10480
10481 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10482 (build_gdbtypes): Build builtin_type_v2_float.
10483 (_initialize_gdbtypes): Register new builtin type.
10484
10485 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10486
10487 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10488 (clear_gdbarch_swap): New function.
10489 (initialize_non_multiarch): Call.
10490 (gdbarch_update_p): Before calling init(), swap out and clear the
10491 existing architecture.
10492 * gdbarch.c: Regenerate.
10493
10494 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10495
10496 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10497 alphanbsd-tdep.c.
10498
10499 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10500
10501 * sh-nbsd-nat.c: Rename to...
10502 * shnbsd-nat.c: ...this.
10503 * sh-nbsd-tdep.c: Rename to...
10504 * shnbsd-tdep.c: ...this.
10505 * sh-nbsd-tdep.h: Rename to...
10506 * shnbsd-tdep.h: ...this.
10507 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10508 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10509
10510 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10511
10512 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10513 concatenation for command help messages.
10514
10515 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10516
10517 * NEWS: Note new sh*-*-netbsdelf* configuration.
10518 * configure.host: Set gdb_host_cpu to sh for all sh*.
10519 (sh*-*-netbsdelf*): New host.
10520 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10521 (sh*-*-netbsdelf*): New target.
10522 * sh-nbsd-nat.c: New file.
10523 * sh-nbsd-tdep.c: New file.
10524 * sh-nbsd-tdep.h: New file.
10525 * config/sh/nbsd.mh: New file.
10526 * config/sh/nbsd.mt: New file.
10527 * config/sh/nm-nbsd.h: New file.
10528 * config/sh/tm-nbsd.h: New file.
10529
10530 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10531
10532 * sh-tdep.c (sh_osabi_names): Declare.
10533 (process_note_abi_tag_sections): New function.
10534 (get_elfosabi): Ditto.
10535 (sh_gdbarch_register_os_abi): Ditto.
10536 (sh_dump_tdep): Ditto.
10537 _initialize_sh_tdep): Use gdbarch_register to register
10538 sh_gdbarch_init and sh_dump_tdep.
10539 * config/sh/tm-sh.h (sh_osabi): Declare.
10540 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10541
10542 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10543
10544 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10545 (thumb_scan_prologue): Ditto.
10546 (arm_find_callers_reg): Ditto.
10547 (arm_frame_chain): Ditto.
10548 (arm_init_extra_frame_info): Ditto.
10549 (arm_frame_saved_pc): Ditto.
10550 (arm_pop_frame): Ditto.
10551 (arm_push_return_address): New function.
10552 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10553 call_dummy_location, call_dummy_breakpoint_offset_p,
10554 call_dummy_breakpoint_offset, call_dummy_p,
10555 call_dummy_stack_adjust_p, call_dummy_words,
10556 sizeof_call_dummy_words, call_dummy_start_offset,
10557 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10558 call_dummy_address, push_return_address and push_dummy_frame for
10559 generic dummy frames.
10560
10561 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10562
10563 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10564 size computation for alloca.
10565 (sh_fp_frame_init_saved_regs): Likewise.
10566
10567 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10568
10569 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10570 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10571 * arm-tdep.c (arm_store_return_value): Use them.
10572 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10573 * remote-rdp.c (remote_rdp_fetch_register): Use
10574 ARM_MAX_REGISTER_RAW_SIZE.
10575 (remote_rdp_store_register): Likewise.
10576
10577 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10578
10579 * dwarf2cfi.c: Code cleanup, removed unused variables,
10580 added default labels to switch {} statements.
10581 * x86-64-tdep.c: Ditto.
10582 * x86-64-linux-nat.c: Ditto.
10583
10584 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10585
10586 * solib.h: Protect against multiple inclusion.
10587
10588 2002-05-06 Jim Blandy <jimb@redhat.com>
10589
10590 Add first preprocessor macro-expansion files.
10591 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10592 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10593 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10594 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10595 (COMMON_OBS): Add macrotab.o, macroexp.o.
10596 (macroexp.o, macrotab.o): New rules.
10597
10598 Separate the job of reading the line number info statement program
10599 header (...expialidocious) out into its own function.
10600 * dwarf2read.c (struct line_head, struct filenames, struct
10601 directories): Replace with...
10602 (struct line_header): New structure, containing the full
10603 contents of the statement program header, including the
10604 include directory and file name tables.
10605 (read_file_scope): If we have line number info, instead of just
10606 calling dwarf_decode_lines to do all the work, call
10607 dwarf_decode_line_header first to get a `struct line_header'
10608 containing the data in the statement program header, and then
10609 pass that to dwarf_decode_lines, which will pick up where that
10610 left off. Be sure to clean up the `struct line_header' object.
10611 (dwarf_decode_line_header, free_line_header, add_include_dir,
10612 add_file_name): New functions.
10613 (dwarf_decode_lines): Move all the code to read the statement
10614 program header into dwarf_decode_line_header. Take the line
10615 header it built as the first argument, instead of the offset to
10616 the compilation unit's line number info. Use the new `struct
10617 line_header' type instead of the old structures. No need to do
10618 cleanups here now, since we don't allocate anything.
10619 (dwarf2_statement_list_fits_in_line_number_section,
10620 dwarf2_line_header_too_long): New complaints.
10621
10622 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10623
10624 * gdbtypes.c (init_vector_type): New function.
10625 (build_builtin_type_vec128): Simplify the representation of SIMD
10626 registers.
10627 (build_gdbtypes): Initialize new builtin vector types.
10628 (_initialize_gdbtypes): Register new vector types with gdbarch.
10629 (builtin_type_v4_float, builtin_type_v4_int32,
10630 builtin_type_v8_int16, builtin_type_v16_int8,
10631 builtin_type_v2_int32, builtin_type_v4_int16,
10632 builtin_type_v8_int8): New (renamed) SIMD types.
10633
10634 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10635
10636 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10637 (i387_fill_fxsave): Likewise.
10638
10639 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10640
10641 * alpha-tdep.c (alpha_extract_return_value): Don't use
10642 non-constant array size in prototype.
10643
10644 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10645
10646 From Brian Taylor <briant at model dot com>:
10647 * ui-out.c (ui_out_field_core_addr): Use the function
10648 longest_local_hex_string_custom'to format addresses > 32 bits
10649 wide.
10650
10651 * ui-out.c (ui_out_field_core_addr): Update comment.
10652
10653 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10654
10655 * stack.c (select_and_print_frame): Make static. Delete the
10656 parameter `level'.
10657 (func_command): Update call.
10658 (select_frame_command): Delete code computing the frame level.
10659 * frame.h (select_and_print_frame): Delete declaration.
10660
10661 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10662
10663 * sparc-tdep.c (sparc_get_saved_register): Comment why
10664 get_prev_frame call is safe.
10665
10666 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10667
10668 * frame.h (select_frame): Delete level parameter.
10669 * stack.c (select_frame): Update. Use frame_relative_level to
10670 obtain the frame's level.
10671 (select_and_print_frame): Update call.
10672 (select_frame_command): Ditto.
10673 (up_silently_base): Ditto.
10674 (down_silently_base): Ditto.
10675 * ocd.c (ocd_start_remote): Ditto.
10676 * remote-rdp.c (remote_rdp_open): Ditto.
10677 * remote-mips.c (mips_initialize): Ditto.
10678 (common_open): Ditto.
10679 * remote-e7000.c (e7000_start_remote): Ditto.
10680 * m3-nat.c (select_thread): Ditto.
10681 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10682 (child_get_current_exception_event): Ditto.
10683 * varobj.c (varobj_create): Ditto.
10684 (varobj_update): Ditto.
10685 (c_value_of_root): Ditto.
10686 * tracepoint.c (finish_tfind_command): Ditto.
10687 * corelow.c (core_open): Ditto.
10688 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10689 * thread.c (info_threads_command): Ditto.
10690 (switch_to_thread): Ditto.
10691 * infrun.c (normal_stop): Ditto.
10692 (restore_selected_frame): Ditto.
10693 (restore_inferior_status): Ditto.
10694 * breakpoint.c (insert_breakpoints): Ditto.
10695 (watchpoint_check): Ditto.
10696 (bpstat_stop_status): Ditto.
10697 (do_enable_breakpoint): Ditto.
10698 * blockframe.c (flush_cached_frames): Ditto.
10699 (reinit_frame_cache): Ditto.
10700
10701 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10702
10703 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10704 maintainer.
10705
10706 2002-05-04 Jim Blandy <jimb@redhat.com>
10707
10708 * gdbtypes.c (replace_type): Doc fix.
10709
10710 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10711
10712 * valprint.c (strcat_longest): Delete commented out function.
10713 Update copyright.
10714
10715 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10716
10717 * MAINTAINERS: Mark a29k as deleted.
10718 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10719 Move new configurations to the top.
10720 * configure.tgt: Remove a29k.
10721 * config/a29k/tm-vx29k.h: Delete.
10722 * config/a29k/vx29k.mt: Delete.
10723 * config/a29k/tm-a29k.h: Delete.
10724 * config/a29k/a29k-udi.mt: Delete.
10725 * config/a29k/a29k.mt: Delete.
10726 * a29k-tdep.c: Delete.
10727 * remote-udi.c: Delete.
10728 * remote-mm.c: Delete.
10729 * remote-eb.c: Delete.
10730 * remote-adapt.c: Delete.
10731 * Makefile.in: Remove obsolete code.
10732 * config/s390/s390x.mt: Ditto.
10733 * config/s390/s390.mt: Ditto.
10734 * config/sparc/sparclynx.mh: Ditto.
10735 * config/sparc/linux.mh: Ditto.
10736 * config/pa/hppaosf.mh: Ditto.
10737 * config/pa/hppabsd.mh: Ditto.
10738 * config/ns32k/nbsd.mt: Ditto.
10739 * config/mips/vr5000.mt: Ditto.
10740 * config/m68k/sun3os4.mh: Ditto.
10741 * config/m68k/nbsd.mt: Ditto.
10742 * config/m68k/m68klynx.mh: Ditto.
10743 * config/m32r/m32r.mt: Ditto.
10744 * config/i386/x86-64linux.mt: Ditto.
10745 * config/i386/nbsdelf.mt: Ditto.
10746 * config/i386/nbsd.mt: Ditto.
10747 * config/i386/i386lynx.mh: Ditto.
10748
10749 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10750
10751 * target.c (debug_print_register): New function. Handle oversize
10752 registers.
10753 (debug_to_fetch_registers): Call.
10754 (debug_to_store_registers): Call.
10755
10756 2002-05-03 Jim Blandy <jimb@redhat.com>
10757
10758 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10759 (read_type): Doc fix.
10760 * gdbtypes.c (replace_type): Doc fix.
10761
10762 * stabsread.c (multiply_defined_struct): New complaint.
10763 (read_struct_type): If the type we were passed isn't empty, or
10764 incomplete, don't read the new struct type into it; complain,
10765 and return the original type unchanged. Take a new `type_code'
10766 argument, which is the type code for the new type.
10767 (read_type): Rather than storing the type's type code here, pass
10768 it as an argument to read_struct_type, and let that take care of
10769 storing it. That way, we don't overwrite the original type code,
10770 so read_struct_type can use it to decide whether we're overwriting
10771 something we shouldn't.
10772 (complain_about_struct_wipeout): New function.
10773
10774 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10775
10776 * gdbarch.sh: Assert that gdbarch is non-NULL.
10777 * gdbarch.c: Regenerate.
10778
10779 2002-05-03 Jason Merrill <jason@redhat.com>
10780
10781 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10782 and return NULL.
10783
10784 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10785
10786 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10787 (x86_64_dwarf2gdb_regno_map_length),
10788 (x86_64_dwarf2_reg_to_regnum): Added.
10789 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10790 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10791 (_initialize_x86_64_tdep): Synced with the change above.
10792 (x86_64_skip_prologue): Reformulated message.
10793
10794 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10795
10796 * f-exp.y: Also use new prev_lexptr variable
10797 to improve error reporting. Based on Michael Snyder
10798 2002-04-24 dated patch to c-exp.y.
10799 * jv-exp.y: Likewise.
10800 * m2-exp.y: Likewise.
10801
10802 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10803
10804 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10805 we are dealing with vectors.
10806
10807 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10808
10809 * config/m68k/tm-nbsd.h: Obvious fix,
10810 correct machine name.
10811
10812 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10813
10814 * p-typeprint.c (pascal_type_print_base): Add support
10815 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10816
10817 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10818
10819 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10820 for fondamental pascal 'char' type.
10821
10822 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10823
10824 * p-lang.h (is_pascal_string_type): Declaration changed,
10825 new sixth argument of type char ** added.
10826 * p-lang.c (is_pascal_string_type): Implementation
10827 changed. Args length_pos, length_size, string_pos, char_size
10828 can now be NULL. New argument arrayname set to the field
10829 name of the char array. Return value set to char array
10830 field index plus one.
10831 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10832 is_pascal_string_type function.
10833
10834 2002-05-02 Andrew Cagney <cagney@redhat.com>
10835
10836 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10837 <cagney@redhat.com> change.
10838 * gdbarch.c: Regenerate.
10839
10840 2002-05-02 Andrew Cagney <cagney@redhat.com>
10841
10842 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10843 before probing for a new one. Detect errorenous gdbarch_init
10844 functions.
10845 * gdbarch.c: Regenerate.
10846
10847 2002-05-01 Andrew Cagney <cagney@redhat.com>
10848
10849 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10850 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10851 * config/v850/tm-v850.h: Ditto. Update copyright.
10852
10853 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10854
10855 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10856 current_gdbarch.
10857
10858 2002-04-30 Michael Snyder <msnyder@redhat.com>
10859
10860 * arm-tdep.c: Whitespace clean-ups.
10861 (arm_skip_prologue): Fix thinko; two lines
10862 should have been removed as part of 4/24 change.
10863
10864 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10865
10866 * rs6000-tdep.c: Added comment describing how fpscr register
10867 numbers were chosen.
10868
10869 2002-04-30 Michael Snyder <msnyder@redhat.com>
10870
10871 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10872
10873 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10874
10875 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10876 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10877 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10878
10879 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10880
10881 From Louis Hamilton <hamilton@redhat.com>:
10882 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10883 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10884 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10885 not bfd-private xcoff data, to determine wordsize.
10886 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10887
10888 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10889
10890 GDB 5.2 released from 5.2 branch.
10891
10892 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10893
10894 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10895 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10896 (x86_64_register_info_table): Added comments with register numbers.
10897
10898 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10899
10900 * rs6000-tdep.c (rs6000_extract_return_value,
10901 rs6000_store_return_value): Handle returning vectors.
10902 (rs6000_gdbarch_init): Use
10903 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10904 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10905 New function.
10906 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10907 vectors.
10908 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10909 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10910
10911 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10912
10913 * hpread.c (hpread_psymtab_to_symtab_1,
10914 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10915 with fprintf_unfiltered (gdb_stderr,...).
10916
10917 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10918
10919 * remote-array.c (printf_monitor, write_monitor,
10920 array_insert_breakpoint, array_remove_breakpoint ):
10921 Replace fprintf (stderr,...
10922 with fprintf_unfiltered (gdb_stderr,....
10923 * remote-es.c: Likewise.
10924 * remote-os9k.c: Likewise.
10925 * remote-st.c: Likewise.
10926
10927 2002-04-28 Andreas Schwab <schwab@suse.de>
10928
10929 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10930 linux-proc.o and gcore.o.
10931
10932 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10933
10934 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10935 code without frame pointers.
10936
10937 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10938
10939 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10940 ON_STACK is needed.
10941
10942 2002-04-26 Ben Elliston <bje@redhat.com>
10943
10944 * target.c (do_xfer_memory): Correct reference to the new option
10945 "trust-readonly-sections".
10946
10947 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10948
10949 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10950 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10951 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10952 vectors.
10953 (read_array_type): Record the fact that this array type is really a
10954 vector (i.e. are passed in by value).
10955
10956 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10957
10958 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10959 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10960 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10961 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10962 * alpha-linux-tdep.c: Include frame.h.
10963 (alpha_linux_sigcontext_addr): New function.
10964 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10965 alpha_linux_sigcontext_addr.
10966 * alpha-osf1-tdep.c: Include gdbcore.h.
10967 (alpha_osf1_sigcontext_addr): New function.
10968 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10969 alpha_osf1_sigcontext_addr.
10970 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10971 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10972
10973 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10974
10975 * stack.c (selected_frame_level):
10976 (select_frame): Do not set selected_frame_level.
10977 * frame.h (selected_frame_level): Delete declaration.
10978
10979 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10980
10981 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10982 convert_from_func_ptr-addr when AIX / PowerOpen.
10983
10984 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10985
10986 * valops.c (hand_function_call): Call
10987 generic_save_call_dummy_addr.
10988 * frame.h (generic_save_call_dummy_addr): Declare.
10989 * blockframe.c (struct dummy_frame): Add fields call_lo and
10990 call_hi.
10991 (generic_find_dummy_frame): Check for PC in range call_lo to
10992 call_hi instead of entry_point_address.
10993 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10994 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10995 (generic_save_call_dummy_addr): New function.
10996
10997 2002-04-24 David S. Miller <davem@redhat.com>
10998
10999 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11000 sparc_skip_prologue.
11001 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11002 information to find prologue when possible.
11003 (sparc_prologue_frameless_p): Call examine_prologue directly.
11004 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11005 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11006 second argument.
11007 (SKIP_PROLOGUE): Likewise.
11008
11009 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11010
11011 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11012 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11013 indicate that the condition it was testing is always true.
11014 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11015 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11016 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11017
11018 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11019
11020 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11021 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11022 tdep->jb_pc and tdep->jb_elt_size.
11023 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11024 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11025 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11026 * alpha-nat.c (get_longjmp_target): Remove.
11027 (JB_ELEMENT_SIZE): Ditto.
11028 (JB_PC): Ditto.
11029 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11030 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11031 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11032 to alpha_get_longjmp_target.
11033 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11034 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11035 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11036
11037 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11038
11039 * README: Update to GDB 5.2.
11040
11041 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11042
11043 * gdbarch.sh (LC_ALL): Set to `c'.
11044
11045 2002-04-25 Theodore A. Roth <troth@verinet.com>
11046
11047 * avr-tdep.c: Ran through gdb_indent.sh.
11048
11049 2002-04-25 Theodore A. Roth <troth@verinet.com>
11050
11051 * MAINTAINERS: Add myself as AVR maintainer.
11052 * NEWS: Note new target avr.
11053
11054 2002-04-25 Theodore A. Roth <troth@verinet.com>
11055
11056 * Makefile.in: Add support for AVR target.
11057 * configure.tgt: Add support for AVR target.
11058 * avr-tdep.c: New file
11059 * config/avr/avr.mt: New file.
11060
11061 2002-04-25 Theodore A. Roth <troth@verinet.com>
11062
11063 * MAINTAINERS: Add myself to write-after-approval.
11064
11065 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11066
11067 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11068 with fprintf_unfiltered (gdb_stderr,....
11069
11070 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11071
11072 Fix PR gdb/508.
11073 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11074
11075 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11076
11077 * p-exp.y: Also use new prev_lexptr variable
11078 to improve error reporting. Based on Michael Snyder
11079 2002-04-24 dated patch to c-exp.y.
11080
11081 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11082
11083 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11084 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11085 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11086 to 0.
11087 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11088 and struct value.
11089 (FUNCTION_START_OFFSET): Remove.
11090 (BREAKPOINT): Ditto.
11091
11092 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11095 * NEWS: Ditto.
11096
11097 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11098
11099 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11100 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11101 alpha_linux_pc_in_sigtramp.
11102 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11103 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11104 alpha_osf1_pc_in_sigtramp.
11105 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11106 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11107 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11108 alphafbsd_pc_in_sigtramp.
11109 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11110 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11111 alphanbsd_pc_in_sigtramp.
11112 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11113 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11114
11115 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11116
11117 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11118
11119 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11120
11121 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11122 alphanbsd-tdep.c.
11123 (alphanbsd-nat.o): New dependency list.
11124 (alphanbsd-tdep.o): Ditto.
11125 * NEWS: Note new native NetBSD/alpha configuration.
11126 * alphanbsd-nat.c: New file.
11127 * alphanbsd-tdep.c: Ditto.
11128 * configure.host (alpha*-*-netbsd*): New host.
11129 * configure.tgt (alpha*-*-netbsd*): New target.
11130 * config/alpha/nbsd.mh: New file.
11131 * config/alpha/nbsd.mt: Ditto.
11132 * config/alpha/nm-nbsd.h: Ditto.
11133 * config/alpha/tm-nbsd.h: Ditto.
11134
11135 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11136
11137 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11138 (alpha-osf1-tdep.o): New dependency list.
11139 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11140 and skip_sigtramp_frame members.
11141 * alpha-linux-tdep.c: Include gdbcore.h.
11142 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11143 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11144 * alpha-osf1-tdep.c: New file.
11145 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11146 alpha-osf1-dep.c.
11147 (alpha_frame_past_sigtramp_frame): New function.
11148 (alpha_dynamic_sigtramp_offset): Ditto.
11149 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11150 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11151 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11152 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11153 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11154 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11155 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11156 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11157 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11158 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11159 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11160 to find_solib_trampoline_target.
11161 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11162 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11163 (SKIP_TRAMPOLINE_CODE): Remove.
11164 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11165 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11166 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11167 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11168 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11169 (PROC_SIGTRAMP_MAGIC): Ditto.
11170 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11171 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11172 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11173 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11174 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11175
11176 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11177
11178 * NEWS: Note that Alpha targets are now multi-arch.
11179
11180 2002-04-24 Michael Snyder <msnyder@redhat.com>
11181
11182 * parser-defs.h (prev_lexptr): New external variable.
11183 * parse.c (parse_exp_1): Set prev_lexptr to null before
11184 calling the language-specific parser.
11185 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11186 (yyerror): Use prev_lexptr in error reporting.
11187
11188 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11189
11190 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11191 * gregset.h: If FILL_FPXREGSET is defined, provide
11192 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11193 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11194 is defined, call fill_fpxregset.
11195
11196 2002-04-24 Roland McGrath <roland@frob.com>
11197
11198 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11199 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11200 (supply_gregset, supply_fpregset): New functions.
11201
11202 * gnu-nat.c (gnu_find_memory_regions): New function.
11203 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11204 (gnu_xfer_memory): Add a cast.
11205
11206 2002-04-24 Michael Snyder <msnyder@redhat.com>
11207
11208 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11209 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11210 of argument regs ("str r(0123), [r11, #-nn"]).
11211 (arm_skip_prologue): Better handling for frameless functions.
11212 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11213 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11214
11215 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11216
11217 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11218 NUM_PSEUDO_REGS can be used.
11219
11220 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11221
11222 * arch-utils.h: Update copyright.
11223
11224 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11225 * gdbarch.h, gdbarch.c: Re-generate.
11226
11227 * inferior.h (IN_SIGTRAMP): Delete definition.
11228 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11229 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11230
11231 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11232 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11233 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11234 (find_proc_framesize): Ditto.
11235 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11236 (alpha_init_extra_frame_info): Ditto.
11237 * infrun.c (handle_inferior_event): Ditto.
11238 (handle_inferior_event): Ditto.
11239 (check_sigtramp2): Ditto.
11240 * blockframe.c (create_new_frame): Ditto.
11241 (get_prev_frame): Ditto.
11242 * ppc-linux-tdep.c: Update comments.
11243 * i386-linux-tdep.c: Update comments.
11244 * breakpoint.c (bpstat_what): Update comment.
11245
11246 2002-04-24 David S. Miller <davem@redhat.com>
11247
11248 * i960-tdep.c (register_in_window_p): New function.
11249 (i960_find_saved_register): Use it instead of
11250 REGISTER_IN_WINDOW_P.
11251 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11252
11253 * symtab.h (find_stab_function_addr): Kill extern.
11254 * minsyms.c (find_stab_function_addr): Remove from here...
11255 * dbxread.c: ... to here, and mark it static.
11256
11257 2002-04-20 David S. Miller <davem@redhat.com>
11258
11259 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11260 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11261
11262 2002-04-21 David S. Miller <davem@redhat.com>
11263
11264 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11265 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11266 (vx_write_register): Likewise.
11267
11268 2002-04-23 J. Brobecker <brobecker@gnat.com>
11269
11270 * source.c (is_regular_file): New function.
11271 (openp): Check wether file to open is a regular file
11272 to avoid opening directories.
11273
11274 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11275
11276 * findvar.c (extract_signed_integer): Cast printf argument
11277 to suppress format warning.
11278 (extract_unsigned_integer): Likewise.
11279 * infcmd.c (registers_info): Likewise.
11280 * top.c (get_prompt_1): Likewise.
11281 * valops.c (value_assign): Likewise.
11282 * valprint.c (print_decimal): Likewise.
11283
11284 2002-04-22 H.J. Lu (hjl@gnu.org)
11285
11286 * c-exp.y (typebase): Support
11287
11288 [long|long long|short] [signed|unsigned] [int|]
11289
11290 and
11291
11292 signed [long|long long|short] int
11293
11294 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11295
11296 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11297 and vax-tdep.h.
11298 * vax-tdep.h: New file.
11299 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11300 Make several routines static.
11301 (vax_get_saved_register): New function.
11302 (vax_gdbarch_init): New function.
11303 (_initialize_vax_tdep): Register vax_gdbarch_init.
11304 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11305 Remove macros now under the control of gdbarch.
11306
11307 2002-04-22 Michael Snyder <msnyder@redhat.com>
11308
11309 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11310 Some whitespace and coding standards tweaks.
11311
11312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11313
11314 * vax-tdep.c: Include regcache.h.
11315 (vax_call_dummy_words): New.
11316 (sizeof_vax_call_dummy_words): New.
11317 (vax_fix_call_dummy): New function.
11318 (vax_saved_pc_after_call): Ditto.
11319 * config/vax/tm-vax.h: Don't include regcache.h.
11320 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11321 (CALL_DUMMY): Remove.
11322 (CALL_DUMMY_WORDS): Define.
11323 (SIZEOF_CALL_DUMMY_WORDS): Define.
11324 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11325
11326 2002-04-18 Michael Snyder <msnyder@redhat.com>
11327
11328 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11329
11330 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11331
11332 * vax-tdep.c (vax_frame_chain): New function.
11333 (vax_push_dummy_frame): Ditto.
11334 (vax_pop_frame): Ditto.
11335 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11336 (FRAMELESS_FUNCTION_INVOCATION): Use
11337 generic_frameless_function_invocation_not.
11338 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11339 (POP_FRAME): Use vax_pop_frame.
11340
11341 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11342
11343 * vax-tdep.c (vax_store_struct_return): New function.
11344 (vax_extract_return_value): Ditto.
11345 (vax_store_return_value): Ditto.
11346 (vax_extract_struct_value_address): Ditto.
11347 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11348 vax_store_struct_return.
11349 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11350 (STORE_RETURN_VALUE): Use vax_store_return_value.
11351 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11352
11353 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11354
11355 * vax-tdep.c (vax_frame_saved_pc): New function.
11356 (vax_frame_args_address_correct): Ditto.
11357 (vax_frame_args_address): Ditto.
11358 (vax_frame_locals_address): Ditto.
11359 (vax_frame_num_args): Move code to be in proximity to
11360 other frame-related functions.
11361 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11362 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11363 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11364 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11365 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11366
11367 2002-04-22 H.J. Lu (hjl@gnu.org)
11368
11369 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11370 includedir.
11371
11372 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11373
11374 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11375 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11376 (FRAME_INIT_SAVED_REGS): New macro.
11377
11378 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11379
11380 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11381
11382 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11383
11384 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11385 where needed.
11386 (fetch_osf_core_registers): Likewise.
11387 (supply_gregset): Likewise.
11388
11389 2002-04-22 J. Brobecker <brobecker@gnat.com>
11390
11391 * symfile.h (get_section_index): Define.
11392 * symfile.c (get_section_index): New function.
11393 * mdebugread.c (SC_IS_SBSS): New macro.
11394 (SC_IS_BSS): Return true for the scBss storage class only, as
11395 the scSBss storage class refers to the .sbss section.
11396 (parse_partial_symbols): Discard the symbols which associated
11397 section does not exist.
11398 Make sure to use the .sbss section index for symbols which
11399 storage class is scBss, rather than using the .bss section index.
11400
11401 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11402
11403 * vax-tdep.c: Update copyright years.
11404 (vax_register_name): New function.
11405 (vax_register_byte): Ditto.
11406 (vax_register_raw_size): Ditto.
11407 (vax_register_virtual_size): Ditto.
11408 (vax_register_virtual_type): Ditto.
11409 * config/vax/tm-vax.h: Update copyright years.
11410 (REGISTER_NAMES): Remove.
11411 (REGISTER_NAME): Define.
11412 (REGISTER_BYTE): Use vax_register_byte.
11413 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11414 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11415 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11416
11417 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11418
11419 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11420 declaration
11421 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11422
11423 2002-04-21 David S. Miller <davem@redhat.com>
11424
11425 * arch-utils.c (generic_prologue_frameless_p): Kill
11426 SKIP_PROLOGUE_FRAMELESS_P code.
11427 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11428 references.
11429 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11430 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11431 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11432 references.
11433 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11434 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11435 (sparc_gdbarch_init): Pass it to
11436 set_gdbarch_prologue_frameless_p.
11437
11438 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11439
11440 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11441 (alphabsd-nat.o): New dependency list.
11442
11443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11444
11445 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11446 alphafbsd-tdep.c.
11447 (alpha-linux-tdep.o): New dependency list.
11448 (alphafbsd-tdep.o): Likewise.
11449
11450 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11451
11452 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11453 to here...
11454 * alpha-tdep.c: ...from here.
11455 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11456
11457 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11458
11459 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11460 prototype from here...
11461 * alpha-tdep.h: ...to here.
11462
11463 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11464
11465 * frame.h (selected_frame_level): Document as deprecated.
11466 (frame_relative_level): Declare.
11467 * stack.c (frame_relative_level): New function.
11468 (selected_frame_level): Document as deprecated.
11469 (select_frame): Do not set the selected_frame_level.
11470
11471 * stack.c (frame_info, record_selected_frame): Update.
11472 (frame_command, current_frame_command): Update.
11473 (up_silently_base, up_command, down_silently_base): Update.
11474 (down_command): Update.
11475 * inflow.c (kill_command): Update.
11476 * tracepoint.c (finish_tfind_command): Update.
11477 * corelow.c (core_open): Update.
11478 * thread.c (info_threads_command): Update.
11479 (do_captured_thread_select): Update.
11480 * infcmd.c (finish_command): Update.
11481 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11482
11483 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11484
11485 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11486
11487 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11488
11489 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11490 type const.
11491
11492 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11493
11494 * alphafbsd-tdep.c: Update copyright years. Include
11495 alpha-tdep.h.
11496 (alphafbsd_use_struct_convention): Make static.
11497 (alphafbsd_init_abi): New function.
11498 (_initialize_alphafbsd_tdep): New function.
11499 * config/alpha/tm-fbsd.h: Update copyright years.
11500 (USE_STRUCT_CONVENTION): Remove.
11501
11502 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11503
11504 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11505 an Alpha ABI variant.
11506 (alpha_abi_handler_list): Declare.
11507 (alpha_gdbarch_register_os_abi): New function.
11508 (alpha_gdbarch_init): Give registered ABI variant handlers a
11509 chance to tweak the gdbarch once we have set up defaults.
11510 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11511
11512 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11513
11514 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11515 to standard_coerce_float_to_double.
11516 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11517
11518 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11519
11520 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11521 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11522 from gdbarch_tdep rather than a constant.
11523 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11524 the default text address for all Alpha Unix ABIs.
11525 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11526 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11527
11528 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11529
11530 * alpha-tdep.h: New file. Includes several Alpha target constants
11531 taken from...
11532 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11533 let gdbarch deal with.
11534 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11535 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11536 to dependency list.
11537 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11538 Alpha target register names.
11539 * alphabsd-nat.c: Likewise.
11540 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11541 Alpha target register names. Make serveral routines static.
11542 (alpha_get_saved_register): New function.
11543 (alpha_abi_names): New.
11544 (process_note_abi_tag_sections): New function.
11545 (get_elfosabi): New function.
11546 (alpha_gdbarch_init): New function.
11547 (alpha_dump_tdep): New function.
11548 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11549
11550 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11551
11552 * frame.c (find_saved_register): Delete #ifdef
11553 HAVE_REGISTER_WINDOWS code.
11554 * config/sparc/tm-sparc.h: Update comments.
11555 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11556
11557 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11558
11559 * i960-tdep.c (i960_find_saved_register): New function.
11560 (i960_get_saved_register): New function.
11561 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11562 (i960_get_saved_register): Declare.
11563 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11564
11565 2002-04-20 David S. Miller <davem@redhat.com>
11566
11567 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11568
11569 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11570
11571 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11572 instead of NUM_PSEUDO_REGS.
11573
11574 2002-04-20 David S. Miller <davem@redhat.com>
11575
11576 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11577 GDB_MULTI_ARCH_PARTIAL
11578 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11579 define, let tm-sp64.h do it.
11580
11581 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11582
11583 * frame.c (find_saved_register): Avoid a NULL pointer
11584 dereference and actually walk the frame list.
11585
11586 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11587
11588 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11589 sorted in most most-recent-used order. Document.
11590 * gdbarch.h, gdbarch.c: Regenerate.
11591
11592 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11593
11594 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11595 instead of ->prev.
11596 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11597 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11598 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11599 instead of ->prev.
11600
11601 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11602
11603 Fix PR gdb/471.
11604 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11605 (build_builtin_type_vec128): Ditto.
11606 (append_composite_type_field): Fix calculation of type length in
11607 union case.
11608
11609 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11610
11611 * config/djgpp/README: Update.
11612
11613 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11614 compiler warnings.
11615
11616 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11617
11618 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11619 (alpha_setup_arbitrary_frame): ...to this.
11620 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11621 for alpha_setup_arbitrary_frame.
11622
11623 2002-04-18 Andrew Cagney <cagney@redhat.com>
11624
11625 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11626 * gdbarch.h, gdbarch.c: Regenerate.
11627
11628 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11629 * target.h (memory_breakpoint_from_pc): Update declaration.
11630 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11631
11632 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11633 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11634 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11635 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11636 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11637 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11638 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11639 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11640 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11641 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11642 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11643 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11644
11645 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11646 const pointer.
11647 * monitor.c (monitor_insert_breakpoint): Ditto.
11648 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11649
11650 * config/mcore/tm-mcore.h: Update copyright.
11651 * mem-break.c: Ditto.
11652 * xstormy16-tdep.c: Ditto.
11653
11654 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11655
11656 * p-exp.y: Add precedence rule for '^' token.
11657 This removes the shift/reduce conflicts.
11658 Remove the comment concerning these shift/reduce conflicts.
11659
11660 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11661
11662 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11663 (registers_powerpc_nofp): New register set for processors
11664 without floating point unit.
11665
11666 2002-04-18 David S. Miller <davem@redhat.com>
11667
11668 * MAINTAINERS: Add myself to write-after-approval.
11669
11670 2002-04-17 Michael Snyder <msnyder@redhat.com>
11671
11672 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11673
11674 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11675
11676 * rs6000-tdep.c (frame_initial_stack_address): Use
11677 frame_register_read to read the alloca_reg.
11678
11679 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11680
11681 * frame.c (find_saved_register): Find saved registers in the next
11682 not prev frame.
11683 Fix PR gdb/365.
11684
11685 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11686
11687 * gdbarch.sh (LANG): Set to ``c''.
11688
11689 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11690
11691 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11692
11693 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11694
11695 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11696 Update copyright.
11697
11698 * hpread.c (hpread_get_lntt): Add declaration.
11699 Also fix PR gdb/391.
11700
11701 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11702
11703 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11704 * aclocal.m4, configure: Re-generate.
11705 Fix PR gdb/391.
11706
11707 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11708
11709 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11710 instead of tm_print_insn.
11711
11712 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11713
11714 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11715
11716 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11717
11718 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11719 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11720 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11721
11722 2002-04-12 Don Howard <dhoward@redhat.com>
11723
11724 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11725 max_user_call_depth.
11726 (init_cmd_lists): Initialize the new value;
11727 * cli/cli-script.c (execute_user_command): Limit the call depth of
11728 user defined commands. This avoids a core-dump when user commands
11729 are infinitly recursive.
11730
11731 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11732
11733 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11734 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11735 from tdep struct instead of DEFAULT_LR_SAVE.
11736 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11737 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11738 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11739
11740 2002-04-12 Michael Snyder <msnyder@redhat.com>
11741
11742 * Remote.c: Spelling fix.
11743 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11744 If no symbol found for "sbrk", try "_sbrk".
11745 (make_output_phdrs): Use bfd_section_name.
11746 (gcore_copy_callback): Use bfd_section_name.
11747 * eval.c: Indentation fix-ups.
11748 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11749 in case it gets applied to an address that is already
11750 in the instruction space.
11751 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11752 * symfile.c: Fix indentation, long lines.
11753 * source.c: White space fix-up.
11754
11755 2002-04-12 Andrew Cagney <cagney@redhat.com>
11756
11757 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11758 * frame.c (frame_register_read): New function. Return non-zero on
11759 success.
11760 (read_relative_register_raw_bytes_for_frame): Delete.
11761 (read_relative_register_raw_bytes): Delete.
11762 * frame.h (frame_register_read): Declare.
11763 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11764 * sh-tdep.c: Ditto.
11765 * infcmd.c (do_registers_info): Ditto.
11766 * hppa-tdep.c: Ditto.
11767 * rs6000-tdep.c: Ditto.
11768 * h8500-tdep.c: Ditto.
11769 * mips-tdep.c: Ditto.
11770 * h8300-tdep.c: Ditto.
11771 * z8k-tdep.c: Ditto.
11772
11773 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11774
11775 From Jimi X <jimix@watson.ibm.com>:
11776 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11777 64-bit SysV ABI.
11778
11779 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11780
11781 From Jimi X <jimix@watson.ibm.com>:
11782 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11783 bfd info.
11784
11785 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11786
11787 From Jimi X <jimix@watson.ibm.com>:
11788 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11789 register sets for these processor variants.
11790
11791 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11792
11793 * regformats/reg-ppc.dat: Support FPSCR.
11794
11795 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11796
11797 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11798 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11799 Add fpscr as an invalid/unfetchable register.
11800 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11801 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11802 (fill_fpregset): Add support for register fpscr.
11803 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11804 (fill_gregset): Account for the fact that register ``mq'' might
11805 not exist.
11806 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11807 (registers_power): Add fpscr to register set at slot 71.
11808 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11809 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11810
11811 2002-04-11 Michael Snyder <msnyder@redhat.com>
11812
11813 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11814 * configure: Regenerate.
11815 * config.in: Regenerate.
11816 * acconfig.h: Add define for _SYSCALL32.
11817 * core-sol2.c: Remove #define _SYSCALL32.
11818 * solib-legacy.c: Remove #define _SYSCALL32.
11819
11820 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11821
11822 * stack.c (select_frame): Cleanup internal error message, do not
11823 use %p.
11824
11825 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11826
11827 * stack.c (select_frame): Check that selected_frame and the
11828 specified level are as expected.
11829 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11830 Update copyright.
11831 * frame.h (struct frame_info): Add field `level'. Update
11832 copyright.
11833 Work-in-progress PR gdb/464.
11834
11835 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11836
11837 * maint.c (maint_print_section_info): Rename print_section_info.
11838 (print_bfd_section_info, print_objfile_section_info): Update.
11839 * inferior.h (struct gdbarch): Add opaque declaration.
11840 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11841 * gdbarch.h: Regenerate.
11842
11843 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11844
11845 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11846 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11847 (kernel_u_size): Added.
11848 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11849 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11850
11851 2002-04-04 Jim Ingham <jingham@apple.com>
11852
11853 * valarith.c (find_size_for_pointer_math): New function, either returns
11854 the size for a pointer's target, returns 1 for void *, or errors for
11855 incomplete types.
11856 (value_add, value_sub): use find_size_for_pointer_math.
11857
11858 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11859
11860 * linux-low.c (linux_look_up_symbols): New hook.
11861 (linux_target_ops): Add linux_look_up_symbols.
11862 * remote-utils.c (decode_address): New function.
11863 (look_up_one_symbol): New function.
11864 * server.c (handle_query): Call target look_up_symbols hook.
11865 * server.h (look_up_one_symbol): Add prototype.
11866 * target.h (struct target_ops): Add look_up_symbols hook.
11867
11868 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11869
11870 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11871 override FP_REGNUM with frame->fp. Update copyright.
11872 * parse.c (num_std_regs, std_regs): Delete.
11873 (target_map_name_to_register): Do not search std_regs. Update
11874 function description.
11875 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11876 declarations. Update copyright.
11877 Fix PR gdb/251.
11878
11879 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11880
11881 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11882 after the last symbol in a block.
11883
11884 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11885
11886 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11887 is non zero as a found symbol.
11888
11889 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11890
11891 * findvar.c: Include "builtin-regs.h".
11892 (value_of_register): Call value_of_builtin_reg when applicable.
11893 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11894 (target_map_name_to_register): Call
11895 builtin_reg_map_name_to_regnum.
11896 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11897 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11898 (builtin_regs_h): Define.
11899 (builtin-regs.o): New target.
11900 (findvar.o): Add $(builtin_regs_h).
11901 * builtin-regs.c, builtin-regs.h: New files.
11902 * std-regs.c: New file.
11903 Partial fix for PR gdb/251.
11904
11905 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11906
11907 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11908 it's no longer required.
11909
11910 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11911
11912 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11913
11914 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11915
11916 From Jimi X <jimix@watson.ibm.com>:
11917 * rs6000-tdep.c (rs6000_software_single_step): Use
11918 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11919 and size. Use target_insert_breakpoint() and
11920 target_remove_breakpoint() to insert and remove breakpoints
11921 instead of explicit memory reads and writes.
11922
11923 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11924
11925 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11926 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11927 ELF_OBJECT_FORMAT ifdef.
11928
11929 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11930
11931 From Jimi X <jimix@watson.ibm.com>:
11932 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11933
11934 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11935
11936 From Jimi X <jimix@watson.ibm.com>:
11937 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11938 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11939
11940 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11941
11942 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11943 s/asprintf/xasprintf/.
11944 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11945
11946 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11947
11948 I believe Jeff Law denies responsability for this one:
11949 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11950 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11951 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11952 Work-around for PR gdb/366.
11953
11954 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11955
11956 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11957 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11958 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11959
11960 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11961
11962 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11963 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11964 information.
11965
11966 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11967
11968 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11969 maintainer.
11970
11971 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11972
11973 * README (Reporting Bugs in GDB): Document the bug web page as the
11974 prefered way of submitting bugs.
11975 Fix PR gdb/402.
11976
11977 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11978
11979 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11980 -1. Update comment.
11981 * gdbarch.h, gdbarch.c: Re-generate.
11982
11983 2002-04-07 Andreas Schwab <schwab@suse.de>
11984
11985 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11986 buffer to regcache_collect.
11987
11988 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11989
11990 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11991 * gdbarch.c, gdbarch.h: Re-generate.
11992
11993 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11994
11995 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11996 declaration. Fix -Werror.
11997
11998 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11999
12000 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12001 * gdbarch.c: Regenerate.
12002
12003 2002-04-05 Michael Snyder <msnyder@redhat.com>
12004
12005 * breakpoint.c (clear_command): Rewrite middle section to
12006 combine two loops with identical control conditions.
12007 Add a cleanup to eliminate a memory leak.
12008 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12009
12010 2002-04-05 H.J. Lu (hjl@gnu.org)
12011
12012 * solib-svr4.c (bkpt_names): Add "__start".
12013
12014 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12015
12016 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12017 as test for 64 bit target.
12018
12019 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12020
12021 * h8500-tdep.c (h8500_write_fp): Delete function.
12022 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12023 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12024 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12025 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12026 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12027 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12028 (s390_write_fp):
12029 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12030 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12031 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12032 (d10v_write_fp): Delete function.
12033 * inferior.h (write_fp, generic_target_write_fp): Delete
12034 declarations.
12035 * regcache.c (generic_target_write_fp): Delete function.
12036 (write_fp): Delete function.
12037 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12038 * gdbarch.h, gdbarch.c: Regenerate.
12039 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12040 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12041 (sparc64_write_fp): Delete declaration.
12042 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12043 (h8500_write_fp): Delete declaration.
12044
12045 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12046
12047 * sparc-tdep.c (sparc64_write_fp): Delete.
12048 (sparc_push_dummy_frame): Replace write_fp call with code to store
12049 the FP directly.
12050 (sparc_gdbarch_init): Do not initialize write_fp.
12051
12052 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12053
12054 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12055 clause.
12056
12057 2002-03-29 Jim Blandy <jimb@redhat.com>
12058
12059 * stack.c (get_selected_block): Add new argument `addr_in_block',
12060 used to return the exact code address we used to select the block,
12061 not just the block.
12062 * blockframe.c (get_frame_block, get_current_block): Same.
12063 * frame.h (get_frame_block, get_current_block,
12064 get_selected_block): Update declarations.
12065 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12066 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12067
12068 2002-04-05 Michael Snyder <msnyder@redhat.com>
12069
12070 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12071 warning message.
12072
12073 2002-04-05 J. Brobecker <brobecker@gnat.com>
12074
12075 * utils.c (xfullpath): New function.
12076 * defs.h (xfullpath): Add declaration.
12077 * source.c (openp): Use xfullpath in place of gdb_realpath to
12078 avoid resolving the basename part of filenames when the
12079 associated file is a symbolic link. This fixes a potential
12080 inconsistency between the filenames known to GDB and the
12081 filenames it prints in the annotations.
12082 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12083 to be able to match a filename with either the real filename, or
12084 the name of any symbolic link to this file.
12085 (lookup_partial_symtab): Ditto.
12086
12087 2002-04-04 Michael Snyder <msnyder@redhat.com>
12088
12089 * breakpoint.c: Add support for hardware breakpoints in overlays.
12090 (overlay_events_enabled): New state variable.
12091 (insert_breakpoints): Use overlay_events_enabled to decide
12092 whether to attempt to set a breakpoint at the overlay load addr.
12093 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12094 (remove_breakpoint): Use overlay_events_enabled to decide
12095 whether breakpoints need to be removed from overlay load addr.
12096 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12097 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12098 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12099 disable_overlay_breakpoints): Update overlay_events_enabled.
12100
12101 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12102
12103 * dwarf2read.c (struct function_range): New.
12104 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12105 (check_cu_functions): New.
12106 (read_file_scope): Initialize global function lists.
12107 Call dwarf_decode_line after processing children.
12108 (read_func_scope): Add to global function list.
12109 (dwarf_decode_lines): Call check_cu_functions everywhere
12110 record_line is called. Call record_line with a linenumber
12111 of 0 to mark sequence ends.
12112
12113 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12114
12115 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12116 change sync with glibc.
12117
12118 2002-04-03 Jim Blandy <jimb@redhat.com>
12119
12120 * configure.in: Call AC_C_INLINE.
12121 * configure: Regenerated.
12122
12123 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12124
12125 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12126 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12127
12128 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12129
12130 * NEWS: Mention gcore support on FreeBSD/i386.
12131
12132 * fbsd-proc.c: New file.
12133 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12134 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12135
12136 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12137 while statement.
12138
12139 2002-03-29 Jim Blandy <jimb@redhat.com>
12140
12141 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12142 unescaped newlines in string literals, but newer ones don't. So
12143 escape them.
12144
12145 2002-03-26 Michael Snyder <msnyder@redhat.com>
12146 Andrew Cagney <cagney@redhat.com>
12147
12148 * cli/cli-dump.c: New file. Dump memory to file,
12149 restore file to memory.
12150 * cli/cli-dump.h: New file.
12151 * Makefile.in: Add rules, dependencies for cli-dump.o.
12152 * NEWS: Mention new commands.
12153
12154 2002-03-28 Michael Snyder <msnyder@redhat.com>
12155
12156 * symfile.c (symbol_file_add): Move test for null symbols to later.
12157
12158 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12159
12160 From veksler at il.ibm.com:
12161 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12162 the xstrduped original path.
12163 Fix PR gdb/417.
12164
12165 2002-03-27 Michael Snyder <msnyder@redhat.com>
12166
12167 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12168 * infcmd.c (_initialize_infcmd): Ditto.
12169 * language.c (_initialize_language): Ditto.
12170 * symfile.c (_initialize_symfile): Ditto.
12171 * top.c (_init_main): Ditto.
12172 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12173
12174 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12175
12176 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12177 vector registers handling.
12178 (skip_prologue): Handle new AltiVec instructions. Fill in new
12179 fields of frame data.
12180 (frame_get_saved_regs): Fill in information for AltiVec registers.
12181
12182 2002-03-27 Jim Blandy <jimb@redhat.com>
12183
12184 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12185 a function; leave this macro here to invoke that function.
12186 (symbol_init_mangled_name): Declaration for that function.
12187 * symtab.c (symbol_init_mangled_name): New function.
12188
12189 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12190
12191 * valarith.c: Replace strerror with safe_strerror.
12192 * tracepoint.c: Ditto.
12193 * lin-lwp.c: Ditto.
12194 * go32-nat.c: Ditto.
12195 * inflow.c: Ditto.
12196 * gnu-nat.c: Ditto.
12197
12198 2002-03-27 Andreas Schwab <schwab@suse.de>
12199
12200 * event-top.c (command_line_handler): Remove useless if.
12201
12202 2002-03-27 Andreas Jaeger <aj@suse.de>
12203
12204 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12205 comment.
12206
12207 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12208
12209 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12210 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12211 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12212 (x86_64_linux_dr_get_status, supply_gregset),
12213 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12214 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12215 (x86_64_register_info_table): Add.
12216 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12217 (x86_64_register_raw_size, x86_64_register_virtual_type),
12218 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12219 general x86_64_register_info_table.
12220 (i386_gdbarch_init): gdbarch_register_bytes is now set
12221 dynamicaly during initialization.
12222 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12223 * gdbserver/linux-x86-64-low.c: Ditto.
12224
12225 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12226
12227 * gdbserver/server.c (main): Call target_signal_to_host_p
12228 and target_signal_to_host on signals received from the remote.
12229 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12230 target_signal_from_host on signals sent to the remote.
12231 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12232 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12233
12234 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12235
12236 * signals/signals.c: Include "server.h" in gdbserver build.
12237 (target_signal_from_name): Don't use STREQ.
12238 (_initialize_signals): Likewise. Don't include function in
12239 gdbserver build.
12240
12241 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12242
12243 * signals.c: Moved to...
12244 * signals/signals.c: Here.
12245 * Makefile (signals.o): Update.
12246
12247 2002-03-26 Jeff Law (law@redhat.com)
12248
12249 * somread.c (som_symtab_read): Remove some commented out code and
12250 updated related comments. Do not set the minimal symbol table to
12251 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12252 in a dynamic executable.
12253 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12254 where we are unable to find the minimal symbol for the given
12255 PC value.
12256
12257 2002-03-25 Jeff Law (law@redhat.com)
12258
12259 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12260
12261 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12262
12263 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12264
12265 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12266
12267 * command.h: Update copyright.
12268 (struct cmd_list_element): Replace definition with opaque
12269 declaration.
12270 (enum cmd_types): Document that it will eventually be moved to
12271 cli/cli-decode.h
12272 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12273 (MALLOCED_REPLACEMENT): Delete macro.
12274 * Makefile.in (cli_decode_h): Add $(command_h).
12275 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12276 * top.c: Include "cli/cli-decode.h".
12277 * completer.c: Include "cli/cli-decode.h".
12278 * maint.c: Include "cli/cli-decode.h".
12279 * cli/cli-decode.h: Include "command.h".
12280 (enum command_class): Delete.
12281 (enum cmd_types): Comment out.
12282 (enum cmd_auto_boolean): Delete.
12283 (enum var_types): Delete.
12284
12285 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12286
12287 * cli/cli-decode.c: Include "gdb_assert.h".
12288 (add_set_or_show_cmd): New static function.
12289 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12290 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12291 all fields, such as func, from the set command.
12292
12293 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12294
12295 * MAINTAINERS (sh-elf): Change warning flag to -w.
12296
12297 2002-03-23 Andrew Cagney <cagney@redhat.com>
12298
12299 * defs.h (error): Add printf format attribute.
12300 * thread-db.c (thread_from_lwp): Fix error format string.
12301 * stack.c (parse_frame_specification): Ditto.
12302 * cli/cli-decode.c (undef_cmd_error): Ditto.
12303 * scm-lang.c (scm_lookup_name): Ditto.
12304 * tracepoint.c (trace_error): Ditto.
12305 * remote-utils.c (usage): Ditto.
12306 * remote.c (compare_sections_command): Ditto.
12307 Fix PR gdb/328.
12308
12309 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12310
12311 * gdbtypes.c (append_composite_type_field): New function.
12312 (init_composite_type): New function.
12313 * gdbtypes.h (append_composite_type_field): Declare.
12314 (init_composite_type): Ditto.
12315
12316 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12317
12318 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12319 function.
12320 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12321 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12322 structure returning convention for SYSV ABI case, but not
12323 for GNU/Linux, FreeBSD, or NetBSD.
12324
12325 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * symtab.h (lookup_block_symbol): Add mangled_name argument
12328 to prototype.
12329
12330 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12331 with new mangled_name argument.
12332 * linespec.c (decode_line_1): Likewise.
12333 * valops (value_of_this): Likewise.
12334 * symtab.c (lookup_transparent_type): Likewise.
12335 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12336 (lookup_symbol): If we are given a mangled name, pass it down
12337 to lookup_symbol_aux.
12338 (lookup_block_symbol): If we are given a mangled name to check
12339 against, only return symbols which match it.
12340
12341 2002-03-22 Christopher Faylor <cgf@redhat.com>
12342
12343 * win32-nat.c (child_create_inferior): Check for proper shell to use
12344 here, in case the user changes it on the fly.
12345 (_initialize_inftarg): Remove shell path considerations.
12346
12347 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12348
12349 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12350 for gdbarch_max_register_raw_size and max_register_virtual_size.
12351 Adjust copyright year.
12352
12353 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12354
12355 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12356 in a function to cover the entire beginning of the function
12357 as well if it does not already.
12358
12359 2002-03-21 Tom Rix <trix@redhat.com>
12360
12361 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12362 (rs6000_ptrace64): Renamed from ptrace64.
12363
12364 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12365
12366 * gdbserver/remote-utils.c (remote_open): Don't call
12367 getprotobyname, we're all using TCP here so just use
12368 IPPROTO_TCP.
12369 * gdbserver/gdbreplay.c (remote_open): Ditto.
12370
12371 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12372
12373 * regcache.c (_initialize_regcache): No need to call
12374 build_regcache() at this time; it gets called whenever
12375 the gdbarch changes.
12376
12377 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12378
12379 * sparc-nat.c: Include sys/param.h where possible.
12380
12381 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12382
12383 Fix PR gdb/422.
12384 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12385 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12386 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12387 complex types.
12388 * stabsread.c (rs6000_builtin_type): Likewise.
12389 (read_sun_floating_type): Likewise.
12390
12391 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12392
12393 * stabsread.c (read_member_functions): Remove skip code for duplicate
12394 constructor/destructor methods. Use standard parsing for these
12395 methods and just do not chain them to the list of methods after
12396 parsing.
12397
12398 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12399
12400 * coffread.c: Remove redundant static declarations. Replace
12401 occurrences of `PTR' with `void *'.
12402 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12403 * top.h (quit_cover): Likewise.
12404 * defs.h (catch_errors): Likewise.
12405
12406 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12407
12408 * defs.h (XMALLOC): Define.
12409 * gdb-events.sh (XMALLOC): Delete macro.
12410 * gdb-events.c, gdb-events.h: Regenerate.
12411 * gdbarch.sh (XMALLOC): Delete macro.
12412 * gdbarch.c: Regenerate.
12413 * serial.c (XMALLOC): Delete macro.
12414 * ui-file.c (XMALLOC): Ditto.
12415 * ser-unix.h (XMALLOC): Ditto.
12416 * sh-tdep.c (XMALLOC): Ditto.
12417 * ui-out.c (XMALLOC): Ditto.
12418 * utils.c (XMALLOC): Ditto.
12419 * i386-tdep.c (XMALLOC): Ditto.
12420 * gdb-events.c (XMALLOC): Ditto.
12421 * d10v-tdep.c (XMALLOC): Ditto.
12422 * cli-out.c (XMALLOC): Ditto.
12423
12424 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12425 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12426 * ui-file.c, ui-out.c: Ditto.
12427
12428 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12429
12430 * command.h (struct cmd_list_element): Add field context.
12431 (set_cmd_context, get_cmd_context): Declare.
12432 * cli/cli-decode.h: Ditto.
12433 * cli/cli-decode.c (get_cmd_context): New function.
12434 (set_cmd_context): New function.
12435 (add_cmd): Initialize context.
12436 Part of fixing PR gdb/145 and PR gdb/146.
12437
12438 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12439
12440 * cli/cli-decode.c (cmd_type): New function.
12441 * command.h (cmd_type): Declare.
12442 * infrun.c (set_schedlock_func): Call function cmd_type.
12443 * kod.c (kod_set_os): Call cmd_type.
12444 * cris-tdep.c (cris_version_update): Use function cmd_type.
12445 (cris_mode_update, cris_abi_update): Ditto.
12446
12447 * command.h: (execute_cmd_post_hook): Declare.
12448 (execute_cmd_pre_hook): Declare.
12449 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12450 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12451 functions. Execute pre/post hook while ensuring that afterwords
12452 hook_in is cleared.
12453 * top.c (execute_command): Use execute_cmd_post_hook, and
12454 execute_cmd_pre_hook to execute pre/post commands.
12455 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12456 hook_stop_stub.
12457 (hook_stop_stub): Call execute_cmd_pre_hook.
12458
12459 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12460
12461 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12462 set'' and this leads to a core dump. Move xstrdup of
12463 operating_system to after check that it is not NULL.
12464
12465 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12466
12467 * kod.c (kod_set_os): Remove unnecessary check that
12468 ``command->type'' is set_cmd.
12469
12470 * valprint.c (set_input_radix): Use input_radix.
12471 (set_output_radix): Use output_radix.
12472 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12473 isn't reverted.
12474
12475 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12476
12477 * value.h (struct value): Delete field ``substring_addr''. Change
12478 aligner fields to force_doublest_align, force_longest_align,
12479 force_core_addr_align and force_pointer_aligh.
12480
12481 * value.h (struct value): Fix typo in above change.
12482
12483 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12484
12485 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12486 to fix internal_error from ``maintenance print architecture''.
12487
12488 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12489
12490 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12491 for gcc versions after gcc-2.8.1.
12492
12493 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12494
12495 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12496 for method resolution. Restore adjustment of ``this'' pointer after
12497 calling value_struct_elt, which was accidentally removed during the
12498 HP merge.
12499
12500 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12501
12502 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12503 value_of_register.
12504 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12505 get_saved_register.
12506 * value.h (value_of_register): Update.
12507
12508 2002-03-14 Richard Henderson <rth@redhat.com>
12509
12510 * configure.in: Detect declaration for canonicalize_file_name.
12511 * utils.c (canonicalize_file_name): Declare, if needed.
12512 (gdb_realpath): Prefer realpath if available and usable.
12513 * config.in, configure: Rebuild.
12514
12515 2002-03-14 Richard Henderson <rth@redhat.com>
12516
12517 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12518 a constant array bound.
12519
12520 * MAINTAINERS: Add myself to write-after-approval.
12521
12522 2002-03-14 Michael Snyder <msnyder@redhat.com>
12523
12524 * symfile.c (syms_from_objfile): Return immediately if no syms.
12525 (symbol_file_add): Return immediately if no syms.
12526 (find_sym_fns): Return immediately if no syms.
12527
12528 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12529
12530 * gdbserver/remote-util.c (remote_open): Print remote-side's
12531 IP address when remote debugging over the network.
12532
12533 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12534
12535 * config/sparc/fbsd.mh: Fix copyright.
12536 * config/sparc/fbsd.mt: Likewise.
12537
12538 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12539
12540 * MAINTAINERS: Fix typo in name of gdb warnings option.
12541 (x86-64): Fix formating so that this can be parsed by awk.
12542
12543 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12544
12545 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12546 * defs.h: Include "gdb/signals.h".
12547 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12548
12549 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12550
12551 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12552 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12553 from x86-64-tdep.h
12554
12555 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12556 Don Howard <dhoward@redhat.com>
12557
12558 * mips-tdep.c (ST0_FR): Define.
12559 (mips2_fp_compat): New function, temporarily disabled.
12560 (mips_read_fp_register_single): New function.
12561 (mips_read_fp_register_double): New function.
12562 (mips_print_register): Use them.
12563 (do_fp_register_row): Likewise.
12564
12565 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12566
12567 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12568 approval''.
12569
12570 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12571
12572 * stabsread.c (read_member_functions): Fix is_stub test for
12573 static member functions, improve comment.
12574
12575 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12576
12577 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12578 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12579 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12580 commands that set boolean values.
12581 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12582 (arm_rdi_resume): Always initialize PC.
12583 (arm_rdi_open): Don't use rslt as a boolean.
12584 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12585 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12586 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12587 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12588
12589 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12590
12591 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12592 * configure: Rebuilt.
12593
12594 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12595
12596 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12597 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12598
12599 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12600
12601 * cli/cli-decode.c (set_cmd_completer): New function.
12602 * command.h (set_cmd_completer): Declare.
12603 * cli/cli-decode.h (set_cmd_completer): Ditto.
12604
12605 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12606 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12607 * win32-nat.c (_initialize_inftarg): Ditto.
12608 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12609 * proc-api.c (_initialize_proc_api): Ditto.
12610 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12611 * source.c (_initialize_source): Ditto.
12612 * exec.c (_initialize_exec): Ditto.
12613 * solib.c (_initialize_solib): Ditto.
12614 * top.c (init_main): Ditto.
12615 * tracepoint.c (_initialize_tracepoint): Ditto.
12616 * symfile.c (_initialize_symfile): Ditto.
12617 * printcmd.c (_initialize_printcmd): Ditto.
12618 * infcmd.c (_initialize_infcmd): Ditto.
12619 * corefile.c (_initialize_core): Ditto.
12620
12621 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12622
12623 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12624
12625 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12626
12627 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12628
12629 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12630
12631 * NEWS: Update headings, 5.2 has branched.
12632
12633 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12634
12635 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12636 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12637 (register_addr, REGISTER_RAW_SIZE): Likewise.
12638 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12639 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12640
12641 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12642
12643 * MAINTAINERS (x86-64): Add myself.
12644 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12645 changed value_ptr -> struct value *
12646
12647 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12648
12649 * configure.host (sparc64-*-freebsd): Add.
12650 * configure.tgt: Likewise.
12651 * config/sparc/fbsd.mh: New file.
12652 * config/sparc/fbsd.mt: Likewise.
12653 * config/sparc/nm-fbsd.h: Likewise.
12654 * config/sparc/tm-fbsd.h: Likewise.
12655
12656 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12657
12658 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12659 regformats/reg-s390x.dat.
12660
12661 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12662
12663 * utils.c: Add FIXME explaining true/false problem.
12664
12665 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12666
12667 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12668
12669 2002-02-28 Michael Chastain <mec@shout.net>
12670
12671 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12672
12673 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12674
12675 * gdbserver/linux-s390-low.c: New file.
12676 * regformats/reg-s390.dat: New file.
12677 * regformats/reg-s390x.dat: New file.
12678 * gdbserver/configure.srv: Add S/390.
12679 * gdbserver/Makefile.in: Add S/390.
12680 * configure.tgt: Enable gdbserver for S/390.
12681
12682 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12683
12684 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12685 first line of the doc string for "info dos", except at the end of
12686 the sentence, since the short help stops at the first period.
12687
12688 2002-02-28 Jason Merrill <jason@redhat.com>
12689
12690 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12691
12692 2002-02-27 Fred Fish <fnf@redhat.com>
12693
12694 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12695 comment (dumy -> dummy).
12696
12697 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12698
12699 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12700
12701 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12702
12703 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12704
12705 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12706
12707 * gdbserver/acconfig.h: New file.
12708 * gdbserver/i387-fp.c: New file.
12709 * gdbserver/i387-fp.h: New file.
12710 * gdbserver/linux-x86-64.c: New file.
12711 * regformats/reg-x86-64.dat: New file.
12712 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12713 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12714 * gdbserver/configure.in: Add support for regsets.
12715 * gdbserver/config.in: Regenerate.
12716 * gdbserver/configure: Regenerate.
12717 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12718 * gdbserver/linux-low.h: New file.
12719 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12720 for regsets.
12721 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12722 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12723 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12724 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12725 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12726 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12727 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12728 "i387-fp.h". Add PTRACE_GETREGS and friends.
12729 * gdbserver/regcache.c (supply_register): New function.
12730 (supply_register_by_name): New function.
12731 (collect_register): New function.
12732 (collect_register_by_name): New function.
12733
12734 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12735
12736 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12737 (config.status): Add configure.srv dependency.
12738 (server_h): Add config.h dependency.
12739
12740 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12741
12742 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12743 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12744 * gdbserver/configure.srv: Change i386-*-linux* to use
12745 reg-i386-linux.o.
12746
12747 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12748
12749 * x86-64-tdep.c: Re-indent. Update copyright date.
12750
12751 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12752
12753 From Michal Ludvig <mludvig@suse.cz>:
12754 * x86-64-tdep.c (value.h): Delete.
12755 (gdb_assert.h): Include.
12756 (x86_64_register_convert_to_virtual,
12757 x86_64_register_convert_to_raw ): Add check which lets only
12758 floating-point values to be converted.
12759 (value_push): Delete.
12760 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12761 (i386_gdbarch_init): Number of register_bytes fixed.
12762
12763 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12764
12765 * MAINTAINERS: Add x86-64 target.
12766
12767 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12768
12769 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12770 * osfsolib.c (solib_map_sections): Ditto.
12771 * irix5-nat.c (solib_map_sections): Ditto.
12772 * corelow.c (gdb_check_format): Ditto.
12773 * symfile.c (symfile_bfd_open): Ditto.
12774 * solib.c (solib_map_sections): Ditto.
12775 Fix PR gdb/354.
12776
12777 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12778
12779 * remote.c (_initialize_remote): By default, disable ``e'' and
12780 ``E'' step out-of-range packets.
12781
12782 2002-02-26 Andreas Schwab <schwab@suse.de>
12783
12784 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12785 m68k_linux_frame_saved_pc.
12786 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12787 in_sigtramp.
12788 (SIGCONTEXT_PC_OFFSET): Remove.
12789 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12790 m68k_linux_sigtramp_saved_pc): New functions.
12791 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12792 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12793 (UCONTEXT_PC_OFFSET): Define.
12794 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12795 non-RT and RT signal trampolines.
12796
12797 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12798
12799 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12800 (TARGET_NBPG, STACK_END_ADDR): Delete
12801 (VARIABLES_INSIDE_BLOCK): Delete.
12802
12803 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12804
12805 * utils.c (perror_with_name): Make string parameter constant.
12806 (print_sys_errmsg): Ditto.
12807 (query): Ditto.
12808 * defs.h (perror_with_name): Update.
12809 (print_sys_errmsg): Update.
12810 (query): Update.
12811
12812 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12813
12814 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12815 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12816
12817 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12818
12819 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12820 if it already matches the current architecture from the exec file.
12821 Include arch-utils.h for gdbarch_info_init prototype.
12822 * Makefile.in (rs6000-nat.o): Update dependencies.
12823
12824 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12825
12826 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12827 list of exported variables.
12828
12829 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12830
12831 * gdbserver/configure.srv: New file.
12832 * gdbserver/configure.in: Use configure.srv instead
12833 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12834 from it.
12835 * gdbserver/configure: Regenerated.
12836 * gdbserver/terminal.h: New file.
12837 * gdbserver/Makefile.in: Update for configure changes. Remove
12838 more unneeded include paths.
12839
12840 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12841
12842 From wiz at danbala:
12843 * config/sparc/tm-sp64.h: Fix grammar and typos.
12844 Fix PR gdb/287.
12845
12846 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12847
12848 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12849 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12850 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12851 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12852 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12853 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12854 * s390-tdep.c: Ditto.
12855 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12856 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12857 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12858 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12859 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12860 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12861 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12862 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12863 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12864 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12865 Fix PR gdb/378.
12866
12867 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12868
12869 * lin-thread.c: Delete file.
12870 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12871 to gdb_proc_service.h.
12872 * configure: Re-generate.
12873
12874 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12875 * serial.c (serial_open): Delete check for "ocd".
12876 Fix PR gdb/349.
12877
12878 * Makefile.in (linux-thread.o): Delete target.
12879 * linux-thread.c: Delete file.
12880
12881 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12882 renamed SH files to be consistent.
12883
12884 * symtab.c (sort_search_symbols): Use xfree.
12885
12886 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12887
12888 * arm-linux-tdep.c (arm_linux_init_abi): Register
12889 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12890 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12891 definition with undef, since we don't want the sysvr4 definition.
12892 (SKIP_TRAMPOLINE_CODE): Likewise.
12893
12894 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12895
12896 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12897
12898 * configure.in: (AC_CHECK_FUNCS) Added test for
12899 canonicalize_file_name Regenerated.
12900 * config.in, configure: Regenerated.
12901 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12902 defined use canonicalize_file_name.
12903
12904 2002-02-23 Michael Chastain <mec@shout.net>
12905
12906 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12907
12908 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12909
12910 * README: Remove references to cygnus.com.
12911 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12912 dot com'' form. Remove references to cygnus.com and sourceware.
12913
12914 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12915
12916 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12917 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12918 1003.1-2001 no longer allows "head -1".
12919 * gdb/Makefile.in (version.c): Likewise.
12920 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12921 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12922 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12923
12924 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12925
12926 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12927 * command.h (cmd_cfunc_eq): Declare.
12928 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12929
12930 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12931 ``struct cmd_list_element *''.
12932 * cli/cli-cmds.c (is_complete_command): Update. Use
12933 cmd_cfunc_eq.
12934 * top.c (execute_command): Pass the command to
12935 is_complete_command.
12936 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12937
12938 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12939
12940 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12941 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12942 architecture defines.
12943 * s390-tdep.c (s390_gdbarch_init): Likewise.
12944
12945 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12946
12947 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12948 (arm_linux_push_arguments): Likewise.
12949 (arm_linux_init_abi): Register them. Also register linux-specific
12950 call_dummy_words.
12951 (find_minsym_and_objfile): Use strcmp, not STREQ.
12952 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12953 (arm_linux_call_dummy_words): Delete declaration.
12954 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12955 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12956 declarations.
12957 (LOWEST_PC): Delete.
12958
12959 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12960
12961 * maint.c (print_section_info): Do not prepend `0x' to filepos
12962 output, it will be handled by local_hex_string_custom.
12963
12964 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12965
12966 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12967 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12968 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12969
12970 2002-02-22 Jim Blandy <jimb@redhat.com>
12971
12972 Indicate that the bcache functions don't change the strings
12973 they're passed.
12974 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12975 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12976
12977 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12978
12979 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12980
12981 2002-02-21 Christopher Faylor <cgf@redhat.com>
12982
12983 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12984 find the complete path to a loaded DLL.
12985
12986 2002-02-21 Fred Fish <fnf@redhat.com>
12987
12988 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12989 that marks the end of the range of a function, enter a line number
12990 entry that has a line number of zero and a PC offset that matches
12991 the end of the function. This starts a range of PC's for which no
12992 line number information is known.
12993 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12994 PC's for which no line number info is found (line number is zero)
12995 then we didn't find any valid line information.
12996 * symtab.h: Document use of zero line number entry.
12997
12998 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12999
13000 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13001 (have_ptrace_getvrregs): Define for run time checks.
13002 (gdb_vrregset_t): New type for Altivec register handling.
13003 (fetch_register, store_register): Fetch/store altivec register
13004 when needed.
13005 (fetch_altivec_register, store_altivec_register): New functions.
13006 (supply_vrregset, fill_vrregset): New functions.
13007 (fetch_altivec_registers, store_altivec_registers): New functions.
13008 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13009 registers as well.
13010
13011 2002-02-21 Jiri Smid <smid@suse.cz>
13012
13013 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13014
13015 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13016
13017 * Makefile.in (armnbsd-nat.o): Update dependencies.
13018 * armnbsd-nat.c (supply_gregset): New function. Common code to
13019 supply the integer register set.
13020 (supply_fparegset): New function. Similar for FPA registers.
13021 (fetch_regs, fetch_fp_regs): Use them.
13022 (fetch_core_registers): Likewise.
13023 (fetch_elfcore_registers): New function.
13024 (arm_netbsd_elfcore_fns): New core-file type specification.
13025 (_initialize_arm_netbsd_nat): Register it.
13026
13027 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13028
13029 * armnbsd-nat.c: Include gdbcore.h.
13030 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13031 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13032 'void' to declaration, to shut up ARI.
13033 (fetch_core_registers): Make static. Rewrite using supply_register.
13034 (arm_netbsd_core_fns): New core-file type specification.
13035 (_initialize_arm_netbsd_nat): New function.
13036
13037 2002-02-21 Christopher Faylor <cgf@redhat.com>
13038
13039 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13040 value.
13041
13042 2002-02-20 Christopher Faylor <cgf@redhat.com>
13043
13044 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13045 fails.
13046
13047 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13048
13049 * jv-exp.y (parse_number): Change type of implicit longs
13050 to builtin_type_uint64.
13051
13052 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13053
13054 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13055 to be an integer instead of a `union wait'.
13056
13057 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * mips-linux-nat.c: Call the operating system GNU/Linux.
13060 * mips-linux-tdep.c: Likewise.
13061 * mips-tdep.c: Likewise.
13062
13063 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13064
13065 Fix PR gdb/265.
13066 * jv-exp.y (parse_number): Handle 64-bit integers.
13067
13068 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13069
13070 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13071 AC_STDC_HEADERS to AC_HEADER_STDC.
13072 * gdbserver/configure: Regenerated.
13073
13074 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13075
13076 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13077 is defined.
13078 * sparc-tdep.c (get_longjmp_target): Likewise.
13079
13080 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13081
13082 * News: Add news about ARM and Multi-arch. Mention the new target
13083 arm*-*-netbsd*.
13084
13085 2002-02-19 Jim Blandy <jimb@redhat.com>
13086
13087 * stabsread.c (error_type_complaint): Improve error message.
13088
13089 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13090
13091 * gdbserver/README: Update documentation.
13092 * gdbserver/configure.in: Update configury to match documentation.
13093 * gdbserver/Makefile.in: Likewise.
13094 * gdbserver/configure: Regenerated.
13095 * gdbserver/aclocal.m4: New file, generated by aclocal.
13096 * gdbserver/config.in: New file, generated by autoheader.
13097
13098 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13099
13100 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13101 armnbsd-nat.c.
13102
13103 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13104
13105 * arm-tdep.h (enum arm_float_model): New enum.
13106 (struct gdbarch_tdep): Add fp_model.
13107 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13108 up floating-point conversions until we know the floating-point model
13109 in use by the inferior. Don't complain about being unable to
13110 determine the ABI of the inferior when we don't have one.
13111 (arm_extract_return_value): Support different floating-point models.
13112 (arm_store_return_value): Likewise.
13113 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13114 ARM_FLOAT_SOFT.
13115 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13116
13117 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13118
13119 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13120 of ``current_gdbarch''.
13121
13122 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13123
13124 * armnbsd-nat.c : ANSIfy all function declarations.
13125 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13126 (fetch_inferior_registers): Re-implement in terms of above.
13127 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13128 (store_inferior_registers): Re-implement in terms of above.
13129
13130 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13131
13132 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13133 kernel.
13134 * arm-linux-tdep.c: Likewise.
13135 * config/arm/tm-linux.h: Likewise.
13136
13137 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13138
13139 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13140 * config/arm/nbsd.mt (TM_FILE): Delete.
13141 * config/arm/tm-nbsd.h: Delete.
13142
13143 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13144
13145 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13146 Initialize CALL_DUMMY_LENGTH.
13147
13148 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13149
13150 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13151 function.
13152 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13153 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13154 defines one thing and that is incorrect for this port.
13155 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13156
13157 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13158
13159 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13160
13161 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13162
13163 * win32-nat.c (display_selector): New function. Displays information
13164 about the information returned by GetThreadSelectorEntry API function.
13165 (display_selectors): New function. Displays the infomation of
13166 the selector given as argument, or of CS, DS ans FS selectors
13167 if no argument is given.
13168 ( _initialize_inftarg): Add "w32" as info prefix command.
13169 Add "info w32 selector" as command calling display_selectors.
13170
13171 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13172
13173 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13174 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13175 if not defined.
13176
13177 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13178
13179 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13180
13181 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13182
13183 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13184 (arm_fix_call_dummy): Call it.
13185 (arm_call_dummy_breakpoint_offset): Delete.
13186 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13187 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13188
13189 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13190
13191 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13192 Default to func_frame_chain_valid.
13193 * gdbarch.h, gdbarch.c: Re-generate.
13194 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13195
13196 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13197
13198 * ppc-linux-nat.c: Update copyright.
13199 (fetch_register, store_register): Add tid parameter, don't compute
13200 tid here.
13201 (fetch_ppc_registers, store_ppc_registers): Add tid
13202 parameter. Pass it along to callees.
13203 (fetch_inferior_registers, store_inferior_registers): Compute tid
13204 here, and pass it to calleed functions.
13205 (fill_gregset, supply_fpregset): Clean up formatting.
13206
13207 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13208
13209 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13210 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13211
13212 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13213
13214 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13215 * gdbarch.c gdbarch.h: Regenerate.
13216 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13217 function.
13218 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13219 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13220 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13221
13222 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13223 * arm-tdep.c (arm_get_longjmp_target): New function.
13224 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13225 this to a positive value register arm_get_longjmp_target as the
13226 longjmp handler.
13227 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13228 (arm_linux_init_abi): Set up longjmp description in tdep.
13229 * armnbsd-nat.c (get_longjmp_target): Delete.
13230 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13231 description in tdep.
13232 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13233 (get_longjmp_target): Delete declaration.
13234 (GET_LONGJMP_TARGET): Delete.
13235 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13236 (GET_LONGJMP_TARGET): Delete.
13237
13238 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13239
13240 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13241 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13242 of ``current_gdbarch''.
13243
13244 2002-02-17 Tom Tromey <tromey@redhat.com>
13245
13246 * cli/cli-cmds.c (compare_strings): New function.
13247 (complete_command): Only print each unique item once.
13248 * completer.h (complete_line): Declare.
13249 * completer.c (complete_line): New function.
13250 (line_completion_function): Use it.
13251
13252 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13253
13254 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13255 * gdbarch.h, gdbarch.c: Re-generate.
13256
13257 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13258
13259 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13260
13261 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13262
13263 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13264 * valops.c (value_arg_coerce): Don't take the address of a reference
13265 to convert an argument to a reference.
13266
13267 2002-02-15 Christopher Faylor <cgf@redhat.com>
13268
13269 * win32-nat.c (get_image_name): New function.
13270 (handle_load_dll): Use get_image_name function.
13271 (get_child_debug_event): Avoid registering debug events until possibly
13272 execed process is started.
13273 (child_create_inferior): Allow invocation via shell so that command
13274 line redirection, etc. works ok.
13275 (_initialize_inftarg): Add new command: "set shell" to control whether
13276 a shell is used to start a process.
13277
13278 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13279
13280 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13281 instead of find_register_by_number.
13282 (cannot_store_register): Likewise.
13283
13284 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13285
13286 * dwarf2read.c: Replace fprintf (stderr, ...) by
13287 fprintf_unfiltered (gdb_stderr, ...).
13288
13289 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13290
13291 * gdbserver/gdbserver.1: Document --attach.
13292
13293 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13294
13295 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13296 descriptions.
13297 * arm-tdep.c (arm_default_arm_le_breakpoint)
13298 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13299 (arm_default_thumb_be_breakpoint): New. Initialize them from
13300 traditional breakpoint defines.
13301 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13302 (arm_gdbarch_init): Initialize new breakpoint variables.
13303 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13304 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13305 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13306 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13307 code out to ...
13308 (arm_netbsd_init_abi_common): ... here; new function.
13309 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13310 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13311 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13312 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13313
13314 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13315
13316 * arm-tdep.h (enum arm_abi): New enum.
13317 (struct gdbarch_tdep): New structure.
13318 (LOWEST_PC): Provide a default.
13319 (arm_gdbarch_register_os_abi): Declare new function.
13320 * arm-tdep.c (arm_abi_names): New array.
13321 (process_note_abi_tag_sections): New function.
13322 (get_elfosabi): New function.
13323 (arm_gdbarch_register_os_abi): New function.
13324 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13325 support for that ABI has been built in, then call the appropriate
13326 configuration routine. Use gdbarch_num_regs() to get the number
13327 of registers.
13328 (arm_dump_tdep): New function.
13329 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13330 place-holder functions.
13331 (_initialize_arm_tdep): Register them.
13332 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13333
13334 * armnbsd-tdep.c: New file.
13335 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13336 * config/arm/nbsd.mt (TDEPFILES): Add it.
13337 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13338
13339 * armnbsd-nat.c: Include regcache.h.
13340 * Makefile.in (armnbsd-nat.o): Update dependency list.
13341
13342 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13343
13344 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13345
13346 * gdbserver/Makefile.in: Fix typos in target rules.
13347
13348 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13349
13350 Fix part of PR gdb/267.
13351 * linespec.c (find_methods): Handle constructors specially for now.
13352
13353 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13354
13355 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13356 handling.
13357 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13358 standard_coerce_float_to_double().
13359
13360 2002-02-14 Christopher Faylor <cgf@redhat.com>
13361
13362 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13363 GDBINIT_FILENAME.
13364
13365 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13366
13367 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13368 find_variant_by_name, because it confuses the multiarch
13369 framework. Return NULL if there isn't an architecture with the
13370 user supplied name, instead of forcing a different one without
13371 recording the change with the multiarch machinery.
13372 (find_variant_by_name): Delete.
13373
13374 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13375
13376 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13377 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13378
13379 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13380
13381 * stack.c (print_frame_info_base): When calling
13382 print_frame_info_listing_hook, set current_source_symtab.
13383
13384 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13385
13386 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13387 and remove unused $(INCLUDE_DIR).
13388 Add regcache.c to OBS.
13389 Add generated register protocol files to clean target.
13390 Update dependencies for new objects, obsolete old target code.
13391
13392 * gdbserver/linux-low.c: Remove all platform-specific code to
13393 new files. Remove various dead code. Update to use regcache
13394 functionality.
13395 * gdbserver/remote-utils.c (fromhex): Add return statement
13396 to quiet warning.
13397 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13398 constant.
13399 (input_interrupt): Add integer parameter to match prototype
13400 of a signal handler.
13401 (outreg): Use register_data ().
13402 (prepare_resume_reply): Use gdbserver_expedite_regs.
13403 * gdbserver/server.c (main): Dynamically allocate own_buf because
13404 PBUFSIZ is no longer constant. Use registers_to_string () and
13405 registers_from_string ().
13406 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13407 for error (), fatal (), and warning (). Update definition of
13408 PBUFSIZ to use regcache functionality. Add include guard.
13409 * gdbserver/utils.c (fatal): Add missing ``const''.
13410 (warning): New function.
13411
13412 * regformats/regdat.sh: Include "regcache.h" in generated files.
13413 Provide init_registers () function.
13414 * regformats/regdef.h: Add prototype for set_register_cache ().
13415 Add include guard.
13416
13417 * gdbserver/linux-arm-low.c: New file.
13418 * gdbserver/linux-i386-low.c: New file.
13419 * gdbserver/linux-ia64-low.c: New file.
13420 * gdbserver/linux-m68k-low.c: New file.
13421 * gdbserver/linux-mips-low.c: New file.
13422 * gdbserver/linux-ppc-low.c: New file.
13423 * gdbserver/linux-sh-low.c: New file.
13424
13425 * gdbserver/regcache.c: New file.
13426 * gdbserver/regcache.h: New file.
13427
13428 * gdbserver/low-linux.c: Removed obsolete file.
13429
13430 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13433 * config/i386/linux.mt: Likewise.
13434 * config/ia64/linux.mt: Likewise.
13435 * config/m68k/linux.mh: Likewise.
13436 * config/powerpc/linux.mh: Likewise.
13437 * config/mips/linux.mt: Likewise.
13438
13439 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13440
13441 * config/i386/i386lynx.mh: Mark gdbserver variables
13442 as (currently) obsolete for this target.
13443 * config/i386/nbsd.mt: Likewise.
13444 * config/i386/nbsdelf.mt: Likewise.
13445 * config/m32r/m32r.mt: Likewise.
13446 * config/m68k/m68klynx.mh: Likewise.
13447 * config/m68k/nbsd.mt: Likewise.
13448 * config/m68k/sun3os4.mh: Likewise.
13449 * config/mips/vr5000.mt: Likewise.
13450 * config/ns32k/nbsd.mt: Likewise.
13451 * config/pa/hppabsd.mh: Likewise.
13452 * config/pa/hppaosf.mh: Likewise.
13453 * config/powerpc/nbsd.mt: Likewise.
13454 * config/rs6000/rs6000lynx.mh: Likewise.
13455 * config/s390/s390.mt: Likewise.
13456 * config/s390/s390x.mt: Likewise.
13457 * config/sparc/sparclynx.mh: Likewise.
13458 * config/sparc/sun4os4.mh: Likewise.
13459 * config/i386/x86-64linux.mt: Likewise.
13460 * config/sparc/linux.mh: Likewise.
13461
13462 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13463
13464 * configure.tgt: Configure gdbserver only for known working
13465 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13466 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13467 SUBDIRS if it is configured. Update comment for ${nativefile}.
13468 * configure: Regenerated.
13469
13470 2002-02-13 Michael Snyder <msnyder@redhat.com>
13471
13472 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13473
13474 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13475 (default_gcore_mach): Just return 0, work around a problem in bfd.
13476 (default_gcore_target): OK to return NULL if exec_bfd is null.
13477 (make_mem_sec): Use a cast, avoid a warning.
13478
13479 * procfs.c (find_memory_regions_callback): Use a cast instead of
13480 calling host_pointer_to_address (which complains if
13481 sizeof (host pointer) != sizeof (target pointer)).
13482 (procfs_make_note_section): Avoid overflow in psargs string.
13483
13484 * procfs.c (procfs_make_note_section): Make the default
13485 implementation return an error.
13486
13487 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13488
13489 * procfs.c (procfs_make_note_section): Provide a default definition
13490 (for alpha-dec-osf4.0f). Fix typos.
13491
13492 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13493
13494 * linux-proc.c: Add include of regcache.h.
13495 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13496
13497 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13498
13499 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13500 * memattr.c (create_mem_region): Disallow useless empty region.
13501 Regions are half-open intervals, so allow [A..B) [B..C) as
13502 non-overlapping.
13503
13504 2002-02-13 Michael Chastain <mec@shout.net>
13505
13506 * defs.h: Kill CONST_PTR.
13507 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13508 * c-lang.c (c_builtin_types): Likewise.
13509 * ch-lang.c (ch_builtin_types): Likewise.
13510 * f-lang.c (f_builtin_types): Likewise.
13511 * language.c (unknown_builtin_types): Likewise.
13512 * m2-lang.c (m2_builtin_types): Likewise.
13513 * p-lang.c (pascal_builtin_types): Likewise.
13514 * scm-lang.c (c_builtin_types): Likewise.
13515
13516 2002-02-13 Keith Seitz <keiths@redhat.com>
13517
13518 * arm-tdep.h (arm_get_next_pc): Add declaration.
13519
13520 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13521
13522 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13523 with other related struct-returning functions.
13524 (arm_extract_struct_value_address): New function.
13525 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13526 initialize float_format, double_format and long_double_format as
13527 appropriate to the endianness of the target.
13528 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13529 (arm_use_struct_convention): Delete declaration.
13530 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13531
13532 2002-02-13 Keith Seitz <keiths@redhat.com>
13533
13534 * defs.h (core_addr_to_string_nz): New function.
13535
13536 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13537
13538 Apply missing bits of 2002-01-15 patch.
13539 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13540 (fill_fpregset): Use i387_fill_fsave.
13541
13542 2002-02-12 Keith Seitz <keiths@redhat.com>
13543
13544 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13545 (core_addr_to_string_nz): New function.
13546
13547 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13548
13549 * arm-linux-nat.c: Really include arm-tdep.h.
13550 * config/arm/tm-linux.h (struct type, struct value): Declare.
13551
13552 2002-02-11 Michael Snyder <msnyder@redhat.com>
13553
13554 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13555 (gcore section): Ifdef for Solaris and Unixware only.
13556 (procfs_do_thread_registers): Unixware needs one lwpstatus
13557 per thread (not one prstatus or pstatus).
13558 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13559 not over all gdb threads. For unixware, call elfcore_write_pstatus
13560 once before iterating over threads.
13561
13562 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13563
13564 * arm-tdep.h: New file.
13565 * arm-tdep.c: Include arm-tdep.h.
13566 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13567 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13568 (arm_print_float_info, arm_register_type, convert_to_extended)
13569 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13570 (arm_extract_return_value, arm_register_name): Make static.
13571 (arm_software_single_step): Similarly. Fix types in declaration.
13572 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13573 (arm_store_return_value, arm_store_struct_return): New functions.
13574 (arm_gdbarch_init): Register the above functions. Also register
13575 call_dummy_start_offset, sizeof_call_dummy_words,
13576 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13577 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13578 max_register_virtual_size, register_size. Set up
13579 prologue_cache.saved_regs here, rather than ...
13580 (_initialize_arm_tdep): ... here.
13581 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13582 declarations.
13583 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13584 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13585 (arm_print_float_info, arm_register_type, convert_to_extended)
13586 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13587 (arm_extract_return_value, arm_register_name): Delete declarations.
13588 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13589 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13590 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13591 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13592 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13593 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13594 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13595 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13596 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13597 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13598 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13599 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13600 interface.
13601 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13602 * remote-rdi.c remote-rdp.c: Likewise.
13603 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13604 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13605 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13606 definition.
13607
13608 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13609 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13610 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13611 from non-ARM_ prefixed definitions.
13612 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13613 all uses of above.
13614 * remote-rdi.c remote-rdp.c: Likewise.
13615 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13616
13617 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13618
13619 * arm-tdep.c (arm_frameless_function_invocation)
13620 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13621 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13622 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13623 (arm_pop_frame, arm_get_next_pc): Make static.
13624 (arm_gdbarch_init): Register above in gdbarch structure.
13625 (arm_read_fp): Renamed from arm_target_read_fp.
13626 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13627 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13628 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13629 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13630 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13631 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13632 (arm_pc_is_thumb_dummy): Delete declarations.
13633 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13634 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13635 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13636 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13637
13638 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13639
13640 * symtab.c (compare_search_syms): New function.
13641 (sort_search_symbols): New function.
13642 (search_symbols): Sort symbols after searching rather than
13643 before.
13644
13645 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13646
13647 * NEWS: Linux -> GNU/Linux.
13648
13649 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13650
13651 * gdbarch.sh: For for level one methods, disallow a definition
13652 when partially multi-arched. Add comments explaining rationale.
13653 * gdbarch.h: Re-generate.
13654
13655 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13656
13657 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13658 multi-arch partial.
13659
13660 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13661
13662 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13663 field. Use diff -u.
13664 * gdbarch.c: Re-generate.
13665
13666 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13667
13668 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13669 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13670 partial.
13671
13672 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13673
13674 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13675 multi-arch partial.
13676 (PUSH_ARGUMENTS): Switch to using predefault.
13677 * gdbarch.c: Regenerate.
13678
13679 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13680
13681 * valops.c (PUSH_ARGUMENTS): Delete definition.
13682 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13683 partial. Default to default_push_arguments.
13684 * gdbarch.h, gdbarch.c: Regenerate.
13685
13686 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13687
13688 * defs.h (throw_exception): Rename return_to_top_level. Update
13689 comments.
13690 * utils.c (error_stream, internal_verror, quit): Ditto.
13691 * top.c (throw_exception, catcher): Ditto.
13692 * sparclet-rom.c (sparclet_load): Ditto.
13693 * remote.c (interrupt_query, minitelnet): Ditto.
13694 * remote-sds.c (interrupt_query): Ditto.
13695 * remote-mips.c (mips_error, mips_kill): Ditto.
13696 * ocd.c (interrupt_query): Ditto.
13697 * monitor.c (monitor_interrupt_query): Ditto.
13698 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13699 * target.h: Update comment.
13700
13701 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13702
13703 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13704
13705 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13706 default_double_format.
13707 * gdbarch.h, gdbarch.c: Re-generate.
13708 * findvar.c (floatformat_unknown): Delete variable definition.
13709 * doublest.h (floatformat_unknown): Delete variable declaration.
13710
13711 2002-02-09 Jim Blandy <jimb@redhat.com>
13712
13713 * stabsread.c (read_type): Add code to parse Sun's syntax for
13714 prototyped function types.
13715
13716 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13717
13718 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13719 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13720
13721 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13722
13723 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13724 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13725 now _initialize_xcoffsolib gets called again and overrides the
13726 commands from solib.c in a native configuration.
13727
13728 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13729
13730 * doublest.c (store_typed_floating): Don't try to return a value.
13731 Fixes PR gdb/290.
13732
13733 2002-02-08 Jim Blandy <jimb@redhat.com>
13734
13735 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13736 is prototyped and has no arguments, print its argument list as
13737 `(void)'.
13738
13739 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13740
13741 * MAINTAINERS (write-after-approval): Add myself.
13742 (paper-trail): I've escaped!
13743
13744 2002-02-08 Christopher Faylor <cgf@redhat.com>
13745
13746 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13747 changes.
13748 (_initialize_check_for_gdb_ini): Ditto.
13749
13750 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13751
13752 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13753 xaprintf -> xasprintf.
13754
13755 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13756
13757 * win32-nat.c: Remove use of printf and sprintf functions.
13758
13759 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13760
13761 * arm-tdep.c (arm_frame_chain_valid): Make static.
13762 (arm_push_arguments): Likewise.
13763 (arm_gdbarch_init): New function.
13764 (_initialize_arm_tdep): Call it.
13765 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13766 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13767 (FRAME_CHAIN_VALID): Delete.
13768 (arm_frame_chain_valid): Delete declaration.
13769 (PUSH_ARGUMENTS): Delete.
13770 (arm_push_arguments): Delete declaration.
13771 (CALL_DUMMY_P): Delete.
13772
13773 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13774 Corinna Vinschen <vinschen@redhat.com>
13775
13776 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13777 on builtin float types.
13778
13779 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13780
13781 * utils.c: Include <curses.h> before "bfd.h".
13782 * tui/tui-hooks.c: Likewise.
13783 * tui/tui.c: Likewise.
13784 * tui/tuiCommand.c: Likewise.
13785 * tui/tuiData.c: Likewise.
13786 * tui/tuiDataWin.c: Likewise.
13787 * tui/tuiDisassem.c: Likewise.
13788 * tui/tuiGeneralWin.c: Likewise.
13789 * tui/tuiIO.c: Likewise.
13790 * tui/tuiLayout.c: Likewise.
13791 * tui/tuiRegs.c: Likewise.
13792 * tui/tuiSource.c: Likewise.
13793 * tui/tuiSourceWin.c: Likewise.
13794 * tui/tuiStack.c: Likewise.
13795 * tui/tuiWin.c: Likewise.
13796
13797 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13798
13799 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13800 to include space for pseudoregs as well. Update loops accordingly.
13801 (sh_fp_frame_init_saved_regs): Ditto.
13802 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13803
13804 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13805
13806 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13807 Add Richard Earnshaw to Arm maintainers.
13808
13809 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13810
13811 * defs.h (warning_begin): Delete declaration.
13812
13813 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13814 Delete macro.
13815
13816 2002-02-07 Michael Snyder <msnyder@redhat.com>
13817
13818 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13819 Logic bug, remove misplaced else.
13820
13821 2002-02-07 Klee Dienes <klee@apple.com>
13822
13823 * fork-inferior.c (fork_inferior): Add '!' to the list of
13824 characters that need to be quoted when building a string for the
13825 shell. Quote '!' specifically with a backslash, since CSH chokes
13826 when trying to evaluate "str!str".
13827
13828 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13829
13830 * rdi-share/host.h: Only provide a typedef for bool if it is not
13831 defined.
13832
13833 2002-02-04 Michael Snyder <msnyder@redhat.com>
13834
13835 * breakpoint.h (enum bptype): Add new overlay event bp type.
13836 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13837
13838 * breakpoint.c (create_internal_breakpoint): New function.
13839 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13840 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13841 (create_thread_event_breakpoint): Ditto.
13842 (create_solib_event_breakpoint): Ditto.
13843 (create_overlay_event_breakpoint): New function.
13844 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13845 (update_breakpoints_after_exec): Delete and re-initialize
13846 overlay event breakpoints after an exec. Add FIXME comment
13847 about longjmp breakpoint.
13848 (print_it_typical): Ignore overlay event breakpoints.
13849 (print_one_breakpoint): Ditto.
13850 (mention): Ditto.
13851 (bpstat_what): Do not stop for overlay event breakpoints.
13852 (delete_breakpoint): Don't delete overlay event breakpoints.
13853 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13854 (breakpoint_re_set): Re-create overlay event breakpoint.
13855
13856 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13857 (overlay_manual_command): Disable overlay breakpoints.
13858 (overlay_off_command): Disable overlay breakpoints.
13859
13860 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13861
13862 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13863 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13864 to here from config/tm-arm.h.
13865 (coff_sym_is_thumb): Make static.
13866 (arm_elf_make_msymbol_special): New function.
13867 (arm_coff_make_msymbol_special): New function.
13868 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13869 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13870 (coff_sym_is_thumb): Delete declaration.
13871 (arm_elf_make_msymbol_special): Declare.
13872 (arm_coff_make_msymbol_special): Declare.
13873 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13874 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13875
13876 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13877
13878 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13879
13880 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13881
13882 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13883 * gdbarch.c gdbarch.h: Regenerate.
13884 * arch-utils.c (default_print_float_info): New function.
13885 * arch-utils.h (default_print_float_info): Prototype it.
13886 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13887 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13888 (PRINT_FLOAT_INFO): Document it.
13889
13890 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13891 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13892 (PRINT_FLOAT_INFO): Define.
13893
13894 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13895
13896 * win32-nat.c (_initialize_check_for_gdb_ini):
13897 Add typecast to sprintf argument to suppress a warning.
13898
13899 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13900
13901 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13902 to allow easier handling of pass state.
13903 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13904 that gives exception name and address.
13905 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13906 and set last_sig value to ourstatus->value.sig. Some missing
13907 exceptions added.
13908 (child_continue): Correctly report continue_status.
13909 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13910 TARGET_SIGNAL_0 (new default value).
13911 (child_resume): consider sig argument passed to decide if
13912 the exception should be passed to debuggee or not.
13913
13914 2002-02-05 Michael Snyder <msnyder@redhat.com>
13915
13916 * regcache.c (fetch_register): Call target_fetch_register
13917 only if we don't call FETCH_PSEUDO_REGISTER.
13918 (store_register): Call target_store_register only if we
13919 don't call STORE_PSEUDO_REGISTER.
13920
13921 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13922
13923 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13924 ELF_MAKE_MSYMBOL_SPECIAL.
13925 * gdbarch.c, gdbarch.h: Regenerate.
13926 * arch-utils.c (default_make_msymbol_special): New function.
13927 * arch-utils.h (default_make_msymbol_special): Export.
13928 * elfread.c (elf_symtab_read): Compile use of
13929 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13930 multiarched.
13931 * coffread.c (coff_symtab_read): Ditto, for
13932 COFF_MAKE_MSYMBOL_SPECIAL.
13933
13934 2002-02-05 Jim Blandy <jimb@redhat.com>
13935
13936 * solib-svr4.c (svr4_truncate_ptr): New function.
13937 (svr4_relocate_section_addresses): Do the address arithmetic with
13938 the appropriate truncation for target addresses, even when
13939 CORE_ADDR is larger than a target address.
13940
13941 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13942
13943 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13944 to (int *).
13945
13946 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13947
13948 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13949 code.
13950
13951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13952
13953 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13954
13955 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13956
13957 * gdbserver/linux-low.c: Remove unused include files.
13958
13959 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13960
13961 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13962 (read_inferior_memory): Use it.
13963 (write_inferior_memory): Likewise.
13964
13965 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13966
13967 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13968 grubbing through sys_errlist.
13969
13970 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13971
13972 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13973
13974 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13975 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13976
13977 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13978
13979 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13980 (do_sfunc, set_cmd_sfunc): New functions.
13981
13982 * command.h (struct cmd_list_element): Add field func.
13983 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13984 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13985 * cli/cli-decode.h: Ditto.
13986
13987 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13988 (help_all, help_cmd_list): Ditto.
13989 (find_cmd, complete_on_cmdlist): Ditto.
13990 * top.c (execute_command): Ditto.
13991
13992 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13993 function.sfunc.
13994
13995 * infcmd.c (notice_args_read): Fix function signature.
13996
13997 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13998 * cli/cli-decode.c (add_set_cmd): Ditto.
13999 * utils.c (initialize_utils): Ditto.
14000 * maint.c (_initialize_maint_cmds): Ditto.
14001 * infrun.c (_initialize_infrun): Ditto.
14002 * demangle.c (_initialize_demangler): Ditto.
14003 * remote.c (add_packet_config_cmd): Ditto.
14004 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14005 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14006 * proc-api.c (_initialize_proc_api): Ditto.
14007 * kod.c (_initialize_kod): Ditto.
14008 * valprint.c (_initialize_valprint): Ditto.
14009 * top.c (init_main): Ditto.
14010 * infcmd.c (_initialize_infcmd): Ditto.
14011 * corefile.c (_initialize_core): Ditto.
14012 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14013 * arch-utils.c (initialize_current_architecture): Ditto.
14014 (_initialize_gdbarch_utils): Ditto.
14015 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14016
14017 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14018 * wince.c (_initialize_inftarg): Ditto.
14019 * symfile.c (_initialize_symfile): Ditto.
14020 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14021 * language.c (_initialize_language): Ditto.
14022 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14023
14024 2002-02-04 Michael Snyder <msnyder@redhat.com>
14025
14026 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14027
14028 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14029
14030 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14031 Add rules for building the register data files.
14032
14033 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14034
14035 * regformats/regdat.sh: Add braces to the definition of
14036 expedite_regs_${arch}.
14037
14038 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14039
14040 * regformats/regdef.h (struct reg): Add comment describing the
14041 requirements for offset and size fields.
14042
14043 2002-02-04 Andreas Schwab <schwab@suse.de>
14044
14045 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14046 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14047
14048 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14049
14050 * gdbarch.sh (copyright): Update years in generated header.
14051 (SMASH_TEXT_ADDRESS): Add rule.
14052 * gdbarch.h, gdbarch.c: Re-generate.
14053 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14054 * dbxread.c: Likewise.
14055 * dwarfread.c: Likewise.
14056 * elfread.c: Likewise.
14057 * somread.c: Likewise.
14058
14059 * arm-tdep.c (arm_smash_text_address): New function.
14060 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14061
14062 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14063
14064 Add support for hardware watchpoints on win32 native.
14065 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14066 CONTEXT_DEBUG_REGISTERS.
14067 (dr variable): New variable. Static array containing a local copy
14068 of debug registers.
14069 (debug_registers_changed): New variable. Reflects when debug registers
14070 are changed and need to be written to inferior.
14071 (debug_registers_used): New variable. Reflects when any debug register
14072 was set, used when new threads are created.
14073 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14074 i386-nat code.
14075 (thread_rec): Set dr array if id is the thread of current_event .
14076 (child_continue, child_resume): Change the debug registers for all
14077 threads if debug_registers_changed.
14078 (child_add_thread): Change the debug registers if debug_registers_used.
14079 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14080 Link nm.h to new nm-cygwin.h file.
14081 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14082 of hardware registers.
14083
14084 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14085
14086 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14087 Restore behavour broken by 2002-01-20 Andrew Cagney
14088 <ac131313@redhat.com> IEEE_FLOAT removal.
14089
14090 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14091
14092 * c-valprint.c (c_val_print): Pass a proper valaddr to
14093 cp_print_class_method.
14094 * valops.c (search_struct_method): If there is only one method
14095 and args is NULL, return that method.
14096
14097 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14098
14099 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14100 accessing tag_name directly.
14101
14102 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14103
14104 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14105 of accessing tag_name directly.
14106
14107 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14108
14109 PR gdb/280
14110 * gdbtypes.c (replace_type): New function.
14111 * gdbtypes.h (replace_type): Add prototype.
14112 * stabsread.c (read_type): Use replace_type.
14113
14114 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14115
14116 * Makefile.in (memattr.o): Add missing dependencies rule.
14117
14118 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14119
14120 * breakpoint.c (break_at_finish_command): Really export.
14121 (break_at_finish_at_depth_command): Ditto.
14122 (tbreak_at_finish_command): Ditto.
14123 * hppa-tdep.c: Include completer.h.
14124 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14125 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14126
14127 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14128
14129 * utils.c (do_write): New function.
14130 (error_stream): Rewrite combining the code from error_begin and
14131 verror.
14132 (verror): Rewrite using error_stream.
14133 (error_begin): Delete function.
14134
14135 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14136
14137 * utils.c (error_begin): Make static.
14138 * defs.h (error_begin): Delete declaration.
14139
14140 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14141 (decode_line_1): Use cplusplus_error instead of error_begin,
14142 cplusplus_hint and return_to_top_level.
14143 * coffread.c (coff_symfile_read): Use error instead of error_begin
14144 and return_to_top_level.
14145 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14146
14147 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14148
14149 * language.h (type_error, range_error): Make string parameter
14150 constant.
14151 * language.c (warning_pre_print): Delete extern declaration.
14152 * dwarfread.c (warning_pre_print): Ditto.
14153 * language.c (type_error, range_error): Rewrite to use verror and
14154 vwarning instead of warning_begin.
14155
14156 2002-02-01 Michael Snyder <msnyder@redhat.com>
14157
14158 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14159 (set_ignore_count): Move misplaced comment back where it belongs.
14160
14161 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14162
14163 * command.h (NO_FUNCTION): Delete macro.
14164 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14165 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14166 * tracepoint.c (_initialize_tracepoint): Ditto.
14167 * cli/cli-decode.c (add_set_cmd): Ditto.
14168 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14169
14170 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14171
14172 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14173 Update ``this'' pointer when calling virtual functions.
14174
14175 2002-02-01 Michael Snyder <msnyder@redhat.com>
14176
14177 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14178 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14179
14180 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14181
14182 * regformats/reg-arm.dat: New file.
14183 * regformats/reg-i386.dat: New file.
14184 * regformats/reg-ia64.dat: New file.
14185 * regformats/reg-m68k.dat: New file.
14186 * regformats/reg-mips.dat: New file.
14187 * regformats/reg-ppc.dat: New file.
14188 * regformats/reg-sh.dat: New file.
14189 * regformats/regdef.h: New file.
14190 * regformats/regdat.sh: New file.
14191
14192 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14193
14194 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14195 (arm_frame_args_address, arm_frame_locals_address): New functions.
14196 (arm_frame_num_args): New function.
14197 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14198 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14199 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14200
14201 2002-01-31 Michael Snyder <msnyder@redhat.com>
14202
14203 * breakpoint.c (break_at_finish_command): Export.
14204 (break_at_finish_at_depth_command): Export.
14205 (tbreak_at_finish_command): Export.
14206 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14207 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14208 "txbreak" commands, which are HPPA specific.
14209
14210 * printcmd.c (disassemble_command): Remove an ancient
14211 artifact of an old merge.
14212
14213 * symfile.h (enum overlay_debugging_state):
14214 Define enum constant values for overlay mode.
14215 * symfile.c (overlay_debugging): Use enums instead of literals.
14216 (overlay_is_mapped, overlay_auto_command,
14217 overlay_manual_command): Ditto.
14218
14219 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14220 breakpoint_here_p, breakpoint_inserted_here_p,
14221 breakpoint_thread_match, bpstat_stop_status,
14222 describe_other_breakpoints, check_duplicates, clear_command):
14223 Coding standard fixes.
14224
14225 * target.c (target_xfer_memory): Add spaces, coding standard.
14226 (do_xfer_memory): Add missing line to trust-readonly
14227 code: check bfd SEC_READONLY flag for section.
14228
14229 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14230
14231 * PROBLEMS: Fix typo, 5.1->5.1.1.
14232
14233 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14236 data symbols, since we search based on textlow and texthigh.
14237 (find_pc_sect_symtab): Likewise.
14238
14239 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14240
14241 * defs.h (vwarning): Declare.
14242 * utils.c (vwarning): New function.
14243 (warning): Call vwarning.
14244 (warning_begin): Delete function.
14245
14246 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14247 the warning message.
14248 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14249 warning_begin.
14250
14251 2002-01-30 Michael Snyder <msnyder@redhat.com>
14252
14253 * NEWS: Mention "set trust-readonly-sections" command.
14254 Mention generate-core-file command.
14255
14256 2002-01-15 Michael Snyder <msnyder@redhat.com>
14257
14258 * target.c: New command, "set trust-readonly-sections on".
14259 (do_xfer_memory): Honor the suggestion to trust readonly sections
14260 by reading them from the object file instead of from the target.
14261 (initialize_targets): Register command "set trust-readonly-sections".
14262
14263 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14264
14265 * parse.c (target_map_name_to_register): Simplify, search regs and
14266 pseudo-regs using a single loop.
14267
14268 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14269
14270 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14271
14272 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14273
14274 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14275 * config/i386/i386v42mp.mh: Add i387-nat.o .
14276 * i386v4-nat.c: Include i387-nat.h.
14277 (supply_fpregset): Use i387_supply_fsave.
14278 (fill_fpregset): Use i387_fill_fsave.
14279
14280 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14281
14282 * arm-tdep.c (arm_call_dummy_words): Define.
14283 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14284 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14285 (CALL_DUMMY_WORDS): Define.
14286 (arm_call_dummy_words): Declare.
14287 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14288 (arm_linux_call_dummy_words): Declare.
14289
14290 2002-01-30 Andreas Schwab <schwab@suse.de>
14291
14292 * m68klinux-nat.c: Fix last change to use regcache_collect
14293 instead of referencing registers[] directly.
14294
14295 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14296
14297 * parse.c (target_map_name_to_register): Delete code wrapped in
14298 #ifdef REGISTER_NAME_ALIAS_HOOK.
14299
14300 2002-01-28 Michael Snyder <msnyder@redhat.com>
14301
14302 * regcache.c (legacy_read_register_gen): Need to be able to
14303 read pseudo-register as well as real register.
14304 (legacy_write_register_gen): Ditto.
14305
14306 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14307
14308 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14309 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14310 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14311 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14312 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14313 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14314 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14315 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14316 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14317 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14318 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14319 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14320 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14321 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14322 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14323 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14324 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14325 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14326 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14327 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14328
14329 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14330
14331 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14332 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14333 (initialize_current_architecture): Update target_byte_order using
14334 information from BFD.
14335 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14336 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14337
14338 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14339
14340 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14341 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14342
14343 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14344 #ifdef INVALID_FLOAT.
14345 * infcmd.c (do_registers_info): Ditto.
14346 * values.c (unpack_double): Ditto. Add comment.
14347
14348 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14349 already commented out.
14350
14351 2002-01-26 Andreas Schwab <schwab@suse.de>
14352
14353 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14354 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14355 registers and add support for PTRACE_GETREGS.
14356
14357 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14358
14359 GDB 5.1.1 released from 5.1 branch.
14360 * NEWS: Add 5.1.1 news.
14361 * README: Sync with 5.1 branch.
14362
14363 2002-01-23 Fred Fish <fnf@redhat.com>
14364
14365 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14366 stabstring on initial malloc. Reallocing will copy it for us,
14367 if necessary.
14368
14369 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14370
14371 * Makefile.in (hpread_h): Delete.
14372 (HFILES_NO_SRCDIR): Remove hpread.h.
14373 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14374 (hpread.o): Update dependencies.
14375 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14376
14377 * hp-psymtab-read.c: Remove file.
14378 * hp-symtab-read.c: Remove file.
14379 * hpread.h: Remove file.
14380
14381 * hpread.c: Merge all contents of hp-psymtab-read.c,
14382 hp-symtab-read.c and hpread.h into this file, as it was prior to
14383 January 1999.
14384
14385 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14386 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14387 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14388 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14389
14390 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14391
14392 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14393 fill_gregset): Call gdbarch_tdep() just once, assign result to
14394 variable and use that, instead of calling the function several
14395 times.
14396
14397 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14398
14399 * configure.host: Accept sparcv9 as alias for sparc64.
14400 * configure.tgt: Likewise.
14401
14402 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14403
14404 * solib-aix5.c (build_so_list_from_mapfile)
14405 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14406 arguments is not reversed.
14407 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14408 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14409
14410 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14411
14412 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14413 modified version of obsolete sh_fetch_pseudo_register.
14414 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14415 (sh4_register_read): New function.
14416 (sh_pseudo_register_write): New function. Renamed and modified
14417 version of obsolete sh_store_pseudo_register.
14418 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14419 (sh4_register_write): New function.
14420 (sh_gdbarch_init): Remove setting of gdbarch function
14421 fetch_pseudo_register and store_pseudo_register. Remove setting of
14422 register_convert_to_raw, register_convert_to_virtual,
14423 register_convertible.
14424 (sh_sh4_register_convertible): Delete. No longer needed. All is
14425 taken care by architecture specific functions
14426 register_read/register_write.
14427 (sh_sh4_register_convert_to_virtual): Make static.
14428 (sh_sh4_register_convert_to_raw): Ditto.
14429
14430 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14431
14432 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14433 (floatformat_is_nan, floatformat_mantissa): Ditto.
14434
14435 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14436 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14437 builtin_type_ieee_double_little,
14438 builtin_type_ieee_double_littlebyte_bigword,
14439 builtin_type_m68881_ext, builtin_type_i960_ext,
14440 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14441 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14442 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14443 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14444
14445 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14446
14447 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14448 parameter. Set frameless flag if it exists and depended of
14449 whether the scanned function is frameless or not.
14450 (xstormy16_skip_prologue): If function is frameless, return
14451 result of xstormy16_scan_prologue().
14452 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14453 call.
14454
14455 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14456
14457 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14458 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14459 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14460 sh_sh4_register_byte, sh_sh4_register_raw_size,
14461 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14462 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14463 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14464 sh_store_pseudo_register, sh_do_pseudo_register): Call
14465 gdbarch_tdep() just once, assign result to variable and use that,
14466 instead of calling the function several times.
14467
14468 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14469
14470 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14471 macros instead of LAST_FPU_CTRL_REGNUM.
14472 (store_register): Likewise.
14473
14474 2002-01-21 Jim Blandy <jimb@redhat.com>
14475
14476 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14477 is up-to-date before running the program, not just when a program
14478 exits.
14479
14480 2002-01-21 Fred Fish <fnf@redhat.com>
14481
14482 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14483 when we have found all instructions we are looking for.
14484
14485 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14486
14487 * arm-tdep.c (arm_register_name): New function.
14488 (arm_registers_names): Make static.
14489 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14490 (arm_register_name): Declare.
14491 (REGISTER_NAME): Use it.
14492
14493 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14494 Kevin Buettner <kevinb@redhat.com>
14495
14496 Convert arm targets to new FRAME interface.
14497 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14498 (arm_frame_find_save_regs): Delete.
14499 (arm_frame_init_saved_regs): New.
14500 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14501 Allocate extra_info as required. Convert all uses of fsr.regs
14502 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14503 to use extra_info.
14504 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14505 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14506 (check_prologue_cache, save_prologue_cache): Likewise.
14507 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14508 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14509 (FRAME_FIND_SAVED_REGS): Delete.
14510 (arm_frame_find_saved_regs): Delete prototype.
14511 (arm_frame_init_saved_regs): New prototype.
14512 (FRAME_INIT_SAVED_REGS): Define.
14513
14514 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14515
14516 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14517
14518 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14519
14520 From Jeff Law <law@redhat.com>:
14521 * infttrace.c: Include <sys/pstat.h>.
14522 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14523 exec file if the ttrace equivalent fails.
14524
14525 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14526
14527 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14528 (closeLogFile): Ditto.
14529
14530 2002-01-20 Michael Chastain <mec@shout.net>
14531
14532 * top.c (print_gdb_version): Bump copyright year to 2002.
14533
14534 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14535
14536 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14537 Zannoni and Eli Zaretskii.
14538
14539 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14540
14541 * buildsym.c: Update copyright years.
14542 * c-typeprint.c: Likewise.
14543 * dwarf2read.c: Likewise.
14544 * f-typeprint.c: Likewise.
14545 * gdbtypes.c: Likewise.
14546 * gdbtypes.h: Likewise.
14547 * hp-symtab-read.c: Likewise.
14548 * hpread.c: Likewise.
14549 * mdebugread.c: Likewise.
14550 * p-typeprint.c: Likewise.
14551
14552 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14553
14554 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14555 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14556 byte-order selectable.
14557 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14558 * arch-utils.c: Ditto.
14559 (set_endian): Ditto.
14560 (set_endian_from_file): Ditto.
14561 * gdbserver/low-sim.c (create_inferior): Ditto.
14562 * gdbarch.sh: Ditto.
14563 * gdbarch.h: Re-generate.
14564 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14565 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14566 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14567 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14568 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14569 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14570 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14571 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14572 macro definition.
14573 * config/mips/tm-wince.h: Remove #undef of macro
14574 TARGET_BYTE_ORDER_SELECTABLE.
14575 * config/sh/tm-wince.h: Ditto.
14576
14577 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14578
14579 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14580 member function fields. Add accessor macro
14581 TYPE_FN_FIELD_ARTIFICIAL.
14582 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14583 * c-typeprint.c (c_type_print_base): Skip artificial member
14584 functions.
14585
14586 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14587
14588 * f-typeprint.c: Delete unused function f_type_print_args.
14589 * p-typeprint.c: Delete unused function pascal_type_print_args.
14590
14591 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14592
14593 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14594 comment. Add ``artificial'' to ``union field_location''.
14595
14596 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14597
14598 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14599 * mdebugread.c (parse_symbol): Likewise.
14600 * stabsread.c (define_symbol): Likewise.
14601 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14602 initializing TYPE_FIELD_BITPOS to n (obsolete).
14603 (hpread_doc_function_type): Likewise.
14604 * hpread.c (hpread_function_type): Likewise.
14605
14606 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14607
14608 * configure.in (host_makefile_frag): Only require a host makefile
14609 fragment when a native build.
14610 * configure: Re-generate.
14611
14612 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14613
14614 * doublest.h (floatformat_from_type): Declare.
14615 * doublest.c (floatformat_from_type): New function.
14616 (convert_typed_floating): Use.
14617
14618 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14619 call to function floatformat_from_type.
14620
14621 * gdbarch.sh (IEEE_FLOAT): Delete.
14622 * gdbarch.h, gdbarch.c: Re-generate.
14623 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14624 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14625 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14626 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14627 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14628 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14629 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14630 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14631 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14632 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14633 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14634 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14635
14636 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14637 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14638 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14639 * sh-tdep.c (sh_gdbarch_init): Ditto.
14640 * mips-tdep.c (mips_gdbarch_init): Ditto.
14641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14642 * cris-tdep.c (cris_gdbarch_init): Ditto.
14643
14644 2002-01-20 Jiri Smid <smid@suse.cz>
14645
14646 * configure.host, configure.tgt: Support x86-64.
14647 * NEWS: Note new target x86-64.
14648
14649 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14650 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14651 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14652 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14653 x86-64-linux-nat.o): Fix dependencies.
14654
14655 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14656
14657 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14658 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14659 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14660 * config/sparc/xm-sun4os4.h: Delete file.
14661 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14662
14663 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14664
14665 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14666 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14667 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14668 * config/i386/i386lynx.mh (XM_FILE): Delete.
14669 * config/rs6000/xm-rs6000ly.h: Delete file.
14670 * config/sparc/xm-sparclynx.h: Delete file.
14671 * config/m68k/xm-m68klynx.h: Delete file.
14672 * config/i386/xm-i386lynx.h: Delete file.
14673 * config/xm-lynx.h: Delete file.
14674 * config/djgpp/fnchange.lst: Update.
14675
14676 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14677
14678 * alpha-tdep.c (alpha_register_byte): New function.
14679 (alpha_register_raw_size): Ditto.
14680 (alpha_register_virtual_size): Ditto.
14681 (alpha_skip_prologue_internal): Renamed from
14682 alpha_skip_prologue.
14683 (alpha_skip_prologue): New version that calls
14684 alpha_skip_prologue_internal.
14685 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14686 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14687 second argument from alpha_skip_prologue.
14688 (REGISTER_BYTE): Use alpha_register_byte.
14689 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14690 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14691 (FRAMELESS_FUNCTION_INVOCATION): Use
14692 generic_frameless_function_invocation_not.
14693 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14694 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14695
14696 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14697
14698 * config/mips/xm-news-mips.h: Delete file.
14699 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14700
14701 * config/m88k/xm-m88k.h: Delete file.
14702 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14703 * config/m88k/xm-delta88v4.h: Ditto.
14704 * config/m88k/xm-delta88.h: Ditto.
14705
14706 * config/alpha/xm-fbsd.h: Delete file.
14707 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14708
14709 * config/sparc/xm-sparc.h: Delete file.
14710 * Makefile.in (xm-sun4os4.h): Delete dependency.
14711 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14712 * config/sparc/xm-sun4os4.h: Ditto.
14713 * config/sparc/xm-linux.h: Ditto.
14714
14715 * config/i386/xm-windows.h: Delete file.
14716
14717 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14718
14719 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14720 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14721
14722 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14723
14724 * alpha-tdep.c (alpha_call_dummy_words): New.
14725 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14726 (CALL_DUMMY_P): Define.
14727 (CALL_DUMMY_WORDS): Define.
14728 (SIZEOF_CALL_DUMMY_WORDS): Define.
14729
14730 2002-01-19 Per Bothner <per@bothner.com>
14731
14732 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14733 isn't NULL, which can happen with some gcj-3.x-produced code.
14734
14735 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14736
14737 * alpha-tdep.c (alpha_register_virtual_type): New function.
14738 (alpha_init_frame_pc_first): Ditto.
14739 (alpha_fix_call_dummy): Ditto.
14740 (alpha_store_struct_return): Ditto.
14741 (alpha_extract_struct_value_address): Ditto.
14742 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14743 alpha_register_virtual_type.
14744 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14745 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14746 alpha_extract_struct_value_address.
14747 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14748 (INIT_FRAME_PC): Use init_frame_pc_noop.
14749 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14750
14751 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14752
14753 * i386gnu-nat.c: Include "i386-tdep.h".
14754 (fetch_fpregs): Simplify code dealing with uninitialized floating
14755 point states such that it doesn't require FP7_REGNUM.
14756
14757 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14758
14759 * alpha-tdep.c (frame_extra_info): New.
14760 (alpha_find_saved_regs): Make static. Use
14761 frame->extra_info.
14762 (alpha_frame_init_saved_regs): New function.
14763 (alpha_frame_saved_pc): Use frame->extra_info.
14764 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14765 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14766 (init_extra_frame_info): Rename to...
14767 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14768 (alpha_print_extra_frame_info): New function.
14769 (alpha_frame_locals_address): Ditto.
14770 (alpha_frame_args_address): Ditto.
14771 (alpha_pop_frame): Use frame->extra_info.
14772 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14773 alpha_frame_args_address.
14774 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14775 (alpha_find_saved_regs): Remove prototype.
14776 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14777 (EXTRA_FRAME_INFO): Remove.
14778 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14779 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14780
14781 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14782
14783 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14784 (alpha_cannot_fetch_register): Ditto.
14785 (alpha_cannot_store_register): Ditto.
14786 (alpha_register_convertible): Ditto.
14787 (alpha_use_struct_convention): Ditto.
14788 * config/alpha/tm-alpha.h: Update copyright years.
14789 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14790 (INNER_THAN): Use core_addr_lessthan.
14791 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14792 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14793 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14794 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14795 (FRAME_CHAIN): Remove unnecessary cast.
14796
14797 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14798
14799 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14800 obsolete.
14801
14802 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14803
14804 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14805 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14806 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14807 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14808 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14809 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14810 * x86-64-linux-nat.c: Ditto.
14811
14812 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14813
14814 * alpha-tdep.c (alpha_register_name): New function.
14815 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14816 (REGISTER_NAME): Define.
14817
14818 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14819
14820 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14821
14822 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14823
14824 * alpha-tdep.c: Update copyright years.
14825 (alpha_next_pc): New function.
14826 (alpha_software_single_step): Ditto.
14827 * config/alpha/tm-alpha.h: Add prototype for
14828 alpha_software_single_step.
14829
14830 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14831
14832 * alphabsd-nat.c: Update copyright years.
14833 (fill_gregset): Use regcache_collect.
14834 (fill_fpregset): Likewise.
14835 (fetch_inferior_registers): Only fetch integer registers
14836 if requested to do so.
14837 (store_inferior_registers): Only store integer registers
14838 if requested to do so.
14839
14840 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14841
14842 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14843 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14844 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14845 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14846 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14847 * config/arm/linux.mh (XDEPFILES): Delete.
14848 * config/arm/nbsd.mh (XDEPFILES): Delete.
14849 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14850 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14851 * config/i386/i386m3.mh (XDEPFILES): Delete.
14852 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14853 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14854 * config/i386/fbsd.mh (XDEPFILES): Delete.
14855 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14856 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14857 * config/i386/i386v4.mh (XDEPFILES): Delete.
14858 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14859 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14860 * config/i386/i386aix.mh (XDEPFILES): Delete.
14861 * config/i386/go32.mh (XDEPFILES): Delete.
14862 * config/i386/cygwin.mh (XDEPFILES): Delete.
14863 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14864 * config/i386/i386mach.mh (XDEPFILES): Delete.
14865 * config/i386/i386v32.mh (XDEPFILES): Delete.
14866 * config/i386/linux.mh (XDEPFILES): Delete.
14867 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14868 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14869 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14870 * config/i386/i386sco.mh (XDEPFILES): Delete.
14871 * config/i386/i386v.mh (XDEPFILES): Delete.
14872 * config/i386/nbsd.mh (XDEPFILES): Delete.
14873 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14874 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14875 * config/i386/symmetry.mh (XDEPFILES): Delete.
14876 * config/i386/obsd.mh (XDEPFILES): Delete.
14877 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14878 * config/ia64/linux.mh (XDEPFILES): Delete.
14879 * config/ia64/aix.mh (XDEPFILES): Delete.
14880 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14881 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14882 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14883 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14884 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14885 * config/m68k/linux.mh (XDEPFILES): Delete.
14886 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14887 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14888 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14889 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14890 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14891 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14892 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14893 * config/m88k/delta88.mh (XDEPFILES): Delete.
14894 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14895 * config/m88k/m88k.mh (XDEPFILES): Delete.
14896 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14897 * config/mips/linux.mh (XDEPFILES): Delete.
14898 * config/mips/irix6.mh (XDEPFILES): Delete.
14899 * config/mips/irix5.mh (XDEPFILES): Delete.
14900 * config/mips/irix4.mh (XDEPFILES): Delete.
14901 * config/mips/irix3.mh (XDEPFILES): Delete.
14902 * config/mips/decstation.mh (XDEPFILES): Delete.
14903 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14904 (NATDEPFILES): Move core-aout.o to here.
14905 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14906 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14907 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14908 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14909 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14910 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14911 * config/pa/hpux11.mh (XDEPFILES): Delete.
14912 * config/powerpc/aix.mh (XDEPFILES): Delete.
14913 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14914 * config/powerpc/linux.mh (XDEPFILES): Delete.
14915 * config/romp/rtbsd.mh: Rename XDEPFILES.
14916 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14917 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14918 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14919 * config/s390/s390.mh (XDEPFILES): Delete.
14920 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14921 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14922 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14923 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14924 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14925 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14926 * config/sparc/linux.mh (XDEPFILES): Delete.
14927 * config/vax/vaxult.mh (XDEPFILES): Delete.
14928 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14929 * Makefile.in (DEPFILES): Remove XDEPFILES.
14930
14931 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14932
14933 * utils.c (internal_verror): Fix comments, default is yes not no.
14934 Update queries to match. Default to quit and dump core.
14935
14936 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14937
14938 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14939 copyright.
14940 * defs.h, event-top.c, gdbcmd.h: Ditto.
14941 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14942 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14943 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14944 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14945 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14946 * mi/mi-main.c:Ditto.
14947
14948 * stack.c, symfile.c: Update copyright.
14949
14950 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14951
14952 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14953 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14954 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14955 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14956
14957 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14958
14959 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14960 * gdbserver/low-lynx.c (myattach): Likewise.
14961 * gdbserver/low-nbsd.c (myattach): Likewise.
14962 * gdbserver/low-sim.c (myattach): Likewise.
14963 * gdbserver/low-sparc.c (myattach): Likewise.
14964 * gdbserver/low-sun3.c (myattach): Likewise.
14965
14966 * gdbserver/low-linux.c (myattach): New function.
14967
14968 * gdbserver/server.c (attach_inferior): New function.
14969 (main): Handle "--attach".
14970
14971 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14972
14973 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14974 maintainer.
14975
14976 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14977
14978 * c-typeprint.c (is_type_conversion_operator): Add additional
14979 check for non-conversion operators.
14980
14981 2002-01-15 Michael Snyder <msnyder@redhat.com>
14982
14983 * linux-proc.c: Add "info proc" command, a la procfs.c.
14984 (read_mapping): New function, abstract and re-use code.
14985 (linux_find_memory_regions): Use new func read_mapping.
14986 (linux_info_proc_cmd): New function, implement "info proc".
14987 (_initialize_linux_proc): Add new command "info proc".
14988
14989 2002-01-15 Michael Snyder <msnyder@redhat.com>
14990
14991 * symfile.c (generic_load): Use bfd_map_over_sections method
14992 instead of manipulating bfd structure members directly.
14993 (add_section_size_callback): New function, bfd sections callback
14994 used by generic_load.
14995 (load_sections_callback): New function, bfd sections callback
14996 used by generic_load.
14997
14998 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14999
15000 [Based on work by Jim Blandy]
15001 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15002 (builtin_type_vec128): Export.
15003 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15004 types.
15005 (builtin_type_vec128): New builtin type for 128 bit vector
15006 registers.
15007 (build_gdbtypes): Initialize builtin_type_v16qi and
15008 builtin_type_v8hi. Create the vec128 register builtin type
15009 structure.
15010 (build_builtin_type_vec128): New function.
15011 (_initialize_gdbtypes): Register builtin_type_v16qi and
15012 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15013 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15014 AltiVec register to new builtin type.
15015
15016 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15017
15018 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15019 to make_cv_type.
15020
15021 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15022
15023 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15024 CLEAN_UP_REGISTER_VALUE.
15025 * regcache.c (supply_register): Update only call.
15026
15027 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15028
15029 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15030 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15031 a29k-*-vxworks* targets as obsolete.
15032
15033 2002-01-14 Michael Snyder <msnyder@redhat.com>
15034
15035 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15036 until we can resolve portability issues.
15037 * gregset.h: Remove references to fpxregs.
15038 * gcore.c (gcore_command): Initialize note_sec to NULL.
15039
15040 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15041
15042 * signals.c (target_signal_to_name): Rewrite. Only use
15043 signals[].name when in bounds and non-NULL.
15044
15045 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15046
15047 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15048 * signals.c (target_signal_to_name): Verify that SIG is within the
15049 bounds of the signals array.
15050
15051 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15052
15053 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15054
15055 2002-01-13 Keith Seitz <keiths@redhat.com>
15056
15057 * stack.c (print_frame_info_base): Print the frame's pc
15058 only if when print_frame_info_listing_hook is not defined.
15059
15060 2002-01-13 Keith Seitz <keiths@redhat.com>
15061
15062 * varobj.c (varobj_set_value): Make sure that there were no
15063 errors evaluating the object before attempting to set its
15064 value.
15065 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15066 so this offset adjustment is no longer necessary.
15067 (create_child): Don't set the error flag if the child is
15068 a CPLUS_FAKE_CHILD.
15069 (value_of_child): If value_fetch_lazy fails, return NULL
15070 so that callers will be notified that an error occurred.
15071 (c_value_of_variable): Delay check of variable's validity
15072 until later. We actually want all structs and unions to have
15073 the value "{...}".
15074 Do not return "???" for variables which could not be evaluated.
15075 This error condition must be returned to the caller so that it
15076 can get the error condition from gdb.
15077 (cplus_name_of_child): Adjust index for vptr before figuring
15078 out the name of the child.
15079 (cplus_value_of_child): If a child's (real) parent is not valid,
15080 don't even bother trying to give a value for it. Just return
15081 an error. Change all instances in this function.
15082 (cplus_type_of_child): If our parent is one of the "fake"
15083 parents, we need to get at the type of the real parent, and
15084 derive the child's true type using this information.
15085
15086 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15087
15088 From 2002-01-09 John Marshall <johnm@falch.net>:
15089 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15090 sources.redhat.com, and tweak some related URLs which had
15091 suffered from linkrot.
15092
15093 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15094
15095 From Jeff law:
15096 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15097 structures passed in registers.
15098
15099 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15100
15101 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15102 white space which prevented compilation. Reported by DSK
15103 <dsk@student.unsw.edu.au>.
15104
15105 2002-01-11 Michael Snyder <msnyder@redhat.com>
15106
15107 * symfile.c (build_section_addr_info_from_section_tab):
15108 Use bfd access method instead of manipulating bfd directly.
15109 (syms_from_objfile): Ditto.
15110 (simple_overlay_update_1): Ditto.
15111 (simple_overlay_update): Ditto.
15112 (generic_load): Ditto.
15113 (overlay_unmapped_address): FIXME comment, bfd access methods.
15114 (sections_overlap): FIXME comment, bfd access methods.
15115 (pc_in_mapped_range): FIXME comment, bfd access methods.
15116 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15117 (section_is_mapped): FIXME comment, bfd access methods.
15118 (section_is_overlay): FIXME comment, bfd access methods.
15119
15120 * symfile.c (generic_load): Whitespace and long line cleanups.
15121 Remove duplicate variable, change several local variables to
15122 more appropriate data types.
15123 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15124
15125 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15126
15127 From Peter Schauer:
15128 * language.c (longest_local_hex_string_custom): Use phex_nz to
15129 convert NUM to a hex string.
15130
15131 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15132
15133 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15134 the function.
15135 Update Copyright year.
15136
15137 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15138
15139 * language.c (longest_raw_hex_string): Delete unused function.
15140
15141 2002-01-11 Petr Sorfa <petrs@caldera.com>
15142
15143 * MAINTAINERS (write-after-approval): Add myself.
15144 * dwarf2read.c (read_tag_string_type): Handling of
15145 DW_AT_byte_size.
15146 (read_tag_string_type): FORTRAN fix to prevent propagation of
15147 first string size.
15148 (set_cu_language): Handling of DW_LANG_Fortran95
15149
15150 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15151
15152 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15153 GETPID(inferior_ptid).
15154 (store_inferior_registers): Likewise.
15155
15156 2002-01-10 Jason Merrill <jason@redhat.com>
15157
15158 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15159 Fix DW_OP_minus.
15160
15161 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15162
15163 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15164 and bfd/elf32-sh-nbsd.c.
15165
15166 2002-01-10 Michael Snyder <msnyder@redhat.com>
15167
15168 * NEWS: Mention --pid and corefile/proc-id behavior change.
15169
15170 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15171 * gcore.c: Include cli/cli-decode.h instead of command.h.
15172
15173 * main.c (captured_main): Add new command line option "--pid".
15174 If the second command line argument (following the symbol-file)
15175 begins with a digit, try to attach to it before trying to open
15176 it as a corefile.
15177 (print_gdb_help): Document the "--pid" argument.
15178
15179 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15180
15181 * completer.c (command_completer): New function.
15182
15183 * completer.h <command_completer>: Add prototype.
15184
15185 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15186 completer for the "help" command.
15187
15188 2002-01-09 Jason Merrill <jason@redhat.com>
15189
15190 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15191
15192 2002-01-09 Michael Snyder <msnyder@redhat.com>
15193
15194 * i386-linux-nat.c (fill_fpxregset): Make global.
15195 (store_fpxregset): Ditto.
15196
15197 * gregset.h (gdb_fpxregset_t): Define.
15198 (supply_fpxregset): Prototype.
15199 (fill_fpxregset): Prototype.
15200
15201 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15202
15203 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15204
15205 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15206 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15207 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15208
15209 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15210
15211 * MAINTAINERS: Update target maintainer rules so that any
15212 Maintainer can approve a tested patch for a maintenance-only
15213 target.
15214
15215 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15216
15217 * MAINTAINERS (write-after-approval): Add myself.
15218
15219 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15220 IN_SIGTRAMP.
15221
15222 2002-01-08 Michael Snyder <msnyder@redhat.com>
15223
15224 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15225 real name of the executable, rather than the /proc name.
15226
15227 2002-01-03 Michael Snyder <msnyder@redhat.com>
15228
15229 Implement a "generate-core-file" command in gdb, save target state.
15230 * gcore.c: New file. Implement new command 'generate-core-file'.
15231 Save a corefile image of the current state of the inferior.
15232 * linux-proc.c: Add linux-specific code for saving corefiles.
15233 * target.h (struct target_ops): Add new target vectors for saving
15234 corefiles; to_find_memory_regions and to_make_corefile_notes.
15235 (target_find_memory_regions): New macro.
15236 (target_make_corefile_notes): New macro.
15237 * target.c (update_current_target): Inherit new target methods.
15238 (dummy_find_memory_regions): New place-holder method.
15239 (dummy_make_corefile_notes): New place-holder method.
15240 (init_dummy_target): Initialize new dummy target vectors.
15241 * exec.c (exec_set_find_memory_regions): New function.
15242 Allow the exec_ops vector for memory regions to be taken over.
15243 (exec_make_note_section): New function, target vector method.
15244 * defs.h (exec_set_find_memory_regions): Export prototype.
15245 * procfs.c (proc_find_memory_regions): New function, corefile method.
15246 (procfs_make_note_section): New function, corefile method.
15247 (init_procfs_ops): Set new target vector pointers.
15248 (find_memory_regions_callback): New function.
15249 (procfs_do_thread_registers): New function.
15250 (procfs_corefile_thread_callback): New function.
15251 * sol-thread.c (sol_find_memory_regions): New function.
15252 (sol_make_note_section): New function.
15253 (init_sol_thread_ops): Initialize new target vectors.
15254 * inftarg.c (inftarg_set_find_memory_regions): New function.
15255 Allow to_find_memory_regions vector to be taken over.
15256 (inftarg_set_make_corefile_notes): New function.
15257 Allow to_make_corefile_notes vector to be taken over.
15258 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15259 interface layer if not target_has_execution (may be a corefile).
15260 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15261 * config/sparc/sun4sol2.mh: Ditto.
15262 * config/alpha/alpha-linux.mh: Ditto.
15263 * config/arm/linux.mh: Ditto.
15264 * config/i386/x86-64linux.mh: Ditto.
15265 * config/ia64/linux.mh: Ditto.
15266 * config/m68k/linux.mh: Ditto.
15267 * config/mips/linux.mh: Ditto.
15268 * config/powerpc/linux.mh: Ditto.
15269 * config/sparc/linux.mh: Ditto.
15270
15271 2002-01-07 Michael Snyder <msnyder@redhat.com>
15272
15273 * arm-linux-nat.c: Remove references to regcache.c internal data
15274 (registers[] and register_valid[]).
15275
15276 2002-01-07 Michael Snyder <msnyder@redhat.com>
15277
15278 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15279 so that attaching to a pid will automatically read the process's
15280 symbol file and shlibs.
15281 * Makefile.in: Add rule for linux-proc.o.
15282 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15283 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15284 * config/arm/linux.mh: Ditto.
15285 * config/i386/linux.mh: Ditto.
15286 * config/i386/x86-64linux.mh: Ditto.
15287 * config/ia64/linux.mh: Ditto.
15288 * config/m68k/linux.mh: Ditto.
15289 * config/mips/linux.mh: Ditto.
15290 * config/powerpc/linux.mh: Ditto.
15291 * config/sparc/linux.mh: Ditto.
15292
15293 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15294
15295 * win32-nat.c: Add i386-tdep.h dependency.
15296
15297 2002-01-07 Michael Snyder <msnyder@redhat.com>
15298
15299 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15300 instead of bfd_get_arch_size. Don't bail out just because
15301 there's no exec_bfd.
15302
15303 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15304 * p-valprint.c (pascal_object_print_value): Ditto.
15305 * somread.c (som_symtab_read): Ditto.
15306 * symfile.c (simple_free_overlay_region_table): Ditto.
15307 * valops.c (value_assign): Ditto.
15308
15309 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15310 use tilde_expand and strerror for opening save-tracepoints file.
15311
15312 * thread-db.c (thread_db_new_objfile): Indendation fix.
15313
15314 * infptrace.c (GDB_MAX_ALLOCA): New define.
15315 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15316 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15317 can be overridden with whatever value is appropriate to the host).
15318 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15319 alloca to allocate potentially large buffer.
15320 * rs6000-nat.c (child_xfer_memory): Ditto.
15321 * symm-nat.c (child_xfer_memory): Ditto.
15322 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15323
15324 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15325
15326 From Nick Clifton <nickc@redhat.com>
15327 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15328
15329 2002-01-07 Michael Snyder <msnyder@redhat.com>
15330
15331 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15332 Don't use exec_bfd if it's NULL.
15333
15334 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15335
15336 * valops.c (value_arg_coerce): Fix formatting.
15337
15338 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15339
15340 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15341 * gnu-nat.c: Ditto.
15342
15343 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15344
15345 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15346 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15347 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15348 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15349 z8k-coff have not been multi-arched. Update z8k-coff build
15350 status.
15351
15352 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15353
15354 * MAINTAINERS: Mark a29k target as obsolete.
15355 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15356 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15357 comments.
15358 * NEWS: Note that a29k targets are obsolete.
15359 * a29k-tdep.c: Mark as obsolete.
15360 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15361 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15362 a29k-*-vxworks* targets as obsolete.
15363 * remote-adapt.c: Obsolete.
15364 * remote-eb.c: Obsolete.
15365 * remote-mm.c: Obsolete.
15366 * remote-udi.c: Obsolete.
15367 * config/a29k/a29k-udi.mt: Obsolete.
15368 * config/a29k/a29k.mt: Obsolete.
15369 * config/a29k/tm-a29k.h: Obsolete.
15370 * config/a29k/tm-vx29k.h: Obsolete.
15371 * config/a29k/vx29k.mt: Obsolete.
15372
15373 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15374
15375 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15376 with BFD_ENDIAN_BIG.
15377
15378 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15379
15380 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15381 * configure, config.in: Re-generate.
15382 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15383 * defs.h: Do not include <endian.h>.
15384
15385 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15386
15387 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15388 * config.in: Regenerate.
15389 * configure.in: Update copyright years.
15390 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15391 * configure: Regenerate.
15392 * i386bsd-nat.c: Update copyright years.
15393 (fill_gregset): Use regcache_collect.
15394 (fetch_inferior_registers): Only fetch integer registers
15395 if requested to do so. Add support for XMM registers
15396 using PT_GETXMMREGS.
15397 (store_inferior_registers): Only store integer registers
15398 if requested to do so. Add support for XMM registers
15399 using PT_SETXMMREGS.
15400 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15401 (store_inferior_registers): Remove.
15402 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15403 (fetch_elfcore_registers): New function.
15404 (i386nbsd_elfcore_fns): New.
15405 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15406 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15407 i386bsd-nat.o.
15408 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15409 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15410 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15411 * config/i386/tm-nbsd.h: Update copyright years.
15412 (HAVE_SSE_REGS): Define.
15413 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15414 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15415 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15416 (SIGCONTEXT_PC_OFFSET): Remove.
15417 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15418
15419 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15420
15421 * configure.tgt: Remove powerpc-*-macos* target.
15422 * config/m68k/xm-mpw.h: Delete file.
15423 * config/xm-mpw.h: Delete file.
15424 * ser-mac.c: Delete file.
15425 * mpw-make.sed: Delete file.
15426 * mpw-config.in: Delete file.
15427 * mac-xdep.c: Delete file.
15428 * mac-gdb.r: Delete file.
15429 * mac-defs.h: Delete file.
15430 * mac-nat.c: Delete file.
15431 * config/powerpc/macos.mh: Delete file.
15432 * config/powerpc/macos.mt: Delete file.
15433 * config/powerpc/nm-macos.h: Delete file.
15434 * config/powerpc/tm-macos.h: Delete file.
15435 * source.c (openp, open_source_file): Remove obsolete code.
15436 * top.c (gdb_readline): Ditto.
15437 * utils.c (query): Ditto.
15438 * event-top.c (display_gdb_prompt): Ditto.
15439 * Makefile.in (ser-mac.o): Delete obsolete target.
15440 * NEWS: Update.
15441
15442 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15443
15444 * defs.h (BIG_ENDIAN): Delete macro definition.
15445 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15446 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15447 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15448 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15449 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15450 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15451 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15452 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15453 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15454 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15455 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15456 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15457 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15458 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15459 * gdbarch.c: Re-generate.
15460
15461 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15462
15463 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15464 for core files.
15465
15466 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15467
15468 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15469
15470 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15471
15472 * value.h (value_ptr): Delete typedef.
15473
15474 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15475
15476 * i386nbsd-nat.c: Update copyright years.
15477 Include i386-tdep.h.
15478
15479 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15480
15481 * stabsread.c: Update copyright years.
15482
15483 From Debashis Mahata <debashis.mahata@wipro.com>:
15484 (read_struct_fields): Deal with Sun C compiler erroneous stab
15485 output for structs and unions.
15486 Fix PR gdb/269.
15487
15488 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15489
15490 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15491 prototype.
15492
15493 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15494
15495 * cp-abi.c: Fix whitespace.
15496 (baseclass_offset): New wrapper function.
15497 * cp-abi.h (baseclass_offset): Add prototype.
15498 (struct cp_abi_ops): Add baseclass_offset pointer.
15499
15500 * valops.c (vb_match): Move to...
15501 * gnu-v2-abi.c (vb_match): here.
15502 * valops.c (baseclass_offset): Move to...
15503 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15504
15505 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15506
15507 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15508 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15509 * hpacc-abi.c (init_hpacc_ops): Likewise.
15510
15511 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15512
15513 * valops.c (find_overload_match): Accept obj as a
15514 reference parameter. Update it before returning.
15515 * value.h (find_overload_match): Update prototype.
15516 * eval.c (evaluate_subexp_standard): Pass object to
15517 find_overload_match by reference.
15518
15519 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15520
15521 * valarith.c: Replace value_ptr with struct value pointer. Remove
15522 register attribute from value declarations.
15523 * valops.c: Ditto.
15524 * value.h: Ditto.
15525 * scm-lang.c (scm_lookup_name): Ditto.
15526
15527 2002-01-03 Michael Snyder <msnyder@redhat.com>
15528
15529 Abstract the functionality of iterating over mapped memory
15530 regions into a general purpose iterator function.
15531 * procfs.c (iterate_over_mappings): New function, general purpose
15532 iterator for memory sections.
15533 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15534 (solib_mappings_callback): New function, callback for above.
15535 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15536 (info_mappings_callback): New function, callback for above.
15537
15538 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15539
15540 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15541
15542 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15543 * i386-tdep.c: Include "elf-bfd.h".
15544 (process_note_abi_tag_sections): New function.
15545 (i386_gdbarch_init): Add code to recognize various OS/ABI
15546 combinations.
15547
15548 * maint.c (_initialize_maint_cmds): Add missing \ in
15549 string-literal.
15550
15551 For older changes see ChangeLog-2001
15552 \f
15553 Local Variables:
15554 mode: change-log
15555 left-margin: 8
15556 fill-column: 74
15557 version-control: never
15558 End:
This page took 0.339801 seconds and 5 git commands to generate.