2003-01-06 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f6c609c4
AC
12003-01-06 Andrew Cagney <ac131313@redhat.com>
2
3 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
4 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
6 deprecated_frame_xmalloc_with_cleanup.
7 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
8 deprecated_frame_xmalloc.
9 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
10 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11
d995ff4b
AC
122003-01-06 Andrew Cagney <cagney@redhat.com>
13
84dc46cb
AC
14 * x86-64-linux-tdep.c: Include "osabi.h".
15 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
16
d995ff4b
AC
17 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
18
66140c26
AC
192003-01-06 Andrew Cagney <cagney@redhat.com>
20
21 * MAINTAINERS (Target Instruction Set Architectures): Update
22 arm-elf. Can be built with -Werror, has been multiarched.
23
24 * value.h (unpack_long): Make buffer parameter constant.
25 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
26 * scm-lang.h (scm_parse): Ditto.
27 * defs.h (extract_typed_address, extract_address): Ditto.
28 (extract_long_unsigned_integer): Ditto.
29 * inferior.h (unsigned_pointer_to_address): Ditto.
30 (signed_pointer_to_address): Ditto.
31 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
32 * gdbarch.h, gdbarch.c: Regenerate.
33 * findvar.c (extract_long_unsigned_integer): Update.
34 (extract_address): Update.
35 (extract_typed_address): Update.
36 (unsigned_pointer_to_address): Update.
37 * values.c (unpack_long): Update.
38 (unpack_double): Update.
39 (unpack_pointer): Update.
40 (unpack_field_as_long): Update.
41 * d10v-tdep.c (d10v_pointer_to_address): Update.
42 * avr-tdep.c (avr_pointer_to_address): Update.
43 * scm-lang.c (scm_unpack): Update.
44 * findvar.c (signed_pointer_to_address): Update.
45
b089b3da
ML
462003-01-06 Michal Ludvig <mludvig@suse.cz>
47
48 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
49 since it is in i386-tdep.c.
50
aff87235
JB
512003-01-06 J. Brobecker <brobecker@gnat.com>
52
53 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
54 failure introduced in the previous change.
55
34f5e845
MC
562003-01-05 Michael Chastain <mec@shout.net>
57
58 * README: Remove references to deleted remote-*.c files:
59 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
60 remote-nrom.c, remote-os9k.c, remote-udi.c.
61
28bcfd30
MK
622003-01-05 Mark Kettenis <kettenis@gnu.org>
63
64 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
65 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
66 i386_get_longjmp_target.
67
15a5b3ee
AC
682003-01-05 Andrew Cagney <ac131313@redhat.com>
69
70 * arm-tdep.c (prologue_cache): Change to a pointer.
71 (_initialize_arm_tdep): Allocate prologue_cache.
72 (check_prologue_cache): Update.
73 (save_prologue_cache): Update.
74 (arm_gdbarch_init): Update.
75
c263362b
DJ
762003-01-04 Daniel Jacobowitz <drow@mvista.com>
77
78 * stabsread.c (update_method_name_from_physname): Call complaint()
79 instead of error.
80
51603483
DJ
812003-01-04 Daniel Jacobowitz <drow@mvista.com>
82
83 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
84 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
85 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
86
87 * blockframe.c: Include "gdbcmd.h" and "command.h".
88 (backtrace_below_main): New variable.
89 (file_frame_chain_valid, func_frame_chain_valid)
90 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
91 (generic_func_frame_chain_valid): Remove functions.
92 (frame_chain_valid, do_flush_frames_sfunc): New functions.
93 (_initialize_blockframe): New function.
94 * Makefile.in (blockframe.o): Update dependencies.
95 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
96 comment. Call frame_chain_valid ().
97 * frame.h: Remove old prototypes. Add prototype for
98 frame_chain_valid and update comments to match.
99 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
100 Remove old comment.
101 * gdbarch.h: Regenerated.
102 * gdbarch.c: Regenerated.
103
104 * alpha-tdep.c (alpha_gdbarch_init): Don't call
105 set_gdbarch_frame_chain_valid.
106 * avr-tdep.c (avr_gdbarch_init): Likewise.
107 * cris-tdep.c (cris_gdbarch_init): Likewise.
108 * frv-tdep.c (frv_gdbarch_init): Likewise.
109 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
110 * i386-tdep.c (i386_svr4_init_abi): Likewise.
111 (i386_nw_init_abi): Likewise.
112 (i386_gdbarch_init): Likewise.
113 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
115 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
116 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
117 * mips-tdep.c (mips_gdbarch_init): Likewise.
118 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
119 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
120 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
121 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
122 * s390-tdep.c (s390_gdbarch_init): Likewise.
123 * sh-tdep.c (sh_gdbarch_init): Likewise.
124 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
125 * v850-tdep.c (v850_gdbarch_init): Likewise.
126 * vax-tdep.c (vax_gdbarch_init): Likewise.
127 * x86-64-tdep.c (x86_64_init_abi): Likewise.
128
129 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
130 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
131 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
132 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
133 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
134 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
135 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
136 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
137
b00a8037
DJ
1382002-01-04 Daniel Jacobowitz <drow@mvista.com>
139
140 * Makefile.in (acconfig_h): Remove incorrect macro.
141 (config_h): Define.
142 (osabi.o): Update dependencies.
143 * configure.tgt: Set gdb_osabi based on target triplet.
144 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
145 * configure: Regenerated.
146 * config.in: Regenerated.
147 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
148 (GDB_OSABI_DEFAULT): Define if not already defined.
149 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
150 (set_osabi_string): New variables.
151 (gdbarch_register_osabi): Add new OS ABI to
152 gdb_osabi_available_names.
153 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
154 (set_osabi, show_osabi): New functions.
155 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
156
4be87837
DJ
1572003-01-04 Daniel Jacobowitz <drow@mvista.com>
158
159 * arch-utils.c (gdbarch_info_init): Set osabi to
160 GDB_OSABI_UNINITIALIZED.
161 * gdbarch.sh: Add osabi to struct gdbarch and to struct
162 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
163 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
164 * gdbarch.c: Regenerated.
165 * gdbarch.h: Regenerated.
166 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
167 there's no BFD.
168 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
169 * osabi.h (enum gdb_osabi): Move to defs.h.
170 (gdbarch_init_osabi): Update prototype.
171 * defs.h (enum gdb_osabi): Moved here.
172 * Makefile.in: Update dependencies.
173
174 * alpha-tdep.h: Don't include "osabi.h".
175 (struct gdbarch_tdep): Remove osabi member.
176 * alpha-tdep.c: Include "osabi.h".
177 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
178 iterate over arches. Update call to gdbarch_init_osabi.
179 (alpha_dump_tdep): Don't dump osabi.
180 * alpha-linux-tdep.c: Include "osabi.h".
181 * alpha-osf1-tdep.c: Include "osabi.h".
182 * alphafbsd-tdep.c: Include "osabi.h".
183 * alphanbsd-tdep.c: Include "osabi.h".
184
185 * arm-tdep.h: Don't include "osabi.h".
186 (struct gdbarch_tdep): Remove osabi member.
187 * arm-tdep.c: Include "osabi.h".
188 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
189 iterate over arches. Update call to gdbarch_init_osabi.
190 (arm_dump_tdep): Don't dump osabi.
191 * arm-linux-tdep.c: Include "osabi.h".
192 * armnbsd-tdep.c: Include "osabi.h".
193
194 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
195 Update call to gdbarch_init_osabi.
196
197 * i386-tdep.h: Don't include "osabi.h".
198 (struct gdbarch_tdep): Remove osabi member.
199 * i386-tdep.c: Include "osabi.h".
200 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
201 iterate over arches. Update call to gdbarch_init_osabi.
202 (i386_dump_tdep): Don't dump osabi.
203 * i386-linux-tdep.c: Include "osabi.h".
204 * i386-sol2-tdep.c: Include "osabi.h".
205 * i386bsd-tdep.c: Include "osabi.h".
206 * i386gnu-tdep.c: Include "osabi.h".
207 * i386ly-tdep.c: Include "osabi.h".
208 * i386nbsd-tdep.c: Include "osabi.h".
209 * i386obsd-tdep.c: Include "osabi.h".
210
211 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
212 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
213 check osabi when iterating over arches. Update call to
214 gdbarch_init_osabi.
215 (mips_dump_tdep): Don't dump osabi.
216
217 * ns32k-tdep.h: Don't include "osabi.h".
218 (struct gdbarch_tdep): Remove.
219 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
220 gdbarch_lookup_osabi. Don't iterate over arches. Don't
221 allocate tdep. Update call to gdbarch_init_osabi.
222 (ns32k_dump_tdep): Remove.
223 (_initialize_ns32k_tdep): Update call to gdbarch_register.
224 * ns32knbsd-tdep.c: Include "osabi.h".
225
226 * ppc-tdep.h: Don't include "osabi.h".
227 (struct gdbarch_tdep): Remove osabi member.
228 * rs6000-tdep.c: Include "osabi.h".
229 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
230 osabi when iterating over arches. Update call to
231 gdbarch_init_osabi.
232 (rs6000_dump_tdep): Don't dump osabi.
233 * ppc-linux-tdep.c: Include "osabi.h".
234 * ppcnbsd-tdep.c: Include "osabi.h".
235
236 * sh-tdep.h: Don't include "osabi.h".
237 (struct gdbarch_tdep): Remove osabi member.
238 * sh-tdep.c: Include "osabi.h".
239 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
240 iterate over arches. Update call to gdbarch_init_osabi.
241 (sh_dump_tdep): Don't dump osabi.
242 * shnbsd-tdep.c: Include "osabi.h".
243
244 * sparc-tdep.c: Include "osabi.h".
245 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
246 iterate over arches. Update call to gdbarch_init_osabi.
247 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
248 tdep structure.
249
250 * vax-tdep.h: Don't include "osabi.h".
251 (struct gdbarch_tdep): Remove.
252 * vax-tdep.c: Include "osabi.h".
253 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
254 iterate over arches. Don't allocate tdep. Update call
255 to gdbarch_init_osabi.
256 (vax_dump_tdep): Remove.
257 (_initialize_vax_tdep): Update call to gdbarch_register.
258
a881cf8e
DJ
2592003-01-04 Daniel Jacobowitz <drow@mvista.com>
260
261 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
262 entirely.
263 (breakpoint_re_set_one): Don't fetch the value for a disabled
264 watchpoint.
265
1e698235
DJ
2662003-01-04 Daniel Jacobowitz <drow@mvista.com>
267
268 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
269 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
270 (COERCE_FLOAT_TO_DOUBLE): Remove.
271 * gdbarch.c: Regenerate.
272 * gdbarch.h: Regenerate.
273 * Makefile.in: Remove value_h from gdbarch_h.
274 * valops.c (coerce_float_to_double): New variable.
275 (default_coerce_float_to_double): Remove.
276 (standard_coerce_float_to_double): Remove.
277 (value_arg_coerce): Use coerce_float_to_double.
278 (_initialize_valops): Add "set coerce-float-to-double".
279 * value.h (default_coerce_float_to_double): Remove prototype.
280 (standard_coerce_float_to_double): Remove prototype.
281
282 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
283 prototyped.
284 * mdebugread.c (parse_symbol): Likewise.
285 * stabsread.c (define_symbol): Mark all functions as prototyped.
286
287 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
288 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
289 set_gdbarch_coerce_float_to_double.
290 * arm-tdep.c (arm_gdbarch_init): Likewise.
291 * frv-tdep.c (frv_gdbarch_init): Likewise.
292 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
293 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
294 * mips-tdep.c (mips_gdbarch_init): Likewise.
295 (mips_coerce_float_to_double): Remove.
296 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
297 (rs6000_coerce_float_to_double): Remove.
298 * s390-tdep.c (s390_gdbarch_init): Likewise.
299 * sh-tdep.c (sh_gdbarch_init): Likewise.
300 (sh_coerce_float_to_double): Remove.
301 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
302 (sparc_coerce_float_to_double): Remove.
303 * v850-tdep.c (v850_gdbarch_init): Likewise.
304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
305 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
306 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
307 (hppa_coerce_float_to_double): Remove prototype.
308 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
309
f436a26a
DJ
3102003-01-04 Daniel Jacobowitz <drow@mvista.com>
311
312 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
313
248f8055
DJ
3142003-01-04 Daniel Jacobowitz <drow@mvista.com>
315
316 Suggested by Stewart Brown <sb24@avaya.com>:
317 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
318 in recursive calls. Handle TYPE_CODE_TYPEDEF.
319 (c_type_print_varspec_suffix): Likewise.
320
72cfdc76
MK
3212003-01-04 Mark Kettenis <kettenis@gnu.org>
322
bfd260bb
MK
323 * configure.in: Don't set and AC_SUBST SUBDIRS.
324 * configure: Regenerated.
325
72cfdc76
MK
326 * configure.in: Remove code dealing with shared libraries.
327 * Makefile.in: Remove HLDFLAGS and HLDENV.
328 * configure: Regenerated.
329
c8b8a898
AC
3302003-01-04 Andrew Cagney <ac131313@redhat.com>
331
332 * frame.c (deprecated_frame_xmalloc): New function.
333 (deprecated_set_frame_saved_regs_hack): New function.
334 (deprecated_set_frame_extra_info_hack): New function.
335 * frame.h (deprecated_frame_xmalloc): Declare.
336 (deprecated_set_frame_saved_regs_hack): Declare.
337 (deprecated_set_frame_extra_info_hack): Declare.
338
14abd0fb
MK
3392003-01-04 Mark Kettenis <kettenis@gnu.org>
340
8ee53726
MK
341 * configure.in: Move code that provides the --enable-gdbtk option
342 right after the code that handles the --enable-tui option, and
343 polish it somewhat.
344 * configure: Regenerated.
345
14abd0fb
MK
346 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
347 AC_CHECK_FUNCS and remove the old check for pread64.
348 * acinclude.m4 (AC_GNU_SOURCE): New macro.
349 * acconfig.h (_GNU_SOURCE): Add.
350 (HAVE_PREAD64): Remove.
351 * configure, aclocal.m4, config.in: Regenerated.
352
b2fb4676
AC
3532003-01-03 Andrew Cagney <ac131313@redhat.com>
354
355 * alpha-tdep.c: Use get_frame_saved_regs.
356 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
357 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
358 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
359 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
360 * vax-tdep.c, xstormy16-tdep.c: Ditto.
361
8dcde887
MK
3622003-01-03 Mark Kettenis <kettenis@gnu.org>
363
364 * configure.in: Remove all use of the SUBDIRS variable; add
365 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
366 code providing the --enable-multi-ice option, and move it right in
367 front of the code that checks whether gdbserver is supported.
368 Polish that too.
369 * configure: Regenerated.
370 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
371 @SUBDIRS@.
372
8ccd593b
AC
3732003-01-03 Andrew Cagney <cagney@redhat.com>
374
375 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
376 * avr-tdep.c, cris-tdep.c: Ditto.
377 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
378 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
379
91151a06
MK
3802003-01-03 Mark Kettenis <kettenis@gnu.org>
381
382 * configure.in: Remove --enable-netrom option.
383 * configure: Regenerated.
384
8fe84d01
MK
3852003-01-03 Mark Kettenis <kettenis@gnu.org>
386
387 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
388 declaration for `struct re_pattern_buffer' instead.
389 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
390
f0394be6
JB
3912003-01-03 J. Brobecker <brobecker@gnat.com>
392
393 * mdebugread.c (parse_symbol): Count until the stEnd matching
394 the structure name.
395
27e9bf90
MK
3962003-01-02 Mark Kettenis <kettenis@gnu.org>
397
93d331ba
MK
398 * configure.in: Remove --with-cpu option.
399 subscripts. Remove evil changequotes here.
400 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
401 * config.in, configure: Regenerated.
402
27e9bf90
MK
403 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
404 * configure.in: Cleanup section that sources GDB and BFD configure
405 subscripts. Remove evil changequotes here.
406 * config.in, configure: Regenerated.
407
50abf9e5
AC
4082003-01-02 Andrew Cagney <ac131313@redhat.com>
409
410 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
411 frame accessor methods.
412 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
413 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
414 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
415 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
416 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
417 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
418 * z8k-tdep.c: Ditto.
419
287c1a40
MK
4202003-01-02 Mark Kettenis <kettenis@gnu.org>
421
f5dbc56d
MK
422 * configure.in: Remove UI_OUT configuration code.
423 * ada-lang.c: Update assuming UI_OUT is always true.
424 * Makefile.in (UIOUT_CFLAGS): Remove.
425 * configure: Regenerated.
426 * TODO: Remove blurb about elimination of -DUI_OUT.
427
627af7ea
MK
428 * configure.in: Move code that provides the --enable-gdbcli,
429 --enable-gdbmi options right before the code that handles the
430 --enable-tui option. Polish a bit.
431 * configure: Regenerated.
432
06825bd1
MK
433 * configure.in: Rewrite check for GNU regex and the
434 --without-included regex option, and move it into the "Checks for
435 library functions" section. This makes us use the system regex
436 again by default on systems with version 2 of the GNU C library.
437 This was apparently broken.
438 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
439 * acconfig.h (USE_INCLUDED_REGEX): Remove.
440 * config.in, configure: Regenerated.
441
287c1a40
MK
442 * configure.in: Move code that provides the --enable-tui option
443 before the "Checks for libraries" section. Polish the code
444 somewhat and set need_curses to yes if we build the TUI. Rewrite
445 code that looks for a library providing termcap functionality to
446 match more closely what's done in the Readline library, and move
447 it into to the "Checks for libraries" section.
448 * configure: Regenerated.
449 * Makefile.in (TERMCAP): Remove variable.
450 * config/i386/go32.mh (TERMCAP): Remove variable.
451
684e56bf
AC
4522003-01-02 Andrew Cagney <ac131313@redhat.com>
453
454 * MAINTAINERS: Mention gdb_mbuild.sh.
455 * gdb_mbuild.sh: Rewrite.
456
e1ea1d75
MK
4572003-01-02 Mark Kettenis <kettenis@gnu.org>
458
459 * configure.in: Fix typo in last change.
460 * config.in, configure: Regenerated.
461
1b831c93
AC
4622003-01-02 Andrew Cagney <ac131313@redhat.com>
463
464 * valarith.c (value_binop): Delete obsolete code and comments.
465 * configure.host: Ditto.
466 * buildsym.h (make_blockvector): Ditto.
467 * buildsym.c (make_blockvector): Ditto.
468 * defs.h (enum language): Ditto.
469 (chill_demangle): Ditto.
470 * elfread.c (elf_symtab_read): Ditto.
471 * dwarfread.c (CHILL_PRODUCER): Ditto.
472 (set_cu_language): Ditto.
473 (handle_producer): Ditto.
474 * expprint.c (print_subexp): Ditto.
475 * gdbtypes.c (chill_varying_type): Ditto.
476 * gdbtypes.h (builtin_type_chill_bool): Ditto.
477 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
478 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
479 (chill_varying_type): Ditto.
480 * language.h (_LANG_chill): Ditto.
481 * language.c (binop_result_type, integral_type): Ditto.
482 (character_type, string_type, structured_type): Ditto.
483 (lang_bool_type, binop_type_check): Ditto.
484 * stabsread.h (os9k_stabs): Ditto.
485 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
486 (define_symbol, read_type, read_struct_fields): Ditto.
487 (read_array_type, read_enum_type, read_huge_number): Ditto.
488 (read_range_type, start_stabs): Ditto.
489 * symfile.c (init_filename_language_table): Ditto.
490 (add_psymbol_with_dem_name_to_list): Ditto.
491 * symtab.c (symbol_init_language_specific): Ditto.
492 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
493 * symtab.h (struct general_symbol_info): Ditto.
494 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
495 * typeprint.c (typedef_print): Ditto.
496 * utils.c (fprintf_symbol_filtered): Ditto.
497 * valops.c (value_cast, search_struct_field, value_slice): Delete
498 obsolete code.
499 (varying_to_slice): Delete function.
500 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
501 (varying_to_slice): Delete declaration.
502 * MAINTAINERS: Update.
503
8bb2c122
MK
5042003-01-02 Mark Kettenis <kettenis@gnu.org>
505
97bf5e38
MK
506 * configure.in: Reorganize "Checks for library functions section"
507 a bit. Remove check for `btowc' and `isascii' functions.
508 * configure: Regenerated.
509
5ee754fc
MK
510 * acconfig.h (_MSE_INT_H): Remove.
511 * configure.in: Create "Checks for header files" section, and move
512 appropriate tests there. Don't check for objlist.h, wchar.h,
513 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
514 misdetection fix. Also add "Checks for types", "Checks for
515 compiler characteristics" and "Checks for library functions"
516 sections.
517 * config.in, configure: Regenerated.
518
8bb2c122
MK
519 * configure.in: Create "Checks for programs" section, and move
520 appropriate tests there.
521
9a156167
MK
5222003-01-01 Mark Kettenis <kettenis@gnu.org>
523
524 * configure.in: Create "Checks for libraries" section, and move
525 appropriate tests there. Cleanup check for wctype in libw. Use
526 AC_SEARCH_LIBS to see whether we need libsocket.
527 * configure: Regenerated.
528
3250596b
MK
5292002-12-31 Mark Kettenis <kettenis@gnu.org>
530
531 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
532 * config.in, configure: Regenerated.
533
9608ab8b
MK
5342002-12-31 Mark Kettenis <kettenis@gnu.org>
535
536 * gdb_dirent.h: Cleanup and update code to match the example in
537 the Autoconf manual.
538 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
539 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
540 * configure: Regenerated.
541
7ee21aad
AF
5422002-12-30 Adam Fedor <fedor@gnu.org>
543
544 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
545 (yylex): Initialize c to avoid uninitialized warning.
546
4c8eeedd
KH
5472002-12-29 Kazu Hirata <kazu@cs.umass.edu>
548
549 * doc/fdl.texi: Revert the last change.
550
6f2ecac5
MK
5512002-12-29 Mark Kettenis <kettenis@gnu.org>
552
553 * tracepoint.c (ISATTY): Removed.
554
60383d10
JB
5552002-12-26 J. Brobecker <brobecker@gnat.com>
556
557 Continuing work to convert the hppa targets to multiarch partil.
558
559 * hppa-tdep.c: Add some missing forward declarations.
560 (frameless_function_invocation): Prefix the function name
561 by "hppa_" to avoid polluting the namespace. Update all calls
562 to use the new function name.
563 (saved_pc_after_call): Ditto.
564 (init_extra_frame_info): Ditto.
565 (frame_chain): Ditto.
566 (push_dummy_frame): Ditto.
567 (target_read_pc): Ditto.
568 (target_write_pc): Ditto.
569 (in_solib_call_trampoline): Ditto.
570 (in_solib_return_trampoline): Ditto.
571 (skip_trampoline_code): Ditto.
572 (hppa_read_fp): New function, renamed from target_read_fp.
573 (hppa_target_read_fp): New function, using hppa_read_fp.
574 This function conforms to the function profile for the
575 READ_FP gdbarch method.
576 (hppa_extract_struct_value_address): New function, extracted
577 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
578 macro.
579 (hppa_frame_num_args): New function.
580 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
581
582 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
583 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
584 for the switch to multiarch partial.
585 Update some of the macros definitions to match some changes
586 described above in the name of the function they are calling.
587 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
588 not be straightforward to convert. Do now wrap it inside
589 "#if !... #endif" to remember that this macro has still not
590 been taken care of.
591 (FIX_CALL_DUMMY): Likewise.
592
60e1ff27
JB
5932002-12-26 J. Brobecker <brobecker@gnat.com>
594
595 Continuing work to convert the hppa targets to multiarch partial.
596
60383d10 597 * hppa-tdep.c (hppa_register_raw_size): New function replacing
60e1ff27
JB
598 the body of macro REGISTER_RAW_SIZE.
599 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
600 config/pa/tm-hppah.h. These functions will be used to initialize
601 the gdbarch structure.
602 (hppa_hpux_pc_in_sigtramp): New function.
603 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
604 (hppa_hpux_frame_base_before_sigtramp): New function.
605 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
606 Add gdbcore.h #include.
607 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
608 of this gdbarch-eligible macro to a call to the new associated
609 function.
610 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
611 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
612 into a call to the new associated function.
613 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
614 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
615 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
616
6c756a30
DC
6172002-12-24 David Carlton <carlton@math.stanford.edu>
618
619 * config/sparc/tm-sparc.h: Delete duplicate definition of
620 DEPRECATED_PC_IN_CALL_DUMMY.
621
96f026fc
KB
6222002-12-24 Kevin Buettner <kevinb@redhat.com>
623
624 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
625 $(gdb_assert_h).
626 * configure.tgt: Recognize mips64*-*-linux*.
627 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
628 (supply_32_bit_reg): New function.
629 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
630 (fill_gregset): Use regcache_collect() instead of
631 deprecated_registers[].
632 (register_addr): Change name to mips_linux_register_addr().
633 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
634 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
635 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
636 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
637 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
638 (MIPS64_LINUX_JB_PC): New defines.
639 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
640 (mips64_elf_fpregset_t): New typedefs.
641 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
642 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
643 (mips64_linux_register_addr, set_mips_linux_register_addr)
644 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
645 (init_register_addr_data)
646 New functions.
647 (fetch_core_registers): Add support for core file formats with 64-bit
648 registers.
649 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
650 (register_addr_data): New static global variable.
651 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
652 gdbarch_register_osabi() for each MIPS machine.
653 * config/mips/linux64.mt: New file.
654 * config/mips/tm-linux64.h: New file.
655
5a24b7e3
AF
6562002-12-23 Adam Fedor <fedor@gnu.org>
657
658 * maint.c (maintenance_demangle): Add switch to demangle
659 ObjC language symbols as well.
660
9d1127c5
AF
6612002-12-23 Adam Fedor <fedor@gnu.org>
662
663 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
664 last argument from complaint function call.
665
96f026fc 6662002-12-23 Kevin Buettner <kevinb@redhat.com>
bcf16802
KB
667
668 * exec.c (print_section_info): Add FIXME comments regarding format
669 string choices.
670
710686b3
DJ
6712002-12-23 Daniel Jacobowitz <drow@mvista.com>
672
673 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
674 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
675
6762002-12-23 Rodney Brown <rbrown64@csc.com.au>
677
678 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
679
e45febe2
DC
6802002-12-23 David Carlton <carlton@math.stanford.edu>
681
682 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
683 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
684 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
685 information associated to a minsym, not lookup_symbol.
686
2213a65d
MK
6872002-12-21 Mark Kettenis <kettenis@gnu.org>
688
689 * x86-64-tdep.h (x86_64_init_abi): New prototype.
690 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
691 (x86_64_init_abi): Make non-static. Set number of pseudo
692 registers to 0.
693 (x86_64_gdbarch_init): Remove function.
694 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
695 Remove code dealing with dissambly.
696 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
697 (_initialize_x86_64_linux_tdep): New function.
698 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
699 i386-tdep.o.
700
05816f70
MK
7012002-12-14 Mark Kettenis <kettenis@gnu.org>
702
703 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
704 (struct gdb_osabi_handler): Remove member `arch'. Add member
705 `arch_info'.
706 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
707 construct a `struct bfd_arch_info' and store it in the `struct
708 gdb_osabi_handler' that is created.
709 (gdbarch_init_osabi): Check for compatibility based on machine
710 type and architecture.
711 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
712 comment.
713 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
714 second argument in call to gdbarch_register_osabi.
715 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
716 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
717 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
718 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
719 * arm-tdep.c (_initialize_arm_tdep): Likewise.
720 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
721 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
722 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
723 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
724 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
725 * i386-tdep.c (_initialize_i386_tdep): Likewise.
726 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
727 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
728 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
729 _initialize_i386bsd_tdep and updated likewise.
730 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
731 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
732 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
733 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
734 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
735 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
736 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
737 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
738 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
739 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
740
743b930b
KB
7412002-12-20 Kevin Buettner <kevinb@redhat.com>
742
743 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
744 DT_MIPS_RLD_MAP case for 64-bit targets.
745
3758ac48
KB
7462002-12-20 Kevin Buettner <kevinb@redhat.com>
747
748 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
749 ``temp_saved_regs'', not the pointer or other storage contiguous
750 to this pointer.
751
19ed69dd
KB
7522002-12-20 Kevin Buettner <kevinb@redhat.com>
753
754 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
755 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
756 (mips_linux_get_longjmp_target): Delete declarations.
757 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
758 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
759 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
760 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
761 (mips_linux_get_longjmp_target)
762 (mips_linux_svr4_fetch_link_map_offsets): Make static.
763 (mips_linux_init_abi): New function.
764 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
765
7990a578
EZ
7662002-12-19 Keith Seitz <keiths@redhat.com>
767
768 patch committed by Elena Zannoni <ezannoni@redhat.com>
769 * thread.c (do_captured_list_thread_ids): Call prune_threads and
770 target_find_new_threads. Fix for PR mi/669.
771
84fba31b
DC
7722002-12-19 David Carlton <carlton@math.stanford.edu>
773
774 * linespec.c (decode_line_1): Move code into decode_all_digits.
775 (decode_all_digits): New function.
776
2fc70c99
KB
7772002-12-19 Kevin Buettner <kevinb@redhat.com>
778
779 * exec.c (print_section_info): Select a format string to use with
780 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
781
2f107107
AC
7822002-12-18 Andrew Cagney <ac131313@redhat.com>
783
784 * frame.c (deprecated_update_current_frame_pc_hack): Replace
785 deprecated_update_current_frame_pc_hack.
786 (deprecated_update_frame_base_hack): New function.
787 * frame.h (deprecated_update_frame_pc_hack): Replace
788 (deprecated_update_frame_base_hack): Declare.
789 * infrun.c (normal_stop): Update.
790
c9012c71
AC
7912002-12-18 Andrew Cagney <ac131313@redhat.com>
792
793 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
794 frame_extra_info_zalloc.
795 (rs6000_frame_args_address): Use get_frame_extra_info.
796 (frame_get_saved_regs): Use get_frame_saved_regs.
797 (frame_initial_stack_address): Use get_frame_saved_regs and
798 get_frame_extra_info.
799 (frame_initial_stack_address): Use get_frame_extra_info.
800
6819ae38
KB
8012002-12-17 Kevin Buettner <kevinb@redhat.com>
802
803 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
804 array size.
805 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
806 checks for r3900_regnames[].
807
625602f2
RE
8082002-12-17 Richard Earnshaw <rearnsha@arm.com>
809
810 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
811 All uses changed
812 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
813
38d49aff
DC
8142002-12-17 David Carlton <carlton@math.stanford.edu>
815
816 * symtab.c (lookup_partial_symbol): Don't search past the end of
817 the partial symbols.
818
30f7db39
AC
8192002-12-17 Andrew Cagney <ac131313@redhat.com>
820
821 * stack.c (frame_info): Use get_frame_saved_regs.
822 * breakpoint.c (until_break_command): Use get_frame_pc.
823
23136709
KB
8242002-12-16 Kevin Buettner <kevinb@redhat.com>
825
826 * buildsym.c (block_end_complaint, anon_block_end_complaint)
827 (innerblock_complaint, innerblock_anon_complaint)
828 (blockvector_complaint): Delete deprecated complaint structs.
829 (finish_block, make_blockvector, end_symtab): Replace calls
830 to complain() with calls to complaint().
831 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
832 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
833 (unexpected_type_complaint, bad_sclass_complaint)
834 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
835 Delete deprecated complaint structs.
836 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
837 Replace calls to complain() with calls to complaint().
838 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
839 (unknown_symtype_complaint, unknown_symchar_complaint)
840 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
841 (lbrac_mismatch_complaint, repeated_header_complaint)
842 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
843 Delete deprecated complaint structs.
844 (unknown_symtype_complaint, lbrac_mismatch_complaint)
845 (repeated_header_complaint)
846 (function_outside_compiliation_unit_complaint): New functions.
847 (add_old_header_file, find_corresponding_bincl_psymtab)
848 (set_namestring, find_stab_function_addr, read_dbx_symtab)
849 (process_one_symbol): Replace calls to complain() with, possibly
850 indirect, calls to complaint().
851 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
852 (unknown_attribute_form, unknown_attribute_length)
853 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
854 (const_ignored, botched_modified_type, op_deref2, op_deref4)
855 (basereg_not_handled, dup_user_type_allocation)
856 (dup_user_type_definition, missing_tag, bad_array_element_type)
857 (subscript_data_items, unhandled_array_subscript_format)
858 (unknown_array_subscript_format, not_row_major)
859 (missing_at_name): Delete deprecated complaint structs.
860 (bad_die_ref_complaint, unknown_attribute_form_complaint)
861 (dup_user_type_definition_complaint)
862 (bad_array_element_type_complaint): New functions.
863 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
864 (decode_subscript_data_item, dwarf_read_array_type)
865 (read_tag_string_type, read_subroutine_type, read_func_scope)
866 (locval, scan_partial_symbols, decode_modified_type)
867 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
868 (attribute_size): Replace calls to complain() with, possibly
869 indirect, calls to complaint().
870 * elfread.c (section_info_complaint, section_info_dup_complaint)
871 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
872 Delete deprecated complaint structs.
873 (elf_symtab_read, elfstab_offset_sections): Replace calls to
874 complain() with calls to complaint().
875 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
876 struct.
877 (stub_noname_complaint): New function.
878 (check_typedef, add_mangled_type): Replace calls to complain()
879 with calls to complaint().
880 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
881 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
882 (hpread_unhandled_type_complaint, hpread_struct_complaint)
883 (hpread_array_complaint, hpread_type_lookup_complaint)
884 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
885 (hpread_unhandled_common_complaint)
886 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
887 struct definitions and declarations.
888 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
889 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
890 Replace calls to complain() with, possibly indirect, calls to
891 complaint().
892 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
893 Likewise.
894 * mdebugread.c (bad_file_number_complaint, index_complaint)
895 (aux_index_complaint, block_index_complaint)
896 (unknown_ext_complaint, unknown_sym_complaint)
897 (unknown_st_complaint, block_overflow_complaint)
898 (basic_type_complaint, unknown_type_qual_complaint)
899 (array_index_type_complaint, bad_tag_guess_complaint)
900 (block_member_complaint, stEnd_complaint)
901 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
902 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
903 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
904 (bad_continued_complaint, bad_rfd_entry_complaint)
905 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
906 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
907 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
908 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
909 complaint structs.
910 (index_complaint, unknown_ext_complaint, basic_type_complaint)
911 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
912 (unexpected_type_code_complaint)
913 (function_outside_compilation_unit_complaint): New functions.
914 (parse_symbol, parse_type, upgrade_type, parse_procedure)
915 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
916 Replace calls to complain() with, possibly indirect calls to
917 complaint().
918 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
919 Delete deprecated complaint structs.
920 (lookup__objc_class, lookup_child_selector): Replace complain()
921 with complaint().
922 * remote-vx.c (cant_contact_target): Delete deprecated complaint
923 struct.
924 (vx_lookup_symbol): Replace complain() with complaint().
925 * stabsread.c (invalid_cpp_abbrev_complaint)
926 (invalid_cpp_type_complaint, member_fn_complaint)
927 (const_vol_complaint, error_type_complaint)
928 (invalid_member_complaint, range_type_base_complaint)
929 (reg_value_complaint, vtbl_notfound_complaint)
930 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
931 (unresolved_sym_chain_complaint, stabs_general_complaint)
932 (lrs_general_complaint, multiply_defined_struct): Delete
933 deprecated complaint structs.
934 (invalid_cpp_abbrev_complaint, ref_value_complaint)
935 (stabs_general_complaint, lrs_general_complaint)
936 (msg_unknown_complaint): New functions.
937 (dbx_lookup_type, read_cfront_baseclasses)
938 (read_cfront_member_functions, resolve_symbol_reference)
939 (define_symbol, resolve_live_range, add_live_range, read_type)
940 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
941 (read_one_struct_field, read_baseclasses, read_tilde_fields)
942 (read_cfront_static_fields, attach_fields_to_type)
943 (complain_about_struct_wipeout, read_range_type)
944 (common_block_start, common_block_end, cleanup_undefined_types)
945 (scan_file_globals): Replace complain() with complaint().
946 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
947 Delete deprecated complaint struct declarations.
948 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
949 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
950 (bf_not_found_complaint, ef_complaint, eb_complaint)
951 (function_outside_compilation_unit_complaint): New functions.
952 (record_include_begin, record_include_end, enter_line_range)
953 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
954 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
955 complain() with complaint().
956
1a14e234
AC
9572002-12-16 Andrew Cagney <ac131313@redhat.com>
958
959 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
960 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
961 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
962 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
963 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
964 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
965 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
966 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
967 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
968 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
969 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
970 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
971 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
972 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
973 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
974 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
975 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
976 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
977 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
978 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
979 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
980 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
981 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
982 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
983 * config/m88k/xm-dgux.h: Delete.
984 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
985 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
986 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
987 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
988 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
989 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
990 * ch-valprint.c: Delete.
991
04e68871
DJ
9922002-12-15 Daniel Jacobowitz <drow@mvista.com>
993
994 * infrun.c (handle_inferior_event): Rearrange code to resume if
995 no catchpoint triggers for an event.
996
deb3b17b
DJ
9972002-12-15 Daniel Jacobowitz <drow@mvista.com>
998
999 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1000 and TARGET_WAITKIND_VFORKED cases.
1001
675bf4cb
DJ
10022002-12-15 Daniel Jacobowitz <drow@mvista.com>
1003
1004 * infrun.c (handle_inferior_event): Assume that catchpoints
1005 are not affected by DECR_PC_AFTER_BREAK.
1006
81e56179
DJ
10072002-12-15 Daniel Jacobowitz <drow@mvista.com>
1008
1009 * target.c (update_current_target): Don't inherit DONT_USE.
1010 * target.h (struct target_ops): Remove DONT_USE.
1011 (target_next): Remove macro.
1012
a3edc55b
MK
10132002-12-15 Mark Kettenis <kettenis@gnu.org>
1014
1015 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1016
b508a996
RE
10172002-12-14 Richard Earnshaw <rearnsha@arm.com>
1018
1019 * arm-tdep.c (convert_from_extended): New argument to hold the
1020 type of floating point result we want to convert to. Make input
1021 argument const. Fix all callers.
1022 (convert_to_extended): Similarly.
1023 (arm_extract_return_value): Now takes a regcache argument. Change
1024 code to use regcache accessor functions. Correctly extract
1025 smaller-than-word results on big-endian machines.
1026 (arm_store_return_value): Now takes a regcache argument. Change
1027 code to use regcache accessor functions. Correctly zero/sign extend
1028 smaller than word results before storing into r0.
1029 (arm_gdbarch_init): Register new-style extract_return_value and
1030 store_return_value functions.
1031
3197744f
MS
10322002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1033
1034 * thread-db.c (thread_from_lwp): Uniquify error msg.
1035 (lwp_from_thread): Ditto.
1036 (check_event): Ditto.
1037 (find_new_threads_callback): Ditto.
1038 (thread_db_pid_to_str): Ditto.
1039
6baff1d2
AC
10402002-12-13 Andrew Cagney <ac131313@redhat.com>
1041
1042 * frame.h (get_frame_saved_regs): Declare.
1043 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1044 pointer.
1045 * frame.c (get_frame_saved_regs): New function.
1046 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1047
b87efeee
AC
10482002-12-13 Andrew Cagney <ac131313@redhat.com>
1049
1050 * frame.c (deprecated_update_current_frame_pc_hack): New
1051 function.
1052 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1053 * infrun.c (normal_stop): Use said function instead of directly
1054 modifying the frame's PC.
1055
3de2dc4f
AO
10562002-12-13 Alexandre Oliva <aoliva@redhat.com>
1057
1058 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1059
fe29b929
KB
10602002-12-13 Kevin Buettner <kevinb@redhat.com>
1061
1062 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1063 config/mips/tm-irix6.h (NUM_REGS): Delete.
1064 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1065 (temp_saved_regs): Declare as a pointer rather than an array.
1066 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1067 that ``temp_saved_regs'' has storage allocated to it and that
1068 it's the correct size.
1069
c04e0a08
JJ
10702002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1071
1072 * defs.h (init_last_source_visited): New prototype.
1073 (add_path): Ditto.
1074 * source.c (add_path): New function that adds to a specified path.
1075 (mod_path): Change to call add_path.
1076 (init_last_source_visited): New function to allow interfaces to
1077 initialize static variable: last_source_visited. Part of fix
1078 for PR gdb/741.
1079 * Makefile.in: Add support for mi/mi-cmd-env.c.
1080
c689142b
AC
10812002-12-13 Andrew Cagney <ac131313@redhat.com>
1082
1083 * frame.h (frame_id_unwind): Declare.
1084 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1085 id_unwind_cache.
1086 (frame_id_unwind_ftype): Declare.
1087 * frame.c (frame_id_unwind): New function.
1088 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1089 (create_new_frame, get_prev_frame): Pass id_unwind to
1090 set_unwind_by_pc.
1091 (frame_saved_regs_id_unwind): New function.
1092 (frame_saved_regs_id_unwind): New function.
1093 * dummy-frame.c (dummy_frame_id_unwind): New function.
1094 (struct dummy_frame): Add field id.
1095 (generic_push_dummy_frame): Initialize `id'.
1096 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1097
18ea5ba4
AC
10982002-12-13 Andrew Cagney <ac131313@redhat.com>
1099
1100 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1101 pass that to set_momentary_breakpoint. Move comments to where they
1102 belong.
1103 * frame.h (set_current_frame): Delete declaration.
1104 * frame.c (set_current_frame): Delete function.
1105
2c517d0e
AC
11062002-12-13 Andrew Cagney <ac131313@redhat.com>
1107
1108 * frame.c (frame_extra_info_zalloc): New function.
1109 * frame.h (frame_extra_info_zalloc): Declare.
1110
516b1f28
JB
11112002-12-13 Joel Brobecker <brobecker@gnat.com>
1112
1113 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1114 in the previous prototype change to set_momentary_breakpoint.
1115
fbb265fc
DJ
11162002-12-12 Daniel Jacobowitz <drow@mvista.com>
1117
1118 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1119 and saw_child_exec.
1120 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1121 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1122 (stop_stepping): Remove outdated check for child vfork events.
1123
4fd7f624
AC
11242002-12-12 Andrew Cagney <ac131313@redhat.com>
1125
1126 * GDB 5.3 released from gdb_5_3-branch.
1127
4c9ba7e0
DJ
11282002-12-11 Daniel Jacobowitz <drow@mvista.com>
1129
1130 * corelow.c (init_core_ops): Delete references to to_require_attach
1131 and to_require_detach.
1132 * exec.c (init_exec_ops): Likewise.
1133 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1134 hppa_require_detach directly.
1135 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1136 * inftarg.c (child_detach): Remove.
1137 (child_detach_from_process): Rename to child_detach, remove
1138 after_fork argument.
1139 (child_attach): Remove.
1140 (child_attach_to_process): Rename to child_attach, remove after_fork
1141 argument.
1142 (init_child_ops): Delete references to to_require_attach
1143 and to_require_detach.
1144 * infttrace.c (hppa_require_attach): Update comment.
1145 * target.c (cleanup_target, update_current_target)
1146 (init_dummy_target, setup_target_debug): Delete references to
1147 to_require_attach and to_require_detach.
1148 (find_default_require_detach, find_default_require_attach)
1149 (debug_to_require_attach, debug_to_require_detach): Remove
1150 functions.
1151 * target.h (struct target_ops): Remove to_require_attach
1152 and to_require_detach.
1153 (target_require_attach, target_require_detach): Delete macros.
1154 (find_default_require_detach, find_default_require_attach): Delete
1155 prototypes.
1156 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1157
0394eb2a
AC
11582002-12-11 Andrew Cagney <ac131313@redhat.com>
1159
1160 * frame.c (get_frame_extra_info): New function.
1161 * frame.h (get_frame_extra_info): Declare.
1162
818dd999
AC
11632002-12-11 Andrew Cagney <ac131313@redhat.com>
1164
1165 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1166 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1167 with `struct frame_id'.
1168 (set_longjmp_resume_breakpoint): Ditto.
1169 * infrun.c (handle_inferior_event): Update.
1170 * breakpoint.c (watch_command_1, until_break_command): Update.
1171 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1172 (handle_inferior_event, step_over_function): Update.
1173 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1174 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1175 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1176 * infcmd.c (finish_command, run_stack_dummy): Update.
1177
4d3c2250
KB
11782002-12-11 Kevin Buettner <kevinb@redhat.com>
1179
1180 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1181 (dwarf2_non_const_array_bound_ignored)
1182 (dwarf2_missing_line_number_section)
1183 (dwarf2_statement_list_fits_in_line_number_section)
1184 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1185 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1186 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1187 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1188 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1189 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1190 (dwarf2_missing_member_fn_type_complaint)
1191 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1192 (dwarf2_const_value_length_mismatch)
1193 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1194 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1195 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1196 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1197 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1198 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1199 complaints using deprecated struct..
1200 (dwarf2_non_const_array_bound_ignored_complaint)
1201 (dwarf2_complex_location_expr_complaint)
1202 (dwarf2_unsupported_at_frame_base_complaint)
1203 (dwarf2_const_value_length_mismatch_complaint)
1204 (dwarf2_macros_too_long_complaint)
1205 (dwarf2_macro_malformed_definition_complaint)
1206 (dwarf2_invalid_attrib_class_complaint): New functions.
1207 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1208 (read_structure_scope, read_array_type, read_common_block)
1209 (read_tag_pointer_type, read_base_type, read_partial_die)
1210 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1211 (new_symbol, dwarf2_const_value, read_type_die)
1212 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1213 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1214 complain() with, possibly indirect, calls to complaint().
1215
95486978
AC
12162002-12-11 Andrew Cagney <cagney@redhat.com>
1217
1218 * frame.c (deprecated_get_frame_saved_regs): Rename
1219 get_frame_saved_regs.
1220 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1221 * sparc-tdep.c: Update.
1222 * hppa-tdep.c: Update.
1223 * h8500-tdep.c: Update.
1224
321432c0
KB
12252002-12-11 Kevin Buettner <kevinb@redhat.com>
1226
1227 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1228 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1229 ``char *'' for return and parameter types.
1230 * gdbarch.h, gdbarch.c: Regenerate.
1231 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1232 return type from ``char *'' to ``const char *''.
1233 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1234 const.
1235
5a4d6ff4
MK
12362002-12-11 Mark Kettenis <kettenis@gnu.org>
1237
1238 * i386-tdep.c: Include "dummy-frame.h".
1239 (i386_frame_chain, i386_frame_saved_pc): Replace
1240 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1241 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1242
a5afb99f
AC
12432002-12-10 Andrew Cagney <cagney@redhat.com>
1244
1245 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1246 Change to a function with predicate.
1247 * gdbarch.h, gdbarch.c: Re-generate.
1248 * frame.c (get_prev_frame): Update. Test
1249 DEPRECATED_INIT_FRAME_PC_P.
1250 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1251 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1252 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1253 * alpha-tdep.c (alpha_gdbarch_init): Update.
1254 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1255 * mips-tdep.c (mips_gdbarch_init): Update.
1256 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1257 * arm-tdep.c: Update comments.
1258 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1259 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1260 * frv-tdep.c (frv_gdbarch_init): Ditto.
1261 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1262 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1263 * s390-tdep.c (s390_gdbarch_init): Ditto.
1264 * v850-tdep.c (v850_gdbarch_init): Ditto.
1265 * vax-tdep.c (vax_gdbarch_init): Ditto.
1266 * sh-tdep.c (sh_gdbarch_init): Ditto.
1267 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1269 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1271 * i386-tdep.c (i386_gdbarch_init): Ditto.
1272 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1273 * cris-tdep.c (cris_gdbarch_init): Ditto.
1274 * avr-tdep.c (avr_gdbarch_init): Ditto.
1275 * arm-tdep.c (arm_gdbarch_init): Ditto.
1276 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1277 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1278
6604731b
DJ
12792002-12-10 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1282 CHILD_FOLLOW_FORK.
1283 * hppah-nat.c (saved_vfork_pid): Add.
1284 (child_post_follow_vfork): Remove.
1285 (child_follow_fork): New function.
1286 (child_wait): Call detach_breakpoints after receiving the child vfork.
1287 Call child_resume directly instead of going through resume ().
1288 Make sure we have the exec before reporting the vfork.
1289 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1290 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1291 (follow_fork): New function. Call target_follow_fork.
1292 (follow_inferior_reset_breakpoints): New function broken out from
1293 old follow_inferior_fork.
1294 (resume): Remove hack to follow exec after vfork.
1295 * inftarg.c (child_post_follow_vfork): Remove.
1296 (child_follow_fork): New function.
1297 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1298 * target.c (cleanup_target): Replace to_post_follow_vfork with
1299 to_follow_fork.
1300 (update_current_target): Likewise.
1301 (setup_target_debug): Likewise.
1302 (debug_to_post_follow_vfork): Remove.
1303 (debug_to_follow_fork): New function.
1304 * target.h (struct target_ops): Replace to_post_folow_vfork with
1305 to_follow_fork.
1306 (child_post_follow_vfork): Remove prototype.
1307 (child_follow_fork): Add prototype.
1308 (target_post_follow_vfork): Remove macro.
1309 (target_follow_fork): Add macro.
1310
7d2830a3
DJ
13112002-12-10 Daniel Jacobowitz <drow@mvista.com>
1312
1313 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1314 (child_post_follow_vfork): Cancel pending exec event if we follow
1315 the parent.
1316 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1317 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1318 event at the following wait call if necessary.
1319 * infrun.c (follow_vfork): Don't follow_exec here.
1320 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1321 case about HP/UX 10.20. Remove code pushed down to
1322 hppah-nat.c:child_wait.
1323 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1324 vfork_in_flight is set.
1325
13262002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
1327
1328 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1329 for the parent's fork event.
1330 * infrun.c (handle_inferior_event): Only expect one fork event.
1331 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1332 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1333
50631d4f
AC
13342002-12-10 Andrew Cagney <ac131313@redhat.com>
1335
bc124bd3
AC
1336 * PROBLEMS: Delete reference to PR gdb/725.
1337
50631d4f
AC
1338 * MAINTAINERS (gdb.c++): Add David Carlton.
1339
808013d1
DC
13402002-12-09 David Carlton <carlton@math.stanford.edu>
1341
1342 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1343 * cli/cli-cmds.c: Ditto.
1344
31deffe5
AC
13452002-12-09 Andrew Cagney <cagney@redhat.com>
1346
6cbda714
AC
1347 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1348 function address in <>.
31deffe5
AC
1349 * gdbarch.c: Re-generate.
1350
2692ddb3
DC
13512002-12-09 David Carlton <carlton@math.stanford.edu>
1352
1353 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1354
f3c39e76
DC
13552002-12-09 David Carlton <carlton@math.stanford.edu>
1356
1357 * linespec.c (symtab_from_filename): New function.
1358 (decode_line_1): Move code into symtab_from_filename.
1359
1b84163e
KB
13602002-12-09 Kevin Buettner <kevinb@redhat.com>
1361
1362 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1363
bdd78e62
AC
13642002-12-07 Andrew Cagney <ac131313@redhat.com>
1365
1366 * f-valprint.c (info_common_command): Use get_frame_pc.
1367 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1368 * ax-gdb.c (agent_command): Ditto.
1369 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1370 (rs6000_pop_frame): Ditto.
1371 (rs6000_frameless_function_invocation): Ditto.
1372 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1373 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1374 * macroscope.c (default_macro_scope): Ditto.
1375 * stack.c (print_frame_info_base): Ditto.
1376 (print_frame, frame_info, print_frame_label_vars): Ditto.
1377 (return_command, func_command, get_frame_language): Ditto.
1378 * infcmd.c (finish_command): Ditto.
1379 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1380 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1381 (break_at_finish_at_depth_command_1): Ditto.
1382 (break_at_finish_command_1): Ditto.
1383 (until_break_command, get_catch_sals): Ditto.
1384 * blockframe.c (func_frame_chain_valid): Ditto.
1385 (frameless_look_for_prologue): Ditto.
1386 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1387
408400e7
AC
13882002-12-08 Andrew Cagney <ac131313@redhat.com>
1389
1390 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1391 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1392
97f46953
AC
13932002-12-08 Andrew Cagney <ac131313@redhat.com>
1394
1395 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1396 to pure functions.
1397 * gdbarch.h, gdbarch.c: Re-generate.
1398 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1399 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1400
1401 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1402 declaration to a function returning a CORE_ADDR.
1403 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1404 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1405 (init_frame_pc_default): Ditto.
1406 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1407 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1408 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1409 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1410 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1411 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1412
1413 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1414 to init_frame_pc_noop.
1415 (i386_interix_init_frame_pc): Delete function.
1416 * z8k-tdep.c (init_frame_pc): Delete function.
1417 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1418 (INIT_FRAME_PC_FIRST): Ditto.
1419 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1420 (INIT_FRAME_PC_FIRST): Ditto.
1421 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1422 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1423 init_frame_pc_noop.
1424 (INIT_FRAME_PC_FIRST): Convert to an expression.
1425 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1426
8b36eed8
AC
14272002-12-08 Andrew Cagney <ac131313@redhat.com>
1428
1429 * blockframe.c: Use get_frame_base instead of directly accessing
1430 the `struct frame_info' member frame.
1431 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1432 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1433
aeeccc89
EZ
14342002-12-08 Elena Zannoni <ezannoni@redhat.com>
1435
1436 * Makefile.in (readline_h): Define.
1437 (completer.o): Depend on readline_h.
1438 (corelow.o): Ditto.
1439 (event-top.o): Ditto.
1440 (exec.o): Ditto.
1441 (solib.o): Ditto.
1442 (source.o): Ditto.
1443 (symfile.o): Ditto.
1444 (symmisc.o): Ditto.
1445 (top.o): Ditto.
1446 (tracepoint.o): Ditto.
1447 (utils.o): Ditto.
1448 (cli-dump.o): Ditto.
1449 (tui-hooks.o): Ditto.
1450 (tuiWin.o): Ditto.
1451
38017ce8
EZ
14522002-12-08 Elena Zannoni <ezannoni@redhat.com>
1453
1454 More cleanup from import of readline 4.3.
1455 * completer.h (complete_line, readline_line_completion_function):
1456 Update prototypes.
1457 (line_completion_function): Removed, not used outside of completer.c.
1458 * completer.c (readline_line_completion_function,
1459 complete_function, line_completion_function): Use const for first
1460 parameter.
1461 (line_completion_function): Make static.
1462 (filename_completer): filename_completion_function is now called
1463 rl_filename_completion_function
1464 * corelow.c: Include <readline/readline.h>.
1465 * exec.c: Ditto.
1466 * solib.c: Ditto.
1467 * source.c: Ditto.
1468 * symfile.c: Ditto.
1469 * symmisc.c: Ditto.
1470 * top.c (init_main): No need to coerce
1471 readline_line_completion_function anymore.
1472 * cli/cli-dump.c: Include <readline/readline.h>.
1473
75e3c1f9
AC
14742002-12-08 Andrew Cagney <ac131313@redhat.com>
1475
1476 * stack.c (frame_info): Use get_prev_frame.
1477 * blockframe.c (frame_address_in_block): Ditto.
1478 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1479 (rs6000_frameless_function_invocation): Ditto.
1480 (rs6000_frame_saved_pc): Ditto.
1481 (rs6000_frame_chain): Ditto.
1482 * arch-utils.c (init_frame_pc_default): Ditto.
1483
0d2b8049
AC
14842002-12-08 Andrew Cagney <ac131313@redhat.com>
1485
1486 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1487 Delete redundant definition.
1488
9255ee31
EZ
14892002-12-08 Elena Zannoni <ezannoni@redhat.com>
1490
1491 Import of readline 4.3:
1492 * cli/cli-cmds.c: Include readline/tilde.h.
1493 * cli/cli-setshow.c: Ditto.
1494 * defs.h: Don't declare tilde_expand anymore, since readline
1495 exports it.
1496
3442dad6 14972002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
1498
1499 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1500 -Werror on this file.
1501
52f87c51
AC
15022002-12-07 Andrew Cagney <ac131313@redhat.com>
1503
1504 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1505 the format name.
1506 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1507 * gdbarch.c: Regenerate.
1508
2ca6c561
AC
15092002-12-06 Andrew Cagney <ac131313@redhat.com>
1510
1511 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1512 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1513 provide a default value.
1514 * gdbarch.h, gdbarch.c: Regenerate.
1515 * frame.c (get_prev_frame): Update. Check
1516 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1517 * s390-tdep.c (s390_gdbarch_init): Update.
1518 * mips-tdep.c (mips_gdbarch_init): Update.
1519 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1520 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1521 * alpha-tdep.c (alpha_gdbarch_init): Update.
1522
e162d11b
EZ
15232002-12-06 Elena Zannoni <ezannoni@redhat.com>
1524
1525 * ia64-linux-nat.c: Include gdb_string.h.
1526 * alpha-nat.c: Ditto.
2b298b5d
EZ
1527 * ppc-linux-nat.c: Ditto.
1528 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1529 Update dependencies.
e162d11b 1530
aa0cd9c1
AC
15312002-12-05 Andrew Cagney <ac131313@redhat.com>
1532
1533 * gdbthread.h: Include "frame.h".
1534 (struct thread_info): Replace step_frame_address with
1535 step_frame_id.
1536 * inferior.h: Include "frame.h".
1537 (step_frame_id): Replace external variable step_frame_address.
1538 * gdbthread.h (save_infrun_state): Replace step_frame_address
1539 parameter with step_frame_id parameter.
1540 (load_infrun_state): Ditto.
1541 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1542 * infcmd.c (step_frame_id, step_1, step_once): Update.
1543 * thread.c (load_infrun_state, save_infrun_state): Update.
1544 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1545 (handle_inferior_event, step_over_function): Update.
1546 (normal_stop, context_switch, restore_inferior_status): Update.
1547 (struct inferior_status): Replace step_frame_address with
1548 step_frame_id.
1549
a9a9bd0f
DC
15502002-12-05 David Carlton <carlton@math.stanford.edu>
1551
1552 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1553 DW_TAG_member as well as a declaration as being a C++ static data
1554 member.
1555 (read_structure_scope): Combine tests for DW_TAG_member and
1556 DW_TAG_variable.
1557
614b3b14
DC
15582002-12-05 David Carlton <carlton@math.stanford.edu>
1559
1560 * linespec.c (decode_compound): New function.
1561 (decode_line_1): Move code into decode_compound.
1562
e4051eeb
DC
15632002-12-05 David Carlton <carlton@math.stanford.edu>
1564
1565 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1566 argument.
1567 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1568 the static block. See PR gdb/804.
1569
f61e8913
DC
15702002-12-05 David Carlton <carlton@math.stanford.edu>
1571
1572 * symtab.c (lookup_symbol_aux_block): New function.
1573 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1574
1e9f55d0
AC
15752002-12-05 Andrew Cagney <ac131313@redhat.com>
1576
1577 * gdbarch.sh: Dump the predicate function and macro values.
1578 (read): Print error on standard error.
1579 * gdbarch.c: Regenerate.
1580
d1973055
KB
15812002-12-04 Kevin Buettner <kevinb@redhat.com>
1582
1583 * Makefile.in (mips_tdep_h): Define.
1584 (mips-tdep.o): Add mips_tdep_h to dependency list.
1585 * mips-tdep.h: New file.
1586 * mips-tdep.c (mips-tdep.h): Include.
1587 (enum mips_abi): Move to mips-tdep.h.
1588 (mips_abi): New function.
1589
f1253c7b
DC
15902002-12-04 David Carlton <carlton@math.stanford.edu>
1591
1592 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1593
406bc4de
DC
15942002-12-04 David Carlton <carlton@math.stanford.edu>
1595
1596 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1597 function.
1598 (lookup_symbol_aux_minsyms): New function.
1599
2a3750c5
JB
16002002-12-04 J. Brobecker <brobecker@gnat.com>
1601
1602 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1603
961d8652
JB
16042002-12-04 J. Brobecker <brobecker@gnat.com>
1605
1606 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1607 which is an obsolete macro name.
1608
38c52d5a
DJ
16092002-12-04 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1612 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1613
d8ef46f5
DJ
16142002-12-03 H.J. Lu (hjl@gnu.org)
1615
1616 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1617 (create_breakpoints): Make sure the addr_string field is not
1618 NULL.
1619
02ae7771
AC
16202002-12-03 Andrew Cagney <ac131313@redhat.com>
1621
1622 * sparc-nat.c (fetch_inferior_registers)
1623 (store_inferior_registers): Add comment on problem of LWP vs
1624 threads.
1625
1626 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1627 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1628 (lin_lwp_store_registers): Remove.
1629 (init_lin_lwp_ops): Use fetch_inferior_registers
1630 and store_inferior_registers directly.
1631 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1632 (store_inferior_registers): Likewise.
1633 Fix PR gdb/725.
1634
7a424e99
AC
16352002-12-03 Andrew Cagney <ac131313@redhat.com>
1636
1637 * frame.h (get_frame_id): Convert to a function.
1638 (null_frame_id, frame_id_p): Declare.
1639 (frame_id_eq, frame_id_inner): Declare.
1640 (frame_id_build): New function.
1641 * frame.c (get_frame_id): Update. Use null_frame_id.
1642 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1643 frame_id_inner.
1644 (null_frame_id, frame_id_p): Define.
1645 (frame_id_eq, frame_id_inner): Define.
1646 (frame_id_build): New function.
1647 * varobj.c (varobj_create): Update.
1648 (varobj_update): Update.
1649 * valops.c (value_assign): Update.
1650 (new_root_variable): Update.
1651 * infrun.c (save_inferior_status): Update.
1652 * breakpoint.c (watch_command_1): Update.
1653
891c7f5f
JB
16542002-12-03 J. Brobecker <brobecker@gnat.com>
1655
1656 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1657 (SNAP2): Likewise.
1658
144da3c1
AC
16592002-12-03 Andrew Cagney <cagney@redhat.com>
1660
46248966
AC
1661 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1662 patch.
1663
144da3c1
AC
1664 * PROBLEMS: Mention PR gdb/725.
1665
03c6228e
AS
16662002-12-03 Andreas Schwab <schwab@suse.de>
1667
1668 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1669
36e53c63
AF
16702002-12-02 Adam Fedor <fedor@gnu.org>
1671 Klee Dienes <kdienes@apple.com>
1672
1673 * objc-lang.c (objc_printstr): Add width arg to match
1674 printstr prototype.
1675 (compare_selectors): Add 'const' to arg types.
1676 (compare_classes): Likewise.
1677 (find_imps): Cast msym pointer to avoid compiler warning.
1678 (print_object_command): Validate the address before
1679 passing it to the print routine.
1680 (find_objc_msgcall_submethod): Change function argument to
1681 return an int.
1682 * objc-lang.h: Add 'extern' to all function declarations.
1683 (value_nsstring): Add declaration.
1684
504d5c7e
JB
16852002-12-02 J. Brobecker <brobecker@gnat.com>
1686
1687 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1688 Fixes a build failure on HP/UX.
1689
1690 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1691 failure on HP/UX.
1692 (hpread_has_name): Advance declaration to avoid a compilation warning.
1693 (pst_syms_count): Add missing variable type. By change, the compiler
1694 was defaulting to int, which seems a good choice. Fixes a compilation
1695 warning.
1696 (pst_syms_size): Likewise.
1697
59623e27
JB
16982002-12-02 J. Brobecker <brobecker@gnat.com>
1699
1700 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1701 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1702 later to set the proper gdbarch methods depending on the osabi.
1703 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1704
a09a320d
JB
17052002-12-02 J. Brobecker <brobecker@gnat.com>
1706
1707 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1708 * osabi.c (gdb_osabi_name): Add strings images for the two new
1709 enum values.
1710 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1711
8a81a99e
AC
17122002-12-02 Andrew Cagney <ac131313@redhat.com>
1713
1714 * MAINTAINERS (Java): Global maintainers are responible for Java.
1715 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1716 part Java maintainers.
1717
7af35dad
JB
17182002-12-02 J. Brobecker <brobecker@gnat.com>
1719
1720 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1721 Fixes a compilation failure on AiX.
1722
f4ede9bc
JB
17232002-12-02 J. Brobecker <brobecker@gnat.com>
1724
1725 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1726 why aix-thread.o is not listed.
1727
ae45cd16
AC
17282002-12-01 Andrew Cagney <ac131313@redhat.com>
1729
1730 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1731 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1732 * gdbarch.h, gdbarch.c: Re-generate.
1733 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1734 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1735 * config/pa/tm-hppa.h, frame.h: Update.
1736 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1737 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1738 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1739 * cris-tdep.c, alpha-tdep.c: Update.
1740 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1741 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1742 (get_prev_frame): Ditto.
1743
020cc13c
AC
17442002-11-30 Andrew Cagney <cagney@redhat.com>
1745
1746 * exec.c (xfer_memory): Replace boolean with int.
1747 * p-exp.y: Use 0 instead of false.
1748 * corelow.c (gdb_check_format): Change return type to int from
1749 boolean.
1750 * utils.c: Don't include <curses.h> or <term.h> first.
1751
1d9b2aa8
SC
17522002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1753
1754 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1755 (m68hc11_register_byte): Remove.
1756 (m68hc11_gdbarch_init): Don't set the above.
1757
a193e397
AC
17582002-11-29 Andrew Cagney <cagney@redhat.com>
1759
1760 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1761 by calling get_selected_frame.
1762 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1763 set_current_frame, create_new_frame, select_frame and
1764 get_current_frame.
1765 * remote-e7000.c (e7000_start_remote): Ditto.
1766 * remote-mips.c (common_open): Ditto
1767 * remote-rdp.c (remote_rdp_open): Ditto.
1768
b5fc49aa
AS
17692002-11-29 Andreas Schwab <schwab@suse.de>
1770
1771 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1772 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1773 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1774 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1775 read_memory_unsigned_integer instead of read_memory_integer when
1776 dealing with addresses and instruction opcodes.
1777 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1778 (m68k_linux_frame_saved_pc): Likewise.
1779
6e7f8b9c
AC
17802002-11-29 Andrew Cagney <ac131313@redhat.com>
1781
1782 * stack.c (selected_frame, select_frame): Move from here ...
1783 * frame.c (selected_frame, select_frame): ... to here. Include
1784 "language.h".
1785 * Makefile.in (frame.o): Update dependencies.
1786 * frame.c (get_selected_frame): New function.
1787 * frame.h (get_selected_frame): Declare.
1788 (deprecated_selected_frame): Rename selected_frame.
1789 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1790 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1791 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1792 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1793 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1794 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1795 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1796 * z8k-tdep.c, cli/cli-cmds.c: Update.
1797
805e2818
AC
17982002-11-29 Andrew Cagney <ac131313@redhat.com>
1799
1800 * frame.h (get_selected_block): Add comments.
1801
1058bca7
AC
18022002-11-28 Andrew Cagney <ac131313@redhat.com>
1803
1804 * frame.c (pc_notcurrent): New function.
1805 (find_frame_sal): New function.
1806 * frame.h (find_frame_sal): Declare.
1807 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1808 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1809 find_pc_line.
1058bca7
AC
1810 (frame_info): Ditto.
1811 * ada-lang.c (find_printable_frame): Ditto.
1812
d92419e5
JB
18132002-11-28 J. Brobecker <brobecker@gnat.com>
1814
1815 * configure.in: Check that the pthdebug library is recent enough
1816 before enabling thread support on native AiX.
1817 * configure: Regenerate.
1818
1819 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1820 from the list of object files as it is now appended by configure
1821 if thread support is enabled.
1822 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1823 if thread support is enabled.
1824
8c69fc49
AC
18252002-11-28 Andrew Cagney <cagney@redhat.com>
1826
1827 * stack.c (get_selected_block): In-line get_current_block.
1828 * frame.h (get_current_block): Delete declaration.
1829 * blockframe.c (get_current_block): Delete function.
1830
07555a72
AC
18312002-11-28 Andrew Cagney <ac131313@redhat.com>
1832
1833 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1834 USE_GENERIC_DUMMY_FRAMES.
1835 * gdbarch.h, gdbarch.c: Regenerate.
1836 * valops.c, frame.c: Update.
1837 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1838 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1839 * config/pa/tm-hppa.h, blockframe.c: Update.
1840 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1841 * m68k-tdep.c, alpha-tdep.c: Ditto.
1842
1843 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1844 * mips-tdep.c: Ditto.
1845
b99fa2d2
AC
18462002-11-27 Andrew Cagney <ac131313@redhat.com>
1847
1848 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1849 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1850 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1851 * gdbarch.c, gdbarch.h: Re-generate.
1852 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1853 (CALL_DUMMY_LOCATION): Delete macro definition.
1854 (PC_IN_CALL_DUMMY): Delete macro definitions.
1855
1856 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1857 default is already generic_pc_in_call_dummy.
1858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1859 * v850-tdep.c (v850_gdbarch_init): Ditto.
1860 * sh-tdep.c (sh_gdbarch_init): Ditto.
1861 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1862 * mips-tdep.c (mips_gdbarch_init): Ditto.
1863 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1865 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1866 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1867 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1868 * avr-tdep.c (avr_gdbarch_init): Ditto.
1869
1870 * arm-tdep.c (arm_gdbarch_init): Do not set
1871 use_generic_dummy_frames, default is already 1.
1872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1873 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1874 * v850-tdep.c (v850_gdbarch_init): Ditto.
1875 * sh-tdep.c (sh_gdbarch_init): Ditto.
1876 * s390-tdep.c (s390_gdbarch_init): Ditto.
1877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1878 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1879 * mips-tdep.c (mips_gdbarch_init): Ditto.
1880 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1882 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1883 * i386-tdep.c (i386_gdbarch_init): Ditto.
1884 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1885 * frv-tdep.c (frv_gdbarch_init): Ditto.
1886 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1887 * cris-tdep.c (cris_gdbarch_init): Ditto.
1888 * avr-tdep.c (avr_gdbarch_init): Ditto.
1889
1890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1891 call_dummy_location, default is already AT_ENTRY_POINT.
1892 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1893 * v850-tdep.c (v850_gdbarch_init): Ditto.
1894 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1895 * sh-tdep.c (sh_gdbarch_init): Ditto.
1896 * s390-tdep.c (s390_gdbarch_init): Ditto.
1897 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1899 * mips-tdep.c (mips_gdbarch_init): Ditto.
1900 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1901 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1902 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1903 * i386-tdep.c (i386_gdbarch_init): Ditto.
1904 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1905 * frv-tdep.c (frv_gdbarch_init): Ditto.
1906 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1907 * cris-tdep.c (cris_gdbarch_init): Ditto.
1908 * avr-tdep.c (avr_gdbarch_init): Ditto.
1909 * arm-tdep.c (arm_gdbarch_init): Ditto.
1910 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1911
abc0af47
AC
19122002-11-28 Andrew Cagney <cagney@redhat.com>
1913
1914 * frame.h: Update comments on set_current_frame, create_new_frame,
1915 flush_cached_frames, reinit_frame_cache, select_frame and
1916 selected_frame.
1917
ed5cedc5
AC
19182002-11-27 Andrew Cagney <cagney@redhat.com>
1919
1920 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1921 deprecated pc_in_call_dummy function.
1922 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1923 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1924 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1925 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1926 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1927
b2a1bd4f
MH
19282002-11-26 Martin M. Hunt <hunt@redhat.com>
1929
1930 * Makefile.in: Remove Tix dependencies.
1931 * acinclude.m4: Ditto.
1932 * aclocal.m4: Ditto.
1933 * configure.in: Ditto.
1934 * configure: Regenerated.
1935
f09cffaa
AC
19362002-11-26 Andrew Cagney <ac131313@redhat.com>
1937
1938 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1939 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1940 * gdbarch.c: Re-generate.
1941
e92b0cc9
AC
19422002-11-26 Andrew Cagney <ac131313@redhat.com>
1943
1944 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1945 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1946 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1947 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1948 pc_in_call_dummy_at_entry_point.
1949 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1950 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1951 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1952 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1953 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1954 pc_in_call_dummy_on_stack.
1955 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1956 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1957 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1958 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1959 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1960
b4b88177
AC
19612002-11-26 Andrew Cagney <ac131313@redhat.com>
1962
1963 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1964 pc_in_call_dummy_before_text_end
1965 (deprecated_pc_in_call_dummy_after_text_end): Rename
1966 pc_in_call_dummy_after_text_end.
1967 (deprecated_pc_in_call_dummy_on_stack): Rename
1968 pc_in_call_dummy_on_stack.
1969 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1970 pc_in_call_dummy_at_entry_point.
1971 * m68k-tdep.c (m68k_gdbarch_init): Update.
1972 * s390-tdep.c (s390_gdbarch_init): Update.
1973 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1974 * vax-tdep.c (vax_gdbarch_init): Update.
1975 * sparc-tdep.c (sparc_gdbarch_init): Update.
1976 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1977 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1978 * i386-tdep.c (i386_gdbarch_init): Update.
1979 * frv-tdep.c (frv_gdbarch_init): Update.
1980 * cris-tdep.c (cris_gdbarch_init): Update.
1981 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1982 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1983 (deprecated_pc_in_call_dummy_after_text_end)
1984 (deprecated_pc_in_call_dummy_on_stack)
1985 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1986 * alpha-tdep.c (alpha_gdbarch_init): Update.
1987
eb784848
DJ
19882002-11-25 Daniel Jacobowitz <drow@mvista.com>
1989
1990 * acconfig.h (HAVE_PREAD64): Add.
1991 * configure.in: Check for pread64.
1992 * config.in: Regenerated.
1993 * configure: Regenerated.
1994 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1995 * linux-proc.c (linux_proc_xfer_memory): New function.
1996 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1997
933c6fe4
DC
19982002-11-25 David Carlton <carlton@math.stanford.edu>
1999
2000 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2001 pdi's with no name.
2002
158a8022
AC
20032002-11-25 Andrew Cagney <ac131313@redhat.com>
2004
2005 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2006 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2007
481d0f41
JB
20082002-11-25 Jim Blandy <jimb@redhat.com>
2009
e8289572
JB
2010 * symfile.c (init_objfile_sect_indices): New function.
2011 (default_symfile_offsets): Move the section-index-initializing
2012 stuff into init_objfile_sect_indices, and call that.
2013
b29c9944
JB
2014 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2015 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2016
13de58df
JB
2017 * symfile.c (syms_from_objfile): Adjust indentation.
2018
481d0f41
JB
2019 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2020 || info_verbose isn't true.
2021
7d6a26a7
AC
20222002-11-24 Andrew Cagney <ac131313@redhat.com>
2023
2024 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2025 default to get_frame_base.
2026 * gdbarch.h, gdbarch.c: Regenerate.
2027 * arch-utils.c (default_frame_address): Delete function.
2028 * arch-utils.h (default_frame_address): Delete declaration
2029
6abe1021
PM
20302002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2031
2032 * varobj.c (find_frame_addr_in_frame_chain):
2033 Use get_frame_base instead of FRAME_FP,
2034 obvious fix.
2035
c193f6ac
AC
20362002-11-19 Andrew Cagney <ac131313@redhat.com>
2037
2038 * frame.h (FRAME_FP): Delete macro.
2039 (get_frame_base): New function declaration.
2040 * frame.c (get_frame_base): New function.
2041 (get_frame_id): Use ->frame.
2042 (frame_find_by_id): Rewrite to use get_frame_id.
2043 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2044 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2045 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2046 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2047 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2048 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2049 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2050
e5d2af14
AC
20512002-11-24 Andrew Cagney <ac131313@redhat.com>
2052
2053 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2054
931d12c6
AC
20552002-11-24 Andrew Cagney <ac131313@redhat.com>
2056
2057 * frame.c (set_unwind_by_pc): Revert change below, use
2058 PC_IN_CALL_DUMMY.
2059 (get_prev_frame): Ditto.
2060
5e0f933e
AC
20612002-11-24 Andrew Cagney <ac131313@redhat.com>
2062
2063 * dummy-frame.c (pc_in_dummy_frame): New function.
2064 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2065 (find_dummy_frame): Update comment.
2066 (generic_pop_current_frame): Use get_frame_type.
2067 * dummy-frame.h (pc_in_dummy_frame): Declare.
2068 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2069 (create_new_frame): Use pc_in_dummy_frame.
2070 (get_prev_frame): Use pc_in_dummy_frame.
2071 (frame_saved_regs_register_unwind): Use get_prev_frame.
2072 (deprecated_generic_get_saved_register): Use get_prev_frame.
2073
7d8547c9
AC
20742002-11-23 Andrew Cagney <ac131313@redhat.com>
2075
2076 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2077 from here ...
2078 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2079 (varobj_create): Note that frame ID should be used.
2080 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2081
0225421b
AC
20822002-11-23 Andrew Cagney <ac131313@redhat.com>
2083
2084 * breakpoint.c: Include "gdb_assert.h".
2085 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2086 not being used.
2087 * Makefile.in (breakpoint.o): Update dependencies.
2088 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2089 deprecated_frame_in_dummy.
2090 * stack.c (print_frame_info_base): Ditto.
2091 (frame_info): Ditto.
2092 (print_frame_info_base): Ditto. Delete dead code.
2093
32eeb91a
AS
20942002-11-23 Andreas Schwab <schwab@suse.de>
2095
2096 * Makefile.in (m68k_tdep_h): Define.
2097 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2098 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2099 * m68k-tdep.c: Move register number enum ...
2100 * m68k-tdep.h: ... to this new file and rename the constants from
2101 E_* to M68K_*. All uses changed.
2102 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2103 * abug-rom.c: Include "m68k-tdep.h". Use
2104 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2105 * cpu32bug-rom.c: Likewise.
2106 * dbug-rom.c: Likewise.
2107 * m68k-tdep.c: Likewise.
2108 * m68klinux-nat.c: Likewise.
2109 * remote-est.c: Likewise.
2110 * rom68k-rom.c: Likewise.
2111 * config/m68k/tm-linux.h: Likewise.
2112
9648bac8
AC
21132002-11-23 Andrew Cagney <ac131313@redhat.com>
2114
2115 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2116 dummy frame initialization code.
2117 * mips-tdep.c (mips_gdbarch_init): Ditto.
2118
91a175b3
CF
21192002-11-22 Christopher Faylor <cgf@redhat.com>
2120
2121 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2122 attach will hang.
2123
f4ded5b1
AC
21242002-11-22 Andrew Cagney <ac131313@redhat.com>
2125
2126 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2127 to default_frame_address.
2128 * gdbarch.h, gdbarch.c: Re-generate.
2129
2130 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2131 or frame_locals_address to default_frame_address.
2132 * m68k-tdep.c (m68k_gdbarch_init): Update.
2133 * i386-tdep.c (i386_gdbarch_init): Update.
2134 * frv-tdep.c (frv_gdbarch_init): Update.
2135 * sh-tdep.c (sh_gdbarch_init): Update.
2136 * v850-tdep.c (v850_gdbarch_init): Update.
2137 * sparc-tdep.c (sparc_gdbarch_init): Update.
2138 * mips-tdep.c (mips_gdbarch_init): Update.
2139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2140 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2142
2143 * cris-tdep.c (cris_frame_args_address): Delete function.
2144 (cris_frame_locals_address): Delete function.
2145 (cris_gdbarch_init): Do not set frame_args_address or
2146 frame_locals_address.
2147
f7c1e0f3
MS
21482002-11-22 Michael Snyder <msnyder@redhat.com>
2149
2150 * thread-db.c (thread_db_load): Tell the user what's going on
2151 if dlopen fails on libthread_db.
2152
03dac896
AS
21532002-11-23 Andreas Schwab <schwab@suse.de>
2154
2155 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2156 invariant return values.
2157
7a67d0fe
AS
21582002-11-22 Andreas Schwab <schwab@suse.de>
2159
2160 * valops.c (value_slice): Move declaration of `offset' to avoid
2161 warning.
2162
5633f842
CF
21632002-11-22 Christopher Faylor <cgf@redhat.com>
2164
2165 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2166 (struct so_stuff): Add end_addr field.
2167 (register_loaded_dll): Calculate and store end address of loaded dll.
2168 (solib_address): New function.
2169 (child_solib_loaded_library_pathname): Pass carefully constructed
2170 section info to safe_symbol_file_add rather than ignoring it.
2171 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2172 DLL is loaded.
2173 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2174 (child_create_inferior): Fix a compiler warning.
2175 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2176 (solib_address): Declare new function.
2177
d85fe7f7
AS
21782002-11-22 Andreas Schwab <schwab@suse.de>
2179
2180 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2181 and FPS registers.
2182
8308e54c
DJ
21832002-11-21 Daniel Jacobowitz <drow@mvista.com>
2184
2185 * maint.c (_initialize_maint_cmds): Fix typo. From
2186 Francesco Potorti` <pot@gnu.org>.
2187
8997bd5e
AC
21882002-11-21 Andrew Cagney <cagney@redhat.com>
2189
2190 * mips-tdep.c (mips_dump_tdep): Delete references to
2191 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2192 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2193 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2194 * printcmd.c (build_address_symbolic): Delete calls to
2195 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2196 (address_info): Ditto.
2197 Fix PR gdb/773.
2198
4e87b832
KD
21992002-11-19 Klee Dienes <kdienes@apple.com>
2200 Adam Fedor <fedor@gnu.org>
2201
2202 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2203 the ability to explicitly specify the quote characters and word
2204 break characters; if NULL is specified for either, use the old
2205 behavior of using the characters used by the completer.
2206 (skip_chars): New function. Convenience wrapper around
2207 skip_quoted_chars to provide the original skip_chars behavior.
2208 * completer.h (skip_quoted_chars): Add prototype.
2209
9ba8d803
AC
22102002-11-19 Andrew Cagney <ac131313@redhat.com>
2211
2212 Problems reported by Paul Eggert.
2213 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2214
0a595803
AS
22152002-11-19 Andreas Schwab <schwab@suse.de>
2216
2217 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2218 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2219 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2220 (m68k_linux_frame_saved_pc): Move to ...
2221 * m68klinux-tdep.c: ... here. New file.
2222 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2223 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2224
e8afa4d7
AF
22252002-11-19 Adam Fedor <fedor@gnu.org>
2226
2227 * objc-exp.y: Revert to old skip_quoted usage.
2228
a76c9d72
AF
22292002-11-19 Adam Fedor <fedor@gnu.org>
2230
2231 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2232 (objc_lang_h): Define.
2233 (YYFILES): Add objc-exp.tab.c.
2234 (local-maintainer-clean): Remove objc-exp.tab.c.
2235 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2236
fd0e9d45
PM
22372002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2238
2239 * p-exp.y (typecast rule): Add automatic dereference of
2240 pascal classes if needed.
2241 (THIS): Set current_type.
2242 Automatically dereference pascal classes.
2243 (typebase rule): Add ^typebase recognition.
2244
82eeeb94
AF
22452002-11-18 Adam Fedor <fedor@gnu.org>
2246
2247 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2248 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2249 (op_name): Handle OP_OBJC_SELF.
2250 * Makefile.in (expprint.o): Add additional depends.
2251
646df18d
AF
22522002-11-18 Adam Fedor <fedor@gnu.org>
2253
2254 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2255 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2256 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2257 * objc-exp.y: Likewise.
2258
379b85df
AF
22592002-11-18 Adam Fedor <fedor@gnu.org>
2260
2261 * gdb/parser-defs.h: (struct objc_class_str): New structure
2262 for parsing ObjC classes.
2263
85cf597a
AC
22642002-11-18 Andrew Cagney <ac131313@redhat.com>
2265
2266 * stack.c (frame_relative_level): Copy function from here ...
2267 * frame.c (frame_relative_level): ...to here.
2268
5a203e44
AC
22692002-11-18 Andrew Cagney <ac131313@redhat.com>
2270
2271 * frame.h (enum frame_type): Define.
2272 (get_frame_type): Declare.
2273 (struct frame_info): Add field `type'. Delete field
2274 signal_handler_caller.
2275 (deprecated_set_frame_signal_handler_caller): Declare.
2276 * frame.c (get_frame_type): New function.
2277 (deprecated_set_frame_type): New function.
2278 (create_new_frame): Set the frame's type.
2279 (get_prev_frame): Similar.
2280 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2281 * s390-tdep.c: Ditto.
2282 * m68klinux-nat.c: Ditto.
2283 * ns32k-tdep.c: Ditto.
2284 * x86-64-linux-tdep.c: Ditto.
2285 * vax-tdep.c: Ditto.
2286 * rs6000-tdep.c: Ditto.
2287 * ppc-linux-tdep.c: Ditto.
2288 * i386-interix-tdep.c: Ditto.
2289 * mips-tdep.c: Ditto.
2290 * m68k-tdep.c: Ditto.
2291 * hppa-tdep.c: Ditto.
2292 * ia64-tdep.c: Ditto.
2293 * cris-tdep.c: Ditto.
2294 * arm-tdep.c: Ditto.
2295 * alpha-tdep.c: Ditto.
2296 * i386-tdep.c: Ditto.
2297 * stack.c: Ditto.
2298 * ada-lang.c: Ditto.
2299 * blockframe.c: Update.
2300 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2301 deprecated_set_frame_type instead of signal_handler_caller.
2302 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2303 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2304 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2305
bf4ae8b2
KD
23062002-11-18 Klee Dienes <kdienes@apple.com>
2307
2308 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2309
a672ef13
KD
23102002-11-18 Klee Dienes <kdienes@apple.com>
2311
2312 * buildsym.c (pop_context): Add comment.
2313
0c5e171a
KD
23142002-11-18 Klee Dienes <kdienes@apple.com>
2315
2316 * buildsym.h (pop_context): Convert to function, defined in
2317 buildsym.c.
2318 * buildsym.c: Include gdb_assert.h.
2319 (pop_context): Implement as C function. Add check for stack
2320 underflow.
2321 * dbxread.c (process_one_symbol): Complain and stop processing
2322 that symbol if we are already at the top of the context stack for
2323 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2324 when processing N_RBRAC.
2325
8a1f4c4c
DJ
23262002-11-16 Daniel Jacobowitz <drow@mvista.com>
2327
2328 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2329 define.
2330 (struct target_waitstatus): Add opaque definition.
2331 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2332 * exec.c (init_exec_ops): Likewise.
2333 * fork-child.c (clone_and_follow_inferior): Remove.
2334 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2335 * inferior.h (clone_and_follow_inferior): Remove prototype.
2336 * infrun.c (follow_fork_mode_both): Remove.
2337 (follow_fork_mode_kind_names): Remove commented out "both".
2338 (follow_inferior_fork): Remove follow_fork_mode_both support.
2339 * inftarg.c (child_clone_and_follow_inferior): Remove.
2340 (child_post_follow_inferior_by_clone): Remove.
2341 (init_child_ops): Don't set to_clone_and_follow_inferior
2342 or to_post_follow_inferior_by_clone.
2343 * target.c (default_clone_and_follow_inferior): Remove.
2344 (cleanup_target): Don't set to_clone_and_follow_inferior
2345 or to_post_follow_inferior_by_clone.
2346 (find_default_clone_and_follow_inferior): Remove.
2347 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2348 (debug_to_clone_and_follow_inferior): Remove.
2349 (debug_to_post_follow_inferior_by_clone): Remove.
2350 (setup_target_debug): Don't set to_clone_and_follow_inferior
2351 or to_post_follow_inferior_by_clone.
2352 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2353 and to_post_follow_inferior_by_clone.
2354 (child_clone_and_follow_inferior): Remove prototype.
2355 (child_post_follow_inferior_by_clone): Remove prototype.
2356 (target_clone_and_follow_inferior): Remove macro.
2357 (target_post_follow_inferior_by_clone): Remove macro.
2358 (find_default_clone_and_follow_inferior): Remove prototype.
2359
47932f85
DJ
23602002-11-16 Daniel Jacobowitz <drow@mvista.com>
2361
2362 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2363 inferior_has_vforked, and inferior_has_execd instead of
2364 target_has_forked, target_has_vforked, and target_has_execd.
2365 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2366 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2367 (CHILD_WAIT): Define.
2368 (child_wait): Add prototype.
2369 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2370 Add prototype.
2371 (hpux_has_vforked): Likewise, from child_has_vforked.
2372 (hpux_has_execd): Likewise, from child_has_execd.
2373 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2374 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2375 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2376 and hpux_has_syscall_event instead of the target hooks.
2377 * infrun.c (inferior_has_forked, inferior_has_vforked)
2378 (inferior_has_execd): New functions.
2379 * inftarg.c (not_same_real_pid): Remove.
2380 (child_wait): Remove references to not_same_real_pid,
2381 target_has_forked, target_has_vforked, target_has_execd,
2382 and target_has_syscall_event.
2383 (child_has_forked, child_has_vforked, child_has_execd)
2384 (child_has_syscall_event): Remove.
2385 (init_child_ops): Remove references to child_has_forked,
2386 child_has_vforked, child_has_execd, and child_has_syscall_event.
2387 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2388 (hpux_has_vforked): Likewise, from child_has_vforked.
2389 (hpux_has_execd): Likewise, from child_has_execd.
2390 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2391 * target.c (cleanup_target): Remove references to
2392 to_has_forked, to_has_vforked, to_has_execd, and
2393 to_has_syscall_event.
2394 (update_current_target): Likewise.
2395 (setup_target_debug): Likewise.
2396 (debug_to_has_forked): Remove.
2397 (debug_to_has_vforked): Remove.
2398 (debug_to_has_execd): Remove.
2399 (debug_to_has_syscall_event): Remove.
2400 * target.h (struct target_ops): Remove to_has_forked.
2401 to_has_vforked, to_has_execd, and to_has_syscall_event.
2402 (child_has_forked, child_has_vforked, child_has_execd)
2403 (child_has_syscall_event): Remove prototypes.
2404 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2405 prototypes.
2406 (target_has_forked, target_has_vforked, target_has_execd)
2407 (target_has_syscall_event): Remove macros.
2408
4088142a
DJ
24092002-11-16 Daniel Jacobowitz <drow@mvista.com>
2410
2411 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2412 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2413 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2414 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2415 * target.c (cleanup_target): Remove reference to
2416 to_can_follow_vfork_prior_to_exec.
2417 (update_current_target): Likewise.
2418 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2419 (setup_target_debug): Remove reference to
2420 to_can_follow_vfork_prior_to_exec.
2421 * target.h (struct target_ops): Remove
2422 to_can_follow_vfork_prior_to_exec.
2423 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2424 (target_can_follow_vfork_prior_to_exec): Remove definition.
2425 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2426 define.
2427 * infrun.c (follow_vfork_when_exec): Remove.
2428 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2429 (follow_exec): Likewise.
2430 (handle_inferior_event): Likewise.
2431 (keep_going): Likewise.
2432
18cde8d5
AC
24332002-11-15 Andrew Cagney <cagney@redhat.com>
2434
2435 * frame.c (generic_unwind_get_saved_register): Make static.
2436 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2437 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2438 defaults to generic_unwind_get_saved_register.
2439 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2440 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2441 * frv-tdep.c (frv_gdbarch_init): Ditto.
2442 * i386-tdep.c (i386_gdbarch_init): Ditto.
2443 * s390-tdep.c (s390_gdbarch_init): Ditto.
2444 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2445 * v850-tdep.c (v850_gdbarch_init): Ditto.
2446 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2447 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2448 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2449
a6b063af
AC
24502002-11-15 Andrew Cagney <cagney@redhat.com>
2451
2452 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2453 i386-tdep.c.
2454
f407986f
AC
24552002-11-15 Andrew Cagney <cagney@redhat.com>
2456
2457 * frame.h (sigtramp_saved_pc): Delete declaration.
2458 * blockframe.c (sigtramp_saved_pc): Delete function.
2459 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2460 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2461 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2462 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2463
f18c5a73
AC
24642002-11-15 Andrew Cagney <ac131313@redhat.com>
2465
2466 * frame.c (frame_pc_unwind): New function.
2467 (frame_saved_regs_pc_unwind): New function.
2468 (frame_register_unwind): Pass unwind_cache instead of
2469 register_unwind_cache.
2470 (set_unwind_by_pc): Add unwind_pc parameter, set.
2471 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2472 (get_prev_frame): Ditto.
2473 * frame.h (frame_pc_unwind_ftype): Declare.
2474 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2475 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2476 (frame_pc_unwind): Declare.
2477 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2478 (struct dummy_frame): Add comment mentioning that values are for
2479 previous frame.
2480 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2481 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2482 (generic_file_frame_chain_valid): Ditto.
2483 * stack.c (frame_info): Ditto.
2484
d9285969 24852002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
2486
2487 * linespec.c (locate_first_half): New function.
2488 (decode_line_1): Move code into locate_first_half.
2489
d741b867
AC
24902002-11-15 Andrew Cagney <ac131313@redhat.com>
2491
2492 * complaints.h: Add comment explaining how to eliminate a
2493 deprecated_complain call.
24382c5c 2494 * complaints.h: Fix spelling errors.
d741b867 2495
82d03c99
DC
24962002-11-15 David Carlton <carlton@math.stanford.edu>
2497
2498 * printcmd.c: Remove #include "disasm.h".
2499
c97eb5d9
AC
25002002-11-14 Andrew Cagney <ac131313@redhat.com>
2501
2502 * frame.h: Move the most relevant interface functions to the start
2503 of the file.
2504
524d7c18
AC
25052002-11-14 Andrew Cagney <ac131313@redhat.com>
2506
2507 * regcache.h (deprecated_registers): Rename registers.
2508 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2509 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2510 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2511 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2512 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2513 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2514 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2515 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2516 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2517 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2518 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2519 * v850ice.c: Update.
2520
6411e720
AC
2521Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2522
2523 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2524 NULL buffer.
2525
73937e03
AC
25262002-11-13 Andrew Cagney <cagney@redhat.com>
2527
2528 * regcache.h (deprecated_read_register_bytes): Rename
2529 read_register_bytes.
2530 (deprecated_write_register_bytes): Rename write_register_bytes.
2531 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2532 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2533 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2534 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2535 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2536 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2537 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2538 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2539 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2540 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2541 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2542 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2543 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2544 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2545
fb0cd46e
JB
25462002-11-13 Jim Blandy <jimb@redhat.com>
2547
2548 * findvar.c (read_var_value): Doc fix.
2549
2d28509a
AC
25502002-11-13 Andrew Cagney <cagney@redhat.com>
2551
2552 * regcache.c (struct regcache): Replace passthough_p with
2553 readonly_p.
2554 (regcache_xmalloc): Initialize readonly_p.
2555 (build_regcache): Initialize readonly_p.
2556 (regcache_save): New function.
2557 (regcache_restore): New function.
2558 (regcache_cpy): Re-implement using regcache_save and
2559 regcache_restore.
2560 (regcache_raw_read): Update.
2561 (regcache_cooked_read): When a read-only cache, checked for cached
2562 pseudo register values.
2563 (regcache_raw_write): Assert that the cache is not read-only.
2564 Remove code handling a non-passthrough cache.
2565 * regcache.h (regcache_save): Declare.
2566 (regcache_restore): Declare.
2567
067df2e5
AC
25682002-11-13 Andrew Cagney <cagney@redhat.com>
2569
2570 * regcache.c (struct regcache_descr): Add fields
2571 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2572 (init_legacy_regcache_descr): Compute the size of a cooked
2573 register cache and then assign that to sizeof_raw_registers. Set
2574 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2575 (init_legacy_regcache_descr): Ditto.
2576
51b1fe4e
AC
25772002-11-13 Andrew Cagney <cagney@redhat.com>
2578
2579 * regcache.c (register_buffer): Move to near start of file, update
2580 description.
2581 (regcache_raw_read): Use.
2582 (regcache_raw_write): Use.
2583 (struct regcache): Rename raw_registers to registers and
2584 raw_register_valid_p to register_valid_p.
2585 (regcache_xmalloc): Update.
2586 (regcache_xfree): Update.
2587 (register_buffer): Update.
2588 (regcache_cpy): Update.
2589 (regcache_cpy_no_passthrough): Update.
2590 (regcache_valid_p): Update.
2591 (deprecated_grub_regcache_for_registers): Update.
2592 (deprecated_grub_regcache_for_register_valid): Update.
2593 (set_register_cached): Update.
2594 (regcache_raw_write): Update.
2595
80b4c677
PM
25962002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2597
2598 * p-exp.y (name_not_typename): Use copy_name to
2599 set current_type variable for fields of THIS.
2600
0f3fafde
DJ
26012002-11-12 Daniel Jacobowitz <drow@mvista.com>
2602
2603 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2604 * monitor.c (init_base_monitor_ops): Likewise.
2605 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2606 * remote-array.c (init_array_ops): Likewise.
2607 * remote-e7000.c (init_e7000_ops): Likewise.
2608 * remote-es.c (init_es1800_ops): Likewise.
2609 (init_es1800_child_ops): Likewise.
2610 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2611 * remote-sim.c (init_gdbsim_ops): Likewise.
2612 * remote-st.c (init_st2000_ops): Likewise.
2613 * sol-thread.c (init_sol_core_ops): Likewise.
2614 (init_sol_thread_ops): Likewise.
2615 * v850ice.c (init_850ice_ops): Likewise.
2616 * win32-nat.c (init_child_ops): Likewise.
2617 * wince.c (init_child_ops): Likewise.
2618
82c0260e
AC
26192002-11-12 Andrew Cagney <ac131313@redhat.com>
2620
2621 * utils.c (gdb_realpath): Make rp a constant pointer.
2622
70d35819
AC
26232002-11-12 Andrew Cagney <ac131313@redhat.com>
2624
2625 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2626 a constant buffer; cannonicalize_file_name(); realpath() with a
2627 pathconf() defined buffer, xstrdup().
2628
9835a8b0
AC
26292002-11-12 Andrew Cagney <ac131313@redhat.com>
2630
2631 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2632 to hang2.C; hang3.c to hang3.C.
2633
3f47be5c
EZ
26342002-11-11 Elena Zannoni <ezannoni@redhat.com>
2635
2636 * findvar.c (read_var_value): Reenable TLS code.
2637
26382002-11-11 Elena Zannoni <ezannoni@redhat.com>
2639 Jim Blandy <jimb@redhat.com>
2640
2641 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2642 * target.c (update_current_target): Add
2643 to_get_thread_local_address.
2644 * target.h (to_get_thread_local_address): Export.
2645 (target_get_thread_local_address): Define.
2646 (target_get_thread_local_address_p): Define.
2647 * thread-db.c: Include solib-svr4.h.
2648 (td_thr_tls_get_addr_p): Define.
2649 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2650 (thread_db_get_thread_local_address): New function.
2651 (init_thread_db_ops): Initialize to_get_thread_local_address.
2652 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2653 * configure: Regenerate.
2654 * config.in: Regenerate.
2655
636b1a6d
DC
26562002-11-11 David Carlton <carlton@math.stanford.edu>
2657
2658 * linespec.c (set_flags): New function.
2659 (decode_line_1): Move code into set_flags.
2660
44fe14ab
DC
26612002-11-11 David Carlton <carlton@math.stanford.edu>
2662
2663 * linespec.c (decode_line_1): Move chunks of code to separate
2664 functions.
2665 (initialize_defaults): New function.
2666 (decode_indirect): New function.
2667
e6f181f5
AC
26682002-11-11 Andrew Cagney <ac131313@redhat.com>
2669
8971b011
AC
2670 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2671 instead of void_code_ptr.
2672 (sigtramp_saved_pc): Ditto.
2673
e6f181f5
AC
2674 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2675 i386_fp_regnum_p.
2676
01ad7f36
DJ
26772002-11-10 Daniel Jacobowitz <drow@mvista.com>
2678
2679 * gdbtypes.h (struct main_type): Move artificial flag out of
2680 loc. New member of ``struct field'' named static_kind. Reduce
2681 overloaded meaning of bitsize.
2682 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2683 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2684 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2685
2686 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2687 new fields.
2688 (template_to_fixed_record_type, template_to_static_fixed_type)
2689 (to_record_with_fixed_variant_part): Likewise.
2690 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2691 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2692 * dwarfread.c (struct_type, enum_type): Likewise.
2693 * hpread.c (hpread_read_enum_type)
2694 (hpread_read_function_type, hpread_read_doc_function_type)
2695 (hpread_read_struct_type): Likewise.
2696 * mdebugread.c (parse_symbol): Likewise.
2697
bf1e52be
AC
26982002-11-10 Andrew Cagney <ac131313@redhat.com>
2699
2700 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2701 * stack.c (print_frame_info_base): Update.
2702 (print_frame_info_base, frame_info): Update.
2703 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2704 (sparc_frame_saved_pc): Update.
2705 * ada-lang.c (find_printable_frame): Update.
2706 * breakpoint.c (deprecated_frame_in_dummy): Update.
2707
ce556f85
MK
27082002-11-09 Mark Kettenis <kettenis@gnu.org>
2709
2710 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2711 defined.
2712 (regmap): Extend to cover all registers.
2713 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2714 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2715 definitions.
2716 (fetch_register, sore_register): Simplify.
2717 (old_fetch_inferior_registers, old_store_inferior_registers):
2718 Remove functions.
2719 (cannot_fetch_register, cannot_store_register): Change
2720 implementation to use regmap array to decide which registers
2721 cannot be fetched/stored. This removes $orig_eax from the
2722 registers that cannot be fetched/stored.
2723 (fetch_inferior_registers): Call fetch_register directly instead
2724 of calling old_fetch_inferior_registers.
2725 (store_inferior_registers): Call store_register directly instead
2726 of calling old_store_inferior_registers.
2727 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2728 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2729 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2730
932bb524
KD
27312002-11-09 Klee Dienes <kdienes@apple.com>
2732
2733 * i387-tdep.c (i387_supply_register): When called with NULL as a
2734 buffer, mark the register as not provided (to mirror the behavior
2735 of supply_register).
2736 (i387_supply_fxsave): Ditto.
2737 (i387_supply_fsave): Ditto (inherits the behavior from
2738 i387_supply_register).
2739
ebe68b27
KD
27402002-11-09 Klee Dienes <kdienes@apple.com>
2741
2742 * blockframe.c (sigtramp_saved_pc): Use
2743 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2744 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2745 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2746
15220c65
AC
27472002-11-09 Andrew Cagney <ac131313@redhat.com>
2748
2749 * frame.c (get_prev_frame): Test prev_p to identify a previously
2750 unwound frame. Initialize prev_p.
2751 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2752 comment.
2753
95adb866
AC
27542002-11-09 Andrew Cagney <ac131313@redhat.com>
2755
2756 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2757 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2758 more comments. Zap dead code.
2759
e71ecd70
MK
27602002-11-09 Mark Kettenis <kettenis@gnu.org>
2761
2762 * infcmd.c (print_vector_info, print_float_info): Move code that
2763 checks whether the target has any registers and whether there is a
2764 selected frame up, such that it is also used if a target provides
2765 multi-arch definitions of these functions.
2766
c525330d
AC
27672002-11-08 Andrew Cagney <ac131313@redhat.com>
2768
72bdd927
AC
2769 * Makefile.in (DESTDIR): Define.
2770 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2771 prefix.
2772
c525330d
AC
2773 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2774 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2775
38c968cf
AC
27762002-11-08 Andrew Cagney <ac131313@redhat.com>
2777
2778 * i386-linux-tdep.c: Include "reggroups.h".
2779 (i386_linux_register_reggroup_p): New function.
2780 (i386_linux_init_abi): Set register_reggroup_p to
2781 i386_linux_register_reggroup_p.
2782 * i386-tdep.h (i386_register_reggroup_p): Declare.
2783 * i386-tdep.c: Include "reggroups.h".
2784 (i386_init_reggroups): New function.
2785 (i386_add_reggroups): New function.
2786 (i386_register_reggroup_p): New function.
2787 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2788 (_initialize_i386_tdep): Call i386_init_reggroups.
2789 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2790 specific reggroups.
2791
19e33363
MK
27922002-11-09 Mark Kettenis <kettenis@gnu.org>
2793
371a6e84
MK
2794 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2795 request that's available in *BSD.
2796
94ba925a
MK
2797 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2798
19e33363
MK
2799 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2800 FDOFF_REGNUM.
2801
8779790c
AC
28022002-11-08 Andrew Cagney <ac131313@redhat.com>
2803
2804 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2805 * dummy-frame.c (find_dummy_frame): Rename
2806 generic_find_dummy_frame, make static. Return the dummy frame
2807 instead of the regcache.
2808 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2809 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2810 (dummy_frame_register_unwind): Rename
2811 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2812 * dummy-frame.h (dummy_frame_register_unwind): Rename
2813 generic_call_dummy_register_unwind.
2814
8674b74f
MK
28152002-11-08 Mark Kettenis <kettenis@gnu.org>
2816
2817 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2818 except the inclusion of "i386/tm-i386.h", to...
2819 * config/i386/nm-i386v42mp.h: ...here.
2820 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2821
4c1e7e9d
AC
28222002-11-08 Andrew Cagney <ac131313@redhat.com>
2823
2824 * Makefile.in (frame.o): Update dependencies.
2825 * blockframe.c (current_frame, frame_obstack_alloc)
2826 (frame_saved_regs_zalloc, get_current_frame)
2827 (set_current_frame, create_new_frame)
2828 (set_unwind_by_pc, get_next_frame)
2829 (flush_cached_frames, reinit_frame_cache)
2830 (frame_saved_regs_register_unwind)
2831 (deprecated_generic_get_saved_register)
2832 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2833 (_initialize_blockframe): Move frame code from here...
2834 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2835 "annotate.h" and "dummy-frame.h".
2836 (_initialize_frame): New function.
2837
921e78cf
JB
28382002-11-08 Jim Blandy <jimb@redhat.com>
2839
2840 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2841 when we finish a function a context.
2842 * buildsym.h (outermost_context_p): New macro.
2843 (Bug analyzed by David Edelsohn.)
2844
9c1412c1
AC
28452002-11-08 Andrew Cagney <ac131313@redhat.com>
2846
2847 * blockframe.c: Include "dummy-frame.h".
2848 (struct dummy_frame, dummy_frame_stack)
2849 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2850 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2851 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2852 (generic_save_call_dummy_addr, generic_pop_current_frame)
2853 (generic_pop_dummy_frame, generic_fix_call_dummy)
2854 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2855 dummy frame code from here...
2856 * dummy-frame.c: ...to here. New file.
2857 * dummy-frame.h: New file.
2858 (generic_call_dummy_register_unwind): Declare.
2859 (generic_find_dummy_frame): Declare.
2860 * Makefile.in (SFILES): Add dummy-frame.c.
2861 (dummy-frame.o): Specify dependencies.
2862 (dummy_frame_h): Define.
2863 (COMMON_OBS): Add dummy-frame.o.
2864 (blockframe.o): Update dependencies.
2865
208d8187
JB
28662002-11-08 Jim Blandy <jimb@redhat.com>
2867
2868 * dwarf2read.c (read_func_scope): Restore local_symbols and
2869 param_symbols after we finish the function context. (Based on a
2870 patch from David Edelsohn.)
2871
413dad4d
DC
28722002-11-08 David Carlton <carlton@math.stanford.edu>
2873
2874 * linespec.c (symbol_found): New function.
2875 (minsym_found): New function.
2876 (decode_line_1): Separate out some code into separate functions.
2877
5512c44a
JB
28782002-11-08 Joel Brobecker <brobecker@gnat.com>
2879
2880 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2881 the benefit of the interix target.
2882 * i386-tdep.h (i386_frameless_signal_p): Declare.
2883
1b33ef47
AC
28842002-11-08 Andrew Cagney <ac131313@redhat.com>
2885
2886 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2887 declaration that snuck in from change below.
2888
23a34459
AC
28892002-11-06 Andrew Cagney <cagney@redhat.com>
2890
2891 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2892 all callers.
2893 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2894 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2895 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2896 (i386_mxcsr_regnum_p): new function. Use instead of
2897 MXCSR_REGNUM_P.
2898 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2899 (i386_sse_regnum_p): Declare.
2900 (i386_mxcsr_regnum_p): Declare.
2901 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2902 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2903 (IS_FP_REGNUM): Update definition.
2904 (IS_FPU_CTRL_REGNUM): Update definition..
2905 (IS_SSE_REGNUM): Update definition..
2906 * i386v-nat.c (register_u_addr): Update.
2907 * go32-nat.c (fetch_register): Update.
2908 (store_register): Update.
2909
d709c020
JB
29102002-11-07 Joel Brobecker <brobecker@gnat.com>
2911
2912 Preparation work to convert the hppa targets to multiarch partial.
2913
2914 * hppa-tdep.c: Add new functions replacing macro bodies from
2915 config/pa/tm-hppa.h. These function will be used to initialize
2916 the gdbarch structure. Import some comments from tm-hppa.h,
2917 and place them where appropriate, to avoid loosing them when
2918 we cleanup this file.
2919 (hppa_reg_struct_has_addr): New function.
2920 (hppa_inner_than): New function.
2921 (hppa_stack_align): New function.
2922 (hppa_pc_requires_run_before_use): New function.
2923 (hppa_instruction_nullified): New function.
2924 (hppa_register_byte): New function.
2925 (hppa_register_virtual_type): New function.
2926 (hppa_store_struct_return): New function.
2927 (hppa_cannot_store_register): New function.
2928 (hppa_frame_args_address): New function.
2929 (hppa_frame_locals_address): New function.
2930 (hppa_smash_text_address): New function.
2931 (hppa_coerce_float_to_double): New function. Requires the inclusion
2932 of "language.h".
2933
2934 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2935
2936 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2937 gdbarch-eligible macro to a call to the new associated function
2938 created in hppa-tdep.c.
2939 (INNER_THAN): Likewise.
2940 (STACK_ALIGN): Likewise.
2941 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2942 (INSTRUCTION_NULLIFIED): Likewise.
2943 (REGISTER_BYTE): Likewise.
2944 (REGISTER_VIRTUAL_TYPE): Likewise.
2945 (STORE_STRUCT_RETURN): Likewise.
2946 (CANNOT_STORE_REGISTER): Likewise.
2947 (FRAME_ARGS_ADDRESS): Likewise.
2948 (FRAME_LOCALS_ADDRESS): Likewise.
2949 (SMASH_TEXT_ADDRESS): Likewise.
2950 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2951 (ABOUT_TO_RETURN): Delete, as no longer used.
2952
83c31e7d
FN
29532002-11-07 Fernando Nasser <fnasser@redhat.com>
2954
2955 * printcmd.c (disassemble_command): Remove obsolete function.
2956 (_initialize_printcmd): Do not create disassemble command here.
2957 * cli/cli-cmds.c (disassemble_command): New function. Implements
2958 disassemble command.
2959 (init_cli_cmds): Create disassemble command here instead.
2960
0ec30a36
AC
29612002-11-07 Andrew Cagney <ac131313@redhat.com>
2962
2963 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2964
e600bd34
AC
29652002-11-07 Andrew Cagney <ac131313@redhat.com>
2966
2967 * regcache.h (regcache_cooked_read_using_offset_hack)
2968 (regcache_cooked_write_using_offset_hack): Delete declarations.
2969 (register_changed): Delete declaration.
2970 * regcache.c (regcache_cooked_read_using_offset_hack)
2971 (regcache_cooked_write_using_offset_hack): Delete functions.
2972 (cooked_xfer_using_offset_hack): Delete function.
2973 (register_changed): Delete function.
2974
568f8739
JB
29752002-11-07 Jim Blandy <jimb@redhat.com>
2976
2977 * macroscope.c: #include "complaints.h".
2978 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2979 but not in the macro table.
2980 * Makefile.in (macroscope.o): Record dependency.
2981
b0718b7b
JB
29822002-11-07 Joel Brobecker <brobecker@gnat.com>
2983
2984 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2985
2b9e5f3f
AC
29862002-11-07 Andrew Cagney <ac131313@redhat.com>
2987
2988 * regcache.c (deprecated_registers_fetched): Update.
2989 * regcache.h (deprecated_registers_fetched): Rename
2990 registers_fetched.
2991 * remote-vxsparc.c (vx_read_register): Update.
2992 * remote-vxmips.c (vx_read_register): Update.
2993 * remote-vx68.c (vx_read_register): Update.
2994 * irix5-nat.c (fetch_core_registers): Update.
2995 * mipsm3-nat.c (fetch_inferior_registers): Update.
2996 * sun3-nat.c (fetch_inferior_registers): Update.
2997 * symm-nat.c (fetch_inferior_registers): Update.
2998 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2999 (fetch_core_registers): Update.
3000 (fetch_kcore_registers): Update.
3001 * mips-nat.c (fetch_inferior_registers): Update.
3002 * corelow.c (get_core_registers): Update.
3003 * a68v-nat.c (fetch_inferior_registers): Update.
3004
e6e68f1f
JB
30052002-11-06 Joel Brobecker <brobecker@gnat.com>
3006
3007 Put in place the framework necessary for multiarching the hppa targets.
3008 * hppa-tdep.c (hppa_gdbarch_init): New function.
3009 (hppa_dump_tdep): New function.
3010 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3011 tdep structure dumper.
3012 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3013 until the multi-arching conversion has partially been completed.
3014
492254e9
AC
30152002-11-06 Andrew Cagney <ac131313@redhat.com>
3016
3017 * valops.c (value_assign): Merge lval_register case into
3018 lval_reg_frame_relative. Use frame_register and
3019 regcache_cooked_write instead of get_saved_register and
3020 write_register_bytes. After flushing the register cache, try to
3021 re-select the selected frame.
3022
8262ee23
AC
30232002-11-06 Andrew Cagney <ac131313@redhat.com>
3024
3025 * regcache.h (deprecated_register_valid): Rename register_valid.
3026 * regcache.c: Update.
3027 * ia64-aix-nat.c: Update.
3028 * i386gnu-nat.c: Update.
3029 * alpha-nat.c: Update.
3030 * sparc-nat.c: Update.
3031 * lynx-nat.c: Update.
3032 * remote-mips.c: Update.
3033
4facf7e8
JB
30342002-11-06 Joel Brobecker <brobecker@gnat.com>
3035
3036 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3037 to end of file, to be more consistent with the pratice followed
3038 by other targets.
3039
f9418c0f
AC
30402002-11-06 Andrew Cagney <ac131313@redhat.com>
3041
3042 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3043 (print_float_info): Print registers in float_reggroup.
3044 (print_vector_info): Print registers in vector_reggroup.
3045 (default_print_registers_info): When all, print registers in
3046 all_reggroup. Otherwize, print registers in general_reggroup.
3047 (registers_info): Rewrite. Add support for register groups.
3048 Eliminate a goto.
3049
3fe235a7
EZ
30502002-11-06 Elena Zannoni <ezannoni@redhat.com>
3051
3052 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3053 ages.
3054 (symtab_symbol_info): Remove eons old ifdeffed out code.
3055 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3056 command.
3057
ef944135
TR
30582002-11-06 Theodore A. Roth <troth@openavr.org>
3059
3060 * c-exp.y: Add missing semi-colons.
3061 * f-exp.y: Add missing semi-colons.
3062 * m2-exp.y: Add missing semi-colons.
3063 * p-exp.y: Add missing semi-colons.
3064 Add empty action to start rule to avoid a type clash error when
3065 building with bison >= 1.50.
3066
f8302a57
JB
30672002-11-06 Jim Blandy <jimb@redhat.com>
3068
3069 * macrotab.h (struct macro_source_file): Doc fix.
3070
6e382aa3
JJ
30712002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3072
3073 * varobj.c (child_exists, cplus_number_of_children): Change
3074 STREQ macro references to strcmp.
3075 (cplus_name_of_child): Change code to handle the fact that
3076 fields are not necessarily contiguous with regards to their
3077 access control. This is a fix for PR gdb/792.
3078
a216a322
AC
30792002-11-05 Andrew Cagney <ac131313@redhat.com>
3080
3081 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3082 * gdbarch.h, gdbarch.c: Regnerate.
3083 * frame.h (frame_register): Declare.
3084 * frame.c (frame_register): New function.
3085 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3086 GET_SAVED_REGISTER, otherwize call
3087 generic_unwind_get_saved_register.
3088 (frame_register_read): Use frame_register instead of
3089 get_saved_register.
3090
7d5b6fdd
EZ
30912002-11-05 Elena Zannoni <ezannoni@redhat.com>
3092
3093 From Jim Ingham <jingham@apple.com>:
3094 * event-top.c (gdb_disable_readline): New function.
3095 (_initialize_event_loop): Move comment.
3096
b7c64260
EZ
30972002-11-05 Elena Zannoni <ezannoni@redhat.com>
3098
3099 * event-loop.c (start_event_loop): Add comment.
3100 Update copyright.
3101
c2e1b8f2
AC
31022002-11-05 Andrew Cagney <ac131313@redhat.com>
3103
3104 * infcmd.c (default_print_registers_info): Do not call
3105 PRINT_REGISTER_HOOK.
3106
87647bb0
AC
31072002-11-05 Andrew Cagney <ac131313@redhat.com>
3108
3109 * sparc-tdep.c (sparc_print_register_hook): Make static.
3110 (sparc_print_registers_info): New function.
3111 (sparc_do_registers_info): New function.
3112 (sparclet_print_registers_info): New function.
3113 (sparclet_do_registers_info): New function.
3114 (do_sparc_print_registers_info): New function.
3115 (sparc_print_registers): New static function, clone of infcmd.c's
3116 default_print_registers_info.
3117 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3118 (sparclet_do_registers_info): Declare.
3119 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3120 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3121 Re-define.
3122 (sparc_do_registers_info): Declare.
3123 (PRINT_REGISTER_HOOK): Delete macro.
3124 (sparc_print_register_hook): Delete declaration.
3125
8155455b
DC
31262002-11-05 David Carlton <carlton@math.stanford.edu>
3127
3128 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3129 functions.
3130 (lookup_symbol_aux_local): New function.
3131 (lookup_symbol_aux_symtabs): New function.
3132 (lookup_symbol_aux_psymtabs): New function.
3133
29924310
DC
31342002-11-05 David Carlton <carlton@math.stanford.edu>
3135
3136 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3137 previous values of 'objfile' and 'block'.
3138
cc303028
PM
31392002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3140
3141 * values.c (value_change_enclosing_type): Set
3142 enclosing_type field correctly also for the case where
3143 more memory needs to be allocated.
3144
1d70089a
MK
31452002-11-03 Mark Kettenis <kettenis@gnu.org>
3146
f16a25ae
MK
3147 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3148 of puts_filtered.
3149
1d70089a
MK
3150 * i387-tdep.c (i387_print_float_info): Replace calls to
3151 register_read and deprecated_read_register_gen with calls to
3152 frame_register_read, and make the necessary adjustments to the
3153 surrounding code.
3154
7e20f3fb
AC
31552002-11-02 Andrew Cagney <ac131313@redhat.com>
3156
3157 * gdbarch.sh (register_reggroup_p): Allow default value.
3158 * gdbarch.h, gdbarch.c: Regenerate.
3159
192dbe33
AC
31602002-11-02 Andrew Cagney <ac131313@redhat.com>
3161
3162 * regcache.h: Add coment indicating replacements for deprecated
3163 functions.
3164
b59ff9d5
AC
31652002-11-02 Andrew Cagney <cagney@redhat.com>
3166
3167 * reggroups.h, reggroups.c: New files.
3168 * regcache.c: Include "reggroups.h".
3169 (enum regcache_dump_what): Add `regcache_dump_groups'.
3170 (regcache_dump): Contract size of the "Type" column. When
3171 specified, dump the register's groups.
3172 (maintenance_print_register_groups): New function.
3173 (_initialize_regcache): Add command `maint print register-groups'.
3174 * Makefile.in (COMMON_OBS): Add reggroups.o
3175 (SFILES): Add reggroups.c.
3176 (reggroups_h): Define.
3177 (regcache.o, gdbarch.o): Update dependencies.
3178 (reggroups.o): Specify dependencies.
3179 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3180 Add opaque declaration for `struct reggroup' in generated .h file.
3181 Include "reggroups.h" in generated .c file.
3182 gdbarch.h, gdbarch.c: Re-generate.
3183
4caf0990
AC
31842002-11-02 Andrew Cagney <cagney@redhat.com>
3185
3186 * regcache.h (deprecated_read_register_gen): Rename
3187 read_register_gen.
3188 (deprecated_write_register_gen): Rename write_register_gen.
3189 * i387-tdep.c: Update.
3190 * x86-64-linux-nat.c: Update
3191 * wince.c: Update.
3192 * thread-db.c: Update.
3193 * win32-nat.c: Update.
3194 * mips-tdep.c: Update.
3195 * d10v-tdep.c: Update.
3196 * cris-tdep.c: Update.
3197 * remote-sim.c: Update.
3198 * remote-rdi.c: Update.
3199 * remote-rdp.c: Update.
3200 * frame.c: Update.
3201 * target.c: Update.
3202 * blockframe.c: Update.
3203 * x86-64-tdep.c: Update.
3204 * xstormy16-tdep.c: Update.
3205 * sh-tdep.c: Update.
3206 * s390-tdep.c: Update.
3207 * rs6000-tdep.c: Update.
3208 * sparc-tdep.c: Update.
3209 * i386-tdep.c: Update.
3210 * dwarf2cfi.c: Update.
3211 * regcache.c: Update.
3212
7a7adcdf
JB
32132002-11-01 Joel Brobecker <brobecker@gnat.com>
3214
3215 New interix-specific files:
3216 * config/i386/nm-interix.h: New file.
3217 * config/i386/interix.mh: New file.
3218 * config/i386/interix.mt: New file.
3219 * i386-interix-nat.c: New file.
3220 * i386-interix-tdep.c: New file.
3221
bdcdd535
AC
32222002-11-01 Andrew Cagney <cagney@redhat.com>
3223
3224 * frame.h (deprecated_generic_get_saved_register): Rename
3225 generic_get_saved_register.
3226 * blockframe.c (deprecated_generic_get_saved_register): Update.
3227 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3228 (xstormy16_frame_saved_register): Update.
3229 * sh-tdep.c (sh_gdbarch_init): Update.
3230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3231 * ia64-tdep.c (ia64_get_saved_register): Update.
3232 * cris-tdep.c (cris_gdbarch_init): Update.
3233 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3234 * arm-tdep.c (arm_gdbarch_init): Update.
3235
2a4b7c45
DJ
32362002-10-31 Daniel Jacobowitz <drow@mvista.com>
3237
3238 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3239
ef17e74b
DJ
32402002-10-31 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3243 trampolines in sigaction.
3244
4904ba5b
AC
32452002-10-31 Andrew Cagney <cagney@redhat.com>
3246
3247 * h8300-tdep.c: Include "gdb_assert.h".
3248 (h8300_print_register): Add gdbarch, file and frame parameters.
3249 Use frame_read_unsigned_register to read the register's value.
3250 Use fprintf_filtered to display output.
3251 (h8300_print_registers_info): Replace h8300_do_registers_info.
3252 (h8300_gdbarch_init): Set print_registers_info.
3253
f908a0eb
AC
32542002-10-31 Andrew Cagney <cagney@redhat.com>
3255
3256 * frame.c (frame_read_unsigned_register): New function.
3257 (frame_read_signed_register): New function.
3258 * frame.h (frame_read_unsigned_register): Declare.
3259 (frame_read_signed_register): Declare.
3260
c5646e11
AC
32612002-10-31 Andrew Cagney <cagney@redhat.com>
3262
3263 * h8500-tdep.c (h8500_print_registers_info): New static function,
3264 clone of infcmd.c's default_print_registers_info.
3265 (h8500_do_registers_info): New funtion.
3266 (h8500_print_register_hook): Rename print_register_hook, make
3267 static.
3268
3269 * config/h8500/tm-h8500.h: Update copyright.
3270 (DEPRECATED_DO_REGISTERS_INFO): Define.
3271 (h8500_do_registers_info: Declare.
3272 (PRINT_REGISTER_HOOK): Delete macro.
3273 (print_register_hook): Delete function.
3274
0bdd672b
AC
32752002-10-31 Andrew Cagney <cagney@redhat.com>
3276
3277 * z8k-tdep.c (z8k_print_register_hook): Make static.
3278 (z8k_print_registers_info): New static function, clone of
3279 infcmd.c's default_print_registers_info.
3280 (z8k_do_registers_info): New function. Wrap
3281 z8k_print_registers_info.
3282 * config/z8k/tm-z8k.h: Update copyright.
3283 (PRINT_REGISTER_HOOK): Delete macro.
3284 (z8k_print_register_hook): Delete declaration.
3285 (DEPRECATED_DO_REGISTERS_INFO): Define.
3286 (z8k_do_registers_info): Declare.
3287
bf9c25dc
JB
32882002-10-30 Joel Brobecker <brobecker@gnat.com>
3289
3290 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3291 as this is already provided by value.h, and was actually causing
3292 a compilation error because of a conflict in parameter type
3293 declaration due to a missing const keyword.
3294 (low_text_segment_addres): Fix a compilation warning.
3295
2c665b51
DJ
32962002-10-29 Daniel Jacobowitz <drow@mvista.com>
3297
3298 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3299 registers without a name.
3300 (mips_linux_cannot_store_register): Don't store registers without
3301 a name.
3302
e70ea697
DC
33032002-10-28 David Carlton <carlton@math.stanford.edu>
3304
3305 * symtab.c (find_addr_symbol): Delete. (It was already commented
3306 out.)
3307 * symtab.h: Delete prototype for find_addr_symbol.
3308
903ad3a6
AC
33092002-10-26 Andrew Cagney <cagney@redhat.com>
3310
3311 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3312 DO_REGISTERS_INFO.
3313 gdbarch.h, gdbarch.c: Re-generate.
3314 * infcmd.c (default_print_registers_info): Update reference.
3315 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3316 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3317 * sh-tdep.c (sh_gdbarch_init): Ditto.
3318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3319 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3320
ab91194c
MK
33212002-10-26 Mark Kettenis <kettenis@gnu.org>
3322
e3033f15
MK
3323 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3324 cfi_init_extra_frame_info.
3325 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3326 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3327
b83b026c
MK
3328 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3329 target where necessary. Add more comments and remove the ones
3330 that don't provide any useful information.
3331
267bf4bb
MK
3332 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3333 deprecated_read_register_dummy with
3334 frame_unwind_unsigned_register.
3335
751f1375
MK
3336 * i386-tdep.c (i386_extract_struct_value_address): Use
3337 regcache_raw_read_unsigned instead of
3338 regcache_cooked_read_unsigned since we know that the register
3339 we're reading isn't a pseudo register. Rename variable 'val' into
3340 the more descriptive 'addr'.
3341
26abbdc4
MK
3342 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3343 (x86_64_push_return_address): Add comment.
3344 (x86_64_pop_frame): Make static.
3345 (examine_argument): Clarify comment.
3346 (x86_64_skip_prologue): Make prolog_expact variable static.
3347
9f1549cc
MK
3348 * dwarf2cfi.c: Fix some formatting problems.
3349 (context_cpy, read_encoded_pointer): Clarify comments.
3350
ab91194c
MK
3351 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3352 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3353 i386 target back into x86_64_gdbarch_init. Add some comments and
3354 remove meaningless ones.
3355
72367fb4
AC
33562002-10-25 Andrew Cagney <cagney@redhat.com>
3357
3358 * complaints.h (struct deprecated_complaint): Rename `struct
3359 complaint'.
3360 * complaints.c (complain): Update.
3361 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3362 incorrect comment indicating that "symfile.h" was being included
3363 for the `struct complaint' definition.
3364 * remote-vx.c: Update.
3365 * objc-lang.c: Update.
3366 * xcoffread.c: Update.
3367 * hpread.c: Update.
3368 * mdebugread.c: Update.
3369 * stabsread.c: Update.
3370 * dwarf2read.c: Update.
3371 * dwarfread.c: Update.
3372 * elfread.c: Update.
3373 * coffread.c: Update.
3374 * stabsread.h: Update.
3375 * dbxread.c: Update.
3376 * buildsym.c: Update.
3377 * gdbtypes.c: Update.
3378 * macrotab.c: Update.
3379
1f2baacc
MK
33802002-10-25 Mark Kettenis <kettenis@gnu.org>
3381
0c1a73d6
MK
3382 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3383 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3384 (x86_64_init_abi): ...new function.
3385
6aee4d54 3386 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
3387 * i386v-nat.c: Include "i386-tdep.h".
3388
8f9cbe01
AC
33892002-10-25 Andrew Cagney <cagney@redhat.com>
3390
5f11f355
AC
3391 * gdbtypes.c (address_space_name_to_int): Update.
3392 (address_space_int_to_name): Update.
3393 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3394 multi-arch predicate.
3395 (address_class_name_to_type_flags): Ditto.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397
8f9cbe01
AC
3398 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3399
e8d96a5d
MH
34002002-10-24 Martin M. Hunt <hunt@redhat.com>
3401
3402 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3403
fe39c653
EZ
34042002-10-24 Elena Zannoni <ezannoni@redhat.com>
3405
3406 * symtab.h (INIT_SAL): Delete macro.
3407 (init_sal): Export.
3408 * symtab.c (init_sal): New function.
3409
3410 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3411 to init_sal function call.
3412 (find_sal_from_funcs_and_line): Ditto.
3413 (all_sals_for_line): Ditto.
3414 * breakpoint.c (create_internal_breakpoint): Ditto.
3415 (create_fork_vfork_event_catchpoint): Ditto.
3416 (create_exec_event_catchpoint): Ditto.
3417 (parse_breakpoint_sals): Ditto.
3418 (watch_command_1): Ditto.
3419 (handle_gnu_4_16_catch_command): Ditto.
3420 (clear_command): Ditto.
3421 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3422 * infcmd.c (run_stack_dummy): Ditto.
3423 * infrun.c (process_event_stop_test): Ditto.
3424 (check_sigtramp2): Ditto.
3425 (step_over_function): Ditto.
3426 * linespec.c (decode_line_2): Ditto.
3427 (decode_line_1): Ditto.
3428 * source.c (line_info): Ditto.
3429 * symtab.c (find_pc_sect_line): Ditto.
3430
baed091b
ML
34312002-10-24 Michal Ludvig <mludvig@suse.cz>
3432
3433 * dwarf2cfi.c (struct context)
3434 (struct context_reg): Moved to dwarf2cfi.h
3435 (context_alloc, frame_state_alloc, context_cpy):
3436 Made extern instead of static, removed prototypes.
3437 * dwarf2cfi.h (struct context)
3438 (struct context_reg): New, moved from dwarf2cfi.c
3439 (context_alloc, frame_state_alloc, context_cpy):
3440 New prototypes.
3441 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3442 Changed from static to extern.
3443 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3444 (LINUX_SIGCONTEXT_FP_OFFSET)
3445 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3446 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3447 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3448 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3449 set_gdbarch_*() calls now use x86-64 specific functions
3450 instead of DWARF2 CFI ones.
3451 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3452 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3453 (x86_64_init_extra_frame_info): New prototypes.
3454
c38da1af
DC
34552002-10-23 David Carlton <carlton@math.stanford.edu>
3456
3457 * linespec.c: #include "parser-defs.h".
3458 Delete prototype for find_template_name_end.
3459 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3460
fb9b6b35
JJ
34612002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3462
3463 * NEWS: add recent mi fixes.
3464 * varobj.c (struct varobj): Add new "updated" flag.
3465 (new_variable): Default "updated" flag to 0.
3466 (varobj_set_value): Set "updated" flag to 1 if value
3467 changes.
3468 (varobj_update): Check varobj "updated" flag before
3469 comparing old and refreshed values. Fix for
3470 PR gdb/702.
3471
8da065d5
DC
34722002-10-23 David Carlton <carlton@math.stanford.edu>
3473
3474 * parse.c (parse_exp_1): Use BLOCK_START.
3475 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3476 SYMBOL_BLOCK_VALUE.
3477 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3478
87f2f08c
DC
34792002-10-23 David Carlton <carlton@math.stanford.edu>
3480
3481 * symtab.c: Delete cplusplus_hint.
3482 Delete prototype for find_template_name_end.
3483
88cda038
EZ
34842002-10-23 Elena Zannoni <ezannoni@redhat.com>
3485
3486 * symtab.h: Update comment.
3487
2625d86c
MS
34882002-10-23 Michael Snyder <msnyder@redhat.com>
3489
3490 * printcmd.c (address_info): Restore quotes in output.
3491 * valops.c (value_of_local): Restore quotes in error message.
3492
9cc0d196
EZ
34932002-10-23 Elena Zannoni <ezannoni@redhat.com>
3494
3495 * symtab.c (symbol_demangled_name): New function.
3496 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3497 turning most of it into a function.
3498 (symbol_demangled_name): Export.
3499
19de93d0
MS
35002002-10-23 Michael Snyder <msnyder@redhat.com>
3501
3502 * valops.c (value_of_local): Restore quotes in error message.
3503
89aad1f9
EZ
35042002-10-23 Elena Zannoni <ezannoni@redhat.com>
3505
3506 * symtab.c (symbol_init_language_specific): New function.
3507 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3508 turning most of it into a function.
3509 (symbol_init_language_specific): Export.
3510
d9fa45fe
DC
35112002-10-23 David Carlton <carlton@math.stanford.edu>
3512
3513 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3514 (dwarf_attr_name): Ditto.
3515 (dwarf_type_encoding_name): Ditto.
3516 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3517 (process_die): Handle DW_TAG_namespace,
3518 DW_TAG_imported_declaration, DW_TAG_imported_module.
3519 (read_namespace): New function.
3520
1045b512
JB
35212002-10-22 Joel Brobecker <brobecker@gnat.com>
3522
3523 * configure.in: Define NEW_PROC_API on Interix too.
3524 * configure: Regenerate.
3525
35262002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
3527
3528 * configure: Regenerate using the proper version of autoconf.
3529
3987b9d4
EZ
35302002-10-21 Elena Zannoni <ezannoni@redhat.com>
3531
3532 * findvar.c (read_var_value): Temporarily disable TLS code, until
3533 complete TLS support is added.
3534
9d774e44
EZ
35352002-10-21 Jim Blandy <jimb@redhat.com>
3536 Elena Zannoni <ezannoni@redhat.com>
3537
3538 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3539 for thread local storage locations.
3540 (struct symbol): Add objfile field.
3541 (SYMBOL_OBJFILE): Define.
3542 * dwarf2read.c (is_thread_local): New static variable.
3543 (new_symbol): If variable is in thread local fill in address class
3544 and objfile appropriately.
3545 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3546 stack operation.
3547 * printcmd.c (address_info): Print the information for thread
3548 local storage variable.
3549 * findvar.c (read_var_value): In case of thread local variable,
3550 defer to the target vector code to compute address.
3551
bc4a16ae
EZ
35522002-10-21 Elena Zannoni <ezannoni@redhat.com>
3553
3554 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3555 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3556
407caf07
EZ
35572002-10-21 Elena Zannoni <ezannoni@redhat.com>
3558
3559 * symtab.h (address_class): Rename
3560 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3561 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3562 * printcmd.c (address_info): Ditto.
3563 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3564
005328e3
MK
35652002-10-20 Mark Kettenis <kettenis@gnu.org>
3566
afdb036a
MK
3567 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3568 DBREG_DRX macro to acces debug registers.
3569
ca02e098
MK
3570 * Makefile.in (i386obsd-tdep.o): New target.
3571
03cc47f7
MK
3572 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3573 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3574
005328e3
MK
3575 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3576 * config/i386/obsd.mt: New file.
3577 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3578 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3579 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3580 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3581 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3582 * i386obsd-tdep.c: New file.
3583
9c96f9f2
AF
35842002-10-19 Adam Fedor <fedor@gnu.org>
3585
3586 * objc-exp.y (name_not_typename): Fix invalid comment.
3587
ce1ed485
MK
35882002-10-20 Mark Kettenis <kettenis@gnu.org>
3589
3590 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3591 to allocate partial syms and macro byte caches.
3592
1efc7aaa
DC
35932002-10-18 David Carlton <carlton@math.stanford.edu>
3594
3595 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3596
7e1d63ec
AF
35972002-10-18 Adam Fedor <fedor@gnu.org>
3598
3599 * stabsread.c (find_name_end): New function.
3600 (define_symbol): Use it.
3601
6e8d29a9
DJ
36022002-10-18 Daniel Jacobowitz <drow@mvista.com>
3603
3604 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3605 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3606 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3607 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3608
1efc7aaa 36092002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
3610
3611 * symfile.h: Add opaque declaration for struct obstack.
3612 Declare obsavestring to take a const char *.
3613 * symfile.c (obsavestring): Make first argument a const char *.
3614
1aeae86e
AF
36152002-10-16 Adam Fedor <fedor@gnu.org>
3616
3617 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3618 names when matching breakpoints in current file.
3619
8b2dbe47
KB
36202002-10-16 Kevin Buettner <kevinb@redhat.com>
3621
3622 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3623 (read_tag_pointer_type): Add address class support.
3624 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3625 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3626 New methods.
3627 * gdbarch.h, gdbarch.c: Regenerate.
3628 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3629 (make_type_with_address_space, recursive_type_dump): Add address
3630 class support.
3631 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3632 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3633 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3634
74451869
KD
36352002-10-16 Klee Dienes <kdienes@apple.com>
3636
3637 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3638 to get the last character of a char[] buffer, not
3639 name[sizeof(vptr_name)-1].
3640
ff4cb3e8
AF
36412002-10-14 Adam Fedor <fedor@gnu.org>
3642
3643 * symtab.h: New objc_specific struct.
3644 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3645 (SYMBOL_DEMANGLED_NAME): Likewise.
3646
da2cf7e0
AF
36472002-10-14 Adam Fedor <fedor@gnu.org>
3648
3649 * symfile.c (init_filename_language_table): Add ObjC file extension.
3650
4a351cef
AF
36512002-10-14 Adam Fedor <fedor@gnu.org>
3652
3653 * utils.c (puts_filtered_tabular): New function.
3654 (fprintf_symbol_filtered): Get ObjC demangled name.
3655 * defs.h (puts_filtered_tabular): Declared.
3656
9750e763
KB
36572002-10-14 Kevin Buettner <kevinb@redhat.com>
3658
3659 * c-lang.h (c_type_print_varspec_prefix): Delete.
3660 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3661 ``need_post_space'' parameter. Adjust all callers.
3662
eee771c1
DJ
36632002-10-14 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3666 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3667 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3668 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3669
46c82446
AF
36702002-10-13 Adam Fedor <fedor@gnu.org>
3671
3672 * source.c (print_source_lines): Update comments.
3673
d069f99d
AF
36742002-10-13 Adam Fedor <fedor@gnu.org>
3675
3676 * valops.c (value_of_local): New function.
3677 (value_of_this): Use it.
3678 * value.h (value_of_local): Declared.
3679
53c551b7
AF
36802002-10-13 Adam Fedor <fedor@gnu.org>
3681
3682 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3683 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3684
eb392fbf
AF
36852002-10-12 Adam Fedor <fedor@gnu.org>
3686
3687 * language.c (binop_result_type): Add language_objc to case.
3688 (integral_type): Likewise.
3689 (character_type): Likewise.
3690 (string_type): Likewise.
3691 (boolean_type): Likewise.
3692 (structured_type): Likewise.
3693 (binop_type_check): Likewise.
3694
e2b23ee9
AF
36952002-10-11 Adam Fedor <fedor@gnu.org>
3696
3697 * printcmd.c (address_info): Print 'self' for ObjC.
3698
b01ab485
AF
36992002-10-11 Adam Fedor <fedor@gnu.org>
3700
3701 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3702 OP_SELF.
3703
806e6073
AF
37042002-10-11 Adam Fedor <fedor@gnu.org>
3705
3706 * language.h (CAST_IS_CONVERSION): Add language_objc.
3707
50f85cdf
AF
37082002-10-11 Adam Fedor <fedor@gnu.org>
3709
3710 * defs.h (enum language): Add language_objc.
3711
0d540cdf
KD
37122002-10-11 Klee Dienes <kdienes@apple.com>
3713
69266111 3714 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
3715 * gdbcore.h (read_memory_typed_address): Add prototype.
3716 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3717 to read a value destined for a CORE_ADDR, not read_memory_integer.
3718 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3719 (f77_get_dynamic_lowerbound): Ditto.
3720
d5dc7960
MH
37212002-10-11 Martin M. Hunt <hunt@redhat.com>
3722
3723 * utils.c (string_to_core_addr): After turning string into
3724 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3725 which will do necessary sign-extension, etc.
3726
8343f86c
DJ
37272002-10-11 Daniel Jacobowitz <drow@mvista.com>
3728
3729 * c-exp.y (THIS): Delete token and grammar rule.
3730 (yylex): Don't return THIS.
3731 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3732 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3733 * demangle.c (cplus_markers): Update comment. Put '$'
3734 first. Remove CPLUS_MARKER.
3735 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3736 * jv-exp.y (THIS): Delete token and grammar rule.
3737 (yylex): Don't return THIS.
3738 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3739 * objc-exp.y (THIS): Delete token and grammar rule.
3740 (yylex): Don't return THIS.
3741 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3742 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3743 (read_member_functions): Likewise for opname.
3744 (read_tilde_fields): Use is_cplus_marker.
3745
3746 * defs.h (CPLUS_MARKER): Don't define.
3747 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3748 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3749 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3750 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3751 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3752
3753 * config/i386/tm-i386v4.h: Delete file.
3754 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3755 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3756 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3757 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3758 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3759 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3760 * config/i386/i386v4.mt (TM_FILE): Likewise.
3761 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3762
967c0d83
MM
37632002-10-10 Marko Mlinar <markom@opencores.org>
3764
3765 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3766 accidentially not commited 2002-10-09
3767 * gdbarch.h, gdbarch.c: Re-generate.
3768
f74fa174
MM
37692002-10-09 Marko Mlinar <markom@opencores.org>
3770
3771 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3772 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3773 * gdbarch.h, gdbarch.c: Re-generate.
3774
57349743
JB
37752002-10-08 Petr Sorfa <petrs@caldera.com>
3776
3777 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3778
3779 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3780 so we can work on more than one compilation unit at a time. This
3781 helps prepare GDB to handle inter-CU die references.
3782 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3783 the code to be defined before struct comp_unit_head.
3784 (comp_unit_head): Added new members - offset, cu_head,
3785 begin_die, next and dwarf2_abbrevs.
3786 (dwarf2_abbrevs): Removed single static var; now member of
3787 struct comp_unit_head.
3788 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3789 members.
3790 (psymtab_to_symtab_1): Changed to work with the new
3791 struct comp_unit_head.
3792 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3793 constructs the dwarf2_abbrevs[] inside the cu_header.
3794 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3795 dwarf2_abbrev table to clean up.
3796 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3797 handling of dwarf2_abbrevs inside the cu_header.
3798 (read_partial_die): Now supports the call to the new
3799 dwarf2_lookup_abbrev.
3800 (read_full_die): Now supports the call to the new
3801 dwarf2_lookup_abbrev.
3802
4092aadb
CF
38032002-10-06 Christopher Faylor <cgf@redhat.com>
3804
3805 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3806 insure that shell variables, such as "transformed_name" are propagated
3807 to later shell statements in rule.
3808
af0b2512
MK
38092002-10-06 Mark Kettenis <kettenis@gnu.org>
3810
3811 * config/i386/nm-i386sco.h: Add protection against
3812 multiple-inclusion. Include "i386/nm-i386v.h".
3813 (REGISTER_U_ADDR): Remove define.
3814 (i386_register_u_addr): Remove prototype.
3815
d6020d45
MS
38162002-10-04 Michael Snyder <msnyder@redhat.com>
3817
3818 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3819 before treating it as a single-step event.
3820
7248f48e
AF
38212002-10-03 Adam Fedor <fedor@gnu.org>
3822
3823 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3824 (objc_demangle): Remove assignment in if statements, Replace
3825 free with xfree.
3826 (add_msglist): Likewise.
3827 (end_msglist): Likewise.
3828 (complare_selectors): Likewise.
3829 (selectors_info): Likewise.
3830 (compare_classes): Likewise.
3831 (classes_info): Likewise.
3832 (print_object_command): Likewise.
3833 (find_objc_msgcall_submethod): Replace PTR with void *.
3834 * objc-lang.h: Remove check for __STDC__.
3835
52c6a6ac
JJ
38362002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3837
3838 * ui-out.h (ui_out_field_fmt_int): New prototype.
3839 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3840 of field width and alignment.
3841 * stack.c (print_frame_info_base): When printing frame level, use
3842 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3843 PR gdb/192
3844
7e3cec17
JJ
38452002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3846
3847 * MAINTAINERS: Add self to Write After Approval list.
3848
a58dd373
EZ
38492002-10-02 Elena Zannoni <ezannoni@redhat.com>
3850
3851 * infcmd.c (interrupt_target_command_wrapper): Delete.
3852 (interrupt_target_command): Make non static.
3853 (nofp_registers_info): Make static.
3854 * stack.c (return_command_wrapper): Delete.
3855 (return_command): Make non static.
3856
cee6ddeb
EZ
38572002-10-02 Elena Zannoni <ezannoni@redhat.com>
3858
3859 * event-top.c (gdb_setup_readline): New function. Code moved from
3860 _initialize_event_loop().
3861 (_initialize_event_loop): Call gdb_setup_readline().
3862
c4ed33b9
AC
38632002-10-02 Andrew Cagney <ac131313@redhat.com>
3864
3865 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3866 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3867 * gdbarch.h, gdbarch.c: Re-generate.
3868
cef4f5dd
DJ
38692002-10-02 Daniel Jacobowitz <drow@mvista.com>
3870
3871 Fix PR gdb/778
3872 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3873 before recursing.
3874 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3875 of fill_in_vptr_fieldno.
3876
36dc181b 38772002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3878
36dc181b
EZ
3879 * inferior.h (registers_info, stepi_command, nexti_command,
3880 continue_command, interrupt_target_command): Export from infcmd.c.
3881 * frame.h (args_info, selected_frame_level_changed_hook,
3882 return_command): Export from stack.c.
3883 * v850ice.c (stepi_command, nexti_command, continue_command): use
3884 prototypes from inferior.h.
3885 * tracepoint.c (registers_info, args_info, locals_info): Use
3886 prototypes from frame.h and inferior.h.
3887 * Makefile.in (mi-main.o): Add dependency on frame.h.
3888
6f99cb26
AC
38892002-10-02 Andrew Cagney <ac131313@redhat.com>
3890
da3eff49
AC
3891 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3892 value in register 3 adjusted by ppc_gp0_regnum.
3893
6f99cb26
AC
3894 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3895
da615bee
MM
38962002-10-02 Marko Mlinar <markom@opencores.org>
3897
3898 * MAINTAINERS: Add myself to the Write After Approval list.
3899
d154bee2
AO
39002002-10-01 Alexandre Oliva <aoliva@redhat.com>
3901
62a49b2c
AO
3902 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3903 of the section for the N64 ABI, fixed.
3904
d154bee2
AO
3905 * config/mips/tm-irix6.h: Include solib.h.
3906
ed348acc
EZ
39072002-10-01 Elena Zannoni <ezannoni@redhat.com>
3908
3909 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3910 GNU operators.
3911
da0f9dcd
AC
39122002-10-01 Andrew Cagney <ac131313@redhat.com>
3913
3914 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3915 and that "mi0" syntax has been removed.
3916
bdf64bac
DC
39172002-09-30 David Carlton <carlton@math.stanford.edu>
3918
3919 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3920 * ppc-sysv-tdep.c: #include "gdb_string.h".
3921 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3922 pacify GCC.
3923
54c2a1e6
AC
39242002-10-01 Andrew Cagney <ac131313@redhat.com>
3925
3926 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3927 "vrsave"'s register number.
3928
cedea778
AC
39292002-09-30 Andrew Cagney <ac131313@redhat.com>
3930
3931 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3932 use frame_unwind_signed_register to obtain the PC.
3933 (mips_frame_chain): Handle a generic dummy frame.
3934 (mips_init_extra_frame_info): When a generic dummy frame, don't
3935 re-compute the frame base.
3936 (mips_pop_frame): Handle generic dummy frames.
3937 (mips_gdbarch_init): When generic dummy frames, set
3938 use_generic_dummy_frames, push_dummy_frame to
3939 generic_push_dummy_frame, pc_in_call_dummy to
3940 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3941 generic_save_dummy_frame_tos.
3942
68315eb8
AC
39432002-09-30 Andrew Cagney <ac131313@redhat.com>
3944
3945 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3946 against TOP when TOP was explictly set.
3947 (generic_push_dummy_frame): Set TOP to zero.
3948
3b8630c3
EZ
39492002-09-30 Elena Zannoni <ezannoni@redhat.com>
3950
3951 * event-loop.c (start_event_loop): Rename variable 'result' to
3952 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3953
28ee05e9
KS
39542002-09-30 Keith Seitz <keiths@redhat.com>
3955
3956 * gdb-events.sh (selected_thread_changed): New event.
3957 * gdb-events.c: Regenerated.
3958 * gdb-events.h: Regenerated.
3959
6eecb1c8
HPN
39602002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3961
3962 * MAINTAINERS: Add self to Write After Approval list.
3963
92df71f0
FN
39642002-09-30 Fernando Nasser <fnasser@redhat.com>
3965
3b8630c3
EZ
3966 * disasm.c: New file.
3967 * disasm.h: New file.
92df71f0
FN
3968 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3969 (compare_lines): Ditto.
3970 (dump_insns): Ditto.
3b8630c3
EZ
3971 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3972 argument.
92df71f0 3973 (do_assembly_only): Ditto.
3b8630c3
EZ
3974 (do_disassembly): Renamed to gdb_disassembly and moved to
3975 disasm.c. Sdded uiout argument.
3976 * Makefile.in: Add new files. Reorder SFILES list. Update
3977 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3978
0c22854d
AC
39792002-09-29 Andrew Cagney <ac131313@redhat.com>
3980
3981 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3982 bfd/elf64-alpha-fbsd.c.
3983
e67f2023
AC
39842002-09-29 Andrew Cagney <ac131313@redhat.com>
3985
3986 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3987 i386gnu-tdep.c.
3988
89396210
AC
39892002-09-29 Andrew Cagney <ac131313@redhat.com>
3990
3991 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3992 __FUNCTION__.
3993 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3994 function name.
3995 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3996 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3997 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3998 (S_msg_sig_post_reply): Ditto.
3999
7079c36c
CV
40002002-09-28 Corinna Vinschen <vinschen@redhat.com>
4001
89396210
AC
4002 * sh-tdep.c (sh_use_struct_convention): Use definition according
4003 to ABI.
7079c36c
CV
4004 (sh_push_arguments): Store in register with correct endianess.
4005 (sh_default_store_return_value): Ditto.
4006 (sh_gdbarch_init): Set sizeof long double to 8.
4007
975ac915
MK
40082002-09-27 Mark Kettenis <kettenis@gnu.org>
4009
4010 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4011 Fix some whitespace problems.
4012
9bbe19fb
DC
40132002-09-27 David Carlton <carlton@math.stanford.edu>
4014
4015 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4016 (mcore-tdep.o): Ditto.
4017 (ns32k-tdep.o): Ditto.
4018 (ns32knbsd-tdep.o): Ditto.
4019 (sh3-rom.o): Ditto.
4020 (vax-tdep.o): Ditto.
4021 * cris-tdep.c: #include "gdb_string.h"
4022 * mcore-tdep.c: Ditto.
4023 * ns32k-tdep.c: Ditto.
4024 * ns32knbsd-tdep.c: Ditto.
4025 * sh3-rom.c: Ditto.
4026 * vax-tdep.c: Ditto.
4027
43b2fdc7
DC
40282002-09-27 David Carlton <carlton@math.stanford.edu>
4029
4030 * config/djgpp/fnchange.lst: Add entries for
4031 gdb/testsuite/gdb.c++/m-static files.
4032
e8cfbbd9
JW
40332002-09-27 Jim Wilson <wilson@redhat.com>
4034
4035 * MAINTAINERS: Add myself to the Write After Approval list.
4036
43b2fdc7 40372002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
4038
4039 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4040
4041
9f3b7f07
AC
40422002-09-26 Andrew Cagney <ac131313@redhat.com>
4043
4044 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4045 frame.
4046
11269d7e
AC
40472002-09-26 Andrew Cagney <ac131313@redhat.com>
4048
4049 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4050 (rs6000_struct_return_address): Delete variable.
4051 (rs6000_store_struct_return): Update.
4052 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4053 deprecated_extract_struct_value_address.
4054 (rs6000_frame_align): New function.
4055 (rs6000_gdbarch_init): Set frame_align.
4056
f15ab4a7
AC
40572002-09-26 Andrew Cagney <ac131313@redhat.com>
4058
4059 From Grace Sainsbury <graces@redhat.com>:
4060 * Makefile.in (gdbtk-main.o): New target.
4061 (gdb.o): New target.
4062 (main_h): Define.
4063 (main.o): Update dependencies.
4064 (gdb$(EXEEXT)): Add gdb.o.
4065 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4066 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4067 (SUBDIR_GDBTK_CLEAN): Set.
4068 (install-gdbtk): Install the insight binary.
4069 (uninstall-gdbtk): New target.
4070 (all-gdbtk, clean-gdbtk): New rule.
4071 * top.c (use_windows): Default to zero.
4072 * main.c: Include "main.h".
4073 (main): Delete.
4074 (struct captured_main_args): Delete.
4075 (gdb_main): New function.
4076 * main.h: New file.
4077 * gdb.c: New File.
4078
e36180d7
AC
40792002-09-25 Andrew Cagney <cagney@redhat.com>
4080
4081 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4082 (frame_map_regnum_to_name): New function.
4083 (frame_map_name_to_regnum): New function.
4084 * frame.h (frame_map_name_to_regnum): Declare.
4085 (frame_map_regnum_to_name): Declare.
4086 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4087 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4088 * parse.c: Do not include "builtin-regs.h".
4089 (target_map_name_to_register): Delete function.
4090 (write_dollar_variable): Use frame_map_name_to_regnum.
4091 * parser-defs.h (target_map_name_to_register): Delete declaration.
4092 * expprint.c: Include "frame.h".
4093 (print_subexp): Use frame_map_regnum_to_name.
4094 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4095 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4096
8b69000d
AC
40972002-09-25 Andrew Cagney <ac131313@redhat.com>
4098
4099 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4100 wasn't saved, and the next innermost frame is a dummy, return the
4101 dummy frame's link register.
4102
046ca86a
JB
41032002-09-24 Jim Blandy <jimb@redhat.com>
4104
4105 Fix from Paul Breed:
4106 * main.c (captured_main): Add a `break' after the case for 'b'.
4107
94b66fa7
KS
41082002-09-24 Keith Seitz <keiths@redhat.com>
4109
4110 * varobj.c (c_type_of_child): Use get_target_type instead
4111 of TYPE_TARGET_TYPE.
4112
c214a6fd
FN
41132002-09-22 Fernando Nasser <fnasser@redhat.com>
4114
53cb0458
FN
4115 * source.c (get_current_or_default_source_symtab_and_line): Remove
4116 function.
4117 (set_default_source_symtab_and_line): New function. Attempts to
4118 determine a source file to list lines from if one is not currently
4119 defined.
4120 (get_current_source_symtab_and_line): Initialize sal.pc and
4121 sal.end fields.
4122 (set_current_source_symtab_and_line): Mark argument as const.
4123 * source.h: Update declarations and comments.
4124 * linespec.c (decode_line_1): Replace call to removed routine above.
4125 * stack.c (print_frame_info_base): Ditto.
4126 * cli/cli-cmds.c (edit_command): Ditto.
4127 (list_command): Ditto.
4128
41292002-09-22 Fernando Nasser <fnasser@redhat.com>
4130
d6020d45 4131 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 4132 sal.pc and sal.end fields.
c214a6fd
FN
4133 (get_current_or_default_source_symtab_and_line): Ditto.
4134 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4135 so we do not cause a new source symtab to be searched for (reverting an
4136 unintentional change from the 2002-09-20 patch).
4137 * scm-lang.c (scm_unpac): Ditto.
4138
cc3b68a5
AC
41392002-09-21 Andrew Cagney <cagney@redhat.com>
4140
4141 * complaints.c (symfile_explanations): Remove new-line from
4142 ``isolated_message''.
4143 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4144 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4145
5835abe7
NC
41462002-09-20 Nick Clifton <nickc@redhat.com>
4147
4148 * NEWS: Announce that V850EA ISA is no longer supported.
4149 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4150
a15ef5f5
DC
41512002-09-20 David Carlton <carlton@math.stanford.edu>
4152
06ba1b39
DC
4153 * Makefile.in (c-lang.o): Correct dependencies.
4154 (utils.o): Gather dependencies.
4155 (charset.o): Move.
a15ef5f5
DC
4156 * c-lang.c: #include "gdb_string.h"
4157
87885426
FN
41582002-09-20 Fernando Nasser <fnasser@redhat.com>
4159
4160 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4161 * cli/cli-cmds.c (list_command): New function. Implements the new
4162 cli edit command.
4163 (_init_cli_cmds): Add new command definition.
4164 * gdb.1: Document edit command.
4165 * doc/gdb.texinfo: Document edit command.
4166
41672002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
4168
4169 * source.c: Make global variables current_source_symtab and
4170 current_source_line static.
4171 (list_command): Moved to cli/cli-cmds.c.
4172 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4173 (get_first_line_listed): New accessor function.
4174 (get_lines_to_list): New accessor function.
4175 (get_current_source_symtab_and_line): New function. Retrieves the
4176 position in the source code that we consider current.
4177 (get_current_or_default_source_symtab_and_line): New function.
4178 Like the above but attempts to determine a default position if one
4179 is not currently defined.
4180 (set_current_source_symtab_and_line): New function. Sets the source
4181 code position considered current and returns the previously set one.
4182 (clear_current_source_symtab_and_line): Reset stored information about
4183 a current source line.
4184 (_initialize_source): Remove registration for the "list" command and
4185 its alias.
4186 * source.h: Add declarations for the new functions above.
4187 * symtab.h: Remove declarations for the global variables mentioned
4188 above.
4189 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4190 obtain current source line.
4191 * linespec.c (decode_line_1): Ditto.
4192 * macroscope.c (default_macro_scope): Ditto.
4193 * scm-lang.c (scm_unpac): Ditto.
4194 * stack.c (print_frame_info_base): Ditto.
4195 * symfile.c (clear_symtab_users): Ditto.
4196 * symtab.c (decode_line_spec): Ditto.
4197 * cli/cli-cmds.c (list_command): Moved here from source.c.
4198 (ambiguous_line_spec): Moved here from source.c.
4199 (_init_cli_cmds): Add definition for "list" and its alias.
4200 * Makefile.in: Update dependencies.
4201
ddd216ea
CV
42022002-09-20 Corinna Vinschen <vinschen@redhat.com>
4203
4204 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4205 with what gcc thinks is correct.
4206
6d305052
CV
42072002-09-20 Corinna Vinschen <vinschen@redhat.com>
4208
4209 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4210 multiple register push instruction.
4211
234b45d4
KB
42122002-09-19 Jim Blandy <jimb@redhat.com>
4213
4214 Add support for distinct host and target character sets.
4215 * charset.c, charset.h: New files.
4216 * c-exp.y: #include "charset.h".
4217 (yylex): Convert character and string literals to the target
4218 character set, before returning them as the semantic value of the
4219 token.
4220 * c-lang.c: #include "charset.h".
4221 (c_emit_char): Use charset-specific methods to recognize
4222 characters with backslash escape forms, to decide which characters
4223 to print literally and which to print using numeric escape
4224 sequences, and to convert target characters to host characters
4225 before printing.
4226 * utils.c: #include "charset.h".
4227 (no_control_char_error): New function.
4228 (parse_escape): Use charset-specific methods to recognize
4229 backslash escapes, parse `control character' notation, and convert
4230 characters from the host character set to the target character set.
4231 * configure.in: Set the default host character set.
4232 Check where to find iconv, and what its argument types might be.
4233 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4234 * Makefile.in (SFILES): List charset.c.
4235 (COMMON_OBS): List charset.o.
4236 (charset.o): New rule.
4237 (charset_h): New header dependency variable.
4238 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4239 (LIBICONV): New variable, set by configure.
4240 (CLIBS): Include $(LIBICONV) here.
4241 * aclocal.m4, config.in, configure: Regenerated.
4242
525d6a61
JB
42432002-09-19 Joel Brobecker <brobecker@gnat.com>
4244
4245 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4246 bison 1.35 warning.
4247
3ed93867
RE
42482002-09-19 Richard Earnshaw <rearnsha@arm.com>
4249
4250 * gdb_mbuild.sh: New file.
4251
437666f8
AC
42522002-09-19 Andrew Cagney <ac131313@redhat.com>
4253
4254 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4255
389e51db
AC
42562002-09-18 Andrew Cagney <ac131313@redhat.com>
4257
4258 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4259 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4260 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4261 valops.c, value.h: Revert previous change.
4262
3b4efeaa
MS
42632002-09-18 Michael Snyder <msnyder@redhat.com>
4264
4265 Preliminary support for Objective-C:
4266 * defs.h (language_objc): New enum value.
4267 (puts_filtered_tabular): Declaration only, exported from utils.c.
4268 (skip_quoted): Delete, declared in completer.h.
4269 * c-exp.y: Include completer.h.
4270 * p-exp.y: Ditto.
4271 * jv-exp.y: Ditto.
4272 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4273 New operator enum values.
4274 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4275 * language.c (binop_result_type): Handle language_objc case.
4276 (integral_type, character_type, string_type, boolean_type,
4277 structured_type, binop_type_check): Ditto.
4278 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4279 (struct objc_specific): Add to general_symbol_info.
4280 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4281 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4282 * parser-defs.h (struct objc_class_str): New struct type.
4283 (start_msglist, end_msglist, add_msglist): Declaration only,
4284 exported from objc-lang.c.
4285 * value.h (value_of_local, value_nsstring,
4286 call_function_by_hand_expecting_type): Exported from valops.c.
4287 * valops.c (find_function_addr): Export.
4288 (call_function_by_hand_expecting_type): New function.
4289 (value_of_local): New function.
4290 * symfile.c (init_filename_language_table): Add ".m" extension
4291 for Objective-C.
4292 * utils.c (puts_filtered_tabular): New function.
4293 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4294 (set/show demangle): Extend help-string to refer to ObjC.
4295 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4296 * stabsread.c (symbol_reference_defined): Objective-C symbols
4297 may contain colons: make allowances when scanning stabs strings
4298 for colons.
4299 (objc_find_colon): New function.
4300 * printcmd.c (address_info): If language == objc then print
4301 "self" instead of "this".
4302 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4303 OP_NSSTRING, and OP_SELF.
4304 (prefixify_subexp): Ditto.
4305 * source.c (print_source_lines): Mention objc in comment.
4306 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4307 method names.
4308
b9caf505
AC
43092002-09-18 Andrew Cagney <ac131313@redhat.com>
4310
4311 * complaints.h: Update copyright.
4312 (struct complaints): Declare.
4313 (struct complaint): Make `message' constant.
4314 (internal_complaint): Declare.
4315 (complaint): Declare.
4316 (complaint_root): Delete declaration.
4317 (symfile_complaints): Delete declaration.
4318 (struct complaints): Add opaque declaration.
4319 (clear_complaints): Add a complaints parameter.
4320 * complaints.c: Update copyright.
4321 (enum complaint_series): Define.
4322 (complaint_root): Delete.
4323 (struct complaints): Define.
4324 (complaint_sentinel, symfile_complaint_book): New variables.
4325 (symfile_explanations, symfile_complaints): New variables.
4326 New variables.
4327 (get_complaints): New function.
4328 (vcomplaint): New function.
4329 (complaint): New function.
4330 (internal_complaint): New function.
4331 (complain): Call vcomplain with symfile_complaint.
4332 (clear_complaints): Rewrite.
4333 (_initialize_complaints): Use add_setshow_command.
4334 * Makefile.in (complaints.o): Update dependencies.
4335 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4336 to call to clear_complaints.
4337 (new_symfile_objfile, reread_symbols): Ditto.
4338 (oldsyms_complaint): Delete.
4339 (empty_symtab_complaint, unknown_option_complaint): Delete.
4340 (free_named_symtabs): Use complaint instead of complain.
4341
d2e6263c
MS
43422002-09-18 Michael Snyder <msnyder@redhat.com>
4343
5fb2031a
AC
4344 Contributed by Apple Computer, Inc. Merged with current sources
4345 by Adam Fedor <fedor@doc.com> [cagney].
4346
d2e6263c
MS
4347 * objc-lang.c: First clean-up round: comments, indentation.
4348 * objc-lang.h: Ditto.
4349 * objc-lang.y: Ditto.
4350
dec43320
AC
43512002-09-18 Andrew Cagney <ac131313@redhat.com>
4352
4353 * maint.c (maintenance_internal_error): Print the parameter as the
4354 error message.
4355 (maintenance_internal_warning): New function.
4356 (_initialize_maint_cmds): Add command `maint internal-warning'.
4357
4358 * defs.h (internal_warning, internal_vwarning): Declare.
4359 * utils.c (struct internal_problem): Define.
4360 (internal_vproblem): New function.
4361 (internal_warning): New function.
4362 (internal_vwarning): New function.
4363 (internal_warning_problem, internal_error_problem): New variables.
4364 (internal_verror): Just call internal_vproblem.
4365
b81654f1
MS
43662002-09-18 Michael Snyder <msnyder@redhat.com>
4367
4368 * objc-lang.c: New file, support for Objective-C.
4369 Preliminary check-in, not yet integrated into gdb.
4370 * objc-lang.h: New file.
4371 * objc-exp.y: New file.
4372
0542c381
AC
43732002-09-18 Andrew Cagney <ac131313@redhat.com>
4374
7bda5e4a
AC
4375 * infrun.c (signal_stop_update): Convert definition to ISO C.
4376 (signal_print_update): Ditto.
4377 (signal_pass_update): Ditto.
4378 * inflow.c (terminal_save_ours): Ditto.
4379
5247b418
AC
4380 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4381 comments.
4382
fc60962c
AC
4383 * config/djgpp/fnchange.lst: Handle name clashes between
4384 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4385 bfd/coff-tic80.c.
4386
0542c381
AC
4387 * i386-linux-tdep.h: Fix tipo.
4388
5b924b9b
AF
43892002-09-18 Adam Fedor <fedor@gnu.org>
4390
4391 * MAINTAINERS: Add myself to the Write After Approval list.
4392
5afc051b
JB
43932002-09-18 Jim Blandy <jimb@redhat.com>
4394
4395 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4396 texthigh and textlow to reader-specific structs caused
4397 objfile_relocate to miss them. This is fixable, but the work that
4398 the change was supposed to prepare GDB for never got done anyway.
4399
eb944380
DC
44002002-09-18 David Carlton <carlton@math.stanford.edu>
4401
4402 * MAINTAINERS: Alphabetize Write After Approval list.
4403
948e66d9
DJ
44042002-09-18 Daniel Jacobowitz <drow@mvista.com>
4405
4406 Fix PR gdb/709
4407 * values.c (value_static_field): Call read_var_value.
4408
dc604539
AC
44092002-09-18 Andrew Cagney <ac131313@redhat.com>
4410
4411 * valops.c (hand_function_call): Align the initial stack pointer
4412 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4413 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4414 return value.
4415 * mips-tdep.c (mips_frame_align): New function.
4416 (mips_gdbarch_init): Set frame_align.
4417 * gdbarch.sh (FRAME_ALIGN): New method.
4418 * gdbarch.h, gdbarch.c: Re-generate.
4419
cb7e422f
ML
44202002-09-18 Michal Ludvig <mludvig@suse.cz>
4421
4422 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4423 registers.
4424
a094c6fb
AC
44252002-09-17 Andrew Cagney <ac131313@redhat.com>
4426
4427 * NEWS: Mention that MIPS $fp behavior changed.
4428 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4429 reference to FP_REGNUM.
4430 (mipsnbsd_cannot_store_register): Ditto.
4431 * mips-linux-nat.c: Update copyright.
4432 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4433 (mips_linux_cannot_store_register): Ditto.
4434 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4435 * config/mips/tm-mips.h: Update copyright.
4436 (FP_REGNUM): Delete macro.
4437 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4438 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4439 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4440 (mips_r3041_reg_names, mips_r3051_reg_names)
4441 (mips_r3081_reg_names): Replace "fp" with "".
4442 Fix PR gdb/480.
4443
45cf40d1
TR
44442002-09-17 Theodore A. Roth <troth@verinet.com>
4445
4446 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4447 generic_read_register_dummy() (PR gdb/703).
4448 (avr_push_return_address): #if 0 out unused vars.
4449 (avr_gdbarch_init): Enable use of avr_push_return_address().
4450
c7e701b5
MS
44512002-09-17 Michael Snyder <msnyder@redhat.com>
4452
d76ba2a5 4453 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
4454 RTE will take care of it.
4455
20bcf01c
AC
44562002-09-17 Andrew Cagney <ac131313@redhat.com>
4457
4458 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4459 invalid, return SP_REGNUM.
4460
009a9971 44612002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
4462
4463 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4464 point registers without sign extension.
4465
135c175f
AC
44662002-09-17 Andrew Cagney <cagney@redhat.com>
4467
4468 * blockframe.c (deprecated_read_register_dummy): Rename
4469 generic_read_register_dummy.
4470 * frame.c (frame_unwind_signed_register): New function.
4471 (frame_unwind_unsigned_register): New function.
4472 * frame.h (frame_unwind_signed_register): Declare.
4473 (frame_unwind_unsigned_register): Declare.
4474 (deprecated_read_register_dummy): Rename
4475 generic_read_register_dummy.
4476
4477 * h8300-tdep.c (h8300_frame_chain): Update.
4478 (h8300_frame_saved_pc): Update.
4479 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4480 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4481 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4482 (s390_frame_chain): Update.
4483 * v850-tdep.c (v850_find_callers_reg): Update.
4484 (v850_frame_saved_pc): Update.
4485 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4486 (m32r_find_callers_reg): Update.
4487 (m32r_frame_saved_pc): Update.
4488 * sh-tdep.c (sh_find_callers_reg): Update.
4489 (sh64_get_saved_pr): Update.
4490 (sh_init_extra_frame_info): Update.
4491 (sh_init_extra_frame_info): Update.
4492 (sh64_init_extra_frame_info): Update.
4493 (sh64_init_extra_frame_info): Update.
4494 * mcore-tdep.c (mcore_find_callers_reg): Update.
4495 (mcore_frame_saved_pc): Update.
4496 (mcore_init_extra_frame_info): Update.
4497 * i386-tdep.c (i386_frame_saved_pc): Update.
4498 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4499 (ia64_init_extra_frame_info): Update.
4500 (ia64_init_extra_frame_info): Update.
4501 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4502 * cris-tdep.c (cris_init_extra_frame_info): Update.
4503 * avr-tdep.c (avr_frame_chain): Update.
4504 (avr_init_extra_frame_info): Update.
4505 (avr_frame_saved_pc): Update.
4506 * arm-tdep.c (arm_find_callers_reg): Update.
4507 (arm_init_extra_frame_info): Update.
4508 (arm_frame_saved_pc): Update.
4509
a741e514
TT
45102002-09-17 Tom Tromey <tromey@redhat.com>
4511
4512 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4513 is "'".
4514
d1a8e808
CV
45152002-09-17 Corinna Vinschen <vinschen@redhat.com>
4516
4517 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4518 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4519 NEXT_PROLOGUE_INSN.
4520 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4521 NEXT_PROLOGUE_INSN.
4522
d9025a18
JB
45232002-09-16 Joel Brobecker <brobecker@gnat.com>
4524
4525 * osfsolib.c: Remove file, replaced by solib-osf.c.
4526 * Makefile.in: Remove compilation rules for osfsolib.c.
4527
1b2ef1b6
DC
45282002-09-16 David Carlton <carlton@math.stanford.edu>
4529
4530 * cp-valprint.c (cp_print_class_method): Correct args to
4531 check_stub_method_group.
4532
928e48af
CV
45332002-09-16 Corinna Vinschen <vinschen@redhat.com>
4534
4535 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4536 `set architecture'. Unify naming convention of functions.
4537 (h8300_skip_prologue): Improve prologue analysis.
4538 (h8300_push_arguments): Rewritten to more closely match GCC's
4539 bizarre argument-passing behavior, along with the comment describing
4540 said behavior.
4541 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4542 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4543 sim, remote-e7000.c, remote-hms.c and remote.c
4544
5e3397bb
MK
45452002-09-15 Mark Kettenis <kettenis@gnu.org>
4546
4547 * i386-tdep.c (gdb_print_insn_i386): Removed.
4548 (i386_print_insn): New function.
4549 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4550 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4551 tm_print_insn_info.
4552
f710f4fc
MK
45532002-09-14 Mark Kettenis <kettenis@gnu.org>
4554
4555 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4556 zero.
4557
db54fef4
CV
45582002-09-14 Corinna Vinschen <vinschen@redhat.com>
4559
4560 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4561 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4562 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4563
2becadee
CF
45642002-09-13 Christopher Faylor <cgf@redhat.com>
4565
4566 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4567
de17c821
DJ
45682002-09-13 Daniel Jacobowitz <drow@mvista.com>
4569
4570 * gdbtypes.c (check_stub_method): Make static.
4571 (check_stub_method_group): New function.
4572 * gdbtypes.h: Update prototypes.
4573 * cp-support.c: New file.
4574 * cp-support.h: New file.
4575
4576 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4577 (update_method_name_from_physname): New function.
4578 (read_member_functions): Correct method names for operators
4579 and v3 constructors/destructors. Separate v2 constructors and
4580 destructors.
4581 * Makefile.in (stabsread.o): Update dependencies.
4582 (SFILES): Add cp-support.c.
4583 (COMMON_OBS): Add cp-support.o.
4584 (cp_support_h, cp-support.o): Add.
4585
4586 * cp-valprint.c (cp_print_class_method): Call
4587 check_stub_method_group instead of check_stub_method. Remove
4588 extraneous QUITs.
4589 * p-valprint.c (pascal_object_print_class_method): Likewise.
4590 * valops.c (search_struct_method): Likewise.
4591 (find_method_list, value_struct_elt_for_reference): Likewise.
4592
e76cff22
AC
45932002-09-13 Andrew Cagney <cagney@redhat.com>
4594
4595 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4596 * gdbarch.h, gdbarch.c: Regenerate.
4597
905abb3f
AC
45982002-09-13 Andrew Cagney <ac131313@redhat.com>
4599
4600 * frame.c (find_saved_register): Delete function.
4601 * frame.h (find_saved_register): Delete declaration.
4602 Fix PR gdb/631.
4603
64159455
AC
4604Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4605
4606 * mips-tdep.c (read_next_frame_reg): Re-hack using
4607 frame_register_unwind.
4608
795e1e11
AC
4609Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4610
4611 * mips-tdep.c (mips_get_saved_register): Re-hack using
4612 frame_register_unwind.
4613
5720643c
JB
46142002-09-12 Joel Brobecker <brobecker@gnat.com>
4615
4616 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4617 vector. Will be useful for Interix.
4618 * gdbarch.h, gdbarch.c: Regenerate.
4619
4620 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4621 name of the malloc function by NAME_OF_MALLOC.
4622
3bada2a2
JB
46232002-09-12 Joel Brobecker <brobecker@gnat.com>
4624
4625 * value.h (find_function_in_inferior): Add const keyword to
4626 one of the parameters. Allows us to invoke this function with
4627 a const char *.
4628 * valops.c (find_function_in_inferior): Likewise.
4629
3db26b01
JB
46302002-09-12 Joel Brobecker <brobecker@gnat.com>
4631
4632 * exec.c (xfer_memory): Fix compilation warning with old versions
4633 of GCC.
4634 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4635
17c5ed2c
DC
46362002-09-12 David Carlton <carlton@math.stanford.edu>
4637
4638 * symtab.h: Run through gdb_indent.h.
4639 Add 2002 to Copyright year list.
4640
ecd1107e
AM
46412002-09-12 Alan Modra <amodra@bigpond.net.au>
4642
4643 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4644 mach constants.
4645 * MAINTAINERS: Add myself to write after approval list.
4646
e64f66d1
JB
46472002-09-11 J. Brobecker <brobecker@gnat.com>
4648
4649 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4650
f9395794
JB
46512002-09-11 J. Brobecker <brobecker@gnat.com>
4652
4653 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4654 Interix.
4655
1a303dec
MS
46562002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4657
4658 * procfs.c (do_detach): Clear current signal, not just fault.
4659 Corrects problem with breakpoint trap signal leaking to detached
4660 process on Tru64.
4661
c0219d42
MS
46622002-09-10 Michael Snyder <msnyder@redhat.com>
4663
4664 * buildsym.c (finish_block): Protect against null pointer.
4665
9d84ac84
AC
46662002-09-10 Andrew Cagney <cagney@redhat.com>
4667
4668 * infcmd.c (default_print_registers_info): Send all output to
4669 ``file'' instead of ``gdb_stdout''.
4670
77d8f2b4
MS
46712002-09-10 Michael Snyder <msnyder@redhat.com>
4672
4673 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4674 LONGEST, and use signed register read (addresses are sign-
4675 extended for mips).
4676
99656a61
SC
46772002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4678
4679 * event-loop.c (gdb_do_one_event): Make public.
4680 * event-loop.h (gdb_do_one_event): Declare.
4681
da12f4d8
JL
46822002-09-10 Jeff Law <law@redhat.com>
4683
4684 * infttrace.c (child_resume): Simplify and rework to avoid
4685 TT_PROC_CONTINUE.
4686
d0aee0c4
FF
46872002-09-09 Fred Fish <fnf@intrinsity.com>
4688
4689 * printcmd.c (print_scalar_formatted): "len" is the number of
4690 target bytes, NOT the number of target bits.
4691
7cb3ec5e
EZ
46922002-09-09 Elena Zannoni <ezannoni@redhat.com>
4693
4694 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4695 * top.c (init_main): Set rl_terminal_name.
4696
4dc81987
AS
46972002-09-08 Aidan Skinner <aidan@velvet.net>
4698
4699 * ada-lang.c (ada_array_bound, ada_type_match,
4700 _initialize_ada_language): Fix K&R definitions.
4701 * ada-tasks.c (get_current_task): Fix K&R definitions.
4702 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4703
842330b4
CF
47042002-09-07 Christopher Faylor <cgf@redhat.com>
4705
4706 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4707 Add XP.
4708
43156d82
MK
47092002-09-06 Mark Kettenis <kettenis@gnu.org>
4710
66da5fd8
MK
4711 * i386-tdep.c (i386_register_virtual_type,
4712 i386_register_convertible, i386_register_convert_to_virtual,
4713 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4714 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4715 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4716 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4717 Don't set push_arguments twice.
4718
4b218c18
MK
4719 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4720 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4721 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4722 sigtramp_end to NULL.
4723 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4724 defines.
4725 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4726
4cc314d5
MK
4727 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4728 whitespace.
4729
43156d82
MK
4730 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4731 * gdbarch.h, gdbarch.c: Re-generate.
4732 * blockframe.c (find_pc_sect_partial_function): Convert to use
4733 SIGTRAMP_START_P predicate.
4734
6672060b
MS
47352002-09-05 Michael Snyder <msnyder@redhat.com>
4736
a90c3637
MS
4737 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4738 generic_dummy_frame method and old method. Also distinguish
4739 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 4740 (arm_extract_return_value): Use new regcache method.
a90c3637 4741
6672060b
MS
4742 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4743 adjustment that doesn't conform to the ABI.
4744 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4745 saved regcache, not from current regcache.
4746
299ffc64
AC
47472002-09-05 Andrew Cagney <ac131313@redhat.com>
4748
4749 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4750 * README: Update.
4751
a3a2ee65
JT
47522002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4753
4754 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4755 if arm_apcs_32 is false.
4756
2bc7eea9
AC
47572002-09-04 Andrew Cagney <ac131313@redhat.com>
4758
4759 GDB 5.3 branch created.
4760
8a55a7c5
TR
47612002-09-03 Theodore A. Roth <troth@verinet.com>
4762
4763 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4764 generic_unwind_get_saved_register.
4765
e26fb1d7
DC
47662002-09-03 David Carlton <carlton@math.stanford.edu>
4767
4768 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4769 argument (PR gdb/653). Update call to smash_to_method_type.
4770 (read_structure_scope): Update call to dwarf2_add_member_fn.
4771
30d52491
ML
47722002-09-03 Michal Ludvig <mludvig@suse.cz>
4773
4774 * x86-64-linux-tdep.c: Include gdb_string.h
4775 * x86-64-linux-nat.c: Ditto.
4776
06891d83
JT
47772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4778
4779 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4780 when YYDEBUG is set to 1.
4781 * c-exp.y: Likewise.
4782 * f-exp.y: Likewise.
4783 * jv-exp.y: Likewise.
4784 * m2-exp.y: Likewise.
4785 * p-exp.y: Likewise.
4786
7d400e77
JT
47872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4788
4789 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4790 dependency list.
4791 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4792 solib_svr4_fetch_link_map_offsets to
4793 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4794 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4795 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4796 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4797 solib-svr4.o, and solib-legacy.o.
4798 * config/i386/tm-nbsd.h: Include solib.h.
4799
704a27c4
JT
48002002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4801
4802 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4803 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4804 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4805 comment noting that this needs its own target configuration.
4806 * config/i386/nbsd.mt: New file.
4807 * config/i386/nbsdaout.mt: Remove.
4808 * config/i386/nbsdelf.mt: Ditto.
4809 * config/i386/tm-nbsdaout.h: Ditto.
4810
d66198e1
JT
48112002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4812
4813 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4814 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4815 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4816 tdep->sigtramp_end.
4817 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4818 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4819 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4820
3cac699e
JT
48212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4822
4823 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4824 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4825 * i386-tdep.h (i386bsd_init_abi): New prototype.
4826 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4827 function declaration.
4828 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4829 for NetBSD-a.out or NetBSD-ELF.
4830 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4831 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4832 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4833 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4834 and nbsd-tdep.h.
4835 (i386nbsd_pc_in_sigtramp): New function.
4836 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4837 i386nbsd_pc_in_sigtramp.
4838 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4839 and i386nbsdelf_init_abi OS ABI handlers.
4840 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4841 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4842
7010ca0a
MK
48432002-09-02 Mark Kettenis <kettenis@gnu.org>
4844
4845 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4846 registers if the target really has them.
4847
6dd93b72
JT
48482002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4849
4850 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4851 than nbsd-tdep.h.
4852
2ca8ae21
JT
48532002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4854
4855 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4856 list.
4857 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4858 (alphanbsd_skip_sigtramp_frame): New functions.
4859 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4860 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4861 to alphanbsd_sigcontext_addr.
4862
3d9b49b0
JT
48632002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4864
4865 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4866 list.
4867 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4868 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4869 nbsd_pc_in_sigtramp.
4870 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4871 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4872 * nbsd-tdep.c: Include gdb_string.h.
4873 (nbsd_pc_in_sigtramp): New function.
4874 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4875 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4876 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4877 ppcnbsd_pc_in_sigtramp.
4878 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4879 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4880 shnbsd_pc_in_sigtramp.
4881 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4882 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4883 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4884
c860120c
PM
48852002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4886
4887 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4888 watchpoints to NULL.
4889 (insert_breakpoints): set val field of watchpoints if NULL.
4890
4891
c7612d53
JB
48922002-08-29 Jim Blandy <jimb@redhat.com>
4893
4894 * symtab.c (lookup_symbol_aux): In the cases where we find a
4895 minimal symbol of an appropriate name and use its address to
4896 select a symtab to read and search, use `name' (as passed to us)
4897 as the demangled name when searching the symtab's global and
4898 static blocks, not the minsym's name.
4899
66609862
KS
49002002-08-29 Keith Seitz <keiths@redhat.com>
4901
4902 * stack.c (print_frame_info_base): Always set current_source_symtab
4903 and current_source_line.
4904
151fefe2
JB
49052002-08-29 Donn Terry <donnte@microsoft.com>
4906
4907 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4908
bfb3754e
KS
49092002-08-28 Keith Seitz <keiths@redhat.com>
4910
4911 * stack.c (select_frame): Add FIXME concerning selected-frame
4912 events.
4913 (select_frame_command): Send selected-frame-level-changed
4914 event notification, but only if the level actually changed.
4915 (up_silently_base): Add selected-frame-level-changed event
4916 notification.
4917 (down_silently_base): Likewise.
4918
e822a2a0
AC
49192002-08-28 Andrew Cagney <ac131313@redhat.com>
4920
4921 * Makefile.in: Update dependencies for all gdb/*.c files.
4922
309367d4
TT
49232002-08-27 Tom Tromey <tromey@redhat.com>
4924
4925 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4926 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4927 Update dependencies.
4928 * i387-tdep.c: Include gdb_string.h.
4929 * osabi.c: Likewise.
4930 * i386-linux-nat.c: Likewise.
4931 * lin-lwp.c: Likewise.
4932 * ax-gdb.c: Likewise.
4933 * signals/signals.c: Likewise.
4934 * jv-valprint.c: Likewise.
4935 * p-lang.c: Likewise.
4936 * c-valprint.c: Likewise.
4937 * cp-abi.c: Likewise.
4938
e1507482
EZ
49392002-08-27 Elena Zannoni <ezannoni@redhat.com>
4940
4941 * cli/cli-script.h (copy_command_lines): Export.
4942 * breakpoint.c: Include cli/cli-script.h.
4943 * Makefile.in (breakpoint.o): Update dependencies.
4944
c6510018
MS
49452002-08-26 Michael Snyder <msnyder@redhat.com>
4946
4947 * breakpoint.c (insert_breakpoints): Protect all references
4948 to 'process_warning'. Shorten long lines.
4949
c2b8ed2c
MS
49502002-08-26 Joel Brobecker <brobecker@gnat.com>
4951
4952 * cli/cli-script.c (copy_command_lines): New function.
4953 * defs.h (copy_command_lines): Export.
4954 * testsuite/gdb.base/commands.exp: New tests for commands
4955 attached to a temporary breakpoint, and for commands that
4956 delete the breakpoint they are attached to.
4957
49582002-08-26 Michael Snyder <msnyder@redhat.com>
4959
4960 * breakpoint.c (bpstat_stop_status): Instead of copying the
4961 pointer to the breakpoint commands struct, make a new copy
4962 of the struct and point to that.
4963 (bpstat_clear): Free the commands struct.
4964 (bpstat_clear_actions): Free the commands struct.
4965 (bpstat_do_actions): Free the command actions. Also execute
4966 the local cleanups, instead of deleting them.
4967 (delete_breakpoint): Leave the commands field of the bpstat
4968 chain alone -- it will be freed later.
4969
64b84175
KB
49702002-08-26 Kevin Buettner <kevinb@redhat.com>
4971
4972 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4973 deleted in 2002-08-20 commit. This function is still used by
4974 ppc-linux-nat.c.
4975
55970da6
KS
49762002-08-26 Keith Seitz <keiths@redhat.com>
4977
4978 * gdb-events.sh: Add selected-frame-level-changed event.
4979 * gdb-events.c: Regenerated.
4980 * gdb-events.h: Regenerated.
4981
a790ad35
SC
49822002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4983
4984 Fix PR gdb/393:
4985 * inflow.c (terminal_save_ours): New function to save terminal
4986 settings.
4987 * inferior.h (terminal_save_ours): Declare.
4988 * target.c (debug_to_terminal_save_ours): New function.
4989 (cleanup_target): Defaults to_terminal_save_ours.
4990 (update_current_target): Inherit to_terminal_save_ours.
4991 (setup_target_debug): Set to_terminal_save_ours.
4992 * target.h (target_terminal_save_ours): New to save terminal settings.
4993 (target_ops): New member to_terminal_save_ours.
4994 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4995 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4996 * inftarg.c (init_child_ops): Likewise.
4997 * m3-nat.c (init_m3_ops): Likewise.
4998 * procfs.c (init_procfs_ops): Likewise.
4999 * wince.c (init_child_ops): Likewise.
5000 * win32-nat.c (init_child_ops): Likewise.
5001 * sol-thread.c (init_sol_thread_ops): Likewise.
5002
c00dcbe9
MK
50032002-08-26 Mark Kettenis <kettenis@gnu.org>
5004
3d7f4f49
MK
5005 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5006 use regcache_* functions.
5007 (i386_gdbarch_init): Set store_return_value instead of
5008 deprecated_store_return_value.
5009
c00dcbe9
MK
5010 * regcache.c (regcache_raw_write_signed,
5011 regcache_raw_write_unsigned): New functions.
5012 * regcache.h (regcache_raw_write_signed,
5013 regcache_raw_write_unsigned): New prototypes.
5014
0e0d15ca
AC
50152002-08-25 Andrew Cagney <ac131313@redhat.com>
5016
5017 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5018 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5019 source file dependencies. Cleanup corresponding generator rules.
5020
d3b22ed5
AC
50212002-08-25 Andrew Cagney <ac131313@redhat.com>
5022
5023 * regcache.h (register_offset_hack): Declare.
5024 (regcache_cooked_read_using_offset_hack): Declare.
5025 (regcache_cooked_write_using_offset_hack): Declare.
5026
5027 * regcache.c (register_offset_hack): New function.
5028 (regcache_cooked_read_using_offset_hack): New function.
5029 (regcache_cooked_write_using_offset_hack): New function.
5030 (regcache_dump): Check that the registers, according to their
5031 offset, are packed hard against each other.
5032 (cooked_xfer_using_offset_hack): New function.
5033
bb425013
AC
50342002-08-25 Andrew Cagney <ac131313@redhat.com>
5035
5036 * regcache.c (struct regcache_descr): Add field register_type.
5037 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5038 in as a parameter
5039 (init_regcache_descr): Initialize register_type. Pass the descr
5040 to init_legacy_regcache_descr. Use register_type instead of
5041 REGISTER_VIRTUAL_TYPE.
5042 (register_type): New function.
5043 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5044 * regcache.h (register_type): Declare.
5045
d0403e00
AC
50462002-08-25 Andrew Cagney <ac131313@redhat.com>
5047
5048 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5049 instead of deprecated_store_return_value. Fix fallout from
5050 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5051
0ed04cce
AC
50522002-08-25 Andrew Cagney <ac131313@redhat.com>
5053
5054 * regcache.c (max_register_size): New function.
5055 (init_legacy_regcache_descr): Ensure that max_register_size is
5056 large enough for REGISTER_VIRTUAL_SIZE.
5057 * regcache.h (max_register_size): Declare.
5058
46d79c04
AC
50592002-08-24 Andrew Cagney <ac131313@redhat.com>
5060
5061 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5062 store_return_value.
5063 (e500_extract_return_value): Change type of valbuf pointer to
5064 void.
5065
853c7bd0
MK
50662002-08-24 Mark Kettenis <kettenis@gnu.org>
5067
cd87e769
MK
5068 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5069 workaround.
5070
853c7bd0
MK
5071 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5072 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5073 long long) to prevent compiler warning on 64-bit systems.
5074
ebba8386
AC
50752002-08-23 Andrew Cagney <cagney@redhat.com>
5076
5077 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5078 (DEPRECATED_STORE_RETURN_VALUE): New method.
5079 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5080 * gdbarch.h, gdbarch.c: Re-generate.
5081
5082 * values.c (set_return_value): Pass current_regcache to
5083 STORE_RETURN_VALUE.
5084 * arch-utils.h (legacy_store_return_value): Declare.
5085 * arch-utils.c (legacy_store_return_value): New function.
5086 (legacy_extract_return_value): Update parameters.
5087
5088 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5089 STORE_RETURN_VALUE.
5090 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5091 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5092 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5093 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5094 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5095 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5096 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5097 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5098 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5099 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5100
5101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5102 * i386-tdep.c (i386_extract_return_value): Update.
5103 * arch-utils.c (legacy_extract_return_value): Update.
5104 * frv-tdep.c (frv_gdbarch_init): Update.
5105 * cris-tdep.c (cris_gdbarch_init): Update.
5106 * d10v-tdep.c (d10v_gdbarch_init): Update.
5107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5108 * m68k-tdep.c (m68k_gdbarch_init): Update.
5109 * mcore-tdep.c (mcore_gdbarch_init): Update.
5110 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5111 * s390-tdep.c (s390_gdbarch_init): Update.
5112 * sparc-tdep.c (sparc_gdbarch_init): Update.
5113 * sh-tdep.c (sh_gdbarch_init): Update.
5114 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5115 * v850-tdep.c (v850_gdbarch_init): Update.
5116 * avr-tdep.c (avr_gdbarch_init): Update.
5117 * ia64-tdep.c (ia64_gdbarch_init): Update.
5118 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5119 * vax-tdep.c (vax_gdbarch_init): Update.
5120 * alpha-tdep.c (alpha_gdbarch_init): Update.
5121 * arm-tdep.c (arm_gdbarch_init): Update.
5122 * mips-tdep.c (mips_gdbarch_init): Update.
5123 * i386-tdep.c (i386_gdbarch_init): Update.
5124
5bd8c6d0
AC
51252002-08-23 Andrew Cagney <ac131313@redhat.com>
5126
5127 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5128 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5129
e73e1724
MK
51302002-08-24 Mark Kettenis <kettenis@gnu.org>
5131
5132 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5133 problems.
5134
3e6564e1
JB
51352002-08-23 Joel Brobecker <brobecker@gnat.com>
5136
5137 * infrun.c (handle_inferior_event): Move a comment outside of a
5138 function call, in order to avoid indent reformatting this part
5139 of the code in an unreadable way.
5140
81d0cc19
GS
51412002-08-23 Grace Sainsbury <graces@redhat.com>
5142
5143 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5144 when breakpoints fail. Move general breakpoint error messages to
5145 insert_breakpoints.
5146 * breakpoint.c (insert_breakpoints): Change warnings when
5147 breakpoints are nto inserted to specify the type. Remove call to
5148 memory_error when hardware breakpoints can't be inserted. Remove
5149 multiple calls to warning so all messages are sent to the user at
5150 once.
5151 (delete_breakpoints): Make insert error messsages more explicit.
5152
17574093
DJ
51532002-08-23 Daniel Jacobowitz <drow@mvista.com>
5154
5155 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5156 gdbserver/ChangeLog.
5157
8acc2935
MK
51582002-08-23 Mark Kettenis <kettenis@gnu.org>
5159
dfe01d39
MK
5160 * i386-tdep.c: Include "objfiles.h".
5161 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5162 skip_trampoline_code.
5163 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5164 (CPLUS_MARKER): Define to '.'.
5165
8acc2935
MK
5166 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5167 member.
5168 (linux_corefile_thread_callback): Increase args->num_notes.
5169 (linux_make_note_section): Initialize thread_args.num_notes, and
5170 use it to determine whether notes for any threads were created.
5171
151fefe2 51722002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
5173
5174 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5175 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5176 and PCUNKILL.
5177 (write_with_trace): Conditionalize out the switch branch handling
5178 PCSHOLD if the corresponding macro is not defined. Likewise for
5179 PRSABORT and PRSTOP.
5180 This change will be needed by the Interix port.
5181
e1507482
EZ
51822002-08-22 Elena Zannoni <ezannoni@redhat.com>
5183
5184 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5185 write_register wherever possible instead of manipulating the
5186 register bytes directly.
5187 Assign VALUE_CONTENTS to a variable and use that.
5188 The GPR numbers are now dependent on the architecture.
5189
96ff0de4
EZ
51902002-08-22 Elena Zannoni <ezannoni@redhat.com>
5191
5192 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5193 ev_offset fields.
5194 (skip_prologue): Add support for BookE/e500 instructions.
5195 (e500_extract_return_value): New function.
5196 (frame_get_saved_regs): Add support for saving ev registers and
5197 pseudo gpr's.
5198 (e500_store_return_value): New function.
5199 (rs6000_gdbarch_init): Move up default intializations of
5200 deprecated_extract_return_value and store_return_value. Overwrite
5201 init of store_return_value with e500 specific version.
5202 Set extract_return_value for e500.
5203
fbefca5b
EZ
52042002-08-22 Elena Zannoni <ezannoni@redhat.com>
5205
5206 * blockframe.c (generic_call_dummy_register_unwind): Use
5207 regcache_cooked_read to catch cases in which the variable is
5208 stored in a pseudo register.
5209
4d210288
AC
52102002-08-22 Andrew Cagney <cagney@redhat.com>
5211
5212 * NEWS: Mention that the i960 has been made obsolete.
5213 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5214 i960-tdep.c
5215 (remote-nrom.o): Obsolete target.
5216 (remote-nindy.o, i960-tdep.o): Ditto.
5217 * remote-nrom.c: Make file obsolete.
5218 * remote-nindy.c, remote-vx960.c: Ditto.
5219 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5220 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5221 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5222 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5223 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5224 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5225 i960-*-vxworks* obsolete.
5226 * MAINTAINERS: Note that the i960 is obsolete.
5227
6c0c456d
CV
52282002-08-21 Corinna Vinschen <vinschen@redhat.com
5229
5230 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5231 detach to allow reinitialization.
5232
9f9d12b3
AC
52332002-08-22 Andrew Cagney <ac131313@redhat.com>
5234
5235 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5236 attempt).
5237
ebeb39fe
JB
52382002-08-22 Jim Blandy <jimb@redhat.com>
5239
5240 * coffread.c (coff_symfile_read): Don't try to read the line
5241 number table from disk if the image file doesn't have a symbol
5242 table; we'll never actually look at the info anyway, and Windows
5243 ships DLL's with bogus file offsets for the line number data.
5244
5bf1c677
EZ
52452002-08-21 Elena Zannoni <ezannoni@redhat.com>
5246
5247 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5248 an e500 executable.
5249
71b8ef93
MS
52502002-08-21 Michael Snyder <msnyder@redhat.com>
5251
5252 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5253 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
5254 (DEFAULT_MIPS_TYPE): Delete unused macro.
5255 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5256 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 5257
d174216d
JB
52582002-08-21 Jim Blandy <jimb@redhat.com>
5259
5260 * valops.c (value_cast): Simplify and correct logic for doing a
5261 static cast from a pointer to a base class to a pointer to a
5262 derived class.
5263
0ab7a791
AC
52642002-08-21 Andrew Cagney <ac131313@redhat.com>
5265
5266 * infcmd.c (default_print_registers_info): Replace
5267 do_registers_info.
5268 (registers_info): Use gdbarch_print_registers_info instead of
5269 DO_REGISTERS_INFO.
5270 * inferior.h (default_print_registers_info): Replace
5271 do_registers_info.
5272 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5273 (DO_REGISTERS_INFO): Change to a predicate function.
5274 * gdbarch.h, gdbarch.c: Regenerate.
5275
e23792cc
KS
52762002-08-21 Keith Seitz <keiths@redhat.com>
5277
5278 * gdb-events.sh: Add target-changed event.
5279 * gdb-events.c: Regenerated.
5280 * gdb-events.c: Regenerated.
5281 * valops.c (value_assign): Add target-changed event notification
5282 to inlval_register, lval_memory, and lval_reg_frame_relative.
5283
9fb14e79
JB
52842002-08-21 Joel Brobecker <brobecker@gnat.com>
5285
5286 * NEWS: Add an entry regarding the improvement of the next/step
5287 operation on Alpha Tru64 multi-processor machines.
5288
6d39a69f
AC
52892002-08-21 Andrew Cagney <ac131313@redhat.com>
5290
72acd513
AC
5291 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5292 directores.
342af04b 5293 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
5294 * Makefile.in (install-gdbtk): Move to install section.
5295 (rdi-share/libangsd.a): Move to end of file.
5296
fa5f27c7
AC
52972002-08-19 Andrew Cagney <ac131313@redhat.com>
5298
5299 * frame.c (frame_register_unwind): When a register, set addrp to
5300 the register's byte.
5301
5a89d8aa
MS
53022002-08-20 Michael Snyder <msnyder@redhat.com>
5303
5304 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5305 used locally, so move them from the target machine header to here.
5306 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5307 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5308 Make static.
5309 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5310
822e978b
AC
53112002-08-20 Andrew Cagney <cagney@redhat.com>
5312
5313 * NEWS: Mention that the Apollo line was made obsolete.
5314 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5315 m68*-hp-hpux* obsolete.
5316 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5317 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5318 * buildsym.c (make_blockvector): Make static.
5319 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5320 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5321 (ALLDEPFILES): Remove dstread.c.
5322 (dstread.o): Obsolete make rule.
5323 * dstread.c: Makefile obsolete.
5324 * dst.h: Ditto.
5325 * config/m68k/hp300hpux.mt: Ditto.
5326 * config/m68k/hp300hpux.mh: Ditto.
5327 * config/m68k/hp300bsd.mt: Ditto.
5328 * config/m68k/hp300bsd.mh: Ditto.
5329 * config/m68k/apollo68b.mt: Ditto.
5330 * config/m68k/apollo68v.mh: Ditto.
5331 * config/m68k/apollo68b.mh: Ditto.
5332
e41b17f0
MS
53332002-08-20 Michael Snyder <msnyder@redhat.com>
5334
5335 * mips-tdep.c (mips_in_return_stub): Make static.
5336 (mips_gdbarch_init): Set in_solib_return_trampoline.
5337 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5338
d50355b6
MS
53392002-08-20 Michael Snyder <msnyder@redhat.com>
5340
5341 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5342 * gdbarch.c, gdbarch.h: Regenerate.
5343 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5344 Add.
5345 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5346
757a7cc6
MS
53472002-08-20 Michael Snyder <msnyder@redhat.com>
5348
5349 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5350 (mips_gdbarch_init): Set skip_trampoline_code,
5351 in_solib_call_trampoline.
5352 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5353 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5354
c8001721
EZ
53552002-08-20 Elena Zannoni <ezannoni@redhat.com>
5356
5357 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5358
5359 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5360 vector type for ev registers.
5361 (e500_pseudo_register_read): New function.
5362 (e500_pseudo_register_write): New function.
5363 (e500_dwarf2_reg_to_regnum): New function.
5364 (PPC_UISA_NOFP_SPRS): New macro.
5365 (PPC_EV_REGS): New macro.
5366 (PPC_GPRS_PSEUDO_REGS): New macro.
5367 (registers_e500): New register set for e500.
5368 (variants): Add e500 variant.
5369 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5370 before setting architectural dependent variations. Initialize ev
5371 registers numbers. Add case for e500 architecture. Set the
5372 number of pseudo registers.
5373
64366f1c
EZ
53742002-08-20 Elena Zannoni <ezannoni@redhat.com>
5375
5376 * rs6000-tdep.c: Clean up comments.
5377
7e78f0ca
AC
53782002-08-20 Andrew Cagney <cagney@redhat.com>
5379
5380 * h8300-tdep.c: Re-indent file.
5381
697f7479
JB
53822002-08-20 Jim Blandy <jimb@redhat.com>
5383
5384 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5385 default for this.
697f7479 5386
e86ae29f
KS
53872002-08-20 Keith Seitz <keiths@redhat.com>
5388
5389 * breakpoints.c (watch_command_1): Use internal breakpoint
5390 when setting a watchpoint_scope breakpoint.
5391
216b504f
EZ
53922002-08-20 Elena Zannoni <ezannoni@redhat.com>
5393
5394 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5395 (build_builtin_type_vec64i): Ditto.
5396 (build_builtin_type_vec128): Ditto.
5397 (build_builtin_type_vec128i): Ditto.
5398
f7ab6ec6
MS
53992002-08-19 Michael Snyder <msnyder@redhat.com>
5400
5401 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5402 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5403 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5404 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5405 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5406 CALL_DUMMY_ADDRESS): Delete.
5407 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5408 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5409 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5410 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5411 push_return_address.
5412 (mips_register_raw_size, mips_eabi_use_struct_convention,
5413 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5414 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5415 mips_init_extra_frame_info, mips_eabi_push_arguments,
5416 mips_n32n64_push_arguments, mips_push_return_address,
5417 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5418 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5419
b5d1566e
MS
54202002-08-19 Michael Snyder <msnyder@redhat.com>
5421
5422 * mips-tdep.c (mips_frame_num_args): New function.
5423 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5424 frame_saved_pc, frame_args_address, frame_locals_address,
5425 frame_num_args, and frame_args_skip.
5426 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5427 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5428 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5429 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5430
2f1488ce
MS
54312002-08-20 Michael Snyder <msnyder@redhat.com>
5432
5433 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5434 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5435 * mips-tdep.c (mips_store_struct_return): New function.
5436 (mips_extract_struct_value_address): New function.
5437 (mips_gdbarch_init): Set store_struct_return and
5438 extract_struct_value_address.
5439
41ff2da1
DC
54402002-08-20 David Carlton <carlton@math.stanford.edu>
5441
5442 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5443 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5444 (read_file_scope): Check that line_header is nonzero before
5445 decoding macro information.
5446
e5451d58
MK
54472002-08-20 Mark Kettenis <kettenis@gnu.org>
5448
5449 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5450 flag the general-purpose registers as floating-point on targets
5451 that don't support the floating-point registers.
5452
4a6daafa
EZ
54532002-08-20 Elena Zannoni <ezannoni@redhat.com>
5454
5455 * rs6000-tdep.c (altivec_register_p): Delete.
5456 (rs6000_do_altivec_registers): Delete.
5457 (rs6000_altivec_registers_info): Delete.
5458 (rs6000_do_registers_info): Delete.
5459 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5460 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5461
ab4327e0
EZ
54622002-08-20 Elena Zannoni <ezannoni@redhat.com>
5463
5464 * infcmd.c (do_registers_info): Print vector registers in hex
5465 format only.
5466 (print_vector_info): Check that printing registers
5467 makes sense.
5468 (print_float_info): Ditto.
5469
cb1d2653
AC
54702002-08-20 Andrew Cagney <ac131313@redhat.com>
5471
5472 * mips-tdep.c (mips_gdbarch_init): Update.
5473 (mips_o32_extract_return_value): Rewrite.
5474 (mips_o32_store_return_value): Rewrite.
5475 (mips_o32_xfer_return_value): New function.
5476 (mips_xfer_register): Tweak debug print message. Allow for
5477 buf_offset when dumping the value transfered.
5478
dfc3d9b2
AC
54792002-08-20 Andrew Cagney <ac131313@redhat.com>
5480
5481 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5482 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5483 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5484 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5485 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5486
7807aa61
MS
54872002-08-14 Michael Snyder <msnyder@redhat.com>
5488
5489 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5490
489461e2
EZ
54912002-08-19 Elena Zannoni <ezannoni@redhat.com>
5492
5493 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5494 register.
5495 (P): New macro to define a register as a pseudo register.
5496 (R, R4, R8, R16, FR32, R64, R0): Updated.
5497 (struct variant): Add new fields for number of pseudo registers
5498 and number of total registers.
5499 (tot_num_registers): New macro replacing....
5500 (num_registers): ...deleted macro.
5501 (num_registers): New function.
5502 (num_pseudo_registers): New function.
5503 (variants): Update all variants to intialize new fields correctly.
5504 Postpone initialization of number of pseudo regs and real regs.
5505 (init_variants): New function.
5506 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5507 registers offsets.
5508
fcaffe4c
DC
55092002-08-19 David Carlton <carlton@math.stanford.edu>
5510
2c2738a0
DC
5511 * valops.c (search_struct_field): Change error message to treat
5512 return value of 0 from value_static_field as meaning that field is
5513 optimized out.
5514 (value_struct_elt_for_reference): Ditto.
5515 * values.c (value_static_field): Treat an unresolved location the
5516 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
5517 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5518 enclosed. Fix PR gdb/574.
fcaffe4c
DC
5519 * MAINTAINERS: Add self to Write After Approval list.
5520
88658117
AC
55212002-08-19 Andrew Cagney <ac131313@redhat.com>
5522
5523 * mips-tdep.c (mips_xfer_register): New function.
5524 (mips_n32n64_extract_return_value): Rewrite.
5525 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5526 instead of deprecated_extract_return_value.
5527
21283beb
EZ
55282002-08-19 Elena Zannoni <ezannoni@redhat.com>
5529
5530 * rs6000-tdep.c (TDEP): Delete macro.
5531 (branch_dest): Replace use of TDEP macro with its body.
5532 (rs6000_pop_frame): Ditto.
5533 (rs6000_push_arguments): Ditto.
5534 (rs6000_skip_trampoline_code): Ditto.
5535 (rs6000_frame_saved_pc): Ditto.
5536 (rs6000_frame_chain): Ditto.
5537 (rs6000_register_name): Ditto.
5538 (rs6000_register_byte): Ditto.
5539 (rs6000_register_raw_size): Ditto.
5540 (rs6000_register_virtual_type): Ditto.
5541 (rs6000_register_convertible): Ditto.
5542 (rs6000_convert_from_func_ptr_addr): Ditto.
5543
bf072999
DJ
55442002-08-19 Daniel Jacobowitz <drow@mvista.com>
5545
5546 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5547 conditionally.
5548 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5549 MIPS_LINUX_JB_ELEMENT_SIZE.
5550 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5551 for MAX_REGISTER_RAW_SIZE arrays.
5552 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5553 MIPS_LINUX_JB_ELEMENT_SIZE.
5554
9b949a49
PM
55552002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5556
5557 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5558
6d3e79c6
AS
55592002-08-19 Aidan Skinner <aidan@velvet.net>
5560
5561 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5562 ada-valprint.c ada-tasks.c.
5563 (YYFILES): Add ada-exp.y.
5564 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5565 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5566 (ada-exp.tab.o): New target.
5567
06c0b04e
AC
55682002-08-18 Andrew Cagney <ac131313@redhat.com>
5569
5570 * regcache.c (regcache_xfer_part): New function.
5571 (regcache_raw_read_part): New function.
5572 (regcache_raw_write_part): New function.
5573 (regcache_cooked_read_part): New function.
5574 (regcache_cooked_write_part): New function.
5575 * regcache.h (regcache_raw_read_part): Declare.
5576 (regcache_raw_write_part): Declare.
5577 (regcache_cooked_read_part): Declare.
5578 (regcache_cooked_write_part): Declare.
5579
92d1e331
DJ
55802002-08-18 Daniel Jacobowitz <drow@mvista.com>
5581
5582 * remote.c (remote_open_1): Add async_p.
5583 (remote_async_open_1): Delete.
5584 (open_remote_target): Delete.
5585 (remote_open, extended_remote_open): Update calls to remote_open_1.
5586 (remote_async_open, extended_remote_async_open): Call
5587 remote_open_1 instead of remote_async_open_1.
5588
247055de
MK
55892002-08-19 Mark Kettenis <kettenis@gnu.org>
5590
5591 * blockframe.c: Fix a few coding standard violations.
5592
641eda39
MK
55932002-08-19 Mark Kettenis <kettenis@gnu.org>
5594
0b717710
MK
5595 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5596 here from ...
5597 * config/i386/tm-i386sco5.h: ... here. File removed.
5598 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5599
26d28e12 5600 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
5601 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5602 (TM_FILE): Set to tm-i386.h.
5603 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5604 * config/i386/tm-i386v.h: Remove file.
5605 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5606 instead of "i386/tm-i386v.h".
5607 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5608 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5609 "i386/tm-i386v.h".
5610 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5611 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5612 "i386/tm-i386.h".
5613
d4e0bab4
MK
56142002-08-18 Mark Kettenis <kettenis@gnu.org>
5615
5616 * config/i386/nm-i386v.h: Add protection against
5617 multiple-inclusion.
5618 (i386_register_u_addr): Remove prototype.
5619 (register_u_addr): New prototype.
5620 (REGISTER_U_ADDR): Redefine accordingly.
5621 * i386v-nat.c: Improve several comments.
5622 (i386_register_u_addr): Change signature and rename to
5623 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5624 ubase variable.
5625
46cac009
AC
56262002-08-18 Andrew Cagney <ac131313@redhat.com>
5627
5628 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5629 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5630 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5631 deprecated_extract_return_value.
5632 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5633 rename mips_o32o64_push_arguments.
5634 (mips_gdbarch_init): Update.
5635 (mips_extract_return_value): Delete.
5636 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5637 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5638 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5639 (mips_n32n64_extract_return_value): Clone
5640 mips_extract_return_value.
5641 (mips_store_return_value): Delete.
5642 (mips_o32_store_return_value): Clone mips_store_return_value.
5643 (mips_o64_store_return_value): Clone mips_store_return_value.
5644 (mips_eabi_store_return_value): Clone mips_store_return_value.
5645 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5646
d2e4a39e
AS
56472002-08-18 Aidan Skinner <aidan@velvet.net>
5648
0c30c098
AS
5649 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5650 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5651
56522002-08-18 Aidan Skinner <aidan@velvet.net>
5653
5654 * ada-lang.c: Run through gdb_indent.sh.
5655 * ada-lang.h: Run through gdb_indent.sh.
5656 * ada-tasks.c: Run through gdb_indent.sh.
5657 * ada-typeprint.c: Run through gdb_indent.sh.
5658 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 5659
01fc4e33
AC
56602002-08-18 Andrew Cagney <ac131313@redhat.com>
5661
5662 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5663 ABI.
5664
d8ee244c
MK
56652002-08-18 Mark Kettenis <kettenis@gnu.org>
5666
c38d8261
MK
5667 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5668
222db64c
MK
5669 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5670 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5671
c2848c82
MK
5672 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5673 write_register_gen instead of write_register_bytes.
5674
d8ee244c
MK
5675 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5676 i[3456]-*-osf1mk* configurations have been made obsolete.
5677 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5678 i[3456]86-*-osf1mk* hosts obsolete.
5679 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5680 targets obsolete.
5681 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5682 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5683 config/i386/i386m3.mt, config/i386/nm-m3.h,
5684 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5685 config/i386/i386mk.mh, config/i386/i386mk.mt,
5686 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5687 obsolete.
5688 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5689 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5690 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5691
61d8d407
AC
56922002-08-18 Andrew Cagney <ac131313@redhat.com>
5693
5694 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5695 (hppa_value_returned_from_stack): Declare.
5696 (hppa_extract_return_value): Declare.
5697 * config/pa/hppa.mt: New file.
5698 * configure.tgt: Recognize hppa*-*-*.
5699 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5700
0c52bd59
MK
57012002-08-18 Mark Kettenis <kettenis@gnu.org>
5702
5703 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5704 comment.
5705
b5686e99
MK
57062002-08-17 Mark Kettenis <kettenis@gnu.org>
5707
5708 * top.c (gdb_rl_operate_and_get_next): Make sure
5709 operate-and-get-next functions correctly even when the history
5710 list is completely filled.
5711
c1bab85b
AC
57122002-08-18 Andrew Cagney <ac131313@redhat.com>
5713
5714 * MAINTAINERS (Target Instruction Set Architectures): Rename
5715 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5716 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5717 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5718 already listed under Host/Native.
5719
5720 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5721 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5722 mips*-*-*.
5723
32089c7c
AC
57242002-08-17 Andrew Cagney <ac131313@redhat.com>
5725
5726 * config/ia64/ia64.mt: New file.
5727 * config/alpha/alpha.mt: New file.
5728 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5729 ia64-linux-gnu. Mention that ia64-elf is broken.
5730 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5731
b4671f85
MK
57322002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5733
5734 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5735 generic_func_frame_valid instead of func_frame_valid.
5736
c8edd8b4
JB
57372002-08-16 Joel Brobecker <brobecker@gnat.com>
5738
5739 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5740 procfs appears to be broken when debugging on multi-processor
5741 machines. So enable software single stepping in order to avoid
5742 using the procfs interface to do next/step operations, using
5743 internal breakpoints instead.
5744
5745 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5746 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5747 make this pc address equal to the value it would have if the
5748 system stepping capability was used. Also set a new flag used
5749 to ensure that we don't readjust the PC one more time later.
5750
5751 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5752 address by DECR_PC_AFTER_BREAK when software single step is
5753 in use for this architecture, as this has already been taken
5754 care of in handle_inferior_event().
5755
238617f6
JB
57562002-08-16 Joel Brobecker <brobecker@gnat.com>
5757
5758 * infrun.c (handle_inferior_event): Minor reformatting, to make
5759 a rather long condition expression easier to read.
5760
541a7aac
AC
57612002-08-16 Andrew Cagney <ac131313@redhat.com>
5762
5763 * Makefile.in (gdbtk.o): Move to end of file.
5764 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5765 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5766 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5767 (gdbtk-wrapper.o, gdbres.o): Ditto.
5768
f92d4a7b
AC
57692002-08-16 Andrew Cagney <ac131313@redhat.com>
5770
5771 * Makefile.in (copying.o): Separate out compile rule.
5772 (hpux-thread.o, procfs.o, signals.o): Ditto.
5773 (v850ice.o, z8k-tdep.o): Ditto.
5774 (tui-file.o): Move to TUI section.
5775 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5776 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5777
1cce71eb
JB
57782002-08-16 Joel Brobecker <brobecker@gnat.com>
5779
5780 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5781 skip_trampoline_code, for better namespace-proofing.
5782
5783 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5784
0851f23d
JB
57852002-08-16 Joel Brobecker <brobecker@gnat.com>
5786
5787 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5788
f8d40ec8
JB
57892002-08-16 Joel Brobecker <brobecker@gnat.com>
5790
5791 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5792 signal, check whether we hit a breakpoint before checking for a
5793 single step breakpoint. Otherwise, GDB fails to notice that a
5794 breakpoint has been hit when stepping onto a breakpoint.
5795
63d022e0
KS
57962002-08-16 Keith Seitz <keiths@redhat.com>
5797
5798 * gdb-events.sh (clear_gdb_event_hooks): New function.
5799 * gdb-events.c: Regenerate.
5800 * gdb-events.h: Regenerate.
5801
6e31adb3
AC
58022002-08-16 Andrew Cagney <ac131313@redhat.com>
5803
5804 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5805 not_a_sw_breakpoint.
5806 * breakpoint.h (bpstat_stop_status): Add parameter names.
5807
c8189ed1
GS
58082002-08-16 Grace Sainsbury <graces@redhat.com>
5809
5810 * remote.c (remote_insert_hw_breakpoint)
5811 (remote_remove_hw_breakpoint): Fix calculation of length field
5812 for Z-packet.
5813
d05285fa
MS
58142002-08-15 Michael Snyder <msnyder@redhat.com>
5815
466d7106
MS
5816 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5817 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5818 (supply_fpregset): Ditto.
5819
d05285fa
MS
5820 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5821 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5822 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5823 (TARGET_READ_SP): Delete.
bf1f5b4c 5824 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5825 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5826 Delete.
5827 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5828 from macros to functions.
bf1f5b4c 5829
d05285fa
MS
5830 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5831 (mips_register_convertible, mips_register_convert_to_virtual,
5832 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5833 (mips_read_sp): New function.
5834 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5835 (mips_do_registers_info): Make static.
5836 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5837 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5838 (mips_register_convert_from_type, mips_register_convert_to_type):
5839 New functions.
5840 (mips_gdbarch_init): Set up function_start_offset,
5841 register_virtual_size, pc_in_sigtramp.
d05285fa 5842
e76f1f2e
AC
58432002-08-15 Andrew Cagney <ac131313@redhat.com>
5844
5845 * infcmd.c (vector_info): New function.
5846 (_initialize_infcmd): Add command "info vector".
5847 (print_vector_info): New function.
5848
5849 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5850 * gdbarch.h, gdbarch.c: Regenerate.
5851
4782dc19
AC
58522002-08-15 Andrew Cagney <ac131313@redhat.com>
5853
5854 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5855 ``print_all''. Only print vector registers when ``print_all''.
5856
23e3a7ac
AC
58572002-08-15 Andrew Cagney <ac131313@redhat.com>
5858
8e186fd6
AC
5859 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5860 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5861
23e3a7ac
AC
5862 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5863 Add `args' parameter.
5864 * gdbarch.h, gdbarch.c: Regenerate.
5865
5866 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5867
5868 * infcmd.c (float_info): Call print_float_info.
5869 (print_float_info): New function. By default, print the
5870 floating-point registers.
5871
5872 * arch-utils.h (default_print_float_info): Delete declaration.
5873 * arch-utils.c (default_print_float_info): Delete function.
5874
e0ca2bb9
MK
58752002-08-16 Mark Kettenis <kettenis@gnu.org>
5876
3f733acc
MK
5877 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5878 out define.
5879
7d8d2918
MK
5880 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5881 FRAME.
5882
1c7cc583
MK
5883 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5884 * configure.host: Make i[3456]86-*-aix host obsolete.
5885 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5886 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5887 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5888 config/i386/xm-i386aix.h: Make files obsolete.
5889 * i386aix-nat.c: Make file obsolete.
5890 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5891 (i386aix-nat.o): Make target obsolete.
5892
e0ca2bb9
MK
5893 * config/i386/nm-gnu.h: Removed.
5894 * config/i386/nm-i386gnu.h: New file.
5895 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5896 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5897 Moved here from ...
5898 * config/i386/tm-i386gnu.h: ... here. Removed.
5899 * config/i386/xm-i386gnu.h: Removed.
5900 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5901 (NAT_FILE): Set to nm-i386gnu.h.
5902 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5903 * i386-tdep.c: New file.
5904 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5905 (i386gnu-tdep.o): Specify dependencies.
5906
16057ec7 59072002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5908
6b99ee2e
MK
5909 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5910 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5911 Adjust a few comments to reflect reality a bit closer.
5912 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5913 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5914 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5915 target_insert_watchpoint, target_remove_watchpoint):
5916 Move defines to ...
5917 * config/i386/nm-i386sco5.h: ... here.
5918 (kernel_u_size): Add prototype. Improve a few comments and add
5919 protection against multiple inclusion.
5920
d9a6f65c
MK
5921 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5922 out define.
5923
047eff6a
MK
5924 * uw-thread.c (SP_ARG0): Define if not already defined.
5925 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5926
dcdb1290
MK
5927 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5928
5d2d0b2a
MK
5929 * config/i386/tm-i386.h: Don't include "regcache.h".
5930
61113f8b
MK
5931 * i387-tdep.h (i387_print_float_info): New prototype.
5932 * i387-tdep.c (print_i387_value, print_i387_ext,
5933 print_i387_status_word, print_i387_control_word): Add `struct
5934 ui_file *' argument and use it for output.
5935 (i387_print_float_info): Renamed from i387_float_info. Add
5936 `struct gdbarch *' and `struct ui_file *' arguments and use the
5937 latter for output.
5938 * i386-tdep.c: Include "i387-tdep.h".
5939 (i386_gdbarch_init): Set print_float_info.
5940 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5941 (FLOAT_INFO): Remove define.
5942
46e0f506
MS
59432002-08-13 Michael Snyder <msnyder@redhat.com>
5944
5945 * mips-tdep.c (mips_push_arguments): Rename to
5946 mips_eabi_push_arguments, and tune for EABI.
5947 (MIPS_REGS_HAVE_HOME_P): Delete.
5948 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5949 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5950 Delete references to mips_regs_have_home_p.
5951
409268de
KS
59522002-08-14 Keith Seitz <keiths@redhat.com>
5953
5954 * Makefile.in (install-gdbtk): Create insight plugin directory.
5955 Install plugins.tcl file.
5956
ffc6a242
KS
59572002-08-14 Keith Seitz <keiths@redhat.com>
5958
5959 * configure.in: Move SUBDIRS to near top of the file so that
5960 --enable options may add things to it.
5961 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5962 * configure: Regenerate.
5963
ebafbe83
MS
59642002-08-13 Michael Snyder <msnyder@redhat.com>
5965
5966 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5967 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5968 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5969
32f6f25d
AC
59702002-08-13 Andrew Cagney <ac131313@redhat.com>
5971
5972 * vax-tdep.c (vax_get_saved_register): Delete function.
5973 (vax_gdbarch_init): Update.
5974 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5975 (ns32k_gdbarch_init): Update.
5976 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5977 (alpha_gdbarch_init): Update.
5978
53826de9
AC
59792002-08-13 Andrew Cagney <cagney@redhat.com>
5980
5981 * regcache.c (init_regcache_descr): Overallocate the
5982 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5983 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5984 nr_raw_registers.
5985 (set_register_cached): Add range checking assertions. Use
5986 current_regcache.
5987
16057ec7 59882002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5989
5990 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5991 numbers for MMX registers.
5992
7b4c2dce
AC
59932002-08-13 Andrew Cagney <cagney@redhat.com>
5994
5995 * i386-tdep.c (i386_gdbarch_init): Use
5996 generic_unwind_get_saved_register.
5997
1e03ad20
KB
59982002-08-13 Kevin Buettner <kevinb@redhat.com>
5999
6000 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6001 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6002 target vector.
6003 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6004 Delete. Add comment regarding this now-deleted target method.
6005
548bcbec
SC
60062002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6007
6008 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6009 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6010 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6011 real PC and the page number (if it's within the memory bank window).
6012 (m68hc11_pseudo_register_write): Likewise when saving.
6013 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6014 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6015 (m68hc11_register_raw_size): And use 32-bit for it.
6016 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6017 16K memory bank is used by the prog; also use the virtual pc.
6018
7df11f59
SC
60192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6020
6021 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6022 (m68hc11_gdbarch_init): Install it in gdbarch.
6023 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6024 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6025 (MSYMBOL_SIZE): New for documentation.
6026 (insn_return_kind): Enum to specify how a function returns.
6027 (frame_extra_info): Cleanup and record the return mode.
6028 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6029 register in address computation.
6030 (m68hc11_get_return_insn): New to obtain the return instruction used
6031 by the function.
6032 (m68hc11_frame_init_saved_regs): Take into account the return
6033 instruction used by the function for far and interrupt functions.
6034 (m68hc11_init_extra_frame_info): Take into account page register.
6035 (m68hc11_frame_args_address): Adjust according to the return mode.
6036 (show_regs): Print page register only when it's used.
6037
5706502a
SC
60382002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6039
6040 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6041 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6042 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6043 registers.
6044 (m68hc11_register_raw_size): Likewise.
6045
28fc6740
AC
60462002-08-13 Andrew Cagney <cagney@redhat.com>
6047
6048 * i386-tdep.c (i386_register_name): Handle mmx registers.
6049 (mmx_regnum_p): New function.
6050 (i386_mmx_names): New array.
6051 (mmx_num_regs): New variable.
6052 (i386_pseudo_register_read): New function.
6053 (i386_pseudo_register_write): New function.
6054 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6055
6056 * regcache.c (regcache_raw_read_unsigned): New function.
6057 (regcache_raw_read_signed): New function.
6058 * regcache.h (regcache_raw_read_unsigned): Declare.
6059 (regcache_raw_read_signed): Declare.
6060
a378f419
AC
60612002-08-13 Andrew Cagney <cagney@redhat.com>
6062
6063 * regcache.c (regcache_raw_read_as_address): Delete function.
6064 (regcache_cooked_read_signed): New function.
6065 (regcache_cooked_read_unsigned): New function.
6066 * regcache.h (regcache_cooked_read_signed): Declare.
6067 (regcache_cooked_read_unsigned): Declare.
6068 (regcache_raw_read_as_address): Delete declaration.
6069
6070 * blockframe.c (generic_read_register_dummy): Use
6071 regcache_cooked_read_unsigned.
6072 * i386-tdep.c (i386_extract_struct_value_address): Use
6073 regcache_cooked_read_unsigned.
6074
81967506
SC
60752002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6076
6077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6078 double sizes according to ELF ABI flags.
6079 (gdbarch_tdep): Record elf_flags.
6080
ffe1f3ee
SC
60812002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6082
6083 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6084 (m6812_prolog): They can appear in 68HC12 function prologue.
6085 (m68hc11_frame_chain): Cleanup.
6086
98216c5d
AC
60872002-08-12 Andrew Cagney <cagney@redhat.com>
6088
6089 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6090 declarations.
6091 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6092 (i386_linux_register_raw_size): Delete function.
6093 (i386_linux_init_abi): Update.
6094 * i386-tdep.c (i386_register_raw_size): Delete function.
6095 (i386_register_byte): Delete function.
6096 (i386_gdbarch_init): Update.
6097 (i386_register_size): Delete array.
6098 (i386_register_offset): Delete array.
6099
6100 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6101 (REGISTER_RAW_SIZE): Delete macro.
6102 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6103 (REGISTER_BYTE): Delete macro.
6104
3b19021e
AS
61052002-08-11 Aidan Skinner <aidan@velvet.net>
6106
6107 * ada-lang.c (ada_lookup_partial_symbol)
6108 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6109 prototype names so that grep ^func works properly.
6110
6111 * ada-lang.c (ada_array_element_type)
6112 (ada_lookup_partial_symbol): Fix typos in parameter list.
6113
6114 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6115 Fix prototype names so that grep ^func works properly.
6116
b063e7a2
AC
61172002-08-10 Andrew Cagney <cagney@redhat.com>
6118 Elena Zannoni <ezannoni@redhat.com>
6119 Martin M. Hunt <hunt@redhat.com>
6120
6121 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6122 (build_builtin_type_vec128i): Set the vector bit.
6123 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6124 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6125 (build_builtin_type_vec64): New function.
6126 (build_builtin_type_vec64i): New function.
6127 (build_gdbtypes): Initialize builtin_type_vec64 and
6128 builtin_type_vec64i.
6129
a7e3c2ad
AC
61302002-08-09 Andrew Cagney <cagney@redhat.com>
6131
6132 * regcache.c (regcache_dump): Compare the register offset
6133 with REGISTER_BYTE.
6134 * arch-utils.c (generic_register_byte): New function.
6135 * arch-utils.h (generic_register_byte): Declare.
6136 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6137 * gdbarch.h, gdbarch.c: Regenerate.
6138
af030b9a
AC
61392002-08-09 Andrew Cagney <cagney@redhat.com>
6140
6141 * regcache.c: Include "gdbcmd.h"
6142 (_initialize_regcache): Add commands "maintenance print
6143 registers", "maintenance print raw-registers" and "maintenance
6144 print cooked-registers".
6145 (enum regcache_dump_what): Define.
6146 (dump_endian_bytes): New function.
6147 (regcache_dump): New function.
6148 (regcache_print): New function.
6149 (maintenance_print_registers): New function.
6150 (maintenance_print_raw_registers): New function.
6151 (maintenance_print_cooked_registers): New function.
6152 * Makefile.in (regcache.o): Update dependencies.
6153
cb3d25d1
MS
61542002-08-09 Michael Snyder <msnyder@redhat.com>
6155
6156 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6157 (mips_push_arguments): Correct some comments. Use paddr_nz
6158 for printing addresses in debug output. Replace static
6159 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6160 (mips_n32n64_push_arguments): New function, cloned from
6161 mips_push_arguments and tuned for the n32/n64 ABI.
6162 (mips_push_register): Buffer needs dynamic allocation.
6163 (mips_print_register): Ditto.
6164 (do_gp_register_row): Ditto.
6165 (mips_store_return_value): Ditto.
6166 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6167
2163ab9d
DH
61682002-08-09 Don Howard <dhoward@redhat.com>
6169
6170 * memattr.c (mem_info_command): Print special case of upper bound
6171 as max CORE_ADDR + 1.
6172
b78bcb18
MS
61732002-08-08 Michael Snyder <msnyder@redhat.com>
6174
6175 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6176 returns structs by ref if they're too big to fit in two registers.
6177
ffabd70d
KB
61782002-08-09 Kevin Buettner <kevinb@redhat.com>
6179
6180 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6181 saved regs value.
6182 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6183 mips_find_saved_regs().
6184 (mips_pop_frame): Likewise.
6185
fbcdb4a3
KB
61862002-08-09 Kevin Buettner <kevinb@redhat.com>
6187
6188 * blockframe.c (frame_saved_regs_register_unwind): Revise
6189 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6190 frames are in use.
6191
3c3bea1c
GS
61922002-08-09 Grace Sainsbury <graces@redhat.com>
6193
6194 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6195 T-packets; the 'a' is not taken as a register number.
6196 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6197 (remote_stopped_data_address): New functions; add to target
6198 vector.
6199 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6200 prototypes to match other implementations of this
6201 function. replace integer argument with pointer -- the length
6202 field in the Z-packet is the length of what is pointed to or 1 if
6203 pointer is null. Add to target vector.
6204 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6205 target vector.
6206
6207 From Mark Salter:
6208 * remote.c (remote_wait): Add support to extract optional
6209 watchpoint information from T-packet. Ignore unrecognized
6210 optional info in T-packet.
6211 (remote_async_wait): Ditto.
6212
5d1d95de
CV
62132002-08-09 Corinna Vinschen <vinschen@redhat.com>
6214
6215 * cli/cli-dump.c: Change fopen modes to use binary open modes
6216 as defined in include/fopen-bin.h throughout.
6217
c86b5b38
MS
62182002-08-08 Michael Snyder <msnyder@redhat.com>
6219
6220 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6221
b30590dc
KB
62222002-08-08 Kevin Buettner <kevinb@redhat.com>
6223
6224 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6225 assertion failure by returning early after a warning.
6226
498868ed
KB
62272002-08-08 Kevin Buettner <kevinb@redhat.com>
6228
6229 * mips-tdep.c (mips_find_saved_regs): Make static.
6230 (mips_frame_init_saved_regs): New function.
6231 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6232 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6233 (mips_find_saved_regs): Delete declaration.
6234
b2dd6311
GS
62352002-08-08 Grace Sainsbury <graces@redhat.com>
6236
3c3bea1c
GS
6237 * remote.c (remote_wait, remote_async_wait): Change
6238 thread_num from int to ULONGEST.
6239 (unpack_varlen_hex): Change result parameter from
6240 int * to ULONGEST *.
b2dd6311 6241
ea47855f
AC
62422002-08-08 Andrew Cagney <ac131313@redhat.com>
6243
6244 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6245 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6246 powerpc*-*-*.
6247 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6248
69db8bae
AC
62492002-08-08 Andrew Cagney <cagney@redhat.com>
6250
6251 * gcore.c (override_derive_stack_segment): Delete variable.
6252 (preempt_derive_stack_segment): Delete function.
6253 (derive_stack_segment): Delete function.
6254 (default_derive_stack_segment): Renamed to derive_stack_segment.
6255 (override_derive_heap_segment): Delete variable.
6256 (preempt_derive_heap_segment): Delete function.
6257 (derive_heap_segment): Delete function.
6258 (default_derive_heap_segment): Rename to derive_heap_segment.
6259
cb811fe7
MS
62602002-08-06 Michael Snyder <msnyder@redhat.com>
6261
6262 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6263 * mips-tdep.c (mips_EABI_use_struct_convention,
6264 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6265 New functions. (mips_use_struct_convention): Delete.
6266 (mips_gdbarch_init): set use_gdbarch_convention.
6267
8b389c40
MS
62682002-08-06 Michael Snyder <msnyder@redhat.com>
6269
6270 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6271 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6272 mips_o32_reg_struct_has_addr): New functions.
6273 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6274
5c27f28a
AC
62752002-08-07 Andrew Cagney <ac131313@redhat.com>
6276
6277 * regcache.c (pseudo_register): Delete function.
6278 (fetch_register): Delete function.
6279 (store_register): Delete function.
6280 (regcache_raw_read, legacy_read_register_gen): Use
6281 target_fetch_registers instead of fetch_register.
6282 (legacy_write_register_gen, regcache_raw_write): Use
6283 target_store_register instead of store_register.
6284 (write_register_bytes): Ditto.
6285
6286 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6287 (STORE_PSEUDO_REGISTER): Delete.
6288 * gdbarch.h, gdbarch.c: Regenerate.
6289
5b331675
CV
62902002-08-06 Corinna Vinschen <vinschen@redhat.com>
6291
6292 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6293 write dump file binary.
6294
6acdf5c7
MS
62952002-08-05 Michael Snyder <msnyder@redhat.com>
6296
6297 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6298 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6299 (mips_gdbarch_init): Set N32 target to be mips64.
6300
b2f01c35
KB
63012002-08-06 Kevin Buettner <kevinb@redhat.com>
6302
6303 * frame.c (find_saved_register): Break out of loop once saved
6304 register address is found. Don't mention sparc in loop comment
6305 anymore.
6306
63db5580
KB
63072002-08-06 Kevin Buettner <kevinb@redhat.com>
6308
6309 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6310 mips_default_saved_regsize to 8.
6311
5e34e75e
AC
63122002-08-06 Andrew Cagney <ac131313@redhat.com>
6313
6314 * gcore.c: Do not include <sys/procfs.h>.
6315 * Makefile.in (gcore.o): Update dependencies.
6316
eb4c54a2
AC
63172002-08-06 Andrew Cagney <cagney@redhat.com>
6318
6319 * configure.tgt: Make arc-*-* obsolete.
6320 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6321 * MAINTAINERS: Make arc-elf obsolete.
6322 * arc-tdep.c: Make file obsolete.
6323 * config/arc/arc.mt: Ditto.
6324 * config/arc/tm-arc.h: Ditto.
6325
ced15480
TR
63262002-08-05 Theodore A. Roth <troth@verinet.com>
6327
c1bab85b 6328 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 6329
b4743822
AC
63302002-08-05 Andrew Cagney <ac131313@redhat.com>
6331
6332 * mcore-tdep.c (mcore_gdbarch_init): Use
6333 generic_unwind_get_saved_register instead of
6334 generic_get_saved_register.
6335 * v850-tdep.c (v850_gdbarch_init): Ditto.
6336 * frv-tdep.c (frv_gdbarch_init): Ditto.
6337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6338 * s390-tdep.c (s390_gdbarch_init): Ditto.
6339 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6340 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6341 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6342
3956d554
JB
63432002-08-05 Joel Brobecker <brobecker@gnat.com>
6344
6345 * objfiles.h: Add missing #include "symfile.h"
6346
6347 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6348
8249c0d6
AC
63492002-08-04 Andrew Cagney <ac131313@redhat.com>
6350
6351 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6352 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6353 of FIELD_BITSIZE.
6354
b9d14705
DJ
63552002-08-04 Daniel Jacobowitz <drow@mvista.com>
6356
6357 * NEWS: Cleanup and nitpick.
6358
dd73b9bb
AC
63592002-08-03 Andrew Cagney <ac131313@redhat.com>
6360
6361 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6362
043a27f8
AC
63632002-08-03 Andrew Cagney <ac131313@redhat.com>
6364
6365 * Makefile.in (gdbtk-bp.o): Update dependencies.
6366 (gdbtk-register.o): Ditto.
6367 (gdbtk-varobj.o): Ditto.
6368
46ce284d
AC
63692002-08-03 Andrew Cagney <cagney@redhat.com>
6370
6371 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6372 m68hc11_fetch_pseudo_register.
6373 (m68hc11_pseudo_register_write): Replace
6374 m68hc11_store_pseudo_register.
6375 (m68hc11_gdbarch_init): Update.
6376
b66d6d2e
AC
6377Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6378
6379 * gdbarch.sh: Include "gdb_string.h".
6380 * gdbarch.c: Regenerate.
6381
6382 * regcache.c: Include "gdb_string.h".
6383 * ax-general.c: Ditto.
6384 * varobj.c: Ditto.
6385 * std-regs.c: Ditto.
6386 * fbsd-proc.c: Ditto.
6387 * thread.c: Ditto.
6388
6389 * Makefile.in (regcache.o): Update dependencies.
6390 (thread.o, gdbarch.o): Ditto.
6391 (ax-general.o, gdbarch.o): Ditto.
6392 (varobj.o, std-regs.o): Ditto.
6393 (fbsd-proc.o): Specify dependencies.
6394
29e1842b
AC
63952002-08-02 Andrew Cagney <cagney@redhat.com>
6396
6397 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6398 regnum.
6399 (regcache_cooked_write): Ditto.
6400
68365089
AC
64012002-08-02 Andrew Cagney <ac131313@redhat.com>
6402
6403 * regcache.c (regcache_cooked_read): New function.
6404 (regcache_cooked_write): New function.
6405 (read_register_gen): Rewrite using regcache_cooked_read.
6406 (write_register_gen): Rewrite using regcache_cooked_write.
6407
6408 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6409 Declare.
6410
d8124050
AC
64112002-08-02 Andrew Cagney <cagney@redhat.com>
6412
6413 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6414 Replace the architecture methods register_read and register_write.
6415 * gdbarch.h, gdbarch.c: Regenerate.
6416 * regcache.c (init_regcache_descr): Update.
6417 (read_register_gen): Update.
6418 (write_register_gen): Update.
6419 (supply_register): Update comment.
6420
6421 * sh-tdep.c (sh_gdbarch_init): Update.
6422 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6423 `regcache' and `gdbarch' parameters. Make `buffer' a void
6424 pointer. Update code.
6425 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6426 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6427 void pointer. Update code.
6428 (sh64_register_write): Delete.
6429 (sh4_register_read): Delete.
6430 (sh64_register_read): Delete.
6431 (sh4_register_write): Delete.
6432 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6433 void pointer, `to' parameter a void pointer.
6434 (sh_sh64_register_convert_to_raw): Ditto.
6435
a6425924
KB
64362002-08-01 Kevin Buettner <kevinb@redhat.com>
6437
6438 * mips-tdep.c (mips_register_virtual_type): Use architecture
6439 invariant return values.
6440
ff5922b5
AC
64412002-08-01 Andrew Cagney <cagney@redhat.com>
6442
6443 * linux-proc.c: Include "gdb_string.h".
6444 * Makefile.in (linux-proc.o): Update dependency list.
6445
32a6503c
KB
64462002-08-01 Kevin Buettner <kevinb@redhat.com>
6447
6448 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6449 comment.
6450
ccaa32c7
GS
64512002-08-01 Grace Sainsbury <graces@redhat.com>
6452
6453 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6454 to_insert_watchpoint, to_remove_watchpoint,
6455 to_stopped_by_watchpoint, to_stopped_data_address,
6456 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6457 target vecctor. Define their corresponding macros so they call
6458 them.
6459
6460 * target.c: Add default and debug versions of for
6461 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6462 to_insert_watchpoint, to_remove_watchpoint,
6463 to_stopped_by_watchpoint, to_stopped_data_address,
6464 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6465
78fde5f8
KB
64662002-08-01 Kevin Buettner <kevinb@redhat.com>
6467
6468 * mips-tdep.c (mips_register_virtual_type): New function.
6469 (mips_gdbarch_init): Register mips_register_virtual_type()
6470 with gdbarch machinery.
6471 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6472 this file instead of tm-bigmips.h.
6473 (MIPS_REGSIZE): Delete this macro.
6474 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6475 multiarch version in mips-tdep.c will be found.
6476
db034ac5
AC
64772002-08-01 Andrew Cagney <cagney@redhat.com>
6478
6479 * NEWS: Menion that CHILL has been made obsolete.
6480
6481 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
6482 * stabsread.c (read_range_type): Ditto.
6483 * gdbtypes.h: Ditto.
6484 * language.c (binop_type_check): Ditto.
6485 (binop_result_type): Ditto.
6486 (integral_type): Ditto.
6487 (character_type): Ditto.
6488 (string_type): Ditto.
6489 (boolean_type): Ditto.
6490 (structured_type): Ditto.
6491 (lang_bool_type): Ditto.
6492 (binop_type_check): Ditto.
6493 * language.h (_LANG_chill): Ditto.
6494 * dwarfread.c (set_cu_language): Ditto.
6495 * dwarfread.c (CHILL_PRODUCER): Ditto.
6496 * dwarfread.c (handle_producer): Ditto.
6497 * expression.h (enum exp_opcode): Ditto.
6498 * eval.c: Ditto for comments.
6499 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6500 * expprint.c (print_subexp): Ditto.
6501 (print_subexp): Ditto.
6502 * valops.c (value_cast): Ditto.
6503 (search_struct_field): Ditto.
6504 * value.h (COERCE_VARYING_ARRAY): Ditto.
6505 * symfile.c (init_filename_language_table): Ditto.
6506 (add_psymbol_with_dem_name_to_list): Ditto.
6507 * valarith.c (value_binop): Ditto.
6508 (value_neg): Ditto.
6509 * valops.c (value_slice): Ditto.
6510 * symtab.h (union language_specific): Ditto.
6511 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6512 (SYMBOL_DEMANGLED_NAME): Ditto.
6513 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6514 * defs.h (enum language): Ditto.
6515 * symtab.c (got_symtab): Ditto.
6516 * utils.c (fprintf_symbol_filtered): Ditto.
6517
6518 * ch-typeprint.c: Make file obsolete.
6519 * ch-valprint.c: Make file obsolete.
6520 * ch-lang.h: Make file obsolete.
6521 * ch-exp.c: Make file obsolete.
6522 * ch-lang.c: Make file obsolete.
6523
6524 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6525 CHILL_LIB.
6526 (TARGET_FLAGS_TO_PASS): Ditto.
6527 (CHILLFLAGS): Obsolete.
6528 (CHILL): Obsolete.
6529 (CHILL_FOR_TARGET): Obsolete.
6530 (CHILL_LIB): Obsolete.
6531 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6532 ch-valprint.c.
6533 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6534 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6535 ch-lang.o.
6536 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6537 targets.
6538
8aaf0b47
JB
65392002-07-31 Joel Brobecker <brobecker@gnat.com>
6540
6541 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6542 This does not change anything at the moment, but will be helpful
6543 later when full Ada support is integrated.
6544
f3a7b3a5
KB
65452002-07-31 Kevin Buettner <kevinb@redhat.com>
6546
6547 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6548 help message.
6549
fb850278
KB
65502002-07-31 Kevin Buettner <kevinb@redhat.com>
6551
6552 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6553 and save it in a local variable. Use variable in later test.
6554
e3bddbfa
KB
65552002-07-31 Kevin Buettner <kevinb@redhat.com>
6556
6557 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6558 test. (Thanks to Daniel Jacobowitz.)
6559
28d169de
KB
65602002-07-31 Kevin Buettner <kevinb@redhat.com>
6561
6562 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6563 (mips_abi_strings): Add "n64".
6564 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6565
7fe7e44e
KB
65662002-07-31 Kevin Buettner <kevinb@redhat.com>
6567
6568 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6569 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6570
c6caf090
KB
65712002-07-31 Kevin Buettner <kevinb@redhat.com>
6572
6573 * utils.c (host_pointer_to_address, address_to_host_pointer):
6574 Use gdb_assert() instead of explicit call to internal_error().
6575
c41669e0
KB
65762002-07-30 Kevin Buettner <kevinb@redhat.com>
6577
6578 * Makefile.in (rs6000-nat.o): Update dependencies.
6579
6580 From Nicholas Duffek:
6581 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6582 (aix-thread.o): New rule.
6583 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6584 * config/powerpc/aix432.mh: New file.
6585
2fda4977
DJ
65862002-07-30 Daniel Jacobowitz <drow@mvista.com>
6587
6588 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6589 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6590 (fetch_core_registers, ppc_linux_supply_gregset)
6591 (ppc_linux_supply_fpregset): New functions.
6592 (ppc_linux_regset_core_fns): New.
6593 (_initialize_ppc_linux_tdep): Call add_core_fns.
6594 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6595 and ppc_linux_supply_gregset.
6596 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6597 (supply_fpregset): Call ppc_linux_supply_fpregset.
6598 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6599 corelow.o.
6600 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6601
729051e6
DJ
66022002-07-30 Daniel Jacobowitz <drow@mvista.com>
6603
6604 * symtab.c (lookup_symbol): Demangle before lowercasing.
6605
5f8a3188
AC
66062002-07-30 Andrew Cagney <ac131313@redhat.com>
6607
6608 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6609 declaration.
6610 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6611 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6612 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6613 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6614 "gdb_string.h".
6615 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6616 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6617 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6618 (avr-tdep.o, mon960-rom.o): Ditto.
6619 (aout_stabs_gnu_h): Define.
6620 (symtab_h): Remove $(gdb_obstack_h).
6621
67f07146
JB
66222002-07-30 Jim Blandy <jimb@redhat.com>
6623
6624 Patch from David Carlton <carlton@math.stanford.edu>:
6625 * gdbinit.in: Move the `dir' commands that add GDB's own source
6626 directory to the search path to the end, so that the `gdb' source
6627 directory will be searched first.
6628
04ea0df1
AC
66292002-07-29 Andrew Cagney <ac131313@redhat.com>
6630
6631 * gdb_obstack.h: New file.
6632 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6633 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6634 * objfiles.h: Include "gdb_obstack.h".
6635 * Makefile.in (gdb_obstack_h): Define.
6636 (symtab_h): Add $(gdb_obstack_h).
6637 (objfiles_h): Add $(gdb_obstack_h).
6638
6639 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6640 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6641 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6642 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6643 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6644 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6645 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6646 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6647
6648 * Makefile.in (bcache.o): Update dependencies.
6649 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6650 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6651 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6652 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6653 (stabsread.o, symfile.o, symmisc.o): Ditto.
6654 (symtab.o, typeprint.o, macroexp.o): Ditto.
6655 (macrotab.o, mdebugread.o): Ditto.
6656 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6657 (coff_ecoff_h, aout_aout64_h): Define.
6658 (aout_stabs_gnu_h, libaout_h): Define.
6659
d138e37a
AC
66602002-07-29 Andrew Cagney <cagney@redhat.com>
6661
6662 * regcache.c (struct regcache_descr): Rename nr_registers to
6663 nr_cooked_registers. Revise comments describing the structure
6664 member fields.
6665 (init_regcache_descr): Update.
6666 (init_legacy_regcache_descr): Update.
6667 (read_register_gen, write_register_gen): When a cooked register in
6668 the raw register range, directly access the value from the raw
6669 register cache.
6670
460e6ec3
AC
66712002-07-29 Andrew Cagney <ac131313@redhat.com>
6672
6673 * z8k-tdep.c: Do not include "obstack.h".
6674 * h8300-tdep.c, h8500-tdep.c: Ditto.
6675 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6676 * valprint.c, v850-tdep.c: Ditto.
6677 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6678 * mn10200-tdep.c: Ditto.
6679
6680 * Makefile.in (z8k-tdep.o): Update dependencies.
6681 (m68hc11-tdep.o, valprint.o): Ditto.
6682 (v850-tdep.o, d10v-tdep.o): Ditto.
6683 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6684 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6685 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6686 (sh_opc_h, gdb_sim_sh_h): Define.
6687 (elf_sh_h, elf_bfd_h): Define.
6688 (opcode_m68hc11_h): Define.
6689 (OPCODES_SRC, OPCODES_DIR): define.
6690 (OPCODES): Use $(OPCODES_DIR).
6691 (gdb_sim_d10v_h): Rename sim_d10v_h.
6692 (gdb_sim_arm_h): Rename sim_arm_h.
6693
790c9cf0
KB
66942002-07-26 Kevin Buettner <kevinb@redhat.com>
6695
6696 * utils.c (host_pointer_to_address, address_to_host_pointer):
6697 Change internal_error() message to indicate function responsible
6698 for the error.
6699
9647fa49
KB
67002002-07-26 Kevin Buettner <kevinb@redhat.com>
6701
6702 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6703 calls to local_hex_string_custom().
6704
dabbe2c0
KB
67052002-07-26 Kevin Buettner <kevinb@redhat.com>
6706
6707 * irix5-nat.c: Move IRIX shared library support from here...
6708 * solib-irix.c: ...to here. Revised substantially to work with
6709 generic solib framework.
6710
b96d0a4e
KB
6711 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6712 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6713 * mips-irix-tdep.c: New file.
6714
313fb2f6
KB
6715 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6716 (mips-irix-tdep.o, solib-irix.o): New rules.
6717 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6718 solib-irix.o.
6719 * config/mips/irix6.mt (TDEPFILES): Likewise.
6720 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6721
ab2eaf26
KB
67222002-07-26 Kevin Buettner <kevinb@redhat.com>
6723
177e4768 6724 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
6725 disabled (via ``#if 0'') includes.
6726
7244546a
KB
67272002-07-26 Kevin Buettner <kevinb@redhat.com>
6728
6729 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6730 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6731 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6732 Add support for the fpscr register.
6733 * rs6000-nat.c (regmap, fetch_inferior_registers)
6734 (store_inferior_registers, fetch_core_registers): Likewise.
6735
dd7be90a
KB
67362002-07-26 Kevin Buettner <kevinb@redhat.com>
6737
6738 * rs6000-nat.c (language.h): Include.
6739 (special_regs): Delete this array.
6740 (regmap): New function.
6741 (fetch_register, store_register): Use regmap() to map gdb
6742 register numbers to ptrace register numbers. Also, use
6743 outputs from regmap() to make decisions regarding type of
6744 ptrace() call to make. In particular, don't compare against
6745 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6746 (fetch_inferior_registers, store_inferior_registers): Where
6747 possible, obtain register numbers from tdep struct. Don't
6748 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6749 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6750 (LAST_UISA_SP_REGNUM): Delete.
6751
11bf77db
KB
67522002-07-25 Kevin Buettner <kevinb@redhat.com>
6753
6754 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
6755 (fetch_registers, store_register, fetch_core_registers): Don't
6756 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
6757 regcache_collect() as appropriate.
6758 (find_toc_address): Format hex address with local_hex_string().
6759
06afebeb
AC
67602002-07-25 Andrew Cagney <ac131313@redhat.com>
6761
6762 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6763 bfd/elf32-frv.c.
6764
8c554d79
TT
67652002-07-24 Tom Tromey <tromey@redhat.com>
6766
6767 * jv-exp.y: Marked all strings with _().
6768 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6769 internal_error.
6770 (MethodInvocation, CastExpression, parse_number, yyerror,
6771 java_type_from_name, push_expression_name, yylex): Typo fixes.
6772
e4c242d9
DJ
67732002-07-24 Daniel Jacobowitz <drow@mvista.com>
6774
6775 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6776 (tee_file_flush, tee_file_write, tee_file_fputs)
6777 (tee_file_isatty): New.
6778 * ui-file.h (tee_file_new): Add prototype.
6779
ebf56fd3
AS
67802002-07-24 Aidan Skinner <aidan@velvet.net>
6781
6782 * ada-lang.c: Change k&r style function definitions to prototyped
6783 form.
6784 * ada-typeprint.c: Change k&r style function definitions to prototyped
6785 form.
6786 * ada-valprint.c: Change k&r style function definitions to prototyped
6787 form.
6788
7fb623f7
AC
67892002-07-24 Andrew Cagney <cagney@redhat.com>
6790
6791 * README: Remove reference to remote-bug.
6792 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6793 remote-bug.c.
6794 (m88k-nat.o): Delete rule.
6795 (m88k-tdep.o): Delete rule.
6796 (remote-bug.o): Delete rule.
6797 * MAINTAINERS: Mark as obsolete.
6798 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6799 * m88k-tdep.c: Make file obsolete.
6800 * config/m88k/m88k.mh: Ditto.
6801 * config/m88k/delta88v4.mh: Ditto.
6802 * config/m88k/delta88v4.mt: Ditto.
6803 * config/m88k/delta88.mt: Ditto.
6804 * config/m88k/delta88.mh: Ditto.
6805 * remote-bug.c: Ditto.
6806 * config/m88k/tm-delta88.h: Ditto.
6807 * config/m88k/nm-delta88v4.h: Ditto.
6808 * config/m88k/xm-delta88.h: Ditto.
6809 * config/m88k/xm-dgux.h: Ditto.
6810 * config/m88k/tm-m88k.h: Ditto.
6811 * config/m88k/nm-m88k.h: Ditto.
6812 * config/m88k/tm-delta88v4.h: Ditto.
6813 * m88k-nat.c: Ditto.
6814 * cxux-nat.c: Ditto.
6815 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6816 and m88*-*-* obsolete.
6817 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6818 m88*-*-* obsolete.
6819
37611a2b
AC
68202002-07-24 Andrew Cagney <cagney@redhat.com>
6821
6822 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6823 constant. Same for local pointer variables.
6824 (extract_signed_integer): Ditto.
6825 * defs.h (extract_unsigned_integer): Update.
6826 (extract_signed_integer): Update.
6827
1aaa5f99
AC
68282002-07-24 Andrew Cagney <cagney@redhat.com>
6829
6830 * regcache.c (regcache_raw_write): Change buf parameter to a
6831 constant void pointer.
6832 (regcache_raw_read): Change buf parameter to a void pointer.
6833 (legacy_write_register_gen): Change myaddr parameter a constant
6834 void pointer.
6835 (supply_register): Change val parameter to a const void pointer.
6836 * regcache.h (regcache_raw_write): Update declaration.
6837 (regcache_raw_read): Update declaration.
6838 (supply_register): Update declaration.
6839
b4f5539f
TT
68402002-07-24 Tom Tromey <tromey@redhat.com>
6841
6842 * defs.h (gdb_readline_wrapper): Declare.
6843 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6844 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6845 * top.c (gdb_readline_wrapper): New function.
6846 (command_line_input): Use it.
6847
0818c12a
AC
68482002-07-24 Andrew Cagney <cagney@redhat.com>
6849
6850 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6851 regcache_read and regcache_write.
6852 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6853 * regcache.c: Update.
6854 * sh-tdep.c (sh64_push_arguments): Update comment.
6855 (sh_pseudo_register_read): Update.
6856 (sh_pseudo_register_write): Update.
6857 (sh4_register_read): Update.
6858 (sh4_register_write): Update.
6859 (sh64_pseudo_register_read): Update.
6860 (sh64_pseudo_register_write): Update.
6861 (sh64_register_read): Update.
6862 (sh64_register_write): Update.
6863 * i386-tdep.c (i386_extract_return_value): Update.
6864 (i386_extract_struct_value_address): Update.
6865 (i386_extract_return_value): Update.
6866 * blockframe.c (generic_read_register_dummy): Update.
6867 (generic_call_dummy_register_unwind): Update
6868 * infrun.c (write_inferior_status_register): Update.
6869
f7321c06
JB
68702002-07-23 Jim Blandy <jimb@redhat.com>
6871
6872 * parser-defs.h (expression_context_pc): Make this extern.
6873 (Thanks to Michael Snyder.)
6874
2037aebb
AC
68752002-07-23 Andrew Cagney <ac131313@redhat.com>
6876
6877 GDB 5.2.1 released from 5.2 branch.
6878 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6879 * README: Update to mention 5.2.1.
6880
66504d44
MS
68812002-07-23 Mark Salter <msalter@redhat.com>
6882
6883 * remote.c (remote_read_bytes): Fix check for error.
6884
27bae383
KB
68852002-07-22 Kevin Buettner <kevinb@redhat.com>
6886
6887 * aix-thread.c (language.h): Include.
6888 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6889 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6890 Print newlines at end of debug messages.
6891 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6892 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6893
68942002-07-22 Kevin Buettner <kevinb@redhat.com>
6895
6896 * aix-thread.c (ppc-tdep.h): Include.
6897 (special_register_p): New function.
6898 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6899 (store_regs_user_thread): Use register number information from
6900 gdbarch_tdep struct instead of hardcoded offsets relative to
6901 FIRST_UISA_SP_REGNUM.
6902 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6903 special_register_p() instead of using FPLAST_REGNUM and
6904 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6905 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6906 will be MQ's register number.
6907
69082002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6909
6910 * aix-thread.c (ops): Rename to aix_thread_ops.
6911 (base_ops): Rename to base_target.
6912 (ops_attach): Rename to aix_thread_attach.
6913 (ops_detach): Rename to aix_thread_detach.
6914 (ops_resume): Rename to aix_thread_detach.
6915 (ops_wait): Rename to aix_thread_wait.
6916 (ops_kill): Rename to aix_thread_kill.
6917 (init_ops): Rename to init_aix_thread_ops.
6918 (ops_fetch_register): Rename to aix_thread_fetch_register.
6919 (ops_store_register): Rename to aix_thread_store_register.
6920 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6921 (ops_thread_alive): Rename to aix_thread_thread_alive.
6922 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6923 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6924 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6925 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6926 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6927 (store_regs_lib): Rename to store_regs_user_thread.
6928 (store_regs_kern): Rename to store_regs_kernel_thread.
6929
27bae383 69302002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6931
6932 * aix-thread.c (ops_prepare_to_store): Eliminate.
6933 (init_ops): Don't initialize ops.prepare_to_store.
6934 (store_regs_kern): Pre-fetch register buffers from child,
6935 because some registers may not be in the cache. Copy
6936 regs from register cache only if they are cached.
6937 (store_regs_lib): Copy regs from register cache only
6938 if they are cached.
6939 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6940 fill_gprs64): Ditto.
6941
61c5da0b
KB
69422002-07-22 Kevin Buettner <kevinb@redhat.com>
6943
6944 * aix-thread.c (gdb_assert.h): Include.
6945 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6946 register sizes (from register cache) match size of buffer holding
6947 register data.
6948 (fill_sprs32): Change parameter types to match those in the ptrace()
6949 buffer.
6950 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6951 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6952
69532002-07-22 Michael Snyder <msnyder@redhat.com>
6954
6955 * aix-thread.c (supply_sprs64): Cosmetic change.
6956 (supply_sprs32): Cosmetic change.
6957 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6958 (fill_sprs64): Use regcache_collect instead of read_register.
6959 (store_regs_lib): Use regcache_collect instead of
6960 read_register. Use fill_sprs32 instead of fill_sprs64,
6961 if debugging a 32-bit architecture.
6962 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6963 out of the register cache, instead of passing a pointer into
6964 the register cache directly to ptrace. Use regcache_collect
6965 insteaad of read_register.
6966 (ops_prepare_to_store): Use target_read_registers instead
6967 of read_register_bytes.
6968
36479eb1
AS
69692002-07-20 Aidan Skinner <aidan@velvet.net>
6970
6971 * MAINTAINERS: Add self under write after approval.
6972
80ae6ee2
AS
69732002-07-20 Aidan Skinner <aidan@velvet.net>
6974
6975 * ada-tasks.c: Change k&r style function definitions to prototyped
6976 form.
6977
8a8ab2b9
AC
69782002-07-19 Andrew Cagney <ac131313@redhat.com>
6979
6980 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6981 * x86-64-tdep.c: Include "objfiles.h".
6982 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6983 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6984
fb16b900
ML
69852002-07-17 Michal Ludvig <michal@suse.cz>
6986
6987 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6988 (update_context): Initialise cfa variable.
6989
0fe7bf7b
MS
69902002-07-17 Michael Snyder <msnyder@redhat.com>
6991
6992 * aix-thread.c: Shorten some long lines.
6993 Bring comments into line with code spec.
6994
488f131b
JB
69952002-07-18 Joel Brobecker <brobecker@gnat.com>
6996
6997 * infrun.c: Re-indent using gdb_indent.sh.
6998
46c415d2
JB
69992002-07-18 Joel Brobecker <brobecker@gnat.com>
7000
7001 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7002 Leave the indentation temporarily untouched, to minimize the diffs.
7003
cdecafbe
EZ
70042002-07-18 Elena Zannoni <ezannoni@redhat.com>
7005
7006 * stabsread.c: Make os9k sections of the code obsolete,
7007 for real this time.
7008 * stabsread.h: Make os9k sections of the code obsolete.
7009
7b6aa020
ML
70102002-07-18 Michal Ludvig <mludvig@suse.cz>
7011
09ec9b38
ML
7012 * linux-low.c (regsets_store_inferior_registers): Add free()
7013 at the end of a loop to prevent memory leak.
7014 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7015 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
7016 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7017 line a comment.
4894ac5d 7018 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 7019
233282cd
JB
70202002-07-17 Jim Blandy <jimb@redhat.com>
7021
7022 * macrocmd.c (info_macro_command): Remove newline from error
7023 message.
7024
7b6aa020 70252002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
7026
7027 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7028 (sh_gdbarch_init): Use it for sh-dsp.
7029
f7ef9339
KB
70302002-07-16 Kevin Buettner <kevinb@redhat.com>
7031
7032 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7033 64-bit DWARF2 format.
7034
8dd72958
JB
70352002-07-16 Joel Brobecker <brobecker@gnat.com>
7036
7037 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7038 <sys/proc.h> when not available.
7039
a99a9e1b
AC
70402002-07-16 Andrew Cagney <ac131313@redhat.com>
7041
7042 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7043 * stabsread.c: Make os9k sections of the code obsolete.
7044 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7045 * config/i386/i386os9k.mt: Make file obsolete.
7046 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7047 (COMMON_OBS): Remove os9kread.o
7048 (SFILES): Remove os9kread.c.
7049 (os9kread.o, remote-os9k.o): Make target obsolete.
7050 * remote-os9k.c: Make file obsolete.
7051 * os9kread.c: Make file obsolete.
7052 * Makefile.in
7053
7a3085c1
AC
70542002-07-16 Andrew Cagney <ac131313@redhat.com>
7055
7056 * NEWS: Mention that the FR30 has been made obsolete.
7057 * fr30-tdep.c: Make file obsolete.
7058 * config/fr30/tm-fr30.h: Ditto.
7059 * config/fr30/fr30.mt: Ditto.
7060 * configure.tgt: Make fr30-*-elf obsolete.
7061 * MAINTAINERS: Make fr30-elf obsolete.
7062
28a93f5a
PM
70632002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7064
7065 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7066 found is not inside a section.
7067
be006b8b
KB
70682002-07-15 Kevin Buettner <kevinb@redhat.com>
7069
7070 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7071 strerror().
7072 (pdc_realloc): Use xrealloc() instead of realloc().
7073
14fa3751
KB
70742002-07-15 Kevin Buettner <kevinb@redhat.com>
7075
7076 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7077 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7078 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7079 macros.
7080
42cc437f
KB
70812002-07-15 Kevin Buettner <kevinb@redhat.com>
7082
7083 * aix-thread.c (ptrace_check): Eliminate goto.
7084 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7085 problem.
7086
8e2c28d4
KB
70872002-07-15 Kevin Buettner <kevinb@redhat.com>
7088
7089 * aix-thread.c (gdbcmd.h): Include.
7090 (DEBUG, DBG, DBG2, dbg): Eliminate.
7091 (debug_aix_thread): New static global.
7092 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7093 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7094 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7095 invocations to DBG and DBG2 macros to test against
7096 ``debug_aix_thread'' and call fprintf_unfiltered().
7097 (_initialize_aix_thread): Add new command "set debug aix-thread".
7098
30413464
AC
70992002-07-15 Andrew Cagney <ac131313@redhat.com>
7100
7101 From Gerhard Tonn <TON@de.ibm.com>:
7102 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7103 instead of supply_register.
7104
7c43edc1
AC
71052002-07-15 Andrew Cagney <ac131313@redhat.com>
7106
7107 * dwarf2cfi.c: Include "gdb_assert.h".
7108 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7109 non-NULL.
7110 (update_context): Do not use __func__. Add missing ``break''.
7111 (update_context): Do not use __func__.
7112
9364a0ef
EZ
71132002-07-15 Elena Zannoni <ezannoni@redhat.com>
7114
7115 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7116 and its setting. Set gdbarch instruction printing functions
7117 directly. For non-rs6000 case use new function
7118 gdb_print_insn_powerpc.
7119 (gdb_print_insn_powerpc): New function.
7120
3fbeef0b
AC
71212002-07-13 Andrew Cagney <ac131313@redhat.com>
7122
92eb23c5 7123 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
7124 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7125 * configure.tgt: Mark d30v-*-* as obsolete.
7126 * d30v-tdep.c: Mark file as obsolete.
7127 * config/d30v/d30v.mt: Ditto.
7128 * config/d30v/tm-d30v.h: Ditto.
7129
aacb1f0a
AS
71302002-07-13 Aidan Skinner <aidan@velvet.net>
7131
7132 * ada-tasks.c (add_task_entry): replace calls to
7133 malloc() with xmalloc
7134 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7135
7136 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7137 ada_finish_decode_line_1, all_sals_for_line
7138 ada_breakpoint_rewrite): replace calls to free() with xfree()
7139
c11d79f2
KB
71402002-07-12 Kevin Buettner <kevinb@redhat.com>
7141
7142 From Nicholas Duffek (with minor changes by Martin Hunt,
7143 Louis Hamilton, and Kevin Buettner):
7144 * aix-thread.c: New file.
7145
8e19ed76
PS
71462002-07-12 Petr Sorfa <petrs@caldera.com>
7147
7148 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7149 complaint for invalid attribute class or form.
7150 (read_func_scope): DW_AT_frame_base
7151 better handling of DW_AT_block*.
7152 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7153 better handling of DW_AT_block*.
7154 (read_common_block): DW_AT_location
7155 better handling of DW_AT_block*.
7156 (read_partial_die): DW_AT_location better handling
7157 of DW_AT_block*.
7158 (new_symbol): DW_AT_external better handling of
7159 DW_AT_block*. Proper initialization of variable
7160 "addr".
7161 (attr_form_is_block): New function that returns true
7162 if the attribute's form is of DW_FORM_block*.
7163
295401f7
DJ
71642002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7165
7166 * valops.c (find_method_list): Remove comment about
7167 removed STATIC_MEMFUNCP argument.
7168 (value_find_oload_method_list): Likewise.
7169
e42dc924
KB
71702002-07-12 Kevin Buettner <kevinb@redhat.com>
7171
7172 From Nicholas Duffek:
7173 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7174 target_new_objfile_hook.
7175
6904b546
KB
71762002-07-12 Kevin Buettner <kevinb@redhat.com>
7177
7178 From Nicholas Duffek:
7179 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7180 csect.
7181
53fe9346
AC
71822002-07-12 Andrew Cagney <cagney@redhat.com>
7183
7184 * MAINTAINERS: Mention --enable-sim-build-warnings.
7185 (m68hc11-elf): Disable sim build warnings.
7186 (m32r-elf): Mark as broken obsolete candidate.
7187 (x86_64-linux-gnu): Mark as buildable with -Werror.
7188 (arm-elf): Change -w to ``,'' which enables warnings but not
7189 -Werror.
7190
af5f3db6
AC
71912002-07-12 Andrew Cagney <ac131313@redhat.com>
7192
7193 * bcache.h: Update copyright.
7194 (struct bstring, struct bcache): Move definition to "bcache.c".
7195 Replaced by opaque declaration.
7196 (bcache_xfree): Replace free_bcache.
7197 (bcache_xmalloc, bcache_memory_used): Declare.
7198
7199 * bcache.c: Update copyright.
7200 (struct bstring, struct bcache): Moved to here from "bcache.h".
7201 Update comments.
7202 (bcache_xmalloc, bcache_memory_used): New functions.
7203 (bcache_xfree): Replace function free_bcache.
7204
7205 * Makefile.in (objfiles.o): Add $(bcache_h).
7206 (objfiles_h): Remove $(bcache_h).
7207 (symfile.o): Add $(bcache_h).
7208
7209 * symmisc.c: Update copyright.
7210 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7211 (print_objfile_statistics): Use bcache_memory_used.
7212
7213 * symfile.c: Include "bcache.h".
7214 (reread_symbols): Use bcache_xfree.
7215 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7216 (add_psymbol_to_list): Pass psymbol_cache by value.
7217 (add_psymbol_with_dem_name_to_list): Ditto.
7218
7219 * objfiles.h: Update copyright.
7220 (struct bcache): Declare opaque. Do not include "bcache.h".
7221 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7222 bcache'' pointers.
7223 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7224
7225 * objfiles.c: Include "bcache.h". Update copyright.
7226 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7227 macro_cache.
7228 (free_objfile): Use bcache_xfree.
7229
444199e7
GS
72302002-07-11 Grace Sainsbury <graces@redhat.com>
7231
7232 * monitor.c (monitor_fetch_register): Make name a constant.
7233 (monitor_store_register): Same.
7234
261397f8
DJ
72352002-07-11 Daniel Jacobowitz <drow@mvista.com>
7236
7237 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7238 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7239 (finish_block) For non-function blocks, hash the symbol table. For
7240 function blocks, mark the symbol table as unhashed.
7241 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7242 (msymbol_hash_iw): Likewise.
7243 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7244 value.
7245 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7246 (lookup_minimal_symbol): Likewise for both.
7247 * symtab.h (struct block): Add `hashtable' flag. Comment the
7248 hashtable.
7249 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7250 (ALL_BLOCK_SYMBOLS): Update.
7251 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7252 (struct symbol): Add `hash_next' pointer.
7253 * symtab.c (lookup_block_symbol): Search using the hash table when
7254 possible.
7255 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7256 (search_symbols, find_addr_symbol): Likewise.
7257
7258 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7259 (read_dst_symtab): Likewise.
7260 * jv-lang.c (get_java_class_symtab): Likewise.
7261 * mdebugread.c: Include "gdb_assert.h".
7262 (shrink_block): Assert that the block being modified is not hashed.
7263 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7264 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7265 symbols.
7266 (dump_symtab): Recognize hashed blocks.
7267 * printcmd.c (print_frame_args): Assert that function blocks do not
7268 have hashed symbol tables.
7269 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7270 (fill_in_ada_prototype, debug_print_block): Likewise.
7271 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7272
6f0eaa01
CV
72732002-07-11 Corinna Vinschen <vinschen@redhat.com>
7274
7275 * stack.c (print_frame): Use result of frame_address_in_block()
7276 instead of fi->pc when evaluating symbols.
7277 (backtrace_command_1): Ditto.
7278
a208b0cb
AC
72792002-07-11 Andrew Cagney <cagney@redhat.com>
7280
7281 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7282 Make static.
7283
7284 * arm-tdep.c (arm_register_name): Make return type constant.
7285
a6b6b089
AC
72862002-07-10 Andrew Cagney <ac131313@redhat.com>
7287
5ae5f592
AC
7288 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7289 prototype.
7290 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7291 * s390-tdep.c (s390_fp_regnum): Ditto.
7292 (s390_read_fp): Ditto.
7293 (s390_pop_frame): Ditto.
7294 (_initialize_s390_tdep): Ditto.
7295 * remote.c (get_remote_state): Ditto.
7296 * procfs.c (mappingflags): Ditto.
7297 * memattr.c (_initialize_mem): Ditto.
7298 * mcore-tdep.c (mcore_pop_frame): Ditto.
7299 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7300 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7301 * language.c (set_case_str): Ditto.
7302 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7303 * frv-tdep.c (new_variant): Ditto.
7304 (frv_stopped_data_address): Ditto.
7305 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7306 (context_alloc): Ditto.
7307 (frame_state_alloc): Ditto.
7308 (unwind_tmp_obstack_init): Ditto.
7309 (unwind_tmp_obstack_free): Ditto.
7310 (cfi_read_fp): Ditto.
7311 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7312 (cris_pop_frame): Ditto.
7313 * c-lang.c (scanning_macro_expansion): Ditto.
7314 (finished_macro_expansion): Ditto.
7315 (c_preprocess_and_parse): Ditto.
7316 * gdbarch.sh: Ditto.
7317 * gdbarch.h, gdbarch.c: Regenerate.
7318 * config/mn10200/tm-mn10200.h: Adjust indentation.
7319 * target.c: Adjust indentation.
7320 * symtab.h: Adjust indentation.
7321 * stabsread.h: Adjust indentation.
7322 * remote-es.c: Adjust indentation.
7323 * os9kread.c: Adjust indentation.
7324
73252002-07-10 Andrew Cagney <ac131313@redhat.com>
7326
a6b6b089
AC
7327 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7328 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7329
a1789893
GS
73302002-07-10 Grace Sainsbury <graces@redhat.com>
7331
7332 * NEWS: Mention m68k, mcore multi-arching.
7333 * MAINTAINERS: Change status of m68k, mcore to reflect
7334 multi-arching.
7335
02f0d45d
DJ
73362002-07-10 Daniel Jacobowitz <drow@mvista.com>
7337
7338 * valops.c (find_overload_match): Free oload_syms.
7339
f15f768e
JB
73402002-07-09 Joel Brobecker <brobecker@gnat.com>
7341
7342 Define HAVE_SYS_PROC_H if sys/proc.h exists
7343 * configure.in: Add check for sys/proc.h
7344 * config.in: Regenerate.
7345 * configure: Regenerate.
7346
902a7139
GS
73472002-07-09 Grace Sainsbury <graces@redhat.com>
7348
7349 * config/m68k/tm-m68k.h: Remove macros wrapped in
7350 #if !GDB_MULTI_ARCH.
7351
a534e424
AC
73522002-07-08 Andrew Cagney <ac131313@redhat.com>
7353
7354 * config.in, configure: Regenerate.
7355
9b94f7bf
MK
73562002-07-08 Mark Kettenis <kettenis@gnu.org>
7357
7358 * dwarf2cfi.c: Include "gcore.h".
7359 (execute_stack_op): Fix implementation of the
7360 DW_OP_deref and DW_OP_deref_size operators by letting do their
7361 lookup in the target.
7362
1d34db41
MK
73632002-07-07 Mark Kettenis <kettenis@gnu.org>
7364
7365 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7366 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7367 tdep->sc_sp_offset.
7368
79d5b63a
DJ
73692002-07-05 Daniel Jacobowitz <drow@mvista.com>
7370
7371 Fix PR gdb/595, gdb/602
7372 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7373 Don't call value_cast, just read the vtable pointer; update comments
7374 to match.
7375
3bb912e8
GS
73762002-07-05 Grace Sainsbury <graces@redhat.com>
7377
7378 * config/mcore/tm-mcore.h: Remove file.
7379 * config/mcore/mcore.mt: Remove definition of TM_FILE
7380 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7381
ca39387d
MK
73822002-07-05 Mark Kettenis <kettenis@gnu.org>
7383
7384 * i386bsd-tdep.c: Include "gdb_string.h".
7385
efdc1108
GS
73862002-07-04 Grace Sainsbury <graces@redhat.com>
7387
7388 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7389 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7390 mcore-tdep.
7391 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7392 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7393 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7394 (RETVAL_REGNUM): Move macros from tm-mcore.h
7395 (mcore_reg_struct_has_addr): New function.
7396 (mcore_gdbarch_init): Added initializations for the macros removed
7397 from tm-mcore.h.
7398
bb21884d
MK
73992002-07-04 Mark Kettenis <kettenis@gnu.org>
7400
7401 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7402 traditonal string branding within the ELF header.
7403
228c6d41
DJ
74042002-07-04 Daniel Jacobowitz <drow@mvista.com>
7405
7406 * symtab.c (remove_params): New function.
7407 (make_symbol_overload_list): Use it instead of cplus_demangle.
7408 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7409
2404952e
MK
74102002-07-04 Mark Kettenis <kettenis@gnu.org>
7411
e5e4acad
MK
7412 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7413
baadce09
MK
7414 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7415 New variables.
7416 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7417 and tdep->sigtramp_end.
7418 * i386obsd-nat.c: New file.
7419 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7420
2404952e
MK
7421 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7422 Don't call get_current_frame().
7423
9b4f1ba7
PM
74242002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7425
7426 * i386-nat.c (child_post_startup_inferior): New function
7427 calling i386_cleanup_dregs if
7428 I386_USE_GENERIC_WATCHPOINTS is defined.
7429 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7430 conditional to acknowledge that i386-nat.c has its
7431 own child_post_startup_inferior function.
7432
c0d1d883
MK
74332002-07-04 Mark Kettenis <kettenis@gnu.org>
7434
00f8375e
MK
7435 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7436 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7437 instead of MAX_REGISTER_RAW_SIZE.
7438 (i386_extract_return_value, i386_extract_struct_value_address):
7439 Convert to use regcache.
7440 (i386_gdbarch_init): Set max_register_raw_size and
7441 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7442 Set extract_return_value and extract_struct_value_address instead
7443 of their deprecated variants.
7444
c0d1d883
MK
7445 Convert i386 target to generic dummy frames.
7446 * i386-tdep.c: Include "symfile.h".
7447 (i386_frameless_signal_p): Consider a function to be frameless if
7448 the pc points at the first instruction of the function.
7449 (i386_frame_chain): Handle (generic) call dummies.
7450 (i386_frame_saved_pc): Likewise.
7451 (i386_frame_init_saved_regs): Remove code dealing with call
7452 dummies on the stack.
7453 (i386_push_dummy_frame): Removed.
7454 (i386_call_dummy_words): Removed.
7455 (i386_fix_call_dummy): Removed.
7456 (i386_push_return_address): New function.
7457 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7458 parameter, and don't call get_current_frame.
7459 (i386_pop_frame): New function.
7460 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7461 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7462 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7463 call_dummy_length to 0, set call_dummy_words to NULL, set
7464 sizeof_call_dummy_words to 0, set fix_call_dummy to
7465 generic_fix_call_dummy, set pc_in_call_dummy to
7466 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7467 generic_push_dummy_frame, set push_return_address to
7468 i386_push_return_address and set frame_chain_valid to
7469 generic_file_frame_chain_valid.
7470
049ee0e4
AC
74712002-07-03 Andrew Cagney <ac131313@redhat.com>
7472
7473 * gdbarch.sh (struct regcache): Add opaque declaration.
7474 (EXTRACT_RETURN_VALUE): New architecture method.
7475 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7476 * gdbarch.h, gdbarch.c: Regenerate.
7477 * arch-utils.c (legacy_extract_return_value): New function.
7478 * arch-utils.h (legacy_extract_return_value): Declare.
7479 * values.c (value_being_returned): Re-enable code handling
7480 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7481 deprecated_grub_regcache_for_registers call to block handling
7482 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7483 (EXTRACT_RETURN_VALUE): Do not define.
7484
4e0d9804
GS
74852002-07-03 Grace Sainsbury <graces@redhat.com>
7486
7487 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7488 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7489 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7490 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7491 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7492 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7493 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7494 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7495 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7496 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7497 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7498 argument so the function fits the prototype in the architecture
7499 vector.
7500 (mcore_pop_frame): Remove argument so the function fits the
7501 prototype. Use get_current_frame instead of the argument.
7502 (mcore_push_arguments): Change type of struct_return so the
7503 function can be used in the architecture vector.
7504 (mcore_store_struct_return): Add.
7505 (mcore_frame_init_saved_regs): Add.
7506 (mcore_gdbarch_init): Add function calls to replace the macros
7507 removed from tm-mcore.h
7508
36160dc4
AC
75092002-07-03 Andrew Cagney <ac131313@redhat.com>
7510
7511 * infcmd.c (print_return_value): Remove compatibility code calling
7512 deprecated_grub_regcache_for_registers.
7513
7514 * values.c: Include "regcache.h".
7515 (value_being_returned): Update. Use
7516 deprecated_grub_regcache_for_registers to extract the register
7517 buffer address.
7518 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7519 ``struct regcache''.
7520 * Makefile.in (values.o): Add dependency on $(regcache_h).
7521
7522 * inferior.h (run_stack_dummy): Change type of second parameter to
7523 a ``struct regcache''.
7524 * valops.c (hand_function_call): Change type of retbuf to ``struct
7525 regcache''. Allocate using regcache_xmalloc, clean using
7526 make_cleanup_regcache_xfree.
7527 * infcmd.c (run_stack_dummy): Update. Use
7528 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7529
7530 * regcache.c (do_regcache_xfree): New function.
7531 (make_cleanup_regcache_xfree): New function.
7532 * regcache.h (make_cleanup_regcache_xfree): Declare.
7533
e64d9b3d
MH
75342002-07-03 Martin M. Hunt <hunt@redhat.com>
7535
4dd79c29
MH
7536 * event-top.c (command_line_handler): Don't read past
7537 beginning of buffer.
e64d9b3d 7538
4dd79c29
MH
75392002-07-03 Martin M. Hunt <hunt@redhat.com>
7540
e64d9b3d
MH
7541 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7542 struct frame_id.
7543 (varobj_create): Store frame_id for root.
7544 (varobj_gen_name): Use xasprintf.
7545 (varobj_update): Save and restore frame using get_frame_id() and
7546 frame_find_by_id().
7547 (create_child): Use xasprintf.
7548 (new_root_variable): Initialize frame_id.
7549 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7550 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7551 to prevent memory leak.
7552
26e6c56a
AC
75532002-07-03 Andrew Cagney <ac131313@redhat.com>
7554
7555 * valops.c (hand_function_call): Move declaration of retbuf to
7556 start of function, allocate using malloc, add a cleanup but before
7557 the inf_status cleanup, cleanup the buffer. Rename local variable
7558 old_chain to inf_status_cleanup.
7559
f436dd25
MH
75602002-07-03 Martin M. Hunt <hunt@redhat.com>
7561
7562 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7563
7564 * cli/cli-decode.c (cmd_func_p): New function.
7565 (cmd_func): New function.
7566
7567 * command.h: Add cmd_func() and cmd_func_p().
7568
4cfe2084
GS
75692002-07-03 Grace Sainsbury <graces@redhat.com>
7570
7571 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7572 (REGISTER_SIZE): Remove.
7573 (MAX_REGISTER_RAW_SIZE): Remove.
7574 (REGISTER_VIRTUAL_TYPE): Remove.
7575 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7576 (REGISTER_NAME): Remove.
7577 (USE_GENERIC_DUMMY_FRAMES): Remove.
7578 (CALL_DUMMY): Remove.
7579 (CALL_DUMMY_START_OFFSET): Remove.
7580 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7581 (CALL_DUMMY_LOCATION): Remove.
7582 (FIX_CALL_DUMMY): Remove.
7583 (CALL_DUMMY_ADDRESS): Remove.
7584 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7585 (SAVE_DUMMY_FRAME_TOS): Remove.
7586 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7587 (mcore_register_virtual_type): New function.
7588 (mcore_register_byte): New function.
7589 (mcore_register_size): New function.
7590 (mcore_register_name): New function.
7591 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7592 macros removed from tm-mcore.h.
7593 (mcore_dump_tdep): Add.
7594 (_initialize_mcore_tdep): Add gdbarch_register call.
7595
4fd667e9
MK
75962002-07-03 Mark Kettenis <kettenis@gnu.org>
7597
7598 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7599 frameless_look_for_prologue, such that we actually call this
7600 function.
7601
42f99ac2
JB
76022002-07-02 Joel Brobecker <brobecker@gnat.com>
7603
7604 * frame.h (frame_address_in_block): New function.
7605
7606 * blockframe.c (frame_address_in_block): New function extracted
7607 from get_frame_block().
7608 (get_frame_block): Use frame_address_in_block().
7609 (block_innermost_frame): Use frame_address_in_block() to match
7610 the frame pc address against the block boundaries rather than
7611 the frame pc directly. This prevents a failure when a frame pc
7612 is actually a return-address pointing immediately after the end
7613 of the given block.
7614
103a1597 76152002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
7616
7617 * MAINTAINERS: Add self under write after approval.
7618
76192002-07-02 Grace Sainsbury <graces@redhat.com>
7620
103a1597
GS
7621 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7622 used in architecture vector. The default is
7623 m68k_local_breakpoint_from_pc.
7624 (m68k_local_breakpoint_from_pc): Add.
7625 (enum): Add register numbers from tm-m68k.h.
7626 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7627 vector.
7628 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7629 GDB_MULTI_ARCH_PARTIAL.
7630 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7631 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7632 m68k-tdep.c.
7633 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7634 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7635 to enum in m68k-tdep.c
7636
7a5a0534
JB
76372002-07-02 Joel Brobecker <brobecker@gnat.com>
7638
7639 * solib-osf.c (open_map): Compute the list of shared libraries
7640 loaded by the inferior, rather than the list of libraries loaded
7641 by GDB itself. Otherwise, GDB ends up reading the symbols from
7642 the wrong shared libraries...
7643
6f558d74
MK
76442002-07-02 Mark Kettenis <kettenis@gnu.org>
7645
b7d15bf7
MK
7646 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7647 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7648 macros.
7649 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7650 Remove functions.
7651 (FRAMELESS_SIGNAL): Remove function.
7652 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7653 i386_linux_saved_pc_after_call): Removed.
7654 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7655 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7656 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7657
6bff26de
MK
7658 * i386-tdep.c (i386_frameless_signal_p): New function.
7659 (i386_frame_chain): Deal with frameless signals.
7660 (i386_sigtramp_saved_sp): New function.
7661 (i386_frame_saved_pc): Deal with frameless signals.
7662 (i386_saved_pc_after_call): Make sure the correct value is
7663 returned just after entry into a sigtramp.
7664 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7665 i386fbsd4_sc_sp_offset): New variables.
7666 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7667 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7668 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7669 similiar to what we already did for sc_pc_offset.
7670 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7671 tdep->sc_sp_offset.
7672
6f558d74
MK
7673 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7674
145564b7
ML
76752002-07-02 Michal Ludvig <mludvig@suse.cz>
7676
7677 * config/i386/tm-x86-64linux.h: New.
7678 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7679 definitions.
7680 * config/i386/nm-x86-64.h: Rename to ...
7681 * config/i386/nm-x86-64linux.h: ... this one.
7682 * config/i386/x86-64linux.mh: Reflect the above change.
7683
3a1e71e3
MK
76842002-07-01 Mark Kettenis <kettenis@gnu.org>
7685
21d0e8a4
MK
7686 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7687 with sigcontext_addr. Add sc_sp_offset.
7688 (i386bsd_sigtramp_saved_pc): Remove prototype.
7689 (i386bsd_sicontext_addr): Add prototype.
7690 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7691 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7692 (i386_svr4_sigtramp_saved_pc): Removed.
7693 (i386_svr4_sigcontext_addr): New function.
7694 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7695 Initialize tdep->sigcontext_addr instead. Initialize
7696 tdep->sc_pc_offset and tdep->sc_sp_offset.
7697 (i386_gdbarch_init): Likewise.
7698 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7699 any more.
7700 (i386bsd_sigtramp_saved_pc): Remove function.
7701 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7702 Initialize tdep->sigcontext_addr instead. Initialize
7703 tdep->sc_pc_offset.
7704 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7705 of tdep->sigtramp_saved_pc.
7706 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7707 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7708 instead.
7709
3a1e71e3
MK
7710 * i386-tdep.c (i386_frameless_function_invocation,
7711 i386_frame_num_args, i386_frame_init_saved_regs,
7712 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7713 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7714 i386_extract_return_value, i386_store_return_value,
7715 i386_extract_struct_value_address, i386_register_virtual_type,
7716 i386_register_convertible, i386_register_convert_to_virtual,
7717 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7718 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7719 static.
7720
52e9098c
MK
77212002-07-01 Mark Kettenis <kettenis@gnu.org>
7722
77b13a25
MK
7723 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7724
52e9098c
MK
7725 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7726 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7727 this macro. Include "value.h".
7728
1b372fff
AS
77292002-06-30 Aidan Skinner <aidan@velvet.net>
7730
7731 * ada-exp.tab.c: remove as it's a generated file
7732 * ada-lex.c: remove as it's a generated file
7733
9c5045b5
MK
77342002-06-30 Mark Kettenis <kettenis@gnu.org>
7735
4a93c5bb
MK
7736 * config/i386/tm-i386.h (struct frame_info, struct
7737 frame_saved_regs, struct value, struct type): Remove forward
7738 declarations.
7739
322d4fe0
MK
7740 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7741 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7742 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7743 (FILL_FPXREGSET): Define.
7744
fdd8263d
MK
7745 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7746
482e577b
MK
7747 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7748 i[3456]86-*-netbsd* case.
7749 * config/i386/tm-obsd.h: Removed.
7750 * config/i386/obsd.mt: Removed.
7751 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7752 core-aout.o.
7753 (MH_CFLAGS): Add -DYYDEBUG=0.
7754
6916549a
MK
7755 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7756 i386nbsd_sc_pc_offset on OpenBSD too.
7757
9c5045b5
MK
7758 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7759 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7760 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7761 define.
7762 * i386bsd-tdep.c: Include "arch-utils.h".
7763 (i386bsd_aout_in_solib_call_trampoline): New function.
7764 (i386bsd_init_abi): Set in_solib_call_trampoline to
7765 i386bsd_aout_in_solib_call_trampoline.
7766 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7767 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7768
aa84d1bb
AC
77692002-06-28 Andrew Cagney <ac131313@redhat.com>
7770
7771 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7772 (struct obstack, struct bcache): Add opaque declarations.
7773 * Makefile.in (macrotab_h): Update
7774
b4d83933
AC
77752002-06-28 Andrew Cagney <ac131313@redhat.com>
7776
7777 * blockframe.c (generic_find_dummy_frame): Change return type to
7778 ``struct regcache''.
7779 (struct dummy_frame): Replace field ``registers'' with regcache, a
7780 struct regcache object.
7781 (generic_find_dummy_frame): Update.
7782 (generic_push_dummy_frame): Update. Use regcache_xfree,
7783 regcache_xmalloc and regcache_cpy.
7784 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7785 regcache_xfree.
7786 (deprecated_generic_find_dummy_frame): Update.
7787 (generic_read_register_dummy): Update. Use
7788 regcache_read_as_address.
7789 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7790 (generic_get_saved_register): Update. Use regcache_read.
7791
08c0b5bc
AC
77922002-06-28 Andrew Cagney <ac131313@redhat.com>
7793
7794 * Makefile.in (objfiles_h): Add $(bcache_h).
7795 * objfiles.h: Include "bcache.h".
7796
7797 * Makefile.in (symtab_h): Remove $(bcache_h).
7798 * symtab.h: Do not include "bcache.h".
7799
1f89801a
AC
78002002-06-28 Andrew Cagney <ac131313@redhat.com>
7801
7802 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7803 generic_func_frame_chain_valid.
7804
b9644b58
DB
78052002-06-28 David O'Brien <obrien@FreeBSD.org>
7806
7807 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7808 * config/i386/tm-fbsd.h: Likewise.
7809
dd486634
AC
78102002-06-28 Andrew Cagney <ac131313@redhat.com>
7811
7812 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7813 generic_unwind_get_saved_register.
7814
0b434a00
AC
78152002-06-27 Andrew Cagney <ac131313@redhat.com>
7816
7817 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7818 * regcache.c (supply_register): Add missing argument to
7819 register_buffer call.
7820
f30e5a77
AC
78212002-06-27 Andrew Cagney <ac131313@redhat.com>
7822
7823 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7824 Solaris /bin/grep does not not like it. From Peter Schauer.
7825
9f064c95
TT
78262002-06-26 Tom Tromey <tromey@redhat.com>
7827
7828 * command.h (add_setshow_cmd): Declare.
7829 (add_setshow_cmd_full): Declare.
7830 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7831 returns void. Use add_setshow_cmd_full.
7832 (add_setshow_cmd_full): New function.
7833 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7834 (add_setshow_boolean_cmd): Likewise.
7835
099c7589
JT
78362002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7837
7838 * config/vax/tm-vax.h: Protect from multiple inclusion.
7839 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7840 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7841 * config/vax/tm-vaxbsd.h: ...here. New file.
7842 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7843
1d049c5e
JT
78442002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7845
7846 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7847 (BELIEVE_PCC_PROMOTION): Remove.
7848 (AP_REGNUM): Move to...
7849 * config/vax/nm-vax.h: ...here.
7850 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7851 (vax_breakpoint_from_pc): New function.
7852 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7853 and gdbarch_believe_pcc_promotion.
7854
4791e091
JT
78552002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7856
7857 * Makefile.in (vax_tdep_h): Define.
7858 (vax-tdep.o): Use $(vax_tdep_h).
7859 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7860 (vax_dump_tdep): New function.
7861 (_initialize_vax_tdep): Register vax_dump_tdep.
7862 * vax-tdep.h: Include osabi.h.
7863 (struct gdbarch_tdep): New.
7864
da130f98
AC
78652002-06-26 Andrew Cagney <cagney@redhat.com>
7866
7867 * frame.h (deprecated_generic_find_dummy_frame): Rename
7868 generic_find_dummy_frame.
7869 * blockframe.c (generic_find_dummy_frame): Make static.
7870 (deprecated_generic_find_dummy_frame): New function.
7871 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7872 generic_find_dummy_frame with deprecated_find_dummy_frame.
7873 (sh64_nofp_frame_init_saved_regs): Ditto.
7874 (sh_fp_frame_init_saved_regs): Ditto.
7875 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7876 (s390_frame_chain): Ditto.
7877 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7878
6300c360
GS
78792002-06-26 Grace Sainsbury <graces@redhat.com>
7880
7881 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7882 gdbarch vector are at the top.
7883 (NUM_REGS): Remove.
7884 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7885 (FRAME_ARGS_ADDRESS): Remove.
7886 (FRAME_LOCALS_ADDRESS): Remove.
7887 (FRAME_NUM_ARGS): Remove.
7888 (FRAME_ARGS_SKIP): Remove.
7889 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7890 (m68k_gdbarch_init): Add gdbarch initializations for macros
7891 undefined in tm-m68k.h
7892
1c617db8
GS
78932002-06-26 Grace Sainsbury <graces@redhat.com>
7894
7895 * monitor.h: Add the function regname to monitor_ops
7896 structure. This way NUM_REGS does not have to be a constant.
7897 * monitor.c (monitor_fetch_register): Added support for regname
7898 function. The function is called if the array regnames is NULL.
7899 (monitor_store_register): Same.
da130f98
AC
7900 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7901 regnames array.
1c617db8
GS
7902 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7903 cpu32bug_cmds.regname to point to new function.
7904 * abug-rom.c (abug_regname): Same as above.
7905 (init_abug_cmds): Same.
7906 * dbug-rom.c (dbug_regname): Same as above.
7907 (init_dbug_cmds): Same.
7908 * remote-est.c (est_regname): Same.
7909 (init_est_cmds): Same.
7910 * rom68k-rom.c (rom68k_regname): Same.
7911 (init_rom68k_cmds): Same.
7912
ea9365bb
TT
79132002-06-25 Tom Tromey <tromey@redhat.com>
7914
7915 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7916
72cec141
AC
79172002-06-25 Andrew Cagney <cagney@redhat.com>
7918
7919 * infrun.c (stop_registers): Change variable's type to ``struct
7920 regcache'''.
7921 (xmalloc_inferior_status): Delete function.
7922 (free_inferior_status): Delete function.
7923 (normal_stop): Use regcache_cpy.
7924 (struct inferior_status): Change type of fields ``stop_registers''
7925 and ``registers'' to ``struct regcache''.
7926 (write_inferior_status_register): Use regcache_write.
7927 (save_inferior_status): Instead of calling
7928 xmalloc_inferior_status, allocate the inf_status buffer directly.
7929 Use regcache_dup_no_passthrough and regcache_dup to save the
7930 buffers.
7931 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7932 Replace the stop_registers regcache instead of overriding it. Use
7933 regcache_xfree. Instead of calling free_inferior_status, xfree
7934 the buffer directly.
7935 (discard_inferior_status): Use regcache_xfree. Instead of calling
7936 free_inferior_status, xfree the buffer directly.
7937 (build_infrun): Use regcache_xmalloc.
7938 (_initialize_infrun): Delete redundant call to build_infrun.
7939
7940 * Makefile.in (infcmd.o): Add $(regcache_h).
7941
7942 * infcmd.c: Include "regcache.h".
7943 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7944 obtain the address of `stop_registers' register buffer.
7945 (print_return_value): Ditto.
7946
7947 * inferior.h (struct regcache): Add opaque declaration.
7948 (stop_registers): Change variable's declared type to ``struct
7949 regcache''.
7950
defc6f8c
TT
79512002-06-24 Tom Tromey <tromey@redhat.com>
7952
c0e624e7
TT
7953 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7954 * target.c (initialize_targets): Fixed typo in
7955 trust-readonly-sections `show' documentation.
7956
defc6f8c
TT
7957 * main.c: Marked all strings with _().
7958
2b236d82
DH
79592002-06-24 Don Howard <dhoward@redhat.com>
7960
7961 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7962 that means max CORE_ADDR+1.
7963 (lookup_mem_region): Ditto.
7964 (mem_info_command): Ditto.
7965
942dc0e9
GS
79662002-06-24 Grace Sainsbury <graces@redhat.com>
7967
7968 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7969 (REGISTER_BYTES_OK): Remove.
7970 (REGISTER_BYTES): Remove.
7971 (STORE_STRUCT_RETURN): Remove.
7972 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7973 (STORE_RETURN_VALUE): Remove.
7974 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7975 (FRAME_CHAIN): Remove.
7976 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7977 (FRAME_SAVED_PC): Remove.
7978 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7979 (m68k_store_struct_return): Add.
7980 (m68k_deprecated_extract_return_value): Add.
7981 (m68k_deprecated_extract_struct_value_address): Add.
7982 (m68k_store_return_value): Add.
7983 (m68k_frame_chain): Add.
7984 (m68k_frameless_function_invocation): Add.
7985 (m68k_frame_saved_pc): Add.
7986 (m68k_gdbarch_init): added set_gdbarch calls for new
7987 functions and deleted macros.
7988
03c30d4d
TT
79892002-06-23 Tom Tromey <tromey@redhat.com>
7990
7991 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7992 (ALLDEPFILES): Likewise.
7993 (udiheaders): Removed.
7994 (udip2soc.o): Likewise.
7995 (udi2go32.o): Likewise.
7996 (udr.o): Likewise.
7997 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7998
37e71372
AC
79992002-06-22 Andrew Cagney <ac131313@redhat.com>
8000
06a6ac57
AC
8001 * infrun.c (_initialize_infrun): Delete unnecessary call to
8002 build_infrun.
8003
37e71372
AC
8004 * regcache.h: Update comments describing the regcache_cpy family
8005 of functions.
8006 (regcache_save, regcache_restore): Delete declaration.
8007 (regcache_save_no_passthrough): Delete declaration.
8008 (regcache_restore_no_passthrough): Delete declaration.
8009 * regcache.c (regcache_save): Delete function.
8010 (regcache_save_no_passthrough): Delete function.
8011 (regcache_restore): Delete function.
8012 (regcache_restore_no_passthrough): Delete function.
8013
78f6d055
AC
80142002-06-21 Andrew Cagney <ac131313@redhat.com>
8015
8016 * config/m68k/tm-m68k.h: Fix typo.
8017 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8018 (m68k_frame_init_saved_regs): Declare.
8019
78b119cb
JB
80202002-06-21 Jim Blandy <jimb@redhat.com>
8021
8022 Remove some vestiges of Harris 88k support.
8023 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8024 register numbering quirk.
8025 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8026 odd symbols occurring in Harris 88k ELF targets.
8027
0fbb3da7
TT
80282002-06-21 Tom Tromey <tromey@redhat.com>
8029
8030 * gdb_locale.h: New file.
8031 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8032 (defs_h): Added gdb_locale.h.
8033 * configure, config.in: Rebuilt.
8034 * configure.in (PACKAGE): Define.
8035 * defs.h: Include gdb_locale.h.
8036 * main.c (captured_main): Call setlocale, bindtextdomain,
8037 textdomain.
8038
456f8b9d
DB
80392002-06-21 Dave Brolley <brolley@redhat.com>
8040
8041 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8042 * config/frv/frv.mt: New file.
8043 * config/frv/tm-frv.h: New file.
8044 * configure.tgt: Support frv-*-*.
8045 * Makefile.in (frv-tdep.o): New target.
8046 * frv-tdep.c: New file.
8047 * NEWS: Mention frv.
8048
cdd463f9
DB
80492002-06-21 Dave Brolley <brolley@redhat.com>
8050
8051 * MAINTAINERS: Add self to "Write After Approval" list.
8052
5d3ed2e3
GS
80532002-06-21 Grace Sainsbury <graces@redhat.com>
8054
8055 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8056 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8057 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8058 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8059 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8060
8061 * m68k-tdep.c: Include arch-utils.h
8062 (m68k_register_raw_size): Add.
8063 (m68k_register_virtual_size): Add.
8064 (m68k_register_virtual_type): Add.
8065 (m68k_register_name): Add.
8066 (m68k_stack_align): Add.
8067 (m68k_register_byte): Add.
8068 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8069 tm-m68k.h.
8070
7f8e7424
GS
80712002-06-21 Grace Sainsbury <graces@redhat.com>
8072
a2c6a6d5 8073 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
8074 m68k_find_saved_regs.
8075 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 8076 references to it with frame->saved_regs.
7f8e7424
GS
8077 (m68k_gdbarch_init): Added function calls to initialize the
8078 gdbarch structure.
a2c6a6d5
GS
8079 (m68k_fix_call_dummy): Add.
8080 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8081 (CALL_DUMMY): Remove.
8082 (CALL_DUMMY_LENGTH): Remove.
8083 (CALL_DUMMY_START_OFFSET): Remove.
8084 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8085 (FIX_CALL_DUMMY): Remove.
8086 (PUSH_DUMMY_FRAME): Remove.
8087 (POP_FRAME): Remove.
7f8e7424 8088
f461f5cf
PM
80892002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8090
8091 * parse.c (parse_fprintf): New function used to avoid calls to
8092 fprintf in bison parser generated debug code.
8093 * parser-defs.h: Declaration of new parse_fprintf function.
8094 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8095 Set YYDEBUG to 1 by default.
8096 Set YYFPRINTF as parse_fprintf.
8097
7f0c12ed
ML
80982002-06-21 Michal Ludvig <mludvig@suse.cz>
8099
8100 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8101 encoding anymore.
8102 (pointer_encoding, enum ptr_encoding): New.
8103 (execute_cfa_program): Take care about pointer encoding.
8104 (dwarf2_build_frame_info): Only call parse_frame_info for
8105 .debug_frame and .eh_frame.
8106 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8107 fixed augmentation handling, added relative addressing,
8108 ignore duplicate FDEs. Added comments.
19d833a2 8109 * dwarf2cfi.c: Reindented.
7f0c12ed 8110
87c4a039
EZ
81112002-06-20 Elena Zannoni <ezannoni@redhat.com>
8112
8113 * event-top.c (command_handler): Don't use space_at_cmd_start
8114 unless there is sbrk() on the host. Assign time and space data
8115 to union fields of the appropriate length.
8116
1cf877ad
ML
81172002-06-20 Michal Ludvig <mludvig@suse.cz>
8118
8119 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8120 x86_64_register_name. Return type changed to 'const char *'.
8121 (x86_64_register_name2nr): Rename to x86_64_register_number.
8122 (x86_64_gdbarch_init): Update to reflect the change.
8123 * x86-64-tdep.h: Ditto.
8124 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8125 (supply_fpregset): Ditto.
8126
3fadccb3
AC
81272002-06-19 Andrew Cagney <cagney@redhat.com>
8128
8129 * regcache.h: Update copyright.
8130 (struct regcache, struct gdbarch): Add opaque declarations.
8131 (current_regcache): Declare global variable.
8132 (regcache_read, regcache_write): Add gdbarch parameter.
8133 (regcache_save, regcache_save_no_passthrough)
8134 (regcache_restore, regcache_restore_no_passthrough)
8135 (regcache_dup, regcache_dup_no_passthrough)
8136 (regcache_cpy, regcache_cpy_no_passthrough)
8137 (deprecated_grub_regcache_for_registers)
8138 (deprecated_grub_regcache_for_register_valid)
8139 (regcache_valid_p): Add function declarations.
8140
8141 * regcache.c: Update copyright.
8142 (regcache_descr_handle): New global variable.
8143 (struct regcache_descr): Define.
8144 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8145 (regcache_descr, xfree_regcache_descr): New functions.
8146 (struct regcache): Define.
8147 (regcache_xmalloc, regcache_xfree): New functions.
8148 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8149 (regcache_dup, regcache_dup_no_passthrough): New functions.
8150 (regcache_valid_p, regcache_read_as_address): New functions.
8151 (deprecated_grub_regcache_for_registers): New function.
8152 (deprecated_grub_regcache_for_register_valid): New function.
8153 (current_regcache): New global variable.
8154 (register_buffer): Add regcache parameter. Update calls.
8155 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8156 (read_register_gen, write_register_gen): Update register_buffer
8157 call. Test for legacy_p instead of gdbarch_register_read_p or
8158 gdbarch_register_write_p.
8159 (regcache_collect): Update register_buffer call.
8160 (build_regcache): Rewrite. Use deprecated grub functions.
8161 (regcache_save, regcache_save_no_passthrough): New functions.
8162 (regcache_restore, regcache_restore_no_passthrough): New
8163 functions.
8164 (_initialize_regcache): Create the regcache_data_handle. Swap
8165 current_regcache global variable.
8166
8167 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8168 parameter to regcache_read and regcache_write calls.
8169 (sh4_register_read): Ditto.
8170 (sh64_pseudo_register_read): Ditto.
8171 (sh64_register_read): Ditto.
8172 (sh_pseudo_register_write): Ditto.
8173 (sh4_register_write): Ditto.
8174 (sh64_pseudo_register_write): Ditto.
8175 (sh64_register_write): Ditto.
8176
8177 * defs.h (XCALLOC): Define.
8178
152d9db6
GS
81792002-06-19 Grace Sainsbury <graces@redhat.com>
8180
8181 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8182 * m68k-tdep.c (m68k_gdbarch_init): Added.
8183 (m68k_dump_tdep): Added.
8184
170911c7
DJ
81852002-06-19 Daniel Jacobowitz <drow@mvista.com>
8186
8187 * ada-lang.c (fill_in_ada_prototype): Update comment.
8188
2e4ebe70
DJ
81892002-06-19 Daniel Jacobowitz <drow@mvista.com>
8190
8191 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8192 MIPS_ABI_LAST.
8193 (mips_abi_string, mips_abi_strings): New.
8194 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8195 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8196 tdep->mips_abi_string. Honor mips_abi_string. Default to
8197 O32 if no ABI is found.
8198 (mips_dump_tdep): Use mips_abi_strings.
8199 (mips_abi_update): New function.
8200 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8201 ``set mips abi'' and ``show mips abi''. Check the size of
8202 mips_abi_strings.
8203
16775908
AC
82042002-06-19 Andrew Cagney <cagney@redhat.com>
8205
8206 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8207 constant.
8208
5051bfa4 82092002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 8210
5051bfa4
JB
8211 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8212 current frame using only the first stack size adjustment. All
8213 subsequent size adjustments are not considered to be part of
8214 the "static" part of the current frame.
8215 Compute the address of the saved registers relative to the
8216 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8217 in use in this frame.
8218
56468235
DH
82192002-06-18 Don Howard <dhoward@redhat.com>
8220
8221 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8222 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8223 suggesting this solution.
8224
0b624158
AC
82252002-06-18 Andrew Cagney <ac131313@redhat.com>
8226
8227 * config/romp/xm-rtbsd.h: Delete file.
8228 * config/romp/rtbsd.mh: Delete file.
8229
221ea385
KS
82302002-06-18 Keith Seitz <keiths@redhat.com>
8231
8232 * breakpoint.c (condition_command): Post breakpoint_modify
8233 when a condition is added to an existing breakpoint.
8234 (commands_command): Likewise for commands.
8235 (set_ignore_count): Likewise for ignore counts.
8236 If no tty, do not simply return, still need to send event
8237 notification.
8238 (ignore_command): Only print a newline if the command came
8239 from a tty.
8240 Don't call breakpoints_changed, since this is now properly
8241 handled by set_ignore_count.
8242
5402eed1
AC
82432002-06-18 Andrew Cagney <cagney@redhat.com>
8244
8245 * MAINTAINERS: Note that cris-elf target can be compiled with
8246 -Werror.
8247 * cris-tdep.c (cris_register_name): Make return type constant.
8248 (cris_breakpoint_from_pc): Ditto.
8249
cc22880b
ML
82502002-06-18 Michal Ludvig <mludvig@suse.cz>
8251
8252 * frame.h (struct frame_info): Change type of context to
8253 'struct context'.
8254
fa88f677
AC
82552002-06-17 Andrew Cagney <cagney@redhat.com>
8256
8257 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8258 pointer.
8259 * gdbarch.h, gdbarch.c: Regenerate.
8260 * config/mips/tm-mips.h (mips_register_name): Update.
8261 * i386-tdep.h (i386_register_name): Update.
8262 * mips-tdep.c (mips_register_name): Update
8263 * alpha-tdep.c (alpha_register_name): Update.
8264 * arch-utils.c (legacy_register_name): Update.
8265 * arch-utils.h (legacy_register_name): Update.
8266 * avr-tdep.c (avr_register_name): Update.
8267 * ia64-tdep.c (ia64_register_name): Update.
8268 * i386-tdep.c (i386_register_name): Update.
8269 * sparc-tdep.c (sparc32_register_name): Update.
8270 (sparc64_register_name): Update.
8271 (sparclite_register_name): Update.
8272 (sparclet_register_name): Update.
8273 * sh-tdep.c (sh_generic_register_name): Update.
8274 (sh_sh_register_name): Update.
8275 (sh_sh3_register_name): Update.
8276 (sh_sh3e_register_name): Update.
8277 (sh_sh_dsp_register_name): Update.
8278 (sh_sh3_dsp_register_name): Update.
8279 (sh_sh4_register_name): Update.
8280 (sh_sh64_register_name): Update.
8281 * s390-tdep.c (s390_register_name): Update.
8282 * rs6000-tdep.c (rs6000_register_name): Update.
8283 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8284 (ns32k_register_name_32382): Update.
8285 * d10v-tdep.c (d10v_ts2_register_name): Update.
8286 (d10v_ts3_register_name): Update.
8287 * xstormy16-tdep.c (xstormy16_register_name): Update.
8288 * vax-tdep.c (vax_register_name): Update.
8289 * v850-tdep.c (v850_register_name): Update.
8290 * m68hc11-tdep.c (m68hc11_register_name): Update.
8291 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8292 (am33_register_name): Update.
8293
ea1e7ef6
GS
82942002-06-17 Grace Sainsbury <graces@redhat.com>
8295
8296 * m68k-tdep.c: Reindented.
8297
9b02dd1b
AC
82982002-06-17 Andrew Cagney <ac131313@redhat.com>
8299
8300 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8301 list of predefined types.
8302
8758dec1
MK
83032002-06-16 Mark Kettenis <kettenis@gnu.org>
8304
b6197528
MK
8305 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8306 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8307 REGISTER_CONVERT_TO_RAW): Remove defines.
8308 (i386_register_virtual_type, i386_register_convertible,
8309 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8310 Remove prototypes.
8311 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8312 macros mentioned above.
8313
82b47e62
MK
8314 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8315 (i386lynx_saved_pc_after_call): Remove prototype.
8316 * i386ly-tdep.c: Include "i386-tdep.h".
8317 (i386lynx_saved_pc_after_call): Make static. Use
8318 read_memory_nobpt instead of read_memory. Use
8319 read_memory_unsigned_integer instead of read_memory_integer.
8320 (i386lynx_init_abi): New function.
8321 (i386lynx_coff_osabi_sniffer): New function.
8322 (_initialize_i386bsd_tdep): New function.
8323
8758dec1
MK
8324 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8325 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8326 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8327 (i386_fix_call_dummy): Remove prototype.
8328 * i386-tdep.c (i386_call_dummy_words): New variable.
8329 (i386_gdbarch_init): Adjust for removal of the
8330 macros mentioned above.
8331
e9e68a56
AC
83322002-06-15 Andrew Cagney <ac131313@redhat.com>
8333
8334 * command.h (add_setshow_auto_boolean_cmd): Replace
8335 add_set_auto_boolean_cmd.
8336 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8337 add_set_auto_boolean_cmd.
8338 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8339 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8340 mask-address'' command.
8341 (show_mask_address): Add cmd parameter.
8342 * remote.c (add_packet_config_cmd): Update. Change type of
8343 set_func and show_func to cmd_sfunc_ftype.
8344 (_initialize_remote): Update `set remote Z-packet'
8345 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8346 (show_remote_protocol_e_packet_cmd): Ditto.
8347 (show_remote_protocol_E_packet_cmd): Ditto.
8348 (show_remote_protocol_P_packet_cmd): Ditto.
8349 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8350 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8351 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8352 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8353 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8354 (show_remote_protocol_Z_packet_cmd): Ditto.
8355 (show_remote_protocol_binary_download_cmd): Ditto.
8356 (show_remote_cmd): Pass NULL to all of above.
8357
fc08ec52
MK
83582002-06-15 Mark Kettenis <kettenis@gnu.org>
8359
8360 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8361 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8362 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8363 POP_FRAME): Remove defines.
8364 (i386_push_arguments, i386_store_struct_return,
8365 i386_extract_return_value, i386_store_return_value,
8366 i386_extract_struct_value_address, i386_push_dummy_frame,
8367 i386_pop_frame): Renove prototypes.
8368 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8369 macros mentioned above.
8370
e707bbc2
AC
83712002-06-15 Andrew Cagney <ac131313@redhat.com>
8372
8373 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8374 add_set_boolean_cmd.
8375 (add_setshow_cmd): New function.
8376 * command.h (add_setshow_boolean_cmd): Replace
8377 add_set_boolean_cmd.
8378 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8379 and ``set rdiromatzero''.
8380 * maint.c (_initialize_maint_cmds): Update commented out code.
8381 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8382 * target.c (initialize_targets): Update `set
8383 trust-readonly-sections'.
8384 * remote.c (_initialize_remote): Update `set remotebreak'.
8385
42fdc8df
MK
83862002-06-15 Mark Kettenis <kettenis@gnu.org>
8387
93924b6b
MK
8388 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8389 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8390 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8391 fit into multi-arch framework.
8392 (i386_breakpoint_from_pc): New function.
8393 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8394 above.
8395
42fdc8df
MK
8396 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8397 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8398 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8399 (i386_frameless_function_invocation, i386_frame_num_args,
8400 i386_frame_init_saved_regs): Remove prototypes.
8401 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8402 macros mentioned above.
8403
9773a94b
AC
84042002-06-15 Andrew Cagney <ac131313@redhat.com>
8405
8406 * cli/cli-decode.c (set_cmd_cfunc): Update.
8407 (set_cmd_sfunc): Update.
8408 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8409 (set_cmd_sfunc, set_cmd_cfunc): Update.
8410 * cli/cli-decode.h: Update.
8411
6e157172
MK
84122002-06-15 Mark Kettenis <kettenis@gnu.org>
8413
8414 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8415 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8416
7f19b9a2
AC
84172002-06-15 Andrew Cagney <ac131313@redhat.com>
8418
8419 * defs.h (auto_boolean): Declare enum.
8420 * command.h (cmd_auto_boolean): Delete enum.
8421 * mips-tdep.c (mask_address_var): Update.
8422 (mips_mask_address_p): Update.
8423 (show_mask_address): Update.
8424 * remote.c (struct packet_config): Update.
8425 (update_packet_config): Update.
8426 (show_packet_config_cmd): Update.
8427 (packet_ok): Update.
8428 (add_packet_config_cmd): Update.
8429 (_initialize_remote):
8430 * command.h: Update.
8431 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8432 (do_setshow_command): Update.
8433 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8434 * cli/cli-decode.h: Update.
8435
1cf88de5
MK
84362002-06-15 Mark Kettenis <kettenis@gnu.org>
8437
22ba8cf2
MK
8438 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8439 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8440 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8441 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8442 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8443 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8444
762c5349
MK
8445 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8446 list of DJGPP COFF targets.
8447
091198bb
MK
8448 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8449 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8450 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8451 (FP0_REGNUM): Remove define.
8452 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8453 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8454 (i386_register_virtual_size): Remove protoype.
8455 * i386-tdep.c (i386_register_virtual_size): Removed.
8456 (i386_extract_return_value, i386_store_return_value): Use
8457 FP0_REGNUM instead of NUM_FREGS to determine whether the
8458 floating-point registers are available.
8459 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8460 Adjust for removal of macros mentioned above.
8461
84622002-06-15 Mark Kettenis <kettenis@gnu.org>
8463
fcc9bf01
MK
8464 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8465 comments.
8466 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8467 Remove prototypes.
8468 (supply_gregset, fill_gregset): Remove use of register keyword and
8469 remove declaration for regmap. Use I386_NUM_GREGS instead of
8470 NUM_REGS and NUM_FREGS.
8471 (FPREGSET_FSAVE_OFFSET): Remove.
8472 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8473 NUM_FREGS to determine whether the floating-point registers are
8474 available.
8475
65e78234
MK
8476 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8477 gnu_store_registers): Replace usage of NUM_GREGS with
8478 I386_NUM_GREGS.
8479
98df6387
MK
8480 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8481 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8482 usage of NUM_GREGS with I386_NUM_GREGS.
8483
099a9414
MK
8484 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8485
57976e88
MK
8486 * i386bsd-nat.c: Include "i386-tdep.h".
8487 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8488 I386_NUM_GREGS.
8489
b335f4a6
MK
8490 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8491 and associated comment. They no longer make any sense, since we
8492 don't use this file anymore on Linux.
8493
1cf88de5
MK
8494 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8495 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8496 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8497 elements in these arrays.
8498 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8499 MAX_NUM_REGS.
8500
daa66587
MK
85012002-06-15 Mark Kettenis <kettenis@gnu.org>
8502
8503 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8504 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8505
26e9b323
AC
85062002-06-14 Andrew Cagney <cagney@redhat.com>
8507
8508 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8509 EXTRACT_RETURN_VALUE.
8510 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8511 EXTRACT_STRUCT_VALUE_ADDRESS.
8512 * gdbarch.h, gdbarch.c: Regenerate.
8513
8514 * values.c (value_being_returned): Handle
8515 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8516 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8517
8518 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8519 * arm-tdep.c (arm_gdbarch_init): Update.
8520 * avr-tdep.c (avr_gdbarch_init): Update.
8521 * cris-tdep.c (cris_gdbarch_init): Update.
8522 * d10v-tdep.c (d10v_gdbarch_init): Update.
8523 * ia64-tdep.c (ia64_gdbarch_init): Update.
8524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8525 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8526 * s390-tdep.c (s390_gdbarch_init): Update.
8527 * sh-tdep.c (sh_gdbarch_init): Update.
8528 * s390-tdep.c (s390_gdbarch_init): Update.
8529 * sparc-tdep.c (sparc_gdbarch_init): Update.
8530 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8531 * v850-tdep.c (v850_gdbarch_init): Update.
8532 * vax-tdep.c (vax_gdbarch_init): Update.
8533 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8535
8536 * config/arc/tm-arc.h: Update.
8537 * config/d30v/tm-d30v.h: Update.
8538 * config/fr30/tm-fr30.h: Update.
8539 * config/h8300/tm-h8300.h: Update.
8540 * config/h8500/tm-h8500.h: Update.
8541 * config/i386/tm-i386.h: Update.
8542 * config/i386/tm-ptx.h: Update.
8543 * config/i386/tm-symmetry.h: Update.
8544 * config/i960/tm-i960.h: Update.
8545 * config/m32r/tm-m32r.h: Update.
8546 * config/m68k/tm-delta68.h: Update.
8547 * config/m68k/tm-linux.h: Update.
8548 * config/m68k/tm-m68k.h: Update.
8549 * config/m88k/tm-m88k.h: Update.
8550 * config/mcore/tm-mcore.h: Update.
8551 * config/mips/tm-mips.h: Update.
8552 * config/mn10200/tm-mn10200.h: Update.
8553 * config/pa/tm-hppa.h: Update.
8554 * config/pa/tm-hppa64.h: Update.
8555 * config/sparc/tm-sp64.h: Update.
8556 * config/sparc/tm-sparc.h: Update.
8557 * config/sparc/tm-sparclet.h: Update.
8558 * config/z8k/tm-z8k.h: Update.
8559
5179e78f
AC
85602002-06-14 Andrew Cagney <cagney@redhat.com>
8561
8562 * Makefile.in (i386_linux_tdep_h): Define.
8563 (i386_tdep_h, i387_tdep_h): Define.
8564 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8565 $(i386_tdep_h) and $(i387_tdep_h).
8566 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8567
8201327c
MK
85682002-06-14 Mark Kettenis <kettenis@gnu.org>
8569
edf393ac
MK
8570 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8571 Already covered by the default.
8572
896fb97d
MK
8573 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8574 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8575 (i386_gdbarch_init): Initialize long_double_format and long_double
8576 bit.
8577
8201327c
MK
8578 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8579 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8580 Move these to ...
8581 * config/i386/i386sol2.mh: ... here.
8582 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8583 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8584 (SIGCONTEXT_PC_OFFSET): Remove define.
8585 (IN_SIGTRAMP): Remove define.
8586 * i386-sol2-tdep.c: New file.
8587
8588 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8589 * config/i386/tm-i386nw.h: Removed.
8590
8591 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8592 USE_STRUCT_CONVENTION): Remove defines.
8593 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8594 (get_longjmp_target): Remove prototype.
8595 (IN_SIGTRAMP): Remove define.
8596 (i386bsd_in_sigtramp): Remove prototype.
8597 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8598 function. Update comment accordingly
8599 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8600 (FRAME_SAVED_PC): Remove define.
8601 (i386bsd_frame_saved_pc): Remove prototype.
8602 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8603 GET_LONGJMP_TARGET): Remove defines.
8604 (get_longjmp_target): Remove prototype.
8605 (IN_SIGTRAMP): Remove define.
8606 (i386bsd_in_sigtramp): Remove prototype.
8607 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8608 function. Update comment accordingly
8609 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8610 (FRAME_SAVED_PC): Remove define.
8611 (i386bsd_frame_saved_pc): Remove prototype.
8612 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8613 Remove prototype.
8614 (USE_STRUCT_CONVENTION): Remove prototype.
8615 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8616 declaration.
8617 (_initialize_i386bsd_nat): Revise logic to determine some
8618 constants at compile time when compiling a native GDB. Warn if
8619 things don't match up with what we expect.
8620 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8621 Remove variables.
8622 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8623 to use date stored in `struct gdbarch_tdep'.
8624 (i386bsd_sigcontext_offset): Remove varaible.
8625 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8626 stored in `struct gdbarch_tdep'.
8627 (i386bsd_frame_saved_pc): Make static.
8628 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8629 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8630 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8631 i386fbsd4_sc_pc_offset): New variables.
8632 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8633 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8634 functions.
8635 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8636 functions.
8637 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8638 Modify the value of i386fbsd_sigtramp_start and
8639 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8640 i386fbsd_sigtramp_end.
8641 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8642 function.
8643
8644 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8645 define to i386-linux-tdep.h.
8646 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8647 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8648 defines.
8649 (i386_linux_register_name, i386_linux_register_byte,
8650 i386_linux_register_raw_size): Remove prototypes.
8651 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8652 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8653 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8654 TARGET_WRITE_PC): Remove defines.
8655 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8656 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8657 i386_linux_write_pc): Remove prototypes.
8658 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8659 (get_longjmp_target): Remove prototype.
8660 * i386-linux-tdep.h: New file.
8661 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8662 * i386-linux-tdep.c: Include "i386-tdep.h" and
8663 "i386-linux-tdep.h".
8664 (i386_linux_register_name, i386_linux_register_byte,
8665 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8666 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8667 Make static.
8668 (i386_linux_init_abi): New function.
8669 (_initialize_i386_linux_tdep): New function.
8670
8671 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8672 (i386_saved_pc_after_call): Remove prototype.
8673 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8674 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8675 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8676 (i386_register_name, i386_stab_reg_to_regnum,
8677 i386_dwarf_reg_to_regnum): Remove prototypes.
8678 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8679 SIZEOF_SSE_REGS): Remove defines.
8680 (REGISTER_BYTES): Remove define.
8681 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8682 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8683 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8684 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8685 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8686 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8687 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8688 (get_longjmp_target): Remove prototype.
8689 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8690 (sigtramp_saved_pc): Remove define.
8691 (i386v4_sigtramp_saved_pc): Remove prototype.
8692 * config/i386/tm-go32.h (FRAME_CHAIN,
8693 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8694 (i386go32_frame_saved_pc): Remove prototype.
8695 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8696 (get_longjmp_target): Remove prototype.
8697 * i386-tdep.h: Include "osabi.h".
8698 (enum i386_abi): Removed.
8699 (enum struct_return): New enum.
8700 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8701 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8702 sc_pc_offset members.
8703 (i386_gdbarch_register_os_abi): Remove prototype.
8704 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8705 I386_SSE_NUM_REGS): New defines.
8706 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8707 I386_SSE_SIZEOF_REGS): New defines.
8708 (i386_register_name, i386_register_byte, i386_register_raw_size):
8709 New prototypes.
8710 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8711 (i386bsd_sigtramp_saved_pc): New prototype.
8712 * i386-tdep.c: Don't include "elf-bfd.h".
8713 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8714 i386_frame_chain, i386_saved_pc_after_call): Make static.
8715 (i386_frame_saved_pc): Rewrite to call architecture dependent
8716 function to deal with signal handlers. Make static.
8717 (i386go32_frame_saved_pc): Removed.
8718 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8719 Removed.
8720 (i386_get_longjmp_target): New function.
8721 (default_struct_convention, pcc_struct_convention,
8722 reg_struct_convention, valid_conventions, struct_convention): New
8723 variables.
8724 (i386_use_struct_convention): New function.
8725 (i386v4_sigtramp_saved_pc): Renamed to
8726 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8727 (i386_pc_in_sigtramp): New function.
8728 (i386_abi_names): Removed.
8729 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8730 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8731 Removed.
8732 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8733 i386_gdbarch_register_os_abi): Removed.
8734 (struct i386_abi_handler): Removed.
8735 (i386_abi_handler_list): Removed.
8736 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8737 functions.
8738 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8739 i386_nw_init_abi): New functions.
8740 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8741 Use set_gdbarch_xxx() calls instead of relying on macros for a
8742 number of calls.
8743 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8744 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8745 Register the various architecture variants defined in this file.
8746
ad2f7632
DJ
87472002-06-14 Daniel Jacobowitz <drow@mvista.com>
8748
8749 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8750 (struct main_type): Remove arg_types member. Update comments for
8751 struct field.
8752 (TYPE_ARG_TYPES): Remove.
8753 (TYPE_FN_FIELD_ARGS): Update.
8754 (smash_to_method_type): Update prototype.
8755
8756 * c-typeprint.c (cp_type_print_method_args): Take method type
8757 instead of argument list. Use new argument layout. Simplify.
8758 (c_type_print_args): Use new argument layout. Simplify.
8759 (c_type_print_base): Update call to cp_type_print_method_args.
8760 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8761 argument; use die->type instead. Update call to
8762 smash_to_method_type.
8763 (read_structure_scope): Update call to dwarf2_add_member_fn.
8764 * gdbtypes.c (allocate_stub_method): Update comment.
8765 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8766 Use new argument layout.
8767 (check_stub_method): Use new argument layout. Don't count
8768 void as an argument.
8769 (print_arg_types): Update comments. Use new argument layout.
8770 (recursive_dump_type): Don't print arg_types member.
8771 * hpread.c (hpread_read_struct_type): Use new argument layout.
8772 (fixup_class_method_type): Likewise.
8773 (hpread_type_lookup): Likewise.
8774 * stabsread.c (read_type): Update calls to read_args and
8775 smash_to_method_type.
8776 (read_args): Use new argument layout. Simplify.
8777 * valops.c (typecmp): Use new argument layout. Update parameters
8778 and comments. Simplify.
8779 (hand_function_call): Use new argument layout.
8780 (search_struct_method): Update call to typecmp.
8781 (find_overload_match): Use new argument layout.
8782
6da02953
DJ
87832002-06-13 Daniel Jacobowitz <drow@mvista.com>
8784
8785 * NEWS: Mention multithreaded debug support for gdbserver.
8786
519b2366
DJ
87872002-06-13 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * MAINTAINERS: Mention NEWS.
8790
6c0d6680
DJ
87912002-06-13 Daniel Jacobowitz <drow@mvista.com>
8792
8793 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8794 (struct mips_objfile_private, compare_pdr_entries): New.
8795 (non_heuristic_proc_desc): Read the ".pdr" section if it
8796 is present.
8797
6529d2dd
AC
87982002-06-12 Andrew Cagney <ac131313@redhat.com>
8799
8800 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8801 (arm_debug): New static variable.
8802 (_initialize_arm_tdep): Add ``set debug arm'' command.
8803
26216b98
AC
88042002-06-12 Andrew Cagney <ac131313@redhat.com>
8805
8806 * Makefile.in (sim_arm_h): Define.
8807 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8808 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8809 (arm_register_sim_regno): New function, map an internal REGNUM
8810 onto a simulator register number.
8811 (arm_gdbarch_init): Set register_sim_regno.
8812
814b3ba0
AH
88132002-06-09 Aldy Hernandez <aldyh@redhat.com>
8814
8815 * MAINTAINERS: Add self.
8816
475b0867
JB
88172002-06-11 Jim Blandy <jimb@redhat.com>
8818
919d772c
JB
8819 * source.c (source_info): Mention whether the symtab has
8820 information about preprocessor macros.
8821
475b0867
JB
8822 Call the command `info macro', not `show macro'.
8823 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8824 Fix error message.
8825 (_initialize_macrocmd): Register `info_macro_command' in
8826 `infolist', not `showlist'.
8827
9e364162
DJ
88282002-06-11 Daniel Jacobowitz <drow@mvista.com>
8829
8830 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8831 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8832 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8833 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8834 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8835 unconditionally.
8836 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8837 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8838 (_initialize_mips_tdep): Remove dead code.
8839 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8840 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8841 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8842 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8843 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8844 MIPS_LAST_FP_ARG_REGNUM): Remove.
8845
23aa4c72
ML
88462002-06-11 Michal Ludvig <mludvig@suse.cz>
8847
8848 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8849 (unwind_tmp_obstack_free, parse_frame_info)
8850 (update_context, cfi_read_fp, cfi_write_fp)
8851 (cfi_frame_chain, cfi_init_extra_frame_info)
8852 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8853 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8854
70eb15a4
CV
88552002-06-11 Corinna Vinschen <vinschen@redhat.com>
8856
8857 * v850-tdep.c (v850_type_is_scalar): New function.
8858 (v850_use_struct_convention): Match current gcc implementation
8859 as close as possible.
8860 (v850_push_arguments): Fix stack_offset handling. Don't write
8861 struct_addr into register. This is done by v850_store_struct_return.
8862 (v850_extract_return_value): Care for structs.
8863 (v850_store_return_value): Ditto.
8864 (v850_store_struct_return): Actually write address.
8865
482a4d06
ML
88662002-06-11 Michal Ludvig <mludvig@suse.cz>
8867
8868 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8869 without debug information too.
8870
d855c300
AC
88712002-06-10 Andrew Cagney <ac131313@redhat.com>
8872
8873 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8874 Make multi-arch pure.
8875 * gdbarch.h, gdbarch.c: Re-generate.
8876 * arm-tdep.c (arm_print_float_info): Update.
8877 * arch-utils.h (default_print_float_info): Update.
8878 * arch-utils.c (default_print_float_info): Update.
8879 * infcmd.c (float_info): Update call.
8880
dd12a101
AC
88812002-06-10 Andrew Cagney <ac131313@redhat.com>
8882
8883 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8884 the front of the initialize list.
8885
101dcfbe
AC
88862002-06-10 Andrew Cagney <ac131313@redhat.com>
8887
8888 * infrun.c (struct inferior_status): Replace fields
8889 selected_frame_address and selected_level with field
8890 selected_frame_id.
8891 (save_inferior_status): Update. Use get_frame_id.
8892 (struct restore_selected_frame_args): Delete.
8893 (restore_selected_frame): Update. Use frame_find_by_id.
8894 (restore_inferior_status): Update.
8895
8896 * breakpoint.h (struct breakpoint): Change type of
8897 watchpoint_frame to frame_id.
8898 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8899 call to get_current_frame.
8900 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8901 get_current_frame.
8902 (watchpoint_check): Use frame_find_by_id.
8903
8904 * frame.h (record_selected_frame): Delete declaration.
8905 * stack.c (record_selected_frame): Delete function.
8906
8907 * frame.h (struct frame_id): Define.
8908 (get_frame_id): Declare.
8909 (frame_find_by_id): Declare.
8910 * frame.c (frame_find_by_id): New function.
8911 (get_frame_id): New function.
8912
304270b6
AV
89132002-06-10 Andrey Volkov <avolkov@transas.com>
8914
8915 * ser-e7kpc.c: Fix duplicated define and call of
8916 _initialize_ser_e7000pc
8917
2f2cf184
DJ
89182002-06-09 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * signals/signals.c (target_signal_from_host): Fix #ifdef
8921 SIGRTMIN case.
8922 (do_target_signal_to_host): Likewise.
8923
caaa3122
DJ
89242002-06-09 Daniel Jacobowitz <drow@mvista.com>
8925
8926 * mips-tdep.c (mips_find_abi_section): New function.
8927 (mips_gdbarch_init): Call it.
8928
6ac5df3a
MK
89292002-06-09 Mark Kettenis <kettenis@gnu.org>
8930
8931 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8932 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8933 after Andrew's 2002-06-08 gdbarch change.
8934
82ea117a
MK
89352002-06-09 Mark Kettenis <kettenis@gnu.org>
8936
8937 * i386-linux-nat.c (suppy_gregset): Don't supply
8938 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8939 register cache.
8940 (fill_gregset): Don't fetch it under the same circumstances.
8941
3c25f8c7
AC
89422002-06-09 Andrew Cagney <cagney@redhat.com>
8943
8944 * Makefile.in (callback_h): Define.
8945 (remote_sim_h): Update path to remote-sim.h.
8946 (remote-rdp.o): Add $(callback_h).
8947 (remote-sim.o): Use $(callback_h).
8948 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8949 * remote-rdp.c: Include "gdb/callback.h".
8950
1029b7fa
MK
89512002-06-09 Mark Kettenis <kettenis@gnu.org>
8952
8953 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8954 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8955
616675d3
AC
89562002-06-08 Andrew Cagney <ac131313@redhat.com>
8957
a3efda28
AC
8958 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8959 * rdi-share/serpardr.c: Ditto.
8960 * rdi-share/unixcomm.c: Ditto.
8961 * rdi-share/serdrv.c: Ditto.
8962 * rdi-share/hostchan.h: Ditto.
8963 * rdi-share/hostchan.c: Ditto.
8964 * rdi-share/host.h: Ditto.
8965 * rdi-share/devsw.c: Ditto.
8966
c5f10366
AC
8967 * objfiles.h: Change type of obj_private to void pointer.
8968 * pa64solib.c: Update copyright. Don't include "assert.h", use
8969 strcmp instead of STREQ, use LONGEST, do not use PTR
8970 * somsolib.c: Ditto.
8971
616675d3
AC
8972 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8973 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8974 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8975
e4b415d9
AC
89762002-06-08 Andrew Cagney <ac131313@redhat.com>
8977
8978 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8979 (default_get_saved_register): Delete function.
8980 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8981 generic_unwind_get_saved_register.
8982 * gdbarch.h, gdbarch.c: Re-generate.
8983
ca0d0b52
AC
89842002-06-08 Andrew Cagney <ac131313@redhat.com>
8985
8986 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8987 generic_func_frame_chain_valid.
8988 * gdbarch.h, gdbarch.c: Re-generate.
8989 * blockframe.c (generic_func_frame_chain_valid): Only check
8990 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8991 passing FP to PC_IN_CALL_DUMMY.
8992 Fix PR gdb/360.
8993
76860b5f
AC
89942002-06-08 Andrew Cagney <ac131313@redhat.com>
8995
8996 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8997 (register_gdbarch_data): Initialize init_p.
8998 (gdbarch_data): Initialize data pointer using the init function.
8999 (init_gdbarch_data): Delete function.
9000 (gdbarch_update_p): Update.
9001 (initialize_non_multiarch): Update.
9002 (struct gdbarch): Add field initialized_p.
9003 * gdbarch.h, gdbarch.c: Re-generate.
9004
8dda9770
ML
90052002-06-07 Michal Ludvig <mludvig@suse.cz>
9006
9007 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9008 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9009 better do the things actually here.
9010 * x86-64-tdep.c (x86_64_register_name2nr): New.
9011 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9012 (x86_64_gdbarch_init): Respect the above change.
9013 * x86-64-tdep.h (x86_64_register_name2nr)
9014 (x86_64_register_nr2name): Add prototypes.
9015 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9016
3d79a47c
MS
90172002-06-06 Michael Snyder <msnyder@redhat.com>
9018
7bd91a28
MS
9019 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9020 Delete extra braces and re-indent.
9021 (d10v_store_return_value): Char return values
3d79a47c
MS
9022 must be shifted over by one byte in R0.
9023 (d10v_extract_return_value): Delete extra braces, re-indent.
9024
095a4c96
EZ
90252002-06-06 Elena Zannoni <ezannoni@redhat.com>
9026
9027 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9028 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9029 (d10v_integer_to_address): Rewrite.
9030 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9031 the d10v specific functions which take care of converting to the
9032 correct space.
9033
e8a77ca4
EZ
90342002-06-06 Elena Zannoni <ezannoni@redhat.com>
9035
9036 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9037 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9038
4f2e4a4f
AC
90392002-06-02 Andrew Cagney <ac131313@redhat.com>
9040
9041 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9042 includes.
9043 * config/tm-linux.h: Ditto.
9044 * config/alpha/tm-alphalinux.h: Ditto.
9045 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9046 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9047 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9048 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9049 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9050 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9051 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9052 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9053 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9054 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9055 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9056 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9057 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9058 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9059 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9060 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9061 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9062 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9063 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9064 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9065 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9066 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9067 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9068 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9069 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9070 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9071 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9072 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9073 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9074 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9075 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9076 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9077 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9078 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9079 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9080 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9081 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9082
ae2ab2ce
AS
90832002-05-04 Aidan Skinner <aidan@velvet.net>
9084
9085 * ada-exp.tab.c: New file
9086 * ada-exp.y: New file
9087 * ada-lang.c: New file
9088 * ada-lang.h: New file
9089 * ada-lex.c: New file
9090 * ada-lex.l: New file
9091 * ada-tasks.c: New file
9092 * ada-typeprint.c: New file
9093 * ada-valprint.c: New file
9094
0ddd0135
JT
90952002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9096
9097 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9098 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9099
750fbacc
JT
91002002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9101
9102 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9103 insetead of ppc-linux-tdep.o.
9104 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9105 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9106
df94e18a
AC
91072002-06-02 Andrew Cagney <ac131313@redhat.com>
9108
9109 2002-05-07 Christian Groessler <chris@groessler.org>
9110 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9111 bit register contents for little endian hosts.
9112
1a38ab75
AC
91132002-06-01 Andrew Cagney <ac131313@redhat.com>
9114
9115 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9116 any maintainer.
9117
8b1632ac
AC
91182002-06-01 Andrew Cagney <ac131313@redhat.com>
9119
9120 * gdbarch.h: Regenerate.
9121
627054c8
AC
91222002-06-01 Andrew Cagney <ac131313@redhat.com>
9123
9124 * MAINTAINERS: Add everyone to write-after-approval list.
9125
4f460812
AC
91262002-06-01 Andrew Cagney <ac131313@redhat.com>
9127
9128 * stack.c (frame_info): Use frame_register_unwind instead of
9129 saved_regs. Mention when the SP is on the stack or in a register.
9130
9131 * frame.h (frame_register_unwind_ftype): Define. Document.
9132 (struct frame_info): Add field register_unwind and
9133 register_unwind_cache.
9134 (frame_register_unwind): Declare.
9135 (generic_unwind_get_saved_register): Declare.
9136
9137 * frame.c (frame_register_unwind): New function.
9138 (generic_unwind_get_saved_register): New function.
9139
9140 * blockframe.c (generic_call_dummy_register_unwind): New function.
9141 (frame_saved_regs_register_unwind): New function.
9142 (set_unwind_by_pc): New function.
9143 (create_new_frame): New function.
9144 (get_prev_frame): New function.
9145
de888f76
AC
91462002-05-30 Andrew Cagney <ac131313@redhat.com>
9147
9148 * a29k-share/: Delete directory.
9149 * remote-vx29k.c: Delete file.
9150
2f2c3626
JT
91512002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9152
9153 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9154 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9155
9ce5c36a
JT
91562002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9157
9158 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9159 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9160 (sparc64nbsd-nat.o)
9161 (sparcnbsd-nat.o)
9162 (sparcnbsd-tdep.o): New dependency lists.
9163 * NEWS: Note new UltraSPARC NetBSD native configuration.
9164 * configure.host (sparc64-*-netbsd*): New host.
9165 * configure.tgt (sparc-*-netbsdelf*)
9166 (sparc-*-netbsd*): Set gdb_target to nbsd.
9167 (sparc64-*-netbsd*): New target.
9168 * sparc64nbsd-nat.c: New file.
9169 * sparcnbsd-nat.c: New file.
9170 * sparcnbsd-tdep.c: New file.
9171 * sparcnbsd-tdep.h: New file.
9172 * config/sparc/nbsd.mt: New file.
9173 * config/sparc/nbsd64.mh: New file.
9174 * config/sparc/nbsd64.mt: New file.
9175 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9176 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9177 (HOST_IPC): Remove.
9178 * config/sparc/nbsdaout.mt: Remove.
9179 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9180 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9181 (HOST_IPC): Remove.
9182 * config/sparc/nbsdelf.mt: Remove.
9183 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9184 sparc-nat.c compatiblity defines.
9185 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9186 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9187 * config/sparc/tm-nbsd64.h: New file.
9188 * config/sparc/tm-nbsdaout.h: Remove.
9189 * config/sparc/xm-nbsd.h: Remove.
9190
ef3cf062
JT
91912002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9192
9193 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9194 * sparc-tdep.c: Include osabi.h.
9195 (gdbarch_tdep): Add osabi member.
9196 (_initialize_sparc_tdep): Use gdbarch_register.
9197 (sparc_gdbarch_init): Use generic OS ABI framework.
9198 (sparc_dump_tdep): New function.
9199
ee8ff470
KB
92002002-05-30 Kevin Buettner <kevinb@redhat.com>
9201
9202 * corefile.c (do_captured_read_memory_integer): Return non-zero
9203 result.
9204 (safe_read_memory_integer): Copy result of memory read when
9205 status is non-zero. Also, add comments.
9206
7b112f9c
JT
92072002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9208
9209 * Makefile.in (ppc_tdep_h): Define.
9210 (ppc-linux-nat.o)
9211 (ppc-linux-tdep.o)
9212 (rs6000-tdep.o): Use $(ppc_tdep_h).
9213 (ppc-sysv-tdep.o)
9214 (ppcnbsd-nat.o)
9215 (ppcnbsd-tdep.o): New dependency lists.
9216 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
9217 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9218 (ppc_linux_init_abi): New functions.
7b112f9c
JT
9219 (ppc_sysv_abi_broken_use_struct_convention)
9220 (ppc_sysv_abi_use_struct_convention)
9221 (ppc_sysv_abi_push_arguments): Move to...
9222 * ppc-sysv-tdep.c: ...here.
9223 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9224 * rs6000-tdep.c (process_note_abi_tag_sections)
9225 (get_elfosabi): Remove.
9226 (rs6000_gdbarch_init): Use generic OS ABI framework.
9227 (rs6000_dump_tdep): New function.
9228 (_initialize_rs6000_tdep): Use gdbarch_register.
9229 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9230 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9231 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9232 of ppc-linux-tdep.o.
9233 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9234 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9235 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9236 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9237 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9238 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9239
480dd42a
JB
92402002-05-29 Jim Blandy <jimb@redhat.com>
9241
9242 * macroscope.c (default_macro_scope): Put `void' in empty argument
9243 list.
9244
4182591f
AC
92452002-05-29 Andrew Cagney <ac131313@redhat.com>
9246
9247 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9248 * arch-utils.c: Include "sim-regno.h".
9249 * gdbarch.sh: Don't include "sim-regno.h".
9250 * gdbarch.h, gdbarch.c: Regenerate.
9251 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9252 here.
9253 * arch-utils.h (legacy_register_sim_regno): To here.
9254 * remote-sim.c (legacy_register_sim_regno): Move function from
9255 here.
9256 * arch-utils.c (legacy_register_sim_regno): To here.
9257
8238d0bf
AC
92582002-05-28 Andrew Cagney <ac131313@redhat.com>
9259
9260 * sim-regno.h: New file.
9261 * Makefile.in (sim_regno_h): Define.
9262 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9263 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9264 (legacy_register_sim_regno): New function.
9265 (one2one_register_sim_regno): New function.
9266 (gdbsim_fetch_register): Rewrite.
9267 (gdbsim_store_register): Only store a register when
9268 REGISTER_SIM_REGNO is valid.
9269 * d10v-tdep.c: Include "sim-regno.h".
9270 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9271 (d10v_ts3_register_sim_regno): Ditto.
9272 * gdbarch.sh: Include "sim-regno.h".
9273 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9274 * gdbarch.h, gdbarch.c: Regenerate.
9275 * arch-utils.h (default_register_sim_regno): Delete declaration.
9276 * arch-utils.c (default_register_sim_regno): Delete function.
9277
485721b1
JT
92782002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9279
9280 * ppcnbsd-nat.c: Rewrite.
9281 * ppcnbsd-tdep.c: New file.
9282 * ppcnbsd-tdep.h: New file.
9283 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9284 solib.o, and solib-svr4.o.
9285 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9286 nbsd-tdep.o, and corelow.o.
9287
697f244d
AC
92882002-05-28 Andrew Cagney <ac131313@redhat.com>
9289
9290 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9291 `tr' and `sed'. Mention that `broken' targets are not expected to
9292 build.
9293
f08caad1 92942002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
9295
9296 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9297 Let PC point right after the prologue before looking up symbols.
9298
3139facc
MH
92992002-05-27 Martin M. Hunt <hunt@redhat.com>
9300
9301 * i386-tdep.c (i386_register_virtual_type): Return
9302 builtin_type_vec128i for SSE registers.
9303
9304 * gdbtypes.h (builtin_type_vec128i): Declare.
9305
9306 * gdbtypes.c (build_builtin_type_vec128i): New function.
9307 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9308 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9309 (build_gdbtypes): Initialize new builtin vector types.
9310 (_initialize_gdbtypes): Register new vector types with gdbarch.
9311
6e3ba3b8
JT
93122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9313
9314 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9315 since it has been multi-arch'd.
9316 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9317 Move Alpha and VAX multi-arch news entries to same section
9318 as other multi-arch news.
9319
93d5585d
JT
93202002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9321
9322 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9323 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9324 static. Rename some register numbers to put them in ns32k-tdep
9325 private namespace.
9326 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9327 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9328 functions.
9329 (_initialize_ns32k_tdep): Use gdbarch_register.
9330 * ns32k-tdep.h: New file.
9331 * ns32knbsd-tdep.c: New file.
9332 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9333 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9334 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9335 REGISTER_BYTES, REGISTER_BYTE): Remove.
9336 * config/ns32k/tm-ns32k.h: New file.
9337 * config/ns32k/tm-umax.h: Remove.
9338
efb2c70e
JT
93392002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9340
9341 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9342 ns32k_store_struct_return, ns32k_extract_return_value,
9343 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9344 functions.
9345 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9346 ns32k_saved_pc_after_call.
9347 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9348 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9349 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9350 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9351 ns32k_extract_struct_value_address.
9352
7bcc927b
JT
93532002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9354
9355 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9356 ns32k_fix_call_dummy): New.
9357 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9358 ns32k_call_dummy_words.
9359 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9360 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9361 CALL_DUMMY_NARGS): Remove.
9362 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9363
78f9d765
JT
93642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9365
9366 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9367 ns32k_frame_saved_pc, ns32k_frame_args_address,
9368 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9369 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9370 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9371 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9372 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9373 (BREAKPOINT): Remove..
9374 (FRAME_CHAIN): Define as ns32k_frame_chain.
9375 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9376 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9377 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9378 (FRAME_FIND_SAVED_REGS): Remove.
9379 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9380 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9381 (POP_FRAME): Define as ns32k_pop_frame.
9382
f2c762e0
JT
93832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9384
9385 * ns32k-tdep.c (ns32k_register_byte_32082,
9386 ns32k_register_byte_32382, ns32k_register_raw_size,
9387 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9388 functions.
9389 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9390 ns32k_register_byte_32382.
9391 * config/ns32k/tm-umax.h: Update copyright years.
9392 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9393 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9394 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9395 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9396 (ns32k_get_enter_addr): Fix prototype.
9397
af137673
JT
93982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9399
9400 * ns32k-tdep.c: Update copyright years.
9401 (ns32k_register_name_32082): New function.
9402 (ns32k_register_name_32382): Ditto.
9403 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9404 (REGISTER_NAME): Define as ns32k_register_name_32382.
9405 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9406 (REGISTER_NAME): Define as ns32k_register_name_32082.
9407
a8bc7b56
JB
94082002-05-24 Jim Blandy <jimb@redhat.com>
9409
9410 * dwarf2read.c (free_line_header): Use xfree, not free.
9411
83a45910
JT
94122002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9413
9414 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9415 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9416
0db71247
AC
94172002-05-23 Andrew Cagney <ac131313@redhat.com>
9418
9419 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9420
b9e5e4dd
AC
94212002-05-23 Andrew Cagney <ac131313@redhat.com>
9422
9423 From Ross Alexander at NEC Europe:
9424 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9425
de530e84
MS
94262002-05-23 Michael Snyder <msnyder@redhat.com>
9427
9428 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9429 for input, rather than parse_and_eval_address.
9430
b91b96f4
AC
94312002-05-23 Andrew Cagney <ac131313@redhat.com>
9432
9433 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9434 * Makefile.in (sim_d10v_h): Update definition.
9435
8b279e7a
AC
94362002-05-24 Andrew Cagney <cagney@redhat.com>
9437
9438 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9439 change `2002-05-22 Michael Snyder' below.
9440 (d10v_push_arguments): Ditto.
9441 (d10v_extract_return_value): Ditto.
9442
0a3d0425
JB
94432002-05-23 Jim Blandy <jimb@redhat.com>
9444
9445 * macrotab.c (check_for_redefinition): Don't complain if the new
9446 definition is the same as the previous one. Take more arguments
9447 to allow the comparison.
9448 (macro_define_object, macro_define_function): Pass more arguments
9449 to check_for_redefinition.
9450
78eac43e
MS
94512002-05-22 Michael Snyder <msnyder@redhat.com>
9452
9453 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9454 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9455 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9456 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9457 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9458 Add a temp variable to save a call (and a memory read).
9459 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9460 if possible (so that PC_IN_CALL_DUMMY will work).
9461
9bc1edb8
CV
94622002-05-22 Corinna Vinschen <vinschen@redhat.com>
9463
9464 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9465
005ef3d2
ML
94662002-05-22 Michal Ludvig <mludvig@suse.cz>
9467
9468 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9469 fde->cie_ptr.
9470 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9471 (dwarf2_build_frame_info): Add offset to fde->initial_location
9472 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
9473 (execute_stack_op): Change type of 'result' from ULONGEST to
9474 CORE_ADDR.
005ef3d2 9475
fcf4f891
JT
94762002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9477
9478 * config/alpha/tm-nbsd.h: Include solib.h.
9479
cfef91e4
JT
94802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9483 assumptions about the host's byte order.
9484
9964235a
JT
94852002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9486
9487 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9488 to dependency list.
9489 * alphanbsd-tdep.c: Include solib-svr4.h.
9490 * shnbsd-tdep.c: Ditto.
9491
9eeef8ef
JT
94922002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9493
9494 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9495 nbsd-tdep.h to dependency list.
9496 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9497 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9498 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9499 nbsdaout.mh and nbsdelf.mh consistently.
9500 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9501 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9502 nbsdaout.mt and nbsdelf.mh consistently.
9503 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9504 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9505 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9506 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9507 a.out shared library stuff from here...
9508 * config/nm-nbsdaout.h: ...to here.
9509 * config/tm-nbsd.h: Remove.
9510 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9511 * config/arm/nbsd.mh: Remove.
9512 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9513 nbsd-tdep.o.
9514 * config/arm/nbsdaout.mh: New file.
9515 * config/arm/nbsdelf.mh: New file.
9516 * config/arm/nm-nbsdaout.h: New file.
9517 * config/i386/nbsd.mh: Remove.
9518 * config/i386/nbsd.mt: Remove.
9519 * config/i386/nbsdaout.mh: New file.
9520 * config/i386/nbsdaout.mt: New file.
9521 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9522 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9523 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9524 i386_register_u_addr): Remove.
9525 * config/i386/nm-nbsdaout.h: New file.
9526 * config/i386/nm-nbsdelf.h: Remove.
9527 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9528 (USE_STRUCT_CONVENTION): Remove.
9529 * config/i386/tm-nbsdaout.h: New file.
9530 * config/i386/tm-nbsdelf.h: Remove.
9531 * config/m68k/nbsd.mh: Remove.
9532 * config/m68k/nbsd.mt: Remove.
9533 * config/m68k/nbsdaout.mh: New file.
9534 * config/m68k/nbsdaout.mt: New file.
9535 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9536 * config/m68k/nm-nbsdaout.h: New file.
9537 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9538 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9539 * config/ns32k/nbsd.mh: Remove.
9540 * config/ns32k/nbsd.mt: Remove.
9541 * config/ns32k/nbsdaout.mh: New file.
9542 * config/ns32k/nbsdaout.mt: New file.
9543 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9544 * config/ns32k/nm-nbsdaout.h: New file.
9545 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9546 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9547 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9548 (SVR4_SHARED_LIBS): Remove.
9549 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9550 * config/sparc/nbsd.mh: Remove.
9551 * config/sparc/nbsd.mt: Remove.
9552 * config/sparc/nbsdaout.mh: New file.
9553 * config/sparc/nbsdaout.mt: New file.
9554 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9555 * config/sparc/nbsdelf.mt: New file.
9556 * config/sparc/nm-nbsdaout.h: New file.
9557 * config/sparc/nm-nbsdelf.h: Remove.
9558 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9559 * config/sparc/tm-nbsdaout.h: New file.
9560
257ce470
JT
95612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9562
9563 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9564 mipsnbsd-tdep.c
9565 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9566
76a6d5fe
JT
95672002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9568
9569 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9570 shnbsd-nat.c.
9571 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9572
45888261
JT
95732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9574
9575 * NEWS: Note new MIPS NetBSD native configuration.
9576 * configure.host (mips*-*-netbsd*): New host.
9577 * configure.tgt (mips*-*-netbsd*): New target.
9578 * mipsnbsd-nat.c: New file.
9579 * mipsnbsd-tdep.c: New file.
9580 * mipsnbsd-tdep.h: New file.
9581 * config/mips/nbsd.mh: New file.
9582 * config/mips/nbsd.mt: New file.
9583 * config/mips/nm-nbsd.h: New file.
9584 * config/mips/tm-nbsd.h: New file.
9585
70f80edf
JT
95862002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9587
9588 * Makefile.in (SFILES): Add osabi.c.
9589 (COMMON_OBS): Add osabi.o.
9590 (osabi.o): New dependency list.
9591 * osabi.c: New file.
9592 * osabi.h: New file.
9593 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9594
9595 * Makefile.in (alpha_tdep_h): Define and use instead of
9596 alpha-tdep.h.
9597 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9598 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9599 Remove.
9600 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9601 * alpha-tdep.h: Include osabi.h.
9602 (alpha_abi): Remove.
9603 (gdbarch_tdep): Use generic OS ABI framework.
9604 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9605 gdbarch_register_osabi.
9606 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9607 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9608 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9609
9610 * Makefile.in (sh_tdep_h): Add osabi.h.
9611 * sh-tdep.h (sh_osabi): Remove.
9612 (gdbarch_tdep): Use generic OS ABI framework.
9613 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9614 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9615 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9616 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9617
9618 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9619 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9620 gdbarch_register_osabi.
9621 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9622 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9623 (get_elfosabi): Rename to...
9624 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9625 ABI framework support routines.
9626 (arm_gdbarch_init): Use generic OS ABI framework.
9627 (arm_dump_tdep): Likewise.
9628 (_initialize_arm_tdep): Likewise.
9629 * arm-tdep.h: Include osabi.h.
9630 (arm_abi): Remove.
9631 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9632 osabi member.
9633 (arm_gdbarch_register_os_abi): Remove prototype.
9634 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9635 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9636
9637 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9638 * mips-tdep.c: Include osabi.h.
9639 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9640 OS ABI framework.
9641
d194345b
KH
96422002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9643
9644 * h8300-tdep.c: Fix formatting.
9645
70c6b0d1
EZ
96462002-05-20 Elena Zannoni <ezannoni@redhat.com>
9647
9648 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9649 printing vector registers.
9650
165b8e33
AC
96512002-05-19 Andrew Cagney <ac131313@redhat.com>
9652
9653 From Fernando Nasser:
9654 * remote.c (remote_async_open_1): Re-throw the exception when the
9655 connection fails.
9656 (remote_cisco_open): Ditto.
9657 (remote_open_1): Ditto.
9658
36918e70
AC
96592002-05-19 Andrew Cagney <ac131313@redhat.com>
9660
9661 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9662 (remote_start_remote): Add uiout parameter. Pass through to
9663 remote_start_remote_dummy.
9664 (remote_open_1): Use catch_exception instead of catch_errors.
9665 (remote_async_open_1): Ditto.
9666 (remote_cisco_open): Ditto.
9667
ae44c0c4
AC
96682002-05-19 Andrew Cagney <ac131313@redhat.com>
9669
9670 * remote.c (remote_start_remote): Replace PTR with void pointer.
9671 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9672 static.
9673
8efe637d
AC
96742002-05-18 Andrew Cagney <ac131313@redhat.com>
9675
9676 * gdb_indent.sh: Allow the script to be run in the sim directory.
9677
2f1b5984
MK
96782002-05-18 Mark Kettenis <kettenis@gnu.org>
9679
f0f625e2
MK
9680 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9681 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9682
2f1b5984
MK
9683 * corelow.c (core_open): Only call set_gdbarch_from_file if
9684 exec_bfd is NULL.
9685
fc974602
AV
96862002-05-17 Andrey Volkov <avolkov@transas.com>
9687
9688 * h8300-tdep.c: Add support of EXR register
9689 * config/h8300/tm-h8300.h: Ditto.
9690
906709f4
AV
96912002-05-17 Andrey Volkov <avolkov@transas.com>
9692
9693 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9694
6e591d68
AV
96952002-05-17 Andrey Volkov <avolkov@transas.com>
9696
9697 * h8300-tdep.c: Change literal regnums to REGNO.
9698
84f0252a
JB
96992002-05-17 Jim Blandy <jimb@redhat.com>
9700
e0e9281e
JB
9701 * NEWS: Note addition of macro support.
9702
84f0252a
JB
9703 Expand preprocessor macros in C expressions.
9704 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9705 (scan_macro_expansion, scanning_macro_expansion,
9706 finished_macro_expansion): New function declarations.
9707 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9708 variable declarations.
9709 * parser-defs.h (expression_context_pc): New declaration.
9710 * parse.c (expression_context_pc): New variable.
9711 (parse_exp_1): Set expression_context_pc, as well as
9712 expression_context_block.
9713 * c-exp.y (yylex): If we're not already reading the result of a
9714 macro expansion, try to macro-expand the next token. When we're
9715 done scanning a macro expansion, switch back to the mainline text.
9716 Commas and `if's in a macro's expansion don't terminate the input.
9717 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9718 (macro_original_text, macro_expanded_text,
9719 expression_macro_lookup_func, expression_macro_lookup_baton): New
9720 variables.
9721 (scan_macro_expansion, scanning_macro_expansion,
9722 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9723 c_preprocess_and_parse): New functions.
9724 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9725 c_preprocess_and_parse, instead of c_parse.
9726 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9727 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9728
1c509ca8
JR
9729Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9730
9731 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9732 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9733 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9734
2250ee0c
CV
97352002-05-17 Corinna Vinschen <vinschen@redhat.com>
9736
9737 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9738
ab3b8126
JT
97392002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9740
9741 * Makefile.in (sh_tdep_h): Define and use.
9742 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9743 register enum): Move to...
9744 * * sh-tdep.h: ...here.
9745 * sh-tdep.c: Include sh-tdep.h.
9746 * sh3-rom.c: Likewise.
9747 * shnbsd-tdep.c: Likewise.
9748
ed9d4749
MS
97492002-05-16 Michael Snyder <msnyder@redhat.com>
9750
9751 * arm-tdep.c: Spelling fix in comment.
9752
2e276125
JB
97532002-05-16 Jim Blandy <jimb@redhat.com>
9754
6821892e
JB
9755 Add commands for manually expanding macros and showing their
9756 definitions.
9757 * macrocmd.c, macroscope.c, macroscope.h: New files.
9758 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9759 (macroscope_h): New variable.
9760 (HFILES_NO_SRCDIR): Add macroscope.h.
9761 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9762 (macroscope.o, macrocmd.o): New rules.
9763
2e276125
JB
9764 Teach the Dwarf 2 reader to read macro information.
9765 * dwarf2read.c: #include "macrotab.h".
9766 (dwarf_macinfo_buffer): New variable.
9767 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9768 dwarf_macinfo_size.
9769 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9770 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9771 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9772 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9773 dwarf2_macro_spaces_in_definition): New complaints.
9774 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9775 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9776 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9777 the partial symbol table.
9778 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9779 from what's recorded in the partial symbol table.
9780 (read_file_scope): If the compilation unit has a
9781 `DW_AT_macro_info' attribute, read its macro information.
9782 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9783
2f53fe6c
DJ
97842002-05-16 Daniel Jacobowitz <drow@mvista.com>
9785
9786 Fix PR gdb/546
9787 * ser-tcp.c: Don't include <netinet/udp.h>.
9788
2be99286
SC
97892002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9790
9791 * MAINTAINERS: Update my email address.
9792
c9af212b 97932002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
9794
9795 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9796 include file of the same name.
9797
bf5f1a52
CV
97982002-05-16 Corinna Vinschen <vinschen@redhat.com>
9799
9800 * configure.tgt: Mark v850 as multi-arched.
9801 * config/v850/tm-v850.h: Remove file.
9802 * config/v850/v850.mt: Eliminate TM_FILE.
9803
435e042a
CV
98042002-05-16 Corinna Vinschen <vinschen@redhat.com>
9805
9806 * v850-tdep.c: Full multi-arch.
9807 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9808 Define GDB_MULTI_ARCH to 2.
9809
9819c6c8
PM
98102002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9811
9812 * p-exp.y (current_type): New static variable.
9813 Carries the type of the expression at the position that is parsed.
9814 (push_current_type, pop_current_type): Two new functions. Used
9815 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9816 (search_field): New static variable. Set to one after parsing a point
9817 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9818 (FIELDNAME): New token. After a point only a token belonging to
9819 current_type type definition is allowed.
9820 (all over token rules): reset and change current_type according
9821 to rules.
9822 (exp '[' rule): insert implicit array index field if
9823 exp is a pascal string type.
9824
3a06899a
CV
98252002-05-16 Corinna Vinschen <vinschen@redhat.com>
9826
9827 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9828 frame info. Use frame_info's saved_regs instead of matching member
9829 in extra_frame_info throughout.
9830 (v850_frame_init_saved_regs): New function.
9831 (v850_init_extra_frame_info): Move most functionality into
9832 v850_frame_init_saved_regs().
9833 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9834 (v850_frame_find_saved_regs): Remove declaration.
9835 (FRAME_FIND_SAVED_REGS): Remove definition.
9836 (v850_frame_init_saved_regs): Add declaration.
9837 (FRAME_INIT_SAVED_REGS): Add definition.
9838
6ed14b0e
CV
98392002-05-16 Corinna Vinschen <vinschen@redhat.com>
9840
9841 * v850-tdep.c: Begin multi-arch'ing v850.
9842 (v850_target_architecture_hook): Remove function.
9843 (v850_gdbarch_init): New function. Add code previously in
9844 v850_target_architecture_hook().
9845 (_initialize_v850_tdep): Don't set target_architecture_hook.
9846 Call register_gdbarch_init() instead.
9847
42725910
DJ
98482002-05-16 Daniel Jacobowitz <drow@mvista.com>
9849
9850 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9851 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9852 (fixup_class_method_type): Likewise.
9853
99d9066e
JB
98542002-05-15 Jim Blandy <jimb@redhat.com>
9855
9856 Add macro structures to GDB's symbol tables. Nobody puts anything
9857 in them yet.
9858 * symtab.h (struct symtab): New member: `macro_table'.
9859 * buildsym.h (pending_macros): New global variable.
9860 * buildsym.c: #include "macrotab.h".
9861 (buildsym_init): Initialize `pending_macros'.
9862 (end_symtab): If we found macro information while reading a CU's
9863 debugging info, do build a symtab structure for it. Make the
9864 symtab point to the macro information, and clear the
9865 `pending_macros' pointer which held it while we were reading the
9866 debug info.
9867 (really_free_pendings): Free any pending macro table.
9868 * objfiles.h (struct objfile): New member: `macro_cache'.
9869 * objfiles.c (allocate_objfile): Set allocate and free functions
9870 for the macro cache's objstack.
9871 (free_objfile): Empty the macro cache's obstack.
9872 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9873 set new allocate and free functions for it.
9874 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9875 free functions for the macro cache's objstack. (Why is this
9876 function building its own objfile?)
9877 * symmisc.c (print_objfile_statistics): Print statistics on the
9878 macro bcache.
9879 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9880
c899585b
RE
98812002-05-15 Richard Earnshaw <rearnsha@arm.com>
9882
9883 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9884 (REGISTER_U_ADDR): Delete definition.
9885 (arm_register_u_addr): Delete declaration.
9886
a6cdd8c5
RE
98872002-05-15 Richard Earnshaw <rearnsha@arm.com>
9888
9889 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9890 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9891
c97dcfc7
AC
98922002-05-14 Andrew Cagney <ac131313@redhat.com>
9893
9894 * regcache.c (register_valid): Revise comments refering to "Not
9895 available" and "unavailable".
9896 * frame.c (frame_register_read): Ditto.
9897 * findvar.c (value_of_register): Ditto.
9898
93021b7d
AC
98992002-05-15 Andrew Cagney <cagney@redhat.com>
9900
9901 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9902 (remote-sim.o): Update dependencies.
9903 (d10v-tdep.o): Specify dependencies.
9904 (sim_d10v_h): Define.
9905
a86bc61c
JB
99062002-05-14 Jim Blandy <jimb@redhat.com>
9907
9908 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9909 * macrotab.c (macro_lookup_inclusion, find_definition,
9910 new_macro_table): Same.
9911
9912 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9913 not `! strcmp ()'. This is a dubious improvement.
9914 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9915
9916 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9917 although it's not necessary, to avoid a warning.
9918
2fdde8f8
DJ
99192002-05-14 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9922 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9923 TYPE_INSTANCE_FLAGS.
9924 (struct main_type): New.
9925 (struct type): Move most members to struct main_type. Change
9926 cv_type and as_type to new type_chain member. Add instance_flags.
9927 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9928 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9929 (finish_cv_type): Remove prototype.
9930 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9931 Set TYPE_CHAIN.
9932 (alloc_type_instance): New function.
9933 (smash_type): New function.
9934 (make_pointer_type, make_reference_type, make_function_type)
9935 (smash_to_member_type, smash_to_method_type): Call smash_type.
9936 (make_qualified_type): New function.
9937 (make_type_with_address_space): Call make_qualified_type.
9938 (make_cv_type): Likewise.
9939 (finish_cv_type): Remove unnecessary function.
9940 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9941 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9942 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9943 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9944 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9945 * hpread.c (hpread_read_struct_type): Likewise.
9946 * stabsread.c (read_struct_type): Likewise.
9947
843fedf4
EZ
99482002-05-14 Elena Zannoni <ezannoni@redhat.com>
9949
9950 * configure.tgt: Add a catch all sh* target, for cases like
9951 sh[2,3,4]-elf and sh-hms.
9952
05a6c72c
KS
99532002-05-14 Keith Seitz <keiths@redhat.com>
9954
9955 * event-loop.c (create_file_handler): Don't do anything but
9956 update data when we are given a fd which we are already
9957 monitoring.
9958
5d085aaf
ML
99592002-05-14 Michal Ludvig <mludvig@suse.cz>
9960
9961 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9962 (update_context): Use __func__ in warnings.
9963
9db8d71f
DJ
99642002-05-14 Daniel Jacobowitz <drow@mvista.com>
9965
9966 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9967 and tcp_close to net_open and net_close.
9968 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9969 using UDP if requested. Don't try to disable Nagle on UDP
9970 sockets.
9971 * remote.c (remote_serial_open): New function. Warn about UDP.
9972 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9973
5dbc6baa
EZ
99742002-05-13 Elena Zannoni <ezannoni@redhat.com>
9975
9976 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9977
cc3023f7
EZ
99782002-05-13 Elena Zannoni <ezannoni@redhat.com>
9979
9980 * configure.tgt: Remove sh-hms target.
9981 * MAINTAINERS: Don't list sh-hms as a separate target.
9982
ec2bcbe7
JB
99832002-05-13 Jim Blandy <jimb@redhat.com>
9984
9985 Add first preprocessor macro-expansion files.
9986 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9987 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9988 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9989 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9990 (COMMON_OBS): Add macrotab.o, macroexp.o.
9991 (macroexp.o, macrotab.o): New rules.
9992
6d531722
AC
99932002-05-13 Andrew Cagney <ac131313@redhat.com>
9994
9995 * config/m88k/tm-m88k.h: Update copyright.
9996 (m88k_target_write_pc): Declare
9997 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9998 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9999 (SHIFT_INST_REGS): Update definition.
10000 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10001 using old definition of TARGET_WRITE_PC.
10002 * regcache.c (generic_target_write_pc): Delete code handling
10003 NNPC_REGNUM.
10004 * gdbarch.sh (NNPC_REGNUM): Delete.
10005 * gdbarch.h, gdbarch.c: Regenerate.
10006
3e3f2739
RE
100072002-05-13 Richard Earnshaw <rearnsha@arm.com>
10008
10009 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10010 builtin reg number.
10011
0004e5a2
DJ
100122002-05-13 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10015 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10016 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10017 access macros.
10018 * c-typeprint.c (cp_type_print_method_args): Likewise.
10019 (c_type_print_args): Likewise.
10020 * d10v-tdep.c (d10v_push_arguments): Likewise.
10021 (d10v_extract_return_value): Likewise.
10022 * expprint.c (print_subexp): Likewise.
10023 * gdbtypes.c (lookup_primitive_typename): Likewise.
10024 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10025 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10026 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10027 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10028 (TYPE_VECTOR): Likewise.
10029 * hpread.c (hpread_read_struct_type)
10030 (fix_static_member_physnames, fixup_class_method_type)
10031 (hpread_type_lookup): Likewise.
10032 * mdebugread.c (parse_symbol, parse_type): Likewise.
10033 * p-lang.c (is_pascal_string_type): Likewise.
10034 * valops.c (hand_function_call): Likewise.
10035 * x86-64-tdep.c (classify_argument): Likewise.
10036
10037 * hpread.c (hpread_read_function_type)
10038 (hpread_read_doc_function_type): Call replace_type.
10039 * dstread.c (create_new_type): Delete.
10040 (decode_dst_structure, process_dst_function): Call alloc_type.
10041 Use type access macros.
10042
dff95cc7
MK
100432002-05-12 Mark Kettenis <kettenis@gnu.org>
10044
10045 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10046 the're not supported by the current architecture.
10047 (i387_fill_fxsave): Likewise.
10048
bbcd32ad
FF
100492002-05-12 Fred Fish <fnf@redhat.com>
10050
10051 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10052 sect_index_xxx members to index the first slot in section_offsets
10053 if all of the section_offsets are zero.
10054
89cf4787
MK
100552002-05-12 Mark Kettenis <kettenis@gnu.org>
10056
10057 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10058 checked in with last change.
10059
1f77ffc5
MK
100602002-05-12 Mark Kettenis <kettenis@gnu.org>
10061
10062 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10063 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10064 config.sub.
10065
89b8b4a9
DJ
100662002-05-12 Daniel Jacobowitz <drow@mvista.com>
10067
10068 * Makefile.in: Update dependencies.
10069
14a5e767
AC
100702002-05-11 Andrew Cagney <ac131313@redhat.com>
10071
10072 * language.c (local_hex_string_custom): Simplify. Do not depend
10073 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10074
10075 * memattr.c (mem_info_command): Replace calls to
10076 longest_local_hex_string and longest_local_hex_string_custom.
10077 * buildsym.c (make_blockvector): Ditto.
10078 * solib.c (info_sharedlibrary_command): Ditto.
10079 * tracepoint.c (tracepoints_info): Ditto.
10080 * symtab.c (print_msymbol_info): Ditto.
10081
10082 * language.c (local_hex_string): Delete.
10083 (local_hex_string_custom): Delete.
10084 (longest_local_hex_string): Rename to local_hex_string.
10085 (longest_local_hex_string_custom): Rename to
10086 local_hex_string_custom.
10087 * language.h (local_hex_string): Change parameter type to LONGEST.
10088 (local_hex_string_custom): Ditto.
10089 (longest_local_hex_string): Delete declaration.
10090 (longest_local_hex_string_custom): Ditto.
10091
10092 * solib.c: Update copyright.
10093 * memattr.c: Update copyright.
10094
13d01224
AC
100952002-05-11 Andrew Cagney <ac131313@redhat.com>
10096
10097 * arch-utils.h (legacy_register_to_value): Declare.
10098 (legacy_value_to_register): Declare.
10099 (legacy_convert_register_p): Declare.
10100 * arch-utils.c (legacy_register_to_value): New function.
10101 (legacy_value_to_register): New function.
10102 (legacy_convert_register_p): New function.
10103
10104 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10105 (VALUE_TO_REGISTER): Define.
10106 (CONVERT_REGISTER_P): Define.
10107 * gdbarch.h, gdbarch.c: Regenerate.
10108
10109 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10110 VALUE_TO_REGISTER.
10111 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10112 CONVERT_REGISTER_P.
10113
4a1970e4
DJ
101142005-05-11 Daniel Jacobowitz <drow@mvista.com>
10115 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10116
10117 * Makefile.in: Update dependencies for valops.c.
10118 * valops.c: Include "gdb_assert.h".
10119 (typecmp): Skip THIS parameter to methods.
10120 (find_method_list): Remove static_memfuncp argument,
10121 update callers. Check for stub methods.
10122 (find_value_oload_method_list): Don't set *static_memfuncp.
10123 (find_overload_match): Don't check for stub methods. Assert
10124 that methods are not stubbed. Handle static methods.
10125 (value_find_oload_method_list): Remove static_memfuncp argument.
10126 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10127 to the argument list for static stub methods.
10128 * value.h (value_find_oload_method_list): Update prototype.
10129
b2e75d78
AC
101302002-05-11 Andrew Cagney <ac131313@redhat.com>
10131
10132 * arch-utils.h (generic_register_size): Declare.
10133 (generic_register_raw_size, generic_register_virtual_size): Delete
10134 declarations.
10135 * arch-utils.c (generic_register_raw_size): Delete.
10136 (generic_register_size): New function.
10137 (generic_register_virtual_size): Delete.
10138
10139 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10140 default generic_register_size.
10141 * gdbarch.h, gdbarch.c: Re-generate.
10142
10143 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10144 register_virtual_size.
10145 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10147
451fbdda
AC
101482002-05-11 Andrew Cagney <ac131313@redhat.com>
10149
10150 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10151 * gdbarch.h, gdbarch.c: Regenerate.
10152 * gnu-v3-abi.c: Update copyright.
10153 (vtable_address_point_offset): Update.
10154 (gnuv3_rtti_type): Update.
10155 (gnuv3_baseclass_offset): Update.
10156 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10157 (init_fetch_link_map_offsets): Update.
10158 * remote.c (get_remote_state): Update.
10159
6d2f5cea
DJ
101602002-05-11 Daniel Jacobowitz <drow@mvista.com>
10161
10162 * TODO: Remove value_headof/value_from_vtable_info comment.
10163 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10164 * values.c (value_headof, value_from_vtable_info): Delete.
10165 * value.h (value_from_vtable_info): Delete prototype.
10166
d2324da4
AC
101672002-05-11 Andrew Cagney <ac131313@redhat.com>
10168
10169 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10170 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10171 $(gdb_regex_h).
10172 (gdb_assert_h): Define.
10173 (gdb_wait_h): Define.
10174 (gdb_regex_h): Define.
10175
5c717440
DJ
101762002-05-11 Daniel Jacobowitz <drow@mvista.com>
10177
10178 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10179 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10180
6c7861b3
JT
101812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * nbsd-tdep.c: Fix comment.
10184
ea5bc2a6
JT
101852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10186
10187 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10188 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10189 (nbsd-tdep.o): New dependency list.
10190 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10191 nbsd-tdep.h.
10192 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10193 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10194 * nbsd-tdep.c: New file.
10195 * nbsd-tdep.h: New file.
10196 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10197 nbsd-tdep.h.
10198 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10199 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10200 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10201 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10202
b28da865
JT
102032002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10204
10205 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10206 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10207 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10208 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10209 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10210 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10211
4b8ff1fa
JT
102122002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10213
10214 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10215 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10216 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10217 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10218 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10219 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10220 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10221
dfe6eb1f
JT
102222002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10223
10224 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10225 fetch_elfcore_registers to...
10226 * i386nbsd-tdep.c: ...here.
10227 (i386nbsd_use_struct_convention): Rename to...
10228 (i386nbsd_aout_use_struct_convention): ...this.
10229 (i386nbsd_supply_reg): New function.
10230 (i386nbsd_fill_reg): New function.
10231 (fetch_core_registers): Use i386nbsd_supply_reg.
10232 (fetch_elfcore_registers): Likewise.
10233 (_initialize_i386nbsd_tdep): New function.
10234 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10235 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10236 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10237 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10238 (i386nbsd_aout_use_struct_convention): ...this.
10239
20cb8cda
JT
102402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10241
10242 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10243 (store_inferior_registers): Use shnbsd_fill_reg.
10244 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10245 sh_nbsd_supply_register): Collapse into...
10246 (shnbsd_supply_reg): ...this.
10247 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10248 (shnbsd_fill_reg): ...this.
10249 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10250 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10251 (fetch_core_registers): Use shnbsd_supply_reg.
10252 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10253 (sh_nbsd_core_fns): Rename to...
10254 (shnbsd_core_fns): ...this.
10255 (sh_nbsd_elfcore_fns): Rename to...
10256 (shnbsd_elfcore_fns): ...this.
10257 (sh_nbsd_init_abi): Rename to...
10258 (shnbsd_init_abi): ...this.
10259 (_initialize_sh_nbsd_tdep): Rename to...
10260 (_initialize_shnbsd_tdep): ...this.
10261 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10262 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10263 sh_nbsd_fill_register): Remove prototypes.
10264 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10265
e750d25e
JT
102662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10267
10268 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10269 (i387-nat.o): Delete dependency list.
10270 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10271 (x86-64-linux-nat.o): Likewise.
10272 * i387-nat.c: Delete file, moving contents to...
10273 * i387-tdep.c: ...here.
10274 * i387-nat.h: Rename...
10275 * i387-tdep.h: ...to this.
10276 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10277 * i386-linux-nat.c: Likewise.
10278 * i386bsd-nat.c: Likewise.
10279 * i386gnu-nat.c: Likewise.
10280 * i386nbsd-nat.c: Likewise.
10281 * i386v4-nat.c: Likewise.
10282 * x86-64-linux-nat.c: Likewise.
10283 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10284 * config/i386/go32.mh (NATDEPFILES): Likewise.
10285 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10286 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10287 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10288 * config/i386/linux.mh (NATDEPFILES): Likewise.
10289 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10290 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10291 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10292 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10293
1aee598a
JT
102942002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10295
10296 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10297 (alphanbsd-nat.o): Remove dependency list.
10298 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10299 * alphanbsd-nat.c: Delete. Contents moved to...
10300 * alphanbsd-tdep.c: ...here.
10301 (_initialize_alphanbsd_tdep): Register core functions.
10302 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10303
12bcb0fe
JT
103042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10305
10306 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10307 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10308 (alphanbsd-nat.o): Likewise.
10309 (alphabsd-tdep.o): New dependency list.
10310 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10311 (fill_gregset): Use alphabsd_fill_reg.
10312 (supply_fpregset): Use alphabsd_supply_fpreg.
10313 (fill_fpregset): Use alphabsd_fill_fpreg.
10314 (fetch_inferior_registers): Use struct reg and struct fpreg
10315 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10316 and alphabsd_supply_fpreg.
10317 (store_inferior_registers): Use struct reg and struct fpreg
10318 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10319 and alphabsd_fill_fpreg.
10320 * alphabsd-tdep.c: New file.
10321 * alphabsd-tdep.h: New file.
10322 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10323 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10324 alphabsd_supply_fpreg.
10325 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10326 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10327
361d1df0
EC
103282002-05-11 Eric Christopher <echristo@redhat.com>
10329
10330 * mips-tdep.c (mips_double_register_type): Fix thinko.
10331 (mips_single_register_type): Ditto.
10332 * MAINTAINERS: Add self.
10333
92dd7cee
MK
103342002-05-11 Mark Kettenis <kettenis@gnu.org>
10335
10336 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10337 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10338 right thing on architectures with different endianness and/or
10339 integer sizes.
10340
e27da16d
JT
103412002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10342
10343 From Christian Limpach <chris@Pin.LU>
10344 * configure.in: Change sed expression which comments out
10345 NATDEPFILES to also comment out continuation lines.
10346 * configure: Regenerate.
10347
ddde02bd
EZ
103482002-05-10 Elena Zannoni <ezannoni@redhat.com>
10349
10350 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10351 big patch.
10352
1c922164
EZ
103532002-05-10 Elena Zannoni <ezannoni@redhat.com>
10354
10355 * sh-tdep.c: Include correct file.
10356
283150cd
EZ
103572002-05-10 Elena Zannoni <ezannoni@redhat.com>
10358
10359 New support for sh64-elf (sh5) target.
10360
10361 * configure.tgt: For sh64-elf target, default to sh-elf.
10362
10363 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10364 (struct gdbarch_tdep): Add new fields for new registers and ABI
10365 info.
361d1df0 10366
283150cd
EZ
10367 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10368 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10369 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10370 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10371 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10372 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10373 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10374 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10375 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10376 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10377 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10378 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10379 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10380 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10381 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10382 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10383 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10384 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10385 sign_extend, sh64_nofp_frame_init_saved_regs,
10386 sh64_init_extra_frame_info, sh64_get_saved_register,
10387 sh64_extract_struct_value_address, sh64_pop_frame,
10388 sh64_push_arguments, sh64_extract_return_value,
10389 sh64_store_return_value, sh64_show_media_regs,
10390 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10391 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10392 sh_sh64_register_virtual_type,
10393 sh_sh64_register_convert_to_virtual,
10394 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10395 sh64_register_read, sh64_pseudo_register_write,
10396 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10397 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10398 sh64_do_pseudo_register, sh_compact_do_registers_info,
10399 sh64_do_registers_info, sh_gdbarch_init): New functions.
10400
3117ed25
EZ
104012002-05-10 Elena Zannoni <ezannoni@redhat.com>
10402
10403 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10404
2654e6d4
DJ
104052002-05-10 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * linespec.c (decode_line_1): Check for a double quote after
10408 a filename correctly.
10409
9ab3e532
JB
104102002-05-10 Jim Blandy <jimb@redhat.com>
10411
10412 Properly track the size of the current objfile's .debug_line section.
10413 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10414 (DWARF_LINE_SIZE): New macro.
10415 (dwarf2_build_psymtabs_hard): Record the line section's size in
10416 the partial symbol table.
10417 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10418 symbol table.
10419
126fa72d
PS
104202002-05-10 Petr Sorfa <petrs@caldera.com>
10421
10422 * ia64-tdep.c: Handle breakpoints on L instruction type
10423 in MLX instruction bundle by moving the breakpoint to
10424 the third slot (X instruction type) as L holds only data.
10425
1f077a3e
KB
104262002-05-10 Kevin Buettner <kevinb@redhat.com>
10427
10428 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10429 (process_one_symbol): Complain about discarding local symbols
10430 due to a misplaced N_LBRAC entry.
10431
8120c9d5 104322002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
10433
10434 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
10435 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10436 decrease the depth we are at, in the case of templates.
361d1df0 10437
67b2c998
DJ
104382002-05-09 Daniel Jacobowitz <drow@mvista.com>
10439
10440 * mips-tdep.c (mips_float_register_type): New function.
10441 (mips_double_register_type): New function.
10442 (mips_print_register): Use them.
10443 (do_fp_register_row): Likewise.
10444
fd326606
DJ
104452002-05-09 Daniel Jacobowitz <drow@mvista.com>
10446
6609d9af 10447 * signals/signals.c (signals): Remove conditional compilation around
fd326606 10448 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 10449 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 10450
bef35864
MS
104512002-05-09 Michael Snyder <msnyder@redhat.com>
10452
10453 * remote-rdp.c (remote_rdp_can_run): Remove.
10454
c55a3f73
TT
104552002-05-09 Tom Tromey <tromey@redhat.com>
10456
10457 * jv-valprint.c (java_val_print): Handle `char' as a special case
10458 of TYPE_CODE_INT.
10459
b8d5e71d
MS
104602002-05-09 Michael Snyder <msnyder@redhat.com>
10461
10462 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10463 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 10464 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 10465 str r(0123),[sp,#nn].
361d1df0 10466 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
10467 order-independent by placing it in a loop.
10468
e2cd42dd
MS
104692002-05-06 Michael Snyder <msnyder@redhat.com>
10470
10471 * stabsread.c (read_type): Add recognition for new attribute:
10472 "@V;" means that an array type is actually a vector.
10473 This is analogous to the vector flag that's been added to dwarf2.
10474
3ce1502b
MK
104752002-05-09 Mark Kettenis <kettenis@gnu.org>
10476
10477 * i386-tdep.h (i386_abi): New enum.
10478 (struct gdbarch_tdep): Replace os_ident member with abi.
10479 (i386_gdbarch_register_os_abi): New prototype.
10480 * i386-tdep.c (i386_abi_names): New array.
10481 (process_note_abi_tag_sections): Removed.
10482 (process_note_sections): New function.
10483 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10484 (struct i386_abi_handler): New struct.
10485 (i386_abi_handler_list): New variable.
10486 (i386_gdbarch_register_os_abi): New function.
10487 (i386_gdbarch_init): Adapt for the changes given above.
10488
084c156a
DJ
104892002-05-08 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * gregset.h: Say "GNU/Linux".
10492
6599f021
EZ
104932002-05-08 Elena Zannoni <ezannoni@redhat.com>
10494
10495 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10496 (build_gdbtypes): Build builtin_type_v2_float.
10497 (_initialize_gdbtypes): Register new builtin type.
10498
40af4b0c
AC
104992002-05-08 Andrew Cagney <ac131313@redhat.com>
10500
10501 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10502 (clear_gdbarch_swap): New function.
10503 (initialize_non_multiarch): Call.
10504 (gdbarch_update_p): Before calling init(), swap out and clear the
10505 existing architecture.
10506 * gdbarch.c: Regenerate.
10507
4fe84f46
JT
105082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10509
10510 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10511 alphanbsd-tdep.c.
10512
4015edd1
JT
105132002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10514
10515 * sh-nbsd-nat.c: Rename to...
10516 * shnbsd-nat.c: ...this.
10517 * sh-nbsd-tdep.c: Rename to...
10518 * shnbsd-tdep.c: ...this.
10519 * sh-nbsd-tdep.h: Rename to...
10520 * shnbsd-tdep.h: ...this.
10521 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10522 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10523
0e2bd219
RE
105242002-05-08 Richard Earnshaw <rearnsha@arm.com>
10525
10526 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10527 concatenation for command help messages.
10528
13a38d45
JT
105292002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10530
10531 * NEWS: Note new sh*-*-netbsdelf* configuration.
10532 * configure.host: Set gdb_host_cpu to sh for all sh*.
10533 (sh*-*-netbsdelf*): New host.
10534 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10535 (sh*-*-netbsdelf*): New target.
10536 * sh-nbsd-nat.c: New file.
10537 * sh-nbsd-tdep.c: New file.
10538 * sh-nbsd-tdep.h: New file.
10539 * config/sh/nbsd.mh: New file.
10540 * config/sh/nbsd.mt: New file.
10541 * config/sh/nm-nbsd.h: New file.
10542 * config/sh/tm-nbsd.h: New file.
10543
d658f924
JT
105442002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10545
10546 * sh-tdep.c (sh_osabi_names): Declare.
10547 (process_note_abi_tag_sections): New function.
10548 (get_elfosabi): Ditto.
10549 (sh_gdbarch_register_os_abi): Ditto.
10550 (sh_dump_tdep): Ditto.
10551 _initialize_sh_tdep): Use gdbarch_register to register
10552 sh_gdbarch_init and sh_dump_tdep.
10553 * config/sh/tm-sh.h (sh_osabi): Declare.
10554 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10555
848cfffb
AC
105562002-05-07 Andrew Cagney <ac131313@redhat.com>
10557
10558 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10559 (thumb_scan_prologue): Ditto.
10560 (arm_find_callers_reg): Ditto.
10561 (arm_frame_chain): Ditto.
10562 (arm_init_extra_frame_info): Ditto.
10563 (arm_frame_saved_pc): Ditto.
10564 (arm_pop_frame): Ditto.
10565 (arm_push_return_address): New function.
10566 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10567 call_dummy_location, call_dummy_breakpoint_offset_p,
10568 call_dummy_breakpoint_offset, call_dummy_p,
10569 call_dummy_stack_adjust_p, call_dummy_words,
10570 sizeof_call_dummy_words, call_dummy_start_offset,
10571 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10572 call_dummy_address, push_return_address and push_dummy_frame for
10573 generic dummy frames.
10574
e7d717c0
JT
105752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10576
10577 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10578 size computation for alloca.
10579 (sh_fp_frame_init_saved_regs): Likewise.
10580
7bbcf283
RE
105812002-05-07 Richard Earnshaw <rearnsha@arm.com>
10582
10583 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10584 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 10585 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
10586 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10587 * remote-rdp.c (remote_rdp_fetch_register): Use
10588 ARM_MAX_REGISTER_RAW_SIZE.
10589 (remote_rdp_store_register): Likewise.
10590
4657573b
ML
105912002-05-07 Michal Ludvig <mludvig@suse.cz>
10592
361d1df0 10593 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
10594 added default labels to switch {} statements.
10595 * x86-64-tdep.c: Ditto.
10596 * x86-64-linux-nat.c: Ditto.
10597
010f3b2f
JT
105982002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10599
10600 * solib.h: Protect against multiple inclusion.
10601
debd256d
JB
106022002-05-06 Jim Blandy <jimb@redhat.com>
10603
9ab3e532
JB
10604 Add first preprocessor macro-expansion files.
10605 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10606 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10607 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10608 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10609 (COMMON_OBS): Add macrotab.o, macroexp.o.
10610 (macroexp.o, macrotab.o): New rules.
10611
debd256d
JB
10612 Separate the job of reading the line number info statement program
10613 header (...expialidocious) out into its own function.
10614 * dwarf2read.c (struct line_head, struct filenames, struct
10615 directories): Replace with...
10616 (struct line_header): New structure, containing the full
10617 contents of the statement program header, including the
10618 include directory and file name tables.
10619 (read_file_scope): If we have line number info, instead of just
10620 calling dwarf_decode_lines to do all the work, call
10621 dwarf_decode_line_header first to get a `struct line_header'
10622 containing the data in the statement program header, and then
10623 pass that to dwarf_decode_lines, which will pick up where that
10624 left off. Be sure to clean up the `struct line_header' object.
10625 (dwarf_decode_line_header, free_line_header, add_include_dir,
10626 add_file_name): New functions.
10627 (dwarf_decode_lines): Move all the code to read the statement
10628 program header into dwarf_decode_line_header. Take the line
10629 header it built as the first argument, instead of the offset to
10630 the compilation unit's line number info. Use the new `struct
10631 line_header' type instead of the old structures. No need to do
10632 cleanups here now, since we don't allocate anything.
10633 (dwarf2_statement_list_fits_in_line_number_section,
10634 dwarf2_line_header_too_long): New complaints.
10635
ac3aafc7
EZ
106362002-05-06 Elena Zannoni <ezannoni@redhat.com>
10637
10638 * gdbtypes.c (init_vector_type): New function.
10639 (build_builtin_type_vec128): Simplify the representation of SIMD
10640 registers.
10641 (build_gdbtypes): Initialize new builtin vector types.
10642 (_initialize_gdbtypes): Register new vector types with gdbarch.
10643 (builtin_type_v4_float, builtin_type_v4_int32,
10644 builtin_type_v8_int16, builtin_type_v16_int8,
10645 builtin_type_v2_int32, builtin_type_v4_int16,
10646 builtin_type_v8_int8): New (renamed) SIMD types.
10647
13e49980
MK
106482002-05-06 Mark Kettenis <kettenis@gnu.org>
10649
10650 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10651 (i387_fill_fxsave): Likewise.
10652
997b20b8
AO
106532002-05-05 Alexandre Oliva <aoliva@redhat.com>
10654
10655 * alpha-tdep.c (alpha_extract_return_value): Don't use
10656 non-constant array size in prototype.
10657
535c96ce
AC
106582002-05-04 Andrew Cagney <ac131313@redhat.com>
10659
10660 From Brian Taylor <briant at model dot com>:
10661 * ui-out.c (ui_out_field_core_addr): Use the function
10662 longest_local_hex_string_custom'to format addresses > 32 bits
10663 wide.
10664
10665 * ui-out.c (ui_out_field_core_addr): Update comment.
10666
bedfa57b
AC
106672002-05-04 Andrew Cagney <ac131313@redhat.com>
10668
10669 * stack.c (select_and_print_frame): Make static. Delete the
10670 parameter `level'.
10671 (func_command): Update call.
10672 (select_frame_command): Delete code computing the frame level.
10673 * frame.h (select_and_print_frame): Delete declaration.
10674
f621c63e
AC
106752002-05-04 Andrew Cagney <ac131313@redhat.com>
10676
10677 * sparc-tdep.c (sparc_get_saved_register): Comment why
10678 get_prev_frame call is safe.
10679
0f7d239c
AC
106802002-05-04 Andrew Cagney <ac131313@redhat.com>
10681
10682 * frame.h (select_frame): Delete level parameter.
10683 * stack.c (select_frame): Update. Use frame_relative_level to
10684 obtain the frame's level.
10685 (select_and_print_frame): Update call.
10686 (select_frame_command): Ditto.
10687 (up_silently_base): Ditto.
10688 (down_silently_base): Ditto.
10689 * ocd.c (ocd_start_remote): Ditto.
10690 * remote-rdp.c (remote_rdp_open): Ditto.
10691 * remote-mips.c (mips_initialize): Ditto.
10692 (common_open): Ditto.
10693 * remote-e7000.c (e7000_start_remote): Ditto.
10694 * m3-nat.c (select_thread): Ditto.
10695 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10696 (child_get_current_exception_event): Ditto.
10697 * varobj.c (varobj_create): Ditto.
10698 (varobj_update): Ditto.
10699 (c_value_of_root): Ditto.
10700 * tracepoint.c (finish_tfind_command): Ditto.
10701 * corelow.c (core_open): Ditto.
10702 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10703 * thread.c (info_threads_command): Ditto.
10704 (switch_to_thread): Ditto.
10705 * infrun.c (normal_stop): Ditto.
10706 (restore_selected_frame): Ditto.
10707 (restore_inferior_status): Ditto.
10708 * breakpoint.c (insert_breakpoints): Ditto.
10709 (watchpoint_check): Ditto.
10710 (bpstat_stop_status): Ditto.
10711 (do_enable_breakpoint): Ditto.
10712 * blockframe.c (flush_cached_frames): Ditto.
10713 (reinit_frame_cache): Ditto.
10714
71d6c7b1
AC
107152002-05-04 Andrew Cagney <ac131313@redhat.com>
10716
10717 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10718 maintainer.
10719
cda6c68a
JB
107202002-05-04 Jim Blandy <jimb@redhat.com>
10721
10722 * gdbtypes.c (replace_type): Doc fix.
10723
5c1c87f0
AC
107242002-05-04 Andrew Cagney <ac131313@redhat.com>
10725
10726 * valprint.c (strcat_longest): Delete commented out function.
10727 Update copyright.
10728
cd9bfe15
AC
107292002-05-04 Andrew Cagney <ac131313@redhat.com>
10730
10731 * MAINTAINERS: Mark a29k as deleted.
10732 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10733 Move new configurations to the top.
10734 * configure.tgt: Remove a29k.
10735 * config/a29k/tm-vx29k.h: Delete.
10736 * config/a29k/vx29k.mt: Delete.
10737 * config/a29k/tm-a29k.h: Delete.
10738 * config/a29k/a29k-udi.mt: Delete.
10739 * config/a29k/a29k.mt: Delete.
10740 * a29k-tdep.c: Delete.
10741 * remote-udi.c: Delete.
10742 * remote-mm.c: Delete.
10743 * remote-eb.c: Delete.
10744 * remote-adapt.c: Delete.
10745 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
10746 * config/s390/s390x.mt: Ditto.
10747 * config/s390/s390.mt: Ditto.
10748 * config/sparc/sparclynx.mh: Ditto.
10749 * config/sparc/linux.mh: Ditto.
10750 * config/pa/hppaosf.mh: Ditto.
10751 * config/pa/hppabsd.mh: Ditto.
10752 * config/ns32k/nbsd.mt: Ditto.
10753 * config/mips/vr5000.mt: Ditto.
10754 * config/m68k/sun3os4.mh: Ditto.
10755 * config/m68k/nbsd.mt: Ditto.
10756 * config/m68k/m68klynx.mh: Ditto.
10757 * config/m32r/m32r.mt: Ditto.
10758 * config/i386/x86-64linux.mt: Ditto.
10759 * config/i386/nbsdelf.mt: Ditto.
10760 * config/i386/nbsd.mt: Ditto.
10761 * config/i386/i386lynx.mh: Ditto.
10762
bf0c5130
AC
107632002-05-04 Andrew Cagney <ac131313@redhat.com>
10764
10765 * target.c (debug_print_register): New function. Handle oversize
10766 registers.
10767 (debug_to_fetch_registers): Call.
10768 (debug_to_store_registers): Call.
10769
2ae1c2d2
JB
107702002-05-03 Jim Blandy <jimb@redhat.com>
10771
13a393b0
JB
10772 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10773 (read_type): Doc fix.
10774 * gdbtypes.c (replace_type): Doc fix.
10775
2ae1c2d2
JB
10776 * stabsread.c (multiply_defined_struct): New complaint.
10777 (read_struct_type): If the type we were passed isn't empty, or
10778 incomplete, don't read the new struct type into it; complain,
10779 and return the original type unchanged. Take a new `type_code'
10780 argument, which is the type code for the new type.
10781 (read_type): Rather than storing the type's type code here, pass
10782 it as an argument to read_struct_type, and let that take care of
10783 storing it. That way, we don't overwrite the original type code,
10784 so read_struct_type can use it to decide whether we're overwriting
10785 something we shouldn't.
10786 (complain_about_struct_wipeout): New function.
10787
8de9bdc4
AC
107882002-05-03 Andrew Cagney <ac131313@redhat.com>
10789
10790 * gdbarch.sh: Assert that gdbarch is non-NULL.
10791 * gdbarch.c: Regenerate.
10792
f773fdbb
JM
107932002-05-03 Jason Merrill <jason@redhat.com>
10794
10795 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10796 and return NULL.
10797
0e04a514
ML
107982002-05-03 Michal Ludvig <mludvig@suse.cz>
10799
10800 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10801 (x86_64_dwarf2gdb_regno_map_length),
10802 (x86_64_dwarf2_reg_to_regnum): Added.
10803 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10804 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10805 (_initialize_x86_64_tdep): Synced with the change above.
10806 (x86_64_skip_prologue): Reformulated message.
10807
065432a8
PM
108082002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10809
10810 * f-exp.y: Also use new prev_lexptr variable
10811 to improve error reporting. Based on Michael Snyder
10812 2002-04-24 dated patch to c-exp.y.
10813 * jv-exp.y: Likewise.
10814 * m2-exp.y: Likewise.
10815
a3162708
EZ
108162002-05-02 Elena Zannoni <ezannoni@redhat.com>
10817
10818 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10819 we are dealing with vectors.
10820
03620c38
PM
108212002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10822
10823 * config/m68k/tm-nbsd.h: Obvious fix,
10824 correct machine name.
10825
6604db2e
PM
108262002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10827
10828 * p-typeprint.c (pascal_type_print_base): Add support
10829 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10830
0906b739
PM
108312002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10832
10833 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10834 for fondamental pascal 'char' type.
10835
e2625b33
PM
108362002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10837
10838 * p-lang.h (is_pascal_string_type): Declaration changed,
10839 new sixth argument of type char ** added.
361d1df0 10840 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10841 changed. Args length_pos, length_size, string_pos, char_size
10842 can now be NULL. New argument arrayname set to the field
10843 name of the char array. Return value set to char array
10844 field index plus one.
361d1df0 10845 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10846 is_pascal_string_type function.
10847
cf17c188
AC
108482002-05-02 Andrew Cagney <cagney@redhat.com>
10849
10850 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10851 <cagney@redhat.com> change.
10852 * gdbarch.c: Regenerate.
10853
52bca491
AC
108542002-05-02 Andrew Cagney <cagney@redhat.com>
10855
10856 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10857 before probing for a new one. Detect errorenous gdbarch_init
10858 functions.
10859 * gdbarch.c: Regenerate.
10860
d5e72505
AC
108612002-05-01 Andrew Cagney <cagney@redhat.com>
10862
10863 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10864 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10865 * config/v850/tm-v850.h: Ditto. Update copyright.
10866
af566d9f
AC
108672002-04-30 Andrew Cagney <ac131313@redhat.com>
10868
10869 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10870 current_gdbarch.
10871
880d85fa
MS
108722002-04-30 Michael Snyder <msnyder@redhat.com>
10873
94c30b78
MS
10874 * arm-tdep.c: Whitespace clean-ups.
10875 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10876 should have been removed as part of 4/24 change.
10877
6f5987a6
KB
108782002-04-30 Kevin Buettner <kevinb@redhat.com>
10879
10880 * rs6000-tdep.c: Added comment describing how fpscr register
10881 numbers were chosen.
10882
1a113c93
MS
108832002-04-30 Michael Snyder <msnyder@redhat.com>
10884
10885 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10886
9a6f53fe
EZ
108872002-04-29 Elena Zannoni <ezannoni@redhat.com>
10888
10889 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10890 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10891 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10892
11ed25ac
KB
108932002-04-29 Kevin Buettner <kevinb@redhat.com>
10894
10895 From Louis Hamilton <hamilton@redhat.com>:
10896 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10897 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10898 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10899 not bfd-private xcoff data, to determine wordsize.
10900 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10901
ae232405
AC
109022002-04-29 Andrew Cagney <ac131313@redhat.com>
10903
10904 GDB 5.2 released from 5.2 branch.
10905
91fd20f7
ML
109062002-04-29 Michal Ludvig <mludvig@suse.cz>
10907
10908 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10909 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10910 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10911
2dc5091b
EZ
109122002-04-29 Elena Zannoni <ezannoni@redhat.com>
10913
10914 * rs6000-tdep.c (rs6000_extract_return_value,
10915 rs6000_store_return_value): Handle returning vectors.
10916 (rs6000_gdbarch_init): Use
10917 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10918 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10919 New function.
10920 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10921 vectors.
10922 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10923 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10924
2b9848d8
PM
109252002-04-24 Pierre Muller <ics.u-strasbg.fr>
10926
10927 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10928 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10929 with fprintf_unfiltered (gdb_stderr,...).
10930
f8d17dc5
PM
109312002-04-24 Pierre Muller <ics.u-strasbg.fr>
10932
10933 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10934 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10935 Replace fprintf (stderr,...
10936 with fprintf_unfiltered (gdb_stderr,....
10937 * remote-es.c: Likewise.
10938 * remote-os9k.c: Likewise.
10939 * remote-st.c: Likewise.
10940
2f2f1ad1
AS
109412002-04-28 Andreas Schwab <schwab@suse.de>
10942
10943 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10944 linux-proc.o and gcore.o.
10945
b6779aa2
AC
109462002-04-26 Michal Ludvig <mludvig@suse.cz>
10947
10948 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10949 code without frame pointers.
10950
7e57f5f4
AC
109512002-04-26 Andrew Cagney <ac131313@redhat.com>
10952
10953 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10954 ON_STACK is needed.
10955
2ceb85d0
BE
109562002-04-26 Ben Elliston <bje@redhat.com>
10957
10958 * target.c (do_xfer_memory): Correct reference to the new option
10959 "trust-readonly-sections".
10960
f5f8a009
EZ
109612002-04-26 Elena Zannoni <ezannoni@redhat.com>
10962
10963 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10964 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10965 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10966 vectors.
10967 (read_array_type): Record the fact that this array type is really a
10968 vector (i.e. are passed in by value).
10969
5868c862
JT
109702002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10971
10972 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10973 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10974 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10975 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10976 * alpha-linux-tdep.c: Include frame.h.
10977 (alpha_linux_sigcontext_addr): New function.
10978 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10979 alpha_linux_sigcontext_addr.
10980 * alpha-osf1-tdep.c: Include gdbcore.h.
10981 (alpha_osf1_sigcontext_addr): New function.
10982 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10983 alpha_osf1_sigcontext_addr.
10984 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10985 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10986
bfb01f37
AC
109872002-04-26 Andrew Cagney <ac131313@redhat.com>
10988
361d1df0 10989 * stack.c (selected_frame_level):
bfb01f37
AC
10990 (select_frame): Do not set selected_frame_level.
10991 * frame.h (selected_frame_level): Delete declaration.
10992
15813d3f
AC
109932002-04-26 Andrew Cagney <ac131313@redhat.com>
10994
10995 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10996 convert_from_func_ptr-addr when AIX / PowerOpen.
10997
6096c27a
AC
109982002-04-25 Andrew Cagney <ac131313@redhat.com>
10999
11000 * valops.c (hand_function_call): Call
11001 generic_save_call_dummy_addr.
11002 * frame.h (generic_save_call_dummy_addr): Declare.
11003 * blockframe.c (struct dummy_frame): Add fields call_lo and
11004 call_hi.
11005 (generic_find_dummy_frame): Check for PC in range call_lo to
11006 call_hi instead of entry_point_address.
11007 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11008 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11009 (generic_save_call_dummy_addr): New function.
11010
f510d44e
DM
110112002-04-24 David S. Miller <davem@redhat.com>
11012
11013 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11014 sparc_skip_prologue.
11015 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11016 information to find prologue when possible.
11017 (sparc_prologue_frameless_p): Call examine_prologue directly.
11018 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11019 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11020 second argument.
11021 (SKIP_PROLOGUE): Likewise.
11022
15d72a92
JT
110232002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11024
11025 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11026 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11027 indicate that the condition it was testing is always true.
11028 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11029 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11030 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11031
accc6d1f
JT
110322002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11033
11034 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11035 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11036 tdep->jb_pc and tdep->jb_elt_size.
11037 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11038 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11039 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11040 * alpha-nat.c (get_longjmp_target): Remove.
11041 (JB_ELEMENT_SIZE): Ditto.
11042 (JB_PC): Ditto.
11043 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11044 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11045 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11046 to alpha_get_longjmp_target.
11047 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11048 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11049 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11050
1bfdc549
AC
110512002-04-25 Andrew Cagney <ac131313@redhat.com>
11052
11053 * README: Update to GDB 5.2.
11054
1bd316f0
AC
110552002-04-25 Andrew Cagney <ac131313@redhat.com>
11056
11057 * gdbarch.sh (LC_ALL): Set to `c'.
11058
2e5ff58c
TR
110592002-04-25 Theodore A. Roth <troth@verinet.com>
11060
11061 * avr-tdep.c: Ran through gdb_indent.sh.
11062
e33ce519
TR
110632002-04-25 Theodore A. Roth <troth@verinet.com>
11064
11065 * MAINTAINERS: Add myself as AVR maintainer.
11066 * NEWS: Note new target avr.
11067
8818c391
TR
110682002-04-25 Theodore A. Roth <troth@verinet.com>
11069
11070 * Makefile.in: Add support for AVR target.
11071 * configure.tgt: Add support for AVR target.
11072 * avr-tdep.c: New file
11073 * config/avr/avr.mt: New file.
11074
79509c2d
TR
110752002-04-25 Theodore A. Roth <troth@verinet.com>
11076
11077 * MAINTAINERS: Add myself to write-after-approval.
11078
dac8068e
PM
110792002-04-24 Pierre Muller <ics.u-strasbg.fr>
11080
11081 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11082 with fprintf_unfiltered (gdb_stderr,....
11083
25bf3106
PM
110842002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11085
11086 Fix PR gdb/508.
11087 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11088
24467a86
PM
110892002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11090
11091 * p-exp.y: Also use new prev_lexptr variable
11092 to improve error reporting. Based on Michael Snyder
11093 2002-04-24 dated patch to c-exp.y.
11094
95b80706
JT
110952002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11096
11097 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11098 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11099 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11100 to 0.
11101 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11102 and struct value.
11103 (FUNCTION_START_OFFSET): Remove.
11104 (BREAKPOINT): Ditto.
11105
e90cc612
JT
111062002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11107
11108 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11109 * NEWS: Ditto.
11110
6c72f9f9
JT
111112002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11112
11113 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11114 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11115 alpha_linux_pc_in_sigtramp.
11116 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11117 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11118 alpha_osf1_pc_in_sigtramp.
11119 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11120 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11121 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11122 alphafbsd_pc_in_sigtramp.
11123 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11124 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11125 alphanbsd_pc_in_sigtramp.
11126 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11127 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11128
5e4f3379
JT
111292002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11130
11131 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11132
da8ca43d
JT
111332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11134
11135 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11136 alphanbsd-tdep.c.
11137 (alphanbsd-nat.o): New dependency list.
11138 (alphanbsd-tdep.o): Ditto.
11139 * NEWS: Note new native NetBSD/alpha configuration.
11140 * alphanbsd-nat.c: New file.
11141 * alphanbsd-tdep.c: Ditto.
11142 * configure.host (alpha*-*-netbsd*): New host.
11143 * configure.tgt (alpha*-*-netbsd*): New target.
11144 * config/alpha/nbsd.mh: New file.
11145 * config/alpha/nbsd.mt: Ditto.
11146 * config/alpha/nm-nbsd.h: Ditto.
11147 * config/alpha/tm-nbsd.h: Ditto.
11148
36a6271d
JT
111492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11150
11151 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11152 (alpha-osf1-tdep.o): New dependency list.
11153 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11154 and skip_sigtramp_frame members.
11155 * alpha-linux-tdep.c: Include gdbcore.h.
11156 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11157 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11158 * alpha-osf1-tdep.c: New file.
11159 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11160 alpha-osf1-dep.c.
11161 (alpha_frame_past_sigtramp_frame): New function.
11162 (alpha_dynamic_sigtramp_offset): Ditto.
11163 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11164 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11165 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11166 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11167 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11168 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11169 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11170 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11171 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11172 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11173 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11174 to find_solib_trampoline_target.
11175 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11176 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11177 (SKIP_TRAMPOLINE_CODE): Remove.
11178 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11179 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11180 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11181 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11182 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11183 (PROC_SIGTRAMP_MAGIC): Ditto.
11184 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11185 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11186 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11187 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11188 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11189
2f4bc57b
JT
111902002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11191
11192 * NEWS: Note that Alpha targets are now multi-arch.
11193
665132f9
MS
111942002-04-24 Michael Snyder <msnyder@redhat.com>
11195
11196 * parser-defs.h (prev_lexptr): New external variable.
11197 * parse.c (parse_exp_1): Set prev_lexptr to null before
11198 calling the language-specific parser.
11199 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11200 (yyerror): Use prev_lexptr in error reporting.
11201
32872fa7
DJ
112022002-04-24 Daniel Jacobowitz <drow@mvista.com>
11203
11204 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11205 * gregset.h: If FILL_FPXREGSET is defined, provide
11206 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11207 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11208 is defined, call fill_fpxregset.
11209
57e76fac
MS
112102002-04-24 Roland McGrath <roland@frob.com>
11211
11212 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11213 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11214 (supply_gregset, supply_fpregset): New functions.
11215
11216 * gnu-nat.c (gnu_find_memory_regions): New function.
11217 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11218 (gnu_xfer_memory): Add a cast.
11219
f43845b3
MS
112202002-04-24 Michael Snyder <msnyder@redhat.com>
11221
361d1df0 11222 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
11223 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11224 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 11225 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
11226 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11227 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11228
a0abec03
AC
11229Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11230
11231 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11232 NUM_PSEUDO_REGS can be used.
11233
d7bd68ca
AC
112342002-04-24 Andrew Cagney <ac131313@redhat.com>
11235
11236 * arch-utils.h: Update copyright.
11237
11238 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11239 * gdbarch.h, gdbarch.c: Re-generate.
11240
11241 * inferior.h (IN_SIGTRAMP): Delete definition.
11242 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11243 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11244
11245 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11246 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11247 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11248 (find_proc_framesize): Ditto.
11249 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11250 (alpha_init_extra_frame_info): Ditto.
11251 * infrun.c (handle_inferior_event): Ditto.
11252 (handle_inferior_event): Ditto.
11253 (check_sigtramp2): Ditto.
11254 * blockframe.c (create_new_frame): Ditto.
11255 (get_prev_frame): Ditto.
11256 * ppc-linux-tdep.c: Update comments.
11257 * i386-linux-tdep.c: Update comments.
11258 * breakpoint.c (bpstat_what): Update comment.
11259
4867e41e
DM
112602002-04-24 David S. Miller <davem@redhat.com>
11261
21d83aa5
DM
11262 * i960-tdep.c (register_in_window_p): New function.
11263 (i960_find_saved_register): Use it instead of
11264 REGISTER_IN_WINDOW_P.
11265 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11266
4867e41e
DM
11267 * symtab.h (find_stab_function_addr): Kill extern.
11268 * minsyms.c (find_stab_function_addr): Remove from here...
11269 * dbxread.c: ... to here, and mark it static.
11270
69cdf6a2
DM
112712002-04-20 David S. Miller <davem@redhat.com>
11272
11273 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11274 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11275
5a595886
DM
112762002-04-21 David S. Miller <davem@redhat.com>
11277
11278 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11279 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11280 (vx_write_register): Likewise.
11281
1da1a192
JB
112822002-04-23 J. Brobecker <brobecker@gnat.com>
11283
11284 * source.c (is_regular_file): New function.
11285 (openp): Check wether file to open is a regular file
11286 to avoid opening directories.
11287
baa6f10b
JT
112882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11289
11290 * findvar.c (extract_signed_integer): Cast printf argument
11291 to suppress format warning.
11292 (extract_unsigned_integer): Likewise.
11293 * infcmd.c (registers_info): Likewise.
11294 * top.c (get_prompt_1): Likewise.
11295 * valops.c (value_assign): Likewise.
11296 * valprint.c (print_decimal): Likewise.
11297
b2c4da81
L
112982002-04-22 H.J. Lu (hjl@gnu.org)
11299
11300 * c-exp.y (typebase): Support
361d1df0 11301
b2c4da81
L
11302 [long|long long|short] [signed|unsigned] [int|]
11303
11304 and
11305
11306 signed [long|long long|short] int
11307
f267bd6a
JT
113082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11309
11310 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11311 and vax-tdep.h.
11312 * vax-tdep.h: New file.
11313 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11314 Make several routines static.
11315 (vax_get_saved_register): New function.
11316 (vax_gdbarch_init): New function.
11317 (_initialize_vax_tdep): Register vax_gdbarch_init.
11318 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11319 Remove macros now under the control of gdbarch.
11320
da3c6d4a
MS
113212002-04-22 Michael Snyder <msnyder@redhat.com>
11322
11d3b27d
MS
11323 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11324 Some whitespace and coding standards tweaks.
da3c6d4a 11325
a33f7558
JT
113262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11327
11328 * vax-tdep.c: Include regcache.h.
11329 (vax_call_dummy_words): New.
11330 (sizeof_vax_call_dummy_words): New.
11331 (vax_fix_call_dummy): New function.
11332 (vax_saved_pc_after_call): Ditto.
11333 * config/vax/tm-vax.h: Don't include regcache.h.
11334 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11335 (CALL_DUMMY): Remove.
11336 (CALL_DUMMY_WORDS): Define.
11337 (SIZEOF_CALL_DUMMY_WORDS): Define.
11338 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11339
47a73475
MS
113402002-04-18 Michael Snyder <msnyder@redhat.com>
11341
11342 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11343
52efde73
JT
113442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11345
11346 * vax-tdep.c (vax_frame_chain): New function.
11347 (vax_push_dummy_frame): Ditto.
11348 (vax_pop_frame): Ditto.
11349 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11350 (FRAMELESS_FUNCTION_INVOCATION): Use
11351 generic_frameless_function_invocation_not.
11352 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11353 (POP_FRAME): Use vax_pop_frame.
11354
ea74468c
JT
113552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11356
11357 * vax-tdep.c (vax_store_struct_return): New function.
11358 (vax_extract_return_value): Ditto.
11359 (vax_store_return_value): Ditto.
11360 (vax_extract_struct_value_address): Ditto.
11361 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11362 vax_store_struct_return.
11363 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11364 (STORE_RETURN_VALUE): Use vax_store_return_value.
11365 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11366
5516aa92
JT
113672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11368
11369 * vax-tdep.c (vax_frame_saved_pc): New function.
11370 (vax_frame_args_address_correct): Ditto.
11371 (vax_frame_args_address): Ditto.
11372 (vax_frame_locals_address): Ditto.
11373 (vax_frame_num_args): Move code to be in proximity to
11374 other frame-related functions.
11375 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11376 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11377 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11378 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11379 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11380
36af0b35
L
113812002-04-22 H.J. Lu (hjl@gnu.org)
11382
11383 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11384 includedir.
11385
ab62c900
JT
113862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11387
11388 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11389 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11390 (FRAME_INIT_SAVED_REGS): New macro.
11391
7232b100
JT
113922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11393
11394 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11395
b70d2aee
JT
113962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11397
11398 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11399 where needed.
11400 (fetch_osf_core_registers): Likewise.
11401 (supply_gregset): Likewise.
11402
a0e8a2d1 114032002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 11404
a0e8a2d1
JB
11405 * symfile.h (get_section_index): Define.
11406 * symfile.c (get_section_index): New function.
11407 * mdebugread.c (SC_IS_SBSS): New macro.
11408 (SC_IS_BSS): Return true for the scBss storage class only, as
11409 the scSBss storage class refers to the .sbss section.
11410 (parse_partial_symbols): Discard the symbols which associated
11411 section does not exist.
11412 Make sure to use the .sbss section index for symbols which
11413 storage class is scBss, rather than using the .bss section index.
11414
51eb8b08
JT
114152002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11416
11417 * vax-tdep.c: Update copyright years.
11418 (vax_register_name): New function.
11419 (vax_register_byte): Ditto.
11420 (vax_register_raw_size): Ditto.
11421 (vax_register_virtual_size): Ditto.
11422 (vax_register_virtual_type): Ditto.
11423 * config/vax/tm-vax.h: Update copyright years.
11424 (REGISTER_NAMES): Remove.
11425 (REGISTER_NAME): Define.
11426 (REGISTER_BYTE): Use vax_register_byte.
11427 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11428 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11429 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11430
6cc1c0a8
AC
114312002-04-21 Andrew Cagney <ac131313@redhat.com>
11432
11433 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11434 declaration
11435 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11436
9319a2fe
DM
114372002-04-21 David S. Miller <davem@redhat.com>
11438
11439 * arch-utils.c (generic_prologue_frameless_p): Kill
11440 SKIP_PROLOGUE_FRAMELESS_P code.
11441 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11442 references.
11443 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11444 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11445 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11446 references.
11447 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11448 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11449 (sparc_gdbarch_init): Pass it to
11450 set_gdbarch_prologue_frameless_p.
a0e8a2d1 11451
e9ed6d01
JT
114522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11453
11454 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11455 (alphabsd-nat.o): New dependency list.
11456
36012033
JT
114572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11458
11459 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11460 alphafbsd-tdep.c.
11461 (alpha-linux-tdep.o): New dependency list.
11462 (alphafbsd-tdep.o): Likewise.
11463
3379287a
JT
114642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11465
11466 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11467 to here...
11468 * alpha-tdep.c: ...from here.
11469 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11470
4bcbd6cb
JT
114712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11472
11473 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11474 prototype from here...
11475 * alpha-tdep.h: ...to here.
11476
b31da25e
AC
114772002-04-21 Andrew Cagney <ac131313@redhat.com>
11478
11479 * frame.h (selected_frame_level): Document as deprecated.
11480 (frame_relative_level): Declare.
11481 * stack.c (frame_relative_level): New function.
11482 (selected_frame_level): Document as deprecated.
11483 (select_frame): Do not set the selected_frame_level.
11484
11485 * stack.c (frame_info, record_selected_frame): Update.
11486 (frame_command, current_frame_command): Update.
11487 (up_silently_base, up_command, down_silently_base): Update.
11488 (down_command): Update.
11489 * inflow.c (kill_command): Update.
11490 * tracepoint.c (finish_tfind_command): Update.
11491 * corelow.c (core_open): Update.
11492 * thread.c (info_threads_command): Update.
11493 (do_captured_thread_select): Update.
11494 * infcmd.c (finish_command): Update.
11495 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11496
9c1d6fe5
JT
114972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11498
11499 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11500
ab89facf
AC
115012002-04-21 Andrew Cagney <ac131313@redhat.com>
11502
11503 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11504 type const.
11505
82a4efa1
JT
115062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11507
11508 * alphafbsd-tdep.c: Update copyright years. Include
11509 alpha-tdep.h.
11510 (alphafbsd_use_struct_convention): Make static.
11511 (alphafbsd_init_abi): New function.
11512 (_initialize_alphafbsd_tdep): New function.
11513 * config/alpha/tm-fbsd.h: Update copyright years.
11514 (USE_STRUCT_CONVENTION): Remove.
11515
44dffaac
JT
115162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11517
11518 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11519 an Alpha ABI variant.
11520 (alpha_abi_handler_list): Declare.
11521 (alpha_gdbarch_register_os_abi): New function.
11522 (alpha_gdbarch_init): Give registered ABI variant handlers a
11523 chance to tweak the gdbarch once we have set up defaults.
11524 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11525
65585be4
JT
115262002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11527
11528 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11529 to standard_coerce_float_to_double.
11530 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11531
d9b023cc
JT
115322002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11533
11534 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11535 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11536 from gdbarch_tdep rather than a constant.
11537 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11538 the default text address for all Alpha Unix ABIs.
11539 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11540 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11541
dc129d82
JT
115422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11543
11544 * alpha-tdep.h: New file. Includes several Alpha target constants
11545 taken from...
11546 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11547 let gdbarch deal with.
11548 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11549 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11550 to dependency list.
11551 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11552 Alpha target register names.
11553 * alphabsd-nat.c: Likewise.
11554 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11555 Alpha target register names. Make serveral routines static.
11556 (alpha_get_saved_register): New function.
11557 (alpha_abi_names): New.
11558 (process_note_abi_tag_sections): New function.
11559 (get_elfosabi): New function.
11560 (alpha_gdbarch_init): New function.
11561 (alpha_dump_tdep): New function.
11562 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11563
d49d1e0a
AC
115642002-04-21 Andrew Cagney <ac131313@redhat.com>
11565
11566 * frame.c (find_saved_register): Delete #ifdef
11567 HAVE_REGISTER_WINDOWS code.
11568 * config/sparc/tm-sparc.h: Update comments.
11569 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11570
92e8c9ed
AC
115712002-04-21 Andrew Cagney <ac131313@redhat.com>
11572
11573 * i960-tdep.c (i960_find_saved_register): New function.
11574 (i960_get_saved_register): New function.
11575 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11576 (i960_get_saved_register): Declare.
11577 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11578
e1925118
DM
115792002-04-20 David S. Miller <davem@redhat.com>
11580
11581 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11582
29673b29
AC
115832002-04-20 Andrew Cagney <ac131313@redhat.com>
11584
11585 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11586 instead of NUM_PSEUDO_REGS.
11587
6c86dcd5
DM
115882002-04-20 David S. Miller <davem@redhat.com>
11589
11590 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11591 GDB_MULTI_ARCH_PARTIAL
11592 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11593 define, let tm-sp64.h do it.
11594
aa40ec90
JT
115952002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11596
11597 * frame.c (find_saved_register): Avoid a NULL pointer
11598 dereference and actually walk the frame list.
11599
0f79675b
AC
116002002-04-20 Andrew Cagney <ac131313@redhat.com>
11601
11602 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11603 sorted in most most-recent-used order. Document.
11604 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11605
f91305dd 116062002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
11607
11608 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11609 instead of ->prev.
11610 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11611 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11612 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11613 instead of ->prev.
11614
73d322b1
EZ
116152002-04-19 Elena Zannoni <ezannoni@redhat.com>
11616
11617 Fix PR gdb/471.
11618 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11619 (build_builtin_type_vec128): Ditto.
11620 (append_composite_type_field): Fix calculation of type length in
11621 union case.
11622
ccd9a834
EZ
116232002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11624
11625 * config/djgpp/README: Update.
11626
11627 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11628 compiler warnings.
11629
a57f9e49
JT
116302002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11631
11632 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11633 (alpha_setup_arbitrary_frame): ...to this.
11634 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11635 for alpha_setup_arbitrary_frame.
11636
f4f9705a
AC
116372002-04-18 Andrew Cagney <cagney@redhat.com>
11638
11639 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11640 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 11641
f4f9705a
AC
11642 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11643 * target.h (memory_breakpoint_from_pc): Update declaration.
11644 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11645
11646 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11647 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11648 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11649 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11650 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11651 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11652 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11653 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11654 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11655 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11656 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11657 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11658
11659 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11660 const pointer.
11661 * monitor.c (monitor_insert_breakpoint): Ditto.
11662 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11663
11664 * config/mcore/tm-mcore.h: Update copyright.
11665 * mem-break.c: Ditto.
11666 * xstormy16-tdep.c: Ditto.
11667
29f319b8
PM
116682002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11669
11670 * p-exp.y: Add precedence rule for '^' token.
11671 This removes the shift/reduce conflicts.
11672 Remove the comment concerning these shift/reduce conflicts.
11673
ebeac11a
EZ
116742002-04-18 Elena Zannoni <ezannoni@redhat.com>
11675
11676 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11677 (registers_powerpc_nofp): New register set for processors
11678 without floating point unit.
11679
27c31547
DM
116802002-04-18 David S. Miller <davem@redhat.com>
11681
11682 * MAINTAINERS: Add myself to write-after-approval.
11683
47a73475
MS
116842002-04-17 Michael Snyder <msnyder@redhat.com>
11685
11686 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11687
953836b2
AC
116882002-04-17 Andrew Cagney <ac131313@redhat.com>
11689
11690 * rs6000-tdep.c (frame_initial_stack_address): Use
11691 frame_register_read to read the alloca_reg.
11692
8b0d4340
AC
116932002-04-17 Andrew Cagney <ac131313@redhat.com>
11694
11695 * frame.c (find_saved_register): Find saved registers in the next
11696 not prev frame.
11697 Fix PR gdb/365.
11698
d8864532
AC
116992002-04-17 Andrew Cagney <ac131313@redhat.com>
11700
11701 * gdbarch.sh (LANG): Set to ``c''.
11702
36cc83a3 117032002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 11704
36cc83a3 11705 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 11706
2f4150cc 117072002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
11708
11709 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11710 Update copyright.
11711
628703c6 11712 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 11713 Also fix PR gdb/391.
361d1df0 11714
56157b4a
AC
117152002-04-14 Andrew Cagney <ac131313@redhat.com>
11716
11717 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11718 * aclocal.m4, configure: Re-generate.
11719 Fix PR gdb/391.
361d1df0 11720
6d1e3329
EZ
117212002-04-14 Elena Zannoni <ezannoni@redhat.com>
11722
11723 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11724 instead of tm_print_insn.
11725
cb06fa07
EZ
117262002-04-14 Elena Zannoni <ezannoni@redhat.com>
11727
11728 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11729
f208ba17
AC
117302002-04-14 Andrew Cagney <ac131313@redhat.com>
11731
11732 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11733 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11734 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11735
20f01a46
DH
117362002-04-12 Don Howard <dhoward@redhat.com>
11737
11738 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11739 max_user_call_depth.
11740 (init_cmd_lists): Initialize the new value;
11741 * cli/cli-script.c (execute_user_command): Limit the call depth of
11742 user defined commands. This avoids a core-dump when user commands
11743 are infinitly recursive.
11744
a88376a3
KB
117452002-04-12 Kevin Buettner <kevinb@redhat.com>
11746
11747 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11748 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11749 from tdep struct instead of DEFAULT_LR_SAVE.
11750 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11751 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11752 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11753
f2172603
MS
117542002-04-12 Michael Snyder <msnyder@redhat.com>
11755
694f61fb 11756 * Remote.c: Spelling fix.
20fe79c8
MS
11757 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11758 If no symbol found for "sbrk", try "_sbrk".
11759 (make_output_phdrs): Use bfd_section_name.
11760 (gcore_copy_callback): Use bfd_section_name.
62995fc4 11761 * eval.c: Indentation fix-ups.
169a7369
MS
11762 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11763 in case it gets applied to an address that is already
11764 in the instruction space.
de74f71f
MS
11765 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11766 * symfile.c: Fix indentation, long lines.
f2172603
MS
11767 * source.c: White space fix-up.
11768
cda5a58a
AC
117692002-04-12 Andrew Cagney <cagney@redhat.com>
11770
11771 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11772 * frame.c (frame_register_read): New function. Return non-zero on
11773 success.
11774 (read_relative_register_raw_bytes_for_frame): Delete.
11775 (read_relative_register_raw_bytes): Delete.
11776 * frame.h (frame_register_read): Declare.
11777 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11778 * sh-tdep.c: Ditto.
11779 * infcmd.c (do_registers_info): Ditto.
11780 * hppa-tdep.c: Ditto.
11781 * rs6000-tdep.c: Ditto.
11782 * h8500-tdep.c: Ditto.
11783 * mips-tdep.c: Ditto.
11784 * h8300-tdep.c: Ditto.
11785 * z8k-tdep.c: Ditto.
11786
2ea5f656
KB
117872002-04-12 Kevin Buettner <kevinb@redhat.com>
11788
11789 From Jimi X <jimix@watson.ibm.com>:
11790 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11791 64-bit SysV ABI.
11792
27b15785
KB
117932002-04-12 Kevin Buettner <kevinb@redhat.com>
11794
11795 From Jimi X <jimix@watson.ibm.com>:
11796 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11797 bfd info.
11798
5d57ee30
KB
117992002-04-12 Kevin Buettner <kevinb@redhat.com>
11800
11801 From Jimi X <jimix@watson.ibm.com>:
11802 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11803 register sets for these processor variants.
11804
bc1e36ca
DJ
118052002-04-11 Daniel Jacobowitz <drow@mvista.com>
11806
bc1e36ca
DJ
11807 * regformats/reg-ppc.dat: Support FPSCR.
11808
e3f36dbd
KB
118092002-04-11 Kevin Buettner <kevinb@redhat.com>
11810
11811 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11812 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11813 Add fpscr as an invalid/unfetchable register.
11814 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11815 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11816 (fill_fpregset): Add support for register fpscr.
11817 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11818 (fill_gregset): Account for the fact that register ``mq'' might
11819 not exist.
11820 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11821 (registers_power): Add fpscr to register set at slot 71.
11822 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11823 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11824
943c9c25
MS
118252002-04-11 Michael Snyder <msnyder@redhat.com>
11826
11827 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11828 * configure: Regenerate.
11829 * config.in: Regenerate.
11830 * acconfig.h: Add define for _SYSCALL32.
11831 * core-sol2.c: Remove #define _SYSCALL32.
11832 * solib-legacy.c: Remove #define _SYSCALL32.
11833
d8c0a2e7
AC
118342002-04-10 Andrew Cagney <ac131313@redhat.com>
11835
11836 * stack.c (select_frame): Cleanup internal error message, do not
11837 use %p.
11838
7cc19214
AC
118392002-04-10 Andrew Cagney <ac131313@redhat.com>
11840
11841 * stack.c (select_frame): Check that selected_frame and the
11842 specified level are as expected.
11843 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11844 Update copyright.
11845 * frame.h (struct frame_info): Add field `level'. Update
11846 copyright.
11847 Work-in-progress PR gdb/464.
11848
67a2b77e
AC
118492002-04-10 Andrew Cagney <ac131313@redhat.com>
11850
11851 * maint.c (maint_print_section_info): Rename print_section_info.
11852 (print_bfd_section_info, print_objfile_section_info): Update.
11853 * inferior.h (struct gdbarch): Add opaque declaration.
11854 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11855 * gdbarch.h: Regenerate.
11856
8cfda98c
ML
118572002-04-10 Michal Ludvig <mludvig@suse.cz>
11858
11859 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11860 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11861 (kernel_u_size): Added.
11862 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11863 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11864
ca439ad2 118652002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11866
ca439ad2
JI
11867 * valarith.c (find_size_for_pointer_math): New function, either returns
11868 the size for a pointer's target, returns 1 for void *, or errors for
11869 incomplete types.
11870 (value_add, value_sub): use find_size_for_pointer_math.
11871
2f2893d9
DJ
118722002-04-09 Daniel Jacobowitz <drow@mvista.com>
11873
11874 * linux-low.c (linux_look_up_symbols): New hook.
11875 (linux_target_ops): Add linux_look_up_symbols.
11876 * remote-utils.c (decode_address): New function.
11877 (look_up_one_symbol): New function.
11878 * server.c (handle_query): Call target look_up_symbols hook.
11879 * server.h (look_up_one_symbol): Add prototype.
11880 * target.h (struct target_ops): Add look_up_symbols hook.
11881
96cb11df
AC
118822002-04-09 Andrew Cagney <ac131313@redhat.com>
11883
11884 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11885 override FP_REGNUM with frame->fp. Update copyright.
11886 * parse.c (num_std_regs, std_regs): Delete.
11887 (target_map_name_to_register): Do not search std_regs. Update
11888 function description.
11889 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11890 declarations. Update copyright.
11891 Fix PR gdb/251.
361d1df0 11892
97658e92
DJ
118932002-04-09 Daniel Jacobowitz <drow@mvista.com>
11894
11895 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11896 after the last symbol in a block.
11897
6044e3eb
PM
118982002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11899
11900 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11901 is non zero as a found symbol.
11902
0406ec40
AC
119032002-04-08 Andrew Cagney <ac131313@redhat.com>
11904
11905 * findvar.c: Include "builtin-regs.h".
11906 (value_of_register): Call value_of_builtin_reg when applicable.
11907 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11908 (target_map_name_to_register): Call
11909 builtin_reg_map_name_to_regnum.
11910 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11911 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11912 (builtin_regs_h): Define.
11913 (builtin-regs.o): New target.
11914 (findvar.o): Add $(builtin_regs_h).
11915 * builtin-regs.c, builtin-regs.h: New files.
11916 * std-regs.c: New file.
11917 Partial fix for PR gdb/251.
11918
56a6dfb9
KB
119192002-04-08 Kevin Buettner <kevinb@redhat.com>
11920
11921 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11922 it's no longer required.
11923
3a808432
AC
119242002-04-08 Andrew Cagney <ac131313@redhat.com>
11925
11926 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11927
7c40d541
KB
119282002-04-08 Kevin Buettner <kevinb@redhat.com>
11929
11930 From Jimi X <jimix@watson.ibm.com>:
11931 * rs6000-tdep.c (rs6000_software_single_step): Use
11932 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11933 and size. Use target_insert_breakpoint() and
11934 target_remove_breakpoint() to insert and remove breakpoints
11935 instead of explicit memory reads and writes.
11936
cc9836a8
KB
119372002-04-08 Kevin Buettner <kevinb@redhat.com>
11938
11939 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11940 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11941 ELF_OBJECT_FORMAT ifdef.
11942
7495d1dc
KB
119432002-04-08 Kevin Buettner <kevinb@redhat.com>
11944
11945 From Jimi X <jimix@watson.ibm.com>:
11946 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11947
4288e836
KB
119482002-04-08 Kevin Buettner <kevinb@redhat.com>
11949
11950 From Jimi X <jimix@watson.ibm.com>:
11951 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11952 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11953
a4e4e501
MK
119542002-04-07 Mark Kettenis <kettenis@gnu.org>
11955
11956 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11957 s/asprintf/xasprintf/.
11958 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11959
006defba
AC
119602002-04-07 Andrew Cagney <ac131313@redhat.com>
11961
11962 I believe Jeff Law denies responsability for this one:
11963 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11964 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11965 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11966 Work-around for PR gdb/366.
11967
7aa83cac
EZ
119682002-04-07 Elena Zannoni <ezannoni@redhat.com>
11969
11970 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11971 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11972 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11973
cf1fcca1
EZ
119742002-04-07 Elena Zannoni <ezannoni@redhat.com>
11975
11976 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11977 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11978 information.
11979
3f289e6f
AC
119802002-04-07 Andrew Cagney <ac131313@redhat.com>
11981
11982 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11983 maintainer.
11984
129188f6
AC
119852002-04-07 Andrew Cagney <ac131313@redhat.com>
11986
11987 * README (Reporting Bugs in GDB): Document the bug web page as the
11988 prefered way of submitting bugs.
11989 Fix PR gdb/402.
11990
1200cd6e
AC
119912002-04-06 Andrew Cagney <ac131313@redhat.com>
11992
11993 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11994 -1. Update comment.
11995 * gdbarch.h, gdbarch.c: Re-generate.
11996
2853c33c
AS
119972002-04-07 Andreas Schwab <schwab@suse.de>
11998
11999 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12000 buffer to regcache_collect.
12001
c2169756
AC
120022002-04-06 Andrew Cagney <ac131313@redhat.com>
12003
12004 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12005 * gdbarch.c, gdbarch.h: Re-generate.
12006
25f1b008
AC
120072002-04-06 Andrew Cagney <ac131313@redhat.com>
12008
12009 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12010 declaration. Fix -Werror.
12011
59263426
DJ
120122002-04-05 Daniel Jacobowitz <drow@mvista.com>
12013
12014 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12015 * gdbarch.c: Regenerate.
12016
f5db4da3
MS
120172002-04-05 Michael Snyder <msnyder@redhat.com>
12018
80f8a6eb
MS
12019 * breakpoint.c (clear_command): Rewrite middle section to
12020 combine two loops with identical control conditions.
12021 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
12022 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12023
ad3dcc5c
L
120242002-04-05 H.J. Lu (hjl@gnu.org)
12025
12026 * solib-svr4.c (bkpt_names): Add "__start".
12027
f32e7a74
AC
120282002-04-04 Andrew Cagney <ac131313@redhat.com>
12029
12030 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12031 as test for 64 bit target.
12032
8227c0ff
AC
120332002-04-05 Andrew Cagney <ac131313@redhat.com>
12034
12035 * h8500-tdep.c (h8500_write_fp): Delete function.
12036 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12037 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12038 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12039 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12040 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12041 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12042 (s390_write_fp):
12043 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12044 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12045 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12046 (d10v_write_fp): Delete function.
12047 * inferior.h (write_fp, generic_target_write_fp): Delete
12048 declarations.
12049 * regcache.c (generic_target_write_fp): Delete function.
12050 (write_fp): Delete function.
12051 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12052 * gdbarch.h, gdbarch.c: Regenerate.
12053 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12054 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12055 (sparc64_write_fp): Delete declaration.
12056 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12057 (h8500_write_fp): Delete declaration.
12058
2757dd86
AC
120592002-04-04 Andrew Cagney <ac131313@redhat.com>
12060
12061 * sparc-tdep.c (sparc64_write_fp): Delete.
12062 (sparc_push_dummy_frame): Replace write_fp call with code to store
12063 the FP directly.
12064 (sparc_gdbarch_init): Do not initialize write_fp.
12065
c69255e1
KB
120662002-04-05 Kevin Buettner <kevinb@redhat.com>
12067
12068 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12069 clause.
12070
ae767bfb
JB
120712002-03-29 Jim Blandy <jimb@redhat.com>
12072
12073 * stack.c (get_selected_block): Add new argument `addr_in_block',
12074 used to return the exact code address we used to select the block,
12075 not just the block.
12076 * blockframe.c (get_frame_block, get_current_block): Same.
12077 * frame.h (get_frame_block, get_current_block,
12078 get_selected_block): Update declarations.
12079 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12080 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12081
84d2ac95
MS
120822002-04-05 Michael Snyder <msnyder@redhat.com>
12083
12084 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12085 warning message.
12086
596aa3bf
JB
120872002-04-05 J. Brobecker <brobecker@gnat.com>
12088
12089 * utils.c (xfullpath): New function.
12090 * defs.h (xfullpath): Add declaration.
12091 * source.c (openp): Use xfullpath in place of gdb_realpath to
12092 avoid resolving the basename part of filenames when the
12093 associated file is a symbolic link. This fixes a potential
12094 inconsistency between the filenames known to GDB and the
12095 filenames it prints in the annotations.
12096 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12097 to be able to match a filename with either the real filename, or
12098 the name of any symbolic link to this file.
12099 (lookup_partial_symtab): Ditto.
12100
c02f5703
MS
121012002-04-04 Michael Snyder <msnyder@redhat.com>
12102
12103 * breakpoint.c: Add support for hardware breakpoints in overlays.
12104 (overlay_events_enabled): New state variable.
12105 (insert_breakpoints): Use overlay_events_enabled to decide
12106 whether to attempt to set a breakpoint at the overlay load addr.
12107 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12108 (remove_breakpoint): Use overlay_events_enabled to decide
12109 whether breakpoints need to be removed from overlay load addr.
12110 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12111 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 12112 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
12113 disable_overlay_breakpoints): Update overlay_events_enabled.
12114
5fb290d7
DJ
121152002-04-04 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * dwarf2read.c (struct function_range): New.
12118 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12119 (check_cu_functions): New.
12120 (read_file_scope): Initialize global function lists.
12121 Call dwarf_decode_line after processing children.
12122 (read_func_scope): Add to global function list.
12123 (dwarf_decode_lines): Call check_cu_functions everywhere
12124 record_line is called. Call record_line with a linenumber
12125 of 0 to mark sequence ends.
12126
7b3fabf0
ML
121272002-04-04 Michal Ludvig <mludvig@suse.cz>
12128
361d1df0 12129 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
12130 change sync with glibc.
12131
bce58c09
JB
121322002-04-03 Jim Blandy <jimb@redhat.com>
12133
12134 * configure.in: Call AC_C_INLINE.
12135 * configure: Regenerated.
361d1df0 12136
2fccf04a
DJ
121372002-04-01 Daniel Jacobowitz <drow@mvista.com>
12138
12139 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12140 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12141
2d1bfe2e
MK
121422002-03-31 Mark Kettenis <kettenis@gnu.org>
12143
a5941fbf
MK
12144 * NEWS: Mention gcore support on FreeBSD/i386.
12145
a90cd31d
MK
12146 * fbsd-proc.c: New file.
12147 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12148 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12149
2d1bfe2e
MK
12150 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12151 while statement.
12152
9eb6e5a1
JB
121532002-03-29 Jim Blandy <jimb@redhat.com>
12154
12155 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12156 unescaped newlines in string literals, but newer ones don't. So
12157 escape them.
12158
f02df580
MS
121592002-03-26 Michael Snyder <msnyder@redhat.com>
12160 Andrew Cagney <cagney@redhat.com>
12161
361d1df0 12162 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
12163 restore file to memory.
12164 * cli/cli-dump.h: New file.
12165 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 12166 * NEWS: Mention new commands.
f02df580 12167
109f874e
MS
121682002-03-28 Michael Snyder <msnyder@redhat.com>
12169
12170 * symfile.c (symbol_file_add): Move test for null symbols to later.
12171
520f6ade
AC
121722002-03-27 Andrew Cagney <ac131313@redhat.com>
12173
12174 From veksler at il.ibm.com:
12175 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12176 the xstrduped original path.
12177 Fix PR gdb/417.
12178
d4654627
MS
121792002-03-27 Michael Snyder <msnyder@redhat.com>
12180
12181 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12182 * infcmd.c (_initialize_infcmd): Ditto.
12183 * language.c (_initialize_language): Ditto.
12184 * symfile.c (_initialize_symfile): Ditto.
12185 * top.c (_init_main): Ditto.
12186 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12187
6be8bc0c
EZ
121882002-03-27 Elena Zannoni <ezannoni@redhat.com>
12189
12190 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12191 vector registers handling.
12192 (skip_prologue): Handle new AltiVec instructions. Fill in new
12193 fields of frame data.
12194 (frame_get_saved_regs): Fill in information for AltiVec registers.
12195
12af6855
JB
121962002-03-27 Jim Blandy <jimb@redhat.com>
12197
12198 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12199 a function; leave this macro here to invoke that function.
12200 (symbol_init_mangled_name): Declaration for that function.
12201 * symtab.c (symbol_init_mangled_name): New function.
12202
dc672865
AC
122032002-03-27 Andrew Cagney <ac131313@redhat.com>
12204
12205 * valarith.c: Replace strerror with safe_strerror.
12206 * tracepoint.c: Ditto.
12207 * lin-lwp.c: Ditto.
12208 * go32-nat.c: Ditto.
12209 * inflow.c: Ditto.
12210 * gnu-nat.c: Ditto.
12211
d96429cd
AS
122122002-03-27 Andreas Schwab <schwab@suse.de>
12213
12214 * event-top.c (command_line_handler): Remove useless if.
12215
7e336ba1
AJ
122162002-03-27 Andreas Jaeger <aj@suse.de>
12217
12218 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12219 comment.
12220
de220d0f
ML
122212002-03-27 Michal Ludvig <mludvig@suse.cz>
12222
12223 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12224 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12225 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12226 (x86_64_linux_dr_get_status, supply_gregset),
12227 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12228 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12229 (x86_64_register_info_table): Add.
12230 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12231 (x86_64_register_raw_size, x86_64_register_virtual_type),
12232 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12233 general x86_64_register_info_table.
12234 (i386_gdbarch_init): gdbarch_register_bytes is now set
12235 dynamicaly during initialization.
12236 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12237 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 12238
0e98d0a7
DJ
122392002-03-27 Daniel Jacobowitz <drow@mvista.com>
12240
12241 * gdbserver/server.c (main): Call target_signal_to_host_p
12242 and target_signal_to_host on signals received from the remote.
12243 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12244 target_signal_from_host on signals sent to the remote.
12245 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12246 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12247
3130066b
DJ
122482002-03-27 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * signals/signals.c: Include "server.h" in gdbserver build.
12251 (target_signal_from_name): Don't use STREQ.
12252 (_initialize_signals): Likewise. Don't include function in
12253 gdbserver build.
12254
9aedf4f4
DJ
122552002-03-27 Daniel Jacobowitz <drow@mvista.com>
12256
12257 * signals.c: Moved to...
12258 * signals/signals.c: Here.
7e336ba1 12259 * Makefile (signals.o): Update.
9aedf4f4 12260
3fa41cdb
JL
122612002-03-26 Jeff Law (law@redhat.com)
12262
12263 * somread.c (som_symtab_read): Remove some commented out code and
12264 updated related comments. Do not set the minimal symbol table to
12265 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12266 in a dynamic executable.
12267 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12268 where we are unable to find the minimal symbol for the given
12269 PC value.
12270
ee677e8d
MS
122712002-03-25 Jeff Law (law@redhat.com)
12272
12273 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12274
e76e1718
ML
122752002-03-25 Michal Ludvig <mludvig@suse.cz>
12276
12277 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12278
18a642a1
AC
122792002-03-23 Andrew Cagney <ac131313@redhat.com>
12280
12281 * command.h: Update copyright.
12282 (struct cmd_list_element): Replace definition with opaque
12283 declaration.
12284 (enum cmd_types): Document that it will eventually be moved to
12285 cli/cli-decode.h
12286 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12287 (MALLOCED_REPLACEMENT): Delete macro.
12288 * Makefile.in (cli_decode_h): Add $(command_h).
12289 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 12290 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
12291 * completer.c: Include "cli/cli-decode.h".
12292 * maint.c: Include "cli/cli-decode.h".
12293 * cli/cli-decode.h: Include "command.h".
12294 (enum command_class): Delete.
12295 (enum cmd_types): Comment out.
12296 (enum cmd_auto_boolean): Delete.
12297 (enum var_types): Delete.
12298
b2875cc0
AC
122992002-03-23 Andrew Cagney <ac131313@redhat.com>
12300
12301 * cli/cli-decode.c: Include "gdb_assert.h".
12302 (add_set_or_show_cmd): New static function.
12303 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12304 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12305 all fields, such as func, from the set command.
12306
3b45974e
AC
123072002-03-23 Andrew Cagney <ac131313@redhat.com>
12308
12309 * MAINTAINERS (sh-elf): Change warning flag to -w.
12310
823ca731
AC
123112002-03-23 Andrew Cagney <cagney@redhat.com>
12312
12313 * defs.h (error): Add printf format attribute.
12314 * thread-db.c (thread_from_lwp): Fix error format string.
12315 * stack.c (parse_frame_specification): Ditto.
12316 * cli/cli-decode.c (undef_cmd_error): Ditto.
12317 * scm-lang.c (scm_lookup_name): Ditto.
12318 * tracepoint.c (trace_error): Ditto.
12319 * remote-utils.c (usage): Ditto.
12320 * remote.c (compare_sections_command): Ditto.
12321 Fix PR gdb/328.
12322
0e101458
AC
123232002-03-22 Andrew Cagney <ac131313@redhat.com>
12324
12325 * gdbtypes.c (append_composite_type_field): New function.
12326 (init_composite_type): New function.
12327 * gdbtypes.h (append_composite_type_field): Declare.
12328 (init_composite_type): Ditto.
12329
8e0662df
EZ
123302002-03-22 Elena Zannoni <ezannoni@redhat.com>
12331
12332 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 12333 function.
8e0662df
EZ
12334 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12335 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12336 structure returning convention for SYSV ABI case, but not
12337 for GNU/Linux, FreeBSD, or NetBSD.
12338
3121eff0
DJ
123392002-03-22 Daniel Jacobowitz <drow@mvista.com>
12340
12341 * symtab.h (lookup_block_symbol): Add mangled_name argument
12342 to prototype.
12343
12344 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12345 with new mangled_name argument.
12346 * linespec.c (decode_line_1): Likewise.
12347 * valops (value_of_this): Likewise.
12348 * symtab.c (lookup_transparent_type): Likewise.
12349 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12350 (lookup_symbol): If we are given a mangled name, pass it down
12351 to lookup_symbol_aux.
12352 (lookup_block_symbol): If we are given a mangled name to check
12353 against, only return symbols which match it.
12354
349b409f
CF
123552002-03-22 Christopher Faylor <cgf@redhat.com>
12356
12357 * win32-nat.c (child_create_inferior): Check for proper shell to use
12358 here, in case the user changes it on the fly.
12359 (_initialize_inftarg): Remove shell path considerations.
12360
2a873819
EZ
123612002-03-21 Elena Zannoni <ezannoni@redhat.com>
12362
12363 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12364 for gdbarch_max_register_raw_size and max_register_virtual_size.
12365 Adjust copyright year.
12366
a1b9830c
DJ
123672002-03-21 Daniel Jacobowitz <drow@mvista.com>
12368
12369 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12370 in a function to cover the entire beginning of the function
12371 as well if it does not already.
12372
8b5790f2
TR
123732002-03-21 Tom Rix <trix@redhat.com>
12374
12375 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12376 (rs6000_ptrace64): Renamed from ptrace64.
12377
bdbe5747
MH
123782002-03-20 Martin M. Hunt <hunt@redhat.com>
12379
12380 * gdbserver/remote-utils.c (remote_open): Don't call
12381 getprotobyname, we're all using TCP here so just use
12382 IPPROTO_TCP.
7e336ba1 12383 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
12384
123852002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 12386
bdbe5747
MH
12387 * regcache.c (_initialize_regcache): No need to call
12388 build_regcache() at this time; it gets called whenever
12389 the gdbarch changes.
12390
7781cd62
DB
123912002-03-20 David O'Brien <obrien@FreeBSD.org>
12392
12393 * sparc-nat.c: Include sys/param.h where possible.
12394
f65ca430
DJ
123952002-03-20 Daniel Jacobowitz <drow@mvista.com>
12396
12397 Fix PR gdb/422.
12398 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12399 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12400 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12401 complex types.
12402 * stabsread.c (rs6000_builtin_type): Likewise.
12403 (read_sun_floating_type): Likewise.
12404
0c867556
PS
124052002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12406
12407 * stabsread.c (read_member_functions): Remove skip code for duplicate
12408 constructor/destructor methods. Use standard parsing for these
12409 methods and just do not chain them to the list of methods after
12410 parsing.
12411
12b9c64f
AO
124122002-03-19 Alexandre Oliva <aoliva@redhat.com>
12413
12414 * coffread.c: Remove redundant static declarations. Replace
12415 occurrences of `PTR' with `void *'.
12416 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12417 * top.h (quit_cover): Likewise.
12418 * defs.h (catch_errors): Likewise.
12419
349c5d5f
AC
124202002-03-18 Andrew Cagney <ac131313@redhat.com>
12421
12422 * defs.h (XMALLOC): Define.
12423 * gdb-events.sh (XMALLOC): Delete macro.
12424 * gdb-events.c, gdb-events.h: Regenerate.
12425 * gdbarch.sh (XMALLOC): Delete macro.
12426 * gdbarch.c: Regenerate.
12427 * serial.c (XMALLOC): Delete macro.
12428 * ui-file.c (XMALLOC): Ditto.
12429 * ser-unix.h (XMALLOC): Ditto.
12430 * sh-tdep.c (XMALLOC): Ditto.
12431 * ui-out.c (XMALLOC): Ditto.
12432 * utils.c (XMALLOC): Ditto.
12433 * i386-tdep.c (XMALLOC): Ditto.
12434 * gdb-events.c (XMALLOC): Ditto.
12435 * d10v-tdep.c (XMALLOC): Ditto.
12436 * cli-out.c (XMALLOC): Ditto.
12437
12438 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12439 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12440 * ui-file.c, ui-out.c: Ditto.
12441
7d0766f3
AC
124422002-03-18 Andrew Cagney <ac131313@redhat.com>
12443
12444 * command.h (struct cmd_list_element): Add field context.
12445 (set_cmd_context, get_cmd_context): Declare.
12446 * cli/cli-decode.h: Ditto.
12447 * cli/cli-decode.c (get_cmd_context): New function.
12448 (set_cmd_context): New function.
12449 (add_cmd): Initialize context.
12450 Part of fixing PR gdb/145 and PR gdb/146.
12451
5913bcb0
AC
124522002-03-17 Andrew Cagney <ac131313@redhat.com>
12453
1868c04e
AC
12454 * cli/cli-decode.c (cmd_type): New function.
12455 * command.h (cmd_type): Declare.
12456 * infrun.c (set_schedlock_func): Call function cmd_type.
12457 * kod.c (kod_set_os): Call cmd_type.
12458 * cris-tdep.c (cris_version_update): Use function cmd_type.
12459 (cris_mode_update, cris_abi_update): Ditto.
12460
5913bcb0
AC
12461 * command.h: (execute_cmd_post_hook): Declare.
12462 (execute_cmd_pre_hook): Declare.
12463 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12464 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12465 functions. Execute pre/post hook while ensuring that afterwords
12466 hook_in is cleared.
12467 * top.c (execute_command): Use execute_cmd_post_hook, and
12468 execute_cmd_pre_hook to execute pre/post commands.
12469 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12470 hook_stop_stub.
12471 (hook_stop_stub): Call execute_cmd_pre_hook.
12472
b51450c9
AC
124732002-03-17 Andrew Cagney <ac131313@redhat.com>
12474
12475 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12476 set'' and this leads to a core dump. Move xstrdup of
12477 operating_system to after check that it is not NULL.
12478
f66c9f11
AC
124792002-03-17 Andrew Cagney <ac131313@redhat.com>
12480
8e694ecf
AC
12481 * kod.c (kod_set_os): Remove unnecessary check that
12482 ``command->type'' is set_cmd.
12483
f66c9f11
AC
12484 * valprint.c (set_input_radix): Use input_radix.
12485 (set_output_radix): Use output_radix.
12486 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12487 isn't reverted.
12488
9d01611c
AC
124892002-03-16 Andrew Cagney <ac131313@redhat.com>
12490
12491 * value.h (struct value): Delete field ``substring_addr''. Change
12492 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
12493 force_core_addr_align and force_pointer_aligh.
12494
12495 * value.h (struct value): Fix typo in above change.
9d01611c 12496
4156bb53
PS
124972002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12498
12499 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12500 to fix internal_error from ``maintenance print architecture''.
12501
0e5e3ea6
PS
125022002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12503
12504 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12505 for gcc versions after gcc-2.8.1.
12506
9b013045
PS
125072002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12508
12509 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12510 for method resolution. Restore adjustment of ``this'' pointer after
12511 calling value_struct_elt, which was accidentally removed during the
12512 HP merge.
12513
376c9600
AC
125142002-03-15 Andrew Cagney <ac131313@redhat.com>
12515
12516 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12517 value_of_register.
12518 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12519 get_saved_register.
12520 * value.h (value_of_register): Update.
12521
a4db0f07
RH
125222002-03-14 Richard Henderson <rth@redhat.com>
12523
12524 * configure.in: Detect declaration for canonicalize_file_name.
12525 * utils.c (canonicalize_file_name): Declare, if needed.
12526 (gdb_realpath): Prefer realpath if available and usable.
12527 * config.in, configure: Rebuild.
12528
96383835
RH
125292002-03-14 Richard Henderson <rth@redhat.com>
12530
12531 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12532 a constant array bound.
12533
12534 * MAINTAINERS: Add myself to write-after-approval.
12535
75245b24
MS
125362002-03-14 Michael Snyder <msnyder@redhat.com>
12537
12538 * symfile.c (syms_from_objfile): Return immediately if no syms.
12539 (symbol_file_add): Return immediately if no syms.
12540 (find_sym_fns): Return immediately if no syms.
12541
e641a1ca
ML
125422002-03-13 Michal Ludvig <mludvig@suse.cz>
12543
12544 * gdbserver/remote-util.c (remote_open): Print remote-side's
12545 IP address when remote debugging over the network.
7e336ba1 12546
df08bfec
DB
125472002-03-12 David O'Brien <obrien@FreeBSD.org>
12548
12549 * config/sparc/fbsd.mh: Fix copyright.
12550 * config/sparc/fbsd.mt: Likewise.
12551
9a57864f
RE
125522002-03-11 Richard Earnshaw <rearnsha@arm.com>
12553
12554 * MAINTAINERS: Fix typo in name of gdb warnings option.
12555 (x86-64): Fix formating so that this can be parsed by awk.
12556
dd7bf85e
DJ
125572002-03-10 Daniel Jacobowitz <drow@mvista.com>
12558
12559 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12560 * defs.h: Include "gdb/signals.h".
12561 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12562
33a0a2ac
ML
125632002-03-10 Michal Ludvig <mludvig@suse.cz>
12564
12565 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 12566 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
12567 from x86-64-tdep.h
12568
dd824b04
DJ
125692002-03-10 Daniel Jacobowitz <drow@mvista.com>
12570 Don Howard <dhoward@redhat.com>
12571
12572 * mips-tdep.c (ST0_FR): Define.
12573 (mips2_fp_compat): New function, temporarily disabled.
12574 (mips_read_fp_register_single): New function.
12575 (mips_read_fp_register_double): New function.
12576 (mips_print_register): Use them.
12577 (do_fp_register_row): Likewise.
12578
6a41ff59
AC
125792002-03-09 Andrew Cagney <ac131313@redhat.com>
12580
12581 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12582 approval''.
12583
4ea09c10
PS
125842002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12585
12586 * stabsread.c (read_member_functions): Fix is_stub test for
12587 static member functions, improve comment.
12588
6ccc741d
RE
125892002-03-07 Richard Earnshaw <rearnsha@arm.com>
12590
12591 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12592 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12593 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12594 commands that set boolean values.
12595 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12596 (arm_rdi_resume): Always initialize PC.
12597 (arm_rdi_open): Don't use rslt as a boolean.
12598 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12599 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12600 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12601 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12602
438013df
AO
126032002-03-06 Alexandre Oliva <aoliva@redhat.com>
12604
12605 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12606 * configure: Rebuilt.
12607
70ed8774
SC
126082002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12609
12610 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12611 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12612
5ba2abeb
AC
126132002-03-06 Andrew Cagney <ac131313@redhat.com>
12614
12615 * cli/cli-decode.c (set_cmd_completer): New function.
12616 * command.h (set_cmd_completer): Declare.
12617 * cli/cli-decode.h (set_cmd_completer): Ditto.
12618
12619 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12620 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12621 * win32-nat.c (_initialize_inftarg): Ditto.
12622 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12623 * proc-api.c (_initialize_proc_api): Ditto.
12624 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12625 * source.c (_initialize_source): Ditto.
12626 * exec.c (_initialize_exec): Ditto.
12627 * solib.c (_initialize_solib): Ditto.
12628 * top.c (init_main): Ditto.
12629 * tracepoint.c (_initialize_tracepoint): Ditto.
12630 * symfile.c (_initialize_symfile): Ditto.
12631 * printcmd.c (_initialize_printcmd): Ditto.
12632 * infcmd.c (_initialize_infcmd): Ditto.
12633 * corefile.c (_initialize_core): Ditto.
12634
f779ca99
AC
126352002-03-05 Andrew Cagney <ac131313@redhat.com>
12636
12637 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12638
01a3934b
AC
126392002-03-05 Andrew Cagney <ac131313@redhat.com>
12640
12641 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12642
37057839
AC
126432002-03-05 Andrew Cagney <ac131313@redhat.com>
12644
12645 * NEWS: Update headings, 5.2 has branched.
12646
c6ecbae5
DJ
126472002-03-04 Daniel Jacobowitz <drow@mvista.com>
12648
12649 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12650 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12651 (register_addr, REGISTER_RAW_SIZE): Likewise.
12652 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12653 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12654
e9f30c21
ML
126552002-03-03 Michal Ludvig <mludvig@suse.cz>
12656
12657 * MAINTAINERS (x86-64): Add myself.
12658 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12659 changed value_ptr -> struct value *
12660
54394ac3
DB
126612002-03-01 David O'Brien <obrien@FreeBSD.org>
12662
12663 * configure.host (sparc64-*-freebsd): Add.
12664 * configure.tgt: Likewise.
12665 * config/sparc/fbsd.mh: New file.
12666 * config/sparc/fbsd.mt: Likewise.
12667 * config/sparc/nm-fbsd.h: Likewise.
12668 * config/sparc/tm-fbsd.h: Likewise.
12669
bfe95955
DJ
126702002-03-01 Daniel Jacobowitz <drow@mvista.com>
12671
12672 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12673 regformats/reg-s390x.dat.
12674
f33c6cbf
AC
126752002-03-01 Andrew Cagney <ac131313@redhat.com>
12676
12677 * utils.c: Add FIXME explaining true/false problem.
12678
5ecaa7dd
AC
126792002-02-28 Andrew Cagney <ac131313@redhat.com>
12680
12681 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12682
2a251cc2
MC
126832002-02-28 Michael Chastain <mec@shout.net>
12684
12685 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12686
6a8031a3 126872002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
12688
12689 * gdbserver/linux-s390-low.c: New file.
12690 * regformats/reg-s390.dat: New file.
12691 * regformats/reg-s390x.dat: New file.
12692 * gdbserver/configure.srv: Add S/390.
12693 * gdbserver/Makefile.in: Add S/390.
12694 * configure.tgt: Enable gdbserver for S/390.
12695
ac469903
EZ
126962002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12697
12698 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12699 first line of the doc string for "info dos", except at the end of
12700 the sentence, since the short help stops at the first period.
12701
985cb1a3
JM
127022002-02-28 Jason Merrill <jason@redhat.com>
12703
12704 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12705
c570663e
FF
127062002-02-27 Fred Fish <fnf@redhat.com>
12707
12708 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12709 comment (dumy -> dummy).
12710
43630227
PS
127112002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12712
12713 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12714
b84911e8
RB
127152002-02-27 Rodney Brown <rbrown64@csc.com.au>
12716
12717 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12718
58caa3dc
DJ
127192002-02-27 Daniel Jacobowitz <drow@mvista.com>
12720
12721 * gdbserver/acconfig.h: New file.
12722 * gdbserver/i387-fp.c: New file.
12723 * gdbserver/i387-fp.h: New file.
12724 * gdbserver/linux-x86-64.c: New file.
12725 * regformats/reg-x86-64.dat: New file.
12726 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12727 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12728 * gdbserver/configure.in: Add support for regsets.
12729 * gdbserver/config.in: Regenerate.
12730 * gdbserver/configure: Regenerate.
12731 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12732 * gdbserver/linux-low.h: New file.
12733 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12734 for regsets.
12735 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12736 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12737 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12738 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12739 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12740 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12741 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12742 "i387-fp.h". Add PTRACE_GETREGS and friends.
12743 * gdbserver/regcache.c (supply_register): New function.
12744 (supply_register_by_name): New function.
12745 (collect_register): New function.
12746 (collect_register_by_name): New function.
12747
93652174
DJ
127482002-02-27 Daniel Jacobowitz <drow@mvista.com>
12749
12750 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12751 (config.status): Add configure.srv dependency.
12752 (server_h): Add config.h dependency.
12753
a02e4a61
DJ
127542002-02-27 Daniel Jacobowitz <drow@mvista.com>
12755
12756 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12757 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12758 * gdbserver/configure.srv: Change i386-*-linux* to use
12759 reg-i386-linux.o.
12760
ce0eebec
AC
127612002-02-26 Andrew Cagney <ac131313@redhat.com>
12762
12763 * x86-64-tdep.c: Re-indent. Update copyright date.
12764
82dbc5f7
AC
127652002-02-26 Andrew Cagney <ac131313@redhat.com>
12766
12767 From Michal Ludvig <mludvig@suse.cz>:
12768 * x86-64-tdep.c (value.h): Delete.
12769 (gdb_assert.h): Include.
12770 (x86_64_register_convert_to_virtual,
12771 x86_64_register_convert_to_raw ): Add check which lets only
12772 floating-point values to be converted.
12773 (value_push): Delete.
12774 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12775 (i386_gdbarch_init): Number of register_bytes fixed.
12776
e4621584
AC
127772002-02-26 Andrew Cagney <ac131313@redhat.com>
12778
12779 * MAINTAINERS: Add x86-64 target.
12780
81a9a963
AC
127812002-02-26 Andrew Cagney <ac131313@redhat.com>
12782
12783 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12784 * osfsolib.c (solib_map_sections): Ditto.
12785 * irix5-nat.c (solib_map_sections): Ditto.
12786 * corelow.c (gdb_check_format): Ditto.
12787 * symfile.c (symfile_bfd_open): Ditto.
12788 * solib.c (solib_map_sections): Ditto.
12789 Fix PR gdb/354.
7e336ba1 12790
0f017ab9
AC
127912002-02-26 Andrew Cagney <ac131313@redhat.com>
12792
12793 * remote.c (_initialize_remote): By default, disable ``e'' and
12794 ``E'' step out-of-range packets.
12795
75738c29
AS
127962002-02-26 Andreas Schwab <schwab@suse.de>
12797
12798 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12799 m68k_linux_frame_saved_pc.
12800 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12801 in_sigtramp.
12802 (SIGCONTEXT_PC_OFFSET): Remove.
12803 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12804 m68k_linux_sigtramp_saved_pc): New functions.
12805 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12806 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12807 (UCONTEXT_PC_OFFSET): Define.
12808 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12809 non-RT and RT signal trampolines.
12810
7e8ed687
RE
128112002-02-26 Richard Earnshaw <rearnsha@arm.com>
12812
12813 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12814 (TARGET_NBPG, STACK_END_ADDR): Delete
12815 (VARIABLES_INSIDE_BLOCK): Delete.
12816
6972bc8b
AC
128172002-02-25 Andrew Cagney <ac131313@redhat.com>
12818
12819 * utils.c (perror_with_name): Make string parameter constant.
12820 (print_sys_errmsg): Ditto.
12821 (query): Ditto.
12822 * defs.h (perror_with_name): Update.
12823 (print_sys_errmsg): Update.
12824 (query): Update.
12825
aa32f823
DJ
128262002-02-25 Daniel Jacobowitz <drow@mvista.com>
12827
12828 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12829 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12830
19caaa45
PS
128312002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12832
12833 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12834 if it already matches the current architecture from the exec file.
12835 Include arch-utils.h for gdbarch_info_init prototype.
12836 * Makefile.in (rs6000-nat.o): Update dependencies.
12837
d951901f
EZ
128382002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12839
12840 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12841 list of exported variables.
12842
7ea81414
DJ
128432002-02-24 Daniel Jacobowitz <drow@mvista.com>
12844
12845 * gdbserver/configure.srv: New file.
12846 * gdbserver/configure.in: Use configure.srv instead
12847 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12848 from it.
12849 * gdbserver/configure: Regenerated.
12850 * gdbserver/terminal.h: New file.
12851 * gdbserver/Makefile.in: Update for configure changes. Remove
12852 more unneeded include paths.
12853
080fe24b
AC
128542002-02-24 Andrew Cagney <ac131313@redhat.com>
12855
12856 From wiz at danbala:
12857 * config/sparc/tm-sp64.h: Fix grammar and typos.
12858 Fix PR gdb/287.
12859
8605d56e
AC
128602002-02-24 Andrew Cagney <ac131313@redhat.com>
12861
12862 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12863 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12864 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12865 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12866 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12867 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12868 * s390-tdep.c: Ditto.
92362027
AC
12869 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12870 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12871 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12872 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12873 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12874 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12875 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12876 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12877 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12878 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12879 Fix PR gdb/378.
7e336ba1 12880
8ed32cc0
AC
128812002-02-23 Andrew Cagney <ac131313@redhat.com>
12882
a3007b6f
AC
12883 * lin-thread.c: Delete file.
12884 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12885 to gdb_proc_service.h.
12886 * configure: Re-generate.
12887
50a9e2f1
AC
12888 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12889 * serial.c (serial_open): Delete check for "ocd".
12890 Fix PR gdb/349.
12891
8b6e7932
AC
12892 * Makefile.in (linux-thread.o): Delete target.
12893 * linux-thread.c: Delete file.
12894
d155c46b
AC
12895 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12896 renamed SH files to be consistent.
12897
8ed32cc0
AC
12898 * symtab.c (sort_search_symbols): Use xfree.
12899
0e18d038
RE
129002002-02-23 Richard Earnshaw <rearnsha@arm.com>
12901
12902 * arm-linux-tdep.c (arm_linux_init_abi): Register
12903 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12904 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12905 definition with undef, since we don't want the sysvr4 definition.
12906 (SKIP_TRAMPOLINE_CODE): Likewise.
12907
27aac7ff
AC
129082002-02-23 Andrew Cagney <ac131313@redhat.com>
12909
12910 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12911
12912 * configure.in: (AC_CHECK_FUNCS) Added test for
12913 canonicalize_file_name Regenerated.
12914 * config.in, configure: Regenerated.
12915 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12916 defined use canonicalize_file_name.
7e336ba1 12917
65a6e0ee
MC
129182002-02-23 Michael Chastain <mec@shout.net>
12919
12920 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12921
47b95330
AC
129222002-02-23 Andrew Cagney <ac131313@redhat.com>
12923
12924 * README: Remove references to cygnus.com.
12925 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12926 dot com'' form. Remove references to cygnus.com and sourceware.
12927
696f451b
AC
129282002-02-23 Andrew Cagney <ac131313@redhat.com>
12929
12930 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12931 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12932 1003.1-2001 no longer allows "head -1".
12933 * gdb/Makefile.in (version.c): Likewise.
12934 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12935 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12936 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12937
bbaca940
AC
129382002-02-23 Andrew Cagney <ac131313@redhat.com>
12939
12940 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12941 * command.h (cmd_cfunc_eq): Declare.
12942 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12943
12944 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12945 ``struct cmd_list_element *''.
12946 * cli/cli-cmds.c (is_complete_command): Update. Use
12947 cmd_cfunc_eq.
12948 * top.c (execute_command): Pass the command to
12949 is_complete_command.
12950 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12951
b8b8b047
AC
129522002-02-23 Andrew Cagney <ac131313@redhat.com>
12953
12954 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12955 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12956 architecture defines.
12957 * s390-tdep.c (s390_gdbarch_init): Likewise.
12958
19d3fc80
RE
129592002-02-23 Richard Earnshaw <rearnsha@arm.com>
12960
12961 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12962 (arm_linux_push_arguments): Likewise.
12963 (arm_linux_init_abi): Register them. Also register linux-specific
12964 call_dummy_words.
12965 (find_minsym_and_objfile): Use strcmp, not STREQ.
12966 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12967 (arm_linux_call_dummy_words): Delete declaration.
12968 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12969 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12970 declarations.
12971 (LOWEST_PC): Delete.
12972
3ab13650
PS
129732002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12974
12975 * maint.c (print_section_info): Do not prepend `0x' to filepos
12976 output, it will be handled by local_hex_string_custom.
12977
19d3fc80 129782002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12979
12980 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12981 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12982 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12983
d85a5daf
JB
129842002-02-22 Jim Blandy <jimb@redhat.com>
12985
12986 Indicate that the bcache functions don't change the strings
12987 they're passed.
12988 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12989 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12990
eeb25b8a
PM
129912002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12992
12993 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12994
6badb179
CF
129952002-02-21 Christopher Faylor <cgf@redhat.com>
12996
12997 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12998 find the complete path to a loaded DLL.
12999
e8717518
FF
130002002-02-21 Fred Fish <fnf@redhat.com>
13001
13002 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13003 that marks the end of the range of a function, enter a line number
13004 entry that has a line number of zero and a PC offset that matches
13005 the end of the function. This starts a range of PC's for which no
13006 line number information is known.
13007 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13008 PC's for which no line number info is found (line number is zero)
13009 then we didn't find any valid line information.
13010 * symtab.h: Document use of zero line number entry.
13011
9abe5450
EZ
130122002-02-21 Elena Zannoni <ezannoni@redhat.com>
13013
13014 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13015 (have_ptrace_getvrregs): Define for run time checks.
13016 (gdb_vrregset_t): New type for Altivec register handling.
13017 (fetch_register, store_register): Fetch/store altivec register
13018 when needed.
13019 (fetch_altivec_register, store_altivec_register): New functions.
13020 (supply_vrregset, fill_vrregset): New functions.
13021 (fetch_altivec_registers, store_altivec_registers): New functions.
13022 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13023 registers as well.
13024
aaa38bb5
AJ
130252002-02-21 Jiri Smid <smid@suse.cz>
13026
13027 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13028
b34db576
RE
130292002-02-21 Richard Earnshaw <rearnsha@arm.com>
13030
13031 * Makefile.in (armnbsd-nat.o): Update dependencies.
13032 * armnbsd-nat.c (supply_gregset): New function. Common code to
13033 supply the integer register set.
13034 (supply_fparegset): New function. Similar for FPA registers.
13035 (fetch_regs, fetch_fp_regs): Use them.
13036 (fetch_core_registers): Likewise.
13037 (fetch_elfcore_registers): New function.
13038 (arm_netbsd_elfcore_fns): New core-file type specification.
13039 (_initialize_arm_netbsd_nat): Register it.
13040
3e56fc4b
RE
130412002-02-21 Richard Earnshaw <rearnsha@arm.com>
13042
13043 * armnbsd-nat.c: Include gdbcore.h.
13044 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13045 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13046 'void' to declaration, to shut up ARI.
13047 (fetch_core_registers): Make static. Rewrite using supply_register.
13048 (arm_netbsd_core_fns): New core-file type specification.
13049 (_initialize_arm_netbsd_nat): New function.
13050
097f6b0b
CF
130512002-02-21 Christopher Faylor <cgf@redhat.com>
13052
13053 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13054 value.
13055
c914e0cc
CF
130562002-02-20 Christopher Faylor <cgf@redhat.com>
13057
13058 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13059 fails.
13060
385fa495
DJ
130612002-02-20 Daniel Jacobowitz <drow@mvista.com>
13062
13063 * jv-exp.y (parse_number): Change type of implicit longs
13064 to builtin_type_uint64.
13065
e5f1222d
DJ
130662002-02-20 Daniel Jacobowitz <drow@mvista.com>
13067
13068 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13069 to be an integer instead of a `union wait'.
13070
75c9abc6
DJ
130712002-02-20 Daniel Jacobowitz <drow@mvista.com>
13072
13073 * mips-linux-nat.c: Call the operating system GNU/Linux.
13074 * mips-linux-tdep.c: Likewise.
13075 * mips-tdep.c: Likewise.
13076
551792a5
DJ
130772002-02-20 Daniel Jacobowitz <drow@mvista.com>
13078
13079 Fix PR gdb/265.
13080 * jv-exp.y (parse_number): Handle 64-bit integers.
13081
ee6e2b82
DJ
130822002-02-20 Daniel Jacobowitz <drow@mvista.com>
13083
13084 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13085 AC_STDC_HEADERS to AC_HEADER_STDC.
13086 * gdbserver/configure: Regenerated.
13087
a48442a0
RE
130882002-02-20 Richard Earnshaw <rearnsha@arm.com>
13089
13090 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13091 is defined.
13092 * sparc-tdep.c (get_longjmp_target): Likewise.
13093
fe419ffc
RE
130942002-02-20 Richard Earnshaw <rearnsha@arm.com>
13095
13096 * News: Add news about ARM and Multi-arch. Mention the new target
13097 arm*-*-netbsd*.
13098
5832ed7e
JB
130992002-02-19 Jim Blandy <jimb@redhat.com>
13100
13101 * stabsread.c (error_type_complaint): Improve error message.
13102
84563040
DJ
131032002-02-19 Daniel Jacobowitz <drow@mvista.com>
13104
13105 * gdbserver/README: Update documentation.
13106 * gdbserver/configure.in: Update configury to match documentation.
13107 * gdbserver/Makefile.in: Likewise.
13108 * gdbserver/configure: Regenerated.
13109 * gdbserver/aclocal.m4: New file, generated by aclocal.
13110 * gdbserver/config.in: New file, generated by autoheader.
13111
375fd65b
RE
131122002-02-19 Richard Earnshaw <rearnsha@arm.com>
13113
13114 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13115 armnbsd-nat.c.
13116
08216dd7
RE
131172002-02-19 Richard Earnshaw <rearnsha@arm.com>
13118
13119 * arm-tdep.h (enum arm_float_model): New enum.
13120 (struct gdbarch_tdep): Add fp_model.
13121 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13122 up floating-point conversions until we know the floating-point model
13123 in use by the inferior. Don't complain about being unable to
13124 determine the ABI of the inferior when we don't have one.
13125 (arm_extract_return_value): Support different floating-point models.
13126 (arm_store_return_value): Likewise.
aaa38bb5 13127 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
13128 ARM_FLOAT_SOFT.
13129 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13130
65d6d66a
PS
131312002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13132
13133 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13134 of ``current_gdbarch''.
13135
47221191
RE
131362002-02-19 Richard Earnshaw <rearnsha@arm.com>
13137
13138 * armnbsd-nat.c : ANSIfy all function declarations.
13139 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13140 (fetch_inferior_registers): Re-implement in terms of above.
13141 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13142 (store_inferior_registers): Re-implement in terms of above.
13143
fdf39c9a
RE
131442002-02-19 Richard Earnshaw <rearnsha@arm.com>
13145
aaa38bb5 13146 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
13147 kernel.
13148 * arm-linux-tdep.c: Likewise.
13149 * config/arm/tm-linux.h: Likewise.
13150
93247f88
RE
131512002-02-19 Richard Earnshaw <rearnsha@arm.com>
13152
13153 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13154 * config/arm/nbsd.mt (TM_FILE): Delete.
13155 * config/arm/tm-nbsd.h: Delete.
13156
d7b486e7
RE
131572002-02-19 Richard Earnshaw <rearnsha@arm.com>
13158
13159 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13160 Initialize CALL_DUMMY_LENGTH.
13161
41d39a95
RE
131622002-02-19 Richard Earnshaw <rearnsha@arm.com>
13163
13164 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13165 function.
13166 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 13167 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
13168 defines one thing and that is incorrect for this port.
13169 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13170
e1195560
PM
131712002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13172
13173 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13174
c1748f97
PM
131752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13176
13177 * win32-nat.c (display_selector): New function. Displays information
13178 about the information returned by GetThreadSelectorEntry API function.
13179 (display_selectors): New function. Displays the infomation of
13180 the selector given as argument, or of CS, DS ans FS selectors
13181 if no argument is given.
13182 ( _initialize_inftarg): Add "w32" as info prefix command.
13183 Add "info w32 selector" as command calling display_selectors.
13184
e41e6bbf
PM
131852002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13186
13187 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13188 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13189 if not defined.
13190
0d3a9f48
RE
131912002-02-18 Richard Earnshaw <rearnsha@arm.com>
13192
13193 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13194
3fb4b924
RE
131952002-02-18 Richard Earnshaw <rearnsha@arm.com>
13196
13197 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13198 (arm_fix_call_dummy): Call it.
13199 (arm_call_dummy_breakpoint_offset): Delete.
13200 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13201 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13202
7f55af32
AC
132032002-02-18 Andrew Cagney <ac131313@redhat.com>
13204
13205 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13206 Default to func_frame_chain_valid.
13207 * gdbarch.h, gdbarch.c: Re-generate.
13208 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13209
05f13b9c
EZ
132102002-02-18 Elena Zannoni <ezannoni@redhat.com>
13211
13212 * ppc-linux-nat.c: Update copyright.
13213 (fetch_register, store_register): Add tid parameter, don't compute
13214 tid here.
13215 (fetch_ppc_registers, store_ppc_registers): Add tid
13216 parameter. Pass it along to callees.
13217 (fetch_inferior_registers, store_inferior_registers): Compute tid
13218 here, and pass it to calleed functions.
13219 (fill_gregset, supply_fpregset): Clean up formatting.
13220
d7afb4c9
RE
132212002-02-18 Richard Earnshaw <rearnsha@arm.com>
13222
13223 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13224 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13225
9df628e0
RE
132262002-02-18 Richard Earnshaw <rearnsha@arm.com>
13227
13228 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13229 * gdbarch.c gdbarch.h: Regenerate.
13230 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13231 function.
13232 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13233 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13234 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13235
13236 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13237 * arm-tdep.c (arm_get_longjmp_target): New function.
13238 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13239 this to a positive value register arm_get_longjmp_target as the
13240 longjmp handler.
13241 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13242 (arm_linux_init_abi): Set up longjmp description in tdep.
13243 * armnbsd-nat.c (get_longjmp_target): Delete.
13244 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13245 description in tdep.
13246 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13247 (get_longjmp_target): Delete declaration.
13248 (GET_LONGJMP_TARGET): Delete.
13249 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13250 (GET_LONGJMP_TARGET): Delete.
13251
57bc8964
KB
132522002-02-17 Kevin Buettner <kevinb@redhat.com>
13253
13254 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13255 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13256 of ``current_gdbarch''.
13257
83d31a92
TT
132582002-02-17 Tom Tromey <tromey@redhat.com>
13259
13260 * cli/cli-cmds.c (compare_strings): New function.
13261 (complete_command): Only print each unique item once.
13262 * completer.h (complete_line): Declare.
13263 * completer.c (complete_line): New function.
13264 (line_completion_function): Use it.
13265
17ef5d92
AC
132662002-02-16 Andrew Cagney <ac131313@redhat.com>
13267
13268 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13269 * gdbarch.h, gdbarch.c: Re-generate.
13270
491b8946
DJ
132712002-02-16 Daniel Jacobowitz <drow@mvista.com>
13272
13273 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13274
132752002-02-16 Daniel Jacobowitz <drow@mvista.com>
13276
13277 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13278 * valops.c (value_arg_coerce): Don't take the address of a reference
13279 to convert an argument to a reference.
13280
dfe7f3ac
CF
132812002-02-15 Christopher Faylor <cgf@redhat.com>
13282
13283 * win32-nat.c (get_image_name): New function.
13284 (handle_load_dll): Use get_image_name function.
13285 (get_child_debug_event): Avoid registering debug events until possibly
13286 execed process is started.
13287 (child_create_inferior): Allow invocation via shell so that command
13288 line redirection, etc. works ok.
13289 (_initialize_inftarg): Add new command: "set shell" to control whether
13290 a shell is used to start a process.
13291
1d33e73a
DJ
132922002-02-15 Daniel Jacobowitz <drow@mvista.com>
13293
13294 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13295 instead of find_register_by_number.
13296 (cannot_store_register): Likewise.
13297
48cd0caa
PM
132982002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13299
aaa38bb5 13300 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
13301 fprintf_unfiltered (gdb_stderr, ...).
13302
8656e7d8
DJ
133032002-02-15 Daniel Jacobowitz <drow@mvista.com>
13304
13305 * gdbserver/gdbserver.1: Document --attach.
13306
66e810cd
RE
133072002-02-15 Richard Earnshaw <rearnsha@arm.com>
13308
13309 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13310 descriptions.
13311 * arm-tdep.c (arm_default_arm_le_breakpoint)
13312 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13313 (arm_default_thumb_be_breakpoint): New. Initialize them from
13314 traditional breakpoint defines.
13315 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13316 (arm_gdbarch_init): Initialize new breakpoint variables.
13317 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13318 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13319 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13320 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13321 code out to ...
13322 (arm_netbsd_init_abi_common): ... here; new function.
13323 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13324 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13325 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13326 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13327
97e03143
RE
133282002-02-15 Richard Earnshaw <rearnsha@arm.com>
13329
13330 * arm-tdep.h (enum arm_abi): New enum.
13331 (struct gdbarch_tdep): New structure.
13332 (LOWEST_PC): Provide a default.
13333 (arm_gdbarch_register_os_abi): Declare new function.
13334 * arm-tdep.c (arm_abi_names): New array.
13335 (process_note_abi_tag_sections): New function.
13336 (get_elfosabi): New function.
13337 (arm_gdbarch_register_os_abi): New function.
13338 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13339 support for that ABI has been built in, then call the appropriate
13340 configuration routine. Use gdbarch_num_regs() to get the number
13341 of registers.
13342 (arm_dump_tdep): New function.
13343 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13344 place-holder functions.
13345 (_initialize_arm_tdep): Register them.
13346 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13347
13348 * armnbsd-tdep.c: New file.
13349 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13350 * config/arm/nbsd.mt (TDEPFILES): Add it.
13351 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13352
13353 * armnbsd-nat.c: Include regcache.h.
13354 * Makefile.in (armnbsd-nat.o): Update dependency list.
13355
13356 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13357
ad68be46
DJ
133582002-02-14 Daniel Jacobowitz <drow@mvista.com>
13359
13360 * gdbserver/Makefile.in: Fix typos in target rules.
13361
003d6d1d
DJ
133622002-02-14 Daniel Jacobowitz <drow@mvista.com>
13363
aaa38bb5 13364 Fix part of PR gdb/267.
003d6d1d
DJ
13365 * linespec.c (find_methods): Handle constructors specially for now.
13366
6b230f1b
CV
133672002-02-14 Corinna Vinschen <vinschen@redhat.com>
13368
13369 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13370 handling.
13371 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13372 standard_coerce_float_to_double().
13373
1ea98d12
CF
133742002-02-14 Christopher Faylor <cgf@redhat.com>
13375
13376 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13377 GDBINIT_FILENAME.
13378
dd47e6fd
EZ
133792002-02-14 Elena Zannoni <ezannoni@redhat.com>
13380
13381 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13382 find_variant_by_name, because it confuses the multiarch
13383 framework. Return NULL if there isn't an architecture with the
13384 user supplied name, instead of forcing a different one without
13385 recording the change with the multiarch machinery.
13386 (find_variant_by_name): Delete.
13387
d7e39b9e
PS
133882002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13389
13390 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13391 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13392
76e42a4f
MH
133932002-02-13 Martin M. Hunt <hunt@redhat.com>
13394
aaa38bb5 13395 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
13396 print_frame_info_listing_hook, set current_source_symtab.
13397
0a30fbc4
DJ
133982002-02-14 Daniel Jacobowitz <drow@mvista.com>
13399
13400 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13401 and remove unused $(INCLUDE_DIR).
13402 Add regcache.c to OBS.
13403 Add generated register protocol files to clean target.
13404 Update dependencies for new objects, obsolete old target code.
13405
13406 * gdbserver/linux-low.c: Remove all platform-specific code to
13407 new files. Remove various dead code. Update to use regcache
13408 functionality.
13409 * gdbserver/remote-utils.c (fromhex): Add return statement
13410 to quiet warning.
13411 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13412 constant.
13413 (input_interrupt): Add integer parameter to match prototype
13414 of a signal handler.
13415 (outreg): Use register_data ().
13416 (prepare_resume_reply): Use gdbserver_expedite_regs.
13417 * gdbserver/server.c (main): Dynamically allocate own_buf because
13418 PBUFSIZ is no longer constant. Use registers_to_string () and
13419 registers_from_string ().
13420 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13421 for error (), fatal (), and warning (). Update definition of
13422 PBUFSIZ to use regcache functionality. Add include guard.
13423 * gdbserver/utils.c (fatal): Add missing ``const''.
13424 (warning): New function.
13425
13426 * regformats/regdat.sh: Include "regcache.h" in generated files.
13427 Provide init_registers () function.
13428 * regformats/regdef.h: Add prototype for set_register_cache ().
13429 Add include guard.
13430
13431 * gdbserver/linux-arm-low.c: New file.
13432 * gdbserver/linux-i386-low.c: New file.
13433 * gdbserver/linux-ia64-low.c: New file.
13434 * gdbserver/linux-m68k-low.c: New file.
13435 * gdbserver/linux-mips-low.c: New file.
13436 * gdbserver/linux-ppc-low.c: New file.
13437 * gdbserver/linux-sh-low.c: New file.
13438
13439 * gdbserver/regcache.c: New file.
13440 * gdbserver/regcache.h: New file.
13441
13442 * gdbserver/low-linux.c: Removed obsolete file.
13443
4cc841d0
DJ
134442002-02-14 Daniel Jacobowitz <drow@mvista.com>
13445
13446 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13447 * config/i386/linux.mt: Likewise.
13448 * config/ia64/linux.mt: Likewise.
13449 * config/m68k/linux.mh: Likewise.
13450 * config/powerpc/linux.mh: Likewise.
13451 * config/mips/linux.mt: Likewise.
13452
13453 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13454
13455 * config/i386/i386lynx.mh: Mark gdbserver variables
13456 as (currently) obsolete for this target.
13457 * config/i386/nbsd.mt: Likewise.
13458 * config/i386/nbsdelf.mt: Likewise.
13459 * config/m32r/m32r.mt: Likewise.
13460 * config/m68k/m68klynx.mh: Likewise.
13461 * config/m68k/nbsd.mt: Likewise.
13462 * config/m68k/sun3os4.mh: Likewise.
13463 * config/mips/vr5000.mt: Likewise.
13464 * config/ns32k/nbsd.mt: Likewise.
13465 * config/pa/hppabsd.mh: Likewise.
13466 * config/pa/hppaosf.mh: Likewise.
13467 * config/powerpc/nbsd.mt: Likewise.
13468 * config/rs6000/rs6000lynx.mh: Likewise.
13469 * config/s390/s390.mt: Likewise.
13470 * config/s390/s390x.mt: Likewise.
13471 * config/sparc/sparclynx.mh: Likewise.
13472 * config/sparc/sun4os4.mh: Likewise.
13473 * config/i386/x86-64linux.mt: Likewise.
13474 * config/sparc/linux.mh: Likewise.
13475
a85f51e7
DJ
134762002-02-14 Daniel Jacobowitz <drow@mvista.com>
13477
13478 * configure.tgt: Configure gdbserver only for known working
13479 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13480 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13481 SUBDIRS if it is configured. Update comment for ${nativefile}.
13482 * configure: Regenerated.
13483
65554fef
MS
134842002-02-13 Michael Snyder <msnyder@redhat.com>
13485
670a52db
MS
13486 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13487
6dbdc4a3
MS
13488 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13489 (default_gcore_mach): Just return 0, work around a problem in bfd.
13490 (default_gcore_target): OK to return NULL if exec_bfd is null.
13491 (make_mem_sec): Use a cast, avoid a warning.
13492
13493 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 13494 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
13495 sizeof (host pointer) != sizeof (target pointer)).
13496 (procfs_make_note_section): Avoid overflow in psargs string.
13497
aaa38bb5 13498 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
13499 implementation return an error.
13500
135012002-02-13 Rodney Brown <rbrown64@csc.com.au>
13502
13503 * procfs.c (procfs_make_note_section): Provide a default definition
13504 (for alpha-dec-osf4.0f). Fix typos.
13505
1e4d76e7
EZ
135062002-02-13 Elena Zannoni <ezannoni@redhat.com>
13507
13508 * linux-proc.c: Add include of regcache.h.
13509 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13510
b6d1a1d5
AC
135112002-02-13 Andrew Cagney <ac131313@redhat.com>
13512
13513 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
13514 * memattr.c (create_mem_region): Disallow useless empty region.
13515 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 13516 non-overlapping.
b6d1a1d5 13517
6c6ea35e
MC
135182002-02-13 Michael Chastain <mec@shout.net>
13519
13520 * defs.h: Kill CONST_PTR.
13521 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13522 * c-lang.c (c_builtin_types): Likewise.
13523 * ch-lang.c (ch_builtin_types): Likewise.
13524 * f-lang.c (f_builtin_types): Likewise.
13525 * language.c (unknown_builtin_types): Likewise.
13526 * m2-lang.c (m2_builtin_types): Likewise.
13527 * p-lang.c (pascal_builtin_types): Likewise.
13528 * scm-lang.c (c_builtin_types): Likewise.
13529
3e0b0f48
KS
135302002-02-13 Keith Seitz <keiths@redhat.com>
13531
13532 * arm-tdep.h (arm_get_next_pc): Add declaration.
13533
67255d04
RE
135342002-02-13 Richard Earnshaw <rearnsha@arm.com>
13535
13536 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13537 with other related struct-returning functions.
13538 (arm_extract_struct_value_address): New function.
13539 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13540 initialize float_format, double_format and long_double_format as
13541 appropriate to the endianness of the target.
13542 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13543 (arm_use_struct_convention): Delete declaration.
13544 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13545
079777f6
KS
135462002-02-13 Keith Seitz <keiths@redhat.com>
13547
13548 * defs.h (core_addr_to_string_nz): New function.
13549
34588f23
MK
135502002-02-13 Mark Kettenis <kettenis@gnu.org>
13551
13552 Apply missing bits of 2002-01-15 patch.
13553 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13554 (fill_fpregset): Use i387_fill_fsave.
13555
49b563f9
KS
135562002-02-12 Keith Seitz <keiths@redhat.com>
13557
49b563f9
KS
13558 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13559 (core_addr_to_string_nz): New function.
13560
aeb98c60
RE
135612002-02-11 Richard Earnshaw <rearnsha@arm.com>
13562
13563 * arm-linux-nat.c: Really include arm-tdep.h.
13564 * config/arm/tm-linux.h (struct type, struct value): Declare.
13565
65554fef
MS
135662002-02-11 Michael Snyder <msnyder@redhat.com>
13567
13568 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13569 (gcore section): Ifdef for Solaris and Unixware only.
13570 (procfs_do_thread_registers): Unixware needs one lwpstatus
13571 per thread (not one prstatus or pstatus).
13572 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13573 not over all gdb threads. For unixware, call elfcore_write_pstatus
13574 once before iterating over threads.
13575
34e8f22d
RE
135762002-02-11 Richard Earnshaw <rearnsha@arm.com>
13577
13578 * arm-tdep.h: New file.
13579 * arm-tdep.c: Include arm-tdep.h.
13580 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13581 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13582 (arm_print_float_info, arm_register_type, convert_to_extended)
13583 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13584 (arm_extract_return_value, arm_register_name): Make static.
13585 (arm_software_single_step): Similarly. Fix types in declaration.
13586 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13587 (arm_store_return_value, arm_store_struct_return): New functions.
13588 (arm_gdbarch_init): Register the above functions. Also register
13589 call_dummy_start_offset, sizeof_call_dummy_words,
13590 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13591 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 13592 max_register_virtual_size, register_size. Set up
34e8f22d
RE
13593 prologue_cache.saved_regs here, rather than ...
13594 (_initialize_arm_tdep): ... here.
13595 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13596 declarations.
13597 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13598 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13599 (arm_print_float_info, arm_register_type, convert_to_extended)
13600 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13601 (arm_extract_return_value, arm_register_name): Delete declarations.
13602 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13603 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13604 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13605 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13606 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13607 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13608 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13609 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13610 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13611 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13612 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13613 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13614 interface.
13615 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13616 * remote-rdi.c remote-rdp.c: Likewise.
13617 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13618 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13619 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13620 definition.
13621
13622 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13623 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13624 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13625 from non-ARM_ prefixed definitions.
13626 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13627 all uses of above.
13628 * remote-rdi.c remote-rdp.c: Likewise.
13629 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13630
148754e5
RE
136312002-02-11 Richard Earnshaw <rearnsha@arm.com>
13632
13633 * arm-tdep.c (arm_frameless_function_invocation)
13634 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13635 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13636 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13637 (arm_pop_frame, arm_get_next_pc): Make static.
13638 (arm_gdbarch_init): Register above in gdbarch structure.
13639 (arm_read_fp): Renamed from arm_target_read_fp.
13640 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13641 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13642 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13643 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13644 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13645 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13646 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
13647 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13648 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13649 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13650 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 13651
434d2d4f
DJ
136522002-02-10 Daniel Jacobowitz <drow@mvista.com>
13653
13654 * symtab.c (compare_search_syms): New function.
13655 (sort_search_symbols): New function.
13656 (search_symbols): Sort symbols after searching rather than
13657 before.
13658
55241689
AC
136592002-02-10 Andrew Cagney <ac131313@redhat.com>
13660
13661 * NEWS: Linux -> GNU/Linux.
13662
028c194b
AC
136632002-02-10 Andrew Cagney <ac131313@redhat.com>
13664
13665 * gdbarch.sh: For for level one methods, disallow a definition
13666 when partially multi-arched. Add comments explaining rationale.
13667 * gdbarch.h: Re-generate.
13668
6acf50cd
AC
136692002-02-10 Andrew Cagney <ac131313@redhat.com>
13670
13671 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13672 multi-arch partial.
aaa38bb5 13673
50248794
AC
136742002-02-10 Andrew Cagney <ac131313@redhat.com>
13675
13676 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13677 field. Use diff -u.
13678 * gdbarch.c: Re-generate.
13679
c30e0066
AC
136802002-02-10 Andrew Cagney <ac131313@redhat.com>
13681
9b56c5f3 13682 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
13683 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13684 partial.
13685
6e6d6484
AC
136862002-02-10 Andrew Cagney <ac131313@redhat.com>
13687
13688 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13689 multi-arch partial.
13690 (PUSH_ARGUMENTS): Switch to using predefault.
13691 * gdbarch.c: Regenerate.
13692
c203844d
AC
136932002-02-10 Andrew Cagney <ac131313@redhat.com>
13694
13695 * valops.c (PUSH_ARGUMENTS): Delete definition.
13696 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13697 partial. Default to default_push_arguments.
13698 * gdbarch.h, gdbarch.c: Regenerate.
13699
b5a2688f
AC
137002002-02-09 Andrew Cagney <ac131313@redhat.com>
13701
13702 * defs.h (throw_exception): Rename return_to_top_level. Update
13703 comments.
13704 * utils.c (error_stream, internal_verror, quit): Ditto.
13705 * top.c (throw_exception, catcher): Ditto.
13706 * sparclet-rom.c (sparclet_load): Ditto.
13707 * remote.c (interrupt_query, minitelnet): Ditto.
13708 * remote-sds.c (interrupt_query): Ditto.
13709 * remote-mips.c (mips_error, mips_kill): Ditto.
13710 * ocd.c (interrupt_query): Ditto.
13711 * monitor.c (monitor_interrupt_query): Ditto.
13712 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13713 * target.h: Update comment.
aaa38bb5 13714
b5a2688f 13715 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 13716
2fa5c1e0
AC
137172002-02-09 Andrew Cagney <ac131313@redhat.com>
13718
13719 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13720 default_double_format.
13721 * gdbarch.h, gdbarch.c: Re-generate.
13722 * findvar.c (floatformat_unknown): Delete variable definition.
13723 * doublest.h (floatformat_unknown): Delete variable declaration.
13724
da966255
JB
137252002-02-09 Jim Blandy <jimb@redhat.com>
13726
13727 * stabsread.c (read_type): Add code to parse Sun's syntax for
13728 prototyped function types.
13729
123a4891
AC
137302002-02-09 Andrew Cagney <ac131313@redhat.com>
13731
13732 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13733 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13734
fb39c8f3
PS
137352002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13736
13737 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13738 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13739 now _initialize_xcoffsolib gets called again and overrides the
13740 commands from solib.c in a native configuration.
13741
0b87a11d
MK
137422002-02-09 Mark Kettenis <kettenis@gnu.org>
13743
13744 * doublest.c (store_typed_floating): Don't try to return a value.
13745 Fixes PR gdb/290.
13746
bdc2fc72
JB
137472002-02-08 Jim Blandy <jimb@redhat.com>
13748
13749 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13750 is prototyped and has no arguments, print its argument list as
13751 `(void)'.
13752
da69bbcf
CD
137532002-02-08 Chris Demetriou <cgd@broadcom.com>
13754
13755 * MAINTAINERS (write-after-approval): Add myself.
13756 (paper-trail): I've escaped!
aaa38bb5 13757
b69571f5
CF
137582002-02-08 Christopher Faylor <cgf@redhat.com>
13759
13760 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13761 changes.
13762 (_initialize_check_for_gdb_ini): Ditto.
13763
f6871398
MH
137642002-02-08 Martin M. Hunt <hunt@redhat.com>
13765
13766 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13767 xaprintf -> xasprintf.
13768
4e52d31c
PM
137692002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13770
13771 * win32-nat.c: Remove use of printf and sprintf functions.
13772
39bbf761
RE
137732002-02-08 Richard Earnshaw <rearnsha@arm.com>
13774
13775 * arm-tdep.c (arm_frame_chain_valid): Make static.
13776 (arm_push_arguments): Likewise.
13777 (arm_gdbarch_init): New function.
13778 (_initialize_arm_tdep): Call it.
13779 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13780 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13781 (FRAME_CHAIN_VALID): Delete.
13782 (arm_frame_chain_valid): Delete declaration.
13783 (PUSH_ARGUMENTS): Delete.
13784 (arm_push_arguments): Delete declaration.
13785 (CALL_DUMMY_P): Delete.
13786
9c9532c9
CV
137872002-02-08 Andrew Cagney <ac131313@redhat.com>
13788 Corinna Vinschen <vinschen@redhat.com>
13789
13790 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13791 on builtin float types.
13792
4e8f7a8b
DJ
137932002-02-08 Daniel Jacobowitz <drow@mvista.com>
13794
13795 * utils.c: Include <curses.h> before "bfd.h".
13796 * tui/tui-hooks.c: Likewise.
13797 * tui/tui.c: Likewise.
13798 * tui/tuiCommand.c: Likewise.
13799 * tui/tuiData.c: Likewise.
13800 * tui/tuiDataWin.c: Likewise.
13801 * tui/tuiDisassem.c: Likewise.
13802 * tui/tuiGeneralWin.c: Likewise.
13803 * tui/tuiIO.c: Likewise.
13804 * tui/tuiLayout.c: Likewise.
13805 * tui/tuiRegs.c: Likewise.
13806 * tui/tuiSource.c: Likewise.
13807 * tui/tuiSourceWin.c: Likewise.
13808 * tui/tuiStack.c: Likewise.
13809 * tui/tuiWin.c: Likewise.
13810
cd4bffcf
EZ
138112002-02-07 Elena Zannoni <ezannoni@redhat.com>
13812
13813 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13814 to include space for pseudoregs as well. Update loops accordingly.
13815 (sh_fp_frame_init_saved_regs): Ditto.
13816 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13817
26806ce2
AC
138182002-02-07 Andrew Cagney <ac131313@redhat.com>
13819
13820 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13821 Add Richard Earnshaw to Arm maintainers.
13822
97fdab62
AC
138232002-02-07 Andrew Cagney <ac131313@redhat.com>
13824
a6b98203
AC
13825 * defs.h (warning_begin): Delete declaration.
13826
97fdab62
AC
13827 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13828 Delete macro.
13829
78b29b40
MS
138302002-02-07 Michael Snyder <msnyder@redhat.com>
13831
aaa38bb5 13832 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13833 Logic bug, remove misplaced else.
13834
d8849953
KD
138352002-02-07 Klee Dienes <klee@apple.com>
13836
13837 * fork-inferior.c (fork_inferior): Add '!' to the list of
13838 characters that need to be quoted when building a string for the
13839 shell. Quote '!' specifically with a backslash, since CSH chokes
13840 when trying to evaluate "str!str".
aaa38bb5 13841
095778a0
NC
138422002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13843
13844 * rdi-share/host.h: Only provide a typedef for bool if it is not
13845 defined.
13846
1900040c
MS
138472002-02-04 Michael Snyder <msnyder@redhat.com>
13848
13849 * breakpoint.h (enum bptype): Add new overlay event bp type.
13850 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13851
1900040c
MS
13852 * breakpoint.c (create_internal_breakpoint): New function.
13853 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13854 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13855 (create_thread_event_breakpoint): Ditto.
13856 (create_solib_event_breakpoint): Ditto.
13857 (create_overlay_event_breakpoint): New function.
13858 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13859 (update_breakpoints_after_exec): Delete and re-initialize
13860 overlay event breakpoints after an exec. Add FIXME comment
13861 about longjmp breakpoint.
13862 (print_it_typical): Ignore overlay event breakpoints.
13863 (print_one_breakpoint): Ditto.
13864 (mention): Ditto.
13865 (bpstat_what): Do not stop for overlay event breakpoints.
13866 (delete_breakpoint): Don't delete overlay event breakpoints.
13867 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13868 (breakpoint_re_set): Re-create overlay event breakpoint.
13869
13870 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13871 (overlay_manual_command): Disable overlay breakpoints.
13872 (overlay_off_command): Disable overlay breakpoints.
13873
082fc60d
RE
138742002-02-06 Richard Earnshaw <rearnsha@arm.com>
13875
13876 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13877 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13878 to here from config/tm-arm.h.
13879 (coff_sym_is_thumb): Make static.
13880 (arm_elf_make_msymbol_special): New function.
13881 (arm_coff_make_msymbol_special): New function.
13882 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13883 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13884 (coff_sym_is_thumb): Delete declaration.
13885 (arm_elf_make_msymbol_special): Declare.
13886 (arm_coff_make_msymbol_special): Declare.
13887 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13888 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13889
039c5766
RE
138902002-02-06 Richard Earnshaw <rearnsha@arm.com>
13891
13892 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13893
138942002-02-06 Richard Earnshaw <rearnsha@arm.com>
13895
13896 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13897 * gdbarch.c gdbarch.h: Regenerate.
13898 * arch-utils.c (default_print_float_info): New function.
13899 * arch-utils.h (default_print_float_info): Prototype it.
13900 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13901 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13902 (PRINT_FLOAT_INFO): Document it.
13903
13904 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13905 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13906 (PRINT_FLOAT_INFO): Define.
13907
58fa08f0
PM
139082002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13909
aaa38bb5 13910 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13911 Add typecast to sprintf argument to suppress a warning.
13912
7393af7c
PM
139132002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13914
58fa08f0 13915 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13916 to allow easier handling of pass state.
13917 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13918 that gives exception name and address.
13919 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13920 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13921 exceptions added.
aaa38bb5
AJ
13922 (child_continue): Correctly report continue_status.
13923 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13924 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13925 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13926 the exception should be passed to debuggee or not.
13927
6af4589c
MS
139282002-02-05 Michael Snyder <msnyder@redhat.com>
13929
13930 * regcache.c (fetch_register): Call target_fetch_register
13931 only if we don't call FETCH_PSEUDO_REGISTER.
13932 (store_register): Call target_store_register only if we
13933 don't call STORE_PSEUDO_REGISTER.
13934
a2cf933a
EZ
139352002-02-05 Elena Zannoni <ezannoni@redhat.com>
13936
13937 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13938 ELF_MAKE_MSYMBOL_SPECIAL.
13939 * gdbarch.c, gdbarch.h: Regenerate.
13940 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13941 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13942 * elfread.c (elf_symtab_read): Compile use of
13943 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13944 multiarched.
13945 * coffread.c (coff_symtab_read): Ditto, for
13946 COFF_MAKE_MSYMBOL_SPECIAL.
13947
6bb7be43
JB
139482002-02-05 Jim Blandy <jimb@redhat.com>
13949
13950 * solib-svr4.c (svr4_truncate_ptr): New function.
13951 (svr4_relocate_section_addresses): Do the address arithmetic with
13952 the appropriate truncation for target addresses, even when
13953 CORE_ADDR is larger than a target address.
13954
e18651ec
DJ
139552002-02-05 Daniel Jacobowitz <drow@mvista.com>
13956
13957 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13958 to (int *).
13959
6b2725be
DJ
139602002-02-05 Daniel Jacobowitz <drow@mvista.com>
13961
13962 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13963 code.
13964
fca9e603
DJ
139652002-02-05 Daniel Jacobowitz <drow@mvista.com>
13966
13967 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13968
6c537a52
DJ
139692002-02-05 Daniel Jacobowitz <drow@mvista.com>
13970
13971 * gdbserver/linux-low.c: Remove unused include files.
13972
d844cde6
DJ
139732002-02-05 Daniel Jacobowitz <drow@mvista.com>
13974
13975 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13976 (read_inferior_memory): Use it.
13977 (write_inferior_memory): Likewise.
13978
d07c63e7
DJ
139792002-02-05 Daniel Jacobowitz <drow@mvista.com>
13980
13981 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13982 grubbing through sys_errlist.
13983
da6d8c04
DJ
139842002-02-05 Daniel Jacobowitz <drow@mvista.com>
13985
13986 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13987
5b421780
PM
139882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13989 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13990
9f60d481
AC
139912002-02-04 Andrew Cagney <ac131313@redhat.com>
13992
13993 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13994 (do_sfunc, set_cmd_sfunc): New functions.
13995
13996 * command.h (struct cmd_list_element): Add field func.
13997 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13998 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13999 * cli/cli-decode.h: Ditto.
14000
14001 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14002 (help_all, help_cmd_list): Ditto.
14003 (find_cmd, complete_on_cmdlist): Ditto.
14004 * top.c (execute_command): Ditto.
14005
14006 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14007 function.sfunc.
14008
14009 * infcmd.c (notice_args_read): Fix function signature.
14010
14011 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14012 * cli/cli-decode.c (add_set_cmd): Ditto.
14013 * utils.c (initialize_utils): Ditto.
14014 * maint.c (_initialize_maint_cmds): Ditto.
14015 * infrun.c (_initialize_infrun): Ditto.
14016 * demangle.c (_initialize_demangler): Ditto.
14017 * remote.c (add_packet_config_cmd): Ditto.
14018 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14019 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14020 * proc-api.c (_initialize_proc_api): Ditto.
14021 * kod.c (_initialize_kod): Ditto.
14022 * valprint.c (_initialize_valprint): Ditto.
14023 * top.c (init_main): Ditto.
14024 * infcmd.c (_initialize_infcmd): Ditto.
14025 * corefile.c (_initialize_core): Ditto.
14026 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14027 * arch-utils.c (initialize_current_architecture): Ditto.
14028 (_initialize_gdbarch_utils): Ditto.
14029 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14030
14031 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14032 * wince.c (_initialize_inftarg): Ditto.
14033 * symfile.c (_initialize_symfile): Ditto.
14034 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14035 * language.c (_initialize_language): Ditto.
14036 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14037
f9ba0717
MS
140382002-02-04 Michael Snyder <msnyder@redhat.com>
14039
14040 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14041
0c74b2a7
DJ
140422002-02-04 Daniel Jacobowitz <drow@mvista.com>
14043
14044 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14045 Add rules for building the register data files.
14046
c638789f
DJ
140472002-02-04 Daniel Jacobowitz <drow@mvista.com>
14048
14049 * regformats/regdat.sh: Add braces to the definition of
14050 expedite_regs_${arch}.
14051
db253027
DJ
140522002-02-04 Daniel Jacobowitz <drow@mvista.com>
14053
14054 * regformats/regdef.h (struct reg): Add comment describing the
14055 requirements for offset and size fields.
14056
206be19c
AS
140572002-02-04 Andreas Schwab <schwab@suse.de>
14058
14059 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14060 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14061
181c1381
RE
140622002-02-04 Richard Earnshaw <rearnsha@arm.com>
14063
14064 * gdbarch.sh (copyright): Update years in generated header.
14065 (SMASH_TEXT_ADDRESS): Add rule.
db253027 14066 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
14067 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14068 * dbxread.c: Likewise.
14069 * dwarfread.c: Likewise.
14070 * elfread.c: Likewise.
14071 * somread.c: Likewise.
14072
14073 * arm-tdep.c (arm_smash_text_address): New function.
14074 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14075
fa4ba8da
PM
140762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14077
14078 Add support for hardware watchpoints on win32 native.
aaa38bb5 14079 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 14080 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 14081 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
14082 of debug registers.
14083 (debug_registers_changed): New variable. Reflects when debug registers
14084 are changed and need to be written to inferior.
aaa38bb5 14085 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
14086 was set, used when new threads are created.
14087 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14088 i386-nat code.
14089 (thread_rec): Set dr array if id is the thread of current_event .
14090 (child_continue, child_resume): Change the debug registers for all
14091 threads if debug_registers_changed.
14092 (child_add_thread): Change the debug registers if debug_registers_used.
14093 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14094 Link nm.h to new nm-cygwin.h file.
14095 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14096 of hardware registers.
14097
a73c86fb
AC
140982002-02-03 Andrew Cagney <ac131313@redhat.com>
14099
14100 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14101 Restore behavour broken by 2002-01-20 Andrew Cagney
14102 <ac131313@redhat.com> IEEE_FLOAT removal.
14103
acf5ed49
DJ
141042002-02-03 Daniel Jacobowitz <drow@mvista.com>
14105
14106 * c-valprint.c (c_val_print): Pass a proper valaddr to
14107 cp_print_class_method.
14108 * valops.c (search_struct_method): If there is only one method
14109 and args is NULL, return that method.
14110
493d28d5
DJ
141112002-02-03 Daniel Jacobowitz <drow@mvista.com>
14112
14113 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14114 accessing tag_name directly.
14115
7495dfdb
DJ
141162002-02-03 Daniel Jacobowitz <drow@mvista.com>
14117
14118 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14119 of accessing tag_name directly.
14120
dd6bda65
DJ
141212002-02-03 Daniel Jacobowitz <drow@mvista.com>
14122
14123 PR gdb/280
14124 * gdbtypes.c (replace_type): New function.
14125 * gdbtypes.h (replace_type): Add prototype.
14126 * stabsread.c (read_type): Use replace_type.
14127
88fe217c
RE
141282002-02-03 Richard Earnshaw <rearnsha@arm.com>
14129
14130 * Makefile.in (memattr.o): Add missing dependencies rule.
14131
e5d66720
PS
141322002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14133
14134 * breakpoint.c (break_at_finish_command): Really export.
14135 (break_at_finish_at_depth_command): Ditto.
14136 (tbreak_at_finish_command): Ditto.
14137 * hppa-tdep.c: Include completer.h.
14138 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14139 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14140
fffee0be
AC
141412002-02-01 Andrew Cagney <ac131313@redhat.com>
14142
14143 * utils.c (do_write): New function.
14144 (error_stream): Rewrite combining the code from error_begin and
14145 verror.
14146 (verror): Rewrite using error_stream.
14147 (error_begin): Delete function.
14148
255e7dbf
AC
141492002-02-01 Andrew Cagney <ac131313@redhat.com>
14150
14151 * utils.c (error_begin): Make static.
14152 * defs.h (error_begin): Delete declaration.
14153
14154 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14155 (decode_line_1): Use cplusplus_error instead of error_begin,
14156 cplusplus_hint and return_to_top_level.
14157 * coffread.c (coff_symfile_read): Use error instead of error_begin
14158 and return_to_top_level.
14159 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14160
ddfe3c15
AC
141612002-02-01 Andrew Cagney <ac131313@redhat.com>
14162
14163 * language.h (type_error, range_error): Make string parameter
14164 constant.
14165 * language.c (warning_pre_print): Delete extern declaration.
14166 * dwarfread.c (warning_pre_print): Ditto.
14167 * language.c (type_error, range_error): Rewrite to use verror and
14168 vwarning instead of warning_begin.
14169
03ac34d5
MS
141702002-02-01 Michael Snyder <msnyder@redhat.com>
14171
261c4ca2
MS
14172 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14173 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 14174
e00d1dc8
AC
141752002-02-01 Andrew Cagney <ac131313@redhat.com>
14176
14177 * command.h (NO_FUNCTION): Delete macro.
14178 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14179 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14180 * tracepoint.c (_initialize_tracepoint): Ditto.
14181 * cli/cli-decode.c (add_set_cmd): Ditto.
14182 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 14183
76b79d6e
DJ
141842002-02-01 Daniel Jacobowitz <drow@mvista.com>
14185
14186 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14187 Update ``this'' pointer when calling virtual functions.
14188
799f9e91
MS
141892002-02-01 Michael Snyder <msnyder@redhat.com>
14190
c7bd442c 14191 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
14192 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14193
3cf384d4
DJ
141942002-02-01 Daniel Jacobowitz <drow@mvista.com>
14195
14196 * regformats/reg-arm.dat: New file.
14197 * regformats/reg-i386.dat: New file.
14198 * regformats/reg-ia64.dat: New file.
14199 * regformats/reg-m68k.dat: New file.
14200 * regformats/reg-mips.dat: New file.
14201 * regformats/reg-ppc.dat: New file.
14202 * regformats/reg-sh.dat: New file.
14203 * regformats/regdef.h: New file.
14204 * regformats/regdat.sh: New file.
14205
0defa245
RE
142062002-02-01 Richard Earnshaw <reanrsha@arm.com>
14207
14208 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14209 (arm_frame_args_address, arm_frame_locals_address): New functions.
14210 (arm_frame_num_args): New function.
14211 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14212 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14213 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14214
405f26e6
MS
142152002-01-31 Michael Snyder <msnyder@redhat.com>
14216
502fd408
MS
14217 * breakpoint.c (break_at_finish_command): Export.
14218 (break_at_finish_at_depth_command): Export.
14219 (tbreak_at_finish_command): Export.
d6020d45 14220 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 14221 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 14222 "txbreak" commands, which are HPPA specific.
502fd408 14223
7d35e135
MS
14224 * printcmd.c (disassemble_command): Remove an ancient
14225 artifact of an old merge.
14226
aaa38bb5 14227 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
14228 Define enum constant values for overlay mode.
14229 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
14230 (overlay_is_mapped, overlay_auto_command,
14231 overlay_manual_command): Ditto.
d874f1e2 14232
aaa38bb5
AJ
14233 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14234 breakpoint_here_p, breakpoint_inserted_here_p,
14235 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
14236 describe_other_breakpoints, check_duplicates, clear_command):
14237 Coding standard fixes.
14238
8add0441 14239 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 14240 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
14241 code: check bfd SEC_READONLY flag for section.
14242
e351066e
AC
142432002-01-31 Andrew Cagney <ac131313@redhat.com>
14244
7d35e135 14245 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 14246
8a48e967
DJ
142472002-01-30 Daniel Jacobowitz <drow@mvista.com>
14248
14249 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14250 data symbols, since we search based on textlow and texthigh.
14251 (find_pc_sect_symtab): Likewise.
14252
f5a96129
AC
142532002-01-30 Andrew Cagney <ac131313@redhat.com>
14254
14255 * defs.h (vwarning): Declare.
f5a96129
AC
14256 * utils.c (vwarning): New function.
14257 (warning): Call vwarning.
14258 (warning_begin): Delete function.
14259
14260 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14261 the warning message.
14262 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14263 warning_begin.
14264
cefd4ef5
MS
142652002-01-30 Michael Snyder <msnyder@redhat.com>
14266
1a703748
MS
14267 * NEWS: Mention "set trust-readonly-sections" command.
14268 Mention generate-core-file command.
cefd4ef5 14269
3a11626d
MS
142702002-01-15 Michael Snyder <msnyder@redhat.com>
14271
14272 * target.c: New command, "set trust-readonly-sections on".
14273 (do_xfer_memory): Honor the suggestion to trust readonly sections
14274 by reading them from the object file instead of from the target.
14275 (initialize_targets): Register command "set trust-readonly-sections".
14276
d1c7e53b
AC
142772002-01-29 Andrew Cagney <ac131313@redhat.com>
14278
14279 * parse.c (target_map_name_to_register): Simplify, search regs and
14280 pseudo-regs using a single loop.
14281
e2c9a72c
AC
142822002-01-30 Andrew Cagney <ac131313@redhat.com>
14283
14284 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14285
69824b4e
MK
142862002-01-15 Rodney Brown <rbrown64@csc.com.au>
14287
14288 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14289 * config/i386/i386v42mp.mh: Add i387-nat.o .
14290 * i386v4-nat.c: Include i387-nat.h.
14291 (supply_fpregset): Use i387_supply_fsave.
14292 (fill_fpregset): Use i387_fill_fsave.
14293
6eb69eab
RE
142942002-01-30 Richard Earnshaw <rearnsha@arm.com>
14295
14296 * arm-tdep.c (arm_call_dummy_words): Define.
14297 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14298 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14299 (CALL_DUMMY_WORDS): Define.
14300 (arm_call_dummy_words): Declare.
14301 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14302 (arm_linux_call_dummy_words): Declare.
14303
9852326a
AS
143042002-01-30 Andreas Schwab <schwab@suse.de>
14305
14306 * m68klinux-nat.c: Fix last change to use regcache_collect
14307 instead of referencing registers[] directly.
14308
977a3030
AC
143092002-01-29 Andrew Cagney <ac131313@redhat.com>
14310
14311 * parse.c (target_map_name_to_register): Delete code wrapped in
14312 #ifdef REGISTER_NAME_ALIAS_HOOK.
14313
2076c72b
MS
143142002-01-28 Michael Snyder <msnyder@redhat.com>
14315
14316 * regcache.c (legacy_read_register_gen): Need to be able to
14317 read pseudo-register as well as real register.
14318 (legacy_write_register_gen): Ditto.
14319
8fcc723b
AC
143202002-01-28 Andrew Cagney <ac131313@redhat.com>
14321
14322 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14323 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14324 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14325 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14326 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14327 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14328 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14329 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14330 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14331 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14332 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14333 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14334 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14335 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14336 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14337 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14338 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14339 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14340 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14341 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14342
afe64c1a
AC
143432002-01-28 Andrew Cagney <ac131313@redhat.com>
14344
14345 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14346 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14347 (initialize_current_architecture): Update target_byte_order using
14348 information from BFD.
aaa38bb5 14349 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
14350 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14351
75bc7ddf
AC
143522002-01-28 Andrew Cagney <ac131313@redhat.com>
14353
14354 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14355 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14356
14357 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14358 #ifdef INVALID_FLOAT.
14359 * infcmd.c (do_registers_info): Ditto.
14360 * values.c (unpack_double): Ditto. Add comment.
14361
14362 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14363 already commented out.
14364
0280a90a
AS
143652002-01-26 Andreas Schwab <schwab@suse.de>
14366
14367 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14368 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14369 registers and add support for PTRACE_GETREGS.
14370
7072a954
AC
143712002-01-24 Andrew Cagney <ac131313@redhat.com>
14372
14373 GDB 5.1.1 released from 5.1 branch.
14374 * NEWS: Add 5.1.1 news.
14375 * README: Sync with 5.1 branch.
14376
86f902e0
FF
143772002-01-23 Fred Fish <fnf@redhat.com>
14378
14379 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14380 stabstring on initial malloc. Reallocing will copy it for us,
14381 if necessary.
14382
8af51c36
EZ
143832002-01-23 Elena Zannoni <ezannoni@redhat.com>
14384
aaa38bb5 14385 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
14386 (HFILES_NO_SRCDIR): Remove hpread.h.
14387 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14388 (hpread.o): Update dependencies.
14389 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14390
14391 * hp-psymtab-read.c: Remove file.
14392 * hp-symtab-read.c: Remove file.
14393 * hpread.h: Remove file.
14394
14395 * hpread.c: Merge all contents of hp-psymtab-read.c,
14396 hp-symtab-read.c and hpread.h into this file, as it was prior to
14397 January 1999.
14398
14399 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 14400 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
14401 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14402 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14403
dc5cfeb6
EZ
144042002-01-23 Elena Zannoni <ezannoni@redhat.com>
14405
14406 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14407 fill_gregset): Call gdbarch_tdep() just once, assign result to
14408 variable and use that, instead of calling the function several
14409 times.
14410
ea87b71b
AO
144112002-01-24 Alexandre Oliva <aoliva@redhat.com>
14412
14413 * configure.host: Accept sparcv9 as alias for sparc64.
14414 * configure.tgt: Likewise.
14415
13fc0c2f
KB
144162002-01-22 Kevin Buettner <kevinb@redhat.com>
14417
14418 * solib-aix5.c (build_so_list_from_mapfile)
14419 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14420 arguments is not reversed.
14421 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14422 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 14423
7bd872fe
EZ
144242002-01-22 Elena Zannoni <ezannoni@redhat.com>
14425
14426 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14427 modified version of obsolete sh_fetch_pseudo_register.
14428 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14429 (sh4_register_read): New function.
14430 (sh_pseudo_register_write): New function. Renamed and modified
14431 version of obsolete sh_store_pseudo_register.
14432 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14433 (sh4_register_write): New function.
14434 (sh_gdbarch_init): Remove setting of gdbarch function
14435 fetch_pseudo_register and store_pseudo_register. Remove setting of
14436 register_convert_to_raw, register_convert_to_virtual,
14437 register_convertible.
14438 (sh_sh4_register_convertible): Delete. No longer needed. All is
14439 taken care by architecture specific functions
14440 register_read/register_write.
14441 (sh_sh4_register_convert_to_virtual): Make static.
14442 (sh_sh4_register_convert_to_raw): Ditto.
14443
069e84fd
AC
144442002-01-22 Andrew Cagney <ac131313@redhat.com>
14445
14446 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14447 (floatformat_is_nan, floatformat_mantissa): Ditto.
14448
14449 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14450 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14451 builtin_type_ieee_double_little,
14452 builtin_type_ieee_double_littlebyte_bigword,
14453 builtin_type_m68881_ext, builtin_type_i960_ext,
14454 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14455 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14456 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14457 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14458
211a4f69
CV
144592002-01-22 Corinna Vinschen <vinschen@redhat.com>
14460
14461 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14462 parameter. Set frameless flag if it exists and depended of
14463 whether the scanned function is frameless or not.
14464 (xstormy16_skip_prologue): If function is frameless, return
14465 result of xstormy16_scan_prologue().
14466 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14467 call.
14468
f81353e4
EZ
144692002-01-21 Elena Zannoni <ezannoni@redhat.com>
14470
14471 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14472 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14473 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14474 sh_sh4_register_byte, sh_sh4_register_raw_size,
14475 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14476 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14477 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14478 sh_store_pseudo_register, sh_do_pseudo_register): Call
14479 gdbarch_tdep() just once, assign result to variable and use that,
14480 instead of calling the function several times.
14481
63c73a17
MK
144822002-01-20 Mark Kettenis <kettenis@gnu.org>
14483
14484 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14485 macros instead of LAST_FPU_CTRL_REGNUM.
14486 (store_register): Likewise.
14487
39ad761d
JB
144882002-01-21 Jim Blandy <jimb@redhat.com>
14489
14490 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14491 is up-to-date before running the program, not just when a program
14492 exits.
14493
3d74b771
FF
144942002-01-21 Fred Fish <fnf@redhat.com>
14495
14496 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14497 when we have found all instructions we are looking for.
14498
966fbf70
RE
144992002-01-21 Richard Earnshaw <rearnsha@arm.com>
14500
14501 * arm-tdep.c (arm_register_name): New function.
14502 (arm_registers_names): Make static.
14503 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14504 (arm_register_name): Declare.
14505 (REGISTER_NAME): Use it.
14506
c3b4394c
RE
145072002-01-21 Richard Earnshaw <rearnsha@arm.com>
14508 Kevin Buettner <kevinb@redhat.com>
14509
14510 Convert arm targets to new FRAME interface.
14511 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14512 (arm_frame_find_save_regs): Delete.
14513 (arm_frame_init_saved_regs): New.
14514 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14515 Allocate extra_info as required. Convert all uses of fsr.regs
14516 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14517 to use extra_info.
14518 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14519 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14520 (check_prologue_cache, save_prologue_cache): Likewise.
14521 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14522 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14523 (FRAME_FIND_SAVED_REGS): Delete.
14524 (arm_frame_find_saved_regs): Delete prototype.
14525 (arm_frame_init_saved_regs): New prototype.
14526 (FRAME_INIT_SAVED_REGS): Define.
14527
61d99182
AC
145282002-01-20 Andrew Cagney <ac131313@redhat.com>
14529
14530 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14531
6aaea291
AC
145322002-01-20 Andrew Cagney <ac131313@redhat.com>
14533
14534 From Jeff Law <law@redhat.com>:
14535 * infttrace.c: Include <sys/pstat.h>.
14536 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14537 exec file if the ttrace equivalent fails.
14538
15f698d2
AC
145392002-01-20 Andrew Cagney <ac131313@redhat.com>
14540
14541 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14542 (closeLogFile): Ditto.
14543
f86ddd7c
MC
145442002-01-20 Michael Chastain <mec@shout.net>
14545
14546 * top.c (print_gdb_version): Bump copyright year to 2002.
14547
904507ce
AC
145482002-01-20 Andrew Cagney <ac131313@redhat.com>
14549
14550 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14551 Zannoni and Eli Zaretskii.
14552
d7f0b9ce
DJ
145532002-01-20 Daniel Jacobowitz <drow@mvista.com>
14554
14555 * buildsym.c: Update copyright years.
14556 * c-typeprint.c: Likewise.
14557 * dwarf2read.c: Likewise.
14558 * f-typeprint.c: Likewise.
14559 * gdbtypes.c: Likewise.
14560 * gdbtypes.h: Likewise.
14561 * hp-symtab-read.c: Likewise.
14562 * hpread.c: Likewise.
14563 * mdebugread.c: Likewise.
14564 * p-typeprint.c: Likewise.
14565
3fd3d7d2
AC
145662002-01-20 Andrew Cagney <ac131313@redhat.com>
14567
14568 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14569 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14570 byte-order selectable.
14571 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14572 * arch-utils.c: Ditto.
14573 (set_endian): Ditto.
14574 (set_endian_from_file): Ditto.
14575 * gdbserver/low-sim.c (create_inferior): Ditto.
14576 * gdbarch.sh: Ditto.
14577 * gdbarch.h: Re-generate.
aaa38bb5
AJ
14578 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14579 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14580 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14581 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14582 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14583 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14584 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
14585 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14586 macro definition.
14587 * config/mips/tm-wince.h: Remove #undef of macro
14588 TARGET_BYTE_ORDER_SELECTABLE.
14589 * config/sh/tm-wince.h: Ditto.
14590
b02dede2
DJ
145912002-01-20 Daniel Jacobowitz <drow@mvista.com>
14592
14593 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14594 member function fields. Add accessor macro
14595 TYPE_FN_FIELD_ARTIFICIAL.
14596 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14597 * c-typeprint.c (c_type_print_base): Skip artificial member
14598 functions.
14599
c3643761
DJ
146002002-01-20 Daniel Jacobowitz <drow@mvista.com>
14601
14602 * f-typeprint.c: Delete unused function f_type_print_args.
14603 * p-typeprint.c: Delete unused function pascal_type_print_args.
14604
8176bb6d
DJ
146052002-01-20 Daniel Jacobowitz <drow@mvista.com>
14606
14607 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14608 comment. Add ``artificial'' to ``union field_location''.
14609
14610 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14611
14612 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14613 * mdebugread.c (parse_symbol): Likewise.
14614 * stabsread.c (define_symbol): Likewise.
14615 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14616 initializing TYPE_FIELD_BITPOS to n (obsolete).
14617 (hpread_doc_function_type): Likewise.
14618 * hpread.c (hpread_function_type): Likewise.
14619
7fd60527
AC
146202002-01-20 Andrew Cagney <ac131313@redhat.com>
14621
14622 * configure.in (host_makefile_frag): Only require a host makefile
14623 fragment when a native build.
14624 * configure: Re-generate.
14625
c2f05ac9
AC
146262002-01-20 Andrew Cagney <ac131313@redhat.com>
14627
14628 * doublest.h (floatformat_from_type): Declare.
14629 * doublest.c (floatformat_from_type): New function.
14630 (convert_typed_floating): Use.
14631
14632 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14633 call to function floatformat_from_type.
14634
14635 * gdbarch.sh (IEEE_FLOAT): Delete.
14636 * gdbarch.h, gdbarch.c: Re-generate.
14637 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14638 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14639 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14640 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14641 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14642 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14643 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14644 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14645 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14646 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14647 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
14648 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14649
14650 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14651 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14652 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14653 * sh-tdep.c (sh_gdbarch_init): Ditto.
14654 * mips-tdep.c (mips_gdbarch_init): Ditto.
14655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14656 * cris-tdep.c (cris_gdbarch_init): Ditto.
14657
abf22e64
AJ
146582002-01-20 Jiri Smid <smid@suse.cz>
14659
14660 * configure.host, configure.tgt: Support x86-64.
14661 * NEWS: Note new target x86-64.
14662
b7c4cbf8
AJ
14663 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14664 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14665 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14666 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14667 x86-64-linux-nat.o): Fix dependencies.
14668
82600034
AC
146692002-01-19 Andrew Cagney <ac131313@redhat.com>
14670
14671 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14672 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14673 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14674 * config/sparc/xm-sun4os4.h: Delete file.
14675 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 14676
bbe5c628
AC
146772002-01-19 Andrew Cagney <ac131313@redhat.com>
14678
14679 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14680 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14681 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14682 * config/i386/i386lynx.mh (XM_FILE): Delete.
14683 * config/rs6000/xm-rs6000ly.h: Delete file.
14684 * config/sparc/xm-sparclynx.h: Delete file.
14685 * config/m68k/xm-m68klynx.h: Delete file.
14686 * config/i386/xm-i386lynx.h: Delete file.
14687 * config/xm-lynx.h: Delete file.
14688 * config/djgpp/fnchange.lst: Update.
14689
f8453e34
JT
146902002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14691
14692 * alpha-tdep.c (alpha_register_byte): New function.
14693 (alpha_register_raw_size): Ditto.
14694 (alpha_register_virtual_size): Ditto.
14695 (alpha_skip_prologue_internal): Renamed from
14696 alpha_skip_prologue.
14697 (alpha_skip_prologue): New version that calls
14698 alpha_skip_prologue_internal.
14699 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14700 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14701 second argument from alpha_skip_prologue.
14702 (REGISTER_BYTE): Use alpha_register_byte.
14703 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14704 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14705 (FRAMELESS_FUNCTION_INVOCATION): Use
14706 generic_frameless_function_invocation_not.
14707 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14708 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14709
52d9e613
AC
147102002-01-19 Andrew Cagney <ac131313@redhat.com>
14711
14712 * config/mips/xm-news-mips.h: Delete file.
14713 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14714
14715 * config/m88k/xm-m88k.h: Delete file.
14716 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14717 * config/m88k/xm-delta88v4.h: Ditto.
14718 * config/m88k/xm-delta88.h: Ditto.
14719
14720 * config/alpha/xm-fbsd.h: Delete file.
14721 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14722
14723 * config/sparc/xm-sparc.h: Delete file.
14724 * Makefile.in (xm-sun4os4.h): Delete dependency.
14725 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14726 * config/sparc/xm-sun4os4.h: Ditto.
14727 * config/sparc/xm-linux.h: Ditto.
14728
14729 * config/i386/xm-windows.h: Delete file.
14730
2d1b2124
AC
147312002-01-19 Andrew Cagney <ac131313@redhat.com>
14732
14733 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14734 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14735
ee1f65f0
JT
147362002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14737
14738 * alpha-tdep.c (alpha_call_dummy_words): New.
14739 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14740 (CALL_DUMMY_P): Define.
14741 (CALL_DUMMY_WORDS): Define.
14742 (SIZEOF_CALL_DUMMY_WORDS): Define.
14743
98081e55
PB
147442002-01-19 Per Bothner <per@bothner.com>
14745
14746 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14747 isn't NULL, which can happen with some gcj-3.x-produced code.
14748
0d056799
JT
147492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14750
14751 * alpha-tdep.c (alpha_register_virtual_type): New function.
14752 (alpha_init_frame_pc_first): Ditto.
14753 (alpha_fix_call_dummy): Ditto.
14754 (alpha_store_struct_return): Ditto.
14755 (alpha_extract_struct_value_address): Ditto.
14756 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14757 alpha_register_virtual_type.
14758 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14759 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14760 alpha_extract_struct_value_address.
14761 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14762 (INIT_FRAME_PC): Use init_frame_pc_noop.
14763 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14764
4604bcad
MK
147652002-01-19 Mark Kettenis <kettenis@gnu.org>
14766
14767 * i386gnu-nat.c: Include "i386-tdep.h".
14768 (fetch_fpregs): Simplify code dealing with uninitialized floating
14769 point states such that it doesn't require FP7_REGNUM.
14770
140f9984
JT
147712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14772
abf22e64
AJ
14773 * alpha-tdep.c (frame_extra_info): New.
14774 (alpha_find_saved_regs): Make static. Use
140f9984
JT
14775 frame->extra_info.
14776 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
14777 (alpha_frame_saved_pc): Use frame->extra_info.
14778 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14779 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
14780 (init_extra_frame_info): Rename to...
14781 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 14782 (alpha_print_extra_frame_info): New function.
140f9984
JT
14783 (alpha_frame_locals_address): Ditto.
14784 (alpha_frame_args_address): Ditto.
abf22e64 14785 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
14786 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14787 alpha_frame_args_address.
abf22e64 14788 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 14789 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
14790 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14791 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
14792 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14793 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14794
d734c450
JT
147952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14796
14797 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14798 (alpha_cannot_fetch_register): Ditto.
14799 (alpha_cannot_store_register): Ditto.
14800 (alpha_register_convertible): Ditto.
14801 (alpha_use_struct_convention): Ditto.
14802 * config/alpha/tm-alpha.h: Update copyright years.
14803 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14804 (INNER_THAN): Use core_addr_lessthan.
14805 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14806 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14807 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14808 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14809 (FRAME_CHAIN): Remove unnecessary cast.
14810
b4ceaee6
AC
148112002-01-18 Andrew Cagney <ac131313@redhat.com>
14812
14813 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14814 obsolete.
14815
0a65a603
AC
148162002-01-18 Andrew Cagney <ac131313@redhat.com>
14817
14818 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14819 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14820 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14821 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14822 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14823 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14824 * x86-64-linux-nat.c: Ditto.
14825
636a6dfc
JT
148262002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14827
abf22e64 14828 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14829 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14830 (REGISTER_NAME): Define.
14831
acceddb6
JT
148322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14833
14834 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14835
ec32e4be
JT
148362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14837
14838 * alpha-tdep.c: Update copyright years.
14839 (alpha_next_pc): New function.
14840 (alpha_software_single_step): Ditto.
14841 * config/alpha/tm-alpha.h: Add prototype for
14842 alpha_software_single_step.
14843
e771a871
JT
148442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14845
14846 * alphabsd-nat.c: Update copyright years.
14847 (fill_gregset): Use regcache_collect.
14848 (fill_fpregset): Likewise.
14849 (fetch_inferior_registers): Only fetch integer registers
14850 if requested to do so.
14851 (store_inferior_registers): Only store integer registers
14852 if requested to do so.
14853
7708fa01
AC
148542002-01-17 Andrew Cagney <ac131313@redhat.com>
14855
14856 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14857 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14858 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14859 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14860 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14861 * config/arm/linux.mh (XDEPFILES): Delete.
14862 * config/arm/nbsd.mh (XDEPFILES): Delete.
14863 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14864 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14865 * config/i386/i386m3.mh (XDEPFILES): Delete.
14866 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14867 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14868 * config/i386/fbsd.mh (XDEPFILES): Delete.
14869 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14870 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14871 * config/i386/i386v4.mh (XDEPFILES): Delete.
14872 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14873 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14874 * config/i386/i386aix.mh (XDEPFILES): Delete.
14875 * config/i386/go32.mh (XDEPFILES): Delete.
14876 * config/i386/cygwin.mh (XDEPFILES): Delete.
14877 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14878 * config/i386/i386mach.mh (XDEPFILES): Delete.
14879 * config/i386/i386v32.mh (XDEPFILES): Delete.
14880 * config/i386/linux.mh (XDEPFILES): Delete.
14881 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14882 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14883 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14884 * config/i386/i386sco.mh (XDEPFILES): Delete.
14885 * config/i386/i386v.mh (XDEPFILES): Delete.
14886 * config/i386/nbsd.mh (XDEPFILES): Delete.
14887 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14888 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14889 * config/i386/symmetry.mh (XDEPFILES): Delete.
14890 * config/i386/obsd.mh (XDEPFILES): Delete.
14891 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14892 * config/ia64/linux.mh (XDEPFILES): Delete.
14893 * config/ia64/aix.mh (XDEPFILES): Delete.
14894 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14895 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14896 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14897 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14898 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14899 * config/m68k/linux.mh (XDEPFILES): Delete.
14900 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14901 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14902 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14903 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14904 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14905 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14906 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14907 * config/m88k/delta88.mh (XDEPFILES): Delete.
14908 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14909 * config/m88k/m88k.mh (XDEPFILES): Delete.
14910 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14911 * config/mips/linux.mh (XDEPFILES): Delete.
14912 * config/mips/irix6.mh (XDEPFILES): Delete.
14913 * config/mips/irix5.mh (XDEPFILES): Delete.
14914 * config/mips/irix4.mh (XDEPFILES): Delete.
14915 * config/mips/irix3.mh (XDEPFILES): Delete.
14916 * config/mips/decstation.mh (XDEPFILES): Delete.
14917 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14918 (NATDEPFILES): Move core-aout.o to here.
14919 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14920 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14921 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14922 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14923 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14924 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14925 * config/pa/hpux11.mh (XDEPFILES): Delete.
14926 * config/powerpc/aix.mh (XDEPFILES): Delete.
14927 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14928 * config/powerpc/linux.mh (XDEPFILES): Delete.
14929 * config/romp/rtbsd.mh: Rename XDEPFILES.
14930 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14931 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14932 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14933 * config/s390/s390.mh (XDEPFILES): Delete.
14934 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14935 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14936 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14937 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14938 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14939 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14940 * config/sparc/linux.mh (XDEPFILES): Delete.
14941 * config/vax/vaxult.mh (XDEPFILES): Delete.
14942 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14943 * Makefile.in (DEPFILES): Remove XDEPFILES.
14944
375fc983
AC
149452002-01-17 Andrew Cagney <ac131313@redhat.com>
14946
14947 * utils.c (internal_verror): Fix comments, default is yes not no.
14948 Update queries to match. Default to quit and dump core.
14949
8926118c
AC
149502002-01-17 Andrew Cagney <ac131313@redhat.com>
14951
14952 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14953 copyright.
14954 * defs.h, event-top.c, gdbcmd.h: Ditto.
14955 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14956 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14957 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14958 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14959 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14960 * mi/mi-main.c:Ditto.
14961
14962 * stack.c, symfile.c: Update copyright.
14963
45b7b345
DJ
149642002-01-17 Daniel Jacobowitz <drow@mvista.com>
14965
db728ff7
DJ
14966 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14967 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14968 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14969 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14970
db728ff7
DJ
149712002-01-17 Daniel Jacobowitz <drow@mvista.com>
14972
14973 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14974 * gdbserver/low-lynx.c (myattach): Likewise.
14975 * gdbserver/low-nbsd.c (myattach): Likewise.
14976 * gdbserver/low-sim.c (myattach): Likewise.
14977 * gdbserver/low-sparc.c (myattach): Likewise.
14978 * gdbserver/low-sun3.c (myattach): Likewise.
14979
14980 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14981
db728ff7 14982 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14983 (main): Handle "--attach".
14984
8de3c354
AC
149852002-01-16 Andrew Cagney <ac131313@redhat.com>
14986
14987 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14988 maintainer.
14989
b0129042
DJ
149902002-01-15 Daniel Jacobowitz <drow@mvista.com>
14991
14992 * c-typeprint.c (is_type_conversion_operator): Add additional
14993 check for non-conversion operators.
14994
ba8679fb 149952002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14996
14997 * linux-proc.c: Add "info proc" command, a la procfs.c.
14998 (read_mapping): New function, abstract and re-use code.
14999 (linux_find_memory_regions): Use new func read_mapping.
15000 (linux_info_proc_cmd): New function, implement "info proc".
15001 (_initialize_linux_proc): Add new command "info proc".
15002
e4f9b4d5
MS
150032002-01-15 Michael Snyder <msnyder@redhat.com>
15004
15005 * symfile.c (generic_load): Use bfd_map_over_sections method
15006 instead of manipulating bfd structure members directly.
15007 (add_section_size_callback): New function, bfd sections callback
15008 used by generic_load.
15009 (load_sections_callback): New function, bfd sections callback
15010 used by generic_load.
15011
08cf96df
EZ
150122002-01-15 Elena Zannoni <ezannoni@redhat.com>
15013
abf22e64 15014 [Based on work by Jim Blandy]
08cf96df
EZ
15015 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15016 (builtin_type_vec128): Export.
15017 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15018 types.
15019 (builtin_type_vec128): New builtin type for 128 bit vector
15020 registers.
15021 (build_gdbtypes): Initialize builtin_type_v16qi and
15022 builtin_type_v8hi. Create the vec128 register builtin type
15023 structure.
15024 (build_builtin_type_vec128): New function.
abf22e64 15025 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
15026 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15027 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15028 AltiVec register to new builtin type.
15029
d7242108
DJ
150302001-01-15 Daniel Jacobowitz <drow@mvista.com>
15031
15032 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15033 to make_cv_type.
15034
4ee3352d
AC
150352002-01-14 Andrew Cagney <ac131313@redhat.com>
15036
15037 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15038 CLEAN_UP_REGISTER_VALUE.
15039 * regcache.c (supply_register): Update only call.
15040
f015b2e7
AC
150412002-01-14 Andrew Cagney <ac131313@redhat.com>
15042
15043 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15044 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15045 a29k-*-vxworks* targets as obsolete.
15046
356ae49d
MS
150472002-01-14 Michael Snyder <msnyder@redhat.com>
15048
15049 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15050 until we can resolve portability issues.
15051 * gregset.h: Remove references to fpxregs.
15052 * gcore.c (gcore_command): Initialize note_sec to NULL.
15053
ade8f45e
AC
150542002-01-13 Andrew Cagney <ac131313@redhat.com>
15055
15056 * signals.c (target_signal_to_name): Rewrite. Only use
15057 signals[].name when in bounds and non-NULL.
abf22e64 15058
89c49e7a
AC
150592002-01-13 Andrew Cagney <ac131313@redhat.com>
15060
15061 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15062 * signals.c (target_signal_to_name): Verify that SIG is within the
15063 bounds of the signals array.
15064
4daa9f9f
AC
150652002-01-13 Andrew Cagney <ac131313@redhat.com>
15066
15067 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15068
ba4bbdcb
KS
150692002-01-13 Keith Seitz <keiths@redhat.com>
15070
15071 * stack.c (print_frame_info_base): Print the frame's pc
15072 only if when print_frame_info_listing_hook is not defined.
15073
575bbeb6
KS
150742002-01-13 Keith Seitz <keiths@redhat.com>
15075
15076 * varobj.c (varobj_set_value): Make sure that there were no
15077 errors evaluating the object before attempting to set its
15078 value.
15079 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15080 so this offset adjustment is no longer necessary.
15081 (create_child): Don't set the error flag if the child is
15082 a CPLUS_FAKE_CHILD.
15083 (value_of_child): If value_fetch_lazy fails, return NULL
15084 so that callers will be notified that an error occurred.
15085 (c_value_of_variable): Delay check of variable's validity
15086 until later. We actually want all structs and unions to have
15087 the value "{...}".
15088 Do not return "???" for variables which could not be evaluated.
15089 This error condition must be returned to the caller so that it
15090 can get the error condition from gdb.
15091 (cplus_name_of_child): Adjust index for vptr before figuring
15092 out the name of the child.
15093 (cplus_value_of_child): If a child's (real) parent is not valid,
15094 don't even bother trying to give a value for it. Just return
15095 an error. Change all instances in this function.
15096 (cplus_type_of_child): If our parent is one of the "fake"
15097 parents, we need to get at the type of the real parent, and
15098 derive the child's true type using this information.
15099
b76898ab
AC
151002002-01-13 Andrew Cagney <ac131313@redhat.com>
15101
15102 From 2002-01-09 John Marshall <johnm@falch.net>:
15103 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15104 sources.redhat.com, and tweak some related URLs which had
15105 suffered from linkrot.
15106
b6649e88
AC
151072002-01-13 Andrew Cagney <ac131313@redhat.com>
15108
15109 From Jeff law:
15110 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15111 structures passed in registers.
15112
82cc5033
EZ
151132002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15114
15115 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15116 white space which prevented compilation. Reported by DSK
15117 <dsk@student.unsw.edu.au>.
15118
ba5f2f8a
MS
151192002-01-11 Michael Snyder <msnyder@redhat.com>
15120
fbd35540
MS
15121 * symfile.c (build_section_addr_info_from_section_tab):
15122 Use bfd access method instead of manipulating bfd directly.
15123 (syms_from_objfile): Ditto.
15124 (simple_overlay_update_1): Ditto.
15125 (simple_overlay_update): Ditto.
15126 (generic_load): Ditto.
15127 (overlay_unmapped_address): FIXME comment, bfd access methods.
15128 (sections_overlap): FIXME comment, bfd access methods.
15129 (pc_in_mapped_range): FIXME comment, bfd access methods.
15130 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15131 (section_is_mapped): FIXME comment, bfd access methods.
15132 (section_is_overlay): FIXME comment, bfd access methods.
15133
ba5f2f8a
MS
15134 * symfile.c (generic_load): Whitespace and long line cleanups.
15135 Remove duplicate variable, change several local variables to
15136 more appropriate data types.
15137 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15138
17df2af6
AC
151392002-01-12 Andrew Cagney <ac131313@redhat.com>
15140
15141 From Peter Schauer:
15142 * language.c (longest_local_hex_string_custom): Use phex_nz to
15143 convert NUM to a hex string.
15144
ec920329
EZ
151452002-01-12 Elena Zannoni <ezannoni@redhat.com>
15146
15147 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15148 the function.
538a76d6 15149 Update Copyright year.
ec920329 15150
3abd2e01
AC
151512002-01-12 Andrew Cagney <ac131313@redhat.com>
15152
15153 * language.c (longest_raw_hex_string): Delete unused function.
15154
b21b22e0
PS
151552002-01-11 Petr Sorfa <petrs@caldera.com>
15156
15157 * MAINTAINERS (write-after-approval): Add myself.
15158 * dwarf2read.c (read_tag_string_type): Handling of
15159 DW_AT_byte_size.
15160 (read_tag_string_type): FORTRAN fix to prevent propagation of
15161 first string size.
15162 (set_cu_language): Handling of DW_LANG_Fortran95
15163
747fe712
RE
151642002-01-11 Richard Earnshaw <rearnsha@arm.com>
15165
15166 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15167 GETPID(inferior_ptid).
15168 (store_inferior_registers): Likewise.
15169
f1bea926
JM
151702002-01-10 Jason Merrill <jason@redhat.com>
15171
15172 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15173 Fix DW_OP_minus.
15174
ae940673
AC
151752002-01-10 Andrew Cagney <ac131313@redhat.com>
15176
15177 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15178 and bfd/elf32-sh-nbsd.c.
15179
00546b04
MS
151802002-01-10 Michael Snyder <msnyder@redhat.com>
15181
352ed7b4
MS
15182 * NEWS: Mention --pid and corefile/proc-id behavior change.
15183
c18be923
MS
15184 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15185 * gcore.c: Include cli/cli-decode.h instead of command.h.
15186
00546b04
MS
15187 * main.c (captured_main): Add new command line option "--pid".
15188 If the second command line argument (following the symbol-file)
15189 begins with a digit, try to attach to it before trying to open
15190 it as a corefile.
15191 (print_gdb_help): Document the "--pid" argument.
15192
db60ec62
EZ
151932002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15194
15195 * completer.c (command_completer): New function.
15196
15197 * completer.h <command_completer>: Add prototype.
15198
15199 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15200 completer for the "help" command.
15201
39c22d1a
JM
152022002-01-09 Jason Merrill <jason@redhat.com>
15203
15204 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15205
c564377f
MS
152062002-01-09 Michael Snyder <msnyder@redhat.com>
15207
975aec09
MS
15208 * i386-linux-nat.c (fill_fpxregset): Make global.
15209 (store_fpxregset): Ditto.
15210
db4a10fa
MS
15211 * gregset.h (gdb_fpxregset_t): Define.
15212 (supply_fpxregset): Prototype.
15213 (fill_fpxregset): Prototype.
15214
c564377f
MS
15215 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15216
c3d45d70
RE
152172002-01-09 Richard Earnshaw <rearnsha@arm.com>
15218
15219 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15220 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15221 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15222
fcc87af1
AC
152232002-01-09 Andrew Cagney <ac131313@redhat.com>
15224
15225 * MAINTAINERS: Update target maintainer rules so that any
15226 Maintainer can approve a tested patch for a maintenance-only
15227 target.
15228
dd96c05b
RE
152292002-01-09 Richard Earnshaw <rearnsha@arm.com>
15230
d4297db9 15231 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 15232
d4297db9 15233 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
15234 IN_SIGTRAMP.
15235
145fdc6e
MS
152362002-01-08 Michael Snyder <msnyder@redhat.com>
15237
15238 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15239 real name of the executable, rather than the /proc name.
15240
be4d1333
MS
152412002-01-03 Michael Snyder <msnyder@redhat.com>
15242
15243 Implement a "generate-core-file" command in gdb, save target state.
15244 * gcore.c: New file. Implement new command 'generate-core-file'.
15245 Save a corefile image of the current state of the inferior.
15246 * linux-proc.c: Add linux-specific code for saving corefiles.
15247 * target.h (struct target_ops): Add new target vectors for saving
15248 corefiles; to_find_memory_regions and to_make_corefile_notes.
15249 (target_find_memory_regions): New macro.
15250 (target_make_corefile_notes): New macro.
15251 * target.c (update_current_target): Inherit new target methods.
15252 (dummy_find_memory_regions): New place-holder method.
15253 (dummy_make_corefile_notes): New place-holder method.
15254 (init_dummy_target): Initialize new dummy target vectors.
15255 * exec.c (exec_set_find_memory_regions): New function.
15256 Allow the exec_ops vector for memory regions to be taken over.
15257 (exec_make_note_section): New function, target vector method.
15258 * defs.h (exec_set_find_memory_regions): Export prototype.
15259 * procfs.c (proc_find_memory_regions): New function, corefile method.
15260 (procfs_make_note_section): New function, corefile method.
15261 (init_procfs_ops): Set new target vector pointers.
15262 (find_memory_regions_callback): New function.
15263 (procfs_do_thread_registers): New function.
15264 (procfs_corefile_thread_callback): New function.
15265 * sol-thread.c (sol_find_memory_regions): New function.
15266 (sol_make_note_section): New function.
15267 (init_sol_thread_ops): Initialize new target vectors.
15268 * inftarg.c (inftarg_set_find_memory_regions): New function.
15269 Allow to_find_memory_regions vector to be taken over.
15270 (inftarg_set_make_corefile_notes): New function.
15271 Allow to_make_corefile_notes vector to be taken over.
15272 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15273 interface layer if not target_has_execution (may be a corefile).
15274 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15275 * config/sparc/sun4sol2.mh: Ditto.
15276 * config/alpha/alpha-linux.mh: Ditto.
15277 * config/arm/linux.mh: Ditto.
15278 * config/i386/x86-64linux.mh: Ditto.
15279 * config/ia64/linux.mh: Ditto.
15280 * config/m68k/linux.mh: Ditto.
15281 * config/mips/linux.mh: Ditto.
15282 * config/powerpc/linux.mh: Ditto.
15283 * config/sparc/linux.mh: Ditto.
15284
c6b92abd
MS
152852002-01-07 Michael Snyder <msnyder@redhat.com>
15286
15287 * arm-linux-nat.c: Remove references to regcache.c internal data
15288 (registers[] and register_valid[]).
15289
4b09dc8c
MS
152902002-01-07 Michael Snyder <msnyder@redhat.com>
15291
abf22e64
AJ
15292 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15293 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
15294 symbol file and shlibs.
15295 * Makefile.in: Add rule for linux-proc.o.
15296 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15297 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15298 * config/arm/linux.mh: Ditto.
15299 * config/i386/linux.mh: Ditto.
15300 * config/i386/x86-64linux.mh: Ditto.
15301 * config/ia64/linux.mh: Ditto.
15302 * config/m68k/linux.mh: Ditto.
15303 * config/mips/linux.mh: Ditto.
15304 * config/powerpc/linux.mh: Ditto.
15305 * config/sparc/linux.mh: Ditto.
15306
c25b74ac
PM
153072002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15308
15309 * win32-nat.c: Add i386-tdep.h dependency.
15310
94cd915f
MS
153112002-01-07 Michael Snyder <msnyder@redhat.com>
15312
c7cccb76
MS
15313 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15314 instead of bfd_get_arch_size. Don't bail out just because
15315 there's no exec_bfd.
abf22e64 15316
34c0bd93
MS
15317 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15318 * p-valprint.c (pascal_object_print_value): Ditto.
15319 * somread.c (som_symtab_read): Ditto.
15320 * symfile.c (simple_free_overlay_region_table): Ditto.
15321 * valops.c (value_assign): Ditto.
15322
21c1c920
MS
15323 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15324 use tilde_expand and strerror for opening save-tracepoints file.
15325
5bbd998e
MS
15326 * thread-db.c (thread_db_new_objfile): Indendation fix.
15327
94cd915f
MS
15328 * infptrace.c (GDB_MAX_ALLOCA): New define.
15329 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 15330 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
15331 can be overridden with whatever value is appropriate to the host).
15332 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15333 alloca to allocate potentially large buffer.
15334 * rs6000-nat.c (child_xfer_memory): Ditto.
15335 * symm-nat.c (child_xfer_memory): Ditto.
15336 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15337
494e8a93
JSC
153382002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15339
15340 From Nick Clifton <nickc@redhat.com>
15341 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15342
d0e1d48e
MS
153432002-01-07 Michael Snyder <msnyder@redhat.com>
15344
abf22e64 15345 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
15346 Don't use exec_bfd if it's NULL.
15347
290b2c7a
MK
153482002-01-06 Mark Kettenis <kettenis@gnu.org>
15349
abf22e64 15350 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 15351
aef21287
AC
153522002-01-06 Andrew Cagney <ac131313@redhat.com>
15353
15354 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15355 * gnu-nat.c: Ditto.
15356
30efa627
AC
153572002-01-06 Andrew Cagney <ac131313@redhat.com>
15358
15359 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15360 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15361 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15362 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15363 z8k-coff have not been multi-arched. Update z8k-coff build
15364 status.
15365
9b4ff276
AC
153662002-01-06 Andrew Cagney <ac131313@redhat.com>
15367
15368 * MAINTAINERS: Mark a29k target as obsolete.
15369 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15370 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15371 comments.
15372 * NEWS: Note that a29k targets are obsolete.
15373 * a29k-tdep.c: Mark as obsolete.
15374 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15375 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15376 a29k-*-vxworks* targets as obsolete.
15377 * remote-adapt.c: Obsolete.
15378 * remote-eb.c: Obsolete.
15379 * remote-mm.c: Obsolete.
15380 * remote-udi.c: Obsolete.
15381 * config/a29k/a29k-udi.mt: Obsolete.
15382 * config/a29k/a29k.mt: Obsolete.
15383 * config/a29k/tm-a29k.h: Obsolete.
15384 * config/a29k/tm-vx29k.h: Obsolete.
15385 * config/a29k/vx29k.mt: Obsolete.
15386
a9011d31
AC
153872002-01-05 Andrew Cagney <ac131313@redhat.com>
15388
15389 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15390 with BFD_ENDIAN_BIG.
15391
9299404e
AC
153922002-01-05 Andrew Cagney <ac131313@redhat.com>
15393
15394 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15395 * configure, config.in: Re-generate.
15396 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15397 * defs.h: Do not include <endian.h>.
15398
7e89e357
JT
153992002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15400
15401 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15402 * config.in: Regenerate.
15403 * configure.in: Update copyright years.
15404 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15405 * configure: Regenerate.
15406 * i386bsd-nat.c: Update copyright years.
15407 (fill_gregset): Use regcache_collect.
15408 (fetch_inferior_registers): Only fetch integer registers
15409 if requested to do so. Add support for XMM registers
15410 using PT_GETXMMREGS.
15411 (store_inferior_registers): Only store integer registers
15412 if requested to do so. Add support for XMM registers
15413 using PT_SETXMMREGS.
15414 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15415 (store_inferior_registers): Remove.
15416 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15417 (fetch_elfcore_registers): New function.
15418 (i386nbsd_elfcore_fns): New.
15419 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15420 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15421 i386bsd-nat.o.
15422 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15423 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15424 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15425 * config/i386/tm-nbsd.h: Update copyright years.
15426 (HAVE_SSE_REGS): Define.
15427 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15428 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15429 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15430 (SIGCONTEXT_PC_OFFSET): Remove.
15431 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15432
a752853e
AC
154332002-01-05 Andrew Cagney <ac131313@redhat.com>
15434
15435 * configure.tgt: Remove powerpc-*-macos* target.
15436 * config/m68k/xm-mpw.h: Delete file.
15437 * config/xm-mpw.h: Delete file.
15438 * ser-mac.c: Delete file.
15439 * mpw-make.sed: Delete file.
15440 * mpw-config.in: Delete file.
15441 * mac-xdep.c: Delete file.
15442 * mac-gdb.r: Delete file.
15443 * mac-defs.h: Delete file.
15444 * mac-nat.c: Delete file.
15445 * config/powerpc/macos.mh: Delete file.
15446 * config/powerpc/macos.mt: Delete file.
15447 * config/powerpc/nm-macos.h: Delete file.
15448 * config/powerpc/tm-macos.h: Delete file.
15449 * source.c (openp, open_source_file): Remove obsolete code.
15450 * top.c (gdb_readline): Ditto.
15451 * utils.c (query): Ditto.
15452 * event-top.c (display_gdb_prompt): Ditto.
15453 * Makefile.in (ser-mac.o): Delete obsolete target.
15454 * NEWS: Update.
15455
d7449b42
AC
154562002-01-04 Andrew Cagney <ac131313@redhat.com>
15457
15458 * defs.h (BIG_ENDIAN): Delete macro definition.
15459 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15460 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15461 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15462 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15463 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15464 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15465 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15466 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15467 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15468 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15469 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15470 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15471 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15472 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15473 * gdbarch.c: Re-generate.
15474
356374e8
DJ
154752002-01-04 Daniel Jacobowitz <drow@mvista.com>
15476
15477 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15478 for core files.
15479
a2b8f8f8
JT
154802002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15481
15482 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15483
12466af9
AC
154842002-01-04 Andrew Cagney <ac131313@redhat.com>
15485
15486 * value.h (value_ptr): Delete typedef.
15487
3549ab40
JT
154882002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15489
15490 * i386nbsd-nat.c: Update copyright years.
15491 Include i386-tdep.h.
15492
fedbd091
EZ
154932002-01-04 Elena Zannoni <ezannoni@redhat.com>
15494
15495 * stabsread.c: Update copyright years.
15496
15497 From Debashis Mahata <debashis.mahata@wipro.com>:
15498 (read_struct_fields): Deal with Sun C compiler erroneous stab
15499 output for structs and unions.
fec8b34f 15500 Fix PR gdb/269.
fedbd091 15501
eb43544b
DJ
155022002-01-04 Daniel Jacobowitz <drow@mvista.com>
15503
15504 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15505 prototype.
15506
1514d34e
DJ
155072002-01-04 Daniel Jacobowitz <drow@mvista.com>
15508
15509 * cp-abi.c: Fix whitespace.
15510 (baseclass_offset): New wrapper function.
15511 * cp-abi.h (baseclass_offset): Add prototype.
15512 (struct cp_abi_ops): Add baseclass_offset pointer.
15513
15514 * valops.c (vb_match): Move to...
15515 * gnu-v2-abi.c (vb_match): here.
15516 * valops.c (baseclass_offset): Move to...
15517 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15518
15519 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15520
15521 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15522 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15523 * hpacc-abi.c (init_hpacc_ops): Likewise.
15524
7f8c9282
DJ
155252002-01-04 Daniel Jacobowitz <drow@mvista.com>
15526
15527 * valops.c (find_overload_match): Accept obj as a
15528 reference parameter. Update it before returning.
15529 * value.h (find_overload_match): Update prototype.
15530 * eval.c (evaluate_subexp_standard): Pass object to
15531 find_overload_match by reference.
15532
f23631e4
AC
155332002-01-03 Andrew Cagney <ac131313@redhat.com>
15534
15535 * valarith.c: Replace value_ptr with struct value pointer. Remove
15536 register attribute from value declarations.
15537 * valops.c: Ditto.
15538 * value.h: Ditto.
15539 * scm-lang.c (scm_lookup_name): Ditto.
15540
79e10fab 155412002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 15542
79e10fab
AC
15543 Abstract the functionality of iterating over mapped memory
15544 regions into a general purpose iterator function.
abf22e64 15545 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
15546 iterator for memory sections.
15547 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15548 (solib_mappings_callback): New function, callback for above.
15549 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15550 (info_mappings_callback): New function, callback for above.
15551
15552 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15553
c5ad026a
MK
155542002-01-01 Mark Kettenis <kettenis@gnu.org>
15555
d2a7c97a
MK
15556 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15557 * i386-tdep.c: Include "elf-bfd.h".
15558 (process_note_abi_tag_sections): New function.
15559 (i386_gdbarch_init): Add code to recognize various OS/ABI
15560 combinations.
15561
c5ad026a
MK
15562 * maint.c (_initialize_maint_cmds): Add missing \ in
15563 string-literal.
15564
a1a5b71e 15565For older changes see ChangeLog-2001
c906108c
SS
15566\f
15567Local Variables:
15568mode: change-log
15569left-margin: 8
15570fill-column: 74
15571version-control: never
15572End:
This page took 1.069402 seconds and 4 git commands to generate.