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 * x86-64-linux-tdep.c: Include "osabi.h".
4 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5
6 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7
8 2003-01-06 Andrew Cagney <cagney@redhat.com>
9
10 * MAINTAINERS (Target Instruction Set Architectures): Update
11 arm-elf. Can be built with -Werror, has been multiarched.
12
13 * value.h (unpack_long): Make buffer parameter constant.
14 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
15 * scm-lang.h (scm_parse): Ditto.
16 * defs.h (extract_typed_address, extract_address): Ditto.
17 (extract_long_unsigned_integer): Ditto.
18 * inferior.h (unsigned_pointer_to_address): Ditto.
19 (signed_pointer_to_address): Ditto.
20 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
21 * gdbarch.h, gdbarch.c: Regenerate.
22 * findvar.c (extract_long_unsigned_integer): Update.
23 (extract_address): Update.
24 (extract_typed_address): Update.
25 (unsigned_pointer_to_address): Update.
26 * values.c (unpack_long): Update.
27 (unpack_double): Update.
28 (unpack_pointer): Update.
29 (unpack_field_as_long): Update.
30 * d10v-tdep.c (d10v_pointer_to_address): Update.
31 * avr-tdep.c (avr_pointer_to_address): Update.
32 * scm-lang.c (scm_unpack): Update.
33 * findvar.c (signed_pointer_to_address): Update.
34
35 2003-01-06 Michal Ludvig <mludvig@suse.cz>
36
37 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
38 since it is in i386-tdep.c.
39
40 2003-01-06 J. Brobecker <brobecker@gnat.com>
41
42 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
43 failure introduced in the previous change.
44
45 2003-01-05 Michael Chastain <mec@shout.net>
46
47 * README: Remove references to deleted remote-*.c files:
48 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
49 remote-nrom.c, remote-os9k.c, remote-udi.c.
50
51 2003-01-05 Mark Kettenis <kettenis@gnu.org>
52
53 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
54 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
55 i386_get_longjmp_target.
56
57 2003-01-05 Andrew Cagney <ac131313@redhat.com>
58
59 * arm-tdep.c (prologue_cache): Change to a pointer.
60 (_initialize_arm_tdep): Allocate prologue_cache.
61 (check_prologue_cache): Update.
62 (save_prologue_cache): Update.
63 (arm_gdbarch_init): Update.
64
65 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
66
67 * stabsread.c (update_method_name_from_physname): Call complaint()
68 instead of error.
69
70 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
71
72 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
73 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
74 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
75
76 * blockframe.c: Include "gdbcmd.h" and "command.h".
77 (backtrace_below_main): New variable.
78 (file_frame_chain_valid, func_frame_chain_valid)
79 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
80 (generic_func_frame_chain_valid): Remove functions.
81 (frame_chain_valid, do_flush_frames_sfunc): New functions.
82 (_initialize_blockframe): New function.
83 * Makefile.in (blockframe.o): Update dependencies.
84 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
85 comment. Call frame_chain_valid ().
86 * frame.h: Remove old prototypes. Add prototype for
87 frame_chain_valid and update comments to match.
88 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
89 Remove old comment.
90 * gdbarch.h: Regenerated.
91 * gdbarch.c: Regenerated.
92
93 * alpha-tdep.c (alpha_gdbarch_init): Don't call
94 set_gdbarch_frame_chain_valid.
95 * avr-tdep.c (avr_gdbarch_init): Likewise.
96 * cris-tdep.c (cris_gdbarch_init): Likewise.
97 * frv-tdep.c (frv_gdbarch_init): Likewise.
98 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
99 * i386-tdep.c (i386_svr4_init_abi): Likewise.
100 (i386_nw_init_abi): Likewise.
101 (i386_gdbarch_init): Likewise.
102 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
103 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
104 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
105 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
106 * mips-tdep.c (mips_gdbarch_init): Likewise.
107 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
108 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
109 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
110 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
111 * s390-tdep.c (s390_gdbarch_init): Likewise.
112 * sh-tdep.c (sh_gdbarch_init): Likewise.
113 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
114 * v850-tdep.c (v850_gdbarch_init): Likewise.
115 * vax-tdep.c (vax_gdbarch_init): Likewise.
116 * x86-64-tdep.c (x86_64_init_abi): Likewise.
117
118 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
119 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
120 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
121 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
122 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
123 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
124 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
125 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
126
127 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
128
129 * Makefile.in (acconfig_h): Remove incorrect macro.
130 (config_h): Define.
131 (osabi.o): Update dependencies.
132 * configure.tgt: Set gdb_osabi based on target triplet.
133 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
134 * configure: Regenerated.
135 * config.in: Regenerated.
136 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
137 (GDB_OSABI_DEFAULT): Define if not already defined.
138 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
139 (set_osabi_string): New variables.
140 (gdbarch_register_osabi): Add new OS ABI to
141 gdb_osabi_available_names.
142 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
143 (set_osabi, show_osabi): New functions.
144 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
145
146 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
147
148 * arch-utils.c (gdbarch_info_init): Set osabi to
149 GDB_OSABI_UNINITIALIZED.
150 * gdbarch.sh: Add osabi to struct gdbarch and to struct
151 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
152 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
153 * gdbarch.c: Regenerated.
154 * gdbarch.h: Regenerated.
155 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
156 there's no BFD.
157 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
158 * osabi.h (enum gdb_osabi): Move to defs.h.
159 (gdbarch_init_osabi): Update prototype.
160 * defs.h (enum gdb_osabi): Moved here.
161 * Makefile.in: Update dependencies.
162
163 * alpha-tdep.h: Don't include "osabi.h".
164 (struct gdbarch_tdep): Remove osabi member.
165 * alpha-tdep.c: Include "osabi.h".
166 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
167 iterate over arches. Update call to gdbarch_init_osabi.
168 (alpha_dump_tdep): Don't dump osabi.
169 * alpha-linux-tdep.c: Include "osabi.h".
170 * alpha-osf1-tdep.c: Include "osabi.h".
171 * alphafbsd-tdep.c: Include "osabi.h".
172 * alphanbsd-tdep.c: Include "osabi.h".
173
174 * arm-tdep.h: Don't include "osabi.h".
175 (struct gdbarch_tdep): Remove osabi member.
176 * arm-tdep.c: Include "osabi.h".
177 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
178 iterate over arches. Update call to gdbarch_init_osabi.
179 (arm_dump_tdep): Don't dump osabi.
180 * arm-linux-tdep.c: Include "osabi.h".
181 * armnbsd-tdep.c: Include "osabi.h".
182
183 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
184 Update call to gdbarch_init_osabi.
185
186 * i386-tdep.h: Don't include "osabi.h".
187 (struct gdbarch_tdep): Remove osabi member.
188 * i386-tdep.c: Include "osabi.h".
189 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
190 iterate over arches. Update call to gdbarch_init_osabi.
191 (i386_dump_tdep): Don't dump osabi.
192 * i386-linux-tdep.c: Include "osabi.h".
193 * i386-sol2-tdep.c: Include "osabi.h".
194 * i386bsd-tdep.c: Include "osabi.h".
195 * i386gnu-tdep.c: Include "osabi.h".
196 * i386ly-tdep.c: Include "osabi.h".
197 * i386nbsd-tdep.c: Include "osabi.h".
198 * i386obsd-tdep.c: Include "osabi.h".
199
200 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
201 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
202 check osabi when iterating over arches. Update call to
203 gdbarch_init_osabi.
204 (mips_dump_tdep): Don't dump osabi.
205
206 * ns32k-tdep.h: Don't include "osabi.h".
207 (struct gdbarch_tdep): Remove.
208 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
209 gdbarch_lookup_osabi. Don't iterate over arches. Don't
210 allocate tdep. Update call to gdbarch_init_osabi.
211 (ns32k_dump_tdep): Remove.
212 (_initialize_ns32k_tdep): Update call to gdbarch_register.
213 * ns32knbsd-tdep.c: Include "osabi.h".
214
215 * ppc-tdep.h: Don't include "osabi.h".
216 (struct gdbarch_tdep): Remove osabi member.
217 * rs6000-tdep.c: Include "osabi.h".
218 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
219 osabi when iterating over arches. Update call to
220 gdbarch_init_osabi.
221 (rs6000_dump_tdep): Don't dump osabi.
222 * ppc-linux-tdep.c: Include "osabi.h".
223 * ppcnbsd-tdep.c: Include "osabi.h".
224
225 * sh-tdep.h: Don't include "osabi.h".
226 (struct gdbarch_tdep): Remove osabi member.
227 * sh-tdep.c: Include "osabi.h".
228 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
229 iterate over arches. Update call to gdbarch_init_osabi.
230 (sh_dump_tdep): Don't dump osabi.
231 * shnbsd-tdep.c: Include "osabi.h".
232
233 * sparc-tdep.c: Include "osabi.h".
234 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
235 iterate over arches. Update call to gdbarch_init_osabi.
236 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
237 tdep structure.
238
239 * vax-tdep.h: Don't include "osabi.h".
240 (struct gdbarch_tdep): Remove.
241 * vax-tdep.c: Include "osabi.h".
242 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
243 iterate over arches. Don't allocate tdep. Update call
244 to gdbarch_init_osabi.
245 (vax_dump_tdep): Remove.
246 (_initialize_vax_tdep): Update call to gdbarch_register.
247
248 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
249
250 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
251 entirely.
252 (breakpoint_re_set_one): Don't fetch the value for a disabled
253 watchpoint.
254
255 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
256
257 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
258 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
259 (COERCE_FLOAT_TO_DOUBLE): Remove.
260 * gdbarch.c: Regenerate.
261 * gdbarch.h: Regenerate.
262 * Makefile.in: Remove value_h from gdbarch_h.
263 * valops.c (coerce_float_to_double): New variable.
264 (default_coerce_float_to_double): Remove.
265 (standard_coerce_float_to_double): Remove.
266 (value_arg_coerce): Use coerce_float_to_double.
267 (_initialize_valops): Add "set coerce-float-to-double".
268 * value.h (default_coerce_float_to_double): Remove prototype.
269 (standard_coerce_float_to_double): Remove prototype.
270
271 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
272 prototyped.
273 * mdebugread.c (parse_symbol): Likewise.
274 * stabsread.c (define_symbol): Mark all functions as prototyped.
275
276 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
277 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
278 set_gdbarch_coerce_float_to_double.
279 * arm-tdep.c (arm_gdbarch_init): Likewise.
280 * frv-tdep.c (frv_gdbarch_init): Likewise.
281 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
282 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
283 * mips-tdep.c (mips_gdbarch_init): Likewise.
284 (mips_coerce_float_to_double): Remove.
285 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
286 (rs6000_coerce_float_to_double): Remove.
287 * s390-tdep.c (s390_gdbarch_init): Likewise.
288 * sh-tdep.c (sh_gdbarch_init): Likewise.
289 (sh_coerce_float_to_double): Remove.
290 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
291 (sparc_coerce_float_to_double): Remove.
292 * v850-tdep.c (v850_gdbarch_init): Likewise.
293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
294 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
295 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
296 (hppa_coerce_float_to_double): Remove prototype.
297 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
298
299 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
300
301 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
302
303 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
304
305 Suggested by Stewart Brown <sb24@avaya.com>:
306 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
307 in recursive calls. Handle TYPE_CODE_TYPEDEF.
308 (c_type_print_varspec_suffix): Likewise.
309
310 2003-01-04 Mark Kettenis <kettenis@gnu.org>
311
312 * configure.in: Don't set and AC_SUBST SUBDIRS.
313 * configure: Regenerated.
314
315 * configure.in: Remove code dealing with shared libraries.
316 * Makefile.in: Remove HLDFLAGS and HLDENV.
317 * configure: Regenerated.
318
319 2003-01-04 Andrew Cagney <ac131313@redhat.com>
320
321 * frame.c (deprecated_frame_xmalloc): New function.
322 (deprecated_set_frame_saved_regs_hack): New function.
323 (deprecated_set_frame_extra_info_hack): New function.
324 * frame.h (deprecated_frame_xmalloc): Declare.
325 (deprecated_set_frame_saved_regs_hack): Declare.
326 (deprecated_set_frame_extra_info_hack): Declare.
327
328 2003-01-04 Mark Kettenis <kettenis@gnu.org>
329
330 * configure.in: Move code that provides the --enable-gdbtk option
331 right after the code that handles the --enable-tui option, and
332 polish it somewhat.
333 * configure: Regenerated.
334
335 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
336 AC_CHECK_FUNCS and remove the old check for pread64.
337 * acinclude.m4 (AC_GNU_SOURCE): New macro.
338 * acconfig.h (_GNU_SOURCE): Add.
339 (HAVE_PREAD64): Remove.
340 * configure, aclocal.m4, config.in: Regenerated.
341
342 2003-01-03 Andrew Cagney <ac131313@redhat.com>
343
344 * alpha-tdep.c: Use get_frame_saved_regs.
345 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
346 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
347 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
348 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
349 * vax-tdep.c, xstormy16-tdep.c: Ditto.
350
351 2003-01-03 Mark Kettenis <kettenis@gnu.org>
352
353 * configure.in: Remove all use of the SUBDIRS variable; add
354 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
355 code providing the --enable-multi-ice option, and move it right in
356 front of the code that checks whether gdbserver is supported.
357 Polish that too.
358 * configure: Regenerated.
359 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
360 @SUBDIRS@.
361
362 2003-01-03 Andrew Cagney <cagney@redhat.com>
363
364 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
365 * avr-tdep.c, cris-tdep.c: Ditto.
366 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
367 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
368
369 2003-01-03 Mark Kettenis <kettenis@gnu.org>
370
371 * configure.in: Remove --enable-netrom option.
372 * configure: Regenerated.
373
374 2003-01-03 Mark Kettenis <kettenis@gnu.org>
375
376 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
377 declaration for `struct re_pattern_buffer' instead.
378 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
379
380 2003-01-03 J. Brobecker <brobecker@gnat.com>
381
382 * mdebugread.c (parse_symbol): Count until the stEnd matching
383 the structure name.
384
385 2003-01-02 Mark Kettenis <kettenis@gnu.org>
386
387 * configure.in: Remove --with-cpu option.
388 subscripts. Remove evil changequotes here.
389 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
390 * config.in, configure: Regenerated.
391
392 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
393 * configure.in: Cleanup section that sources GDB and BFD configure
394 subscripts. Remove evil changequotes here.
395 * config.in, configure: Regenerated.
396
397 2003-01-02 Andrew Cagney <ac131313@redhat.com>
398
399 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
400 frame accessor methods.
401 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
402 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
403 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
404 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
405 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
406 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
407 * z8k-tdep.c: Ditto.
408
409 2003-01-02 Mark Kettenis <kettenis@gnu.org>
410
411 * configure.in: Remove UI_OUT configuration code.
412 * ada-lang.c: Update assuming UI_OUT is always true.
413 * Makefile.in (UIOUT_CFLAGS): Remove.
414 * configure: Regenerated.
415 * TODO: Remove blurb about elimination of -DUI_OUT.
416
417 * configure.in: Move code that provides the --enable-gdbcli,
418 --enable-gdbmi options right before the code that handles the
419 --enable-tui option. Polish a bit.
420 * configure: Regenerated.
421
422 * configure.in: Rewrite check for GNU regex and the
423 --without-included regex option, and move it into the "Checks for
424 library functions" section. This makes us use the system regex
425 again by default on systems with version 2 of the GNU C library.
426 This was apparently broken.
427 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
428 * acconfig.h (USE_INCLUDED_REGEX): Remove.
429 * config.in, configure: Regenerated.
430
431 * configure.in: Move code that provides the --enable-tui option
432 before the "Checks for libraries" section. Polish the code
433 somewhat and set need_curses to yes if we build the TUI. Rewrite
434 code that looks for a library providing termcap functionality to
435 match more closely what's done in the Readline library, and move
436 it into to the "Checks for libraries" section.
437 * configure: Regenerated.
438 * Makefile.in (TERMCAP): Remove variable.
439 * config/i386/go32.mh (TERMCAP): Remove variable.
440
441 2003-01-02 Andrew Cagney <ac131313@redhat.com>
442
443 * MAINTAINERS: Mention gdb_mbuild.sh.
444 * gdb_mbuild.sh: Rewrite.
445
446 2003-01-02 Mark Kettenis <kettenis@gnu.org>
447
448 * configure.in: Fix typo in last change.
449 * config.in, configure: Regenerated.
450
451 2003-01-02 Andrew Cagney <ac131313@redhat.com>
452
453 * valarith.c (value_binop): Delete obsolete code and comments.
454 * configure.host: Ditto.
455 * buildsym.h (make_blockvector): Ditto.
456 * buildsym.c (make_blockvector): Ditto.
457 * defs.h (enum language): Ditto.
458 (chill_demangle): Ditto.
459 * elfread.c (elf_symtab_read): Ditto.
460 * dwarfread.c (CHILL_PRODUCER): Ditto.
461 (set_cu_language): Ditto.
462 (handle_producer): Ditto.
463 * expprint.c (print_subexp): Ditto.
464 * gdbtypes.c (chill_varying_type): Ditto.
465 * gdbtypes.h (builtin_type_chill_bool): Ditto.
466 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
467 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
468 (chill_varying_type): Ditto.
469 * language.h (_LANG_chill): Ditto.
470 * language.c (binop_result_type, integral_type): Ditto.
471 (character_type, string_type, structured_type): Ditto.
472 (lang_bool_type, binop_type_check): Ditto.
473 * stabsread.h (os9k_stabs): Ditto.
474 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
475 (define_symbol, read_type, read_struct_fields): Ditto.
476 (read_array_type, read_enum_type, read_huge_number): Ditto.
477 (read_range_type, start_stabs): Ditto.
478 * symfile.c (init_filename_language_table): Ditto.
479 (add_psymbol_with_dem_name_to_list): Ditto.
480 * symtab.c (symbol_init_language_specific): Ditto.
481 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
482 * symtab.h (struct general_symbol_info): Ditto.
483 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
484 * typeprint.c (typedef_print): Ditto.
485 * utils.c (fprintf_symbol_filtered): Ditto.
486 * valops.c (value_cast, search_struct_field, value_slice): Delete
487 obsolete code.
488 (varying_to_slice): Delete function.
489 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
490 (varying_to_slice): Delete declaration.
491 * MAINTAINERS: Update.
492
493 2003-01-02 Mark Kettenis <kettenis@gnu.org>
494
495 * configure.in: Reorganize "Checks for library functions section"
496 a bit. Remove check for `btowc' and `isascii' functions.
497 * configure: Regenerated.
498
499 * acconfig.h (_MSE_INT_H): Remove.
500 * configure.in: Create "Checks for header files" section, and move
501 appropriate tests there. Don't check for objlist.h, wchar.h,
502 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
503 misdetection fix. Also add "Checks for types", "Checks for
504 compiler characteristics" and "Checks for library functions"
505 sections.
506 * config.in, configure: Regenerated.
507
508 * configure.in: Create "Checks for programs" section, and move
509 appropriate tests there.
510
511 2003-01-01 Mark Kettenis <kettenis@gnu.org>
512
513 * configure.in: Create "Checks for libraries" section, and move
514 appropriate tests there. Cleanup check for wctype in libw. Use
515 AC_SEARCH_LIBS to see whether we need libsocket.
516 * configure: Regenerated.
517
518 2002-12-31 Mark Kettenis <kettenis@gnu.org>
519
520 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
521 * config.in, configure: Regenerated.
522
523 2002-12-31 Mark Kettenis <kettenis@gnu.org>
524
525 * gdb_dirent.h: Cleanup and update code to match the example in
526 the Autoconf manual.
527 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
528 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
529 * configure: Regenerated.
530
531 2002-12-30 Adam Fedor <fedor@gnu.org>
532
533 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
534 (yylex): Initialize c to avoid uninitialized warning.
535
536 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
537
538 * doc/fdl.texi: Revert the last change.
539
540 2002-12-29 Mark Kettenis <kettenis@gnu.org>
541
542 * tracepoint.c (ISATTY): Removed.
543
544 2002-12-26 J. Brobecker <brobecker@gnat.com>
545
546 Continuing work to convert the hppa targets to multiarch partil.
547
548 * hppa-tdep.c: Add some missing forward declarations.
549 (frameless_function_invocation): Prefix the function name
550 by "hppa_" to avoid polluting the namespace. Update all calls
551 to use the new function name.
552 (saved_pc_after_call): Ditto.
553 (init_extra_frame_info): Ditto.
554 (frame_chain): Ditto.
555 (push_dummy_frame): Ditto.
556 (target_read_pc): Ditto.
557 (target_write_pc): Ditto.
558 (in_solib_call_trampoline): Ditto.
559 (in_solib_return_trampoline): Ditto.
560 (skip_trampoline_code): Ditto.
561 (hppa_read_fp): New function, renamed from target_read_fp.
562 (hppa_target_read_fp): New function, using hppa_read_fp.
563 This function conforms to the function profile for the
564 READ_FP gdbarch method.
565 (hppa_extract_struct_value_address): New function, extracted
566 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
567 macro.
568 (hppa_frame_num_args): New function.
569 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
570
571 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
572 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
573 for the switch to multiarch partial.
574 Update some of the macros definitions to match some changes
575 described above in the name of the function they are calling.
576 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
577 not be straightforward to convert. Do now wrap it inside
578 "#if !... #endif" to remember that this macro has still not
579 been taken care of.
580 (FIX_CALL_DUMMY): Likewise.
581
582 2002-12-26 J. Brobecker <brobecker@gnat.com>
583
584 Continuing work to convert the hppa targets to multiarch partial.
585
586 * hppa-tdep.c (hppa_register_raw_size): New function replacing
587 the body of macro REGISTER_RAW_SIZE.
588 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
589 config/pa/tm-hppah.h. These functions will be used to initialize
590 the gdbarch structure.
591 (hppa_hpux_pc_in_sigtramp): New function.
592 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
593 (hppa_hpux_frame_base_before_sigtramp): New function.
594 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
595 Add gdbcore.h #include.
596 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
597 of this gdbarch-eligible macro to a call to the new associated
598 function.
599 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
600 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
601 into a call to the new associated function.
602 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
603 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
604 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
605
606 2002-12-24 David Carlton <carlton@math.stanford.edu>
607
608 * config/sparc/tm-sparc.h: Delete duplicate definition of
609 DEPRECATED_PC_IN_CALL_DUMMY.
610
611 2002-12-24 Kevin Buettner <kevinb@redhat.com>
612
613 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
614 $(gdb_assert_h).
615 * configure.tgt: Recognize mips64*-*-linux*.
616 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
617 (supply_32_bit_reg): New function.
618 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
619 (fill_gregset): Use regcache_collect() instead of
620 deprecated_registers[].
621 (register_addr): Change name to mips_linux_register_addr().
622 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
623 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
624 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
625 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
626 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
627 (MIPS64_LINUX_JB_PC): New defines.
628 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
629 (mips64_elf_fpregset_t): New typedefs.
630 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
631 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
632 (mips64_linux_register_addr, set_mips_linux_register_addr)
633 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
634 (init_register_addr_data)
635 New functions.
636 (fetch_core_registers): Add support for core file formats with 64-bit
637 registers.
638 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
639 (register_addr_data): New static global variable.
640 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
641 gdbarch_register_osabi() for each MIPS machine.
642 * config/mips/linux64.mt: New file.
643 * config/mips/tm-linux64.h: New file.
644
645 2002-12-23 Adam Fedor <fedor@gnu.org>
646
647 * maint.c (maintenance_demangle): Add switch to demangle
648 ObjC language symbols as well.
649
650 2002-12-23 Adam Fedor <fedor@gnu.org>
651
652 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
653 last argument from complaint function call.
654
655 2002-12-23 Kevin Buettner <kevinb@redhat.com>
656
657 * exec.c (print_section_info): Add FIXME comments regarding format
658 string choices.
659
660 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
661
662 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
663 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
664
665 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
666
667 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
668
669 2002-12-23 David Carlton <carlton@math.stanford.edu>
670
671 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
672 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
673 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
674 information associated to a minsym, not lookup_symbol.
675
676 2002-12-21 Mark Kettenis <kettenis@gnu.org>
677
678 * x86-64-tdep.h (x86_64_init_abi): New prototype.
679 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
680 (x86_64_init_abi): Make non-static. Set number of pseudo
681 registers to 0.
682 (x86_64_gdbarch_init): Remove function.
683 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
684 Remove code dealing with dissambly.
685 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
686 (_initialize_x86_64_linux_tdep): New function.
687 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
688 i386-tdep.o.
689
690 2002-12-14 Mark Kettenis <kettenis@gnu.org>
691
692 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
693 (struct gdb_osabi_handler): Remove member `arch'. Add member
694 `arch_info'.
695 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
696 construct a `struct bfd_arch_info' and store it in the `struct
697 gdb_osabi_handler' that is created.
698 (gdbarch_init_osabi): Check for compatibility based on machine
699 type and architecture.
700 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
701 comment.
702 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
703 second argument in call to gdbarch_register_osabi.
704 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
705 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
706 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
707 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
708 * arm-tdep.c (_initialize_arm_tdep): Likewise.
709 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
710 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
711 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
712 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
713 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
714 * i386-tdep.c (_initialize_i386_tdep): Likewise.
715 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
716 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
717 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
718 _initialize_i386bsd_tdep and updated likewise.
719 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
720 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
721 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
722 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
723 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
724 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
725 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
726 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
727 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
728 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
729
730 2002-12-20 Kevin Buettner <kevinb@redhat.com>
731
732 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
733 DT_MIPS_RLD_MAP case for 64-bit targets.
734
735 2002-12-20 Kevin Buettner <kevinb@redhat.com>
736
737 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
738 ``temp_saved_regs'', not the pointer or other storage contiguous
739 to this pointer.
740
741 2002-12-20 Kevin Buettner <kevinb@redhat.com>
742
743 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
744 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
745 (mips_linux_get_longjmp_target): Delete declarations.
746 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
747 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
748 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
749 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
750 (mips_linux_get_longjmp_target)
751 (mips_linux_svr4_fetch_link_map_offsets): Make static.
752 (mips_linux_init_abi): New function.
753 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
754
755 2002-12-19 Keith Seitz <keiths@redhat.com>
756
757 patch committed by Elena Zannoni <ezannoni@redhat.com>
758 * thread.c (do_captured_list_thread_ids): Call prune_threads and
759 target_find_new_threads. Fix for PR mi/669.
760
761 2002-12-19 David Carlton <carlton@math.stanford.edu>
762
763 * linespec.c (decode_line_1): Move code into decode_all_digits.
764 (decode_all_digits): New function.
765
766 2002-12-19 Kevin Buettner <kevinb@redhat.com>
767
768 * exec.c (print_section_info): Select a format string to use with
769 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
770
771 2002-12-18 Andrew Cagney <ac131313@redhat.com>
772
773 * frame.c (deprecated_update_current_frame_pc_hack): Replace
774 deprecated_update_current_frame_pc_hack.
775 (deprecated_update_frame_base_hack): New function.
776 * frame.h (deprecated_update_frame_pc_hack): Replace
777 (deprecated_update_frame_base_hack): Declare.
778 * infrun.c (normal_stop): Update.
779
780 2002-12-18 Andrew Cagney <ac131313@redhat.com>
781
782 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
783 frame_extra_info_zalloc.
784 (rs6000_frame_args_address): Use get_frame_extra_info.
785 (frame_get_saved_regs): Use get_frame_saved_regs.
786 (frame_initial_stack_address): Use get_frame_saved_regs and
787 get_frame_extra_info.
788 (frame_initial_stack_address): Use get_frame_extra_info.
789
790 2002-12-17 Kevin Buettner <kevinb@redhat.com>
791
792 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
793 array size.
794 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
795 checks for r3900_regnames[].
796
797 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
798
799 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
800 All uses changed
801 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
802
803 2002-12-17 David Carlton <carlton@math.stanford.edu>
804
805 * symtab.c (lookup_partial_symbol): Don't search past the end of
806 the partial symbols.
807
808 2002-12-17 Andrew Cagney <ac131313@redhat.com>
809
810 * stack.c (frame_info): Use get_frame_saved_regs.
811 * breakpoint.c (until_break_command): Use get_frame_pc.
812
813 2002-12-16 Kevin Buettner <kevinb@redhat.com>
814
815 * buildsym.c (block_end_complaint, anon_block_end_complaint)
816 (innerblock_complaint, innerblock_anon_complaint)
817 (blockvector_complaint): Delete deprecated complaint structs.
818 (finish_block, make_blockvector, end_symtab): Replace calls
819 to complain() with calls to complaint().
820 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
821 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
822 (unexpected_type_complaint, bad_sclass_complaint)
823 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
824 Delete deprecated complaint structs.
825 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
826 Replace calls to complain() with calls to complaint().
827 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
828 (unknown_symtype_complaint, unknown_symchar_complaint)
829 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
830 (lbrac_mismatch_complaint, repeated_header_complaint)
831 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
832 Delete deprecated complaint structs.
833 (unknown_symtype_complaint, lbrac_mismatch_complaint)
834 (repeated_header_complaint)
835 (function_outside_compiliation_unit_complaint): New functions.
836 (add_old_header_file, find_corresponding_bincl_psymtab)
837 (set_namestring, find_stab_function_addr, read_dbx_symtab)
838 (process_one_symbol): Replace calls to complain() with, possibly
839 indirect, calls to complaint().
840 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
841 (unknown_attribute_form, unknown_attribute_length)
842 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
843 (const_ignored, botched_modified_type, op_deref2, op_deref4)
844 (basereg_not_handled, dup_user_type_allocation)
845 (dup_user_type_definition, missing_tag, bad_array_element_type)
846 (subscript_data_items, unhandled_array_subscript_format)
847 (unknown_array_subscript_format, not_row_major)
848 (missing_at_name): Delete deprecated complaint structs.
849 (bad_die_ref_complaint, unknown_attribute_form_complaint)
850 (dup_user_type_definition_complaint)
851 (bad_array_element_type_complaint): New functions.
852 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
853 (decode_subscript_data_item, dwarf_read_array_type)
854 (read_tag_string_type, read_subroutine_type, read_func_scope)
855 (locval, scan_partial_symbols, decode_modified_type)
856 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
857 (attribute_size): Replace calls to complain() with, possibly
858 indirect, calls to complaint().
859 * elfread.c (section_info_complaint, section_info_dup_complaint)
860 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
861 Delete deprecated complaint structs.
862 (elf_symtab_read, elfstab_offset_sections): Replace calls to
863 complain() with calls to complaint().
864 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
865 struct.
866 (stub_noname_complaint): New function.
867 (check_typedef, add_mangled_type): Replace calls to complain()
868 with calls to complaint().
869 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
870 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
871 (hpread_unhandled_type_complaint, hpread_struct_complaint)
872 (hpread_array_complaint, hpread_type_lookup_complaint)
873 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
874 (hpread_unhandled_common_complaint)
875 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
876 struct definitions and declarations.
877 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
878 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
879 Replace calls to complain() with, possibly indirect, calls to
880 complaint().
881 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
882 Likewise.
883 * mdebugread.c (bad_file_number_complaint, index_complaint)
884 (aux_index_complaint, block_index_complaint)
885 (unknown_ext_complaint, unknown_sym_complaint)
886 (unknown_st_complaint, block_overflow_complaint)
887 (basic_type_complaint, unknown_type_qual_complaint)
888 (array_index_type_complaint, bad_tag_guess_complaint)
889 (block_member_complaint, stEnd_complaint)
890 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
891 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
892 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
893 (bad_continued_complaint, bad_rfd_entry_complaint)
894 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
895 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
896 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
897 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
898 complaint structs.
899 (index_complaint, unknown_ext_complaint, basic_type_complaint)
900 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
901 (unexpected_type_code_complaint)
902 (function_outside_compilation_unit_complaint): New functions.
903 (parse_symbol, parse_type, upgrade_type, parse_procedure)
904 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
905 Replace calls to complain() with, possibly indirect calls to
906 complaint().
907 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
908 Delete deprecated complaint structs.
909 (lookup__objc_class, lookup_child_selector): Replace complain()
910 with complaint().
911 * remote-vx.c (cant_contact_target): Delete deprecated complaint
912 struct.
913 (vx_lookup_symbol): Replace complain() with complaint().
914 * stabsread.c (invalid_cpp_abbrev_complaint)
915 (invalid_cpp_type_complaint, member_fn_complaint)
916 (const_vol_complaint, error_type_complaint)
917 (invalid_member_complaint, range_type_base_complaint)
918 (reg_value_complaint, vtbl_notfound_complaint)
919 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
920 (unresolved_sym_chain_complaint, stabs_general_complaint)
921 (lrs_general_complaint, multiply_defined_struct): Delete
922 deprecated complaint structs.
923 (invalid_cpp_abbrev_complaint, ref_value_complaint)
924 (stabs_general_complaint, lrs_general_complaint)
925 (msg_unknown_complaint): New functions.
926 (dbx_lookup_type, read_cfront_baseclasses)
927 (read_cfront_member_functions, resolve_symbol_reference)
928 (define_symbol, resolve_live_range, add_live_range, read_type)
929 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
930 (read_one_struct_field, read_baseclasses, read_tilde_fields)
931 (read_cfront_static_fields, attach_fields_to_type)
932 (complain_about_struct_wipeout, read_range_type)
933 (common_block_start, common_block_end, cleanup_undefined_types)
934 (scan_file_globals): Replace complain() with complaint().
935 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
936 Delete deprecated complaint struct declarations.
937 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
938 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
939 (bf_not_found_complaint, ef_complaint, eb_complaint)
940 (function_outside_compilation_unit_complaint): New functions.
941 (record_include_begin, record_include_end, enter_line_range)
942 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
943 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
944 complain() with complaint().
945
946 2002-12-16 Andrew Cagney <ac131313@redhat.com>
947
948 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
949 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
950 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
951 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
952 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
953 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
954 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
955 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
956 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
957 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
958 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
959 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
960 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
961 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
962 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
963 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
964 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
965 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
966 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
967 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
968 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
969 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
970 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
971 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
972 * config/m88k/xm-dgux.h: Delete.
973 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
974 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
975 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
976 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
977 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
978 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
979 * ch-valprint.c: Delete.
980
981 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
982
983 * infrun.c (handle_inferior_event): Rearrange code to resume if
984 no catchpoint triggers for an event.
985
986 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
987
988 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
989 and TARGET_WAITKIND_VFORKED cases.
990
991 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
992
993 * infrun.c (handle_inferior_event): Assume that catchpoints
994 are not affected by DECR_PC_AFTER_BREAK.
995
996 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
997
998 * target.c (update_current_target): Don't inherit DONT_USE.
999 * target.h (struct target_ops): Remove DONT_USE.
1000 (target_next): Remove macro.
1001
1002 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1003
1004 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1005
1006 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1007
1008 * arm-tdep.c (convert_from_extended): New argument to hold the
1009 type of floating point result we want to convert to. Make input
1010 argument const. Fix all callers.
1011 (convert_to_extended): Similarly.
1012 (arm_extract_return_value): Now takes a regcache argument. Change
1013 code to use regcache accessor functions. Correctly extract
1014 smaller-than-word results on big-endian machines.
1015 (arm_store_return_value): Now takes a regcache argument. Change
1016 code to use regcache accessor functions. Correctly zero/sign extend
1017 smaller than word results before storing into r0.
1018 (arm_gdbarch_init): Register new-style extract_return_value and
1019 store_return_value functions.
1020
1021 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1022
1023 * thread-db.c (thread_from_lwp): Uniquify error msg.
1024 (lwp_from_thread): Ditto.
1025 (check_event): Ditto.
1026 (find_new_threads_callback): Ditto.
1027 (thread_db_pid_to_str): Ditto.
1028
1029 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1030
1031 * frame.h (get_frame_saved_regs): Declare.
1032 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1033 pointer.
1034 * frame.c (get_frame_saved_regs): New function.
1035 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1036
1037 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1038
1039 * frame.c (deprecated_update_current_frame_pc_hack): New
1040 function.
1041 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1042 * infrun.c (normal_stop): Use said function instead of directly
1043 modifying the frame's PC.
1044
1045 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1046
1047 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1048
1049 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1050
1051 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1052 config/mips/tm-irix6.h (NUM_REGS): Delete.
1053 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1054 (temp_saved_regs): Declare as a pointer rather than an array.
1055 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1056 that ``temp_saved_regs'' has storage allocated to it and that
1057 it's the correct size.
1058
1059 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1060
1061 * defs.h (init_last_source_visited): New prototype.
1062 (add_path): Ditto.
1063 * source.c (add_path): New function that adds to a specified path.
1064 (mod_path): Change to call add_path.
1065 (init_last_source_visited): New function to allow interfaces to
1066 initialize static variable: last_source_visited. Part of fix
1067 for PR gdb/741.
1068 * Makefile.in: Add support for mi/mi-cmd-env.c.
1069
1070 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1071
1072 * frame.h (frame_id_unwind): Declare.
1073 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1074 id_unwind_cache.
1075 (frame_id_unwind_ftype): Declare.
1076 * frame.c (frame_id_unwind): New function.
1077 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1078 (create_new_frame, get_prev_frame): Pass id_unwind to
1079 set_unwind_by_pc.
1080 (frame_saved_regs_id_unwind): New function.
1081 (frame_saved_regs_id_unwind): New function.
1082 * dummy-frame.c (dummy_frame_id_unwind): New function.
1083 (struct dummy_frame): Add field id.
1084 (generic_push_dummy_frame): Initialize `id'.
1085 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1086
1087 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1088
1089 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1090 pass that to set_momentary_breakpoint. Move comments to where they
1091 belong.
1092 * frame.h (set_current_frame): Delete declaration.
1093 * frame.c (set_current_frame): Delete function.
1094
1095 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1096
1097 * frame.c (frame_extra_info_zalloc): New function.
1098 * frame.h (frame_extra_info_zalloc): Declare.
1099
1100 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1101
1102 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1103 in the previous prototype change to set_momentary_breakpoint.
1104
1105 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1108 and saw_child_exec.
1109 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1110 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1111 (stop_stepping): Remove outdated check for child vfork events.
1112
1113 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1114
1115 * GDB 5.3 released from gdb_5_3-branch.
1116
1117 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1118
1119 * corelow.c (init_core_ops): Delete references to to_require_attach
1120 and to_require_detach.
1121 * exec.c (init_exec_ops): Likewise.
1122 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1123 hppa_require_detach directly.
1124 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1125 * inftarg.c (child_detach): Remove.
1126 (child_detach_from_process): Rename to child_detach, remove
1127 after_fork argument.
1128 (child_attach): Remove.
1129 (child_attach_to_process): Rename to child_attach, remove after_fork
1130 argument.
1131 (init_child_ops): Delete references to to_require_attach
1132 and to_require_detach.
1133 * infttrace.c (hppa_require_attach): Update comment.
1134 * target.c (cleanup_target, update_current_target)
1135 (init_dummy_target, setup_target_debug): Delete references to
1136 to_require_attach and to_require_detach.
1137 (find_default_require_detach, find_default_require_attach)
1138 (debug_to_require_attach, debug_to_require_detach): Remove
1139 functions.
1140 * target.h (struct target_ops): Remove to_require_attach
1141 and to_require_detach.
1142 (target_require_attach, target_require_detach): Delete macros.
1143 (find_default_require_detach, find_default_require_attach): Delete
1144 prototypes.
1145 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1146
1147 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1148
1149 * frame.c (get_frame_extra_info): New function.
1150 * frame.h (get_frame_extra_info): Declare.
1151
1152 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1153
1154 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1155 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1156 with `struct frame_id'.
1157 (set_longjmp_resume_breakpoint): Ditto.
1158 * infrun.c (handle_inferior_event): Update.
1159 * breakpoint.c (watch_command_1, until_break_command): Update.
1160 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1161 (handle_inferior_event, step_over_function): Update.
1162 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1163 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1164 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1165 * infcmd.c (finish_command, run_stack_dummy): Update.
1166
1167 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1168
1169 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1170 (dwarf2_non_const_array_bound_ignored)
1171 (dwarf2_missing_line_number_section)
1172 (dwarf2_statement_list_fits_in_line_number_section)
1173 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1174 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1175 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1176 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1177 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1178 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1179 (dwarf2_missing_member_fn_type_complaint)
1180 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1181 (dwarf2_const_value_length_mismatch)
1182 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1183 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1184 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1185 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1186 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1187 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1188 complaints using deprecated struct..
1189 (dwarf2_non_const_array_bound_ignored_complaint)
1190 (dwarf2_complex_location_expr_complaint)
1191 (dwarf2_unsupported_at_frame_base_complaint)
1192 (dwarf2_const_value_length_mismatch_complaint)
1193 (dwarf2_macros_too_long_complaint)
1194 (dwarf2_macro_malformed_definition_complaint)
1195 (dwarf2_invalid_attrib_class_complaint): New functions.
1196 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1197 (read_structure_scope, read_array_type, read_common_block)
1198 (read_tag_pointer_type, read_base_type, read_partial_die)
1199 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1200 (new_symbol, dwarf2_const_value, read_type_die)
1201 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1202 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1203 complain() with, possibly indirect, calls to complaint().
1204
1205 2002-12-11 Andrew Cagney <cagney@redhat.com>
1206
1207 * frame.c (deprecated_get_frame_saved_regs): Rename
1208 get_frame_saved_regs.
1209 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1210 * sparc-tdep.c: Update.
1211 * hppa-tdep.c: Update.
1212 * h8500-tdep.c: Update.
1213
1214 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1215
1216 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1217 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1218 ``char *'' for return and parameter types.
1219 * gdbarch.h, gdbarch.c: Regenerate.
1220 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1221 return type from ``char *'' to ``const char *''.
1222 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1223 const.
1224
1225 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1226
1227 * i386-tdep.c: Include "dummy-frame.h".
1228 (i386_frame_chain, i386_frame_saved_pc): Replace
1229 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1230 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1231
1232 2002-12-10 Andrew Cagney <cagney@redhat.com>
1233
1234 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1235 Change to a function with predicate.
1236 * gdbarch.h, gdbarch.c: Re-generate.
1237 * frame.c (get_prev_frame): Update. Test
1238 DEPRECATED_INIT_FRAME_PC_P.
1239 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1240 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1241 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1242 * alpha-tdep.c (alpha_gdbarch_init): Update.
1243 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1244 * mips-tdep.c (mips_gdbarch_init): Update.
1245 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1246 * arm-tdep.c: Update comments.
1247 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1248 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1249 * frv-tdep.c (frv_gdbarch_init): Ditto.
1250 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1251 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1252 * s390-tdep.c (s390_gdbarch_init): Ditto.
1253 * v850-tdep.c (v850_gdbarch_init): Ditto.
1254 * vax-tdep.c (vax_gdbarch_init): Ditto.
1255 * sh-tdep.c (sh_gdbarch_init): Ditto.
1256 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1258 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1260 * i386-tdep.c (i386_gdbarch_init): Ditto.
1261 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1262 * cris-tdep.c (cris_gdbarch_init): Ditto.
1263 * avr-tdep.c (avr_gdbarch_init): Ditto.
1264 * arm-tdep.c (arm_gdbarch_init): Ditto.
1265 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1266 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1267
1268 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1269
1270 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1271 CHILD_FOLLOW_FORK.
1272 * hppah-nat.c (saved_vfork_pid): Add.
1273 (child_post_follow_vfork): Remove.
1274 (child_follow_fork): New function.
1275 (child_wait): Call detach_breakpoints after receiving the child vfork.
1276 Call child_resume directly instead of going through resume ().
1277 Make sure we have the exec before reporting the vfork.
1278 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1279 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1280 (follow_fork): New function. Call target_follow_fork.
1281 (follow_inferior_reset_breakpoints): New function broken out from
1282 old follow_inferior_fork.
1283 (resume): Remove hack to follow exec after vfork.
1284 * inftarg.c (child_post_follow_vfork): Remove.
1285 (child_follow_fork): New function.
1286 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1287 * target.c (cleanup_target): Replace to_post_follow_vfork with
1288 to_follow_fork.
1289 (update_current_target): Likewise.
1290 (setup_target_debug): Likewise.
1291 (debug_to_post_follow_vfork): Remove.
1292 (debug_to_follow_fork): New function.
1293 * target.h (struct target_ops): Replace to_post_folow_vfork with
1294 to_follow_fork.
1295 (child_post_follow_vfork): Remove prototype.
1296 (child_follow_fork): Add prototype.
1297 (target_post_follow_vfork): Remove macro.
1298 (target_follow_fork): Add macro.
1299
1300 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1301
1302 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1303 (child_post_follow_vfork): Cancel pending exec event if we follow
1304 the parent.
1305 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1306 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1307 event at the following wait call if necessary.
1308 * infrun.c (follow_vfork): Don't follow_exec here.
1309 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1310 case about HP/UX 10.20. Remove code pushed down to
1311 hppah-nat.c:child_wait.
1312 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1313 vfork_in_flight is set.
1314
1315 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1316
1317 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1318 for the parent's fork event.
1319 * infrun.c (handle_inferior_event): Only expect one fork event.
1320 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1321 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1322
1323 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1324
1325 * PROBLEMS: Delete reference to PR gdb/725.
1326
1327 * MAINTAINERS (gdb.c++): Add David Carlton.
1328
1329 2002-12-09 David Carlton <carlton@math.stanford.edu>
1330
1331 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1332 * cli/cli-cmds.c: Ditto.
1333
1334 2002-12-09 Andrew Cagney <cagney@redhat.com>
1335
1336 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1337 function address in <>.
1338 * gdbarch.c: Re-generate.
1339
1340 2002-12-09 David Carlton <carlton@math.stanford.edu>
1341
1342 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1343
1344 2002-12-09 David Carlton <carlton@math.stanford.edu>
1345
1346 * linespec.c (symtab_from_filename): New function.
1347 (decode_line_1): Move code into symtab_from_filename.
1348
1349 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1350
1351 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1352
1353 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1354
1355 * f-valprint.c (info_common_command): Use get_frame_pc.
1356 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1357 * ax-gdb.c (agent_command): Ditto.
1358 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1359 (rs6000_pop_frame): Ditto.
1360 (rs6000_frameless_function_invocation): Ditto.
1361 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1362 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1363 * macroscope.c (default_macro_scope): Ditto.
1364 * stack.c (print_frame_info_base): Ditto.
1365 (print_frame, frame_info, print_frame_label_vars): Ditto.
1366 (return_command, func_command, get_frame_language): Ditto.
1367 * infcmd.c (finish_command): Ditto.
1368 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1369 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1370 (break_at_finish_at_depth_command_1): Ditto.
1371 (break_at_finish_command_1): Ditto.
1372 (until_break_command, get_catch_sals): Ditto.
1373 * blockframe.c (func_frame_chain_valid): Ditto.
1374 (frameless_look_for_prologue): Ditto.
1375 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1376
1377 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1378
1379 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1380 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1381
1382 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1383
1384 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1385 to pure functions.
1386 * gdbarch.h, gdbarch.c: Re-generate.
1387 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1388 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1389
1390 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1391 declaration to a function returning a CORE_ADDR.
1392 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1393 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1394 (init_frame_pc_default): Ditto.
1395 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1396 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1397 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1398 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1399 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1400 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1401
1402 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1403 to init_frame_pc_noop.
1404 (i386_interix_init_frame_pc): Delete function.
1405 * z8k-tdep.c (init_frame_pc): Delete function.
1406 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1407 (INIT_FRAME_PC_FIRST): Ditto.
1408 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1409 (INIT_FRAME_PC_FIRST): Ditto.
1410 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1411 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1412 init_frame_pc_noop.
1413 (INIT_FRAME_PC_FIRST): Convert to an expression.
1414 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1415
1416 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1417
1418 * blockframe.c: Use get_frame_base instead of directly accessing
1419 the `struct frame_info' member frame.
1420 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1421 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1422
1423 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1424
1425 * Makefile.in (readline_h): Define.
1426 (completer.o): Depend on readline_h.
1427 (corelow.o): Ditto.
1428 (event-top.o): Ditto.
1429 (exec.o): Ditto.
1430 (solib.o): Ditto.
1431 (source.o): Ditto.
1432 (symfile.o): Ditto.
1433 (symmisc.o): Ditto.
1434 (top.o): Ditto.
1435 (tracepoint.o): Ditto.
1436 (utils.o): Ditto.
1437 (cli-dump.o): Ditto.
1438 (tui-hooks.o): Ditto.
1439 (tuiWin.o): Ditto.
1440
1441 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1442
1443 More cleanup from import of readline 4.3.
1444 * completer.h (complete_line, readline_line_completion_function):
1445 Update prototypes.
1446 (line_completion_function): Removed, not used outside of completer.c.
1447 * completer.c (readline_line_completion_function,
1448 complete_function, line_completion_function): Use const for first
1449 parameter.
1450 (line_completion_function): Make static.
1451 (filename_completer): filename_completion_function is now called
1452 rl_filename_completion_function
1453 * corelow.c: Include <readline/readline.h>.
1454 * exec.c: Ditto.
1455 * solib.c: Ditto.
1456 * source.c: Ditto.
1457 * symfile.c: Ditto.
1458 * symmisc.c: Ditto.
1459 * top.c (init_main): No need to coerce
1460 readline_line_completion_function anymore.
1461 * cli/cli-dump.c: Include <readline/readline.h>.
1462
1463 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1464
1465 * stack.c (frame_info): Use get_prev_frame.
1466 * blockframe.c (frame_address_in_block): Ditto.
1467 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1468 (rs6000_frameless_function_invocation): Ditto.
1469 (rs6000_frame_saved_pc): Ditto.
1470 (rs6000_frame_chain): Ditto.
1471 * arch-utils.c (init_frame_pc_default): Ditto.
1472
1473 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1474
1475 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1476 Delete redundant definition.
1477
1478 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1479
1480 Import of readline 4.3:
1481 * cli/cli-cmds.c: Include readline/tilde.h.
1482 * cli/cli-setshow.c: Ditto.
1483 * defs.h: Don't declare tilde_expand anymore, since readline
1484 exports it.
1485
1486 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1487
1488 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1489 -Werror on this file.
1490
1491 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1492
1493 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1494 the format name.
1495 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1496 * gdbarch.c: Regenerate.
1497
1498 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1499
1500 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1501 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1502 provide a default value.
1503 * gdbarch.h, gdbarch.c: Regenerate.
1504 * frame.c (get_prev_frame): Update. Check
1505 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1506 * s390-tdep.c (s390_gdbarch_init): Update.
1507 * mips-tdep.c (mips_gdbarch_init): Update.
1508 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1509 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1510 * alpha-tdep.c (alpha_gdbarch_init): Update.
1511
1512 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1513
1514 * ia64-linux-nat.c: Include gdb_string.h.
1515 * alpha-nat.c: Ditto.
1516 * ppc-linux-nat.c: Ditto.
1517 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1518 Update dependencies.
1519
1520 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1521
1522 * gdbthread.h: Include "frame.h".
1523 (struct thread_info): Replace step_frame_address with
1524 step_frame_id.
1525 * inferior.h: Include "frame.h".
1526 (step_frame_id): Replace external variable step_frame_address.
1527 * gdbthread.h (save_infrun_state): Replace step_frame_address
1528 parameter with step_frame_id parameter.
1529 (load_infrun_state): Ditto.
1530 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1531 * infcmd.c (step_frame_id, step_1, step_once): Update.
1532 * thread.c (load_infrun_state, save_infrun_state): Update.
1533 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1534 (handle_inferior_event, step_over_function): Update.
1535 (normal_stop, context_switch, restore_inferior_status): Update.
1536 (struct inferior_status): Replace step_frame_address with
1537 step_frame_id.
1538
1539 2002-12-05 David Carlton <carlton@math.stanford.edu>
1540
1541 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1542 DW_TAG_member as well as a declaration as being a C++ static data
1543 member.
1544 (read_structure_scope): Combine tests for DW_TAG_member and
1545 DW_TAG_variable.
1546
1547 2002-12-05 David Carlton <carlton@math.stanford.edu>
1548
1549 * linespec.c (decode_compound): New function.
1550 (decode_line_1): Move code into decode_compound.
1551
1552 2002-12-05 David Carlton <carlton@math.stanford.edu>
1553
1554 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1555 argument.
1556 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1557 the static block. See PR gdb/804.
1558
1559 2002-12-05 David Carlton <carlton@math.stanford.edu>
1560
1561 * symtab.c (lookup_symbol_aux_block): New function.
1562 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1563
1564 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1565
1566 * gdbarch.sh: Dump the predicate function and macro values.
1567 (read): Print error on standard error.
1568 * gdbarch.c: Regenerate.
1569
1570 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1571
1572 * Makefile.in (mips_tdep_h): Define.
1573 (mips-tdep.o): Add mips_tdep_h to dependency list.
1574 * mips-tdep.h: New file.
1575 * mips-tdep.c (mips-tdep.h): Include.
1576 (enum mips_abi): Move to mips-tdep.h.
1577 (mips_abi): New function.
1578
1579 2002-12-04 David Carlton <carlton@math.stanford.edu>
1580
1581 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1582
1583 2002-12-04 David Carlton <carlton@math.stanford.edu>
1584
1585 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1586 function.
1587 (lookup_symbol_aux_minsyms): New function.
1588
1589 2002-12-04 J. Brobecker <brobecker@gnat.com>
1590
1591 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1592
1593 2002-12-04 J. Brobecker <brobecker@gnat.com>
1594
1595 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1596 which is an obsolete macro name.
1597
1598 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1601 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1602
1603 2002-12-03 H.J. Lu (hjl@gnu.org)
1604
1605 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1606 (create_breakpoints): Make sure the addr_string field is not
1607 NULL.
1608
1609 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1610
1611 * sparc-nat.c (fetch_inferior_registers)
1612 (store_inferior_registers): Add comment on problem of LWP vs
1613 threads.
1614
1615 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1616 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1617 (lin_lwp_store_registers): Remove.
1618 (init_lin_lwp_ops): Use fetch_inferior_registers
1619 and store_inferior_registers directly.
1620 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1621 (store_inferior_registers): Likewise.
1622 Fix PR gdb/725.
1623
1624 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1625
1626 * frame.h (get_frame_id): Convert to a function.
1627 (null_frame_id, frame_id_p): Declare.
1628 (frame_id_eq, frame_id_inner): Declare.
1629 (frame_id_build): New function.
1630 * frame.c (get_frame_id): Update. Use null_frame_id.
1631 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1632 frame_id_inner.
1633 (null_frame_id, frame_id_p): Define.
1634 (frame_id_eq, frame_id_inner): Define.
1635 (frame_id_build): New function.
1636 * varobj.c (varobj_create): Update.
1637 (varobj_update): Update.
1638 * valops.c (value_assign): Update.
1639 (new_root_variable): Update.
1640 * infrun.c (save_inferior_status): Update.
1641 * breakpoint.c (watch_command_1): Update.
1642
1643 2002-12-03 J. Brobecker <brobecker@gnat.com>
1644
1645 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1646 (SNAP2): Likewise.
1647
1648 2002-12-03 Andrew Cagney <cagney@redhat.com>
1649
1650 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1651 patch.
1652
1653 * PROBLEMS: Mention PR gdb/725.
1654
1655 2002-12-03 Andreas Schwab <schwab@suse.de>
1656
1657 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1658
1659 2002-12-02 Adam Fedor <fedor@gnu.org>
1660 Klee Dienes <kdienes@apple.com>
1661
1662 * objc-lang.c (objc_printstr): Add width arg to match
1663 printstr prototype.
1664 (compare_selectors): Add 'const' to arg types.
1665 (compare_classes): Likewise.
1666 (find_imps): Cast msym pointer to avoid compiler warning.
1667 (print_object_command): Validate the address before
1668 passing it to the print routine.
1669 (find_objc_msgcall_submethod): Change function argument to
1670 return an int.
1671 * objc-lang.h: Add 'extern' to all function declarations.
1672 (value_nsstring): Add declaration.
1673
1674 2002-12-02 J. Brobecker <brobecker@gnat.com>
1675
1676 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1677 Fixes a build failure on HP/UX.
1678
1679 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1680 failure on HP/UX.
1681 (hpread_has_name): Advance declaration to avoid a compilation warning.
1682 (pst_syms_count): Add missing variable type. By change, the compiler
1683 was defaulting to int, which seems a good choice. Fixes a compilation
1684 warning.
1685 (pst_syms_size): Likewise.
1686
1687 2002-12-02 J. Brobecker <brobecker@gnat.com>
1688
1689 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1690 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1691 later to set the proper gdbarch methods depending on the osabi.
1692 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1693
1694 2002-12-02 J. Brobecker <brobecker@gnat.com>
1695
1696 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1697 * osabi.c (gdb_osabi_name): Add strings images for the two new
1698 enum values.
1699 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1700
1701 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1702
1703 * MAINTAINERS (Java): Global maintainers are responible for Java.
1704 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1705 part Java maintainers.
1706
1707 2002-12-02 J. Brobecker <brobecker@gnat.com>
1708
1709 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1710 Fixes a compilation failure on AiX.
1711
1712 2002-12-02 J. Brobecker <brobecker@gnat.com>
1713
1714 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1715 why aix-thread.o is not listed.
1716
1717 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1718
1719 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1720 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1721 * gdbarch.h, gdbarch.c: Re-generate.
1722 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1723 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1724 * config/pa/tm-hppa.h, frame.h: Update.
1725 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1726 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1727 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1728 * cris-tdep.c, alpha-tdep.c: Update.
1729 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1730 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1731 (get_prev_frame): Ditto.
1732
1733 2002-11-30 Andrew Cagney <cagney@redhat.com>
1734
1735 * exec.c (xfer_memory): Replace boolean with int.
1736 * p-exp.y: Use 0 instead of false.
1737 * corelow.c (gdb_check_format): Change return type to int from
1738 boolean.
1739 * utils.c: Don't include <curses.h> or <term.h> first.
1740
1741 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1742
1743 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1744 (m68hc11_register_byte): Remove.
1745 (m68hc11_gdbarch_init): Don't set the above.
1746
1747 2002-11-29 Andrew Cagney <cagney@redhat.com>
1748
1749 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1750 by calling get_selected_frame.
1751 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1752 set_current_frame, create_new_frame, select_frame and
1753 get_current_frame.
1754 * remote-e7000.c (e7000_start_remote): Ditto.
1755 * remote-mips.c (common_open): Ditto
1756 * remote-rdp.c (remote_rdp_open): Ditto.
1757
1758 2002-11-29 Andreas Schwab <schwab@suse.de>
1759
1760 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1761 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1762 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1763 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1764 read_memory_unsigned_integer instead of read_memory_integer when
1765 dealing with addresses and instruction opcodes.
1766 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1767 (m68k_linux_frame_saved_pc): Likewise.
1768
1769 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1770
1771 * stack.c (selected_frame, select_frame): Move from here ...
1772 * frame.c (selected_frame, select_frame): ... to here. Include
1773 "language.h".
1774 * Makefile.in (frame.o): Update dependencies.
1775 * frame.c (get_selected_frame): New function.
1776 * frame.h (get_selected_frame): Declare.
1777 (deprecated_selected_frame): Rename selected_frame.
1778 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1779 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1780 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1781 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1782 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1783 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1784 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1785 * z8k-tdep.c, cli/cli-cmds.c: Update.
1786
1787 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1788
1789 * frame.h (get_selected_block): Add comments.
1790
1791 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1792
1793 * frame.c (pc_notcurrent): New function.
1794 (find_frame_sal): New function.
1795 * frame.h (find_frame_sal): Declare.
1796 (struct symtab_and_line): Add opaque declaration.
1797 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1798 find_pc_line.
1799 (frame_info): Ditto.
1800 * ada-lang.c (find_printable_frame): Ditto.
1801
1802 2002-11-28 J. Brobecker <brobecker@gnat.com>
1803
1804 * configure.in: Check that the pthdebug library is recent enough
1805 before enabling thread support on native AiX.
1806 * configure: Regenerate.
1807
1808 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1809 from the list of object files as it is now appended by configure
1810 if thread support is enabled.
1811 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1812 if thread support is enabled.
1813
1814 2002-11-28 Andrew Cagney <cagney@redhat.com>
1815
1816 * stack.c (get_selected_block): In-line get_current_block.
1817 * frame.h (get_current_block): Delete declaration.
1818 * blockframe.c (get_current_block): Delete function.
1819
1820 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1821
1822 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1823 USE_GENERIC_DUMMY_FRAMES.
1824 * gdbarch.h, gdbarch.c: Regenerate.
1825 * valops.c, frame.c: Update.
1826 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1827 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1828 * config/pa/tm-hppa.h, blockframe.c: Update.
1829 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1830 * m68k-tdep.c, alpha-tdep.c: Ditto.
1831
1832 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1833 * mips-tdep.c: Ditto.
1834
1835 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1836
1837 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1838 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1839 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1840 * gdbarch.c, gdbarch.h: Re-generate.
1841 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1842 (CALL_DUMMY_LOCATION): Delete macro definition.
1843 (PC_IN_CALL_DUMMY): Delete macro definitions.
1844
1845 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1846 default is already generic_pc_in_call_dummy.
1847 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1848 * v850-tdep.c (v850_gdbarch_init): Ditto.
1849 * sh-tdep.c (sh_gdbarch_init): Ditto.
1850 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1851 * mips-tdep.c (mips_gdbarch_init): Ditto.
1852 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1853 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1854 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1855 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1856 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1857 * avr-tdep.c (avr_gdbarch_init): Ditto.
1858
1859 * arm-tdep.c (arm_gdbarch_init): Do not set
1860 use_generic_dummy_frames, default is already 1.
1861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1862 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1863 * v850-tdep.c (v850_gdbarch_init): Ditto.
1864 * sh-tdep.c (sh_gdbarch_init): Ditto.
1865 * s390-tdep.c (s390_gdbarch_init): Ditto.
1866 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1867 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1868 * mips-tdep.c (mips_gdbarch_init): Ditto.
1869 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1871 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1872 * i386-tdep.c (i386_gdbarch_init): Ditto.
1873 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1874 * frv-tdep.c (frv_gdbarch_init): Ditto.
1875 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1876 * cris-tdep.c (cris_gdbarch_init): Ditto.
1877 * avr-tdep.c (avr_gdbarch_init): Ditto.
1878
1879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1880 call_dummy_location, default is already AT_ENTRY_POINT.
1881 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1882 * v850-tdep.c (v850_gdbarch_init): Ditto.
1883 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1884 * sh-tdep.c (sh_gdbarch_init): Ditto.
1885 * s390-tdep.c (s390_gdbarch_init): Ditto.
1886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1888 * mips-tdep.c (mips_gdbarch_init): Ditto.
1889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1890 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1891 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1892 * i386-tdep.c (i386_gdbarch_init): Ditto.
1893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1894 * frv-tdep.c (frv_gdbarch_init): Ditto.
1895 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1896 * cris-tdep.c (cris_gdbarch_init): Ditto.
1897 * avr-tdep.c (avr_gdbarch_init): Ditto.
1898 * arm-tdep.c (arm_gdbarch_init): Ditto.
1899 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1900
1901 2002-11-28 Andrew Cagney <cagney@redhat.com>
1902
1903 * frame.h: Update comments on set_current_frame, create_new_frame,
1904 flush_cached_frames, reinit_frame_cache, select_frame and
1905 selected_frame.
1906
1907 2002-11-27 Andrew Cagney <cagney@redhat.com>
1908
1909 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1910 deprecated pc_in_call_dummy function.
1911 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1912 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1913 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1914 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1915 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1916
1917 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1918
1919 * Makefile.in: Remove Tix dependencies.
1920 * acinclude.m4: Ditto.
1921 * aclocal.m4: Ditto.
1922 * configure.in: Ditto.
1923 * configure: Regenerated.
1924
1925 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1926
1927 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1928 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1929 * gdbarch.c: Re-generate.
1930
1931 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1932
1933 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1934 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1935 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1936 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1937 pc_in_call_dummy_at_entry_point.
1938 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1939 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1940 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1941 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1942 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1943 pc_in_call_dummy_on_stack.
1944 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1945 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1946 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1947 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1948 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1949
1950 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1951
1952 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1953 pc_in_call_dummy_before_text_end
1954 (deprecated_pc_in_call_dummy_after_text_end): Rename
1955 pc_in_call_dummy_after_text_end.
1956 (deprecated_pc_in_call_dummy_on_stack): Rename
1957 pc_in_call_dummy_on_stack.
1958 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1959 pc_in_call_dummy_at_entry_point.
1960 * m68k-tdep.c (m68k_gdbarch_init): Update.
1961 * s390-tdep.c (s390_gdbarch_init): Update.
1962 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1963 * vax-tdep.c (vax_gdbarch_init): Update.
1964 * sparc-tdep.c (sparc_gdbarch_init): Update.
1965 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1966 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1967 * i386-tdep.c (i386_gdbarch_init): Update.
1968 * frv-tdep.c (frv_gdbarch_init): Update.
1969 * cris-tdep.c (cris_gdbarch_init): Update.
1970 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1971 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1972 (deprecated_pc_in_call_dummy_after_text_end)
1973 (deprecated_pc_in_call_dummy_on_stack)
1974 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1975 * alpha-tdep.c (alpha_gdbarch_init): Update.
1976
1977 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1978
1979 * acconfig.h (HAVE_PREAD64): Add.
1980 * configure.in: Check for pread64.
1981 * config.in: Regenerated.
1982 * configure: Regenerated.
1983 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1984 * linux-proc.c (linux_proc_xfer_memory): New function.
1985 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1986
1987 2002-11-25 David Carlton <carlton@math.stanford.edu>
1988
1989 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1990 pdi's with no name.
1991
1992 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1993
1994 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1995 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1996
1997 2002-11-25 Jim Blandy <jimb@redhat.com>
1998
1999 * symfile.c (init_objfile_sect_indices): New function.
2000 (default_symfile_offsets): Move the section-index-initializing
2001 stuff into init_objfile_sect_indices, and call that.
2002
2003 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2004 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2005
2006 * symfile.c (syms_from_objfile): Adjust indentation.
2007
2008 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2009 || info_verbose isn't true.
2010
2011 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2012
2013 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2014 default to get_frame_base.
2015 * gdbarch.h, gdbarch.c: Regenerate.
2016 * arch-utils.c (default_frame_address): Delete function.
2017 * arch-utils.h (default_frame_address): Delete declaration
2018
2019 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2020
2021 * varobj.c (find_frame_addr_in_frame_chain):
2022 Use get_frame_base instead of FRAME_FP,
2023 obvious fix.
2024
2025 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2026
2027 * frame.h (FRAME_FP): Delete macro.
2028 (get_frame_base): New function declaration.
2029 * frame.c (get_frame_base): New function.
2030 (get_frame_id): Use ->frame.
2031 (frame_find_by_id): Rewrite to use get_frame_id.
2032 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2033 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2034 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2035 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2036 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2037 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2038 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2039
2040 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2041
2042 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2043
2044 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2045
2046 * frame.c (set_unwind_by_pc): Revert change below, use
2047 PC_IN_CALL_DUMMY.
2048 (get_prev_frame): Ditto.
2049
2050 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2051
2052 * dummy-frame.c (pc_in_dummy_frame): New function.
2053 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2054 (find_dummy_frame): Update comment.
2055 (generic_pop_current_frame): Use get_frame_type.
2056 * dummy-frame.h (pc_in_dummy_frame): Declare.
2057 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2058 (create_new_frame): Use pc_in_dummy_frame.
2059 (get_prev_frame): Use pc_in_dummy_frame.
2060 (frame_saved_regs_register_unwind): Use get_prev_frame.
2061 (deprecated_generic_get_saved_register): Use get_prev_frame.
2062
2063 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2064
2065 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2066 from here ...
2067 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2068 (varobj_create): Note that frame ID should be used.
2069 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2070
2071 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2072
2073 * breakpoint.c: Include "gdb_assert.h".
2074 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2075 not being used.
2076 * Makefile.in (breakpoint.o): Update dependencies.
2077 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2078 deprecated_frame_in_dummy.
2079 * stack.c (print_frame_info_base): Ditto.
2080 (frame_info): Ditto.
2081 (print_frame_info_base): Ditto. Delete dead code.
2082
2083 2002-11-23 Andreas Schwab <schwab@suse.de>
2084
2085 * Makefile.in (m68k_tdep_h): Define.
2086 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2087 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2088 * m68k-tdep.c: Move register number enum ...
2089 * m68k-tdep.h: ... to this new file and rename the constants from
2090 E_* to M68K_*. All uses changed.
2091 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2092 * abug-rom.c: Include "m68k-tdep.h". Use
2093 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2094 * cpu32bug-rom.c: Likewise.
2095 * dbug-rom.c: Likewise.
2096 * m68k-tdep.c: Likewise.
2097 * m68klinux-nat.c: Likewise.
2098 * remote-est.c: Likewise.
2099 * rom68k-rom.c: Likewise.
2100 * config/m68k/tm-linux.h: Likewise.
2101
2102 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2103
2104 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2105 dummy frame initialization code.
2106 * mips-tdep.c (mips_gdbarch_init): Ditto.
2107
2108 2002-11-22 Christopher Faylor <cgf@redhat.com>
2109
2110 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2111 attach will hang.
2112
2113 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2114
2115 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2116 to default_frame_address.
2117 * gdbarch.h, gdbarch.c: Re-generate.
2118
2119 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2120 or frame_locals_address to default_frame_address.
2121 * m68k-tdep.c (m68k_gdbarch_init): Update.
2122 * i386-tdep.c (i386_gdbarch_init): Update.
2123 * frv-tdep.c (frv_gdbarch_init): Update.
2124 * sh-tdep.c (sh_gdbarch_init): Update.
2125 * v850-tdep.c (v850_gdbarch_init): Update.
2126 * sparc-tdep.c (sparc_gdbarch_init): Update.
2127 * mips-tdep.c (mips_gdbarch_init): Update.
2128 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2129 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2131
2132 * cris-tdep.c (cris_frame_args_address): Delete function.
2133 (cris_frame_locals_address): Delete function.
2134 (cris_gdbarch_init): Do not set frame_args_address or
2135 frame_locals_address.
2136
2137 2002-11-22 Michael Snyder <msnyder@redhat.com>
2138
2139 * thread-db.c (thread_db_load): Tell the user what's going on
2140 if dlopen fails on libthread_db.
2141
2142 2002-11-23 Andreas Schwab <schwab@suse.de>
2143
2144 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2145 invariant return values.
2146
2147 2002-11-22 Andreas Schwab <schwab@suse.de>
2148
2149 * valops.c (value_slice): Move declaration of `offset' to avoid
2150 warning.
2151
2152 2002-11-22 Christopher Faylor <cgf@redhat.com>
2153
2154 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2155 (struct so_stuff): Add end_addr field.
2156 (register_loaded_dll): Calculate and store end address of loaded dll.
2157 (solib_address): New function.
2158 (child_solib_loaded_library_pathname): Pass carefully constructed
2159 section info to safe_symbol_file_add rather than ignoring it.
2160 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2161 DLL is loaded.
2162 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2163 (child_create_inferior): Fix a compiler warning.
2164 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2165 (solib_address): Declare new function.
2166
2167 2002-11-22 Andreas Schwab <schwab@suse.de>
2168
2169 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2170 and FPS registers.
2171
2172 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2173
2174 * maint.c (_initialize_maint_cmds): Fix typo. From
2175 Francesco Potorti` <pot@gnu.org>.
2176
2177 2002-11-21 Andrew Cagney <cagney@redhat.com>
2178
2179 * mips-tdep.c (mips_dump_tdep): Delete references to
2180 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2181 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2182 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2183 * printcmd.c (build_address_symbolic): Delete calls to
2184 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2185 (address_info): Ditto.
2186 Fix PR gdb/773.
2187
2188 2002-11-19 Klee Dienes <kdienes@apple.com>
2189 Adam Fedor <fedor@gnu.org>
2190
2191 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2192 the ability to explicitly specify the quote characters and word
2193 break characters; if NULL is specified for either, use the old
2194 behavior of using the characters used by the completer.
2195 (skip_chars): New function. Convenience wrapper around
2196 skip_quoted_chars to provide the original skip_chars behavior.
2197 * completer.h (skip_quoted_chars): Add prototype.
2198
2199 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2200
2201 Problems reported by Paul Eggert.
2202 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2203
2204 2002-11-19 Andreas Schwab <schwab@suse.de>
2205
2206 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2207 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2208 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2209 (m68k_linux_frame_saved_pc): Move to ...
2210 * m68klinux-tdep.c: ... here. New file.
2211 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2212 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2213
2214 2002-11-19 Adam Fedor <fedor@gnu.org>
2215
2216 * objc-exp.y: Revert to old skip_quoted usage.
2217
2218 2002-11-19 Adam Fedor <fedor@gnu.org>
2219
2220 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2221 (objc_lang_h): Define.
2222 (YYFILES): Add objc-exp.tab.c.
2223 (local-maintainer-clean): Remove objc-exp.tab.c.
2224 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2225
2226 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2227
2228 * p-exp.y (typecast rule): Add automatic dereference of
2229 pascal classes if needed.
2230 (THIS): Set current_type.
2231 Automatically dereference pascal classes.
2232 (typebase rule): Add ^typebase recognition.
2233
2234 2002-11-18 Adam Fedor <fedor@gnu.org>
2235
2236 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2237 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2238 (op_name): Handle OP_OBJC_SELF.
2239 * Makefile.in (expprint.o): Add additional depends.
2240
2241 2002-11-18 Adam Fedor <fedor@gnu.org>
2242
2243 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2244 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2245 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2246 * objc-exp.y: Likewise.
2247
2248 2002-11-18 Adam Fedor <fedor@gnu.org>
2249
2250 * gdb/parser-defs.h: (struct objc_class_str): New structure
2251 for parsing ObjC classes.
2252
2253 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2254
2255 * stack.c (frame_relative_level): Copy function from here ...
2256 * frame.c (frame_relative_level): ...to here.
2257
2258 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2259
2260 * frame.h (enum frame_type): Define.
2261 (get_frame_type): Declare.
2262 (struct frame_info): Add field `type'. Delete field
2263 signal_handler_caller.
2264 (deprecated_set_frame_signal_handler_caller): Declare.
2265 * frame.c (get_frame_type): New function.
2266 (deprecated_set_frame_type): New function.
2267 (create_new_frame): Set the frame's type.
2268 (get_prev_frame): Similar.
2269 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2270 * s390-tdep.c: Ditto.
2271 * m68klinux-nat.c: Ditto.
2272 * ns32k-tdep.c: Ditto.
2273 * x86-64-linux-tdep.c: Ditto.
2274 * vax-tdep.c: Ditto.
2275 * rs6000-tdep.c: Ditto.
2276 * ppc-linux-tdep.c: Ditto.
2277 * i386-interix-tdep.c: Ditto.
2278 * mips-tdep.c: Ditto.
2279 * m68k-tdep.c: Ditto.
2280 * hppa-tdep.c: Ditto.
2281 * ia64-tdep.c: Ditto.
2282 * cris-tdep.c: Ditto.
2283 * arm-tdep.c: Ditto.
2284 * alpha-tdep.c: Ditto.
2285 * i386-tdep.c: Ditto.
2286 * stack.c: Ditto.
2287 * ada-lang.c: Ditto.
2288 * blockframe.c: Update.
2289 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2290 deprecated_set_frame_type instead of signal_handler_caller.
2291 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2292 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2293 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2294
2295 2002-11-18 Klee Dienes <kdienes@apple.com>
2296
2297 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2298
2299 2002-11-18 Klee Dienes <kdienes@apple.com>
2300
2301 * buildsym.c (pop_context): Add comment.
2302
2303 2002-11-18 Klee Dienes <kdienes@apple.com>
2304
2305 * buildsym.h (pop_context): Convert to function, defined in
2306 buildsym.c.
2307 * buildsym.c: Include gdb_assert.h.
2308 (pop_context): Implement as C function. Add check for stack
2309 underflow.
2310 * dbxread.c (process_one_symbol): Complain and stop processing
2311 that symbol if we are already at the top of the context stack for
2312 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2313 when processing N_RBRAC.
2314
2315 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2316
2317 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2318 define.
2319 (struct target_waitstatus): Add opaque definition.
2320 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2321 * exec.c (init_exec_ops): Likewise.
2322 * fork-child.c (clone_and_follow_inferior): Remove.
2323 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2324 * inferior.h (clone_and_follow_inferior): Remove prototype.
2325 * infrun.c (follow_fork_mode_both): Remove.
2326 (follow_fork_mode_kind_names): Remove commented out "both".
2327 (follow_inferior_fork): Remove follow_fork_mode_both support.
2328 * inftarg.c (child_clone_and_follow_inferior): Remove.
2329 (child_post_follow_inferior_by_clone): Remove.
2330 (init_child_ops): Don't set to_clone_and_follow_inferior
2331 or to_post_follow_inferior_by_clone.
2332 * target.c (default_clone_and_follow_inferior): Remove.
2333 (cleanup_target): Don't set to_clone_and_follow_inferior
2334 or to_post_follow_inferior_by_clone.
2335 (find_default_clone_and_follow_inferior): Remove.
2336 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2337 (debug_to_clone_and_follow_inferior): Remove.
2338 (debug_to_post_follow_inferior_by_clone): Remove.
2339 (setup_target_debug): Don't set to_clone_and_follow_inferior
2340 or to_post_follow_inferior_by_clone.
2341 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2342 and to_post_follow_inferior_by_clone.
2343 (child_clone_and_follow_inferior): Remove prototype.
2344 (child_post_follow_inferior_by_clone): Remove prototype.
2345 (target_clone_and_follow_inferior): Remove macro.
2346 (target_post_follow_inferior_by_clone): Remove macro.
2347 (find_default_clone_and_follow_inferior): Remove prototype.
2348
2349 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2352 inferior_has_vforked, and inferior_has_execd instead of
2353 target_has_forked, target_has_vforked, and target_has_execd.
2354 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2355 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2356 (CHILD_WAIT): Define.
2357 (child_wait): Add prototype.
2358 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2359 Add prototype.
2360 (hpux_has_vforked): Likewise, from child_has_vforked.
2361 (hpux_has_execd): Likewise, from child_has_execd.
2362 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2363 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2364 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2365 and hpux_has_syscall_event instead of the target hooks.
2366 * infrun.c (inferior_has_forked, inferior_has_vforked)
2367 (inferior_has_execd): New functions.
2368 * inftarg.c (not_same_real_pid): Remove.
2369 (child_wait): Remove references to not_same_real_pid,
2370 target_has_forked, target_has_vforked, target_has_execd,
2371 and target_has_syscall_event.
2372 (child_has_forked, child_has_vforked, child_has_execd)
2373 (child_has_syscall_event): Remove.
2374 (init_child_ops): Remove references to child_has_forked,
2375 child_has_vforked, child_has_execd, and child_has_syscall_event.
2376 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2377 (hpux_has_vforked): Likewise, from child_has_vforked.
2378 (hpux_has_execd): Likewise, from child_has_execd.
2379 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2380 * target.c (cleanup_target): Remove references to
2381 to_has_forked, to_has_vforked, to_has_execd, and
2382 to_has_syscall_event.
2383 (update_current_target): Likewise.
2384 (setup_target_debug): Likewise.
2385 (debug_to_has_forked): Remove.
2386 (debug_to_has_vforked): Remove.
2387 (debug_to_has_execd): Remove.
2388 (debug_to_has_syscall_event): Remove.
2389 * target.h (struct target_ops): Remove to_has_forked.
2390 to_has_vforked, to_has_execd, and to_has_syscall_event.
2391 (child_has_forked, child_has_vforked, child_has_execd)
2392 (child_has_syscall_event): Remove prototypes.
2393 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2394 prototypes.
2395 (target_has_forked, target_has_vforked, target_has_execd)
2396 (target_has_syscall_event): Remove macros.
2397
2398 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2399
2400 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2401 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2402 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2403 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2404 * target.c (cleanup_target): Remove reference to
2405 to_can_follow_vfork_prior_to_exec.
2406 (update_current_target): Likewise.
2407 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2408 (setup_target_debug): Remove reference to
2409 to_can_follow_vfork_prior_to_exec.
2410 * target.h (struct target_ops): Remove
2411 to_can_follow_vfork_prior_to_exec.
2412 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2413 (target_can_follow_vfork_prior_to_exec): Remove definition.
2414 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2415 define.
2416 * infrun.c (follow_vfork_when_exec): Remove.
2417 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2418 (follow_exec): Likewise.
2419 (handle_inferior_event): Likewise.
2420 (keep_going): Likewise.
2421
2422 2002-11-15 Andrew Cagney <cagney@redhat.com>
2423
2424 * frame.c (generic_unwind_get_saved_register): Make static.
2425 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2426 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2427 defaults to generic_unwind_get_saved_register.
2428 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2429 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2430 * frv-tdep.c (frv_gdbarch_init): Ditto.
2431 * i386-tdep.c (i386_gdbarch_init): Ditto.
2432 * s390-tdep.c (s390_gdbarch_init): Ditto.
2433 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2434 * v850-tdep.c (v850_gdbarch_init): Ditto.
2435 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2436 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2437 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2438
2439 2002-11-15 Andrew Cagney <cagney@redhat.com>
2440
2441 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2442 i386-tdep.c.
2443
2444 2002-11-15 Andrew Cagney <cagney@redhat.com>
2445
2446 * frame.h (sigtramp_saved_pc): Delete declaration.
2447 * blockframe.c (sigtramp_saved_pc): Delete function.
2448 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2449 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2450 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2451 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2452
2453 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2454
2455 * frame.c (frame_pc_unwind): New function.
2456 (frame_saved_regs_pc_unwind): New function.
2457 (frame_register_unwind): Pass unwind_cache instead of
2458 register_unwind_cache.
2459 (set_unwind_by_pc): Add unwind_pc parameter, set.
2460 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2461 (get_prev_frame): Ditto.
2462 * frame.h (frame_pc_unwind_ftype): Declare.
2463 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2464 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2465 (frame_pc_unwind): Declare.
2466 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2467 (struct dummy_frame): Add comment mentioning that values are for
2468 previous frame.
2469 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2470 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2471 (generic_file_frame_chain_valid): Ditto.
2472 * stack.c (frame_info): Ditto.
2473
2474 2002-11-15 David Carlton <carlton@math.stanford.edu>
2475
2476 * linespec.c (locate_first_half): New function.
2477 (decode_line_1): Move code into locate_first_half.
2478
2479 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2480
2481 * complaints.h: Add comment explaining how to eliminate a
2482 deprecated_complain call.
2483 * complaints.h: Fix spelling errors.
2484
2485 2002-11-15 David Carlton <carlton@math.stanford.edu>
2486
2487 * printcmd.c: Remove #include "disasm.h".
2488
2489 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2490
2491 * frame.h: Move the most relevant interface functions to the start
2492 of the file.
2493
2494 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2495
2496 * regcache.h (deprecated_registers): Rename registers.
2497 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2498 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2499 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2500 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2501 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2502 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2503 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2504 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2505 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2506 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2507 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2508 * v850ice.c: Update.
2509
2510 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2511
2512 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2513 NULL buffer.
2514
2515 2002-11-13 Andrew Cagney <cagney@redhat.com>
2516
2517 * regcache.h (deprecated_read_register_bytes): Rename
2518 read_register_bytes.
2519 (deprecated_write_register_bytes): Rename write_register_bytes.
2520 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2521 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2522 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2523 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2524 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2525 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2526 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2527 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2528 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2529 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2530 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2531 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2532 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2533 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2534
2535 2002-11-13 Jim Blandy <jimb@redhat.com>
2536
2537 * findvar.c (read_var_value): Doc fix.
2538
2539 2002-11-13 Andrew Cagney <cagney@redhat.com>
2540
2541 * regcache.c (struct regcache): Replace passthough_p with
2542 readonly_p.
2543 (regcache_xmalloc): Initialize readonly_p.
2544 (build_regcache): Initialize readonly_p.
2545 (regcache_save): New function.
2546 (regcache_restore): New function.
2547 (regcache_cpy): Re-implement using regcache_save and
2548 regcache_restore.
2549 (regcache_raw_read): Update.
2550 (regcache_cooked_read): When a read-only cache, checked for cached
2551 pseudo register values.
2552 (regcache_raw_write): Assert that the cache is not read-only.
2553 Remove code handling a non-passthrough cache.
2554 * regcache.h (regcache_save): Declare.
2555 (regcache_restore): Declare.
2556
2557 2002-11-13 Andrew Cagney <cagney@redhat.com>
2558
2559 * regcache.c (struct regcache_descr): Add fields
2560 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2561 (init_legacy_regcache_descr): Compute the size of a cooked
2562 register cache and then assign that to sizeof_raw_registers. Set
2563 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2564 (init_legacy_regcache_descr): Ditto.
2565
2566 2002-11-13 Andrew Cagney <cagney@redhat.com>
2567
2568 * regcache.c (register_buffer): Move to near start of file, update
2569 description.
2570 (regcache_raw_read): Use.
2571 (regcache_raw_write): Use.
2572 (struct regcache): Rename raw_registers to registers and
2573 raw_register_valid_p to register_valid_p.
2574 (regcache_xmalloc): Update.
2575 (regcache_xfree): Update.
2576 (register_buffer): Update.
2577 (regcache_cpy): Update.
2578 (regcache_cpy_no_passthrough): Update.
2579 (regcache_valid_p): Update.
2580 (deprecated_grub_regcache_for_registers): Update.
2581 (deprecated_grub_regcache_for_register_valid): Update.
2582 (set_register_cached): Update.
2583 (regcache_raw_write): Update.
2584
2585 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2586
2587 * p-exp.y (name_not_typename): Use copy_name to
2588 set current_type variable for fields of THIS.
2589
2590 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2593 * monitor.c (init_base_monitor_ops): Likewise.
2594 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2595 * remote-array.c (init_array_ops): Likewise.
2596 * remote-e7000.c (init_e7000_ops): Likewise.
2597 * remote-es.c (init_es1800_ops): Likewise.
2598 (init_es1800_child_ops): Likewise.
2599 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2600 * remote-sim.c (init_gdbsim_ops): Likewise.
2601 * remote-st.c (init_st2000_ops): Likewise.
2602 * sol-thread.c (init_sol_core_ops): Likewise.
2603 (init_sol_thread_ops): Likewise.
2604 * v850ice.c (init_850ice_ops): Likewise.
2605 * win32-nat.c (init_child_ops): Likewise.
2606 * wince.c (init_child_ops): Likewise.
2607
2608 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2609
2610 * utils.c (gdb_realpath): Make rp a constant pointer.
2611
2612 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2613
2614 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2615 a constant buffer; cannonicalize_file_name(); realpath() with a
2616 pathconf() defined buffer, xstrdup().
2617
2618 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2619
2620 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2621 to hang2.C; hang3.c to hang3.C.
2622
2623 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2624
2625 * findvar.c (read_var_value): Reenable TLS code.
2626
2627 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2628 Jim Blandy <jimb@redhat.com>
2629
2630 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2631 * target.c (update_current_target): Add
2632 to_get_thread_local_address.
2633 * target.h (to_get_thread_local_address): Export.
2634 (target_get_thread_local_address): Define.
2635 (target_get_thread_local_address_p): Define.
2636 * thread-db.c: Include solib-svr4.h.
2637 (td_thr_tls_get_addr_p): Define.
2638 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2639 (thread_db_get_thread_local_address): New function.
2640 (init_thread_db_ops): Initialize to_get_thread_local_address.
2641 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2642 * configure: Regenerate.
2643 * config.in: Regenerate.
2644
2645 2002-11-11 David Carlton <carlton@math.stanford.edu>
2646
2647 * linespec.c (set_flags): New function.
2648 (decode_line_1): Move code into set_flags.
2649
2650 2002-11-11 David Carlton <carlton@math.stanford.edu>
2651
2652 * linespec.c (decode_line_1): Move chunks of code to separate
2653 functions.
2654 (initialize_defaults): New function.
2655 (decode_indirect): New function.
2656
2657 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2658
2659 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2660 instead of void_code_ptr.
2661 (sigtramp_saved_pc): Ditto.
2662
2663 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2664 i386_fp_regnum_p.
2665
2666 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2667
2668 * gdbtypes.h (struct main_type): Move artificial flag out of
2669 loc. New member of ``struct field'' named static_kind. Reduce
2670 overloaded meaning of bitsize.
2671 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2672 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2673 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2674
2675 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2676 new fields.
2677 (template_to_fixed_record_type, template_to_static_fixed_type)
2678 (to_record_with_fixed_variant_part): Likewise.
2679 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2680 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2681 * dwarfread.c (struct_type, enum_type): Likewise.
2682 * hpread.c (hpread_read_enum_type)
2683 (hpread_read_function_type, hpread_read_doc_function_type)
2684 (hpread_read_struct_type): Likewise.
2685 * mdebugread.c (parse_symbol): Likewise.
2686
2687 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2688
2689 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2690 * stack.c (print_frame_info_base): Update.
2691 (print_frame_info_base, frame_info): Update.
2692 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2693 (sparc_frame_saved_pc): Update.
2694 * ada-lang.c (find_printable_frame): Update.
2695 * breakpoint.c (deprecated_frame_in_dummy): Update.
2696
2697 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2698
2699 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2700 defined.
2701 (regmap): Extend to cover all registers.
2702 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2703 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2704 definitions.
2705 (fetch_register, sore_register): Simplify.
2706 (old_fetch_inferior_registers, old_store_inferior_registers):
2707 Remove functions.
2708 (cannot_fetch_register, cannot_store_register): Change
2709 implementation to use regmap array to decide which registers
2710 cannot be fetched/stored. This removes $orig_eax from the
2711 registers that cannot be fetched/stored.
2712 (fetch_inferior_registers): Call fetch_register directly instead
2713 of calling old_fetch_inferior_registers.
2714 (store_inferior_registers): Call store_register directly instead
2715 of calling old_store_inferior_registers.
2716 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2717 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2718 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2719
2720 2002-11-09 Klee Dienes <kdienes@apple.com>
2721
2722 * i387-tdep.c (i387_supply_register): When called with NULL as a
2723 buffer, mark the register as not provided (to mirror the behavior
2724 of supply_register).
2725 (i387_supply_fxsave): Ditto.
2726 (i387_supply_fsave): Ditto (inherits the behavior from
2727 i387_supply_register).
2728
2729 2002-11-09 Klee Dienes <kdienes@apple.com>
2730
2731 * blockframe.c (sigtramp_saved_pc): Use
2732 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2733 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2734 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2735
2736 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2737
2738 * frame.c (get_prev_frame): Test prev_p to identify a previously
2739 unwound frame. Initialize prev_p.
2740 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2741 comment.
2742
2743 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2744
2745 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2746 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2747 more comments. Zap dead code.
2748
2749 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2750
2751 * infcmd.c (print_vector_info, print_float_info): Move code that
2752 checks whether the target has any registers and whether there is a
2753 selected frame up, such that it is also used if a target provides
2754 multi-arch definitions of these functions.
2755
2756 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2757
2758 * Makefile.in (DESTDIR): Define.
2759 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2760 prefix.
2761
2762 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2763 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2764
2765 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2766
2767 * i386-linux-tdep.c: Include "reggroups.h".
2768 (i386_linux_register_reggroup_p): New function.
2769 (i386_linux_init_abi): Set register_reggroup_p to
2770 i386_linux_register_reggroup_p.
2771 * i386-tdep.h (i386_register_reggroup_p): Declare.
2772 * i386-tdep.c: Include "reggroups.h".
2773 (i386_init_reggroups): New function.
2774 (i386_add_reggroups): New function.
2775 (i386_register_reggroup_p): New function.
2776 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2777 (_initialize_i386_tdep): Call i386_init_reggroups.
2778 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2779 specific reggroups.
2780
2781 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2782
2783 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2784 request that's available in *BSD.
2785
2786 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2787
2788 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2789 FDOFF_REGNUM.
2790
2791 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2792
2793 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2794 * dummy-frame.c (find_dummy_frame): Rename
2795 generic_find_dummy_frame, make static. Return the dummy frame
2796 instead of the regcache.
2797 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2798 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2799 (dummy_frame_register_unwind): Rename
2800 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2801 * dummy-frame.h (dummy_frame_register_unwind): Rename
2802 generic_call_dummy_register_unwind.
2803
2804 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2805
2806 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2807 except the inclusion of "i386/tm-i386.h", to...
2808 * config/i386/nm-i386v42mp.h: ...here.
2809 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2810
2811 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2812
2813 * Makefile.in (frame.o): Update dependencies.
2814 * blockframe.c (current_frame, frame_obstack_alloc)
2815 (frame_saved_regs_zalloc, get_current_frame)
2816 (set_current_frame, create_new_frame)
2817 (set_unwind_by_pc, get_next_frame)
2818 (flush_cached_frames, reinit_frame_cache)
2819 (frame_saved_regs_register_unwind)
2820 (deprecated_generic_get_saved_register)
2821 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2822 (_initialize_blockframe): Move frame code from here...
2823 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2824 "annotate.h" and "dummy-frame.h".
2825 (_initialize_frame): New function.
2826
2827 2002-11-08 Jim Blandy <jimb@redhat.com>
2828
2829 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2830 when we finish a function a context.
2831 * buildsym.h (outermost_context_p): New macro.
2832 (Bug analyzed by David Edelsohn.)
2833
2834 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2835
2836 * blockframe.c: Include "dummy-frame.h".
2837 (struct dummy_frame, dummy_frame_stack)
2838 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2839 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2840 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2841 (generic_save_call_dummy_addr, generic_pop_current_frame)
2842 (generic_pop_dummy_frame, generic_fix_call_dummy)
2843 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2844 dummy frame code from here...
2845 * dummy-frame.c: ...to here. New file.
2846 * dummy-frame.h: New file.
2847 (generic_call_dummy_register_unwind): Declare.
2848 (generic_find_dummy_frame): Declare.
2849 * Makefile.in (SFILES): Add dummy-frame.c.
2850 (dummy-frame.o): Specify dependencies.
2851 (dummy_frame_h): Define.
2852 (COMMON_OBS): Add dummy-frame.o.
2853 (blockframe.o): Update dependencies.
2854
2855 2002-11-08 Jim Blandy <jimb@redhat.com>
2856
2857 * dwarf2read.c (read_func_scope): Restore local_symbols and
2858 param_symbols after we finish the function context. (Based on a
2859 patch from David Edelsohn.)
2860
2861 2002-11-08 David Carlton <carlton@math.stanford.edu>
2862
2863 * linespec.c (symbol_found): New function.
2864 (minsym_found): New function.
2865 (decode_line_1): Separate out some code into separate functions.
2866
2867 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2868
2869 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2870 the benefit of the interix target.
2871 * i386-tdep.h (i386_frameless_signal_p): Declare.
2872
2873 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2874
2875 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2876 declaration that snuck in from change below.
2877
2878 2002-11-06 Andrew Cagney <cagney@redhat.com>
2879
2880 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2881 all callers.
2882 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2883 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2884 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2885 (i386_mxcsr_regnum_p): new function. Use instead of
2886 MXCSR_REGNUM_P.
2887 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2888 (i386_sse_regnum_p): Declare.
2889 (i386_mxcsr_regnum_p): Declare.
2890 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2891 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2892 (IS_FP_REGNUM): Update definition.
2893 (IS_FPU_CTRL_REGNUM): Update definition..
2894 (IS_SSE_REGNUM): Update definition..
2895 * i386v-nat.c (register_u_addr): Update.
2896 * go32-nat.c (fetch_register): Update.
2897 (store_register): Update.
2898
2899 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2900
2901 Preparation work to convert the hppa targets to multiarch partial.
2902
2903 * hppa-tdep.c: Add new functions replacing macro bodies from
2904 config/pa/tm-hppa.h. These function will be used to initialize
2905 the gdbarch structure. Import some comments from tm-hppa.h,
2906 and place them where appropriate, to avoid loosing them when
2907 we cleanup this file.
2908 (hppa_reg_struct_has_addr): New function.
2909 (hppa_inner_than): New function.
2910 (hppa_stack_align): New function.
2911 (hppa_pc_requires_run_before_use): New function.
2912 (hppa_instruction_nullified): New function.
2913 (hppa_register_byte): New function.
2914 (hppa_register_virtual_type): New function.
2915 (hppa_store_struct_return): New function.
2916 (hppa_cannot_store_register): New function.
2917 (hppa_frame_args_address): New function.
2918 (hppa_frame_locals_address): New function.
2919 (hppa_smash_text_address): New function.
2920 (hppa_coerce_float_to_double): New function. Requires the inclusion
2921 of "language.h".
2922
2923 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2924
2925 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2926 gdbarch-eligible macro to a call to the new associated function
2927 created in hppa-tdep.c.
2928 (INNER_THAN): Likewise.
2929 (STACK_ALIGN): Likewise.
2930 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2931 (INSTRUCTION_NULLIFIED): Likewise.
2932 (REGISTER_BYTE): Likewise.
2933 (REGISTER_VIRTUAL_TYPE): Likewise.
2934 (STORE_STRUCT_RETURN): Likewise.
2935 (CANNOT_STORE_REGISTER): Likewise.
2936 (FRAME_ARGS_ADDRESS): Likewise.
2937 (FRAME_LOCALS_ADDRESS): Likewise.
2938 (SMASH_TEXT_ADDRESS): Likewise.
2939 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2940 (ABOUT_TO_RETURN): Delete, as no longer used.
2941
2942 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2943
2944 * printcmd.c (disassemble_command): Remove obsolete function.
2945 (_initialize_printcmd): Do not create disassemble command here.
2946 * cli/cli-cmds.c (disassemble_command): New function. Implements
2947 disassemble command.
2948 (init_cli_cmds): Create disassemble command here instead.
2949
2950 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2951
2952 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2953
2954 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2955
2956 * regcache.h (regcache_cooked_read_using_offset_hack)
2957 (regcache_cooked_write_using_offset_hack): Delete declarations.
2958 (register_changed): Delete declaration.
2959 * regcache.c (regcache_cooked_read_using_offset_hack)
2960 (regcache_cooked_write_using_offset_hack): Delete functions.
2961 (cooked_xfer_using_offset_hack): Delete function.
2962 (register_changed): Delete function.
2963
2964 2002-11-07 Jim Blandy <jimb@redhat.com>
2965
2966 * macroscope.c: #include "complaints.h".
2967 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2968 but not in the macro table.
2969 * Makefile.in (macroscope.o): Record dependency.
2970
2971 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2972
2973 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2974
2975 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2976
2977 * regcache.c (deprecated_registers_fetched): Update.
2978 * regcache.h (deprecated_registers_fetched): Rename
2979 registers_fetched.
2980 * remote-vxsparc.c (vx_read_register): Update.
2981 * remote-vxmips.c (vx_read_register): Update.
2982 * remote-vx68.c (vx_read_register): Update.
2983 * irix5-nat.c (fetch_core_registers): Update.
2984 * mipsm3-nat.c (fetch_inferior_registers): Update.
2985 * sun3-nat.c (fetch_inferior_registers): Update.
2986 * symm-nat.c (fetch_inferior_registers): Update.
2987 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2988 (fetch_core_registers): Update.
2989 (fetch_kcore_registers): Update.
2990 * mips-nat.c (fetch_inferior_registers): Update.
2991 * corelow.c (get_core_registers): Update.
2992 * a68v-nat.c (fetch_inferior_registers): Update.
2993
2994 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2995
2996 Put in place the framework necessary for multiarching the hppa targets.
2997 * hppa-tdep.c (hppa_gdbarch_init): New function.
2998 (hppa_dump_tdep): New function.
2999 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3000 tdep structure dumper.
3001 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3002 until the multi-arching conversion has partially been completed.
3003
3004 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3005
3006 * valops.c (value_assign): Merge lval_register case into
3007 lval_reg_frame_relative. Use frame_register and
3008 regcache_cooked_write instead of get_saved_register and
3009 write_register_bytes. After flushing the register cache, try to
3010 re-select the selected frame.
3011
3012 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3013
3014 * regcache.h (deprecated_register_valid): Rename register_valid.
3015 * regcache.c: Update.
3016 * ia64-aix-nat.c: Update.
3017 * i386gnu-nat.c: Update.
3018 * alpha-nat.c: Update.
3019 * sparc-nat.c: Update.
3020 * lynx-nat.c: Update.
3021 * remote-mips.c: Update.
3022
3023 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3024
3025 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3026 to end of file, to be more consistent with the pratice followed
3027 by other targets.
3028
3029 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3030
3031 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3032 (print_float_info): Print registers in float_reggroup.
3033 (print_vector_info): Print registers in vector_reggroup.
3034 (default_print_registers_info): When all, print registers in
3035 all_reggroup. Otherwize, print registers in general_reggroup.
3036 (registers_info): Rewrite. Add support for register groups.
3037 Eliminate a goto.
3038
3039 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3040
3041 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3042 ages.
3043 (symtab_symbol_info): Remove eons old ifdeffed out code.
3044 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3045 command.
3046
3047 2002-11-06 Theodore A. Roth <troth@openavr.org>
3048
3049 * c-exp.y: Add missing semi-colons.
3050 * f-exp.y: Add missing semi-colons.
3051 * m2-exp.y: Add missing semi-colons.
3052 * p-exp.y: Add missing semi-colons.
3053 Add empty action to start rule to avoid a type clash error when
3054 building with bison >= 1.50.
3055
3056 2002-11-06 Jim Blandy <jimb@redhat.com>
3057
3058 * macrotab.h (struct macro_source_file): Doc fix.
3059
3060 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3061
3062 * varobj.c (child_exists, cplus_number_of_children): Change
3063 STREQ macro references to strcmp.
3064 (cplus_name_of_child): Change code to handle the fact that
3065 fields are not necessarily contiguous with regards to their
3066 access control. This is a fix for PR gdb/792.
3067
3068 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3069
3070 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3071 * gdbarch.h, gdbarch.c: Regnerate.
3072 * frame.h (frame_register): Declare.
3073 * frame.c (frame_register): New function.
3074 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3075 GET_SAVED_REGISTER, otherwize call
3076 generic_unwind_get_saved_register.
3077 (frame_register_read): Use frame_register instead of
3078 get_saved_register.
3079
3080 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3081
3082 From Jim Ingham <jingham@apple.com>:
3083 * event-top.c (gdb_disable_readline): New function.
3084 (_initialize_event_loop): Move comment.
3085
3086 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3087
3088 * event-loop.c (start_event_loop): Add comment.
3089 Update copyright.
3090
3091 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3092
3093 * infcmd.c (default_print_registers_info): Do not call
3094 PRINT_REGISTER_HOOK.
3095
3096 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3097
3098 * sparc-tdep.c (sparc_print_register_hook): Make static.
3099 (sparc_print_registers_info): New function.
3100 (sparc_do_registers_info): New function.
3101 (sparclet_print_registers_info): New function.
3102 (sparclet_do_registers_info): New function.
3103 (do_sparc_print_registers_info): New function.
3104 (sparc_print_registers): New static function, clone of infcmd.c's
3105 default_print_registers_info.
3106 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3107 (sparclet_do_registers_info): Declare.
3108 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3109 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3110 Re-define.
3111 (sparc_do_registers_info): Declare.
3112 (PRINT_REGISTER_HOOK): Delete macro.
3113 (sparc_print_register_hook): Delete declaration.
3114
3115 2002-11-05 David Carlton <carlton@math.stanford.edu>
3116
3117 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3118 functions.
3119 (lookup_symbol_aux_local): New function.
3120 (lookup_symbol_aux_symtabs): New function.
3121 (lookup_symbol_aux_psymtabs): New function.
3122
3123 2002-11-05 David Carlton <carlton@math.stanford.edu>
3124
3125 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3126 previous values of 'objfile' and 'block'.
3127
3128 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3129
3130 * values.c (value_change_enclosing_type): Set
3131 enclosing_type field correctly also for the case where
3132 more memory needs to be allocated.
3133
3134 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3135
3136 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3137 of puts_filtered.
3138
3139 * i387-tdep.c (i387_print_float_info): Replace calls to
3140 register_read and deprecated_read_register_gen with calls to
3141 frame_register_read, and make the necessary adjustments to the
3142 surrounding code.
3143
3144 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3145
3146 * gdbarch.sh (register_reggroup_p): Allow default value.
3147 * gdbarch.h, gdbarch.c: Regenerate.
3148
3149 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3150
3151 * regcache.h: Add coment indicating replacements for deprecated
3152 functions.
3153
3154 2002-11-02 Andrew Cagney <cagney@redhat.com>
3155
3156 * reggroups.h, reggroups.c: New files.
3157 * regcache.c: Include "reggroups.h".
3158 (enum regcache_dump_what): Add `regcache_dump_groups'.
3159 (regcache_dump): Contract size of the "Type" column. When
3160 specified, dump the register's groups.
3161 (maintenance_print_register_groups): New function.
3162 (_initialize_regcache): Add command `maint print register-groups'.
3163 * Makefile.in (COMMON_OBS): Add reggroups.o
3164 (SFILES): Add reggroups.c.
3165 (reggroups_h): Define.
3166 (regcache.o, gdbarch.o): Update dependencies.
3167 (reggroups.o): Specify dependencies.
3168 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3169 Add opaque declaration for `struct reggroup' in generated .h file.
3170 Include "reggroups.h" in generated .c file.
3171 gdbarch.h, gdbarch.c: Re-generate.
3172
3173 2002-11-02 Andrew Cagney <cagney@redhat.com>
3174
3175 * regcache.h (deprecated_read_register_gen): Rename
3176 read_register_gen.
3177 (deprecated_write_register_gen): Rename write_register_gen.
3178 * i387-tdep.c: Update.
3179 * x86-64-linux-nat.c: Update
3180 * wince.c: Update.
3181 * thread-db.c: Update.
3182 * win32-nat.c: Update.
3183 * mips-tdep.c: Update.
3184 * d10v-tdep.c: Update.
3185 * cris-tdep.c: Update.
3186 * remote-sim.c: Update.
3187 * remote-rdi.c: Update.
3188 * remote-rdp.c: Update.
3189 * frame.c: Update.
3190 * target.c: Update.
3191 * blockframe.c: Update.
3192 * x86-64-tdep.c: Update.
3193 * xstormy16-tdep.c: Update.
3194 * sh-tdep.c: Update.
3195 * s390-tdep.c: Update.
3196 * rs6000-tdep.c: Update.
3197 * sparc-tdep.c: Update.
3198 * i386-tdep.c: Update.
3199 * dwarf2cfi.c: Update.
3200 * regcache.c: Update.
3201
3202 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3203
3204 New interix-specific files:
3205 * config/i386/nm-interix.h: New file.
3206 * config/i386/interix.mh: New file.
3207 * config/i386/interix.mt: New file.
3208 * i386-interix-nat.c: New file.
3209 * i386-interix-tdep.c: New file.
3210
3211 2002-11-01 Andrew Cagney <cagney@redhat.com>
3212
3213 * frame.h (deprecated_generic_get_saved_register): Rename
3214 generic_get_saved_register.
3215 * blockframe.c (deprecated_generic_get_saved_register): Update.
3216 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3217 (xstormy16_frame_saved_register): Update.
3218 * sh-tdep.c (sh_gdbarch_init): Update.
3219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3220 * ia64-tdep.c (ia64_get_saved_register): Update.
3221 * cris-tdep.c (cris_gdbarch_init): Update.
3222 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3223 * arm-tdep.c (arm_gdbarch_init): Update.
3224
3225 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3226
3227 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3228
3229 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3230
3231 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3232 trampolines in sigaction.
3233
3234 2002-10-31 Andrew Cagney <cagney@redhat.com>
3235
3236 * h8300-tdep.c: Include "gdb_assert.h".
3237 (h8300_print_register): Add gdbarch, file and frame parameters.
3238 Use frame_read_unsigned_register to read the register's value.
3239 Use fprintf_filtered to display output.
3240 (h8300_print_registers_info): Replace h8300_do_registers_info.
3241 (h8300_gdbarch_init): Set print_registers_info.
3242
3243 2002-10-31 Andrew Cagney <cagney@redhat.com>
3244
3245 * frame.c (frame_read_unsigned_register): New function.
3246 (frame_read_signed_register): New function.
3247 * frame.h (frame_read_unsigned_register): Declare.
3248 (frame_read_signed_register): Declare.
3249
3250 2002-10-31 Andrew Cagney <cagney@redhat.com>
3251
3252 * h8500-tdep.c (h8500_print_registers_info): New static function,
3253 clone of infcmd.c's default_print_registers_info.
3254 (h8500_do_registers_info): New funtion.
3255 (h8500_print_register_hook): Rename print_register_hook, make
3256 static.
3257
3258 * config/h8500/tm-h8500.h: Update copyright.
3259 (DEPRECATED_DO_REGISTERS_INFO): Define.
3260 (h8500_do_registers_info: Declare.
3261 (PRINT_REGISTER_HOOK): Delete macro.
3262 (print_register_hook): Delete function.
3263
3264 2002-10-31 Andrew Cagney <cagney@redhat.com>
3265
3266 * z8k-tdep.c (z8k_print_register_hook): Make static.
3267 (z8k_print_registers_info): New static function, clone of
3268 infcmd.c's default_print_registers_info.
3269 (z8k_do_registers_info): New function. Wrap
3270 z8k_print_registers_info.
3271 * config/z8k/tm-z8k.h: Update copyright.
3272 (PRINT_REGISTER_HOOK): Delete macro.
3273 (z8k_print_register_hook): Delete declaration.
3274 (DEPRECATED_DO_REGISTERS_INFO): Define.
3275 (z8k_do_registers_info): Declare.
3276
3277 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3278
3279 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3280 as this is already provided by value.h, and was actually causing
3281 a compilation error because of a conflict in parameter type
3282 declaration due to a missing const keyword.
3283 (low_text_segment_addres): Fix a compilation warning.
3284
3285 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3286
3287 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3288 registers without a name.
3289 (mips_linux_cannot_store_register): Don't store registers without
3290 a name.
3291
3292 2002-10-28 David Carlton <carlton@math.stanford.edu>
3293
3294 * symtab.c (find_addr_symbol): Delete. (It was already commented
3295 out.)
3296 * symtab.h: Delete prototype for find_addr_symbol.
3297
3298 2002-10-26 Andrew Cagney <cagney@redhat.com>
3299
3300 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3301 DO_REGISTERS_INFO.
3302 gdbarch.h, gdbarch.c: Re-generate.
3303 * infcmd.c (default_print_registers_info): Update reference.
3304 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3305 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3306 * sh-tdep.c (sh_gdbarch_init): Ditto.
3307 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3309
3310 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3311
3312 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3313 cfi_init_extra_frame_info.
3314 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3315 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3316
3317 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3318 target where necessary. Add more comments and remove the ones
3319 that don't provide any useful information.
3320
3321 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3322 deprecated_read_register_dummy with
3323 frame_unwind_unsigned_register.
3324
3325 * i386-tdep.c (i386_extract_struct_value_address): Use
3326 regcache_raw_read_unsigned instead of
3327 regcache_cooked_read_unsigned since we know that the register
3328 we're reading isn't a pseudo register. Rename variable 'val' into
3329 the more descriptive 'addr'.
3330
3331 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3332 (x86_64_push_return_address): Add comment.
3333 (x86_64_pop_frame): Make static.
3334 (examine_argument): Clarify comment.
3335 (x86_64_skip_prologue): Make prolog_expact variable static.
3336
3337 * dwarf2cfi.c: Fix some formatting problems.
3338 (context_cpy, read_encoded_pointer): Clarify comments.
3339
3340 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3341 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3342 i386 target back into x86_64_gdbarch_init. Add some comments and
3343 remove meaningless ones.
3344
3345 2002-10-25 Andrew Cagney <cagney@redhat.com>
3346
3347 * complaints.h (struct deprecated_complaint): Rename `struct
3348 complaint'.
3349 * complaints.c (complain): Update.
3350 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3351 incorrect comment indicating that "symfile.h" was being included
3352 for the `struct complaint' definition.
3353 * remote-vx.c: Update.
3354 * objc-lang.c: Update.
3355 * xcoffread.c: Update.
3356 * hpread.c: Update.
3357 * mdebugread.c: Update.
3358 * stabsread.c: Update.
3359 * dwarf2read.c: Update.
3360 * dwarfread.c: Update.
3361 * elfread.c: Update.
3362 * coffread.c: Update.
3363 * stabsread.h: Update.
3364 * dbxread.c: Update.
3365 * buildsym.c: Update.
3366 * gdbtypes.c: Update.
3367 * macrotab.c: Update.
3368
3369 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3370
3371 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3372 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3373 (x86_64_init_abi): ...new function.
3374
3375 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3376 * i386v-nat.c: Include "i386-tdep.h".
3377
3378 2002-10-25 Andrew Cagney <cagney@redhat.com>
3379
3380 * gdbtypes.c (address_space_name_to_int): Update.
3381 (address_space_int_to_name): Update.
3382 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3383 multi-arch predicate.
3384 (address_class_name_to_type_flags): Ditto.
3385 * gdbarch.h, gdbarch.c: Re-generate.
3386
3387 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3388
3389 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3390
3391 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3392
3393 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3394
3395 * symtab.h (INIT_SAL): Delete macro.
3396 (init_sal): Export.
3397 * symtab.c (init_sal): New function.
3398
3399 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3400 to init_sal function call.
3401 (find_sal_from_funcs_and_line): Ditto.
3402 (all_sals_for_line): Ditto.
3403 * breakpoint.c (create_internal_breakpoint): Ditto.
3404 (create_fork_vfork_event_catchpoint): Ditto.
3405 (create_exec_event_catchpoint): Ditto.
3406 (parse_breakpoint_sals): Ditto.
3407 (watch_command_1): Ditto.
3408 (handle_gnu_4_16_catch_command): Ditto.
3409 (clear_command): Ditto.
3410 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3411 * infcmd.c (run_stack_dummy): Ditto.
3412 * infrun.c (process_event_stop_test): Ditto.
3413 (check_sigtramp2): Ditto.
3414 (step_over_function): Ditto.
3415 * linespec.c (decode_line_2): Ditto.
3416 (decode_line_1): Ditto.
3417 * source.c (line_info): Ditto.
3418 * symtab.c (find_pc_sect_line): Ditto.
3419
3420 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3421
3422 * dwarf2cfi.c (struct context)
3423 (struct context_reg): Moved to dwarf2cfi.h
3424 (context_alloc, frame_state_alloc, context_cpy):
3425 Made extern instead of static, removed prototypes.
3426 * dwarf2cfi.h (struct context)
3427 (struct context_reg): New, moved from dwarf2cfi.c
3428 (context_alloc, frame_state_alloc, context_cpy):
3429 New prototypes.
3430 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3431 Changed from static to extern.
3432 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3433 (LINUX_SIGCONTEXT_FP_OFFSET)
3434 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3435 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3436 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3437 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3438 set_gdbarch_*() calls now use x86-64 specific functions
3439 instead of DWARF2 CFI ones.
3440 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3441 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3442 (x86_64_init_extra_frame_info): New prototypes.
3443
3444 2002-10-23 David Carlton <carlton@math.stanford.edu>
3445
3446 * linespec.c: #include "parser-defs.h".
3447 Delete prototype for find_template_name_end.
3448 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3449
3450 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3451
3452 * NEWS: add recent mi fixes.
3453 * varobj.c (struct varobj): Add new "updated" flag.
3454 (new_variable): Default "updated" flag to 0.
3455 (varobj_set_value): Set "updated" flag to 1 if value
3456 changes.
3457 (varobj_update): Check varobj "updated" flag before
3458 comparing old and refreshed values. Fix for
3459 PR gdb/702.
3460
3461 2002-10-23 David Carlton <carlton@math.stanford.edu>
3462
3463 * parse.c (parse_exp_1): Use BLOCK_START.
3464 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3465 SYMBOL_BLOCK_VALUE.
3466 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3467
3468 2002-10-23 David Carlton <carlton@math.stanford.edu>
3469
3470 * symtab.c: Delete cplusplus_hint.
3471 Delete prototype for find_template_name_end.
3472
3473 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3474
3475 * symtab.h: Update comment.
3476
3477 2002-10-23 Michael Snyder <msnyder@redhat.com>
3478
3479 * printcmd.c (address_info): Restore quotes in output.
3480 * valops.c (value_of_local): Restore quotes in error message.
3481
3482 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3483
3484 * symtab.c (symbol_demangled_name): New function.
3485 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3486 turning most of it into a function.
3487 (symbol_demangled_name): Export.
3488
3489 2002-10-23 Michael Snyder <msnyder@redhat.com>
3490
3491 * valops.c (value_of_local): Restore quotes in error message.
3492
3493 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3494
3495 * symtab.c (symbol_init_language_specific): New function.
3496 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3497 turning most of it into a function.
3498 (symbol_init_language_specific): Export.
3499
3500 2002-10-23 David Carlton <carlton@math.stanford.edu>
3501
3502 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3503 (dwarf_attr_name): Ditto.
3504 (dwarf_type_encoding_name): Ditto.
3505 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3506 (process_die): Handle DW_TAG_namespace,
3507 DW_TAG_imported_declaration, DW_TAG_imported_module.
3508 (read_namespace): New function.
3509
3510 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3511
3512 * configure.in: Define NEW_PROC_API on Interix too.
3513 * configure: Regenerate.
3514
3515 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3516
3517 * configure: Regenerate using the proper version of autoconf.
3518
3519 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3520
3521 * findvar.c (read_var_value): Temporarily disable TLS code, until
3522 complete TLS support is added.
3523
3524 2002-10-21 Jim Blandy <jimb@redhat.com>
3525 Elena Zannoni <ezannoni@redhat.com>
3526
3527 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3528 for thread local storage locations.
3529 (struct symbol): Add objfile field.
3530 (SYMBOL_OBJFILE): Define.
3531 * dwarf2read.c (is_thread_local): New static variable.
3532 (new_symbol): If variable is in thread local fill in address class
3533 and objfile appropriately.
3534 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3535 stack operation.
3536 * printcmd.c (address_info): Print the information for thread
3537 local storage variable.
3538 * findvar.c (read_var_value): In case of thread local variable,
3539 defer to the target vector code to compute address.
3540
3541 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3542
3543 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3544 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3545
3546 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3547
3548 * symtab.h (address_class): Rename
3549 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3550 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3551 * printcmd.c (address_info): Ditto.
3552 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3553
3554 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3555
3556 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3557 DBREG_DRX macro to acces debug registers.
3558
3559 * Makefile.in (i386obsd-tdep.o): New target.
3560
3561 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3562 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3563
3564 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3565 * config/i386/obsd.mt: New file.
3566 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3567 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3568 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3569 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3570 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3571 * i386obsd-tdep.c: New file.
3572
3573 2002-10-19 Adam Fedor <fedor@gnu.org>
3574
3575 * objc-exp.y (name_not_typename): Fix invalid comment.
3576
3577 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3578
3579 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3580 to allocate partial syms and macro byte caches.
3581
3582 2002-10-18 David Carlton <carlton@math.stanford.edu>
3583
3584 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3585
3586 2002-10-18 Adam Fedor <fedor@gnu.org>
3587
3588 * stabsread.c (find_name_end): New function.
3589 (define_symbol): Use it.
3590
3591 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3592
3593 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3594 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3595 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3596 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3597
3598 2002-10-17 David Carlton <carlton@math.stanford.edu>
3599
3600 * symfile.h: Add opaque declaration for struct obstack.
3601 Declare obsavestring to take a const char *.
3602 * symfile.c (obsavestring): Make first argument a const char *.
3603
3604 2002-10-16 Adam Fedor <fedor@gnu.org>
3605
3606 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3607 names when matching breakpoints in current file.
3608
3609 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3610
3611 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3612 (read_tag_pointer_type): Add address class support.
3613 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3614 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3615 New methods.
3616 * gdbarch.h, gdbarch.c: Regenerate.
3617 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3618 (make_type_with_address_space, recursive_type_dump): Add address
3619 class support.
3620 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3621 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3622 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3623
3624 2002-10-16 Klee Dienes <kdienes@apple.com>
3625
3626 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3627 to get the last character of a char[] buffer, not
3628 name[sizeof(vptr_name)-1].
3629
3630 2002-10-14 Adam Fedor <fedor@gnu.org>
3631
3632 * symtab.h: New objc_specific struct.
3633 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3634 (SYMBOL_DEMANGLED_NAME): Likewise.
3635
3636 2002-10-14 Adam Fedor <fedor@gnu.org>
3637
3638 * symfile.c (init_filename_language_table): Add ObjC file extension.
3639
3640 2002-10-14 Adam Fedor <fedor@gnu.org>
3641
3642 * utils.c (puts_filtered_tabular): New function.
3643 (fprintf_symbol_filtered): Get ObjC demangled name.
3644 * defs.h (puts_filtered_tabular): Declared.
3645
3646 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3647
3648 * c-lang.h (c_type_print_varspec_prefix): Delete.
3649 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3650 ``need_post_space'' parameter. Adjust all callers.
3651
3652 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3653
3654 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3655 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3656 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3657 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3658
3659 2002-10-13 Adam Fedor <fedor@gnu.org>
3660
3661 * source.c (print_source_lines): Update comments.
3662
3663 2002-10-13 Adam Fedor <fedor@gnu.org>
3664
3665 * valops.c (value_of_local): New function.
3666 (value_of_this): Use it.
3667 * value.h (value_of_local): Declared.
3668
3669 2002-10-13 Adam Fedor <fedor@gnu.org>
3670
3671 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3672 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3673
3674 2002-10-12 Adam Fedor <fedor@gnu.org>
3675
3676 * language.c (binop_result_type): Add language_objc to case.
3677 (integral_type): Likewise.
3678 (character_type): Likewise.
3679 (string_type): Likewise.
3680 (boolean_type): Likewise.
3681 (structured_type): Likewise.
3682 (binop_type_check): Likewise.
3683
3684 2002-10-11 Adam Fedor <fedor@gnu.org>
3685
3686 * printcmd.c (address_info): Print 'self' for ObjC.
3687
3688 2002-10-11 Adam Fedor <fedor@gnu.org>
3689
3690 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3691 OP_SELF.
3692
3693 2002-10-11 Adam Fedor <fedor@gnu.org>
3694
3695 * language.h (CAST_IS_CONVERSION): Add language_objc.
3696
3697 2002-10-11 Adam Fedor <fedor@gnu.org>
3698
3699 * defs.h (enum language): Add language_objc.
3700
3701 2002-10-11 Klee Dienes <kdienes@apple.com>
3702
3703 * corefile.c (read_memory_typed_address): New function.
3704 * gdbcore.h (read_memory_typed_address): Add prototype.
3705 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3706 to read a value destined for a CORE_ADDR, not read_memory_integer.
3707 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3708 (f77_get_dynamic_lowerbound): Ditto.
3709
3710 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3711
3712 * utils.c (string_to_core_addr): After turning string into
3713 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3714 which will do necessary sign-extension, etc.
3715
3716 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3717
3718 * c-exp.y (THIS): Delete token and grammar rule.
3719 (yylex): Don't return THIS.
3720 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3721 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3722 * demangle.c (cplus_markers): Update comment. Put '$'
3723 first. Remove CPLUS_MARKER.
3724 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3725 * jv-exp.y (THIS): Delete token and grammar rule.
3726 (yylex): Don't return THIS.
3727 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3728 * objc-exp.y (THIS): Delete token and grammar rule.
3729 (yylex): Don't return THIS.
3730 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3731 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3732 (read_member_functions): Likewise for opname.
3733 (read_tilde_fields): Use is_cplus_marker.
3734
3735 * defs.h (CPLUS_MARKER): Don't define.
3736 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3737 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3738 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3739 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3740 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3741
3742 * config/i386/tm-i386v4.h: Delete file.
3743 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3744 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3745 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3746 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3747 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3748 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3749 * config/i386/i386v4.mt (TM_FILE): Likewise.
3750 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3751
3752 2002-10-10 Marko Mlinar <markom@opencores.org>
3753
3754 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3755 accidentially not commited 2002-10-09
3756 * gdbarch.h, gdbarch.c: Re-generate.
3757
3758 2002-10-09 Marko Mlinar <markom@opencores.org>
3759
3760 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3761 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3762 * gdbarch.h, gdbarch.c: Re-generate.
3763
3764 2002-10-08 Petr Sorfa <petrs@caldera.com>
3765
3766 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3767
3768 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3769 so we can work on more than one compilation unit at a time. This
3770 helps prepare GDB to handle inter-CU die references.
3771 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3772 the code to be defined before struct comp_unit_head.
3773 (comp_unit_head): Added new members - offset, cu_head,
3774 begin_die, next and dwarf2_abbrevs.
3775 (dwarf2_abbrevs): Removed single static var; now member of
3776 struct comp_unit_head.
3777 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3778 members.
3779 (psymtab_to_symtab_1): Changed to work with the new
3780 struct comp_unit_head.
3781 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3782 constructs the dwarf2_abbrevs[] inside the cu_header.
3783 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3784 dwarf2_abbrev table to clean up.
3785 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3786 handling of dwarf2_abbrevs inside the cu_header.
3787 (read_partial_die): Now supports the call to the new
3788 dwarf2_lookup_abbrev.
3789 (read_full_die): Now supports the call to the new
3790 dwarf2_lookup_abbrev.
3791
3792 2002-10-06 Christopher Faylor <cgf@redhat.com>
3793
3794 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3795 insure that shell variables, such as "transformed_name" are propagated
3796 to later shell statements in rule.
3797
3798 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3799
3800 * config/i386/nm-i386sco.h: Add protection against
3801 multiple-inclusion. Include "i386/nm-i386v.h".
3802 (REGISTER_U_ADDR): Remove define.
3803 (i386_register_u_addr): Remove prototype.
3804
3805 2002-10-04 Michael Snyder <msnyder@redhat.com>
3806
3807 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3808 before treating it as a single-step event.
3809
3810 2002-10-03 Adam Fedor <fedor@gnu.org>
3811
3812 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3813 (objc_demangle): Remove assignment in if statements, Replace
3814 free with xfree.
3815 (add_msglist): Likewise.
3816 (end_msglist): Likewise.
3817 (complare_selectors): Likewise.
3818 (selectors_info): Likewise.
3819 (compare_classes): Likewise.
3820 (classes_info): Likewise.
3821 (print_object_command): Likewise.
3822 (find_objc_msgcall_submethod): Replace PTR with void *.
3823 * objc-lang.h: Remove check for __STDC__.
3824
3825 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3826
3827 * ui-out.h (ui_out_field_fmt_int): New prototype.
3828 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3829 of field width and alignment.
3830 * stack.c (print_frame_info_base): When printing frame level, use
3831 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3832 PR gdb/192
3833
3834 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3835
3836 * MAINTAINERS: Add self to Write After Approval list.
3837
3838 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3839
3840 * infcmd.c (interrupt_target_command_wrapper): Delete.
3841 (interrupt_target_command): Make non static.
3842 (nofp_registers_info): Make static.
3843 * stack.c (return_command_wrapper): Delete.
3844 (return_command): Make non static.
3845
3846 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3847
3848 * event-top.c (gdb_setup_readline): New function. Code moved from
3849 _initialize_event_loop().
3850 (_initialize_event_loop): Call gdb_setup_readline().
3851
3852 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3853
3854 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3855 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3856 * gdbarch.h, gdbarch.c: Re-generate.
3857
3858 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3859
3860 Fix PR gdb/778
3861 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3862 before recursing.
3863 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3864 of fill_in_vptr_fieldno.
3865
3866 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3867
3868 * inferior.h (registers_info, stepi_command, nexti_command,
3869 continue_command, interrupt_target_command): Export from infcmd.c.
3870 * frame.h (args_info, selected_frame_level_changed_hook,
3871 return_command): Export from stack.c.
3872 * v850ice.c (stepi_command, nexti_command, continue_command): use
3873 prototypes from inferior.h.
3874 * tracepoint.c (registers_info, args_info, locals_info): Use
3875 prototypes from frame.h and inferior.h.
3876 * Makefile.in (mi-main.o): Add dependency on frame.h.
3877
3878 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3879
3880 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3881 value in register 3 adjusted by ppc_gp0_regnum.
3882
3883 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3884
3885 2002-10-02 Marko Mlinar <markom@opencores.org>
3886
3887 * MAINTAINERS: Add myself to the Write After Approval list.
3888
3889 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3890
3891 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3892 of the section for the N64 ABI, fixed.
3893
3894 * config/mips/tm-irix6.h: Include solib.h.
3895
3896 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3897
3898 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3899 GNU operators.
3900
3901 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3902
3903 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3904 and that "mi0" syntax has been removed.
3905
3906 2002-09-30 David Carlton <carlton@math.stanford.edu>
3907
3908 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3909 * ppc-sysv-tdep.c: #include "gdb_string.h".
3910 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3911 pacify GCC.
3912
3913 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3914
3915 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3916 "vrsave"'s register number.
3917
3918 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3919
3920 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3921 use frame_unwind_signed_register to obtain the PC.
3922 (mips_frame_chain): Handle a generic dummy frame.
3923 (mips_init_extra_frame_info): When a generic dummy frame, don't
3924 re-compute the frame base.
3925 (mips_pop_frame): Handle generic dummy frames.
3926 (mips_gdbarch_init): When generic dummy frames, set
3927 use_generic_dummy_frames, push_dummy_frame to
3928 generic_push_dummy_frame, pc_in_call_dummy to
3929 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3930 generic_save_dummy_frame_tos.
3931
3932 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3933
3934 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3935 against TOP when TOP was explictly set.
3936 (generic_push_dummy_frame): Set TOP to zero.
3937
3938 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3939
3940 * event-loop.c (start_event_loop): Rename variable 'result' to
3941 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3942
3943 2002-09-30 Keith Seitz <keiths@redhat.com>
3944
3945 * gdb-events.sh (selected_thread_changed): New event.
3946 * gdb-events.c: Regenerated.
3947 * gdb-events.h: Regenerated.
3948
3949 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3950
3951 * MAINTAINERS: Add self to Write After Approval list.
3952
3953 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3954
3955 * disasm.c: New file.
3956 * disasm.h: New file.
3957 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3958 (compare_lines): Ditto.
3959 (dump_insns): Ditto.
3960 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3961 argument.
3962 (do_assembly_only): Ditto.
3963 (do_disassembly): Renamed to gdb_disassembly and moved to
3964 disasm.c. Sdded uiout argument.
3965 * Makefile.in: Add new files. Reorder SFILES list. Update
3966 dependencies. Include libgdb.a later in the insight executable.
3967
3968 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3969
3970 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3971 bfd/elf64-alpha-fbsd.c.
3972
3973 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3974
3975 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3976 i386gnu-tdep.c.
3977
3978 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3979
3980 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3981 __FUNCTION__.
3982 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3983 function name.
3984 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3985 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3986 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3987 (S_msg_sig_post_reply): Ditto.
3988
3989 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3990
3991 * sh-tdep.c (sh_use_struct_convention): Use definition according
3992 to ABI.
3993 (sh_push_arguments): Store in register with correct endianess.
3994 (sh_default_store_return_value): Ditto.
3995 (sh_gdbarch_init): Set sizeof long double to 8.
3996
3997 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3998
3999 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4000 Fix some whitespace problems.
4001
4002 2002-09-27 David Carlton <carlton@math.stanford.edu>
4003
4004 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4005 (mcore-tdep.o): Ditto.
4006 (ns32k-tdep.o): Ditto.
4007 (ns32knbsd-tdep.o): Ditto.
4008 (sh3-rom.o): Ditto.
4009 (vax-tdep.o): Ditto.
4010 * cris-tdep.c: #include "gdb_string.h"
4011 * mcore-tdep.c: Ditto.
4012 * ns32k-tdep.c: Ditto.
4013 * ns32knbsd-tdep.c: Ditto.
4014 * sh3-rom.c: Ditto.
4015 * vax-tdep.c: Ditto.
4016
4017 2002-09-27 David Carlton <carlton@math.stanford.edu>
4018
4019 * config/djgpp/fnchange.lst: Add entries for
4020 gdb/testsuite/gdb.c++/m-static files.
4021
4022 2002-09-27 Jim Wilson <wilson@redhat.com>
4023
4024 * MAINTAINERS: Add myself to the Write After Approval list.
4025
4026 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4027
4028 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4029
4030
4031 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4032
4033 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4034 frame.
4035
4036 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4037
4038 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4039 (rs6000_struct_return_address): Delete variable.
4040 (rs6000_store_struct_return): Update.
4041 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4042 deprecated_extract_struct_value_address.
4043 (rs6000_frame_align): New function.
4044 (rs6000_gdbarch_init): Set frame_align.
4045
4046 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4047
4048 From Grace Sainsbury <graces@redhat.com>:
4049 * Makefile.in (gdbtk-main.o): New target.
4050 (gdb.o): New target.
4051 (main_h): Define.
4052 (main.o): Update dependencies.
4053 (gdb$(EXEEXT)): Add gdb.o.
4054 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4055 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4056 (SUBDIR_GDBTK_CLEAN): Set.
4057 (install-gdbtk): Install the insight binary.
4058 (uninstall-gdbtk): New target.
4059 (all-gdbtk, clean-gdbtk): New rule.
4060 * top.c (use_windows): Default to zero.
4061 * main.c: Include "main.h".
4062 (main): Delete.
4063 (struct captured_main_args): Delete.
4064 (gdb_main): New function.
4065 * main.h: New file.
4066 * gdb.c: New File.
4067
4068 2002-09-25 Andrew Cagney <cagney@redhat.com>
4069
4070 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4071 (frame_map_regnum_to_name): New function.
4072 (frame_map_name_to_regnum): New function.
4073 * frame.h (frame_map_name_to_regnum): Declare.
4074 (frame_map_regnum_to_name): Declare.
4075 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4076 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4077 * parse.c: Do not include "builtin-regs.h".
4078 (target_map_name_to_register): Delete function.
4079 (write_dollar_variable): Use frame_map_name_to_regnum.
4080 * parser-defs.h (target_map_name_to_register): Delete declaration.
4081 * expprint.c: Include "frame.h".
4082 (print_subexp): Use frame_map_regnum_to_name.
4083 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4084 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4085
4086 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4087
4088 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4089 wasn't saved, and the next innermost frame is a dummy, return the
4090 dummy frame's link register.
4091
4092 2002-09-24 Jim Blandy <jimb@redhat.com>
4093
4094 Fix from Paul Breed:
4095 * main.c (captured_main): Add a `break' after the case for 'b'.
4096
4097 2002-09-24 Keith Seitz <keiths@redhat.com>
4098
4099 * varobj.c (c_type_of_child): Use get_target_type instead
4100 of TYPE_TARGET_TYPE.
4101
4102 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4103
4104 * source.c (get_current_or_default_source_symtab_and_line): Remove
4105 function.
4106 (set_default_source_symtab_and_line): New function. Attempts to
4107 determine a source file to list lines from if one is not currently
4108 defined.
4109 (get_current_source_symtab_and_line): Initialize sal.pc and
4110 sal.end fields.
4111 (set_current_source_symtab_and_line): Mark argument as const.
4112 * source.h: Update declarations and comments.
4113 * linespec.c (decode_line_1): Replace call to removed routine above.
4114 * stack.c (print_frame_info_base): Ditto.
4115 * cli/cli-cmds.c (edit_command): Ditto.
4116 (list_command): Ditto.
4117
4118 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4119
4120 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4121 sal.pc and sal.end fields.
4122 (get_current_or_default_source_symtab_and_line): Ditto.
4123 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4124 so we do not cause a new source symtab to be searched for (reverting an
4125 unintentional change from the 2002-09-20 patch).
4126 * scm-lang.c (scm_unpac): Ditto.
4127
4128 2002-09-21 Andrew Cagney <cagney@redhat.com>
4129
4130 * complaints.c (symfile_explanations): Remove new-line from
4131 ``isolated_message''.
4132 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4133 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4134
4135 2002-09-20 Nick Clifton <nickc@redhat.com>
4136
4137 * NEWS: Announce that V850EA ISA is no longer supported.
4138 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4139
4140 2002-09-20 David Carlton <carlton@math.stanford.edu>
4141
4142 * Makefile.in (c-lang.o): Correct dependencies.
4143 (utils.o): Gather dependencies.
4144 (charset.o): Move.
4145 * c-lang.c: #include "gdb_string.h"
4146
4147 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4148
4149 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4150 * cli/cli-cmds.c (list_command): New function. Implements the new
4151 cli edit command.
4152 (_init_cli_cmds): Add new command definition.
4153 * gdb.1: Document edit command.
4154 * doc/gdb.texinfo: Document edit command.
4155
4156 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4157
4158 * source.c: Make global variables current_source_symtab and
4159 current_source_line static.
4160 (list_command): Moved to cli/cli-cmds.c.
4161 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4162 (get_first_line_listed): New accessor function.
4163 (get_lines_to_list): New accessor function.
4164 (get_current_source_symtab_and_line): New function. Retrieves the
4165 position in the source code that we consider current.
4166 (get_current_or_default_source_symtab_and_line): New function.
4167 Like the above but attempts to determine a default position if one
4168 is not currently defined.
4169 (set_current_source_symtab_and_line): New function. Sets the source
4170 code position considered current and returns the previously set one.
4171 (clear_current_source_symtab_and_line): Reset stored information about
4172 a current source line.
4173 (_initialize_source): Remove registration for the "list" command and
4174 its alias.
4175 * source.h: Add declarations for the new functions above.
4176 * symtab.h: Remove declarations for the global variables mentioned
4177 above.
4178 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4179 obtain current source line.
4180 * linespec.c (decode_line_1): Ditto.
4181 * macroscope.c (default_macro_scope): Ditto.
4182 * scm-lang.c (scm_unpac): Ditto.
4183 * stack.c (print_frame_info_base): Ditto.
4184 * symfile.c (clear_symtab_users): Ditto.
4185 * symtab.c (decode_line_spec): Ditto.
4186 * cli/cli-cmds.c (list_command): Moved here from source.c.
4187 (ambiguous_line_spec): Moved here from source.c.
4188 (_init_cli_cmds): Add definition for "list" and its alias.
4189 * Makefile.in: Update dependencies.
4190
4191 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4192
4193 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4194 with what gcc thinks is correct.
4195
4196 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4197
4198 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4199 multiple register push instruction.
4200
4201 2002-09-19 Jim Blandy <jimb@redhat.com>
4202
4203 Add support for distinct host and target character sets.
4204 * charset.c, charset.h: New files.
4205 * c-exp.y: #include "charset.h".
4206 (yylex): Convert character and string literals to the target
4207 character set, before returning them as the semantic value of the
4208 token.
4209 * c-lang.c: #include "charset.h".
4210 (c_emit_char): Use charset-specific methods to recognize
4211 characters with backslash escape forms, to decide which characters
4212 to print literally and which to print using numeric escape
4213 sequences, and to convert target characters to host characters
4214 before printing.
4215 * utils.c: #include "charset.h".
4216 (no_control_char_error): New function.
4217 (parse_escape): Use charset-specific methods to recognize
4218 backslash escapes, parse `control character' notation, and convert
4219 characters from the host character set to the target character set.
4220 * configure.in: Set the default host character set.
4221 Check where to find iconv, and what its argument types might be.
4222 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4223 * Makefile.in (SFILES): List charset.c.
4224 (COMMON_OBS): List charset.o.
4225 (charset.o): New rule.
4226 (charset_h): New header dependency variable.
4227 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4228 (LIBICONV): New variable, set by configure.
4229 (CLIBS): Include $(LIBICONV) here.
4230 * aclocal.m4, config.in, configure: Regenerated.
4231
4232 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4233
4234 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4235 bison 1.35 warning.
4236
4237 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4238
4239 * gdb_mbuild.sh: New file.
4240
4241 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4242
4243 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4244
4245 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4246
4247 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4248 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4249 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4250 valops.c, value.h: Revert previous change.
4251
4252 2002-09-18 Michael Snyder <msnyder@redhat.com>
4253
4254 Preliminary support for Objective-C:
4255 * defs.h (language_objc): New enum value.
4256 (puts_filtered_tabular): Declaration only, exported from utils.c.
4257 (skip_quoted): Delete, declared in completer.h.
4258 * c-exp.y: Include completer.h.
4259 * p-exp.y: Ditto.
4260 * jv-exp.y: Ditto.
4261 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4262 New operator enum values.
4263 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4264 * language.c (binop_result_type): Handle language_objc case.
4265 (integral_type, character_type, string_type, boolean_type,
4266 structured_type, binop_type_check): Ditto.
4267 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4268 (struct objc_specific): Add to general_symbol_info.
4269 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4270 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4271 * parser-defs.h (struct objc_class_str): New struct type.
4272 (start_msglist, end_msglist, add_msglist): Declaration only,
4273 exported from objc-lang.c.
4274 * value.h (value_of_local, value_nsstring,
4275 call_function_by_hand_expecting_type): Exported from valops.c.
4276 * valops.c (find_function_addr): Export.
4277 (call_function_by_hand_expecting_type): New function.
4278 (value_of_local): New function.
4279 * symfile.c (init_filename_language_table): Add ".m" extension
4280 for Objective-C.
4281 * utils.c (puts_filtered_tabular): New function.
4282 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4283 (set/show demangle): Extend help-string to refer to ObjC.
4284 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4285 * stabsread.c (symbol_reference_defined): Objective-C symbols
4286 may contain colons: make allowances when scanning stabs strings
4287 for colons.
4288 (objc_find_colon): New function.
4289 * printcmd.c (address_info): If language == objc then print
4290 "self" instead of "this".
4291 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4292 OP_NSSTRING, and OP_SELF.
4293 (prefixify_subexp): Ditto.
4294 * source.c (print_source_lines): Mention objc in comment.
4295 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4296 method names.
4297
4298 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4299
4300 * complaints.h: Update copyright.
4301 (struct complaints): Declare.
4302 (struct complaint): Make `message' constant.
4303 (internal_complaint): Declare.
4304 (complaint): Declare.
4305 (complaint_root): Delete declaration.
4306 (symfile_complaints): Delete declaration.
4307 (struct complaints): Add opaque declaration.
4308 (clear_complaints): Add a complaints parameter.
4309 * complaints.c: Update copyright.
4310 (enum complaint_series): Define.
4311 (complaint_root): Delete.
4312 (struct complaints): Define.
4313 (complaint_sentinel, symfile_complaint_book): New variables.
4314 (symfile_explanations, symfile_complaints): New variables.
4315 New variables.
4316 (get_complaints): New function.
4317 (vcomplaint): New function.
4318 (complaint): New function.
4319 (internal_complaint): New function.
4320 (complain): Call vcomplain with symfile_complaint.
4321 (clear_complaints): Rewrite.
4322 (_initialize_complaints): Use add_setshow_command.
4323 * Makefile.in (complaints.o): Update dependencies.
4324 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4325 to call to clear_complaints.
4326 (new_symfile_objfile, reread_symbols): Ditto.
4327 (oldsyms_complaint): Delete.
4328 (empty_symtab_complaint, unknown_option_complaint): Delete.
4329 (free_named_symtabs): Use complaint instead of complain.
4330
4331 2002-09-18 Michael Snyder <msnyder@redhat.com>
4332
4333 Contributed by Apple Computer, Inc. Merged with current sources
4334 by Adam Fedor <fedor@doc.com> [cagney].
4335
4336 * objc-lang.c: First clean-up round: comments, indentation.
4337 * objc-lang.h: Ditto.
4338 * objc-lang.y: Ditto.
4339
4340 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4341
4342 * maint.c (maintenance_internal_error): Print the parameter as the
4343 error message.
4344 (maintenance_internal_warning): New function.
4345 (_initialize_maint_cmds): Add command `maint internal-warning'.
4346
4347 * defs.h (internal_warning, internal_vwarning): Declare.
4348 * utils.c (struct internal_problem): Define.
4349 (internal_vproblem): New function.
4350 (internal_warning): New function.
4351 (internal_vwarning): New function.
4352 (internal_warning_problem, internal_error_problem): New variables.
4353 (internal_verror): Just call internal_vproblem.
4354
4355 2002-09-18 Michael Snyder <msnyder@redhat.com>
4356
4357 * objc-lang.c: New file, support for Objective-C.
4358 Preliminary check-in, not yet integrated into gdb.
4359 * objc-lang.h: New file.
4360 * objc-exp.y: New file.
4361
4362 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4363
4364 * infrun.c (signal_stop_update): Convert definition to ISO C.
4365 (signal_print_update): Ditto.
4366 (signal_pass_update): Ditto.
4367 * inflow.c (terminal_save_ours): Ditto.
4368
4369 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4370 comments.
4371
4372 * config/djgpp/fnchange.lst: Handle name clashes between
4373 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4374 bfd/coff-tic80.c.
4375
4376 * i386-linux-tdep.h: Fix tipo.
4377
4378 2002-09-18 Adam Fedor <fedor@gnu.org>
4379
4380 * MAINTAINERS: Add myself to the Write After Approval list.
4381
4382 2002-09-18 Jim Blandy <jimb@redhat.com>
4383
4384 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4385 texthigh and textlow to reader-specific structs caused
4386 objfile_relocate to miss them. This is fixable, but the work that
4387 the change was supposed to prepare GDB for never got done anyway.
4388
4389 2002-09-18 David Carlton <carlton@math.stanford.edu>
4390
4391 * MAINTAINERS: Alphabetize Write After Approval list.
4392
4393 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4394
4395 Fix PR gdb/709
4396 * values.c (value_static_field): Call read_var_value.
4397
4398 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4399
4400 * valops.c (hand_function_call): Align the initial stack pointer
4401 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4402 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4403 return value.
4404 * mips-tdep.c (mips_frame_align): New function.
4405 (mips_gdbarch_init): Set frame_align.
4406 * gdbarch.sh (FRAME_ALIGN): New method.
4407 * gdbarch.h, gdbarch.c: Re-generate.
4408
4409 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4410
4411 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4412 registers.
4413
4414 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4415
4416 * NEWS: Mention that MIPS $fp behavior changed.
4417 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4418 reference to FP_REGNUM.
4419 (mipsnbsd_cannot_store_register): Ditto.
4420 * mips-linux-nat.c: Update copyright.
4421 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4422 (mips_linux_cannot_store_register): Ditto.
4423 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4424 * config/mips/tm-mips.h: Update copyright.
4425 (FP_REGNUM): Delete macro.
4426 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4427 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4428 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4429 (mips_r3041_reg_names, mips_r3051_reg_names)
4430 (mips_r3081_reg_names): Replace "fp" with "".
4431 Fix PR gdb/480.
4432
4433 2002-09-17 Theodore A. Roth <troth@verinet.com>
4434
4435 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4436 generic_read_register_dummy() (PR gdb/703).
4437 (avr_push_return_address): #if 0 out unused vars.
4438 (avr_gdbarch_init): Enable use of avr_push_return_address().
4439
4440 2002-09-17 Michael Snyder <msnyder@redhat.com>
4441
4442 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4443 RTE will take care of it.
4444
4445 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4446
4447 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4448 invalid, return SP_REGNUM.
4449
4450 2002-09-17 Michael Snyder <msnyder@redhat.com>
4451
4452 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4453 point registers without sign extension.
4454
4455 2002-09-17 Andrew Cagney <cagney@redhat.com>
4456
4457 * blockframe.c (deprecated_read_register_dummy): Rename
4458 generic_read_register_dummy.
4459 * frame.c (frame_unwind_signed_register): New function.
4460 (frame_unwind_unsigned_register): New function.
4461 * frame.h (frame_unwind_signed_register): Declare.
4462 (frame_unwind_unsigned_register): Declare.
4463 (deprecated_read_register_dummy): Rename
4464 generic_read_register_dummy.
4465
4466 * h8300-tdep.c (h8300_frame_chain): Update.
4467 (h8300_frame_saved_pc): Update.
4468 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4469 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4470 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4471 (s390_frame_chain): Update.
4472 * v850-tdep.c (v850_find_callers_reg): Update.
4473 (v850_frame_saved_pc): Update.
4474 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4475 (m32r_find_callers_reg): Update.
4476 (m32r_frame_saved_pc): Update.
4477 * sh-tdep.c (sh_find_callers_reg): Update.
4478 (sh64_get_saved_pr): Update.
4479 (sh_init_extra_frame_info): Update.
4480 (sh_init_extra_frame_info): Update.
4481 (sh64_init_extra_frame_info): Update.
4482 (sh64_init_extra_frame_info): Update.
4483 * mcore-tdep.c (mcore_find_callers_reg): Update.
4484 (mcore_frame_saved_pc): Update.
4485 (mcore_init_extra_frame_info): Update.
4486 * i386-tdep.c (i386_frame_saved_pc): Update.
4487 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4488 (ia64_init_extra_frame_info): Update.
4489 (ia64_init_extra_frame_info): Update.
4490 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4491 * cris-tdep.c (cris_init_extra_frame_info): Update.
4492 * avr-tdep.c (avr_frame_chain): Update.
4493 (avr_init_extra_frame_info): Update.
4494 (avr_frame_saved_pc): Update.
4495 * arm-tdep.c (arm_find_callers_reg): Update.
4496 (arm_init_extra_frame_info): Update.
4497 (arm_frame_saved_pc): Update.
4498
4499 2002-09-17 Tom Tromey <tromey@redhat.com>
4500
4501 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4502 is "'".
4503
4504 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4505
4506 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4507 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4508 NEXT_PROLOGUE_INSN.
4509 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4510 NEXT_PROLOGUE_INSN.
4511
4512 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4513
4514 * osfsolib.c: Remove file, replaced by solib-osf.c.
4515 * Makefile.in: Remove compilation rules for osfsolib.c.
4516
4517 2002-09-16 David Carlton <carlton@math.stanford.edu>
4518
4519 * cp-valprint.c (cp_print_class_method): Correct args to
4520 check_stub_method_group.
4521
4522 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4523
4524 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4525 `set architecture'. Unify naming convention of functions.
4526 (h8300_skip_prologue): Improve prologue analysis.
4527 (h8300_push_arguments): Rewritten to more closely match GCC's
4528 bizarre argument-passing behavior, along with the comment describing
4529 said behavior.
4530 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4531 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4532 sim, remote-e7000.c, remote-hms.c and remote.c
4533
4534 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4535
4536 * i386-tdep.c (gdb_print_insn_i386): Removed.
4537 (i386_print_insn): New function.
4538 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4539 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4540 tm_print_insn_info.
4541
4542 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4543
4544 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4545 zero.
4546
4547 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4548
4549 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4550 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4551 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4552
4553 2002-09-13 Christopher Faylor <cgf@redhat.com>
4554
4555 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4556
4557 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4558
4559 * gdbtypes.c (check_stub_method): Make static.
4560 (check_stub_method_group): New function.
4561 * gdbtypes.h: Update prototypes.
4562 * cp-support.c: New file.
4563 * cp-support.h: New file.
4564
4565 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4566 (update_method_name_from_physname): New function.
4567 (read_member_functions): Correct method names for operators
4568 and v3 constructors/destructors. Separate v2 constructors and
4569 destructors.
4570 * Makefile.in (stabsread.o): Update dependencies.
4571 (SFILES): Add cp-support.c.
4572 (COMMON_OBS): Add cp-support.o.
4573 (cp_support_h, cp-support.o): Add.
4574
4575 * cp-valprint.c (cp_print_class_method): Call
4576 check_stub_method_group instead of check_stub_method. Remove
4577 extraneous QUITs.
4578 * p-valprint.c (pascal_object_print_class_method): Likewise.
4579 * valops.c (search_struct_method): Likewise.
4580 (find_method_list, value_struct_elt_for_reference): Likewise.
4581
4582 2002-09-13 Andrew Cagney <cagney@redhat.com>
4583
4584 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4585 * gdbarch.h, gdbarch.c: Regenerate.
4586
4587 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4588
4589 * frame.c (find_saved_register): Delete function.
4590 * frame.h (find_saved_register): Delete declaration.
4591 Fix PR gdb/631.
4592
4593 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4594
4595 * mips-tdep.c (read_next_frame_reg): Re-hack using
4596 frame_register_unwind.
4597
4598 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4599
4600 * mips-tdep.c (mips_get_saved_register): Re-hack using
4601 frame_register_unwind.
4602
4603 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4604
4605 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4606 vector. Will be useful for Interix.
4607 * gdbarch.h, gdbarch.c: Regenerate.
4608
4609 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4610 name of the malloc function by NAME_OF_MALLOC.
4611
4612 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4613
4614 * value.h (find_function_in_inferior): Add const keyword to
4615 one of the parameters. Allows us to invoke this function with
4616 a const char *.
4617 * valops.c (find_function_in_inferior): Likewise.
4618
4619 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4620
4621 * exec.c (xfer_memory): Fix compilation warning with old versions
4622 of GCC.
4623 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4624
4625 2002-09-12 David Carlton <carlton@math.stanford.edu>
4626
4627 * symtab.h: Run through gdb_indent.h.
4628 Add 2002 to Copyright year list.
4629
4630 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4631
4632 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4633 mach constants.
4634 * MAINTAINERS: Add myself to write after approval list.
4635
4636 2002-09-11 J. Brobecker <brobecker@gnat.com>
4637
4638 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4639
4640 2002-09-11 J. Brobecker <brobecker@gnat.com>
4641
4642 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4643 Interix.
4644
4645 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4646
4647 * procfs.c (do_detach): Clear current signal, not just fault.
4648 Corrects problem with breakpoint trap signal leaking to detached
4649 process on Tru64.
4650
4651 2002-09-10 Michael Snyder <msnyder@redhat.com>
4652
4653 * buildsym.c (finish_block): Protect against null pointer.
4654
4655 2002-09-10 Andrew Cagney <cagney@redhat.com>
4656
4657 * infcmd.c (default_print_registers_info): Send all output to
4658 ``file'' instead of ``gdb_stdout''.
4659
4660 2002-09-10 Michael Snyder <msnyder@redhat.com>
4661
4662 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4663 LONGEST, and use signed register read (addresses are sign-
4664 extended for mips).
4665
4666 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4667
4668 * event-loop.c (gdb_do_one_event): Make public.
4669 * event-loop.h (gdb_do_one_event): Declare.
4670
4671 2002-09-10 Jeff Law <law@redhat.com>
4672
4673 * infttrace.c (child_resume): Simplify and rework to avoid
4674 TT_PROC_CONTINUE.
4675
4676 2002-09-09 Fred Fish <fnf@intrinsity.com>
4677
4678 * printcmd.c (print_scalar_formatted): "len" is the number of
4679 target bytes, NOT the number of target bits.
4680
4681 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4682
4683 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4684 * top.c (init_main): Set rl_terminal_name.
4685
4686 2002-09-08 Aidan Skinner <aidan@velvet.net>
4687
4688 * ada-lang.c (ada_array_bound, ada_type_match,
4689 _initialize_ada_language): Fix K&R definitions.
4690 * ada-tasks.c (get_current_task): Fix K&R definitions.
4691 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4692
4693 2002-09-07 Christopher Faylor <cgf@redhat.com>
4694
4695 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4696 Add XP.
4697
4698 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4699
4700 * i386-tdep.c (i386_register_virtual_type,
4701 i386_register_convertible, i386_register_convert_to_virtual,
4702 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4703 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4704 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4705 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4706 Don't set push_arguments twice.
4707
4708 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4709 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4710 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4711 sigtramp_end to NULL.
4712 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4713 defines.
4714 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4715
4716 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4717 whitespace.
4718
4719 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4720 * gdbarch.h, gdbarch.c: Re-generate.
4721 * blockframe.c (find_pc_sect_partial_function): Convert to use
4722 SIGTRAMP_START_P predicate.
4723
4724 2002-09-05 Michael Snyder <msnyder@redhat.com>
4725
4726 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4727 generic_dummy_frame method and old method. Also distinguish
4728 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4729 (arm_extract_return_value): Use new regcache method.
4730
4731 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4732 adjustment that doesn't conform to the ABI.
4733 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4734 saved regcache, not from current regcache.
4735
4736 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4737
4738 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4739 * README: Update.
4740
4741 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4742
4743 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4744 if arm_apcs_32 is false.
4745
4746 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4747
4748 GDB 5.3 branch created.
4749
4750 2002-09-03 Theodore A. Roth <troth@verinet.com>
4751
4752 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4753 generic_unwind_get_saved_register.
4754
4755 2002-09-03 David Carlton <carlton@math.stanford.edu>
4756
4757 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4758 argument (PR gdb/653). Update call to smash_to_method_type.
4759 (read_structure_scope): Update call to dwarf2_add_member_fn.
4760
4761 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4762
4763 * x86-64-linux-tdep.c: Include gdb_string.h
4764 * x86-64-linux-nat.c: Ditto.
4765
4766 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4767
4768 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4769 when YYDEBUG is set to 1.
4770 * c-exp.y: Likewise.
4771 * f-exp.y: Likewise.
4772 * jv-exp.y: Likewise.
4773 * m2-exp.y: Likewise.
4774 * p-exp.y: Likewise.
4775
4776 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4777
4778 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4779 dependency list.
4780 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4781 solib_svr4_fetch_link_map_offsets to
4782 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4783 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4784 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4785 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4786 solib-svr4.o, and solib-legacy.o.
4787 * config/i386/tm-nbsd.h: Include solib.h.
4788
4789 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4790
4791 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4792 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4793 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4794 comment noting that this needs its own target configuration.
4795 * config/i386/nbsd.mt: New file.
4796 * config/i386/nbsdaout.mt: Remove.
4797 * config/i386/nbsdelf.mt: Ditto.
4798 * config/i386/tm-nbsdaout.h: Ditto.
4799
4800 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4801
4802 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4803 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4804 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4805 tdep->sigtramp_end.
4806 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4807 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4808 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4809
4810 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4811
4812 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4813 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4814 * i386-tdep.h (i386bsd_init_abi): New prototype.
4815 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4816 function declaration.
4817 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4818 for NetBSD-a.out or NetBSD-ELF.
4819 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4820 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4821 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4822 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4823 and nbsd-tdep.h.
4824 (i386nbsd_pc_in_sigtramp): New function.
4825 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4826 i386nbsd_pc_in_sigtramp.
4827 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4828 and i386nbsdelf_init_abi OS ABI handlers.
4829 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4830 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4831
4832 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4833
4834 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4835 registers if the target really has them.
4836
4837 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4838
4839 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4840 than nbsd-tdep.h.
4841
4842 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4843
4844 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4845 list.
4846 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4847 (alphanbsd_skip_sigtramp_frame): New functions.
4848 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4849 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4850 to alphanbsd_sigcontext_addr.
4851
4852 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4853
4854 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4855 list.
4856 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4857 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4858 nbsd_pc_in_sigtramp.
4859 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4860 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4861 * nbsd-tdep.c: Include gdb_string.h.
4862 (nbsd_pc_in_sigtramp): New function.
4863 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4864 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4865 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4866 ppcnbsd_pc_in_sigtramp.
4867 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4868 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4869 shnbsd_pc_in_sigtramp.
4870 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4871 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4872 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4873
4874 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4875
4876 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4877 watchpoints to NULL.
4878 (insert_breakpoints): set val field of watchpoints if NULL.
4879
4880
4881 2002-08-29 Jim Blandy <jimb@redhat.com>
4882
4883 * symtab.c (lookup_symbol_aux): In the cases where we find a
4884 minimal symbol of an appropriate name and use its address to
4885 select a symtab to read and search, use `name' (as passed to us)
4886 as the demangled name when searching the symtab's global and
4887 static blocks, not the minsym's name.
4888
4889 2002-08-29 Keith Seitz <keiths@redhat.com>
4890
4891 * stack.c (print_frame_info_base): Always set current_source_symtab
4892 and current_source_line.
4893
4894 2002-08-29 Donn Terry <donnte@microsoft.com>
4895
4896 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4897
4898 2002-08-28 Keith Seitz <keiths@redhat.com>
4899
4900 * stack.c (select_frame): Add FIXME concerning selected-frame
4901 events.
4902 (select_frame_command): Send selected-frame-level-changed
4903 event notification, but only if the level actually changed.
4904 (up_silently_base): Add selected-frame-level-changed event
4905 notification.
4906 (down_silently_base): Likewise.
4907
4908 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4909
4910 * Makefile.in: Update dependencies for all gdb/*.c files.
4911
4912 2002-08-27 Tom Tromey <tromey@redhat.com>
4913
4914 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4915 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4916 Update dependencies.
4917 * i387-tdep.c: Include gdb_string.h.
4918 * osabi.c: Likewise.
4919 * i386-linux-nat.c: Likewise.
4920 * lin-lwp.c: Likewise.
4921 * ax-gdb.c: Likewise.
4922 * signals/signals.c: Likewise.
4923 * jv-valprint.c: Likewise.
4924 * p-lang.c: Likewise.
4925 * c-valprint.c: Likewise.
4926 * cp-abi.c: Likewise.
4927
4928 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4929
4930 * cli/cli-script.h (copy_command_lines): Export.
4931 * breakpoint.c: Include cli/cli-script.h.
4932 * Makefile.in (breakpoint.o): Update dependencies.
4933
4934 2002-08-26 Michael Snyder <msnyder@redhat.com>
4935
4936 * breakpoint.c (insert_breakpoints): Protect all references
4937 to 'process_warning'. Shorten long lines.
4938
4939 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4940
4941 * cli/cli-script.c (copy_command_lines): New function.
4942 * defs.h (copy_command_lines): Export.
4943 * testsuite/gdb.base/commands.exp: New tests for commands
4944 attached to a temporary breakpoint, and for commands that
4945 delete the breakpoint they are attached to.
4946
4947 2002-08-26 Michael Snyder <msnyder@redhat.com>
4948
4949 * breakpoint.c (bpstat_stop_status): Instead of copying the
4950 pointer to the breakpoint commands struct, make a new copy
4951 of the struct and point to that.
4952 (bpstat_clear): Free the commands struct.
4953 (bpstat_clear_actions): Free the commands struct.
4954 (bpstat_do_actions): Free the command actions. Also execute
4955 the local cleanups, instead of deleting them.
4956 (delete_breakpoint): Leave the commands field of the bpstat
4957 chain alone -- it will be freed later.
4958
4959 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4960
4961 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4962 deleted in 2002-08-20 commit. This function is still used by
4963 ppc-linux-nat.c.
4964
4965 2002-08-26 Keith Seitz <keiths@redhat.com>
4966
4967 * gdb-events.sh: Add selected-frame-level-changed event.
4968 * gdb-events.c: Regenerated.
4969 * gdb-events.h: Regenerated.
4970
4971 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4972
4973 Fix PR gdb/393:
4974 * inflow.c (terminal_save_ours): New function to save terminal
4975 settings.
4976 * inferior.h (terminal_save_ours): Declare.
4977 * target.c (debug_to_terminal_save_ours): New function.
4978 (cleanup_target): Defaults to_terminal_save_ours.
4979 (update_current_target): Inherit to_terminal_save_ours.
4980 (setup_target_debug): Set to_terminal_save_ours.
4981 * target.h (target_terminal_save_ours): New to save terminal settings.
4982 (target_ops): New member to_terminal_save_ours.
4983 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4984 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4985 * inftarg.c (init_child_ops): Likewise.
4986 * m3-nat.c (init_m3_ops): Likewise.
4987 * procfs.c (init_procfs_ops): Likewise.
4988 * wince.c (init_child_ops): Likewise.
4989 * win32-nat.c (init_child_ops): Likewise.
4990 * sol-thread.c (init_sol_thread_ops): Likewise.
4991
4992 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4995 use regcache_* functions.
4996 (i386_gdbarch_init): Set store_return_value instead of
4997 deprecated_store_return_value.
4998
4999 * regcache.c (regcache_raw_write_signed,
5000 regcache_raw_write_unsigned): New functions.
5001 * regcache.h (regcache_raw_write_signed,
5002 regcache_raw_write_unsigned): New prototypes.
5003
5004 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5005
5006 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5007 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5008 source file dependencies. Cleanup corresponding generator rules.
5009
5010 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5011
5012 * regcache.h (register_offset_hack): Declare.
5013 (regcache_cooked_read_using_offset_hack): Declare.
5014 (regcache_cooked_write_using_offset_hack): Declare.
5015
5016 * regcache.c (register_offset_hack): New function.
5017 (regcache_cooked_read_using_offset_hack): New function.
5018 (regcache_cooked_write_using_offset_hack): New function.
5019 (regcache_dump): Check that the registers, according to their
5020 offset, are packed hard against each other.
5021 (cooked_xfer_using_offset_hack): New function.
5022
5023 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5024
5025 * regcache.c (struct regcache_descr): Add field register_type.
5026 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5027 in as a parameter
5028 (init_regcache_descr): Initialize register_type. Pass the descr
5029 to init_legacy_regcache_descr. Use register_type instead of
5030 REGISTER_VIRTUAL_TYPE.
5031 (register_type): New function.
5032 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5033 * regcache.h (register_type): Declare.
5034
5035 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5036
5037 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5038 instead of deprecated_store_return_value. Fix fallout from
5039 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5040
5041 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5042
5043 * regcache.c (max_register_size): New function.
5044 (init_legacy_regcache_descr): Ensure that max_register_size is
5045 large enough for REGISTER_VIRTUAL_SIZE.
5046 * regcache.h (max_register_size): Declare.
5047
5048 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5049
5050 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5051 store_return_value.
5052 (e500_extract_return_value): Change type of valbuf pointer to
5053 void.
5054
5055 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5056
5057 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5058 workaround.
5059
5060 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5061 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5062 long long) to prevent compiler warning on 64-bit systems.
5063
5064 2002-08-23 Andrew Cagney <cagney@redhat.com>
5065
5066 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5067 (DEPRECATED_STORE_RETURN_VALUE): New method.
5068 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5069 * gdbarch.h, gdbarch.c: Re-generate.
5070
5071 * values.c (set_return_value): Pass current_regcache to
5072 STORE_RETURN_VALUE.
5073 * arch-utils.h (legacy_store_return_value): Declare.
5074 * arch-utils.c (legacy_store_return_value): New function.
5075 (legacy_extract_return_value): Update parameters.
5076
5077 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5078 STORE_RETURN_VALUE.
5079 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5080 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5081 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5082 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5083 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5084 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5085 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5086 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5087 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5088 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5089
5090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5091 * i386-tdep.c (i386_extract_return_value): Update.
5092 * arch-utils.c (legacy_extract_return_value): Update.
5093 * frv-tdep.c (frv_gdbarch_init): Update.
5094 * cris-tdep.c (cris_gdbarch_init): Update.
5095 * d10v-tdep.c (d10v_gdbarch_init): Update.
5096 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5097 * m68k-tdep.c (m68k_gdbarch_init): Update.
5098 * mcore-tdep.c (mcore_gdbarch_init): Update.
5099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5100 * s390-tdep.c (s390_gdbarch_init): Update.
5101 * sparc-tdep.c (sparc_gdbarch_init): Update.
5102 * sh-tdep.c (sh_gdbarch_init): Update.
5103 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5104 * v850-tdep.c (v850_gdbarch_init): Update.
5105 * avr-tdep.c (avr_gdbarch_init): Update.
5106 * ia64-tdep.c (ia64_gdbarch_init): Update.
5107 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5108 * vax-tdep.c (vax_gdbarch_init): Update.
5109 * alpha-tdep.c (alpha_gdbarch_init): Update.
5110 * arm-tdep.c (arm_gdbarch_init): Update.
5111 * mips-tdep.c (mips_gdbarch_init): Update.
5112 * i386-tdep.c (i386_gdbarch_init): Update.
5113
5114 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5115
5116 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5117 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5118
5119 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5120
5121 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5122 problems.
5123
5124 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5125
5126 * infrun.c (handle_inferior_event): Move a comment outside of a
5127 function call, in order to avoid indent reformatting this part
5128 of the code in an unreadable way.
5129
5130 2002-08-23 Grace Sainsbury <graces@redhat.com>
5131
5132 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5133 when breakpoints fail. Move general breakpoint error messages to
5134 insert_breakpoints.
5135 * breakpoint.c (insert_breakpoints): Change warnings when
5136 breakpoints are nto inserted to specify the type. Remove call to
5137 memory_error when hardware breakpoints can't be inserted. Remove
5138 multiple calls to warning so all messages are sent to the user at
5139 once.
5140 (delete_breakpoints): Make insert error messsages more explicit.
5141
5142 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5143
5144 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5145 gdbserver/ChangeLog.
5146
5147 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5148
5149 * i386-tdep.c: Include "objfiles.h".
5150 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5151 skip_trampoline_code.
5152 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5153 (CPLUS_MARKER): Define to '.'.
5154
5155 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5156 member.
5157 (linux_corefile_thread_callback): Increase args->num_notes.
5158 (linux_make_note_section): Initialize thread_args.num_notes, and
5159 use it to determine whether notes for any threads were created.
5160
5161 2002-08-23 Donn Terry <donnte@microsoft.com>
5162
5163 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5164 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5165 and PCUNKILL.
5166 (write_with_trace): Conditionalize out the switch branch handling
5167 PCSHOLD if the corresponding macro is not defined. Likewise for
5168 PRSABORT and PRSTOP.
5169 This change will be needed by the Interix port.
5170
5171 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5172
5173 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5174 write_register wherever possible instead of manipulating the
5175 register bytes directly.
5176 Assign VALUE_CONTENTS to a variable and use that.
5177 The GPR numbers are now dependent on the architecture.
5178
5179 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5180
5181 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5182 ev_offset fields.
5183 (skip_prologue): Add support for BookE/e500 instructions.
5184 (e500_extract_return_value): New function.
5185 (frame_get_saved_regs): Add support for saving ev registers and
5186 pseudo gpr's.
5187 (e500_store_return_value): New function.
5188 (rs6000_gdbarch_init): Move up default intializations of
5189 deprecated_extract_return_value and store_return_value. Overwrite
5190 init of store_return_value with e500 specific version.
5191 Set extract_return_value for e500.
5192
5193 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5194
5195 * blockframe.c (generic_call_dummy_register_unwind): Use
5196 regcache_cooked_read to catch cases in which the variable is
5197 stored in a pseudo register.
5198
5199 2002-08-22 Andrew Cagney <cagney@redhat.com>
5200
5201 * NEWS: Mention that the i960 has been made obsolete.
5202 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5203 i960-tdep.c
5204 (remote-nrom.o): Obsolete target.
5205 (remote-nindy.o, i960-tdep.o): Ditto.
5206 * remote-nrom.c: Make file obsolete.
5207 * remote-nindy.c, remote-vx960.c: Ditto.
5208 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5209 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5210 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5211 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5212 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5213 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5214 i960-*-vxworks* obsolete.
5215 * MAINTAINERS: Note that the i960 is obsolete.
5216
5217 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5218
5219 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5220 detach to allow reinitialization.
5221
5222 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5223
5224 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5225 attempt).
5226
5227 2002-08-22 Jim Blandy <jimb@redhat.com>
5228
5229 * coffread.c (coff_symfile_read): Don't try to read the line
5230 number table from disk if the image file doesn't have a symbol
5231 table; we'll never actually look at the info anyway, and Windows
5232 ships DLL's with bogus file offsets for the line number data.
5233
5234 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5235
5236 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5237 an e500 executable.
5238
5239 2002-08-21 Michael Snyder <msnyder@redhat.com>
5240
5241 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5242 (MSYMBOL_SIZE): Replace macro with function.
5243 (DEFAULT_MIPS_TYPE): Delete unused macro.
5244 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5245 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5246
5247 2002-08-21 Jim Blandy <jimb@redhat.com>
5248
5249 * valops.c (value_cast): Simplify and correct logic for doing a
5250 static cast from a pointer to a base class to a pointer to a
5251 derived class.
5252
5253 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5254
5255 * infcmd.c (default_print_registers_info): Replace
5256 do_registers_info.
5257 (registers_info): Use gdbarch_print_registers_info instead of
5258 DO_REGISTERS_INFO.
5259 * inferior.h (default_print_registers_info): Replace
5260 do_registers_info.
5261 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5262 (DO_REGISTERS_INFO): Change to a predicate function.
5263 * gdbarch.h, gdbarch.c: Regenerate.
5264
5265 2002-08-21 Keith Seitz <keiths@redhat.com>
5266
5267 * gdb-events.sh: Add target-changed event.
5268 * gdb-events.c: Regenerated.
5269 * gdb-events.c: Regenerated.
5270 * valops.c (value_assign): Add target-changed event notification
5271 to inlval_register, lval_memory, and lval_reg_frame_relative.
5272
5273 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5274
5275 * NEWS: Add an entry regarding the improvement of the next/step
5276 operation on Alpha Tru64 multi-processor machines.
5277
5278 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5279
5280 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5281 directores.
5282 * Makefile.in: Update all _h macro definitions.
5283 * Makefile.in (install-gdbtk): Move to install section.
5284 (rdi-share/libangsd.a): Move to end of file.
5285
5286 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5287
5288 * frame.c (frame_register_unwind): When a register, set addrp to
5289 the register's byte.
5290
5291 2002-08-20 Michael Snyder <msnyder@redhat.com>
5292
5293 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5294 used locally, so move them from the target machine header to here.
5295 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5296 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5297 Make static.
5298 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5299
5300 2002-08-20 Andrew Cagney <cagney@redhat.com>
5301
5302 * NEWS: Mention that the Apollo line was made obsolete.
5303 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5304 m68*-hp-hpux* obsolete.
5305 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5306 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5307 * buildsym.c (make_blockvector): Make static.
5308 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5309 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5310 (ALLDEPFILES): Remove dstread.c.
5311 (dstread.o): Obsolete make rule.
5312 * dstread.c: Makefile obsolete.
5313 * dst.h: Ditto.
5314 * config/m68k/hp300hpux.mt: Ditto.
5315 * config/m68k/hp300hpux.mh: Ditto.
5316 * config/m68k/hp300bsd.mt: Ditto.
5317 * config/m68k/hp300bsd.mh: Ditto.
5318 * config/m68k/apollo68b.mt: Ditto.
5319 * config/m68k/apollo68v.mh: Ditto.
5320 * config/m68k/apollo68b.mh: Ditto.
5321
5322 2002-08-20 Michael Snyder <msnyder@redhat.com>
5323
5324 * mips-tdep.c (mips_in_return_stub): Make static.
5325 (mips_gdbarch_init): Set in_solib_return_trampoline.
5326 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5327
5328 2002-08-20 Michael Snyder <msnyder@redhat.com>
5329
5330 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5331 * gdbarch.c, gdbarch.h: Regenerate.
5332 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5333 Add.
5334 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5335
5336 2002-08-20 Michael Snyder <msnyder@redhat.com>
5337
5338 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5339 (mips_gdbarch_init): Set skip_trampoline_code,
5340 in_solib_call_trampoline.
5341 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5342 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5343
5344 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5345
5346 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5347
5348 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5349 vector type for ev registers.
5350 (e500_pseudo_register_read): New function.
5351 (e500_pseudo_register_write): New function.
5352 (e500_dwarf2_reg_to_regnum): New function.
5353 (PPC_UISA_NOFP_SPRS): New macro.
5354 (PPC_EV_REGS): New macro.
5355 (PPC_GPRS_PSEUDO_REGS): New macro.
5356 (registers_e500): New register set for e500.
5357 (variants): Add e500 variant.
5358 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5359 before setting architectural dependent variations. Initialize ev
5360 registers numbers. Add case for e500 architecture. Set the
5361 number of pseudo registers.
5362
5363 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5364
5365 * rs6000-tdep.c: Clean up comments.
5366
5367 2002-08-20 Andrew Cagney <cagney@redhat.com>
5368
5369 * h8300-tdep.c: Re-indent file.
5370
5371 2002-08-20 Jim Blandy <jimb@redhat.com>
5372
5373 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5374 default for this.
5375
5376 2002-08-20 Keith Seitz <keiths@redhat.com>
5377
5378 * breakpoints.c (watch_command_1): Use internal breakpoint
5379 when setting a watchpoint_scope breakpoint.
5380
5381 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5382
5383 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5384 (build_builtin_type_vec64i): Ditto.
5385 (build_builtin_type_vec128): Ditto.
5386 (build_builtin_type_vec128i): Ditto.
5387
5388 2002-08-19 Michael Snyder <msnyder@redhat.com>
5389
5390 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5391 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5392 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5393 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5394 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5395 CALL_DUMMY_ADDRESS): Delete.
5396 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5397 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5398 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5399 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5400 push_return_address.
5401 (mips_register_raw_size, mips_eabi_use_struct_convention,
5402 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5403 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5404 mips_init_extra_frame_info, mips_eabi_push_arguments,
5405 mips_n32n64_push_arguments, mips_push_return_address,
5406 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5407 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5408
5409 2002-08-19 Michael Snyder <msnyder@redhat.com>
5410
5411 * mips-tdep.c (mips_frame_num_args): New function.
5412 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5413 frame_saved_pc, frame_args_address, frame_locals_address,
5414 frame_num_args, and frame_args_skip.
5415 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5416 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5417 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5418 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5419
5420 2002-08-20 Michael Snyder <msnyder@redhat.com>
5421
5422 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5423 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5424 * mips-tdep.c (mips_store_struct_return): New function.
5425 (mips_extract_struct_value_address): New function.
5426 (mips_gdbarch_init): Set store_struct_return and
5427 extract_struct_value_address.
5428
5429 2002-08-20 David Carlton <carlton@math.stanford.edu>
5430
5431 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5432 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5433 (read_file_scope): Check that line_header is nonzero before
5434 decoding macro information.
5435
5436 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5437
5438 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5439 flag the general-purpose registers as floating-point on targets
5440 that don't support the floating-point registers.
5441
5442 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5443
5444 * rs6000-tdep.c (altivec_register_p): Delete.
5445 (rs6000_do_altivec_registers): Delete.
5446 (rs6000_altivec_registers_info): Delete.
5447 (rs6000_do_registers_info): Delete.
5448 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5449 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5450
5451 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5452
5453 * infcmd.c (do_registers_info): Print vector registers in hex
5454 format only.
5455 (print_vector_info): Check that printing registers
5456 makes sense.
5457 (print_float_info): Ditto.
5458
5459 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5460
5461 * mips-tdep.c (mips_gdbarch_init): Update.
5462 (mips_o32_extract_return_value): Rewrite.
5463 (mips_o32_store_return_value): Rewrite.
5464 (mips_o32_xfer_return_value): New function.
5465 (mips_xfer_register): Tweak debug print message. Allow for
5466 buf_offset when dumping the value transfered.
5467
5468 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5469
5470 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5471 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5472 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5473 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5474 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5475
5476 2002-08-14 Michael Snyder <msnyder@redhat.com>
5477
5478 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5479
5480 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5481
5482 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5483 register.
5484 (P): New macro to define a register as a pseudo register.
5485 (R, R4, R8, R16, FR32, R64, R0): Updated.
5486 (struct variant): Add new fields for number of pseudo registers
5487 and number of total registers.
5488 (tot_num_registers): New macro replacing....
5489 (num_registers): ...deleted macro.
5490 (num_registers): New function.
5491 (num_pseudo_registers): New function.
5492 (variants): Update all variants to intialize new fields correctly.
5493 Postpone initialization of number of pseudo regs and real regs.
5494 (init_variants): New function.
5495 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5496 registers offsets.
5497
5498 2002-08-19 David Carlton <carlton@math.stanford.edu>
5499
5500 * valops.c (search_struct_field): Change error message to treat
5501 return value of 0 from value_static_field as meaning that field is
5502 optimized out.
5503 (value_struct_elt_for_reference): Ditto.
5504 * values.c (value_static_field): Treat an unresolved location the
5505 same as a nonexistent symbol. Fix PR gdb/635.
5506 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5507 enclosed. Fix PR gdb/574.
5508 * MAINTAINERS: Add self to Write After Approval list.
5509
5510 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5511
5512 * mips-tdep.c (mips_xfer_register): New function.
5513 (mips_n32n64_extract_return_value): Rewrite.
5514 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5515 instead of deprecated_extract_return_value.
5516
5517 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5518
5519 * rs6000-tdep.c (TDEP): Delete macro.
5520 (branch_dest): Replace use of TDEP macro with its body.
5521 (rs6000_pop_frame): Ditto.
5522 (rs6000_push_arguments): Ditto.
5523 (rs6000_skip_trampoline_code): Ditto.
5524 (rs6000_frame_saved_pc): Ditto.
5525 (rs6000_frame_chain): Ditto.
5526 (rs6000_register_name): Ditto.
5527 (rs6000_register_byte): Ditto.
5528 (rs6000_register_raw_size): Ditto.
5529 (rs6000_register_virtual_type): Ditto.
5530 (rs6000_register_convertible): Ditto.
5531 (rs6000_convert_from_func_ptr_addr): Ditto.
5532
5533 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5534
5535 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5536 conditionally.
5537 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5538 MIPS_LINUX_JB_ELEMENT_SIZE.
5539 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5540 for MAX_REGISTER_RAW_SIZE arrays.
5541 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5542 MIPS_LINUX_JB_ELEMENT_SIZE.
5543
5544 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5545
5546 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5547
5548 2002-08-19 Aidan Skinner <aidan@velvet.net>
5549
5550 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5551 ada-valprint.c ada-tasks.c.
5552 (YYFILES): Add ada-exp.y.
5553 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5554 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5555 (ada-exp.tab.o): New target.
5556
5557 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5558
5559 * regcache.c (regcache_xfer_part): New function.
5560 (regcache_raw_read_part): New function.
5561 (regcache_raw_write_part): New function.
5562 (regcache_cooked_read_part): New function.
5563 (regcache_cooked_write_part): New function.
5564 * regcache.h (regcache_raw_read_part): Declare.
5565 (regcache_raw_write_part): Declare.
5566 (regcache_cooked_read_part): Declare.
5567 (regcache_cooked_write_part): Declare.
5568
5569 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5570
5571 * remote.c (remote_open_1): Add async_p.
5572 (remote_async_open_1): Delete.
5573 (open_remote_target): Delete.
5574 (remote_open, extended_remote_open): Update calls to remote_open_1.
5575 (remote_async_open, extended_remote_async_open): Call
5576 remote_open_1 instead of remote_async_open_1.
5577
5578 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5579
5580 * blockframe.c: Fix a few coding standard violations.
5581
5582 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5583
5584 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5585 here from ...
5586 * config/i386/tm-i386sco5.h: ... here. File removed.
5587 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5588
5589 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5590 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5591 (TM_FILE): Set to tm-i386.h.
5592 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5593 * config/i386/tm-i386v.h: Remove file.
5594 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5595 instead of "i386/tm-i386v.h".
5596 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5597 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5598 "i386/tm-i386v.h".
5599 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5600 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5601 "i386/tm-i386.h".
5602
5603 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5604
5605 * config/i386/nm-i386v.h: Add protection against
5606 multiple-inclusion.
5607 (i386_register_u_addr): Remove prototype.
5608 (register_u_addr): New prototype.
5609 (REGISTER_U_ADDR): Redefine accordingly.
5610 * i386v-nat.c: Improve several comments.
5611 (i386_register_u_addr): Change signature and rename to
5612 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5613 ubase variable.
5614
5615 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5616
5617 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5618 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5619 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5620 deprecated_extract_return_value.
5621 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5622 rename mips_o32o64_push_arguments.
5623 (mips_gdbarch_init): Update.
5624 (mips_extract_return_value): Delete.
5625 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5626 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5627 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5628 (mips_n32n64_extract_return_value): Clone
5629 mips_extract_return_value.
5630 (mips_store_return_value): Delete.
5631 (mips_o32_store_return_value): Clone mips_store_return_value.
5632 (mips_o64_store_return_value): Clone mips_store_return_value.
5633 (mips_eabi_store_return_value): Clone mips_store_return_value.
5634 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5635
5636 2002-08-18 Aidan Skinner <aidan@velvet.net>
5637
5638 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5639 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5640
5641 2002-08-18 Aidan Skinner <aidan@velvet.net>
5642
5643 * ada-lang.c: Run through gdb_indent.sh.
5644 * ada-lang.h: Run through gdb_indent.sh.
5645 * ada-tasks.c: Run through gdb_indent.sh.
5646 * ada-typeprint.c: Run through gdb_indent.sh.
5647 * ada-valprint.c: Run through gdb_indent.sh.
5648
5649 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5650
5651 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5652 ABI.
5653
5654 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5655
5656 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5657
5658 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5659 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5660
5661 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5662 write_register_gen instead of write_register_bytes.
5663
5664 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5665 i[3456]-*-osf1mk* configurations have been made obsolete.
5666 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5667 i[3456]86-*-osf1mk* hosts obsolete.
5668 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5669 targets obsolete.
5670 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5671 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5672 config/i386/i386m3.mt, config/i386/nm-m3.h,
5673 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5674 config/i386/i386mk.mh, config/i386/i386mk.mt,
5675 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5676 obsolete.
5677 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5678 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5679 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5680
5681 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5682
5683 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5684 (hppa_value_returned_from_stack): Declare.
5685 (hppa_extract_return_value): Declare.
5686 * config/pa/hppa.mt: New file.
5687 * configure.tgt: Recognize hppa*-*-*.
5688 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5689
5690 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5691
5692 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5693 comment.
5694
5695 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5696
5697 * top.c (gdb_rl_operate_and_get_next): Make sure
5698 operate-and-get-next functions correctly even when the history
5699 list is completely filled.
5700
5701 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5702
5703 * MAINTAINERS (Target Instruction Set Architectures): Rename
5704 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5705 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5706 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5707 already listed under Host/Native.
5708
5709 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5710 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5711 mips*-*-*.
5712
5713 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5714
5715 * config/ia64/ia64.mt: New file.
5716 * config/alpha/alpha.mt: New file.
5717 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5718 ia64-linux-gnu. Mention that ia64-elf is broken.
5719 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5720
5721 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5722
5723 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5724 generic_func_frame_valid instead of func_frame_valid.
5725
5726 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5727
5728 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5729 procfs appears to be broken when debugging on multi-processor
5730 machines. So enable software single stepping in order to avoid
5731 using the procfs interface to do next/step operations, using
5732 internal breakpoints instead.
5733
5734 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5735 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5736 make this pc address equal to the value it would have if the
5737 system stepping capability was used. Also set a new flag used
5738 to ensure that we don't readjust the PC one more time later.
5739
5740 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5741 address by DECR_PC_AFTER_BREAK when software single step is
5742 in use for this architecture, as this has already been taken
5743 care of in handle_inferior_event().
5744
5745 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5746
5747 * infrun.c (handle_inferior_event): Minor reformatting, to make
5748 a rather long condition expression easier to read.
5749
5750 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5751
5752 * Makefile.in (gdbtk.o): Move to end of file.
5753 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5754 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5755 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5756 (gdbtk-wrapper.o, gdbres.o): Ditto.
5757
5758 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5759
5760 * Makefile.in (copying.o): Separate out compile rule.
5761 (hpux-thread.o, procfs.o, signals.o): Ditto.
5762 (v850ice.o, z8k-tdep.o): Ditto.
5763 (tui-file.o): Move to TUI section.
5764 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5765 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5766
5767 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5768
5769 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5770 skip_trampoline_code, for better namespace-proofing.
5771
5772 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5773
5774 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5775
5776 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5777
5778 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5779
5780 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5781 signal, check whether we hit a breakpoint before checking for a
5782 single step breakpoint. Otherwise, GDB fails to notice that a
5783 breakpoint has been hit when stepping onto a breakpoint.
5784
5785 2002-08-16 Keith Seitz <keiths@redhat.com>
5786
5787 * gdb-events.sh (clear_gdb_event_hooks): New function.
5788 * gdb-events.c: Regenerate.
5789 * gdb-events.h: Regenerate.
5790
5791 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5792
5793 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5794 not_a_sw_breakpoint.
5795 * breakpoint.h (bpstat_stop_status): Add parameter names.
5796
5797 2002-08-16 Grace Sainsbury <graces@redhat.com>
5798
5799 * remote.c (remote_insert_hw_breakpoint)
5800 (remote_remove_hw_breakpoint): Fix calculation of length field
5801 for Z-packet.
5802
5803 2002-08-15 Michael Snyder <msnyder@redhat.com>
5804
5805 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5806 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5807 (supply_fpregset): Ditto.
5808
5809 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5810 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5811 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5812 (TARGET_READ_SP): Delete.
5813 (DO_REGISTERS_INFO): Delete.
5814 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5815 Delete.
5816 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5817 from macros to functions.
5818
5819 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5820 (mips_register_convertible, mips_register_convert_to_virtual,
5821 mips_register_convert_to_raw): Make static.
5822 (mips_read_sp): New function.
5823 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5824 (mips_do_registers_info): Make static.
5825 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5826 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5827 (mips_register_convert_from_type, mips_register_convert_to_type):
5828 New functions.
5829 (mips_gdbarch_init): Set up function_start_offset,
5830 register_virtual_size, pc_in_sigtramp.
5831
5832 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5833
5834 * infcmd.c (vector_info): New function.
5835 (_initialize_infcmd): Add command "info vector".
5836 (print_vector_info): New function.
5837
5838 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5839 * gdbarch.h, gdbarch.c: Regenerate.
5840
5841 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5842
5843 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5844 ``print_all''. Only print vector registers when ``print_all''.
5845
5846 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5847
5848 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5849 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5850
5851 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5852 Add `args' parameter.
5853 * gdbarch.h, gdbarch.c: Regenerate.
5854
5855 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5856
5857 * infcmd.c (float_info): Call print_float_info.
5858 (print_float_info): New function. By default, print the
5859 floating-point registers.
5860
5861 * arch-utils.h (default_print_float_info): Delete declaration.
5862 * arch-utils.c (default_print_float_info): Delete function.
5863
5864 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5865
5866 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5867 out define.
5868
5869 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5870 FRAME.
5871
5872 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5873 * configure.host: Make i[3456]86-*-aix host obsolete.
5874 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5875 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5876 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5877 config/i386/xm-i386aix.h: Make files obsolete.
5878 * i386aix-nat.c: Make file obsolete.
5879 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5880 (i386aix-nat.o): Make target obsolete.
5881
5882 * config/i386/nm-gnu.h: Removed.
5883 * config/i386/nm-i386gnu.h: New file.
5884 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5885 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5886 Moved here from ...
5887 * config/i386/tm-i386gnu.h: ... here. Removed.
5888 * config/i386/xm-i386gnu.h: Removed.
5889 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5890 (NAT_FILE): Set to nm-i386gnu.h.
5891 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5892 * i386-tdep.c: New file.
5893 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5894 (i386gnu-tdep.o): Specify dependencies.
5895
5896 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5897
5898 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5899 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5900 Adjust a few comments to reflect reality a bit closer.
5901 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5902 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5903 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5904 target_insert_watchpoint, target_remove_watchpoint):
5905 Move defines to ...
5906 * config/i386/nm-i386sco5.h: ... here.
5907 (kernel_u_size): Add prototype. Improve a few comments and add
5908 protection against multiple inclusion.
5909
5910 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5911 out define.
5912
5913 * uw-thread.c (SP_ARG0): Define if not already defined.
5914 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5915
5916 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5917
5918 * config/i386/tm-i386.h: Don't include "regcache.h".
5919
5920 * i387-tdep.h (i387_print_float_info): New prototype.
5921 * i387-tdep.c (print_i387_value, print_i387_ext,
5922 print_i387_status_word, print_i387_control_word): Add `struct
5923 ui_file *' argument and use it for output.
5924 (i387_print_float_info): Renamed from i387_float_info. Add
5925 `struct gdbarch *' and `struct ui_file *' arguments and use the
5926 latter for output.
5927 * i386-tdep.c: Include "i387-tdep.h".
5928 (i386_gdbarch_init): Set print_float_info.
5929 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5930 (FLOAT_INFO): Remove define.
5931
5932 2002-08-13 Michael Snyder <msnyder@redhat.com>
5933
5934 * mips-tdep.c (mips_push_arguments): Rename to
5935 mips_eabi_push_arguments, and tune for EABI.
5936 (MIPS_REGS_HAVE_HOME_P): Delete.
5937 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5938 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5939 Delete references to mips_regs_have_home_p.
5940
5941 2002-08-14 Keith Seitz <keiths@redhat.com>
5942
5943 * Makefile.in (install-gdbtk): Create insight plugin directory.
5944 Install plugins.tcl file.
5945
5946 2002-08-14 Keith Seitz <keiths@redhat.com>
5947
5948 * configure.in: Move SUBDIRS to near top of the file so that
5949 --enable options may add things to it.
5950 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5951 * configure: Regenerate.
5952
5953 2002-08-13 Michael Snyder <msnyder@redhat.com>
5954
5955 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5956 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5957 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5958
5959 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5960
5961 * vax-tdep.c (vax_get_saved_register): Delete function.
5962 (vax_gdbarch_init): Update.
5963 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5964 (ns32k_gdbarch_init): Update.
5965 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5966 (alpha_gdbarch_init): Update.
5967
5968 2002-08-13 Andrew Cagney <cagney@redhat.com>
5969
5970 * regcache.c (init_regcache_descr): Overallocate the
5971 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5972 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5973 nr_raw_registers.
5974 (set_register_cached): Add range checking assertions. Use
5975 current_regcache.
5976
5977 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5978
5979 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5980 numbers for MMX registers.
5981
5982 2002-08-13 Andrew Cagney <cagney@redhat.com>
5983
5984 * i386-tdep.c (i386_gdbarch_init): Use
5985 generic_unwind_get_saved_register.
5986
5987 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5988
5989 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5990 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5991 target vector.
5992 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5993 Delete. Add comment regarding this now-deleted target method.
5994
5995 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5996
5997 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5998 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5999 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6000 real PC and the page number (if it's within the memory bank window).
6001 (m68hc11_pseudo_register_write): Likewise when saving.
6002 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6003 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6004 (m68hc11_register_raw_size): And use 32-bit for it.
6005 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6006 16K memory bank is used by the prog; also use the virtual pc.
6007
6008 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6009
6010 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6011 (m68hc11_gdbarch_init): Install it in gdbarch.
6012 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6013 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6014 (MSYMBOL_SIZE): New for documentation.
6015 (insn_return_kind): Enum to specify how a function returns.
6016 (frame_extra_info): Cleanup and record the return mode.
6017 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6018 register in address computation.
6019 (m68hc11_get_return_insn): New to obtain the return instruction used
6020 by the function.
6021 (m68hc11_frame_init_saved_regs): Take into account the return
6022 instruction used by the function for far and interrupt functions.
6023 (m68hc11_init_extra_frame_info): Take into account page register.
6024 (m68hc11_frame_args_address): Adjust according to the return mode.
6025 (show_regs): Print page register only when it's used.
6026
6027 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6028
6029 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6030 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6031 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6032 registers.
6033 (m68hc11_register_raw_size): Likewise.
6034
6035 2002-08-13 Andrew Cagney <cagney@redhat.com>
6036
6037 * i386-tdep.c (i386_register_name): Handle mmx registers.
6038 (mmx_regnum_p): New function.
6039 (i386_mmx_names): New array.
6040 (mmx_num_regs): New variable.
6041 (i386_pseudo_register_read): New function.
6042 (i386_pseudo_register_write): New function.
6043 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6044
6045 * regcache.c (regcache_raw_read_unsigned): New function.
6046 (regcache_raw_read_signed): New function.
6047 * regcache.h (regcache_raw_read_unsigned): Declare.
6048 (regcache_raw_read_signed): Declare.
6049
6050 2002-08-13 Andrew Cagney <cagney@redhat.com>
6051
6052 * regcache.c (regcache_raw_read_as_address): Delete function.
6053 (regcache_cooked_read_signed): New function.
6054 (regcache_cooked_read_unsigned): New function.
6055 * regcache.h (regcache_cooked_read_signed): Declare.
6056 (regcache_cooked_read_unsigned): Declare.
6057 (regcache_raw_read_as_address): Delete declaration.
6058
6059 * blockframe.c (generic_read_register_dummy): Use
6060 regcache_cooked_read_unsigned.
6061 * i386-tdep.c (i386_extract_struct_value_address): Use
6062 regcache_cooked_read_unsigned.
6063
6064 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6065
6066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6067 double sizes according to ELF ABI flags.
6068 (gdbarch_tdep): Record elf_flags.
6069
6070 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6071
6072 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6073 (m6812_prolog): They can appear in 68HC12 function prologue.
6074 (m68hc11_frame_chain): Cleanup.
6075
6076 2002-08-12 Andrew Cagney <cagney@redhat.com>
6077
6078 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6079 declarations.
6080 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6081 (i386_linux_register_raw_size): Delete function.
6082 (i386_linux_init_abi): Update.
6083 * i386-tdep.c (i386_register_raw_size): Delete function.
6084 (i386_register_byte): Delete function.
6085 (i386_gdbarch_init): Update.
6086 (i386_register_size): Delete array.
6087 (i386_register_offset): Delete array.
6088
6089 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6090 (REGISTER_RAW_SIZE): Delete macro.
6091 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6092 (REGISTER_BYTE): Delete macro.
6093
6094 2002-08-11 Aidan Skinner <aidan@velvet.net>
6095
6096 * ada-lang.c (ada_lookup_partial_symbol)
6097 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6098 prototype names so that grep ^func works properly.
6099
6100 * ada-lang.c (ada_array_element_type)
6101 (ada_lookup_partial_symbol): Fix typos in parameter list.
6102
6103 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6104 Fix prototype names so that grep ^func works properly.
6105
6106 2002-08-10 Andrew Cagney <cagney@redhat.com>
6107 Elena Zannoni <ezannoni@redhat.com>
6108 Martin M. Hunt <hunt@redhat.com>
6109
6110 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6111 (build_builtin_type_vec128i): Set the vector bit.
6112 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6113 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6114 (build_builtin_type_vec64): New function.
6115 (build_builtin_type_vec64i): New function.
6116 (build_gdbtypes): Initialize builtin_type_vec64 and
6117 builtin_type_vec64i.
6118
6119 2002-08-09 Andrew Cagney <cagney@redhat.com>
6120
6121 * regcache.c (regcache_dump): Compare the register offset
6122 with REGISTER_BYTE.
6123 * arch-utils.c (generic_register_byte): New function.
6124 * arch-utils.h (generic_register_byte): Declare.
6125 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6126 * gdbarch.h, gdbarch.c: Regenerate.
6127
6128 2002-08-09 Andrew Cagney <cagney@redhat.com>
6129
6130 * regcache.c: Include "gdbcmd.h"
6131 (_initialize_regcache): Add commands "maintenance print
6132 registers", "maintenance print raw-registers" and "maintenance
6133 print cooked-registers".
6134 (enum regcache_dump_what): Define.
6135 (dump_endian_bytes): New function.
6136 (regcache_dump): New function.
6137 (regcache_print): New function.
6138 (maintenance_print_registers): New function.
6139 (maintenance_print_raw_registers): New function.
6140 (maintenance_print_cooked_registers): New function.
6141 * Makefile.in (regcache.o): Update dependencies.
6142
6143 2002-08-09 Michael Snyder <msnyder@redhat.com>
6144
6145 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6146 (mips_push_arguments): Correct some comments. Use paddr_nz
6147 for printing addresses in debug output. Replace static
6148 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6149 (mips_n32n64_push_arguments): New function, cloned from
6150 mips_push_arguments and tuned for the n32/n64 ABI.
6151 (mips_push_register): Buffer needs dynamic allocation.
6152 (mips_print_register): Ditto.
6153 (do_gp_register_row): Ditto.
6154 (mips_store_return_value): Ditto.
6155 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6156
6157 2002-08-09 Don Howard <dhoward@redhat.com>
6158
6159 * memattr.c (mem_info_command): Print special case of upper bound
6160 as max CORE_ADDR + 1.
6161
6162 2002-08-08 Michael Snyder <msnyder@redhat.com>
6163
6164 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6165 returns structs by ref if they're too big to fit in two registers.
6166
6167 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6168
6169 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6170 saved regs value.
6171 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6172 mips_find_saved_regs().
6173 (mips_pop_frame): Likewise.
6174
6175 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6176
6177 * blockframe.c (frame_saved_regs_register_unwind): Revise
6178 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6179 frames are in use.
6180
6181 2002-08-09 Grace Sainsbury <graces@redhat.com>
6182
6183 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6184 T-packets; the 'a' is not taken as a register number.
6185 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6186 (remote_stopped_data_address): New functions; add to target
6187 vector.
6188 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6189 prototypes to match other implementations of this
6190 function. replace integer argument with pointer -- the length
6191 field in the Z-packet is the length of what is pointed to or 1 if
6192 pointer is null. Add to target vector.
6193 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6194 target vector.
6195
6196 From Mark Salter:
6197 * remote.c (remote_wait): Add support to extract optional
6198 watchpoint information from T-packet. Ignore unrecognized
6199 optional info in T-packet.
6200 (remote_async_wait): Ditto.
6201
6202 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6203
6204 * cli/cli-dump.c: Change fopen modes to use binary open modes
6205 as defined in include/fopen-bin.h throughout.
6206
6207 2002-08-08 Michael Snyder <msnyder@redhat.com>
6208
6209 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6210
6211 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6212
6213 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6214 assertion failure by returning early after a warning.
6215
6216 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6217
6218 * mips-tdep.c (mips_find_saved_regs): Make static.
6219 (mips_frame_init_saved_regs): New function.
6220 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6221 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6222 (mips_find_saved_regs): Delete declaration.
6223
6224 2002-08-08 Grace Sainsbury <graces@redhat.com>
6225
6226 * remote.c (remote_wait, remote_async_wait): Change
6227 thread_num from int to ULONGEST.
6228 (unpack_varlen_hex): Change result parameter from
6229 int * to ULONGEST *.
6230
6231 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6232
6233 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6234 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6235 powerpc*-*-*.
6236 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6237
6238 2002-08-08 Andrew Cagney <cagney@redhat.com>
6239
6240 * gcore.c (override_derive_stack_segment): Delete variable.
6241 (preempt_derive_stack_segment): Delete function.
6242 (derive_stack_segment): Delete function.
6243 (default_derive_stack_segment): Renamed to derive_stack_segment.
6244 (override_derive_heap_segment): Delete variable.
6245 (preempt_derive_heap_segment): Delete function.
6246 (derive_heap_segment): Delete function.
6247 (default_derive_heap_segment): Rename to derive_heap_segment.
6248
6249 2002-08-06 Michael Snyder <msnyder@redhat.com>
6250
6251 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6252 * mips-tdep.c (mips_EABI_use_struct_convention,
6253 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6254 New functions. (mips_use_struct_convention): Delete.
6255 (mips_gdbarch_init): set use_gdbarch_convention.
6256
6257 2002-08-06 Michael Snyder <msnyder@redhat.com>
6258
6259 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6260 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6261 mips_o32_reg_struct_has_addr): New functions.
6262 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6263
6264 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6265
6266 * regcache.c (pseudo_register): Delete function.
6267 (fetch_register): Delete function.
6268 (store_register): Delete function.
6269 (regcache_raw_read, legacy_read_register_gen): Use
6270 target_fetch_registers instead of fetch_register.
6271 (legacy_write_register_gen, regcache_raw_write): Use
6272 target_store_register instead of store_register.
6273 (write_register_bytes): Ditto.
6274
6275 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6276 (STORE_PSEUDO_REGISTER): Delete.
6277 * gdbarch.h, gdbarch.c: Regenerate.
6278
6279 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6280
6281 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6282 write dump file binary.
6283
6284 2002-08-05 Michael Snyder <msnyder@redhat.com>
6285
6286 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6287 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6288 (mips_gdbarch_init): Set N32 target to be mips64.
6289
6290 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6291
6292 * frame.c (find_saved_register): Break out of loop once saved
6293 register address is found. Don't mention sparc in loop comment
6294 anymore.
6295
6296 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6297
6298 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6299 mips_default_saved_regsize to 8.
6300
6301 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6302
6303 * gcore.c: Do not include <sys/procfs.h>.
6304 * Makefile.in (gcore.o): Update dependencies.
6305
6306 2002-08-06 Andrew Cagney <cagney@redhat.com>
6307
6308 * configure.tgt: Make arc-*-* obsolete.
6309 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6310 * MAINTAINERS: Make arc-elf obsolete.
6311 * arc-tdep.c: Make file obsolete.
6312 * config/arc/arc.mt: Ditto.
6313 * config/arc/tm-arc.h: Ditto.
6314
6315 2002-08-05 Theodore A. Roth <troth@verinet.com>
6316
6317 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6318
6319 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6320
6321 * mcore-tdep.c (mcore_gdbarch_init): Use
6322 generic_unwind_get_saved_register instead of
6323 generic_get_saved_register.
6324 * v850-tdep.c (v850_gdbarch_init): Ditto.
6325 * frv-tdep.c (frv_gdbarch_init): Ditto.
6326 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6327 * s390-tdep.c (s390_gdbarch_init): Ditto.
6328 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6329 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6330 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6331
6332 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6333
6334 * objfiles.h: Add missing #include "symfile.h"
6335
6336 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6337
6338 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6339
6340 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6341 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6342 of FIELD_BITSIZE.
6343
6344 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6345
6346 * NEWS: Cleanup and nitpick.
6347
6348 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6349
6350 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6351
6352 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6353
6354 * Makefile.in (gdbtk-bp.o): Update dependencies.
6355 (gdbtk-register.o): Ditto.
6356 (gdbtk-varobj.o): Ditto.
6357
6358 2002-08-03 Andrew Cagney <cagney@redhat.com>
6359
6360 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6361 m68hc11_fetch_pseudo_register.
6362 (m68hc11_pseudo_register_write): Replace
6363 m68hc11_store_pseudo_register.
6364 (m68hc11_gdbarch_init): Update.
6365
6366 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbarch.sh: Include "gdb_string.h".
6369 * gdbarch.c: Regenerate.
6370
6371 * regcache.c: Include "gdb_string.h".
6372 * ax-general.c: Ditto.
6373 * varobj.c: Ditto.
6374 * std-regs.c: Ditto.
6375 * fbsd-proc.c: Ditto.
6376 * thread.c: Ditto.
6377
6378 * Makefile.in (regcache.o): Update dependencies.
6379 (thread.o, gdbarch.o): Ditto.
6380 (ax-general.o, gdbarch.o): Ditto.
6381 (varobj.o, std-regs.o): Ditto.
6382 (fbsd-proc.o): Specify dependencies.
6383
6384 2002-08-02 Andrew Cagney <cagney@redhat.com>
6385
6386 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6387 regnum.
6388 (regcache_cooked_write): Ditto.
6389
6390 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6391
6392 * regcache.c (regcache_cooked_read): New function.
6393 (regcache_cooked_write): New function.
6394 (read_register_gen): Rewrite using regcache_cooked_read.
6395 (write_register_gen): Rewrite using regcache_cooked_write.
6396
6397 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6398 Declare.
6399
6400 2002-08-02 Andrew Cagney <cagney@redhat.com>
6401
6402 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6403 Replace the architecture methods register_read and register_write.
6404 * gdbarch.h, gdbarch.c: Regenerate.
6405 * regcache.c (init_regcache_descr): Update.
6406 (read_register_gen): Update.
6407 (write_register_gen): Update.
6408 (supply_register): Update comment.
6409
6410 * sh-tdep.c (sh_gdbarch_init): Update.
6411 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6412 `regcache' and `gdbarch' parameters. Make `buffer' a void
6413 pointer. Update code.
6414 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6415 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6416 void pointer. Update code.
6417 (sh64_register_write): Delete.
6418 (sh4_register_read): Delete.
6419 (sh64_register_read): Delete.
6420 (sh4_register_write): Delete.
6421 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6422 void pointer, `to' parameter a void pointer.
6423 (sh_sh64_register_convert_to_raw): Ditto.
6424
6425 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6426
6427 * mips-tdep.c (mips_register_virtual_type): Use architecture
6428 invariant return values.
6429
6430 2002-08-01 Andrew Cagney <cagney@redhat.com>
6431
6432 * linux-proc.c: Include "gdb_string.h".
6433 * Makefile.in (linux-proc.o): Update dependency list.
6434
6435 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6436
6437 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6438 comment.
6439
6440 2002-08-01 Grace Sainsbury <graces@redhat.com>
6441
6442 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6443 to_insert_watchpoint, to_remove_watchpoint,
6444 to_stopped_by_watchpoint, to_stopped_data_address,
6445 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6446 target vecctor. Define their corresponding macros so they call
6447 them.
6448
6449 * target.c: Add default and debug versions of for
6450 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6451 to_insert_watchpoint, to_remove_watchpoint,
6452 to_stopped_by_watchpoint, to_stopped_data_address,
6453 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6454
6455 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6456
6457 * mips-tdep.c (mips_register_virtual_type): New function.
6458 (mips_gdbarch_init): Register mips_register_virtual_type()
6459 with gdbarch machinery.
6460 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6461 this file instead of tm-bigmips.h.
6462 (MIPS_REGSIZE): Delete this macro.
6463 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6464 multiarch version in mips-tdep.c will be found.
6465
6466 2002-08-01 Andrew Cagney <cagney@redhat.com>
6467
6468 * NEWS: Menion that CHILL has been made obsolete.
6469
6470 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6471 * stabsread.c (read_range_type): Ditto.
6472 * gdbtypes.h: Ditto.
6473 * language.c (binop_type_check): Ditto.
6474 (binop_result_type): Ditto.
6475 (integral_type): Ditto.
6476 (character_type): Ditto.
6477 (string_type): Ditto.
6478 (boolean_type): Ditto.
6479 (structured_type): Ditto.
6480 (lang_bool_type): Ditto.
6481 (binop_type_check): Ditto.
6482 * language.h (_LANG_chill): Ditto.
6483 * dwarfread.c (set_cu_language): Ditto.
6484 * dwarfread.c (CHILL_PRODUCER): Ditto.
6485 * dwarfread.c (handle_producer): Ditto.
6486 * expression.h (enum exp_opcode): Ditto.
6487 * eval.c: Ditto for comments.
6488 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6489 * expprint.c (print_subexp): Ditto.
6490 (print_subexp): Ditto.
6491 * valops.c (value_cast): Ditto.
6492 (search_struct_field): Ditto.
6493 * value.h (COERCE_VARYING_ARRAY): Ditto.
6494 * symfile.c (init_filename_language_table): Ditto.
6495 (add_psymbol_with_dem_name_to_list): Ditto.
6496 * valarith.c (value_binop): Ditto.
6497 (value_neg): Ditto.
6498 * valops.c (value_slice): Ditto.
6499 * symtab.h (union language_specific): Ditto.
6500 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6501 (SYMBOL_DEMANGLED_NAME): Ditto.
6502 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6503 * defs.h (enum language): Ditto.
6504 * symtab.c (got_symtab): Ditto.
6505 * utils.c (fprintf_symbol_filtered): Ditto.
6506
6507 * ch-typeprint.c: Make file obsolete.
6508 * ch-valprint.c: Make file obsolete.
6509 * ch-lang.h: Make file obsolete.
6510 * ch-exp.c: Make file obsolete.
6511 * ch-lang.c: Make file obsolete.
6512
6513 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6514 CHILL_LIB.
6515 (TARGET_FLAGS_TO_PASS): Ditto.
6516 (CHILLFLAGS): Obsolete.
6517 (CHILL): Obsolete.
6518 (CHILL_FOR_TARGET): Obsolete.
6519 (CHILL_LIB): Obsolete.
6520 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6521 ch-valprint.c.
6522 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6523 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6524 ch-lang.o.
6525 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6526 targets.
6527
6528 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6529
6530 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6531 This does not change anything at the moment, but will be helpful
6532 later when full Ada support is integrated.
6533
6534 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6535
6536 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6537 help message.
6538
6539 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6540
6541 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6542 and save it in a local variable. Use variable in later test.
6543
6544 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6545
6546 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6547 test. (Thanks to Daniel Jacobowitz.)
6548
6549 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6550
6551 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6552 (mips_abi_strings): Add "n64".
6553 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6554
6555 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6556
6557 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6558 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6559
6560 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6561
6562 * utils.c (host_pointer_to_address, address_to_host_pointer):
6563 Use gdb_assert() instead of explicit call to internal_error().
6564
6565 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6566
6567 * Makefile.in (rs6000-nat.o): Update dependencies.
6568
6569 From Nicholas Duffek:
6570 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6571 (aix-thread.o): New rule.
6572 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6573 * config/powerpc/aix432.mh: New file.
6574
6575 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6576
6577 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6578 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6579 (fetch_core_registers, ppc_linux_supply_gregset)
6580 (ppc_linux_supply_fpregset): New functions.
6581 (ppc_linux_regset_core_fns): New.
6582 (_initialize_ppc_linux_tdep): Call add_core_fns.
6583 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6584 and ppc_linux_supply_gregset.
6585 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6586 (supply_fpregset): Call ppc_linux_supply_fpregset.
6587 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6588 corelow.o.
6589 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6590
6591 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6592
6593 * symtab.c (lookup_symbol): Demangle before lowercasing.
6594
6595 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6596
6597 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6598 declaration.
6599 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6600 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6601 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6602 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6603 "gdb_string.h".
6604 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6605 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6606 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6607 (avr-tdep.o, mon960-rom.o): Ditto.
6608 (aout_stabs_gnu_h): Define.
6609 (symtab_h): Remove $(gdb_obstack_h).
6610
6611 2002-07-30 Jim Blandy <jimb@redhat.com>
6612
6613 Patch from David Carlton <carlton@math.stanford.edu>:
6614 * gdbinit.in: Move the `dir' commands that add GDB's own source
6615 directory to the search path to the end, so that the `gdb' source
6616 directory will be searched first.
6617
6618 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6619
6620 * gdb_obstack.h: New file.
6621 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6622 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6623 * objfiles.h: Include "gdb_obstack.h".
6624 * Makefile.in (gdb_obstack_h): Define.
6625 (symtab_h): Add $(gdb_obstack_h).
6626 (objfiles_h): Add $(gdb_obstack_h).
6627
6628 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6629 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6630 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6631 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6632 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6633 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6634 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6635 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6636
6637 * Makefile.in (bcache.o): Update dependencies.
6638 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6639 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6640 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6641 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6642 (stabsread.o, symfile.o, symmisc.o): Ditto.
6643 (symtab.o, typeprint.o, macroexp.o): Ditto.
6644 (macrotab.o, mdebugread.o): Ditto.
6645 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6646 (coff_ecoff_h, aout_aout64_h): Define.
6647 (aout_stabs_gnu_h, libaout_h): Define.
6648
6649 2002-07-29 Andrew Cagney <cagney@redhat.com>
6650
6651 * regcache.c (struct regcache_descr): Rename nr_registers to
6652 nr_cooked_registers. Revise comments describing the structure
6653 member fields.
6654 (init_regcache_descr): Update.
6655 (init_legacy_regcache_descr): Update.
6656 (read_register_gen, write_register_gen): When a cooked register in
6657 the raw register range, directly access the value from the raw
6658 register cache.
6659
6660 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6661
6662 * z8k-tdep.c: Do not include "obstack.h".
6663 * h8300-tdep.c, h8500-tdep.c: Ditto.
6664 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6665 * valprint.c, v850-tdep.c: Ditto.
6666 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6667 * mn10200-tdep.c: Ditto.
6668
6669 * Makefile.in (z8k-tdep.o): Update dependencies.
6670 (m68hc11-tdep.o, valprint.o): Ditto.
6671 (v850-tdep.o, d10v-tdep.o): Ditto.
6672 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6673 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6674 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6675 (sh_opc_h, gdb_sim_sh_h): Define.
6676 (elf_sh_h, elf_bfd_h): Define.
6677 (opcode_m68hc11_h): Define.
6678 (OPCODES_SRC, OPCODES_DIR): define.
6679 (OPCODES): Use $(OPCODES_DIR).
6680 (gdb_sim_d10v_h): Rename sim_d10v_h.
6681 (gdb_sim_arm_h): Rename sim_arm_h.
6682
6683 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6684
6685 * utils.c (host_pointer_to_address, address_to_host_pointer):
6686 Change internal_error() message to indicate function responsible
6687 for the error.
6688
6689 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6690
6691 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6692 calls to local_hex_string_custom().
6693
6694 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6695
6696 * irix5-nat.c: Move IRIX shared library support from here...
6697 * solib-irix.c: ...to here. Revised substantially to work with
6698 generic solib framework.
6699
6700 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6701 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6702 * mips-irix-tdep.c: New file.
6703
6704 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6705 (mips-irix-tdep.o, solib-irix.o): New rules.
6706 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6707 solib-irix.o.
6708 * config/mips/irix6.mt (TDEPFILES): Likewise.
6709 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6710
6711 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6712
6713 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6714 disabled (via ``#if 0'') includes.
6715
6716 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6717
6718 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6719 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6720 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6721 Add support for the fpscr register.
6722 * rs6000-nat.c (regmap, fetch_inferior_registers)
6723 (store_inferior_registers, fetch_core_registers): Likewise.
6724
6725 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6726
6727 * rs6000-nat.c (language.h): Include.
6728 (special_regs): Delete this array.
6729 (regmap): New function.
6730 (fetch_register, store_register): Use regmap() to map gdb
6731 register numbers to ptrace register numbers. Also, use
6732 outputs from regmap() to make decisions regarding type of
6733 ptrace() call to make. In particular, don't compare against
6734 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6735 (fetch_inferior_registers, store_inferior_registers): Where
6736 possible, obtain register numbers from tdep struct. Don't
6737 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6738 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6739 (LAST_UISA_SP_REGNUM): Delete.
6740
6741 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6742
6743 * rs6000-nat.c (ppc-tdep.h): Include.
6744 (fetch_registers, store_register, fetch_core_registers): Don't
6745 access registers[] directly. Instead, use supply_register() or
6746 regcache_collect() as appropriate.
6747 (find_toc_address): Format hex address with local_hex_string().
6748
6749 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6750
6751 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6752 bfd/elf32-frv.c.
6753
6754 2002-07-24 Tom Tromey <tromey@redhat.com>
6755
6756 * jv-exp.y: Marked all strings with _().
6757 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6758 internal_error.
6759 (MethodInvocation, CastExpression, parse_number, yyerror,
6760 java_type_from_name, push_expression_name, yylex): Typo fixes.
6761
6762 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6763
6764 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6765 (tee_file_flush, tee_file_write, tee_file_fputs)
6766 (tee_file_isatty): New.
6767 * ui-file.h (tee_file_new): Add prototype.
6768
6769 2002-07-24 Aidan Skinner <aidan@velvet.net>
6770
6771 * ada-lang.c: Change k&r style function definitions to prototyped
6772 form.
6773 * ada-typeprint.c: Change k&r style function definitions to prototyped
6774 form.
6775 * ada-valprint.c: Change k&r style function definitions to prototyped
6776 form.
6777
6778 2002-07-24 Andrew Cagney <cagney@redhat.com>
6779
6780 * README: Remove reference to remote-bug.
6781 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6782 remote-bug.c.
6783 (m88k-nat.o): Delete rule.
6784 (m88k-tdep.o): Delete rule.
6785 (remote-bug.o): Delete rule.
6786 * MAINTAINERS: Mark as obsolete.
6787 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6788 * m88k-tdep.c: Make file obsolete.
6789 * config/m88k/m88k.mh: Ditto.
6790 * config/m88k/delta88v4.mh: Ditto.
6791 * config/m88k/delta88v4.mt: Ditto.
6792 * config/m88k/delta88.mt: Ditto.
6793 * config/m88k/delta88.mh: Ditto.
6794 * remote-bug.c: Ditto.
6795 * config/m88k/tm-delta88.h: Ditto.
6796 * config/m88k/nm-delta88v4.h: Ditto.
6797 * config/m88k/xm-delta88.h: Ditto.
6798 * config/m88k/xm-dgux.h: Ditto.
6799 * config/m88k/tm-m88k.h: Ditto.
6800 * config/m88k/nm-m88k.h: Ditto.
6801 * config/m88k/tm-delta88v4.h: Ditto.
6802 * m88k-nat.c: Ditto.
6803 * cxux-nat.c: Ditto.
6804 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6805 and m88*-*-* obsolete.
6806 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6807 m88*-*-* obsolete.
6808
6809 2002-07-24 Andrew Cagney <cagney@redhat.com>
6810
6811 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6812 constant. Same for local pointer variables.
6813 (extract_signed_integer): Ditto.
6814 * defs.h (extract_unsigned_integer): Update.
6815 (extract_signed_integer): Update.
6816
6817 2002-07-24 Andrew Cagney <cagney@redhat.com>
6818
6819 * regcache.c (regcache_raw_write): Change buf parameter to a
6820 constant void pointer.
6821 (regcache_raw_read): Change buf parameter to a void pointer.
6822 (legacy_write_register_gen): Change myaddr parameter a constant
6823 void pointer.
6824 (supply_register): Change val parameter to a const void pointer.
6825 * regcache.h (regcache_raw_write): Update declaration.
6826 (regcache_raw_read): Update declaration.
6827 (supply_register): Update declaration.
6828
6829 2002-07-24 Tom Tromey <tromey@redhat.com>
6830
6831 * defs.h (gdb_readline_wrapper): Declare.
6832 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6833 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6834 * top.c (gdb_readline_wrapper): New function.
6835 (command_line_input): Use it.
6836
6837 2002-07-24 Andrew Cagney <cagney@redhat.com>
6838
6839 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6840 regcache_read and regcache_write.
6841 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6842 * regcache.c: Update.
6843 * sh-tdep.c (sh64_push_arguments): Update comment.
6844 (sh_pseudo_register_read): Update.
6845 (sh_pseudo_register_write): Update.
6846 (sh4_register_read): Update.
6847 (sh4_register_write): Update.
6848 (sh64_pseudo_register_read): Update.
6849 (sh64_pseudo_register_write): Update.
6850 (sh64_register_read): Update.
6851 (sh64_register_write): Update.
6852 * i386-tdep.c (i386_extract_return_value): Update.
6853 (i386_extract_struct_value_address): Update.
6854 (i386_extract_return_value): Update.
6855 * blockframe.c (generic_read_register_dummy): Update.
6856 (generic_call_dummy_register_unwind): Update
6857 * infrun.c (write_inferior_status_register): Update.
6858
6859 2002-07-23 Jim Blandy <jimb@redhat.com>
6860
6861 * parser-defs.h (expression_context_pc): Make this extern.
6862 (Thanks to Michael Snyder.)
6863
6864 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6865
6866 GDB 5.2.1 released from 5.2 branch.
6867 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6868 * README: Update to mention 5.2.1.
6869
6870 2002-07-23 Mark Salter <msalter@redhat.com>
6871
6872 * remote.c (remote_read_bytes): Fix check for error.
6873
6874 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6875
6876 * aix-thread.c (language.h): Include.
6877 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6878 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6879 Print newlines at end of debug messages.
6880 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6881 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6882
6883 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6884
6885 * aix-thread.c (ppc-tdep.h): Include.
6886 (special_register_p): New function.
6887 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6888 (store_regs_user_thread): Use register number information from
6889 gdbarch_tdep struct instead of hardcoded offsets relative to
6890 FIRST_UISA_SP_REGNUM.
6891 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6892 special_register_p() instead of using FPLAST_REGNUM and
6893 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6894 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6895 will be MQ's register number.
6896
6897 2002-07-22 Michael Snyder <msnyder@redhat.com>
6898
6899 * aix-thread.c (ops): Rename to aix_thread_ops.
6900 (base_ops): Rename to base_target.
6901 (ops_attach): Rename to aix_thread_attach.
6902 (ops_detach): Rename to aix_thread_detach.
6903 (ops_resume): Rename to aix_thread_detach.
6904 (ops_wait): Rename to aix_thread_wait.
6905 (ops_kill): Rename to aix_thread_kill.
6906 (init_ops): Rename to init_aix_thread_ops.
6907 (ops_fetch_register): Rename to aix_thread_fetch_register.
6908 (ops_store_register): Rename to aix_thread_store_register.
6909 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6910 (ops_thread_alive): Rename to aix_thread_thread_alive.
6911 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6912 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6913 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6914 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6915 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6916 (store_regs_lib): Rename to store_regs_user_thread.
6917 (store_regs_kern): Rename to store_regs_kernel_thread.
6918
6919 2002-07-22 Michael Snyder <msnyder@redhat.com>
6920
6921 * aix-thread.c (ops_prepare_to_store): Eliminate.
6922 (init_ops): Don't initialize ops.prepare_to_store.
6923 (store_regs_kern): Pre-fetch register buffers from child,
6924 because some registers may not be in the cache. Copy
6925 regs from register cache only if they are cached.
6926 (store_regs_lib): Copy regs from register cache only
6927 if they are cached.
6928 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6929 fill_gprs64): Ditto.
6930
6931 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6932
6933 * aix-thread.c (gdb_assert.h): Include.
6934 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6935 register sizes (from register cache) match size of buffer holding
6936 register data.
6937 (fill_sprs32): Change parameter types to match those in the ptrace()
6938 buffer.
6939 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6940 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6941
6942 2002-07-22 Michael Snyder <msnyder@redhat.com>
6943
6944 * aix-thread.c (supply_sprs64): Cosmetic change.
6945 (supply_sprs32): Cosmetic change.
6946 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6947 (fill_sprs64): Use regcache_collect instead of read_register.
6948 (store_regs_lib): Use regcache_collect instead of
6949 read_register. Use fill_sprs32 instead of fill_sprs64,
6950 if debugging a 32-bit architecture.
6951 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6952 out of the register cache, instead of passing a pointer into
6953 the register cache directly to ptrace. Use regcache_collect
6954 insteaad of read_register.
6955 (ops_prepare_to_store): Use target_read_registers instead
6956 of read_register_bytes.
6957
6958 2002-07-20 Aidan Skinner <aidan@velvet.net>
6959
6960 * MAINTAINERS: Add self under write after approval.
6961
6962 2002-07-20 Aidan Skinner <aidan@velvet.net>
6963
6964 * ada-tasks.c: Change k&r style function definitions to prototyped
6965 form.
6966
6967 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6968
6969 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6970 * x86-64-tdep.c: Include "objfiles.h".
6971 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6972 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6973
6974 2002-07-17 Michal Ludvig <michal@suse.cz>
6975
6976 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6977 (update_context): Initialise cfa variable.
6978
6979 2002-07-17 Michael Snyder <msnyder@redhat.com>
6980
6981 * aix-thread.c: Shorten some long lines.
6982 Bring comments into line with code spec.
6983
6984 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6985
6986 * infrun.c: Re-indent using gdb_indent.sh.
6987
6988 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6989
6990 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6991 Leave the indentation temporarily untouched, to minimize the diffs.
6992
6993 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6994
6995 * stabsread.c: Make os9k sections of the code obsolete,
6996 for real this time.
6997 * stabsread.h: Make os9k sections of the code obsolete.
6998
6999 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7000
7001 * linux-low.c (regsets_store_inferior_registers): Add free()
7002 at the end of a loop to prevent memory leak.
7003 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7004 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7005 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7006 line a comment.
7007 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7008
7009 2002-07-17 Jim Blandy <jimb@redhat.com>
7010
7011 * macrocmd.c (info_macro_command): Remove newline from error
7012 message.
7013
7014 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7015
7016 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7017 (sh_gdbarch_init): Use it for sh-dsp.
7018
7019 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7020
7021 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7022 64-bit DWARF2 format.
7023
7024 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7025
7026 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7027 <sys/proc.h> when not available.
7028
7029 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7030
7031 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7032 * stabsread.c: Make os9k sections of the code obsolete.
7033 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7034 * config/i386/i386os9k.mt: Make file obsolete.
7035 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7036 (COMMON_OBS): Remove os9kread.o
7037 (SFILES): Remove os9kread.c.
7038 (os9kread.o, remote-os9k.o): Make target obsolete.
7039 * remote-os9k.c: Make file obsolete.
7040 * os9kread.c: Make file obsolete.
7041 * Makefile.in
7042
7043 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7044
7045 * NEWS: Mention that the FR30 has been made obsolete.
7046 * fr30-tdep.c: Make file obsolete.
7047 * config/fr30/tm-fr30.h: Ditto.
7048 * config/fr30/fr30.mt: Ditto.
7049 * configure.tgt: Make fr30-*-elf obsolete.
7050 * MAINTAINERS: Make fr30-elf obsolete.
7051
7052 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7055 found is not inside a section.
7056
7057 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7058
7059 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7060 strerror().
7061 (pdc_realloc): Use xrealloc() instead of realloc().
7062
7063 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7064
7065 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7066 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7067 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7068 macros.
7069
7070 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7071
7072 * aix-thread.c (ptrace_check): Eliminate goto.
7073 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7074 problem.
7075
7076 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7077
7078 * aix-thread.c (gdbcmd.h): Include.
7079 (DEBUG, DBG, DBG2, dbg): Eliminate.
7080 (debug_aix_thread): New static global.
7081 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7082 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7083 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7084 invocations to DBG and DBG2 macros to test against
7085 ``debug_aix_thread'' and call fprintf_unfiltered().
7086 (_initialize_aix_thread): Add new command "set debug aix-thread".
7087
7088 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7089
7090 From Gerhard Tonn <TON@de.ibm.com>:
7091 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7092 instead of supply_register.
7093
7094 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7095
7096 * dwarf2cfi.c: Include "gdb_assert.h".
7097 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7098 non-NULL.
7099 (update_context): Do not use __func__. Add missing ``break''.
7100 (update_context): Do not use __func__.
7101
7102 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7103
7104 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7105 and its setting. Set gdbarch instruction printing functions
7106 directly. For non-rs6000 case use new function
7107 gdb_print_insn_powerpc.
7108 (gdb_print_insn_powerpc): New function.
7109
7110 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7111
7112 * NEWS: Mention that the d30v has been marked obsolete.
7113 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7114 * configure.tgt: Mark d30v-*-* as obsolete.
7115 * d30v-tdep.c: Mark file as obsolete.
7116 * config/d30v/d30v.mt: Ditto.
7117 * config/d30v/tm-d30v.h: Ditto.
7118
7119 2002-07-13 Aidan Skinner <aidan@velvet.net>
7120
7121 * ada-tasks.c (add_task_entry): replace calls to
7122 malloc() with xmalloc
7123 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7124
7125 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7126 ada_finish_decode_line_1, all_sals_for_line
7127 ada_breakpoint_rewrite): replace calls to free() with xfree()
7128
7129 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7130
7131 From Nicholas Duffek (with minor changes by Martin Hunt,
7132 Louis Hamilton, and Kevin Buettner):
7133 * aix-thread.c: New file.
7134
7135 2002-07-12 Petr Sorfa <petrs@caldera.com>
7136
7137 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7138 complaint for invalid attribute class or form.
7139 (read_func_scope): DW_AT_frame_base
7140 better handling of DW_AT_block*.
7141 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7142 better handling of DW_AT_block*.
7143 (read_common_block): DW_AT_location
7144 better handling of DW_AT_block*.
7145 (read_partial_die): DW_AT_location better handling
7146 of DW_AT_block*.
7147 (new_symbol): DW_AT_external better handling of
7148 DW_AT_block*. Proper initialization of variable
7149 "addr".
7150 (attr_form_is_block): New function that returns true
7151 if the attribute's form is of DW_FORM_block*.
7152
7153 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7154
7155 * valops.c (find_method_list): Remove comment about
7156 removed STATIC_MEMFUNCP argument.
7157 (value_find_oload_method_list): Likewise.
7158
7159 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7160
7161 From Nicholas Duffek:
7162 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7163 target_new_objfile_hook.
7164
7165 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7166
7167 From Nicholas Duffek:
7168 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7169 csect.
7170
7171 2002-07-12 Andrew Cagney <cagney@redhat.com>
7172
7173 * MAINTAINERS: Mention --enable-sim-build-warnings.
7174 (m68hc11-elf): Disable sim build warnings.
7175 (m32r-elf): Mark as broken obsolete candidate.
7176 (x86_64-linux-gnu): Mark as buildable with -Werror.
7177 (arm-elf): Change -w to ``,'' which enables warnings but not
7178 -Werror.
7179
7180 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7181
7182 * bcache.h: Update copyright.
7183 (struct bstring, struct bcache): Move definition to "bcache.c".
7184 Replaced by opaque declaration.
7185 (bcache_xfree): Replace free_bcache.
7186 (bcache_xmalloc, bcache_memory_used): Declare.
7187
7188 * bcache.c: Update copyright.
7189 (struct bstring, struct bcache): Moved to here from "bcache.h".
7190 Update comments.
7191 (bcache_xmalloc, bcache_memory_used): New functions.
7192 (bcache_xfree): Replace function free_bcache.
7193
7194 * Makefile.in (objfiles.o): Add $(bcache_h).
7195 (objfiles_h): Remove $(bcache_h).
7196 (symfile.o): Add $(bcache_h).
7197
7198 * symmisc.c: Update copyright.
7199 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7200 (print_objfile_statistics): Use bcache_memory_used.
7201
7202 * symfile.c: Include "bcache.h".
7203 (reread_symbols): Use bcache_xfree.
7204 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7205 (add_psymbol_to_list): Pass psymbol_cache by value.
7206 (add_psymbol_with_dem_name_to_list): Ditto.
7207
7208 * objfiles.h: Update copyright.
7209 (struct bcache): Declare opaque. Do not include "bcache.h".
7210 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7211 bcache'' pointers.
7212 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7213
7214 * objfiles.c: Include "bcache.h". Update copyright.
7215 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7216 macro_cache.
7217 (free_objfile): Use bcache_xfree.
7218
7219 2002-07-11 Grace Sainsbury <graces@redhat.com>
7220
7221 * monitor.c (monitor_fetch_register): Make name a constant.
7222 (monitor_store_register): Same.
7223
7224 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7225
7226 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7227 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7228 (finish_block) For non-function blocks, hash the symbol table. For
7229 function blocks, mark the symbol table as unhashed.
7230 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7231 (msymbol_hash_iw): Likewise.
7232 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7233 value.
7234 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7235 (lookup_minimal_symbol): Likewise for both.
7236 * symtab.h (struct block): Add `hashtable' flag. Comment the
7237 hashtable.
7238 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7239 (ALL_BLOCK_SYMBOLS): Update.
7240 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7241 (struct symbol): Add `hash_next' pointer.
7242 * symtab.c (lookup_block_symbol): Search using the hash table when
7243 possible.
7244 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7245 (search_symbols, find_addr_symbol): Likewise.
7246
7247 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7248 (read_dst_symtab): Likewise.
7249 * jv-lang.c (get_java_class_symtab): Likewise.
7250 * mdebugread.c: Include "gdb_assert.h".
7251 (shrink_block): Assert that the block being modified is not hashed.
7252 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7253 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7254 symbols.
7255 (dump_symtab): Recognize hashed blocks.
7256 * printcmd.c (print_frame_args): Assert that function blocks do not
7257 have hashed symbol tables.
7258 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7259 (fill_in_ada_prototype, debug_print_block): Likewise.
7260 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7261
7262 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7263
7264 * stack.c (print_frame): Use result of frame_address_in_block()
7265 instead of fi->pc when evaluating symbols.
7266 (backtrace_command_1): Ditto.
7267
7268 2002-07-11 Andrew Cagney <cagney@redhat.com>
7269
7270 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7271 Make static.
7272
7273 * arm-tdep.c (arm_register_name): Make return type constant.
7274
7275 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7276
7277 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7278 prototype.
7279 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7280 * s390-tdep.c (s390_fp_regnum): Ditto.
7281 (s390_read_fp): Ditto.
7282 (s390_pop_frame): Ditto.
7283 (_initialize_s390_tdep): Ditto.
7284 * remote.c (get_remote_state): Ditto.
7285 * procfs.c (mappingflags): Ditto.
7286 * memattr.c (_initialize_mem): Ditto.
7287 * mcore-tdep.c (mcore_pop_frame): Ditto.
7288 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7289 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7290 * language.c (set_case_str): Ditto.
7291 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7292 * frv-tdep.c (new_variant): Ditto.
7293 (frv_stopped_data_address): Ditto.
7294 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7295 (context_alloc): Ditto.
7296 (frame_state_alloc): Ditto.
7297 (unwind_tmp_obstack_init): Ditto.
7298 (unwind_tmp_obstack_free): Ditto.
7299 (cfi_read_fp): Ditto.
7300 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7301 (cris_pop_frame): Ditto.
7302 * c-lang.c (scanning_macro_expansion): Ditto.
7303 (finished_macro_expansion): Ditto.
7304 (c_preprocess_and_parse): Ditto.
7305 * gdbarch.sh: Ditto.
7306 * gdbarch.h, gdbarch.c: Regenerate.
7307 * config/mn10200/tm-mn10200.h: Adjust indentation.
7308 * target.c: Adjust indentation.
7309 * symtab.h: Adjust indentation.
7310 * stabsread.h: Adjust indentation.
7311 * remote-es.c: Adjust indentation.
7312 * os9kread.c: Adjust indentation.
7313
7314 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7315
7316 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7317 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7318
7319 2002-07-10 Grace Sainsbury <graces@redhat.com>
7320
7321 * NEWS: Mention m68k, mcore multi-arching.
7322 * MAINTAINERS: Change status of m68k, mcore to reflect
7323 multi-arching.
7324
7325 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7326
7327 * valops.c (find_overload_match): Free oload_syms.
7328
7329 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7330
7331 Define HAVE_SYS_PROC_H if sys/proc.h exists
7332 * configure.in: Add check for sys/proc.h
7333 * config.in: Regenerate.
7334 * configure: Regenerate.
7335
7336 2002-07-09 Grace Sainsbury <graces@redhat.com>
7337
7338 * config/m68k/tm-m68k.h: Remove macros wrapped in
7339 #if !GDB_MULTI_ARCH.
7340
7341 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7342
7343 * config.in, configure: Regenerate.
7344
7345 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7346
7347 * dwarf2cfi.c: Include "gcore.h".
7348 (execute_stack_op): Fix implementation of the
7349 DW_OP_deref and DW_OP_deref_size operators by letting do their
7350 lookup in the target.
7351
7352 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7353
7354 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7355 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7356 tdep->sc_sp_offset.
7357
7358 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7359
7360 Fix PR gdb/595, gdb/602
7361 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7362 Don't call value_cast, just read the vtable pointer; update comments
7363 to match.
7364
7365 2002-07-05 Grace Sainsbury <graces@redhat.com>
7366
7367 * config/mcore/tm-mcore.h: Remove file.
7368 * config/mcore/mcore.mt: Remove definition of TM_FILE
7369 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7370
7371 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7372
7373 * i386bsd-tdep.c: Include "gdb_string.h".
7374
7375 2002-07-04 Grace Sainsbury <graces@redhat.com>
7376
7377 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7378 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7379 mcore-tdep.
7380 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7381 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7382 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7383 (RETVAL_REGNUM): Move macros from tm-mcore.h
7384 (mcore_reg_struct_has_addr): New function.
7385 (mcore_gdbarch_init): Added initializations for the macros removed
7386 from tm-mcore.h.
7387
7388 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7389
7390 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7391 traditonal string branding within the ELF header.
7392
7393 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7394
7395 * symtab.c (remove_params): New function.
7396 (make_symbol_overload_list): Use it instead of cplus_demangle.
7397 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7398
7399 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7400
7401 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7402
7403 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7404 New variables.
7405 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7406 and tdep->sigtramp_end.
7407 * i386obsd-nat.c: New file.
7408 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7409
7410 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7411 Don't call get_current_frame().
7412
7413 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7414
7415 * i386-nat.c (child_post_startup_inferior): New function
7416 calling i386_cleanup_dregs if
7417 I386_USE_GENERIC_WATCHPOINTS is defined.
7418 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7419 conditional to acknowledge that i386-nat.c has its
7420 own child_post_startup_inferior function.
7421
7422 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7423
7424 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7425 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7426 instead of MAX_REGISTER_RAW_SIZE.
7427 (i386_extract_return_value, i386_extract_struct_value_address):
7428 Convert to use regcache.
7429 (i386_gdbarch_init): Set max_register_raw_size and
7430 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7431 Set extract_return_value and extract_struct_value_address instead
7432 of their deprecated variants.
7433
7434 Convert i386 target to generic dummy frames.
7435 * i386-tdep.c: Include "symfile.h".
7436 (i386_frameless_signal_p): Consider a function to be frameless if
7437 the pc points at the first instruction of the function.
7438 (i386_frame_chain): Handle (generic) call dummies.
7439 (i386_frame_saved_pc): Likewise.
7440 (i386_frame_init_saved_regs): Remove code dealing with call
7441 dummies on the stack.
7442 (i386_push_dummy_frame): Removed.
7443 (i386_call_dummy_words): Removed.
7444 (i386_fix_call_dummy): Removed.
7445 (i386_push_return_address): New function.
7446 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7447 parameter, and don't call get_current_frame.
7448 (i386_pop_frame): New function.
7449 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7450 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7451 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7452 call_dummy_length to 0, set call_dummy_words to NULL, set
7453 sizeof_call_dummy_words to 0, set fix_call_dummy to
7454 generic_fix_call_dummy, set pc_in_call_dummy to
7455 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7456 generic_push_dummy_frame, set push_return_address to
7457 i386_push_return_address and set frame_chain_valid to
7458 generic_file_frame_chain_valid.
7459
7460 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7461
7462 * gdbarch.sh (struct regcache): Add opaque declaration.
7463 (EXTRACT_RETURN_VALUE): New architecture method.
7464 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7465 * gdbarch.h, gdbarch.c: Regenerate.
7466 * arch-utils.c (legacy_extract_return_value): New function.
7467 * arch-utils.h (legacy_extract_return_value): Declare.
7468 * values.c (value_being_returned): Re-enable code handling
7469 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7470 deprecated_grub_regcache_for_registers call to block handling
7471 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7472 (EXTRACT_RETURN_VALUE): Do not define.
7473
7474 2002-07-03 Grace Sainsbury <graces@redhat.com>
7475
7476 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7477 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7478 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7479 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7480 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7481 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7482 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7483 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7484 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7485 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7486 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7487 argument so the function fits the prototype in the architecture
7488 vector.
7489 (mcore_pop_frame): Remove argument so the function fits the
7490 prototype. Use get_current_frame instead of the argument.
7491 (mcore_push_arguments): Change type of struct_return so the
7492 function can be used in the architecture vector.
7493 (mcore_store_struct_return): Add.
7494 (mcore_frame_init_saved_regs): Add.
7495 (mcore_gdbarch_init): Add function calls to replace the macros
7496 removed from tm-mcore.h
7497
7498 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7499
7500 * infcmd.c (print_return_value): Remove compatibility code calling
7501 deprecated_grub_regcache_for_registers.
7502
7503 * values.c: Include "regcache.h".
7504 (value_being_returned): Update. Use
7505 deprecated_grub_regcache_for_registers to extract the register
7506 buffer address.
7507 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7508 ``struct regcache''.
7509 * Makefile.in (values.o): Add dependency on $(regcache_h).
7510
7511 * inferior.h (run_stack_dummy): Change type of second parameter to
7512 a ``struct regcache''.
7513 * valops.c (hand_function_call): Change type of retbuf to ``struct
7514 regcache''. Allocate using regcache_xmalloc, clean using
7515 make_cleanup_regcache_xfree.
7516 * infcmd.c (run_stack_dummy): Update. Use
7517 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7518
7519 * regcache.c (do_regcache_xfree): New function.
7520 (make_cleanup_regcache_xfree): New function.
7521 * regcache.h (make_cleanup_regcache_xfree): Declare.
7522
7523 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7524
7525 * event-top.c (command_line_handler): Don't read past
7526 beginning of buffer.
7527
7528 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7529
7530 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7531 struct frame_id.
7532 (varobj_create): Store frame_id for root.
7533 (varobj_gen_name): Use xasprintf.
7534 (varobj_update): Save and restore frame using get_frame_id() and
7535 frame_find_by_id().
7536 (create_child): Use xasprintf.
7537 (new_root_variable): Initialize frame_id.
7538 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7539 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7540 to prevent memory leak.
7541
7542 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7543
7544 * valops.c (hand_function_call): Move declaration of retbuf to
7545 start of function, allocate using malloc, add a cleanup but before
7546 the inf_status cleanup, cleanup the buffer. Rename local variable
7547 old_chain to inf_status_cleanup.
7548
7549 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7550
7551 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7552
7553 * cli/cli-decode.c (cmd_func_p): New function.
7554 (cmd_func): New function.
7555
7556 * command.h: Add cmd_func() and cmd_func_p().
7557
7558 2002-07-03 Grace Sainsbury <graces@redhat.com>
7559
7560 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7561 (REGISTER_SIZE): Remove.
7562 (MAX_REGISTER_RAW_SIZE): Remove.
7563 (REGISTER_VIRTUAL_TYPE): Remove.
7564 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7565 (REGISTER_NAME): Remove.
7566 (USE_GENERIC_DUMMY_FRAMES): Remove.
7567 (CALL_DUMMY): Remove.
7568 (CALL_DUMMY_START_OFFSET): Remove.
7569 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7570 (CALL_DUMMY_LOCATION): Remove.
7571 (FIX_CALL_DUMMY): Remove.
7572 (CALL_DUMMY_ADDRESS): Remove.
7573 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7574 (SAVE_DUMMY_FRAME_TOS): Remove.
7575 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7576 (mcore_register_virtual_type): New function.
7577 (mcore_register_byte): New function.
7578 (mcore_register_size): New function.
7579 (mcore_register_name): New function.
7580 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7581 macros removed from tm-mcore.h.
7582 (mcore_dump_tdep): Add.
7583 (_initialize_mcore_tdep): Add gdbarch_register call.
7584
7585 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7586
7587 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7588 frameless_look_for_prologue, such that we actually call this
7589 function.
7590
7591 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7592
7593 * frame.h (frame_address_in_block): New function.
7594
7595 * blockframe.c (frame_address_in_block): New function extracted
7596 from get_frame_block().
7597 (get_frame_block): Use frame_address_in_block().
7598 (block_innermost_frame): Use frame_address_in_block() to match
7599 the frame pc address against the block boundaries rather than
7600 the frame pc directly. This prevents a failure when a frame pc
7601 is actually a return-address pointing immediately after the end
7602 of the given block.
7603
7604 2002-07-02 Grace Sainsbury <graces@redhat.com>
7605
7606 * MAINTAINERS: Add self under write after approval.
7607
7608 2002-07-02 Grace Sainsbury <graces@redhat.com>
7609
7610 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7611 used in architecture vector. The default is
7612 m68k_local_breakpoint_from_pc.
7613 (m68k_local_breakpoint_from_pc): Add.
7614 (enum): Add register numbers from tm-m68k.h.
7615 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7616 vector.
7617 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7618 GDB_MULTI_ARCH_PARTIAL.
7619 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7620 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7621 m68k-tdep.c.
7622 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7623 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7624 to enum in m68k-tdep.c
7625
7626 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7627
7628 * solib-osf.c (open_map): Compute the list of shared libraries
7629 loaded by the inferior, rather than the list of libraries loaded
7630 by GDB itself. Otherwise, GDB ends up reading the symbols from
7631 the wrong shared libraries...
7632
7633 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7634
7635 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7636 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7637 macros.
7638 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7639 Remove functions.
7640 (FRAMELESS_SIGNAL): Remove function.
7641 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7642 i386_linux_saved_pc_after_call): Removed.
7643 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7644 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7645 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7646
7647 * i386-tdep.c (i386_frameless_signal_p): New function.
7648 (i386_frame_chain): Deal with frameless signals.
7649 (i386_sigtramp_saved_sp): New function.
7650 (i386_frame_saved_pc): Deal with frameless signals.
7651 (i386_saved_pc_after_call): Make sure the correct value is
7652 returned just after entry into a sigtramp.
7653 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7654 i386fbsd4_sc_sp_offset): New variables.
7655 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7656 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7657 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7658 similiar to what we already did for sc_pc_offset.
7659 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7660 tdep->sc_sp_offset.
7661
7662 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7663
7664 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7665
7666 * config/i386/tm-x86-64linux.h: New.
7667 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7668 definitions.
7669 * config/i386/nm-x86-64.h: Rename to ...
7670 * config/i386/nm-x86-64linux.h: ... this one.
7671 * config/i386/x86-64linux.mh: Reflect the above change.
7672
7673 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7674
7675 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7676 with sigcontext_addr. Add sc_sp_offset.
7677 (i386bsd_sigtramp_saved_pc): Remove prototype.
7678 (i386bsd_sicontext_addr): Add prototype.
7679 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7680 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7681 (i386_svr4_sigtramp_saved_pc): Removed.
7682 (i386_svr4_sigcontext_addr): New function.
7683 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7684 Initialize tdep->sigcontext_addr instead. Initialize
7685 tdep->sc_pc_offset and tdep->sc_sp_offset.
7686 (i386_gdbarch_init): Likewise.
7687 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7688 any more.
7689 (i386bsd_sigtramp_saved_pc): Remove function.
7690 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7691 Initialize tdep->sigcontext_addr instead. Initialize
7692 tdep->sc_pc_offset.
7693 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7694 of tdep->sigtramp_saved_pc.
7695 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7696 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7697 instead.
7698
7699 * i386-tdep.c (i386_frameless_function_invocation,
7700 i386_frame_num_args, i386_frame_init_saved_regs,
7701 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7702 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7703 i386_extract_return_value, i386_store_return_value,
7704 i386_extract_struct_value_address, i386_register_virtual_type,
7705 i386_register_convertible, i386_register_convert_to_virtual,
7706 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7707 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7708 static.
7709
7710 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7711
7712 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7713
7714 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7715 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7716 this macro. Include "value.h".
7717
7718 2002-06-30 Aidan Skinner <aidan@velvet.net>
7719
7720 * ada-exp.tab.c: remove as it's a generated file
7721 * ada-lex.c: remove as it's a generated file
7722
7723 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7724
7725 * config/i386/tm-i386.h (struct frame_info, struct
7726 frame_saved_regs, struct value, struct type): Remove forward
7727 declarations.
7728
7729 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7730 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7731 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7732 (FILL_FPXREGSET): Define.
7733
7734 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7735
7736 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7737 i[3456]86-*-netbsd* case.
7738 * config/i386/tm-obsd.h: Removed.
7739 * config/i386/obsd.mt: Removed.
7740 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7741 core-aout.o.
7742 (MH_CFLAGS): Add -DYYDEBUG=0.
7743
7744 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7745 i386nbsd_sc_pc_offset on OpenBSD too.
7746
7747 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7748 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7749 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7750 define.
7751 * i386bsd-tdep.c: Include "arch-utils.h".
7752 (i386bsd_aout_in_solib_call_trampoline): New function.
7753 (i386bsd_init_abi): Set in_solib_call_trampoline to
7754 i386bsd_aout_in_solib_call_trampoline.
7755 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7756 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7757
7758 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7759
7760 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7761 (struct obstack, struct bcache): Add opaque declarations.
7762 * Makefile.in (macrotab_h): Update
7763
7764 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7765
7766 * blockframe.c (generic_find_dummy_frame): Change return type to
7767 ``struct regcache''.
7768 (struct dummy_frame): Replace field ``registers'' with regcache, a
7769 struct regcache object.
7770 (generic_find_dummy_frame): Update.
7771 (generic_push_dummy_frame): Update. Use regcache_xfree,
7772 regcache_xmalloc and regcache_cpy.
7773 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7774 regcache_xfree.
7775 (deprecated_generic_find_dummy_frame): Update.
7776 (generic_read_register_dummy): Update. Use
7777 regcache_read_as_address.
7778 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7779 (generic_get_saved_register): Update. Use regcache_read.
7780
7781 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7782
7783 * Makefile.in (objfiles_h): Add $(bcache_h).
7784 * objfiles.h: Include "bcache.h".
7785
7786 * Makefile.in (symtab_h): Remove $(bcache_h).
7787 * symtab.h: Do not include "bcache.h".
7788
7789 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7790
7791 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7792 generic_func_frame_chain_valid.
7793
7794 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7795
7796 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7797 * config/i386/tm-fbsd.h: Likewise.
7798
7799 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7800
7801 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7802 generic_unwind_get_saved_register.
7803
7804 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7805
7806 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7807 * regcache.c (supply_register): Add missing argument to
7808 register_buffer call.
7809
7810 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7811
7812 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7813 Solaris /bin/grep does not not like it. From Peter Schauer.
7814
7815 2002-06-26 Tom Tromey <tromey@redhat.com>
7816
7817 * command.h (add_setshow_cmd): Declare.
7818 (add_setshow_cmd_full): Declare.
7819 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7820 returns void. Use add_setshow_cmd_full.
7821 (add_setshow_cmd_full): New function.
7822 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7823 (add_setshow_boolean_cmd): Likewise.
7824
7825 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7826
7827 * config/vax/tm-vax.h: Protect from multiple inclusion.
7828 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7829 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7830 * config/vax/tm-vaxbsd.h: ...here. New file.
7831 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7832
7833 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7834
7835 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7836 (BELIEVE_PCC_PROMOTION): Remove.
7837 (AP_REGNUM): Move to...
7838 * config/vax/nm-vax.h: ...here.
7839 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7840 (vax_breakpoint_from_pc): New function.
7841 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7842 and gdbarch_believe_pcc_promotion.
7843
7844 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7845
7846 * Makefile.in (vax_tdep_h): Define.
7847 (vax-tdep.o): Use $(vax_tdep_h).
7848 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7849 (vax_dump_tdep): New function.
7850 (_initialize_vax_tdep): Register vax_dump_tdep.
7851 * vax-tdep.h: Include osabi.h.
7852 (struct gdbarch_tdep): New.
7853
7854 2002-06-26 Andrew Cagney <cagney@redhat.com>
7855
7856 * frame.h (deprecated_generic_find_dummy_frame): Rename
7857 generic_find_dummy_frame.
7858 * blockframe.c (generic_find_dummy_frame): Make static.
7859 (deprecated_generic_find_dummy_frame): New function.
7860 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7861 generic_find_dummy_frame with deprecated_find_dummy_frame.
7862 (sh64_nofp_frame_init_saved_regs): Ditto.
7863 (sh_fp_frame_init_saved_regs): Ditto.
7864 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7865 (s390_frame_chain): Ditto.
7866 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7867
7868 2002-06-26 Grace Sainsbury <graces@redhat.com>
7869
7870 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7871 gdbarch vector are at the top.
7872 (NUM_REGS): Remove.
7873 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7874 (FRAME_ARGS_ADDRESS): Remove.
7875 (FRAME_LOCALS_ADDRESS): Remove.
7876 (FRAME_NUM_ARGS): Remove.
7877 (FRAME_ARGS_SKIP): Remove.
7878 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7879 (m68k_gdbarch_init): Add gdbarch initializations for macros
7880 undefined in tm-m68k.h
7881
7882 2002-06-26 Grace Sainsbury <graces@redhat.com>
7883
7884 * monitor.h: Add the function regname to monitor_ops
7885 structure. This way NUM_REGS does not have to be a constant.
7886 * monitor.c (monitor_fetch_register): Added support for regname
7887 function. The function is called if the array regnames is NULL.
7888 (monitor_store_register): Same.
7889 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7890 regnames array.
7891 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7892 cpu32bug_cmds.regname to point to new function.
7893 * abug-rom.c (abug_regname): Same as above.
7894 (init_abug_cmds): Same.
7895 * dbug-rom.c (dbug_regname): Same as above.
7896 (init_dbug_cmds): Same.
7897 * remote-est.c (est_regname): Same.
7898 (init_est_cmds): Same.
7899 * rom68k-rom.c (rom68k_regname): Same.
7900 (init_rom68k_cmds): Same.
7901
7902 2002-06-25 Tom Tromey <tromey@redhat.com>
7903
7904 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7905
7906 2002-06-25 Andrew Cagney <cagney@redhat.com>
7907
7908 * infrun.c (stop_registers): Change variable's type to ``struct
7909 regcache'''.
7910 (xmalloc_inferior_status): Delete function.
7911 (free_inferior_status): Delete function.
7912 (normal_stop): Use regcache_cpy.
7913 (struct inferior_status): Change type of fields ``stop_registers''
7914 and ``registers'' to ``struct regcache''.
7915 (write_inferior_status_register): Use regcache_write.
7916 (save_inferior_status): Instead of calling
7917 xmalloc_inferior_status, allocate the inf_status buffer directly.
7918 Use regcache_dup_no_passthrough and regcache_dup to save the
7919 buffers.
7920 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7921 Replace the stop_registers regcache instead of overriding it. Use
7922 regcache_xfree. Instead of calling free_inferior_status, xfree
7923 the buffer directly.
7924 (discard_inferior_status): Use regcache_xfree. Instead of calling
7925 free_inferior_status, xfree the buffer directly.
7926 (build_infrun): Use regcache_xmalloc.
7927 (_initialize_infrun): Delete redundant call to build_infrun.
7928
7929 * Makefile.in (infcmd.o): Add $(regcache_h).
7930
7931 * infcmd.c: Include "regcache.h".
7932 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7933 obtain the address of `stop_registers' register buffer.
7934 (print_return_value): Ditto.
7935
7936 * inferior.h (struct regcache): Add opaque declaration.
7937 (stop_registers): Change variable's declared type to ``struct
7938 regcache''.
7939
7940 2002-06-24 Tom Tromey <tromey@redhat.com>
7941
7942 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7943 * target.c (initialize_targets): Fixed typo in
7944 trust-readonly-sections `show' documentation.
7945
7946 * main.c: Marked all strings with _().
7947
7948 2002-06-24 Don Howard <dhoward@redhat.com>
7949
7950 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7951 that means max CORE_ADDR+1.
7952 (lookup_mem_region): Ditto.
7953 (mem_info_command): Ditto.
7954
7955 2002-06-24 Grace Sainsbury <graces@redhat.com>
7956
7957 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7958 (REGISTER_BYTES_OK): Remove.
7959 (REGISTER_BYTES): Remove.
7960 (STORE_STRUCT_RETURN): Remove.
7961 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7962 (STORE_RETURN_VALUE): Remove.
7963 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7964 (FRAME_CHAIN): Remove.
7965 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7966 (FRAME_SAVED_PC): Remove.
7967 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7968 (m68k_store_struct_return): Add.
7969 (m68k_deprecated_extract_return_value): Add.
7970 (m68k_deprecated_extract_struct_value_address): Add.
7971 (m68k_store_return_value): Add.
7972 (m68k_frame_chain): Add.
7973 (m68k_frameless_function_invocation): Add.
7974 (m68k_frame_saved_pc): Add.
7975 (m68k_gdbarch_init): added set_gdbarch calls for new
7976 functions and deleted macros.
7977
7978 2002-06-23 Tom Tromey <tromey@redhat.com>
7979
7980 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7981 (ALLDEPFILES): Likewise.
7982 (udiheaders): Removed.
7983 (udip2soc.o): Likewise.
7984 (udi2go32.o): Likewise.
7985 (udr.o): Likewise.
7986 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7987
7988 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7989
7990 * infrun.c (_initialize_infrun): Delete unnecessary call to
7991 build_infrun.
7992
7993 * regcache.h: Update comments describing the regcache_cpy family
7994 of functions.
7995 (regcache_save, regcache_restore): Delete declaration.
7996 (regcache_save_no_passthrough): Delete declaration.
7997 (regcache_restore_no_passthrough): Delete declaration.
7998 * regcache.c (regcache_save): Delete function.
7999 (regcache_save_no_passthrough): Delete function.
8000 (regcache_restore): Delete function.
8001 (regcache_restore_no_passthrough): Delete function.
8002
8003 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8004
8005 * config/m68k/tm-m68k.h: Fix typo.
8006 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8007 (m68k_frame_init_saved_regs): Declare.
8008
8009 2002-06-21 Jim Blandy <jimb@redhat.com>
8010
8011 Remove some vestiges of Harris 88k support.
8012 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8013 register numbering quirk.
8014 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8015 odd symbols occurring in Harris 88k ELF targets.
8016
8017 2002-06-21 Tom Tromey <tromey@redhat.com>
8018
8019 * gdb_locale.h: New file.
8020 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8021 (defs_h): Added gdb_locale.h.
8022 * configure, config.in: Rebuilt.
8023 * configure.in (PACKAGE): Define.
8024 * defs.h: Include gdb_locale.h.
8025 * main.c (captured_main): Call setlocale, bindtextdomain,
8026 textdomain.
8027
8028 2002-06-21 Dave Brolley <brolley@redhat.com>
8029
8030 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8031 * config/frv/frv.mt: New file.
8032 * config/frv/tm-frv.h: New file.
8033 * configure.tgt: Support frv-*-*.
8034 * Makefile.in (frv-tdep.o): New target.
8035 * frv-tdep.c: New file.
8036 * NEWS: Mention frv.
8037
8038 2002-06-21 Dave Brolley <brolley@redhat.com>
8039
8040 * MAINTAINERS: Add self to "Write After Approval" list.
8041
8042 2002-06-21 Grace Sainsbury <graces@redhat.com>
8043
8044 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8045 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8046 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8047 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8048 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8049
8050 * m68k-tdep.c: Include arch-utils.h
8051 (m68k_register_raw_size): Add.
8052 (m68k_register_virtual_size): Add.
8053 (m68k_register_virtual_type): Add.
8054 (m68k_register_name): Add.
8055 (m68k_stack_align): Add.
8056 (m68k_register_byte): Add.
8057 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8058 tm-m68k.h.
8059
8060 2002-06-21 Grace Sainsbury <graces@redhat.com>
8061
8062 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8063 m68k_find_saved_regs.
8064 (m68k_pop_frame): Removed saved_regs structure, and replaced
8065 references to it with frame->saved_regs.
8066 (m68k_gdbarch_init): Added function calls to initialize the
8067 gdbarch structure.
8068 (m68k_fix_call_dummy): Add.
8069 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8070 (CALL_DUMMY): Remove.
8071 (CALL_DUMMY_LENGTH): Remove.
8072 (CALL_DUMMY_START_OFFSET): Remove.
8073 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8074 (FIX_CALL_DUMMY): Remove.
8075 (PUSH_DUMMY_FRAME): Remove.
8076 (POP_FRAME): Remove.
8077
8078 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8079
8080 * parse.c (parse_fprintf): New function used to avoid calls to
8081 fprintf in bison parser generated debug code.
8082 * parser-defs.h: Declaration of new parse_fprintf function.
8083 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8084 Set YYDEBUG to 1 by default.
8085 Set YYFPRINTF as parse_fprintf.
8086
8087 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8088
8089 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8090 encoding anymore.
8091 (pointer_encoding, enum ptr_encoding): New.
8092 (execute_cfa_program): Take care about pointer encoding.
8093 (dwarf2_build_frame_info): Only call parse_frame_info for
8094 .debug_frame and .eh_frame.
8095 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8096 fixed augmentation handling, added relative addressing,
8097 ignore duplicate FDEs. Added comments.
8098 * dwarf2cfi.c: Reindented.
8099
8100 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8101
8102 * event-top.c (command_handler): Don't use space_at_cmd_start
8103 unless there is sbrk() on the host. Assign time and space data
8104 to union fields of the appropriate length.
8105
8106 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8107
8108 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8109 x86_64_register_name. Return type changed to 'const char *'.
8110 (x86_64_register_name2nr): Rename to x86_64_register_number.
8111 (x86_64_gdbarch_init): Update to reflect the change.
8112 * x86-64-tdep.h: Ditto.
8113 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8114 (supply_fpregset): Ditto.
8115
8116 2002-06-19 Andrew Cagney <cagney@redhat.com>
8117
8118 * regcache.h: Update copyright.
8119 (struct regcache, struct gdbarch): Add opaque declarations.
8120 (current_regcache): Declare global variable.
8121 (regcache_read, regcache_write): Add gdbarch parameter.
8122 (regcache_save, regcache_save_no_passthrough)
8123 (regcache_restore, regcache_restore_no_passthrough)
8124 (regcache_dup, regcache_dup_no_passthrough)
8125 (regcache_cpy, regcache_cpy_no_passthrough)
8126 (deprecated_grub_regcache_for_registers)
8127 (deprecated_grub_regcache_for_register_valid)
8128 (regcache_valid_p): Add function declarations.
8129
8130 * regcache.c: Update copyright.
8131 (regcache_descr_handle): New global variable.
8132 (struct regcache_descr): Define.
8133 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8134 (regcache_descr, xfree_regcache_descr): New functions.
8135 (struct regcache): Define.
8136 (regcache_xmalloc, regcache_xfree): New functions.
8137 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8138 (regcache_dup, regcache_dup_no_passthrough): New functions.
8139 (regcache_valid_p, regcache_read_as_address): New functions.
8140 (deprecated_grub_regcache_for_registers): New function.
8141 (deprecated_grub_regcache_for_register_valid): New function.
8142 (current_regcache): New global variable.
8143 (register_buffer): Add regcache parameter. Update calls.
8144 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8145 (read_register_gen, write_register_gen): Update register_buffer
8146 call. Test for legacy_p instead of gdbarch_register_read_p or
8147 gdbarch_register_write_p.
8148 (regcache_collect): Update register_buffer call.
8149 (build_regcache): Rewrite. Use deprecated grub functions.
8150 (regcache_save, regcache_save_no_passthrough): New functions.
8151 (regcache_restore, regcache_restore_no_passthrough): New
8152 functions.
8153 (_initialize_regcache): Create the regcache_data_handle. Swap
8154 current_regcache global variable.
8155
8156 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8157 parameter to regcache_read and regcache_write calls.
8158 (sh4_register_read): Ditto.
8159 (sh64_pseudo_register_read): Ditto.
8160 (sh64_register_read): Ditto.
8161 (sh_pseudo_register_write): Ditto.
8162 (sh4_register_write): Ditto.
8163 (sh64_pseudo_register_write): Ditto.
8164 (sh64_register_write): Ditto.
8165
8166 * defs.h (XCALLOC): Define.
8167
8168 2002-06-19 Grace Sainsbury <graces@redhat.com>
8169
8170 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8171 * m68k-tdep.c (m68k_gdbarch_init): Added.
8172 (m68k_dump_tdep): Added.
8173
8174 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8175
8176 * ada-lang.c (fill_in_ada_prototype): Update comment.
8177
8178 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8179
8180 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8181 MIPS_ABI_LAST.
8182 (mips_abi_string, mips_abi_strings): New.
8183 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8184 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8185 tdep->mips_abi_string. Honor mips_abi_string. Default to
8186 O32 if no ABI is found.
8187 (mips_dump_tdep): Use mips_abi_strings.
8188 (mips_abi_update): New function.
8189 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8190 ``set mips abi'' and ``show mips abi''. Check the size of
8191 mips_abi_strings.
8192
8193 2002-06-19 Andrew Cagney <cagney@redhat.com>
8194
8195 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8196 constant.
8197
8198 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8199
8200 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8201 current frame using only the first stack size adjustment. All
8202 subsequent size adjustments are not considered to be part of
8203 the "static" part of the current frame.
8204 Compute the address of the saved registers relative to the
8205 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8206 in use in this frame.
8207
8208 2002-06-18 Don Howard <dhoward@redhat.com>
8209
8210 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8211 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8212 suggesting this solution.
8213
8214 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8215
8216 * config/romp/xm-rtbsd.h: Delete file.
8217 * config/romp/rtbsd.mh: Delete file.
8218
8219 2002-06-18 Keith Seitz <keiths@redhat.com>
8220
8221 * breakpoint.c (condition_command): Post breakpoint_modify
8222 when a condition is added to an existing breakpoint.
8223 (commands_command): Likewise for commands.
8224 (set_ignore_count): Likewise for ignore counts.
8225 If no tty, do not simply return, still need to send event
8226 notification.
8227 (ignore_command): Only print a newline if the command came
8228 from a tty.
8229 Don't call breakpoints_changed, since this is now properly
8230 handled by set_ignore_count.
8231
8232 2002-06-18 Andrew Cagney <cagney@redhat.com>
8233
8234 * MAINTAINERS: Note that cris-elf target can be compiled with
8235 -Werror.
8236 * cris-tdep.c (cris_register_name): Make return type constant.
8237 (cris_breakpoint_from_pc): Ditto.
8238
8239 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8240
8241 * frame.h (struct frame_info): Change type of context to
8242 'struct context'.
8243
8244 2002-06-17 Andrew Cagney <cagney@redhat.com>
8245
8246 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8247 pointer.
8248 * gdbarch.h, gdbarch.c: Regenerate.
8249 * config/mips/tm-mips.h (mips_register_name): Update.
8250 * i386-tdep.h (i386_register_name): Update.
8251 * mips-tdep.c (mips_register_name): Update
8252 * alpha-tdep.c (alpha_register_name): Update.
8253 * arch-utils.c (legacy_register_name): Update.
8254 * arch-utils.h (legacy_register_name): Update.
8255 * avr-tdep.c (avr_register_name): Update.
8256 * ia64-tdep.c (ia64_register_name): Update.
8257 * i386-tdep.c (i386_register_name): Update.
8258 * sparc-tdep.c (sparc32_register_name): Update.
8259 (sparc64_register_name): Update.
8260 (sparclite_register_name): Update.
8261 (sparclet_register_name): Update.
8262 * sh-tdep.c (sh_generic_register_name): Update.
8263 (sh_sh_register_name): Update.
8264 (sh_sh3_register_name): Update.
8265 (sh_sh3e_register_name): Update.
8266 (sh_sh_dsp_register_name): Update.
8267 (sh_sh3_dsp_register_name): Update.
8268 (sh_sh4_register_name): Update.
8269 (sh_sh64_register_name): Update.
8270 * s390-tdep.c (s390_register_name): Update.
8271 * rs6000-tdep.c (rs6000_register_name): Update.
8272 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8273 (ns32k_register_name_32382): Update.
8274 * d10v-tdep.c (d10v_ts2_register_name): Update.
8275 (d10v_ts3_register_name): Update.
8276 * xstormy16-tdep.c (xstormy16_register_name): Update.
8277 * vax-tdep.c (vax_register_name): Update.
8278 * v850-tdep.c (v850_register_name): Update.
8279 * m68hc11-tdep.c (m68hc11_register_name): Update.
8280 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8281 (am33_register_name): Update.
8282
8283 2002-06-17 Grace Sainsbury <graces@redhat.com>
8284
8285 * m68k-tdep.c: Reindented.
8286
8287 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8288
8289 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8290 list of predefined types.
8291
8292 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8293
8294 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8295 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8296 REGISTER_CONVERT_TO_RAW): Remove defines.
8297 (i386_register_virtual_type, i386_register_convertible,
8298 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8299 Remove prototypes.
8300 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8301 macros mentioned above.
8302
8303 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8304 (i386lynx_saved_pc_after_call): Remove prototype.
8305 * i386ly-tdep.c: Include "i386-tdep.h".
8306 (i386lynx_saved_pc_after_call): Make static. Use
8307 read_memory_nobpt instead of read_memory. Use
8308 read_memory_unsigned_integer instead of read_memory_integer.
8309 (i386lynx_init_abi): New function.
8310 (i386lynx_coff_osabi_sniffer): New function.
8311 (_initialize_i386bsd_tdep): New function.
8312
8313 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8314 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8315 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8316 (i386_fix_call_dummy): Remove prototype.
8317 * i386-tdep.c (i386_call_dummy_words): New variable.
8318 (i386_gdbarch_init): Adjust for removal of the
8319 macros mentioned above.
8320
8321 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8322
8323 * command.h (add_setshow_auto_boolean_cmd): Replace
8324 add_set_auto_boolean_cmd.
8325 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8326 add_set_auto_boolean_cmd.
8327 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8328 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8329 mask-address'' command.
8330 (show_mask_address): Add cmd parameter.
8331 * remote.c (add_packet_config_cmd): Update. Change type of
8332 set_func and show_func to cmd_sfunc_ftype.
8333 (_initialize_remote): Update `set remote Z-packet'
8334 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8335 (show_remote_protocol_e_packet_cmd): Ditto.
8336 (show_remote_protocol_E_packet_cmd): Ditto.
8337 (show_remote_protocol_P_packet_cmd): Ditto.
8338 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8339 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8340 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8341 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8342 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8343 (show_remote_protocol_Z_packet_cmd): Ditto.
8344 (show_remote_protocol_binary_download_cmd): Ditto.
8345 (show_remote_cmd): Pass NULL to all of above.
8346
8347 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8348
8349 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8350 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8351 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8352 POP_FRAME): Remove defines.
8353 (i386_push_arguments, i386_store_struct_return,
8354 i386_extract_return_value, i386_store_return_value,
8355 i386_extract_struct_value_address, i386_push_dummy_frame,
8356 i386_pop_frame): Renove prototypes.
8357 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8358 macros mentioned above.
8359
8360 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8361
8362 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8363 add_set_boolean_cmd.
8364 (add_setshow_cmd): New function.
8365 * command.h (add_setshow_boolean_cmd): Replace
8366 add_set_boolean_cmd.
8367 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8368 and ``set rdiromatzero''.
8369 * maint.c (_initialize_maint_cmds): Update commented out code.
8370 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8371 * target.c (initialize_targets): Update `set
8372 trust-readonly-sections'.
8373 * remote.c (_initialize_remote): Update `set remotebreak'.
8374
8375 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8376
8377 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8378 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8379 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8380 fit into multi-arch framework.
8381 (i386_breakpoint_from_pc): New function.
8382 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8383 above.
8384
8385 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8386 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8387 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8388 (i386_frameless_function_invocation, i386_frame_num_args,
8389 i386_frame_init_saved_regs): Remove prototypes.
8390 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8391 macros mentioned above.
8392
8393 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8394
8395 * cli/cli-decode.c (set_cmd_cfunc): Update.
8396 (set_cmd_sfunc): Update.
8397 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8398 (set_cmd_sfunc, set_cmd_cfunc): Update.
8399 * cli/cli-decode.h: Update.
8400
8401 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8402
8403 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8404 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8405
8406 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8407
8408 * defs.h (auto_boolean): Declare enum.
8409 * command.h (cmd_auto_boolean): Delete enum.
8410 * mips-tdep.c (mask_address_var): Update.
8411 (mips_mask_address_p): Update.
8412 (show_mask_address): Update.
8413 * remote.c (struct packet_config): Update.
8414 (update_packet_config): Update.
8415 (show_packet_config_cmd): Update.
8416 (packet_ok): Update.
8417 (add_packet_config_cmd): Update.
8418 (_initialize_remote):
8419 * command.h: Update.
8420 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8421 (do_setshow_command): Update.
8422 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8423 * cli/cli-decode.h: Update.
8424
8425 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8426
8427 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8428 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8429 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8430 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8431 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8432 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8433
8434 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8435 list of DJGPP COFF targets.
8436
8437 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8438 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8439 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8440 (FP0_REGNUM): Remove define.
8441 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8442 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8443 (i386_register_virtual_size): Remove protoype.
8444 * i386-tdep.c (i386_register_virtual_size): Removed.
8445 (i386_extract_return_value, i386_store_return_value): Use
8446 FP0_REGNUM instead of NUM_FREGS to determine whether the
8447 floating-point registers are available.
8448 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8449 Adjust for removal of macros mentioned above.
8450
8451 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8452
8453 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8454 comments.
8455 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8456 Remove prototypes.
8457 (supply_gregset, fill_gregset): Remove use of register keyword and
8458 remove declaration for regmap. Use I386_NUM_GREGS instead of
8459 NUM_REGS and NUM_FREGS.
8460 (FPREGSET_FSAVE_OFFSET): Remove.
8461 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8462 NUM_FREGS to determine whether the floating-point registers are
8463 available.
8464
8465 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8466 gnu_store_registers): Replace usage of NUM_GREGS with
8467 I386_NUM_GREGS.
8468
8469 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8470 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8471 usage of NUM_GREGS with I386_NUM_GREGS.
8472
8473 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8474
8475 * i386bsd-nat.c: Include "i386-tdep.h".
8476 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8477 I386_NUM_GREGS.
8478
8479 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8480 and associated comment. They no longer make any sense, since we
8481 don't use this file anymore on Linux.
8482
8483 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8484 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8485 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8486 elements in these arrays.
8487 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8488 MAX_NUM_REGS.
8489
8490 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8491
8492 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8493 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8494
8495 2002-06-14 Andrew Cagney <cagney@redhat.com>
8496
8497 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8498 EXTRACT_RETURN_VALUE.
8499 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8500 EXTRACT_STRUCT_VALUE_ADDRESS.
8501 * gdbarch.h, gdbarch.c: Regenerate.
8502
8503 * values.c (value_being_returned): Handle
8504 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8505 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8506
8507 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8508 * arm-tdep.c (arm_gdbarch_init): Update.
8509 * avr-tdep.c (avr_gdbarch_init): Update.
8510 * cris-tdep.c (cris_gdbarch_init): Update.
8511 * d10v-tdep.c (d10v_gdbarch_init): Update.
8512 * ia64-tdep.c (ia64_gdbarch_init): Update.
8513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8514 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8515 * s390-tdep.c (s390_gdbarch_init): Update.
8516 * sh-tdep.c (sh_gdbarch_init): Update.
8517 * s390-tdep.c (s390_gdbarch_init): Update.
8518 * sparc-tdep.c (sparc_gdbarch_init): Update.
8519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8520 * v850-tdep.c (v850_gdbarch_init): Update.
8521 * vax-tdep.c (vax_gdbarch_init): Update.
8522 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8524
8525 * config/arc/tm-arc.h: Update.
8526 * config/d30v/tm-d30v.h: Update.
8527 * config/fr30/tm-fr30.h: Update.
8528 * config/h8300/tm-h8300.h: Update.
8529 * config/h8500/tm-h8500.h: Update.
8530 * config/i386/tm-i386.h: Update.
8531 * config/i386/tm-ptx.h: Update.
8532 * config/i386/tm-symmetry.h: Update.
8533 * config/i960/tm-i960.h: Update.
8534 * config/m32r/tm-m32r.h: Update.
8535 * config/m68k/tm-delta68.h: Update.
8536 * config/m68k/tm-linux.h: Update.
8537 * config/m68k/tm-m68k.h: Update.
8538 * config/m88k/tm-m88k.h: Update.
8539 * config/mcore/tm-mcore.h: Update.
8540 * config/mips/tm-mips.h: Update.
8541 * config/mn10200/tm-mn10200.h: Update.
8542 * config/pa/tm-hppa.h: Update.
8543 * config/pa/tm-hppa64.h: Update.
8544 * config/sparc/tm-sp64.h: Update.
8545 * config/sparc/tm-sparc.h: Update.
8546 * config/sparc/tm-sparclet.h: Update.
8547 * config/z8k/tm-z8k.h: Update.
8548
8549 2002-06-14 Andrew Cagney <cagney@redhat.com>
8550
8551 * Makefile.in (i386_linux_tdep_h): Define.
8552 (i386_tdep_h, i387_tdep_h): Define.
8553 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8554 $(i386_tdep_h) and $(i387_tdep_h).
8555 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8556
8557 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8558
8559 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8560 Already covered by the default.
8561
8562 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8563 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8564 (i386_gdbarch_init): Initialize long_double_format and long_double
8565 bit.
8566
8567 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8568 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8569 Move these to ...
8570 * config/i386/i386sol2.mh: ... here.
8571 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8572 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8573 (SIGCONTEXT_PC_OFFSET): Remove define.
8574 (IN_SIGTRAMP): Remove define.
8575 * i386-sol2-tdep.c: New file.
8576
8577 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8578 * config/i386/tm-i386nw.h: Removed.
8579
8580 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8581 USE_STRUCT_CONVENTION): Remove defines.
8582 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8583 (get_longjmp_target): Remove prototype.
8584 (IN_SIGTRAMP): Remove define.
8585 (i386bsd_in_sigtramp): Remove prototype.
8586 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8587 function. Update comment accordingly
8588 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8589 (FRAME_SAVED_PC): Remove define.
8590 (i386bsd_frame_saved_pc): Remove prototype.
8591 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8592 GET_LONGJMP_TARGET): Remove defines.
8593 (get_longjmp_target): Remove prototype.
8594 (IN_SIGTRAMP): Remove define.
8595 (i386bsd_in_sigtramp): Remove prototype.
8596 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8597 function. Update comment accordingly
8598 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8599 (FRAME_SAVED_PC): Remove define.
8600 (i386bsd_frame_saved_pc): Remove prototype.
8601 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8602 Remove prototype.
8603 (USE_STRUCT_CONVENTION): Remove prototype.
8604 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8605 declaration.
8606 (_initialize_i386bsd_nat): Revise logic to determine some
8607 constants at compile time when compiling a native GDB. Warn if
8608 things don't match up with what we expect.
8609 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8610 Remove variables.
8611 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8612 to use date stored in `struct gdbarch_tdep'.
8613 (i386bsd_sigcontext_offset): Remove varaible.
8614 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8615 stored in `struct gdbarch_tdep'.
8616 (i386bsd_frame_saved_pc): Make static.
8617 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8618 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8619 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8620 i386fbsd4_sc_pc_offset): New variables.
8621 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8622 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8623 functions.
8624 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8625 functions.
8626 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8627 Modify the value of i386fbsd_sigtramp_start and
8628 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8629 i386fbsd_sigtramp_end.
8630 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8631 function.
8632
8633 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8634 define to i386-linux-tdep.h.
8635 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8636 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8637 defines.
8638 (i386_linux_register_name, i386_linux_register_byte,
8639 i386_linux_register_raw_size): Remove prototypes.
8640 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8641 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8642 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8643 TARGET_WRITE_PC): Remove defines.
8644 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8645 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8646 i386_linux_write_pc): Remove prototypes.
8647 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8648 (get_longjmp_target): Remove prototype.
8649 * i386-linux-tdep.h: New file.
8650 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8651 * i386-linux-tdep.c: Include "i386-tdep.h" and
8652 "i386-linux-tdep.h".
8653 (i386_linux_register_name, i386_linux_register_byte,
8654 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8655 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8656 Make static.
8657 (i386_linux_init_abi): New function.
8658 (_initialize_i386_linux_tdep): New function.
8659
8660 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8661 (i386_saved_pc_after_call): Remove prototype.
8662 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8663 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8664 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8665 (i386_register_name, i386_stab_reg_to_regnum,
8666 i386_dwarf_reg_to_regnum): Remove prototypes.
8667 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8668 SIZEOF_SSE_REGS): Remove defines.
8669 (REGISTER_BYTES): Remove define.
8670 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8671 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8672 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8673 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8674 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8675 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8676 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8677 (get_longjmp_target): Remove prototype.
8678 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8679 (sigtramp_saved_pc): Remove define.
8680 (i386v4_sigtramp_saved_pc): Remove prototype.
8681 * config/i386/tm-go32.h (FRAME_CHAIN,
8682 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8683 (i386go32_frame_saved_pc): Remove prototype.
8684 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8685 (get_longjmp_target): Remove prototype.
8686 * i386-tdep.h: Include "osabi.h".
8687 (enum i386_abi): Removed.
8688 (enum struct_return): New enum.
8689 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8690 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8691 sc_pc_offset members.
8692 (i386_gdbarch_register_os_abi): Remove prototype.
8693 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8694 I386_SSE_NUM_REGS): New defines.
8695 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8696 I386_SSE_SIZEOF_REGS): New defines.
8697 (i386_register_name, i386_register_byte, i386_register_raw_size):
8698 New prototypes.
8699 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8700 (i386bsd_sigtramp_saved_pc): New prototype.
8701 * i386-tdep.c: Don't include "elf-bfd.h".
8702 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8703 i386_frame_chain, i386_saved_pc_after_call): Make static.
8704 (i386_frame_saved_pc): Rewrite to call architecture dependent
8705 function to deal with signal handlers. Make static.
8706 (i386go32_frame_saved_pc): Removed.
8707 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8708 Removed.
8709 (i386_get_longjmp_target): New function.
8710 (default_struct_convention, pcc_struct_convention,
8711 reg_struct_convention, valid_conventions, struct_convention): New
8712 variables.
8713 (i386_use_struct_convention): New function.
8714 (i386v4_sigtramp_saved_pc): Renamed to
8715 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8716 (i386_pc_in_sigtramp): New function.
8717 (i386_abi_names): Removed.
8718 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8719 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8720 Removed.
8721 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8722 i386_gdbarch_register_os_abi): Removed.
8723 (struct i386_abi_handler): Removed.
8724 (i386_abi_handler_list): Removed.
8725 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8726 functions.
8727 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8728 i386_nw_init_abi): New functions.
8729 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8730 Use set_gdbarch_xxx() calls instead of relying on macros for a
8731 number of calls.
8732 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8733 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8734 Register the various architecture variants defined in this file.
8735
8736 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8737
8738 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8739 (struct main_type): Remove arg_types member. Update comments for
8740 struct field.
8741 (TYPE_ARG_TYPES): Remove.
8742 (TYPE_FN_FIELD_ARGS): Update.
8743 (smash_to_method_type): Update prototype.
8744
8745 * c-typeprint.c (cp_type_print_method_args): Take method type
8746 instead of argument list. Use new argument layout. Simplify.
8747 (c_type_print_args): Use new argument layout. Simplify.
8748 (c_type_print_base): Update call to cp_type_print_method_args.
8749 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8750 argument; use die->type instead. Update call to
8751 smash_to_method_type.
8752 (read_structure_scope): Update call to dwarf2_add_member_fn.
8753 * gdbtypes.c (allocate_stub_method): Update comment.
8754 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8755 Use new argument layout.
8756 (check_stub_method): Use new argument layout. Don't count
8757 void as an argument.
8758 (print_arg_types): Update comments. Use new argument layout.
8759 (recursive_dump_type): Don't print arg_types member.
8760 * hpread.c (hpread_read_struct_type): Use new argument layout.
8761 (fixup_class_method_type): Likewise.
8762 (hpread_type_lookup): Likewise.
8763 * stabsread.c (read_type): Update calls to read_args and
8764 smash_to_method_type.
8765 (read_args): Use new argument layout. Simplify.
8766 * valops.c (typecmp): Use new argument layout. Update parameters
8767 and comments. Simplify.
8768 (hand_function_call): Use new argument layout.
8769 (search_struct_method): Update call to typecmp.
8770 (find_overload_match): Use new argument layout.
8771
8772 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8773
8774 * NEWS: Mention multithreaded debug support for gdbserver.
8775
8776 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8777
8778 * MAINTAINERS: Mention NEWS.
8779
8780 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8781
8782 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8783 (struct mips_objfile_private, compare_pdr_entries): New.
8784 (non_heuristic_proc_desc): Read the ".pdr" section if it
8785 is present.
8786
8787 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8788
8789 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8790 (arm_debug): New static variable.
8791 (_initialize_arm_tdep): Add ``set debug arm'' command.
8792
8793 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8794
8795 * Makefile.in (sim_arm_h): Define.
8796 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8797 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8798 (arm_register_sim_regno): New function, map an internal REGNUM
8799 onto a simulator register number.
8800 (arm_gdbarch_init): Set register_sim_regno.
8801
8802 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8803
8804 * MAINTAINERS: Add self.
8805
8806 2002-06-11 Jim Blandy <jimb@redhat.com>
8807
8808 * source.c (source_info): Mention whether the symtab has
8809 information about preprocessor macros.
8810
8811 Call the command `info macro', not `show macro'.
8812 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8813 Fix error message.
8814 (_initialize_macrocmd): Register `info_macro_command' in
8815 `infolist', not `showlist'.
8816
8817 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8820 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8821 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8822 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8823 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8824 unconditionally.
8825 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8826 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8827 (_initialize_mips_tdep): Remove dead code.
8828 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8829 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8830 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8831 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8832 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8833 MIPS_LAST_FP_ARG_REGNUM): Remove.
8834
8835 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8836
8837 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8838 (unwind_tmp_obstack_free, parse_frame_info)
8839 (update_context, cfi_read_fp, cfi_write_fp)
8840 (cfi_frame_chain, cfi_init_extra_frame_info)
8841 (cfi_virtual_frame_pointer): Use the above function.
8842 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8843
8844 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8845
8846 * v850-tdep.c (v850_type_is_scalar): New function.
8847 (v850_use_struct_convention): Match current gcc implementation
8848 as close as possible.
8849 (v850_push_arguments): Fix stack_offset handling. Don't write
8850 struct_addr into register. This is done by v850_store_struct_return.
8851 (v850_extract_return_value): Care for structs.
8852 (v850_store_return_value): Ditto.
8853 (v850_store_struct_return): Actually write address.
8854
8855 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8856
8857 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8858 without debug information too.
8859
8860 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8861
8862 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8863 Make multi-arch pure.
8864 * gdbarch.h, gdbarch.c: Re-generate.
8865 * arm-tdep.c (arm_print_float_info): Update.
8866 * arch-utils.h (default_print_float_info): Update.
8867 * arch-utils.c (default_print_float_info): Update.
8868 * infcmd.c (float_info): Update call.
8869
8870 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8871
8872 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8873 the front of the initialize list.
8874
8875 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8876
8877 * infrun.c (struct inferior_status): Replace fields
8878 selected_frame_address and selected_level with field
8879 selected_frame_id.
8880 (save_inferior_status): Update. Use get_frame_id.
8881 (struct restore_selected_frame_args): Delete.
8882 (restore_selected_frame): Update. Use frame_find_by_id.
8883 (restore_inferior_status): Update.
8884
8885 * breakpoint.h (struct breakpoint): Change type of
8886 watchpoint_frame to frame_id.
8887 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8888 call to get_current_frame.
8889 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8890 get_current_frame.
8891 (watchpoint_check): Use frame_find_by_id.
8892
8893 * frame.h (record_selected_frame): Delete declaration.
8894 * stack.c (record_selected_frame): Delete function.
8895
8896 * frame.h (struct frame_id): Define.
8897 (get_frame_id): Declare.
8898 (frame_find_by_id): Declare.
8899 * frame.c (frame_find_by_id): New function.
8900 (get_frame_id): New function.
8901
8902 2002-06-10 Andrey Volkov <avolkov@transas.com>
8903
8904 * ser-e7kpc.c: Fix duplicated define and call of
8905 _initialize_ser_e7000pc
8906
8907 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8908
8909 * signals/signals.c (target_signal_from_host): Fix #ifdef
8910 SIGRTMIN case.
8911 (do_target_signal_to_host): Likewise.
8912
8913 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * mips-tdep.c (mips_find_abi_section): New function.
8916 (mips_gdbarch_init): Call it.
8917
8918 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8919
8920 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8921 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8922 after Andrew's 2002-06-08 gdbarch change.
8923
8924 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8925
8926 * i386-linux-nat.c (suppy_gregset): Don't supply
8927 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8928 register cache.
8929 (fill_gregset): Don't fetch it under the same circumstances.
8930
8931 2002-06-09 Andrew Cagney <cagney@redhat.com>
8932
8933 * Makefile.in (callback_h): Define.
8934 (remote_sim_h): Update path to remote-sim.h.
8935 (remote-rdp.o): Add $(callback_h).
8936 (remote-sim.o): Use $(callback_h).
8937 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8938 * remote-rdp.c: Include "gdb/callback.h".
8939
8940 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8941
8942 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8943 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8944
8945 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8946
8947 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8948 * rdi-share/serpardr.c: Ditto.
8949 * rdi-share/unixcomm.c: Ditto.
8950 * rdi-share/serdrv.c: Ditto.
8951 * rdi-share/hostchan.h: Ditto.
8952 * rdi-share/hostchan.c: Ditto.
8953 * rdi-share/host.h: Ditto.
8954 * rdi-share/devsw.c: Ditto.
8955
8956 * objfiles.h: Change type of obj_private to void pointer.
8957 * pa64solib.c: Update copyright. Don't include "assert.h", use
8958 strcmp instead of STREQ, use LONGEST, do not use PTR
8959 * somsolib.c: Ditto.
8960
8961 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8962 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8963 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8964
8965 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8966
8967 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8968 (default_get_saved_register): Delete function.
8969 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8970 generic_unwind_get_saved_register.
8971 * gdbarch.h, gdbarch.c: Re-generate.
8972
8973 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8974
8975 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8976 generic_func_frame_chain_valid.
8977 * gdbarch.h, gdbarch.c: Re-generate.
8978 * blockframe.c (generic_func_frame_chain_valid): Only check
8979 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8980 passing FP to PC_IN_CALL_DUMMY.
8981 Fix PR gdb/360.
8982
8983 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8984
8985 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8986 (register_gdbarch_data): Initialize init_p.
8987 (gdbarch_data): Initialize data pointer using the init function.
8988 (init_gdbarch_data): Delete function.
8989 (gdbarch_update_p): Update.
8990 (initialize_non_multiarch): Update.
8991 (struct gdbarch): Add field initialized_p.
8992 * gdbarch.h, gdbarch.c: Re-generate.
8993
8994 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8995
8996 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8997 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8998 better do the things actually here.
8999 * x86-64-tdep.c (x86_64_register_name2nr): New.
9000 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9001 (x86_64_gdbarch_init): Respect the above change.
9002 * x86-64-tdep.h (x86_64_register_name2nr)
9003 (x86_64_register_nr2name): Add prototypes.
9004 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9005
9006 2002-06-06 Michael Snyder <msnyder@redhat.com>
9007
9008 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9009 Delete extra braces and re-indent.
9010 (d10v_store_return_value): Char return values
9011 must be shifted over by one byte in R0.
9012 (d10v_extract_return_value): Delete extra braces, re-indent.
9013
9014 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9015
9016 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9017 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9018 (d10v_integer_to_address): Rewrite.
9019 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9020 the d10v specific functions which take care of converting to the
9021 correct space.
9022
9023 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9024
9025 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9026 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9027
9028 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9029
9030 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9031 includes.
9032 * config/tm-linux.h: Ditto.
9033 * config/alpha/tm-alphalinux.h: Ditto.
9034 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9035 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9036 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9037 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9038 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9039 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9040 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9041 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9042 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9043 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9044 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9045 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9046 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9047 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9048 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9049 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9050 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9051 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9052 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9053 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9054 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9055 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9056 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9057 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9058 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9059 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9060 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9061 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9062 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9063 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9064 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9065 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9066 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9067 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9068 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9069 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9070 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9071
9072 2002-05-04 Aidan Skinner <aidan@velvet.net>
9073
9074 * ada-exp.tab.c: New file
9075 * ada-exp.y: New file
9076 * ada-lang.c: New file
9077 * ada-lang.h: New file
9078 * ada-lex.c: New file
9079 * ada-lex.l: New file
9080 * ada-tasks.c: New file
9081 * ada-typeprint.c: New file
9082 * ada-valprint.c: New file
9083
9084 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9085
9086 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9087 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9088
9089 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9090
9091 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9092 insetead of ppc-linux-tdep.o.
9093 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9094 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9095
9096 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9097
9098 2002-05-07 Christian Groessler <chris@groessler.org>
9099 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9100 bit register contents for little endian hosts.
9101
9102 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9103
9104 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9105 any maintainer.
9106
9107 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9108
9109 * gdbarch.h: Regenerate.
9110
9111 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9112
9113 * MAINTAINERS: Add everyone to write-after-approval list.
9114
9115 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9116
9117 * stack.c (frame_info): Use frame_register_unwind instead of
9118 saved_regs. Mention when the SP is on the stack or in a register.
9119
9120 * frame.h (frame_register_unwind_ftype): Define. Document.
9121 (struct frame_info): Add field register_unwind and
9122 register_unwind_cache.
9123 (frame_register_unwind): Declare.
9124 (generic_unwind_get_saved_register): Declare.
9125
9126 * frame.c (frame_register_unwind): New function.
9127 (generic_unwind_get_saved_register): New function.
9128
9129 * blockframe.c (generic_call_dummy_register_unwind): New function.
9130 (frame_saved_regs_register_unwind): New function.
9131 (set_unwind_by_pc): New function.
9132 (create_new_frame): New function.
9133 (get_prev_frame): New function.
9134
9135 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9136
9137 * a29k-share/: Delete directory.
9138 * remote-vx29k.c: Delete file.
9139
9140 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9141
9142 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9143 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9144
9145 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9146
9147 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9148 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9149 (sparc64nbsd-nat.o)
9150 (sparcnbsd-nat.o)
9151 (sparcnbsd-tdep.o): New dependency lists.
9152 * NEWS: Note new UltraSPARC NetBSD native configuration.
9153 * configure.host (sparc64-*-netbsd*): New host.
9154 * configure.tgt (sparc-*-netbsdelf*)
9155 (sparc-*-netbsd*): Set gdb_target to nbsd.
9156 (sparc64-*-netbsd*): New target.
9157 * sparc64nbsd-nat.c: New file.
9158 * sparcnbsd-nat.c: New file.
9159 * sparcnbsd-tdep.c: New file.
9160 * sparcnbsd-tdep.h: New file.
9161 * config/sparc/nbsd.mt: New file.
9162 * config/sparc/nbsd64.mh: New file.
9163 * config/sparc/nbsd64.mt: New file.
9164 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9165 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9166 (HOST_IPC): Remove.
9167 * config/sparc/nbsdaout.mt: Remove.
9168 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9169 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9170 (HOST_IPC): Remove.
9171 * config/sparc/nbsdelf.mt: Remove.
9172 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9173 sparc-nat.c compatiblity defines.
9174 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9175 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9176 * config/sparc/tm-nbsd64.h: New file.
9177 * config/sparc/tm-nbsdaout.h: Remove.
9178 * config/sparc/xm-nbsd.h: Remove.
9179
9180 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9181
9182 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9183 * sparc-tdep.c: Include osabi.h.
9184 (gdbarch_tdep): Add osabi member.
9185 (_initialize_sparc_tdep): Use gdbarch_register.
9186 (sparc_gdbarch_init): Use generic OS ABI framework.
9187 (sparc_dump_tdep): New function.
9188
9189 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9190
9191 * corefile.c (do_captured_read_memory_integer): Return non-zero
9192 result.
9193 (safe_read_memory_integer): Copy result of memory read when
9194 status is non-zero. Also, add comments.
9195
9196 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9197
9198 * Makefile.in (ppc_tdep_h): Define.
9199 (ppc-linux-nat.o)
9200 (ppc-linux-tdep.o)
9201 (rs6000-tdep.o): Use $(ppc_tdep_h).
9202 (ppc-sysv-tdep.o)
9203 (ppcnbsd-nat.o)
9204 (ppcnbsd-tdep.o): New dependency lists.
9205 * ppc-tdep.h: Use generic OS ABI framework.
9206 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9207 (ppc_linux_init_abi): New functions.
9208 (ppc_sysv_abi_broken_use_struct_convention)
9209 (ppc_sysv_abi_use_struct_convention)
9210 (ppc_sysv_abi_push_arguments): Move to...
9211 * ppc-sysv-tdep.c: ...here.
9212 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9213 * rs6000-tdep.c (process_note_abi_tag_sections)
9214 (get_elfosabi): Remove.
9215 (rs6000_gdbarch_init): Use generic OS ABI framework.
9216 (rs6000_dump_tdep): New function.
9217 (_initialize_rs6000_tdep): Use gdbarch_register.
9218 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9219 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9220 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9221 of ppc-linux-tdep.o.
9222 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9223 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9224 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9225 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9226 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9227 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9228
9229 2002-05-29 Jim Blandy <jimb@redhat.com>
9230
9231 * macroscope.c (default_macro_scope): Put `void' in empty argument
9232 list.
9233
9234 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9235
9236 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9237 * arch-utils.c: Include "sim-regno.h".
9238 * gdbarch.sh: Don't include "sim-regno.h".
9239 * gdbarch.h, gdbarch.c: Regenerate.
9240 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9241 here.
9242 * arch-utils.h (legacy_register_sim_regno): To here.
9243 * remote-sim.c (legacy_register_sim_regno): Move function from
9244 here.
9245 * arch-utils.c (legacy_register_sim_regno): To here.
9246
9247 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9248
9249 * sim-regno.h: New file.
9250 * Makefile.in (sim_regno_h): Define.
9251 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9252 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9253 (legacy_register_sim_regno): New function.
9254 (one2one_register_sim_regno): New function.
9255 (gdbsim_fetch_register): Rewrite.
9256 (gdbsim_store_register): Only store a register when
9257 REGISTER_SIM_REGNO is valid.
9258 * d10v-tdep.c: Include "sim-regno.h".
9259 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9260 (d10v_ts3_register_sim_regno): Ditto.
9261 * gdbarch.sh: Include "sim-regno.h".
9262 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9263 * gdbarch.h, gdbarch.c: Regenerate.
9264 * arch-utils.h (default_register_sim_regno): Delete declaration.
9265 * arch-utils.c (default_register_sim_regno): Delete function.
9266
9267 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9268
9269 * ppcnbsd-nat.c: Rewrite.
9270 * ppcnbsd-tdep.c: New file.
9271 * ppcnbsd-tdep.h: New file.
9272 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9273 solib.o, and solib-svr4.o.
9274 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9275 nbsd-tdep.o, and corelow.o.
9276
9277 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9278
9279 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9280 `tr' and `sed'. Mention that `broken' targets are not expected to
9281 build.
9282
9283 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9284
9285 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9286 Let PC point right after the prologue before looking up symbols.
9287
9288 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9289
9290 * i386-tdep.c (i386_register_virtual_type): Return
9291 builtin_type_vec128i for SSE registers.
9292
9293 * gdbtypes.h (builtin_type_vec128i): Declare.
9294
9295 * gdbtypes.c (build_builtin_type_vec128i): New function.
9296 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9297 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9298 (build_gdbtypes): Initialize new builtin vector types.
9299 (_initialize_gdbtypes): Register new vector types with gdbarch.
9300
9301 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9302
9303 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9304 since it has been multi-arch'd.
9305 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9306 Move Alpha and VAX multi-arch news entries to same section
9307 as other multi-arch news.
9308
9309 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9310
9311 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9312 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9313 static. Rename some register numbers to put them in ns32k-tdep
9314 private namespace.
9315 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9316 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9317 functions.
9318 (_initialize_ns32k_tdep): Use gdbarch_register.
9319 * ns32k-tdep.h: New file.
9320 * ns32knbsd-tdep.c: New file.
9321 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9322 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9323 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9324 REGISTER_BYTES, REGISTER_BYTE): Remove.
9325 * config/ns32k/tm-ns32k.h: New file.
9326 * config/ns32k/tm-umax.h: Remove.
9327
9328 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9329
9330 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9331 ns32k_store_struct_return, ns32k_extract_return_value,
9332 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9333 functions.
9334 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9335 ns32k_saved_pc_after_call.
9336 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9337 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9338 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9339 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9340 ns32k_extract_struct_value_address.
9341
9342 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9343
9344 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9345 ns32k_fix_call_dummy): New.
9346 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9347 ns32k_call_dummy_words.
9348 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9349 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9350 CALL_DUMMY_NARGS): Remove.
9351 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9352
9353 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9354
9355 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9356 ns32k_frame_saved_pc, ns32k_frame_args_address,
9357 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9358 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9359 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9360 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9361 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9362 (BREAKPOINT): Remove..
9363 (FRAME_CHAIN): Define as ns32k_frame_chain.
9364 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9365 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9366 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9367 (FRAME_FIND_SAVED_REGS): Remove.
9368 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9369 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9370 (POP_FRAME): Define as ns32k_pop_frame.
9371
9372 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9373
9374 * ns32k-tdep.c (ns32k_register_byte_32082,
9375 ns32k_register_byte_32382, ns32k_register_raw_size,
9376 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9377 functions.
9378 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9379 ns32k_register_byte_32382.
9380 * config/ns32k/tm-umax.h: Update copyright years.
9381 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9382 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9383 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9384 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9385 (ns32k_get_enter_addr): Fix prototype.
9386
9387 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9388
9389 * ns32k-tdep.c: Update copyright years.
9390 (ns32k_register_name_32082): New function.
9391 (ns32k_register_name_32382): Ditto.
9392 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9393 (REGISTER_NAME): Define as ns32k_register_name_32382.
9394 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9395 (REGISTER_NAME): Define as ns32k_register_name_32082.
9396
9397 2002-05-24 Jim Blandy <jimb@redhat.com>
9398
9399 * dwarf2read.c (free_line_header): Use xfree, not free.
9400
9401 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9402
9403 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9404 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9405
9406 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9407
9408 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9409
9410 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9411
9412 From Ross Alexander at NEC Europe:
9413 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9414
9415 2002-05-23 Michael Snyder <msnyder@redhat.com>
9416
9417 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9418 for input, rather than parse_and_eval_address.
9419
9420 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9421
9422 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9423 * Makefile.in (sim_d10v_h): Update definition.
9424
9425 2002-05-24 Andrew Cagney <cagney@redhat.com>
9426
9427 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9428 change `2002-05-22 Michael Snyder' below.
9429 (d10v_push_arguments): Ditto.
9430 (d10v_extract_return_value): Ditto.
9431
9432 2002-05-23 Jim Blandy <jimb@redhat.com>
9433
9434 * macrotab.c (check_for_redefinition): Don't complain if the new
9435 definition is the same as the previous one. Take more arguments
9436 to allow the comparison.
9437 (macro_define_object, macro_define_function): Pass more arguments
9438 to check_for_redefinition.
9439
9440 2002-05-22 Michael Snyder <msnyder@redhat.com>
9441
9442 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9443 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9444 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9445 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9446 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9447 Add a temp variable to save a call (and a memory read).
9448 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9449 if possible (so that PC_IN_CALL_DUMMY will work).
9450
9451 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9452
9453 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9454
9455 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9456
9457 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9458 fde->cie_ptr.
9459 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9460 (dwarf2_build_frame_info): Add offset to fde->initial_location
9461 so that frames of shared libraries are mapped correctly.
9462 (execute_stack_op): Change type of 'result' from ULONGEST to
9463 CORE_ADDR.
9464
9465 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9466
9467 * config/alpha/tm-nbsd.h: Include solib.h.
9468
9469 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9470
9471 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9472 assumptions about the host's byte order.
9473
9474 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9477 to dependency list.
9478 * alphanbsd-tdep.c: Include solib-svr4.h.
9479 * shnbsd-tdep.c: Ditto.
9480
9481 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9484 nbsd-tdep.h to dependency list.
9485 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9486 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9487 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9488 nbsdaout.mh and nbsdelf.mh consistently.
9489 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9490 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9491 nbsdaout.mt and nbsdelf.mh consistently.
9492 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9493 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9494 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9495 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9496 a.out shared library stuff from here...
9497 * config/nm-nbsdaout.h: ...to here.
9498 * config/tm-nbsd.h: Remove.
9499 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9500 * config/arm/nbsd.mh: Remove.
9501 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9502 nbsd-tdep.o.
9503 * config/arm/nbsdaout.mh: New file.
9504 * config/arm/nbsdelf.mh: New file.
9505 * config/arm/nm-nbsdaout.h: New file.
9506 * config/i386/nbsd.mh: Remove.
9507 * config/i386/nbsd.mt: Remove.
9508 * config/i386/nbsdaout.mh: New file.
9509 * config/i386/nbsdaout.mt: New file.
9510 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9511 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9512 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9513 i386_register_u_addr): Remove.
9514 * config/i386/nm-nbsdaout.h: New file.
9515 * config/i386/nm-nbsdelf.h: Remove.
9516 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9517 (USE_STRUCT_CONVENTION): Remove.
9518 * config/i386/tm-nbsdaout.h: New file.
9519 * config/i386/tm-nbsdelf.h: Remove.
9520 * config/m68k/nbsd.mh: Remove.
9521 * config/m68k/nbsd.mt: Remove.
9522 * config/m68k/nbsdaout.mh: New file.
9523 * config/m68k/nbsdaout.mt: New file.
9524 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9525 * config/m68k/nm-nbsdaout.h: New file.
9526 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9527 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9528 * config/ns32k/nbsd.mh: Remove.
9529 * config/ns32k/nbsd.mt: Remove.
9530 * config/ns32k/nbsdaout.mh: New file.
9531 * config/ns32k/nbsdaout.mt: New file.
9532 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9533 * config/ns32k/nm-nbsdaout.h: New file.
9534 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9535 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9536 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9537 (SVR4_SHARED_LIBS): Remove.
9538 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9539 * config/sparc/nbsd.mh: Remove.
9540 * config/sparc/nbsd.mt: Remove.
9541 * config/sparc/nbsdaout.mh: New file.
9542 * config/sparc/nbsdaout.mt: New file.
9543 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9544 * config/sparc/nbsdelf.mt: New file.
9545 * config/sparc/nm-nbsdaout.h: New file.
9546 * config/sparc/nm-nbsdelf.h: Remove.
9547 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9548 * config/sparc/tm-nbsdaout.h: New file.
9549
9550 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9551
9552 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9553 mipsnbsd-tdep.c
9554 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9555
9556 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9557
9558 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9559 shnbsd-nat.c.
9560 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9561
9562 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9563
9564 * NEWS: Note new MIPS NetBSD native configuration.
9565 * configure.host (mips*-*-netbsd*): New host.
9566 * configure.tgt (mips*-*-netbsd*): New target.
9567 * mipsnbsd-nat.c: New file.
9568 * mipsnbsd-tdep.c: New file.
9569 * mipsnbsd-tdep.h: New file.
9570 * config/mips/nbsd.mh: New file.
9571 * config/mips/nbsd.mt: New file.
9572 * config/mips/nm-nbsd.h: New file.
9573 * config/mips/tm-nbsd.h: New file.
9574
9575 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9576
9577 * Makefile.in (SFILES): Add osabi.c.
9578 (COMMON_OBS): Add osabi.o.
9579 (osabi.o): New dependency list.
9580 * osabi.c: New file.
9581 * osabi.h: New file.
9582 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9583
9584 * Makefile.in (alpha_tdep_h): Define and use instead of
9585 alpha-tdep.h.
9586 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9587 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9588 Remove.
9589 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9590 * alpha-tdep.h: Include osabi.h.
9591 (alpha_abi): Remove.
9592 (gdbarch_tdep): Use generic OS ABI framework.
9593 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9594 gdbarch_register_osabi.
9595 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9596 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9597 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9598
9599 * Makefile.in (sh_tdep_h): Add osabi.h.
9600 * sh-tdep.h (sh_osabi): Remove.
9601 (gdbarch_tdep): Use generic OS ABI framework.
9602 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9603 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9604 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9605 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9606
9607 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9608 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9609 gdbarch_register_osabi.
9610 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9611 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9612 (get_elfosabi): Rename to...
9613 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9614 ABI framework support routines.
9615 (arm_gdbarch_init): Use generic OS ABI framework.
9616 (arm_dump_tdep): Likewise.
9617 (_initialize_arm_tdep): Likewise.
9618 * arm-tdep.h: Include osabi.h.
9619 (arm_abi): Remove.
9620 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9621 osabi member.
9622 (arm_gdbarch_register_os_abi): Remove prototype.
9623 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9624 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9625
9626 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9627 * mips-tdep.c: Include osabi.h.
9628 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9629 OS ABI framework.
9630
9631 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9632
9633 * h8300-tdep.c: Fix formatting.
9634
9635 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9636
9637 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9638 printing vector registers.
9639
9640 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9641
9642 From Fernando Nasser:
9643 * remote.c (remote_async_open_1): Re-throw the exception when the
9644 connection fails.
9645 (remote_cisco_open): Ditto.
9646 (remote_open_1): Ditto.
9647
9648 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9649
9650 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9651 (remote_start_remote): Add uiout parameter. Pass through to
9652 remote_start_remote_dummy.
9653 (remote_open_1): Use catch_exception instead of catch_errors.
9654 (remote_async_open_1): Ditto.
9655 (remote_cisco_open): Ditto.
9656
9657 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9658
9659 * remote.c (remote_start_remote): Replace PTR with void pointer.
9660 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9661 static.
9662
9663 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9664
9665 * gdb_indent.sh: Allow the script to be run in the sim directory.
9666
9667 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9668
9669 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9670 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9671
9672 * corelow.c (core_open): Only call set_gdbarch_from_file if
9673 exec_bfd is NULL.
9674
9675 2002-05-17 Andrey Volkov <avolkov@transas.com>
9676
9677 * h8300-tdep.c: Add support of EXR register
9678 * config/h8300/tm-h8300.h: Ditto.
9679
9680 2002-05-17 Andrey Volkov <avolkov@transas.com>
9681
9682 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9683
9684 2002-05-17 Andrey Volkov <avolkov@transas.com>
9685
9686 * h8300-tdep.c: Change literal regnums to REGNO.
9687
9688 2002-05-17 Jim Blandy <jimb@redhat.com>
9689
9690 * NEWS: Note addition of macro support.
9691
9692 Expand preprocessor macros in C expressions.
9693 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9694 (scan_macro_expansion, scanning_macro_expansion,
9695 finished_macro_expansion): New function declarations.
9696 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9697 variable declarations.
9698 * parser-defs.h (expression_context_pc): New declaration.
9699 * parse.c (expression_context_pc): New variable.
9700 (parse_exp_1): Set expression_context_pc, as well as
9701 expression_context_block.
9702 * c-exp.y (yylex): If we're not already reading the result of a
9703 macro expansion, try to macro-expand the next token. When we're
9704 done scanning a macro expansion, switch back to the mainline text.
9705 Commas and `if's in a macro's expansion don't terminate the input.
9706 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9707 (macro_original_text, macro_expanded_text,
9708 expression_macro_lookup_func, expression_macro_lookup_baton): New
9709 variables.
9710 (scan_macro_expansion, scanning_macro_expansion,
9711 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9712 c_preprocess_and_parse): New functions.
9713 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9714 c_preprocess_and_parse, instead of c_parse.
9715 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9716 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9717
9718 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9719
9720 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9721 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9722 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9723
9724 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9725
9726 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9727
9728 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9729
9730 * Makefile.in (sh_tdep_h): Define and use.
9731 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9732 register enum): Move to...
9733 * * sh-tdep.h: ...here.
9734 * sh-tdep.c: Include sh-tdep.h.
9735 * sh3-rom.c: Likewise.
9736 * shnbsd-tdep.c: Likewise.
9737
9738 2002-05-16 Michael Snyder <msnyder@redhat.com>
9739
9740 * arm-tdep.c: Spelling fix in comment.
9741
9742 2002-05-16 Jim Blandy <jimb@redhat.com>
9743
9744 Add commands for manually expanding macros and showing their
9745 definitions.
9746 * macrocmd.c, macroscope.c, macroscope.h: New files.
9747 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9748 (macroscope_h): New variable.
9749 (HFILES_NO_SRCDIR): Add macroscope.h.
9750 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9751 (macroscope.o, macrocmd.o): New rules.
9752
9753 Teach the Dwarf 2 reader to read macro information.
9754 * dwarf2read.c: #include "macrotab.h".
9755 (dwarf_macinfo_buffer): New variable.
9756 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9757 dwarf_macinfo_size.
9758 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9759 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9760 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9761 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9762 dwarf2_macro_spaces_in_definition): New complaints.
9763 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9764 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9765 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9766 the partial symbol table.
9767 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9768 from what's recorded in the partial symbol table.
9769 (read_file_scope): If the compilation unit has a
9770 `DW_AT_macro_info' attribute, read its macro information.
9771 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9772
9773 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9774
9775 Fix PR gdb/546
9776 * ser-tcp.c: Don't include <netinet/udp.h>.
9777
9778 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9779
9780 * MAINTAINERS: Update my email address.
9781
9782 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9783
9784 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9785 include file of the same name.
9786
9787 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9788
9789 * configure.tgt: Mark v850 as multi-arched.
9790 * config/v850/tm-v850.h: Remove file.
9791 * config/v850/v850.mt: Eliminate TM_FILE.
9792
9793 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9794
9795 * v850-tdep.c: Full multi-arch.
9796 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9797 Define GDB_MULTI_ARCH to 2.
9798
9799 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9800
9801 * p-exp.y (current_type): New static variable.
9802 Carries the type of the expression at the position that is parsed.
9803 (push_current_type, pop_current_type): Two new functions. Used
9804 to store/restore current_type in expression on specific tokens.
9805 (search_field): New static variable. Set to one after parsing a point
9806 as at that point only a FIELDNAME token should be searched.
9807 (FIELDNAME): New token. After a point only a token belonging to
9808 current_type type definition is allowed.
9809 (all over token rules): reset and change current_type according
9810 to rules.
9811 (exp '[' rule): insert implicit array index field if
9812 exp is a pascal string type.
9813
9814 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9815
9816 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9817 frame info. Use frame_info's saved_regs instead of matching member
9818 in extra_frame_info throughout.
9819 (v850_frame_init_saved_regs): New function.
9820 (v850_init_extra_frame_info): Move most functionality into
9821 v850_frame_init_saved_regs().
9822 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9823 (v850_frame_find_saved_regs): Remove declaration.
9824 (FRAME_FIND_SAVED_REGS): Remove definition.
9825 (v850_frame_init_saved_regs): Add declaration.
9826 (FRAME_INIT_SAVED_REGS): Add definition.
9827
9828 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9829
9830 * v850-tdep.c: Begin multi-arch'ing v850.
9831 (v850_target_architecture_hook): Remove function.
9832 (v850_gdbarch_init): New function. Add code previously in
9833 v850_target_architecture_hook().
9834 (_initialize_v850_tdep): Don't set target_architecture_hook.
9835 Call register_gdbarch_init() instead.
9836
9837 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9838
9839 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9840 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9841 (fixup_class_method_type): Likewise.
9842
9843 2002-05-15 Jim Blandy <jimb@redhat.com>
9844
9845 Add macro structures to GDB's symbol tables. Nobody puts anything
9846 in them yet.
9847 * symtab.h (struct symtab): New member: `macro_table'.
9848 * buildsym.h (pending_macros): New global variable.
9849 * buildsym.c: #include "macrotab.h".
9850 (buildsym_init): Initialize `pending_macros'.
9851 (end_symtab): If we found macro information while reading a CU's
9852 debugging info, do build a symtab structure for it. Make the
9853 symtab point to the macro information, and clear the
9854 `pending_macros' pointer which held it while we were reading the
9855 debug info.
9856 (really_free_pendings): Free any pending macro table.
9857 * objfiles.h (struct objfile): New member: `macro_cache'.
9858 * objfiles.c (allocate_objfile): Set allocate and free functions
9859 for the macro cache's objstack.
9860 (free_objfile): Empty the macro cache's obstack.
9861 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9862 set new allocate and free functions for it.
9863 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9864 free functions for the macro cache's objstack. (Why is this
9865 function building its own objfile?)
9866 * symmisc.c (print_objfile_statistics): Print statistics on the
9867 macro bcache.
9868 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9869
9870 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9873 (REGISTER_U_ADDR): Delete definition.
9874 (arm_register_u_addr): Delete declaration.
9875
9876 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9877
9878 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9879 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9880
9881 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9882
9883 * regcache.c (register_valid): Revise comments refering to "Not
9884 available" and "unavailable".
9885 * frame.c (frame_register_read): Ditto.
9886 * findvar.c (value_of_register): Ditto.
9887
9888 2002-05-15 Andrew Cagney <cagney@redhat.com>
9889
9890 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9891 (remote-sim.o): Update dependencies.
9892 (d10v-tdep.o): Specify dependencies.
9893 (sim_d10v_h): Define.
9894
9895 2002-05-14 Jim Blandy <jimb@redhat.com>
9896
9897 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9898 * macrotab.c (macro_lookup_inclusion, find_definition,
9899 new_macro_table): Same.
9900
9901 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9902 not `! strcmp ()'. This is a dubious improvement.
9903 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9904
9905 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9906 although it's not necessary, to avoid a warning.
9907
9908 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9909
9910 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9911 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9912 TYPE_INSTANCE_FLAGS.
9913 (struct main_type): New.
9914 (struct type): Move most members to struct main_type. Change
9915 cv_type and as_type to new type_chain member. Add instance_flags.
9916 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9917 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9918 (finish_cv_type): Remove prototype.
9919 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9920 Set TYPE_CHAIN.
9921 (alloc_type_instance): New function.
9922 (smash_type): New function.
9923 (make_pointer_type, make_reference_type, make_function_type)
9924 (smash_to_member_type, smash_to_method_type): Call smash_type.
9925 (make_qualified_type): New function.
9926 (make_type_with_address_space): Call make_qualified_type.
9927 (make_cv_type): Likewise.
9928 (finish_cv_type): Remove unnecessary function.
9929 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9930 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9931 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9932 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9933 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9934 * hpread.c (hpread_read_struct_type): Likewise.
9935 * stabsread.c (read_struct_type): Likewise.
9936
9937 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9938
9939 * configure.tgt: Add a catch all sh* target, for cases like
9940 sh[2,3,4]-elf and sh-hms.
9941
9942 2002-05-14 Keith Seitz <keiths@redhat.com>
9943
9944 * event-loop.c (create_file_handler): Don't do anything but
9945 update data when we are given a fd which we are already
9946 monitoring.
9947
9948 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9949
9950 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9951 (update_context): Use __func__ in warnings.
9952
9953 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9956 and tcp_close to net_open and net_close.
9957 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9958 using UDP if requested. Don't try to disable Nagle on UDP
9959 sockets.
9960 * remote.c (remote_serial_open): New function. Warn about UDP.
9961 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9962
9963 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9964
9965 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9966
9967 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9968
9969 * configure.tgt: Remove sh-hms target.
9970 * MAINTAINERS: Don't list sh-hms as a separate target.
9971
9972 2002-05-13 Jim Blandy <jimb@redhat.com>
9973
9974 Add first preprocessor macro-expansion files.
9975 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9976 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9977 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9978 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9979 (COMMON_OBS): Add macrotab.o, macroexp.o.
9980 (macroexp.o, macrotab.o): New rules.
9981
9982 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9983
9984 * config/m88k/tm-m88k.h: Update copyright.
9985 (m88k_target_write_pc): Declare
9986 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9987 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9988 (SHIFT_INST_REGS): Update definition.
9989 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9990 using old definition of TARGET_WRITE_PC.
9991 * regcache.c (generic_target_write_pc): Delete code handling
9992 NNPC_REGNUM.
9993 * gdbarch.sh (NNPC_REGNUM): Delete.
9994 * gdbarch.h, gdbarch.c: Regenerate.
9995
9996 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9997
9998 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9999 builtin reg number.
10000
10001 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10004 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10005 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10006 access macros.
10007 * c-typeprint.c (cp_type_print_method_args): Likewise.
10008 (c_type_print_args): Likewise.
10009 * d10v-tdep.c (d10v_push_arguments): Likewise.
10010 (d10v_extract_return_value): Likewise.
10011 * expprint.c (print_subexp): Likewise.
10012 * gdbtypes.c (lookup_primitive_typename): Likewise.
10013 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10014 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10015 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10016 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10017 (TYPE_VECTOR): Likewise.
10018 * hpread.c (hpread_read_struct_type)
10019 (fix_static_member_physnames, fixup_class_method_type)
10020 (hpread_type_lookup): Likewise.
10021 * mdebugread.c (parse_symbol, parse_type): Likewise.
10022 * p-lang.c (is_pascal_string_type): Likewise.
10023 * valops.c (hand_function_call): Likewise.
10024 * x86-64-tdep.c (classify_argument): Likewise.
10025
10026 * hpread.c (hpread_read_function_type)
10027 (hpread_read_doc_function_type): Call replace_type.
10028 * dstread.c (create_new_type): Delete.
10029 (decode_dst_structure, process_dst_function): Call alloc_type.
10030 Use type access macros.
10031
10032 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10033
10034 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10035 the're not supported by the current architecture.
10036 (i387_fill_fxsave): Likewise.
10037
10038 2002-05-12 Fred Fish <fnf@redhat.com>
10039
10040 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10041 sect_index_xxx members to index the first slot in section_offsets
10042 if all of the section_offsets are zero.
10043
10044 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10045
10046 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10047 checked in with last change.
10048
10049 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10050
10051 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10052 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10053 config.sub.
10054
10055 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * Makefile.in: Update dependencies.
10058
10059 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10060
10061 * language.c (local_hex_string_custom): Simplify. Do not depend
10062 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10063
10064 * memattr.c (mem_info_command): Replace calls to
10065 longest_local_hex_string and longest_local_hex_string_custom.
10066 * buildsym.c (make_blockvector): Ditto.
10067 * solib.c (info_sharedlibrary_command): Ditto.
10068 * tracepoint.c (tracepoints_info): Ditto.
10069 * symtab.c (print_msymbol_info): Ditto.
10070
10071 * language.c (local_hex_string): Delete.
10072 (local_hex_string_custom): Delete.
10073 (longest_local_hex_string): Rename to local_hex_string.
10074 (longest_local_hex_string_custom): Rename to
10075 local_hex_string_custom.
10076 * language.h (local_hex_string): Change parameter type to LONGEST.
10077 (local_hex_string_custom): Ditto.
10078 (longest_local_hex_string): Delete declaration.
10079 (longest_local_hex_string_custom): Ditto.
10080
10081 * solib.c: Update copyright.
10082 * memattr.c: Update copyright.
10083
10084 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10085
10086 * arch-utils.h (legacy_register_to_value): Declare.
10087 (legacy_value_to_register): Declare.
10088 (legacy_convert_register_p): Declare.
10089 * arch-utils.c (legacy_register_to_value): New function.
10090 (legacy_value_to_register): New function.
10091 (legacy_convert_register_p): New function.
10092
10093 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10094 (VALUE_TO_REGISTER): Define.
10095 (CONVERT_REGISTER_P): Define.
10096 * gdbarch.h, gdbarch.c: Regenerate.
10097
10098 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10099 VALUE_TO_REGISTER.
10100 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10101 CONVERT_REGISTER_P.
10102
10103 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10104 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10105
10106 * Makefile.in: Update dependencies for valops.c.
10107 * valops.c: Include "gdb_assert.h".
10108 (typecmp): Skip THIS parameter to methods.
10109 (find_method_list): Remove static_memfuncp argument,
10110 update callers. Check for stub methods.
10111 (find_value_oload_method_list): Don't set *static_memfuncp.
10112 (find_overload_match): Don't check for stub methods. Assert
10113 that methods are not stubbed. Handle static methods.
10114 (value_find_oload_method_list): Remove static_memfuncp argument.
10115 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10116 to the argument list for static stub methods.
10117 * value.h (value_find_oload_method_list): Update prototype.
10118
10119 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10120
10121 * arch-utils.h (generic_register_size): Declare.
10122 (generic_register_raw_size, generic_register_virtual_size): Delete
10123 declarations.
10124 * arch-utils.c (generic_register_raw_size): Delete.
10125 (generic_register_size): New function.
10126 (generic_register_virtual_size): Delete.
10127
10128 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10129 default generic_register_size.
10130 * gdbarch.h, gdbarch.c: Re-generate.
10131
10132 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10133 register_virtual_size.
10134 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10135 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10136
10137 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10138
10139 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10140 * gdbarch.h, gdbarch.c: Regenerate.
10141 * gnu-v3-abi.c: Update copyright.
10142 (vtable_address_point_offset): Update.
10143 (gnuv3_rtti_type): Update.
10144 (gnuv3_baseclass_offset): Update.
10145 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10146 (init_fetch_link_map_offsets): Update.
10147 * remote.c (get_remote_state): Update.
10148
10149 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10150
10151 * TODO: Remove value_headof/value_from_vtable_info comment.
10152 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10153 * values.c (value_headof, value_from_vtable_info): Delete.
10154 * value.h (value_from_vtable_info): Delete prototype.
10155
10156 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10157
10158 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10159 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10160 $(gdb_regex_h).
10161 (gdb_assert_h): Define.
10162 (gdb_wait_h): Define.
10163 (gdb_regex_h): Define.
10164
10165 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10166
10167 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10168 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10169
10170 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10171
10172 * nbsd-tdep.c: Fix comment.
10173
10174 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10175
10176 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10177 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10178 (nbsd-tdep.o): New dependency list.
10179 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10180 nbsd-tdep.h.
10181 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10182 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10183 * nbsd-tdep.c: New file.
10184 * nbsd-tdep.h: New file.
10185 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10186 nbsd-tdep.h.
10187 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10188 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10189 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10190 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10191
10192 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10193
10194 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10195 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10196 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10197 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10198 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10199 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10200
10201 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10202
10203 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10204 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10205 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10206 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10207 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10208 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10209 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10210
10211 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10212
10213 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10214 fetch_elfcore_registers to...
10215 * i386nbsd-tdep.c: ...here.
10216 (i386nbsd_use_struct_convention): Rename to...
10217 (i386nbsd_aout_use_struct_convention): ...this.
10218 (i386nbsd_supply_reg): New function.
10219 (i386nbsd_fill_reg): New function.
10220 (fetch_core_registers): Use i386nbsd_supply_reg.
10221 (fetch_elfcore_registers): Likewise.
10222 (_initialize_i386nbsd_tdep): New function.
10223 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10224 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10225 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10226 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10227 (i386nbsd_aout_use_struct_convention): ...this.
10228
10229 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10230
10231 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10232 (store_inferior_registers): Use shnbsd_fill_reg.
10233 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10234 sh_nbsd_supply_register): Collapse into...
10235 (shnbsd_supply_reg): ...this.
10236 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10237 (shnbsd_fill_reg): ...this.
10238 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10239 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10240 (fetch_core_registers): Use shnbsd_supply_reg.
10241 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10242 (sh_nbsd_core_fns): Rename to...
10243 (shnbsd_core_fns): ...this.
10244 (sh_nbsd_elfcore_fns): Rename to...
10245 (shnbsd_elfcore_fns): ...this.
10246 (sh_nbsd_init_abi): Rename to...
10247 (shnbsd_init_abi): ...this.
10248 (_initialize_sh_nbsd_tdep): Rename to...
10249 (_initialize_shnbsd_tdep): ...this.
10250 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10251 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10252 sh_nbsd_fill_register): Remove prototypes.
10253 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10254
10255 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10256
10257 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10258 (i387-nat.o): Delete dependency list.
10259 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10260 (x86-64-linux-nat.o): Likewise.
10261 * i387-nat.c: Delete file, moving contents to...
10262 * i387-tdep.c: ...here.
10263 * i387-nat.h: Rename...
10264 * i387-tdep.h: ...to this.
10265 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10266 * i386-linux-nat.c: Likewise.
10267 * i386bsd-nat.c: Likewise.
10268 * i386gnu-nat.c: Likewise.
10269 * i386nbsd-nat.c: Likewise.
10270 * i386v4-nat.c: Likewise.
10271 * x86-64-linux-nat.c: Likewise.
10272 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10273 * config/i386/go32.mh (NATDEPFILES): Likewise.
10274 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10275 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10276 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10277 * config/i386/linux.mh (NATDEPFILES): Likewise.
10278 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10279 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10280 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10281 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10282
10283 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10284
10285 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10286 (alphanbsd-nat.o): Remove dependency list.
10287 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10288 * alphanbsd-nat.c: Delete. Contents moved to...
10289 * alphanbsd-tdep.c: ...here.
10290 (_initialize_alphanbsd_tdep): Register core functions.
10291 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10292
10293 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10294
10295 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10296 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10297 (alphanbsd-nat.o): Likewise.
10298 (alphabsd-tdep.o): New dependency list.
10299 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10300 (fill_gregset): Use alphabsd_fill_reg.
10301 (supply_fpregset): Use alphabsd_supply_fpreg.
10302 (fill_fpregset): Use alphabsd_fill_fpreg.
10303 (fetch_inferior_registers): Use struct reg and struct fpreg
10304 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10305 and alphabsd_supply_fpreg.
10306 (store_inferior_registers): Use struct reg and struct fpreg
10307 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10308 and alphabsd_fill_fpreg.
10309 * alphabsd-tdep.c: New file.
10310 * alphabsd-tdep.h: New file.
10311 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10312 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10313 alphabsd_supply_fpreg.
10314 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10315 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10316
10317 2002-05-11 Eric Christopher <echristo@redhat.com>
10318
10319 * mips-tdep.c (mips_double_register_type): Fix thinko.
10320 (mips_single_register_type): Ditto.
10321 * MAINTAINERS: Add self.
10322
10323 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10324
10325 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10326 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10327 right thing on architectures with different endianness and/or
10328 integer sizes.
10329
10330 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10331
10332 From Christian Limpach <chris@Pin.LU>
10333 * configure.in: Change sed expression which comments out
10334 NATDEPFILES to also comment out continuation lines.
10335 * configure: Regenerate.
10336
10337 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10338
10339 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10340 big patch.
10341
10342 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10343
10344 * sh-tdep.c: Include correct file.
10345
10346 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10347
10348 New support for sh64-elf (sh5) target.
10349
10350 * configure.tgt: For sh64-elf target, default to sh-elf.
10351
10352 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10353 (struct gdbarch_tdep): Add new fields for new registers and ABI
10354 info.
10355
10356 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10357 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10358 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10359 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10360 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10361 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10362 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10363 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10364 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10365 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10366 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10367 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10368 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10369 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10370 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10371 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10372 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10373 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10374 sign_extend, sh64_nofp_frame_init_saved_regs,
10375 sh64_init_extra_frame_info, sh64_get_saved_register,
10376 sh64_extract_struct_value_address, sh64_pop_frame,
10377 sh64_push_arguments, sh64_extract_return_value,
10378 sh64_store_return_value, sh64_show_media_regs,
10379 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10380 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10381 sh_sh64_register_virtual_type,
10382 sh_sh64_register_convert_to_virtual,
10383 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10384 sh64_register_read, sh64_pseudo_register_write,
10385 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10386 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10387 sh64_do_pseudo_register, sh_compact_do_registers_info,
10388 sh64_do_registers_info, sh_gdbarch_init): New functions.
10389
10390 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10391
10392 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10393
10394 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10395
10396 * linespec.c (decode_line_1): Check for a double quote after
10397 a filename correctly.
10398
10399 2002-05-10 Jim Blandy <jimb@redhat.com>
10400
10401 Properly track the size of the current objfile's .debug_line section.
10402 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10403 (DWARF_LINE_SIZE): New macro.
10404 (dwarf2_build_psymtabs_hard): Record the line section's size in
10405 the partial symbol table.
10406 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10407 symbol table.
10408
10409 2002-05-10 Petr Sorfa <petrs@caldera.com>
10410
10411 * ia64-tdep.c: Handle breakpoints on L instruction type
10412 in MLX instruction bundle by moving the breakpoint to
10413 the third slot (X instruction type) as L holds only data.
10414
10415 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10416
10417 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10418 (process_one_symbol): Complain about discarding local symbols
10419 due to a misplaced N_LBRAC entry.
10420
10421 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10422
10423 From Daniel Berlin <dan@cgsoftware.com>
10424 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10425 decrease the depth we are at, in the case of templates.
10426
10427 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10428
10429 * mips-tdep.c (mips_float_register_type): New function.
10430 (mips_double_register_type): New function.
10431 (mips_print_register): Use them.
10432 (do_fp_register_row): Likewise.
10433
10434 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10435
10436 * signals/signals.c (signals): Remove conditional compilation around
10437 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10438 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10439
10440 2002-05-09 Michael Snyder <msnyder@redhat.com>
10441
10442 * remote-rdp.c (remote_rdp_can_run): Remove.
10443
10444 2002-05-09 Tom Tromey <tromey@redhat.com>
10445
10446 * jv-valprint.c (java_val_print): Handle `char' as a special case
10447 of TYPE_CODE_INT.
10448
10449 2002-05-09 Michael Snyder <msnyder@redhat.com>
10450
10451 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10452 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10453 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10454 str r(0123),[sp,#nn].
10455 (arm_skip_prologue): Ditto. Also make disassembly
10456 order-independent by placing it in a loop.
10457
10458 2002-05-06 Michael Snyder <msnyder@redhat.com>
10459
10460 * stabsread.c (read_type): Add recognition for new attribute:
10461 "@V;" means that an array type is actually a vector.
10462 This is analogous to the vector flag that's been added to dwarf2.
10463
10464 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10465
10466 * i386-tdep.h (i386_abi): New enum.
10467 (struct gdbarch_tdep): Replace os_ident member with abi.
10468 (i386_gdbarch_register_os_abi): New prototype.
10469 * i386-tdep.c (i386_abi_names): New array.
10470 (process_note_abi_tag_sections): Removed.
10471 (process_note_sections): New function.
10472 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10473 (struct i386_abi_handler): New struct.
10474 (i386_abi_handler_list): New variable.
10475 (i386_gdbarch_register_os_abi): New function.
10476 (i386_gdbarch_init): Adapt for the changes given above.
10477
10478 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10479
10480 * gregset.h: Say "GNU/Linux".
10481
10482 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10483
10484 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10485 (build_gdbtypes): Build builtin_type_v2_float.
10486 (_initialize_gdbtypes): Register new builtin type.
10487
10488 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10489
10490 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10491 (clear_gdbarch_swap): New function.
10492 (initialize_non_multiarch): Call.
10493 (gdbarch_update_p): Before calling init(), swap out and clear the
10494 existing architecture.
10495 * gdbarch.c: Regenerate.
10496
10497 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10498
10499 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10500 alphanbsd-tdep.c.
10501
10502 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10503
10504 * sh-nbsd-nat.c: Rename to...
10505 * shnbsd-nat.c: ...this.
10506 * sh-nbsd-tdep.c: Rename to...
10507 * shnbsd-tdep.c: ...this.
10508 * sh-nbsd-tdep.h: Rename to...
10509 * shnbsd-tdep.h: ...this.
10510 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10511 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10512
10513 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10514
10515 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10516 concatenation for command help messages.
10517
10518 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10519
10520 * NEWS: Note new sh*-*-netbsdelf* configuration.
10521 * configure.host: Set gdb_host_cpu to sh for all sh*.
10522 (sh*-*-netbsdelf*): New host.
10523 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10524 (sh*-*-netbsdelf*): New target.
10525 * sh-nbsd-nat.c: New file.
10526 * sh-nbsd-tdep.c: New file.
10527 * sh-nbsd-tdep.h: New file.
10528 * config/sh/nbsd.mh: New file.
10529 * config/sh/nbsd.mt: New file.
10530 * config/sh/nm-nbsd.h: New file.
10531 * config/sh/tm-nbsd.h: New file.
10532
10533 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10534
10535 * sh-tdep.c (sh_osabi_names): Declare.
10536 (process_note_abi_tag_sections): New function.
10537 (get_elfosabi): Ditto.
10538 (sh_gdbarch_register_os_abi): Ditto.
10539 (sh_dump_tdep): Ditto.
10540 _initialize_sh_tdep): Use gdbarch_register to register
10541 sh_gdbarch_init and sh_dump_tdep.
10542 * config/sh/tm-sh.h (sh_osabi): Declare.
10543 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10544
10545 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10546
10547 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10548 (thumb_scan_prologue): Ditto.
10549 (arm_find_callers_reg): Ditto.
10550 (arm_frame_chain): Ditto.
10551 (arm_init_extra_frame_info): Ditto.
10552 (arm_frame_saved_pc): Ditto.
10553 (arm_pop_frame): Ditto.
10554 (arm_push_return_address): New function.
10555 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10556 call_dummy_location, call_dummy_breakpoint_offset_p,
10557 call_dummy_breakpoint_offset, call_dummy_p,
10558 call_dummy_stack_adjust_p, call_dummy_words,
10559 sizeof_call_dummy_words, call_dummy_start_offset,
10560 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10561 call_dummy_address, push_return_address and push_dummy_frame for
10562 generic dummy frames.
10563
10564 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10565
10566 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10567 size computation for alloca.
10568 (sh_fp_frame_init_saved_regs): Likewise.
10569
10570 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10571
10572 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10573 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10574 * arm-tdep.c (arm_store_return_value): Use them.
10575 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10576 * remote-rdp.c (remote_rdp_fetch_register): Use
10577 ARM_MAX_REGISTER_RAW_SIZE.
10578 (remote_rdp_store_register): Likewise.
10579
10580 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10581
10582 * dwarf2cfi.c: Code cleanup, removed unused variables,
10583 added default labels to switch {} statements.
10584 * x86-64-tdep.c: Ditto.
10585 * x86-64-linux-nat.c: Ditto.
10586
10587 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10588
10589 * solib.h: Protect against multiple inclusion.
10590
10591 2002-05-06 Jim Blandy <jimb@redhat.com>
10592
10593 Add first preprocessor macro-expansion files.
10594 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10595 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10596 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10597 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10598 (COMMON_OBS): Add macrotab.o, macroexp.o.
10599 (macroexp.o, macrotab.o): New rules.
10600
10601 Separate the job of reading the line number info statement program
10602 header (...expialidocious) out into its own function.
10603 * dwarf2read.c (struct line_head, struct filenames, struct
10604 directories): Replace with...
10605 (struct line_header): New structure, containing the full
10606 contents of the statement program header, including the
10607 include directory and file name tables.
10608 (read_file_scope): If we have line number info, instead of just
10609 calling dwarf_decode_lines to do all the work, call
10610 dwarf_decode_line_header first to get a `struct line_header'
10611 containing the data in the statement program header, and then
10612 pass that to dwarf_decode_lines, which will pick up where that
10613 left off. Be sure to clean up the `struct line_header' object.
10614 (dwarf_decode_line_header, free_line_header, add_include_dir,
10615 add_file_name): New functions.
10616 (dwarf_decode_lines): Move all the code to read the statement
10617 program header into dwarf_decode_line_header. Take the line
10618 header it built as the first argument, instead of the offset to
10619 the compilation unit's line number info. Use the new `struct
10620 line_header' type instead of the old structures. No need to do
10621 cleanups here now, since we don't allocate anything.
10622 (dwarf2_statement_list_fits_in_line_number_section,
10623 dwarf2_line_header_too_long): New complaints.
10624
10625 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10626
10627 * gdbtypes.c (init_vector_type): New function.
10628 (build_builtin_type_vec128): Simplify the representation of SIMD
10629 registers.
10630 (build_gdbtypes): Initialize new builtin vector types.
10631 (_initialize_gdbtypes): Register new vector types with gdbarch.
10632 (builtin_type_v4_float, builtin_type_v4_int32,
10633 builtin_type_v8_int16, builtin_type_v16_int8,
10634 builtin_type_v2_int32, builtin_type_v4_int16,
10635 builtin_type_v8_int8): New (renamed) SIMD types.
10636
10637 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10638
10639 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10640 (i387_fill_fxsave): Likewise.
10641
10642 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10643
10644 * alpha-tdep.c (alpha_extract_return_value): Don't use
10645 non-constant array size in prototype.
10646
10647 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10648
10649 From Brian Taylor <briant at model dot com>:
10650 * ui-out.c (ui_out_field_core_addr): Use the function
10651 longest_local_hex_string_custom'to format addresses > 32 bits
10652 wide.
10653
10654 * ui-out.c (ui_out_field_core_addr): Update comment.
10655
10656 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10657
10658 * stack.c (select_and_print_frame): Make static. Delete the
10659 parameter `level'.
10660 (func_command): Update call.
10661 (select_frame_command): Delete code computing the frame level.
10662 * frame.h (select_and_print_frame): Delete declaration.
10663
10664 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10665
10666 * sparc-tdep.c (sparc_get_saved_register): Comment why
10667 get_prev_frame call is safe.
10668
10669 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10670
10671 * frame.h (select_frame): Delete level parameter.
10672 * stack.c (select_frame): Update. Use frame_relative_level to
10673 obtain the frame's level.
10674 (select_and_print_frame): Update call.
10675 (select_frame_command): Ditto.
10676 (up_silently_base): Ditto.
10677 (down_silently_base): Ditto.
10678 * ocd.c (ocd_start_remote): Ditto.
10679 * remote-rdp.c (remote_rdp_open): Ditto.
10680 * remote-mips.c (mips_initialize): Ditto.
10681 (common_open): Ditto.
10682 * remote-e7000.c (e7000_start_remote): Ditto.
10683 * m3-nat.c (select_thread): Ditto.
10684 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10685 (child_get_current_exception_event): Ditto.
10686 * varobj.c (varobj_create): Ditto.
10687 (varobj_update): Ditto.
10688 (c_value_of_root): Ditto.
10689 * tracepoint.c (finish_tfind_command): Ditto.
10690 * corelow.c (core_open): Ditto.
10691 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10692 * thread.c (info_threads_command): Ditto.
10693 (switch_to_thread): Ditto.
10694 * infrun.c (normal_stop): Ditto.
10695 (restore_selected_frame): Ditto.
10696 (restore_inferior_status): Ditto.
10697 * breakpoint.c (insert_breakpoints): Ditto.
10698 (watchpoint_check): Ditto.
10699 (bpstat_stop_status): Ditto.
10700 (do_enable_breakpoint): Ditto.
10701 * blockframe.c (flush_cached_frames): Ditto.
10702 (reinit_frame_cache): Ditto.
10703
10704 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10705
10706 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10707 maintainer.
10708
10709 2002-05-04 Jim Blandy <jimb@redhat.com>
10710
10711 * gdbtypes.c (replace_type): Doc fix.
10712
10713 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10714
10715 * valprint.c (strcat_longest): Delete commented out function.
10716 Update copyright.
10717
10718 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10719
10720 * MAINTAINERS: Mark a29k as deleted.
10721 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10722 Move new configurations to the top.
10723 * configure.tgt: Remove a29k.
10724 * config/a29k/tm-vx29k.h: Delete.
10725 * config/a29k/vx29k.mt: Delete.
10726 * config/a29k/tm-a29k.h: Delete.
10727 * config/a29k/a29k-udi.mt: Delete.
10728 * config/a29k/a29k.mt: Delete.
10729 * a29k-tdep.c: Delete.
10730 * remote-udi.c: Delete.
10731 * remote-mm.c: Delete.
10732 * remote-eb.c: Delete.
10733 * remote-adapt.c: Delete.
10734 * Makefile.in: Remove obsolete code.
10735 * config/s390/s390x.mt: Ditto.
10736 * config/s390/s390.mt: Ditto.
10737 * config/sparc/sparclynx.mh: Ditto.
10738 * config/sparc/linux.mh: Ditto.
10739 * config/pa/hppaosf.mh: Ditto.
10740 * config/pa/hppabsd.mh: Ditto.
10741 * config/ns32k/nbsd.mt: Ditto.
10742 * config/mips/vr5000.mt: Ditto.
10743 * config/m68k/sun3os4.mh: Ditto.
10744 * config/m68k/nbsd.mt: Ditto.
10745 * config/m68k/m68klynx.mh: Ditto.
10746 * config/m32r/m32r.mt: Ditto.
10747 * config/i386/x86-64linux.mt: Ditto.
10748 * config/i386/nbsdelf.mt: Ditto.
10749 * config/i386/nbsd.mt: Ditto.
10750 * config/i386/i386lynx.mh: Ditto.
10751
10752 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10753
10754 * target.c (debug_print_register): New function. Handle oversize
10755 registers.
10756 (debug_to_fetch_registers): Call.
10757 (debug_to_store_registers): Call.
10758
10759 2002-05-03 Jim Blandy <jimb@redhat.com>
10760
10761 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10762 (read_type): Doc fix.
10763 * gdbtypes.c (replace_type): Doc fix.
10764
10765 * stabsread.c (multiply_defined_struct): New complaint.
10766 (read_struct_type): If the type we were passed isn't empty, or
10767 incomplete, don't read the new struct type into it; complain,
10768 and return the original type unchanged. Take a new `type_code'
10769 argument, which is the type code for the new type.
10770 (read_type): Rather than storing the type's type code here, pass
10771 it as an argument to read_struct_type, and let that take care of
10772 storing it. That way, we don't overwrite the original type code,
10773 so read_struct_type can use it to decide whether we're overwriting
10774 something we shouldn't.
10775 (complain_about_struct_wipeout): New function.
10776
10777 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10778
10779 * gdbarch.sh: Assert that gdbarch is non-NULL.
10780 * gdbarch.c: Regenerate.
10781
10782 2002-05-03 Jason Merrill <jason@redhat.com>
10783
10784 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10785 and return NULL.
10786
10787 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10788
10789 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10790 (x86_64_dwarf2gdb_regno_map_length),
10791 (x86_64_dwarf2_reg_to_regnum): Added.
10792 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10793 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10794 (_initialize_x86_64_tdep): Synced with the change above.
10795 (x86_64_skip_prologue): Reformulated message.
10796
10797 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10798
10799 * f-exp.y: Also use new prev_lexptr variable
10800 to improve error reporting. Based on Michael Snyder
10801 2002-04-24 dated patch to c-exp.y.
10802 * jv-exp.y: Likewise.
10803 * m2-exp.y: Likewise.
10804
10805 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10806
10807 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10808 we are dealing with vectors.
10809
10810 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10811
10812 * config/m68k/tm-nbsd.h: Obvious fix,
10813 correct machine name.
10814
10815 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10816
10817 * p-typeprint.c (pascal_type_print_base): Add support
10818 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10819
10820 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10821
10822 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10823 for fondamental pascal 'char' type.
10824
10825 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10826
10827 * p-lang.h (is_pascal_string_type): Declaration changed,
10828 new sixth argument of type char ** added.
10829 * p-lang.c (is_pascal_string_type): Implementation
10830 changed. Args length_pos, length_size, string_pos, char_size
10831 can now be NULL. New argument arrayname set to the field
10832 name of the char array. Return value set to char array
10833 field index plus one.
10834 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10835 is_pascal_string_type function.
10836
10837 2002-05-02 Andrew Cagney <cagney@redhat.com>
10838
10839 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10840 <cagney@redhat.com> change.
10841 * gdbarch.c: Regenerate.
10842
10843 2002-05-02 Andrew Cagney <cagney@redhat.com>
10844
10845 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10846 before probing for a new one. Detect errorenous gdbarch_init
10847 functions.
10848 * gdbarch.c: Regenerate.
10849
10850 2002-05-01 Andrew Cagney <cagney@redhat.com>
10851
10852 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10853 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10854 * config/v850/tm-v850.h: Ditto. Update copyright.
10855
10856 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10857
10858 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10859 current_gdbarch.
10860
10861 2002-04-30 Michael Snyder <msnyder@redhat.com>
10862
10863 * arm-tdep.c: Whitespace clean-ups.
10864 (arm_skip_prologue): Fix thinko; two lines
10865 should have been removed as part of 4/24 change.
10866
10867 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10868
10869 * rs6000-tdep.c: Added comment describing how fpscr register
10870 numbers were chosen.
10871
10872 2002-04-30 Michael Snyder <msnyder@redhat.com>
10873
10874 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10875
10876 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10877
10878 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10879 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10880 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10881
10882 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10883
10884 From Louis Hamilton <hamilton@redhat.com>:
10885 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10886 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10887 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10888 not bfd-private xcoff data, to determine wordsize.
10889 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10890
10891 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10892
10893 GDB 5.2 released from 5.2 branch.
10894
10895 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10896
10897 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10898 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10899 (x86_64_register_info_table): Added comments with register numbers.
10900
10901 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10902
10903 * rs6000-tdep.c (rs6000_extract_return_value,
10904 rs6000_store_return_value): Handle returning vectors.
10905 (rs6000_gdbarch_init): Use
10906 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10907 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10908 New function.
10909 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10910 vectors.
10911 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10912 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10913
10914 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10915
10916 * hpread.c (hpread_psymtab_to_symtab_1,
10917 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10918 with fprintf_unfiltered (gdb_stderr,...).
10919
10920 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10921
10922 * remote-array.c (printf_monitor, write_monitor,
10923 array_insert_breakpoint, array_remove_breakpoint ):
10924 Replace fprintf (stderr,...
10925 with fprintf_unfiltered (gdb_stderr,....
10926 * remote-es.c: Likewise.
10927 * remote-os9k.c: Likewise.
10928 * remote-st.c: Likewise.
10929
10930 2002-04-28 Andreas Schwab <schwab@suse.de>
10931
10932 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10933 linux-proc.o and gcore.o.
10934
10935 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10936
10937 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10938 code without frame pointers.
10939
10940 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10941
10942 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10943 ON_STACK is needed.
10944
10945 2002-04-26 Ben Elliston <bje@redhat.com>
10946
10947 * target.c (do_xfer_memory): Correct reference to the new option
10948 "trust-readonly-sections".
10949
10950 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10951
10952 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10953 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10954 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10955 vectors.
10956 (read_array_type): Record the fact that this array type is really a
10957 vector (i.e. are passed in by value).
10958
10959 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10960
10961 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10962 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10963 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10964 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10965 * alpha-linux-tdep.c: Include frame.h.
10966 (alpha_linux_sigcontext_addr): New function.
10967 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10968 alpha_linux_sigcontext_addr.
10969 * alpha-osf1-tdep.c: Include gdbcore.h.
10970 (alpha_osf1_sigcontext_addr): New function.
10971 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10972 alpha_osf1_sigcontext_addr.
10973 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10974 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10975
10976 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10977
10978 * stack.c (selected_frame_level):
10979 (select_frame): Do not set selected_frame_level.
10980 * frame.h (selected_frame_level): Delete declaration.
10981
10982 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10983
10984 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10985 convert_from_func_ptr-addr when AIX / PowerOpen.
10986
10987 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10988
10989 * valops.c (hand_function_call): Call
10990 generic_save_call_dummy_addr.
10991 * frame.h (generic_save_call_dummy_addr): Declare.
10992 * blockframe.c (struct dummy_frame): Add fields call_lo and
10993 call_hi.
10994 (generic_find_dummy_frame): Check for PC in range call_lo to
10995 call_hi instead of entry_point_address.
10996 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10997 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10998 (generic_save_call_dummy_addr): New function.
10999
11000 2002-04-24 David S. Miller <davem@redhat.com>
11001
11002 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11003 sparc_skip_prologue.
11004 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11005 information to find prologue when possible.
11006 (sparc_prologue_frameless_p): Call examine_prologue directly.
11007 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11008 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11009 second argument.
11010 (SKIP_PROLOGUE): Likewise.
11011
11012 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11013
11014 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11015 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11016 indicate that the condition it was testing is always true.
11017 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11018 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11019 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11020
11021 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11022
11023 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11024 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11025 tdep->jb_pc and tdep->jb_elt_size.
11026 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11027 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11028 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11029 * alpha-nat.c (get_longjmp_target): Remove.
11030 (JB_ELEMENT_SIZE): Ditto.
11031 (JB_PC): Ditto.
11032 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11033 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11034 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11035 to alpha_get_longjmp_target.
11036 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11037 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11038 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11039
11040 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11041
11042 * README: Update to GDB 5.2.
11043
11044 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11045
11046 * gdbarch.sh (LC_ALL): Set to `c'.
11047
11048 2002-04-25 Theodore A. Roth <troth@verinet.com>
11049
11050 * avr-tdep.c: Ran through gdb_indent.sh.
11051
11052 2002-04-25 Theodore A. Roth <troth@verinet.com>
11053
11054 * MAINTAINERS: Add myself as AVR maintainer.
11055 * NEWS: Note new target avr.
11056
11057 2002-04-25 Theodore A. Roth <troth@verinet.com>
11058
11059 * Makefile.in: Add support for AVR target.
11060 * configure.tgt: Add support for AVR target.
11061 * avr-tdep.c: New file
11062 * config/avr/avr.mt: New file.
11063
11064 2002-04-25 Theodore A. Roth <troth@verinet.com>
11065
11066 * MAINTAINERS: Add myself to write-after-approval.
11067
11068 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11069
11070 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11071 with fprintf_unfiltered (gdb_stderr,....
11072
11073 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11074
11075 Fix PR gdb/508.
11076 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11077
11078 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11079
11080 * p-exp.y: Also use new prev_lexptr variable
11081 to improve error reporting. Based on Michael Snyder
11082 2002-04-24 dated patch to c-exp.y.
11083
11084 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11085
11086 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11087 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11088 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11089 to 0.
11090 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11091 and struct value.
11092 (FUNCTION_START_OFFSET): Remove.
11093 (BREAKPOINT): Ditto.
11094
11095 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11096
11097 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11098 * NEWS: Ditto.
11099
11100 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11101
11102 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11103 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11104 alpha_linux_pc_in_sigtramp.
11105 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11106 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11107 alpha_osf1_pc_in_sigtramp.
11108 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11109 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11110 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11111 alphafbsd_pc_in_sigtramp.
11112 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11113 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11114 alphanbsd_pc_in_sigtramp.
11115 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11116 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11117
11118 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11119
11120 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11121
11122 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11123
11124 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11125 alphanbsd-tdep.c.
11126 (alphanbsd-nat.o): New dependency list.
11127 (alphanbsd-tdep.o): Ditto.
11128 * NEWS: Note new native NetBSD/alpha configuration.
11129 * alphanbsd-nat.c: New file.
11130 * alphanbsd-tdep.c: Ditto.
11131 * configure.host (alpha*-*-netbsd*): New host.
11132 * configure.tgt (alpha*-*-netbsd*): New target.
11133 * config/alpha/nbsd.mh: New file.
11134 * config/alpha/nbsd.mt: Ditto.
11135 * config/alpha/nm-nbsd.h: Ditto.
11136 * config/alpha/tm-nbsd.h: Ditto.
11137
11138 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11139
11140 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11141 (alpha-osf1-tdep.o): New dependency list.
11142 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11143 and skip_sigtramp_frame members.
11144 * alpha-linux-tdep.c: Include gdbcore.h.
11145 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11146 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11147 * alpha-osf1-tdep.c: New file.
11148 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11149 alpha-osf1-dep.c.
11150 (alpha_frame_past_sigtramp_frame): New function.
11151 (alpha_dynamic_sigtramp_offset): Ditto.
11152 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11153 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11154 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11155 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11156 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11157 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11158 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11159 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11160 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11161 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11162 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11163 to find_solib_trampoline_target.
11164 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11165 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11166 (SKIP_TRAMPOLINE_CODE): Remove.
11167 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11168 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11169 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11170 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11171 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11172 (PROC_SIGTRAMP_MAGIC): Ditto.
11173 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11175 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11176 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11177 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11178
11179 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11180
11181 * NEWS: Note that Alpha targets are now multi-arch.
11182
11183 2002-04-24 Michael Snyder <msnyder@redhat.com>
11184
11185 * parser-defs.h (prev_lexptr): New external variable.
11186 * parse.c (parse_exp_1): Set prev_lexptr to null before
11187 calling the language-specific parser.
11188 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11189 (yyerror): Use prev_lexptr in error reporting.
11190
11191 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11192
11193 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11194 * gregset.h: If FILL_FPXREGSET is defined, provide
11195 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11196 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11197 is defined, call fill_fpxregset.
11198
11199 2002-04-24 Roland McGrath <roland@frob.com>
11200
11201 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11202 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11203 (supply_gregset, supply_fpregset): New functions.
11204
11205 * gnu-nat.c (gnu_find_memory_regions): New function.
11206 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11207 (gnu_xfer_memory): Add a cast.
11208
11209 2002-04-24 Michael Snyder <msnyder@redhat.com>
11210
11211 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11212 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11213 of argument regs ("str r(0123), [r11, #-nn"]).
11214 (arm_skip_prologue): Better handling for frameless functions.
11215 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11216 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11217
11218 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11219
11220 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11221 NUM_PSEUDO_REGS can be used.
11222
11223 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11224
11225 * arch-utils.h: Update copyright.
11226
11227 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11228 * gdbarch.h, gdbarch.c: Re-generate.
11229
11230 * inferior.h (IN_SIGTRAMP): Delete definition.
11231 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11232 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11233
11234 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11235 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11236 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11237 (find_proc_framesize): Ditto.
11238 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11239 (alpha_init_extra_frame_info): Ditto.
11240 * infrun.c (handle_inferior_event): Ditto.
11241 (handle_inferior_event): Ditto.
11242 (check_sigtramp2): Ditto.
11243 * blockframe.c (create_new_frame): Ditto.
11244 (get_prev_frame): Ditto.
11245 * ppc-linux-tdep.c: Update comments.
11246 * i386-linux-tdep.c: Update comments.
11247 * breakpoint.c (bpstat_what): Update comment.
11248
11249 2002-04-24 David S. Miller <davem@redhat.com>
11250
11251 * i960-tdep.c (register_in_window_p): New function.
11252 (i960_find_saved_register): Use it instead of
11253 REGISTER_IN_WINDOW_P.
11254 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11255
11256 * symtab.h (find_stab_function_addr): Kill extern.
11257 * minsyms.c (find_stab_function_addr): Remove from here...
11258 * dbxread.c: ... to here, and mark it static.
11259
11260 2002-04-20 David S. Miller <davem@redhat.com>
11261
11262 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11263 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11264
11265 2002-04-21 David S. Miller <davem@redhat.com>
11266
11267 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11268 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11269 (vx_write_register): Likewise.
11270
11271 2002-04-23 J. Brobecker <brobecker@gnat.com>
11272
11273 * source.c (is_regular_file): New function.
11274 (openp): Check wether file to open is a regular file
11275 to avoid opening directories.
11276
11277 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11278
11279 * findvar.c (extract_signed_integer): Cast printf argument
11280 to suppress format warning.
11281 (extract_unsigned_integer): Likewise.
11282 * infcmd.c (registers_info): Likewise.
11283 * top.c (get_prompt_1): Likewise.
11284 * valops.c (value_assign): Likewise.
11285 * valprint.c (print_decimal): Likewise.
11286
11287 2002-04-22 H.J. Lu (hjl@gnu.org)
11288
11289 * c-exp.y (typebase): Support
11290
11291 [long|long long|short] [signed|unsigned] [int|]
11292
11293 and
11294
11295 signed [long|long long|short] int
11296
11297 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11298
11299 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11300 and vax-tdep.h.
11301 * vax-tdep.h: New file.
11302 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11303 Make several routines static.
11304 (vax_get_saved_register): New function.
11305 (vax_gdbarch_init): New function.
11306 (_initialize_vax_tdep): Register vax_gdbarch_init.
11307 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11308 Remove macros now under the control of gdbarch.
11309
11310 2002-04-22 Michael Snyder <msnyder@redhat.com>
11311
11312 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11313 Some whitespace and coding standards tweaks.
11314
11315 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11316
11317 * vax-tdep.c: Include regcache.h.
11318 (vax_call_dummy_words): New.
11319 (sizeof_vax_call_dummy_words): New.
11320 (vax_fix_call_dummy): New function.
11321 (vax_saved_pc_after_call): Ditto.
11322 * config/vax/tm-vax.h: Don't include regcache.h.
11323 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11324 (CALL_DUMMY): Remove.
11325 (CALL_DUMMY_WORDS): Define.
11326 (SIZEOF_CALL_DUMMY_WORDS): Define.
11327 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11328
11329 2002-04-18 Michael Snyder <msnyder@redhat.com>
11330
11331 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11332
11333 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11334
11335 * vax-tdep.c (vax_frame_chain): New function.
11336 (vax_push_dummy_frame): Ditto.
11337 (vax_pop_frame): Ditto.
11338 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11339 (FRAMELESS_FUNCTION_INVOCATION): Use
11340 generic_frameless_function_invocation_not.
11341 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11342 (POP_FRAME): Use vax_pop_frame.
11343
11344 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11345
11346 * vax-tdep.c (vax_store_struct_return): New function.
11347 (vax_extract_return_value): Ditto.
11348 (vax_store_return_value): Ditto.
11349 (vax_extract_struct_value_address): Ditto.
11350 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11351 vax_store_struct_return.
11352 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11353 (STORE_RETURN_VALUE): Use vax_store_return_value.
11354 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11355
11356 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11357
11358 * vax-tdep.c (vax_frame_saved_pc): New function.
11359 (vax_frame_args_address_correct): Ditto.
11360 (vax_frame_args_address): Ditto.
11361 (vax_frame_locals_address): Ditto.
11362 (vax_frame_num_args): Move code to be in proximity to
11363 other frame-related functions.
11364 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11365 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11366 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11367 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11368 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11369
11370 2002-04-22 H.J. Lu (hjl@gnu.org)
11371
11372 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11373 includedir.
11374
11375 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11376
11377 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11378 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11379 (FRAME_INIT_SAVED_REGS): New macro.
11380
11381 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11382
11383 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11384
11385 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11386
11387 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11388 where needed.
11389 (fetch_osf_core_registers): Likewise.
11390 (supply_gregset): Likewise.
11391
11392 2002-04-22 J. Brobecker <brobecker@gnat.com>
11393
11394 * symfile.h (get_section_index): Define.
11395 * symfile.c (get_section_index): New function.
11396 * mdebugread.c (SC_IS_SBSS): New macro.
11397 (SC_IS_BSS): Return true for the scBss storage class only, as
11398 the scSBss storage class refers to the .sbss section.
11399 (parse_partial_symbols): Discard the symbols which associated
11400 section does not exist.
11401 Make sure to use the .sbss section index for symbols which
11402 storage class is scBss, rather than using the .bss section index.
11403
11404 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11405
11406 * vax-tdep.c: Update copyright years.
11407 (vax_register_name): New function.
11408 (vax_register_byte): Ditto.
11409 (vax_register_raw_size): Ditto.
11410 (vax_register_virtual_size): Ditto.
11411 (vax_register_virtual_type): Ditto.
11412 * config/vax/tm-vax.h: Update copyright years.
11413 (REGISTER_NAMES): Remove.
11414 (REGISTER_NAME): Define.
11415 (REGISTER_BYTE): Use vax_register_byte.
11416 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11417 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11418 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11419
11420 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11421
11422 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11423 declaration
11424 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11425
11426 2002-04-21 David S. Miller <davem@redhat.com>
11427
11428 * arch-utils.c (generic_prologue_frameless_p): Kill
11429 SKIP_PROLOGUE_FRAMELESS_P code.
11430 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11431 references.
11432 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11433 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11434 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11435 references.
11436 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11437 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11438 (sparc_gdbarch_init): Pass it to
11439 set_gdbarch_prologue_frameless_p.
11440
11441 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11442
11443 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11444 (alphabsd-nat.o): New dependency list.
11445
11446 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11447
11448 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11449 alphafbsd-tdep.c.
11450 (alpha-linux-tdep.o): New dependency list.
11451 (alphafbsd-tdep.o): Likewise.
11452
11453 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11454
11455 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11456 to here...
11457 * alpha-tdep.c: ...from here.
11458 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11459
11460 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11461
11462 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11463 prototype from here...
11464 * alpha-tdep.h: ...to here.
11465
11466 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11467
11468 * frame.h (selected_frame_level): Document as deprecated.
11469 (frame_relative_level): Declare.
11470 * stack.c (frame_relative_level): New function.
11471 (selected_frame_level): Document as deprecated.
11472 (select_frame): Do not set the selected_frame_level.
11473
11474 * stack.c (frame_info, record_selected_frame): Update.
11475 (frame_command, current_frame_command): Update.
11476 (up_silently_base, up_command, down_silently_base): Update.
11477 (down_command): Update.
11478 * inflow.c (kill_command): Update.
11479 * tracepoint.c (finish_tfind_command): Update.
11480 * corelow.c (core_open): Update.
11481 * thread.c (info_threads_command): Update.
11482 (do_captured_thread_select): Update.
11483 * infcmd.c (finish_command): Update.
11484 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11485
11486 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11487
11488 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11489
11490 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11491
11492 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11493 type const.
11494
11495 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11496
11497 * alphafbsd-tdep.c: Update copyright years. Include
11498 alpha-tdep.h.
11499 (alphafbsd_use_struct_convention): Make static.
11500 (alphafbsd_init_abi): New function.
11501 (_initialize_alphafbsd_tdep): New function.
11502 * config/alpha/tm-fbsd.h: Update copyright years.
11503 (USE_STRUCT_CONVENTION): Remove.
11504
11505 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11506
11507 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11508 an Alpha ABI variant.
11509 (alpha_abi_handler_list): Declare.
11510 (alpha_gdbarch_register_os_abi): New function.
11511 (alpha_gdbarch_init): Give registered ABI variant handlers a
11512 chance to tweak the gdbarch once we have set up defaults.
11513 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11514
11515 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11516
11517 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11518 to standard_coerce_float_to_double.
11519 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11520
11521 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11522
11523 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11524 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11525 from gdbarch_tdep rather than a constant.
11526 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11527 the default text address for all Alpha Unix ABIs.
11528 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11529 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11530
11531 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11532
11533 * alpha-tdep.h: New file. Includes several Alpha target constants
11534 taken from...
11535 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11536 let gdbarch deal with.
11537 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11538 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11539 to dependency list.
11540 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11541 Alpha target register names.
11542 * alphabsd-nat.c: Likewise.
11543 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11544 Alpha target register names. Make serveral routines static.
11545 (alpha_get_saved_register): New function.
11546 (alpha_abi_names): New.
11547 (process_note_abi_tag_sections): New function.
11548 (get_elfosabi): New function.
11549 (alpha_gdbarch_init): New function.
11550 (alpha_dump_tdep): New function.
11551 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11552
11553 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11554
11555 * frame.c (find_saved_register): Delete #ifdef
11556 HAVE_REGISTER_WINDOWS code.
11557 * config/sparc/tm-sparc.h: Update comments.
11558 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11559
11560 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11561
11562 * i960-tdep.c (i960_find_saved_register): New function.
11563 (i960_get_saved_register): New function.
11564 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11565 (i960_get_saved_register): Declare.
11566 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11567
11568 2002-04-20 David S. Miller <davem@redhat.com>
11569
11570 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11571
11572 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11573
11574 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11575 instead of NUM_PSEUDO_REGS.
11576
11577 2002-04-20 David S. Miller <davem@redhat.com>
11578
11579 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11580 GDB_MULTI_ARCH_PARTIAL
11581 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11582 define, let tm-sp64.h do it.
11583
11584 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11585
11586 * frame.c (find_saved_register): Avoid a NULL pointer
11587 dereference and actually walk the frame list.
11588
11589 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11590
11591 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11592 sorted in most most-recent-used order. Document.
11593 * gdbarch.h, gdbarch.c: Regenerate.
11594
11595 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11596
11597 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11598 instead of ->prev.
11599 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11600 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11601 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11602 instead of ->prev.
11603
11604 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11605
11606 Fix PR gdb/471.
11607 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11608 (build_builtin_type_vec128): Ditto.
11609 (append_composite_type_field): Fix calculation of type length in
11610 union case.
11611
11612 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11613
11614 * config/djgpp/README: Update.
11615
11616 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11617 compiler warnings.
11618
11619 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11620
11621 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11622 (alpha_setup_arbitrary_frame): ...to this.
11623 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11624 for alpha_setup_arbitrary_frame.
11625
11626 2002-04-18 Andrew Cagney <cagney@redhat.com>
11627
11628 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11629 * gdbarch.h, gdbarch.c: Regenerate.
11630
11631 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11632 * target.h (memory_breakpoint_from_pc): Update declaration.
11633 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11634
11635 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11636 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11637 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11638 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11639 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11640 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11641 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11642 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11643 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11644 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11645 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11646 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11647
11648 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11649 const pointer.
11650 * monitor.c (monitor_insert_breakpoint): Ditto.
11651 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11652
11653 * config/mcore/tm-mcore.h: Update copyright.
11654 * mem-break.c: Ditto.
11655 * xstormy16-tdep.c: Ditto.
11656
11657 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11658
11659 * p-exp.y: Add precedence rule for '^' token.
11660 This removes the shift/reduce conflicts.
11661 Remove the comment concerning these shift/reduce conflicts.
11662
11663 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11664
11665 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11666 (registers_powerpc_nofp): New register set for processors
11667 without floating point unit.
11668
11669 2002-04-18 David S. Miller <davem@redhat.com>
11670
11671 * MAINTAINERS: Add myself to write-after-approval.
11672
11673 2002-04-17 Michael Snyder <msnyder@redhat.com>
11674
11675 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11676
11677 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11678
11679 * rs6000-tdep.c (frame_initial_stack_address): Use
11680 frame_register_read to read the alloca_reg.
11681
11682 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11683
11684 * frame.c (find_saved_register): Find saved registers in the next
11685 not prev frame.
11686 Fix PR gdb/365.
11687
11688 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11689
11690 * gdbarch.sh (LANG): Set to ``c''.
11691
11692 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11693
11694 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11695
11696 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11697
11698 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11699 Update copyright.
11700
11701 * hpread.c (hpread_get_lntt): Add declaration.
11702 Also fix PR gdb/391.
11703
11704 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11705
11706 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11707 * aclocal.m4, configure: Re-generate.
11708 Fix PR gdb/391.
11709
11710 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11711
11712 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11713 instead of tm_print_insn.
11714
11715 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11716
11717 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11718
11719 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11720
11721 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11722 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11723 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11724
11725 2002-04-12 Don Howard <dhoward@redhat.com>
11726
11727 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11728 max_user_call_depth.
11729 (init_cmd_lists): Initialize the new value;
11730 * cli/cli-script.c (execute_user_command): Limit the call depth of
11731 user defined commands. This avoids a core-dump when user commands
11732 are infinitly recursive.
11733
11734 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11735
11736 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11737 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11738 from tdep struct instead of DEFAULT_LR_SAVE.
11739 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11740 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11741 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11742
11743 2002-04-12 Michael Snyder <msnyder@redhat.com>
11744
11745 * Remote.c: Spelling fix.
11746 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11747 If no symbol found for "sbrk", try "_sbrk".
11748 (make_output_phdrs): Use bfd_section_name.
11749 (gcore_copy_callback): Use bfd_section_name.
11750 * eval.c: Indentation fix-ups.
11751 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11752 in case it gets applied to an address that is already
11753 in the instruction space.
11754 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11755 * symfile.c: Fix indentation, long lines.
11756 * source.c: White space fix-up.
11757
11758 2002-04-12 Andrew Cagney <cagney@redhat.com>
11759
11760 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11761 * frame.c (frame_register_read): New function. Return non-zero on
11762 success.
11763 (read_relative_register_raw_bytes_for_frame): Delete.
11764 (read_relative_register_raw_bytes): Delete.
11765 * frame.h (frame_register_read): Declare.
11766 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11767 * sh-tdep.c: Ditto.
11768 * infcmd.c (do_registers_info): Ditto.
11769 * hppa-tdep.c: Ditto.
11770 * rs6000-tdep.c: Ditto.
11771 * h8500-tdep.c: Ditto.
11772 * mips-tdep.c: Ditto.
11773 * h8300-tdep.c: Ditto.
11774 * z8k-tdep.c: Ditto.
11775
11776 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11777
11778 From Jimi X <jimix@watson.ibm.com>:
11779 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11780 64-bit SysV ABI.
11781
11782 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11783
11784 From Jimi X <jimix@watson.ibm.com>:
11785 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11786 bfd info.
11787
11788 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11789
11790 From Jimi X <jimix@watson.ibm.com>:
11791 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11792 register sets for these processor variants.
11793
11794 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11795
11796 * regformats/reg-ppc.dat: Support FPSCR.
11797
11798 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11799
11800 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11801 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11802 Add fpscr as an invalid/unfetchable register.
11803 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11804 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11805 (fill_fpregset): Add support for register fpscr.
11806 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11807 (fill_gregset): Account for the fact that register ``mq'' might
11808 not exist.
11809 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11810 (registers_power): Add fpscr to register set at slot 71.
11811 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11812 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11813
11814 2002-04-11 Michael Snyder <msnyder@redhat.com>
11815
11816 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11817 * configure: Regenerate.
11818 * config.in: Regenerate.
11819 * acconfig.h: Add define for _SYSCALL32.
11820 * core-sol2.c: Remove #define _SYSCALL32.
11821 * solib-legacy.c: Remove #define _SYSCALL32.
11822
11823 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11824
11825 * stack.c (select_frame): Cleanup internal error message, do not
11826 use %p.
11827
11828 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11829
11830 * stack.c (select_frame): Check that selected_frame and the
11831 specified level are as expected.
11832 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11833 Update copyright.
11834 * frame.h (struct frame_info): Add field `level'. Update
11835 copyright.
11836 Work-in-progress PR gdb/464.
11837
11838 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11839
11840 * maint.c (maint_print_section_info): Rename print_section_info.
11841 (print_bfd_section_info, print_objfile_section_info): Update.
11842 * inferior.h (struct gdbarch): Add opaque declaration.
11843 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11844 * gdbarch.h: Regenerate.
11845
11846 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11847
11848 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11849 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11850 (kernel_u_size): Added.
11851 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11852 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11853
11854 2002-04-04 Jim Ingham <jingham@apple.com>
11855
11856 * valarith.c (find_size_for_pointer_math): New function, either returns
11857 the size for a pointer's target, returns 1 for void *, or errors for
11858 incomplete types.
11859 (value_add, value_sub): use find_size_for_pointer_math.
11860
11861 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11862
11863 * linux-low.c (linux_look_up_symbols): New hook.
11864 (linux_target_ops): Add linux_look_up_symbols.
11865 * remote-utils.c (decode_address): New function.
11866 (look_up_one_symbol): New function.
11867 * server.c (handle_query): Call target look_up_symbols hook.
11868 * server.h (look_up_one_symbol): Add prototype.
11869 * target.h (struct target_ops): Add look_up_symbols hook.
11870
11871 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11872
11873 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11874 override FP_REGNUM with frame->fp. Update copyright.
11875 * parse.c (num_std_regs, std_regs): Delete.
11876 (target_map_name_to_register): Do not search std_regs. Update
11877 function description.
11878 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11879 declarations. Update copyright.
11880 Fix PR gdb/251.
11881
11882 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11883
11884 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11885 after the last symbol in a block.
11886
11887 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11888
11889 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11890 is non zero as a found symbol.
11891
11892 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11893
11894 * findvar.c: Include "builtin-regs.h".
11895 (value_of_register): Call value_of_builtin_reg when applicable.
11896 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11897 (target_map_name_to_register): Call
11898 builtin_reg_map_name_to_regnum.
11899 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11900 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11901 (builtin_regs_h): Define.
11902 (builtin-regs.o): New target.
11903 (findvar.o): Add $(builtin_regs_h).
11904 * builtin-regs.c, builtin-regs.h: New files.
11905 * std-regs.c: New file.
11906 Partial fix for PR gdb/251.
11907
11908 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11909
11910 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11911 it's no longer required.
11912
11913 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11914
11915 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11916
11917 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11918
11919 From Jimi X <jimix@watson.ibm.com>:
11920 * rs6000-tdep.c (rs6000_software_single_step): Use
11921 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11922 and size. Use target_insert_breakpoint() and
11923 target_remove_breakpoint() to insert and remove breakpoints
11924 instead of explicit memory reads and writes.
11925
11926 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11927
11928 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11929 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11930 ELF_OBJECT_FORMAT ifdef.
11931
11932 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11933
11934 From Jimi X <jimix@watson.ibm.com>:
11935 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11936
11937 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11938
11939 From Jimi X <jimix@watson.ibm.com>:
11940 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11941 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11942
11943 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11944
11945 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11946 s/asprintf/xasprintf/.
11947 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11948
11949 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11950
11951 I believe Jeff Law denies responsability for this one:
11952 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11953 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11954 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11955 Work-around for PR gdb/366.
11956
11957 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11958
11959 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11960 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11961 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11962
11963 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11964
11965 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11966 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11967 information.
11968
11969 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11970
11971 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11972 maintainer.
11973
11974 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11975
11976 * README (Reporting Bugs in GDB): Document the bug web page as the
11977 prefered way of submitting bugs.
11978 Fix PR gdb/402.
11979
11980 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11981
11982 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11983 -1. Update comment.
11984 * gdbarch.h, gdbarch.c: Re-generate.
11985
11986 2002-04-07 Andreas Schwab <schwab@suse.de>
11987
11988 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11989 buffer to regcache_collect.
11990
11991 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11992
11993 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11994 * gdbarch.c, gdbarch.h: Re-generate.
11995
11996 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11997
11998 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11999 declaration. Fix -Werror.
12000
12001 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12002
12003 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12004 * gdbarch.c: Regenerate.
12005
12006 2002-04-05 Michael Snyder <msnyder@redhat.com>
12007
12008 * breakpoint.c (clear_command): Rewrite middle section to
12009 combine two loops with identical control conditions.
12010 Add a cleanup to eliminate a memory leak.
12011 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12012
12013 2002-04-05 H.J. Lu (hjl@gnu.org)
12014
12015 * solib-svr4.c (bkpt_names): Add "__start".
12016
12017 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12018
12019 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12020 as test for 64 bit target.
12021
12022 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12023
12024 * h8500-tdep.c (h8500_write_fp): Delete function.
12025 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12026 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12027 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12029 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12030 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12031 (s390_write_fp):
12032 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12033 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12034 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12035 (d10v_write_fp): Delete function.
12036 * inferior.h (write_fp, generic_target_write_fp): Delete
12037 declarations.
12038 * regcache.c (generic_target_write_fp): Delete function.
12039 (write_fp): Delete function.
12040 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12041 * gdbarch.h, gdbarch.c: Regenerate.
12042 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12043 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12044 (sparc64_write_fp): Delete declaration.
12045 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12046 (h8500_write_fp): Delete declaration.
12047
12048 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12049
12050 * sparc-tdep.c (sparc64_write_fp): Delete.
12051 (sparc_push_dummy_frame): Replace write_fp call with code to store
12052 the FP directly.
12053 (sparc_gdbarch_init): Do not initialize write_fp.
12054
12055 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12056
12057 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12058 clause.
12059
12060 2002-03-29 Jim Blandy <jimb@redhat.com>
12061
12062 * stack.c (get_selected_block): Add new argument `addr_in_block',
12063 used to return the exact code address we used to select the block,
12064 not just the block.
12065 * blockframe.c (get_frame_block, get_current_block): Same.
12066 * frame.h (get_frame_block, get_current_block,
12067 get_selected_block): Update declarations.
12068 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12069 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12070
12071 2002-04-05 Michael Snyder <msnyder@redhat.com>
12072
12073 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12074 warning message.
12075
12076 2002-04-05 J. Brobecker <brobecker@gnat.com>
12077
12078 * utils.c (xfullpath): New function.
12079 * defs.h (xfullpath): Add declaration.
12080 * source.c (openp): Use xfullpath in place of gdb_realpath to
12081 avoid resolving the basename part of filenames when the
12082 associated file is a symbolic link. This fixes a potential
12083 inconsistency between the filenames known to GDB and the
12084 filenames it prints in the annotations.
12085 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12086 to be able to match a filename with either the real filename, or
12087 the name of any symbolic link to this file.
12088 (lookup_partial_symtab): Ditto.
12089
12090 2002-04-04 Michael Snyder <msnyder@redhat.com>
12091
12092 * breakpoint.c: Add support for hardware breakpoints in overlays.
12093 (overlay_events_enabled): New state variable.
12094 (insert_breakpoints): Use overlay_events_enabled to decide
12095 whether to attempt to set a breakpoint at the overlay load addr.
12096 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12097 (remove_breakpoint): Use overlay_events_enabled to decide
12098 whether breakpoints need to be removed from overlay load addr.
12099 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12100 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12101 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12102 disable_overlay_breakpoints): Update overlay_events_enabled.
12103
12104 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12105
12106 * dwarf2read.c (struct function_range): New.
12107 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12108 (check_cu_functions): New.
12109 (read_file_scope): Initialize global function lists.
12110 Call dwarf_decode_line after processing children.
12111 (read_func_scope): Add to global function list.
12112 (dwarf_decode_lines): Call check_cu_functions everywhere
12113 record_line is called. Call record_line with a linenumber
12114 of 0 to mark sequence ends.
12115
12116 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12117
12118 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12119 change sync with glibc.
12120
12121 2002-04-03 Jim Blandy <jimb@redhat.com>
12122
12123 * configure.in: Call AC_C_INLINE.
12124 * configure: Regenerated.
12125
12126 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12127
12128 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12129 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12130
12131 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12132
12133 * NEWS: Mention gcore support on FreeBSD/i386.
12134
12135 * fbsd-proc.c: New file.
12136 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12137 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12138
12139 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12140 while statement.
12141
12142 2002-03-29 Jim Blandy <jimb@redhat.com>
12143
12144 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12145 unescaped newlines in string literals, but newer ones don't. So
12146 escape them.
12147
12148 2002-03-26 Michael Snyder <msnyder@redhat.com>
12149 Andrew Cagney <cagney@redhat.com>
12150
12151 * cli/cli-dump.c: New file. Dump memory to file,
12152 restore file to memory.
12153 * cli/cli-dump.h: New file.
12154 * Makefile.in: Add rules, dependencies for cli-dump.o.
12155 * NEWS: Mention new commands.
12156
12157 2002-03-28 Michael Snyder <msnyder@redhat.com>
12158
12159 * symfile.c (symbol_file_add): Move test for null symbols to later.
12160
12161 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12162
12163 From veksler at il.ibm.com:
12164 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12165 the xstrduped original path.
12166 Fix PR gdb/417.
12167
12168 2002-03-27 Michael Snyder <msnyder@redhat.com>
12169
12170 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12171 * infcmd.c (_initialize_infcmd): Ditto.
12172 * language.c (_initialize_language): Ditto.
12173 * symfile.c (_initialize_symfile): Ditto.
12174 * top.c (_init_main): Ditto.
12175 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12176
12177 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12178
12179 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12180 vector registers handling.
12181 (skip_prologue): Handle new AltiVec instructions. Fill in new
12182 fields of frame data.
12183 (frame_get_saved_regs): Fill in information for AltiVec registers.
12184
12185 2002-03-27 Jim Blandy <jimb@redhat.com>
12186
12187 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12188 a function; leave this macro here to invoke that function.
12189 (symbol_init_mangled_name): Declaration for that function.
12190 * symtab.c (symbol_init_mangled_name): New function.
12191
12192 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12193
12194 * valarith.c: Replace strerror with safe_strerror.
12195 * tracepoint.c: Ditto.
12196 * lin-lwp.c: Ditto.
12197 * go32-nat.c: Ditto.
12198 * inflow.c: Ditto.
12199 * gnu-nat.c: Ditto.
12200
12201 2002-03-27 Andreas Schwab <schwab@suse.de>
12202
12203 * event-top.c (command_line_handler): Remove useless if.
12204
12205 2002-03-27 Andreas Jaeger <aj@suse.de>
12206
12207 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12208 comment.
12209
12210 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12211
12212 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12213 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12214 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12215 (x86_64_linux_dr_get_status, supply_gregset),
12216 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12217 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12218 (x86_64_register_info_table): Add.
12219 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12220 (x86_64_register_raw_size, x86_64_register_virtual_type),
12221 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12222 general x86_64_register_info_table.
12223 (i386_gdbarch_init): gdbarch_register_bytes is now set
12224 dynamicaly during initialization.
12225 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12226 * gdbserver/linux-x86-64-low.c: Ditto.
12227
12228 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12229
12230 * gdbserver/server.c (main): Call target_signal_to_host_p
12231 and target_signal_to_host on signals received from the remote.
12232 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12233 target_signal_from_host on signals sent to the remote.
12234 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12235 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12236
12237 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * signals/signals.c: Include "server.h" in gdbserver build.
12240 (target_signal_from_name): Don't use STREQ.
12241 (_initialize_signals): Likewise. Don't include function in
12242 gdbserver build.
12243
12244 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * signals.c: Moved to...
12247 * signals/signals.c: Here.
12248 * Makefile (signals.o): Update.
12249
12250 2002-03-26 Jeff Law (law@redhat.com)
12251
12252 * somread.c (som_symtab_read): Remove some commented out code and
12253 updated related comments. Do not set the minimal symbol table to
12254 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12255 in a dynamic executable.
12256 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12257 where we are unable to find the minimal symbol for the given
12258 PC value.
12259
12260 2002-03-25 Jeff Law (law@redhat.com)
12261
12262 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12263
12264 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12265
12266 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12267
12268 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12269
12270 * command.h: Update copyright.
12271 (struct cmd_list_element): Replace definition with opaque
12272 declaration.
12273 (enum cmd_types): Document that it will eventually be moved to
12274 cli/cli-decode.h
12275 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12276 (MALLOCED_REPLACEMENT): Delete macro.
12277 * Makefile.in (cli_decode_h): Add $(command_h).
12278 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12279 * top.c: Include "cli/cli-decode.h".
12280 * completer.c: Include "cli/cli-decode.h".
12281 * maint.c: Include "cli/cli-decode.h".
12282 * cli/cli-decode.h: Include "command.h".
12283 (enum command_class): Delete.
12284 (enum cmd_types): Comment out.
12285 (enum cmd_auto_boolean): Delete.
12286 (enum var_types): Delete.
12287
12288 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12289
12290 * cli/cli-decode.c: Include "gdb_assert.h".
12291 (add_set_or_show_cmd): New static function.
12292 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12293 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12294 all fields, such as func, from the set command.
12295
12296 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12297
12298 * MAINTAINERS (sh-elf): Change warning flag to -w.
12299
12300 2002-03-23 Andrew Cagney <cagney@redhat.com>
12301
12302 * defs.h (error): Add printf format attribute.
12303 * thread-db.c (thread_from_lwp): Fix error format string.
12304 * stack.c (parse_frame_specification): Ditto.
12305 * cli/cli-decode.c (undef_cmd_error): Ditto.
12306 * scm-lang.c (scm_lookup_name): Ditto.
12307 * tracepoint.c (trace_error): Ditto.
12308 * remote-utils.c (usage): Ditto.
12309 * remote.c (compare_sections_command): Ditto.
12310 Fix PR gdb/328.
12311
12312 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12313
12314 * gdbtypes.c (append_composite_type_field): New function.
12315 (init_composite_type): New function.
12316 * gdbtypes.h (append_composite_type_field): Declare.
12317 (init_composite_type): Ditto.
12318
12319 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12320
12321 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12322 function.
12323 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12324 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12325 structure returning convention for SYSV ABI case, but not
12326 for GNU/Linux, FreeBSD, or NetBSD.
12327
12328 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12329
12330 * symtab.h (lookup_block_symbol): Add mangled_name argument
12331 to prototype.
12332
12333 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12334 with new mangled_name argument.
12335 * linespec.c (decode_line_1): Likewise.
12336 * valops (value_of_this): Likewise.
12337 * symtab.c (lookup_transparent_type): Likewise.
12338 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12339 (lookup_symbol): If we are given a mangled name, pass it down
12340 to lookup_symbol_aux.
12341 (lookup_block_symbol): If we are given a mangled name to check
12342 against, only return symbols which match it.
12343
12344 2002-03-22 Christopher Faylor <cgf@redhat.com>
12345
12346 * win32-nat.c (child_create_inferior): Check for proper shell to use
12347 here, in case the user changes it on the fly.
12348 (_initialize_inftarg): Remove shell path considerations.
12349
12350 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12351
12352 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12353 for gdbarch_max_register_raw_size and max_register_virtual_size.
12354 Adjust copyright year.
12355
12356 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12357
12358 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12359 in a function to cover the entire beginning of the function
12360 as well if it does not already.
12361
12362 2002-03-21 Tom Rix <trix@redhat.com>
12363
12364 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12365 (rs6000_ptrace64): Renamed from ptrace64.
12366
12367 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12368
12369 * gdbserver/remote-utils.c (remote_open): Don't call
12370 getprotobyname, we're all using TCP here so just use
12371 IPPROTO_TCP.
12372 * gdbserver/gdbreplay.c (remote_open): Ditto.
12373
12374 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12375
12376 * regcache.c (_initialize_regcache): No need to call
12377 build_regcache() at this time; it gets called whenever
12378 the gdbarch changes.
12379
12380 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12381
12382 * sparc-nat.c: Include sys/param.h where possible.
12383
12384 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12385
12386 Fix PR gdb/422.
12387 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12388 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12389 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12390 complex types.
12391 * stabsread.c (rs6000_builtin_type): Likewise.
12392 (read_sun_floating_type): Likewise.
12393
12394 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12395
12396 * stabsread.c (read_member_functions): Remove skip code for duplicate
12397 constructor/destructor methods. Use standard parsing for these
12398 methods and just do not chain them to the list of methods after
12399 parsing.
12400
12401 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12402
12403 * coffread.c: Remove redundant static declarations. Replace
12404 occurrences of `PTR' with `void *'.
12405 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12406 * top.h (quit_cover): Likewise.
12407 * defs.h (catch_errors): Likewise.
12408
12409 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12410
12411 * defs.h (XMALLOC): Define.
12412 * gdb-events.sh (XMALLOC): Delete macro.
12413 * gdb-events.c, gdb-events.h: Regenerate.
12414 * gdbarch.sh (XMALLOC): Delete macro.
12415 * gdbarch.c: Regenerate.
12416 * serial.c (XMALLOC): Delete macro.
12417 * ui-file.c (XMALLOC): Ditto.
12418 * ser-unix.h (XMALLOC): Ditto.
12419 * sh-tdep.c (XMALLOC): Ditto.
12420 * ui-out.c (XMALLOC): Ditto.
12421 * utils.c (XMALLOC): Ditto.
12422 * i386-tdep.c (XMALLOC): Ditto.
12423 * gdb-events.c (XMALLOC): Ditto.
12424 * d10v-tdep.c (XMALLOC): Ditto.
12425 * cli-out.c (XMALLOC): Ditto.
12426
12427 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12428 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12429 * ui-file.c, ui-out.c: Ditto.
12430
12431 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12432
12433 * command.h (struct cmd_list_element): Add field context.
12434 (set_cmd_context, get_cmd_context): Declare.
12435 * cli/cli-decode.h: Ditto.
12436 * cli/cli-decode.c (get_cmd_context): New function.
12437 (set_cmd_context): New function.
12438 (add_cmd): Initialize context.
12439 Part of fixing PR gdb/145 and PR gdb/146.
12440
12441 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12442
12443 * cli/cli-decode.c (cmd_type): New function.
12444 * command.h (cmd_type): Declare.
12445 * infrun.c (set_schedlock_func): Call function cmd_type.
12446 * kod.c (kod_set_os): Call cmd_type.
12447 * cris-tdep.c (cris_version_update): Use function cmd_type.
12448 (cris_mode_update, cris_abi_update): Ditto.
12449
12450 * command.h: (execute_cmd_post_hook): Declare.
12451 (execute_cmd_pre_hook): Declare.
12452 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12453 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12454 functions. Execute pre/post hook while ensuring that afterwords
12455 hook_in is cleared.
12456 * top.c (execute_command): Use execute_cmd_post_hook, and
12457 execute_cmd_pre_hook to execute pre/post commands.
12458 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12459 hook_stop_stub.
12460 (hook_stop_stub): Call execute_cmd_pre_hook.
12461
12462 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12463
12464 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12465 set'' and this leads to a core dump. Move xstrdup of
12466 operating_system to after check that it is not NULL.
12467
12468 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12469
12470 * kod.c (kod_set_os): Remove unnecessary check that
12471 ``command->type'' is set_cmd.
12472
12473 * valprint.c (set_input_radix): Use input_radix.
12474 (set_output_radix): Use output_radix.
12475 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12476 isn't reverted.
12477
12478 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12479
12480 * value.h (struct value): Delete field ``substring_addr''. Change
12481 aligner fields to force_doublest_align, force_longest_align,
12482 force_core_addr_align and force_pointer_aligh.
12483
12484 * value.h (struct value): Fix typo in above change.
12485
12486 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12487
12488 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12489 to fix internal_error from ``maintenance print architecture''.
12490
12491 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12492
12493 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12494 for gcc versions after gcc-2.8.1.
12495
12496 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12497
12498 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12499 for method resolution. Restore adjustment of ``this'' pointer after
12500 calling value_struct_elt, which was accidentally removed during the
12501 HP merge.
12502
12503 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12504
12505 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12506 value_of_register.
12507 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12508 get_saved_register.
12509 * value.h (value_of_register): Update.
12510
12511 2002-03-14 Richard Henderson <rth@redhat.com>
12512
12513 * configure.in: Detect declaration for canonicalize_file_name.
12514 * utils.c (canonicalize_file_name): Declare, if needed.
12515 (gdb_realpath): Prefer realpath if available and usable.
12516 * config.in, configure: Rebuild.
12517
12518 2002-03-14 Richard Henderson <rth@redhat.com>
12519
12520 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12521 a constant array bound.
12522
12523 * MAINTAINERS: Add myself to write-after-approval.
12524
12525 2002-03-14 Michael Snyder <msnyder@redhat.com>
12526
12527 * symfile.c (syms_from_objfile): Return immediately if no syms.
12528 (symbol_file_add): Return immediately if no syms.
12529 (find_sym_fns): Return immediately if no syms.
12530
12531 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12532
12533 * gdbserver/remote-util.c (remote_open): Print remote-side's
12534 IP address when remote debugging over the network.
12535
12536 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12537
12538 * config/sparc/fbsd.mh: Fix copyright.
12539 * config/sparc/fbsd.mt: Likewise.
12540
12541 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12542
12543 * MAINTAINERS: Fix typo in name of gdb warnings option.
12544 (x86-64): Fix formating so that this can be parsed by awk.
12545
12546 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12547
12548 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12549 * defs.h: Include "gdb/signals.h".
12550 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12551
12552 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12553
12554 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12555 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12556 from x86-64-tdep.h
12557
12558 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12559 Don Howard <dhoward@redhat.com>
12560
12561 * mips-tdep.c (ST0_FR): Define.
12562 (mips2_fp_compat): New function, temporarily disabled.
12563 (mips_read_fp_register_single): New function.
12564 (mips_read_fp_register_double): New function.
12565 (mips_print_register): Use them.
12566 (do_fp_register_row): Likewise.
12567
12568 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12569
12570 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12571 approval''.
12572
12573 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12574
12575 * stabsread.c (read_member_functions): Fix is_stub test for
12576 static member functions, improve comment.
12577
12578 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12579
12580 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12581 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12582 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12583 commands that set boolean values.
12584 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12585 (arm_rdi_resume): Always initialize PC.
12586 (arm_rdi_open): Don't use rslt as a boolean.
12587 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12588 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12589 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12590 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12591
12592 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12593
12594 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12595 * configure: Rebuilt.
12596
12597 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12598
12599 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12600 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12601
12602 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12603
12604 * cli/cli-decode.c (set_cmd_completer): New function.
12605 * command.h (set_cmd_completer): Declare.
12606 * cli/cli-decode.h (set_cmd_completer): Ditto.
12607
12608 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12609 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12610 * win32-nat.c (_initialize_inftarg): Ditto.
12611 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12612 * proc-api.c (_initialize_proc_api): Ditto.
12613 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12614 * source.c (_initialize_source): Ditto.
12615 * exec.c (_initialize_exec): Ditto.
12616 * solib.c (_initialize_solib): Ditto.
12617 * top.c (init_main): Ditto.
12618 * tracepoint.c (_initialize_tracepoint): Ditto.
12619 * symfile.c (_initialize_symfile): Ditto.
12620 * printcmd.c (_initialize_printcmd): Ditto.
12621 * infcmd.c (_initialize_infcmd): Ditto.
12622 * corefile.c (_initialize_core): Ditto.
12623
12624 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12625
12626 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12627
12628 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12629
12630 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12631
12632 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12633
12634 * NEWS: Update headings, 5.2 has branched.
12635
12636 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12637
12638 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12639 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12640 (register_addr, REGISTER_RAW_SIZE): Likewise.
12641 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12642 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12643
12644 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12645
12646 * MAINTAINERS (x86-64): Add myself.
12647 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12648 changed value_ptr -> struct value *
12649
12650 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12651
12652 * configure.host (sparc64-*-freebsd): Add.
12653 * configure.tgt: Likewise.
12654 * config/sparc/fbsd.mh: New file.
12655 * config/sparc/fbsd.mt: Likewise.
12656 * config/sparc/nm-fbsd.h: Likewise.
12657 * config/sparc/tm-fbsd.h: Likewise.
12658
12659 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12660
12661 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12662 regformats/reg-s390x.dat.
12663
12664 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12665
12666 * utils.c: Add FIXME explaining true/false problem.
12667
12668 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12669
12670 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12671
12672 2002-02-28 Michael Chastain <mec@shout.net>
12673
12674 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12675
12676 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12677
12678 * gdbserver/linux-s390-low.c: New file.
12679 * regformats/reg-s390.dat: New file.
12680 * regformats/reg-s390x.dat: New file.
12681 * gdbserver/configure.srv: Add S/390.
12682 * gdbserver/Makefile.in: Add S/390.
12683 * configure.tgt: Enable gdbserver for S/390.
12684
12685 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12686
12687 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12688 first line of the doc string for "info dos", except at the end of
12689 the sentence, since the short help stops at the first period.
12690
12691 2002-02-28 Jason Merrill <jason@redhat.com>
12692
12693 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12694
12695 2002-02-27 Fred Fish <fnf@redhat.com>
12696
12697 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12698 comment (dumy -> dummy).
12699
12700 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12701
12702 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12703
12704 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12705
12706 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12707
12708 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12709
12710 * gdbserver/acconfig.h: New file.
12711 * gdbserver/i387-fp.c: New file.
12712 * gdbserver/i387-fp.h: New file.
12713 * gdbserver/linux-x86-64.c: New file.
12714 * regformats/reg-x86-64.dat: New file.
12715 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12716 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12717 * gdbserver/configure.in: Add support for regsets.
12718 * gdbserver/config.in: Regenerate.
12719 * gdbserver/configure: Regenerate.
12720 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12721 * gdbserver/linux-low.h: New file.
12722 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12723 for regsets.
12724 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12725 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12726 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12727 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12728 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12729 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12730 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12731 "i387-fp.h". Add PTRACE_GETREGS and friends.
12732 * gdbserver/regcache.c (supply_register): New function.
12733 (supply_register_by_name): New function.
12734 (collect_register): New function.
12735 (collect_register_by_name): New function.
12736
12737 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12738
12739 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12740 (config.status): Add configure.srv dependency.
12741 (server_h): Add config.h dependency.
12742
12743 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12744
12745 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12746 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12747 * gdbserver/configure.srv: Change i386-*-linux* to use
12748 reg-i386-linux.o.
12749
12750 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12751
12752 * x86-64-tdep.c: Re-indent. Update copyright date.
12753
12754 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12755
12756 From Michal Ludvig <mludvig@suse.cz>:
12757 * x86-64-tdep.c (value.h): Delete.
12758 (gdb_assert.h): Include.
12759 (x86_64_register_convert_to_virtual,
12760 x86_64_register_convert_to_raw ): Add check which lets only
12761 floating-point values to be converted.
12762 (value_push): Delete.
12763 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12764 (i386_gdbarch_init): Number of register_bytes fixed.
12765
12766 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12767
12768 * MAINTAINERS: Add x86-64 target.
12769
12770 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12771
12772 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12773 * osfsolib.c (solib_map_sections): Ditto.
12774 * irix5-nat.c (solib_map_sections): Ditto.
12775 * corelow.c (gdb_check_format): Ditto.
12776 * symfile.c (symfile_bfd_open): Ditto.
12777 * solib.c (solib_map_sections): Ditto.
12778 Fix PR gdb/354.
12779
12780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12781
12782 * remote.c (_initialize_remote): By default, disable ``e'' and
12783 ``E'' step out-of-range packets.
12784
12785 2002-02-26 Andreas Schwab <schwab@suse.de>
12786
12787 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12788 m68k_linux_frame_saved_pc.
12789 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12790 in_sigtramp.
12791 (SIGCONTEXT_PC_OFFSET): Remove.
12792 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12793 m68k_linux_sigtramp_saved_pc): New functions.
12794 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12795 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12796 (UCONTEXT_PC_OFFSET): Define.
12797 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12798 non-RT and RT signal trampolines.
12799
12800 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12801
12802 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12803 (TARGET_NBPG, STACK_END_ADDR): Delete
12804 (VARIABLES_INSIDE_BLOCK): Delete.
12805
12806 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12807
12808 * utils.c (perror_with_name): Make string parameter constant.
12809 (print_sys_errmsg): Ditto.
12810 (query): Ditto.
12811 * defs.h (perror_with_name): Update.
12812 (print_sys_errmsg): Update.
12813 (query): Update.
12814
12815 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12816
12817 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12818 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12819
12820 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12821
12822 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12823 if it already matches the current architecture from the exec file.
12824 Include arch-utils.h for gdbarch_info_init prototype.
12825 * Makefile.in (rs6000-nat.o): Update dependencies.
12826
12827 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12828
12829 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12830 list of exported variables.
12831
12832 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12833
12834 * gdbserver/configure.srv: New file.
12835 * gdbserver/configure.in: Use configure.srv instead
12836 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12837 from it.
12838 * gdbserver/configure: Regenerated.
12839 * gdbserver/terminal.h: New file.
12840 * gdbserver/Makefile.in: Update for configure changes. Remove
12841 more unneeded include paths.
12842
12843 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12844
12845 From wiz at danbala:
12846 * config/sparc/tm-sp64.h: Fix grammar and typos.
12847 Fix PR gdb/287.
12848
12849 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12850
12851 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12852 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12853 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12854 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12855 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12856 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12857 * s390-tdep.c: Ditto.
12858 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12859 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12860 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12861 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12862 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12863 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12864 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12865 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12866 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12867 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12868 Fix PR gdb/378.
12869
12870 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12871
12872 * lin-thread.c: Delete file.
12873 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12874 to gdb_proc_service.h.
12875 * configure: Re-generate.
12876
12877 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12878 * serial.c (serial_open): Delete check for "ocd".
12879 Fix PR gdb/349.
12880
12881 * Makefile.in (linux-thread.o): Delete target.
12882 * linux-thread.c: Delete file.
12883
12884 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12885 renamed SH files to be consistent.
12886
12887 * symtab.c (sort_search_symbols): Use xfree.
12888
12889 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12890
12891 * arm-linux-tdep.c (arm_linux_init_abi): Register
12892 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12893 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12894 definition with undef, since we don't want the sysvr4 definition.
12895 (SKIP_TRAMPOLINE_CODE): Likewise.
12896
12897 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12898
12899 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12900
12901 * configure.in: (AC_CHECK_FUNCS) Added test for
12902 canonicalize_file_name Regenerated.
12903 * config.in, configure: Regenerated.
12904 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12905 defined use canonicalize_file_name.
12906
12907 2002-02-23 Michael Chastain <mec@shout.net>
12908
12909 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12910
12911 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12912
12913 * README: Remove references to cygnus.com.
12914 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12915 dot com'' form. Remove references to cygnus.com and sourceware.
12916
12917 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12918
12919 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12920 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12921 1003.1-2001 no longer allows "head -1".
12922 * gdb/Makefile.in (version.c): Likewise.
12923 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12924 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12925 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12926
12927 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12928
12929 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12930 * command.h (cmd_cfunc_eq): Declare.
12931 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12932
12933 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12934 ``struct cmd_list_element *''.
12935 * cli/cli-cmds.c (is_complete_command): Update. Use
12936 cmd_cfunc_eq.
12937 * top.c (execute_command): Pass the command to
12938 is_complete_command.
12939 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12940
12941 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12942
12943 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12944 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12945 architecture defines.
12946 * s390-tdep.c (s390_gdbarch_init): Likewise.
12947
12948 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12949
12950 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12951 (arm_linux_push_arguments): Likewise.
12952 (arm_linux_init_abi): Register them. Also register linux-specific
12953 call_dummy_words.
12954 (find_minsym_and_objfile): Use strcmp, not STREQ.
12955 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12956 (arm_linux_call_dummy_words): Delete declaration.
12957 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12958 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12959 declarations.
12960 (LOWEST_PC): Delete.
12961
12962 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12963
12964 * maint.c (print_section_info): Do not prepend `0x' to filepos
12965 output, it will be handled by local_hex_string_custom.
12966
12967 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12968
12969 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12970 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12971 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12972
12973 2002-02-22 Jim Blandy <jimb@redhat.com>
12974
12975 Indicate that the bcache functions don't change the strings
12976 they're passed.
12977 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12978 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12979
12980 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12981
12982 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12983
12984 2002-02-21 Christopher Faylor <cgf@redhat.com>
12985
12986 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12987 find the complete path to a loaded DLL.
12988
12989 2002-02-21 Fred Fish <fnf@redhat.com>
12990
12991 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12992 that marks the end of the range of a function, enter a line number
12993 entry that has a line number of zero and a PC offset that matches
12994 the end of the function. This starts a range of PC's for which no
12995 line number information is known.
12996 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12997 PC's for which no line number info is found (line number is zero)
12998 then we didn't find any valid line information.
12999 * symtab.h: Document use of zero line number entry.
13000
13001 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13002
13003 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13004 (have_ptrace_getvrregs): Define for run time checks.
13005 (gdb_vrregset_t): New type for Altivec register handling.
13006 (fetch_register, store_register): Fetch/store altivec register
13007 when needed.
13008 (fetch_altivec_register, store_altivec_register): New functions.
13009 (supply_vrregset, fill_vrregset): New functions.
13010 (fetch_altivec_registers, store_altivec_registers): New functions.
13011 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13012 registers as well.
13013
13014 2002-02-21 Jiri Smid <smid@suse.cz>
13015
13016 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13017
13018 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13019
13020 * Makefile.in (armnbsd-nat.o): Update dependencies.
13021 * armnbsd-nat.c (supply_gregset): New function. Common code to
13022 supply the integer register set.
13023 (supply_fparegset): New function. Similar for FPA registers.
13024 (fetch_regs, fetch_fp_regs): Use them.
13025 (fetch_core_registers): Likewise.
13026 (fetch_elfcore_registers): New function.
13027 (arm_netbsd_elfcore_fns): New core-file type specification.
13028 (_initialize_arm_netbsd_nat): Register it.
13029
13030 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13031
13032 * armnbsd-nat.c: Include gdbcore.h.
13033 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13034 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13035 'void' to declaration, to shut up ARI.
13036 (fetch_core_registers): Make static. Rewrite using supply_register.
13037 (arm_netbsd_core_fns): New core-file type specification.
13038 (_initialize_arm_netbsd_nat): New function.
13039
13040 2002-02-21 Christopher Faylor <cgf@redhat.com>
13041
13042 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13043 value.
13044
13045 2002-02-20 Christopher Faylor <cgf@redhat.com>
13046
13047 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13048 fails.
13049
13050 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13051
13052 * jv-exp.y (parse_number): Change type of implicit longs
13053 to builtin_type_uint64.
13054
13055 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13056
13057 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13058 to be an integer instead of a `union wait'.
13059
13060 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13061
13062 * mips-linux-nat.c: Call the operating system GNU/Linux.
13063 * mips-linux-tdep.c: Likewise.
13064 * mips-tdep.c: Likewise.
13065
13066 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13067
13068 Fix PR gdb/265.
13069 * jv-exp.y (parse_number): Handle 64-bit integers.
13070
13071 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13072
13073 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13074 AC_STDC_HEADERS to AC_HEADER_STDC.
13075 * gdbserver/configure: Regenerated.
13076
13077 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13078
13079 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13080 is defined.
13081 * sparc-tdep.c (get_longjmp_target): Likewise.
13082
13083 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13084
13085 * News: Add news about ARM and Multi-arch. Mention the new target
13086 arm*-*-netbsd*.
13087
13088 2002-02-19 Jim Blandy <jimb@redhat.com>
13089
13090 * stabsread.c (error_type_complaint): Improve error message.
13091
13092 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13093
13094 * gdbserver/README: Update documentation.
13095 * gdbserver/configure.in: Update configury to match documentation.
13096 * gdbserver/Makefile.in: Likewise.
13097 * gdbserver/configure: Regenerated.
13098 * gdbserver/aclocal.m4: New file, generated by aclocal.
13099 * gdbserver/config.in: New file, generated by autoheader.
13100
13101 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13102
13103 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13104 armnbsd-nat.c.
13105
13106 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13107
13108 * arm-tdep.h (enum arm_float_model): New enum.
13109 (struct gdbarch_tdep): Add fp_model.
13110 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13111 up floating-point conversions until we know the floating-point model
13112 in use by the inferior. Don't complain about being unable to
13113 determine the ABI of the inferior when we don't have one.
13114 (arm_extract_return_value): Support different floating-point models.
13115 (arm_store_return_value): Likewise.
13116 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13117 ARM_FLOAT_SOFT.
13118 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13119
13120 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13121
13122 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13123 of ``current_gdbarch''.
13124
13125 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13126
13127 * armnbsd-nat.c : ANSIfy all function declarations.
13128 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13129 (fetch_inferior_registers): Re-implement in terms of above.
13130 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13131 (store_inferior_registers): Re-implement in terms of above.
13132
13133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13134
13135 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13136 kernel.
13137 * arm-linux-tdep.c: Likewise.
13138 * config/arm/tm-linux.h: Likewise.
13139
13140 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13141
13142 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13143 * config/arm/nbsd.mt (TM_FILE): Delete.
13144 * config/arm/tm-nbsd.h: Delete.
13145
13146 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13147
13148 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13149 Initialize CALL_DUMMY_LENGTH.
13150
13151 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13152
13153 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13154 function.
13155 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13156 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13157 defines one thing and that is incorrect for this port.
13158 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13159
13160 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13161
13162 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13163
13164 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13165
13166 * win32-nat.c (display_selector): New function. Displays information
13167 about the information returned by GetThreadSelectorEntry API function.
13168 (display_selectors): New function. Displays the infomation of
13169 the selector given as argument, or of CS, DS ans FS selectors
13170 if no argument is given.
13171 ( _initialize_inftarg): Add "w32" as info prefix command.
13172 Add "info w32 selector" as command calling display_selectors.
13173
13174 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13175
13176 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13177 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13178 if not defined.
13179
13180 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13181
13182 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13183
13184 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13185
13186 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13187 (arm_fix_call_dummy): Call it.
13188 (arm_call_dummy_breakpoint_offset): Delete.
13189 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13190 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13191
13192 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13193
13194 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13195 Default to func_frame_chain_valid.
13196 * gdbarch.h, gdbarch.c: Re-generate.
13197 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13198
13199 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13200
13201 * ppc-linux-nat.c: Update copyright.
13202 (fetch_register, store_register): Add tid parameter, don't compute
13203 tid here.
13204 (fetch_ppc_registers, store_ppc_registers): Add tid
13205 parameter. Pass it along to callees.
13206 (fetch_inferior_registers, store_inferior_registers): Compute tid
13207 here, and pass it to calleed functions.
13208 (fill_gregset, supply_fpregset): Clean up formatting.
13209
13210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13211
13212 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13213 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13214
13215 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13216
13217 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13218 * gdbarch.c gdbarch.h: Regenerate.
13219 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13220 function.
13221 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13222 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13223 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13224
13225 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13226 * arm-tdep.c (arm_get_longjmp_target): New function.
13227 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13228 this to a positive value register arm_get_longjmp_target as the
13229 longjmp handler.
13230 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13231 (arm_linux_init_abi): Set up longjmp description in tdep.
13232 * armnbsd-nat.c (get_longjmp_target): Delete.
13233 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13234 description in tdep.
13235 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13236 (get_longjmp_target): Delete declaration.
13237 (GET_LONGJMP_TARGET): Delete.
13238 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13239 (GET_LONGJMP_TARGET): Delete.
13240
13241 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13242
13243 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13244 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13245 of ``current_gdbarch''.
13246
13247 2002-02-17 Tom Tromey <tromey@redhat.com>
13248
13249 * cli/cli-cmds.c (compare_strings): New function.
13250 (complete_command): Only print each unique item once.
13251 * completer.h (complete_line): Declare.
13252 * completer.c (complete_line): New function.
13253 (line_completion_function): Use it.
13254
13255 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13256
13257 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13258 * gdbarch.h, gdbarch.c: Re-generate.
13259
13260 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13261
13262 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13263
13264 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13265
13266 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13267 * valops.c (value_arg_coerce): Don't take the address of a reference
13268 to convert an argument to a reference.
13269
13270 2002-02-15 Christopher Faylor <cgf@redhat.com>
13271
13272 * win32-nat.c (get_image_name): New function.
13273 (handle_load_dll): Use get_image_name function.
13274 (get_child_debug_event): Avoid registering debug events until possibly
13275 execed process is started.
13276 (child_create_inferior): Allow invocation via shell so that command
13277 line redirection, etc. works ok.
13278 (_initialize_inftarg): Add new command: "set shell" to control whether
13279 a shell is used to start a process.
13280
13281 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13284 instead of find_register_by_number.
13285 (cannot_store_register): Likewise.
13286
13287 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13288
13289 * dwarf2read.c: Replace fprintf (stderr, ...) by
13290 fprintf_unfiltered (gdb_stderr, ...).
13291
13292 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13293
13294 * gdbserver/gdbserver.1: Document --attach.
13295
13296 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13297
13298 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13299 descriptions.
13300 * arm-tdep.c (arm_default_arm_le_breakpoint)
13301 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13302 (arm_default_thumb_be_breakpoint): New. Initialize them from
13303 traditional breakpoint defines.
13304 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13305 (arm_gdbarch_init): Initialize new breakpoint variables.
13306 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13307 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13308 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13309 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13310 code out to ...
13311 (arm_netbsd_init_abi_common): ... here; new function.
13312 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13313 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13314 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13315 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13316
13317 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13318
13319 * arm-tdep.h (enum arm_abi): New enum.
13320 (struct gdbarch_tdep): New structure.
13321 (LOWEST_PC): Provide a default.
13322 (arm_gdbarch_register_os_abi): Declare new function.
13323 * arm-tdep.c (arm_abi_names): New array.
13324 (process_note_abi_tag_sections): New function.
13325 (get_elfosabi): New function.
13326 (arm_gdbarch_register_os_abi): New function.
13327 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13328 support for that ABI has been built in, then call the appropriate
13329 configuration routine. Use gdbarch_num_regs() to get the number
13330 of registers.
13331 (arm_dump_tdep): New function.
13332 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13333 place-holder functions.
13334 (_initialize_arm_tdep): Register them.
13335 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13336
13337 * armnbsd-tdep.c: New file.
13338 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13339 * config/arm/nbsd.mt (TDEPFILES): Add it.
13340 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13341
13342 * armnbsd-nat.c: Include regcache.h.
13343 * Makefile.in (armnbsd-nat.o): Update dependency list.
13344
13345 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13346
13347 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13348
13349 * gdbserver/Makefile.in: Fix typos in target rules.
13350
13351 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13352
13353 Fix part of PR gdb/267.
13354 * linespec.c (find_methods): Handle constructors specially for now.
13355
13356 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13357
13358 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13359 handling.
13360 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13361 standard_coerce_float_to_double().
13362
13363 2002-02-14 Christopher Faylor <cgf@redhat.com>
13364
13365 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13366 GDBINIT_FILENAME.
13367
13368 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13369
13370 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13371 find_variant_by_name, because it confuses the multiarch
13372 framework. Return NULL if there isn't an architecture with the
13373 user supplied name, instead of forcing a different one without
13374 recording the change with the multiarch machinery.
13375 (find_variant_by_name): Delete.
13376
13377 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13378
13379 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13380 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13381
13382 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13383
13384 * stack.c (print_frame_info_base): When calling
13385 print_frame_info_listing_hook, set current_source_symtab.
13386
13387 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13390 and remove unused $(INCLUDE_DIR).
13391 Add regcache.c to OBS.
13392 Add generated register protocol files to clean target.
13393 Update dependencies for new objects, obsolete old target code.
13394
13395 * gdbserver/linux-low.c: Remove all platform-specific code to
13396 new files. Remove various dead code. Update to use regcache
13397 functionality.
13398 * gdbserver/remote-utils.c (fromhex): Add return statement
13399 to quiet warning.
13400 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13401 constant.
13402 (input_interrupt): Add integer parameter to match prototype
13403 of a signal handler.
13404 (outreg): Use register_data ().
13405 (prepare_resume_reply): Use gdbserver_expedite_regs.
13406 * gdbserver/server.c (main): Dynamically allocate own_buf because
13407 PBUFSIZ is no longer constant. Use registers_to_string () and
13408 registers_from_string ().
13409 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13410 for error (), fatal (), and warning (). Update definition of
13411 PBUFSIZ to use regcache functionality. Add include guard.
13412 * gdbserver/utils.c (fatal): Add missing ``const''.
13413 (warning): New function.
13414
13415 * regformats/regdat.sh: Include "regcache.h" in generated files.
13416 Provide init_registers () function.
13417 * regformats/regdef.h: Add prototype for set_register_cache ().
13418 Add include guard.
13419
13420 * gdbserver/linux-arm-low.c: New file.
13421 * gdbserver/linux-i386-low.c: New file.
13422 * gdbserver/linux-ia64-low.c: New file.
13423 * gdbserver/linux-m68k-low.c: New file.
13424 * gdbserver/linux-mips-low.c: New file.
13425 * gdbserver/linux-ppc-low.c: New file.
13426 * gdbserver/linux-sh-low.c: New file.
13427
13428 * gdbserver/regcache.c: New file.
13429 * gdbserver/regcache.h: New file.
13430
13431 * gdbserver/low-linux.c: Removed obsolete file.
13432
13433 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13434
13435 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13436 * config/i386/linux.mt: Likewise.
13437 * config/ia64/linux.mt: Likewise.
13438 * config/m68k/linux.mh: Likewise.
13439 * config/powerpc/linux.mh: Likewise.
13440 * config/mips/linux.mt: Likewise.
13441
13442 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13443
13444 * config/i386/i386lynx.mh: Mark gdbserver variables
13445 as (currently) obsolete for this target.
13446 * config/i386/nbsd.mt: Likewise.
13447 * config/i386/nbsdelf.mt: Likewise.
13448 * config/m32r/m32r.mt: Likewise.
13449 * config/m68k/m68klynx.mh: Likewise.
13450 * config/m68k/nbsd.mt: Likewise.
13451 * config/m68k/sun3os4.mh: Likewise.
13452 * config/mips/vr5000.mt: Likewise.
13453 * config/ns32k/nbsd.mt: Likewise.
13454 * config/pa/hppabsd.mh: Likewise.
13455 * config/pa/hppaosf.mh: Likewise.
13456 * config/powerpc/nbsd.mt: Likewise.
13457 * config/rs6000/rs6000lynx.mh: Likewise.
13458 * config/s390/s390.mt: Likewise.
13459 * config/s390/s390x.mt: Likewise.
13460 * config/sparc/sparclynx.mh: Likewise.
13461 * config/sparc/sun4os4.mh: Likewise.
13462 * config/i386/x86-64linux.mt: Likewise.
13463 * config/sparc/linux.mh: Likewise.
13464
13465 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13466
13467 * configure.tgt: Configure gdbserver only for known working
13468 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13469 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13470 SUBDIRS if it is configured. Update comment for ${nativefile}.
13471 * configure: Regenerated.
13472
13473 2002-02-13 Michael Snyder <msnyder@redhat.com>
13474
13475 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13476
13477 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13478 (default_gcore_mach): Just return 0, work around a problem in bfd.
13479 (default_gcore_target): OK to return NULL if exec_bfd is null.
13480 (make_mem_sec): Use a cast, avoid a warning.
13481
13482 * procfs.c (find_memory_regions_callback): Use a cast instead of
13483 calling host_pointer_to_address (which complains if
13484 sizeof (host pointer) != sizeof (target pointer)).
13485 (procfs_make_note_section): Avoid overflow in psargs string.
13486
13487 * procfs.c (procfs_make_note_section): Make the default
13488 implementation return an error.
13489
13490 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13491
13492 * procfs.c (procfs_make_note_section): Provide a default definition
13493 (for alpha-dec-osf4.0f). Fix typos.
13494
13495 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13496
13497 * linux-proc.c: Add include of regcache.h.
13498 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13499
13500 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13501
13502 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13503 * memattr.c (create_mem_region): Disallow useless empty region.
13504 Regions are half-open intervals, so allow [A..B) [B..C) as
13505 non-overlapping.
13506
13507 2002-02-13 Michael Chastain <mec@shout.net>
13508
13509 * defs.h: Kill CONST_PTR.
13510 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13511 * c-lang.c (c_builtin_types): Likewise.
13512 * ch-lang.c (ch_builtin_types): Likewise.
13513 * f-lang.c (f_builtin_types): Likewise.
13514 * language.c (unknown_builtin_types): Likewise.
13515 * m2-lang.c (m2_builtin_types): Likewise.
13516 * p-lang.c (pascal_builtin_types): Likewise.
13517 * scm-lang.c (c_builtin_types): Likewise.
13518
13519 2002-02-13 Keith Seitz <keiths@redhat.com>
13520
13521 * arm-tdep.h (arm_get_next_pc): Add declaration.
13522
13523 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13524
13525 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13526 with other related struct-returning functions.
13527 (arm_extract_struct_value_address): New function.
13528 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13529 initialize float_format, double_format and long_double_format as
13530 appropriate to the endianness of the target.
13531 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13532 (arm_use_struct_convention): Delete declaration.
13533 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13534
13535 2002-02-13 Keith Seitz <keiths@redhat.com>
13536
13537 * defs.h (core_addr_to_string_nz): New function.
13538
13539 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13540
13541 Apply missing bits of 2002-01-15 patch.
13542 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13543 (fill_fpregset): Use i387_fill_fsave.
13544
13545 2002-02-12 Keith Seitz <keiths@redhat.com>
13546
13547 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13548 (core_addr_to_string_nz): New function.
13549
13550 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13551
13552 * arm-linux-nat.c: Really include arm-tdep.h.
13553 * config/arm/tm-linux.h (struct type, struct value): Declare.
13554
13555 2002-02-11 Michael Snyder <msnyder@redhat.com>
13556
13557 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13558 (gcore section): Ifdef for Solaris and Unixware only.
13559 (procfs_do_thread_registers): Unixware needs one lwpstatus
13560 per thread (not one prstatus or pstatus).
13561 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13562 not over all gdb threads. For unixware, call elfcore_write_pstatus
13563 once before iterating over threads.
13564
13565 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13566
13567 * arm-tdep.h: New file.
13568 * arm-tdep.c: Include arm-tdep.h.
13569 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13570 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13571 (arm_print_float_info, arm_register_type, convert_to_extended)
13572 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13573 (arm_extract_return_value, arm_register_name): Make static.
13574 (arm_software_single_step): Similarly. Fix types in declaration.
13575 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13576 (arm_store_return_value, arm_store_struct_return): New functions.
13577 (arm_gdbarch_init): Register the above functions. Also register
13578 call_dummy_start_offset, sizeof_call_dummy_words,
13579 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13580 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13581 max_register_virtual_size, register_size. Set up
13582 prologue_cache.saved_regs here, rather than ...
13583 (_initialize_arm_tdep): ... here.
13584 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13585 declarations.
13586 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13587 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13588 (arm_print_float_info, arm_register_type, convert_to_extended)
13589 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13590 (arm_extract_return_value, arm_register_name): Delete declarations.
13591 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13592 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13593 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13594 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13595 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13596 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13597 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13598 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13599 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13600 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13601 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13602 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13603 interface.
13604 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13605 * remote-rdi.c remote-rdp.c: Likewise.
13606 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13607 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13608 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13609 definition.
13610
13611 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13612 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13613 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13614 from non-ARM_ prefixed definitions.
13615 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13616 all uses of above.
13617 * remote-rdi.c remote-rdp.c: Likewise.
13618 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13619
13620 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13621
13622 * arm-tdep.c (arm_frameless_function_invocation)
13623 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13624 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13625 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13626 (arm_pop_frame, arm_get_next_pc): Make static.
13627 (arm_gdbarch_init): Register above in gdbarch structure.
13628 (arm_read_fp): Renamed from arm_target_read_fp.
13629 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13630 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13631 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13632 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13633 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13634 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13635 (arm_pc_is_thumb_dummy): Delete declarations.
13636 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13637 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13638 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13639 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13640
13641 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13642
13643 * symtab.c (compare_search_syms): New function.
13644 (sort_search_symbols): New function.
13645 (search_symbols): Sort symbols after searching rather than
13646 before.
13647
13648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13649
13650 * NEWS: Linux -> GNU/Linux.
13651
13652 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13653
13654 * gdbarch.sh: For for level one methods, disallow a definition
13655 when partially multi-arched. Add comments explaining rationale.
13656 * gdbarch.h: Re-generate.
13657
13658 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13659
13660 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13661 multi-arch partial.
13662
13663 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13664
13665 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13666 field. Use diff -u.
13667 * gdbarch.c: Re-generate.
13668
13669 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13670
13671 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13672 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13673 partial.
13674
13675 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13676
13677 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13678 multi-arch partial.
13679 (PUSH_ARGUMENTS): Switch to using predefault.
13680 * gdbarch.c: Regenerate.
13681
13682 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13683
13684 * valops.c (PUSH_ARGUMENTS): Delete definition.
13685 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13686 partial. Default to default_push_arguments.
13687 * gdbarch.h, gdbarch.c: Regenerate.
13688
13689 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13690
13691 * defs.h (throw_exception): Rename return_to_top_level. Update
13692 comments.
13693 * utils.c (error_stream, internal_verror, quit): Ditto.
13694 * top.c (throw_exception, catcher): Ditto.
13695 * sparclet-rom.c (sparclet_load): Ditto.
13696 * remote.c (interrupt_query, minitelnet): Ditto.
13697 * remote-sds.c (interrupt_query): Ditto.
13698 * remote-mips.c (mips_error, mips_kill): Ditto.
13699 * ocd.c (interrupt_query): Ditto.
13700 * monitor.c (monitor_interrupt_query): Ditto.
13701 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13702 * target.h: Update comment.
13703
13704 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13705
13706 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13707
13708 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13709 default_double_format.
13710 * gdbarch.h, gdbarch.c: Re-generate.
13711 * findvar.c (floatformat_unknown): Delete variable definition.
13712 * doublest.h (floatformat_unknown): Delete variable declaration.
13713
13714 2002-02-09 Jim Blandy <jimb@redhat.com>
13715
13716 * stabsread.c (read_type): Add code to parse Sun's syntax for
13717 prototyped function types.
13718
13719 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13720
13721 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13722 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13723
13724 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13725
13726 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13727 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13728 now _initialize_xcoffsolib gets called again and overrides the
13729 commands from solib.c in a native configuration.
13730
13731 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13732
13733 * doublest.c (store_typed_floating): Don't try to return a value.
13734 Fixes PR gdb/290.
13735
13736 2002-02-08 Jim Blandy <jimb@redhat.com>
13737
13738 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13739 is prototyped and has no arguments, print its argument list as
13740 `(void)'.
13741
13742 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13743
13744 * MAINTAINERS (write-after-approval): Add myself.
13745 (paper-trail): I've escaped!
13746
13747 2002-02-08 Christopher Faylor <cgf@redhat.com>
13748
13749 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13750 changes.
13751 (_initialize_check_for_gdb_ini): Ditto.
13752
13753 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13754
13755 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13756 xaprintf -> xasprintf.
13757
13758 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13759
13760 * win32-nat.c: Remove use of printf and sprintf functions.
13761
13762 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13763
13764 * arm-tdep.c (arm_frame_chain_valid): Make static.
13765 (arm_push_arguments): Likewise.
13766 (arm_gdbarch_init): New function.
13767 (_initialize_arm_tdep): Call it.
13768 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13769 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13770 (FRAME_CHAIN_VALID): Delete.
13771 (arm_frame_chain_valid): Delete declaration.
13772 (PUSH_ARGUMENTS): Delete.
13773 (arm_push_arguments): Delete declaration.
13774 (CALL_DUMMY_P): Delete.
13775
13776 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13777 Corinna Vinschen <vinschen@redhat.com>
13778
13779 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13780 on builtin float types.
13781
13782 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * utils.c: Include <curses.h> before "bfd.h".
13785 * tui/tui-hooks.c: Likewise.
13786 * tui/tui.c: Likewise.
13787 * tui/tuiCommand.c: Likewise.
13788 * tui/tuiData.c: Likewise.
13789 * tui/tuiDataWin.c: Likewise.
13790 * tui/tuiDisassem.c: Likewise.
13791 * tui/tuiGeneralWin.c: Likewise.
13792 * tui/tuiIO.c: Likewise.
13793 * tui/tuiLayout.c: Likewise.
13794 * tui/tuiRegs.c: Likewise.
13795 * tui/tuiSource.c: Likewise.
13796 * tui/tuiSourceWin.c: Likewise.
13797 * tui/tuiStack.c: Likewise.
13798 * tui/tuiWin.c: Likewise.
13799
13800 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13801
13802 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13803 to include space for pseudoregs as well. Update loops accordingly.
13804 (sh_fp_frame_init_saved_regs): Ditto.
13805 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13806
13807 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13808
13809 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13810 Add Richard Earnshaw to Arm maintainers.
13811
13812 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13813
13814 * defs.h (warning_begin): Delete declaration.
13815
13816 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13817 Delete macro.
13818
13819 2002-02-07 Michael Snyder <msnyder@redhat.com>
13820
13821 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13822 Logic bug, remove misplaced else.
13823
13824 2002-02-07 Klee Dienes <klee@apple.com>
13825
13826 * fork-inferior.c (fork_inferior): Add '!' to the list of
13827 characters that need to be quoted when building a string for the
13828 shell. Quote '!' specifically with a backslash, since CSH chokes
13829 when trying to evaluate "str!str".
13830
13831 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13832
13833 * rdi-share/host.h: Only provide a typedef for bool if it is not
13834 defined.
13835
13836 2002-02-04 Michael Snyder <msnyder@redhat.com>
13837
13838 * breakpoint.h (enum bptype): Add new overlay event bp type.
13839 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13840
13841 * breakpoint.c (create_internal_breakpoint): New function.
13842 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13843 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13844 (create_thread_event_breakpoint): Ditto.
13845 (create_solib_event_breakpoint): Ditto.
13846 (create_overlay_event_breakpoint): New function.
13847 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13848 (update_breakpoints_after_exec): Delete and re-initialize
13849 overlay event breakpoints after an exec. Add FIXME comment
13850 about longjmp breakpoint.
13851 (print_it_typical): Ignore overlay event breakpoints.
13852 (print_one_breakpoint): Ditto.
13853 (mention): Ditto.
13854 (bpstat_what): Do not stop for overlay event breakpoints.
13855 (delete_breakpoint): Don't delete overlay event breakpoints.
13856 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13857 (breakpoint_re_set): Re-create overlay event breakpoint.
13858
13859 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13860 (overlay_manual_command): Disable overlay breakpoints.
13861 (overlay_off_command): Disable overlay breakpoints.
13862
13863 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13864
13865 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13866 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13867 to here from config/tm-arm.h.
13868 (coff_sym_is_thumb): Make static.
13869 (arm_elf_make_msymbol_special): New function.
13870 (arm_coff_make_msymbol_special): New function.
13871 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13872 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13873 (coff_sym_is_thumb): Delete declaration.
13874 (arm_elf_make_msymbol_special): Declare.
13875 (arm_coff_make_msymbol_special): Declare.
13876 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13877 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13878
13879 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13880
13881 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13882
13883 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13884
13885 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13886 * gdbarch.c gdbarch.h: Regenerate.
13887 * arch-utils.c (default_print_float_info): New function.
13888 * arch-utils.h (default_print_float_info): Prototype it.
13889 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13890 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13891 (PRINT_FLOAT_INFO): Document it.
13892
13893 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13894 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13895 (PRINT_FLOAT_INFO): Define.
13896
13897 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13898
13899 * win32-nat.c (_initialize_check_for_gdb_ini):
13900 Add typecast to sprintf argument to suppress a warning.
13901
13902 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13903
13904 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13905 to allow easier handling of pass state.
13906 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13907 that gives exception name and address.
13908 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13909 and set last_sig value to ourstatus->value.sig. Some missing
13910 exceptions added.
13911 (child_continue): Correctly report continue_status.
13912 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13913 TARGET_SIGNAL_0 (new default value).
13914 (child_resume): consider sig argument passed to decide if
13915 the exception should be passed to debuggee or not.
13916
13917 2002-02-05 Michael Snyder <msnyder@redhat.com>
13918
13919 * regcache.c (fetch_register): Call target_fetch_register
13920 only if we don't call FETCH_PSEUDO_REGISTER.
13921 (store_register): Call target_store_register only if we
13922 don't call STORE_PSEUDO_REGISTER.
13923
13924 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13925
13926 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13927 ELF_MAKE_MSYMBOL_SPECIAL.
13928 * gdbarch.c, gdbarch.h: Regenerate.
13929 * arch-utils.c (default_make_msymbol_special): New function.
13930 * arch-utils.h (default_make_msymbol_special): Export.
13931 * elfread.c (elf_symtab_read): Compile use of
13932 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13933 multiarched.
13934 * coffread.c (coff_symtab_read): Ditto, for
13935 COFF_MAKE_MSYMBOL_SPECIAL.
13936
13937 2002-02-05 Jim Blandy <jimb@redhat.com>
13938
13939 * solib-svr4.c (svr4_truncate_ptr): New function.
13940 (svr4_relocate_section_addresses): Do the address arithmetic with
13941 the appropriate truncation for target addresses, even when
13942 CORE_ADDR is larger than a target address.
13943
13944 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13945
13946 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13947 to (int *).
13948
13949 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13950
13951 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13952 code.
13953
13954 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13955
13956 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13957
13958 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13959
13960 * gdbserver/linux-low.c: Remove unused include files.
13961
13962 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13963
13964 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13965 (read_inferior_memory): Use it.
13966 (write_inferior_memory): Likewise.
13967
13968 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13969
13970 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13971 grubbing through sys_errlist.
13972
13973 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13974
13975 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13976
13977 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13978 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13979
13980 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13981
13982 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13983 (do_sfunc, set_cmd_sfunc): New functions.
13984
13985 * command.h (struct cmd_list_element): Add field func.
13986 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13987 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13988 * cli/cli-decode.h: Ditto.
13989
13990 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13991 (help_all, help_cmd_list): Ditto.
13992 (find_cmd, complete_on_cmdlist): Ditto.
13993 * top.c (execute_command): Ditto.
13994
13995 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13996 function.sfunc.
13997
13998 * infcmd.c (notice_args_read): Fix function signature.
13999
14000 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14001 * cli/cli-decode.c (add_set_cmd): Ditto.
14002 * utils.c (initialize_utils): Ditto.
14003 * maint.c (_initialize_maint_cmds): Ditto.
14004 * infrun.c (_initialize_infrun): Ditto.
14005 * demangle.c (_initialize_demangler): Ditto.
14006 * remote.c (add_packet_config_cmd): Ditto.
14007 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14008 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14009 * proc-api.c (_initialize_proc_api): Ditto.
14010 * kod.c (_initialize_kod): Ditto.
14011 * valprint.c (_initialize_valprint): Ditto.
14012 * top.c (init_main): Ditto.
14013 * infcmd.c (_initialize_infcmd): Ditto.
14014 * corefile.c (_initialize_core): Ditto.
14015 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14016 * arch-utils.c (initialize_current_architecture): Ditto.
14017 (_initialize_gdbarch_utils): Ditto.
14018 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14019
14020 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14021 * wince.c (_initialize_inftarg): Ditto.
14022 * symfile.c (_initialize_symfile): Ditto.
14023 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14024 * language.c (_initialize_language): Ditto.
14025 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14026
14027 2002-02-04 Michael Snyder <msnyder@redhat.com>
14028
14029 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14030
14031 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14032
14033 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14034 Add rules for building the register data files.
14035
14036 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14037
14038 * regformats/regdat.sh: Add braces to the definition of
14039 expedite_regs_${arch}.
14040
14041 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14042
14043 * regformats/regdef.h (struct reg): Add comment describing the
14044 requirements for offset and size fields.
14045
14046 2002-02-04 Andreas Schwab <schwab@suse.de>
14047
14048 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14049 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14050
14051 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14052
14053 * gdbarch.sh (copyright): Update years in generated header.
14054 (SMASH_TEXT_ADDRESS): Add rule.
14055 * gdbarch.h, gdbarch.c: Re-generate.
14056 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14057 * dbxread.c: Likewise.
14058 * dwarfread.c: Likewise.
14059 * elfread.c: Likewise.
14060 * somread.c: Likewise.
14061
14062 * arm-tdep.c (arm_smash_text_address): New function.
14063 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14064
14065 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14066
14067 Add support for hardware watchpoints on win32 native.
14068 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14069 CONTEXT_DEBUG_REGISTERS.
14070 (dr variable): New variable. Static array containing a local copy
14071 of debug registers.
14072 (debug_registers_changed): New variable. Reflects when debug registers
14073 are changed and need to be written to inferior.
14074 (debug_registers_used): New variable. Reflects when any debug register
14075 was set, used when new threads are created.
14076 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14077 i386-nat code.
14078 (thread_rec): Set dr array if id is the thread of current_event .
14079 (child_continue, child_resume): Change the debug registers for all
14080 threads if debug_registers_changed.
14081 (child_add_thread): Change the debug registers if debug_registers_used.
14082 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14083 Link nm.h to new nm-cygwin.h file.
14084 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14085 of hardware registers.
14086
14087 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14088
14089 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14090 Restore behavour broken by 2002-01-20 Andrew Cagney
14091 <ac131313@redhat.com> IEEE_FLOAT removal.
14092
14093 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14094
14095 * c-valprint.c (c_val_print): Pass a proper valaddr to
14096 cp_print_class_method.
14097 * valops.c (search_struct_method): If there is only one method
14098 and args is NULL, return that method.
14099
14100 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14101
14102 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14103 accessing tag_name directly.
14104
14105 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14106
14107 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14108 of accessing tag_name directly.
14109
14110 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14111
14112 PR gdb/280
14113 * gdbtypes.c (replace_type): New function.
14114 * gdbtypes.h (replace_type): Add prototype.
14115 * stabsread.c (read_type): Use replace_type.
14116
14117 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14118
14119 * Makefile.in (memattr.o): Add missing dependencies rule.
14120
14121 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14122
14123 * breakpoint.c (break_at_finish_command): Really export.
14124 (break_at_finish_at_depth_command): Ditto.
14125 (tbreak_at_finish_command): Ditto.
14126 * hppa-tdep.c: Include completer.h.
14127 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14128 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14129
14130 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14131
14132 * utils.c (do_write): New function.
14133 (error_stream): Rewrite combining the code from error_begin and
14134 verror.
14135 (verror): Rewrite using error_stream.
14136 (error_begin): Delete function.
14137
14138 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14139
14140 * utils.c (error_begin): Make static.
14141 * defs.h (error_begin): Delete declaration.
14142
14143 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14144 (decode_line_1): Use cplusplus_error instead of error_begin,
14145 cplusplus_hint and return_to_top_level.
14146 * coffread.c (coff_symfile_read): Use error instead of error_begin
14147 and return_to_top_level.
14148 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14149
14150 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14151
14152 * language.h (type_error, range_error): Make string parameter
14153 constant.
14154 * language.c (warning_pre_print): Delete extern declaration.
14155 * dwarfread.c (warning_pre_print): Ditto.
14156 * language.c (type_error, range_error): Rewrite to use verror and
14157 vwarning instead of warning_begin.
14158
14159 2002-02-01 Michael Snyder <msnyder@redhat.com>
14160
14161 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14162 (set_ignore_count): Move misplaced comment back where it belongs.
14163
14164 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14165
14166 * command.h (NO_FUNCTION): Delete macro.
14167 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14168 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14169 * tracepoint.c (_initialize_tracepoint): Ditto.
14170 * cli/cli-decode.c (add_set_cmd): Ditto.
14171 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14172
14173 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14174
14175 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14176 Update ``this'' pointer when calling virtual functions.
14177
14178 2002-02-01 Michael Snyder <msnyder@redhat.com>
14179
14180 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14181 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14182
14183 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14184
14185 * regformats/reg-arm.dat: New file.
14186 * regformats/reg-i386.dat: New file.
14187 * regformats/reg-ia64.dat: New file.
14188 * regformats/reg-m68k.dat: New file.
14189 * regformats/reg-mips.dat: New file.
14190 * regformats/reg-ppc.dat: New file.
14191 * regformats/reg-sh.dat: New file.
14192 * regformats/regdef.h: New file.
14193 * regformats/regdat.sh: New file.
14194
14195 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14196
14197 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14198 (arm_frame_args_address, arm_frame_locals_address): New functions.
14199 (arm_frame_num_args): New function.
14200 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14201 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14202 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14203
14204 2002-01-31 Michael Snyder <msnyder@redhat.com>
14205
14206 * breakpoint.c (break_at_finish_command): Export.
14207 (break_at_finish_at_depth_command): Export.
14208 (tbreak_at_finish_command): Export.
14209 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14210 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14211 "txbreak" commands, which are HPPA specific.
14212
14213 * printcmd.c (disassemble_command): Remove an ancient
14214 artifact of an old merge.
14215
14216 * symfile.h (enum overlay_debugging_state):
14217 Define enum constant values for overlay mode.
14218 * symfile.c (overlay_debugging): Use enums instead of literals.
14219 (overlay_is_mapped, overlay_auto_command,
14220 overlay_manual_command): Ditto.
14221
14222 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14223 breakpoint_here_p, breakpoint_inserted_here_p,
14224 breakpoint_thread_match, bpstat_stop_status,
14225 describe_other_breakpoints, check_duplicates, clear_command):
14226 Coding standard fixes.
14227
14228 * target.c (target_xfer_memory): Add spaces, coding standard.
14229 (do_xfer_memory): Add missing line to trust-readonly
14230 code: check bfd SEC_READONLY flag for section.
14231
14232 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14233
14234 * PROBLEMS: Fix typo, 5.1->5.1.1.
14235
14236 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14237
14238 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14239 data symbols, since we search based on textlow and texthigh.
14240 (find_pc_sect_symtab): Likewise.
14241
14242 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14243
14244 * defs.h (vwarning): Declare.
14245 * utils.c (vwarning): New function.
14246 (warning): Call vwarning.
14247 (warning_begin): Delete function.
14248
14249 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14250 the warning message.
14251 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14252 warning_begin.
14253
14254 2002-01-30 Michael Snyder <msnyder@redhat.com>
14255
14256 * NEWS: Mention "set trust-readonly-sections" command.
14257 Mention generate-core-file command.
14258
14259 2002-01-15 Michael Snyder <msnyder@redhat.com>
14260
14261 * target.c: New command, "set trust-readonly-sections on".
14262 (do_xfer_memory): Honor the suggestion to trust readonly sections
14263 by reading them from the object file instead of from the target.
14264 (initialize_targets): Register command "set trust-readonly-sections".
14265
14266 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14267
14268 * parse.c (target_map_name_to_register): Simplify, search regs and
14269 pseudo-regs using a single loop.
14270
14271 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14272
14273 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14274
14275 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14276
14277 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14278 * config/i386/i386v42mp.mh: Add i387-nat.o .
14279 * i386v4-nat.c: Include i387-nat.h.
14280 (supply_fpregset): Use i387_supply_fsave.
14281 (fill_fpregset): Use i387_fill_fsave.
14282
14283 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14284
14285 * arm-tdep.c (arm_call_dummy_words): Define.
14286 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14287 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14288 (CALL_DUMMY_WORDS): Define.
14289 (arm_call_dummy_words): Declare.
14290 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14291 (arm_linux_call_dummy_words): Declare.
14292
14293 2002-01-30 Andreas Schwab <schwab@suse.de>
14294
14295 * m68klinux-nat.c: Fix last change to use regcache_collect
14296 instead of referencing registers[] directly.
14297
14298 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14299
14300 * parse.c (target_map_name_to_register): Delete code wrapped in
14301 #ifdef REGISTER_NAME_ALIAS_HOOK.
14302
14303 2002-01-28 Michael Snyder <msnyder@redhat.com>
14304
14305 * regcache.c (legacy_read_register_gen): Need to be able to
14306 read pseudo-register as well as real register.
14307 (legacy_write_register_gen): Ditto.
14308
14309 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14310
14311 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14312 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14313 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14314 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14315 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14316 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14317 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14318 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14319 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14320 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14321 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14322 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14323 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14324 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14325 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14326 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14327 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14328 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14329 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14330 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14331
14332 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14333
14334 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14335 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14336 (initialize_current_architecture): Update target_byte_order using
14337 information from BFD.
14338 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14339 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14340
14341 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14342
14343 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14344 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14345
14346 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14347 #ifdef INVALID_FLOAT.
14348 * infcmd.c (do_registers_info): Ditto.
14349 * values.c (unpack_double): Ditto. Add comment.
14350
14351 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14352 already commented out.
14353
14354 2002-01-26 Andreas Schwab <schwab@suse.de>
14355
14356 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14357 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14358 registers and add support for PTRACE_GETREGS.
14359
14360 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14361
14362 GDB 5.1.1 released from 5.1 branch.
14363 * NEWS: Add 5.1.1 news.
14364 * README: Sync with 5.1 branch.
14365
14366 2002-01-23 Fred Fish <fnf@redhat.com>
14367
14368 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14369 stabstring on initial malloc. Reallocing will copy it for us,
14370 if necessary.
14371
14372 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14373
14374 * Makefile.in (hpread_h): Delete.
14375 (HFILES_NO_SRCDIR): Remove hpread.h.
14376 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14377 (hpread.o): Update dependencies.
14378 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14379
14380 * hp-psymtab-read.c: Remove file.
14381 * hp-symtab-read.c: Remove file.
14382 * hpread.h: Remove file.
14383
14384 * hpread.c: Merge all contents of hp-psymtab-read.c,
14385 hp-symtab-read.c and hpread.h into this file, as it was prior to
14386 January 1999.
14387
14388 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14389 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14390 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14391 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14392
14393 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14394
14395 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14396 fill_gregset): Call gdbarch_tdep() just once, assign result to
14397 variable and use that, instead of calling the function several
14398 times.
14399
14400 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14401
14402 * configure.host: Accept sparcv9 as alias for sparc64.
14403 * configure.tgt: Likewise.
14404
14405 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14406
14407 * solib-aix5.c (build_so_list_from_mapfile)
14408 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14409 arguments is not reversed.
14410 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14411 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14412
14413 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14414
14415 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14416 modified version of obsolete sh_fetch_pseudo_register.
14417 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14418 (sh4_register_read): New function.
14419 (sh_pseudo_register_write): New function. Renamed and modified
14420 version of obsolete sh_store_pseudo_register.
14421 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14422 (sh4_register_write): New function.
14423 (sh_gdbarch_init): Remove setting of gdbarch function
14424 fetch_pseudo_register and store_pseudo_register. Remove setting of
14425 register_convert_to_raw, register_convert_to_virtual,
14426 register_convertible.
14427 (sh_sh4_register_convertible): Delete. No longer needed. All is
14428 taken care by architecture specific functions
14429 register_read/register_write.
14430 (sh_sh4_register_convert_to_virtual): Make static.
14431 (sh_sh4_register_convert_to_raw): Ditto.
14432
14433 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14434
14435 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14436 (floatformat_is_nan, floatformat_mantissa): Ditto.
14437
14438 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14439 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14440 builtin_type_ieee_double_little,
14441 builtin_type_ieee_double_littlebyte_bigword,
14442 builtin_type_m68881_ext, builtin_type_i960_ext,
14443 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14444 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14445 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14446 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14447
14448 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14449
14450 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14451 parameter. Set frameless flag if it exists and depended of
14452 whether the scanned function is frameless or not.
14453 (xstormy16_skip_prologue): If function is frameless, return
14454 result of xstormy16_scan_prologue().
14455 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14456 call.
14457
14458 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14459
14460 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14461 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14462 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14463 sh_sh4_register_byte, sh_sh4_register_raw_size,
14464 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14465 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14466 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14467 sh_store_pseudo_register, sh_do_pseudo_register): Call
14468 gdbarch_tdep() just once, assign result to variable and use that,
14469 instead of calling the function several times.
14470
14471 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14472
14473 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14474 macros instead of LAST_FPU_CTRL_REGNUM.
14475 (store_register): Likewise.
14476
14477 2002-01-21 Jim Blandy <jimb@redhat.com>
14478
14479 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14480 is up-to-date before running the program, not just when a program
14481 exits.
14482
14483 2002-01-21 Fred Fish <fnf@redhat.com>
14484
14485 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14486 when we have found all instructions we are looking for.
14487
14488 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14489
14490 * arm-tdep.c (arm_register_name): New function.
14491 (arm_registers_names): Make static.
14492 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14493 (arm_register_name): Declare.
14494 (REGISTER_NAME): Use it.
14495
14496 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14497 Kevin Buettner <kevinb@redhat.com>
14498
14499 Convert arm targets to new FRAME interface.
14500 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14501 (arm_frame_find_save_regs): Delete.
14502 (arm_frame_init_saved_regs): New.
14503 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14504 Allocate extra_info as required. Convert all uses of fsr.regs
14505 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14506 to use extra_info.
14507 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14508 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14509 (check_prologue_cache, save_prologue_cache): Likewise.
14510 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14511 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14512 (FRAME_FIND_SAVED_REGS): Delete.
14513 (arm_frame_find_saved_regs): Delete prototype.
14514 (arm_frame_init_saved_regs): New prototype.
14515 (FRAME_INIT_SAVED_REGS): Define.
14516
14517 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14518
14519 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14520
14521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14522
14523 From Jeff Law <law@redhat.com>:
14524 * infttrace.c: Include <sys/pstat.h>.
14525 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14526 exec file if the ttrace equivalent fails.
14527
14528 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14529
14530 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14531 (closeLogFile): Ditto.
14532
14533 2002-01-20 Michael Chastain <mec@shout.net>
14534
14535 * top.c (print_gdb_version): Bump copyright year to 2002.
14536
14537 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14538
14539 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14540 Zannoni and Eli Zaretskii.
14541
14542 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14543
14544 * buildsym.c: Update copyright years.
14545 * c-typeprint.c: Likewise.
14546 * dwarf2read.c: Likewise.
14547 * f-typeprint.c: Likewise.
14548 * gdbtypes.c: Likewise.
14549 * gdbtypes.h: Likewise.
14550 * hp-symtab-read.c: Likewise.
14551 * hpread.c: Likewise.
14552 * mdebugread.c: Likewise.
14553 * p-typeprint.c: Likewise.
14554
14555 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14556
14557 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14558 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14559 byte-order selectable.
14560 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14561 * arch-utils.c: Ditto.
14562 (set_endian): Ditto.
14563 (set_endian_from_file): Ditto.
14564 * gdbserver/low-sim.c (create_inferior): Ditto.
14565 * gdbarch.sh: Ditto.
14566 * gdbarch.h: Re-generate.
14567 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14568 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14569 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14570 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14571 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14572 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14573 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14574 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14575 macro definition.
14576 * config/mips/tm-wince.h: Remove #undef of macro
14577 TARGET_BYTE_ORDER_SELECTABLE.
14578 * config/sh/tm-wince.h: Ditto.
14579
14580 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14581
14582 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14583 member function fields. Add accessor macro
14584 TYPE_FN_FIELD_ARTIFICIAL.
14585 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14586 * c-typeprint.c (c_type_print_base): Skip artificial member
14587 functions.
14588
14589 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14590
14591 * f-typeprint.c: Delete unused function f_type_print_args.
14592 * p-typeprint.c: Delete unused function pascal_type_print_args.
14593
14594 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14595
14596 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14597 comment. Add ``artificial'' to ``union field_location''.
14598
14599 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14600
14601 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14602 * mdebugread.c (parse_symbol): Likewise.
14603 * stabsread.c (define_symbol): Likewise.
14604 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14605 initializing TYPE_FIELD_BITPOS to n (obsolete).
14606 (hpread_doc_function_type): Likewise.
14607 * hpread.c (hpread_function_type): Likewise.
14608
14609 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14610
14611 * configure.in (host_makefile_frag): Only require a host makefile
14612 fragment when a native build.
14613 * configure: Re-generate.
14614
14615 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14616
14617 * doublest.h (floatformat_from_type): Declare.
14618 * doublest.c (floatformat_from_type): New function.
14619 (convert_typed_floating): Use.
14620
14621 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14622 call to function floatformat_from_type.
14623
14624 * gdbarch.sh (IEEE_FLOAT): Delete.
14625 * gdbarch.h, gdbarch.c: Re-generate.
14626 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14627 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14628 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14629 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14630 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14631 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14632 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14633 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14634 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14635 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14636 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14637 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14638
14639 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14640 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14641 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14642 * sh-tdep.c (sh_gdbarch_init): Ditto.
14643 * mips-tdep.c (mips_gdbarch_init): Ditto.
14644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14645 * cris-tdep.c (cris_gdbarch_init): Ditto.
14646
14647 2002-01-20 Jiri Smid <smid@suse.cz>
14648
14649 * configure.host, configure.tgt: Support x86-64.
14650 * NEWS: Note new target x86-64.
14651
14652 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14653 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14654 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14655 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14656 x86-64-linux-nat.o): Fix dependencies.
14657
14658 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14659
14660 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14661 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14662 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14663 * config/sparc/xm-sun4os4.h: Delete file.
14664 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14665
14666 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14667
14668 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14669 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14670 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14671 * config/i386/i386lynx.mh (XM_FILE): Delete.
14672 * config/rs6000/xm-rs6000ly.h: Delete file.
14673 * config/sparc/xm-sparclynx.h: Delete file.
14674 * config/m68k/xm-m68klynx.h: Delete file.
14675 * config/i386/xm-i386lynx.h: Delete file.
14676 * config/xm-lynx.h: Delete file.
14677 * config/djgpp/fnchange.lst: Update.
14678
14679 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14680
14681 * alpha-tdep.c (alpha_register_byte): New function.
14682 (alpha_register_raw_size): Ditto.
14683 (alpha_register_virtual_size): Ditto.
14684 (alpha_skip_prologue_internal): Renamed from
14685 alpha_skip_prologue.
14686 (alpha_skip_prologue): New version that calls
14687 alpha_skip_prologue_internal.
14688 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14689 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14690 second argument from alpha_skip_prologue.
14691 (REGISTER_BYTE): Use alpha_register_byte.
14692 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14693 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14694 (FRAMELESS_FUNCTION_INVOCATION): Use
14695 generic_frameless_function_invocation_not.
14696 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14697 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14698
14699 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14700
14701 * config/mips/xm-news-mips.h: Delete file.
14702 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14703
14704 * config/m88k/xm-m88k.h: Delete file.
14705 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14706 * config/m88k/xm-delta88v4.h: Ditto.
14707 * config/m88k/xm-delta88.h: Ditto.
14708
14709 * config/alpha/xm-fbsd.h: Delete file.
14710 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14711
14712 * config/sparc/xm-sparc.h: Delete file.
14713 * Makefile.in (xm-sun4os4.h): Delete dependency.
14714 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14715 * config/sparc/xm-sun4os4.h: Ditto.
14716 * config/sparc/xm-linux.h: Ditto.
14717
14718 * config/i386/xm-windows.h: Delete file.
14719
14720 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14721
14722 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14723 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14724
14725 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14726
14727 * alpha-tdep.c (alpha_call_dummy_words): New.
14728 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14729 (CALL_DUMMY_P): Define.
14730 (CALL_DUMMY_WORDS): Define.
14731 (SIZEOF_CALL_DUMMY_WORDS): Define.
14732
14733 2002-01-19 Per Bothner <per@bothner.com>
14734
14735 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14736 isn't NULL, which can happen with some gcj-3.x-produced code.
14737
14738 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14739
14740 * alpha-tdep.c (alpha_register_virtual_type): New function.
14741 (alpha_init_frame_pc_first): Ditto.
14742 (alpha_fix_call_dummy): Ditto.
14743 (alpha_store_struct_return): Ditto.
14744 (alpha_extract_struct_value_address): Ditto.
14745 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14746 alpha_register_virtual_type.
14747 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14748 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14749 alpha_extract_struct_value_address.
14750 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14751 (INIT_FRAME_PC): Use init_frame_pc_noop.
14752 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14753
14754 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14755
14756 * i386gnu-nat.c: Include "i386-tdep.h".
14757 (fetch_fpregs): Simplify code dealing with uninitialized floating
14758 point states such that it doesn't require FP7_REGNUM.
14759
14760 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14761
14762 * alpha-tdep.c (frame_extra_info): New.
14763 (alpha_find_saved_regs): Make static. Use
14764 frame->extra_info.
14765 (alpha_frame_init_saved_regs): New function.
14766 (alpha_frame_saved_pc): Use frame->extra_info.
14767 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14768 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14769 (init_extra_frame_info): Rename to...
14770 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14771 (alpha_print_extra_frame_info): New function.
14772 (alpha_frame_locals_address): Ditto.
14773 (alpha_frame_args_address): Ditto.
14774 (alpha_pop_frame): Use frame->extra_info.
14775 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14776 alpha_frame_args_address.
14777 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14778 (alpha_find_saved_regs): Remove prototype.
14779 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14780 (EXTRA_FRAME_INFO): Remove.
14781 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14782 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14783
14784 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14785
14786 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14787 (alpha_cannot_fetch_register): Ditto.
14788 (alpha_cannot_store_register): Ditto.
14789 (alpha_register_convertible): Ditto.
14790 (alpha_use_struct_convention): Ditto.
14791 * config/alpha/tm-alpha.h: Update copyright years.
14792 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14793 (INNER_THAN): Use core_addr_lessthan.
14794 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14795 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14796 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14797 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14798 (FRAME_CHAIN): Remove unnecessary cast.
14799
14800 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14801
14802 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14803 obsolete.
14804
14805 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14806
14807 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14808 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14809 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14810 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14811 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14812 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14813 * x86-64-linux-nat.c: Ditto.
14814
14815 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14816
14817 * alpha-tdep.c (alpha_register_name): New function.
14818 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14819 (REGISTER_NAME): Define.
14820
14821 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14822
14823 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14824
14825 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14826
14827 * alpha-tdep.c: Update copyright years.
14828 (alpha_next_pc): New function.
14829 (alpha_software_single_step): Ditto.
14830 * config/alpha/tm-alpha.h: Add prototype for
14831 alpha_software_single_step.
14832
14833 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14834
14835 * alphabsd-nat.c: Update copyright years.
14836 (fill_gregset): Use regcache_collect.
14837 (fill_fpregset): Likewise.
14838 (fetch_inferior_registers): Only fetch integer registers
14839 if requested to do so.
14840 (store_inferior_registers): Only store integer registers
14841 if requested to do so.
14842
14843 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14844
14845 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14846 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14847 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14848 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14849 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14850 * config/arm/linux.mh (XDEPFILES): Delete.
14851 * config/arm/nbsd.mh (XDEPFILES): Delete.
14852 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14853 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14854 * config/i386/i386m3.mh (XDEPFILES): Delete.
14855 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14856 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14857 * config/i386/fbsd.mh (XDEPFILES): Delete.
14858 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14859 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14860 * config/i386/i386v4.mh (XDEPFILES): Delete.
14861 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14862 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14863 * config/i386/i386aix.mh (XDEPFILES): Delete.
14864 * config/i386/go32.mh (XDEPFILES): Delete.
14865 * config/i386/cygwin.mh (XDEPFILES): Delete.
14866 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14867 * config/i386/i386mach.mh (XDEPFILES): Delete.
14868 * config/i386/i386v32.mh (XDEPFILES): Delete.
14869 * config/i386/linux.mh (XDEPFILES): Delete.
14870 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14871 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14872 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14873 * config/i386/i386sco.mh (XDEPFILES): Delete.
14874 * config/i386/i386v.mh (XDEPFILES): Delete.
14875 * config/i386/nbsd.mh (XDEPFILES): Delete.
14876 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14877 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14878 * config/i386/symmetry.mh (XDEPFILES): Delete.
14879 * config/i386/obsd.mh (XDEPFILES): Delete.
14880 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14881 * config/ia64/linux.mh (XDEPFILES): Delete.
14882 * config/ia64/aix.mh (XDEPFILES): Delete.
14883 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14884 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14885 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14886 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14887 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14888 * config/m68k/linux.mh (XDEPFILES): Delete.
14889 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14890 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14891 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14892 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14893 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14894 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14895 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14896 * config/m88k/delta88.mh (XDEPFILES): Delete.
14897 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14898 * config/m88k/m88k.mh (XDEPFILES): Delete.
14899 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14900 * config/mips/linux.mh (XDEPFILES): Delete.
14901 * config/mips/irix6.mh (XDEPFILES): Delete.
14902 * config/mips/irix5.mh (XDEPFILES): Delete.
14903 * config/mips/irix4.mh (XDEPFILES): Delete.
14904 * config/mips/irix3.mh (XDEPFILES): Delete.
14905 * config/mips/decstation.mh (XDEPFILES): Delete.
14906 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14907 (NATDEPFILES): Move core-aout.o to here.
14908 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14909 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14910 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14911 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14912 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14913 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14914 * config/pa/hpux11.mh (XDEPFILES): Delete.
14915 * config/powerpc/aix.mh (XDEPFILES): Delete.
14916 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14917 * config/powerpc/linux.mh (XDEPFILES): Delete.
14918 * config/romp/rtbsd.mh: Rename XDEPFILES.
14919 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14920 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14921 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14922 * config/s390/s390.mh (XDEPFILES): Delete.
14923 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14924 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14925 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14926 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14927 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14928 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14929 * config/sparc/linux.mh (XDEPFILES): Delete.
14930 * config/vax/vaxult.mh (XDEPFILES): Delete.
14931 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14932 * Makefile.in (DEPFILES): Remove XDEPFILES.
14933
14934 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14935
14936 * utils.c (internal_verror): Fix comments, default is yes not no.
14937 Update queries to match. Default to quit and dump core.
14938
14939 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14940
14941 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14942 copyright.
14943 * defs.h, event-top.c, gdbcmd.h: Ditto.
14944 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14945 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14946 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14947 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14948 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14949 * mi/mi-main.c:Ditto.
14950
14951 * stack.c, symfile.c: Update copyright.
14952
14953 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14954
14955 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14956 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14957 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14958 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14959
14960 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14961
14962 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14963 * gdbserver/low-lynx.c (myattach): Likewise.
14964 * gdbserver/low-nbsd.c (myattach): Likewise.
14965 * gdbserver/low-sim.c (myattach): Likewise.
14966 * gdbserver/low-sparc.c (myattach): Likewise.
14967 * gdbserver/low-sun3.c (myattach): Likewise.
14968
14969 * gdbserver/low-linux.c (myattach): New function.
14970
14971 * gdbserver/server.c (attach_inferior): New function.
14972 (main): Handle "--attach".
14973
14974 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14975
14976 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14977 maintainer.
14978
14979 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14980
14981 * c-typeprint.c (is_type_conversion_operator): Add additional
14982 check for non-conversion operators.
14983
14984 2002-01-15 Michael Snyder <msnyder@redhat.com>
14985
14986 * linux-proc.c: Add "info proc" command, a la procfs.c.
14987 (read_mapping): New function, abstract and re-use code.
14988 (linux_find_memory_regions): Use new func read_mapping.
14989 (linux_info_proc_cmd): New function, implement "info proc".
14990 (_initialize_linux_proc): Add new command "info proc".
14991
14992 2002-01-15 Michael Snyder <msnyder@redhat.com>
14993
14994 * symfile.c (generic_load): Use bfd_map_over_sections method
14995 instead of manipulating bfd structure members directly.
14996 (add_section_size_callback): New function, bfd sections callback
14997 used by generic_load.
14998 (load_sections_callback): New function, bfd sections callback
14999 used by generic_load.
15000
15001 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15002
15003 [Based on work by Jim Blandy]
15004 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15005 (builtin_type_vec128): Export.
15006 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15007 types.
15008 (builtin_type_vec128): New builtin type for 128 bit vector
15009 registers.
15010 (build_gdbtypes): Initialize builtin_type_v16qi and
15011 builtin_type_v8hi. Create the vec128 register builtin type
15012 structure.
15013 (build_builtin_type_vec128): New function.
15014 (_initialize_gdbtypes): Register builtin_type_v16qi and
15015 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15016 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15017 AltiVec register to new builtin type.
15018
15019 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15020
15021 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15022 to make_cv_type.
15023
15024 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15025
15026 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15027 CLEAN_UP_REGISTER_VALUE.
15028 * regcache.c (supply_register): Update only call.
15029
15030 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15031
15032 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15033 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15034 a29k-*-vxworks* targets as obsolete.
15035
15036 2002-01-14 Michael Snyder <msnyder@redhat.com>
15037
15038 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15039 until we can resolve portability issues.
15040 * gregset.h: Remove references to fpxregs.
15041 * gcore.c (gcore_command): Initialize note_sec to NULL.
15042
15043 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15044
15045 * signals.c (target_signal_to_name): Rewrite. Only use
15046 signals[].name when in bounds and non-NULL.
15047
15048 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15049
15050 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15051 * signals.c (target_signal_to_name): Verify that SIG is within the
15052 bounds of the signals array.
15053
15054 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15055
15056 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15057
15058 2002-01-13 Keith Seitz <keiths@redhat.com>
15059
15060 * stack.c (print_frame_info_base): Print the frame's pc
15061 only if when print_frame_info_listing_hook is not defined.
15062
15063 2002-01-13 Keith Seitz <keiths@redhat.com>
15064
15065 * varobj.c (varobj_set_value): Make sure that there were no
15066 errors evaluating the object before attempting to set its
15067 value.
15068 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15069 so this offset adjustment is no longer necessary.
15070 (create_child): Don't set the error flag if the child is
15071 a CPLUS_FAKE_CHILD.
15072 (value_of_child): If value_fetch_lazy fails, return NULL
15073 so that callers will be notified that an error occurred.
15074 (c_value_of_variable): Delay check of variable's validity
15075 until later. We actually want all structs and unions to have
15076 the value "{...}".
15077 Do not return "???" for variables which could not be evaluated.
15078 This error condition must be returned to the caller so that it
15079 can get the error condition from gdb.
15080 (cplus_name_of_child): Adjust index for vptr before figuring
15081 out the name of the child.
15082 (cplus_value_of_child): If a child's (real) parent is not valid,
15083 don't even bother trying to give a value for it. Just return
15084 an error. Change all instances in this function.
15085 (cplus_type_of_child): If our parent is one of the "fake"
15086 parents, we need to get at the type of the real parent, and
15087 derive the child's true type using this information.
15088
15089 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15090
15091 From 2002-01-09 John Marshall <johnm@falch.net>:
15092 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15093 sources.redhat.com, and tweak some related URLs which had
15094 suffered from linkrot.
15095
15096 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15097
15098 From Jeff law:
15099 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15100 structures passed in registers.
15101
15102 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15103
15104 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15105 white space which prevented compilation. Reported by DSK
15106 <dsk@student.unsw.edu.au>.
15107
15108 2002-01-11 Michael Snyder <msnyder@redhat.com>
15109
15110 * symfile.c (build_section_addr_info_from_section_tab):
15111 Use bfd access method instead of manipulating bfd directly.
15112 (syms_from_objfile): Ditto.
15113 (simple_overlay_update_1): Ditto.
15114 (simple_overlay_update): Ditto.
15115 (generic_load): Ditto.
15116 (overlay_unmapped_address): FIXME comment, bfd access methods.
15117 (sections_overlap): FIXME comment, bfd access methods.
15118 (pc_in_mapped_range): FIXME comment, bfd access methods.
15119 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15120 (section_is_mapped): FIXME comment, bfd access methods.
15121 (section_is_overlay): FIXME comment, bfd access methods.
15122
15123 * symfile.c (generic_load): Whitespace and long line cleanups.
15124 Remove duplicate variable, change several local variables to
15125 more appropriate data types.
15126 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15127
15128 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15129
15130 From Peter Schauer:
15131 * language.c (longest_local_hex_string_custom): Use phex_nz to
15132 convert NUM to a hex string.
15133
15134 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15135
15136 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15137 the function.
15138 Update Copyright year.
15139
15140 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15141
15142 * language.c (longest_raw_hex_string): Delete unused function.
15143
15144 2002-01-11 Petr Sorfa <petrs@caldera.com>
15145
15146 * MAINTAINERS (write-after-approval): Add myself.
15147 * dwarf2read.c (read_tag_string_type): Handling of
15148 DW_AT_byte_size.
15149 (read_tag_string_type): FORTRAN fix to prevent propagation of
15150 first string size.
15151 (set_cu_language): Handling of DW_LANG_Fortran95
15152
15153 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15154
15155 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15156 GETPID(inferior_ptid).
15157 (store_inferior_registers): Likewise.
15158
15159 2002-01-10 Jason Merrill <jason@redhat.com>
15160
15161 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15162 Fix DW_OP_minus.
15163
15164 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15165
15166 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15167 and bfd/elf32-sh-nbsd.c.
15168
15169 2002-01-10 Michael Snyder <msnyder@redhat.com>
15170
15171 * NEWS: Mention --pid and corefile/proc-id behavior change.
15172
15173 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15174 * gcore.c: Include cli/cli-decode.h instead of command.h.
15175
15176 * main.c (captured_main): Add new command line option "--pid".
15177 If the second command line argument (following the symbol-file)
15178 begins with a digit, try to attach to it before trying to open
15179 it as a corefile.
15180 (print_gdb_help): Document the "--pid" argument.
15181
15182 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15183
15184 * completer.c (command_completer): New function.
15185
15186 * completer.h <command_completer>: Add prototype.
15187
15188 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15189 completer for the "help" command.
15190
15191 2002-01-09 Jason Merrill <jason@redhat.com>
15192
15193 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15194
15195 2002-01-09 Michael Snyder <msnyder@redhat.com>
15196
15197 * i386-linux-nat.c (fill_fpxregset): Make global.
15198 (store_fpxregset): Ditto.
15199
15200 * gregset.h (gdb_fpxregset_t): Define.
15201 (supply_fpxregset): Prototype.
15202 (fill_fpxregset): Prototype.
15203
15204 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15205
15206 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15207
15208 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15209 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15210 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15211
15212 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15213
15214 * MAINTAINERS: Update target maintainer rules so that any
15215 Maintainer can approve a tested patch for a maintenance-only
15216 target.
15217
15218 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15219
15220 * MAINTAINERS (write-after-approval): Add myself.
15221
15222 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15223 IN_SIGTRAMP.
15224
15225 2002-01-08 Michael Snyder <msnyder@redhat.com>
15226
15227 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15228 real name of the executable, rather than the /proc name.
15229
15230 2002-01-03 Michael Snyder <msnyder@redhat.com>
15231
15232 Implement a "generate-core-file" command in gdb, save target state.
15233 * gcore.c: New file. Implement new command 'generate-core-file'.
15234 Save a corefile image of the current state of the inferior.
15235 * linux-proc.c: Add linux-specific code for saving corefiles.
15236 * target.h (struct target_ops): Add new target vectors for saving
15237 corefiles; to_find_memory_regions and to_make_corefile_notes.
15238 (target_find_memory_regions): New macro.
15239 (target_make_corefile_notes): New macro.
15240 * target.c (update_current_target): Inherit new target methods.
15241 (dummy_find_memory_regions): New place-holder method.
15242 (dummy_make_corefile_notes): New place-holder method.
15243 (init_dummy_target): Initialize new dummy target vectors.
15244 * exec.c (exec_set_find_memory_regions): New function.
15245 Allow the exec_ops vector for memory regions to be taken over.
15246 (exec_make_note_section): New function, target vector method.
15247 * defs.h (exec_set_find_memory_regions): Export prototype.
15248 * procfs.c (proc_find_memory_regions): New function, corefile method.
15249 (procfs_make_note_section): New function, corefile method.
15250 (init_procfs_ops): Set new target vector pointers.
15251 (find_memory_regions_callback): New function.
15252 (procfs_do_thread_registers): New function.
15253 (procfs_corefile_thread_callback): New function.
15254 * sol-thread.c (sol_find_memory_regions): New function.
15255 (sol_make_note_section): New function.
15256 (init_sol_thread_ops): Initialize new target vectors.
15257 * inftarg.c (inftarg_set_find_memory_regions): New function.
15258 Allow to_find_memory_regions vector to be taken over.
15259 (inftarg_set_make_corefile_notes): New function.
15260 Allow to_make_corefile_notes vector to be taken over.
15261 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15262 interface layer if not target_has_execution (may be a corefile).
15263 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15264 * config/sparc/sun4sol2.mh: Ditto.
15265 * config/alpha/alpha-linux.mh: Ditto.
15266 * config/arm/linux.mh: Ditto.
15267 * config/i386/x86-64linux.mh: Ditto.
15268 * config/ia64/linux.mh: Ditto.
15269 * config/m68k/linux.mh: Ditto.
15270 * config/mips/linux.mh: Ditto.
15271 * config/powerpc/linux.mh: Ditto.
15272 * config/sparc/linux.mh: Ditto.
15273
15274 2002-01-07 Michael Snyder <msnyder@redhat.com>
15275
15276 * arm-linux-nat.c: Remove references to regcache.c internal data
15277 (registers[] and register_valid[]).
15278
15279 2002-01-07 Michael Snyder <msnyder@redhat.com>
15280
15281 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15282 so that attaching to a pid will automatically read the process's
15283 symbol file and shlibs.
15284 * Makefile.in: Add rule for linux-proc.o.
15285 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15286 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15287 * config/arm/linux.mh: Ditto.
15288 * config/i386/linux.mh: Ditto.
15289 * config/i386/x86-64linux.mh: Ditto.
15290 * config/ia64/linux.mh: Ditto.
15291 * config/m68k/linux.mh: Ditto.
15292 * config/mips/linux.mh: Ditto.
15293 * config/powerpc/linux.mh: Ditto.
15294 * config/sparc/linux.mh: Ditto.
15295
15296 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15297
15298 * win32-nat.c: Add i386-tdep.h dependency.
15299
15300 2002-01-07 Michael Snyder <msnyder@redhat.com>
15301
15302 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15303 instead of bfd_get_arch_size. Don't bail out just because
15304 there's no exec_bfd.
15305
15306 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15307 * p-valprint.c (pascal_object_print_value): Ditto.
15308 * somread.c (som_symtab_read): Ditto.
15309 * symfile.c (simple_free_overlay_region_table): Ditto.
15310 * valops.c (value_assign): Ditto.
15311
15312 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15313 use tilde_expand and strerror for opening save-tracepoints file.
15314
15315 * thread-db.c (thread_db_new_objfile): Indendation fix.
15316
15317 * infptrace.c (GDB_MAX_ALLOCA): New define.
15318 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15319 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15320 can be overridden with whatever value is appropriate to the host).
15321 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15322 alloca to allocate potentially large buffer.
15323 * rs6000-nat.c (child_xfer_memory): Ditto.
15324 * symm-nat.c (child_xfer_memory): Ditto.
15325 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15326
15327 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15328
15329 From Nick Clifton <nickc@redhat.com>
15330 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15331
15332 2002-01-07 Michael Snyder <msnyder@redhat.com>
15333
15334 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15335 Don't use exec_bfd if it's NULL.
15336
15337 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15338
15339 * valops.c (value_arg_coerce): Fix formatting.
15340
15341 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15342
15343 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15344 * gnu-nat.c: Ditto.
15345
15346 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15347
15348 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15349 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15350 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15351 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15352 z8k-coff have not been multi-arched. Update z8k-coff build
15353 status.
15354
15355 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15356
15357 * MAINTAINERS: Mark a29k target as obsolete.
15358 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15359 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15360 comments.
15361 * NEWS: Note that a29k targets are obsolete.
15362 * a29k-tdep.c: Mark as obsolete.
15363 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15364 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15365 a29k-*-vxworks* targets as obsolete.
15366 * remote-adapt.c: Obsolete.
15367 * remote-eb.c: Obsolete.
15368 * remote-mm.c: Obsolete.
15369 * remote-udi.c: Obsolete.
15370 * config/a29k/a29k-udi.mt: Obsolete.
15371 * config/a29k/a29k.mt: Obsolete.
15372 * config/a29k/tm-a29k.h: Obsolete.
15373 * config/a29k/tm-vx29k.h: Obsolete.
15374 * config/a29k/vx29k.mt: Obsolete.
15375
15376 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15377
15378 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15379 with BFD_ENDIAN_BIG.
15380
15381 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15382
15383 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15384 * configure, config.in: Re-generate.
15385 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15386 * defs.h: Do not include <endian.h>.
15387
15388 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15389
15390 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15391 * config.in: Regenerate.
15392 * configure.in: Update copyright years.
15393 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15394 * configure: Regenerate.
15395 * i386bsd-nat.c: Update copyright years.
15396 (fill_gregset): Use regcache_collect.
15397 (fetch_inferior_registers): Only fetch integer registers
15398 if requested to do so. Add support for XMM registers
15399 using PT_GETXMMREGS.
15400 (store_inferior_registers): Only store integer registers
15401 if requested to do so. Add support for XMM registers
15402 using PT_SETXMMREGS.
15403 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15404 (store_inferior_registers): Remove.
15405 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15406 (fetch_elfcore_registers): New function.
15407 (i386nbsd_elfcore_fns): New.
15408 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15409 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15410 i386bsd-nat.o.
15411 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15412 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15413 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15414 * config/i386/tm-nbsd.h: Update copyright years.
15415 (HAVE_SSE_REGS): Define.
15416 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15417 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15418 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15419 (SIGCONTEXT_PC_OFFSET): Remove.
15420 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15421
15422 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15423
15424 * configure.tgt: Remove powerpc-*-macos* target.
15425 * config/m68k/xm-mpw.h: Delete file.
15426 * config/xm-mpw.h: Delete file.
15427 * ser-mac.c: Delete file.
15428 * mpw-make.sed: Delete file.
15429 * mpw-config.in: Delete file.
15430 * mac-xdep.c: Delete file.
15431 * mac-gdb.r: Delete file.
15432 * mac-defs.h: Delete file.
15433 * mac-nat.c: Delete file.
15434 * config/powerpc/macos.mh: Delete file.
15435 * config/powerpc/macos.mt: Delete file.
15436 * config/powerpc/nm-macos.h: Delete file.
15437 * config/powerpc/tm-macos.h: Delete file.
15438 * source.c (openp, open_source_file): Remove obsolete code.
15439 * top.c (gdb_readline): Ditto.
15440 * utils.c (query): Ditto.
15441 * event-top.c (display_gdb_prompt): Ditto.
15442 * Makefile.in (ser-mac.o): Delete obsolete target.
15443 * NEWS: Update.
15444
15445 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15446
15447 * defs.h (BIG_ENDIAN): Delete macro definition.
15448 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15449 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15450 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15451 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15452 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15453 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15454 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15455 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15456 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15457 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15458 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15459 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15460 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15461 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15462 * gdbarch.c: Re-generate.
15463
15464 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15465
15466 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15467 for core files.
15468
15469 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15470
15471 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15472
15473 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15474
15475 * value.h (value_ptr): Delete typedef.
15476
15477 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15478
15479 * i386nbsd-nat.c: Update copyright years.
15480 Include i386-tdep.h.
15481
15482 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15483
15484 * stabsread.c: Update copyright years.
15485
15486 From Debashis Mahata <debashis.mahata@wipro.com>:
15487 (read_struct_fields): Deal with Sun C compiler erroneous stab
15488 output for structs and unions.
15489 Fix PR gdb/269.
15490
15491 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15492
15493 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15494 prototype.
15495
15496 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15497
15498 * cp-abi.c: Fix whitespace.
15499 (baseclass_offset): New wrapper function.
15500 * cp-abi.h (baseclass_offset): Add prototype.
15501 (struct cp_abi_ops): Add baseclass_offset pointer.
15502
15503 * valops.c (vb_match): Move to...
15504 * gnu-v2-abi.c (vb_match): here.
15505 * valops.c (baseclass_offset): Move to...
15506 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15507
15508 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15509
15510 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15511 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15512 * hpacc-abi.c (init_hpacc_ops): Likewise.
15513
15514 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15515
15516 * valops.c (find_overload_match): Accept obj as a
15517 reference parameter. Update it before returning.
15518 * value.h (find_overload_match): Update prototype.
15519 * eval.c (evaluate_subexp_standard): Pass object to
15520 find_overload_match by reference.
15521
15522 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15523
15524 * valarith.c: Replace value_ptr with struct value pointer. Remove
15525 register attribute from value declarations.
15526 * valops.c: Ditto.
15527 * value.h: Ditto.
15528 * scm-lang.c (scm_lookup_name): Ditto.
15529
15530 2002-01-03 Michael Snyder <msnyder@redhat.com>
15531
15532 Abstract the functionality of iterating over mapped memory
15533 regions into a general purpose iterator function.
15534 * procfs.c (iterate_over_mappings): New function, general purpose
15535 iterator for memory sections.
15536 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15537 (solib_mappings_callback): New function, callback for above.
15538 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15539 (info_mappings_callback): New function, callback for above.
15540
15541 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15542
15543 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15544
15545 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15546 * i386-tdep.c: Include "elf-bfd.h".
15547 (process_note_abi_tag_sections): New function.
15548 (i386_gdbarch_init): Add code to recognize various OS/ABI
15549 combinations.
15550
15551 * maint.c (_initialize_maint_cmds): Add missing \ in
15552 string-literal.
15553
15554 For older changes see ChangeLog-2001
15555 \f
15556 Local Variables:
15557 mode: change-log
15558 left-margin: 8
15559 fill-column: 74
15560 version-control: never
15561 End:
This page took 0.322619 seconds and 5 git commands to generate.