* lin-lwp.c (child_wait): Ignore exit statuses for processes other
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
2
3 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
4 than inferior_ptid.
5 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6
7 2003-01-09 Andrew Cagney <ac131313@redhat.com>
8
9 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10 Update comments.
11 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12 (frame_saved_regs_zalloc): Update.
13 (frame_saved_regs_register_unwind): Update.
14 (create_new_frame): Update.
15 (get_prev_frame): Update.
16 (frame_extra_info_zalloc): Update.
17 (deprecated_get_frame_saved_regs): Update.
18 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
19 * cris-tdep.c: Update comment.
20
21 * somsolib.h: Fix function indentation.
22 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
23 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
24 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
25 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
26 * somsolib.c, inftarg.c: Remove assignment in if conditional.
27
28 * infrun.c (follow_fork): Use ISO C definition.
29 * expprint.c (print_subexp): Use xfree instead of free.
30 * charset.c: Include "gdb_string.h" instead of <string.h>.
31 (register_iconv_charsets): Use ISO C definition.
32 (host_charset, target_charset): Ditto.
33 * Makefile.in (charset.o): Update dependencies.
34 (mi-cmd-env.o): Update dependencies.
35
36 2003-01-08 Andrew Cagney <cagney@redhat.com>
37
38 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
39 get_frame_base.
40
41 2003-01-08 Andrew Cagney <ac131313@redhat.com>
42
43 * gdb_mbuild.sh: Add --keep option. When specified, keep the
44 build directories. Save edited gdb output in Mbuild.log. If a
45 build fails, remove any final GDB executable.
46
47 2003-01-08 Andrew Cagney <ac131313@redhat.com>
48
49 * gdb_mbuild.sh: Edit the output of `maint print architecture'
50 replacing hex constants with function names and stripping leading
51 file name directory prefixes.
52
53 2003-01-08 Andrew Cagney <cagney@redhat.com>
54
55 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
56 get_frame_base.
57
58 2003-01-08 David Carlton <carlton@math.stanford.edu>
59
60 * linespec.c (decode_line_1): Move code into decode_variable.
61 (decode_variable): New function.
62
63 2003-01-08 Andrew Cagney <ac131313@redhat.com>
64
65 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
66
67 2003-01-08 Andrew Cagney <cagney@redhat.com>
68
69 * cris-tdep.c (cris_frame_init_saved_regs): Use
70 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
71 saved_regs buffer.
72 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
73 (sh64_nofp_frame_init_saved_regs): Ditto.
74 (sh_fp_frame_init_saved_regs): Ditto.
75 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
76 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
77 * mcore-tdep.c (analyze_dummy_frame): Ditto.
78 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
79
80 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
81
82 * minsyms.c (lookup_minimal_symbol): Update comment.
83 (lookup_minimal_symbol_text): Update comment. Use the hash table.
84 (lookup_minimal_symbol_solib_trampoline): Likewise.
85
86 2003-01-08 Andrew Cagney <cagney@redhat.com>
87
88 * d10v-tdep.c (d10v_init_extra_frame_info): Use
89 frame_relative_level.
90
91 * alpha-tdep.c: Use get_frame_extra_info.
92 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
93 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
94 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
95 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
96
97 * alpha-tdep.c: Use get_next_frame.
98 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
99 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
100 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
101 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
102 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
103 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
104 * xstormy16-tdep.c: Ditto.
105
106 2003-01-07 Andrew Cagney <cagney@redhat.com>
107
108 * alpha-tdep.c: Use get_frame_base.
109 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
110 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
111 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
112 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
113 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
114 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
115 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
116 * config/sparc/tm-sparc.h: Ditto.
117
118 2003-01-07 Andrew Cagney <cagney@redhat.com>
119
120 * frame.c (deprecated_get_frame_context): New function.
121 (deprecated_set_frame_context): New function.
122 * frame.h (deprecated_get_frame_context): Declare.
123 (deprecated_set_frame_context): Declare.
124 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
125 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
126
127 2003-01-07 Andrew Cagney <cagney@redhat.com>
128
129 * frame.c (deprecated_set_frame_next_hack): New function.
130 (deprecated_set_frame_prev_hack): New function.
131 * frame.h (deprecated_set_frame_next_hack): Declare.
132 (deprecated_set_frame_prev_hack): Declare.
133 * mcore-tdep.c (analyze_dummy_frame): Use
134 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
135 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
136
137 2003-01-07 David Carlton <carlton@math.stanford.edu>
138
139 * linespec.c (decode_line_1): Move code into decode_dollar.
140 (decode_dollar): New function.
141
142 2003-01-07 Andrew Cagney <cagney@redhat.com>
143
144 * arm-tdep.c (arm_init_extra_frame_info): Use
145 deprecated_update_frame_base_hack.
146 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
147 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
148 (fix_frame_pointer): Ditto.
149 (mn10300_analyze_prologue): Ditto.
150
151 2003-01-07 Andrew Cagney <cagney@redhat.com>
152
153 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
154 extra_info using frame_extra_info_zalloc.
155 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
156 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
157 (sh64_init_extra_frame_info): Ditto.
158 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
159 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
160 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
161 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
162 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
163 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
164 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
165 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
166 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
167 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
168 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
169 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
170
171 * mn10300-tdep.c (analyze_dummy_frame): Use
172 deprecated_set_frame_extra_info_hack.
173 * mcore-tdep.c (analyze_dummy_frame): Ditto.
174
175 2003-01-07 J. Brobecker <brobecker@gnat.com>
176
177 * mdebugread.c (parse_symbol): Skip stProc entries which storage
178 class is not scText. These do not define "real" procedures.
179 (parse_partial_symbols): Likewise.
180
181 2003-01-06 Michael Snyder <msnyder@redhat.com>
182
183 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
184
185 2003-01-06 Andrew Cagney <ac131313@redhat.com>
186
187 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
188 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
189 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
190 deprecated_frame_xmalloc_with_cleanup.
191 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
192 deprecated_frame_xmalloc.
193 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
194 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
195
196 2003-01-06 Andrew Cagney <cagney@redhat.com>
197
198 * x86-64-linux-tdep.c: Include "osabi.h".
199 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
200
201 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
202
203 2003-01-06 Andrew Cagney <cagney@redhat.com>
204
205 * MAINTAINERS (Target Instruction Set Architectures): Update
206 arm-elf. Can be built with -Werror, has been multiarched.
207
208 * value.h (unpack_long): Make buffer parameter constant.
209 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
210 * scm-lang.h (scm_parse): Ditto.
211 * defs.h (extract_typed_address, extract_address): Ditto.
212 (extract_long_unsigned_integer): Ditto.
213 * inferior.h (unsigned_pointer_to_address): Ditto.
214 (signed_pointer_to_address): Ditto.
215 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
216 * gdbarch.h, gdbarch.c: Regenerate.
217 * findvar.c (extract_long_unsigned_integer): Update.
218 (extract_address): Update.
219 (extract_typed_address): Update.
220 (unsigned_pointer_to_address): Update.
221 * values.c (unpack_long): Update.
222 (unpack_double): Update.
223 (unpack_pointer): Update.
224 (unpack_field_as_long): Update.
225 * d10v-tdep.c (d10v_pointer_to_address): Update.
226 * avr-tdep.c (avr_pointer_to_address): Update.
227 * scm-lang.c (scm_unpack): Update.
228 * findvar.c (signed_pointer_to_address): Update.
229
230 2003-01-06 Michal Ludvig <mludvig@suse.cz>
231
232 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
233 since it is in i386-tdep.c.
234
235 2003-01-06 J. Brobecker <brobecker@gnat.com>
236
237 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
238 failure introduced in the previous change.
239
240 2003-01-05 Michael Chastain <mec@shout.net>
241
242 * README: Remove references to deleted remote-*.c files:
243 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
244 remote-nrom.c, remote-os9k.c, remote-udi.c.
245
246 2003-01-05 Mark Kettenis <kettenis@gnu.org>
247
248 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
249 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
250 i386_get_longjmp_target.
251
252 2003-01-05 Andrew Cagney <ac131313@redhat.com>
253
254 * arm-tdep.c (prologue_cache): Change to a pointer.
255 (_initialize_arm_tdep): Allocate prologue_cache.
256 (check_prologue_cache): Update.
257 (save_prologue_cache): Update.
258 (arm_gdbarch_init): Update.
259
260 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
261
262 * stabsread.c (update_method_name_from_physname): Call complaint()
263 instead of error.
264
265 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
266
267 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
268 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
269 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
270
271 * blockframe.c: Include "gdbcmd.h" and "command.h".
272 (backtrace_below_main): New variable.
273 (file_frame_chain_valid, func_frame_chain_valid)
274 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
275 (generic_func_frame_chain_valid): Remove functions.
276 (frame_chain_valid, do_flush_frames_sfunc): New functions.
277 (_initialize_blockframe): New function.
278 * Makefile.in (blockframe.o): Update dependencies.
279 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
280 comment. Call frame_chain_valid ().
281 * frame.h: Remove old prototypes. Add prototype for
282 frame_chain_valid and update comments to match.
283 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
284 Remove old comment.
285 * gdbarch.h: Regenerated.
286 * gdbarch.c: Regenerated.
287
288 * alpha-tdep.c (alpha_gdbarch_init): Don't call
289 set_gdbarch_frame_chain_valid.
290 * avr-tdep.c (avr_gdbarch_init): Likewise.
291 * cris-tdep.c (cris_gdbarch_init): Likewise.
292 * frv-tdep.c (frv_gdbarch_init): Likewise.
293 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
294 * i386-tdep.c (i386_svr4_init_abi): Likewise.
295 (i386_nw_init_abi): Likewise.
296 (i386_gdbarch_init): Likewise.
297 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
299 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
300 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
301 * mips-tdep.c (mips_gdbarch_init): Likewise.
302 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
303 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
304 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
305 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
306 * s390-tdep.c (s390_gdbarch_init): Likewise.
307 * sh-tdep.c (sh_gdbarch_init): Likewise.
308 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
309 * v850-tdep.c (v850_gdbarch_init): Likewise.
310 * vax-tdep.c (vax_gdbarch_init): Likewise.
311 * x86-64-tdep.c (x86_64_init_abi): Likewise.
312
313 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
314 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
315 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
316 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
317 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
318 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
319 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
320 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
321
322 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
323
324 * Makefile.in (acconfig_h): Remove incorrect macro.
325 (config_h): Define.
326 (osabi.o): Update dependencies.
327 * configure.tgt: Set gdb_osabi based on target triplet.
328 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
329 * configure: Regenerated.
330 * config.in: Regenerated.
331 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
332 (GDB_OSABI_DEFAULT): Define if not already defined.
333 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
334 (set_osabi_string): New variables.
335 (gdbarch_register_osabi): Add new OS ABI to
336 gdb_osabi_available_names.
337 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
338 (set_osabi, show_osabi): New functions.
339 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
340
341 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
342
343 * arch-utils.c (gdbarch_info_init): Set osabi to
344 GDB_OSABI_UNINITIALIZED.
345 * gdbarch.sh: Add osabi to struct gdbarch and to struct
346 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
347 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
348 * gdbarch.c: Regenerated.
349 * gdbarch.h: Regenerated.
350 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
351 there's no BFD.
352 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
353 * osabi.h (enum gdb_osabi): Move to defs.h.
354 (gdbarch_init_osabi): Update prototype.
355 * defs.h (enum gdb_osabi): Moved here.
356 * Makefile.in: Update dependencies.
357
358 * alpha-tdep.h: Don't include "osabi.h".
359 (struct gdbarch_tdep): Remove osabi member.
360 * alpha-tdep.c: Include "osabi.h".
361 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
362 iterate over arches. Update call to gdbarch_init_osabi.
363 (alpha_dump_tdep): Don't dump osabi.
364 * alpha-linux-tdep.c: Include "osabi.h".
365 * alpha-osf1-tdep.c: Include "osabi.h".
366 * alphafbsd-tdep.c: Include "osabi.h".
367 * alphanbsd-tdep.c: Include "osabi.h".
368
369 * arm-tdep.h: Don't include "osabi.h".
370 (struct gdbarch_tdep): Remove osabi member.
371 * arm-tdep.c: Include "osabi.h".
372 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
373 iterate over arches. Update call to gdbarch_init_osabi.
374 (arm_dump_tdep): Don't dump osabi.
375 * arm-linux-tdep.c: Include "osabi.h".
376 * armnbsd-tdep.c: Include "osabi.h".
377
378 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
379 Update call to gdbarch_init_osabi.
380
381 * i386-tdep.h: Don't include "osabi.h".
382 (struct gdbarch_tdep): Remove osabi member.
383 * i386-tdep.c: Include "osabi.h".
384 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
385 iterate over arches. Update call to gdbarch_init_osabi.
386 (i386_dump_tdep): Don't dump osabi.
387 * i386-linux-tdep.c: Include "osabi.h".
388 * i386-sol2-tdep.c: Include "osabi.h".
389 * i386bsd-tdep.c: Include "osabi.h".
390 * i386gnu-tdep.c: Include "osabi.h".
391 * i386ly-tdep.c: Include "osabi.h".
392 * i386nbsd-tdep.c: Include "osabi.h".
393 * i386obsd-tdep.c: Include "osabi.h".
394
395 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
396 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
397 check osabi when iterating over arches. Update call to
398 gdbarch_init_osabi.
399 (mips_dump_tdep): Don't dump osabi.
400
401 * ns32k-tdep.h: Don't include "osabi.h".
402 (struct gdbarch_tdep): Remove.
403 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
404 gdbarch_lookup_osabi. Don't iterate over arches. Don't
405 allocate tdep. Update call to gdbarch_init_osabi.
406 (ns32k_dump_tdep): Remove.
407 (_initialize_ns32k_tdep): Update call to gdbarch_register.
408 * ns32knbsd-tdep.c: Include "osabi.h".
409
410 * ppc-tdep.h: Don't include "osabi.h".
411 (struct gdbarch_tdep): Remove osabi member.
412 * rs6000-tdep.c: Include "osabi.h".
413 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
414 osabi when iterating over arches. Update call to
415 gdbarch_init_osabi.
416 (rs6000_dump_tdep): Don't dump osabi.
417 * ppc-linux-tdep.c: Include "osabi.h".
418 * ppcnbsd-tdep.c: Include "osabi.h".
419
420 * sh-tdep.h: Don't include "osabi.h".
421 (struct gdbarch_tdep): Remove osabi member.
422 * sh-tdep.c: Include "osabi.h".
423 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
424 iterate over arches. Update call to gdbarch_init_osabi.
425 (sh_dump_tdep): Don't dump osabi.
426 * shnbsd-tdep.c: Include "osabi.h".
427
428 * sparc-tdep.c: Include "osabi.h".
429 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
430 iterate over arches. Update call to gdbarch_init_osabi.
431 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
432 tdep structure.
433
434 * vax-tdep.h: Don't include "osabi.h".
435 (struct gdbarch_tdep): Remove.
436 * vax-tdep.c: Include "osabi.h".
437 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
438 iterate over arches. Don't allocate tdep. Update call
439 to gdbarch_init_osabi.
440 (vax_dump_tdep): Remove.
441 (_initialize_vax_tdep): Update call to gdbarch_register.
442
443 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
444
445 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
446 entirely.
447 (breakpoint_re_set_one): Don't fetch the value for a disabled
448 watchpoint.
449
450 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
451
452 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
453 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
454 (COERCE_FLOAT_TO_DOUBLE): Remove.
455 * gdbarch.c: Regenerate.
456 * gdbarch.h: Regenerate.
457 * Makefile.in: Remove value_h from gdbarch_h.
458 * valops.c (coerce_float_to_double): New variable.
459 (default_coerce_float_to_double): Remove.
460 (standard_coerce_float_to_double): Remove.
461 (value_arg_coerce): Use coerce_float_to_double.
462 (_initialize_valops): Add "set coerce-float-to-double".
463 * value.h (default_coerce_float_to_double): Remove prototype.
464 (standard_coerce_float_to_double): Remove prototype.
465
466 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
467 prototyped.
468 * mdebugread.c (parse_symbol): Likewise.
469 * stabsread.c (define_symbol): Mark all functions as prototyped.
470
471 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
472 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
473 set_gdbarch_coerce_float_to_double.
474 * arm-tdep.c (arm_gdbarch_init): Likewise.
475 * frv-tdep.c (frv_gdbarch_init): Likewise.
476 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
477 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
478 * mips-tdep.c (mips_gdbarch_init): Likewise.
479 (mips_coerce_float_to_double): Remove.
480 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
481 (rs6000_coerce_float_to_double): Remove.
482 * s390-tdep.c (s390_gdbarch_init): Likewise.
483 * sh-tdep.c (sh_gdbarch_init): Likewise.
484 (sh_coerce_float_to_double): Remove.
485 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
486 (sparc_coerce_float_to_double): Remove.
487 * v850-tdep.c (v850_gdbarch_init): Likewise.
488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
489 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
490 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
491 (hppa_coerce_float_to_double): Remove prototype.
492 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
493
494 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
495
496 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
497
498 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
499
500 Suggested by Stewart Brown <sb24@avaya.com>:
501 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
502 in recursive calls. Handle TYPE_CODE_TYPEDEF.
503 (c_type_print_varspec_suffix): Likewise.
504
505 2003-01-04 Mark Kettenis <kettenis@gnu.org>
506
507 * configure.in: Don't set and AC_SUBST SUBDIRS.
508 * configure: Regenerated.
509
510 * configure.in: Remove code dealing with shared libraries.
511 * Makefile.in: Remove HLDFLAGS and HLDENV.
512 * configure: Regenerated.
513
514 2003-01-04 Andrew Cagney <ac131313@redhat.com>
515
516 * frame.c (deprecated_frame_xmalloc): New function.
517 (deprecated_set_frame_saved_regs_hack): New function.
518 (deprecated_set_frame_extra_info_hack): New function.
519 * frame.h (deprecated_frame_xmalloc): Declare.
520 (deprecated_set_frame_saved_regs_hack): Declare.
521 (deprecated_set_frame_extra_info_hack): Declare.
522
523 2003-01-04 Mark Kettenis <kettenis@gnu.org>
524
525 * configure.in: Move code that provides the --enable-gdbtk option
526 right after the code that handles the --enable-tui option, and
527 polish it somewhat.
528 * configure: Regenerated.
529
530 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
531 AC_CHECK_FUNCS and remove the old check for pread64.
532 * acinclude.m4 (AC_GNU_SOURCE): New macro.
533 * acconfig.h (_GNU_SOURCE): Add.
534 (HAVE_PREAD64): Remove.
535 * configure, aclocal.m4, config.in: Regenerated.
536
537 2003-01-03 Andrew Cagney <ac131313@redhat.com>
538
539 * alpha-tdep.c: Use get_frame_saved_regs.
540 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
541 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
542 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
543 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
544 * vax-tdep.c, xstormy16-tdep.c: Ditto.
545
546 2003-01-03 Mark Kettenis <kettenis@gnu.org>
547
548 * configure.in: Remove all use of the SUBDIRS variable; add
549 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
550 code providing the --enable-multi-ice option, and move it right in
551 front of the code that checks whether gdbserver is supported.
552 Polish that too.
553 * configure: Regenerated.
554 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
555 @SUBDIRS@.
556
557 2003-01-03 Andrew Cagney <cagney@redhat.com>
558
559 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
560 * avr-tdep.c, cris-tdep.c: Ditto.
561 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
562 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
563
564 2003-01-03 Mark Kettenis <kettenis@gnu.org>
565
566 * configure.in: Remove --enable-netrom option.
567 * configure: Regenerated.
568
569 2003-01-03 Mark Kettenis <kettenis@gnu.org>
570
571 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
572 declaration for `struct re_pattern_buffer' instead.
573 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
574
575 2003-01-03 J. Brobecker <brobecker@gnat.com>
576
577 * mdebugread.c (parse_symbol): Count until the stEnd matching
578 the structure name.
579
580 2003-01-02 Mark Kettenis <kettenis@gnu.org>
581
582 * configure.in: Remove --with-cpu option.
583 subscripts. Remove evil changequotes here.
584 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
585 * config.in, configure: Regenerated.
586
587 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
588 * configure.in: Cleanup section that sources GDB and BFD configure
589 subscripts. Remove evil changequotes here.
590 * config.in, configure: Regenerated.
591
592 2003-01-02 Andrew Cagney <ac131313@redhat.com>
593
594 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
595 frame accessor methods.
596 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
597 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
598 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
599 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
600 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
601 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
602 * z8k-tdep.c: Ditto.
603
604 2003-01-02 Mark Kettenis <kettenis@gnu.org>
605
606 * configure.in: Remove UI_OUT configuration code.
607 * ada-lang.c: Update assuming UI_OUT is always true.
608 * Makefile.in (UIOUT_CFLAGS): Remove.
609 * configure: Regenerated.
610 * TODO: Remove blurb about elimination of -DUI_OUT.
611
612 * configure.in: Move code that provides the --enable-gdbcli,
613 --enable-gdbmi options right before the code that handles the
614 --enable-tui option. Polish a bit.
615 * configure: Regenerated.
616
617 * configure.in: Rewrite check for GNU regex and the
618 --without-included regex option, and move it into the "Checks for
619 library functions" section. This makes us use the system regex
620 again by default on systems with version 2 of the GNU C library.
621 This was apparently broken.
622 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
623 * acconfig.h (USE_INCLUDED_REGEX): Remove.
624 * config.in, configure: Regenerated.
625
626 * configure.in: Move code that provides the --enable-tui option
627 before the "Checks for libraries" section. Polish the code
628 somewhat and set need_curses to yes if we build the TUI. Rewrite
629 code that looks for a library providing termcap functionality to
630 match more closely what's done in the Readline library, and move
631 it into to the "Checks for libraries" section.
632 * configure: Regenerated.
633 * Makefile.in (TERMCAP): Remove variable.
634 * config/i386/go32.mh (TERMCAP): Remove variable.
635
636 2003-01-02 Andrew Cagney <ac131313@redhat.com>
637
638 * MAINTAINERS: Mention gdb_mbuild.sh.
639 * gdb_mbuild.sh: Rewrite.
640
641 2003-01-02 Mark Kettenis <kettenis@gnu.org>
642
643 * configure.in: Fix typo in last change.
644 * config.in, configure: Regenerated.
645
646 2003-01-02 Andrew Cagney <ac131313@redhat.com>
647
648 * valarith.c (value_binop): Delete obsolete code and comments.
649 * configure.host: Ditto.
650 * buildsym.h (make_blockvector): Ditto.
651 * buildsym.c (make_blockvector): Ditto.
652 * defs.h (enum language): Ditto.
653 (chill_demangle): Ditto.
654 * elfread.c (elf_symtab_read): Ditto.
655 * dwarfread.c (CHILL_PRODUCER): Ditto.
656 (set_cu_language): Ditto.
657 (handle_producer): Ditto.
658 * expprint.c (print_subexp): Ditto.
659 * gdbtypes.c (chill_varying_type): Ditto.
660 * gdbtypes.h (builtin_type_chill_bool): Ditto.
661 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
662 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
663 (chill_varying_type): Ditto.
664 * language.h (_LANG_chill): Ditto.
665 * language.c (binop_result_type, integral_type): Ditto.
666 (character_type, string_type, structured_type): Ditto.
667 (lang_bool_type, binop_type_check): Ditto.
668 * stabsread.h (os9k_stabs): Ditto.
669 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
670 (define_symbol, read_type, read_struct_fields): Ditto.
671 (read_array_type, read_enum_type, read_huge_number): Ditto.
672 (read_range_type, start_stabs): Ditto.
673 * symfile.c (init_filename_language_table): Ditto.
674 (add_psymbol_with_dem_name_to_list): Ditto.
675 * symtab.c (symbol_init_language_specific): Ditto.
676 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
677 * symtab.h (struct general_symbol_info): Ditto.
678 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
679 * typeprint.c (typedef_print): Ditto.
680 * utils.c (fprintf_symbol_filtered): Ditto.
681 * valops.c (value_cast, search_struct_field, value_slice): Delete
682 obsolete code.
683 (varying_to_slice): Delete function.
684 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
685 (varying_to_slice): Delete declaration.
686 * MAINTAINERS: Update.
687
688 2003-01-02 Mark Kettenis <kettenis@gnu.org>
689
690 * configure.in: Reorganize "Checks for library functions section"
691 a bit. Remove check for `btowc' and `isascii' functions.
692 * configure: Regenerated.
693
694 * acconfig.h (_MSE_INT_H): Remove.
695 * configure.in: Create "Checks for header files" section, and move
696 appropriate tests there. Don't check for objlist.h, wchar.h,
697 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
698 misdetection fix. Also add "Checks for types", "Checks for
699 compiler characteristics" and "Checks for library functions"
700 sections.
701 * config.in, configure: Regenerated.
702
703 * configure.in: Create "Checks for programs" section, and move
704 appropriate tests there.
705
706 2003-01-01 Mark Kettenis <kettenis@gnu.org>
707
708 * configure.in: Create "Checks for libraries" section, and move
709 appropriate tests there. Cleanup check for wctype in libw. Use
710 AC_SEARCH_LIBS to see whether we need libsocket.
711 * configure: Regenerated.
712
713 2002-12-31 Mark Kettenis <kettenis@gnu.org>
714
715 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
716 * config.in, configure: Regenerated.
717
718 2002-12-31 Mark Kettenis <kettenis@gnu.org>
719
720 * gdb_dirent.h: Cleanup and update code to match the example in
721 the Autoconf manual.
722 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
723 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
724 * configure: Regenerated.
725
726 2002-12-30 Adam Fedor <fedor@gnu.org>
727
728 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
729 (yylex): Initialize c to avoid uninitialized warning.
730
731 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
732
733 * doc/fdl.texi: Revert the last change.
734
735 2002-12-29 Mark Kettenis <kettenis@gnu.org>
736
737 * tracepoint.c (ISATTY): Removed.
738
739 2002-12-26 J. Brobecker <brobecker@gnat.com>
740
741 Continuing work to convert the hppa targets to multiarch partil.
742
743 * hppa-tdep.c: Add some missing forward declarations.
744 (frameless_function_invocation): Prefix the function name
745 by "hppa_" to avoid polluting the namespace. Update all calls
746 to use the new function name.
747 (saved_pc_after_call): Ditto.
748 (init_extra_frame_info): Ditto.
749 (frame_chain): Ditto.
750 (push_dummy_frame): Ditto.
751 (target_read_pc): Ditto.
752 (target_write_pc): Ditto.
753 (in_solib_call_trampoline): Ditto.
754 (in_solib_return_trampoline): Ditto.
755 (skip_trampoline_code): Ditto.
756 (hppa_read_fp): New function, renamed from target_read_fp.
757 (hppa_target_read_fp): New function, using hppa_read_fp.
758 This function conforms to the function profile for the
759 READ_FP gdbarch method.
760 (hppa_extract_struct_value_address): New function, extracted
761 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
762 macro.
763 (hppa_frame_num_args): New function.
764 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
765
766 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
767 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
768 for the switch to multiarch partial.
769 Update some of the macros definitions to match some changes
770 described above in the name of the function they are calling.
771 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
772 not be straightforward to convert. Do now wrap it inside
773 "#if !... #endif" to remember that this macro has still not
774 been taken care of.
775 (FIX_CALL_DUMMY): Likewise.
776
777 2002-12-26 J. Brobecker <brobecker@gnat.com>
778
779 Continuing work to convert the hppa targets to multiarch partial.
780
781 * hppa-tdep.c (hppa_register_raw_size): New function replacing
782 the body of macro REGISTER_RAW_SIZE.
783 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
784 config/pa/tm-hppah.h. These functions will be used to initialize
785 the gdbarch structure.
786 (hppa_hpux_pc_in_sigtramp): New function.
787 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
788 (hppa_hpux_frame_base_before_sigtramp): New function.
789 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
790 Add gdbcore.h #include.
791 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
792 of this gdbarch-eligible macro to a call to the new associated
793 function.
794 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
795 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
796 into a call to the new associated function.
797 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
798 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
799 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
800
801 2002-12-24 David Carlton <carlton@math.stanford.edu>
802
803 * config/sparc/tm-sparc.h: Delete duplicate definition of
804 DEPRECATED_PC_IN_CALL_DUMMY.
805
806 2002-12-24 Kevin Buettner <kevinb@redhat.com>
807
808 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
809 $(gdb_assert_h).
810 * configure.tgt: Recognize mips64*-*-linux*.
811 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
812 (supply_32_bit_reg): New function.
813 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
814 (fill_gregset): Use regcache_collect() instead of
815 deprecated_registers[].
816 (register_addr): Change name to mips_linux_register_addr().
817 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
818 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
819 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
820 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
821 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
822 (MIPS64_LINUX_JB_PC): New defines.
823 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
824 (mips64_elf_fpregset_t): New typedefs.
825 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
826 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
827 (mips64_linux_register_addr, set_mips_linux_register_addr)
828 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
829 (init_register_addr_data)
830 New functions.
831 (fetch_core_registers): Add support for core file formats with 64-bit
832 registers.
833 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
834 (register_addr_data): New static global variable.
835 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
836 gdbarch_register_osabi() for each MIPS machine.
837 * config/mips/linux64.mt: New file.
838 * config/mips/tm-linux64.h: New file.
839
840 2002-12-23 Adam Fedor <fedor@gnu.org>
841
842 * maint.c (maintenance_demangle): Add switch to demangle
843 ObjC language symbols as well.
844
845 2002-12-23 Adam Fedor <fedor@gnu.org>
846
847 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
848 last argument from complaint function call.
849
850 2002-12-23 Kevin Buettner <kevinb@redhat.com>
851
852 * exec.c (print_section_info): Add FIXME comments regarding format
853 string choices.
854
855 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
856
857 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
858 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
859
860 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
861
862 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
863
864 2002-12-23 David Carlton <carlton@math.stanford.edu>
865
866 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
867 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
868 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
869 information associated to a minsym, not lookup_symbol.
870
871 2002-12-21 Mark Kettenis <kettenis@gnu.org>
872
873 * x86-64-tdep.h (x86_64_init_abi): New prototype.
874 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
875 (x86_64_init_abi): Make non-static. Set number of pseudo
876 registers to 0.
877 (x86_64_gdbarch_init): Remove function.
878 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
879 Remove code dealing with dissambly.
880 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
881 (_initialize_x86_64_linux_tdep): New function.
882 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
883 i386-tdep.o.
884
885 2002-12-14 Mark Kettenis <kettenis@gnu.org>
886
887 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
888 (struct gdb_osabi_handler): Remove member `arch'. Add member
889 `arch_info'.
890 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
891 construct a `struct bfd_arch_info' and store it in the `struct
892 gdb_osabi_handler' that is created.
893 (gdbarch_init_osabi): Check for compatibility based on machine
894 type and architecture.
895 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
896 comment.
897 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
898 second argument in call to gdbarch_register_osabi.
899 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
900 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
901 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
902 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
903 * arm-tdep.c (_initialize_arm_tdep): Likewise.
904 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
905 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
906 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
907 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
908 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
909 * i386-tdep.c (_initialize_i386_tdep): Likewise.
910 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
911 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
912 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
913 _initialize_i386bsd_tdep and updated likewise.
914 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
915 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
916 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
917 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
918 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
919 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
920 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
921 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
922 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
923 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
924
925 2002-12-20 Kevin Buettner <kevinb@redhat.com>
926
927 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
928 DT_MIPS_RLD_MAP case for 64-bit targets.
929
930 2002-12-20 Kevin Buettner <kevinb@redhat.com>
931
932 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
933 ``temp_saved_regs'', not the pointer or other storage contiguous
934 to this pointer.
935
936 2002-12-20 Kevin Buettner <kevinb@redhat.com>
937
938 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
939 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
940 (mips_linux_get_longjmp_target): Delete declarations.
941 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
942 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
943 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
944 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
945 (mips_linux_get_longjmp_target)
946 (mips_linux_svr4_fetch_link_map_offsets): Make static.
947 (mips_linux_init_abi): New function.
948 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
949
950 2002-12-19 Keith Seitz <keiths@redhat.com>
951
952 patch committed by Elena Zannoni <ezannoni@redhat.com>
953 * thread.c (do_captured_list_thread_ids): Call prune_threads and
954 target_find_new_threads. Fix for PR mi/669.
955
956 2002-12-19 David Carlton <carlton@math.stanford.edu>
957
958 * linespec.c (decode_line_1): Move code into decode_all_digits.
959 (decode_all_digits): New function.
960
961 2002-12-19 Kevin Buettner <kevinb@redhat.com>
962
963 * exec.c (print_section_info): Select a format string to use with
964 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
965
966 2002-12-18 Andrew Cagney <ac131313@redhat.com>
967
968 * frame.c (deprecated_update_current_frame_pc_hack): Replace
969 deprecated_update_current_frame_pc_hack.
970 (deprecated_update_frame_base_hack): New function.
971 * frame.h (deprecated_update_frame_pc_hack): Replace
972 (deprecated_update_frame_base_hack): Declare.
973 * infrun.c (normal_stop): Update.
974
975 2002-12-18 Andrew Cagney <ac131313@redhat.com>
976
977 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
978 frame_extra_info_zalloc.
979 (rs6000_frame_args_address): Use get_frame_extra_info.
980 (frame_get_saved_regs): Use get_frame_saved_regs.
981 (frame_initial_stack_address): Use get_frame_saved_regs and
982 get_frame_extra_info.
983 (frame_initial_stack_address): Use get_frame_extra_info.
984
985 2002-12-17 Kevin Buettner <kevinb@redhat.com>
986
987 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
988 array size.
989 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
990 checks for r3900_regnames[].
991
992 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
993
994 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
995 All uses changed
996 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
997
998 2002-12-17 David Carlton <carlton@math.stanford.edu>
999
1000 * symtab.c (lookup_partial_symbol): Don't search past the end of
1001 the partial symbols.
1002
1003 2002-12-17 Andrew Cagney <ac131313@redhat.com>
1004
1005 * stack.c (frame_info): Use get_frame_saved_regs.
1006 * breakpoint.c (until_break_command): Use get_frame_pc.
1007
1008 2002-12-16 Kevin Buettner <kevinb@redhat.com>
1009
1010 * buildsym.c (block_end_complaint, anon_block_end_complaint)
1011 (innerblock_complaint, innerblock_anon_complaint)
1012 (blockvector_complaint): Delete deprecated complaint structs.
1013 (finish_block, make_blockvector, end_symtab): Replace calls
1014 to complain() with calls to complaint().
1015 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
1016 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
1017 (unexpected_type_complaint, bad_sclass_complaint)
1018 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
1019 Delete deprecated complaint structs.
1020 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
1021 Replace calls to complain() with calls to complaint().
1022 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
1023 (unknown_symtype_complaint, unknown_symchar_complaint)
1024 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
1025 (lbrac_mismatch_complaint, repeated_header_complaint)
1026 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
1027 Delete deprecated complaint structs.
1028 (unknown_symtype_complaint, lbrac_mismatch_complaint)
1029 (repeated_header_complaint)
1030 (function_outside_compiliation_unit_complaint): New functions.
1031 (add_old_header_file, find_corresponding_bincl_psymtab)
1032 (set_namestring, find_stab_function_addr, read_dbx_symtab)
1033 (process_one_symbol): Replace calls to complain() with, possibly
1034 indirect, calls to complaint().
1035 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
1036 (unknown_attribute_form, unknown_attribute_length)
1037 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
1038 (const_ignored, botched_modified_type, op_deref2, op_deref4)
1039 (basereg_not_handled, dup_user_type_allocation)
1040 (dup_user_type_definition, missing_tag, bad_array_element_type)
1041 (subscript_data_items, unhandled_array_subscript_format)
1042 (unknown_array_subscript_format, not_row_major)
1043 (missing_at_name): Delete deprecated complaint structs.
1044 (bad_die_ref_complaint, unknown_attribute_form_complaint)
1045 (dup_user_type_definition_complaint)
1046 (bad_array_element_type_complaint): New functions.
1047 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1048 (decode_subscript_data_item, dwarf_read_array_type)
1049 (read_tag_string_type, read_subroutine_type, read_func_scope)
1050 (locval, scan_partial_symbols, decode_modified_type)
1051 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1052 (attribute_size): Replace calls to complain() with, possibly
1053 indirect, calls to complaint().
1054 * elfread.c (section_info_complaint, section_info_dup_complaint)
1055 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1056 Delete deprecated complaint structs.
1057 (elf_symtab_read, elfstab_offset_sections): Replace calls to
1058 complain() with calls to complaint().
1059 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1060 struct.
1061 (stub_noname_complaint): New function.
1062 (check_typedef, add_mangled_type): Replace calls to complain()
1063 with calls to complaint().
1064 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1065 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1066 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1067 (hpread_array_complaint, hpread_type_lookup_complaint)
1068 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1069 (hpread_unhandled_common_complaint)
1070 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1071 struct definitions and declarations.
1072 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1073 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1074 Replace calls to complain() with, possibly indirect, calls to
1075 complaint().
1076 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1077 Likewise.
1078 * mdebugread.c (bad_file_number_complaint, index_complaint)
1079 (aux_index_complaint, block_index_complaint)
1080 (unknown_ext_complaint, unknown_sym_complaint)
1081 (unknown_st_complaint, block_overflow_complaint)
1082 (basic_type_complaint, unknown_type_qual_complaint)
1083 (array_index_type_complaint, bad_tag_guess_complaint)
1084 (block_member_complaint, stEnd_complaint)
1085 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1086 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1087 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1088 (bad_continued_complaint, bad_rfd_entry_complaint)
1089 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1090 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1091 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1092 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1093 complaint structs.
1094 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1095 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1096 (unexpected_type_code_complaint)
1097 (function_outside_compilation_unit_complaint): New functions.
1098 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1099 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1100 Replace calls to complain() with, possibly indirect calls to
1101 complaint().
1102 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1103 Delete deprecated complaint structs.
1104 (lookup__objc_class, lookup_child_selector): Replace complain()
1105 with complaint().
1106 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1107 struct.
1108 (vx_lookup_symbol): Replace complain() with complaint().
1109 * stabsread.c (invalid_cpp_abbrev_complaint)
1110 (invalid_cpp_type_complaint, member_fn_complaint)
1111 (const_vol_complaint, error_type_complaint)
1112 (invalid_member_complaint, range_type_base_complaint)
1113 (reg_value_complaint, vtbl_notfound_complaint)
1114 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1115 (unresolved_sym_chain_complaint, stabs_general_complaint)
1116 (lrs_general_complaint, multiply_defined_struct): Delete
1117 deprecated complaint structs.
1118 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1119 (stabs_general_complaint, lrs_general_complaint)
1120 (msg_unknown_complaint): New functions.
1121 (dbx_lookup_type, read_cfront_baseclasses)
1122 (read_cfront_member_functions, resolve_symbol_reference)
1123 (define_symbol, resolve_live_range, add_live_range, read_type)
1124 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1125 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1126 (read_cfront_static_fields, attach_fields_to_type)
1127 (complain_about_struct_wipeout, read_range_type)
1128 (common_block_start, common_block_end, cleanup_undefined_types)
1129 (scan_file_globals): Replace complain() with complaint().
1130 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1131 Delete deprecated complaint struct declarations.
1132 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1133 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1134 (bf_not_found_complaint, ef_complaint, eb_complaint)
1135 (function_outside_compilation_unit_complaint): New functions.
1136 (record_include_begin, record_include_end, enter_line_range)
1137 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1138 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1139 complain() with complaint().
1140
1141 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1142
1143 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1144 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1145 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1146 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1147 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1148 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1149 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1150 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1151 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1152 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1153 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1154 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1155 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1156 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1157 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1158 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1159 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1160 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1161 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1162 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1163 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1164 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1165 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1166 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1167 * config/m88k/xm-dgux.h: Delete.
1168 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1169 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1170 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1171 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1172 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1173 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1174 * ch-valprint.c: Delete.
1175
1176 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1177
1178 * infrun.c (handle_inferior_event): Rearrange code to resume if
1179 no catchpoint triggers for an event.
1180
1181 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1184 and TARGET_WAITKIND_VFORKED cases.
1185
1186 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1187
1188 * infrun.c (handle_inferior_event): Assume that catchpoints
1189 are not affected by DECR_PC_AFTER_BREAK.
1190
1191 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * target.c (update_current_target): Don't inherit DONT_USE.
1194 * target.h (struct target_ops): Remove DONT_USE.
1195 (target_next): Remove macro.
1196
1197 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1198
1199 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1200
1201 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1202
1203 * arm-tdep.c (convert_from_extended): New argument to hold the
1204 type of floating point result we want to convert to. Make input
1205 argument const. Fix all callers.
1206 (convert_to_extended): Similarly.
1207 (arm_extract_return_value): Now takes a regcache argument. Change
1208 code to use regcache accessor functions. Correctly extract
1209 smaller-than-word results on big-endian machines.
1210 (arm_store_return_value): Now takes a regcache argument. Change
1211 code to use regcache accessor functions. Correctly zero/sign extend
1212 smaller than word results before storing into r0.
1213 (arm_gdbarch_init): Register new-style extract_return_value and
1214 store_return_value functions.
1215
1216 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1217
1218 * thread-db.c (thread_from_lwp): Uniquify error msg.
1219 (lwp_from_thread): Ditto.
1220 (check_event): Ditto.
1221 (find_new_threads_callback): Ditto.
1222 (thread_db_pid_to_str): Ditto.
1223
1224 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1225
1226 * frame.h (get_frame_saved_regs): Declare.
1227 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1228 pointer.
1229 * frame.c (get_frame_saved_regs): New function.
1230 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1231
1232 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1233
1234 * frame.c (deprecated_update_current_frame_pc_hack): New
1235 function.
1236 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1237 * infrun.c (normal_stop): Use said function instead of directly
1238 modifying the frame's PC.
1239
1240 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1241
1242 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1243
1244 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1245
1246 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1247 config/mips/tm-irix6.h (NUM_REGS): Delete.
1248 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1249 (temp_saved_regs): Declare as a pointer rather than an array.
1250 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1251 that ``temp_saved_regs'' has storage allocated to it and that
1252 it's the correct size.
1253
1254 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1255
1256 * defs.h (init_last_source_visited): New prototype.
1257 (add_path): Ditto.
1258 * source.c (add_path): New function that adds to a specified path.
1259 (mod_path): Change to call add_path.
1260 (init_last_source_visited): New function to allow interfaces to
1261 initialize static variable: last_source_visited. Part of fix
1262 for PR gdb/741.
1263 * Makefile.in: Add support for mi/mi-cmd-env.c.
1264
1265 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1266
1267 * frame.h (frame_id_unwind): Declare.
1268 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1269 id_unwind_cache.
1270 (frame_id_unwind_ftype): Declare.
1271 * frame.c (frame_id_unwind): New function.
1272 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1273 (create_new_frame, get_prev_frame): Pass id_unwind to
1274 set_unwind_by_pc.
1275 (frame_saved_regs_id_unwind): New function.
1276 (frame_saved_regs_id_unwind): New function.
1277 * dummy-frame.c (dummy_frame_id_unwind): New function.
1278 (struct dummy_frame): Add field id.
1279 (generic_push_dummy_frame): Initialize `id'.
1280 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1281
1282 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1283
1284 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1285 pass that to set_momentary_breakpoint. Move comments to where they
1286 belong.
1287 * frame.h (set_current_frame): Delete declaration.
1288 * frame.c (set_current_frame): Delete function.
1289
1290 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1291
1292 * frame.c (frame_extra_info_zalloc): New function.
1293 * frame.h (frame_extra_info_zalloc): Declare.
1294
1295 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1296
1297 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1298 in the previous prototype change to set_momentary_breakpoint.
1299
1300 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1301
1302 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1303 and saw_child_exec.
1304 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1305 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1306 (stop_stepping): Remove outdated check for child vfork events.
1307
1308 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1309
1310 * GDB 5.3 released from gdb_5_3-branch.
1311
1312 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1313
1314 * corelow.c (init_core_ops): Delete references to to_require_attach
1315 and to_require_detach.
1316 * exec.c (init_exec_ops): Likewise.
1317 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1318 hppa_require_detach directly.
1319 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1320 * inftarg.c (child_detach): Remove.
1321 (child_detach_from_process): Rename to child_detach, remove
1322 after_fork argument.
1323 (child_attach): Remove.
1324 (child_attach_to_process): Rename to child_attach, remove after_fork
1325 argument.
1326 (init_child_ops): Delete references to to_require_attach
1327 and to_require_detach.
1328 * infttrace.c (hppa_require_attach): Update comment.
1329 * target.c (cleanup_target, update_current_target)
1330 (init_dummy_target, setup_target_debug): Delete references to
1331 to_require_attach and to_require_detach.
1332 (find_default_require_detach, find_default_require_attach)
1333 (debug_to_require_attach, debug_to_require_detach): Remove
1334 functions.
1335 * target.h (struct target_ops): Remove to_require_attach
1336 and to_require_detach.
1337 (target_require_attach, target_require_detach): Delete macros.
1338 (find_default_require_detach, find_default_require_attach): Delete
1339 prototypes.
1340 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1341
1342 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1343
1344 * frame.c (get_frame_extra_info): New function.
1345 * frame.h (get_frame_extra_info): Declare.
1346
1347 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1348
1349 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1350 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1351 with `struct frame_id'.
1352 (set_longjmp_resume_breakpoint): Ditto.
1353 * infrun.c (handle_inferior_event): Update.
1354 * breakpoint.c (watch_command_1, until_break_command): Update.
1355 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1356 (handle_inferior_event, step_over_function): Update.
1357 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1358 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1359 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1360 * infcmd.c (finish_command, run_stack_dummy): Update.
1361
1362 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1363
1364 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1365 (dwarf2_non_const_array_bound_ignored)
1366 (dwarf2_missing_line_number_section)
1367 (dwarf2_statement_list_fits_in_line_number_section)
1368 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1369 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1370 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1371 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1372 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1373 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1374 (dwarf2_missing_member_fn_type_complaint)
1375 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1376 (dwarf2_const_value_length_mismatch)
1377 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1378 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1379 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1380 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1381 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1382 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1383 complaints using deprecated struct..
1384 (dwarf2_non_const_array_bound_ignored_complaint)
1385 (dwarf2_complex_location_expr_complaint)
1386 (dwarf2_unsupported_at_frame_base_complaint)
1387 (dwarf2_const_value_length_mismatch_complaint)
1388 (dwarf2_macros_too_long_complaint)
1389 (dwarf2_macro_malformed_definition_complaint)
1390 (dwarf2_invalid_attrib_class_complaint): New functions.
1391 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1392 (read_structure_scope, read_array_type, read_common_block)
1393 (read_tag_pointer_type, read_base_type, read_partial_die)
1394 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1395 (new_symbol, dwarf2_const_value, read_type_die)
1396 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1397 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1398 complain() with, possibly indirect, calls to complaint().
1399
1400 2002-12-11 Andrew Cagney <cagney@redhat.com>
1401
1402 * frame.c (deprecated_get_frame_saved_regs): Rename
1403 get_frame_saved_regs.
1404 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1405 * sparc-tdep.c: Update.
1406 * hppa-tdep.c: Update.
1407 * h8500-tdep.c: Update.
1408
1409 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1410
1411 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1412 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1413 ``char *'' for return and parameter types.
1414 * gdbarch.h, gdbarch.c: Regenerate.
1415 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1416 return type from ``char *'' to ``const char *''.
1417 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1418 const.
1419
1420 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1421
1422 * i386-tdep.c: Include "dummy-frame.h".
1423 (i386_frame_chain, i386_frame_saved_pc): Replace
1424 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1425 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1426
1427 2002-12-10 Andrew Cagney <cagney@redhat.com>
1428
1429 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1430 Change to a function with predicate.
1431 * gdbarch.h, gdbarch.c: Re-generate.
1432 * frame.c (get_prev_frame): Update. Test
1433 DEPRECATED_INIT_FRAME_PC_P.
1434 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1435 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1436 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1437 * alpha-tdep.c (alpha_gdbarch_init): Update.
1438 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1439 * mips-tdep.c (mips_gdbarch_init): Update.
1440 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1441 * arm-tdep.c: Update comments.
1442 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1443 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1444 * frv-tdep.c (frv_gdbarch_init): Ditto.
1445 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1447 * s390-tdep.c (s390_gdbarch_init): Ditto.
1448 * v850-tdep.c (v850_gdbarch_init): Ditto.
1449 * vax-tdep.c (vax_gdbarch_init): Ditto.
1450 * sh-tdep.c (sh_gdbarch_init): Ditto.
1451 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1453 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1455 * i386-tdep.c (i386_gdbarch_init): Ditto.
1456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1457 * cris-tdep.c (cris_gdbarch_init): Ditto.
1458 * avr-tdep.c (avr_gdbarch_init): Ditto.
1459 * arm-tdep.c (arm_gdbarch_init): Ditto.
1460 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1461 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1462
1463 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1464
1465 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1466 CHILD_FOLLOW_FORK.
1467 * hppah-nat.c (saved_vfork_pid): Add.
1468 (child_post_follow_vfork): Remove.
1469 (child_follow_fork): New function.
1470 (child_wait): Call detach_breakpoints after receiving the child vfork.
1471 Call child_resume directly instead of going through resume ().
1472 Make sure we have the exec before reporting the vfork.
1473 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1474 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1475 (follow_fork): New function. Call target_follow_fork.
1476 (follow_inferior_reset_breakpoints): New function broken out from
1477 old follow_inferior_fork.
1478 (resume): Remove hack to follow exec after vfork.
1479 * inftarg.c (child_post_follow_vfork): Remove.
1480 (child_follow_fork): New function.
1481 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1482 * target.c (cleanup_target): Replace to_post_follow_vfork with
1483 to_follow_fork.
1484 (update_current_target): Likewise.
1485 (setup_target_debug): Likewise.
1486 (debug_to_post_follow_vfork): Remove.
1487 (debug_to_follow_fork): New function.
1488 * target.h (struct target_ops): Replace to_post_folow_vfork with
1489 to_follow_fork.
1490 (child_post_follow_vfork): Remove prototype.
1491 (child_follow_fork): Add prototype.
1492 (target_post_follow_vfork): Remove macro.
1493 (target_follow_fork): Add macro.
1494
1495 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1496
1497 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1498 (child_post_follow_vfork): Cancel pending exec event if we follow
1499 the parent.
1500 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1501 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1502 event at the following wait call if necessary.
1503 * infrun.c (follow_vfork): Don't follow_exec here.
1504 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1505 case about HP/UX 10.20. Remove code pushed down to
1506 hppah-nat.c:child_wait.
1507 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1508 vfork_in_flight is set.
1509
1510 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1511
1512 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1513 for the parent's fork event.
1514 * infrun.c (handle_inferior_event): Only expect one fork event.
1515 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1516 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1517
1518 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1519
1520 * PROBLEMS: Delete reference to PR gdb/725.
1521
1522 * MAINTAINERS (gdb.c++): Add David Carlton.
1523
1524 2002-12-09 David Carlton <carlton@math.stanford.edu>
1525
1526 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1527 * cli/cli-cmds.c: Ditto.
1528
1529 2002-12-09 Andrew Cagney <cagney@redhat.com>
1530
1531 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1532 function address in <>.
1533 * gdbarch.c: Re-generate.
1534
1535 2002-12-09 David Carlton <carlton@math.stanford.edu>
1536
1537 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1538
1539 2002-12-09 David Carlton <carlton@math.stanford.edu>
1540
1541 * linespec.c (symtab_from_filename): New function.
1542 (decode_line_1): Move code into symtab_from_filename.
1543
1544 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1545
1546 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1547
1548 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1549
1550 * f-valprint.c (info_common_command): Use get_frame_pc.
1551 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1552 * ax-gdb.c (agent_command): Ditto.
1553 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1554 (rs6000_pop_frame): Ditto.
1555 (rs6000_frameless_function_invocation): Ditto.
1556 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1557 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1558 * macroscope.c (default_macro_scope): Ditto.
1559 * stack.c (print_frame_info_base): Ditto.
1560 (print_frame, frame_info, print_frame_label_vars): Ditto.
1561 (return_command, func_command, get_frame_language): Ditto.
1562 * infcmd.c (finish_command): Ditto.
1563 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1564 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1565 (break_at_finish_at_depth_command_1): Ditto.
1566 (break_at_finish_command_1): Ditto.
1567 (until_break_command, get_catch_sals): Ditto.
1568 * blockframe.c (func_frame_chain_valid): Ditto.
1569 (frameless_look_for_prologue): Ditto.
1570 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1571
1572 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1573
1574 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1575 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1576
1577 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1578
1579 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1580 to pure functions.
1581 * gdbarch.h, gdbarch.c: Re-generate.
1582 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1583 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1584
1585 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1586 declaration to a function returning a CORE_ADDR.
1587 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1588 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1589 (init_frame_pc_default): Ditto.
1590 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1591 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1592 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1593 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1594 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1595 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1596
1597 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1598 to init_frame_pc_noop.
1599 (i386_interix_init_frame_pc): Delete function.
1600 * z8k-tdep.c (init_frame_pc): Delete function.
1601 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1602 (INIT_FRAME_PC_FIRST): Ditto.
1603 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1604 (INIT_FRAME_PC_FIRST): Ditto.
1605 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1606 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1607 init_frame_pc_noop.
1608 (INIT_FRAME_PC_FIRST): Convert to an expression.
1609 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1610
1611 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1612
1613 * blockframe.c: Use get_frame_base instead of directly accessing
1614 the `struct frame_info' member frame.
1615 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1616 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1617
1618 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1619
1620 * Makefile.in (readline_h): Define.
1621 (completer.o): Depend on readline_h.
1622 (corelow.o): Ditto.
1623 (event-top.o): Ditto.
1624 (exec.o): Ditto.
1625 (solib.o): Ditto.
1626 (source.o): Ditto.
1627 (symfile.o): Ditto.
1628 (symmisc.o): Ditto.
1629 (top.o): Ditto.
1630 (tracepoint.o): Ditto.
1631 (utils.o): Ditto.
1632 (cli-dump.o): Ditto.
1633 (tui-hooks.o): Ditto.
1634 (tuiWin.o): Ditto.
1635
1636 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1637
1638 More cleanup from import of readline 4.3.
1639 * completer.h (complete_line, readline_line_completion_function):
1640 Update prototypes.
1641 (line_completion_function): Removed, not used outside of completer.c.
1642 * completer.c (readline_line_completion_function,
1643 complete_function, line_completion_function): Use const for first
1644 parameter.
1645 (line_completion_function): Make static.
1646 (filename_completer): filename_completion_function is now called
1647 rl_filename_completion_function
1648 * corelow.c: Include <readline/readline.h>.
1649 * exec.c: Ditto.
1650 * solib.c: Ditto.
1651 * source.c: Ditto.
1652 * symfile.c: Ditto.
1653 * symmisc.c: Ditto.
1654 * top.c (init_main): No need to coerce
1655 readline_line_completion_function anymore.
1656 * cli/cli-dump.c: Include <readline/readline.h>.
1657
1658 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1659
1660 * stack.c (frame_info): Use get_prev_frame.
1661 * blockframe.c (frame_address_in_block): Ditto.
1662 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1663 (rs6000_frameless_function_invocation): Ditto.
1664 (rs6000_frame_saved_pc): Ditto.
1665 (rs6000_frame_chain): Ditto.
1666 * arch-utils.c (init_frame_pc_default): Ditto.
1667
1668 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1669
1670 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1671 Delete redundant definition.
1672
1673 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1674
1675 Import of readline 4.3:
1676 * cli/cli-cmds.c: Include readline/tilde.h.
1677 * cli/cli-setshow.c: Ditto.
1678 * defs.h: Don't declare tilde_expand anymore, since readline
1679 exports it.
1680
1681 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1682
1683 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1684 -Werror on this file.
1685
1686 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1687
1688 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1689 the format name.
1690 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1691 * gdbarch.c: Regenerate.
1692
1693 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1694
1695 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1696 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1697 provide a default value.
1698 * gdbarch.h, gdbarch.c: Regenerate.
1699 * frame.c (get_prev_frame): Update. Check
1700 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1701 * s390-tdep.c (s390_gdbarch_init): Update.
1702 * mips-tdep.c (mips_gdbarch_init): Update.
1703 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1704 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1705 * alpha-tdep.c (alpha_gdbarch_init): Update.
1706
1707 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1708
1709 * ia64-linux-nat.c: Include gdb_string.h.
1710 * alpha-nat.c: Ditto.
1711 * ppc-linux-nat.c: Ditto.
1712 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1713 Update dependencies.
1714
1715 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1716
1717 * gdbthread.h: Include "frame.h".
1718 (struct thread_info): Replace step_frame_address with
1719 step_frame_id.
1720 * inferior.h: Include "frame.h".
1721 (step_frame_id): Replace external variable step_frame_address.
1722 * gdbthread.h (save_infrun_state): Replace step_frame_address
1723 parameter with step_frame_id parameter.
1724 (load_infrun_state): Ditto.
1725 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1726 * infcmd.c (step_frame_id, step_1, step_once): Update.
1727 * thread.c (load_infrun_state, save_infrun_state): Update.
1728 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1729 (handle_inferior_event, step_over_function): Update.
1730 (normal_stop, context_switch, restore_inferior_status): Update.
1731 (struct inferior_status): Replace step_frame_address with
1732 step_frame_id.
1733
1734 2002-12-05 David Carlton <carlton@math.stanford.edu>
1735
1736 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1737 DW_TAG_member as well as a declaration as being a C++ static data
1738 member.
1739 (read_structure_scope): Combine tests for DW_TAG_member and
1740 DW_TAG_variable.
1741
1742 2002-12-05 David Carlton <carlton@math.stanford.edu>
1743
1744 * linespec.c (decode_compound): New function.
1745 (decode_line_1): Move code into decode_compound.
1746
1747 2002-12-05 David Carlton <carlton@math.stanford.edu>
1748
1749 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1750 argument.
1751 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1752 the static block. See PR gdb/804.
1753
1754 2002-12-05 David Carlton <carlton@math.stanford.edu>
1755
1756 * symtab.c (lookup_symbol_aux_block): New function.
1757 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1758
1759 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1760
1761 * gdbarch.sh: Dump the predicate function and macro values.
1762 (read): Print error on standard error.
1763 * gdbarch.c: Regenerate.
1764
1765 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1766
1767 * Makefile.in (mips_tdep_h): Define.
1768 (mips-tdep.o): Add mips_tdep_h to dependency list.
1769 * mips-tdep.h: New file.
1770 * mips-tdep.c (mips-tdep.h): Include.
1771 (enum mips_abi): Move to mips-tdep.h.
1772 (mips_abi): New function.
1773
1774 2002-12-04 David Carlton <carlton@math.stanford.edu>
1775
1776 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1777
1778 2002-12-04 David Carlton <carlton@math.stanford.edu>
1779
1780 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1781 function.
1782 (lookup_symbol_aux_minsyms): New function.
1783
1784 2002-12-04 J. Brobecker <brobecker@gnat.com>
1785
1786 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1787
1788 2002-12-04 J. Brobecker <brobecker@gnat.com>
1789
1790 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1791 which is an obsolete macro name.
1792
1793 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1794
1795 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1796 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1797
1798 2002-12-03 H.J. Lu (hjl@gnu.org)
1799
1800 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1801 (create_breakpoints): Make sure the addr_string field is not
1802 NULL.
1803
1804 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1805
1806 * sparc-nat.c (fetch_inferior_registers)
1807 (store_inferior_registers): Add comment on problem of LWP vs
1808 threads.
1809
1810 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1811 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1812 (lin_lwp_store_registers): Remove.
1813 (init_lin_lwp_ops): Use fetch_inferior_registers
1814 and store_inferior_registers directly.
1815 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1816 (store_inferior_registers): Likewise.
1817 Fix PR gdb/725.
1818
1819 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1820
1821 * frame.h (get_frame_id): Convert to a function.
1822 (null_frame_id, frame_id_p): Declare.
1823 (frame_id_eq, frame_id_inner): Declare.
1824 (frame_id_build): New function.
1825 * frame.c (get_frame_id): Update. Use null_frame_id.
1826 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1827 frame_id_inner.
1828 (null_frame_id, frame_id_p): Define.
1829 (frame_id_eq, frame_id_inner): Define.
1830 (frame_id_build): New function.
1831 * varobj.c (varobj_create): Update.
1832 (varobj_update): Update.
1833 * valops.c (value_assign): Update.
1834 (new_root_variable): Update.
1835 * infrun.c (save_inferior_status): Update.
1836 * breakpoint.c (watch_command_1): Update.
1837
1838 2002-12-03 J. Brobecker <brobecker@gnat.com>
1839
1840 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1841 (SNAP2): Likewise.
1842
1843 2002-12-03 Andrew Cagney <cagney@redhat.com>
1844
1845 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1846 patch.
1847
1848 * PROBLEMS: Mention PR gdb/725.
1849
1850 2002-12-03 Andreas Schwab <schwab@suse.de>
1851
1852 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1853
1854 2002-12-02 Adam Fedor <fedor@gnu.org>
1855 Klee Dienes <kdienes@apple.com>
1856
1857 * objc-lang.c (objc_printstr): Add width arg to match
1858 printstr prototype.
1859 (compare_selectors): Add 'const' to arg types.
1860 (compare_classes): Likewise.
1861 (find_imps): Cast msym pointer to avoid compiler warning.
1862 (print_object_command): Validate the address before
1863 passing it to the print routine.
1864 (find_objc_msgcall_submethod): Change function argument to
1865 return an int.
1866 * objc-lang.h: Add 'extern' to all function declarations.
1867 (value_nsstring): Add declaration.
1868
1869 2002-12-02 J. Brobecker <brobecker@gnat.com>
1870
1871 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1872 Fixes a build failure on HP/UX.
1873
1874 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1875 failure on HP/UX.
1876 (hpread_has_name): Advance declaration to avoid a compilation warning.
1877 (pst_syms_count): Add missing variable type. By change, the compiler
1878 was defaulting to int, which seems a good choice. Fixes a compilation
1879 warning.
1880 (pst_syms_size): Likewise.
1881
1882 2002-12-02 J. Brobecker <brobecker@gnat.com>
1883
1884 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1885 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1886 later to set the proper gdbarch methods depending on the osabi.
1887 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1888
1889 2002-12-02 J. Brobecker <brobecker@gnat.com>
1890
1891 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1892 * osabi.c (gdb_osabi_name): Add strings images for the two new
1893 enum values.
1894 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1895
1896 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1897
1898 * MAINTAINERS (Java): Global maintainers are responible for Java.
1899 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1900 part Java maintainers.
1901
1902 2002-12-02 J. Brobecker <brobecker@gnat.com>
1903
1904 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1905 Fixes a compilation failure on AiX.
1906
1907 2002-12-02 J. Brobecker <brobecker@gnat.com>
1908
1909 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1910 why aix-thread.o is not listed.
1911
1912 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1913
1914 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1915 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1916 * gdbarch.h, gdbarch.c: Re-generate.
1917 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1918 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1919 * config/pa/tm-hppa.h, frame.h: Update.
1920 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1921 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1922 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1923 * cris-tdep.c, alpha-tdep.c: Update.
1924 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1925 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1926 (get_prev_frame): Ditto.
1927
1928 2002-11-30 Andrew Cagney <cagney@redhat.com>
1929
1930 * exec.c (xfer_memory): Replace boolean with int.
1931 * p-exp.y: Use 0 instead of false.
1932 * corelow.c (gdb_check_format): Change return type to int from
1933 boolean.
1934 * utils.c: Don't include <curses.h> or <term.h> first.
1935
1936 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1937
1938 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1939 (m68hc11_register_byte): Remove.
1940 (m68hc11_gdbarch_init): Don't set the above.
1941
1942 2002-11-29 Andrew Cagney <cagney@redhat.com>
1943
1944 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1945 by calling get_selected_frame.
1946 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1947 set_current_frame, create_new_frame, select_frame and
1948 get_current_frame.
1949 * remote-e7000.c (e7000_start_remote): Ditto.
1950 * remote-mips.c (common_open): Ditto
1951 * remote-rdp.c (remote_rdp_open): Ditto.
1952
1953 2002-11-29 Andreas Schwab <schwab@suse.de>
1954
1955 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1956 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1957 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1958 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1959 read_memory_unsigned_integer instead of read_memory_integer when
1960 dealing with addresses and instruction opcodes.
1961 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1962 (m68k_linux_frame_saved_pc): Likewise.
1963
1964 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1965
1966 * stack.c (selected_frame, select_frame): Move from here ...
1967 * frame.c (selected_frame, select_frame): ... to here. Include
1968 "language.h".
1969 * Makefile.in (frame.o): Update dependencies.
1970 * frame.c (get_selected_frame): New function.
1971 * frame.h (get_selected_frame): Declare.
1972 (deprecated_selected_frame): Rename selected_frame.
1973 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1974 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1975 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1976 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1977 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1978 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1979 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1980 * z8k-tdep.c, cli/cli-cmds.c: Update.
1981
1982 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1983
1984 * frame.h (get_selected_block): Add comments.
1985
1986 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1987
1988 * frame.c (pc_notcurrent): New function.
1989 (find_frame_sal): New function.
1990 * frame.h (find_frame_sal): Declare.
1991 (struct symtab_and_line): Add opaque declaration.
1992 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1993 find_pc_line.
1994 (frame_info): Ditto.
1995 * ada-lang.c (find_printable_frame): Ditto.
1996
1997 2002-11-28 J. Brobecker <brobecker@gnat.com>
1998
1999 * configure.in: Check that the pthdebug library is recent enough
2000 before enabling thread support on native AiX.
2001 * configure: Regenerate.
2002
2003 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
2004 from the list of object files as it is now appended by configure
2005 if thread support is enabled.
2006 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
2007 if thread support is enabled.
2008
2009 2002-11-28 Andrew Cagney <cagney@redhat.com>
2010
2011 * stack.c (get_selected_block): In-line get_current_block.
2012 * frame.h (get_current_block): Delete declaration.
2013 * blockframe.c (get_current_block): Delete function.
2014
2015 2002-11-28 Andrew Cagney <ac131313@redhat.com>
2016
2017 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
2018 USE_GENERIC_DUMMY_FRAMES.
2019 * gdbarch.h, gdbarch.c: Regenerate.
2020 * valops.c, frame.c: Update.
2021 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
2022 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
2023 * config/pa/tm-hppa.h, blockframe.c: Update.
2024 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
2025 * m68k-tdep.c, alpha-tdep.c: Ditto.
2026
2027 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
2028 * mips-tdep.c: Ditto.
2029
2030 2002-11-27 Andrew Cagney <ac131313@redhat.com>
2031
2032 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
2033 (USE_GENERIC_DUMMY_FRAMES): Default to true.
2034 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
2035 * gdbarch.c, gdbarch.h: Re-generate.
2036 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
2037 (CALL_DUMMY_LOCATION): Delete macro definition.
2038 (PC_IN_CALL_DUMMY): Delete macro definitions.
2039
2040 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
2041 default is already generic_pc_in_call_dummy.
2042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2043 * v850-tdep.c (v850_gdbarch_init): Ditto.
2044 * sh-tdep.c (sh_gdbarch_init): Ditto.
2045 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2046 * mips-tdep.c (mips_gdbarch_init): Ditto.
2047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2048 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2049 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2051 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2052 * avr-tdep.c (avr_gdbarch_init): Ditto.
2053
2054 * arm-tdep.c (arm_gdbarch_init): Do not set
2055 use_generic_dummy_frames, default is already 1.
2056 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2057 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2058 * v850-tdep.c (v850_gdbarch_init): Ditto.
2059 * sh-tdep.c (sh_gdbarch_init): Ditto.
2060 * s390-tdep.c (s390_gdbarch_init): Ditto.
2061 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2062 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2063 * mips-tdep.c (mips_gdbarch_init): Ditto.
2064 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2066 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2067 * i386-tdep.c (i386_gdbarch_init): Ditto.
2068 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2069 * frv-tdep.c (frv_gdbarch_init): Ditto.
2070 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2071 * cris-tdep.c (cris_gdbarch_init): Ditto.
2072 * avr-tdep.c (avr_gdbarch_init): Ditto.
2073
2074 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2075 call_dummy_location, default is already AT_ENTRY_POINT.
2076 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2077 * v850-tdep.c (v850_gdbarch_init): Ditto.
2078 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2079 * sh-tdep.c (sh_gdbarch_init): Ditto.
2080 * s390-tdep.c (s390_gdbarch_init): Ditto.
2081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2082 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2083 * mips-tdep.c (mips_gdbarch_init): Ditto.
2084 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2085 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2086 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2087 * i386-tdep.c (i386_gdbarch_init): Ditto.
2088 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2089 * frv-tdep.c (frv_gdbarch_init): Ditto.
2090 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2091 * cris-tdep.c (cris_gdbarch_init): Ditto.
2092 * avr-tdep.c (avr_gdbarch_init): Ditto.
2093 * arm-tdep.c (arm_gdbarch_init): Ditto.
2094 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2095
2096 2002-11-28 Andrew Cagney <cagney@redhat.com>
2097
2098 * frame.h: Update comments on set_current_frame, create_new_frame,
2099 flush_cached_frames, reinit_frame_cache, select_frame and
2100 selected_frame.
2101
2102 2002-11-27 Andrew Cagney <cagney@redhat.com>
2103
2104 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2105 deprecated pc_in_call_dummy function.
2106 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2107 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2108 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2109 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2110 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2111
2112 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2113
2114 * Makefile.in: Remove Tix dependencies.
2115 * acinclude.m4: Ditto.
2116 * aclocal.m4: Ditto.
2117 * configure.in: Ditto.
2118 * configure: Regenerated.
2119
2120 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2121
2122 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2123 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2124 * gdbarch.c: Re-generate.
2125
2126 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2127
2128 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2129 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2130 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2131 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2132 pc_in_call_dummy_at_entry_point.
2133 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2134 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2135 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2136 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2137 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2138 pc_in_call_dummy_on_stack.
2139 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2140 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2141 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2142 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2143 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2144
2145 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2146
2147 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2148 pc_in_call_dummy_before_text_end
2149 (deprecated_pc_in_call_dummy_after_text_end): Rename
2150 pc_in_call_dummy_after_text_end.
2151 (deprecated_pc_in_call_dummy_on_stack): Rename
2152 pc_in_call_dummy_on_stack.
2153 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2154 pc_in_call_dummy_at_entry_point.
2155 * m68k-tdep.c (m68k_gdbarch_init): Update.
2156 * s390-tdep.c (s390_gdbarch_init): Update.
2157 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2158 * vax-tdep.c (vax_gdbarch_init): Update.
2159 * sparc-tdep.c (sparc_gdbarch_init): Update.
2160 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2162 * i386-tdep.c (i386_gdbarch_init): Update.
2163 * frv-tdep.c (frv_gdbarch_init): Update.
2164 * cris-tdep.c (cris_gdbarch_init): Update.
2165 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2166 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2167 (deprecated_pc_in_call_dummy_after_text_end)
2168 (deprecated_pc_in_call_dummy_on_stack)
2169 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2170 * alpha-tdep.c (alpha_gdbarch_init): Update.
2171
2172 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2173
2174 * acconfig.h (HAVE_PREAD64): Add.
2175 * configure.in: Check for pread64.
2176 * config.in: Regenerated.
2177 * configure: Regenerated.
2178 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2179 * linux-proc.c (linux_proc_xfer_memory): New function.
2180 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2181
2182 2002-11-25 David Carlton <carlton@math.stanford.edu>
2183
2184 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2185 pdi's with no name.
2186
2187 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2188
2189 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2190 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2191
2192 2002-11-25 Jim Blandy <jimb@redhat.com>
2193
2194 * symfile.c (init_objfile_sect_indices): New function.
2195 (default_symfile_offsets): Move the section-index-initializing
2196 stuff into init_objfile_sect_indices, and call that.
2197
2198 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2199 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2200
2201 * symfile.c (syms_from_objfile): Adjust indentation.
2202
2203 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2204 || info_verbose isn't true.
2205
2206 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2207
2208 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2209 default to get_frame_base.
2210 * gdbarch.h, gdbarch.c: Regenerate.
2211 * arch-utils.c (default_frame_address): Delete function.
2212 * arch-utils.h (default_frame_address): Delete declaration
2213
2214 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2215
2216 * varobj.c (find_frame_addr_in_frame_chain):
2217 Use get_frame_base instead of FRAME_FP,
2218 obvious fix.
2219
2220 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2221
2222 * frame.h (FRAME_FP): Delete macro.
2223 (get_frame_base): New function declaration.
2224 * frame.c (get_frame_base): New function.
2225 (get_frame_id): Use ->frame.
2226 (frame_find_by_id): Rewrite to use get_frame_id.
2227 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2228 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2229 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2230 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2231 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2232 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2233 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2234
2235 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2236
2237 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2238
2239 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2240
2241 * frame.c (set_unwind_by_pc): Revert change below, use
2242 PC_IN_CALL_DUMMY.
2243 (get_prev_frame): Ditto.
2244
2245 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2246
2247 * dummy-frame.c (pc_in_dummy_frame): New function.
2248 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2249 (find_dummy_frame): Update comment.
2250 (generic_pop_current_frame): Use get_frame_type.
2251 * dummy-frame.h (pc_in_dummy_frame): Declare.
2252 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2253 (create_new_frame): Use pc_in_dummy_frame.
2254 (get_prev_frame): Use pc_in_dummy_frame.
2255 (frame_saved_regs_register_unwind): Use get_prev_frame.
2256 (deprecated_generic_get_saved_register): Use get_prev_frame.
2257
2258 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2259
2260 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2261 from here ...
2262 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2263 (varobj_create): Note that frame ID should be used.
2264 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2265
2266 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2267
2268 * breakpoint.c: Include "gdb_assert.h".
2269 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2270 not being used.
2271 * Makefile.in (breakpoint.o): Update dependencies.
2272 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2273 deprecated_frame_in_dummy.
2274 * stack.c (print_frame_info_base): Ditto.
2275 (frame_info): Ditto.
2276 (print_frame_info_base): Ditto. Delete dead code.
2277
2278 2002-11-23 Andreas Schwab <schwab@suse.de>
2279
2280 * Makefile.in (m68k_tdep_h): Define.
2281 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2282 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2283 * m68k-tdep.c: Move register number enum ...
2284 * m68k-tdep.h: ... to this new file and rename the constants from
2285 E_* to M68K_*. All uses changed.
2286 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2287 * abug-rom.c: Include "m68k-tdep.h". Use
2288 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2289 * cpu32bug-rom.c: Likewise.
2290 * dbug-rom.c: Likewise.
2291 * m68k-tdep.c: Likewise.
2292 * m68klinux-nat.c: Likewise.
2293 * remote-est.c: Likewise.
2294 * rom68k-rom.c: Likewise.
2295 * config/m68k/tm-linux.h: Likewise.
2296
2297 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2298
2299 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2300 dummy frame initialization code.
2301 * mips-tdep.c (mips_gdbarch_init): Ditto.
2302
2303 2002-11-22 Christopher Faylor <cgf@redhat.com>
2304
2305 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2306 attach will hang.
2307
2308 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2309
2310 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2311 to default_frame_address.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313
2314 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2315 or frame_locals_address to default_frame_address.
2316 * m68k-tdep.c (m68k_gdbarch_init): Update.
2317 * i386-tdep.c (i386_gdbarch_init): Update.
2318 * frv-tdep.c (frv_gdbarch_init): Update.
2319 * sh-tdep.c (sh_gdbarch_init): Update.
2320 * v850-tdep.c (v850_gdbarch_init): Update.
2321 * sparc-tdep.c (sparc_gdbarch_init): Update.
2322 * mips-tdep.c (mips_gdbarch_init): Update.
2323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2324 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2326
2327 * cris-tdep.c (cris_frame_args_address): Delete function.
2328 (cris_frame_locals_address): Delete function.
2329 (cris_gdbarch_init): Do not set frame_args_address or
2330 frame_locals_address.
2331
2332 2002-11-22 Michael Snyder <msnyder@redhat.com>
2333
2334 * thread-db.c (thread_db_load): Tell the user what's going on
2335 if dlopen fails on libthread_db.
2336
2337 2002-11-23 Andreas Schwab <schwab@suse.de>
2338
2339 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2340 invariant return values.
2341
2342 2002-11-22 Andreas Schwab <schwab@suse.de>
2343
2344 * valops.c (value_slice): Move declaration of `offset' to avoid
2345 warning.
2346
2347 2002-11-22 Christopher Faylor <cgf@redhat.com>
2348
2349 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2350 (struct so_stuff): Add end_addr field.
2351 (register_loaded_dll): Calculate and store end address of loaded dll.
2352 (solib_address): New function.
2353 (child_solib_loaded_library_pathname): Pass carefully constructed
2354 section info to safe_symbol_file_add rather than ignoring it.
2355 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2356 DLL is loaded.
2357 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2358 (child_create_inferior): Fix a compiler warning.
2359 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2360 (solib_address): Declare new function.
2361
2362 2002-11-22 Andreas Schwab <schwab@suse.de>
2363
2364 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2365 and FPS registers.
2366
2367 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2368
2369 * maint.c (_initialize_maint_cmds): Fix typo. From
2370 Francesco Potorti` <pot@gnu.org>.
2371
2372 2002-11-21 Andrew Cagney <cagney@redhat.com>
2373
2374 * mips-tdep.c (mips_dump_tdep): Delete references to
2375 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2376 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2377 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2378 * printcmd.c (build_address_symbolic): Delete calls to
2379 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2380 (address_info): Ditto.
2381 Fix PR gdb/773.
2382
2383 2002-11-19 Klee Dienes <kdienes@apple.com>
2384 Adam Fedor <fedor@gnu.org>
2385
2386 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2387 the ability to explicitly specify the quote characters and word
2388 break characters; if NULL is specified for either, use the old
2389 behavior of using the characters used by the completer.
2390 (skip_chars): New function. Convenience wrapper around
2391 skip_quoted_chars to provide the original skip_chars behavior.
2392 * completer.h (skip_quoted_chars): Add prototype.
2393
2394 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2395
2396 Problems reported by Paul Eggert.
2397 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2398
2399 2002-11-19 Andreas Schwab <schwab@suse.de>
2400
2401 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2402 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2403 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2404 (m68k_linux_frame_saved_pc): Move to ...
2405 * m68klinux-tdep.c: ... here. New file.
2406 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2407 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2408
2409 2002-11-19 Adam Fedor <fedor@gnu.org>
2410
2411 * objc-exp.y: Revert to old skip_quoted usage.
2412
2413 2002-11-19 Adam Fedor <fedor@gnu.org>
2414
2415 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2416 (objc_lang_h): Define.
2417 (YYFILES): Add objc-exp.tab.c.
2418 (local-maintainer-clean): Remove objc-exp.tab.c.
2419 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2420
2421 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2422
2423 * p-exp.y (typecast rule): Add automatic dereference of
2424 pascal classes if needed.
2425 (THIS): Set current_type.
2426 Automatically dereference pascal classes.
2427 (typebase rule): Add ^typebase recognition.
2428
2429 2002-11-18 Adam Fedor <fedor@gnu.org>
2430
2431 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2432 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2433 (op_name): Handle OP_OBJC_SELF.
2434 * Makefile.in (expprint.o): Add additional depends.
2435
2436 2002-11-18 Adam Fedor <fedor@gnu.org>
2437
2438 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2439 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2440 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2441 * objc-exp.y: Likewise.
2442
2443 2002-11-18 Adam Fedor <fedor@gnu.org>
2444
2445 * gdb/parser-defs.h: (struct objc_class_str): New structure
2446 for parsing ObjC classes.
2447
2448 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2449
2450 * stack.c (frame_relative_level): Copy function from here ...
2451 * frame.c (frame_relative_level): ...to here.
2452
2453 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2454
2455 * frame.h (enum frame_type): Define.
2456 (get_frame_type): Declare.
2457 (struct frame_info): Add field `type'. Delete field
2458 signal_handler_caller.
2459 (deprecated_set_frame_signal_handler_caller): Declare.
2460 * frame.c (get_frame_type): New function.
2461 (deprecated_set_frame_type): New function.
2462 (create_new_frame): Set the frame's type.
2463 (get_prev_frame): Similar.
2464 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2465 * s390-tdep.c: Ditto.
2466 * m68klinux-nat.c: Ditto.
2467 * ns32k-tdep.c: Ditto.
2468 * x86-64-linux-tdep.c: Ditto.
2469 * vax-tdep.c: Ditto.
2470 * rs6000-tdep.c: Ditto.
2471 * ppc-linux-tdep.c: Ditto.
2472 * i386-interix-tdep.c: Ditto.
2473 * mips-tdep.c: Ditto.
2474 * m68k-tdep.c: Ditto.
2475 * hppa-tdep.c: Ditto.
2476 * ia64-tdep.c: Ditto.
2477 * cris-tdep.c: Ditto.
2478 * arm-tdep.c: Ditto.
2479 * alpha-tdep.c: Ditto.
2480 * i386-tdep.c: Ditto.
2481 * stack.c: Ditto.
2482 * ada-lang.c: Ditto.
2483 * blockframe.c: Update.
2484 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2485 deprecated_set_frame_type instead of signal_handler_caller.
2486 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2487 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2488 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2489
2490 2002-11-18 Klee Dienes <kdienes@apple.com>
2491
2492 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2493
2494 2002-11-18 Klee Dienes <kdienes@apple.com>
2495
2496 * buildsym.c (pop_context): Add comment.
2497
2498 2002-11-18 Klee Dienes <kdienes@apple.com>
2499
2500 * buildsym.h (pop_context): Convert to function, defined in
2501 buildsym.c.
2502 * buildsym.c: Include gdb_assert.h.
2503 (pop_context): Implement as C function. Add check for stack
2504 underflow.
2505 * dbxread.c (process_one_symbol): Complain and stop processing
2506 that symbol if we are already at the top of the context stack for
2507 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2508 when processing N_RBRAC.
2509
2510 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2511
2512 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2513 define.
2514 (struct target_waitstatus): Add opaque definition.
2515 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2516 * exec.c (init_exec_ops): Likewise.
2517 * fork-child.c (clone_and_follow_inferior): Remove.
2518 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2519 * inferior.h (clone_and_follow_inferior): Remove prototype.
2520 * infrun.c (follow_fork_mode_both): Remove.
2521 (follow_fork_mode_kind_names): Remove commented out "both".
2522 (follow_inferior_fork): Remove follow_fork_mode_both support.
2523 * inftarg.c (child_clone_and_follow_inferior): Remove.
2524 (child_post_follow_inferior_by_clone): Remove.
2525 (init_child_ops): Don't set to_clone_and_follow_inferior
2526 or to_post_follow_inferior_by_clone.
2527 * target.c (default_clone_and_follow_inferior): Remove.
2528 (cleanup_target): Don't set to_clone_and_follow_inferior
2529 or to_post_follow_inferior_by_clone.
2530 (find_default_clone_and_follow_inferior): Remove.
2531 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2532 (debug_to_clone_and_follow_inferior): Remove.
2533 (debug_to_post_follow_inferior_by_clone): Remove.
2534 (setup_target_debug): Don't set to_clone_and_follow_inferior
2535 or to_post_follow_inferior_by_clone.
2536 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2537 and to_post_follow_inferior_by_clone.
2538 (child_clone_and_follow_inferior): Remove prototype.
2539 (child_post_follow_inferior_by_clone): Remove prototype.
2540 (target_clone_and_follow_inferior): Remove macro.
2541 (target_post_follow_inferior_by_clone): Remove macro.
2542 (find_default_clone_and_follow_inferior): Remove prototype.
2543
2544 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2545
2546 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2547 inferior_has_vforked, and inferior_has_execd instead of
2548 target_has_forked, target_has_vforked, and target_has_execd.
2549 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2550 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2551 (CHILD_WAIT): Define.
2552 (child_wait): Add prototype.
2553 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2554 Add prototype.
2555 (hpux_has_vforked): Likewise, from child_has_vforked.
2556 (hpux_has_execd): Likewise, from child_has_execd.
2557 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2558 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2559 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2560 and hpux_has_syscall_event instead of the target hooks.
2561 * infrun.c (inferior_has_forked, inferior_has_vforked)
2562 (inferior_has_execd): New functions.
2563 * inftarg.c (not_same_real_pid): Remove.
2564 (child_wait): Remove references to not_same_real_pid,
2565 target_has_forked, target_has_vforked, target_has_execd,
2566 and target_has_syscall_event.
2567 (child_has_forked, child_has_vforked, child_has_execd)
2568 (child_has_syscall_event): Remove.
2569 (init_child_ops): Remove references to child_has_forked,
2570 child_has_vforked, child_has_execd, and child_has_syscall_event.
2571 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2572 (hpux_has_vforked): Likewise, from child_has_vforked.
2573 (hpux_has_execd): Likewise, from child_has_execd.
2574 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2575 * target.c (cleanup_target): Remove references to
2576 to_has_forked, to_has_vforked, to_has_execd, and
2577 to_has_syscall_event.
2578 (update_current_target): Likewise.
2579 (setup_target_debug): Likewise.
2580 (debug_to_has_forked): Remove.
2581 (debug_to_has_vforked): Remove.
2582 (debug_to_has_execd): Remove.
2583 (debug_to_has_syscall_event): Remove.
2584 * target.h (struct target_ops): Remove to_has_forked.
2585 to_has_vforked, to_has_execd, and to_has_syscall_event.
2586 (child_has_forked, child_has_vforked, child_has_execd)
2587 (child_has_syscall_event): Remove prototypes.
2588 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2589 prototypes.
2590 (target_has_forked, target_has_vforked, target_has_execd)
2591 (target_has_syscall_event): Remove macros.
2592
2593 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2594
2595 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2596 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2597 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2598 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2599 * target.c (cleanup_target): Remove reference to
2600 to_can_follow_vfork_prior_to_exec.
2601 (update_current_target): Likewise.
2602 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2603 (setup_target_debug): Remove reference to
2604 to_can_follow_vfork_prior_to_exec.
2605 * target.h (struct target_ops): Remove
2606 to_can_follow_vfork_prior_to_exec.
2607 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2608 (target_can_follow_vfork_prior_to_exec): Remove definition.
2609 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2610 define.
2611 * infrun.c (follow_vfork_when_exec): Remove.
2612 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2613 (follow_exec): Likewise.
2614 (handle_inferior_event): Likewise.
2615 (keep_going): Likewise.
2616
2617 2002-11-15 Andrew Cagney <cagney@redhat.com>
2618
2619 * frame.c (generic_unwind_get_saved_register): Make static.
2620 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2621 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2622 defaults to generic_unwind_get_saved_register.
2623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2625 * frv-tdep.c (frv_gdbarch_init): Ditto.
2626 * i386-tdep.c (i386_gdbarch_init): Ditto.
2627 * s390-tdep.c (s390_gdbarch_init): Ditto.
2628 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2629 * v850-tdep.c (v850_gdbarch_init): Ditto.
2630 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2631 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2632 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2633
2634 2002-11-15 Andrew Cagney <cagney@redhat.com>
2635
2636 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2637 i386-tdep.c.
2638
2639 2002-11-15 Andrew Cagney <cagney@redhat.com>
2640
2641 * frame.h (sigtramp_saved_pc): Delete declaration.
2642 * blockframe.c (sigtramp_saved_pc): Delete function.
2643 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2644 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2645 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2646 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2647
2648 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2649
2650 * frame.c (frame_pc_unwind): New function.
2651 (frame_saved_regs_pc_unwind): New function.
2652 (frame_register_unwind): Pass unwind_cache instead of
2653 register_unwind_cache.
2654 (set_unwind_by_pc): Add unwind_pc parameter, set.
2655 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2656 (get_prev_frame): Ditto.
2657 * frame.h (frame_pc_unwind_ftype): Declare.
2658 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2659 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2660 (frame_pc_unwind): Declare.
2661 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2662 (struct dummy_frame): Add comment mentioning that values are for
2663 previous frame.
2664 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2665 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2666 (generic_file_frame_chain_valid): Ditto.
2667 * stack.c (frame_info): Ditto.
2668
2669 2002-11-15 David Carlton <carlton@math.stanford.edu>
2670
2671 * linespec.c (locate_first_half): New function.
2672 (decode_line_1): Move code into locate_first_half.
2673
2674 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2675
2676 * complaints.h: Add comment explaining how to eliminate a
2677 deprecated_complain call.
2678 * complaints.h: Fix spelling errors.
2679
2680 2002-11-15 David Carlton <carlton@math.stanford.edu>
2681
2682 * printcmd.c: Remove #include "disasm.h".
2683
2684 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2685
2686 * frame.h: Move the most relevant interface functions to the start
2687 of the file.
2688
2689 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2690
2691 * regcache.h (deprecated_registers): Rename registers.
2692 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2693 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2694 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2695 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2696 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2697 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2698 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2699 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2700 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2701 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2702 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2703 * v850ice.c: Update.
2704
2705 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2706
2707 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2708 NULL buffer.
2709
2710 2002-11-13 Andrew Cagney <cagney@redhat.com>
2711
2712 * regcache.h (deprecated_read_register_bytes): Rename
2713 read_register_bytes.
2714 (deprecated_write_register_bytes): Rename write_register_bytes.
2715 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2716 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2717 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2718 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2719 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2720 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2721 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2722 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2723 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2724 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2725 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2726 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2727 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2728 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2729
2730 2002-11-13 Jim Blandy <jimb@redhat.com>
2731
2732 * findvar.c (read_var_value): Doc fix.
2733
2734 2002-11-13 Andrew Cagney <cagney@redhat.com>
2735
2736 * regcache.c (struct regcache): Replace passthough_p with
2737 readonly_p.
2738 (regcache_xmalloc): Initialize readonly_p.
2739 (build_regcache): Initialize readonly_p.
2740 (regcache_save): New function.
2741 (regcache_restore): New function.
2742 (regcache_cpy): Re-implement using regcache_save and
2743 regcache_restore.
2744 (regcache_raw_read): Update.
2745 (regcache_cooked_read): When a read-only cache, checked for cached
2746 pseudo register values.
2747 (regcache_raw_write): Assert that the cache is not read-only.
2748 Remove code handling a non-passthrough cache.
2749 * regcache.h (regcache_save): Declare.
2750 (regcache_restore): Declare.
2751
2752 2002-11-13 Andrew Cagney <cagney@redhat.com>
2753
2754 * regcache.c (struct regcache_descr): Add fields
2755 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2756 (init_legacy_regcache_descr): Compute the size of a cooked
2757 register cache and then assign that to sizeof_raw_registers. Set
2758 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2759 (init_legacy_regcache_descr): Ditto.
2760
2761 2002-11-13 Andrew Cagney <cagney@redhat.com>
2762
2763 * regcache.c (register_buffer): Move to near start of file, update
2764 description.
2765 (regcache_raw_read): Use.
2766 (regcache_raw_write): Use.
2767 (struct regcache): Rename raw_registers to registers and
2768 raw_register_valid_p to register_valid_p.
2769 (regcache_xmalloc): Update.
2770 (regcache_xfree): Update.
2771 (register_buffer): Update.
2772 (regcache_cpy): Update.
2773 (regcache_cpy_no_passthrough): Update.
2774 (regcache_valid_p): Update.
2775 (deprecated_grub_regcache_for_registers): Update.
2776 (deprecated_grub_regcache_for_register_valid): Update.
2777 (set_register_cached): Update.
2778 (regcache_raw_write): Update.
2779
2780 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2781
2782 * p-exp.y (name_not_typename): Use copy_name to
2783 set current_type variable for fields of THIS.
2784
2785 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2786
2787 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2788 * monitor.c (init_base_monitor_ops): Likewise.
2789 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2790 * remote-array.c (init_array_ops): Likewise.
2791 * remote-e7000.c (init_e7000_ops): Likewise.
2792 * remote-es.c (init_es1800_ops): Likewise.
2793 (init_es1800_child_ops): Likewise.
2794 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2795 * remote-sim.c (init_gdbsim_ops): Likewise.
2796 * remote-st.c (init_st2000_ops): Likewise.
2797 * sol-thread.c (init_sol_core_ops): Likewise.
2798 (init_sol_thread_ops): Likewise.
2799 * v850ice.c (init_850ice_ops): Likewise.
2800 * win32-nat.c (init_child_ops): Likewise.
2801 * wince.c (init_child_ops): Likewise.
2802
2803 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2804
2805 * utils.c (gdb_realpath): Make rp a constant pointer.
2806
2807 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2808
2809 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2810 a constant buffer; cannonicalize_file_name(); realpath() with a
2811 pathconf() defined buffer, xstrdup().
2812
2813 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2814
2815 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2816 to hang2.C; hang3.c to hang3.C.
2817
2818 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2819
2820 * findvar.c (read_var_value): Reenable TLS code.
2821
2822 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2823 Jim Blandy <jimb@redhat.com>
2824
2825 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2826 * target.c (update_current_target): Add
2827 to_get_thread_local_address.
2828 * target.h (to_get_thread_local_address): Export.
2829 (target_get_thread_local_address): Define.
2830 (target_get_thread_local_address_p): Define.
2831 * thread-db.c: Include solib-svr4.h.
2832 (td_thr_tls_get_addr_p): Define.
2833 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2834 (thread_db_get_thread_local_address): New function.
2835 (init_thread_db_ops): Initialize to_get_thread_local_address.
2836 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2837 * configure: Regenerate.
2838 * config.in: Regenerate.
2839
2840 2002-11-11 David Carlton <carlton@math.stanford.edu>
2841
2842 * linespec.c (set_flags): New function.
2843 (decode_line_1): Move code into set_flags.
2844
2845 2002-11-11 David Carlton <carlton@math.stanford.edu>
2846
2847 * linespec.c (decode_line_1): Move chunks of code to separate
2848 functions.
2849 (initialize_defaults): New function.
2850 (decode_indirect): New function.
2851
2852 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2853
2854 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2855 instead of void_code_ptr.
2856 (sigtramp_saved_pc): Ditto.
2857
2858 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2859 i386_fp_regnum_p.
2860
2861 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * gdbtypes.h (struct main_type): Move artificial flag out of
2864 loc. New member of ``struct field'' named static_kind. Reduce
2865 overloaded meaning of bitsize.
2866 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2867 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2868 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2869
2870 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2871 new fields.
2872 (template_to_fixed_record_type, template_to_static_fixed_type)
2873 (to_record_with_fixed_variant_part): Likewise.
2874 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2875 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2876 * dwarfread.c (struct_type, enum_type): Likewise.
2877 * hpread.c (hpread_read_enum_type)
2878 (hpread_read_function_type, hpread_read_doc_function_type)
2879 (hpread_read_struct_type): Likewise.
2880 * mdebugread.c (parse_symbol): Likewise.
2881
2882 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2883
2884 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2885 * stack.c (print_frame_info_base): Update.
2886 (print_frame_info_base, frame_info): Update.
2887 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2888 (sparc_frame_saved_pc): Update.
2889 * ada-lang.c (find_printable_frame): Update.
2890 * breakpoint.c (deprecated_frame_in_dummy): Update.
2891
2892 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2893
2894 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2895 defined.
2896 (regmap): Extend to cover all registers.
2897 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2898 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2899 definitions.
2900 (fetch_register, sore_register): Simplify.
2901 (old_fetch_inferior_registers, old_store_inferior_registers):
2902 Remove functions.
2903 (cannot_fetch_register, cannot_store_register): Change
2904 implementation to use regmap array to decide which registers
2905 cannot be fetched/stored. This removes $orig_eax from the
2906 registers that cannot be fetched/stored.
2907 (fetch_inferior_registers): Call fetch_register directly instead
2908 of calling old_fetch_inferior_registers.
2909 (store_inferior_registers): Call store_register directly instead
2910 of calling old_store_inferior_registers.
2911 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2912 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2913 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2914
2915 2002-11-09 Klee Dienes <kdienes@apple.com>
2916
2917 * i387-tdep.c (i387_supply_register): When called with NULL as a
2918 buffer, mark the register as not provided (to mirror the behavior
2919 of supply_register).
2920 (i387_supply_fxsave): Ditto.
2921 (i387_supply_fsave): Ditto (inherits the behavior from
2922 i387_supply_register).
2923
2924 2002-11-09 Klee Dienes <kdienes@apple.com>
2925
2926 * blockframe.c (sigtramp_saved_pc): Use
2927 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2928 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2929 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2930
2931 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2932
2933 * frame.c (get_prev_frame): Test prev_p to identify a previously
2934 unwound frame. Initialize prev_p.
2935 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2936 comment.
2937
2938 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2939
2940 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2941 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2942 more comments. Zap dead code.
2943
2944 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2945
2946 * infcmd.c (print_vector_info, print_float_info): Move code that
2947 checks whether the target has any registers and whether there is a
2948 selected frame up, such that it is also used if a target provides
2949 multi-arch definitions of these functions.
2950
2951 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2952
2953 * Makefile.in (DESTDIR): Define.
2954 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2955 prefix.
2956
2957 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2958 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2959
2960 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2961
2962 * i386-linux-tdep.c: Include "reggroups.h".
2963 (i386_linux_register_reggroup_p): New function.
2964 (i386_linux_init_abi): Set register_reggroup_p to
2965 i386_linux_register_reggroup_p.
2966 * i386-tdep.h (i386_register_reggroup_p): Declare.
2967 * i386-tdep.c: Include "reggroups.h".
2968 (i386_init_reggroups): New function.
2969 (i386_add_reggroups): New function.
2970 (i386_register_reggroup_p): New function.
2971 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2972 (_initialize_i386_tdep): Call i386_init_reggroups.
2973 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2974 specific reggroups.
2975
2976 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2977
2978 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2979 request that's available in *BSD.
2980
2981 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2982
2983 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2984 FDOFF_REGNUM.
2985
2986 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2987
2988 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2989 * dummy-frame.c (find_dummy_frame): Rename
2990 generic_find_dummy_frame, make static. Return the dummy frame
2991 instead of the regcache.
2992 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2993 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2994 (dummy_frame_register_unwind): Rename
2995 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2996 * dummy-frame.h (dummy_frame_register_unwind): Rename
2997 generic_call_dummy_register_unwind.
2998
2999 2002-11-08 Mark Kettenis <kettenis@gnu.org>
3000
3001 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
3002 except the inclusion of "i386/tm-i386.h", to...
3003 * config/i386/nm-i386v42mp.h: ...here.
3004 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
3005
3006 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3007
3008 * Makefile.in (frame.o): Update dependencies.
3009 * blockframe.c (current_frame, frame_obstack_alloc)
3010 (frame_saved_regs_zalloc, get_current_frame)
3011 (set_current_frame, create_new_frame)
3012 (set_unwind_by_pc, get_next_frame)
3013 (flush_cached_frames, reinit_frame_cache)
3014 (frame_saved_regs_register_unwind)
3015 (deprecated_generic_get_saved_register)
3016 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
3017 (_initialize_blockframe): Move frame code from here...
3018 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
3019 "annotate.h" and "dummy-frame.h".
3020 (_initialize_frame): New function.
3021
3022 2002-11-08 Jim Blandy <jimb@redhat.com>
3023
3024 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
3025 when we finish a function a context.
3026 * buildsym.h (outermost_context_p): New macro.
3027 (Bug analyzed by David Edelsohn.)
3028
3029 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3030
3031 * blockframe.c: Include "dummy-frame.h".
3032 (struct dummy_frame, dummy_frame_stack)
3033 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
3034 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
3035 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
3036 (generic_save_call_dummy_addr, generic_pop_current_frame)
3037 (generic_pop_dummy_frame, generic_fix_call_dummy)
3038 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
3039 dummy frame code from here...
3040 * dummy-frame.c: ...to here. New file.
3041 * dummy-frame.h: New file.
3042 (generic_call_dummy_register_unwind): Declare.
3043 (generic_find_dummy_frame): Declare.
3044 * Makefile.in (SFILES): Add dummy-frame.c.
3045 (dummy-frame.o): Specify dependencies.
3046 (dummy_frame_h): Define.
3047 (COMMON_OBS): Add dummy-frame.o.
3048 (blockframe.o): Update dependencies.
3049
3050 2002-11-08 Jim Blandy <jimb@redhat.com>
3051
3052 * dwarf2read.c (read_func_scope): Restore local_symbols and
3053 param_symbols after we finish the function context. (Based on a
3054 patch from David Edelsohn.)
3055
3056 2002-11-08 David Carlton <carlton@math.stanford.edu>
3057
3058 * linespec.c (symbol_found): New function.
3059 (minsym_found): New function.
3060 (decode_line_1): Separate out some code into separate functions.
3061
3062 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3063
3064 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3065 the benefit of the interix target.
3066 * i386-tdep.h (i386_frameless_signal_p): Declare.
3067
3068 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3069
3070 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3071 declaration that snuck in from change below.
3072
3073 2002-11-06 Andrew Cagney <cagney@redhat.com>
3074
3075 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3076 all callers.
3077 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3078 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3079 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3080 (i386_mxcsr_regnum_p): new function. Use instead of
3081 MXCSR_REGNUM_P.
3082 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3083 (i386_sse_regnum_p): Declare.
3084 (i386_mxcsr_regnum_p): Declare.
3085 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3086 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3087 (IS_FP_REGNUM): Update definition.
3088 (IS_FPU_CTRL_REGNUM): Update definition..
3089 (IS_SSE_REGNUM): Update definition..
3090 * i386v-nat.c (register_u_addr): Update.
3091 * go32-nat.c (fetch_register): Update.
3092 (store_register): Update.
3093
3094 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3095
3096 Preparation work to convert the hppa targets to multiarch partial.
3097
3098 * hppa-tdep.c: Add new functions replacing macro bodies from
3099 config/pa/tm-hppa.h. These function will be used to initialize
3100 the gdbarch structure. Import some comments from tm-hppa.h,
3101 and place them where appropriate, to avoid loosing them when
3102 we cleanup this file.
3103 (hppa_reg_struct_has_addr): New function.
3104 (hppa_inner_than): New function.
3105 (hppa_stack_align): New function.
3106 (hppa_pc_requires_run_before_use): New function.
3107 (hppa_instruction_nullified): New function.
3108 (hppa_register_byte): New function.
3109 (hppa_register_virtual_type): New function.
3110 (hppa_store_struct_return): New function.
3111 (hppa_cannot_store_register): New function.
3112 (hppa_frame_args_address): New function.
3113 (hppa_frame_locals_address): New function.
3114 (hppa_smash_text_address): New function.
3115 (hppa_coerce_float_to_double): New function. Requires the inclusion
3116 of "language.h".
3117
3118 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3119
3120 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3121 gdbarch-eligible macro to a call to the new associated function
3122 created in hppa-tdep.c.
3123 (INNER_THAN): Likewise.
3124 (STACK_ALIGN): Likewise.
3125 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3126 (INSTRUCTION_NULLIFIED): Likewise.
3127 (REGISTER_BYTE): Likewise.
3128 (REGISTER_VIRTUAL_TYPE): Likewise.
3129 (STORE_STRUCT_RETURN): Likewise.
3130 (CANNOT_STORE_REGISTER): Likewise.
3131 (FRAME_ARGS_ADDRESS): Likewise.
3132 (FRAME_LOCALS_ADDRESS): Likewise.
3133 (SMASH_TEXT_ADDRESS): Likewise.
3134 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3135 (ABOUT_TO_RETURN): Delete, as no longer used.
3136
3137 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3138
3139 * printcmd.c (disassemble_command): Remove obsolete function.
3140 (_initialize_printcmd): Do not create disassemble command here.
3141 * cli/cli-cmds.c (disassemble_command): New function. Implements
3142 disassemble command.
3143 (init_cli_cmds): Create disassemble command here instead.
3144
3145 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3146
3147 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3148
3149 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3150
3151 * regcache.h (regcache_cooked_read_using_offset_hack)
3152 (regcache_cooked_write_using_offset_hack): Delete declarations.
3153 (register_changed): Delete declaration.
3154 * regcache.c (regcache_cooked_read_using_offset_hack)
3155 (regcache_cooked_write_using_offset_hack): Delete functions.
3156 (cooked_xfer_using_offset_hack): Delete function.
3157 (register_changed): Delete function.
3158
3159 2002-11-07 Jim Blandy <jimb@redhat.com>
3160
3161 * macroscope.c: #include "complaints.h".
3162 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3163 but not in the macro table.
3164 * Makefile.in (macroscope.o): Record dependency.
3165
3166 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3167
3168 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3169
3170 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3171
3172 * regcache.c (deprecated_registers_fetched): Update.
3173 * regcache.h (deprecated_registers_fetched): Rename
3174 registers_fetched.
3175 * remote-vxsparc.c (vx_read_register): Update.
3176 * remote-vxmips.c (vx_read_register): Update.
3177 * remote-vx68.c (vx_read_register): Update.
3178 * irix5-nat.c (fetch_core_registers): Update.
3179 * mipsm3-nat.c (fetch_inferior_registers): Update.
3180 * sun3-nat.c (fetch_inferior_registers): Update.
3181 * symm-nat.c (fetch_inferior_registers): Update.
3182 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3183 (fetch_core_registers): Update.
3184 (fetch_kcore_registers): Update.
3185 * mips-nat.c (fetch_inferior_registers): Update.
3186 * corelow.c (get_core_registers): Update.
3187 * a68v-nat.c (fetch_inferior_registers): Update.
3188
3189 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3190
3191 Put in place the framework necessary for multiarching the hppa targets.
3192 * hppa-tdep.c (hppa_gdbarch_init): New function.
3193 (hppa_dump_tdep): New function.
3194 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3195 tdep structure dumper.
3196 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3197 until the multi-arching conversion has partially been completed.
3198
3199 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3200
3201 * valops.c (value_assign): Merge lval_register case into
3202 lval_reg_frame_relative. Use frame_register and
3203 regcache_cooked_write instead of get_saved_register and
3204 write_register_bytes. After flushing the register cache, try to
3205 re-select the selected frame.
3206
3207 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3208
3209 * regcache.h (deprecated_register_valid): Rename register_valid.
3210 * regcache.c: Update.
3211 * ia64-aix-nat.c: Update.
3212 * i386gnu-nat.c: Update.
3213 * alpha-nat.c: Update.
3214 * sparc-nat.c: Update.
3215 * lynx-nat.c: Update.
3216 * remote-mips.c: Update.
3217
3218 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3219
3220 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3221 to end of file, to be more consistent with the pratice followed
3222 by other targets.
3223
3224 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3225
3226 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3227 (print_float_info): Print registers in float_reggroup.
3228 (print_vector_info): Print registers in vector_reggroup.
3229 (default_print_registers_info): When all, print registers in
3230 all_reggroup. Otherwize, print registers in general_reggroup.
3231 (registers_info): Rewrite. Add support for register groups.
3232 Eliminate a goto.
3233
3234 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3235
3236 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3237 ages.
3238 (symtab_symbol_info): Remove eons old ifdeffed out code.
3239 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3240 command.
3241
3242 2002-11-06 Theodore A. Roth <troth@openavr.org>
3243
3244 * c-exp.y: Add missing semi-colons.
3245 * f-exp.y: Add missing semi-colons.
3246 * m2-exp.y: Add missing semi-colons.
3247 * p-exp.y: Add missing semi-colons.
3248 Add empty action to start rule to avoid a type clash error when
3249 building with bison >= 1.50.
3250
3251 2002-11-06 Jim Blandy <jimb@redhat.com>
3252
3253 * macrotab.h (struct macro_source_file): Doc fix.
3254
3255 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3256
3257 * varobj.c (child_exists, cplus_number_of_children): Change
3258 STREQ macro references to strcmp.
3259 (cplus_name_of_child): Change code to handle the fact that
3260 fields are not necessarily contiguous with regards to their
3261 access control. This is a fix for PR gdb/792.
3262
3263 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3264
3265 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3266 * gdbarch.h, gdbarch.c: Regnerate.
3267 * frame.h (frame_register): Declare.
3268 * frame.c (frame_register): New function.
3269 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3270 GET_SAVED_REGISTER, otherwize call
3271 generic_unwind_get_saved_register.
3272 (frame_register_read): Use frame_register instead of
3273 get_saved_register.
3274
3275 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3276
3277 From Jim Ingham <jingham@apple.com>:
3278 * event-top.c (gdb_disable_readline): New function.
3279 (_initialize_event_loop): Move comment.
3280
3281 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3282
3283 * event-loop.c (start_event_loop): Add comment.
3284 Update copyright.
3285
3286 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3287
3288 * infcmd.c (default_print_registers_info): Do not call
3289 PRINT_REGISTER_HOOK.
3290
3291 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3292
3293 * sparc-tdep.c (sparc_print_register_hook): Make static.
3294 (sparc_print_registers_info): New function.
3295 (sparc_do_registers_info): New function.
3296 (sparclet_print_registers_info): New function.
3297 (sparclet_do_registers_info): New function.
3298 (do_sparc_print_registers_info): New function.
3299 (sparc_print_registers): New static function, clone of infcmd.c's
3300 default_print_registers_info.
3301 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3302 (sparclet_do_registers_info): Declare.
3303 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3304 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3305 Re-define.
3306 (sparc_do_registers_info): Declare.
3307 (PRINT_REGISTER_HOOK): Delete macro.
3308 (sparc_print_register_hook): Delete declaration.
3309
3310 2002-11-05 David Carlton <carlton@math.stanford.edu>
3311
3312 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3313 functions.
3314 (lookup_symbol_aux_local): New function.
3315 (lookup_symbol_aux_symtabs): New function.
3316 (lookup_symbol_aux_psymtabs): New function.
3317
3318 2002-11-05 David Carlton <carlton@math.stanford.edu>
3319
3320 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3321 previous values of 'objfile' and 'block'.
3322
3323 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3324
3325 * values.c (value_change_enclosing_type): Set
3326 enclosing_type field correctly also for the case where
3327 more memory needs to be allocated.
3328
3329 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3330
3331 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3332 of puts_filtered.
3333
3334 * i387-tdep.c (i387_print_float_info): Replace calls to
3335 register_read and deprecated_read_register_gen with calls to
3336 frame_register_read, and make the necessary adjustments to the
3337 surrounding code.
3338
3339 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3340
3341 * gdbarch.sh (register_reggroup_p): Allow default value.
3342 * gdbarch.h, gdbarch.c: Regenerate.
3343
3344 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3345
3346 * regcache.h: Add coment indicating replacements for deprecated
3347 functions.
3348
3349 2002-11-02 Andrew Cagney <cagney@redhat.com>
3350
3351 * reggroups.h, reggroups.c: New files.
3352 * regcache.c: Include "reggroups.h".
3353 (enum regcache_dump_what): Add `regcache_dump_groups'.
3354 (regcache_dump): Contract size of the "Type" column. When
3355 specified, dump the register's groups.
3356 (maintenance_print_register_groups): New function.
3357 (_initialize_regcache): Add command `maint print register-groups'.
3358 * Makefile.in (COMMON_OBS): Add reggroups.o
3359 (SFILES): Add reggroups.c.
3360 (reggroups_h): Define.
3361 (regcache.o, gdbarch.o): Update dependencies.
3362 (reggroups.o): Specify dependencies.
3363 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3364 Add opaque declaration for `struct reggroup' in generated .h file.
3365 Include "reggroups.h" in generated .c file.
3366 gdbarch.h, gdbarch.c: Re-generate.
3367
3368 2002-11-02 Andrew Cagney <cagney@redhat.com>
3369
3370 * regcache.h (deprecated_read_register_gen): Rename
3371 read_register_gen.
3372 (deprecated_write_register_gen): Rename write_register_gen.
3373 * i387-tdep.c: Update.
3374 * x86-64-linux-nat.c: Update
3375 * wince.c: Update.
3376 * thread-db.c: Update.
3377 * win32-nat.c: Update.
3378 * mips-tdep.c: Update.
3379 * d10v-tdep.c: Update.
3380 * cris-tdep.c: Update.
3381 * remote-sim.c: Update.
3382 * remote-rdi.c: Update.
3383 * remote-rdp.c: Update.
3384 * frame.c: Update.
3385 * target.c: Update.
3386 * blockframe.c: Update.
3387 * x86-64-tdep.c: Update.
3388 * xstormy16-tdep.c: Update.
3389 * sh-tdep.c: Update.
3390 * s390-tdep.c: Update.
3391 * rs6000-tdep.c: Update.
3392 * sparc-tdep.c: Update.
3393 * i386-tdep.c: Update.
3394 * dwarf2cfi.c: Update.
3395 * regcache.c: Update.
3396
3397 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3398
3399 New interix-specific files:
3400 * config/i386/nm-interix.h: New file.
3401 * config/i386/interix.mh: New file.
3402 * config/i386/interix.mt: New file.
3403 * i386-interix-nat.c: New file.
3404 * i386-interix-tdep.c: New file.
3405
3406 2002-11-01 Andrew Cagney <cagney@redhat.com>
3407
3408 * frame.h (deprecated_generic_get_saved_register): Rename
3409 generic_get_saved_register.
3410 * blockframe.c (deprecated_generic_get_saved_register): Update.
3411 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3412 (xstormy16_frame_saved_register): Update.
3413 * sh-tdep.c (sh_gdbarch_init): Update.
3414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3415 * ia64-tdep.c (ia64_get_saved_register): Update.
3416 * cris-tdep.c (cris_gdbarch_init): Update.
3417 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3418 * arm-tdep.c (arm_gdbarch_init): Update.
3419
3420 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3421
3422 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3423
3424 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3425
3426 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3427 trampolines in sigaction.
3428
3429 2002-10-31 Andrew Cagney <cagney@redhat.com>
3430
3431 * h8300-tdep.c: Include "gdb_assert.h".
3432 (h8300_print_register): Add gdbarch, file and frame parameters.
3433 Use frame_read_unsigned_register to read the register's value.
3434 Use fprintf_filtered to display output.
3435 (h8300_print_registers_info): Replace h8300_do_registers_info.
3436 (h8300_gdbarch_init): Set print_registers_info.
3437
3438 2002-10-31 Andrew Cagney <cagney@redhat.com>
3439
3440 * frame.c (frame_read_unsigned_register): New function.
3441 (frame_read_signed_register): New function.
3442 * frame.h (frame_read_unsigned_register): Declare.
3443 (frame_read_signed_register): Declare.
3444
3445 2002-10-31 Andrew Cagney <cagney@redhat.com>
3446
3447 * h8500-tdep.c (h8500_print_registers_info): New static function,
3448 clone of infcmd.c's default_print_registers_info.
3449 (h8500_do_registers_info): New funtion.
3450 (h8500_print_register_hook): Rename print_register_hook, make
3451 static.
3452
3453 * config/h8500/tm-h8500.h: Update copyright.
3454 (DEPRECATED_DO_REGISTERS_INFO): Define.
3455 (h8500_do_registers_info: Declare.
3456 (PRINT_REGISTER_HOOK): Delete macro.
3457 (print_register_hook): Delete function.
3458
3459 2002-10-31 Andrew Cagney <cagney@redhat.com>
3460
3461 * z8k-tdep.c (z8k_print_register_hook): Make static.
3462 (z8k_print_registers_info): New static function, clone of
3463 infcmd.c's default_print_registers_info.
3464 (z8k_do_registers_info): New function. Wrap
3465 z8k_print_registers_info.
3466 * config/z8k/tm-z8k.h: Update copyright.
3467 (PRINT_REGISTER_HOOK): Delete macro.
3468 (z8k_print_register_hook): Delete declaration.
3469 (DEPRECATED_DO_REGISTERS_INFO): Define.
3470 (z8k_do_registers_info): Declare.
3471
3472 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3473
3474 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3475 as this is already provided by value.h, and was actually causing
3476 a compilation error because of a conflict in parameter type
3477 declaration due to a missing const keyword.
3478 (low_text_segment_addres): Fix a compilation warning.
3479
3480 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3483 registers without a name.
3484 (mips_linux_cannot_store_register): Don't store registers without
3485 a name.
3486
3487 2002-10-28 David Carlton <carlton@math.stanford.edu>
3488
3489 * symtab.c (find_addr_symbol): Delete. (It was already commented
3490 out.)
3491 * symtab.h: Delete prototype for find_addr_symbol.
3492
3493 2002-10-26 Andrew Cagney <cagney@redhat.com>
3494
3495 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3496 DO_REGISTERS_INFO.
3497 gdbarch.h, gdbarch.c: Re-generate.
3498 * infcmd.c (default_print_registers_info): Update reference.
3499 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3500 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3501 * sh-tdep.c (sh_gdbarch_init): Ditto.
3502 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3503 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3504
3505 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3506
3507 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3508 cfi_init_extra_frame_info.
3509 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3510 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3511
3512 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3513 target where necessary. Add more comments and remove the ones
3514 that don't provide any useful information.
3515
3516 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3517 deprecated_read_register_dummy with
3518 frame_unwind_unsigned_register.
3519
3520 * i386-tdep.c (i386_extract_struct_value_address): Use
3521 regcache_raw_read_unsigned instead of
3522 regcache_cooked_read_unsigned since we know that the register
3523 we're reading isn't a pseudo register. Rename variable 'val' into
3524 the more descriptive 'addr'.
3525
3526 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3527 (x86_64_push_return_address): Add comment.
3528 (x86_64_pop_frame): Make static.
3529 (examine_argument): Clarify comment.
3530 (x86_64_skip_prologue): Make prolog_expact variable static.
3531
3532 * dwarf2cfi.c: Fix some formatting problems.
3533 (context_cpy, read_encoded_pointer): Clarify comments.
3534
3535 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3536 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3537 i386 target back into x86_64_gdbarch_init. Add some comments and
3538 remove meaningless ones.
3539
3540 2002-10-25 Andrew Cagney <cagney@redhat.com>
3541
3542 * complaints.h (struct deprecated_complaint): Rename `struct
3543 complaint'.
3544 * complaints.c (complain): Update.
3545 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3546 incorrect comment indicating that "symfile.h" was being included
3547 for the `struct complaint' definition.
3548 * remote-vx.c: Update.
3549 * objc-lang.c: Update.
3550 * xcoffread.c: Update.
3551 * hpread.c: Update.
3552 * mdebugread.c: Update.
3553 * stabsread.c: Update.
3554 * dwarf2read.c: Update.
3555 * dwarfread.c: Update.
3556 * elfread.c: Update.
3557 * coffread.c: Update.
3558 * stabsread.h: Update.
3559 * dbxread.c: Update.
3560 * buildsym.c: Update.
3561 * gdbtypes.c: Update.
3562 * macrotab.c: Update.
3563
3564 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3565
3566 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3567 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3568 (x86_64_init_abi): ...new function.
3569
3570 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3571 * i386v-nat.c: Include "i386-tdep.h".
3572
3573 2002-10-25 Andrew Cagney <cagney@redhat.com>
3574
3575 * gdbtypes.c (address_space_name_to_int): Update.
3576 (address_space_int_to_name): Update.
3577 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3578 multi-arch predicate.
3579 (address_class_name_to_type_flags): Ditto.
3580 * gdbarch.h, gdbarch.c: Re-generate.
3581
3582 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3583
3584 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3585
3586 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3587
3588 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3589
3590 * symtab.h (INIT_SAL): Delete macro.
3591 (init_sal): Export.
3592 * symtab.c (init_sal): New function.
3593
3594 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3595 to init_sal function call.
3596 (find_sal_from_funcs_and_line): Ditto.
3597 (all_sals_for_line): Ditto.
3598 * breakpoint.c (create_internal_breakpoint): Ditto.
3599 (create_fork_vfork_event_catchpoint): Ditto.
3600 (create_exec_event_catchpoint): Ditto.
3601 (parse_breakpoint_sals): Ditto.
3602 (watch_command_1): Ditto.
3603 (handle_gnu_4_16_catch_command): Ditto.
3604 (clear_command): Ditto.
3605 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3606 * infcmd.c (run_stack_dummy): Ditto.
3607 * infrun.c (process_event_stop_test): Ditto.
3608 (check_sigtramp2): Ditto.
3609 (step_over_function): Ditto.
3610 * linespec.c (decode_line_2): Ditto.
3611 (decode_line_1): Ditto.
3612 * source.c (line_info): Ditto.
3613 * symtab.c (find_pc_sect_line): Ditto.
3614
3615 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3616
3617 * dwarf2cfi.c (struct context)
3618 (struct context_reg): Moved to dwarf2cfi.h
3619 (context_alloc, frame_state_alloc, context_cpy):
3620 Made extern instead of static, removed prototypes.
3621 * dwarf2cfi.h (struct context)
3622 (struct context_reg): New, moved from dwarf2cfi.c
3623 (context_alloc, frame_state_alloc, context_cpy):
3624 New prototypes.
3625 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3626 Changed from static to extern.
3627 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3628 (LINUX_SIGCONTEXT_FP_OFFSET)
3629 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3630 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3631 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3632 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3633 set_gdbarch_*() calls now use x86-64 specific functions
3634 instead of DWARF2 CFI ones.
3635 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3636 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3637 (x86_64_init_extra_frame_info): New prototypes.
3638
3639 2002-10-23 David Carlton <carlton@math.stanford.edu>
3640
3641 * linespec.c: #include "parser-defs.h".
3642 Delete prototype for find_template_name_end.
3643 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3644
3645 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3646
3647 * NEWS: add recent mi fixes.
3648 * varobj.c (struct varobj): Add new "updated" flag.
3649 (new_variable): Default "updated" flag to 0.
3650 (varobj_set_value): Set "updated" flag to 1 if value
3651 changes.
3652 (varobj_update): Check varobj "updated" flag before
3653 comparing old and refreshed values. Fix for
3654 PR gdb/702.
3655
3656 2002-10-23 David Carlton <carlton@math.stanford.edu>
3657
3658 * parse.c (parse_exp_1): Use BLOCK_START.
3659 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3660 SYMBOL_BLOCK_VALUE.
3661 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3662
3663 2002-10-23 David Carlton <carlton@math.stanford.edu>
3664
3665 * symtab.c: Delete cplusplus_hint.
3666 Delete prototype for find_template_name_end.
3667
3668 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3669
3670 * symtab.h: Update comment.
3671
3672 2002-10-23 Michael Snyder <msnyder@redhat.com>
3673
3674 * printcmd.c (address_info): Restore quotes in output.
3675 * valops.c (value_of_local): Restore quotes in error message.
3676
3677 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3678
3679 * symtab.c (symbol_demangled_name): New function.
3680 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3681 turning most of it into a function.
3682 (symbol_demangled_name): Export.
3683
3684 2002-10-23 Michael Snyder <msnyder@redhat.com>
3685
3686 * valops.c (value_of_local): Restore quotes in error message.
3687
3688 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3689
3690 * symtab.c (symbol_init_language_specific): New function.
3691 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3692 turning most of it into a function.
3693 (symbol_init_language_specific): Export.
3694
3695 2002-10-23 David Carlton <carlton@math.stanford.edu>
3696
3697 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3698 (dwarf_attr_name): Ditto.
3699 (dwarf_type_encoding_name): Ditto.
3700 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3701 (process_die): Handle DW_TAG_namespace,
3702 DW_TAG_imported_declaration, DW_TAG_imported_module.
3703 (read_namespace): New function.
3704
3705 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3706
3707 * configure.in: Define NEW_PROC_API on Interix too.
3708 * configure: Regenerate.
3709
3710 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3711
3712 * configure: Regenerate using the proper version of autoconf.
3713
3714 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3715
3716 * findvar.c (read_var_value): Temporarily disable TLS code, until
3717 complete TLS support is added.
3718
3719 2002-10-21 Jim Blandy <jimb@redhat.com>
3720 Elena Zannoni <ezannoni@redhat.com>
3721
3722 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3723 for thread local storage locations.
3724 (struct symbol): Add objfile field.
3725 (SYMBOL_OBJFILE): Define.
3726 * dwarf2read.c (is_thread_local): New static variable.
3727 (new_symbol): If variable is in thread local fill in address class
3728 and objfile appropriately.
3729 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3730 stack operation.
3731 * printcmd.c (address_info): Print the information for thread
3732 local storage variable.
3733 * findvar.c (read_var_value): In case of thread local variable,
3734 defer to the target vector code to compute address.
3735
3736 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3737
3738 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3739 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3740
3741 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3742
3743 * symtab.h (address_class): Rename
3744 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3745 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3746 * printcmd.c (address_info): Ditto.
3747 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3748
3749 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3750
3751 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3752 DBREG_DRX macro to acces debug registers.
3753
3754 * Makefile.in (i386obsd-tdep.o): New target.
3755
3756 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3757 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3758
3759 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3760 * config/i386/obsd.mt: New file.
3761 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3762 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3763 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3764 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3765 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3766 * i386obsd-tdep.c: New file.
3767
3768 2002-10-19 Adam Fedor <fedor@gnu.org>
3769
3770 * objc-exp.y (name_not_typename): Fix invalid comment.
3771
3772 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3773
3774 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3775 to allocate partial syms and macro byte caches.
3776
3777 2002-10-18 David Carlton <carlton@math.stanford.edu>
3778
3779 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3780
3781 2002-10-18 Adam Fedor <fedor@gnu.org>
3782
3783 * stabsread.c (find_name_end): New function.
3784 (define_symbol): Use it.
3785
3786 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3787
3788 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3789 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3790 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3791 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3792
3793 2002-10-17 David Carlton <carlton@math.stanford.edu>
3794
3795 * symfile.h: Add opaque declaration for struct obstack.
3796 Declare obsavestring to take a const char *.
3797 * symfile.c (obsavestring): Make first argument a const char *.
3798
3799 2002-10-16 Adam Fedor <fedor@gnu.org>
3800
3801 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3802 names when matching breakpoints in current file.
3803
3804 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3805
3806 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3807 (read_tag_pointer_type): Add address class support.
3808 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3809 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3810 New methods.
3811 * gdbarch.h, gdbarch.c: Regenerate.
3812 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3813 (make_type_with_address_space, recursive_type_dump): Add address
3814 class support.
3815 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3816 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3817 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3818
3819 2002-10-16 Klee Dienes <kdienes@apple.com>
3820
3821 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3822 to get the last character of a char[] buffer, not
3823 name[sizeof(vptr_name)-1].
3824
3825 2002-10-14 Adam Fedor <fedor@gnu.org>
3826
3827 * symtab.h: New objc_specific struct.
3828 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3829 (SYMBOL_DEMANGLED_NAME): Likewise.
3830
3831 2002-10-14 Adam Fedor <fedor@gnu.org>
3832
3833 * symfile.c (init_filename_language_table): Add ObjC file extension.
3834
3835 2002-10-14 Adam Fedor <fedor@gnu.org>
3836
3837 * utils.c (puts_filtered_tabular): New function.
3838 (fprintf_symbol_filtered): Get ObjC demangled name.
3839 * defs.h (puts_filtered_tabular): Declared.
3840
3841 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3842
3843 * c-lang.h (c_type_print_varspec_prefix): Delete.
3844 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3845 ``need_post_space'' parameter. Adjust all callers.
3846
3847 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3848
3849 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3850 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3851 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3852 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3853
3854 2002-10-13 Adam Fedor <fedor@gnu.org>
3855
3856 * source.c (print_source_lines): Update comments.
3857
3858 2002-10-13 Adam Fedor <fedor@gnu.org>
3859
3860 * valops.c (value_of_local): New function.
3861 (value_of_this): Use it.
3862 * value.h (value_of_local): Declared.
3863
3864 2002-10-13 Adam Fedor <fedor@gnu.org>
3865
3866 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3867 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3868
3869 2002-10-12 Adam Fedor <fedor@gnu.org>
3870
3871 * language.c (binop_result_type): Add language_objc to case.
3872 (integral_type): Likewise.
3873 (character_type): Likewise.
3874 (string_type): Likewise.
3875 (boolean_type): Likewise.
3876 (structured_type): Likewise.
3877 (binop_type_check): Likewise.
3878
3879 2002-10-11 Adam Fedor <fedor@gnu.org>
3880
3881 * printcmd.c (address_info): Print 'self' for ObjC.
3882
3883 2002-10-11 Adam Fedor <fedor@gnu.org>
3884
3885 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3886 OP_SELF.
3887
3888 2002-10-11 Adam Fedor <fedor@gnu.org>
3889
3890 * language.h (CAST_IS_CONVERSION): Add language_objc.
3891
3892 2002-10-11 Adam Fedor <fedor@gnu.org>
3893
3894 * defs.h (enum language): Add language_objc.
3895
3896 2002-10-11 Klee Dienes <kdienes@apple.com>
3897
3898 * corefile.c (read_memory_typed_address): New function.
3899 * gdbcore.h (read_memory_typed_address): Add prototype.
3900 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3901 to read a value destined for a CORE_ADDR, not read_memory_integer.
3902 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3903 (f77_get_dynamic_lowerbound): Ditto.
3904
3905 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3906
3907 * utils.c (string_to_core_addr): After turning string into
3908 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3909 which will do necessary sign-extension, etc.
3910
3911 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3912
3913 * c-exp.y (THIS): Delete token and grammar rule.
3914 (yylex): Don't return THIS.
3915 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3916 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3917 * demangle.c (cplus_markers): Update comment. Put '$'
3918 first. Remove CPLUS_MARKER.
3919 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3920 * jv-exp.y (THIS): Delete token and grammar rule.
3921 (yylex): Don't return THIS.
3922 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3923 * objc-exp.y (THIS): Delete token and grammar rule.
3924 (yylex): Don't return THIS.
3925 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3926 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3927 (read_member_functions): Likewise for opname.
3928 (read_tilde_fields): Use is_cplus_marker.
3929
3930 * defs.h (CPLUS_MARKER): Don't define.
3931 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3932 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3933 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3934 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3935 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3936
3937 * config/i386/tm-i386v4.h: Delete file.
3938 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3939 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3940 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3941 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3942 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3943 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3944 * config/i386/i386v4.mt (TM_FILE): Likewise.
3945 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3946
3947 2002-10-10 Marko Mlinar <markom@opencores.org>
3948
3949 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3950 accidentially not commited 2002-10-09
3951 * gdbarch.h, gdbarch.c: Re-generate.
3952
3953 2002-10-09 Marko Mlinar <markom@opencores.org>
3954
3955 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3956 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3957 * gdbarch.h, gdbarch.c: Re-generate.
3958
3959 2002-10-08 Petr Sorfa <petrs@caldera.com>
3960
3961 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3962
3963 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3964 so we can work on more than one compilation unit at a time. This
3965 helps prepare GDB to handle inter-CU die references.
3966 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3967 the code to be defined before struct comp_unit_head.
3968 (comp_unit_head): Added new members - offset, cu_head,
3969 begin_die, next and dwarf2_abbrevs.
3970 (dwarf2_abbrevs): Removed single static var; now member of
3971 struct comp_unit_head.
3972 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3973 members.
3974 (psymtab_to_symtab_1): Changed to work with the new
3975 struct comp_unit_head.
3976 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3977 constructs the dwarf2_abbrevs[] inside the cu_header.
3978 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3979 dwarf2_abbrev table to clean up.
3980 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3981 handling of dwarf2_abbrevs inside the cu_header.
3982 (read_partial_die): Now supports the call to the new
3983 dwarf2_lookup_abbrev.
3984 (read_full_die): Now supports the call to the new
3985 dwarf2_lookup_abbrev.
3986
3987 2002-10-06 Christopher Faylor <cgf@redhat.com>
3988
3989 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3990 insure that shell variables, such as "transformed_name" are propagated
3991 to later shell statements in rule.
3992
3993 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3994
3995 * config/i386/nm-i386sco.h: Add protection against
3996 multiple-inclusion. Include "i386/nm-i386v.h".
3997 (REGISTER_U_ADDR): Remove define.
3998 (i386_register_u_addr): Remove prototype.
3999
4000 2002-10-04 Michael Snyder <msnyder@redhat.com>
4001
4002 * m32r-stub.c (handle_exception): Make sure exception is "trap"
4003 before treating it as a single-step event.
4004
4005 2002-10-03 Adam Fedor <fedor@gnu.org>
4006
4007 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
4008 (objc_demangle): Remove assignment in if statements, Replace
4009 free with xfree.
4010 (add_msglist): Likewise.
4011 (end_msglist): Likewise.
4012 (complare_selectors): Likewise.
4013 (selectors_info): Likewise.
4014 (compare_classes): Likewise.
4015 (classes_info): Likewise.
4016 (print_object_command): Likewise.
4017 (find_objc_msgcall_submethod): Replace PTR with void *.
4018 * objc-lang.h: Remove check for __STDC__.
4019
4020 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4021
4022 * ui-out.h (ui_out_field_fmt_int): New prototype.
4023 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
4024 of field width and alignment.
4025 * stack.c (print_frame_info_base): When printing frame level, use
4026 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
4027 PR gdb/192
4028
4029 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
4030
4031 * MAINTAINERS: Add self to Write After Approval list.
4032
4033 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4034
4035 * infcmd.c (interrupt_target_command_wrapper): Delete.
4036 (interrupt_target_command): Make non static.
4037 (nofp_registers_info): Make static.
4038 * stack.c (return_command_wrapper): Delete.
4039 (return_command): Make non static.
4040
4041 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4042
4043 * event-top.c (gdb_setup_readline): New function. Code moved from
4044 _initialize_event_loop().
4045 (_initialize_event_loop): Call gdb_setup_readline().
4046
4047 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4048
4049 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4050 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4051 * gdbarch.h, gdbarch.c: Re-generate.
4052
4053 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
4054
4055 Fix PR gdb/778
4056 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4057 before recursing.
4058 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4059 of fill_in_vptr_fieldno.
4060
4061 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4062
4063 * inferior.h (registers_info, stepi_command, nexti_command,
4064 continue_command, interrupt_target_command): Export from infcmd.c.
4065 * frame.h (args_info, selected_frame_level_changed_hook,
4066 return_command): Export from stack.c.
4067 * v850ice.c (stepi_command, nexti_command, continue_command): use
4068 prototypes from inferior.h.
4069 * tracepoint.c (registers_info, args_info, locals_info): Use
4070 prototypes from frame.h and inferior.h.
4071 * Makefile.in (mi-main.o): Add dependency on frame.h.
4072
4073 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4074
4075 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4076 value in register 3 adjusted by ppc_gp0_regnum.
4077
4078 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4079
4080 2002-10-02 Marko Mlinar <markom@opencores.org>
4081
4082 * MAINTAINERS: Add myself to the Write After Approval list.
4083
4084 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4085
4086 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4087 of the section for the N64 ABI, fixed.
4088
4089 * config/mips/tm-irix6.h: Include solib.h.
4090
4091 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4092
4093 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4094 GNU operators.
4095
4096 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4097
4098 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4099 and that "mi0" syntax has been removed.
4100
4101 2002-09-30 David Carlton <carlton@math.stanford.edu>
4102
4103 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4104 * ppc-sysv-tdep.c: #include "gdb_string.h".
4105 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4106 pacify GCC.
4107
4108 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4109
4110 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4111 "vrsave"'s register number.
4112
4113 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4114
4115 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4116 use frame_unwind_signed_register to obtain the PC.
4117 (mips_frame_chain): Handle a generic dummy frame.
4118 (mips_init_extra_frame_info): When a generic dummy frame, don't
4119 re-compute the frame base.
4120 (mips_pop_frame): Handle generic dummy frames.
4121 (mips_gdbarch_init): When generic dummy frames, set
4122 use_generic_dummy_frames, push_dummy_frame to
4123 generic_push_dummy_frame, pc_in_call_dummy to
4124 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4125 generic_save_dummy_frame_tos.
4126
4127 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4128
4129 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4130 against TOP when TOP was explictly set.
4131 (generic_push_dummy_frame): Set TOP to zero.
4132
4133 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4134
4135 * event-loop.c (start_event_loop): Rename variable 'result' to
4136 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4137
4138 2002-09-30 Keith Seitz <keiths@redhat.com>
4139
4140 * gdb-events.sh (selected_thread_changed): New event.
4141 * gdb-events.c: Regenerated.
4142 * gdb-events.h: Regenerated.
4143
4144 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4145
4146 * MAINTAINERS: Add self to Write After Approval list.
4147
4148 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4149
4150 * disasm.c: New file.
4151 * disasm.h: New file.
4152 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4153 (compare_lines): Ditto.
4154 (dump_insns): Ditto.
4155 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4156 argument.
4157 (do_assembly_only): Ditto.
4158 (do_disassembly): Renamed to gdb_disassembly and moved to
4159 disasm.c. Sdded uiout argument.
4160 * Makefile.in: Add new files. Reorder SFILES list. Update
4161 dependencies. Include libgdb.a later in the insight executable.
4162
4163 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4164
4165 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4166 bfd/elf64-alpha-fbsd.c.
4167
4168 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4169
4170 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4171 i386gnu-tdep.c.
4172
4173 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4174
4175 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4176 __FUNCTION__.
4177 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4178 function name.
4179 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4180 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4181 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4182 (S_msg_sig_post_reply): Ditto.
4183
4184 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4185
4186 * sh-tdep.c (sh_use_struct_convention): Use definition according
4187 to ABI.
4188 (sh_push_arguments): Store in register with correct endianess.
4189 (sh_default_store_return_value): Ditto.
4190 (sh_gdbarch_init): Set sizeof long double to 8.
4191
4192 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4193
4194 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4195 Fix some whitespace problems.
4196
4197 2002-09-27 David Carlton <carlton@math.stanford.edu>
4198
4199 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4200 (mcore-tdep.o): Ditto.
4201 (ns32k-tdep.o): Ditto.
4202 (ns32knbsd-tdep.o): Ditto.
4203 (sh3-rom.o): Ditto.
4204 (vax-tdep.o): Ditto.
4205 * cris-tdep.c: #include "gdb_string.h"
4206 * mcore-tdep.c: Ditto.
4207 * ns32k-tdep.c: Ditto.
4208 * ns32knbsd-tdep.c: Ditto.
4209 * sh3-rom.c: Ditto.
4210 * vax-tdep.c: Ditto.
4211
4212 2002-09-27 David Carlton <carlton@math.stanford.edu>
4213
4214 * config/djgpp/fnchange.lst: Add entries for
4215 gdb/testsuite/gdb.c++/m-static files.
4216
4217 2002-09-27 Jim Wilson <wilson@redhat.com>
4218
4219 * MAINTAINERS: Add myself to the Write After Approval list.
4220
4221 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4222
4223 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4224
4225
4226 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4227
4228 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4229 frame.
4230
4231 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4232
4233 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4234 (rs6000_struct_return_address): Delete variable.
4235 (rs6000_store_struct_return): Update.
4236 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4237 deprecated_extract_struct_value_address.
4238 (rs6000_frame_align): New function.
4239 (rs6000_gdbarch_init): Set frame_align.
4240
4241 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4242
4243 From Grace Sainsbury <graces@redhat.com>:
4244 * Makefile.in (gdbtk-main.o): New target.
4245 (gdb.o): New target.
4246 (main_h): Define.
4247 (main.o): Update dependencies.
4248 (gdb$(EXEEXT)): Add gdb.o.
4249 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4250 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4251 (SUBDIR_GDBTK_CLEAN): Set.
4252 (install-gdbtk): Install the insight binary.
4253 (uninstall-gdbtk): New target.
4254 (all-gdbtk, clean-gdbtk): New rule.
4255 * top.c (use_windows): Default to zero.
4256 * main.c: Include "main.h".
4257 (main): Delete.
4258 (struct captured_main_args): Delete.
4259 (gdb_main): New function.
4260 * main.h: New file.
4261 * gdb.c: New File.
4262
4263 2002-09-25 Andrew Cagney <cagney@redhat.com>
4264
4265 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4266 (frame_map_regnum_to_name): New function.
4267 (frame_map_name_to_regnum): New function.
4268 * frame.h (frame_map_name_to_regnum): Declare.
4269 (frame_map_regnum_to_name): Declare.
4270 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4271 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4272 * parse.c: Do not include "builtin-regs.h".
4273 (target_map_name_to_register): Delete function.
4274 (write_dollar_variable): Use frame_map_name_to_regnum.
4275 * parser-defs.h (target_map_name_to_register): Delete declaration.
4276 * expprint.c: Include "frame.h".
4277 (print_subexp): Use frame_map_regnum_to_name.
4278 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4279 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4280
4281 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4282
4283 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4284 wasn't saved, and the next innermost frame is a dummy, return the
4285 dummy frame's link register.
4286
4287 2002-09-24 Jim Blandy <jimb@redhat.com>
4288
4289 Fix from Paul Breed:
4290 * main.c (captured_main): Add a `break' after the case for 'b'.
4291
4292 2002-09-24 Keith Seitz <keiths@redhat.com>
4293
4294 * varobj.c (c_type_of_child): Use get_target_type instead
4295 of TYPE_TARGET_TYPE.
4296
4297 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4298
4299 * source.c (get_current_or_default_source_symtab_and_line): Remove
4300 function.
4301 (set_default_source_symtab_and_line): New function. Attempts to
4302 determine a source file to list lines from if one is not currently
4303 defined.
4304 (get_current_source_symtab_and_line): Initialize sal.pc and
4305 sal.end fields.
4306 (set_current_source_symtab_and_line): Mark argument as const.
4307 * source.h: Update declarations and comments.
4308 * linespec.c (decode_line_1): Replace call to removed routine above.
4309 * stack.c (print_frame_info_base): Ditto.
4310 * cli/cli-cmds.c (edit_command): Ditto.
4311 (list_command): Ditto.
4312
4313 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4314
4315 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4316 sal.pc and sal.end fields.
4317 (get_current_or_default_source_symtab_and_line): Ditto.
4318 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4319 so we do not cause a new source symtab to be searched for (reverting an
4320 unintentional change from the 2002-09-20 patch).
4321 * scm-lang.c (scm_unpac): Ditto.
4322
4323 2002-09-21 Andrew Cagney <cagney@redhat.com>
4324
4325 * complaints.c (symfile_explanations): Remove new-line from
4326 ``isolated_message''.
4327 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4328 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4329
4330 2002-09-20 Nick Clifton <nickc@redhat.com>
4331
4332 * NEWS: Announce that V850EA ISA is no longer supported.
4333 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4334
4335 2002-09-20 David Carlton <carlton@math.stanford.edu>
4336
4337 * Makefile.in (c-lang.o): Correct dependencies.
4338 (utils.o): Gather dependencies.
4339 (charset.o): Move.
4340 * c-lang.c: #include "gdb_string.h"
4341
4342 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4343
4344 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4345 * cli/cli-cmds.c (list_command): New function. Implements the new
4346 cli edit command.
4347 (_init_cli_cmds): Add new command definition.
4348 * gdb.1: Document edit command.
4349 * doc/gdb.texinfo: Document edit command.
4350
4351 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4352
4353 * source.c: Make global variables current_source_symtab and
4354 current_source_line static.
4355 (list_command): Moved to cli/cli-cmds.c.
4356 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4357 (get_first_line_listed): New accessor function.
4358 (get_lines_to_list): New accessor function.
4359 (get_current_source_symtab_and_line): New function. Retrieves the
4360 position in the source code that we consider current.
4361 (get_current_or_default_source_symtab_and_line): New function.
4362 Like the above but attempts to determine a default position if one
4363 is not currently defined.
4364 (set_current_source_symtab_and_line): New function. Sets the source
4365 code position considered current and returns the previously set one.
4366 (clear_current_source_symtab_and_line): Reset stored information about
4367 a current source line.
4368 (_initialize_source): Remove registration for the "list" command and
4369 its alias.
4370 * source.h: Add declarations for the new functions above.
4371 * symtab.h: Remove declarations for the global variables mentioned
4372 above.
4373 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4374 obtain current source line.
4375 * linespec.c (decode_line_1): Ditto.
4376 * macroscope.c (default_macro_scope): Ditto.
4377 * scm-lang.c (scm_unpac): Ditto.
4378 * stack.c (print_frame_info_base): Ditto.
4379 * symfile.c (clear_symtab_users): Ditto.
4380 * symtab.c (decode_line_spec): Ditto.
4381 * cli/cli-cmds.c (list_command): Moved here from source.c.
4382 (ambiguous_line_spec): Moved here from source.c.
4383 (_init_cli_cmds): Add definition for "list" and its alias.
4384 * Makefile.in: Update dependencies.
4385
4386 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4387
4388 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4389 with what gcc thinks is correct.
4390
4391 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4392
4393 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4394 multiple register push instruction.
4395
4396 2002-09-19 Jim Blandy <jimb@redhat.com>
4397
4398 Add support for distinct host and target character sets.
4399 * charset.c, charset.h: New files.
4400 * c-exp.y: #include "charset.h".
4401 (yylex): Convert character and string literals to the target
4402 character set, before returning them as the semantic value of the
4403 token.
4404 * c-lang.c: #include "charset.h".
4405 (c_emit_char): Use charset-specific methods to recognize
4406 characters with backslash escape forms, to decide which characters
4407 to print literally and which to print using numeric escape
4408 sequences, and to convert target characters to host characters
4409 before printing.
4410 * utils.c: #include "charset.h".
4411 (no_control_char_error): New function.
4412 (parse_escape): Use charset-specific methods to recognize
4413 backslash escapes, parse `control character' notation, and convert
4414 characters from the host character set to the target character set.
4415 * configure.in: Set the default host character set.
4416 Check where to find iconv, and what its argument types might be.
4417 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4418 * Makefile.in (SFILES): List charset.c.
4419 (COMMON_OBS): List charset.o.
4420 (charset.o): New rule.
4421 (charset_h): New header dependency variable.
4422 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4423 (LIBICONV): New variable, set by configure.
4424 (CLIBS): Include $(LIBICONV) here.
4425 * aclocal.m4, config.in, configure: Regenerated.
4426
4427 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4428
4429 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4430 bison 1.35 warning.
4431
4432 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4433
4434 * gdb_mbuild.sh: New file.
4435
4436 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4437
4438 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4439
4440 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4441
4442 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4443 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4444 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4445 valops.c, value.h: Revert previous change.
4446
4447 2002-09-18 Michael Snyder <msnyder@redhat.com>
4448
4449 Preliminary support for Objective-C:
4450 * defs.h (language_objc): New enum value.
4451 (puts_filtered_tabular): Declaration only, exported from utils.c.
4452 (skip_quoted): Delete, declared in completer.h.
4453 * c-exp.y: Include completer.h.
4454 * p-exp.y: Ditto.
4455 * jv-exp.y: Ditto.
4456 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4457 New operator enum values.
4458 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4459 * language.c (binop_result_type): Handle language_objc case.
4460 (integral_type, character_type, string_type, boolean_type,
4461 structured_type, binop_type_check): Ditto.
4462 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4463 (struct objc_specific): Add to general_symbol_info.
4464 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4465 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4466 * parser-defs.h (struct objc_class_str): New struct type.
4467 (start_msglist, end_msglist, add_msglist): Declaration only,
4468 exported from objc-lang.c.
4469 * value.h (value_of_local, value_nsstring,
4470 call_function_by_hand_expecting_type): Exported from valops.c.
4471 * valops.c (find_function_addr): Export.
4472 (call_function_by_hand_expecting_type): New function.
4473 (value_of_local): New function.
4474 * symfile.c (init_filename_language_table): Add ".m" extension
4475 for Objective-C.
4476 * utils.c (puts_filtered_tabular): New function.
4477 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4478 (set/show demangle): Extend help-string to refer to ObjC.
4479 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4480 * stabsread.c (symbol_reference_defined): Objective-C symbols
4481 may contain colons: make allowances when scanning stabs strings
4482 for colons.
4483 (objc_find_colon): New function.
4484 * printcmd.c (address_info): If language == objc then print
4485 "self" instead of "this".
4486 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4487 OP_NSSTRING, and OP_SELF.
4488 (prefixify_subexp): Ditto.
4489 * source.c (print_source_lines): Mention objc in comment.
4490 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4491 method names.
4492
4493 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4494
4495 * complaints.h: Update copyright.
4496 (struct complaints): Declare.
4497 (struct complaint): Make `message' constant.
4498 (internal_complaint): Declare.
4499 (complaint): Declare.
4500 (complaint_root): Delete declaration.
4501 (symfile_complaints): Delete declaration.
4502 (struct complaints): Add opaque declaration.
4503 (clear_complaints): Add a complaints parameter.
4504 * complaints.c: Update copyright.
4505 (enum complaint_series): Define.
4506 (complaint_root): Delete.
4507 (struct complaints): Define.
4508 (complaint_sentinel, symfile_complaint_book): New variables.
4509 (symfile_explanations, symfile_complaints): New variables.
4510 New variables.
4511 (get_complaints): New function.
4512 (vcomplaint): New function.
4513 (complaint): New function.
4514 (internal_complaint): New function.
4515 (complain): Call vcomplain with symfile_complaint.
4516 (clear_complaints): Rewrite.
4517 (_initialize_complaints): Use add_setshow_command.
4518 * Makefile.in (complaints.o): Update dependencies.
4519 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4520 to call to clear_complaints.
4521 (new_symfile_objfile, reread_symbols): Ditto.
4522 (oldsyms_complaint): Delete.
4523 (empty_symtab_complaint, unknown_option_complaint): Delete.
4524 (free_named_symtabs): Use complaint instead of complain.
4525
4526 2002-09-18 Michael Snyder <msnyder@redhat.com>
4527
4528 Contributed by Apple Computer, Inc. Merged with current sources
4529 by Adam Fedor <fedor@doc.com> [cagney].
4530
4531 * objc-lang.c: First clean-up round: comments, indentation.
4532 * objc-lang.h: Ditto.
4533 * objc-lang.y: Ditto.
4534
4535 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4536
4537 * maint.c (maintenance_internal_error): Print the parameter as the
4538 error message.
4539 (maintenance_internal_warning): New function.
4540 (_initialize_maint_cmds): Add command `maint internal-warning'.
4541
4542 * defs.h (internal_warning, internal_vwarning): Declare.
4543 * utils.c (struct internal_problem): Define.
4544 (internal_vproblem): New function.
4545 (internal_warning): New function.
4546 (internal_vwarning): New function.
4547 (internal_warning_problem, internal_error_problem): New variables.
4548 (internal_verror): Just call internal_vproblem.
4549
4550 2002-09-18 Michael Snyder <msnyder@redhat.com>
4551
4552 * objc-lang.c: New file, support for Objective-C.
4553 Preliminary check-in, not yet integrated into gdb.
4554 * objc-lang.h: New file.
4555 * objc-exp.y: New file.
4556
4557 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4558
4559 * infrun.c (signal_stop_update): Convert definition to ISO C.
4560 (signal_print_update): Ditto.
4561 (signal_pass_update): Ditto.
4562 * inflow.c (terminal_save_ours): Ditto.
4563
4564 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4565 comments.
4566
4567 * config/djgpp/fnchange.lst: Handle name clashes between
4568 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4569 bfd/coff-tic80.c.
4570
4571 * i386-linux-tdep.h: Fix tipo.
4572
4573 2002-09-18 Adam Fedor <fedor@gnu.org>
4574
4575 * MAINTAINERS: Add myself to the Write After Approval list.
4576
4577 2002-09-18 Jim Blandy <jimb@redhat.com>
4578
4579 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4580 texthigh and textlow to reader-specific structs caused
4581 objfile_relocate to miss them. This is fixable, but the work that
4582 the change was supposed to prepare GDB for never got done anyway.
4583
4584 2002-09-18 David Carlton <carlton@math.stanford.edu>
4585
4586 * MAINTAINERS: Alphabetize Write After Approval list.
4587
4588 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4589
4590 Fix PR gdb/709
4591 * values.c (value_static_field): Call read_var_value.
4592
4593 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4594
4595 * valops.c (hand_function_call): Align the initial stack pointer
4596 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4597 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4598 return value.
4599 * mips-tdep.c (mips_frame_align): New function.
4600 (mips_gdbarch_init): Set frame_align.
4601 * gdbarch.sh (FRAME_ALIGN): New method.
4602 * gdbarch.h, gdbarch.c: Re-generate.
4603
4604 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4605
4606 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4607 registers.
4608
4609 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4610
4611 * NEWS: Mention that MIPS $fp behavior changed.
4612 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4613 reference to FP_REGNUM.
4614 (mipsnbsd_cannot_store_register): Ditto.
4615 * mips-linux-nat.c: Update copyright.
4616 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4617 (mips_linux_cannot_store_register): Ditto.
4618 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4619 * config/mips/tm-mips.h: Update copyright.
4620 (FP_REGNUM): Delete macro.
4621 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4622 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4623 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4624 (mips_r3041_reg_names, mips_r3051_reg_names)
4625 (mips_r3081_reg_names): Replace "fp" with "".
4626 Fix PR gdb/480.
4627
4628 2002-09-17 Theodore A. Roth <troth@verinet.com>
4629
4630 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4631 generic_read_register_dummy() (PR gdb/703).
4632 (avr_push_return_address): #if 0 out unused vars.
4633 (avr_gdbarch_init): Enable use of avr_push_return_address().
4634
4635 2002-09-17 Michael Snyder <msnyder@redhat.com>
4636
4637 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4638 RTE will take care of it.
4639
4640 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4641
4642 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4643 invalid, return SP_REGNUM.
4644
4645 2002-09-17 Michael Snyder <msnyder@redhat.com>
4646
4647 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4648 point registers without sign extension.
4649
4650 2002-09-17 Andrew Cagney <cagney@redhat.com>
4651
4652 * blockframe.c (deprecated_read_register_dummy): Rename
4653 generic_read_register_dummy.
4654 * frame.c (frame_unwind_signed_register): New function.
4655 (frame_unwind_unsigned_register): New function.
4656 * frame.h (frame_unwind_signed_register): Declare.
4657 (frame_unwind_unsigned_register): Declare.
4658 (deprecated_read_register_dummy): Rename
4659 generic_read_register_dummy.
4660
4661 * h8300-tdep.c (h8300_frame_chain): Update.
4662 (h8300_frame_saved_pc): Update.
4663 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4664 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4665 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4666 (s390_frame_chain): Update.
4667 * v850-tdep.c (v850_find_callers_reg): Update.
4668 (v850_frame_saved_pc): Update.
4669 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4670 (m32r_find_callers_reg): Update.
4671 (m32r_frame_saved_pc): Update.
4672 * sh-tdep.c (sh_find_callers_reg): Update.
4673 (sh64_get_saved_pr): Update.
4674 (sh_init_extra_frame_info): Update.
4675 (sh_init_extra_frame_info): Update.
4676 (sh64_init_extra_frame_info): Update.
4677 (sh64_init_extra_frame_info): Update.
4678 * mcore-tdep.c (mcore_find_callers_reg): Update.
4679 (mcore_frame_saved_pc): Update.
4680 (mcore_init_extra_frame_info): Update.
4681 * i386-tdep.c (i386_frame_saved_pc): Update.
4682 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4683 (ia64_init_extra_frame_info): Update.
4684 (ia64_init_extra_frame_info): Update.
4685 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4686 * cris-tdep.c (cris_init_extra_frame_info): Update.
4687 * avr-tdep.c (avr_frame_chain): Update.
4688 (avr_init_extra_frame_info): Update.
4689 (avr_frame_saved_pc): Update.
4690 * arm-tdep.c (arm_find_callers_reg): Update.
4691 (arm_init_extra_frame_info): Update.
4692 (arm_frame_saved_pc): Update.
4693
4694 2002-09-17 Tom Tromey <tromey@redhat.com>
4695
4696 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4697 is "'".
4698
4699 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4700
4701 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4702 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4703 NEXT_PROLOGUE_INSN.
4704 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4705 NEXT_PROLOGUE_INSN.
4706
4707 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4708
4709 * osfsolib.c: Remove file, replaced by solib-osf.c.
4710 * Makefile.in: Remove compilation rules for osfsolib.c.
4711
4712 2002-09-16 David Carlton <carlton@math.stanford.edu>
4713
4714 * cp-valprint.c (cp_print_class_method): Correct args to
4715 check_stub_method_group.
4716
4717 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4718
4719 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4720 `set architecture'. Unify naming convention of functions.
4721 (h8300_skip_prologue): Improve prologue analysis.
4722 (h8300_push_arguments): Rewritten to more closely match GCC's
4723 bizarre argument-passing behavior, along with the comment describing
4724 said behavior.
4725 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4726 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4727 sim, remote-e7000.c, remote-hms.c and remote.c
4728
4729 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4730
4731 * i386-tdep.c (gdb_print_insn_i386): Removed.
4732 (i386_print_insn): New function.
4733 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4734 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4735 tm_print_insn_info.
4736
4737 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4738
4739 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4740 zero.
4741
4742 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4743
4744 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4745 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4746 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4747
4748 2002-09-13 Christopher Faylor <cgf@redhat.com>
4749
4750 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4751
4752 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4753
4754 * gdbtypes.c (check_stub_method): Make static.
4755 (check_stub_method_group): New function.
4756 * gdbtypes.h: Update prototypes.
4757 * cp-support.c: New file.
4758 * cp-support.h: New file.
4759
4760 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4761 (update_method_name_from_physname): New function.
4762 (read_member_functions): Correct method names for operators
4763 and v3 constructors/destructors. Separate v2 constructors and
4764 destructors.
4765 * Makefile.in (stabsread.o): Update dependencies.
4766 (SFILES): Add cp-support.c.
4767 (COMMON_OBS): Add cp-support.o.
4768 (cp_support_h, cp-support.o): Add.
4769
4770 * cp-valprint.c (cp_print_class_method): Call
4771 check_stub_method_group instead of check_stub_method. Remove
4772 extraneous QUITs.
4773 * p-valprint.c (pascal_object_print_class_method): Likewise.
4774 * valops.c (search_struct_method): Likewise.
4775 (find_method_list, value_struct_elt_for_reference): Likewise.
4776
4777 2002-09-13 Andrew Cagney <cagney@redhat.com>
4778
4779 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4780 * gdbarch.h, gdbarch.c: Regenerate.
4781
4782 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4783
4784 * frame.c (find_saved_register): Delete function.
4785 * frame.h (find_saved_register): Delete declaration.
4786 Fix PR gdb/631.
4787
4788 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4789
4790 * mips-tdep.c (read_next_frame_reg): Re-hack using
4791 frame_register_unwind.
4792
4793 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4794
4795 * mips-tdep.c (mips_get_saved_register): Re-hack using
4796 frame_register_unwind.
4797
4798 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4799
4800 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4801 vector. Will be useful for Interix.
4802 * gdbarch.h, gdbarch.c: Regenerate.
4803
4804 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4805 name of the malloc function by NAME_OF_MALLOC.
4806
4807 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4808
4809 * value.h (find_function_in_inferior): Add const keyword to
4810 one of the parameters. Allows us to invoke this function with
4811 a const char *.
4812 * valops.c (find_function_in_inferior): Likewise.
4813
4814 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4815
4816 * exec.c (xfer_memory): Fix compilation warning with old versions
4817 of GCC.
4818 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4819
4820 2002-09-12 David Carlton <carlton@math.stanford.edu>
4821
4822 * symtab.h: Run through gdb_indent.h.
4823 Add 2002 to Copyright year list.
4824
4825 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4826
4827 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4828 mach constants.
4829 * MAINTAINERS: Add myself to write after approval list.
4830
4831 2002-09-11 J. Brobecker <brobecker@gnat.com>
4832
4833 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4834
4835 2002-09-11 J. Brobecker <brobecker@gnat.com>
4836
4837 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4838 Interix.
4839
4840 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4841
4842 * procfs.c (do_detach): Clear current signal, not just fault.
4843 Corrects problem with breakpoint trap signal leaking to detached
4844 process on Tru64.
4845
4846 2002-09-10 Michael Snyder <msnyder@redhat.com>
4847
4848 * buildsym.c (finish_block): Protect against null pointer.
4849
4850 2002-09-10 Andrew Cagney <cagney@redhat.com>
4851
4852 * infcmd.c (default_print_registers_info): Send all output to
4853 ``file'' instead of ``gdb_stdout''.
4854
4855 2002-09-10 Michael Snyder <msnyder@redhat.com>
4856
4857 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4858 LONGEST, and use signed register read (addresses are sign-
4859 extended for mips).
4860
4861 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4862
4863 * event-loop.c (gdb_do_one_event): Make public.
4864 * event-loop.h (gdb_do_one_event): Declare.
4865
4866 2002-09-10 Jeff Law <law@redhat.com>
4867
4868 * infttrace.c (child_resume): Simplify and rework to avoid
4869 TT_PROC_CONTINUE.
4870
4871 2002-09-09 Fred Fish <fnf@intrinsity.com>
4872
4873 * printcmd.c (print_scalar_formatted): "len" is the number of
4874 target bytes, NOT the number of target bits.
4875
4876 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4877
4878 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4879 * top.c (init_main): Set rl_terminal_name.
4880
4881 2002-09-08 Aidan Skinner <aidan@velvet.net>
4882
4883 * ada-lang.c (ada_array_bound, ada_type_match,
4884 _initialize_ada_language): Fix K&R definitions.
4885 * ada-tasks.c (get_current_task): Fix K&R definitions.
4886 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4887
4888 2002-09-07 Christopher Faylor <cgf@redhat.com>
4889
4890 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4891 Add XP.
4892
4893 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4894
4895 * i386-tdep.c (i386_register_virtual_type,
4896 i386_register_convertible, i386_register_convert_to_virtual,
4897 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4898 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4899 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4900 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4901 Don't set push_arguments twice.
4902
4903 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4904 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4905 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4906 sigtramp_end to NULL.
4907 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4908 defines.
4909 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4910
4911 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4912 whitespace.
4913
4914 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4915 * gdbarch.h, gdbarch.c: Re-generate.
4916 * blockframe.c (find_pc_sect_partial_function): Convert to use
4917 SIGTRAMP_START_P predicate.
4918
4919 2002-09-05 Michael Snyder <msnyder@redhat.com>
4920
4921 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4922 generic_dummy_frame method and old method. Also distinguish
4923 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4924 (arm_extract_return_value): Use new regcache method.
4925
4926 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4927 adjustment that doesn't conform to the ABI.
4928 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4929 saved regcache, not from current regcache.
4930
4931 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4932
4933 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4934 * README: Update.
4935
4936 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4937
4938 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4939 if arm_apcs_32 is false.
4940
4941 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4942
4943 GDB 5.3 branch created.
4944
4945 2002-09-03 Theodore A. Roth <troth@verinet.com>
4946
4947 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4948 generic_unwind_get_saved_register.
4949
4950 2002-09-03 David Carlton <carlton@math.stanford.edu>
4951
4952 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4953 argument (PR gdb/653). Update call to smash_to_method_type.
4954 (read_structure_scope): Update call to dwarf2_add_member_fn.
4955
4956 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4957
4958 * x86-64-linux-tdep.c: Include gdb_string.h
4959 * x86-64-linux-nat.c: Ditto.
4960
4961 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4962
4963 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4964 when YYDEBUG is set to 1.
4965 * c-exp.y: Likewise.
4966 * f-exp.y: Likewise.
4967 * jv-exp.y: Likewise.
4968 * m2-exp.y: Likewise.
4969 * p-exp.y: Likewise.
4970
4971 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4972
4973 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4974 dependency list.
4975 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4976 solib_svr4_fetch_link_map_offsets to
4977 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4978 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4979 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4980 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4981 solib-svr4.o, and solib-legacy.o.
4982 * config/i386/tm-nbsd.h: Include solib.h.
4983
4984 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4985
4986 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4987 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4988 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4989 comment noting that this needs its own target configuration.
4990 * config/i386/nbsd.mt: New file.
4991 * config/i386/nbsdaout.mt: Remove.
4992 * config/i386/nbsdelf.mt: Ditto.
4993 * config/i386/tm-nbsdaout.h: Ditto.
4994
4995 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4996
4997 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4998 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4999 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
5000 tdep->sigtramp_end.
5001 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
5002 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
5003 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
5004
5005 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
5006
5007 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
5008 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
5009 * i386-tdep.h (i386bsd_init_abi): New prototype.
5010 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
5011 function declaration.
5012 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
5013 for NetBSD-a.out or NetBSD-ELF.
5014 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
5015 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
5016 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
5017 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
5018 and nbsd-tdep.h.
5019 (i386nbsd_pc_in_sigtramp): New function.
5020 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5021 i386nbsd_pc_in_sigtramp.
5022 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
5023 and i386nbsdelf_init_abi OS ABI handlers.
5024 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
5025 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5026
5027 2002-09-02 Mark Kettenis <kettenis@gnu.org>
5028
5029 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
5030 registers if the target really has them.
5031
5032 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5033
5034 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
5035 than nbsd-tdep.h.
5036
5037 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5038
5039 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
5040 list.
5041 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
5042 (alphanbsd_skip_sigtramp_frame): New functions.
5043 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
5044 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
5045 to alphanbsd_sigcontext_addr.
5046
5047 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5048
5049 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5050 list.
5051 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
5052 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5053 nbsd_pc_in_sigtramp.
5054 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5055 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5056 * nbsd-tdep.c: Include gdb_string.h.
5057 (nbsd_pc_in_sigtramp): New function.
5058 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
5059 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5060 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5061 ppcnbsd_pc_in_sigtramp.
5062 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5063 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5064 shnbsd_pc_in_sigtramp.
5065 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5066 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5067 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5068
5069 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5070
5071 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5072 watchpoints to NULL.
5073 (insert_breakpoints): set val field of watchpoints if NULL.
5074
5075
5076 2002-08-29 Jim Blandy <jimb@redhat.com>
5077
5078 * symtab.c (lookup_symbol_aux): In the cases where we find a
5079 minimal symbol of an appropriate name and use its address to
5080 select a symtab to read and search, use `name' (as passed to us)
5081 as the demangled name when searching the symtab's global and
5082 static blocks, not the minsym's name.
5083
5084 2002-08-29 Keith Seitz <keiths@redhat.com>
5085
5086 * stack.c (print_frame_info_base): Always set current_source_symtab
5087 and current_source_line.
5088
5089 2002-08-29 Donn Terry <donnte@microsoft.com>
5090
5091 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5092
5093 2002-08-28 Keith Seitz <keiths@redhat.com>
5094
5095 * stack.c (select_frame): Add FIXME concerning selected-frame
5096 events.
5097 (select_frame_command): Send selected-frame-level-changed
5098 event notification, but only if the level actually changed.
5099 (up_silently_base): Add selected-frame-level-changed event
5100 notification.
5101 (down_silently_base): Likewise.
5102
5103 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5104
5105 * Makefile.in: Update dependencies for all gdb/*.c files.
5106
5107 2002-08-27 Tom Tromey <tromey@redhat.com>
5108
5109 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5110 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5111 Update dependencies.
5112 * i387-tdep.c: Include gdb_string.h.
5113 * osabi.c: Likewise.
5114 * i386-linux-nat.c: Likewise.
5115 * lin-lwp.c: Likewise.
5116 * ax-gdb.c: Likewise.
5117 * signals/signals.c: Likewise.
5118 * jv-valprint.c: Likewise.
5119 * p-lang.c: Likewise.
5120 * c-valprint.c: Likewise.
5121 * cp-abi.c: Likewise.
5122
5123 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5124
5125 * cli/cli-script.h (copy_command_lines): Export.
5126 * breakpoint.c: Include cli/cli-script.h.
5127 * Makefile.in (breakpoint.o): Update dependencies.
5128
5129 2002-08-26 Michael Snyder <msnyder@redhat.com>
5130
5131 * breakpoint.c (insert_breakpoints): Protect all references
5132 to 'process_warning'. Shorten long lines.
5133
5134 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5135
5136 * cli/cli-script.c (copy_command_lines): New function.
5137 * defs.h (copy_command_lines): Export.
5138 * testsuite/gdb.base/commands.exp: New tests for commands
5139 attached to a temporary breakpoint, and for commands that
5140 delete the breakpoint they are attached to.
5141
5142 2002-08-26 Michael Snyder <msnyder@redhat.com>
5143
5144 * breakpoint.c (bpstat_stop_status): Instead of copying the
5145 pointer to the breakpoint commands struct, make a new copy
5146 of the struct and point to that.
5147 (bpstat_clear): Free the commands struct.
5148 (bpstat_clear_actions): Free the commands struct.
5149 (bpstat_do_actions): Free the command actions. Also execute
5150 the local cleanups, instead of deleting them.
5151 (delete_breakpoint): Leave the commands field of the bpstat
5152 chain alone -- it will be freed later.
5153
5154 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5155
5156 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5157 deleted in 2002-08-20 commit. This function is still used by
5158 ppc-linux-nat.c.
5159
5160 2002-08-26 Keith Seitz <keiths@redhat.com>
5161
5162 * gdb-events.sh: Add selected-frame-level-changed event.
5163 * gdb-events.c: Regenerated.
5164 * gdb-events.h: Regenerated.
5165
5166 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5167
5168 Fix PR gdb/393:
5169 * inflow.c (terminal_save_ours): New function to save terminal
5170 settings.
5171 * inferior.h (terminal_save_ours): Declare.
5172 * target.c (debug_to_terminal_save_ours): New function.
5173 (cleanup_target): Defaults to_terminal_save_ours.
5174 (update_current_target): Inherit to_terminal_save_ours.
5175 (setup_target_debug): Set to_terminal_save_ours.
5176 * target.h (target_terminal_save_ours): New to save terminal settings.
5177 (target_ops): New member to_terminal_save_ours.
5178 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5179 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5180 * inftarg.c (init_child_ops): Likewise.
5181 * m3-nat.c (init_m3_ops): Likewise.
5182 * procfs.c (init_procfs_ops): Likewise.
5183 * wince.c (init_child_ops): Likewise.
5184 * win32-nat.c (init_child_ops): Likewise.
5185 * sol-thread.c (init_sol_thread_ops): Likewise.
5186
5187 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5188
5189 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5190 use regcache_* functions.
5191 (i386_gdbarch_init): Set store_return_value instead of
5192 deprecated_store_return_value.
5193
5194 * regcache.c (regcache_raw_write_signed,
5195 regcache_raw_write_unsigned): New functions.
5196 * regcache.h (regcache_raw_write_signed,
5197 regcache_raw_write_unsigned): New prototypes.
5198
5199 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5200
5201 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5202 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5203 source file dependencies. Cleanup corresponding generator rules.
5204
5205 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5206
5207 * regcache.h (register_offset_hack): Declare.
5208 (regcache_cooked_read_using_offset_hack): Declare.
5209 (regcache_cooked_write_using_offset_hack): Declare.
5210
5211 * regcache.c (register_offset_hack): New function.
5212 (regcache_cooked_read_using_offset_hack): New function.
5213 (regcache_cooked_write_using_offset_hack): New function.
5214 (regcache_dump): Check that the registers, according to their
5215 offset, are packed hard against each other.
5216 (cooked_xfer_using_offset_hack): New function.
5217
5218 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5219
5220 * regcache.c (struct regcache_descr): Add field register_type.
5221 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5222 in as a parameter
5223 (init_regcache_descr): Initialize register_type. Pass the descr
5224 to init_legacy_regcache_descr. Use register_type instead of
5225 REGISTER_VIRTUAL_TYPE.
5226 (register_type): New function.
5227 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5228 * regcache.h (register_type): Declare.
5229
5230 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5231
5232 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5233 instead of deprecated_store_return_value. Fix fallout from
5234 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5235
5236 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5237
5238 * regcache.c (max_register_size): New function.
5239 (init_legacy_regcache_descr): Ensure that max_register_size is
5240 large enough for REGISTER_VIRTUAL_SIZE.
5241 * regcache.h (max_register_size): Declare.
5242
5243 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5244
5245 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5246 store_return_value.
5247 (e500_extract_return_value): Change type of valbuf pointer to
5248 void.
5249
5250 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5251
5252 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5253 workaround.
5254
5255 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5256 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5257 long long) to prevent compiler warning on 64-bit systems.
5258
5259 2002-08-23 Andrew Cagney <cagney@redhat.com>
5260
5261 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5262 (DEPRECATED_STORE_RETURN_VALUE): New method.
5263 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5264 * gdbarch.h, gdbarch.c: Re-generate.
5265
5266 * values.c (set_return_value): Pass current_regcache to
5267 STORE_RETURN_VALUE.
5268 * arch-utils.h (legacy_store_return_value): Declare.
5269 * arch-utils.c (legacy_store_return_value): New function.
5270 (legacy_extract_return_value): Update parameters.
5271
5272 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5273 STORE_RETURN_VALUE.
5274 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5275 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5276 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5277 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5278 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5279 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5280 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5281 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5282 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5283 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5284
5285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5286 * i386-tdep.c (i386_extract_return_value): Update.
5287 * arch-utils.c (legacy_extract_return_value): Update.
5288 * frv-tdep.c (frv_gdbarch_init): Update.
5289 * cris-tdep.c (cris_gdbarch_init): Update.
5290 * d10v-tdep.c (d10v_gdbarch_init): Update.
5291 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5292 * m68k-tdep.c (m68k_gdbarch_init): Update.
5293 * mcore-tdep.c (mcore_gdbarch_init): Update.
5294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5295 * s390-tdep.c (s390_gdbarch_init): Update.
5296 * sparc-tdep.c (sparc_gdbarch_init): Update.
5297 * sh-tdep.c (sh_gdbarch_init): Update.
5298 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5299 * v850-tdep.c (v850_gdbarch_init): Update.
5300 * avr-tdep.c (avr_gdbarch_init): Update.
5301 * ia64-tdep.c (ia64_gdbarch_init): Update.
5302 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5303 * vax-tdep.c (vax_gdbarch_init): Update.
5304 * alpha-tdep.c (alpha_gdbarch_init): Update.
5305 * arm-tdep.c (arm_gdbarch_init): Update.
5306 * mips-tdep.c (mips_gdbarch_init): Update.
5307 * i386-tdep.c (i386_gdbarch_init): Update.
5308
5309 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5310
5311 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5312 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5313
5314 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5315
5316 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5317 problems.
5318
5319 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5320
5321 * infrun.c (handle_inferior_event): Move a comment outside of a
5322 function call, in order to avoid indent reformatting this part
5323 of the code in an unreadable way.
5324
5325 2002-08-23 Grace Sainsbury <graces@redhat.com>
5326
5327 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5328 when breakpoints fail. Move general breakpoint error messages to
5329 insert_breakpoints.
5330 * breakpoint.c (insert_breakpoints): Change warnings when
5331 breakpoints are nto inserted to specify the type. Remove call to
5332 memory_error when hardware breakpoints can't be inserted. Remove
5333 multiple calls to warning so all messages are sent to the user at
5334 once.
5335 (delete_breakpoints): Make insert error messsages more explicit.
5336
5337 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5338
5339 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5340 gdbserver/ChangeLog.
5341
5342 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5343
5344 * i386-tdep.c: Include "objfiles.h".
5345 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5346 skip_trampoline_code.
5347 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5348 (CPLUS_MARKER): Define to '.'.
5349
5350 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5351 member.
5352 (linux_corefile_thread_callback): Increase args->num_notes.
5353 (linux_make_note_section): Initialize thread_args.num_notes, and
5354 use it to determine whether notes for any threads were created.
5355
5356 2002-08-23 Donn Terry <donnte@microsoft.com>
5357
5358 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5359 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5360 and PCUNKILL.
5361 (write_with_trace): Conditionalize out the switch branch handling
5362 PCSHOLD if the corresponding macro is not defined. Likewise for
5363 PRSABORT and PRSTOP.
5364 This change will be needed by the Interix port.
5365
5366 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5367
5368 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5369 write_register wherever possible instead of manipulating the
5370 register bytes directly.
5371 Assign VALUE_CONTENTS to a variable and use that.
5372 The GPR numbers are now dependent on the architecture.
5373
5374 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5375
5376 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5377 ev_offset fields.
5378 (skip_prologue): Add support for BookE/e500 instructions.
5379 (e500_extract_return_value): New function.
5380 (frame_get_saved_regs): Add support for saving ev registers and
5381 pseudo gpr's.
5382 (e500_store_return_value): New function.
5383 (rs6000_gdbarch_init): Move up default intializations of
5384 deprecated_extract_return_value and store_return_value. Overwrite
5385 init of store_return_value with e500 specific version.
5386 Set extract_return_value for e500.
5387
5388 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5389
5390 * blockframe.c (generic_call_dummy_register_unwind): Use
5391 regcache_cooked_read to catch cases in which the variable is
5392 stored in a pseudo register.
5393
5394 2002-08-22 Andrew Cagney <cagney@redhat.com>
5395
5396 * NEWS: Mention that the i960 has been made obsolete.
5397 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5398 i960-tdep.c
5399 (remote-nrom.o): Obsolete target.
5400 (remote-nindy.o, i960-tdep.o): Ditto.
5401 * remote-nrom.c: Make file obsolete.
5402 * remote-nindy.c, remote-vx960.c: Ditto.
5403 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5404 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5405 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5406 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5407 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5408 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5409 i960-*-vxworks* obsolete.
5410 * MAINTAINERS: Note that the i960 is obsolete.
5411
5412 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5413
5414 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5415 detach to allow reinitialization.
5416
5417 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5418
5419 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5420 attempt).
5421
5422 2002-08-22 Jim Blandy <jimb@redhat.com>
5423
5424 * coffread.c (coff_symfile_read): Don't try to read the line
5425 number table from disk if the image file doesn't have a symbol
5426 table; we'll never actually look at the info anyway, and Windows
5427 ships DLL's with bogus file offsets for the line number data.
5428
5429 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5430
5431 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5432 an e500 executable.
5433
5434 2002-08-21 Michael Snyder <msnyder@redhat.com>
5435
5436 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5437 (MSYMBOL_SIZE): Replace macro with function.
5438 (DEFAULT_MIPS_TYPE): Delete unused macro.
5439 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5440 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5441
5442 2002-08-21 Jim Blandy <jimb@redhat.com>
5443
5444 * valops.c (value_cast): Simplify and correct logic for doing a
5445 static cast from a pointer to a base class to a pointer to a
5446 derived class.
5447
5448 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5449
5450 * infcmd.c (default_print_registers_info): Replace
5451 do_registers_info.
5452 (registers_info): Use gdbarch_print_registers_info instead of
5453 DO_REGISTERS_INFO.
5454 * inferior.h (default_print_registers_info): Replace
5455 do_registers_info.
5456 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5457 (DO_REGISTERS_INFO): Change to a predicate function.
5458 * gdbarch.h, gdbarch.c: Regenerate.
5459
5460 2002-08-21 Keith Seitz <keiths@redhat.com>
5461
5462 * gdb-events.sh: Add target-changed event.
5463 * gdb-events.c: Regenerated.
5464 * gdb-events.c: Regenerated.
5465 * valops.c (value_assign): Add target-changed event notification
5466 to inlval_register, lval_memory, and lval_reg_frame_relative.
5467
5468 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5469
5470 * NEWS: Add an entry regarding the improvement of the next/step
5471 operation on Alpha Tru64 multi-processor machines.
5472
5473 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5474
5475 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5476 directores.
5477 * Makefile.in: Update all _h macro definitions.
5478 * Makefile.in (install-gdbtk): Move to install section.
5479 (rdi-share/libangsd.a): Move to end of file.
5480
5481 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5482
5483 * frame.c (frame_register_unwind): When a register, set addrp to
5484 the register's byte.
5485
5486 2002-08-20 Michael Snyder <msnyder@redhat.com>
5487
5488 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5489 used locally, so move them from the target machine header to here.
5490 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5491 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5492 Make static.
5493 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5494
5495 2002-08-20 Andrew Cagney <cagney@redhat.com>
5496
5497 * NEWS: Mention that the Apollo line was made obsolete.
5498 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5499 m68*-hp-hpux* obsolete.
5500 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5501 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5502 * buildsym.c (make_blockvector): Make static.
5503 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5504 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5505 (ALLDEPFILES): Remove dstread.c.
5506 (dstread.o): Obsolete make rule.
5507 * dstread.c: Makefile obsolete.
5508 * dst.h: Ditto.
5509 * config/m68k/hp300hpux.mt: Ditto.
5510 * config/m68k/hp300hpux.mh: Ditto.
5511 * config/m68k/hp300bsd.mt: Ditto.
5512 * config/m68k/hp300bsd.mh: Ditto.
5513 * config/m68k/apollo68b.mt: Ditto.
5514 * config/m68k/apollo68v.mh: Ditto.
5515 * config/m68k/apollo68b.mh: Ditto.
5516
5517 2002-08-20 Michael Snyder <msnyder@redhat.com>
5518
5519 * mips-tdep.c (mips_in_return_stub): Make static.
5520 (mips_gdbarch_init): Set in_solib_return_trampoline.
5521 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5522
5523 2002-08-20 Michael Snyder <msnyder@redhat.com>
5524
5525 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5526 * gdbarch.c, gdbarch.h: Regenerate.
5527 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5528 Add.
5529 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5530
5531 2002-08-20 Michael Snyder <msnyder@redhat.com>
5532
5533 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5534 (mips_gdbarch_init): Set skip_trampoline_code,
5535 in_solib_call_trampoline.
5536 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5537 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5538
5539 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5540
5541 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5542
5543 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5544 vector type for ev registers.
5545 (e500_pseudo_register_read): New function.
5546 (e500_pseudo_register_write): New function.
5547 (e500_dwarf2_reg_to_regnum): New function.
5548 (PPC_UISA_NOFP_SPRS): New macro.
5549 (PPC_EV_REGS): New macro.
5550 (PPC_GPRS_PSEUDO_REGS): New macro.
5551 (registers_e500): New register set for e500.
5552 (variants): Add e500 variant.
5553 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5554 before setting architectural dependent variations. Initialize ev
5555 registers numbers. Add case for e500 architecture. Set the
5556 number of pseudo registers.
5557
5558 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5559
5560 * rs6000-tdep.c: Clean up comments.
5561
5562 2002-08-20 Andrew Cagney <cagney@redhat.com>
5563
5564 * h8300-tdep.c: Re-indent file.
5565
5566 2002-08-20 Jim Blandy <jimb@redhat.com>
5567
5568 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5569 default for this.
5570
5571 2002-08-20 Keith Seitz <keiths@redhat.com>
5572
5573 * breakpoints.c (watch_command_1): Use internal breakpoint
5574 when setting a watchpoint_scope breakpoint.
5575
5576 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5577
5578 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5579 (build_builtin_type_vec64i): Ditto.
5580 (build_builtin_type_vec128): Ditto.
5581 (build_builtin_type_vec128i): Ditto.
5582
5583 2002-08-19 Michael Snyder <msnyder@redhat.com>
5584
5585 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5586 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5587 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5588 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5589 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5590 CALL_DUMMY_ADDRESS): Delete.
5591 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5592 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5593 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5594 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5595 push_return_address.
5596 (mips_register_raw_size, mips_eabi_use_struct_convention,
5597 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5598 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5599 mips_init_extra_frame_info, mips_eabi_push_arguments,
5600 mips_n32n64_push_arguments, mips_push_return_address,
5601 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5602 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5603
5604 2002-08-19 Michael Snyder <msnyder@redhat.com>
5605
5606 * mips-tdep.c (mips_frame_num_args): New function.
5607 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5608 frame_saved_pc, frame_args_address, frame_locals_address,
5609 frame_num_args, and frame_args_skip.
5610 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5611 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5612 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5613 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5614
5615 2002-08-20 Michael Snyder <msnyder@redhat.com>
5616
5617 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5618 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5619 * mips-tdep.c (mips_store_struct_return): New function.
5620 (mips_extract_struct_value_address): New function.
5621 (mips_gdbarch_init): Set store_struct_return and
5622 extract_struct_value_address.
5623
5624 2002-08-20 David Carlton <carlton@math.stanford.edu>
5625
5626 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5627 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5628 (read_file_scope): Check that line_header is nonzero before
5629 decoding macro information.
5630
5631 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5632
5633 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5634 flag the general-purpose registers as floating-point on targets
5635 that don't support the floating-point registers.
5636
5637 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5638
5639 * rs6000-tdep.c (altivec_register_p): Delete.
5640 (rs6000_do_altivec_registers): Delete.
5641 (rs6000_altivec_registers_info): Delete.
5642 (rs6000_do_registers_info): Delete.
5643 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5644 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5645
5646 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5647
5648 * infcmd.c (do_registers_info): Print vector registers in hex
5649 format only.
5650 (print_vector_info): Check that printing registers
5651 makes sense.
5652 (print_float_info): Ditto.
5653
5654 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5655
5656 * mips-tdep.c (mips_gdbarch_init): Update.
5657 (mips_o32_extract_return_value): Rewrite.
5658 (mips_o32_store_return_value): Rewrite.
5659 (mips_o32_xfer_return_value): New function.
5660 (mips_xfer_register): Tweak debug print message. Allow for
5661 buf_offset when dumping the value transfered.
5662
5663 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5664
5665 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5666 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5667 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5668 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5669 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5670
5671 2002-08-14 Michael Snyder <msnyder@redhat.com>
5672
5673 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5674
5675 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5676
5677 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5678 register.
5679 (P): New macro to define a register as a pseudo register.
5680 (R, R4, R8, R16, FR32, R64, R0): Updated.
5681 (struct variant): Add new fields for number of pseudo registers
5682 and number of total registers.
5683 (tot_num_registers): New macro replacing....
5684 (num_registers): ...deleted macro.
5685 (num_registers): New function.
5686 (num_pseudo_registers): New function.
5687 (variants): Update all variants to intialize new fields correctly.
5688 Postpone initialization of number of pseudo regs and real regs.
5689 (init_variants): New function.
5690 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5691 registers offsets.
5692
5693 2002-08-19 David Carlton <carlton@math.stanford.edu>
5694
5695 * valops.c (search_struct_field): Change error message to treat
5696 return value of 0 from value_static_field as meaning that field is
5697 optimized out.
5698 (value_struct_elt_for_reference): Ditto.
5699 * values.c (value_static_field): Treat an unresolved location the
5700 same as a nonexistent symbol. Fix PR gdb/635.
5701 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5702 enclosed. Fix PR gdb/574.
5703 * MAINTAINERS: Add self to Write After Approval list.
5704
5705 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5706
5707 * mips-tdep.c (mips_xfer_register): New function.
5708 (mips_n32n64_extract_return_value): Rewrite.
5709 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5710 instead of deprecated_extract_return_value.
5711
5712 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5713
5714 * rs6000-tdep.c (TDEP): Delete macro.
5715 (branch_dest): Replace use of TDEP macro with its body.
5716 (rs6000_pop_frame): Ditto.
5717 (rs6000_push_arguments): Ditto.
5718 (rs6000_skip_trampoline_code): Ditto.
5719 (rs6000_frame_saved_pc): Ditto.
5720 (rs6000_frame_chain): Ditto.
5721 (rs6000_register_name): Ditto.
5722 (rs6000_register_byte): Ditto.
5723 (rs6000_register_raw_size): Ditto.
5724 (rs6000_register_virtual_type): Ditto.
5725 (rs6000_register_convertible): Ditto.
5726 (rs6000_convert_from_func_ptr_addr): Ditto.
5727
5728 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5729
5730 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5731 conditionally.
5732 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5733 MIPS_LINUX_JB_ELEMENT_SIZE.
5734 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5735 for MAX_REGISTER_RAW_SIZE arrays.
5736 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5737 MIPS_LINUX_JB_ELEMENT_SIZE.
5738
5739 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5740
5741 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5742
5743 2002-08-19 Aidan Skinner <aidan@velvet.net>
5744
5745 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5746 ada-valprint.c ada-tasks.c.
5747 (YYFILES): Add ada-exp.y.
5748 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5749 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5750 (ada-exp.tab.o): New target.
5751
5752 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5753
5754 * regcache.c (regcache_xfer_part): New function.
5755 (regcache_raw_read_part): New function.
5756 (regcache_raw_write_part): New function.
5757 (regcache_cooked_read_part): New function.
5758 (regcache_cooked_write_part): New function.
5759 * regcache.h (regcache_raw_read_part): Declare.
5760 (regcache_raw_write_part): Declare.
5761 (regcache_cooked_read_part): Declare.
5762 (regcache_cooked_write_part): Declare.
5763
5764 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5765
5766 * remote.c (remote_open_1): Add async_p.
5767 (remote_async_open_1): Delete.
5768 (open_remote_target): Delete.
5769 (remote_open, extended_remote_open): Update calls to remote_open_1.
5770 (remote_async_open, extended_remote_async_open): Call
5771 remote_open_1 instead of remote_async_open_1.
5772
5773 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5774
5775 * blockframe.c: Fix a few coding standard violations.
5776
5777 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5778
5779 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5780 here from ...
5781 * config/i386/tm-i386sco5.h: ... here. File removed.
5782 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5783
5784 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5785 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5786 (TM_FILE): Set to tm-i386.h.
5787 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5788 * config/i386/tm-i386v.h: Remove file.
5789 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5790 instead of "i386/tm-i386v.h".
5791 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5792 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5793 "i386/tm-i386v.h".
5794 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5795 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5796 "i386/tm-i386.h".
5797
5798 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5799
5800 * config/i386/nm-i386v.h: Add protection against
5801 multiple-inclusion.
5802 (i386_register_u_addr): Remove prototype.
5803 (register_u_addr): New prototype.
5804 (REGISTER_U_ADDR): Redefine accordingly.
5805 * i386v-nat.c: Improve several comments.
5806 (i386_register_u_addr): Change signature and rename to
5807 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5808 ubase variable.
5809
5810 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5811
5812 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5813 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5814 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5815 deprecated_extract_return_value.
5816 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5817 rename mips_o32o64_push_arguments.
5818 (mips_gdbarch_init): Update.
5819 (mips_extract_return_value): Delete.
5820 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5821 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5822 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5823 (mips_n32n64_extract_return_value): Clone
5824 mips_extract_return_value.
5825 (mips_store_return_value): Delete.
5826 (mips_o32_store_return_value): Clone mips_store_return_value.
5827 (mips_o64_store_return_value): Clone mips_store_return_value.
5828 (mips_eabi_store_return_value): Clone mips_store_return_value.
5829 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5830
5831 2002-08-18 Aidan Skinner <aidan@velvet.net>
5832
5833 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5834 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5835
5836 2002-08-18 Aidan Skinner <aidan@velvet.net>
5837
5838 * ada-lang.c: Run through gdb_indent.sh.
5839 * ada-lang.h: Run through gdb_indent.sh.
5840 * ada-tasks.c: Run through gdb_indent.sh.
5841 * ada-typeprint.c: Run through gdb_indent.sh.
5842 * ada-valprint.c: Run through gdb_indent.sh.
5843
5844 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5845
5846 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5847 ABI.
5848
5849 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5850
5851 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5852
5853 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5854 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5855
5856 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5857 write_register_gen instead of write_register_bytes.
5858
5859 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5860 i[3456]-*-osf1mk* configurations have been made obsolete.
5861 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5862 i[3456]86-*-osf1mk* hosts obsolete.
5863 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5864 targets obsolete.
5865 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5866 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5867 config/i386/i386m3.mt, config/i386/nm-m3.h,
5868 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5869 config/i386/i386mk.mh, config/i386/i386mk.mt,
5870 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5871 obsolete.
5872 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5873 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5874 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5875
5876 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5877
5878 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5879 (hppa_value_returned_from_stack): Declare.
5880 (hppa_extract_return_value): Declare.
5881 * config/pa/hppa.mt: New file.
5882 * configure.tgt: Recognize hppa*-*-*.
5883 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5884
5885 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5886
5887 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5888 comment.
5889
5890 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5891
5892 * top.c (gdb_rl_operate_and_get_next): Make sure
5893 operate-and-get-next functions correctly even when the history
5894 list is completely filled.
5895
5896 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5897
5898 * MAINTAINERS (Target Instruction Set Architectures): Rename
5899 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5900 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5901 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5902 already listed under Host/Native.
5903
5904 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5905 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5906 mips*-*-*.
5907
5908 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5909
5910 * config/ia64/ia64.mt: New file.
5911 * config/alpha/alpha.mt: New file.
5912 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5913 ia64-linux-gnu. Mention that ia64-elf is broken.
5914 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5915
5916 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5917
5918 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5919 generic_func_frame_valid instead of func_frame_valid.
5920
5921 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5922
5923 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5924 procfs appears to be broken when debugging on multi-processor
5925 machines. So enable software single stepping in order to avoid
5926 using the procfs interface to do next/step operations, using
5927 internal breakpoints instead.
5928
5929 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5930 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5931 make this pc address equal to the value it would have if the
5932 system stepping capability was used. Also set a new flag used
5933 to ensure that we don't readjust the PC one more time later.
5934
5935 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5936 address by DECR_PC_AFTER_BREAK when software single step is
5937 in use for this architecture, as this has already been taken
5938 care of in handle_inferior_event().
5939
5940 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5941
5942 * infrun.c (handle_inferior_event): Minor reformatting, to make
5943 a rather long condition expression easier to read.
5944
5945 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5946
5947 * Makefile.in (gdbtk.o): Move to end of file.
5948 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5949 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5950 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5951 (gdbtk-wrapper.o, gdbres.o): Ditto.
5952
5953 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5954
5955 * Makefile.in (copying.o): Separate out compile rule.
5956 (hpux-thread.o, procfs.o, signals.o): Ditto.
5957 (v850ice.o, z8k-tdep.o): Ditto.
5958 (tui-file.o): Move to TUI section.
5959 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5960 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5961
5962 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5963
5964 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5965 skip_trampoline_code, for better namespace-proofing.
5966
5967 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5968
5969 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5970
5971 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5972
5973 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5974
5975 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5976 signal, check whether we hit a breakpoint before checking for a
5977 single step breakpoint. Otherwise, GDB fails to notice that a
5978 breakpoint has been hit when stepping onto a breakpoint.
5979
5980 2002-08-16 Keith Seitz <keiths@redhat.com>
5981
5982 * gdb-events.sh (clear_gdb_event_hooks): New function.
5983 * gdb-events.c: Regenerate.
5984 * gdb-events.h: Regenerate.
5985
5986 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5987
5988 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5989 not_a_sw_breakpoint.
5990 * breakpoint.h (bpstat_stop_status): Add parameter names.
5991
5992 2002-08-16 Grace Sainsbury <graces@redhat.com>
5993
5994 * remote.c (remote_insert_hw_breakpoint)
5995 (remote_remove_hw_breakpoint): Fix calculation of length field
5996 for Z-packet.
5997
5998 2002-08-15 Michael Snyder <msnyder@redhat.com>
5999
6000 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
6001 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
6002 (supply_fpregset): Ditto.
6003
6004 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
6005 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
6006 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
6007 (TARGET_READ_SP): Delete.
6008 (DO_REGISTERS_INFO): Delete.
6009 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
6010 Delete.
6011 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
6012 from macros to functions.
6013
6014 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
6015 (mips_register_convertible, mips_register_convert_to_virtual,
6016 mips_register_convert_to_raw): Make static.
6017 (mips_read_sp): New function.
6018 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
6019 (mips_do_registers_info): Make static.
6020 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
6021 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
6022 (mips_register_convert_from_type, mips_register_convert_to_type):
6023 New functions.
6024 (mips_gdbarch_init): Set up function_start_offset,
6025 register_virtual_size, pc_in_sigtramp.
6026
6027 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6028
6029 * infcmd.c (vector_info): New function.
6030 (_initialize_infcmd): Add command "info vector".
6031 (print_vector_info): New function.
6032
6033 * gdbarch.sh (PRINT_VECTOR_INFO): New method
6034 * gdbarch.h, gdbarch.c: Regenerate.
6035
6036 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6037
6038 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
6039 ``print_all''. Only print vector registers when ``print_all''.
6040
6041 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6042
6043 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
6044 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
6045
6046 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6047 Add `args' parameter.
6048 * gdbarch.h, gdbarch.c: Regenerate.
6049
6050 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6051
6052 * infcmd.c (float_info): Call print_float_info.
6053 (print_float_info): New function. By default, print the
6054 floating-point registers.
6055
6056 * arch-utils.h (default_print_float_info): Delete declaration.
6057 * arch-utils.c (default_print_float_info): Delete function.
6058
6059 2002-08-16 Mark Kettenis <kettenis@gnu.org>
6060
6061 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6062 out define.
6063
6064 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6065 FRAME.
6066
6067 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6068 * configure.host: Make i[3456]86-*-aix host obsolete.
6069 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6070 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6071 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6072 config/i386/xm-i386aix.h: Make files obsolete.
6073 * i386aix-nat.c: Make file obsolete.
6074 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6075 (i386aix-nat.o): Make target obsolete.
6076
6077 * config/i386/nm-gnu.h: Removed.
6078 * config/i386/nm-i386gnu.h: New file.
6079 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6080 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6081 Moved here from ...
6082 * config/i386/tm-i386gnu.h: ... here. Removed.
6083 * config/i386/xm-i386gnu.h: Removed.
6084 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6085 (NAT_FILE): Set to nm-i386gnu.h.
6086 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6087 * i386-tdep.c: New file.
6088 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6089 (i386gnu-tdep.o): Specify dependencies.
6090
6091 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6092
6093 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6094 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6095 Adjust a few comments to reflect reality a bit closer.
6096 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6097 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6098 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6099 target_insert_watchpoint, target_remove_watchpoint):
6100 Move defines to ...
6101 * config/i386/nm-i386sco5.h: ... here.
6102 (kernel_u_size): Add prototype. Improve a few comments and add
6103 protection against multiple inclusion.
6104
6105 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6106 out define.
6107
6108 * uw-thread.c (SP_ARG0): Define if not already defined.
6109 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6110
6111 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6112
6113 * config/i386/tm-i386.h: Don't include "regcache.h".
6114
6115 * i387-tdep.h (i387_print_float_info): New prototype.
6116 * i387-tdep.c (print_i387_value, print_i387_ext,
6117 print_i387_status_word, print_i387_control_word): Add `struct
6118 ui_file *' argument and use it for output.
6119 (i387_print_float_info): Renamed from i387_float_info. Add
6120 `struct gdbarch *' and `struct ui_file *' arguments and use the
6121 latter for output.
6122 * i386-tdep.c: Include "i387-tdep.h".
6123 (i386_gdbarch_init): Set print_float_info.
6124 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6125 (FLOAT_INFO): Remove define.
6126
6127 2002-08-13 Michael Snyder <msnyder@redhat.com>
6128
6129 * mips-tdep.c (mips_push_arguments): Rename to
6130 mips_eabi_push_arguments, and tune for EABI.
6131 (MIPS_REGS_HAVE_HOME_P): Delete.
6132 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6133 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6134 Delete references to mips_regs_have_home_p.
6135
6136 2002-08-14 Keith Seitz <keiths@redhat.com>
6137
6138 * Makefile.in (install-gdbtk): Create insight plugin directory.
6139 Install plugins.tcl file.
6140
6141 2002-08-14 Keith Seitz <keiths@redhat.com>
6142
6143 * configure.in: Move SUBDIRS to near top of the file so that
6144 --enable options may add things to it.
6145 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6146 * configure: Regenerate.
6147
6148 2002-08-13 Michael Snyder <msnyder@redhat.com>
6149
6150 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6151 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6152 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6153
6154 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6155
6156 * vax-tdep.c (vax_get_saved_register): Delete function.
6157 (vax_gdbarch_init): Update.
6158 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6159 (ns32k_gdbarch_init): Update.
6160 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6161 (alpha_gdbarch_init): Update.
6162
6163 2002-08-13 Andrew Cagney <cagney@redhat.com>
6164
6165 * regcache.c (init_regcache_descr): Overallocate the
6166 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6167 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6168 nr_raw_registers.
6169 (set_register_cached): Add range checking assertions. Use
6170 current_regcache.
6171
6172 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6173
6174 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6175 numbers for MMX registers.
6176
6177 2002-08-13 Andrew Cagney <cagney@redhat.com>
6178
6179 * i386-tdep.c (i386_gdbarch_init): Use
6180 generic_unwind_get_saved_register.
6181
6182 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6183
6184 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6185 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6186 target vector.
6187 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6188 Delete. Add comment regarding this now-deleted target method.
6189
6190 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6191
6192 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6193 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6194 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6195 real PC and the page number (if it's within the memory bank window).
6196 (m68hc11_pseudo_register_write): Likewise when saving.
6197 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6198 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6199 (m68hc11_register_raw_size): And use 32-bit for it.
6200 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6201 16K memory bank is used by the prog; also use the virtual pc.
6202
6203 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6204
6205 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6206 (m68hc11_gdbarch_init): Install it in gdbarch.
6207 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6208 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6209 (MSYMBOL_SIZE): New for documentation.
6210 (insn_return_kind): Enum to specify how a function returns.
6211 (frame_extra_info): Cleanup and record the return mode.
6212 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6213 register in address computation.
6214 (m68hc11_get_return_insn): New to obtain the return instruction used
6215 by the function.
6216 (m68hc11_frame_init_saved_regs): Take into account the return
6217 instruction used by the function for far and interrupt functions.
6218 (m68hc11_init_extra_frame_info): Take into account page register.
6219 (m68hc11_frame_args_address): Adjust according to the return mode.
6220 (show_regs): Print page register only when it's used.
6221
6222 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6223
6224 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6225 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6226 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6227 registers.
6228 (m68hc11_register_raw_size): Likewise.
6229
6230 2002-08-13 Andrew Cagney <cagney@redhat.com>
6231
6232 * i386-tdep.c (i386_register_name): Handle mmx registers.
6233 (mmx_regnum_p): New function.
6234 (i386_mmx_names): New array.
6235 (mmx_num_regs): New variable.
6236 (i386_pseudo_register_read): New function.
6237 (i386_pseudo_register_write): New function.
6238 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6239
6240 * regcache.c (regcache_raw_read_unsigned): New function.
6241 (regcache_raw_read_signed): New function.
6242 * regcache.h (regcache_raw_read_unsigned): Declare.
6243 (regcache_raw_read_signed): Declare.
6244
6245 2002-08-13 Andrew Cagney <cagney@redhat.com>
6246
6247 * regcache.c (regcache_raw_read_as_address): Delete function.
6248 (regcache_cooked_read_signed): New function.
6249 (regcache_cooked_read_unsigned): New function.
6250 * regcache.h (regcache_cooked_read_signed): Declare.
6251 (regcache_cooked_read_unsigned): Declare.
6252 (regcache_raw_read_as_address): Delete declaration.
6253
6254 * blockframe.c (generic_read_register_dummy): Use
6255 regcache_cooked_read_unsigned.
6256 * i386-tdep.c (i386_extract_struct_value_address): Use
6257 regcache_cooked_read_unsigned.
6258
6259 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6260
6261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6262 double sizes according to ELF ABI flags.
6263 (gdbarch_tdep): Record elf_flags.
6264
6265 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6266
6267 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6268 (m6812_prolog): They can appear in 68HC12 function prologue.
6269 (m68hc11_frame_chain): Cleanup.
6270
6271 2002-08-12 Andrew Cagney <cagney@redhat.com>
6272
6273 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6274 declarations.
6275 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6276 (i386_linux_register_raw_size): Delete function.
6277 (i386_linux_init_abi): Update.
6278 * i386-tdep.c (i386_register_raw_size): Delete function.
6279 (i386_register_byte): Delete function.
6280 (i386_gdbarch_init): Update.
6281 (i386_register_size): Delete array.
6282 (i386_register_offset): Delete array.
6283
6284 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6285 (REGISTER_RAW_SIZE): Delete macro.
6286 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6287 (REGISTER_BYTE): Delete macro.
6288
6289 2002-08-11 Aidan Skinner <aidan@velvet.net>
6290
6291 * ada-lang.c (ada_lookup_partial_symbol)
6292 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6293 prototype names so that grep ^func works properly.
6294
6295 * ada-lang.c (ada_array_element_type)
6296 (ada_lookup_partial_symbol): Fix typos in parameter list.
6297
6298 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6299 Fix prototype names so that grep ^func works properly.
6300
6301 2002-08-10 Andrew Cagney <cagney@redhat.com>
6302 Elena Zannoni <ezannoni@redhat.com>
6303 Martin M. Hunt <hunt@redhat.com>
6304
6305 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6306 (build_builtin_type_vec128i): Set the vector bit.
6307 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6308 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6309 (build_builtin_type_vec64): New function.
6310 (build_builtin_type_vec64i): New function.
6311 (build_gdbtypes): Initialize builtin_type_vec64 and
6312 builtin_type_vec64i.
6313
6314 2002-08-09 Andrew Cagney <cagney@redhat.com>
6315
6316 * regcache.c (regcache_dump): Compare the register offset
6317 with REGISTER_BYTE.
6318 * arch-utils.c (generic_register_byte): New function.
6319 * arch-utils.h (generic_register_byte): Declare.
6320 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6321 * gdbarch.h, gdbarch.c: Regenerate.
6322
6323 2002-08-09 Andrew Cagney <cagney@redhat.com>
6324
6325 * regcache.c: Include "gdbcmd.h"
6326 (_initialize_regcache): Add commands "maintenance print
6327 registers", "maintenance print raw-registers" and "maintenance
6328 print cooked-registers".
6329 (enum regcache_dump_what): Define.
6330 (dump_endian_bytes): New function.
6331 (regcache_dump): New function.
6332 (regcache_print): New function.
6333 (maintenance_print_registers): New function.
6334 (maintenance_print_raw_registers): New function.
6335 (maintenance_print_cooked_registers): New function.
6336 * Makefile.in (regcache.o): Update dependencies.
6337
6338 2002-08-09 Michael Snyder <msnyder@redhat.com>
6339
6340 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6341 (mips_push_arguments): Correct some comments. Use paddr_nz
6342 for printing addresses in debug output. Replace static
6343 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6344 (mips_n32n64_push_arguments): New function, cloned from
6345 mips_push_arguments and tuned for the n32/n64 ABI.
6346 (mips_push_register): Buffer needs dynamic allocation.
6347 (mips_print_register): Ditto.
6348 (do_gp_register_row): Ditto.
6349 (mips_store_return_value): Ditto.
6350 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6351
6352 2002-08-09 Don Howard <dhoward@redhat.com>
6353
6354 * memattr.c (mem_info_command): Print special case of upper bound
6355 as max CORE_ADDR + 1.
6356
6357 2002-08-08 Michael Snyder <msnyder@redhat.com>
6358
6359 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6360 returns structs by ref if they're too big to fit in two registers.
6361
6362 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6363
6364 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6365 saved regs value.
6366 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6367 mips_find_saved_regs().
6368 (mips_pop_frame): Likewise.
6369
6370 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6371
6372 * blockframe.c (frame_saved_regs_register_unwind): Revise
6373 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6374 frames are in use.
6375
6376 2002-08-09 Grace Sainsbury <graces@redhat.com>
6377
6378 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6379 T-packets; the 'a' is not taken as a register number.
6380 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6381 (remote_stopped_data_address): New functions; add to target
6382 vector.
6383 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6384 prototypes to match other implementations of this
6385 function. replace integer argument with pointer -- the length
6386 field in the Z-packet is the length of what is pointed to or 1 if
6387 pointer is null. Add to target vector.
6388 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6389 target vector.
6390
6391 From Mark Salter:
6392 * remote.c (remote_wait): Add support to extract optional
6393 watchpoint information from T-packet. Ignore unrecognized
6394 optional info in T-packet.
6395 (remote_async_wait): Ditto.
6396
6397 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6398
6399 * cli/cli-dump.c: Change fopen modes to use binary open modes
6400 as defined in include/fopen-bin.h throughout.
6401
6402 2002-08-08 Michael Snyder <msnyder@redhat.com>
6403
6404 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6405
6406 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6407
6408 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6409 assertion failure by returning early after a warning.
6410
6411 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6412
6413 * mips-tdep.c (mips_find_saved_regs): Make static.
6414 (mips_frame_init_saved_regs): New function.
6415 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6416 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6417 (mips_find_saved_regs): Delete declaration.
6418
6419 2002-08-08 Grace Sainsbury <graces@redhat.com>
6420
6421 * remote.c (remote_wait, remote_async_wait): Change
6422 thread_num from int to ULONGEST.
6423 (unpack_varlen_hex): Change result parameter from
6424 int * to ULONGEST *.
6425
6426 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6427
6428 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6429 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6430 powerpc*-*-*.
6431 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6432
6433 2002-08-08 Andrew Cagney <cagney@redhat.com>
6434
6435 * gcore.c (override_derive_stack_segment): Delete variable.
6436 (preempt_derive_stack_segment): Delete function.
6437 (derive_stack_segment): Delete function.
6438 (default_derive_stack_segment): Renamed to derive_stack_segment.
6439 (override_derive_heap_segment): Delete variable.
6440 (preempt_derive_heap_segment): Delete function.
6441 (derive_heap_segment): Delete function.
6442 (default_derive_heap_segment): Rename to derive_heap_segment.
6443
6444 2002-08-06 Michael Snyder <msnyder@redhat.com>
6445
6446 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6447 * mips-tdep.c (mips_EABI_use_struct_convention,
6448 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6449 New functions. (mips_use_struct_convention): Delete.
6450 (mips_gdbarch_init): set use_gdbarch_convention.
6451
6452 2002-08-06 Michael Snyder <msnyder@redhat.com>
6453
6454 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6455 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6456 mips_o32_reg_struct_has_addr): New functions.
6457 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6458
6459 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6460
6461 * regcache.c (pseudo_register): Delete function.
6462 (fetch_register): Delete function.
6463 (store_register): Delete function.
6464 (regcache_raw_read, legacy_read_register_gen): Use
6465 target_fetch_registers instead of fetch_register.
6466 (legacy_write_register_gen, regcache_raw_write): Use
6467 target_store_register instead of store_register.
6468 (write_register_bytes): Ditto.
6469
6470 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6471 (STORE_PSEUDO_REGISTER): Delete.
6472 * gdbarch.h, gdbarch.c: Regenerate.
6473
6474 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6475
6476 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6477 write dump file binary.
6478
6479 2002-08-05 Michael Snyder <msnyder@redhat.com>
6480
6481 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6482 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6483 (mips_gdbarch_init): Set N32 target to be mips64.
6484
6485 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6486
6487 * frame.c (find_saved_register): Break out of loop once saved
6488 register address is found. Don't mention sparc in loop comment
6489 anymore.
6490
6491 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6492
6493 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6494 mips_default_saved_regsize to 8.
6495
6496 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6497
6498 * gcore.c: Do not include <sys/procfs.h>.
6499 * Makefile.in (gcore.o): Update dependencies.
6500
6501 2002-08-06 Andrew Cagney <cagney@redhat.com>
6502
6503 * configure.tgt: Make arc-*-* obsolete.
6504 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6505 * MAINTAINERS: Make arc-elf obsolete.
6506 * arc-tdep.c: Make file obsolete.
6507 * config/arc/arc.mt: Ditto.
6508 * config/arc/tm-arc.h: Ditto.
6509
6510 2002-08-05 Theodore A. Roth <troth@verinet.com>
6511
6512 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6513
6514 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6515
6516 * mcore-tdep.c (mcore_gdbarch_init): Use
6517 generic_unwind_get_saved_register instead of
6518 generic_get_saved_register.
6519 * v850-tdep.c (v850_gdbarch_init): Ditto.
6520 * frv-tdep.c (frv_gdbarch_init): Ditto.
6521 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6522 * s390-tdep.c (s390_gdbarch_init): Ditto.
6523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6524 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6525 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6526
6527 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6528
6529 * objfiles.h: Add missing #include "symfile.h"
6530
6531 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6532
6533 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6534
6535 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6536 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6537 of FIELD_BITSIZE.
6538
6539 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6540
6541 * NEWS: Cleanup and nitpick.
6542
6543 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6544
6545 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6546
6547 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6548
6549 * Makefile.in (gdbtk-bp.o): Update dependencies.
6550 (gdbtk-register.o): Ditto.
6551 (gdbtk-varobj.o): Ditto.
6552
6553 2002-08-03 Andrew Cagney <cagney@redhat.com>
6554
6555 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6556 m68hc11_fetch_pseudo_register.
6557 (m68hc11_pseudo_register_write): Replace
6558 m68hc11_store_pseudo_register.
6559 (m68hc11_gdbarch_init): Update.
6560
6561 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6562
6563 * gdbarch.sh: Include "gdb_string.h".
6564 * gdbarch.c: Regenerate.
6565
6566 * regcache.c: Include "gdb_string.h".
6567 * ax-general.c: Ditto.
6568 * varobj.c: Ditto.
6569 * std-regs.c: Ditto.
6570 * fbsd-proc.c: Ditto.
6571 * thread.c: Ditto.
6572
6573 * Makefile.in (regcache.o): Update dependencies.
6574 (thread.o, gdbarch.o): Ditto.
6575 (ax-general.o, gdbarch.o): Ditto.
6576 (varobj.o, std-regs.o): Ditto.
6577 (fbsd-proc.o): Specify dependencies.
6578
6579 2002-08-02 Andrew Cagney <cagney@redhat.com>
6580
6581 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6582 regnum.
6583 (regcache_cooked_write): Ditto.
6584
6585 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6586
6587 * regcache.c (regcache_cooked_read): New function.
6588 (regcache_cooked_write): New function.
6589 (read_register_gen): Rewrite using regcache_cooked_read.
6590 (write_register_gen): Rewrite using regcache_cooked_write.
6591
6592 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6593 Declare.
6594
6595 2002-08-02 Andrew Cagney <cagney@redhat.com>
6596
6597 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6598 Replace the architecture methods register_read and register_write.
6599 * gdbarch.h, gdbarch.c: Regenerate.
6600 * regcache.c (init_regcache_descr): Update.
6601 (read_register_gen): Update.
6602 (write_register_gen): Update.
6603 (supply_register): Update comment.
6604
6605 * sh-tdep.c (sh_gdbarch_init): Update.
6606 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6607 `regcache' and `gdbarch' parameters. Make `buffer' a void
6608 pointer. Update code.
6609 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6610 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6611 void pointer. Update code.
6612 (sh64_register_write): Delete.
6613 (sh4_register_read): Delete.
6614 (sh64_register_read): Delete.
6615 (sh4_register_write): Delete.
6616 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6617 void pointer, `to' parameter a void pointer.
6618 (sh_sh64_register_convert_to_raw): Ditto.
6619
6620 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6621
6622 * mips-tdep.c (mips_register_virtual_type): Use architecture
6623 invariant return values.
6624
6625 2002-08-01 Andrew Cagney <cagney@redhat.com>
6626
6627 * linux-proc.c: Include "gdb_string.h".
6628 * Makefile.in (linux-proc.o): Update dependency list.
6629
6630 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6631
6632 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6633 comment.
6634
6635 2002-08-01 Grace Sainsbury <graces@redhat.com>
6636
6637 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6638 to_insert_watchpoint, to_remove_watchpoint,
6639 to_stopped_by_watchpoint, to_stopped_data_address,
6640 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6641 target vecctor. Define their corresponding macros so they call
6642 them.
6643
6644 * target.c: Add default and debug versions of for
6645 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6646 to_insert_watchpoint, to_remove_watchpoint,
6647 to_stopped_by_watchpoint, to_stopped_data_address,
6648 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6649
6650 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6651
6652 * mips-tdep.c (mips_register_virtual_type): New function.
6653 (mips_gdbarch_init): Register mips_register_virtual_type()
6654 with gdbarch machinery.
6655 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6656 this file instead of tm-bigmips.h.
6657 (MIPS_REGSIZE): Delete this macro.
6658 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6659 multiarch version in mips-tdep.c will be found.
6660
6661 2002-08-01 Andrew Cagney <cagney@redhat.com>
6662
6663 * NEWS: Menion that CHILL has been made obsolete.
6664
6665 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6666 * stabsread.c (read_range_type): Ditto.
6667 * gdbtypes.h: Ditto.
6668 * language.c (binop_type_check): Ditto.
6669 (binop_result_type): Ditto.
6670 (integral_type): Ditto.
6671 (character_type): Ditto.
6672 (string_type): Ditto.
6673 (boolean_type): Ditto.
6674 (structured_type): Ditto.
6675 (lang_bool_type): Ditto.
6676 (binop_type_check): Ditto.
6677 * language.h (_LANG_chill): Ditto.
6678 * dwarfread.c (set_cu_language): Ditto.
6679 * dwarfread.c (CHILL_PRODUCER): Ditto.
6680 * dwarfread.c (handle_producer): Ditto.
6681 * expression.h (enum exp_opcode): Ditto.
6682 * eval.c: Ditto for comments.
6683 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6684 * expprint.c (print_subexp): Ditto.
6685 (print_subexp): Ditto.
6686 * valops.c (value_cast): Ditto.
6687 (search_struct_field): Ditto.
6688 * value.h (COERCE_VARYING_ARRAY): Ditto.
6689 * symfile.c (init_filename_language_table): Ditto.
6690 (add_psymbol_with_dem_name_to_list): Ditto.
6691 * valarith.c (value_binop): Ditto.
6692 (value_neg): Ditto.
6693 * valops.c (value_slice): Ditto.
6694 * symtab.h (union language_specific): Ditto.
6695 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6696 (SYMBOL_DEMANGLED_NAME): Ditto.
6697 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6698 * defs.h (enum language): Ditto.
6699 * symtab.c (got_symtab): Ditto.
6700 * utils.c (fprintf_symbol_filtered): Ditto.
6701
6702 * ch-typeprint.c: Make file obsolete.
6703 * ch-valprint.c: Make file obsolete.
6704 * ch-lang.h: Make file obsolete.
6705 * ch-exp.c: Make file obsolete.
6706 * ch-lang.c: Make file obsolete.
6707
6708 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6709 CHILL_LIB.
6710 (TARGET_FLAGS_TO_PASS): Ditto.
6711 (CHILLFLAGS): Obsolete.
6712 (CHILL): Obsolete.
6713 (CHILL_FOR_TARGET): Obsolete.
6714 (CHILL_LIB): Obsolete.
6715 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6716 ch-valprint.c.
6717 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6718 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6719 ch-lang.o.
6720 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6721 targets.
6722
6723 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6724
6725 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6726 This does not change anything at the moment, but will be helpful
6727 later when full Ada support is integrated.
6728
6729 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6730
6731 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6732 help message.
6733
6734 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6735
6736 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6737 and save it in a local variable. Use variable in later test.
6738
6739 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6740
6741 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6742 test. (Thanks to Daniel Jacobowitz.)
6743
6744 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6745
6746 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6747 (mips_abi_strings): Add "n64".
6748 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6749
6750 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6751
6752 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6753 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6754
6755 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6756
6757 * utils.c (host_pointer_to_address, address_to_host_pointer):
6758 Use gdb_assert() instead of explicit call to internal_error().
6759
6760 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6761
6762 * Makefile.in (rs6000-nat.o): Update dependencies.
6763
6764 From Nicholas Duffek:
6765 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6766 (aix-thread.o): New rule.
6767 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6768 * config/powerpc/aix432.mh: New file.
6769
6770 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6771
6772 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6773 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6774 (fetch_core_registers, ppc_linux_supply_gregset)
6775 (ppc_linux_supply_fpregset): New functions.
6776 (ppc_linux_regset_core_fns): New.
6777 (_initialize_ppc_linux_tdep): Call add_core_fns.
6778 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6779 and ppc_linux_supply_gregset.
6780 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6781 (supply_fpregset): Call ppc_linux_supply_fpregset.
6782 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6783 corelow.o.
6784 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6785
6786 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6787
6788 * symtab.c (lookup_symbol): Demangle before lowercasing.
6789
6790 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6791
6792 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6793 declaration.
6794 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6795 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6796 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6797 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6798 "gdb_string.h".
6799 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6800 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6801 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6802 (avr-tdep.o, mon960-rom.o): Ditto.
6803 (aout_stabs_gnu_h): Define.
6804 (symtab_h): Remove $(gdb_obstack_h).
6805
6806 2002-07-30 Jim Blandy <jimb@redhat.com>
6807
6808 Patch from David Carlton <carlton@math.stanford.edu>:
6809 * gdbinit.in: Move the `dir' commands that add GDB's own source
6810 directory to the search path to the end, so that the `gdb' source
6811 directory will be searched first.
6812
6813 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6814
6815 * gdb_obstack.h: New file.
6816 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6817 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6818 * objfiles.h: Include "gdb_obstack.h".
6819 * Makefile.in (gdb_obstack_h): Define.
6820 (symtab_h): Add $(gdb_obstack_h).
6821 (objfiles_h): Add $(gdb_obstack_h).
6822
6823 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6824 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6825 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6826 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6827 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6828 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6829 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6830 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6831
6832 * Makefile.in (bcache.o): Update dependencies.
6833 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6834 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6835 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6836 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6837 (stabsread.o, symfile.o, symmisc.o): Ditto.
6838 (symtab.o, typeprint.o, macroexp.o): Ditto.
6839 (macrotab.o, mdebugread.o): Ditto.
6840 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6841 (coff_ecoff_h, aout_aout64_h): Define.
6842 (aout_stabs_gnu_h, libaout_h): Define.
6843
6844 2002-07-29 Andrew Cagney <cagney@redhat.com>
6845
6846 * regcache.c (struct regcache_descr): Rename nr_registers to
6847 nr_cooked_registers. Revise comments describing the structure
6848 member fields.
6849 (init_regcache_descr): Update.
6850 (init_legacy_regcache_descr): Update.
6851 (read_register_gen, write_register_gen): When a cooked register in
6852 the raw register range, directly access the value from the raw
6853 register cache.
6854
6855 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6856
6857 * z8k-tdep.c: Do not include "obstack.h".
6858 * h8300-tdep.c, h8500-tdep.c: Ditto.
6859 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6860 * valprint.c, v850-tdep.c: Ditto.
6861 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6862 * mn10200-tdep.c: Ditto.
6863
6864 * Makefile.in (z8k-tdep.o): Update dependencies.
6865 (m68hc11-tdep.o, valprint.o): Ditto.
6866 (v850-tdep.o, d10v-tdep.o): Ditto.
6867 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6868 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6869 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6870 (sh_opc_h, gdb_sim_sh_h): Define.
6871 (elf_sh_h, elf_bfd_h): Define.
6872 (opcode_m68hc11_h): Define.
6873 (OPCODES_SRC, OPCODES_DIR): define.
6874 (OPCODES): Use $(OPCODES_DIR).
6875 (gdb_sim_d10v_h): Rename sim_d10v_h.
6876 (gdb_sim_arm_h): Rename sim_arm_h.
6877
6878 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6879
6880 * utils.c (host_pointer_to_address, address_to_host_pointer):
6881 Change internal_error() message to indicate function responsible
6882 for the error.
6883
6884 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6885
6886 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6887 calls to local_hex_string_custom().
6888
6889 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6890
6891 * irix5-nat.c: Move IRIX shared library support from here...
6892 * solib-irix.c: ...to here. Revised substantially to work with
6893 generic solib framework.
6894
6895 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6896 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6897 * mips-irix-tdep.c: New file.
6898
6899 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6900 (mips-irix-tdep.o, solib-irix.o): New rules.
6901 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6902 solib-irix.o.
6903 * config/mips/irix6.mt (TDEPFILES): Likewise.
6904 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6905
6906 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6907
6908 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6909 disabled (via ``#if 0'') includes.
6910
6911 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6912
6913 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6914 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6915 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6916 Add support for the fpscr register.
6917 * rs6000-nat.c (regmap, fetch_inferior_registers)
6918 (store_inferior_registers, fetch_core_registers): Likewise.
6919
6920 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6921
6922 * rs6000-nat.c (language.h): Include.
6923 (special_regs): Delete this array.
6924 (regmap): New function.
6925 (fetch_register, store_register): Use regmap() to map gdb
6926 register numbers to ptrace register numbers. Also, use
6927 outputs from regmap() to make decisions regarding type of
6928 ptrace() call to make. In particular, don't compare against
6929 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6930 (fetch_inferior_registers, store_inferior_registers): Where
6931 possible, obtain register numbers from tdep struct. Don't
6932 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6933 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6934 (LAST_UISA_SP_REGNUM): Delete.
6935
6936 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6937
6938 * rs6000-nat.c (ppc-tdep.h): Include.
6939 (fetch_registers, store_register, fetch_core_registers): Don't
6940 access registers[] directly. Instead, use supply_register() or
6941 regcache_collect() as appropriate.
6942 (find_toc_address): Format hex address with local_hex_string().
6943
6944 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6945
6946 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6947 bfd/elf32-frv.c.
6948
6949 2002-07-24 Tom Tromey <tromey@redhat.com>
6950
6951 * jv-exp.y: Marked all strings with _().
6952 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6953 internal_error.
6954 (MethodInvocation, CastExpression, parse_number, yyerror,
6955 java_type_from_name, push_expression_name, yylex): Typo fixes.
6956
6957 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6958
6959 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6960 (tee_file_flush, tee_file_write, tee_file_fputs)
6961 (tee_file_isatty): New.
6962 * ui-file.h (tee_file_new): Add prototype.
6963
6964 2002-07-24 Aidan Skinner <aidan@velvet.net>
6965
6966 * ada-lang.c: Change k&r style function definitions to prototyped
6967 form.
6968 * ada-typeprint.c: Change k&r style function definitions to prototyped
6969 form.
6970 * ada-valprint.c: Change k&r style function definitions to prototyped
6971 form.
6972
6973 2002-07-24 Andrew Cagney <cagney@redhat.com>
6974
6975 * README: Remove reference to remote-bug.
6976 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6977 remote-bug.c.
6978 (m88k-nat.o): Delete rule.
6979 (m88k-tdep.o): Delete rule.
6980 (remote-bug.o): Delete rule.
6981 * MAINTAINERS: Mark as obsolete.
6982 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6983 * m88k-tdep.c: Make file obsolete.
6984 * config/m88k/m88k.mh: Ditto.
6985 * config/m88k/delta88v4.mh: Ditto.
6986 * config/m88k/delta88v4.mt: Ditto.
6987 * config/m88k/delta88.mt: Ditto.
6988 * config/m88k/delta88.mh: Ditto.
6989 * remote-bug.c: Ditto.
6990 * config/m88k/tm-delta88.h: Ditto.
6991 * config/m88k/nm-delta88v4.h: Ditto.
6992 * config/m88k/xm-delta88.h: Ditto.
6993 * config/m88k/xm-dgux.h: Ditto.
6994 * config/m88k/tm-m88k.h: Ditto.
6995 * config/m88k/nm-m88k.h: Ditto.
6996 * config/m88k/tm-delta88v4.h: Ditto.
6997 * m88k-nat.c: Ditto.
6998 * cxux-nat.c: Ditto.
6999 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
7000 and m88*-*-* obsolete.
7001 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
7002 m88*-*-* obsolete.
7003
7004 2002-07-24 Andrew Cagney <cagney@redhat.com>
7005
7006 * findvar.c (extract_unsigned_integer): Make `addr' parameter
7007 constant. Same for local pointer variables.
7008 (extract_signed_integer): Ditto.
7009 * defs.h (extract_unsigned_integer): Update.
7010 (extract_signed_integer): Update.
7011
7012 2002-07-24 Andrew Cagney <cagney@redhat.com>
7013
7014 * regcache.c (regcache_raw_write): Change buf parameter to a
7015 constant void pointer.
7016 (regcache_raw_read): Change buf parameter to a void pointer.
7017 (legacy_write_register_gen): Change myaddr parameter a constant
7018 void pointer.
7019 (supply_register): Change val parameter to a const void pointer.
7020 * regcache.h (regcache_raw_write): Update declaration.
7021 (regcache_raw_read): Update declaration.
7022 (supply_register): Update declaration.
7023
7024 2002-07-24 Tom Tromey <tromey@redhat.com>
7025
7026 * defs.h (gdb_readline_wrapper): Declare.
7027 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
7028 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
7029 * top.c (gdb_readline_wrapper): New function.
7030 (command_line_input): Use it.
7031
7032 2002-07-24 Andrew Cagney <cagney@redhat.com>
7033
7034 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
7035 regcache_read and regcache_write.
7036 (regcache_raw_read_as_address): Replace regcache_read_as_address.
7037 * regcache.c: Update.
7038 * sh-tdep.c (sh64_push_arguments): Update comment.
7039 (sh_pseudo_register_read): Update.
7040 (sh_pseudo_register_write): Update.
7041 (sh4_register_read): Update.
7042 (sh4_register_write): Update.
7043 (sh64_pseudo_register_read): Update.
7044 (sh64_pseudo_register_write): Update.
7045 (sh64_register_read): Update.
7046 (sh64_register_write): Update.
7047 * i386-tdep.c (i386_extract_return_value): Update.
7048 (i386_extract_struct_value_address): Update.
7049 (i386_extract_return_value): Update.
7050 * blockframe.c (generic_read_register_dummy): Update.
7051 (generic_call_dummy_register_unwind): Update
7052 * infrun.c (write_inferior_status_register): Update.
7053
7054 2002-07-23 Jim Blandy <jimb@redhat.com>
7055
7056 * parser-defs.h (expression_context_pc): Make this extern.
7057 (Thanks to Michael Snyder.)
7058
7059 2002-07-23 Andrew Cagney <ac131313@redhat.com>
7060
7061 GDB 5.2.1 released from 5.2 branch.
7062 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7063 * README: Update to mention 5.2.1.
7064
7065 2002-07-23 Mark Salter <msalter@redhat.com>
7066
7067 * remote.c (remote_read_bytes): Fix check for error.
7068
7069 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7070
7071 * aix-thread.c (language.h): Include.
7072 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7073 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7074 Print newlines at end of debug messages.
7075 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7076 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7077
7078 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7079
7080 * aix-thread.c (ppc-tdep.h): Include.
7081 (special_register_p): New function.
7082 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7083 (store_regs_user_thread): Use register number information from
7084 gdbarch_tdep struct instead of hardcoded offsets relative to
7085 FIRST_UISA_SP_REGNUM.
7086 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7087 special_register_p() instead of using FPLAST_REGNUM and
7088 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7089 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7090 will be MQ's register number.
7091
7092 2002-07-22 Michael Snyder <msnyder@redhat.com>
7093
7094 * aix-thread.c (ops): Rename to aix_thread_ops.
7095 (base_ops): Rename to base_target.
7096 (ops_attach): Rename to aix_thread_attach.
7097 (ops_detach): Rename to aix_thread_detach.
7098 (ops_resume): Rename to aix_thread_detach.
7099 (ops_wait): Rename to aix_thread_wait.
7100 (ops_kill): Rename to aix_thread_kill.
7101 (init_ops): Rename to init_aix_thread_ops.
7102 (ops_fetch_register): Rename to aix_thread_fetch_register.
7103 (ops_store_register): Rename to aix_thread_store_register.
7104 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7105 (ops_thread_alive): Rename to aix_thread_thread_alive.
7106 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7107 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7108 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7109 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7110 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7111 (store_regs_lib): Rename to store_regs_user_thread.
7112 (store_regs_kern): Rename to store_regs_kernel_thread.
7113
7114 2002-07-22 Michael Snyder <msnyder@redhat.com>
7115
7116 * aix-thread.c (ops_prepare_to_store): Eliminate.
7117 (init_ops): Don't initialize ops.prepare_to_store.
7118 (store_regs_kern): Pre-fetch register buffers from child,
7119 because some registers may not be in the cache. Copy
7120 regs from register cache only if they are cached.
7121 (store_regs_lib): Copy regs from register cache only
7122 if they are cached.
7123 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7124 fill_gprs64): Ditto.
7125
7126 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7127
7128 * aix-thread.c (gdb_assert.h): Include.
7129 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7130 register sizes (from register cache) match size of buffer holding
7131 register data.
7132 (fill_sprs32): Change parameter types to match those in the ptrace()
7133 buffer.
7134 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7135 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7136
7137 2002-07-22 Michael Snyder <msnyder@redhat.com>
7138
7139 * aix-thread.c (supply_sprs64): Cosmetic change.
7140 (supply_sprs32): Cosmetic change.
7141 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7142 (fill_sprs64): Use regcache_collect instead of read_register.
7143 (store_regs_lib): Use regcache_collect instead of
7144 read_register. Use fill_sprs32 instead of fill_sprs64,
7145 if debugging a 32-bit architecture.
7146 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7147 out of the register cache, instead of passing a pointer into
7148 the register cache directly to ptrace. Use regcache_collect
7149 insteaad of read_register.
7150 (ops_prepare_to_store): Use target_read_registers instead
7151 of read_register_bytes.
7152
7153 2002-07-20 Aidan Skinner <aidan@velvet.net>
7154
7155 * MAINTAINERS: Add self under write after approval.
7156
7157 2002-07-20 Aidan Skinner <aidan@velvet.net>
7158
7159 * ada-tasks.c: Change k&r style function definitions to prototyped
7160 form.
7161
7162 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7163
7164 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7165 * x86-64-tdep.c: Include "objfiles.h".
7166 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7167 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7168
7169 2002-07-17 Michal Ludvig <michal@suse.cz>
7170
7171 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7172 (update_context): Initialise cfa variable.
7173
7174 2002-07-17 Michael Snyder <msnyder@redhat.com>
7175
7176 * aix-thread.c: Shorten some long lines.
7177 Bring comments into line with code spec.
7178
7179 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7180
7181 * infrun.c: Re-indent using gdb_indent.sh.
7182
7183 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7184
7185 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7186 Leave the indentation temporarily untouched, to minimize the diffs.
7187
7188 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7189
7190 * stabsread.c: Make os9k sections of the code obsolete,
7191 for real this time.
7192 * stabsread.h: Make os9k sections of the code obsolete.
7193
7194 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7195
7196 * linux-low.c (regsets_store_inferior_registers): Add free()
7197 at the end of a loop to prevent memory leak.
7198 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7199 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7200 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7201 line a comment.
7202 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7203
7204 2002-07-17 Jim Blandy <jimb@redhat.com>
7205
7206 * macrocmd.c (info_macro_command): Remove newline from error
7207 message.
7208
7209 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7210
7211 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7212 (sh_gdbarch_init): Use it for sh-dsp.
7213
7214 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7215
7216 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7217 64-bit DWARF2 format.
7218
7219 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7220
7221 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7222 <sys/proc.h> when not available.
7223
7224 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7225
7226 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7227 * stabsread.c: Make os9k sections of the code obsolete.
7228 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7229 * config/i386/i386os9k.mt: Make file obsolete.
7230 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7231 (COMMON_OBS): Remove os9kread.o
7232 (SFILES): Remove os9kread.c.
7233 (os9kread.o, remote-os9k.o): Make target obsolete.
7234 * remote-os9k.c: Make file obsolete.
7235 * os9kread.c: Make file obsolete.
7236 * Makefile.in
7237
7238 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7239
7240 * NEWS: Mention that the FR30 has been made obsolete.
7241 * fr30-tdep.c: Make file obsolete.
7242 * config/fr30/tm-fr30.h: Ditto.
7243 * config/fr30/fr30.mt: Ditto.
7244 * configure.tgt: Make fr30-*-elf obsolete.
7245 * MAINTAINERS: Make fr30-elf obsolete.
7246
7247 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7248
7249 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7250 found is not inside a section.
7251
7252 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7253
7254 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7255 strerror().
7256 (pdc_realloc): Use xrealloc() instead of realloc().
7257
7258 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7259
7260 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7261 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7262 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7263 macros.
7264
7265 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7266
7267 * aix-thread.c (ptrace_check): Eliminate goto.
7268 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7269 problem.
7270
7271 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7272
7273 * aix-thread.c (gdbcmd.h): Include.
7274 (DEBUG, DBG, DBG2, dbg): Eliminate.
7275 (debug_aix_thread): New static global.
7276 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7277 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7278 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7279 invocations to DBG and DBG2 macros to test against
7280 ``debug_aix_thread'' and call fprintf_unfiltered().
7281 (_initialize_aix_thread): Add new command "set debug aix-thread".
7282
7283 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7284
7285 From Gerhard Tonn <TON@de.ibm.com>:
7286 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7287 instead of supply_register.
7288
7289 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7290
7291 * dwarf2cfi.c: Include "gdb_assert.h".
7292 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7293 non-NULL.
7294 (update_context): Do not use __func__. Add missing ``break''.
7295 (update_context): Do not use __func__.
7296
7297 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7298
7299 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7300 and its setting. Set gdbarch instruction printing functions
7301 directly. For non-rs6000 case use new function
7302 gdb_print_insn_powerpc.
7303 (gdb_print_insn_powerpc): New function.
7304
7305 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7306
7307 * NEWS: Mention that the d30v has been marked obsolete.
7308 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7309 * configure.tgt: Mark d30v-*-* as obsolete.
7310 * d30v-tdep.c: Mark file as obsolete.
7311 * config/d30v/d30v.mt: Ditto.
7312 * config/d30v/tm-d30v.h: Ditto.
7313
7314 2002-07-13 Aidan Skinner <aidan@velvet.net>
7315
7316 * ada-tasks.c (add_task_entry): replace calls to
7317 malloc() with xmalloc
7318 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7319
7320 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7321 ada_finish_decode_line_1, all_sals_for_line
7322 ada_breakpoint_rewrite): replace calls to free() with xfree()
7323
7324 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7325
7326 From Nicholas Duffek (with minor changes by Martin Hunt,
7327 Louis Hamilton, and Kevin Buettner):
7328 * aix-thread.c: New file.
7329
7330 2002-07-12 Petr Sorfa <petrs@caldera.com>
7331
7332 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7333 complaint for invalid attribute class or form.
7334 (read_func_scope): DW_AT_frame_base
7335 better handling of DW_AT_block*.
7336 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7337 better handling of DW_AT_block*.
7338 (read_common_block): DW_AT_location
7339 better handling of DW_AT_block*.
7340 (read_partial_die): DW_AT_location better handling
7341 of DW_AT_block*.
7342 (new_symbol): DW_AT_external better handling of
7343 DW_AT_block*. Proper initialization of variable
7344 "addr".
7345 (attr_form_is_block): New function that returns true
7346 if the attribute's form is of DW_FORM_block*.
7347
7348 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7349
7350 * valops.c (find_method_list): Remove comment about
7351 removed STATIC_MEMFUNCP argument.
7352 (value_find_oload_method_list): Likewise.
7353
7354 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7355
7356 From Nicholas Duffek:
7357 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7358 target_new_objfile_hook.
7359
7360 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7361
7362 From Nicholas Duffek:
7363 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7364 csect.
7365
7366 2002-07-12 Andrew Cagney <cagney@redhat.com>
7367
7368 * MAINTAINERS: Mention --enable-sim-build-warnings.
7369 (m68hc11-elf): Disable sim build warnings.
7370 (m32r-elf): Mark as broken obsolete candidate.
7371 (x86_64-linux-gnu): Mark as buildable with -Werror.
7372 (arm-elf): Change -w to ``,'' which enables warnings but not
7373 -Werror.
7374
7375 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7376
7377 * bcache.h: Update copyright.
7378 (struct bstring, struct bcache): Move definition to "bcache.c".
7379 Replaced by opaque declaration.
7380 (bcache_xfree): Replace free_bcache.
7381 (bcache_xmalloc, bcache_memory_used): Declare.
7382
7383 * bcache.c: Update copyright.
7384 (struct bstring, struct bcache): Moved to here from "bcache.h".
7385 Update comments.
7386 (bcache_xmalloc, bcache_memory_used): New functions.
7387 (bcache_xfree): Replace function free_bcache.
7388
7389 * Makefile.in (objfiles.o): Add $(bcache_h).
7390 (objfiles_h): Remove $(bcache_h).
7391 (symfile.o): Add $(bcache_h).
7392
7393 * symmisc.c: Update copyright.
7394 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7395 (print_objfile_statistics): Use bcache_memory_used.
7396
7397 * symfile.c: Include "bcache.h".
7398 (reread_symbols): Use bcache_xfree.
7399 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7400 (add_psymbol_to_list): Pass psymbol_cache by value.
7401 (add_psymbol_with_dem_name_to_list): Ditto.
7402
7403 * objfiles.h: Update copyright.
7404 (struct bcache): Declare opaque. Do not include "bcache.h".
7405 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7406 bcache'' pointers.
7407 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7408
7409 * objfiles.c: Include "bcache.h". Update copyright.
7410 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7411 macro_cache.
7412 (free_objfile): Use bcache_xfree.
7413
7414 2002-07-11 Grace Sainsbury <graces@redhat.com>
7415
7416 * monitor.c (monitor_fetch_register): Make name a constant.
7417 (monitor_store_register): Same.
7418
7419 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7420
7421 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7422 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7423 (finish_block) For non-function blocks, hash the symbol table. For
7424 function blocks, mark the symbol table as unhashed.
7425 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7426 (msymbol_hash_iw): Likewise.
7427 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7428 value.
7429 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7430 (lookup_minimal_symbol): Likewise for both.
7431 * symtab.h (struct block): Add `hashtable' flag. Comment the
7432 hashtable.
7433 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7434 (ALL_BLOCK_SYMBOLS): Update.
7435 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7436 (struct symbol): Add `hash_next' pointer.
7437 * symtab.c (lookup_block_symbol): Search using the hash table when
7438 possible.
7439 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7440 (search_symbols, find_addr_symbol): Likewise.
7441
7442 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7443 (read_dst_symtab): Likewise.
7444 * jv-lang.c (get_java_class_symtab): Likewise.
7445 * mdebugread.c: Include "gdb_assert.h".
7446 (shrink_block): Assert that the block being modified is not hashed.
7447 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7448 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7449 symbols.
7450 (dump_symtab): Recognize hashed blocks.
7451 * printcmd.c (print_frame_args): Assert that function blocks do not
7452 have hashed symbol tables.
7453 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7454 (fill_in_ada_prototype, debug_print_block): Likewise.
7455 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7456
7457 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7458
7459 * stack.c (print_frame): Use result of frame_address_in_block()
7460 instead of fi->pc when evaluating symbols.
7461 (backtrace_command_1): Ditto.
7462
7463 2002-07-11 Andrew Cagney <cagney@redhat.com>
7464
7465 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7466 Make static.
7467
7468 * arm-tdep.c (arm_register_name): Make return type constant.
7469
7470 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7471
7472 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7473 prototype.
7474 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7475 * s390-tdep.c (s390_fp_regnum): Ditto.
7476 (s390_read_fp): Ditto.
7477 (s390_pop_frame): Ditto.
7478 (_initialize_s390_tdep): Ditto.
7479 * remote.c (get_remote_state): Ditto.
7480 * procfs.c (mappingflags): Ditto.
7481 * memattr.c (_initialize_mem): Ditto.
7482 * mcore-tdep.c (mcore_pop_frame): Ditto.
7483 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7484 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7485 * language.c (set_case_str): Ditto.
7486 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7487 * frv-tdep.c (new_variant): Ditto.
7488 (frv_stopped_data_address): Ditto.
7489 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7490 (context_alloc): Ditto.
7491 (frame_state_alloc): Ditto.
7492 (unwind_tmp_obstack_init): Ditto.
7493 (unwind_tmp_obstack_free): Ditto.
7494 (cfi_read_fp): Ditto.
7495 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7496 (cris_pop_frame): Ditto.
7497 * c-lang.c (scanning_macro_expansion): Ditto.
7498 (finished_macro_expansion): Ditto.
7499 (c_preprocess_and_parse): Ditto.
7500 * gdbarch.sh: Ditto.
7501 * gdbarch.h, gdbarch.c: Regenerate.
7502 * config/mn10200/tm-mn10200.h: Adjust indentation.
7503 * target.c: Adjust indentation.
7504 * symtab.h: Adjust indentation.
7505 * stabsread.h: Adjust indentation.
7506 * remote-es.c: Adjust indentation.
7507 * os9kread.c: Adjust indentation.
7508
7509 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7510
7511 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7512 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7513
7514 2002-07-10 Grace Sainsbury <graces@redhat.com>
7515
7516 * NEWS: Mention m68k, mcore multi-arching.
7517 * MAINTAINERS: Change status of m68k, mcore to reflect
7518 multi-arching.
7519
7520 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7521
7522 * valops.c (find_overload_match): Free oload_syms.
7523
7524 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7525
7526 Define HAVE_SYS_PROC_H if sys/proc.h exists
7527 * configure.in: Add check for sys/proc.h
7528 * config.in: Regenerate.
7529 * configure: Regenerate.
7530
7531 2002-07-09 Grace Sainsbury <graces@redhat.com>
7532
7533 * config/m68k/tm-m68k.h: Remove macros wrapped in
7534 #if !GDB_MULTI_ARCH.
7535
7536 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7537
7538 * config.in, configure: Regenerate.
7539
7540 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7541
7542 * dwarf2cfi.c: Include "gcore.h".
7543 (execute_stack_op): Fix implementation of the
7544 DW_OP_deref and DW_OP_deref_size operators by letting do their
7545 lookup in the target.
7546
7547 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7548
7549 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7550 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7551 tdep->sc_sp_offset.
7552
7553 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7554
7555 Fix PR gdb/595, gdb/602
7556 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7557 Don't call value_cast, just read the vtable pointer; update comments
7558 to match.
7559
7560 2002-07-05 Grace Sainsbury <graces@redhat.com>
7561
7562 * config/mcore/tm-mcore.h: Remove file.
7563 * config/mcore/mcore.mt: Remove definition of TM_FILE
7564 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7565
7566 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7567
7568 * i386bsd-tdep.c: Include "gdb_string.h".
7569
7570 2002-07-04 Grace Sainsbury <graces@redhat.com>
7571
7572 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7573 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7574 mcore-tdep.
7575 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7576 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7577 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7578 (RETVAL_REGNUM): Move macros from tm-mcore.h
7579 (mcore_reg_struct_has_addr): New function.
7580 (mcore_gdbarch_init): Added initializations for the macros removed
7581 from tm-mcore.h.
7582
7583 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7584
7585 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7586 traditonal string branding within the ELF header.
7587
7588 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * symtab.c (remove_params): New function.
7591 (make_symbol_overload_list): Use it instead of cplus_demangle.
7592 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7593
7594 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7595
7596 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7597
7598 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7599 New variables.
7600 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7601 and tdep->sigtramp_end.
7602 * i386obsd-nat.c: New file.
7603 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7604
7605 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7606 Don't call get_current_frame().
7607
7608 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7609
7610 * i386-nat.c (child_post_startup_inferior): New function
7611 calling i386_cleanup_dregs if
7612 I386_USE_GENERIC_WATCHPOINTS is defined.
7613 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7614 conditional to acknowledge that i386-nat.c has its
7615 own child_post_startup_inferior function.
7616
7617 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7618
7619 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7620 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7621 instead of MAX_REGISTER_RAW_SIZE.
7622 (i386_extract_return_value, i386_extract_struct_value_address):
7623 Convert to use regcache.
7624 (i386_gdbarch_init): Set max_register_raw_size and
7625 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7626 Set extract_return_value and extract_struct_value_address instead
7627 of their deprecated variants.
7628
7629 Convert i386 target to generic dummy frames.
7630 * i386-tdep.c: Include "symfile.h".
7631 (i386_frameless_signal_p): Consider a function to be frameless if
7632 the pc points at the first instruction of the function.
7633 (i386_frame_chain): Handle (generic) call dummies.
7634 (i386_frame_saved_pc): Likewise.
7635 (i386_frame_init_saved_regs): Remove code dealing with call
7636 dummies on the stack.
7637 (i386_push_dummy_frame): Removed.
7638 (i386_call_dummy_words): Removed.
7639 (i386_fix_call_dummy): Removed.
7640 (i386_push_return_address): New function.
7641 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7642 parameter, and don't call get_current_frame.
7643 (i386_pop_frame): New function.
7644 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7645 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7646 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7647 call_dummy_length to 0, set call_dummy_words to NULL, set
7648 sizeof_call_dummy_words to 0, set fix_call_dummy to
7649 generic_fix_call_dummy, set pc_in_call_dummy to
7650 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7651 generic_push_dummy_frame, set push_return_address to
7652 i386_push_return_address and set frame_chain_valid to
7653 generic_file_frame_chain_valid.
7654
7655 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7656
7657 * gdbarch.sh (struct regcache): Add opaque declaration.
7658 (EXTRACT_RETURN_VALUE): New architecture method.
7659 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7660 * gdbarch.h, gdbarch.c: Regenerate.
7661 * arch-utils.c (legacy_extract_return_value): New function.
7662 * arch-utils.h (legacy_extract_return_value): Declare.
7663 * values.c (value_being_returned): Re-enable code handling
7664 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7665 deprecated_grub_regcache_for_registers call to block handling
7666 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7667 (EXTRACT_RETURN_VALUE): Do not define.
7668
7669 2002-07-03 Grace Sainsbury <graces@redhat.com>
7670
7671 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7672 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7673 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7674 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7675 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7676 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7677 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7678 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7679 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7680 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7681 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7682 argument so the function fits the prototype in the architecture
7683 vector.
7684 (mcore_pop_frame): Remove argument so the function fits the
7685 prototype. Use get_current_frame instead of the argument.
7686 (mcore_push_arguments): Change type of struct_return so the
7687 function can be used in the architecture vector.
7688 (mcore_store_struct_return): Add.
7689 (mcore_frame_init_saved_regs): Add.
7690 (mcore_gdbarch_init): Add function calls to replace the macros
7691 removed from tm-mcore.h
7692
7693 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7694
7695 * infcmd.c (print_return_value): Remove compatibility code calling
7696 deprecated_grub_regcache_for_registers.
7697
7698 * values.c: Include "regcache.h".
7699 (value_being_returned): Update. Use
7700 deprecated_grub_regcache_for_registers to extract the register
7701 buffer address.
7702 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7703 ``struct regcache''.
7704 * Makefile.in (values.o): Add dependency on $(regcache_h).
7705
7706 * inferior.h (run_stack_dummy): Change type of second parameter to
7707 a ``struct regcache''.
7708 * valops.c (hand_function_call): Change type of retbuf to ``struct
7709 regcache''. Allocate using regcache_xmalloc, clean using
7710 make_cleanup_regcache_xfree.
7711 * infcmd.c (run_stack_dummy): Update. Use
7712 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7713
7714 * regcache.c (do_regcache_xfree): New function.
7715 (make_cleanup_regcache_xfree): New function.
7716 * regcache.h (make_cleanup_regcache_xfree): Declare.
7717
7718 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7719
7720 * event-top.c (command_line_handler): Don't read past
7721 beginning of buffer.
7722
7723 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7724
7725 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7726 struct frame_id.
7727 (varobj_create): Store frame_id for root.
7728 (varobj_gen_name): Use xasprintf.
7729 (varobj_update): Save and restore frame using get_frame_id() and
7730 frame_find_by_id().
7731 (create_child): Use xasprintf.
7732 (new_root_variable): Initialize frame_id.
7733 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7734 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7735 to prevent memory leak.
7736
7737 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7738
7739 * valops.c (hand_function_call): Move declaration of retbuf to
7740 start of function, allocate using malloc, add a cleanup but before
7741 the inf_status cleanup, cleanup the buffer. Rename local variable
7742 old_chain to inf_status_cleanup.
7743
7744 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7745
7746 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7747
7748 * cli/cli-decode.c (cmd_func_p): New function.
7749 (cmd_func): New function.
7750
7751 * command.h: Add cmd_func() and cmd_func_p().
7752
7753 2002-07-03 Grace Sainsbury <graces@redhat.com>
7754
7755 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7756 (REGISTER_SIZE): Remove.
7757 (MAX_REGISTER_RAW_SIZE): Remove.
7758 (REGISTER_VIRTUAL_TYPE): Remove.
7759 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7760 (REGISTER_NAME): Remove.
7761 (USE_GENERIC_DUMMY_FRAMES): Remove.
7762 (CALL_DUMMY): Remove.
7763 (CALL_DUMMY_START_OFFSET): Remove.
7764 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7765 (CALL_DUMMY_LOCATION): Remove.
7766 (FIX_CALL_DUMMY): Remove.
7767 (CALL_DUMMY_ADDRESS): Remove.
7768 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7769 (SAVE_DUMMY_FRAME_TOS): Remove.
7770 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7771 (mcore_register_virtual_type): New function.
7772 (mcore_register_byte): New function.
7773 (mcore_register_size): New function.
7774 (mcore_register_name): New function.
7775 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7776 macros removed from tm-mcore.h.
7777 (mcore_dump_tdep): Add.
7778 (_initialize_mcore_tdep): Add gdbarch_register call.
7779
7780 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7781
7782 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7783 frameless_look_for_prologue, such that we actually call this
7784 function.
7785
7786 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7787
7788 * frame.h (frame_address_in_block): New function.
7789
7790 * blockframe.c (frame_address_in_block): New function extracted
7791 from get_frame_block().
7792 (get_frame_block): Use frame_address_in_block().
7793 (block_innermost_frame): Use frame_address_in_block() to match
7794 the frame pc address against the block boundaries rather than
7795 the frame pc directly. This prevents a failure when a frame pc
7796 is actually a return-address pointing immediately after the end
7797 of the given block.
7798
7799 2002-07-02 Grace Sainsbury <graces@redhat.com>
7800
7801 * MAINTAINERS: Add self under write after approval.
7802
7803 2002-07-02 Grace Sainsbury <graces@redhat.com>
7804
7805 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7806 used in architecture vector. The default is
7807 m68k_local_breakpoint_from_pc.
7808 (m68k_local_breakpoint_from_pc): Add.
7809 (enum): Add register numbers from tm-m68k.h.
7810 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7811 vector.
7812 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7813 GDB_MULTI_ARCH_PARTIAL.
7814 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7815 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7816 m68k-tdep.c.
7817 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7818 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7819 to enum in m68k-tdep.c
7820
7821 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7822
7823 * solib-osf.c (open_map): Compute the list of shared libraries
7824 loaded by the inferior, rather than the list of libraries loaded
7825 by GDB itself. Otherwise, GDB ends up reading the symbols from
7826 the wrong shared libraries...
7827
7828 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7829
7830 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7831 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7832 macros.
7833 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7834 Remove functions.
7835 (FRAMELESS_SIGNAL): Remove function.
7836 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7837 i386_linux_saved_pc_after_call): Removed.
7838 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7839 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7840 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7841
7842 * i386-tdep.c (i386_frameless_signal_p): New function.
7843 (i386_frame_chain): Deal with frameless signals.
7844 (i386_sigtramp_saved_sp): New function.
7845 (i386_frame_saved_pc): Deal with frameless signals.
7846 (i386_saved_pc_after_call): Make sure the correct value is
7847 returned just after entry into a sigtramp.
7848 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7849 i386fbsd4_sc_sp_offset): New variables.
7850 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7851 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7852 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7853 similiar to what we already did for sc_pc_offset.
7854 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7855 tdep->sc_sp_offset.
7856
7857 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7858
7859 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7860
7861 * config/i386/tm-x86-64linux.h: New.
7862 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7863 definitions.
7864 * config/i386/nm-x86-64.h: Rename to ...
7865 * config/i386/nm-x86-64linux.h: ... this one.
7866 * config/i386/x86-64linux.mh: Reflect the above change.
7867
7868 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7869
7870 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7871 with sigcontext_addr. Add sc_sp_offset.
7872 (i386bsd_sigtramp_saved_pc): Remove prototype.
7873 (i386bsd_sicontext_addr): Add prototype.
7874 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7875 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7876 (i386_svr4_sigtramp_saved_pc): Removed.
7877 (i386_svr4_sigcontext_addr): New function.
7878 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7879 Initialize tdep->sigcontext_addr instead. Initialize
7880 tdep->sc_pc_offset and tdep->sc_sp_offset.
7881 (i386_gdbarch_init): Likewise.
7882 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7883 any more.
7884 (i386bsd_sigtramp_saved_pc): Remove function.
7885 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7886 Initialize tdep->sigcontext_addr instead. Initialize
7887 tdep->sc_pc_offset.
7888 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7889 of tdep->sigtramp_saved_pc.
7890 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7891 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7892 instead.
7893
7894 * i386-tdep.c (i386_frameless_function_invocation,
7895 i386_frame_num_args, i386_frame_init_saved_regs,
7896 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7897 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7898 i386_extract_return_value, i386_store_return_value,
7899 i386_extract_struct_value_address, i386_register_virtual_type,
7900 i386_register_convertible, i386_register_convert_to_virtual,
7901 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7902 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7903 static.
7904
7905 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7906
7907 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7908
7909 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7910 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7911 this macro. Include "value.h".
7912
7913 2002-06-30 Aidan Skinner <aidan@velvet.net>
7914
7915 * ada-exp.tab.c: remove as it's a generated file
7916 * ada-lex.c: remove as it's a generated file
7917
7918 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7919
7920 * config/i386/tm-i386.h (struct frame_info, struct
7921 frame_saved_regs, struct value, struct type): Remove forward
7922 declarations.
7923
7924 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7925 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7926 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7927 (FILL_FPXREGSET): Define.
7928
7929 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7930
7931 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7932 i[3456]86-*-netbsd* case.
7933 * config/i386/tm-obsd.h: Removed.
7934 * config/i386/obsd.mt: Removed.
7935 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7936 core-aout.o.
7937 (MH_CFLAGS): Add -DYYDEBUG=0.
7938
7939 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7940 i386nbsd_sc_pc_offset on OpenBSD too.
7941
7942 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7943 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7944 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7945 define.
7946 * i386bsd-tdep.c: Include "arch-utils.h".
7947 (i386bsd_aout_in_solib_call_trampoline): New function.
7948 (i386bsd_init_abi): Set in_solib_call_trampoline to
7949 i386bsd_aout_in_solib_call_trampoline.
7950 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7951 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7952
7953 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7954
7955 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7956 (struct obstack, struct bcache): Add opaque declarations.
7957 * Makefile.in (macrotab_h): Update
7958
7959 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7960
7961 * blockframe.c (generic_find_dummy_frame): Change return type to
7962 ``struct regcache''.
7963 (struct dummy_frame): Replace field ``registers'' with regcache, a
7964 struct regcache object.
7965 (generic_find_dummy_frame): Update.
7966 (generic_push_dummy_frame): Update. Use regcache_xfree,
7967 regcache_xmalloc and regcache_cpy.
7968 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7969 regcache_xfree.
7970 (deprecated_generic_find_dummy_frame): Update.
7971 (generic_read_register_dummy): Update. Use
7972 regcache_read_as_address.
7973 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7974 (generic_get_saved_register): Update. Use regcache_read.
7975
7976 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7977
7978 * Makefile.in (objfiles_h): Add $(bcache_h).
7979 * objfiles.h: Include "bcache.h".
7980
7981 * Makefile.in (symtab_h): Remove $(bcache_h).
7982 * symtab.h: Do not include "bcache.h".
7983
7984 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7985
7986 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7987 generic_func_frame_chain_valid.
7988
7989 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7990
7991 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7992 * config/i386/tm-fbsd.h: Likewise.
7993
7994 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7995
7996 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7997 generic_unwind_get_saved_register.
7998
7999 2002-06-27 Andrew Cagney <ac131313@redhat.com>
8000
8001 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
8002 * regcache.c (supply_register): Add missing argument to
8003 register_buffer call.
8004
8005 2002-06-27 Andrew Cagney <ac131313@redhat.com>
8006
8007 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
8008 Solaris /bin/grep does not not like it. From Peter Schauer.
8009
8010 2002-06-26 Tom Tromey <tromey@redhat.com>
8011
8012 * command.h (add_setshow_cmd): Declare.
8013 (add_setshow_cmd_full): Declare.
8014 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
8015 returns void. Use add_setshow_cmd_full.
8016 (add_setshow_cmd_full): New function.
8017 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
8018 (add_setshow_boolean_cmd): Likewise.
8019
8020 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8021
8022 * config/vax/tm-vax.h: Protect from multiple inclusion.
8023 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
8024 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
8025 * config/vax/tm-vaxbsd.h: ...here. New file.
8026 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
8027
8028 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8029
8030 * config/vax/tm-vax.h (BREAKPOINT): Remove.
8031 (BELIEVE_PCC_PROMOTION): Remove.
8032 (AP_REGNUM): Move to...
8033 * config/vax/nm-vax.h: ...here.
8034 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
8035 (vax_breakpoint_from_pc): New function.
8036 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
8037 and gdbarch_believe_pcc_promotion.
8038
8039 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8040
8041 * Makefile.in (vax_tdep_h): Define.
8042 (vax-tdep.o): Use $(vax_tdep_h).
8043 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
8044 (vax_dump_tdep): New function.
8045 (_initialize_vax_tdep): Register vax_dump_tdep.
8046 * vax-tdep.h: Include osabi.h.
8047 (struct gdbarch_tdep): New.
8048
8049 2002-06-26 Andrew Cagney <cagney@redhat.com>
8050
8051 * frame.h (deprecated_generic_find_dummy_frame): Rename
8052 generic_find_dummy_frame.
8053 * blockframe.c (generic_find_dummy_frame): Make static.
8054 (deprecated_generic_find_dummy_frame): New function.
8055 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8056 generic_find_dummy_frame with deprecated_find_dummy_frame.
8057 (sh64_nofp_frame_init_saved_regs): Ditto.
8058 (sh_fp_frame_init_saved_regs): Ditto.
8059 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8060 (s390_frame_chain): Ditto.
8061 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8062
8063 2002-06-26 Grace Sainsbury <graces@redhat.com>
8064
8065 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8066 gdbarch vector are at the top.
8067 (NUM_REGS): Remove.
8068 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8069 (FRAME_ARGS_ADDRESS): Remove.
8070 (FRAME_LOCALS_ADDRESS): Remove.
8071 (FRAME_NUM_ARGS): Remove.
8072 (FRAME_ARGS_SKIP): Remove.
8073 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8074 (m68k_gdbarch_init): Add gdbarch initializations for macros
8075 undefined in tm-m68k.h
8076
8077 2002-06-26 Grace Sainsbury <graces@redhat.com>
8078
8079 * monitor.h: Add the function regname to monitor_ops
8080 structure. This way NUM_REGS does not have to be a constant.
8081 * monitor.c (monitor_fetch_register): Added support for regname
8082 function. The function is called if the array regnames is NULL.
8083 (monitor_store_register): Same.
8084 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8085 regnames array.
8086 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8087 cpu32bug_cmds.regname to point to new function.
8088 * abug-rom.c (abug_regname): Same as above.
8089 (init_abug_cmds): Same.
8090 * dbug-rom.c (dbug_regname): Same as above.
8091 (init_dbug_cmds): Same.
8092 * remote-est.c (est_regname): Same.
8093 (init_est_cmds): Same.
8094 * rom68k-rom.c (rom68k_regname): Same.
8095 (init_rom68k_cmds): Same.
8096
8097 2002-06-25 Tom Tromey <tromey@redhat.com>
8098
8099 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8100
8101 2002-06-25 Andrew Cagney <cagney@redhat.com>
8102
8103 * infrun.c (stop_registers): Change variable's type to ``struct
8104 regcache'''.
8105 (xmalloc_inferior_status): Delete function.
8106 (free_inferior_status): Delete function.
8107 (normal_stop): Use regcache_cpy.
8108 (struct inferior_status): Change type of fields ``stop_registers''
8109 and ``registers'' to ``struct regcache''.
8110 (write_inferior_status_register): Use regcache_write.
8111 (save_inferior_status): Instead of calling
8112 xmalloc_inferior_status, allocate the inf_status buffer directly.
8113 Use regcache_dup_no_passthrough and regcache_dup to save the
8114 buffers.
8115 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8116 Replace the stop_registers regcache instead of overriding it. Use
8117 regcache_xfree. Instead of calling free_inferior_status, xfree
8118 the buffer directly.
8119 (discard_inferior_status): Use regcache_xfree. Instead of calling
8120 free_inferior_status, xfree the buffer directly.
8121 (build_infrun): Use regcache_xmalloc.
8122 (_initialize_infrun): Delete redundant call to build_infrun.
8123
8124 * Makefile.in (infcmd.o): Add $(regcache_h).
8125
8126 * infcmd.c: Include "regcache.h".
8127 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8128 obtain the address of `stop_registers' register buffer.
8129 (print_return_value): Ditto.
8130
8131 * inferior.h (struct regcache): Add opaque declaration.
8132 (stop_registers): Change variable's declared type to ``struct
8133 regcache''.
8134
8135 2002-06-24 Tom Tromey <tromey@redhat.com>
8136
8137 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8138 * target.c (initialize_targets): Fixed typo in
8139 trust-readonly-sections `show' documentation.
8140
8141 * main.c: Marked all strings with _().
8142
8143 2002-06-24 Don Howard <dhoward@redhat.com>
8144
8145 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8146 that means max CORE_ADDR+1.
8147 (lookup_mem_region): Ditto.
8148 (mem_info_command): Ditto.
8149
8150 2002-06-24 Grace Sainsbury <graces@redhat.com>
8151
8152 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8153 (REGISTER_BYTES_OK): Remove.
8154 (REGISTER_BYTES): Remove.
8155 (STORE_STRUCT_RETURN): Remove.
8156 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8157 (STORE_RETURN_VALUE): Remove.
8158 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8159 (FRAME_CHAIN): Remove.
8160 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8161 (FRAME_SAVED_PC): Remove.
8162 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8163 (m68k_store_struct_return): Add.
8164 (m68k_deprecated_extract_return_value): Add.
8165 (m68k_deprecated_extract_struct_value_address): Add.
8166 (m68k_store_return_value): Add.
8167 (m68k_frame_chain): Add.
8168 (m68k_frameless_function_invocation): Add.
8169 (m68k_frame_saved_pc): Add.
8170 (m68k_gdbarch_init): added set_gdbarch calls for new
8171 functions and deleted macros.
8172
8173 2002-06-23 Tom Tromey <tromey@redhat.com>
8174
8175 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8176 (ALLDEPFILES): Likewise.
8177 (udiheaders): Removed.
8178 (udip2soc.o): Likewise.
8179 (udi2go32.o): Likewise.
8180 (udr.o): Likewise.
8181 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8182
8183 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8184
8185 * infrun.c (_initialize_infrun): Delete unnecessary call to
8186 build_infrun.
8187
8188 * regcache.h: Update comments describing the regcache_cpy family
8189 of functions.
8190 (regcache_save, regcache_restore): Delete declaration.
8191 (regcache_save_no_passthrough): Delete declaration.
8192 (regcache_restore_no_passthrough): Delete declaration.
8193 * regcache.c (regcache_save): Delete function.
8194 (regcache_save_no_passthrough): Delete function.
8195 (regcache_restore): Delete function.
8196 (regcache_restore_no_passthrough): Delete function.
8197
8198 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8199
8200 * config/m68k/tm-m68k.h: Fix typo.
8201 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8202 (m68k_frame_init_saved_regs): Declare.
8203
8204 2002-06-21 Jim Blandy <jimb@redhat.com>
8205
8206 Remove some vestiges of Harris 88k support.
8207 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8208 register numbering quirk.
8209 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8210 odd symbols occurring in Harris 88k ELF targets.
8211
8212 2002-06-21 Tom Tromey <tromey@redhat.com>
8213
8214 * gdb_locale.h: New file.
8215 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8216 (defs_h): Added gdb_locale.h.
8217 * configure, config.in: Rebuilt.
8218 * configure.in (PACKAGE): Define.
8219 * defs.h: Include gdb_locale.h.
8220 * main.c (captured_main): Call setlocale, bindtextdomain,
8221 textdomain.
8222
8223 2002-06-21 Dave Brolley <brolley@redhat.com>
8224
8225 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8226 * config/frv/frv.mt: New file.
8227 * config/frv/tm-frv.h: New file.
8228 * configure.tgt: Support frv-*-*.
8229 * Makefile.in (frv-tdep.o): New target.
8230 * frv-tdep.c: New file.
8231 * NEWS: Mention frv.
8232
8233 2002-06-21 Dave Brolley <brolley@redhat.com>
8234
8235 * MAINTAINERS: Add self to "Write After Approval" list.
8236
8237 2002-06-21 Grace Sainsbury <graces@redhat.com>
8238
8239 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8240 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8241 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8242 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8243 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8244
8245 * m68k-tdep.c: Include arch-utils.h
8246 (m68k_register_raw_size): Add.
8247 (m68k_register_virtual_size): Add.
8248 (m68k_register_virtual_type): Add.
8249 (m68k_register_name): Add.
8250 (m68k_stack_align): Add.
8251 (m68k_register_byte): Add.
8252 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8253 tm-m68k.h.
8254
8255 2002-06-21 Grace Sainsbury <graces@redhat.com>
8256
8257 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8258 m68k_find_saved_regs.
8259 (m68k_pop_frame): Removed saved_regs structure, and replaced
8260 references to it with frame->saved_regs.
8261 (m68k_gdbarch_init): Added function calls to initialize the
8262 gdbarch structure.
8263 (m68k_fix_call_dummy): Add.
8264 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8265 (CALL_DUMMY): Remove.
8266 (CALL_DUMMY_LENGTH): Remove.
8267 (CALL_DUMMY_START_OFFSET): Remove.
8268 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8269 (FIX_CALL_DUMMY): Remove.
8270 (PUSH_DUMMY_FRAME): Remove.
8271 (POP_FRAME): Remove.
8272
8273 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8274
8275 * parse.c (parse_fprintf): New function used to avoid calls to
8276 fprintf in bison parser generated debug code.
8277 * parser-defs.h: Declaration of new parse_fprintf function.
8278 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8279 Set YYDEBUG to 1 by default.
8280 Set YYFPRINTF as parse_fprintf.
8281
8282 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8283
8284 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8285 encoding anymore.
8286 (pointer_encoding, enum ptr_encoding): New.
8287 (execute_cfa_program): Take care about pointer encoding.
8288 (dwarf2_build_frame_info): Only call parse_frame_info for
8289 .debug_frame and .eh_frame.
8290 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8291 fixed augmentation handling, added relative addressing,
8292 ignore duplicate FDEs. Added comments.
8293 * dwarf2cfi.c: Reindented.
8294
8295 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8296
8297 * event-top.c (command_handler): Don't use space_at_cmd_start
8298 unless there is sbrk() on the host. Assign time and space data
8299 to union fields of the appropriate length.
8300
8301 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8302
8303 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8304 x86_64_register_name. Return type changed to 'const char *'.
8305 (x86_64_register_name2nr): Rename to x86_64_register_number.
8306 (x86_64_gdbarch_init): Update to reflect the change.
8307 * x86-64-tdep.h: Ditto.
8308 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8309 (supply_fpregset): Ditto.
8310
8311 2002-06-19 Andrew Cagney <cagney@redhat.com>
8312
8313 * regcache.h: Update copyright.
8314 (struct regcache, struct gdbarch): Add opaque declarations.
8315 (current_regcache): Declare global variable.
8316 (regcache_read, regcache_write): Add gdbarch parameter.
8317 (regcache_save, regcache_save_no_passthrough)
8318 (regcache_restore, regcache_restore_no_passthrough)
8319 (regcache_dup, regcache_dup_no_passthrough)
8320 (regcache_cpy, regcache_cpy_no_passthrough)
8321 (deprecated_grub_regcache_for_registers)
8322 (deprecated_grub_regcache_for_register_valid)
8323 (regcache_valid_p): Add function declarations.
8324
8325 * regcache.c: Update copyright.
8326 (regcache_descr_handle): New global variable.
8327 (struct regcache_descr): Define.
8328 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8329 (regcache_descr, xfree_regcache_descr): New functions.
8330 (struct regcache): Define.
8331 (regcache_xmalloc, regcache_xfree): New functions.
8332 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8333 (regcache_dup, regcache_dup_no_passthrough): New functions.
8334 (regcache_valid_p, regcache_read_as_address): New functions.
8335 (deprecated_grub_regcache_for_registers): New function.
8336 (deprecated_grub_regcache_for_register_valid): New function.
8337 (current_regcache): New global variable.
8338 (register_buffer): Add regcache parameter. Update calls.
8339 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8340 (read_register_gen, write_register_gen): Update register_buffer
8341 call. Test for legacy_p instead of gdbarch_register_read_p or
8342 gdbarch_register_write_p.
8343 (regcache_collect): Update register_buffer call.
8344 (build_regcache): Rewrite. Use deprecated grub functions.
8345 (regcache_save, regcache_save_no_passthrough): New functions.
8346 (regcache_restore, regcache_restore_no_passthrough): New
8347 functions.
8348 (_initialize_regcache): Create the regcache_data_handle. Swap
8349 current_regcache global variable.
8350
8351 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8352 parameter to regcache_read and regcache_write calls.
8353 (sh4_register_read): Ditto.
8354 (sh64_pseudo_register_read): Ditto.
8355 (sh64_register_read): Ditto.
8356 (sh_pseudo_register_write): Ditto.
8357 (sh4_register_write): Ditto.
8358 (sh64_pseudo_register_write): Ditto.
8359 (sh64_register_write): Ditto.
8360
8361 * defs.h (XCALLOC): Define.
8362
8363 2002-06-19 Grace Sainsbury <graces@redhat.com>
8364
8365 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8366 * m68k-tdep.c (m68k_gdbarch_init): Added.
8367 (m68k_dump_tdep): Added.
8368
8369 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8370
8371 * ada-lang.c (fill_in_ada_prototype): Update comment.
8372
8373 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8374
8375 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8376 MIPS_ABI_LAST.
8377 (mips_abi_string, mips_abi_strings): New.
8378 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8379 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8380 tdep->mips_abi_string. Honor mips_abi_string. Default to
8381 O32 if no ABI is found.
8382 (mips_dump_tdep): Use mips_abi_strings.
8383 (mips_abi_update): New function.
8384 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8385 ``set mips abi'' and ``show mips abi''. Check the size of
8386 mips_abi_strings.
8387
8388 2002-06-19 Andrew Cagney <cagney@redhat.com>
8389
8390 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8391 constant.
8392
8393 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8394
8395 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8396 current frame using only the first stack size adjustment. All
8397 subsequent size adjustments are not considered to be part of
8398 the "static" part of the current frame.
8399 Compute the address of the saved registers relative to the
8400 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8401 in use in this frame.
8402
8403 2002-06-18 Don Howard <dhoward@redhat.com>
8404
8405 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8406 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8407 suggesting this solution.
8408
8409 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8410
8411 * config/romp/xm-rtbsd.h: Delete file.
8412 * config/romp/rtbsd.mh: Delete file.
8413
8414 2002-06-18 Keith Seitz <keiths@redhat.com>
8415
8416 * breakpoint.c (condition_command): Post breakpoint_modify
8417 when a condition is added to an existing breakpoint.
8418 (commands_command): Likewise for commands.
8419 (set_ignore_count): Likewise for ignore counts.
8420 If no tty, do not simply return, still need to send event
8421 notification.
8422 (ignore_command): Only print a newline if the command came
8423 from a tty.
8424 Don't call breakpoints_changed, since this is now properly
8425 handled by set_ignore_count.
8426
8427 2002-06-18 Andrew Cagney <cagney@redhat.com>
8428
8429 * MAINTAINERS: Note that cris-elf target can be compiled with
8430 -Werror.
8431 * cris-tdep.c (cris_register_name): Make return type constant.
8432 (cris_breakpoint_from_pc): Ditto.
8433
8434 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8435
8436 * frame.h (struct frame_info): Change type of context to
8437 'struct context'.
8438
8439 2002-06-17 Andrew Cagney <cagney@redhat.com>
8440
8441 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8442 pointer.
8443 * gdbarch.h, gdbarch.c: Regenerate.
8444 * config/mips/tm-mips.h (mips_register_name): Update.
8445 * i386-tdep.h (i386_register_name): Update.
8446 * mips-tdep.c (mips_register_name): Update
8447 * alpha-tdep.c (alpha_register_name): Update.
8448 * arch-utils.c (legacy_register_name): Update.
8449 * arch-utils.h (legacy_register_name): Update.
8450 * avr-tdep.c (avr_register_name): Update.
8451 * ia64-tdep.c (ia64_register_name): Update.
8452 * i386-tdep.c (i386_register_name): Update.
8453 * sparc-tdep.c (sparc32_register_name): Update.
8454 (sparc64_register_name): Update.
8455 (sparclite_register_name): Update.
8456 (sparclet_register_name): Update.
8457 * sh-tdep.c (sh_generic_register_name): Update.
8458 (sh_sh_register_name): Update.
8459 (sh_sh3_register_name): Update.
8460 (sh_sh3e_register_name): Update.
8461 (sh_sh_dsp_register_name): Update.
8462 (sh_sh3_dsp_register_name): Update.
8463 (sh_sh4_register_name): Update.
8464 (sh_sh64_register_name): Update.
8465 * s390-tdep.c (s390_register_name): Update.
8466 * rs6000-tdep.c (rs6000_register_name): Update.
8467 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8468 (ns32k_register_name_32382): Update.
8469 * d10v-tdep.c (d10v_ts2_register_name): Update.
8470 (d10v_ts3_register_name): Update.
8471 * xstormy16-tdep.c (xstormy16_register_name): Update.
8472 * vax-tdep.c (vax_register_name): Update.
8473 * v850-tdep.c (v850_register_name): Update.
8474 * m68hc11-tdep.c (m68hc11_register_name): Update.
8475 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8476 (am33_register_name): Update.
8477
8478 2002-06-17 Grace Sainsbury <graces@redhat.com>
8479
8480 * m68k-tdep.c: Reindented.
8481
8482 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8483
8484 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8485 list of predefined types.
8486
8487 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8488
8489 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8490 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8491 REGISTER_CONVERT_TO_RAW): Remove defines.
8492 (i386_register_virtual_type, i386_register_convertible,
8493 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8494 Remove prototypes.
8495 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8496 macros mentioned above.
8497
8498 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8499 (i386lynx_saved_pc_after_call): Remove prototype.
8500 * i386ly-tdep.c: Include "i386-tdep.h".
8501 (i386lynx_saved_pc_after_call): Make static. Use
8502 read_memory_nobpt instead of read_memory. Use
8503 read_memory_unsigned_integer instead of read_memory_integer.
8504 (i386lynx_init_abi): New function.
8505 (i386lynx_coff_osabi_sniffer): New function.
8506 (_initialize_i386bsd_tdep): New function.
8507
8508 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8509 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8510 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8511 (i386_fix_call_dummy): Remove prototype.
8512 * i386-tdep.c (i386_call_dummy_words): New variable.
8513 (i386_gdbarch_init): Adjust for removal of the
8514 macros mentioned above.
8515
8516 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8517
8518 * command.h (add_setshow_auto_boolean_cmd): Replace
8519 add_set_auto_boolean_cmd.
8520 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8521 add_set_auto_boolean_cmd.
8522 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8523 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8524 mask-address'' command.
8525 (show_mask_address): Add cmd parameter.
8526 * remote.c (add_packet_config_cmd): Update. Change type of
8527 set_func and show_func to cmd_sfunc_ftype.
8528 (_initialize_remote): Update `set remote Z-packet'
8529 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8530 (show_remote_protocol_e_packet_cmd): Ditto.
8531 (show_remote_protocol_E_packet_cmd): Ditto.
8532 (show_remote_protocol_P_packet_cmd): Ditto.
8533 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8534 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8535 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8536 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8537 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8538 (show_remote_protocol_Z_packet_cmd): Ditto.
8539 (show_remote_protocol_binary_download_cmd): Ditto.
8540 (show_remote_cmd): Pass NULL to all of above.
8541
8542 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8543
8544 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8545 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8546 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8547 POP_FRAME): Remove defines.
8548 (i386_push_arguments, i386_store_struct_return,
8549 i386_extract_return_value, i386_store_return_value,
8550 i386_extract_struct_value_address, i386_push_dummy_frame,
8551 i386_pop_frame): Renove prototypes.
8552 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8553 macros mentioned above.
8554
8555 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8556
8557 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8558 add_set_boolean_cmd.
8559 (add_setshow_cmd): New function.
8560 * command.h (add_setshow_boolean_cmd): Replace
8561 add_set_boolean_cmd.
8562 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8563 and ``set rdiromatzero''.
8564 * maint.c (_initialize_maint_cmds): Update commented out code.
8565 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8566 * target.c (initialize_targets): Update `set
8567 trust-readonly-sections'.
8568 * remote.c (_initialize_remote): Update `set remotebreak'.
8569
8570 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8571
8572 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8573 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8574 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8575 fit into multi-arch framework.
8576 (i386_breakpoint_from_pc): New function.
8577 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8578 above.
8579
8580 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8581 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8582 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8583 (i386_frameless_function_invocation, i386_frame_num_args,
8584 i386_frame_init_saved_regs): Remove prototypes.
8585 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8586 macros mentioned above.
8587
8588 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8589
8590 * cli/cli-decode.c (set_cmd_cfunc): Update.
8591 (set_cmd_sfunc): Update.
8592 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8593 (set_cmd_sfunc, set_cmd_cfunc): Update.
8594 * cli/cli-decode.h: Update.
8595
8596 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8597
8598 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8599 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8600
8601 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8602
8603 * defs.h (auto_boolean): Declare enum.
8604 * command.h (cmd_auto_boolean): Delete enum.
8605 * mips-tdep.c (mask_address_var): Update.
8606 (mips_mask_address_p): Update.
8607 (show_mask_address): Update.
8608 * remote.c (struct packet_config): Update.
8609 (update_packet_config): Update.
8610 (show_packet_config_cmd): Update.
8611 (packet_ok): Update.
8612 (add_packet_config_cmd): Update.
8613 (_initialize_remote):
8614 * command.h: Update.
8615 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8616 (do_setshow_command): Update.
8617 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8618 * cli/cli-decode.h: Update.
8619
8620 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8621
8622 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8623 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8624 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8625 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8626 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8627 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8628
8629 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8630 list of DJGPP COFF targets.
8631
8632 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8633 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8634 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8635 (FP0_REGNUM): Remove define.
8636 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8637 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8638 (i386_register_virtual_size): Remove protoype.
8639 * i386-tdep.c (i386_register_virtual_size): Removed.
8640 (i386_extract_return_value, i386_store_return_value): Use
8641 FP0_REGNUM instead of NUM_FREGS to determine whether the
8642 floating-point registers are available.
8643 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8644 Adjust for removal of macros mentioned above.
8645
8646 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8647
8648 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8649 comments.
8650 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8651 Remove prototypes.
8652 (supply_gregset, fill_gregset): Remove use of register keyword and
8653 remove declaration for regmap. Use I386_NUM_GREGS instead of
8654 NUM_REGS and NUM_FREGS.
8655 (FPREGSET_FSAVE_OFFSET): Remove.
8656 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8657 NUM_FREGS to determine whether the floating-point registers are
8658 available.
8659
8660 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8661 gnu_store_registers): Replace usage of NUM_GREGS with
8662 I386_NUM_GREGS.
8663
8664 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8665 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8666 usage of NUM_GREGS with I386_NUM_GREGS.
8667
8668 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8669
8670 * i386bsd-nat.c: Include "i386-tdep.h".
8671 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8672 I386_NUM_GREGS.
8673
8674 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8675 and associated comment. They no longer make any sense, since we
8676 don't use this file anymore on Linux.
8677
8678 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8679 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8680 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8681 elements in these arrays.
8682 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8683 MAX_NUM_REGS.
8684
8685 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8686
8687 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8688 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8689
8690 2002-06-14 Andrew Cagney <cagney@redhat.com>
8691
8692 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8693 EXTRACT_RETURN_VALUE.
8694 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8695 EXTRACT_STRUCT_VALUE_ADDRESS.
8696 * gdbarch.h, gdbarch.c: Regenerate.
8697
8698 * values.c (value_being_returned): Handle
8699 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8700 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8701
8702 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8703 * arm-tdep.c (arm_gdbarch_init): Update.
8704 * avr-tdep.c (avr_gdbarch_init): Update.
8705 * cris-tdep.c (cris_gdbarch_init): Update.
8706 * d10v-tdep.c (d10v_gdbarch_init): Update.
8707 * ia64-tdep.c (ia64_gdbarch_init): Update.
8708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8709 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8710 * s390-tdep.c (s390_gdbarch_init): Update.
8711 * sh-tdep.c (sh_gdbarch_init): Update.
8712 * s390-tdep.c (s390_gdbarch_init): Update.
8713 * sparc-tdep.c (sparc_gdbarch_init): Update.
8714 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8715 * v850-tdep.c (v850_gdbarch_init): Update.
8716 * vax-tdep.c (vax_gdbarch_init): Update.
8717 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8719
8720 * config/arc/tm-arc.h: Update.
8721 * config/d30v/tm-d30v.h: Update.
8722 * config/fr30/tm-fr30.h: Update.
8723 * config/h8300/tm-h8300.h: Update.
8724 * config/h8500/tm-h8500.h: Update.
8725 * config/i386/tm-i386.h: Update.
8726 * config/i386/tm-ptx.h: Update.
8727 * config/i386/tm-symmetry.h: Update.
8728 * config/i960/tm-i960.h: Update.
8729 * config/m32r/tm-m32r.h: Update.
8730 * config/m68k/tm-delta68.h: Update.
8731 * config/m68k/tm-linux.h: Update.
8732 * config/m68k/tm-m68k.h: Update.
8733 * config/m88k/tm-m88k.h: Update.
8734 * config/mcore/tm-mcore.h: Update.
8735 * config/mips/tm-mips.h: Update.
8736 * config/mn10200/tm-mn10200.h: Update.
8737 * config/pa/tm-hppa.h: Update.
8738 * config/pa/tm-hppa64.h: Update.
8739 * config/sparc/tm-sp64.h: Update.
8740 * config/sparc/tm-sparc.h: Update.
8741 * config/sparc/tm-sparclet.h: Update.
8742 * config/z8k/tm-z8k.h: Update.
8743
8744 2002-06-14 Andrew Cagney <cagney@redhat.com>
8745
8746 * Makefile.in (i386_linux_tdep_h): Define.
8747 (i386_tdep_h, i387_tdep_h): Define.
8748 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8749 $(i386_tdep_h) and $(i387_tdep_h).
8750 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8751
8752 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8753
8754 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8755 Already covered by the default.
8756
8757 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8758 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8759 (i386_gdbarch_init): Initialize long_double_format and long_double
8760 bit.
8761
8762 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8763 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8764 Move these to ...
8765 * config/i386/i386sol2.mh: ... here.
8766 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8767 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8768 (SIGCONTEXT_PC_OFFSET): Remove define.
8769 (IN_SIGTRAMP): Remove define.
8770 * i386-sol2-tdep.c: New file.
8771
8772 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8773 * config/i386/tm-i386nw.h: Removed.
8774
8775 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8776 USE_STRUCT_CONVENTION): Remove defines.
8777 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8778 (get_longjmp_target): Remove prototype.
8779 (IN_SIGTRAMP): Remove define.
8780 (i386bsd_in_sigtramp): Remove prototype.
8781 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8782 function. Update comment accordingly
8783 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8784 (FRAME_SAVED_PC): Remove define.
8785 (i386bsd_frame_saved_pc): Remove prototype.
8786 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8787 GET_LONGJMP_TARGET): Remove defines.
8788 (get_longjmp_target): Remove prototype.
8789 (IN_SIGTRAMP): Remove define.
8790 (i386bsd_in_sigtramp): Remove prototype.
8791 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8792 function. Update comment accordingly
8793 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8794 (FRAME_SAVED_PC): Remove define.
8795 (i386bsd_frame_saved_pc): Remove prototype.
8796 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8797 Remove prototype.
8798 (USE_STRUCT_CONVENTION): Remove prototype.
8799 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8800 declaration.
8801 (_initialize_i386bsd_nat): Revise logic to determine some
8802 constants at compile time when compiling a native GDB. Warn if
8803 things don't match up with what we expect.
8804 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8805 Remove variables.
8806 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8807 to use date stored in `struct gdbarch_tdep'.
8808 (i386bsd_sigcontext_offset): Remove varaible.
8809 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8810 stored in `struct gdbarch_tdep'.
8811 (i386bsd_frame_saved_pc): Make static.
8812 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8813 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8814 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8815 i386fbsd4_sc_pc_offset): New variables.
8816 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8817 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8818 functions.
8819 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8820 functions.
8821 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8822 Modify the value of i386fbsd_sigtramp_start and
8823 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8824 i386fbsd_sigtramp_end.
8825 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8826 function.
8827
8828 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8829 define to i386-linux-tdep.h.
8830 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8831 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8832 defines.
8833 (i386_linux_register_name, i386_linux_register_byte,
8834 i386_linux_register_raw_size): Remove prototypes.
8835 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8836 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8837 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8838 TARGET_WRITE_PC): Remove defines.
8839 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8840 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8841 i386_linux_write_pc): Remove prototypes.
8842 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8843 (get_longjmp_target): Remove prototype.
8844 * i386-linux-tdep.h: New file.
8845 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8846 * i386-linux-tdep.c: Include "i386-tdep.h" and
8847 "i386-linux-tdep.h".
8848 (i386_linux_register_name, i386_linux_register_byte,
8849 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8850 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8851 Make static.
8852 (i386_linux_init_abi): New function.
8853 (_initialize_i386_linux_tdep): New function.
8854
8855 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8856 (i386_saved_pc_after_call): Remove prototype.
8857 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8858 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8859 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8860 (i386_register_name, i386_stab_reg_to_regnum,
8861 i386_dwarf_reg_to_regnum): Remove prototypes.
8862 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8863 SIZEOF_SSE_REGS): Remove defines.
8864 (REGISTER_BYTES): Remove define.
8865 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8866 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8867 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8868 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8869 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8870 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8871 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8872 (get_longjmp_target): Remove prototype.
8873 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8874 (sigtramp_saved_pc): Remove define.
8875 (i386v4_sigtramp_saved_pc): Remove prototype.
8876 * config/i386/tm-go32.h (FRAME_CHAIN,
8877 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8878 (i386go32_frame_saved_pc): Remove prototype.
8879 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8880 (get_longjmp_target): Remove prototype.
8881 * i386-tdep.h: Include "osabi.h".
8882 (enum i386_abi): Removed.
8883 (enum struct_return): New enum.
8884 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8885 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8886 sc_pc_offset members.
8887 (i386_gdbarch_register_os_abi): Remove prototype.
8888 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8889 I386_SSE_NUM_REGS): New defines.
8890 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8891 I386_SSE_SIZEOF_REGS): New defines.
8892 (i386_register_name, i386_register_byte, i386_register_raw_size):
8893 New prototypes.
8894 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8895 (i386bsd_sigtramp_saved_pc): New prototype.
8896 * i386-tdep.c: Don't include "elf-bfd.h".
8897 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8898 i386_frame_chain, i386_saved_pc_after_call): Make static.
8899 (i386_frame_saved_pc): Rewrite to call architecture dependent
8900 function to deal with signal handlers. Make static.
8901 (i386go32_frame_saved_pc): Removed.
8902 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8903 Removed.
8904 (i386_get_longjmp_target): New function.
8905 (default_struct_convention, pcc_struct_convention,
8906 reg_struct_convention, valid_conventions, struct_convention): New
8907 variables.
8908 (i386_use_struct_convention): New function.
8909 (i386v4_sigtramp_saved_pc): Renamed to
8910 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8911 (i386_pc_in_sigtramp): New function.
8912 (i386_abi_names): Removed.
8913 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8914 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8915 Removed.
8916 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8917 i386_gdbarch_register_os_abi): Removed.
8918 (struct i386_abi_handler): Removed.
8919 (i386_abi_handler_list): Removed.
8920 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8921 functions.
8922 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8923 i386_nw_init_abi): New functions.
8924 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8925 Use set_gdbarch_xxx() calls instead of relying on macros for a
8926 number of calls.
8927 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8928 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8929 Register the various architecture variants defined in this file.
8930
8931 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8934 (struct main_type): Remove arg_types member. Update comments for
8935 struct field.
8936 (TYPE_ARG_TYPES): Remove.
8937 (TYPE_FN_FIELD_ARGS): Update.
8938 (smash_to_method_type): Update prototype.
8939
8940 * c-typeprint.c (cp_type_print_method_args): Take method type
8941 instead of argument list. Use new argument layout. Simplify.
8942 (c_type_print_args): Use new argument layout. Simplify.
8943 (c_type_print_base): Update call to cp_type_print_method_args.
8944 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8945 argument; use die->type instead. Update call to
8946 smash_to_method_type.
8947 (read_structure_scope): Update call to dwarf2_add_member_fn.
8948 * gdbtypes.c (allocate_stub_method): Update comment.
8949 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8950 Use new argument layout.
8951 (check_stub_method): Use new argument layout. Don't count
8952 void as an argument.
8953 (print_arg_types): Update comments. Use new argument layout.
8954 (recursive_dump_type): Don't print arg_types member.
8955 * hpread.c (hpread_read_struct_type): Use new argument layout.
8956 (fixup_class_method_type): Likewise.
8957 (hpread_type_lookup): Likewise.
8958 * stabsread.c (read_type): Update calls to read_args and
8959 smash_to_method_type.
8960 (read_args): Use new argument layout. Simplify.
8961 * valops.c (typecmp): Use new argument layout. Update parameters
8962 and comments. Simplify.
8963 (hand_function_call): Use new argument layout.
8964 (search_struct_method): Update call to typecmp.
8965 (find_overload_match): Use new argument layout.
8966
8967 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8968
8969 * NEWS: Mention multithreaded debug support for gdbserver.
8970
8971 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8972
8973 * MAINTAINERS: Mention NEWS.
8974
8975 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8978 (struct mips_objfile_private, compare_pdr_entries): New.
8979 (non_heuristic_proc_desc): Read the ".pdr" section if it
8980 is present.
8981
8982 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8983
8984 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8985 (arm_debug): New static variable.
8986 (_initialize_arm_tdep): Add ``set debug arm'' command.
8987
8988 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8989
8990 * Makefile.in (sim_arm_h): Define.
8991 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8992 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8993 (arm_register_sim_regno): New function, map an internal REGNUM
8994 onto a simulator register number.
8995 (arm_gdbarch_init): Set register_sim_regno.
8996
8997 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8998
8999 * MAINTAINERS: Add self.
9000
9001 2002-06-11 Jim Blandy <jimb@redhat.com>
9002
9003 * source.c (source_info): Mention whether the symtab has
9004 information about preprocessor macros.
9005
9006 Call the command `info macro', not `show macro'.
9007 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
9008 Fix error message.
9009 (_initialize_macrocmd): Register `info_macro_command' in
9010 `infolist', not `showlist'.
9011
9012 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
9015 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
9016 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
9017 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
9018 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
9019 unconditionally.
9020 (set_mipsfpu_single_command, set_mipsfpu_double_command)
9021 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
9022 (_initialize_mips_tdep): Remove dead code.
9023 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
9024 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9025 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
9026 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
9027 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
9028 MIPS_LAST_FP_ARG_REGNUM): Remove.
9029
9030 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9031
9032 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
9033 (unwind_tmp_obstack_free, parse_frame_info)
9034 (update_context, cfi_read_fp, cfi_write_fp)
9035 (cfi_frame_chain, cfi_init_extra_frame_info)
9036 (cfi_virtual_frame_pointer): Use the above function.
9037 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
9038
9039 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
9040
9041 * v850-tdep.c (v850_type_is_scalar): New function.
9042 (v850_use_struct_convention): Match current gcc implementation
9043 as close as possible.
9044 (v850_push_arguments): Fix stack_offset handling. Don't write
9045 struct_addr into register. This is done by v850_store_struct_return.
9046 (v850_extract_return_value): Care for structs.
9047 (v850_store_return_value): Ditto.
9048 (v850_store_struct_return): Actually write address.
9049
9050 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9051
9052 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9053 without debug information too.
9054
9055 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9056
9057 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9058 Make multi-arch pure.
9059 * gdbarch.h, gdbarch.c: Re-generate.
9060 * arm-tdep.c (arm_print_float_info): Update.
9061 * arch-utils.h (default_print_float_info): Update.
9062 * arch-utils.c (default_print_float_info): Update.
9063 * infcmd.c (float_info): Update call.
9064
9065 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9066
9067 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9068 the front of the initialize list.
9069
9070 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9071
9072 * infrun.c (struct inferior_status): Replace fields
9073 selected_frame_address and selected_level with field
9074 selected_frame_id.
9075 (save_inferior_status): Update. Use get_frame_id.
9076 (struct restore_selected_frame_args): Delete.
9077 (restore_selected_frame): Update. Use frame_find_by_id.
9078 (restore_inferior_status): Update.
9079
9080 * breakpoint.h (struct breakpoint): Change type of
9081 watchpoint_frame to frame_id.
9082 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9083 call to get_current_frame.
9084 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9085 get_current_frame.
9086 (watchpoint_check): Use frame_find_by_id.
9087
9088 * frame.h (record_selected_frame): Delete declaration.
9089 * stack.c (record_selected_frame): Delete function.
9090
9091 * frame.h (struct frame_id): Define.
9092 (get_frame_id): Declare.
9093 (frame_find_by_id): Declare.
9094 * frame.c (frame_find_by_id): New function.
9095 (get_frame_id): New function.
9096
9097 2002-06-10 Andrey Volkov <avolkov@transas.com>
9098
9099 * ser-e7kpc.c: Fix duplicated define and call of
9100 _initialize_ser_e7000pc
9101
9102 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * signals/signals.c (target_signal_from_host): Fix #ifdef
9105 SIGRTMIN case.
9106 (do_target_signal_to_host): Likewise.
9107
9108 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9109
9110 * mips-tdep.c (mips_find_abi_section): New function.
9111 (mips_gdbarch_init): Call it.
9112
9113 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9114
9115 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9116 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9117 after Andrew's 2002-06-08 gdbarch change.
9118
9119 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9120
9121 * i386-linux-nat.c (suppy_gregset): Don't supply
9122 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9123 register cache.
9124 (fill_gregset): Don't fetch it under the same circumstances.
9125
9126 2002-06-09 Andrew Cagney <cagney@redhat.com>
9127
9128 * Makefile.in (callback_h): Define.
9129 (remote_sim_h): Update path to remote-sim.h.
9130 (remote-rdp.o): Add $(callback_h).
9131 (remote-sim.o): Use $(callback_h).
9132 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9133 * remote-rdp.c: Include "gdb/callback.h".
9134
9135 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9136
9137 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9138 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9139
9140 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9141
9142 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9143 * rdi-share/serpardr.c: Ditto.
9144 * rdi-share/unixcomm.c: Ditto.
9145 * rdi-share/serdrv.c: Ditto.
9146 * rdi-share/hostchan.h: Ditto.
9147 * rdi-share/hostchan.c: Ditto.
9148 * rdi-share/host.h: Ditto.
9149 * rdi-share/devsw.c: Ditto.
9150
9151 * objfiles.h: Change type of obj_private to void pointer.
9152 * pa64solib.c: Update copyright. Don't include "assert.h", use
9153 strcmp instead of STREQ, use LONGEST, do not use PTR
9154 * somsolib.c: Ditto.
9155
9156 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9157 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9158 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9159
9160 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9161
9162 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9163 (default_get_saved_register): Delete function.
9164 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9165 generic_unwind_get_saved_register.
9166 * gdbarch.h, gdbarch.c: Re-generate.
9167
9168 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9169
9170 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9171 generic_func_frame_chain_valid.
9172 * gdbarch.h, gdbarch.c: Re-generate.
9173 * blockframe.c (generic_func_frame_chain_valid): Only check
9174 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9175 passing FP to PC_IN_CALL_DUMMY.
9176 Fix PR gdb/360.
9177
9178 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9179
9180 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9181 (register_gdbarch_data): Initialize init_p.
9182 (gdbarch_data): Initialize data pointer using the init function.
9183 (init_gdbarch_data): Delete function.
9184 (gdbarch_update_p): Update.
9185 (initialize_non_multiarch): Update.
9186 (struct gdbarch): Add field initialized_p.
9187 * gdbarch.h, gdbarch.c: Re-generate.
9188
9189 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9190
9191 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9192 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9193 better do the things actually here.
9194 * x86-64-tdep.c (x86_64_register_name2nr): New.
9195 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9196 (x86_64_gdbarch_init): Respect the above change.
9197 * x86-64-tdep.h (x86_64_register_name2nr)
9198 (x86_64_register_nr2name): Add prototypes.
9199 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9200
9201 2002-06-06 Michael Snyder <msnyder@redhat.com>
9202
9203 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9204 Delete extra braces and re-indent.
9205 (d10v_store_return_value): Char return values
9206 must be shifted over by one byte in R0.
9207 (d10v_extract_return_value): Delete extra braces, re-indent.
9208
9209 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9210
9211 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9212 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9213 (d10v_integer_to_address): Rewrite.
9214 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9215 the d10v specific functions which take care of converting to the
9216 correct space.
9217
9218 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9219
9220 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9221 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9222
9223 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9224
9225 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9226 includes.
9227 * config/tm-linux.h: Ditto.
9228 * config/alpha/tm-alphalinux.h: Ditto.
9229 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9230 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9231 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9232 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9233 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9234 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9235 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9236 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9237 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9238 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9239 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9240 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9241 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9242 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9243 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9244 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9245 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9246 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9247 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9248 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9249 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9250 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9251 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9252 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9253 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9254 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9255 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9256 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9257 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9258 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9259 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9260 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9261 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9262 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9263 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9264 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9265 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9266
9267 2002-05-04 Aidan Skinner <aidan@velvet.net>
9268
9269 * ada-exp.tab.c: New file
9270 * ada-exp.y: New file
9271 * ada-lang.c: New file
9272 * ada-lang.h: New file
9273 * ada-lex.c: New file
9274 * ada-lex.l: New file
9275 * ada-tasks.c: New file
9276 * ada-typeprint.c: New file
9277 * ada-valprint.c: New file
9278
9279 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9280
9281 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9282 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9283
9284 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9285
9286 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9287 insetead of ppc-linux-tdep.o.
9288 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9289 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9290
9291 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9292
9293 2002-05-07 Christian Groessler <chris@groessler.org>
9294 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9295 bit register contents for little endian hosts.
9296
9297 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9298
9299 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9300 any maintainer.
9301
9302 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9303
9304 * gdbarch.h: Regenerate.
9305
9306 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9307
9308 * MAINTAINERS: Add everyone to write-after-approval list.
9309
9310 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9311
9312 * stack.c (frame_info): Use frame_register_unwind instead of
9313 saved_regs. Mention when the SP is on the stack or in a register.
9314
9315 * frame.h (frame_register_unwind_ftype): Define. Document.
9316 (struct frame_info): Add field register_unwind and
9317 register_unwind_cache.
9318 (frame_register_unwind): Declare.
9319 (generic_unwind_get_saved_register): Declare.
9320
9321 * frame.c (frame_register_unwind): New function.
9322 (generic_unwind_get_saved_register): New function.
9323
9324 * blockframe.c (generic_call_dummy_register_unwind): New function.
9325 (frame_saved_regs_register_unwind): New function.
9326 (set_unwind_by_pc): New function.
9327 (create_new_frame): New function.
9328 (get_prev_frame): New function.
9329
9330 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9331
9332 * a29k-share/: Delete directory.
9333 * remote-vx29k.c: Delete file.
9334
9335 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9336
9337 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9338 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9339
9340 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9341
9342 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9343 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9344 (sparc64nbsd-nat.o)
9345 (sparcnbsd-nat.o)
9346 (sparcnbsd-tdep.o): New dependency lists.
9347 * NEWS: Note new UltraSPARC NetBSD native configuration.
9348 * configure.host (sparc64-*-netbsd*): New host.
9349 * configure.tgt (sparc-*-netbsdelf*)
9350 (sparc-*-netbsd*): Set gdb_target to nbsd.
9351 (sparc64-*-netbsd*): New target.
9352 * sparc64nbsd-nat.c: New file.
9353 * sparcnbsd-nat.c: New file.
9354 * sparcnbsd-tdep.c: New file.
9355 * sparcnbsd-tdep.h: New file.
9356 * config/sparc/nbsd.mt: New file.
9357 * config/sparc/nbsd64.mh: New file.
9358 * config/sparc/nbsd64.mt: New file.
9359 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9360 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9361 (HOST_IPC): Remove.
9362 * config/sparc/nbsdaout.mt: Remove.
9363 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9364 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9365 (HOST_IPC): Remove.
9366 * config/sparc/nbsdelf.mt: Remove.
9367 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9368 sparc-nat.c compatiblity defines.
9369 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9370 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9371 * config/sparc/tm-nbsd64.h: New file.
9372 * config/sparc/tm-nbsdaout.h: Remove.
9373 * config/sparc/xm-nbsd.h: Remove.
9374
9375 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9376
9377 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9378 * sparc-tdep.c: Include osabi.h.
9379 (gdbarch_tdep): Add osabi member.
9380 (_initialize_sparc_tdep): Use gdbarch_register.
9381 (sparc_gdbarch_init): Use generic OS ABI framework.
9382 (sparc_dump_tdep): New function.
9383
9384 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9385
9386 * corefile.c (do_captured_read_memory_integer): Return non-zero
9387 result.
9388 (safe_read_memory_integer): Copy result of memory read when
9389 status is non-zero. Also, add comments.
9390
9391 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9392
9393 * Makefile.in (ppc_tdep_h): Define.
9394 (ppc-linux-nat.o)
9395 (ppc-linux-tdep.o)
9396 (rs6000-tdep.o): Use $(ppc_tdep_h).
9397 (ppc-sysv-tdep.o)
9398 (ppcnbsd-nat.o)
9399 (ppcnbsd-tdep.o): New dependency lists.
9400 * ppc-tdep.h: Use generic OS ABI framework.
9401 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9402 (ppc_linux_init_abi): New functions.
9403 (ppc_sysv_abi_broken_use_struct_convention)
9404 (ppc_sysv_abi_use_struct_convention)
9405 (ppc_sysv_abi_push_arguments): Move to...
9406 * ppc-sysv-tdep.c: ...here.
9407 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9408 * rs6000-tdep.c (process_note_abi_tag_sections)
9409 (get_elfosabi): Remove.
9410 (rs6000_gdbarch_init): Use generic OS ABI framework.
9411 (rs6000_dump_tdep): New function.
9412 (_initialize_rs6000_tdep): Use gdbarch_register.
9413 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9414 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9415 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9416 of ppc-linux-tdep.o.
9417 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9418 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9419 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9420 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9421 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9422 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9423
9424 2002-05-29 Jim Blandy <jimb@redhat.com>
9425
9426 * macroscope.c (default_macro_scope): Put `void' in empty argument
9427 list.
9428
9429 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9430
9431 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9432 * arch-utils.c: Include "sim-regno.h".
9433 * gdbarch.sh: Don't include "sim-regno.h".
9434 * gdbarch.h, gdbarch.c: Regenerate.
9435 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9436 here.
9437 * arch-utils.h (legacy_register_sim_regno): To here.
9438 * remote-sim.c (legacy_register_sim_regno): Move function from
9439 here.
9440 * arch-utils.c (legacy_register_sim_regno): To here.
9441
9442 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9443
9444 * sim-regno.h: New file.
9445 * Makefile.in (sim_regno_h): Define.
9446 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9447 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9448 (legacy_register_sim_regno): New function.
9449 (one2one_register_sim_regno): New function.
9450 (gdbsim_fetch_register): Rewrite.
9451 (gdbsim_store_register): Only store a register when
9452 REGISTER_SIM_REGNO is valid.
9453 * d10v-tdep.c: Include "sim-regno.h".
9454 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9455 (d10v_ts3_register_sim_regno): Ditto.
9456 * gdbarch.sh: Include "sim-regno.h".
9457 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9458 * gdbarch.h, gdbarch.c: Regenerate.
9459 * arch-utils.h (default_register_sim_regno): Delete declaration.
9460 * arch-utils.c (default_register_sim_regno): Delete function.
9461
9462 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9463
9464 * ppcnbsd-nat.c: Rewrite.
9465 * ppcnbsd-tdep.c: New file.
9466 * ppcnbsd-tdep.h: New file.
9467 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9468 solib.o, and solib-svr4.o.
9469 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9470 nbsd-tdep.o, and corelow.o.
9471
9472 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9473
9474 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9475 `tr' and `sed'. Mention that `broken' targets are not expected to
9476 build.
9477
9478 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9479
9480 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9481 Let PC point right after the prologue before looking up symbols.
9482
9483 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9484
9485 * i386-tdep.c (i386_register_virtual_type): Return
9486 builtin_type_vec128i for SSE registers.
9487
9488 * gdbtypes.h (builtin_type_vec128i): Declare.
9489
9490 * gdbtypes.c (build_builtin_type_vec128i): New function.
9491 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9492 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9493 (build_gdbtypes): Initialize new builtin vector types.
9494 (_initialize_gdbtypes): Register new vector types with gdbarch.
9495
9496 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9497
9498 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9499 since it has been multi-arch'd.
9500 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9501 Move Alpha and VAX multi-arch news entries to same section
9502 as other multi-arch news.
9503
9504 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9505
9506 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9507 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9508 static. Rename some register numbers to put them in ns32k-tdep
9509 private namespace.
9510 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9511 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9512 functions.
9513 (_initialize_ns32k_tdep): Use gdbarch_register.
9514 * ns32k-tdep.h: New file.
9515 * ns32knbsd-tdep.c: New file.
9516 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9517 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9518 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9519 REGISTER_BYTES, REGISTER_BYTE): Remove.
9520 * config/ns32k/tm-ns32k.h: New file.
9521 * config/ns32k/tm-umax.h: Remove.
9522
9523 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9524
9525 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9526 ns32k_store_struct_return, ns32k_extract_return_value,
9527 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9528 functions.
9529 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9530 ns32k_saved_pc_after_call.
9531 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9532 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9533 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9534 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9535 ns32k_extract_struct_value_address.
9536
9537 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9538
9539 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9540 ns32k_fix_call_dummy): New.
9541 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9542 ns32k_call_dummy_words.
9543 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9544 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9545 CALL_DUMMY_NARGS): Remove.
9546 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9547
9548 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9549
9550 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9551 ns32k_frame_saved_pc, ns32k_frame_args_address,
9552 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9553 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9554 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9555 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9556 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9557 (BREAKPOINT): Remove..
9558 (FRAME_CHAIN): Define as ns32k_frame_chain.
9559 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9560 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9561 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9562 (FRAME_FIND_SAVED_REGS): Remove.
9563 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9564 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9565 (POP_FRAME): Define as ns32k_pop_frame.
9566
9567 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9568
9569 * ns32k-tdep.c (ns32k_register_byte_32082,
9570 ns32k_register_byte_32382, ns32k_register_raw_size,
9571 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9572 functions.
9573 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9574 ns32k_register_byte_32382.
9575 * config/ns32k/tm-umax.h: Update copyright years.
9576 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9577 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9578 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9579 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9580 (ns32k_get_enter_addr): Fix prototype.
9581
9582 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9583
9584 * ns32k-tdep.c: Update copyright years.
9585 (ns32k_register_name_32082): New function.
9586 (ns32k_register_name_32382): Ditto.
9587 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9588 (REGISTER_NAME): Define as ns32k_register_name_32382.
9589 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9590 (REGISTER_NAME): Define as ns32k_register_name_32082.
9591
9592 2002-05-24 Jim Blandy <jimb@redhat.com>
9593
9594 * dwarf2read.c (free_line_header): Use xfree, not free.
9595
9596 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9597
9598 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9599 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9600
9601 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9602
9603 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9604
9605 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9606
9607 From Ross Alexander at NEC Europe:
9608 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9609
9610 2002-05-23 Michael Snyder <msnyder@redhat.com>
9611
9612 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9613 for input, rather than parse_and_eval_address.
9614
9615 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9616
9617 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9618 * Makefile.in (sim_d10v_h): Update definition.
9619
9620 2002-05-24 Andrew Cagney <cagney@redhat.com>
9621
9622 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9623 change `2002-05-22 Michael Snyder' below.
9624 (d10v_push_arguments): Ditto.
9625 (d10v_extract_return_value): Ditto.
9626
9627 2002-05-23 Jim Blandy <jimb@redhat.com>
9628
9629 * macrotab.c (check_for_redefinition): Don't complain if the new
9630 definition is the same as the previous one. Take more arguments
9631 to allow the comparison.
9632 (macro_define_object, macro_define_function): Pass more arguments
9633 to check_for_redefinition.
9634
9635 2002-05-22 Michael Snyder <msnyder@redhat.com>
9636
9637 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9638 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9639 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9640 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9641 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9642 Add a temp variable to save a call (and a memory read).
9643 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9644 if possible (so that PC_IN_CALL_DUMMY will work).
9645
9646 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9647
9648 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9649
9650 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9651
9652 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9653 fde->cie_ptr.
9654 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9655 (dwarf2_build_frame_info): Add offset to fde->initial_location
9656 so that frames of shared libraries are mapped correctly.
9657 (execute_stack_op): Change type of 'result' from ULONGEST to
9658 CORE_ADDR.
9659
9660 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9661
9662 * config/alpha/tm-nbsd.h: Include solib.h.
9663
9664 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9665
9666 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9667 assumptions about the host's byte order.
9668
9669 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9670
9671 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9672 to dependency list.
9673 * alphanbsd-tdep.c: Include solib-svr4.h.
9674 * shnbsd-tdep.c: Ditto.
9675
9676 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9677
9678 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9679 nbsd-tdep.h to dependency list.
9680 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9681 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9682 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9683 nbsdaout.mh and nbsdelf.mh consistently.
9684 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9685 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9686 nbsdaout.mt and nbsdelf.mh consistently.
9687 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9688 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9689 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9690 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9691 a.out shared library stuff from here...
9692 * config/nm-nbsdaout.h: ...to here.
9693 * config/tm-nbsd.h: Remove.
9694 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9695 * config/arm/nbsd.mh: Remove.
9696 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9697 nbsd-tdep.o.
9698 * config/arm/nbsdaout.mh: New file.
9699 * config/arm/nbsdelf.mh: New file.
9700 * config/arm/nm-nbsdaout.h: New file.
9701 * config/i386/nbsd.mh: Remove.
9702 * config/i386/nbsd.mt: Remove.
9703 * config/i386/nbsdaout.mh: New file.
9704 * config/i386/nbsdaout.mt: New file.
9705 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9706 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9707 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9708 i386_register_u_addr): Remove.
9709 * config/i386/nm-nbsdaout.h: New file.
9710 * config/i386/nm-nbsdelf.h: Remove.
9711 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9712 (USE_STRUCT_CONVENTION): Remove.
9713 * config/i386/tm-nbsdaout.h: New file.
9714 * config/i386/tm-nbsdelf.h: Remove.
9715 * config/m68k/nbsd.mh: Remove.
9716 * config/m68k/nbsd.mt: Remove.
9717 * config/m68k/nbsdaout.mh: New file.
9718 * config/m68k/nbsdaout.mt: New file.
9719 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9720 * config/m68k/nm-nbsdaout.h: New file.
9721 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9722 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9723 * config/ns32k/nbsd.mh: Remove.
9724 * config/ns32k/nbsd.mt: Remove.
9725 * config/ns32k/nbsdaout.mh: New file.
9726 * config/ns32k/nbsdaout.mt: New file.
9727 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9728 * config/ns32k/nm-nbsdaout.h: New file.
9729 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9730 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9731 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9732 (SVR4_SHARED_LIBS): Remove.
9733 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9734 * config/sparc/nbsd.mh: Remove.
9735 * config/sparc/nbsd.mt: Remove.
9736 * config/sparc/nbsdaout.mh: New file.
9737 * config/sparc/nbsdaout.mt: New file.
9738 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9739 * config/sparc/nbsdelf.mt: New file.
9740 * config/sparc/nm-nbsdaout.h: New file.
9741 * config/sparc/nm-nbsdelf.h: Remove.
9742 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9743 * config/sparc/tm-nbsdaout.h: New file.
9744
9745 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9746
9747 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9748 mipsnbsd-tdep.c
9749 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9750
9751 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9752
9753 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9754 shnbsd-nat.c.
9755 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9756
9757 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9758
9759 * NEWS: Note new MIPS NetBSD native configuration.
9760 * configure.host (mips*-*-netbsd*): New host.
9761 * configure.tgt (mips*-*-netbsd*): New target.
9762 * mipsnbsd-nat.c: New file.
9763 * mipsnbsd-tdep.c: New file.
9764 * mipsnbsd-tdep.h: New file.
9765 * config/mips/nbsd.mh: New file.
9766 * config/mips/nbsd.mt: New file.
9767 * config/mips/nm-nbsd.h: New file.
9768 * config/mips/tm-nbsd.h: New file.
9769
9770 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9771
9772 * Makefile.in (SFILES): Add osabi.c.
9773 (COMMON_OBS): Add osabi.o.
9774 (osabi.o): New dependency list.
9775 * osabi.c: New file.
9776 * osabi.h: New file.
9777 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9778
9779 * Makefile.in (alpha_tdep_h): Define and use instead of
9780 alpha-tdep.h.
9781 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9782 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9783 Remove.
9784 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9785 * alpha-tdep.h: Include osabi.h.
9786 (alpha_abi): Remove.
9787 (gdbarch_tdep): Use generic OS ABI framework.
9788 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9789 gdbarch_register_osabi.
9790 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9791 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9792 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9793
9794 * Makefile.in (sh_tdep_h): Add osabi.h.
9795 * sh-tdep.h (sh_osabi): Remove.
9796 (gdbarch_tdep): Use generic OS ABI framework.
9797 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9798 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9799 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9800 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9801
9802 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9803 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9804 gdbarch_register_osabi.
9805 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9806 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9807 (get_elfosabi): Rename to...
9808 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9809 ABI framework support routines.
9810 (arm_gdbarch_init): Use generic OS ABI framework.
9811 (arm_dump_tdep): Likewise.
9812 (_initialize_arm_tdep): Likewise.
9813 * arm-tdep.h: Include osabi.h.
9814 (arm_abi): Remove.
9815 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9816 osabi member.
9817 (arm_gdbarch_register_os_abi): Remove prototype.
9818 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9819 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9820
9821 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9822 * mips-tdep.c: Include osabi.h.
9823 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9824 OS ABI framework.
9825
9826 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9827
9828 * h8300-tdep.c: Fix formatting.
9829
9830 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9831
9832 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9833 printing vector registers.
9834
9835 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9836
9837 From Fernando Nasser:
9838 * remote.c (remote_async_open_1): Re-throw the exception when the
9839 connection fails.
9840 (remote_cisco_open): Ditto.
9841 (remote_open_1): Ditto.
9842
9843 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9844
9845 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9846 (remote_start_remote): Add uiout parameter. Pass through to
9847 remote_start_remote_dummy.
9848 (remote_open_1): Use catch_exception instead of catch_errors.
9849 (remote_async_open_1): Ditto.
9850 (remote_cisco_open): Ditto.
9851
9852 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9853
9854 * remote.c (remote_start_remote): Replace PTR with void pointer.
9855 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9856 static.
9857
9858 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9859
9860 * gdb_indent.sh: Allow the script to be run in the sim directory.
9861
9862 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9863
9864 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9865 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9866
9867 * corelow.c (core_open): Only call set_gdbarch_from_file if
9868 exec_bfd is NULL.
9869
9870 2002-05-17 Andrey Volkov <avolkov@transas.com>
9871
9872 * h8300-tdep.c: Add support of EXR register
9873 * config/h8300/tm-h8300.h: Ditto.
9874
9875 2002-05-17 Andrey Volkov <avolkov@transas.com>
9876
9877 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9878
9879 2002-05-17 Andrey Volkov <avolkov@transas.com>
9880
9881 * h8300-tdep.c: Change literal regnums to REGNO.
9882
9883 2002-05-17 Jim Blandy <jimb@redhat.com>
9884
9885 * NEWS: Note addition of macro support.
9886
9887 Expand preprocessor macros in C expressions.
9888 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9889 (scan_macro_expansion, scanning_macro_expansion,
9890 finished_macro_expansion): New function declarations.
9891 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9892 variable declarations.
9893 * parser-defs.h (expression_context_pc): New declaration.
9894 * parse.c (expression_context_pc): New variable.
9895 (parse_exp_1): Set expression_context_pc, as well as
9896 expression_context_block.
9897 * c-exp.y (yylex): If we're not already reading the result of a
9898 macro expansion, try to macro-expand the next token. When we're
9899 done scanning a macro expansion, switch back to the mainline text.
9900 Commas and `if's in a macro's expansion don't terminate the input.
9901 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9902 (macro_original_text, macro_expanded_text,
9903 expression_macro_lookup_func, expression_macro_lookup_baton): New
9904 variables.
9905 (scan_macro_expansion, scanning_macro_expansion,
9906 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9907 c_preprocess_and_parse): New functions.
9908 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9909 c_preprocess_and_parse, instead of c_parse.
9910 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9911 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9912
9913 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9914
9915 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9916 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9917 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9918
9919 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9920
9921 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9922
9923 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9924
9925 * Makefile.in (sh_tdep_h): Define and use.
9926 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9927 register enum): Move to...
9928 * * sh-tdep.h: ...here.
9929 * sh-tdep.c: Include sh-tdep.h.
9930 * sh3-rom.c: Likewise.
9931 * shnbsd-tdep.c: Likewise.
9932
9933 2002-05-16 Michael Snyder <msnyder@redhat.com>
9934
9935 * arm-tdep.c: Spelling fix in comment.
9936
9937 2002-05-16 Jim Blandy <jimb@redhat.com>
9938
9939 Add commands for manually expanding macros and showing their
9940 definitions.
9941 * macrocmd.c, macroscope.c, macroscope.h: New files.
9942 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9943 (macroscope_h): New variable.
9944 (HFILES_NO_SRCDIR): Add macroscope.h.
9945 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9946 (macroscope.o, macrocmd.o): New rules.
9947
9948 Teach the Dwarf 2 reader to read macro information.
9949 * dwarf2read.c: #include "macrotab.h".
9950 (dwarf_macinfo_buffer): New variable.
9951 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9952 dwarf_macinfo_size.
9953 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9954 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9955 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9956 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9957 dwarf2_macro_spaces_in_definition): New complaints.
9958 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9959 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9960 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9961 the partial symbol table.
9962 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9963 from what's recorded in the partial symbol table.
9964 (read_file_scope): If the compilation unit has a
9965 `DW_AT_macro_info' attribute, read its macro information.
9966 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9967
9968 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9969
9970 Fix PR gdb/546
9971 * ser-tcp.c: Don't include <netinet/udp.h>.
9972
9973 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9974
9975 * MAINTAINERS: Update my email address.
9976
9977 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9978
9979 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9980 include file of the same name.
9981
9982 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9983
9984 * configure.tgt: Mark v850 as multi-arched.
9985 * config/v850/tm-v850.h: Remove file.
9986 * config/v850/v850.mt: Eliminate TM_FILE.
9987
9988 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9989
9990 * v850-tdep.c: Full multi-arch.
9991 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9992 Define GDB_MULTI_ARCH to 2.
9993
9994 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9995
9996 * p-exp.y (current_type): New static variable.
9997 Carries the type of the expression at the position that is parsed.
9998 (push_current_type, pop_current_type): Two new functions. Used
9999 to store/restore current_type in expression on specific tokens.
10000 (search_field): New static variable. Set to one after parsing a point
10001 as at that point only a FIELDNAME token should be searched.
10002 (FIELDNAME): New token. After a point only a token belonging to
10003 current_type type definition is allowed.
10004 (all over token rules): reset and change current_type according
10005 to rules.
10006 (exp '[' rule): insert implicit array index field if
10007 exp is a pascal string type.
10008
10009 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
10010
10011 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
10012 frame info. Use frame_info's saved_regs instead of matching member
10013 in extra_frame_info throughout.
10014 (v850_frame_init_saved_regs): New function.
10015 (v850_init_extra_frame_info): Move most functionality into
10016 v850_frame_init_saved_regs().
10017 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
10018 (v850_frame_find_saved_regs): Remove declaration.
10019 (FRAME_FIND_SAVED_REGS): Remove definition.
10020 (v850_frame_init_saved_regs): Add declaration.
10021 (FRAME_INIT_SAVED_REGS): Add definition.
10022
10023 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
10024
10025 * v850-tdep.c: Begin multi-arch'ing v850.
10026 (v850_target_architecture_hook): Remove function.
10027 (v850_gdbarch_init): New function. Add code previously in
10028 v850_target_architecture_hook().
10029 (_initialize_v850_tdep): Don't set target_architecture_hook.
10030 Call register_gdbarch_init() instead.
10031
10032 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
10033
10034 * gdbtypes.h (struct cplus_struct_type): Remove args field.
10035 * hpread.c (hpread_read_struct_type): Remove assignments to args.
10036 (fixup_class_method_type): Likewise.
10037
10038 2002-05-15 Jim Blandy <jimb@redhat.com>
10039
10040 Add macro structures to GDB's symbol tables. Nobody puts anything
10041 in them yet.
10042 * symtab.h (struct symtab): New member: `macro_table'.
10043 * buildsym.h (pending_macros): New global variable.
10044 * buildsym.c: #include "macrotab.h".
10045 (buildsym_init): Initialize `pending_macros'.
10046 (end_symtab): If we found macro information while reading a CU's
10047 debugging info, do build a symtab structure for it. Make the
10048 symtab point to the macro information, and clear the
10049 `pending_macros' pointer which held it while we were reading the
10050 debug info.
10051 (really_free_pendings): Free any pending macro table.
10052 * objfiles.h (struct objfile): New member: `macro_cache'.
10053 * objfiles.c (allocate_objfile): Set allocate and free functions
10054 for the macro cache's objstack.
10055 (free_objfile): Empty the macro cache's obstack.
10056 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10057 set new allocate and free functions for it.
10058 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10059 free functions for the macro cache's objstack. (Why is this
10060 function building its own objfile?)
10061 * symmisc.c (print_objfile_statistics): Print statistics on the
10062 macro bcache.
10063 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10064
10065 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10066
10067 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10068 (REGISTER_U_ADDR): Delete definition.
10069 (arm_register_u_addr): Delete declaration.
10070
10071 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10072
10073 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10074 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10075
10076 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10077
10078 * regcache.c (register_valid): Revise comments refering to "Not
10079 available" and "unavailable".
10080 * frame.c (frame_register_read): Ditto.
10081 * findvar.c (value_of_register): Ditto.
10082
10083 2002-05-15 Andrew Cagney <cagney@redhat.com>
10084
10085 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10086 (remote-sim.o): Update dependencies.
10087 (d10v-tdep.o): Specify dependencies.
10088 (sim_d10v_h): Define.
10089
10090 2002-05-14 Jim Blandy <jimb@redhat.com>
10091
10092 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10093 * macrotab.c (macro_lookup_inclusion, find_definition,
10094 new_macro_table): Same.
10095
10096 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10097 not `! strcmp ()'. This is a dubious improvement.
10098 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10099
10100 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10101 although it's not necessary, to avoid a warning.
10102
10103 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10106 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10107 TYPE_INSTANCE_FLAGS.
10108 (struct main_type): New.
10109 (struct type): Move most members to struct main_type. Change
10110 cv_type and as_type to new type_chain member. Add instance_flags.
10111 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10112 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10113 (finish_cv_type): Remove prototype.
10114 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10115 Set TYPE_CHAIN.
10116 (alloc_type_instance): New function.
10117 (smash_type): New function.
10118 (make_pointer_type, make_reference_type, make_function_type)
10119 (smash_to_member_type, smash_to_method_type): Call smash_type.
10120 (make_qualified_type): New function.
10121 (make_type_with_address_space): Call make_qualified_type.
10122 (make_cv_type): Likewise.
10123 (finish_cv_type): Remove unnecessary function.
10124 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10125 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10126 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10127 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10128 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10129 * hpread.c (hpread_read_struct_type): Likewise.
10130 * stabsread.c (read_struct_type): Likewise.
10131
10132 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10133
10134 * configure.tgt: Add a catch all sh* target, for cases like
10135 sh[2,3,4]-elf and sh-hms.
10136
10137 2002-05-14 Keith Seitz <keiths@redhat.com>
10138
10139 * event-loop.c (create_file_handler): Don't do anything but
10140 update data when we are given a fd which we are already
10141 monitoring.
10142
10143 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10144
10145 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10146 (update_context): Use __func__ in warnings.
10147
10148 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10151 and tcp_close to net_open and net_close.
10152 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10153 using UDP if requested. Don't try to disable Nagle on UDP
10154 sockets.
10155 * remote.c (remote_serial_open): New function. Warn about UDP.
10156 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10157
10158 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10159
10160 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10161
10162 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10163
10164 * configure.tgt: Remove sh-hms target.
10165 * MAINTAINERS: Don't list sh-hms as a separate target.
10166
10167 2002-05-13 Jim Blandy <jimb@redhat.com>
10168
10169 Add first preprocessor macro-expansion files.
10170 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10171 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10172 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10173 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10174 (COMMON_OBS): Add macrotab.o, macroexp.o.
10175 (macroexp.o, macrotab.o): New rules.
10176
10177 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10178
10179 * config/m88k/tm-m88k.h: Update copyright.
10180 (m88k_target_write_pc): Declare
10181 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10182 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10183 (SHIFT_INST_REGS): Update definition.
10184 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10185 using old definition of TARGET_WRITE_PC.
10186 * regcache.c (generic_target_write_pc): Delete code handling
10187 NNPC_REGNUM.
10188 * gdbarch.sh (NNPC_REGNUM): Delete.
10189 * gdbarch.h, gdbarch.c: Regenerate.
10190
10191 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10192
10193 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10194 builtin reg number.
10195
10196 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10197
10198 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10199 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10200 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10201 access macros.
10202 * c-typeprint.c (cp_type_print_method_args): Likewise.
10203 (c_type_print_args): Likewise.
10204 * d10v-tdep.c (d10v_push_arguments): Likewise.
10205 (d10v_extract_return_value): Likewise.
10206 * expprint.c (print_subexp): Likewise.
10207 * gdbtypes.c (lookup_primitive_typename): Likewise.
10208 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10209 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10210 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10211 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10212 (TYPE_VECTOR): Likewise.
10213 * hpread.c (hpread_read_struct_type)
10214 (fix_static_member_physnames, fixup_class_method_type)
10215 (hpread_type_lookup): Likewise.
10216 * mdebugread.c (parse_symbol, parse_type): Likewise.
10217 * p-lang.c (is_pascal_string_type): Likewise.
10218 * valops.c (hand_function_call): Likewise.
10219 * x86-64-tdep.c (classify_argument): Likewise.
10220
10221 * hpread.c (hpread_read_function_type)
10222 (hpread_read_doc_function_type): Call replace_type.
10223 * dstread.c (create_new_type): Delete.
10224 (decode_dst_structure, process_dst_function): Call alloc_type.
10225 Use type access macros.
10226
10227 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10228
10229 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10230 the're not supported by the current architecture.
10231 (i387_fill_fxsave): Likewise.
10232
10233 2002-05-12 Fred Fish <fnf@redhat.com>
10234
10235 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10236 sect_index_xxx members to index the first slot in section_offsets
10237 if all of the section_offsets are zero.
10238
10239 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10240
10241 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10242 checked in with last change.
10243
10244 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10245
10246 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10247 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10248 config.sub.
10249
10250 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10251
10252 * Makefile.in: Update dependencies.
10253
10254 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10255
10256 * language.c (local_hex_string_custom): Simplify. Do not depend
10257 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10258
10259 * memattr.c (mem_info_command): Replace calls to
10260 longest_local_hex_string and longest_local_hex_string_custom.
10261 * buildsym.c (make_blockvector): Ditto.
10262 * solib.c (info_sharedlibrary_command): Ditto.
10263 * tracepoint.c (tracepoints_info): Ditto.
10264 * symtab.c (print_msymbol_info): Ditto.
10265
10266 * language.c (local_hex_string): Delete.
10267 (local_hex_string_custom): Delete.
10268 (longest_local_hex_string): Rename to local_hex_string.
10269 (longest_local_hex_string_custom): Rename to
10270 local_hex_string_custom.
10271 * language.h (local_hex_string): Change parameter type to LONGEST.
10272 (local_hex_string_custom): Ditto.
10273 (longest_local_hex_string): Delete declaration.
10274 (longest_local_hex_string_custom): Ditto.
10275
10276 * solib.c: Update copyright.
10277 * memattr.c: Update copyright.
10278
10279 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10280
10281 * arch-utils.h (legacy_register_to_value): Declare.
10282 (legacy_value_to_register): Declare.
10283 (legacy_convert_register_p): Declare.
10284 * arch-utils.c (legacy_register_to_value): New function.
10285 (legacy_value_to_register): New function.
10286 (legacy_convert_register_p): New function.
10287
10288 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10289 (VALUE_TO_REGISTER): Define.
10290 (CONVERT_REGISTER_P): Define.
10291 * gdbarch.h, gdbarch.c: Regenerate.
10292
10293 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10294 VALUE_TO_REGISTER.
10295 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10296 CONVERT_REGISTER_P.
10297
10298 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10299 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10300
10301 * Makefile.in: Update dependencies for valops.c.
10302 * valops.c: Include "gdb_assert.h".
10303 (typecmp): Skip THIS parameter to methods.
10304 (find_method_list): Remove static_memfuncp argument,
10305 update callers. Check for stub methods.
10306 (find_value_oload_method_list): Don't set *static_memfuncp.
10307 (find_overload_match): Don't check for stub methods. Assert
10308 that methods are not stubbed. Handle static methods.
10309 (value_find_oload_method_list): Remove static_memfuncp argument.
10310 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10311 to the argument list for static stub methods.
10312 * value.h (value_find_oload_method_list): Update prototype.
10313
10314 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10315
10316 * arch-utils.h (generic_register_size): Declare.
10317 (generic_register_raw_size, generic_register_virtual_size): Delete
10318 declarations.
10319 * arch-utils.c (generic_register_raw_size): Delete.
10320 (generic_register_size): New function.
10321 (generic_register_virtual_size): Delete.
10322
10323 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10324 default generic_register_size.
10325 * gdbarch.h, gdbarch.c: Re-generate.
10326
10327 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10328 register_virtual_size.
10329 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10330 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10331
10332 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10333
10334 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10335 * gdbarch.h, gdbarch.c: Regenerate.
10336 * gnu-v3-abi.c: Update copyright.
10337 (vtable_address_point_offset): Update.
10338 (gnuv3_rtti_type): Update.
10339 (gnuv3_baseclass_offset): Update.
10340 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10341 (init_fetch_link_map_offsets): Update.
10342 * remote.c (get_remote_state): Update.
10343
10344 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * TODO: Remove value_headof/value_from_vtable_info comment.
10347 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10348 * values.c (value_headof, value_from_vtable_info): Delete.
10349 * value.h (value_from_vtable_info): Delete prototype.
10350
10351 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10352
10353 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10354 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10355 $(gdb_regex_h).
10356 (gdb_assert_h): Define.
10357 (gdb_wait_h): Define.
10358 (gdb_regex_h): Define.
10359
10360 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10361
10362 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10363 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10364
10365 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10366
10367 * nbsd-tdep.c: Fix comment.
10368
10369 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10370
10371 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10372 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10373 (nbsd-tdep.o): New dependency list.
10374 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10375 nbsd-tdep.h.
10376 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10377 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10378 * nbsd-tdep.c: New file.
10379 * nbsd-tdep.h: New file.
10380 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10381 nbsd-tdep.h.
10382 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10383 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10384 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10385 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10386
10387 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10388
10389 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10390 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10391 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10392 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10393 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10394 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10395
10396 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10397
10398 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10399 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10400 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10401 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10402 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10403 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10404 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10405
10406 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10407
10408 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10409 fetch_elfcore_registers to...
10410 * i386nbsd-tdep.c: ...here.
10411 (i386nbsd_use_struct_convention): Rename to...
10412 (i386nbsd_aout_use_struct_convention): ...this.
10413 (i386nbsd_supply_reg): New function.
10414 (i386nbsd_fill_reg): New function.
10415 (fetch_core_registers): Use i386nbsd_supply_reg.
10416 (fetch_elfcore_registers): Likewise.
10417 (_initialize_i386nbsd_tdep): New function.
10418 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10419 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10420 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10421 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10422 (i386nbsd_aout_use_struct_convention): ...this.
10423
10424 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10425
10426 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10427 (store_inferior_registers): Use shnbsd_fill_reg.
10428 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10429 sh_nbsd_supply_register): Collapse into...
10430 (shnbsd_supply_reg): ...this.
10431 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10432 (shnbsd_fill_reg): ...this.
10433 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10434 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10435 (fetch_core_registers): Use shnbsd_supply_reg.
10436 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10437 (sh_nbsd_core_fns): Rename to...
10438 (shnbsd_core_fns): ...this.
10439 (sh_nbsd_elfcore_fns): Rename to...
10440 (shnbsd_elfcore_fns): ...this.
10441 (sh_nbsd_init_abi): Rename to...
10442 (shnbsd_init_abi): ...this.
10443 (_initialize_sh_nbsd_tdep): Rename to...
10444 (_initialize_shnbsd_tdep): ...this.
10445 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10446 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10447 sh_nbsd_fill_register): Remove prototypes.
10448 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10449
10450 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10451
10452 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10453 (i387-nat.o): Delete dependency list.
10454 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10455 (x86-64-linux-nat.o): Likewise.
10456 * i387-nat.c: Delete file, moving contents to...
10457 * i387-tdep.c: ...here.
10458 * i387-nat.h: Rename...
10459 * i387-tdep.h: ...to this.
10460 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10461 * i386-linux-nat.c: Likewise.
10462 * i386bsd-nat.c: Likewise.
10463 * i386gnu-nat.c: Likewise.
10464 * i386nbsd-nat.c: Likewise.
10465 * i386v4-nat.c: Likewise.
10466 * x86-64-linux-nat.c: Likewise.
10467 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10468 * config/i386/go32.mh (NATDEPFILES): Likewise.
10469 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10470 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10471 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10472 * config/i386/linux.mh (NATDEPFILES): Likewise.
10473 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10474 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10475 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10476 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10477
10478 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10479
10480 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10481 (alphanbsd-nat.o): Remove dependency list.
10482 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10483 * alphanbsd-nat.c: Delete. Contents moved to...
10484 * alphanbsd-tdep.c: ...here.
10485 (_initialize_alphanbsd_tdep): Register core functions.
10486 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10487
10488 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10489
10490 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10491 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10492 (alphanbsd-nat.o): Likewise.
10493 (alphabsd-tdep.o): New dependency list.
10494 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10495 (fill_gregset): Use alphabsd_fill_reg.
10496 (supply_fpregset): Use alphabsd_supply_fpreg.
10497 (fill_fpregset): Use alphabsd_fill_fpreg.
10498 (fetch_inferior_registers): Use struct reg and struct fpreg
10499 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10500 and alphabsd_supply_fpreg.
10501 (store_inferior_registers): Use struct reg and struct fpreg
10502 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10503 and alphabsd_fill_fpreg.
10504 * alphabsd-tdep.c: New file.
10505 * alphabsd-tdep.h: New file.
10506 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10507 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10508 alphabsd_supply_fpreg.
10509 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10510 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10511
10512 2002-05-11 Eric Christopher <echristo@redhat.com>
10513
10514 * mips-tdep.c (mips_double_register_type): Fix thinko.
10515 (mips_single_register_type): Ditto.
10516 * MAINTAINERS: Add self.
10517
10518 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10519
10520 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10521 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10522 right thing on architectures with different endianness and/or
10523 integer sizes.
10524
10525 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10526
10527 From Christian Limpach <chris@Pin.LU>
10528 * configure.in: Change sed expression which comments out
10529 NATDEPFILES to also comment out continuation lines.
10530 * configure: Regenerate.
10531
10532 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10533
10534 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10535 big patch.
10536
10537 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10538
10539 * sh-tdep.c: Include correct file.
10540
10541 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10542
10543 New support for sh64-elf (sh5) target.
10544
10545 * configure.tgt: For sh64-elf target, default to sh-elf.
10546
10547 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10548 (struct gdbarch_tdep): Add new fields for new registers and ABI
10549 info.
10550
10551 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10552 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10553 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10554 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10555 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10556 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10557 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10558 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10559 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10560 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10561 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10562 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10563 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10564 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10565 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10566 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10567 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10568 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10569 sign_extend, sh64_nofp_frame_init_saved_regs,
10570 sh64_init_extra_frame_info, sh64_get_saved_register,
10571 sh64_extract_struct_value_address, sh64_pop_frame,
10572 sh64_push_arguments, sh64_extract_return_value,
10573 sh64_store_return_value, sh64_show_media_regs,
10574 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10575 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10576 sh_sh64_register_virtual_type,
10577 sh_sh64_register_convert_to_virtual,
10578 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10579 sh64_register_read, sh64_pseudo_register_write,
10580 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10581 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10582 sh64_do_pseudo_register, sh_compact_do_registers_info,
10583 sh64_do_registers_info, sh_gdbarch_init): New functions.
10584
10585 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10586
10587 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10588
10589 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10590
10591 * linespec.c (decode_line_1): Check for a double quote after
10592 a filename correctly.
10593
10594 2002-05-10 Jim Blandy <jimb@redhat.com>
10595
10596 Properly track the size of the current objfile's .debug_line section.
10597 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10598 (DWARF_LINE_SIZE): New macro.
10599 (dwarf2_build_psymtabs_hard): Record the line section's size in
10600 the partial symbol table.
10601 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10602 symbol table.
10603
10604 2002-05-10 Petr Sorfa <petrs@caldera.com>
10605
10606 * ia64-tdep.c: Handle breakpoints on L instruction type
10607 in MLX instruction bundle by moving the breakpoint to
10608 the third slot (X instruction type) as L holds only data.
10609
10610 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10611
10612 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10613 (process_one_symbol): Complain about discarding local symbols
10614 due to a misplaced N_LBRAC entry.
10615
10616 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10617
10618 From Daniel Berlin <dan@cgsoftware.com>
10619 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10620 decrease the depth we are at, in the case of templates.
10621
10622 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10623
10624 * mips-tdep.c (mips_float_register_type): New function.
10625 (mips_double_register_type): New function.
10626 (mips_print_register): Use them.
10627 (do_fp_register_row): Likewise.
10628
10629 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10630
10631 * signals/signals.c (signals): Remove conditional compilation around
10632 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10633 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10634
10635 2002-05-09 Michael Snyder <msnyder@redhat.com>
10636
10637 * remote-rdp.c (remote_rdp_can_run): Remove.
10638
10639 2002-05-09 Tom Tromey <tromey@redhat.com>
10640
10641 * jv-valprint.c (java_val_print): Handle `char' as a special case
10642 of TYPE_CODE_INT.
10643
10644 2002-05-09 Michael Snyder <msnyder@redhat.com>
10645
10646 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10647 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10648 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10649 str r(0123),[sp,#nn].
10650 (arm_skip_prologue): Ditto. Also make disassembly
10651 order-independent by placing it in a loop.
10652
10653 2002-05-06 Michael Snyder <msnyder@redhat.com>
10654
10655 * stabsread.c (read_type): Add recognition for new attribute:
10656 "@V;" means that an array type is actually a vector.
10657 This is analogous to the vector flag that's been added to dwarf2.
10658
10659 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10660
10661 * i386-tdep.h (i386_abi): New enum.
10662 (struct gdbarch_tdep): Replace os_ident member with abi.
10663 (i386_gdbarch_register_os_abi): New prototype.
10664 * i386-tdep.c (i386_abi_names): New array.
10665 (process_note_abi_tag_sections): Removed.
10666 (process_note_sections): New function.
10667 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10668 (struct i386_abi_handler): New struct.
10669 (i386_abi_handler_list): New variable.
10670 (i386_gdbarch_register_os_abi): New function.
10671 (i386_gdbarch_init): Adapt for the changes given above.
10672
10673 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10674
10675 * gregset.h: Say "GNU/Linux".
10676
10677 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10678
10679 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10680 (build_gdbtypes): Build builtin_type_v2_float.
10681 (_initialize_gdbtypes): Register new builtin type.
10682
10683 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10684
10685 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10686 (clear_gdbarch_swap): New function.
10687 (initialize_non_multiarch): Call.
10688 (gdbarch_update_p): Before calling init(), swap out and clear the
10689 existing architecture.
10690 * gdbarch.c: Regenerate.
10691
10692 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10693
10694 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10695 alphanbsd-tdep.c.
10696
10697 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10698
10699 * sh-nbsd-nat.c: Rename to...
10700 * shnbsd-nat.c: ...this.
10701 * sh-nbsd-tdep.c: Rename to...
10702 * shnbsd-tdep.c: ...this.
10703 * sh-nbsd-tdep.h: Rename to...
10704 * shnbsd-tdep.h: ...this.
10705 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10706 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10707
10708 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10709
10710 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10711 concatenation for command help messages.
10712
10713 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10714
10715 * NEWS: Note new sh*-*-netbsdelf* configuration.
10716 * configure.host: Set gdb_host_cpu to sh for all sh*.
10717 (sh*-*-netbsdelf*): New host.
10718 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10719 (sh*-*-netbsdelf*): New target.
10720 * sh-nbsd-nat.c: New file.
10721 * sh-nbsd-tdep.c: New file.
10722 * sh-nbsd-tdep.h: New file.
10723 * config/sh/nbsd.mh: New file.
10724 * config/sh/nbsd.mt: New file.
10725 * config/sh/nm-nbsd.h: New file.
10726 * config/sh/tm-nbsd.h: New file.
10727
10728 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10729
10730 * sh-tdep.c (sh_osabi_names): Declare.
10731 (process_note_abi_tag_sections): New function.
10732 (get_elfosabi): Ditto.
10733 (sh_gdbarch_register_os_abi): Ditto.
10734 (sh_dump_tdep): Ditto.
10735 _initialize_sh_tdep): Use gdbarch_register to register
10736 sh_gdbarch_init and sh_dump_tdep.
10737 * config/sh/tm-sh.h (sh_osabi): Declare.
10738 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10739
10740 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10741
10742 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10743 (thumb_scan_prologue): Ditto.
10744 (arm_find_callers_reg): Ditto.
10745 (arm_frame_chain): Ditto.
10746 (arm_init_extra_frame_info): Ditto.
10747 (arm_frame_saved_pc): Ditto.
10748 (arm_pop_frame): Ditto.
10749 (arm_push_return_address): New function.
10750 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10751 call_dummy_location, call_dummy_breakpoint_offset_p,
10752 call_dummy_breakpoint_offset, call_dummy_p,
10753 call_dummy_stack_adjust_p, call_dummy_words,
10754 sizeof_call_dummy_words, call_dummy_start_offset,
10755 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10756 call_dummy_address, push_return_address and push_dummy_frame for
10757 generic dummy frames.
10758
10759 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10760
10761 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10762 size computation for alloca.
10763 (sh_fp_frame_init_saved_regs): Likewise.
10764
10765 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10766
10767 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10768 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10769 * arm-tdep.c (arm_store_return_value): Use them.
10770 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10771 * remote-rdp.c (remote_rdp_fetch_register): Use
10772 ARM_MAX_REGISTER_RAW_SIZE.
10773 (remote_rdp_store_register): Likewise.
10774
10775 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10776
10777 * dwarf2cfi.c: Code cleanup, removed unused variables,
10778 added default labels to switch {} statements.
10779 * x86-64-tdep.c: Ditto.
10780 * x86-64-linux-nat.c: Ditto.
10781
10782 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10783
10784 * solib.h: Protect against multiple inclusion.
10785
10786 2002-05-06 Jim Blandy <jimb@redhat.com>
10787
10788 Add first preprocessor macro-expansion files.
10789 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10790 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10791 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10792 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10793 (COMMON_OBS): Add macrotab.o, macroexp.o.
10794 (macroexp.o, macrotab.o): New rules.
10795
10796 Separate the job of reading the line number info statement program
10797 header (...expialidocious) out into its own function.
10798 * dwarf2read.c (struct line_head, struct filenames, struct
10799 directories): Replace with...
10800 (struct line_header): New structure, containing the full
10801 contents of the statement program header, including the
10802 include directory and file name tables.
10803 (read_file_scope): If we have line number info, instead of just
10804 calling dwarf_decode_lines to do all the work, call
10805 dwarf_decode_line_header first to get a `struct line_header'
10806 containing the data in the statement program header, and then
10807 pass that to dwarf_decode_lines, which will pick up where that
10808 left off. Be sure to clean up the `struct line_header' object.
10809 (dwarf_decode_line_header, free_line_header, add_include_dir,
10810 add_file_name): New functions.
10811 (dwarf_decode_lines): Move all the code to read the statement
10812 program header into dwarf_decode_line_header. Take the line
10813 header it built as the first argument, instead of the offset to
10814 the compilation unit's line number info. Use the new `struct
10815 line_header' type instead of the old structures. No need to do
10816 cleanups here now, since we don't allocate anything.
10817 (dwarf2_statement_list_fits_in_line_number_section,
10818 dwarf2_line_header_too_long): New complaints.
10819
10820 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10821
10822 * gdbtypes.c (init_vector_type): New function.
10823 (build_builtin_type_vec128): Simplify the representation of SIMD
10824 registers.
10825 (build_gdbtypes): Initialize new builtin vector types.
10826 (_initialize_gdbtypes): Register new vector types with gdbarch.
10827 (builtin_type_v4_float, builtin_type_v4_int32,
10828 builtin_type_v8_int16, builtin_type_v16_int8,
10829 builtin_type_v2_int32, builtin_type_v4_int16,
10830 builtin_type_v8_int8): New (renamed) SIMD types.
10831
10832 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10833
10834 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10835 (i387_fill_fxsave): Likewise.
10836
10837 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10838
10839 * alpha-tdep.c (alpha_extract_return_value): Don't use
10840 non-constant array size in prototype.
10841
10842 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10843
10844 From Brian Taylor <briant at model dot com>:
10845 * ui-out.c (ui_out_field_core_addr): Use the function
10846 longest_local_hex_string_custom'to format addresses > 32 bits
10847 wide.
10848
10849 * ui-out.c (ui_out_field_core_addr): Update comment.
10850
10851 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10852
10853 * stack.c (select_and_print_frame): Make static. Delete the
10854 parameter `level'.
10855 (func_command): Update call.
10856 (select_frame_command): Delete code computing the frame level.
10857 * frame.h (select_and_print_frame): Delete declaration.
10858
10859 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10860
10861 * sparc-tdep.c (sparc_get_saved_register): Comment why
10862 get_prev_frame call is safe.
10863
10864 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10865
10866 * frame.h (select_frame): Delete level parameter.
10867 * stack.c (select_frame): Update. Use frame_relative_level to
10868 obtain the frame's level.
10869 (select_and_print_frame): Update call.
10870 (select_frame_command): Ditto.
10871 (up_silently_base): Ditto.
10872 (down_silently_base): Ditto.
10873 * ocd.c (ocd_start_remote): Ditto.
10874 * remote-rdp.c (remote_rdp_open): Ditto.
10875 * remote-mips.c (mips_initialize): Ditto.
10876 (common_open): Ditto.
10877 * remote-e7000.c (e7000_start_remote): Ditto.
10878 * m3-nat.c (select_thread): Ditto.
10879 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10880 (child_get_current_exception_event): Ditto.
10881 * varobj.c (varobj_create): Ditto.
10882 (varobj_update): Ditto.
10883 (c_value_of_root): Ditto.
10884 * tracepoint.c (finish_tfind_command): Ditto.
10885 * corelow.c (core_open): Ditto.
10886 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10887 * thread.c (info_threads_command): Ditto.
10888 (switch_to_thread): Ditto.
10889 * infrun.c (normal_stop): Ditto.
10890 (restore_selected_frame): Ditto.
10891 (restore_inferior_status): Ditto.
10892 * breakpoint.c (insert_breakpoints): Ditto.
10893 (watchpoint_check): Ditto.
10894 (bpstat_stop_status): Ditto.
10895 (do_enable_breakpoint): Ditto.
10896 * blockframe.c (flush_cached_frames): Ditto.
10897 (reinit_frame_cache): Ditto.
10898
10899 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10900
10901 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10902 maintainer.
10903
10904 2002-05-04 Jim Blandy <jimb@redhat.com>
10905
10906 * gdbtypes.c (replace_type): Doc fix.
10907
10908 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10909
10910 * valprint.c (strcat_longest): Delete commented out function.
10911 Update copyright.
10912
10913 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10914
10915 * MAINTAINERS: Mark a29k as deleted.
10916 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10917 Move new configurations to the top.
10918 * configure.tgt: Remove a29k.
10919 * config/a29k/tm-vx29k.h: Delete.
10920 * config/a29k/vx29k.mt: Delete.
10921 * config/a29k/tm-a29k.h: Delete.
10922 * config/a29k/a29k-udi.mt: Delete.
10923 * config/a29k/a29k.mt: Delete.
10924 * a29k-tdep.c: Delete.
10925 * remote-udi.c: Delete.
10926 * remote-mm.c: Delete.
10927 * remote-eb.c: Delete.
10928 * remote-adapt.c: Delete.
10929 * Makefile.in: Remove obsolete code.
10930 * config/s390/s390x.mt: Ditto.
10931 * config/s390/s390.mt: Ditto.
10932 * config/sparc/sparclynx.mh: Ditto.
10933 * config/sparc/linux.mh: Ditto.
10934 * config/pa/hppaosf.mh: Ditto.
10935 * config/pa/hppabsd.mh: Ditto.
10936 * config/ns32k/nbsd.mt: Ditto.
10937 * config/mips/vr5000.mt: Ditto.
10938 * config/m68k/sun3os4.mh: Ditto.
10939 * config/m68k/nbsd.mt: Ditto.
10940 * config/m68k/m68klynx.mh: Ditto.
10941 * config/m32r/m32r.mt: Ditto.
10942 * config/i386/x86-64linux.mt: Ditto.
10943 * config/i386/nbsdelf.mt: Ditto.
10944 * config/i386/nbsd.mt: Ditto.
10945 * config/i386/i386lynx.mh: Ditto.
10946
10947 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10948
10949 * target.c (debug_print_register): New function. Handle oversize
10950 registers.
10951 (debug_to_fetch_registers): Call.
10952 (debug_to_store_registers): Call.
10953
10954 2002-05-03 Jim Blandy <jimb@redhat.com>
10955
10956 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10957 (read_type): Doc fix.
10958 * gdbtypes.c (replace_type): Doc fix.
10959
10960 * stabsread.c (multiply_defined_struct): New complaint.
10961 (read_struct_type): If the type we were passed isn't empty, or
10962 incomplete, don't read the new struct type into it; complain,
10963 and return the original type unchanged. Take a new `type_code'
10964 argument, which is the type code for the new type.
10965 (read_type): Rather than storing the type's type code here, pass
10966 it as an argument to read_struct_type, and let that take care of
10967 storing it. That way, we don't overwrite the original type code,
10968 so read_struct_type can use it to decide whether we're overwriting
10969 something we shouldn't.
10970 (complain_about_struct_wipeout): New function.
10971
10972 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10973
10974 * gdbarch.sh: Assert that gdbarch is non-NULL.
10975 * gdbarch.c: Regenerate.
10976
10977 2002-05-03 Jason Merrill <jason@redhat.com>
10978
10979 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10980 and return NULL.
10981
10982 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10983
10984 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10985 (x86_64_dwarf2gdb_regno_map_length),
10986 (x86_64_dwarf2_reg_to_regnum): Added.
10987 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10988 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10989 (_initialize_x86_64_tdep): Synced with the change above.
10990 (x86_64_skip_prologue): Reformulated message.
10991
10992 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10993
10994 * f-exp.y: Also use new prev_lexptr variable
10995 to improve error reporting. Based on Michael Snyder
10996 2002-04-24 dated patch to c-exp.y.
10997 * jv-exp.y: Likewise.
10998 * m2-exp.y: Likewise.
10999
11000 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
11001
11002 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
11003 we are dealing with vectors.
11004
11005 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11006
11007 * config/m68k/tm-nbsd.h: Obvious fix,
11008 correct machine name.
11009
11010 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11011
11012 * p-typeprint.c (pascal_type_print_base): Add support
11013 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
11014
11015 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11016
11017 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
11018 for fondamental pascal 'char' type.
11019
11020 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
11021
11022 * p-lang.h (is_pascal_string_type): Declaration changed,
11023 new sixth argument of type char ** added.
11024 * p-lang.c (is_pascal_string_type): Implementation
11025 changed. Args length_pos, length_size, string_pos, char_size
11026 can now be NULL. New argument arrayname set to the field
11027 name of the char array. Return value set to char array
11028 field index plus one.
11029 * p-valprint.c (pascal_val_print): Adapt to new declaration of
11030 is_pascal_string_type function.
11031
11032 2002-05-02 Andrew Cagney <cagney@redhat.com>
11033
11034 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
11035 <cagney@redhat.com> change.
11036 * gdbarch.c: Regenerate.
11037
11038 2002-05-02 Andrew Cagney <cagney@redhat.com>
11039
11040 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
11041 before probing for a new one. Detect errorenous gdbarch_init
11042 functions.
11043 * gdbarch.c: Regenerate.
11044
11045 2002-05-01 Andrew Cagney <cagney@redhat.com>
11046
11047 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11048 * config/mcore/tm-mcore.h: Ditto. Update copyright.
11049 * config/v850/tm-v850.h: Ditto. Update copyright.
11050
11051 2002-04-30 Andrew Cagney <ac131313@redhat.com>
11052
11053 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11054 current_gdbarch.
11055
11056 2002-04-30 Michael Snyder <msnyder@redhat.com>
11057
11058 * arm-tdep.c: Whitespace clean-ups.
11059 (arm_skip_prologue): Fix thinko; two lines
11060 should have been removed as part of 4/24 change.
11061
11062 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11063
11064 * rs6000-tdep.c: Added comment describing how fpscr register
11065 numbers were chosen.
11066
11067 2002-04-30 Michael Snyder <msnyder@redhat.com>
11068
11069 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11070
11071 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11072
11073 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11074 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11075 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11076
11077 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11078
11079 From Louis Hamilton <hamilton@redhat.com>:
11080 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11081 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11082 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11083 not bfd-private xcoff data, to determine wordsize.
11084 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11085
11086 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11087
11088 GDB 5.2 released from 5.2 branch.
11089
11090 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11091
11092 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11093 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11094 (x86_64_register_info_table): Added comments with register numbers.
11095
11096 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11097
11098 * rs6000-tdep.c (rs6000_extract_return_value,
11099 rs6000_store_return_value): Handle returning vectors.
11100 (rs6000_gdbarch_init): Use
11101 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11102 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11103 New function.
11104 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11105 vectors.
11106 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11107 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11108
11109 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11110
11111 * hpread.c (hpread_psymtab_to_symtab_1,
11112 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11113 with fprintf_unfiltered (gdb_stderr,...).
11114
11115 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11116
11117 * remote-array.c (printf_monitor, write_monitor,
11118 array_insert_breakpoint, array_remove_breakpoint ):
11119 Replace fprintf (stderr,...
11120 with fprintf_unfiltered (gdb_stderr,....
11121 * remote-es.c: Likewise.
11122 * remote-os9k.c: Likewise.
11123 * remote-st.c: Likewise.
11124
11125 2002-04-28 Andreas Schwab <schwab@suse.de>
11126
11127 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11128 linux-proc.o and gcore.o.
11129
11130 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11131
11132 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11133 code without frame pointers.
11134
11135 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11136
11137 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11138 ON_STACK is needed.
11139
11140 2002-04-26 Ben Elliston <bje@redhat.com>
11141
11142 * target.c (do_xfer_memory): Correct reference to the new option
11143 "trust-readonly-sections".
11144
11145 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11146
11147 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11148 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11149 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11150 vectors.
11151 (read_array_type): Record the fact that this array type is really a
11152 vector (i.e. are passed in by value).
11153
11154 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11155
11156 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11157 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11158 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11159 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11160 * alpha-linux-tdep.c: Include frame.h.
11161 (alpha_linux_sigcontext_addr): New function.
11162 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11163 alpha_linux_sigcontext_addr.
11164 * alpha-osf1-tdep.c: Include gdbcore.h.
11165 (alpha_osf1_sigcontext_addr): New function.
11166 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11167 alpha_osf1_sigcontext_addr.
11168 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11169 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11170
11171 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11172
11173 * stack.c (selected_frame_level):
11174 (select_frame): Do not set selected_frame_level.
11175 * frame.h (selected_frame_level): Delete declaration.
11176
11177 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11178
11179 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11180 convert_from_func_ptr-addr when AIX / PowerOpen.
11181
11182 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11183
11184 * valops.c (hand_function_call): Call
11185 generic_save_call_dummy_addr.
11186 * frame.h (generic_save_call_dummy_addr): Declare.
11187 * blockframe.c (struct dummy_frame): Add fields call_lo and
11188 call_hi.
11189 (generic_find_dummy_frame): Check for PC in range call_lo to
11190 call_hi instead of entry_point_address.
11191 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11192 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11193 (generic_save_call_dummy_addr): New function.
11194
11195 2002-04-24 David S. Miller <davem@redhat.com>
11196
11197 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11198 sparc_skip_prologue.
11199 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11200 information to find prologue when possible.
11201 (sparc_prologue_frameless_p): Call examine_prologue directly.
11202 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11203 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11204 second argument.
11205 (SKIP_PROLOGUE): Likewise.
11206
11207 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11208
11209 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11210 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11211 indicate that the condition it was testing is always true.
11212 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11213 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11214 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11215
11216 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11217
11218 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11219 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11220 tdep->jb_pc and tdep->jb_elt_size.
11221 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11222 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11223 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11224 * alpha-nat.c (get_longjmp_target): Remove.
11225 (JB_ELEMENT_SIZE): Ditto.
11226 (JB_PC): Ditto.
11227 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11228 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11229 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11230 to alpha_get_longjmp_target.
11231 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11232 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11233 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11234
11235 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11236
11237 * README: Update to GDB 5.2.
11238
11239 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11240
11241 * gdbarch.sh (LC_ALL): Set to `c'.
11242
11243 2002-04-25 Theodore A. Roth <troth@verinet.com>
11244
11245 * avr-tdep.c: Ran through gdb_indent.sh.
11246
11247 2002-04-25 Theodore A. Roth <troth@verinet.com>
11248
11249 * MAINTAINERS: Add myself as AVR maintainer.
11250 * NEWS: Note new target avr.
11251
11252 2002-04-25 Theodore A. Roth <troth@verinet.com>
11253
11254 * Makefile.in: Add support for AVR target.
11255 * configure.tgt: Add support for AVR target.
11256 * avr-tdep.c: New file
11257 * config/avr/avr.mt: New file.
11258
11259 2002-04-25 Theodore A. Roth <troth@verinet.com>
11260
11261 * MAINTAINERS: Add myself to write-after-approval.
11262
11263 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11264
11265 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11266 with fprintf_unfiltered (gdb_stderr,....
11267
11268 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11269
11270 Fix PR gdb/508.
11271 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11272
11273 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11274
11275 * p-exp.y: Also use new prev_lexptr variable
11276 to improve error reporting. Based on Michael Snyder
11277 2002-04-24 dated patch to c-exp.y.
11278
11279 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11280
11281 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11282 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11283 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11284 to 0.
11285 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11286 and struct value.
11287 (FUNCTION_START_OFFSET): Remove.
11288 (BREAKPOINT): Ditto.
11289
11290 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11291
11292 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11293 * NEWS: Ditto.
11294
11295 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11296
11297 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11298 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11299 alpha_linux_pc_in_sigtramp.
11300 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11301 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11302 alpha_osf1_pc_in_sigtramp.
11303 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11304 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11305 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11306 alphafbsd_pc_in_sigtramp.
11307 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11308 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11309 alphanbsd_pc_in_sigtramp.
11310 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11311 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11312
11313 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11314
11315 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11316
11317 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11318
11319 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11320 alphanbsd-tdep.c.
11321 (alphanbsd-nat.o): New dependency list.
11322 (alphanbsd-tdep.o): Ditto.
11323 * NEWS: Note new native NetBSD/alpha configuration.
11324 * alphanbsd-nat.c: New file.
11325 * alphanbsd-tdep.c: Ditto.
11326 * configure.host (alpha*-*-netbsd*): New host.
11327 * configure.tgt (alpha*-*-netbsd*): New target.
11328 * config/alpha/nbsd.mh: New file.
11329 * config/alpha/nbsd.mt: Ditto.
11330 * config/alpha/nm-nbsd.h: Ditto.
11331 * config/alpha/tm-nbsd.h: Ditto.
11332
11333 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11334
11335 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11336 (alpha-osf1-tdep.o): New dependency list.
11337 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11338 and skip_sigtramp_frame members.
11339 * alpha-linux-tdep.c: Include gdbcore.h.
11340 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11341 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11342 * alpha-osf1-tdep.c: New file.
11343 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11344 alpha-osf1-dep.c.
11345 (alpha_frame_past_sigtramp_frame): New function.
11346 (alpha_dynamic_sigtramp_offset): Ditto.
11347 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11348 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11349 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11350 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11351 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11352 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11353 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11354 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11355 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11356 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11357 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11358 to find_solib_trampoline_target.
11359 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11360 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11361 (SKIP_TRAMPOLINE_CODE): Remove.
11362 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11363 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11364 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11365 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11366 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11367 (PROC_SIGTRAMP_MAGIC): Ditto.
11368 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11369 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11370 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11371 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11372 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11373
11374 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11375
11376 * NEWS: Note that Alpha targets are now multi-arch.
11377
11378 2002-04-24 Michael Snyder <msnyder@redhat.com>
11379
11380 * parser-defs.h (prev_lexptr): New external variable.
11381 * parse.c (parse_exp_1): Set prev_lexptr to null before
11382 calling the language-specific parser.
11383 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11384 (yyerror): Use prev_lexptr in error reporting.
11385
11386 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11389 * gregset.h: If FILL_FPXREGSET is defined, provide
11390 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11391 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11392 is defined, call fill_fpxregset.
11393
11394 2002-04-24 Roland McGrath <roland@frob.com>
11395
11396 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11397 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11398 (supply_gregset, supply_fpregset): New functions.
11399
11400 * gnu-nat.c (gnu_find_memory_regions): New function.
11401 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11402 (gnu_xfer_memory): Add a cast.
11403
11404 2002-04-24 Michael Snyder <msnyder@redhat.com>
11405
11406 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11407 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11408 of argument regs ("str r(0123), [r11, #-nn"]).
11409 (arm_skip_prologue): Better handling for frameless functions.
11410 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11411 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11412
11413 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11414
11415 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11416 NUM_PSEUDO_REGS can be used.
11417
11418 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11419
11420 * arch-utils.h: Update copyright.
11421
11422 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11423 * gdbarch.h, gdbarch.c: Re-generate.
11424
11425 * inferior.h (IN_SIGTRAMP): Delete definition.
11426 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11427 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11428
11429 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11430 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11431 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11432 (find_proc_framesize): Ditto.
11433 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11434 (alpha_init_extra_frame_info): Ditto.
11435 * infrun.c (handle_inferior_event): Ditto.
11436 (handle_inferior_event): Ditto.
11437 (check_sigtramp2): Ditto.
11438 * blockframe.c (create_new_frame): Ditto.
11439 (get_prev_frame): Ditto.
11440 * ppc-linux-tdep.c: Update comments.
11441 * i386-linux-tdep.c: Update comments.
11442 * breakpoint.c (bpstat_what): Update comment.
11443
11444 2002-04-24 David S. Miller <davem@redhat.com>
11445
11446 * i960-tdep.c (register_in_window_p): New function.
11447 (i960_find_saved_register): Use it instead of
11448 REGISTER_IN_WINDOW_P.
11449 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11450
11451 * symtab.h (find_stab_function_addr): Kill extern.
11452 * minsyms.c (find_stab_function_addr): Remove from here...
11453 * dbxread.c: ... to here, and mark it static.
11454
11455 2002-04-20 David S. Miller <davem@redhat.com>
11456
11457 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11458 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11459
11460 2002-04-21 David S. Miller <davem@redhat.com>
11461
11462 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11463 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11464 (vx_write_register): Likewise.
11465
11466 2002-04-23 J. Brobecker <brobecker@gnat.com>
11467
11468 * source.c (is_regular_file): New function.
11469 (openp): Check wether file to open is a regular file
11470 to avoid opening directories.
11471
11472 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11473
11474 * findvar.c (extract_signed_integer): Cast printf argument
11475 to suppress format warning.
11476 (extract_unsigned_integer): Likewise.
11477 * infcmd.c (registers_info): Likewise.
11478 * top.c (get_prompt_1): Likewise.
11479 * valops.c (value_assign): Likewise.
11480 * valprint.c (print_decimal): Likewise.
11481
11482 2002-04-22 H.J. Lu (hjl@gnu.org)
11483
11484 * c-exp.y (typebase): Support
11485
11486 [long|long long|short] [signed|unsigned] [int|]
11487
11488 and
11489
11490 signed [long|long long|short] int
11491
11492 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11493
11494 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11495 and vax-tdep.h.
11496 * vax-tdep.h: New file.
11497 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11498 Make several routines static.
11499 (vax_get_saved_register): New function.
11500 (vax_gdbarch_init): New function.
11501 (_initialize_vax_tdep): Register vax_gdbarch_init.
11502 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11503 Remove macros now under the control of gdbarch.
11504
11505 2002-04-22 Michael Snyder <msnyder@redhat.com>
11506
11507 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11508 Some whitespace and coding standards tweaks.
11509
11510 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11511
11512 * vax-tdep.c: Include regcache.h.
11513 (vax_call_dummy_words): New.
11514 (sizeof_vax_call_dummy_words): New.
11515 (vax_fix_call_dummy): New function.
11516 (vax_saved_pc_after_call): Ditto.
11517 * config/vax/tm-vax.h: Don't include regcache.h.
11518 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11519 (CALL_DUMMY): Remove.
11520 (CALL_DUMMY_WORDS): Define.
11521 (SIZEOF_CALL_DUMMY_WORDS): Define.
11522 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11523
11524 2002-04-18 Michael Snyder <msnyder@redhat.com>
11525
11526 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11527
11528 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11529
11530 * vax-tdep.c (vax_frame_chain): New function.
11531 (vax_push_dummy_frame): Ditto.
11532 (vax_pop_frame): Ditto.
11533 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11534 (FRAMELESS_FUNCTION_INVOCATION): Use
11535 generic_frameless_function_invocation_not.
11536 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11537 (POP_FRAME): Use vax_pop_frame.
11538
11539 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11540
11541 * vax-tdep.c (vax_store_struct_return): New function.
11542 (vax_extract_return_value): Ditto.
11543 (vax_store_return_value): Ditto.
11544 (vax_extract_struct_value_address): Ditto.
11545 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11546 vax_store_struct_return.
11547 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11548 (STORE_RETURN_VALUE): Use vax_store_return_value.
11549 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11550
11551 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11552
11553 * vax-tdep.c (vax_frame_saved_pc): New function.
11554 (vax_frame_args_address_correct): Ditto.
11555 (vax_frame_args_address): Ditto.
11556 (vax_frame_locals_address): Ditto.
11557 (vax_frame_num_args): Move code to be in proximity to
11558 other frame-related functions.
11559 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11560 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11561 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11562 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11563 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11564
11565 2002-04-22 H.J. Lu (hjl@gnu.org)
11566
11567 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11568 includedir.
11569
11570 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11571
11572 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11573 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11574 (FRAME_INIT_SAVED_REGS): New macro.
11575
11576 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11577
11578 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11579
11580 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11581
11582 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11583 where needed.
11584 (fetch_osf_core_registers): Likewise.
11585 (supply_gregset): Likewise.
11586
11587 2002-04-22 J. Brobecker <brobecker@gnat.com>
11588
11589 * symfile.h (get_section_index): Define.
11590 * symfile.c (get_section_index): New function.
11591 * mdebugread.c (SC_IS_SBSS): New macro.
11592 (SC_IS_BSS): Return true for the scBss storage class only, as
11593 the scSBss storage class refers to the .sbss section.
11594 (parse_partial_symbols): Discard the symbols which associated
11595 section does not exist.
11596 Make sure to use the .sbss section index for symbols which
11597 storage class is scBss, rather than using the .bss section index.
11598
11599 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11600
11601 * vax-tdep.c: Update copyright years.
11602 (vax_register_name): New function.
11603 (vax_register_byte): Ditto.
11604 (vax_register_raw_size): Ditto.
11605 (vax_register_virtual_size): Ditto.
11606 (vax_register_virtual_type): Ditto.
11607 * config/vax/tm-vax.h: Update copyright years.
11608 (REGISTER_NAMES): Remove.
11609 (REGISTER_NAME): Define.
11610 (REGISTER_BYTE): Use vax_register_byte.
11611 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11612 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11613 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11614
11615 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11616
11617 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11618 declaration
11619 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11620
11621 2002-04-21 David S. Miller <davem@redhat.com>
11622
11623 * arch-utils.c (generic_prologue_frameless_p): Kill
11624 SKIP_PROLOGUE_FRAMELESS_P code.
11625 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11626 references.
11627 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11628 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11629 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11630 references.
11631 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11632 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11633 (sparc_gdbarch_init): Pass it to
11634 set_gdbarch_prologue_frameless_p.
11635
11636 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11637
11638 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11639 (alphabsd-nat.o): New dependency list.
11640
11641 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11642
11643 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11644 alphafbsd-tdep.c.
11645 (alpha-linux-tdep.o): New dependency list.
11646 (alphafbsd-tdep.o): Likewise.
11647
11648 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11649
11650 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11651 to here...
11652 * alpha-tdep.c: ...from here.
11653 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11654
11655 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11656
11657 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11658 prototype from here...
11659 * alpha-tdep.h: ...to here.
11660
11661 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11662
11663 * frame.h (selected_frame_level): Document as deprecated.
11664 (frame_relative_level): Declare.
11665 * stack.c (frame_relative_level): New function.
11666 (selected_frame_level): Document as deprecated.
11667 (select_frame): Do not set the selected_frame_level.
11668
11669 * stack.c (frame_info, record_selected_frame): Update.
11670 (frame_command, current_frame_command): Update.
11671 (up_silently_base, up_command, down_silently_base): Update.
11672 (down_command): Update.
11673 * inflow.c (kill_command): Update.
11674 * tracepoint.c (finish_tfind_command): Update.
11675 * corelow.c (core_open): Update.
11676 * thread.c (info_threads_command): Update.
11677 (do_captured_thread_select): Update.
11678 * infcmd.c (finish_command): Update.
11679 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11680
11681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11682
11683 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11684
11685 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11686
11687 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11688 type const.
11689
11690 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11691
11692 * alphafbsd-tdep.c: Update copyright years. Include
11693 alpha-tdep.h.
11694 (alphafbsd_use_struct_convention): Make static.
11695 (alphafbsd_init_abi): New function.
11696 (_initialize_alphafbsd_tdep): New function.
11697 * config/alpha/tm-fbsd.h: Update copyright years.
11698 (USE_STRUCT_CONVENTION): Remove.
11699
11700 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11701
11702 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11703 an Alpha ABI variant.
11704 (alpha_abi_handler_list): Declare.
11705 (alpha_gdbarch_register_os_abi): New function.
11706 (alpha_gdbarch_init): Give registered ABI variant handlers a
11707 chance to tweak the gdbarch once we have set up defaults.
11708 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11709
11710 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11711
11712 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11713 to standard_coerce_float_to_double.
11714 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11715
11716 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11717
11718 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11719 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11720 from gdbarch_tdep rather than a constant.
11721 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11722 the default text address for all Alpha Unix ABIs.
11723 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11724 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11725
11726 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11727
11728 * alpha-tdep.h: New file. Includes several Alpha target constants
11729 taken from...
11730 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11731 let gdbarch deal with.
11732 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11733 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11734 to dependency list.
11735 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11736 Alpha target register names.
11737 * alphabsd-nat.c: Likewise.
11738 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11739 Alpha target register names. Make serveral routines static.
11740 (alpha_get_saved_register): New function.
11741 (alpha_abi_names): New.
11742 (process_note_abi_tag_sections): New function.
11743 (get_elfosabi): New function.
11744 (alpha_gdbarch_init): New function.
11745 (alpha_dump_tdep): New function.
11746 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11747
11748 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11749
11750 * frame.c (find_saved_register): Delete #ifdef
11751 HAVE_REGISTER_WINDOWS code.
11752 * config/sparc/tm-sparc.h: Update comments.
11753 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11754
11755 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11756
11757 * i960-tdep.c (i960_find_saved_register): New function.
11758 (i960_get_saved_register): New function.
11759 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11760 (i960_get_saved_register): Declare.
11761 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11762
11763 2002-04-20 David S. Miller <davem@redhat.com>
11764
11765 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11766
11767 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11768
11769 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11770 instead of NUM_PSEUDO_REGS.
11771
11772 2002-04-20 David S. Miller <davem@redhat.com>
11773
11774 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11775 GDB_MULTI_ARCH_PARTIAL
11776 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11777 define, let tm-sp64.h do it.
11778
11779 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11780
11781 * frame.c (find_saved_register): Avoid a NULL pointer
11782 dereference and actually walk the frame list.
11783
11784 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11785
11786 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11787 sorted in most most-recent-used order. Document.
11788 * gdbarch.h, gdbarch.c: Regenerate.
11789
11790 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11791
11792 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11793 instead of ->prev.
11794 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11795 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11796 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11797 instead of ->prev.
11798
11799 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11800
11801 Fix PR gdb/471.
11802 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11803 (build_builtin_type_vec128): Ditto.
11804 (append_composite_type_field): Fix calculation of type length in
11805 union case.
11806
11807 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11808
11809 * config/djgpp/README: Update.
11810
11811 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11812 compiler warnings.
11813
11814 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11815
11816 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11817 (alpha_setup_arbitrary_frame): ...to this.
11818 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11819 for alpha_setup_arbitrary_frame.
11820
11821 2002-04-18 Andrew Cagney <cagney@redhat.com>
11822
11823 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11824 * gdbarch.h, gdbarch.c: Regenerate.
11825
11826 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11827 * target.h (memory_breakpoint_from_pc): Update declaration.
11828 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11829
11830 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11831 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11832 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11833 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11834 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11835 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11836 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11837 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11838 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11839 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11840 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11841 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11842
11843 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11844 const pointer.
11845 * monitor.c (monitor_insert_breakpoint): Ditto.
11846 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11847
11848 * config/mcore/tm-mcore.h: Update copyright.
11849 * mem-break.c: Ditto.
11850 * xstormy16-tdep.c: Ditto.
11851
11852 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11853
11854 * p-exp.y: Add precedence rule for '^' token.
11855 This removes the shift/reduce conflicts.
11856 Remove the comment concerning these shift/reduce conflicts.
11857
11858 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11859
11860 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11861 (registers_powerpc_nofp): New register set for processors
11862 without floating point unit.
11863
11864 2002-04-18 David S. Miller <davem@redhat.com>
11865
11866 * MAINTAINERS: Add myself to write-after-approval.
11867
11868 2002-04-17 Michael Snyder <msnyder@redhat.com>
11869
11870 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11871
11872 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11873
11874 * rs6000-tdep.c (frame_initial_stack_address): Use
11875 frame_register_read to read the alloca_reg.
11876
11877 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11878
11879 * frame.c (find_saved_register): Find saved registers in the next
11880 not prev frame.
11881 Fix PR gdb/365.
11882
11883 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11884
11885 * gdbarch.sh (LANG): Set to ``c''.
11886
11887 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11888
11889 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11890
11891 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11892
11893 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11894 Update copyright.
11895
11896 * hpread.c (hpread_get_lntt): Add declaration.
11897 Also fix PR gdb/391.
11898
11899 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11900
11901 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11902 * aclocal.m4, configure: Re-generate.
11903 Fix PR gdb/391.
11904
11905 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11906
11907 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11908 instead of tm_print_insn.
11909
11910 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11911
11912 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11913
11914 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11915
11916 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11917 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11918 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11919
11920 2002-04-12 Don Howard <dhoward@redhat.com>
11921
11922 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11923 max_user_call_depth.
11924 (init_cmd_lists): Initialize the new value;
11925 * cli/cli-script.c (execute_user_command): Limit the call depth of
11926 user defined commands. This avoids a core-dump when user commands
11927 are infinitly recursive.
11928
11929 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11930
11931 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11932 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11933 from tdep struct instead of DEFAULT_LR_SAVE.
11934 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11935 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11936 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11937
11938 2002-04-12 Michael Snyder <msnyder@redhat.com>
11939
11940 * Remote.c: Spelling fix.
11941 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11942 If no symbol found for "sbrk", try "_sbrk".
11943 (make_output_phdrs): Use bfd_section_name.
11944 (gcore_copy_callback): Use bfd_section_name.
11945 * eval.c: Indentation fix-ups.
11946 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11947 in case it gets applied to an address that is already
11948 in the instruction space.
11949 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11950 * symfile.c: Fix indentation, long lines.
11951 * source.c: White space fix-up.
11952
11953 2002-04-12 Andrew Cagney <cagney@redhat.com>
11954
11955 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11956 * frame.c (frame_register_read): New function. Return non-zero on
11957 success.
11958 (read_relative_register_raw_bytes_for_frame): Delete.
11959 (read_relative_register_raw_bytes): Delete.
11960 * frame.h (frame_register_read): Declare.
11961 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11962 * sh-tdep.c: Ditto.
11963 * infcmd.c (do_registers_info): Ditto.
11964 * hppa-tdep.c: Ditto.
11965 * rs6000-tdep.c: Ditto.
11966 * h8500-tdep.c: Ditto.
11967 * mips-tdep.c: Ditto.
11968 * h8300-tdep.c: Ditto.
11969 * z8k-tdep.c: Ditto.
11970
11971 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11972
11973 From Jimi X <jimix@watson.ibm.com>:
11974 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11975 64-bit SysV ABI.
11976
11977 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11978
11979 From Jimi X <jimix@watson.ibm.com>:
11980 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11981 bfd info.
11982
11983 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11984
11985 From Jimi X <jimix@watson.ibm.com>:
11986 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11987 register sets for these processor variants.
11988
11989 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11990
11991 * regformats/reg-ppc.dat: Support FPSCR.
11992
11993 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11994
11995 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11996 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11997 Add fpscr as an invalid/unfetchable register.
11998 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11999 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
12000 (fill_fpregset): Add support for register fpscr.
12001 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
12002 (fill_gregset): Account for the fact that register ``mq'' might
12003 not exist.
12004 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
12005 (registers_power): Add fpscr to register set at slot 71.
12006 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
12007 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
12008
12009 2002-04-11 Michael Snyder <msnyder@redhat.com>
12010
12011 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
12012 * configure: Regenerate.
12013 * config.in: Regenerate.
12014 * acconfig.h: Add define for _SYSCALL32.
12015 * core-sol2.c: Remove #define _SYSCALL32.
12016 * solib-legacy.c: Remove #define _SYSCALL32.
12017
12018 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12019
12020 * stack.c (select_frame): Cleanup internal error message, do not
12021 use %p.
12022
12023 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12024
12025 * stack.c (select_frame): Check that selected_frame and the
12026 specified level are as expected.
12027 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
12028 Update copyright.
12029 * frame.h (struct frame_info): Add field `level'. Update
12030 copyright.
12031 Work-in-progress PR gdb/464.
12032
12033 2002-04-10 Andrew Cagney <ac131313@redhat.com>
12034
12035 * maint.c (maint_print_section_info): Rename print_section_info.
12036 (print_bfd_section_info, print_objfile_section_info): Update.
12037 * inferior.h (struct gdbarch): Add opaque declaration.
12038 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
12039 * gdbarch.h: Regenerate.
12040
12041 2002-04-10 Michal Ludvig <mludvig@suse.cz>
12042
12043 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
12044 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
12045 (kernel_u_size): Added.
12046 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12047 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12048
12049 2002-04-04 Jim Ingham <jingham@apple.com>
12050
12051 * valarith.c (find_size_for_pointer_math): New function, either returns
12052 the size for a pointer's target, returns 1 for void *, or errors for
12053 incomplete types.
12054 (value_add, value_sub): use find_size_for_pointer_math.
12055
12056 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12057
12058 * linux-low.c (linux_look_up_symbols): New hook.
12059 (linux_target_ops): Add linux_look_up_symbols.
12060 * remote-utils.c (decode_address): New function.
12061 (look_up_one_symbol): New function.
12062 * server.c (handle_query): Call target look_up_symbols hook.
12063 * server.h (look_up_one_symbol): Add prototype.
12064 * target.h (struct target_ops): Add look_up_symbols hook.
12065
12066 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12067
12068 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12069 override FP_REGNUM with frame->fp. Update copyright.
12070 * parse.c (num_std_regs, std_regs): Delete.
12071 (target_map_name_to_register): Do not search std_regs. Update
12072 function description.
12073 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12074 declarations. Update copyright.
12075 Fix PR gdb/251.
12076
12077 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12078
12079 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12080 after the last symbol in a block.
12081
12082 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12083
12084 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12085 is non zero as a found symbol.
12086
12087 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12088
12089 * findvar.c: Include "builtin-regs.h".
12090 (value_of_register): Call value_of_builtin_reg when applicable.
12091 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12092 (target_map_name_to_register): Call
12093 builtin_reg_map_name_to_regnum.
12094 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12095 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12096 (builtin_regs_h): Define.
12097 (builtin-regs.o): New target.
12098 (findvar.o): Add $(builtin_regs_h).
12099 * builtin-regs.c, builtin-regs.h: New files.
12100 * std-regs.c: New file.
12101 Partial fix for PR gdb/251.
12102
12103 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12104
12105 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12106 it's no longer required.
12107
12108 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12109
12110 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12111
12112 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12113
12114 From Jimi X <jimix@watson.ibm.com>:
12115 * rs6000-tdep.c (rs6000_software_single_step): Use
12116 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12117 and size. Use target_insert_breakpoint() and
12118 target_remove_breakpoint() to insert and remove breakpoints
12119 instead of explicit memory reads and writes.
12120
12121 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12122
12123 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12124 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12125 ELF_OBJECT_FORMAT ifdef.
12126
12127 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12128
12129 From Jimi X <jimix@watson.ibm.com>:
12130 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12131
12132 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12133
12134 From Jimi X <jimix@watson.ibm.com>:
12135 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12136 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12137
12138 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12139
12140 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12141 s/asprintf/xasprintf/.
12142 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12143
12144 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12145
12146 I believe Jeff Law denies responsability for this one:
12147 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12148 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12149 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12150 Work-around for PR gdb/366.
12151
12152 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12153
12154 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12155 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12156 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12157
12158 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12159
12160 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12161 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12162 information.
12163
12164 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12165
12166 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12167 maintainer.
12168
12169 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12170
12171 * README (Reporting Bugs in GDB): Document the bug web page as the
12172 prefered way of submitting bugs.
12173 Fix PR gdb/402.
12174
12175 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12176
12177 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12178 -1. Update comment.
12179 * gdbarch.h, gdbarch.c: Re-generate.
12180
12181 2002-04-07 Andreas Schwab <schwab@suse.de>
12182
12183 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12184 buffer to regcache_collect.
12185
12186 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12187
12188 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12189 * gdbarch.c, gdbarch.h: Re-generate.
12190
12191 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12192
12193 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12194 declaration. Fix -Werror.
12195
12196 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12197
12198 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12199 * gdbarch.c: Regenerate.
12200
12201 2002-04-05 Michael Snyder <msnyder@redhat.com>
12202
12203 * breakpoint.c (clear_command): Rewrite middle section to
12204 combine two loops with identical control conditions.
12205 Add a cleanup to eliminate a memory leak.
12206 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12207
12208 2002-04-05 H.J. Lu (hjl@gnu.org)
12209
12210 * solib-svr4.c (bkpt_names): Add "__start".
12211
12212 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12213
12214 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12215 as test for 64 bit target.
12216
12217 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12218
12219 * h8500-tdep.c (h8500_write_fp): Delete function.
12220 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12221 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12222 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12224 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12225 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12226 (s390_write_fp):
12227 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12228 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12229 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12230 (d10v_write_fp): Delete function.
12231 * inferior.h (write_fp, generic_target_write_fp): Delete
12232 declarations.
12233 * regcache.c (generic_target_write_fp): Delete function.
12234 (write_fp): Delete function.
12235 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12236 * gdbarch.h, gdbarch.c: Regenerate.
12237 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12238 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12239 (sparc64_write_fp): Delete declaration.
12240 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12241 (h8500_write_fp): Delete declaration.
12242
12243 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12244
12245 * sparc-tdep.c (sparc64_write_fp): Delete.
12246 (sparc_push_dummy_frame): Replace write_fp call with code to store
12247 the FP directly.
12248 (sparc_gdbarch_init): Do not initialize write_fp.
12249
12250 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12251
12252 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12253 clause.
12254
12255 2002-03-29 Jim Blandy <jimb@redhat.com>
12256
12257 * stack.c (get_selected_block): Add new argument `addr_in_block',
12258 used to return the exact code address we used to select the block,
12259 not just the block.
12260 * blockframe.c (get_frame_block, get_current_block): Same.
12261 * frame.h (get_frame_block, get_current_block,
12262 get_selected_block): Update declarations.
12263 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12264 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12265
12266 2002-04-05 Michael Snyder <msnyder@redhat.com>
12267
12268 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12269 warning message.
12270
12271 2002-04-05 J. Brobecker <brobecker@gnat.com>
12272
12273 * utils.c (xfullpath): New function.
12274 * defs.h (xfullpath): Add declaration.
12275 * source.c (openp): Use xfullpath in place of gdb_realpath to
12276 avoid resolving the basename part of filenames when the
12277 associated file is a symbolic link. This fixes a potential
12278 inconsistency between the filenames known to GDB and the
12279 filenames it prints in the annotations.
12280 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12281 to be able to match a filename with either the real filename, or
12282 the name of any symbolic link to this file.
12283 (lookup_partial_symtab): Ditto.
12284
12285 2002-04-04 Michael Snyder <msnyder@redhat.com>
12286
12287 * breakpoint.c: Add support for hardware breakpoints in overlays.
12288 (overlay_events_enabled): New state variable.
12289 (insert_breakpoints): Use overlay_events_enabled to decide
12290 whether to attempt to set a breakpoint at the overlay load addr.
12291 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12292 (remove_breakpoint): Use overlay_events_enabled to decide
12293 whether breakpoints need to be removed from overlay load addr.
12294 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12295 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12296 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12297 disable_overlay_breakpoints): Update overlay_events_enabled.
12298
12299 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12300
12301 * dwarf2read.c (struct function_range): New.
12302 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12303 (check_cu_functions): New.
12304 (read_file_scope): Initialize global function lists.
12305 Call dwarf_decode_line after processing children.
12306 (read_func_scope): Add to global function list.
12307 (dwarf_decode_lines): Call check_cu_functions everywhere
12308 record_line is called. Call record_line with a linenumber
12309 of 0 to mark sequence ends.
12310
12311 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12312
12313 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12314 change sync with glibc.
12315
12316 2002-04-03 Jim Blandy <jimb@redhat.com>
12317
12318 * configure.in: Call AC_C_INLINE.
12319 * configure: Regenerated.
12320
12321 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12322
12323 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12324 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12325
12326 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12327
12328 * NEWS: Mention gcore support on FreeBSD/i386.
12329
12330 * fbsd-proc.c: New file.
12331 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12332 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12333
12334 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12335 while statement.
12336
12337 2002-03-29 Jim Blandy <jimb@redhat.com>
12338
12339 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12340 unescaped newlines in string literals, but newer ones don't. So
12341 escape them.
12342
12343 2002-03-26 Michael Snyder <msnyder@redhat.com>
12344 Andrew Cagney <cagney@redhat.com>
12345
12346 * cli/cli-dump.c: New file. Dump memory to file,
12347 restore file to memory.
12348 * cli/cli-dump.h: New file.
12349 * Makefile.in: Add rules, dependencies for cli-dump.o.
12350 * NEWS: Mention new commands.
12351
12352 2002-03-28 Michael Snyder <msnyder@redhat.com>
12353
12354 * symfile.c (symbol_file_add): Move test for null symbols to later.
12355
12356 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12357
12358 From veksler at il.ibm.com:
12359 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12360 the xstrduped original path.
12361 Fix PR gdb/417.
12362
12363 2002-03-27 Michael Snyder <msnyder@redhat.com>
12364
12365 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12366 * infcmd.c (_initialize_infcmd): Ditto.
12367 * language.c (_initialize_language): Ditto.
12368 * symfile.c (_initialize_symfile): Ditto.
12369 * top.c (_init_main): Ditto.
12370 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12371
12372 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12373
12374 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12375 vector registers handling.
12376 (skip_prologue): Handle new AltiVec instructions. Fill in new
12377 fields of frame data.
12378 (frame_get_saved_regs): Fill in information for AltiVec registers.
12379
12380 2002-03-27 Jim Blandy <jimb@redhat.com>
12381
12382 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12383 a function; leave this macro here to invoke that function.
12384 (symbol_init_mangled_name): Declaration for that function.
12385 * symtab.c (symbol_init_mangled_name): New function.
12386
12387 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12388
12389 * valarith.c: Replace strerror with safe_strerror.
12390 * tracepoint.c: Ditto.
12391 * lin-lwp.c: Ditto.
12392 * go32-nat.c: Ditto.
12393 * inflow.c: Ditto.
12394 * gnu-nat.c: Ditto.
12395
12396 2002-03-27 Andreas Schwab <schwab@suse.de>
12397
12398 * event-top.c (command_line_handler): Remove useless if.
12399
12400 2002-03-27 Andreas Jaeger <aj@suse.de>
12401
12402 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12403 comment.
12404
12405 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12406
12407 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12408 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12409 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12410 (x86_64_linux_dr_get_status, supply_gregset),
12411 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12412 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12413 (x86_64_register_info_table): Add.
12414 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12415 (x86_64_register_raw_size, x86_64_register_virtual_type),
12416 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12417 general x86_64_register_info_table.
12418 (i386_gdbarch_init): gdbarch_register_bytes is now set
12419 dynamicaly during initialization.
12420 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12421 * gdbserver/linux-x86-64-low.c: Ditto.
12422
12423 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12424
12425 * gdbserver/server.c (main): Call target_signal_to_host_p
12426 and target_signal_to_host on signals received from the remote.
12427 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12428 target_signal_from_host on signals sent to the remote.
12429 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12430 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12431
12432 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12433
12434 * signals/signals.c: Include "server.h" in gdbserver build.
12435 (target_signal_from_name): Don't use STREQ.
12436 (_initialize_signals): Likewise. Don't include function in
12437 gdbserver build.
12438
12439 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12440
12441 * signals.c: Moved to...
12442 * signals/signals.c: Here.
12443 * Makefile (signals.o): Update.
12444
12445 2002-03-26 Jeff Law (law@redhat.com)
12446
12447 * somread.c (som_symtab_read): Remove some commented out code and
12448 updated related comments. Do not set the minimal symbol table to
12449 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12450 in a dynamic executable.
12451 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12452 where we are unable to find the minimal symbol for the given
12453 PC value.
12454
12455 2002-03-25 Jeff Law (law@redhat.com)
12456
12457 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12458
12459 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12460
12461 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12462
12463 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12464
12465 * command.h: Update copyright.
12466 (struct cmd_list_element): Replace definition with opaque
12467 declaration.
12468 (enum cmd_types): Document that it will eventually be moved to
12469 cli/cli-decode.h
12470 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12471 (MALLOCED_REPLACEMENT): Delete macro.
12472 * Makefile.in (cli_decode_h): Add $(command_h).
12473 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12474 * top.c: Include "cli/cli-decode.h".
12475 * completer.c: Include "cli/cli-decode.h".
12476 * maint.c: Include "cli/cli-decode.h".
12477 * cli/cli-decode.h: Include "command.h".
12478 (enum command_class): Delete.
12479 (enum cmd_types): Comment out.
12480 (enum cmd_auto_boolean): Delete.
12481 (enum var_types): Delete.
12482
12483 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12484
12485 * cli/cli-decode.c: Include "gdb_assert.h".
12486 (add_set_or_show_cmd): New static function.
12487 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12488 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12489 all fields, such as func, from the set command.
12490
12491 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12492
12493 * MAINTAINERS (sh-elf): Change warning flag to -w.
12494
12495 2002-03-23 Andrew Cagney <cagney@redhat.com>
12496
12497 * defs.h (error): Add printf format attribute.
12498 * thread-db.c (thread_from_lwp): Fix error format string.
12499 * stack.c (parse_frame_specification): Ditto.
12500 * cli/cli-decode.c (undef_cmd_error): Ditto.
12501 * scm-lang.c (scm_lookup_name): Ditto.
12502 * tracepoint.c (trace_error): Ditto.
12503 * remote-utils.c (usage): Ditto.
12504 * remote.c (compare_sections_command): Ditto.
12505 Fix PR gdb/328.
12506
12507 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12508
12509 * gdbtypes.c (append_composite_type_field): New function.
12510 (init_composite_type): New function.
12511 * gdbtypes.h (append_composite_type_field): Declare.
12512 (init_composite_type): Ditto.
12513
12514 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12515
12516 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12517 function.
12518 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12519 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12520 structure returning convention for SYSV ABI case, but not
12521 for GNU/Linux, FreeBSD, or NetBSD.
12522
12523 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12524
12525 * symtab.h (lookup_block_symbol): Add mangled_name argument
12526 to prototype.
12527
12528 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12529 with new mangled_name argument.
12530 * linespec.c (decode_line_1): Likewise.
12531 * valops (value_of_this): Likewise.
12532 * symtab.c (lookup_transparent_type): Likewise.
12533 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12534 (lookup_symbol): If we are given a mangled name, pass it down
12535 to lookup_symbol_aux.
12536 (lookup_block_symbol): If we are given a mangled name to check
12537 against, only return symbols which match it.
12538
12539 2002-03-22 Christopher Faylor <cgf@redhat.com>
12540
12541 * win32-nat.c (child_create_inferior): Check for proper shell to use
12542 here, in case the user changes it on the fly.
12543 (_initialize_inftarg): Remove shell path considerations.
12544
12545 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12546
12547 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12548 for gdbarch_max_register_raw_size and max_register_virtual_size.
12549 Adjust copyright year.
12550
12551 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12552
12553 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12554 in a function to cover the entire beginning of the function
12555 as well if it does not already.
12556
12557 2002-03-21 Tom Rix <trix@redhat.com>
12558
12559 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12560 (rs6000_ptrace64): Renamed from ptrace64.
12561
12562 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12563
12564 * gdbserver/remote-utils.c (remote_open): Don't call
12565 getprotobyname, we're all using TCP here so just use
12566 IPPROTO_TCP.
12567 * gdbserver/gdbreplay.c (remote_open): Ditto.
12568
12569 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12570
12571 * regcache.c (_initialize_regcache): No need to call
12572 build_regcache() at this time; it gets called whenever
12573 the gdbarch changes.
12574
12575 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12576
12577 * sparc-nat.c: Include sys/param.h where possible.
12578
12579 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12580
12581 Fix PR gdb/422.
12582 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12583 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12584 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12585 complex types.
12586 * stabsread.c (rs6000_builtin_type): Likewise.
12587 (read_sun_floating_type): Likewise.
12588
12589 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12590
12591 * stabsread.c (read_member_functions): Remove skip code for duplicate
12592 constructor/destructor methods. Use standard parsing for these
12593 methods and just do not chain them to the list of methods after
12594 parsing.
12595
12596 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12597
12598 * coffread.c: Remove redundant static declarations. Replace
12599 occurrences of `PTR' with `void *'.
12600 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12601 * top.h (quit_cover): Likewise.
12602 * defs.h (catch_errors): Likewise.
12603
12604 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12605
12606 * defs.h (XMALLOC): Define.
12607 * gdb-events.sh (XMALLOC): Delete macro.
12608 * gdb-events.c, gdb-events.h: Regenerate.
12609 * gdbarch.sh (XMALLOC): Delete macro.
12610 * gdbarch.c: Regenerate.
12611 * serial.c (XMALLOC): Delete macro.
12612 * ui-file.c (XMALLOC): Ditto.
12613 * ser-unix.h (XMALLOC): Ditto.
12614 * sh-tdep.c (XMALLOC): Ditto.
12615 * ui-out.c (XMALLOC): Ditto.
12616 * utils.c (XMALLOC): Ditto.
12617 * i386-tdep.c (XMALLOC): Ditto.
12618 * gdb-events.c (XMALLOC): Ditto.
12619 * d10v-tdep.c (XMALLOC): Ditto.
12620 * cli-out.c (XMALLOC): Ditto.
12621
12622 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12623 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12624 * ui-file.c, ui-out.c: Ditto.
12625
12626 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12627
12628 * command.h (struct cmd_list_element): Add field context.
12629 (set_cmd_context, get_cmd_context): Declare.
12630 * cli/cli-decode.h: Ditto.
12631 * cli/cli-decode.c (get_cmd_context): New function.
12632 (set_cmd_context): New function.
12633 (add_cmd): Initialize context.
12634 Part of fixing PR gdb/145 and PR gdb/146.
12635
12636 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12637
12638 * cli/cli-decode.c (cmd_type): New function.
12639 * command.h (cmd_type): Declare.
12640 * infrun.c (set_schedlock_func): Call function cmd_type.
12641 * kod.c (kod_set_os): Call cmd_type.
12642 * cris-tdep.c (cris_version_update): Use function cmd_type.
12643 (cris_mode_update, cris_abi_update): Ditto.
12644
12645 * command.h: (execute_cmd_post_hook): Declare.
12646 (execute_cmd_pre_hook): Declare.
12647 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12648 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12649 functions. Execute pre/post hook while ensuring that afterwords
12650 hook_in is cleared.
12651 * top.c (execute_command): Use execute_cmd_post_hook, and
12652 execute_cmd_pre_hook to execute pre/post commands.
12653 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12654 hook_stop_stub.
12655 (hook_stop_stub): Call execute_cmd_pre_hook.
12656
12657 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12658
12659 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12660 set'' and this leads to a core dump. Move xstrdup of
12661 operating_system to after check that it is not NULL.
12662
12663 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12664
12665 * kod.c (kod_set_os): Remove unnecessary check that
12666 ``command->type'' is set_cmd.
12667
12668 * valprint.c (set_input_radix): Use input_radix.
12669 (set_output_radix): Use output_radix.
12670 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12671 isn't reverted.
12672
12673 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12674
12675 * value.h (struct value): Delete field ``substring_addr''. Change
12676 aligner fields to force_doublest_align, force_longest_align,
12677 force_core_addr_align and force_pointer_aligh.
12678
12679 * value.h (struct value): Fix typo in above change.
12680
12681 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12682
12683 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12684 to fix internal_error from ``maintenance print architecture''.
12685
12686 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12687
12688 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12689 for gcc versions after gcc-2.8.1.
12690
12691 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12692
12693 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12694 for method resolution. Restore adjustment of ``this'' pointer after
12695 calling value_struct_elt, which was accidentally removed during the
12696 HP merge.
12697
12698 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12699
12700 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12701 value_of_register.
12702 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12703 get_saved_register.
12704 * value.h (value_of_register): Update.
12705
12706 2002-03-14 Richard Henderson <rth@redhat.com>
12707
12708 * configure.in: Detect declaration for canonicalize_file_name.
12709 * utils.c (canonicalize_file_name): Declare, if needed.
12710 (gdb_realpath): Prefer realpath if available and usable.
12711 * config.in, configure: Rebuild.
12712
12713 2002-03-14 Richard Henderson <rth@redhat.com>
12714
12715 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12716 a constant array bound.
12717
12718 * MAINTAINERS: Add myself to write-after-approval.
12719
12720 2002-03-14 Michael Snyder <msnyder@redhat.com>
12721
12722 * symfile.c (syms_from_objfile): Return immediately if no syms.
12723 (symbol_file_add): Return immediately if no syms.
12724 (find_sym_fns): Return immediately if no syms.
12725
12726 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12727
12728 * gdbserver/remote-util.c (remote_open): Print remote-side's
12729 IP address when remote debugging over the network.
12730
12731 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12732
12733 * config/sparc/fbsd.mh: Fix copyright.
12734 * config/sparc/fbsd.mt: Likewise.
12735
12736 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12737
12738 * MAINTAINERS: Fix typo in name of gdb warnings option.
12739 (x86-64): Fix formating so that this can be parsed by awk.
12740
12741 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12742
12743 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12744 * defs.h: Include "gdb/signals.h".
12745 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12746
12747 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12748
12749 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12750 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12751 from x86-64-tdep.h
12752
12753 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12754 Don Howard <dhoward@redhat.com>
12755
12756 * mips-tdep.c (ST0_FR): Define.
12757 (mips2_fp_compat): New function, temporarily disabled.
12758 (mips_read_fp_register_single): New function.
12759 (mips_read_fp_register_double): New function.
12760 (mips_print_register): Use them.
12761 (do_fp_register_row): Likewise.
12762
12763 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12764
12765 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12766 approval''.
12767
12768 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12769
12770 * stabsread.c (read_member_functions): Fix is_stub test for
12771 static member functions, improve comment.
12772
12773 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12774
12775 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12776 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12777 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12778 commands that set boolean values.
12779 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12780 (arm_rdi_resume): Always initialize PC.
12781 (arm_rdi_open): Don't use rslt as a boolean.
12782 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12783 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12784 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12785 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12786
12787 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12788
12789 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12790 * configure: Rebuilt.
12791
12792 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12793
12794 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12795 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12796
12797 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12798
12799 * cli/cli-decode.c (set_cmd_completer): New function.
12800 * command.h (set_cmd_completer): Declare.
12801 * cli/cli-decode.h (set_cmd_completer): Ditto.
12802
12803 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12804 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12805 * win32-nat.c (_initialize_inftarg): Ditto.
12806 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12807 * proc-api.c (_initialize_proc_api): Ditto.
12808 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12809 * source.c (_initialize_source): Ditto.
12810 * exec.c (_initialize_exec): Ditto.
12811 * solib.c (_initialize_solib): Ditto.
12812 * top.c (init_main): Ditto.
12813 * tracepoint.c (_initialize_tracepoint): Ditto.
12814 * symfile.c (_initialize_symfile): Ditto.
12815 * printcmd.c (_initialize_printcmd): Ditto.
12816 * infcmd.c (_initialize_infcmd): Ditto.
12817 * corefile.c (_initialize_core): Ditto.
12818
12819 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12820
12821 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12822
12823 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12824
12825 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12826
12827 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12828
12829 * NEWS: Update headings, 5.2 has branched.
12830
12831 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12832
12833 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12834 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12835 (register_addr, REGISTER_RAW_SIZE): Likewise.
12836 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12837 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12838
12839 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12840
12841 * MAINTAINERS (x86-64): Add myself.
12842 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12843 changed value_ptr -> struct value *
12844
12845 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12846
12847 * configure.host (sparc64-*-freebsd): Add.
12848 * configure.tgt: Likewise.
12849 * config/sparc/fbsd.mh: New file.
12850 * config/sparc/fbsd.mt: Likewise.
12851 * config/sparc/nm-fbsd.h: Likewise.
12852 * config/sparc/tm-fbsd.h: Likewise.
12853
12854 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12855
12856 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12857 regformats/reg-s390x.dat.
12858
12859 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12860
12861 * utils.c: Add FIXME explaining true/false problem.
12862
12863 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12864
12865 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12866
12867 2002-02-28 Michael Chastain <mec@shout.net>
12868
12869 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12870
12871 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12872
12873 * gdbserver/linux-s390-low.c: New file.
12874 * regformats/reg-s390.dat: New file.
12875 * regformats/reg-s390x.dat: New file.
12876 * gdbserver/configure.srv: Add S/390.
12877 * gdbserver/Makefile.in: Add S/390.
12878 * configure.tgt: Enable gdbserver for S/390.
12879
12880 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12881
12882 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12883 first line of the doc string for "info dos", except at the end of
12884 the sentence, since the short help stops at the first period.
12885
12886 2002-02-28 Jason Merrill <jason@redhat.com>
12887
12888 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12889
12890 2002-02-27 Fred Fish <fnf@redhat.com>
12891
12892 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12893 comment (dumy -> dummy).
12894
12895 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12896
12897 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12898
12899 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12900
12901 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12902
12903 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * gdbserver/acconfig.h: New file.
12906 * gdbserver/i387-fp.c: New file.
12907 * gdbserver/i387-fp.h: New file.
12908 * gdbserver/linux-x86-64.c: New file.
12909 * regformats/reg-x86-64.dat: New file.
12910 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12911 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12912 * gdbserver/configure.in: Add support for regsets.
12913 * gdbserver/config.in: Regenerate.
12914 * gdbserver/configure: Regenerate.
12915 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12916 * gdbserver/linux-low.h: New file.
12917 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12918 for regsets.
12919 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12920 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12921 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12922 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12923 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12924 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12925 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12926 "i387-fp.h". Add PTRACE_GETREGS and friends.
12927 * gdbserver/regcache.c (supply_register): New function.
12928 (supply_register_by_name): New function.
12929 (collect_register): New function.
12930 (collect_register_by_name): New function.
12931
12932 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12933
12934 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12935 (config.status): Add configure.srv dependency.
12936 (server_h): Add config.h dependency.
12937
12938 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12939
12940 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12941 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12942 * gdbserver/configure.srv: Change i386-*-linux* to use
12943 reg-i386-linux.o.
12944
12945 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12946
12947 * x86-64-tdep.c: Re-indent. Update copyright date.
12948
12949 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12950
12951 From Michal Ludvig <mludvig@suse.cz>:
12952 * x86-64-tdep.c (value.h): Delete.
12953 (gdb_assert.h): Include.
12954 (x86_64_register_convert_to_virtual,
12955 x86_64_register_convert_to_raw ): Add check which lets only
12956 floating-point values to be converted.
12957 (value_push): Delete.
12958 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12959 (i386_gdbarch_init): Number of register_bytes fixed.
12960
12961 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12962
12963 * MAINTAINERS: Add x86-64 target.
12964
12965 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12966
12967 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12968 * osfsolib.c (solib_map_sections): Ditto.
12969 * irix5-nat.c (solib_map_sections): Ditto.
12970 * corelow.c (gdb_check_format): Ditto.
12971 * symfile.c (symfile_bfd_open): Ditto.
12972 * solib.c (solib_map_sections): Ditto.
12973 Fix PR gdb/354.
12974
12975 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12976
12977 * remote.c (_initialize_remote): By default, disable ``e'' and
12978 ``E'' step out-of-range packets.
12979
12980 2002-02-26 Andreas Schwab <schwab@suse.de>
12981
12982 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12983 m68k_linux_frame_saved_pc.
12984 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12985 in_sigtramp.
12986 (SIGCONTEXT_PC_OFFSET): Remove.
12987 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12988 m68k_linux_sigtramp_saved_pc): New functions.
12989 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12990 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12991 (UCONTEXT_PC_OFFSET): Define.
12992 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12993 non-RT and RT signal trampolines.
12994
12995 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12996
12997 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12998 (TARGET_NBPG, STACK_END_ADDR): Delete
12999 (VARIABLES_INSIDE_BLOCK): Delete.
13000
13001 2002-02-25 Andrew Cagney <ac131313@redhat.com>
13002
13003 * utils.c (perror_with_name): Make string parameter constant.
13004 (print_sys_errmsg): Ditto.
13005 (query): Ditto.
13006 * defs.h (perror_with_name): Update.
13007 (print_sys_errmsg): Update.
13008 (query): Update.
13009
13010 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
13011
13012 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
13013 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
13014
13015 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13016
13017 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
13018 if it already matches the current architecture from the exec file.
13019 Include arch-utils.h for gdbarch_info_init prototype.
13020 * Makefile.in (rs6000-nat.o): Update dependencies.
13021
13022 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
13023
13024 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
13025 list of exported variables.
13026
13027 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
13028
13029 * gdbserver/configure.srv: New file.
13030 * gdbserver/configure.in: Use configure.srv instead
13031 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
13032 from it.
13033 * gdbserver/configure: Regenerated.
13034 * gdbserver/terminal.h: New file.
13035 * gdbserver/Makefile.in: Update for configure changes. Remove
13036 more unneeded include paths.
13037
13038 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13039
13040 From wiz at danbala:
13041 * config/sparc/tm-sp64.h: Fix grammar and typos.
13042 Fix PR gdb/287.
13043
13044 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13045
13046 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13047 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
13048 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13049 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13050 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13051 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13052 * s390-tdep.c: Ditto.
13053 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13054 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13055 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13056 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13057 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13058 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13059 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13060 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13061 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13062 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13063 Fix PR gdb/378.
13064
13065 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13066
13067 * lin-thread.c: Delete file.
13068 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13069 to gdb_proc_service.h.
13070 * configure: Re-generate.
13071
13072 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13073 * serial.c (serial_open): Delete check for "ocd".
13074 Fix PR gdb/349.
13075
13076 * Makefile.in (linux-thread.o): Delete target.
13077 * linux-thread.c: Delete file.
13078
13079 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13080 renamed SH files to be consistent.
13081
13082 * symtab.c (sort_search_symbols): Use xfree.
13083
13084 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13085
13086 * arm-linux-tdep.c (arm_linux_init_abi): Register
13087 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13088 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13089 definition with undef, since we don't want the sysvr4 definition.
13090 (SKIP_TRAMPOLINE_CODE): Likewise.
13091
13092 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13093
13094 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13095
13096 * configure.in: (AC_CHECK_FUNCS) Added test for
13097 canonicalize_file_name Regenerated.
13098 * config.in, configure: Regenerated.
13099 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13100 defined use canonicalize_file_name.
13101
13102 2002-02-23 Michael Chastain <mec@shout.net>
13103
13104 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13105
13106 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13107
13108 * README: Remove references to cygnus.com.
13109 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13110 dot com'' form. Remove references to cygnus.com and sourceware.
13111
13112 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13113
13114 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13115 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13116 1003.1-2001 no longer allows "head -1".
13117 * gdb/Makefile.in (version.c): Likewise.
13118 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13119 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13120 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13121
13122 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13123
13124 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13125 * command.h (cmd_cfunc_eq): Declare.
13126 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13127
13128 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13129 ``struct cmd_list_element *''.
13130 * cli/cli-cmds.c (is_complete_command): Update. Use
13131 cmd_cfunc_eq.
13132 * top.c (execute_command): Pass the command to
13133 is_complete_command.
13134 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13135
13136 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13137
13138 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13139 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13140 architecture defines.
13141 * s390-tdep.c (s390_gdbarch_init): Likewise.
13142
13143 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13144
13145 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13146 (arm_linux_push_arguments): Likewise.
13147 (arm_linux_init_abi): Register them. Also register linux-specific
13148 call_dummy_words.
13149 (find_minsym_and_objfile): Use strcmp, not STREQ.
13150 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13151 (arm_linux_call_dummy_words): Delete declaration.
13152 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13153 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13154 declarations.
13155 (LOWEST_PC): Delete.
13156
13157 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13158
13159 * maint.c (print_section_info): Do not prepend `0x' to filepos
13160 output, it will be handled by local_hex_string_custom.
13161
13162 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13163
13164 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13165 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13166 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13167
13168 2002-02-22 Jim Blandy <jimb@redhat.com>
13169
13170 Indicate that the bcache functions don't change the strings
13171 they're passed.
13172 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13173 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13174
13175 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13176
13177 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13178
13179 2002-02-21 Christopher Faylor <cgf@redhat.com>
13180
13181 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13182 find the complete path to a loaded DLL.
13183
13184 2002-02-21 Fred Fish <fnf@redhat.com>
13185
13186 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13187 that marks the end of the range of a function, enter a line number
13188 entry that has a line number of zero and a PC offset that matches
13189 the end of the function. This starts a range of PC's for which no
13190 line number information is known.
13191 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13192 PC's for which no line number info is found (line number is zero)
13193 then we didn't find any valid line information.
13194 * symtab.h: Document use of zero line number entry.
13195
13196 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13197
13198 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13199 (have_ptrace_getvrregs): Define for run time checks.
13200 (gdb_vrregset_t): New type for Altivec register handling.
13201 (fetch_register, store_register): Fetch/store altivec register
13202 when needed.
13203 (fetch_altivec_register, store_altivec_register): New functions.
13204 (supply_vrregset, fill_vrregset): New functions.
13205 (fetch_altivec_registers, store_altivec_registers): New functions.
13206 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13207 registers as well.
13208
13209 2002-02-21 Jiri Smid <smid@suse.cz>
13210
13211 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13212
13213 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13214
13215 * Makefile.in (armnbsd-nat.o): Update dependencies.
13216 * armnbsd-nat.c (supply_gregset): New function. Common code to
13217 supply the integer register set.
13218 (supply_fparegset): New function. Similar for FPA registers.
13219 (fetch_regs, fetch_fp_regs): Use them.
13220 (fetch_core_registers): Likewise.
13221 (fetch_elfcore_registers): New function.
13222 (arm_netbsd_elfcore_fns): New core-file type specification.
13223 (_initialize_arm_netbsd_nat): Register it.
13224
13225 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13226
13227 * armnbsd-nat.c: Include gdbcore.h.
13228 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13229 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13230 'void' to declaration, to shut up ARI.
13231 (fetch_core_registers): Make static. Rewrite using supply_register.
13232 (arm_netbsd_core_fns): New core-file type specification.
13233 (_initialize_arm_netbsd_nat): New function.
13234
13235 2002-02-21 Christopher Faylor <cgf@redhat.com>
13236
13237 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13238 value.
13239
13240 2002-02-20 Christopher Faylor <cgf@redhat.com>
13241
13242 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13243 fails.
13244
13245 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13246
13247 * jv-exp.y (parse_number): Change type of implicit longs
13248 to builtin_type_uint64.
13249
13250 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13251
13252 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13253 to be an integer instead of a `union wait'.
13254
13255 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13256
13257 * mips-linux-nat.c: Call the operating system GNU/Linux.
13258 * mips-linux-tdep.c: Likewise.
13259 * mips-tdep.c: Likewise.
13260
13261 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13262
13263 Fix PR gdb/265.
13264 * jv-exp.y (parse_number): Handle 64-bit integers.
13265
13266 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13267
13268 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13269 AC_STDC_HEADERS to AC_HEADER_STDC.
13270 * gdbserver/configure: Regenerated.
13271
13272 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13273
13274 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13275 is defined.
13276 * sparc-tdep.c (get_longjmp_target): Likewise.
13277
13278 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13279
13280 * News: Add news about ARM and Multi-arch. Mention the new target
13281 arm*-*-netbsd*.
13282
13283 2002-02-19 Jim Blandy <jimb@redhat.com>
13284
13285 * stabsread.c (error_type_complaint): Improve error message.
13286
13287 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13288
13289 * gdbserver/README: Update documentation.
13290 * gdbserver/configure.in: Update configury to match documentation.
13291 * gdbserver/Makefile.in: Likewise.
13292 * gdbserver/configure: Regenerated.
13293 * gdbserver/aclocal.m4: New file, generated by aclocal.
13294 * gdbserver/config.in: New file, generated by autoheader.
13295
13296 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13297
13298 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13299 armnbsd-nat.c.
13300
13301 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13302
13303 * arm-tdep.h (enum arm_float_model): New enum.
13304 (struct gdbarch_tdep): Add fp_model.
13305 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13306 up floating-point conversions until we know the floating-point model
13307 in use by the inferior. Don't complain about being unable to
13308 determine the ABI of the inferior when we don't have one.
13309 (arm_extract_return_value): Support different floating-point models.
13310 (arm_store_return_value): Likewise.
13311 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13312 ARM_FLOAT_SOFT.
13313 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13314
13315 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13316
13317 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13318 of ``current_gdbarch''.
13319
13320 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13321
13322 * armnbsd-nat.c : ANSIfy all function declarations.
13323 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13324 (fetch_inferior_registers): Re-implement in terms of above.
13325 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13326 (store_inferior_registers): Re-implement in terms of above.
13327
13328 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13329
13330 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13331 kernel.
13332 * arm-linux-tdep.c: Likewise.
13333 * config/arm/tm-linux.h: Likewise.
13334
13335 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13336
13337 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13338 * config/arm/nbsd.mt (TM_FILE): Delete.
13339 * config/arm/tm-nbsd.h: Delete.
13340
13341 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13342
13343 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13344 Initialize CALL_DUMMY_LENGTH.
13345
13346 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13347
13348 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13349 function.
13350 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13351 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13352 defines one thing and that is incorrect for this port.
13353 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13354
13355 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13356
13357 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13358
13359 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13360
13361 * win32-nat.c (display_selector): New function. Displays information
13362 about the information returned by GetThreadSelectorEntry API function.
13363 (display_selectors): New function. Displays the infomation of
13364 the selector given as argument, or of CS, DS ans FS selectors
13365 if no argument is given.
13366 ( _initialize_inftarg): Add "w32" as info prefix command.
13367 Add "info w32 selector" as command calling display_selectors.
13368
13369 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13370
13371 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13372 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13373 if not defined.
13374
13375 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13376
13377 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13378
13379 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13380
13381 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13382 (arm_fix_call_dummy): Call it.
13383 (arm_call_dummy_breakpoint_offset): Delete.
13384 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13385 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13386
13387 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13388
13389 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13390 Default to func_frame_chain_valid.
13391 * gdbarch.h, gdbarch.c: Re-generate.
13392 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13393
13394 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13395
13396 * ppc-linux-nat.c: Update copyright.
13397 (fetch_register, store_register): Add tid parameter, don't compute
13398 tid here.
13399 (fetch_ppc_registers, store_ppc_registers): Add tid
13400 parameter. Pass it along to callees.
13401 (fetch_inferior_registers, store_inferior_registers): Compute tid
13402 here, and pass it to calleed functions.
13403 (fill_gregset, supply_fpregset): Clean up formatting.
13404
13405 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13406
13407 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13408 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13409
13410 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13411
13412 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13413 * gdbarch.c gdbarch.h: Regenerate.
13414 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13415 function.
13416 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13417 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13418 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13419
13420 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13421 * arm-tdep.c (arm_get_longjmp_target): New function.
13422 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13423 this to a positive value register arm_get_longjmp_target as the
13424 longjmp handler.
13425 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13426 (arm_linux_init_abi): Set up longjmp description in tdep.
13427 * armnbsd-nat.c (get_longjmp_target): Delete.
13428 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13429 description in tdep.
13430 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13431 (get_longjmp_target): Delete declaration.
13432 (GET_LONGJMP_TARGET): Delete.
13433 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13434 (GET_LONGJMP_TARGET): Delete.
13435
13436 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13437
13438 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13439 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13440 of ``current_gdbarch''.
13441
13442 2002-02-17 Tom Tromey <tromey@redhat.com>
13443
13444 * cli/cli-cmds.c (compare_strings): New function.
13445 (complete_command): Only print each unique item once.
13446 * completer.h (complete_line): Declare.
13447 * completer.c (complete_line): New function.
13448 (line_completion_function): Use it.
13449
13450 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13451
13452 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13453 * gdbarch.h, gdbarch.c: Re-generate.
13454
13455 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13456
13457 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13458
13459 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13460
13461 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13462 * valops.c (value_arg_coerce): Don't take the address of a reference
13463 to convert an argument to a reference.
13464
13465 2002-02-15 Christopher Faylor <cgf@redhat.com>
13466
13467 * win32-nat.c (get_image_name): New function.
13468 (handle_load_dll): Use get_image_name function.
13469 (get_child_debug_event): Avoid registering debug events until possibly
13470 execed process is started.
13471 (child_create_inferior): Allow invocation via shell so that command
13472 line redirection, etc. works ok.
13473 (_initialize_inftarg): Add new command: "set shell" to control whether
13474 a shell is used to start a process.
13475
13476 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13477
13478 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13479 instead of find_register_by_number.
13480 (cannot_store_register): Likewise.
13481
13482 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13483
13484 * dwarf2read.c: Replace fprintf (stderr, ...) by
13485 fprintf_unfiltered (gdb_stderr, ...).
13486
13487 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13488
13489 * gdbserver/gdbserver.1: Document --attach.
13490
13491 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13492
13493 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13494 descriptions.
13495 * arm-tdep.c (arm_default_arm_le_breakpoint)
13496 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13497 (arm_default_thumb_be_breakpoint): New. Initialize them from
13498 traditional breakpoint defines.
13499 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13500 (arm_gdbarch_init): Initialize new breakpoint variables.
13501 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13502 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13503 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13504 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13505 code out to ...
13506 (arm_netbsd_init_abi_common): ... here; new function.
13507 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13508 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13509 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13510 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13511
13512 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13513
13514 * arm-tdep.h (enum arm_abi): New enum.
13515 (struct gdbarch_tdep): New structure.
13516 (LOWEST_PC): Provide a default.
13517 (arm_gdbarch_register_os_abi): Declare new function.
13518 * arm-tdep.c (arm_abi_names): New array.
13519 (process_note_abi_tag_sections): New function.
13520 (get_elfosabi): New function.
13521 (arm_gdbarch_register_os_abi): New function.
13522 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13523 support for that ABI has been built in, then call the appropriate
13524 configuration routine. Use gdbarch_num_regs() to get the number
13525 of registers.
13526 (arm_dump_tdep): New function.
13527 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13528 place-holder functions.
13529 (_initialize_arm_tdep): Register them.
13530 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13531
13532 * armnbsd-tdep.c: New file.
13533 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13534 * config/arm/nbsd.mt (TDEPFILES): Add it.
13535 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13536
13537 * armnbsd-nat.c: Include regcache.h.
13538 * Makefile.in (armnbsd-nat.o): Update dependency list.
13539
13540 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13541
13542 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13543
13544 * gdbserver/Makefile.in: Fix typos in target rules.
13545
13546 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13547
13548 Fix part of PR gdb/267.
13549 * linespec.c (find_methods): Handle constructors specially for now.
13550
13551 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13552
13553 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13554 handling.
13555 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13556 standard_coerce_float_to_double().
13557
13558 2002-02-14 Christopher Faylor <cgf@redhat.com>
13559
13560 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13561 GDBINIT_FILENAME.
13562
13563 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13564
13565 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13566 find_variant_by_name, because it confuses the multiarch
13567 framework. Return NULL if there isn't an architecture with the
13568 user supplied name, instead of forcing a different one without
13569 recording the change with the multiarch machinery.
13570 (find_variant_by_name): Delete.
13571
13572 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13573
13574 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13575 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13576
13577 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13578
13579 * stack.c (print_frame_info_base): When calling
13580 print_frame_info_listing_hook, set current_source_symtab.
13581
13582 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13583
13584 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13585 and remove unused $(INCLUDE_DIR).
13586 Add regcache.c to OBS.
13587 Add generated register protocol files to clean target.
13588 Update dependencies for new objects, obsolete old target code.
13589
13590 * gdbserver/linux-low.c: Remove all platform-specific code to
13591 new files. Remove various dead code. Update to use regcache
13592 functionality.
13593 * gdbserver/remote-utils.c (fromhex): Add return statement
13594 to quiet warning.
13595 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13596 constant.
13597 (input_interrupt): Add integer parameter to match prototype
13598 of a signal handler.
13599 (outreg): Use register_data ().
13600 (prepare_resume_reply): Use gdbserver_expedite_regs.
13601 * gdbserver/server.c (main): Dynamically allocate own_buf because
13602 PBUFSIZ is no longer constant. Use registers_to_string () and
13603 registers_from_string ().
13604 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13605 for error (), fatal (), and warning (). Update definition of
13606 PBUFSIZ to use regcache functionality. Add include guard.
13607 * gdbserver/utils.c (fatal): Add missing ``const''.
13608 (warning): New function.
13609
13610 * regformats/regdat.sh: Include "regcache.h" in generated files.
13611 Provide init_registers () function.
13612 * regformats/regdef.h: Add prototype for set_register_cache ().
13613 Add include guard.
13614
13615 * gdbserver/linux-arm-low.c: New file.
13616 * gdbserver/linux-i386-low.c: New file.
13617 * gdbserver/linux-ia64-low.c: New file.
13618 * gdbserver/linux-m68k-low.c: New file.
13619 * gdbserver/linux-mips-low.c: New file.
13620 * gdbserver/linux-ppc-low.c: New file.
13621 * gdbserver/linux-sh-low.c: New file.
13622
13623 * gdbserver/regcache.c: New file.
13624 * gdbserver/regcache.h: New file.
13625
13626 * gdbserver/low-linux.c: Removed obsolete file.
13627
13628 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13629
13630 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13631 * config/i386/linux.mt: Likewise.
13632 * config/ia64/linux.mt: Likewise.
13633 * config/m68k/linux.mh: Likewise.
13634 * config/powerpc/linux.mh: Likewise.
13635 * config/mips/linux.mt: Likewise.
13636
13637 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13638
13639 * config/i386/i386lynx.mh: Mark gdbserver variables
13640 as (currently) obsolete for this target.
13641 * config/i386/nbsd.mt: Likewise.
13642 * config/i386/nbsdelf.mt: Likewise.
13643 * config/m32r/m32r.mt: Likewise.
13644 * config/m68k/m68klynx.mh: Likewise.
13645 * config/m68k/nbsd.mt: Likewise.
13646 * config/m68k/sun3os4.mh: Likewise.
13647 * config/mips/vr5000.mt: Likewise.
13648 * config/ns32k/nbsd.mt: Likewise.
13649 * config/pa/hppabsd.mh: Likewise.
13650 * config/pa/hppaosf.mh: Likewise.
13651 * config/powerpc/nbsd.mt: Likewise.
13652 * config/rs6000/rs6000lynx.mh: Likewise.
13653 * config/s390/s390.mt: Likewise.
13654 * config/s390/s390x.mt: Likewise.
13655 * config/sparc/sparclynx.mh: Likewise.
13656 * config/sparc/sun4os4.mh: Likewise.
13657 * config/i386/x86-64linux.mt: Likewise.
13658 * config/sparc/linux.mh: Likewise.
13659
13660 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13661
13662 * configure.tgt: Configure gdbserver only for known working
13663 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13664 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13665 SUBDIRS if it is configured. Update comment for ${nativefile}.
13666 * configure: Regenerated.
13667
13668 2002-02-13 Michael Snyder <msnyder@redhat.com>
13669
13670 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13671
13672 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13673 (default_gcore_mach): Just return 0, work around a problem in bfd.
13674 (default_gcore_target): OK to return NULL if exec_bfd is null.
13675 (make_mem_sec): Use a cast, avoid a warning.
13676
13677 * procfs.c (find_memory_regions_callback): Use a cast instead of
13678 calling host_pointer_to_address (which complains if
13679 sizeof (host pointer) != sizeof (target pointer)).
13680 (procfs_make_note_section): Avoid overflow in psargs string.
13681
13682 * procfs.c (procfs_make_note_section): Make the default
13683 implementation return an error.
13684
13685 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13686
13687 * procfs.c (procfs_make_note_section): Provide a default definition
13688 (for alpha-dec-osf4.0f). Fix typos.
13689
13690 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13691
13692 * linux-proc.c: Add include of regcache.h.
13693 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13694
13695 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13696
13697 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13698 * memattr.c (create_mem_region): Disallow useless empty region.
13699 Regions are half-open intervals, so allow [A..B) [B..C) as
13700 non-overlapping.
13701
13702 2002-02-13 Michael Chastain <mec@shout.net>
13703
13704 * defs.h: Kill CONST_PTR.
13705 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13706 * c-lang.c (c_builtin_types): Likewise.
13707 * ch-lang.c (ch_builtin_types): Likewise.
13708 * f-lang.c (f_builtin_types): Likewise.
13709 * language.c (unknown_builtin_types): Likewise.
13710 * m2-lang.c (m2_builtin_types): Likewise.
13711 * p-lang.c (pascal_builtin_types): Likewise.
13712 * scm-lang.c (c_builtin_types): Likewise.
13713
13714 2002-02-13 Keith Seitz <keiths@redhat.com>
13715
13716 * arm-tdep.h (arm_get_next_pc): Add declaration.
13717
13718 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13719
13720 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13721 with other related struct-returning functions.
13722 (arm_extract_struct_value_address): New function.
13723 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13724 initialize float_format, double_format and long_double_format as
13725 appropriate to the endianness of the target.
13726 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13727 (arm_use_struct_convention): Delete declaration.
13728 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13729
13730 2002-02-13 Keith Seitz <keiths@redhat.com>
13731
13732 * defs.h (core_addr_to_string_nz): New function.
13733
13734 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13735
13736 Apply missing bits of 2002-01-15 patch.
13737 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13738 (fill_fpregset): Use i387_fill_fsave.
13739
13740 2002-02-12 Keith Seitz <keiths@redhat.com>
13741
13742 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13743 (core_addr_to_string_nz): New function.
13744
13745 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13746
13747 * arm-linux-nat.c: Really include arm-tdep.h.
13748 * config/arm/tm-linux.h (struct type, struct value): Declare.
13749
13750 2002-02-11 Michael Snyder <msnyder@redhat.com>
13751
13752 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13753 (gcore section): Ifdef for Solaris and Unixware only.
13754 (procfs_do_thread_registers): Unixware needs one lwpstatus
13755 per thread (not one prstatus or pstatus).
13756 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13757 not over all gdb threads. For unixware, call elfcore_write_pstatus
13758 once before iterating over threads.
13759
13760 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13761
13762 * arm-tdep.h: New file.
13763 * arm-tdep.c: Include arm-tdep.h.
13764 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13765 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13766 (arm_print_float_info, arm_register_type, convert_to_extended)
13767 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13768 (arm_extract_return_value, arm_register_name): Make static.
13769 (arm_software_single_step): Similarly. Fix types in declaration.
13770 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13771 (arm_store_return_value, arm_store_struct_return): New functions.
13772 (arm_gdbarch_init): Register the above functions. Also register
13773 call_dummy_start_offset, sizeof_call_dummy_words,
13774 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13775 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13776 max_register_virtual_size, register_size. Set up
13777 prologue_cache.saved_regs here, rather than ...
13778 (_initialize_arm_tdep): ... here.
13779 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13780 declarations.
13781 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13782 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13783 (arm_print_float_info, arm_register_type, convert_to_extended)
13784 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13785 (arm_extract_return_value, arm_register_name): Delete declarations.
13786 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13787 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13788 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13789 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13790 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13791 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13792 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13793 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13794 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13795 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13796 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13797 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13798 interface.
13799 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13800 * remote-rdi.c remote-rdp.c: Likewise.
13801 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13802 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13803 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13804 definition.
13805
13806 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13807 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13808 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13809 from non-ARM_ prefixed definitions.
13810 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13811 all uses of above.
13812 * remote-rdi.c remote-rdp.c: Likewise.
13813 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13814
13815 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13816
13817 * arm-tdep.c (arm_frameless_function_invocation)
13818 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13819 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13820 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13821 (arm_pop_frame, arm_get_next_pc): Make static.
13822 (arm_gdbarch_init): Register above in gdbarch structure.
13823 (arm_read_fp): Renamed from arm_target_read_fp.
13824 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13825 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13826 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13827 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13828 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13829 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13830 (arm_pc_is_thumb_dummy): Delete declarations.
13831 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13832 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13833 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13834 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13835
13836 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13837
13838 * symtab.c (compare_search_syms): New function.
13839 (sort_search_symbols): New function.
13840 (search_symbols): Sort symbols after searching rather than
13841 before.
13842
13843 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13844
13845 * NEWS: Linux -> GNU/Linux.
13846
13847 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13848
13849 * gdbarch.sh: For for level one methods, disallow a definition
13850 when partially multi-arched. Add comments explaining rationale.
13851 * gdbarch.h: Re-generate.
13852
13853 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13854
13855 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13856 multi-arch partial.
13857
13858 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13859
13860 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13861 field. Use diff -u.
13862 * gdbarch.c: Re-generate.
13863
13864 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13865
13866 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13867 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13868 partial.
13869
13870 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13871
13872 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13873 multi-arch partial.
13874 (PUSH_ARGUMENTS): Switch to using predefault.
13875 * gdbarch.c: Regenerate.
13876
13877 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13878
13879 * valops.c (PUSH_ARGUMENTS): Delete definition.
13880 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13881 partial. Default to default_push_arguments.
13882 * gdbarch.h, gdbarch.c: Regenerate.
13883
13884 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13885
13886 * defs.h (throw_exception): Rename return_to_top_level. Update
13887 comments.
13888 * utils.c (error_stream, internal_verror, quit): Ditto.
13889 * top.c (throw_exception, catcher): Ditto.
13890 * sparclet-rom.c (sparclet_load): Ditto.
13891 * remote.c (interrupt_query, minitelnet): Ditto.
13892 * remote-sds.c (interrupt_query): Ditto.
13893 * remote-mips.c (mips_error, mips_kill): Ditto.
13894 * ocd.c (interrupt_query): Ditto.
13895 * monitor.c (monitor_interrupt_query): Ditto.
13896 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13897 * target.h: Update comment.
13898
13899 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13900
13901 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13902
13903 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13904 default_double_format.
13905 * gdbarch.h, gdbarch.c: Re-generate.
13906 * findvar.c (floatformat_unknown): Delete variable definition.
13907 * doublest.h (floatformat_unknown): Delete variable declaration.
13908
13909 2002-02-09 Jim Blandy <jimb@redhat.com>
13910
13911 * stabsread.c (read_type): Add code to parse Sun's syntax for
13912 prototyped function types.
13913
13914 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13915
13916 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13917 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13918
13919 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13920
13921 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13922 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13923 now _initialize_xcoffsolib gets called again and overrides the
13924 commands from solib.c in a native configuration.
13925
13926 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13927
13928 * doublest.c (store_typed_floating): Don't try to return a value.
13929 Fixes PR gdb/290.
13930
13931 2002-02-08 Jim Blandy <jimb@redhat.com>
13932
13933 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13934 is prototyped and has no arguments, print its argument list as
13935 `(void)'.
13936
13937 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13938
13939 * MAINTAINERS (write-after-approval): Add myself.
13940 (paper-trail): I've escaped!
13941
13942 2002-02-08 Christopher Faylor <cgf@redhat.com>
13943
13944 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13945 changes.
13946 (_initialize_check_for_gdb_ini): Ditto.
13947
13948 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13949
13950 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13951 xaprintf -> xasprintf.
13952
13953 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13954
13955 * win32-nat.c: Remove use of printf and sprintf functions.
13956
13957 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13958
13959 * arm-tdep.c (arm_frame_chain_valid): Make static.
13960 (arm_push_arguments): Likewise.
13961 (arm_gdbarch_init): New function.
13962 (_initialize_arm_tdep): Call it.
13963 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13964 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13965 (FRAME_CHAIN_VALID): Delete.
13966 (arm_frame_chain_valid): Delete declaration.
13967 (PUSH_ARGUMENTS): Delete.
13968 (arm_push_arguments): Delete declaration.
13969 (CALL_DUMMY_P): Delete.
13970
13971 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13972 Corinna Vinschen <vinschen@redhat.com>
13973
13974 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13975 on builtin float types.
13976
13977 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13978
13979 * utils.c: Include <curses.h> before "bfd.h".
13980 * tui/tui-hooks.c: Likewise.
13981 * tui/tui.c: Likewise.
13982 * tui/tuiCommand.c: Likewise.
13983 * tui/tuiData.c: Likewise.
13984 * tui/tuiDataWin.c: Likewise.
13985 * tui/tuiDisassem.c: Likewise.
13986 * tui/tuiGeneralWin.c: Likewise.
13987 * tui/tuiIO.c: Likewise.
13988 * tui/tuiLayout.c: Likewise.
13989 * tui/tuiRegs.c: Likewise.
13990 * tui/tuiSource.c: Likewise.
13991 * tui/tuiSourceWin.c: Likewise.
13992 * tui/tuiStack.c: Likewise.
13993 * tui/tuiWin.c: Likewise.
13994
13995 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13996
13997 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13998 to include space for pseudoregs as well. Update loops accordingly.
13999 (sh_fp_frame_init_saved_regs): Ditto.
14000 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
14001
14002 2002-02-07 Andrew Cagney <ac131313@redhat.com>
14003
14004 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
14005 Add Richard Earnshaw to Arm maintainers.
14006
14007 2002-02-07 Andrew Cagney <ac131313@redhat.com>
14008
14009 * defs.h (warning_begin): Delete declaration.
14010
14011 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
14012 Delete macro.
14013
14014 2002-02-07 Michael Snyder <msnyder@redhat.com>
14015
14016 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14017 Logic bug, remove misplaced else.
14018
14019 2002-02-07 Klee Dienes <klee@apple.com>
14020
14021 * fork-inferior.c (fork_inferior): Add '!' to the list of
14022 characters that need to be quoted when building a string for the
14023 shell. Quote '!' specifically with a backslash, since CSH chokes
14024 when trying to evaluate "str!str".
14025
14026 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
14027
14028 * rdi-share/host.h: Only provide a typedef for bool if it is not
14029 defined.
14030
14031 2002-02-04 Michael Snyder <msnyder@redhat.com>
14032
14033 * breakpoint.h (enum bptype): Add new overlay event bp type.
14034 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
14035
14036 * breakpoint.c (create_internal_breakpoint): New function.
14037 (internal_breakpoint_number): Moved into create_internal_breakpoint.
14038 (create_longjmp_breakpoint): Use create_internal_breakpoint.
14039 (create_thread_event_breakpoint): Ditto.
14040 (create_solib_event_breakpoint): Ditto.
14041 (create_overlay_event_breakpoint): New function.
14042 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
14043 (update_breakpoints_after_exec): Delete and re-initialize
14044 overlay event breakpoints after an exec. Add FIXME comment
14045 about longjmp breakpoint.
14046 (print_it_typical): Ignore overlay event breakpoints.
14047 (print_one_breakpoint): Ditto.
14048 (mention): Ditto.
14049 (bpstat_what): Do not stop for overlay event breakpoints.
14050 (delete_breakpoint): Don't delete overlay event breakpoints.
14051 (breakpoint_re_set_one): Delete the overlay event breakpoint.
14052 (breakpoint_re_set): Re-create overlay event breakpoint.
14053
14054 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14055 (overlay_manual_command): Disable overlay breakpoints.
14056 (overlay_off_command): Disable overlay breakpoints.
14057
14058 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14059
14060 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14061 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14062 to here from config/tm-arm.h.
14063 (coff_sym_is_thumb): Make static.
14064 (arm_elf_make_msymbol_special): New function.
14065 (arm_coff_make_msymbol_special): New function.
14066 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14067 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14068 (coff_sym_is_thumb): Delete declaration.
14069 (arm_elf_make_msymbol_special): Declare.
14070 (arm_coff_make_msymbol_special): Declare.
14071 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14072 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14073
14074 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14075
14076 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14077
14078 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14079
14080 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14081 * gdbarch.c gdbarch.h: Regenerate.
14082 * arch-utils.c (default_print_float_info): New function.
14083 * arch-utils.h (default_print_float_info): Prototype it.
14084 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14085 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14086 (PRINT_FLOAT_INFO): Document it.
14087
14088 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14089 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14090 (PRINT_FLOAT_INFO): Define.
14091
14092 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14093
14094 * win32-nat.c (_initialize_check_for_gdb_ini):
14095 Add typecast to sprintf argument to suppress a warning.
14096
14097 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14098
14099 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14100 to allow easier handling of pass state.
14101 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14102 that gives exception name and address.
14103 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14104 and set last_sig value to ourstatus->value.sig. Some missing
14105 exceptions added.
14106 (child_continue): Correctly report continue_status.
14107 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14108 TARGET_SIGNAL_0 (new default value).
14109 (child_resume): consider sig argument passed to decide if
14110 the exception should be passed to debuggee or not.
14111
14112 2002-02-05 Michael Snyder <msnyder@redhat.com>
14113
14114 * regcache.c (fetch_register): Call target_fetch_register
14115 only if we don't call FETCH_PSEUDO_REGISTER.
14116 (store_register): Call target_store_register only if we
14117 don't call STORE_PSEUDO_REGISTER.
14118
14119 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14120
14121 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14122 ELF_MAKE_MSYMBOL_SPECIAL.
14123 * gdbarch.c, gdbarch.h: Regenerate.
14124 * arch-utils.c (default_make_msymbol_special): New function.
14125 * arch-utils.h (default_make_msymbol_special): Export.
14126 * elfread.c (elf_symtab_read): Compile use of
14127 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14128 multiarched.
14129 * coffread.c (coff_symtab_read): Ditto, for
14130 COFF_MAKE_MSYMBOL_SPECIAL.
14131
14132 2002-02-05 Jim Blandy <jimb@redhat.com>
14133
14134 * solib-svr4.c (svr4_truncate_ptr): New function.
14135 (svr4_relocate_section_addresses): Do the address arithmetic with
14136 the appropriate truncation for target addresses, even when
14137 CORE_ADDR is larger than a target address.
14138
14139 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14140
14141 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14142 to (int *).
14143
14144 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14145
14146 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14147 code.
14148
14149 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14150
14151 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14152
14153 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14154
14155 * gdbserver/linux-low.c: Remove unused include files.
14156
14157 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14158
14159 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14160 (read_inferior_memory): Use it.
14161 (write_inferior_memory): Likewise.
14162
14163 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14164
14165 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14166 grubbing through sys_errlist.
14167
14168 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14169
14170 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14171
14172 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14173 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14174
14175 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14176
14177 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14178 (do_sfunc, set_cmd_sfunc): New functions.
14179
14180 * command.h (struct cmd_list_element): Add field func.
14181 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14182 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14183 * cli/cli-decode.h: Ditto.
14184
14185 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14186 (help_all, help_cmd_list): Ditto.
14187 (find_cmd, complete_on_cmdlist): Ditto.
14188 * top.c (execute_command): Ditto.
14189
14190 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14191 function.sfunc.
14192
14193 * infcmd.c (notice_args_read): Fix function signature.
14194
14195 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14196 * cli/cli-decode.c (add_set_cmd): Ditto.
14197 * utils.c (initialize_utils): Ditto.
14198 * maint.c (_initialize_maint_cmds): Ditto.
14199 * infrun.c (_initialize_infrun): Ditto.
14200 * demangle.c (_initialize_demangler): Ditto.
14201 * remote.c (add_packet_config_cmd): Ditto.
14202 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14203 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14204 * proc-api.c (_initialize_proc_api): Ditto.
14205 * kod.c (_initialize_kod): Ditto.
14206 * valprint.c (_initialize_valprint): Ditto.
14207 * top.c (init_main): Ditto.
14208 * infcmd.c (_initialize_infcmd): Ditto.
14209 * corefile.c (_initialize_core): Ditto.
14210 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14211 * arch-utils.c (initialize_current_architecture): Ditto.
14212 (_initialize_gdbarch_utils): Ditto.
14213 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14214
14215 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14216 * wince.c (_initialize_inftarg): Ditto.
14217 * symfile.c (_initialize_symfile): Ditto.
14218 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14219 * language.c (_initialize_language): Ditto.
14220 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14221
14222 2002-02-04 Michael Snyder <msnyder@redhat.com>
14223
14224 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14225
14226 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14227
14228 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14229 Add rules for building the register data files.
14230
14231 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14232
14233 * regformats/regdat.sh: Add braces to the definition of
14234 expedite_regs_${arch}.
14235
14236 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14237
14238 * regformats/regdef.h (struct reg): Add comment describing the
14239 requirements for offset and size fields.
14240
14241 2002-02-04 Andreas Schwab <schwab@suse.de>
14242
14243 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14244 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14245
14246 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14247
14248 * gdbarch.sh (copyright): Update years in generated header.
14249 (SMASH_TEXT_ADDRESS): Add rule.
14250 * gdbarch.h, gdbarch.c: Re-generate.
14251 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14252 * dbxread.c: Likewise.
14253 * dwarfread.c: Likewise.
14254 * elfread.c: Likewise.
14255 * somread.c: Likewise.
14256
14257 * arm-tdep.c (arm_smash_text_address): New function.
14258 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14259
14260 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14261
14262 Add support for hardware watchpoints on win32 native.
14263 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14264 CONTEXT_DEBUG_REGISTERS.
14265 (dr variable): New variable. Static array containing a local copy
14266 of debug registers.
14267 (debug_registers_changed): New variable. Reflects when debug registers
14268 are changed and need to be written to inferior.
14269 (debug_registers_used): New variable. Reflects when any debug register
14270 was set, used when new threads are created.
14271 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14272 i386-nat code.
14273 (thread_rec): Set dr array if id is the thread of current_event .
14274 (child_continue, child_resume): Change the debug registers for all
14275 threads if debug_registers_changed.
14276 (child_add_thread): Change the debug registers if debug_registers_used.
14277 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14278 Link nm.h to new nm-cygwin.h file.
14279 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14280 of hardware registers.
14281
14282 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14283
14284 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14285 Restore behavour broken by 2002-01-20 Andrew Cagney
14286 <ac131313@redhat.com> IEEE_FLOAT removal.
14287
14288 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14289
14290 * c-valprint.c (c_val_print): Pass a proper valaddr to
14291 cp_print_class_method.
14292 * valops.c (search_struct_method): If there is only one method
14293 and args is NULL, return that method.
14294
14295 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14296
14297 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14298 accessing tag_name directly.
14299
14300 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14301
14302 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14303 of accessing tag_name directly.
14304
14305 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14306
14307 PR gdb/280
14308 * gdbtypes.c (replace_type): New function.
14309 * gdbtypes.h (replace_type): Add prototype.
14310 * stabsread.c (read_type): Use replace_type.
14311
14312 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14313
14314 * Makefile.in (memattr.o): Add missing dependencies rule.
14315
14316 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14317
14318 * breakpoint.c (break_at_finish_command): Really export.
14319 (break_at_finish_at_depth_command): Ditto.
14320 (tbreak_at_finish_command): Ditto.
14321 * hppa-tdep.c: Include completer.h.
14322 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14323 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14324
14325 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14326
14327 * utils.c (do_write): New function.
14328 (error_stream): Rewrite combining the code from error_begin and
14329 verror.
14330 (verror): Rewrite using error_stream.
14331 (error_begin): Delete function.
14332
14333 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14334
14335 * utils.c (error_begin): Make static.
14336 * defs.h (error_begin): Delete declaration.
14337
14338 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14339 (decode_line_1): Use cplusplus_error instead of error_begin,
14340 cplusplus_hint and return_to_top_level.
14341 * coffread.c (coff_symfile_read): Use error instead of error_begin
14342 and return_to_top_level.
14343 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14344
14345 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14346
14347 * language.h (type_error, range_error): Make string parameter
14348 constant.
14349 * language.c (warning_pre_print): Delete extern declaration.
14350 * dwarfread.c (warning_pre_print): Ditto.
14351 * language.c (type_error, range_error): Rewrite to use verror and
14352 vwarning instead of warning_begin.
14353
14354 2002-02-01 Michael Snyder <msnyder@redhat.com>
14355
14356 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14357 (set_ignore_count): Move misplaced comment back where it belongs.
14358
14359 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14360
14361 * command.h (NO_FUNCTION): Delete macro.
14362 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14363 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14364 * tracepoint.c (_initialize_tracepoint): Ditto.
14365 * cli/cli-decode.c (add_set_cmd): Ditto.
14366 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14367
14368 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14369
14370 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14371 Update ``this'' pointer when calling virtual functions.
14372
14373 2002-02-01 Michael Snyder <msnyder@redhat.com>
14374
14375 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14376 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14377
14378 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14379
14380 * regformats/reg-arm.dat: New file.
14381 * regformats/reg-i386.dat: New file.
14382 * regformats/reg-ia64.dat: New file.
14383 * regformats/reg-m68k.dat: New file.
14384 * regformats/reg-mips.dat: New file.
14385 * regformats/reg-ppc.dat: New file.
14386 * regformats/reg-sh.dat: New file.
14387 * regformats/regdef.h: New file.
14388 * regformats/regdat.sh: New file.
14389
14390 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14391
14392 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14393 (arm_frame_args_address, arm_frame_locals_address): New functions.
14394 (arm_frame_num_args): New function.
14395 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14396 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14397 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14398
14399 2002-01-31 Michael Snyder <msnyder@redhat.com>
14400
14401 * breakpoint.c (break_at_finish_command): Export.
14402 (break_at_finish_at_depth_command): Export.
14403 (tbreak_at_finish_command): Export.
14404 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14405 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14406 "txbreak" commands, which are HPPA specific.
14407
14408 * printcmd.c (disassemble_command): Remove an ancient
14409 artifact of an old merge.
14410
14411 * symfile.h (enum overlay_debugging_state):
14412 Define enum constant values for overlay mode.
14413 * symfile.c (overlay_debugging): Use enums instead of literals.
14414 (overlay_is_mapped, overlay_auto_command,
14415 overlay_manual_command): Ditto.
14416
14417 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14418 breakpoint_here_p, breakpoint_inserted_here_p,
14419 breakpoint_thread_match, bpstat_stop_status,
14420 describe_other_breakpoints, check_duplicates, clear_command):
14421 Coding standard fixes.
14422
14423 * target.c (target_xfer_memory): Add spaces, coding standard.
14424 (do_xfer_memory): Add missing line to trust-readonly
14425 code: check bfd SEC_READONLY flag for section.
14426
14427 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14428
14429 * PROBLEMS: Fix typo, 5.1->5.1.1.
14430
14431 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14432
14433 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14434 data symbols, since we search based on textlow and texthigh.
14435 (find_pc_sect_symtab): Likewise.
14436
14437 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14438
14439 * defs.h (vwarning): Declare.
14440 * utils.c (vwarning): New function.
14441 (warning): Call vwarning.
14442 (warning_begin): Delete function.
14443
14444 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14445 the warning message.
14446 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14447 warning_begin.
14448
14449 2002-01-30 Michael Snyder <msnyder@redhat.com>
14450
14451 * NEWS: Mention "set trust-readonly-sections" command.
14452 Mention generate-core-file command.
14453
14454 2002-01-15 Michael Snyder <msnyder@redhat.com>
14455
14456 * target.c: New command, "set trust-readonly-sections on".
14457 (do_xfer_memory): Honor the suggestion to trust readonly sections
14458 by reading them from the object file instead of from the target.
14459 (initialize_targets): Register command "set trust-readonly-sections".
14460
14461 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14462
14463 * parse.c (target_map_name_to_register): Simplify, search regs and
14464 pseudo-regs using a single loop.
14465
14466 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14467
14468 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14469
14470 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14471
14472 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14473 * config/i386/i386v42mp.mh: Add i387-nat.o .
14474 * i386v4-nat.c: Include i387-nat.h.
14475 (supply_fpregset): Use i387_supply_fsave.
14476 (fill_fpregset): Use i387_fill_fsave.
14477
14478 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14479
14480 * arm-tdep.c (arm_call_dummy_words): Define.
14481 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14482 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14483 (CALL_DUMMY_WORDS): Define.
14484 (arm_call_dummy_words): Declare.
14485 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14486 (arm_linux_call_dummy_words): Declare.
14487
14488 2002-01-30 Andreas Schwab <schwab@suse.de>
14489
14490 * m68klinux-nat.c: Fix last change to use regcache_collect
14491 instead of referencing registers[] directly.
14492
14493 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14494
14495 * parse.c (target_map_name_to_register): Delete code wrapped in
14496 #ifdef REGISTER_NAME_ALIAS_HOOK.
14497
14498 2002-01-28 Michael Snyder <msnyder@redhat.com>
14499
14500 * regcache.c (legacy_read_register_gen): Need to be able to
14501 read pseudo-register as well as real register.
14502 (legacy_write_register_gen): Ditto.
14503
14504 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14505
14506 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14507 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14508 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14509 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14510 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14511 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14512 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14513 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14514 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14515 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14516 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14517 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14518 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14519 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14520 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14521 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14522 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14523 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14524 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14525 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14526
14527 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14528
14529 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14530 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14531 (initialize_current_architecture): Update target_byte_order using
14532 information from BFD.
14533 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14534 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14535
14536 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14537
14538 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14539 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14540
14541 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14542 #ifdef INVALID_FLOAT.
14543 * infcmd.c (do_registers_info): Ditto.
14544 * values.c (unpack_double): Ditto. Add comment.
14545
14546 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14547 already commented out.
14548
14549 2002-01-26 Andreas Schwab <schwab@suse.de>
14550
14551 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14552 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14553 registers and add support for PTRACE_GETREGS.
14554
14555 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14556
14557 GDB 5.1.1 released from 5.1 branch.
14558 * NEWS: Add 5.1.1 news.
14559 * README: Sync with 5.1 branch.
14560
14561 2002-01-23 Fred Fish <fnf@redhat.com>
14562
14563 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14564 stabstring on initial malloc. Reallocing will copy it for us,
14565 if necessary.
14566
14567 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14568
14569 * Makefile.in (hpread_h): Delete.
14570 (HFILES_NO_SRCDIR): Remove hpread.h.
14571 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14572 (hpread.o): Update dependencies.
14573 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14574
14575 * hp-psymtab-read.c: Remove file.
14576 * hp-symtab-read.c: Remove file.
14577 * hpread.h: Remove file.
14578
14579 * hpread.c: Merge all contents of hp-psymtab-read.c,
14580 hp-symtab-read.c and hpread.h into this file, as it was prior to
14581 January 1999.
14582
14583 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14584 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14585 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14586 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14587
14588 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14589
14590 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14591 fill_gregset): Call gdbarch_tdep() just once, assign result to
14592 variable and use that, instead of calling the function several
14593 times.
14594
14595 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14596
14597 * configure.host: Accept sparcv9 as alias for sparc64.
14598 * configure.tgt: Likewise.
14599
14600 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14601
14602 * solib-aix5.c (build_so_list_from_mapfile)
14603 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14604 arguments is not reversed.
14605 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14606 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14607
14608 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14609
14610 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14611 modified version of obsolete sh_fetch_pseudo_register.
14612 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14613 (sh4_register_read): New function.
14614 (sh_pseudo_register_write): New function. Renamed and modified
14615 version of obsolete sh_store_pseudo_register.
14616 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14617 (sh4_register_write): New function.
14618 (sh_gdbarch_init): Remove setting of gdbarch function
14619 fetch_pseudo_register and store_pseudo_register. Remove setting of
14620 register_convert_to_raw, register_convert_to_virtual,
14621 register_convertible.
14622 (sh_sh4_register_convertible): Delete. No longer needed. All is
14623 taken care by architecture specific functions
14624 register_read/register_write.
14625 (sh_sh4_register_convert_to_virtual): Make static.
14626 (sh_sh4_register_convert_to_raw): Ditto.
14627
14628 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14629
14630 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14631 (floatformat_is_nan, floatformat_mantissa): Ditto.
14632
14633 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14634 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14635 builtin_type_ieee_double_little,
14636 builtin_type_ieee_double_littlebyte_bigword,
14637 builtin_type_m68881_ext, builtin_type_i960_ext,
14638 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14639 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14640 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14641 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14642
14643 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14644
14645 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14646 parameter. Set frameless flag if it exists and depended of
14647 whether the scanned function is frameless or not.
14648 (xstormy16_skip_prologue): If function is frameless, return
14649 result of xstormy16_scan_prologue().
14650 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14651 call.
14652
14653 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14654
14655 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14656 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14657 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14658 sh_sh4_register_byte, sh_sh4_register_raw_size,
14659 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14660 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14661 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14662 sh_store_pseudo_register, sh_do_pseudo_register): Call
14663 gdbarch_tdep() just once, assign result to variable and use that,
14664 instead of calling the function several times.
14665
14666 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14667
14668 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14669 macros instead of LAST_FPU_CTRL_REGNUM.
14670 (store_register): Likewise.
14671
14672 2002-01-21 Jim Blandy <jimb@redhat.com>
14673
14674 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14675 is up-to-date before running the program, not just when a program
14676 exits.
14677
14678 2002-01-21 Fred Fish <fnf@redhat.com>
14679
14680 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14681 when we have found all instructions we are looking for.
14682
14683 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14684
14685 * arm-tdep.c (arm_register_name): New function.
14686 (arm_registers_names): Make static.
14687 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14688 (arm_register_name): Declare.
14689 (REGISTER_NAME): Use it.
14690
14691 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14692 Kevin Buettner <kevinb@redhat.com>
14693
14694 Convert arm targets to new FRAME interface.
14695 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14696 (arm_frame_find_save_regs): Delete.
14697 (arm_frame_init_saved_regs): New.
14698 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14699 Allocate extra_info as required. Convert all uses of fsr.regs
14700 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14701 to use extra_info.
14702 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14703 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14704 (check_prologue_cache, save_prologue_cache): Likewise.
14705 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14706 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14707 (FRAME_FIND_SAVED_REGS): Delete.
14708 (arm_frame_find_saved_regs): Delete prototype.
14709 (arm_frame_init_saved_regs): New prototype.
14710 (FRAME_INIT_SAVED_REGS): Define.
14711
14712 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14713
14714 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14715
14716 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14717
14718 From Jeff Law <law@redhat.com>:
14719 * infttrace.c: Include <sys/pstat.h>.
14720 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14721 exec file if the ttrace equivalent fails.
14722
14723 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14724
14725 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14726 (closeLogFile): Ditto.
14727
14728 2002-01-20 Michael Chastain <mec@shout.net>
14729
14730 * top.c (print_gdb_version): Bump copyright year to 2002.
14731
14732 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14733
14734 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14735 Zannoni and Eli Zaretskii.
14736
14737 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14738
14739 * buildsym.c: Update copyright years.
14740 * c-typeprint.c: Likewise.
14741 * dwarf2read.c: Likewise.
14742 * f-typeprint.c: Likewise.
14743 * gdbtypes.c: Likewise.
14744 * gdbtypes.h: Likewise.
14745 * hp-symtab-read.c: Likewise.
14746 * hpread.c: Likewise.
14747 * mdebugread.c: Likewise.
14748 * p-typeprint.c: Likewise.
14749
14750 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14751
14752 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14753 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14754 byte-order selectable.
14755 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14756 * arch-utils.c: Ditto.
14757 (set_endian): Ditto.
14758 (set_endian_from_file): Ditto.
14759 * gdbserver/low-sim.c (create_inferior): Ditto.
14760 * gdbarch.sh: Ditto.
14761 * gdbarch.h: Re-generate.
14762 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14763 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14764 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14765 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14766 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14767 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14768 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14769 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14770 macro definition.
14771 * config/mips/tm-wince.h: Remove #undef of macro
14772 TARGET_BYTE_ORDER_SELECTABLE.
14773 * config/sh/tm-wince.h: Ditto.
14774
14775 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14776
14777 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14778 member function fields. Add accessor macro
14779 TYPE_FN_FIELD_ARTIFICIAL.
14780 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14781 * c-typeprint.c (c_type_print_base): Skip artificial member
14782 functions.
14783
14784 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14785
14786 * f-typeprint.c: Delete unused function f_type_print_args.
14787 * p-typeprint.c: Delete unused function pascal_type_print_args.
14788
14789 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14790
14791 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14792 comment. Add ``artificial'' to ``union field_location''.
14793
14794 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14795
14796 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14797 * mdebugread.c (parse_symbol): Likewise.
14798 * stabsread.c (define_symbol): Likewise.
14799 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14800 initializing TYPE_FIELD_BITPOS to n (obsolete).
14801 (hpread_doc_function_type): Likewise.
14802 * hpread.c (hpread_function_type): Likewise.
14803
14804 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14805
14806 * configure.in (host_makefile_frag): Only require a host makefile
14807 fragment when a native build.
14808 * configure: Re-generate.
14809
14810 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14811
14812 * doublest.h (floatformat_from_type): Declare.
14813 * doublest.c (floatformat_from_type): New function.
14814 (convert_typed_floating): Use.
14815
14816 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14817 call to function floatformat_from_type.
14818
14819 * gdbarch.sh (IEEE_FLOAT): Delete.
14820 * gdbarch.h, gdbarch.c: Re-generate.
14821 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14822 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14823 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14824 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14825 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14826 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14827 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14828 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14829 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14830 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14831 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14832 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14833
14834 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14835 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14836 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14837 * sh-tdep.c (sh_gdbarch_init): Ditto.
14838 * mips-tdep.c (mips_gdbarch_init): Ditto.
14839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14840 * cris-tdep.c (cris_gdbarch_init): Ditto.
14841
14842 2002-01-20 Jiri Smid <smid@suse.cz>
14843
14844 * configure.host, configure.tgt: Support x86-64.
14845 * NEWS: Note new target x86-64.
14846
14847 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14848 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14849 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14850 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14851 x86-64-linux-nat.o): Fix dependencies.
14852
14853 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14854
14855 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14856 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14857 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14858 * config/sparc/xm-sun4os4.h: Delete file.
14859 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14860
14861 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14862
14863 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14864 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14865 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14866 * config/i386/i386lynx.mh (XM_FILE): Delete.
14867 * config/rs6000/xm-rs6000ly.h: Delete file.
14868 * config/sparc/xm-sparclynx.h: Delete file.
14869 * config/m68k/xm-m68klynx.h: Delete file.
14870 * config/i386/xm-i386lynx.h: Delete file.
14871 * config/xm-lynx.h: Delete file.
14872 * config/djgpp/fnchange.lst: Update.
14873
14874 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14875
14876 * alpha-tdep.c (alpha_register_byte): New function.
14877 (alpha_register_raw_size): Ditto.
14878 (alpha_register_virtual_size): Ditto.
14879 (alpha_skip_prologue_internal): Renamed from
14880 alpha_skip_prologue.
14881 (alpha_skip_prologue): New version that calls
14882 alpha_skip_prologue_internal.
14883 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14884 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14885 second argument from alpha_skip_prologue.
14886 (REGISTER_BYTE): Use alpha_register_byte.
14887 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14888 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14889 (FRAMELESS_FUNCTION_INVOCATION): Use
14890 generic_frameless_function_invocation_not.
14891 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14892 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14893
14894 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14895
14896 * config/mips/xm-news-mips.h: Delete file.
14897 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14898
14899 * config/m88k/xm-m88k.h: Delete file.
14900 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14901 * config/m88k/xm-delta88v4.h: Ditto.
14902 * config/m88k/xm-delta88.h: Ditto.
14903
14904 * config/alpha/xm-fbsd.h: Delete file.
14905 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14906
14907 * config/sparc/xm-sparc.h: Delete file.
14908 * Makefile.in (xm-sun4os4.h): Delete dependency.
14909 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14910 * config/sparc/xm-sun4os4.h: Ditto.
14911 * config/sparc/xm-linux.h: Ditto.
14912
14913 * config/i386/xm-windows.h: Delete file.
14914
14915 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14916
14917 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14918 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14919
14920 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14921
14922 * alpha-tdep.c (alpha_call_dummy_words): New.
14923 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14924 (CALL_DUMMY_P): Define.
14925 (CALL_DUMMY_WORDS): Define.
14926 (SIZEOF_CALL_DUMMY_WORDS): Define.
14927
14928 2002-01-19 Per Bothner <per@bothner.com>
14929
14930 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14931 isn't NULL, which can happen with some gcj-3.x-produced code.
14932
14933 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14934
14935 * alpha-tdep.c (alpha_register_virtual_type): New function.
14936 (alpha_init_frame_pc_first): Ditto.
14937 (alpha_fix_call_dummy): Ditto.
14938 (alpha_store_struct_return): Ditto.
14939 (alpha_extract_struct_value_address): Ditto.
14940 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14941 alpha_register_virtual_type.
14942 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14943 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14944 alpha_extract_struct_value_address.
14945 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14946 (INIT_FRAME_PC): Use init_frame_pc_noop.
14947 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14948
14949 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14950
14951 * i386gnu-nat.c: Include "i386-tdep.h".
14952 (fetch_fpregs): Simplify code dealing with uninitialized floating
14953 point states such that it doesn't require FP7_REGNUM.
14954
14955 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14956
14957 * alpha-tdep.c (frame_extra_info): New.
14958 (alpha_find_saved_regs): Make static. Use
14959 frame->extra_info.
14960 (alpha_frame_init_saved_regs): New function.
14961 (alpha_frame_saved_pc): Use frame->extra_info.
14962 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14963 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14964 (init_extra_frame_info): Rename to...
14965 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14966 (alpha_print_extra_frame_info): New function.
14967 (alpha_frame_locals_address): Ditto.
14968 (alpha_frame_args_address): Ditto.
14969 (alpha_pop_frame): Use frame->extra_info.
14970 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14971 alpha_frame_args_address.
14972 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14973 (alpha_find_saved_regs): Remove prototype.
14974 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14975 (EXTRA_FRAME_INFO): Remove.
14976 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14977 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14978
14979 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14980
14981 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14982 (alpha_cannot_fetch_register): Ditto.
14983 (alpha_cannot_store_register): Ditto.
14984 (alpha_register_convertible): Ditto.
14985 (alpha_use_struct_convention): Ditto.
14986 * config/alpha/tm-alpha.h: Update copyright years.
14987 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14988 (INNER_THAN): Use core_addr_lessthan.
14989 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14990 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14991 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14992 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14993 (FRAME_CHAIN): Remove unnecessary cast.
14994
14995 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14996
14997 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14998 obsolete.
14999
15000 2002-01-18 Andrew Cagney <ac131313@redhat.com>
15001
15002 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
15003 * monitor.c, remote-array.c, remote-bug.c: Ditto.
15004 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
15005 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
15006 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
15007 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
15008 * x86-64-linux-nat.c: Ditto.
15009
15010 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15011
15012 * alpha-tdep.c (alpha_register_name): New function.
15013 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
15014 (REGISTER_NAME): Define.
15015
15016 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15017
15018 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
15019
15020 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15021
15022 * alpha-tdep.c: Update copyright years.
15023 (alpha_next_pc): New function.
15024 (alpha_software_single_step): Ditto.
15025 * config/alpha/tm-alpha.h: Add prototype for
15026 alpha_software_single_step.
15027
15028 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
15029
15030 * alphabsd-nat.c: Update copyright years.
15031 (fill_gregset): Use regcache_collect.
15032 (fill_fpregset): Likewise.
15033 (fetch_inferior_registers): Only fetch integer registers
15034 if requested to do so.
15035 (store_inferior_registers): Only store integer registers
15036 if requested to do so.
15037
15038 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15039
15040 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
15041 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
15042 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
15043 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
15044 * config/alpha/fbsd.mh (XDEPFILES): Delete.
15045 * config/arm/linux.mh (XDEPFILES): Delete.
15046 * config/arm/nbsd.mh (XDEPFILES): Delete.
15047 * config/i386/i386dgux.mh (XDEPFILES): Delete.
15048 * config/i386/i386sol2.mh (XDEPFILES): Delete.
15049 * config/i386/i386m3.mh (XDEPFILES): Delete.
15050 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15051 * config/i386/i386gnu.mh (XDEPFILES): Delete.
15052 * config/i386/fbsd.mh (XDEPFILES): Delete.
15053 * config/i386/i386bsd.mh (XDEPFILES): Delete.
15054 * config/i386/i386sco5.mh (XDEPFILES): Delete.
15055 * config/i386/i386v4.mh (XDEPFILES): Delete.
15056 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15057 * config/i386/i386sco4.mh (XDEPFILES): Delete.
15058 * config/i386/i386aix.mh (XDEPFILES): Delete.
15059 * config/i386/go32.mh (XDEPFILES): Delete.
15060 * config/i386/cygwin.mh (XDEPFILES): Delete.
15061 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15062 * config/i386/i386mach.mh (XDEPFILES): Delete.
15063 * config/i386/i386v32.mh (XDEPFILES): Delete.
15064 * config/i386/linux.mh (XDEPFILES): Delete.
15065 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15066 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15067 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15068 * config/i386/i386sco.mh (XDEPFILES): Delete.
15069 * config/i386/i386v.mh (XDEPFILES): Delete.
15070 * config/i386/nbsd.mh (XDEPFILES): Delete.
15071 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15072 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15073 * config/i386/symmetry.mh (XDEPFILES): Delete.
15074 * config/i386/obsd.mh (XDEPFILES): Delete.
15075 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15076 * config/ia64/linux.mh (XDEPFILES): Delete.
15077 * config/ia64/aix.mh (XDEPFILES): Delete.
15078 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15079 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15080 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15081 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15082 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15083 * config/m68k/linux.mh (XDEPFILES): Delete.
15084 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15085 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15086 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15087 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15088 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15089 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15090 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15091 * config/m88k/delta88.mh (XDEPFILES): Delete.
15092 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15093 * config/m88k/m88k.mh (XDEPFILES): Delete.
15094 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15095 * config/mips/linux.mh (XDEPFILES): Delete.
15096 * config/mips/irix6.mh (XDEPFILES): Delete.
15097 * config/mips/irix5.mh (XDEPFILES): Delete.
15098 * config/mips/irix4.mh (XDEPFILES): Delete.
15099 * config/mips/irix3.mh (XDEPFILES): Delete.
15100 * config/mips/decstation.mh (XDEPFILES): Delete.
15101 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15102 (NATDEPFILES): Move core-aout.o to here.
15103 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15104 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15105 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15106 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15107 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15108 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15109 * config/pa/hpux11.mh (XDEPFILES): Delete.
15110 * config/powerpc/aix.mh (XDEPFILES): Delete.
15111 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15112 * config/powerpc/linux.mh (XDEPFILES): Delete.
15113 * config/romp/rtbsd.mh: Rename XDEPFILES.
15114 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15115 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15116 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15117 * config/s390/s390.mh (XDEPFILES): Delete.
15118 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15119 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15120 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15121 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15122 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15123 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15124 * config/sparc/linux.mh (XDEPFILES): Delete.
15125 * config/vax/vaxult.mh (XDEPFILES): Delete.
15126 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15127 * Makefile.in (DEPFILES): Remove XDEPFILES.
15128
15129 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15130
15131 * utils.c (internal_verror): Fix comments, default is yes not no.
15132 Update queries to match. Default to quit and dump core.
15133
15134 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15135
15136 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15137 copyright.
15138 * defs.h, event-top.c, gdbcmd.h: Ditto.
15139 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15140 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15141 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15142 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15143 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15144 * mi/mi-main.c:Ditto.
15145
15146 * stack.c, symfile.c: Update copyright.
15147
15148 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15149
15150 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15151 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15152 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15153 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15154
15155 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15156
15157 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15158 * gdbserver/low-lynx.c (myattach): Likewise.
15159 * gdbserver/low-nbsd.c (myattach): Likewise.
15160 * gdbserver/low-sim.c (myattach): Likewise.
15161 * gdbserver/low-sparc.c (myattach): Likewise.
15162 * gdbserver/low-sun3.c (myattach): Likewise.
15163
15164 * gdbserver/low-linux.c (myattach): New function.
15165
15166 * gdbserver/server.c (attach_inferior): New function.
15167 (main): Handle "--attach".
15168
15169 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15170
15171 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15172 maintainer.
15173
15174 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15175
15176 * c-typeprint.c (is_type_conversion_operator): Add additional
15177 check for non-conversion operators.
15178
15179 2002-01-15 Michael Snyder <msnyder@redhat.com>
15180
15181 * linux-proc.c: Add "info proc" command, a la procfs.c.
15182 (read_mapping): New function, abstract and re-use code.
15183 (linux_find_memory_regions): Use new func read_mapping.
15184 (linux_info_proc_cmd): New function, implement "info proc".
15185 (_initialize_linux_proc): Add new command "info proc".
15186
15187 2002-01-15 Michael Snyder <msnyder@redhat.com>
15188
15189 * symfile.c (generic_load): Use bfd_map_over_sections method
15190 instead of manipulating bfd structure members directly.
15191 (add_section_size_callback): New function, bfd sections callback
15192 used by generic_load.
15193 (load_sections_callback): New function, bfd sections callback
15194 used by generic_load.
15195
15196 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15197
15198 [Based on work by Jim Blandy]
15199 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15200 (builtin_type_vec128): Export.
15201 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15202 types.
15203 (builtin_type_vec128): New builtin type for 128 bit vector
15204 registers.
15205 (build_gdbtypes): Initialize builtin_type_v16qi and
15206 builtin_type_v8hi. Create the vec128 register builtin type
15207 structure.
15208 (build_builtin_type_vec128): New function.
15209 (_initialize_gdbtypes): Register builtin_type_v16qi and
15210 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15211 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15212 AltiVec register to new builtin type.
15213
15214 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15215
15216 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15217 to make_cv_type.
15218
15219 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15220
15221 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15222 CLEAN_UP_REGISTER_VALUE.
15223 * regcache.c (supply_register): Update only call.
15224
15225 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15226
15227 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15228 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15229 a29k-*-vxworks* targets as obsolete.
15230
15231 2002-01-14 Michael Snyder <msnyder@redhat.com>
15232
15233 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15234 until we can resolve portability issues.
15235 * gregset.h: Remove references to fpxregs.
15236 * gcore.c (gcore_command): Initialize note_sec to NULL.
15237
15238 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15239
15240 * signals.c (target_signal_to_name): Rewrite. Only use
15241 signals[].name when in bounds and non-NULL.
15242
15243 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15244
15245 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15246 * signals.c (target_signal_to_name): Verify that SIG is within the
15247 bounds of the signals array.
15248
15249 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15250
15251 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15252
15253 2002-01-13 Keith Seitz <keiths@redhat.com>
15254
15255 * stack.c (print_frame_info_base): Print the frame's pc
15256 only if when print_frame_info_listing_hook is not defined.
15257
15258 2002-01-13 Keith Seitz <keiths@redhat.com>
15259
15260 * varobj.c (varobj_set_value): Make sure that there were no
15261 errors evaluating the object before attempting to set its
15262 value.
15263 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15264 so this offset adjustment is no longer necessary.
15265 (create_child): Don't set the error flag if the child is
15266 a CPLUS_FAKE_CHILD.
15267 (value_of_child): If value_fetch_lazy fails, return NULL
15268 so that callers will be notified that an error occurred.
15269 (c_value_of_variable): Delay check of variable's validity
15270 until later. We actually want all structs and unions to have
15271 the value "{...}".
15272 Do not return "???" for variables which could not be evaluated.
15273 This error condition must be returned to the caller so that it
15274 can get the error condition from gdb.
15275 (cplus_name_of_child): Adjust index for vptr before figuring
15276 out the name of the child.
15277 (cplus_value_of_child): If a child's (real) parent is not valid,
15278 don't even bother trying to give a value for it. Just return
15279 an error. Change all instances in this function.
15280 (cplus_type_of_child): If our parent is one of the "fake"
15281 parents, we need to get at the type of the real parent, and
15282 derive the child's true type using this information.
15283
15284 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15285
15286 From 2002-01-09 John Marshall <johnm@falch.net>:
15287 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15288 sources.redhat.com, and tweak some related URLs which had
15289 suffered from linkrot.
15290
15291 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15292
15293 From Jeff law:
15294 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15295 structures passed in registers.
15296
15297 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15298
15299 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15300 white space which prevented compilation. Reported by DSK
15301 <dsk@student.unsw.edu.au>.
15302
15303 2002-01-11 Michael Snyder <msnyder@redhat.com>
15304
15305 * symfile.c (build_section_addr_info_from_section_tab):
15306 Use bfd access method instead of manipulating bfd directly.
15307 (syms_from_objfile): Ditto.
15308 (simple_overlay_update_1): Ditto.
15309 (simple_overlay_update): Ditto.
15310 (generic_load): Ditto.
15311 (overlay_unmapped_address): FIXME comment, bfd access methods.
15312 (sections_overlap): FIXME comment, bfd access methods.
15313 (pc_in_mapped_range): FIXME comment, bfd access methods.
15314 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15315 (section_is_mapped): FIXME comment, bfd access methods.
15316 (section_is_overlay): FIXME comment, bfd access methods.
15317
15318 * symfile.c (generic_load): Whitespace and long line cleanups.
15319 Remove duplicate variable, change several local variables to
15320 more appropriate data types.
15321 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15322
15323 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15324
15325 From Peter Schauer:
15326 * language.c (longest_local_hex_string_custom): Use phex_nz to
15327 convert NUM to a hex string.
15328
15329 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15330
15331 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15332 the function.
15333 Update Copyright year.
15334
15335 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15336
15337 * language.c (longest_raw_hex_string): Delete unused function.
15338
15339 2002-01-11 Petr Sorfa <petrs@caldera.com>
15340
15341 * MAINTAINERS (write-after-approval): Add myself.
15342 * dwarf2read.c (read_tag_string_type): Handling of
15343 DW_AT_byte_size.
15344 (read_tag_string_type): FORTRAN fix to prevent propagation of
15345 first string size.
15346 (set_cu_language): Handling of DW_LANG_Fortran95
15347
15348 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15349
15350 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15351 GETPID(inferior_ptid).
15352 (store_inferior_registers): Likewise.
15353
15354 2002-01-10 Jason Merrill <jason@redhat.com>
15355
15356 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15357 Fix DW_OP_minus.
15358
15359 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15360
15361 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15362 and bfd/elf32-sh-nbsd.c.
15363
15364 2002-01-10 Michael Snyder <msnyder@redhat.com>
15365
15366 * NEWS: Mention --pid and corefile/proc-id behavior change.
15367
15368 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15369 * gcore.c: Include cli/cli-decode.h instead of command.h.
15370
15371 * main.c (captured_main): Add new command line option "--pid".
15372 If the second command line argument (following the symbol-file)
15373 begins with a digit, try to attach to it before trying to open
15374 it as a corefile.
15375 (print_gdb_help): Document the "--pid" argument.
15376
15377 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15378
15379 * completer.c (command_completer): New function.
15380
15381 * completer.h <command_completer>: Add prototype.
15382
15383 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15384 completer for the "help" command.
15385
15386 2002-01-09 Jason Merrill <jason@redhat.com>
15387
15388 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15389
15390 2002-01-09 Michael Snyder <msnyder@redhat.com>
15391
15392 * i386-linux-nat.c (fill_fpxregset): Make global.
15393 (store_fpxregset): Ditto.
15394
15395 * gregset.h (gdb_fpxregset_t): Define.
15396 (supply_fpxregset): Prototype.
15397 (fill_fpxregset): Prototype.
15398
15399 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15400
15401 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15402
15403 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15404 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15405 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15406
15407 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15408
15409 * MAINTAINERS: Update target maintainer rules so that any
15410 Maintainer can approve a tested patch for a maintenance-only
15411 target.
15412
15413 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15414
15415 * MAINTAINERS (write-after-approval): Add myself.
15416
15417 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15418 IN_SIGTRAMP.
15419
15420 2002-01-08 Michael Snyder <msnyder@redhat.com>
15421
15422 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15423 real name of the executable, rather than the /proc name.
15424
15425 2002-01-03 Michael Snyder <msnyder@redhat.com>
15426
15427 Implement a "generate-core-file" command in gdb, save target state.
15428 * gcore.c: New file. Implement new command 'generate-core-file'.
15429 Save a corefile image of the current state of the inferior.
15430 * linux-proc.c: Add linux-specific code for saving corefiles.
15431 * target.h (struct target_ops): Add new target vectors for saving
15432 corefiles; to_find_memory_regions and to_make_corefile_notes.
15433 (target_find_memory_regions): New macro.
15434 (target_make_corefile_notes): New macro.
15435 * target.c (update_current_target): Inherit new target methods.
15436 (dummy_find_memory_regions): New place-holder method.
15437 (dummy_make_corefile_notes): New place-holder method.
15438 (init_dummy_target): Initialize new dummy target vectors.
15439 * exec.c (exec_set_find_memory_regions): New function.
15440 Allow the exec_ops vector for memory regions to be taken over.
15441 (exec_make_note_section): New function, target vector method.
15442 * defs.h (exec_set_find_memory_regions): Export prototype.
15443 * procfs.c (proc_find_memory_regions): New function, corefile method.
15444 (procfs_make_note_section): New function, corefile method.
15445 (init_procfs_ops): Set new target vector pointers.
15446 (find_memory_regions_callback): New function.
15447 (procfs_do_thread_registers): New function.
15448 (procfs_corefile_thread_callback): New function.
15449 * sol-thread.c (sol_find_memory_regions): New function.
15450 (sol_make_note_section): New function.
15451 (init_sol_thread_ops): Initialize new target vectors.
15452 * inftarg.c (inftarg_set_find_memory_regions): New function.
15453 Allow to_find_memory_regions vector to be taken over.
15454 (inftarg_set_make_corefile_notes): New function.
15455 Allow to_make_corefile_notes vector to be taken over.
15456 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15457 interface layer if not target_has_execution (may be a corefile).
15458 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15459 * config/sparc/sun4sol2.mh: Ditto.
15460 * config/alpha/alpha-linux.mh: Ditto.
15461 * config/arm/linux.mh: Ditto.
15462 * config/i386/x86-64linux.mh: Ditto.
15463 * config/ia64/linux.mh: Ditto.
15464 * config/m68k/linux.mh: Ditto.
15465 * config/mips/linux.mh: Ditto.
15466 * config/powerpc/linux.mh: Ditto.
15467 * config/sparc/linux.mh: Ditto.
15468
15469 2002-01-07 Michael Snyder <msnyder@redhat.com>
15470
15471 * arm-linux-nat.c: Remove references to regcache.c internal data
15472 (registers[] and register_valid[]).
15473
15474 2002-01-07 Michael Snyder <msnyder@redhat.com>
15475
15476 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15477 so that attaching to a pid will automatically read the process's
15478 symbol file and shlibs.
15479 * Makefile.in: Add rule for linux-proc.o.
15480 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15481 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15482 * config/arm/linux.mh: Ditto.
15483 * config/i386/linux.mh: Ditto.
15484 * config/i386/x86-64linux.mh: Ditto.
15485 * config/ia64/linux.mh: Ditto.
15486 * config/m68k/linux.mh: Ditto.
15487 * config/mips/linux.mh: Ditto.
15488 * config/powerpc/linux.mh: Ditto.
15489 * config/sparc/linux.mh: Ditto.
15490
15491 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15492
15493 * win32-nat.c: Add i386-tdep.h dependency.
15494
15495 2002-01-07 Michael Snyder <msnyder@redhat.com>
15496
15497 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15498 instead of bfd_get_arch_size. Don't bail out just because
15499 there's no exec_bfd.
15500
15501 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15502 * p-valprint.c (pascal_object_print_value): Ditto.
15503 * somread.c (som_symtab_read): Ditto.
15504 * symfile.c (simple_free_overlay_region_table): Ditto.
15505 * valops.c (value_assign): Ditto.
15506
15507 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15508 use tilde_expand and strerror for opening save-tracepoints file.
15509
15510 * thread-db.c (thread_db_new_objfile): Indendation fix.
15511
15512 * infptrace.c (GDB_MAX_ALLOCA): New define.
15513 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15514 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15515 can be overridden with whatever value is appropriate to the host).
15516 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15517 alloca to allocate potentially large buffer.
15518 * rs6000-nat.c (child_xfer_memory): Ditto.
15519 * symm-nat.c (child_xfer_memory): Ditto.
15520 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15521
15522 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15523
15524 From Nick Clifton <nickc@redhat.com>
15525 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15526
15527 2002-01-07 Michael Snyder <msnyder@redhat.com>
15528
15529 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15530 Don't use exec_bfd if it's NULL.
15531
15532 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15533
15534 * valops.c (value_arg_coerce): Fix formatting.
15535
15536 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15537
15538 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15539 * gnu-nat.c: Ditto.
15540
15541 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15542
15543 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15544 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15545 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15546 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15547 z8k-coff have not been multi-arched. Update z8k-coff build
15548 status.
15549
15550 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15551
15552 * MAINTAINERS: Mark a29k target as obsolete.
15553 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15554 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15555 comments.
15556 * NEWS: Note that a29k targets are obsolete.
15557 * a29k-tdep.c: Mark as obsolete.
15558 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15559 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15560 a29k-*-vxworks* targets as obsolete.
15561 * remote-adapt.c: Obsolete.
15562 * remote-eb.c: Obsolete.
15563 * remote-mm.c: Obsolete.
15564 * remote-udi.c: Obsolete.
15565 * config/a29k/a29k-udi.mt: Obsolete.
15566 * config/a29k/a29k.mt: Obsolete.
15567 * config/a29k/tm-a29k.h: Obsolete.
15568 * config/a29k/tm-vx29k.h: Obsolete.
15569 * config/a29k/vx29k.mt: Obsolete.
15570
15571 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15572
15573 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15574 with BFD_ENDIAN_BIG.
15575
15576 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15577
15578 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15579 * configure, config.in: Re-generate.
15580 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15581 * defs.h: Do not include <endian.h>.
15582
15583 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15584
15585 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15586 * config.in: Regenerate.
15587 * configure.in: Update copyright years.
15588 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15589 * configure: Regenerate.
15590 * i386bsd-nat.c: Update copyright years.
15591 (fill_gregset): Use regcache_collect.
15592 (fetch_inferior_registers): Only fetch integer registers
15593 if requested to do so. Add support for XMM registers
15594 using PT_GETXMMREGS.
15595 (store_inferior_registers): Only store integer registers
15596 if requested to do so. Add support for XMM registers
15597 using PT_SETXMMREGS.
15598 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15599 (store_inferior_registers): Remove.
15600 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15601 (fetch_elfcore_registers): New function.
15602 (i386nbsd_elfcore_fns): New.
15603 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15604 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15605 i386bsd-nat.o.
15606 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15607 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15608 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15609 * config/i386/tm-nbsd.h: Update copyright years.
15610 (HAVE_SSE_REGS): Define.
15611 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15612 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15613 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15614 (SIGCONTEXT_PC_OFFSET): Remove.
15615 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15616
15617 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15618
15619 * configure.tgt: Remove powerpc-*-macos* target.
15620 * config/m68k/xm-mpw.h: Delete file.
15621 * config/xm-mpw.h: Delete file.
15622 * ser-mac.c: Delete file.
15623 * mpw-make.sed: Delete file.
15624 * mpw-config.in: Delete file.
15625 * mac-xdep.c: Delete file.
15626 * mac-gdb.r: Delete file.
15627 * mac-defs.h: Delete file.
15628 * mac-nat.c: Delete file.
15629 * config/powerpc/macos.mh: Delete file.
15630 * config/powerpc/macos.mt: Delete file.
15631 * config/powerpc/nm-macos.h: Delete file.
15632 * config/powerpc/tm-macos.h: Delete file.
15633 * source.c (openp, open_source_file): Remove obsolete code.
15634 * top.c (gdb_readline): Ditto.
15635 * utils.c (query): Ditto.
15636 * event-top.c (display_gdb_prompt): Ditto.
15637 * Makefile.in (ser-mac.o): Delete obsolete target.
15638 * NEWS: Update.
15639
15640 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15641
15642 * defs.h (BIG_ENDIAN): Delete macro definition.
15643 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15644 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15645 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15646 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15647 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15648 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15649 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15650 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15651 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15652 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15653 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15654 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15655 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15656 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15657 * gdbarch.c: Re-generate.
15658
15659 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15660
15661 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15662 for core files.
15663
15664 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15665
15666 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15667
15668 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15669
15670 * value.h (value_ptr): Delete typedef.
15671
15672 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15673
15674 * i386nbsd-nat.c: Update copyright years.
15675 Include i386-tdep.h.
15676
15677 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15678
15679 * stabsread.c: Update copyright years.
15680
15681 From Debashis Mahata <debashis.mahata@wipro.com>:
15682 (read_struct_fields): Deal with Sun C compiler erroneous stab
15683 output for structs and unions.
15684 Fix PR gdb/269.
15685
15686 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15687
15688 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15689 prototype.
15690
15691 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15692
15693 * cp-abi.c: Fix whitespace.
15694 (baseclass_offset): New wrapper function.
15695 * cp-abi.h (baseclass_offset): Add prototype.
15696 (struct cp_abi_ops): Add baseclass_offset pointer.
15697
15698 * valops.c (vb_match): Move to...
15699 * gnu-v2-abi.c (vb_match): here.
15700 * valops.c (baseclass_offset): Move to...
15701 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15702
15703 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15704
15705 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15706 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15707 * hpacc-abi.c (init_hpacc_ops): Likewise.
15708
15709 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15710
15711 * valops.c (find_overload_match): Accept obj as a
15712 reference parameter. Update it before returning.
15713 * value.h (find_overload_match): Update prototype.
15714 * eval.c (evaluate_subexp_standard): Pass object to
15715 find_overload_match by reference.
15716
15717 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15718
15719 * valarith.c: Replace value_ptr with struct value pointer. Remove
15720 register attribute from value declarations.
15721 * valops.c: Ditto.
15722 * value.h: Ditto.
15723 * scm-lang.c (scm_lookup_name): Ditto.
15724
15725 2002-01-03 Michael Snyder <msnyder@redhat.com>
15726
15727 Abstract the functionality of iterating over mapped memory
15728 regions into a general purpose iterator function.
15729 * procfs.c (iterate_over_mappings): New function, general purpose
15730 iterator for memory sections.
15731 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15732 (solib_mappings_callback): New function, callback for above.
15733 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15734 (info_mappings_callback): New function, callback for above.
15735
15736 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15737
15738 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15739
15740 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15741 * i386-tdep.c: Include "elf-bfd.h".
15742 (process_note_abi_tag_sections): New function.
15743 (i386_gdbarch_init): Add code to recognize various OS/ABI
15744 combinations.
15745
15746 * maint.c (_initialize_maint_cmds): Add missing \ in
15747 string-literal.
15748
15749 For older changes see ChangeLog-2001
15750 \f
15751 Local Variables:
15752 mode: change-log
15753 left-margin: 8
15754 fill-column: 74
15755 version-control: never
15756 End:
This page took 0.323546 seconds and 5 git commands to generate.