2002-09-17 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
20bcf01c
AC
12002-09-17 Andrew Cagney <ac131313@redhat.com>
2
3 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4 invalid, return SP_REGNUM.
5
009a9971 62002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
7
8 * mips-tdep.c (mips_pop_frame): Read saved values of floating
9 point registers without sign extension.
10
135c175f
AC
112002-09-17 Andrew Cagney <cagney@redhat.com>
12
13 * blockframe.c (deprecated_read_register_dummy): Rename
14 generic_read_register_dummy.
15 * frame.c (frame_unwind_signed_register): New function.
16 (frame_unwind_unsigned_register): New function.
17 * frame.h (frame_unwind_signed_register): Declare.
18 (frame_unwind_unsigned_register): Declare.
19 (deprecated_read_register_dummy): Rename
20 generic_read_register_dummy.
21
22 * h8300-tdep.c (h8300_frame_chain): Update.
23 (h8300_frame_saved_pc): Update.
24 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
25 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
26 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
27 (s390_frame_chain): Update.
28 * v850-tdep.c (v850_find_callers_reg): Update.
29 (v850_frame_saved_pc): Update.
30 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
31 (m32r_find_callers_reg): Update.
32 (m32r_frame_saved_pc): Update.
33 * sh-tdep.c (sh_find_callers_reg): Update.
34 (sh64_get_saved_pr): Update.
35 (sh_init_extra_frame_info): Update.
36 (sh_init_extra_frame_info): Update.
37 (sh64_init_extra_frame_info): Update.
38 (sh64_init_extra_frame_info): Update.
39 * mcore-tdep.c (mcore_find_callers_reg): Update.
40 (mcore_frame_saved_pc): Update.
41 (mcore_init_extra_frame_info): Update.
42 * i386-tdep.c (i386_frame_saved_pc): Update.
43 * ia64-tdep.c (ia64_frame_saved_pc): Update.
44 (ia64_init_extra_frame_info): Update.
45 (ia64_init_extra_frame_info): Update.
46 * d10v-tdep.c (d10v_frame_saved_pc): Update.
47 * cris-tdep.c (cris_init_extra_frame_info): Update.
48 * avr-tdep.c (avr_frame_chain): Update.
49 (avr_init_extra_frame_info): Update.
50 (avr_frame_saved_pc): Update.
51 * arm-tdep.c (arm_find_callers_reg): Update.
52 (arm_init_extra_frame_info): Update.
53 (arm_frame_saved_pc): Update.
54
a741e514
TT
552002-09-17 Tom Tromey <tromey@redhat.com>
56
57 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
58 is "'".
59
d1a8e808
CV
602002-09-17 Corinna Vinschen <vinschen@redhat.com>
61
62 * MAINTAINERS: Remove "non multi-arched" text from h8300.
63 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
64 NEXT_PROLOGUE_INSN.
65 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
66 NEXT_PROLOGUE_INSN.
67
d9025a18
JB
682002-09-16 Joel Brobecker <brobecker@gnat.com>
69
70 * osfsolib.c: Remove file, replaced by solib-osf.c.
71 * Makefile.in: Remove compilation rules for osfsolib.c.
72
1b2ef1b6
DC
732002-09-16 David Carlton <carlton@math.stanford.edu>
74
75 * cp-valprint.c (cp_print_class_method): Correct args to
76 check_stub_method_group.
77
928e48af
CV
782002-09-16 Corinna Vinschen <vinschen@redhat.com>
79
80 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
81 `set architecture'. Unify naming convention of functions.
82 (h8300_skip_prologue): Improve prologue analysis.
83 (h8300_push_arguments): Rewritten to more closely match GCC's
84 bizarre argument-passing behavior, along with the comment describing
85 said behavior.
86 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
87 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
88 sim, remote-e7000.c, remote-hms.c and remote.c
89
5e3397bb
MK
902002-09-15 Mark Kettenis <kettenis@gnu.org>
91
92 * i386-tdep.c (gdb_print_insn_i386): Removed.
93 (i386_print_insn): New function.
94 (i386_gdbarch_init): Set print_insn to i386_print_insns.
95 (_initialize_i386_tdep): Don't initialize tm_print_insn and
96 tm_print_insn_info.
97
f710f4fc
MK
982002-09-14 Mark Kettenis <kettenis@gnu.org>
99
100 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
101 zero.
102
db54fef4
CV
1032002-09-14 Corinna Vinschen <vinschen@redhat.com>
104
105 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
106 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
107 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
108
2becadee
CF
1092002-09-13 Christopher Faylor <cgf@redhat.com>
110
111 * win32-nat.c (child_create_inferior): Honor 'tty' command.
112
de17c821
DJ
1132002-09-13 Daniel Jacobowitz <drow@mvista.com>
114
115 * gdbtypes.c (check_stub_method): Make static.
116 (check_stub_method_group): New function.
117 * gdbtypes.h: Update prototypes.
118 * cp-support.c: New file.
119 * cp-support.h: New file.
120
121 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
122 (update_method_name_from_physname): New function.
123 (read_member_functions): Correct method names for operators
124 and v3 constructors/destructors. Separate v2 constructors and
125 destructors.
126 * Makefile.in (stabsread.o): Update dependencies.
127 (SFILES): Add cp-support.c.
128 (COMMON_OBS): Add cp-support.o.
129 (cp_support_h, cp-support.o): Add.
130
131 * cp-valprint.c (cp_print_class_method): Call
132 check_stub_method_group instead of check_stub_method. Remove
133 extraneous QUITs.
134 * p-valprint.c (pascal_object_print_class_method): Likewise.
135 * valops.c (search_struct_method): Likewise.
136 (find_method_list, value_struct_elt_for_reference): Likewise.
137
e76cff22
AC
1382002-09-13 Andrew Cagney <cagney@redhat.com>
139
140 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
141 * gdbarch.h, gdbarch.c: Regenerate.
142
905abb3f
AC
1432002-09-13 Andrew Cagney <ac131313@redhat.com>
144
145 * frame.c (find_saved_register): Delete function.
146 * frame.h (find_saved_register): Delete declaration.
147 Fix PR gdb/631.
148
64159455
AC
149Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
150
151 * mips-tdep.c (read_next_frame_reg): Re-hack using
152 frame_register_unwind.
153
795e1e11
AC
154Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
155
156 * mips-tdep.c (mips_get_saved_register): Re-hack using
157 frame_register_unwind.
158
5720643c
JB
1592002-09-12 Joel Brobecker <brobecker@gnat.com>
160
161 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
162 vector. Will be useful for Interix.
163 * gdbarch.h, gdbarch.c: Regenerate.
164
165 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
166 name of the malloc function by NAME_OF_MALLOC.
167
3bada2a2
JB
1682002-09-12 Joel Brobecker <brobecker@gnat.com>
169
170 * value.h (find_function_in_inferior): Add const keyword to
171 one of the parameters. Allows us to invoke this function with
172 a const char *.
173 * valops.c (find_function_in_inferior): Likewise.
174
3db26b01
JB
1752002-09-12 Joel Brobecker <brobecker@gnat.com>
176
177 * exec.c (xfer_memory): Fix compilation warning with old versions
178 of GCC.
179 * tracepoint.c (trace_find_tracepoint_command): Likewise.
180
17c5ed2c
DC
1812002-09-12 David Carlton <carlton@math.stanford.edu>
182
183 * symtab.h: Run through gdb_indent.h.
184 Add 2002 to Copyright year list.
185
ecd1107e
AM
1862002-09-12 Alan Modra <amodra@bigpond.net.au>
187
188 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
189 mach constants.
190 * MAINTAINERS: Add myself to write after approval list.
191
e64f66d1
JB
1922002-09-11 J. Brobecker <brobecker@gnat.com>
193
194 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
195
f9395794
JB
1962002-09-11 J. Brobecker <brobecker@gnat.com>
197
198 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
199 Interix.
200
1a303dec
MS
2012002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
202
203 * procfs.c (do_detach): Clear current signal, not just fault.
204 Corrects problem with breakpoint trap signal leaking to detached
205 process on Tru64.
206
c0219d42
MS
2072002-09-10 Michael Snyder <msnyder@redhat.com>
208
209 * buildsym.c (finish_block): Protect against null pointer.
210
9d84ac84
AC
2112002-09-10 Andrew Cagney <cagney@redhat.com>
212
213 * infcmd.c (default_print_registers_info): Send all output to
214 ``file'' instead of ``gdb_stdout''.
215
77d8f2b4
MS
2162002-09-10 Michael Snyder <msnyder@redhat.com>
217
218 * mips-tdep.c (mips_extract_struct_value_address): Make val a
219 LONGEST, and use signed register read (addresses are sign-
220 extended for mips).
221
99656a61
SC
2222002-09-10 Stephane Carrez <stcarrez@nerim.fr>
223
224 * event-loop.c (gdb_do_one_event): Make public.
225 * event-loop.h (gdb_do_one_event): Declare.
226
da12f4d8
JL
2272002-09-10 Jeff Law <law@redhat.com>
228
229 * infttrace.c (child_resume): Simplify and rework to avoid
230 TT_PROC_CONTINUE.
231
d0aee0c4
FF
2322002-09-09 Fred Fish <fnf@intrinsity.com>
233
234 * printcmd.c (print_scalar_formatted): "len" is the number of
235 target bytes, NOT the number of target bits.
236
7cb3ec5e
EZ
2372002-09-09 Elena Zannoni <ezannoni@redhat.com>
238
239 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
240 * top.c (init_main): Set rl_terminal_name.
241
4dc81987
AS
2422002-09-08 Aidan Skinner <aidan@velvet.net>
243
244 * ada-lang.c (ada_array_bound, ada_type_match,
245 _initialize_ada_language): Fix K&R definitions.
246 * ada-tasks.c (get_current_task): Fix K&R definitions.
247 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
248
842330b4
CF
2492002-09-07 Christopher Faylor <cgf@redhat.com>
250
251 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
252 Add XP.
253
43156d82
MK
2542002-09-06 Mark Kettenis <kettenis@gnu.org>
255
66da5fd8
MK
256 * i386-tdep.c (i386_register_virtual_type,
257 i386_register_convertible, i386_register_convert_to_virtual,
258 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
259 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
260 (i386_gdbarch_init): Fix comment. Add comments on calls that set
261 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
262 Don't set push_arguments twice.
263
4b218c18
MK
264 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
265 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
266 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
267 sigtramp_end to NULL.
268 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
269 defines.
270 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
271
4cc314d5
MK
272 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
273 whitespace.
274
43156d82
MK
275 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
276 * gdbarch.h, gdbarch.c: Re-generate.
277 * blockframe.c (find_pc_sect_partial_function): Convert to use
278 SIGTRAMP_START_P predicate.
279
6672060b
MS
2802002-09-05 Michael Snyder <msnyder@redhat.com>
281
a90c3637
MS
282 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
283 generic_dummy_frame method and old method. Also distinguish
284 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 285 (arm_extract_return_value): Use new regcache method.
a90c3637 286
6672060b
MS
287 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
288 adjustment that doesn't conform to the ABI.
289 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
290 saved regcache, not from current regcache.
291
299ffc64
AC
2922002-09-05 Andrew Cagney <ac131313@redhat.com>
293
294 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
295 * README: Update.
296
a3a2ee65
JT
2972002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
298
299 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
300 if arm_apcs_32 is false.
301
2bc7eea9
AC
3022002-09-04 Andrew Cagney <ac131313@redhat.com>
303
304 GDB 5.3 branch created.
305
8a55a7c5
TR
3062002-09-03 Theodore A. Roth <troth@verinet.com>
307
308 * gdb/avr-tdep.c (avr_gdbarch_init): Use
309 generic_unwind_get_saved_register.
310
e26fb1d7
DC
3112002-09-03 David Carlton <carlton@math.stanford.edu>
312
313 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
314 argument (PR gdb/653). Update call to smash_to_method_type.
315 (read_structure_scope): Update call to dwarf2_add_member_fn.
316
30d52491
ML
3172002-09-03 Michal Ludvig <mludvig@suse.cz>
318
319 * x86-64-linux-tdep.c: Include gdb_string.h
320 * x86-64-linux-nat.c: Ditto.
321
06891d83
JT
3222002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
323
324 * ada-exp.y (yyname, yyrule): Remap global variables that appear
325 when YYDEBUG is set to 1.
326 * c-exp.y: Likewise.
327 * f-exp.y: Likewise.
328 * jv-exp.y: Likewise.
329 * m2-exp.y: Likewise.
330 * p-exp.y: Likewise.
331
7d400e77
JT
3322002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
333
334 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
335 dependency list.
336 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
337 solib_svr4_fetch_link_map_offsets to
338 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
339 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
340 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
341 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
342 solib-svr4.o, and solib-legacy.o.
343 * config/i386/tm-nbsd.h: Include solib.h.
344
704a27c4
JT
3452002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
346
347 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
348 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
349 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
350 comment noting that this needs its own target configuration.
351 * config/i386/nbsd.mt: New file.
352 * config/i386/nbsdaout.mt: Remove.
353 * config/i386/nbsdelf.mt: Ditto.
354 * config/i386/tm-nbsdaout.h: Ditto.
355
d66198e1
JT
3562002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
357
358 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
359 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
360 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
361 tdep->sigtramp_end.
362 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
363 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
364 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
365
3cac699e
JT
3662002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
367
368 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
369 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
370 * i386-tdep.h (i386bsd_init_abi): New prototype.
371 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
372 function declaration.
373 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
374 for NetBSD-a.out or NetBSD-ELF.
375 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
376 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
377 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
378 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
379 and nbsd-tdep.h.
380 (i386nbsd_pc_in_sigtramp): New function.
381 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
382 i386nbsd_pc_in_sigtramp.
383 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
384 and i386nbsdelf_init_abi OS ABI handlers.
385 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
386 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
387
7010ca0a
MK
3882002-09-02 Mark Kettenis <kettenis@gnu.org>
389
390 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
391 registers if the target really has them.
392
6dd93b72
JT
3932002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
394
395 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
396 than nbsd-tdep.h.
397
2ca8ae21
JT
3982002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
399
400 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
401 list.
402 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
403 (alphanbsd_skip_sigtramp_frame): New functions.
404 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
405 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
406 to alphanbsd_sigcontext_addr.
407
3d9b49b0
JT
4082002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
409
410 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
411 list.
412 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
413 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
414 nbsd_pc_in_sigtramp.
415 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
416 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
417 * nbsd-tdep.c: Include gdb_string.h.
418 (nbsd_pc_in_sigtramp): New function.
419 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
420 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
421 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
422 ppcnbsd_pc_in_sigtramp.
423 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
424 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
425 shnbsd_pc_in_sigtramp.
426 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
427 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
428 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
429
c860120c
PM
4302002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
431
432 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
433 watchpoints to NULL.
434 (insert_breakpoints): set val field of watchpoints if NULL.
435
436
c7612d53
JB
4372002-08-29 Jim Blandy <jimb@redhat.com>
438
439 * symtab.c (lookup_symbol_aux): In the cases where we find a
440 minimal symbol of an appropriate name and use its address to
441 select a symtab to read and search, use `name' (as passed to us)
442 as the demangled name when searching the symtab's global and
443 static blocks, not the minsym's name.
444
66609862
KS
4452002-08-29 Keith Seitz <keiths@redhat.com>
446
447 * stack.c (print_frame_info_base): Always set current_source_symtab
448 and current_source_line.
449
151fefe2
JB
4502002-08-29 Donn Terry <donnte@microsoft.com>
451
452 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
453
bfb3754e
KS
4542002-08-28 Keith Seitz <keiths@redhat.com>
455
456 * stack.c (select_frame): Add FIXME concerning selected-frame
457 events.
458 (select_frame_command): Send selected-frame-level-changed
459 event notification, but only if the level actually changed.
460 (up_silently_base): Add selected-frame-level-changed event
461 notification.
462 (down_silently_base): Likewise.
463
e822a2a0
AC
4642002-08-28 Andrew Cagney <ac131313@redhat.com>
465
466 * Makefile.in: Update dependencies for all gdb/*.c files.
467
309367d4
TT
4682002-08-27 Tom Tromey <tromey@redhat.com>
469
470 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
471 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
472 Update dependencies.
473 * i387-tdep.c: Include gdb_string.h.
474 * osabi.c: Likewise.
475 * i386-linux-nat.c: Likewise.
476 * lin-lwp.c: Likewise.
477 * ax-gdb.c: Likewise.
478 * signals/signals.c: Likewise.
479 * jv-valprint.c: Likewise.
480 * p-lang.c: Likewise.
481 * c-valprint.c: Likewise.
482 * cp-abi.c: Likewise.
483
e1507482
EZ
4842002-08-27 Elena Zannoni <ezannoni@redhat.com>
485
486 * cli/cli-script.h (copy_command_lines): Export.
487 * breakpoint.c: Include cli/cli-script.h.
488 * Makefile.in (breakpoint.o): Update dependencies.
489
c6510018
MS
4902002-08-26 Michael Snyder <msnyder@redhat.com>
491
492 * breakpoint.c (insert_breakpoints): Protect all references
493 to 'process_warning'. Shorten long lines.
494
c2b8ed2c
MS
4952002-08-26 Joel Brobecker <brobecker@gnat.com>
496
497 * cli/cli-script.c (copy_command_lines): New function.
498 * defs.h (copy_command_lines): Export.
499 * testsuite/gdb.base/commands.exp: New tests for commands
500 attached to a temporary breakpoint, and for commands that
501 delete the breakpoint they are attached to.
502
5032002-08-26 Michael Snyder <msnyder@redhat.com>
504
505 * breakpoint.c (bpstat_stop_status): Instead of copying the
506 pointer to the breakpoint commands struct, make a new copy
507 of the struct and point to that.
508 (bpstat_clear): Free the commands struct.
509 (bpstat_clear_actions): Free the commands struct.
510 (bpstat_do_actions): Free the command actions. Also execute
511 the local cleanups, instead of deleting them.
512 (delete_breakpoint): Leave the commands field of the bpstat
513 chain alone -- it will be freed later.
514
64b84175
KB
5152002-08-26 Kevin Buettner <kevinb@redhat.com>
516
517 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
518 deleted in 2002-08-20 commit. This function is still used by
519 ppc-linux-nat.c.
520
55970da6
KS
5212002-08-26 Keith Seitz <keiths@redhat.com>
522
523 * gdb-events.sh: Add selected-frame-level-changed event.
524 * gdb-events.c: Regenerated.
525 * gdb-events.h: Regenerated.
526
a790ad35
SC
5272002-08-26 Stephane Carrez <stcarrez@nerim.fr>
528
529 Fix PR gdb/393:
530 * inflow.c (terminal_save_ours): New function to save terminal
531 settings.
532 * inferior.h (terminal_save_ours): Declare.
533 * target.c (debug_to_terminal_save_ours): New function.
534 (cleanup_target): Defaults to_terminal_save_ours.
535 (update_current_target): Inherit to_terminal_save_ours.
536 (setup_target_debug): Set to_terminal_save_ours.
537 * target.h (target_terminal_save_ours): New to save terminal settings.
538 (target_ops): New member to_terminal_save_ours.
539 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
540 * hpux-thread.c (init_hpux_thread_ops): Likewise.
541 * inftarg.c (init_child_ops): Likewise.
542 * m3-nat.c (init_m3_ops): Likewise.
543 * procfs.c (init_procfs_ops): Likewise.
544 * wince.c (init_child_ops): Likewise.
545 * win32-nat.c (init_child_ops): Likewise.
546 * sol-thread.c (init_sol_thread_ops): Likewise.
547
c00dcbe9
MK
5482002-08-26 Mark Kettenis <kettenis@gnu.org>
549
3d7f4f49
MK
550 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
551 use regcache_* functions.
552 (i386_gdbarch_init): Set store_return_value instead of
553 deprecated_store_return_value.
554
c00dcbe9
MK
555 * regcache.c (regcache_raw_write_signed,
556 regcache_raw_write_unsigned): New functions.
557 * regcache.h (regcache_raw_write_signed,
558 regcache_raw_write_unsigned): New prototypes.
559
0e0d15ca
AC
5602002-08-25 Andrew Cagney <ac131313@redhat.com>
561
562 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
563 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
564 source file dependencies. Cleanup corresponding generator rules.
565
d3b22ed5
AC
5662002-08-25 Andrew Cagney <ac131313@redhat.com>
567
568 * regcache.h (register_offset_hack): Declare.
569 (regcache_cooked_read_using_offset_hack): Declare.
570 (regcache_cooked_write_using_offset_hack): Declare.
571
572 * regcache.c (register_offset_hack): New function.
573 (regcache_cooked_read_using_offset_hack): New function.
574 (regcache_cooked_write_using_offset_hack): New function.
575 (regcache_dump): Check that the registers, according to their
576 offset, are packed hard against each other.
577 (cooked_xfer_using_offset_hack): New function.
578
bb425013
AC
5792002-08-25 Andrew Cagney <ac131313@redhat.com>
580
581 * regcache.c (struct regcache_descr): Add field register_type.
582 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
583 in as a parameter
584 (init_regcache_descr): Initialize register_type. Pass the descr
585 to init_legacy_regcache_descr. Use register_type instead of
586 REGISTER_VIRTUAL_TYPE.
587 (register_type): New function.
588 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
589 * regcache.h (register_type): Declare.
590
d0403e00
AC
5912002-08-25 Andrew Cagney <ac131313@redhat.com>
592
593 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
594 instead of deprecated_store_return_value. Fix fallout from
595 2002-08-23 Andrew Cagney <cagney@redhat.com>.
596
0ed04cce
AC
5972002-08-25 Andrew Cagney <ac131313@redhat.com>
598
599 * regcache.c (max_register_size): New function.
600 (init_legacy_regcache_descr): Ensure that max_register_size is
601 large enough for REGISTER_VIRTUAL_SIZE.
602 * regcache.h (max_register_size): Declare.
603
46d79c04
AC
6042002-08-24 Andrew Cagney <ac131313@redhat.com>
605
606 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
607 store_return_value.
608 (e500_extract_return_value): Change type of valbuf pointer to
609 void.
610
853c7bd0
MK
6112002-08-24 Mark Kettenis <kettenis@gnu.org>
612
cd87e769
MK
613 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
614 workaround.
615
853c7bd0
MK
616 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
617 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
618 long long) to prevent compiler warning on 64-bit systems.
619
ebba8386
AC
6202002-08-23 Andrew Cagney <cagney@redhat.com>
621
622 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
623 (DEPRECATED_STORE_RETURN_VALUE): New method.
624 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
625 * gdbarch.h, gdbarch.c: Re-generate.
626
627 * values.c (set_return_value): Pass current_regcache to
628 STORE_RETURN_VALUE.
629 * arch-utils.h (legacy_store_return_value): Declare.
630 * arch-utils.c (legacy_store_return_value): New function.
631 (legacy_extract_return_value): Update parameters.
632
633 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
634 STORE_RETURN_VALUE.
635 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
636 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
637 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
638 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
639 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
640 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
641 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
642 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
643 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
644 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
645
646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
647 * i386-tdep.c (i386_extract_return_value): Update.
648 * arch-utils.c (legacy_extract_return_value): Update.
649 * frv-tdep.c (frv_gdbarch_init): Update.
650 * cris-tdep.c (cris_gdbarch_init): Update.
651 * d10v-tdep.c (d10v_gdbarch_init): Update.
652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
653 * m68k-tdep.c (m68k_gdbarch_init): Update.
654 * mcore-tdep.c (mcore_gdbarch_init): Update.
655 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
656 * s390-tdep.c (s390_gdbarch_init): Update.
657 * sparc-tdep.c (sparc_gdbarch_init): Update.
658 * sh-tdep.c (sh_gdbarch_init): Update.
659 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
660 * v850-tdep.c (v850_gdbarch_init): Update.
661 * avr-tdep.c (avr_gdbarch_init): Update.
662 * ia64-tdep.c (ia64_gdbarch_init): Update.
663 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
664 * vax-tdep.c (vax_gdbarch_init): Update.
665 * alpha-tdep.c (alpha_gdbarch_init): Update.
666 * arm-tdep.c (arm_gdbarch_init): Update.
667 * mips-tdep.c (mips_gdbarch_init): Update.
668 * i386-tdep.c (i386_gdbarch_init): Update.
669
5bd8c6d0
AC
6702002-08-23 Andrew Cagney <ac131313@redhat.com>
671
672 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
673 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
674
e73e1724
MK
6752002-08-24 Mark Kettenis <kettenis@gnu.org>
676
677 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
678 problems.
679
3e6564e1
JB
6802002-08-23 Joel Brobecker <brobecker@gnat.com>
681
682 * infrun.c (handle_inferior_event): Move a comment outside of a
683 function call, in order to avoid indent reformatting this part
684 of the code in an unreadable way.
685
81d0cc19
GS
6862002-08-23 Grace Sainsbury <graces@redhat.com>
687
688 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
689 when breakpoints fail. Move general breakpoint error messages to
690 insert_breakpoints.
691 * breakpoint.c (insert_breakpoints): Change warnings when
692 breakpoints are nto inserted to specify the type. Remove call to
693 memory_error when hardware breakpoints can't be inserted. Remove
694 multiple calls to warning so all messages are sent to the user at
695 once.
696 (delete_breakpoints): Make insert error messsages more explicit.
697
17574093
DJ
6982002-08-23 Daniel Jacobowitz <drow@mvista.com>
699
700 * ChangeLog: Move gdbserver entries after GDB 5.2 to
701 gdbserver/ChangeLog.
702
8acc2935
MK
7032002-08-23 Mark Kettenis <kettenis@gnu.org>
704
dfe01d39
MK
705 * i386-tdep.c: Include "objfiles.h".
706 (i386_svr4_init_abi): Set in_solib_call_trampoline and
707 skip_trampoline_code.
708 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
709 (CPLUS_MARKER): Define to '.'.
710
8acc2935
MK
711 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
712 member.
713 (linux_corefile_thread_callback): Increase args->num_notes.
714 (linux_make_note_section): Initialize thread_args.num_notes, and
715 use it to determine whether notes for any threads were created.
716
151fefe2 7172002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
718
719 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
720 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
721 and PCUNKILL.
722 (write_with_trace): Conditionalize out the switch branch handling
723 PCSHOLD if the corresponding macro is not defined. Likewise for
724 PRSABORT and PRSTOP.
725 This change will be needed by the Interix port.
726
e1507482
EZ
7272002-08-22 Elena Zannoni <ezannoni@redhat.com>
728
729 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
730 write_register wherever possible instead of manipulating the
731 register bytes directly.
732 Assign VALUE_CONTENTS to a variable and use that.
733 The GPR numbers are now dependent on the architecture.
734
96ff0de4
EZ
7352002-08-22 Elena Zannoni <ezannoni@redhat.com>
736
737 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
738 ev_offset fields.
739 (skip_prologue): Add support for BookE/e500 instructions.
740 (e500_extract_return_value): New function.
741 (frame_get_saved_regs): Add support for saving ev registers and
742 pseudo gpr's.
743 (e500_store_return_value): New function.
744 (rs6000_gdbarch_init): Move up default intializations of
745 deprecated_extract_return_value and store_return_value. Overwrite
746 init of store_return_value with e500 specific version.
747 Set extract_return_value for e500.
748
fbefca5b
EZ
7492002-08-22 Elena Zannoni <ezannoni@redhat.com>
750
751 * blockframe.c (generic_call_dummy_register_unwind): Use
752 regcache_cooked_read to catch cases in which the variable is
753 stored in a pseudo register.
754
4d210288
AC
7552002-08-22 Andrew Cagney <cagney@redhat.com>
756
757 * NEWS: Mention that the i960 has been made obsolete.
758 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
759 i960-tdep.c
760 (remote-nrom.o): Obsolete target.
761 (remote-nindy.o, i960-tdep.o): Ditto.
762 * remote-nrom.c: Make file obsolete.
763 * remote-nindy.c, remote-vx960.c: Ditto.
764 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
765 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
766 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
767 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
768 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
769 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
770 i960-*-vxworks* obsolete.
771 * MAINTAINERS: Note that the i960 is obsolete.
772
6c0c456d
CV
7732002-08-21 Corinna Vinschen <vinschen@redhat.com
774
775 * aix-thread.c (aix_thread_detach): Disable thread debugging on
776 detach to allow reinitialization.
777
9f9d12b3
AC
7782002-08-22 Andrew Cagney <ac131313@redhat.com>
779
780 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
781 attempt).
782
ebeb39fe
JB
7832002-08-22 Jim Blandy <jimb@redhat.com>
784
785 * coffread.c (coff_symfile_read): Don't try to read the line
786 number table from disk if the image file doesn't have a symbol
787 table; we'll never actually look at the info anyway, and Windows
788 ships DLL's with bogus file offsets for the line number data.
789
5bf1c677
EZ
7902002-08-21 Elena Zannoni <ezannoni@redhat.com>
791
792 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
793 an e500 executable.
794
71b8ef93
MS
7952002-08-21 Michael Snyder <msnyder@redhat.com>
796
797 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
798 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
799 (DEFAULT_MIPS_TYPE): Delete unused macro.
800 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
801 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 802
d174216d
JB
8032002-08-21 Jim Blandy <jimb@redhat.com>
804
805 * valops.c (value_cast): Simplify and correct logic for doing a
806 static cast from a pointer to a base class to a pointer to a
807 derived class.
808
0ab7a791
AC
8092002-08-21 Andrew Cagney <ac131313@redhat.com>
810
811 * infcmd.c (default_print_registers_info): Replace
812 do_registers_info.
813 (registers_info): Use gdbarch_print_registers_info instead of
814 DO_REGISTERS_INFO.
815 * inferior.h (default_print_registers_info): Replace
816 do_registers_info.
817 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
818 (DO_REGISTERS_INFO): Change to a predicate function.
819 * gdbarch.h, gdbarch.c: Regenerate.
820
e23792cc
KS
8212002-08-21 Keith Seitz <keiths@redhat.com>
822
823 * gdb-events.sh: Add target-changed event.
824 * gdb-events.c: Regenerated.
825 * gdb-events.c: Regenerated.
826 * valops.c (value_assign): Add target-changed event notification
827 to inlval_register, lval_memory, and lval_reg_frame_relative.
828
9fb14e79
JB
8292002-08-21 Joel Brobecker <brobecker@gnat.com>
830
831 * NEWS: Add an entry regarding the improvement of the next/step
832 operation on Alpha Tru64 multi-processor machines.
833
6d39a69f
AC
8342002-08-21 Andrew Cagney <ac131313@redhat.com>
835
72acd513
AC
836 * Makefile.in: Update dependencies for mi/ cli/ and tui/
837 directores.
342af04b 838 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
839 * Makefile.in (install-gdbtk): Move to install section.
840 (rdi-share/libangsd.a): Move to end of file.
841
fa5f27c7
AC
8422002-08-19 Andrew Cagney <ac131313@redhat.com>
843
844 * frame.c (frame_register_unwind): When a register, set addrp to
845 the register's byte.
846
5a89d8aa
MS
8472002-08-20 Michael Snyder <msnyder@redhat.com>
848
849 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
850 used locally, so move them from the target machine header to here.
851 (mips_set_processor_type, mips_register_name, mips32_next_pc,
852 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
853 Make static.
854 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
855
822e978b
AC
8562002-08-20 Andrew Cagney <cagney@redhat.com>
857
858 * NEWS: Mention that the Apollo line was made obsolete.
859 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
860 m68*-hp-hpux* obsolete.
861 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
862 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
863 * buildsym.c (make_blockvector): Make static.
864 * buildsym.h (make_blockvector): Make extern declaration obsolete.
865 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
866 (ALLDEPFILES): Remove dstread.c.
867 (dstread.o): Obsolete make rule.
868 * dstread.c: Makefile obsolete.
869 * dst.h: Ditto.
870 * config/m68k/hp300hpux.mt: Ditto.
871 * config/m68k/hp300hpux.mh: Ditto.
872 * config/m68k/hp300bsd.mt: Ditto.
873 * config/m68k/hp300bsd.mh: Ditto.
874 * config/m68k/apollo68b.mt: Ditto.
875 * config/m68k/apollo68v.mh: Ditto.
876 * config/m68k/apollo68b.mh: Ditto.
877
e41b17f0
MS
8782002-08-20 Michael Snyder <msnyder@redhat.com>
879
880 * mips-tdep.c (mips_in_return_stub): Make static.
881 (mips_gdbarch_init): Set in_solib_return_trampoline.
882 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
883
d50355b6
MS
8842002-08-20 Michael Snyder <msnyder@redhat.com>
885
886 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
887 * gdbarch.c, gdbarch.h: Regenerate.
888 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
889 Add.
890 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
891
757a7cc6
MS
8922002-08-20 Michael Snyder <msnyder@redhat.com>
893
894 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
895 (mips_gdbarch_init): Set skip_trampoline_code,
896 in_solib_call_trampoline.
897 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
898 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
899
c8001721
EZ
9002002-08-20 Elena Zannoni <ezannoni@redhat.com>
901
902 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
903
904 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
905 vector type for ev registers.
906 (e500_pseudo_register_read): New function.
907 (e500_pseudo_register_write): New function.
908 (e500_dwarf2_reg_to_regnum): New function.
909 (PPC_UISA_NOFP_SPRS): New macro.
910 (PPC_EV_REGS): New macro.
911 (PPC_GPRS_PSEUDO_REGS): New macro.
912 (registers_e500): New register set for e500.
913 (variants): Add e500 variant.
914 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
915 before setting architectural dependent variations. Initialize ev
916 registers numbers. Add case for e500 architecture. Set the
917 number of pseudo registers.
918
64366f1c
EZ
9192002-08-20 Elena Zannoni <ezannoni@redhat.com>
920
921 * rs6000-tdep.c: Clean up comments.
922
7e78f0ca
AC
9232002-08-20 Andrew Cagney <cagney@redhat.com>
924
925 * h8300-tdep.c: Re-indent file.
926
697f7479
JB
9272002-08-20 Jim Blandy <jimb@redhat.com>
928
929 * Makefile.in (LDFLAGS): Allow the configure script to establish a
930 default for this.
697f7479 931
e86ae29f
KS
9322002-08-20 Keith Seitz <keiths@redhat.com>
933
934 * breakpoints.c (watch_command_1): Use internal breakpoint
935 when setting a watchpoint_scope breakpoint.
936
216b504f
EZ
9372002-08-20 Elena Zannoni <ezannoni@redhat.com>
938
939 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
940 (build_builtin_type_vec64i): Ditto.
941 (build_builtin_type_vec128): Ditto.
942 (build_builtin_type_vec128i): Ditto.
943
f7ab6ec6
MS
9442002-08-19 Michael Snyder <msnyder@redhat.com>
945
946 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
947 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
948 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
949 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
950 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
951 CALL_DUMMY_ADDRESS): Delete.
952 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
953 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
954 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
955 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
956 push_return_address.
957 (mips_register_raw_size, mips_eabi_use_struct_convention,
958 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
959 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
960 mips_init_extra_frame_info, mips_eabi_push_arguments,
961 mips_n32n64_push_arguments, mips_push_return_address,
962 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
963 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
964
b5d1566e
MS
9652002-08-19 Michael Snyder <msnyder@redhat.com>
966
967 * mips-tdep.c (mips_frame_num_args): New function.
968 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
969 frame_saved_pc, frame_args_address, frame_locals_address,
970 frame_num_args, and frame_args_skip.
971 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
972 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
973 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
974 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
975
2f1488ce
MS
9762002-08-20 Michael Snyder <msnyder@redhat.com>
977
978 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
979 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
980 * mips-tdep.c (mips_store_struct_return): New function.
981 (mips_extract_struct_value_address): New function.
982 (mips_gdbarch_init): Set store_struct_return and
983 extract_struct_value_address.
984
41ff2da1
DC
9852002-08-20 David Carlton <carlton@math.stanford.edu>
986
987 * dwarf2read.c (dwarf2_build_psymtabs): Check that
988 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
989 (read_file_scope): Check that line_header is nonzero before
990 decoding macro information.
991
e5451d58
MK
9922002-08-20 Mark Kettenis <kettenis@gnu.org>
993
994 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
995 flag the general-purpose registers as floating-point on targets
996 that don't support the floating-point registers.
997
4a6daafa
EZ
9982002-08-20 Elena Zannoni <ezannoni@redhat.com>
999
1000 * rs6000-tdep.c (altivec_register_p): Delete.
1001 (rs6000_do_altivec_registers): Delete.
1002 (rs6000_altivec_registers_info): Delete.
1003 (rs6000_do_registers_info): Delete.
1004 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1005 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1006
ab4327e0
EZ
10072002-08-20 Elena Zannoni <ezannoni@redhat.com>
1008
1009 * infcmd.c (do_registers_info): Print vector registers in hex
1010 format only.
1011 (print_vector_info): Check that printing registers
1012 makes sense.
1013 (print_float_info): Ditto.
1014
cb1d2653
AC
10152002-08-20 Andrew Cagney <ac131313@redhat.com>
1016
1017 * mips-tdep.c (mips_gdbarch_init): Update.
1018 (mips_o32_extract_return_value): Rewrite.
1019 (mips_o32_store_return_value): Rewrite.
1020 (mips_o32_xfer_return_value): New function.
1021 (mips_xfer_register): Tweak debug print message. Allow for
1022 buf_offset when dumping the value transfered.
1023
dfc3d9b2
AC
10242002-08-20 Andrew Cagney <ac131313@redhat.com>
1025
1026 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1027 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1028 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1029 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1030 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1031
7807aa61
MS
10322002-08-14 Michael Snyder <msnyder@redhat.com>
1033
1034 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1035
489461e2
EZ
10362002-08-19 Elena Zannoni <ezannoni@redhat.com>
1037
1038 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1039 register.
1040 (P): New macro to define a register as a pseudo register.
1041 (R, R4, R8, R16, FR32, R64, R0): Updated.
1042 (struct variant): Add new fields for number of pseudo registers
1043 and number of total registers.
1044 (tot_num_registers): New macro replacing....
1045 (num_registers): ...deleted macro.
1046 (num_registers): New function.
1047 (num_pseudo_registers): New function.
1048 (variants): Update all variants to intialize new fields correctly.
1049 Postpone initialization of number of pseudo regs and real regs.
1050 (init_variants): New function.
1051 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1052 registers offsets.
1053
fcaffe4c
DC
10542002-08-19 David Carlton <carlton@math.stanford.edu>
1055
2c2738a0
DC
1056 * valops.c (search_struct_field): Change error message to treat
1057 return value of 0 from value_static_field as meaning that field is
1058 optimized out.
1059 (value_struct_elt_for_reference): Ditto.
1060 * values.c (value_static_field): Treat an unresolved location the
1061 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1062 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1063 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1064 * MAINTAINERS: Add self to Write After Approval list.
1065
88658117
AC
10662002-08-19 Andrew Cagney <ac131313@redhat.com>
1067
1068 * mips-tdep.c (mips_xfer_register): New function.
1069 (mips_n32n64_extract_return_value): Rewrite.
1070 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1071 instead of deprecated_extract_return_value.
1072
21283beb
EZ
10732002-08-19 Elena Zannoni <ezannoni@redhat.com>
1074
1075 * rs6000-tdep.c (TDEP): Delete macro.
1076 (branch_dest): Replace use of TDEP macro with its body.
1077 (rs6000_pop_frame): Ditto.
1078 (rs6000_push_arguments): Ditto.
1079 (rs6000_skip_trampoline_code): Ditto.
1080 (rs6000_frame_saved_pc): Ditto.
1081 (rs6000_frame_chain): Ditto.
1082 (rs6000_register_name): Ditto.
1083 (rs6000_register_byte): Ditto.
1084 (rs6000_register_raw_size): Ditto.
1085 (rs6000_register_virtual_type): Ditto.
1086 (rs6000_register_convertible): Ditto.
1087 (rs6000_convert_from_func_ptr_addr): Ditto.
1088
bf072999
DJ
10892002-08-19 Daniel Jacobowitz <drow@mvista.com>
1090
1091 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1092 conditionally.
1093 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1094 MIPS_LINUX_JB_ELEMENT_SIZE.
1095 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1096 for MAX_REGISTER_RAW_SIZE arrays.
1097 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1098 MIPS_LINUX_JB_ELEMENT_SIZE.
1099
9b949a49
PM
11002002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1101
1102 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1103
6d3e79c6
AS
11042002-08-19 Aidan Skinner <aidan@velvet.net>
1105
1106 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1107 ada-valprint.c ada-tasks.c.
1108 (YYFILES): Add ada-exp.y.
1109 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1110 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1111 (ada-exp.tab.o): New target.
1112
06c0b04e
AC
11132002-08-18 Andrew Cagney <ac131313@redhat.com>
1114
1115 * regcache.c (regcache_xfer_part): New function.
1116 (regcache_raw_read_part): New function.
1117 (regcache_raw_write_part): New function.
1118 (regcache_cooked_read_part): New function.
1119 (regcache_cooked_write_part): New function.
1120 * regcache.h (regcache_raw_read_part): Declare.
1121 (regcache_raw_write_part): Declare.
1122 (regcache_cooked_read_part): Declare.
1123 (regcache_cooked_write_part): Declare.
1124
92d1e331
DJ
11252002-08-18 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * remote.c (remote_open_1): Add async_p.
1128 (remote_async_open_1): Delete.
1129 (open_remote_target): Delete.
1130 (remote_open, extended_remote_open): Update calls to remote_open_1.
1131 (remote_async_open, extended_remote_async_open): Call
1132 remote_open_1 instead of remote_async_open_1.
1133
247055de
MK
11342002-08-19 Mark Kettenis <kettenis@gnu.org>
1135
1136 * blockframe.c: Fix a few coding standard violations.
1137
641eda39
MK
11382002-08-19 Mark Kettenis <kettenis@gnu.org>
1139
0b717710
MK
1140 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1141 here from ...
1142 * config/i386/tm-i386sco5.h: ... here. File removed.
1143 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1144
26d28e12 1145 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1146 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1147 (TM_FILE): Set to tm-i386.h.
1148 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1149 * config/i386/tm-i386v.h: Remove file.
1150 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1151 instead of "i386/tm-i386v.h".
1152 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1153 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1154 "i386/tm-i386v.h".
1155 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1156 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1157 "i386/tm-i386.h".
1158
d4e0bab4
MK
11592002-08-18 Mark Kettenis <kettenis@gnu.org>
1160
1161 * config/i386/nm-i386v.h: Add protection against
1162 multiple-inclusion.
1163 (i386_register_u_addr): Remove prototype.
1164 (register_u_addr): New prototype.
1165 (REGISTER_U_ADDR): Redefine accordingly.
1166 * i386v-nat.c: Improve several comments.
1167 (i386_register_u_addr): Change signature and rename to
1168 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1169 ubase variable.
1170
46cac009
AC
11712002-08-18 Andrew Cagney <ac131313@redhat.com>
1172
1173 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1174 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1175 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1176 deprecated_extract_return_value.
1177 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1178 rename mips_o32o64_push_arguments.
1179 (mips_gdbarch_init): Update.
1180 (mips_extract_return_value): Delete.
1181 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1182 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1183 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1184 (mips_n32n64_extract_return_value): Clone
1185 mips_extract_return_value.
1186 (mips_store_return_value): Delete.
1187 (mips_o32_store_return_value): Clone mips_store_return_value.
1188 (mips_o64_store_return_value): Clone mips_store_return_value.
1189 (mips_eabi_store_return_value): Clone mips_store_return_value.
1190 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1191
d2e4a39e
AS
11922002-08-18 Aidan Skinner <aidan@velvet.net>
1193
0c30c098
AS
1194 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1195 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1196
11972002-08-18 Aidan Skinner <aidan@velvet.net>
1198
1199 * ada-lang.c: Run through gdb_indent.sh.
1200 * ada-lang.h: Run through gdb_indent.sh.
1201 * ada-tasks.c: Run through gdb_indent.sh.
1202 * ada-typeprint.c: Run through gdb_indent.sh.
1203 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1204
01fc4e33
AC
12052002-08-18 Andrew Cagney <ac131313@redhat.com>
1206
1207 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1208 ABI.
1209
d8ee244c
MK
12102002-08-18 Mark Kettenis <kettenis@gnu.org>
1211
c38d8261
MK
1212 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1213
222db64c
MK
1214 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1215 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1216
c2848c82
MK
1217 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1218 write_register_gen instead of write_register_bytes.
1219
d8ee244c
MK
1220 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1221 i[3456]-*-osf1mk* configurations have been made obsolete.
1222 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1223 i[3456]86-*-osf1mk* hosts obsolete.
1224 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1225 targets obsolete.
1226 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1227 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1228 config/i386/i386m3.mt, config/i386/nm-m3.h,
1229 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1230 config/i386/i386mk.mh, config/i386/i386mk.mt,
1231 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1232 obsolete.
1233 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1234 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1235 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1236
61d8d407
AC
12372002-08-18 Andrew Cagney <ac131313@redhat.com>
1238
1239 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1240 (hppa_value_returned_from_stack): Declare.
1241 (hppa_extract_return_value): Declare.
1242 * config/pa/hppa.mt: New file.
1243 * configure.tgt: Recognize hppa*-*-*.
1244 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1245
0c52bd59
MK
12462002-08-18 Mark Kettenis <kettenis@gnu.org>
1247
1248 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1249 comment.
1250
b5686e99
MK
12512002-08-17 Mark Kettenis <kettenis@gnu.org>
1252
1253 * top.c (gdb_rl_operate_and_get_next): Make sure
1254 operate-and-get-next functions correctly even when the history
1255 list is completely filled.
1256
c1bab85b
AC
12572002-08-18 Andrew Cagney <ac131313@redhat.com>
1258
1259 * MAINTAINERS (Target Instruction Set Architectures): Rename
1260 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1261 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1262 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1263 already listed under Host/Native.
1264
1265 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1266 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1267 mips*-*-*.
1268
32089c7c
AC
12692002-08-17 Andrew Cagney <ac131313@redhat.com>
1270
1271 * config/ia64/ia64.mt: New file.
1272 * config/alpha/alpha.mt: New file.
1273 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1274 ia64-linux-gnu. Mention that ia64-elf is broken.
1275 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1276
b4671f85
MK
12772002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1278
1279 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1280 generic_func_frame_valid instead of func_frame_valid.
1281
c8edd8b4
JB
12822002-08-16 Joel Brobecker <brobecker@gnat.com>
1283
1284 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1285 procfs appears to be broken when debugging on multi-processor
1286 machines. So enable software single stepping in order to avoid
1287 using the procfs interface to do next/step operations, using
1288 internal breakpoints instead.
1289
1290 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1291 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1292 make this pc address equal to the value it would have if the
1293 system stepping capability was used. Also set a new flag used
1294 to ensure that we don't readjust the PC one more time later.
1295
1296 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1297 address by DECR_PC_AFTER_BREAK when software single step is
1298 in use for this architecture, as this has already been taken
1299 care of in handle_inferior_event().
1300
238617f6
JB
13012002-08-16 Joel Brobecker <brobecker@gnat.com>
1302
1303 * infrun.c (handle_inferior_event): Minor reformatting, to make
1304 a rather long condition expression easier to read.
1305
541a7aac
AC
13062002-08-16 Andrew Cagney <ac131313@redhat.com>
1307
1308 * Makefile.in (gdbtk.o): Move to end of file.
1309 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1310 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1311 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1312 (gdbtk-wrapper.o, gdbres.o): Ditto.
1313
f92d4a7b
AC
13142002-08-16 Andrew Cagney <ac131313@redhat.com>
1315
1316 * Makefile.in (copying.o): Separate out compile rule.
1317 (hpux-thread.o, procfs.o, signals.o): Ditto.
1318 (v850ice.o, z8k-tdep.o): Ditto.
1319 (tui-file.o): Move to TUI section.
1320 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1321 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1322
1cce71eb
JB
13232002-08-16 Joel Brobecker <brobecker@gnat.com>
1324
1325 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1326 skip_trampoline_code, for better namespace-proofing.
1327
1328 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1329
0851f23d
JB
13302002-08-16 Joel Brobecker <brobecker@gnat.com>
1331
1332 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1333
f8d40ec8
JB
13342002-08-16 Joel Brobecker <brobecker@gnat.com>
1335
1336 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1337 signal, check whether we hit a breakpoint before checking for a
1338 single step breakpoint. Otherwise, GDB fails to notice that a
1339 breakpoint has been hit when stepping onto a breakpoint.
1340
63d022e0
KS
13412002-08-16 Keith Seitz <keiths@redhat.com>
1342
1343 * gdb-events.sh (clear_gdb_event_hooks): New function.
1344 * gdb-events.c: Regenerate.
1345 * gdb-events.h: Regenerate.
1346
6e31adb3
AC
13472002-08-16 Andrew Cagney <ac131313@redhat.com>
1348
1349 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1350 not_a_sw_breakpoint.
1351 * breakpoint.h (bpstat_stop_status): Add parameter names.
1352
c8189ed1
GS
13532002-08-16 Grace Sainsbury <graces@redhat.com>
1354
1355 * remote.c (remote_insert_hw_breakpoint)
1356 (remote_remove_hw_breakpoint): Fix calculation of length field
1357 for Z-packet.
1358
d05285fa
MS
13592002-08-15 Michael Snyder <msnyder@redhat.com>
1360
466d7106
MS
1361 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1362 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1363 (supply_fpregset): Ditto.
1364
d05285fa
MS
1365 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1366 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1367 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1368 (TARGET_READ_SP): Delete.
bf1f5b4c 1369 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1370 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1371 Delete.
1372 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1373 from macros to functions.
bf1f5b4c 1374
d05285fa
MS
1375 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1376 (mips_register_convertible, mips_register_convert_to_virtual,
1377 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1378 (mips_read_sp): New function.
1379 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1380 (mips_do_registers_info): Make static.
1381 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1382 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1383 (mips_register_convert_from_type, mips_register_convert_to_type):
1384 New functions.
1385 (mips_gdbarch_init): Set up function_start_offset,
1386 register_virtual_size, pc_in_sigtramp.
d05285fa 1387
e76f1f2e
AC
13882002-08-15 Andrew Cagney <ac131313@redhat.com>
1389
1390 * infcmd.c (vector_info): New function.
1391 (_initialize_infcmd): Add command "info vector".
1392 (print_vector_info): New function.
1393
1394 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1395 * gdbarch.h, gdbarch.c: Regenerate.
1396
4782dc19
AC
13972002-08-15 Andrew Cagney <ac131313@redhat.com>
1398
1399 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1400 ``print_all''. Only print vector registers when ``print_all''.
1401
23e3a7ac
AC
14022002-08-15 Andrew Cagney <ac131313@redhat.com>
1403
8e186fd6
AC
1404 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1405 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1406
23e3a7ac
AC
1407 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1408 Add `args' parameter.
1409 * gdbarch.h, gdbarch.c: Regenerate.
1410
1411 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1412
1413 * infcmd.c (float_info): Call print_float_info.
1414 (print_float_info): New function. By default, print the
1415 floating-point registers.
1416
1417 * arch-utils.h (default_print_float_info): Delete declaration.
1418 * arch-utils.c (default_print_float_info): Delete function.
1419
e0ca2bb9
MK
14202002-08-16 Mark Kettenis <kettenis@gnu.org>
1421
3f733acc
MK
1422 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1423 out define.
1424
7d8d2918
MK
1425 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1426 FRAME.
1427
1c7cc583
MK
1428 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1429 * configure.host: Make i[3456]86-*-aix host obsolete.
1430 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1431 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1432 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1433 config/i386/xm-i386aix.h: Make files obsolete.
1434 * i386aix-nat.c: Make file obsolete.
1435 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1436 (i386aix-nat.o): Make target obsolete.
1437
e0ca2bb9
MK
1438 * config/i386/nm-gnu.h: Removed.
1439 * config/i386/nm-i386gnu.h: New file.
1440 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1441 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1442 Moved here from ...
1443 * config/i386/tm-i386gnu.h: ... here. Removed.
1444 * config/i386/xm-i386gnu.h: Removed.
1445 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1446 (NAT_FILE): Set to nm-i386gnu.h.
1447 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1448 * i386-tdep.c: New file.
1449 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1450 (i386gnu-tdep.o): Specify dependencies.
1451
16057ec7 14522002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1453
6b99ee2e
MK
1454 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1455 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1456 Adjust a few comments to reflect reality a bit closer.
1457 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1458 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1459 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1460 target_insert_watchpoint, target_remove_watchpoint):
1461 Move defines to ...
1462 * config/i386/nm-i386sco5.h: ... here.
1463 (kernel_u_size): Add prototype. Improve a few comments and add
1464 protection against multiple inclusion.
1465
d9a6f65c
MK
1466 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1467 out define.
1468
047eff6a
MK
1469 * uw-thread.c (SP_ARG0): Define if not already defined.
1470 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1471
dcdb1290
MK
1472 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1473
5d2d0b2a
MK
1474 * config/i386/tm-i386.h: Don't include "regcache.h".
1475
61113f8b
MK
1476 * i387-tdep.h (i387_print_float_info): New prototype.
1477 * i387-tdep.c (print_i387_value, print_i387_ext,
1478 print_i387_status_word, print_i387_control_word): Add `struct
1479 ui_file *' argument and use it for output.
1480 (i387_print_float_info): Renamed from i387_float_info. Add
1481 `struct gdbarch *' and `struct ui_file *' arguments and use the
1482 latter for output.
1483 * i386-tdep.c: Include "i387-tdep.h".
1484 (i386_gdbarch_init): Set print_float_info.
1485 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1486 (FLOAT_INFO): Remove define.
1487
46e0f506
MS
14882002-08-13 Michael Snyder <msnyder@redhat.com>
1489
1490 * mips-tdep.c (mips_push_arguments): Rename to
1491 mips_eabi_push_arguments, and tune for EABI.
1492 (MIPS_REGS_HAVE_HOME_P): Delete.
1493 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1494 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1495 Delete references to mips_regs_have_home_p.
1496
409268de
KS
14972002-08-14 Keith Seitz <keiths@redhat.com>
1498
1499 * Makefile.in (install-gdbtk): Create insight plugin directory.
1500 Install plugins.tcl file.
1501
ffc6a242
KS
15022002-08-14 Keith Seitz <keiths@redhat.com>
1503
1504 * configure.in: Move SUBDIRS to near top of the file so that
1505 --enable options may add things to it.
1506 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1507 * configure: Regenerate.
1508
ebafbe83
MS
15092002-08-13 Michael Snyder <msnyder@redhat.com>
1510
1511 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1512 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1513 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1514
32f6f25d
AC
15152002-08-13 Andrew Cagney <ac131313@redhat.com>
1516
1517 * vax-tdep.c (vax_get_saved_register): Delete function.
1518 (vax_gdbarch_init): Update.
1519 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1520 (ns32k_gdbarch_init): Update.
1521 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1522 (alpha_gdbarch_init): Update.
1523
53826de9
AC
15242002-08-13 Andrew Cagney <cagney@redhat.com>
1525
1526 * regcache.c (init_regcache_descr): Overallocate the
1527 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1528 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1529 nr_raw_registers.
1530 (set_register_cached): Add range checking assertions. Use
1531 current_regcache.
1532
16057ec7 15332002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1534
1535 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1536 numbers for MMX registers.
1537
7b4c2dce
AC
15382002-08-13 Andrew Cagney <cagney@redhat.com>
1539
1540 * i386-tdep.c (i386_gdbarch_init): Use
1541 generic_unwind_get_saved_register.
1542
1e03ad20
KB
15432002-08-13 Kevin Buettner <kevinb@redhat.com>
1544
1545 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1546 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1547 target vector.
1548 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1549 Delete. Add comment regarding this now-deleted target method.
1550
548bcbec
SC
15512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1552
1553 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1554 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1555 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1556 real PC and the page number (if it's within the memory bank window).
1557 (m68hc11_pseudo_register_write): Likewise when saving.
1558 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1559 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1560 (m68hc11_register_raw_size): And use 32-bit for it.
1561 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1562 16K memory bank is used by the prog; also use the virtual pc.
1563
7df11f59
SC
15642002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1565
1566 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1567 (m68hc11_gdbarch_init): Install it in gdbarch.
1568 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1569 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1570 (MSYMBOL_SIZE): New for documentation.
1571 (insn_return_kind): Enum to specify how a function returns.
1572 (frame_extra_info): Cleanup and record the return mode.
1573 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1574 register in address computation.
1575 (m68hc11_get_return_insn): New to obtain the return instruction used
1576 by the function.
1577 (m68hc11_frame_init_saved_regs): Take into account the return
1578 instruction used by the function for far and interrupt functions.
1579 (m68hc11_init_extra_frame_info): Take into account page register.
1580 (m68hc11_frame_args_address): Adjust according to the return mode.
1581 (show_regs): Print page register only when it's used.
1582
5706502a
SC
15832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1584
1585 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1586 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1587 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1588 registers.
1589 (m68hc11_register_raw_size): Likewise.
1590
28fc6740
AC
15912002-08-13 Andrew Cagney <cagney@redhat.com>
1592
1593 * i386-tdep.c (i386_register_name): Handle mmx registers.
1594 (mmx_regnum_p): New function.
1595 (i386_mmx_names): New array.
1596 (mmx_num_regs): New variable.
1597 (i386_pseudo_register_read): New function.
1598 (i386_pseudo_register_write): New function.
1599 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1600
1601 * regcache.c (regcache_raw_read_unsigned): New function.
1602 (regcache_raw_read_signed): New function.
1603 * regcache.h (regcache_raw_read_unsigned): Declare.
1604 (regcache_raw_read_signed): Declare.
1605
a378f419
AC
16062002-08-13 Andrew Cagney <cagney@redhat.com>
1607
1608 * regcache.c (regcache_raw_read_as_address): Delete function.
1609 (regcache_cooked_read_signed): New function.
1610 (regcache_cooked_read_unsigned): New function.
1611 * regcache.h (regcache_cooked_read_signed): Declare.
1612 (regcache_cooked_read_unsigned): Declare.
1613 (regcache_raw_read_as_address): Delete declaration.
1614
1615 * blockframe.c (generic_read_register_dummy): Use
1616 regcache_cooked_read_unsigned.
1617 * i386-tdep.c (i386_extract_struct_value_address): Use
1618 regcache_cooked_read_unsigned.
1619
81967506
SC
16202002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1621
1622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1623 double sizes according to ELF ABI flags.
1624 (gdbarch_tdep): Record elf_flags.
1625
ffe1f3ee
SC
16262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1627
1628 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1629 (m6812_prolog): They can appear in 68HC12 function prologue.
1630 (m68hc11_frame_chain): Cleanup.
1631
98216c5d
AC
16322002-08-12 Andrew Cagney <cagney@redhat.com>
1633
1634 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1635 declarations.
1636 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1637 (i386_linux_register_raw_size): Delete function.
1638 (i386_linux_init_abi): Update.
1639 * i386-tdep.c (i386_register_raw_size): Delete function.
1640 (i386_register_byte): Delete function.
1641 (i386_gdbarch_init): Update.
1642 (i386_register_size): Delete array.
1643 (i386_register_offset): Delete array.
1644
1645 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1646 (REGISTER_RAW_SIZE): Delete macro.
1647 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1648 (REGISTER_BYTE): Delete macro.
1649
3b19021e
AS
16502002-08-11 Aidan Skinner <aidan@velvet.net>
1651
1652 * ada-lang.c (ada_lookup_partial_symbol)
1653 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1654 prototype names so that grep ^func works properly.
1655
1656 * ada-lang.c (ada_array_element_type)
1657 (ada_lookup_partial_symbol): Fix typos in parameter list.
1658
1659 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1660 Fix prototype names so that grep ^func works properly.
1661
b063e7a2
AC
16622002-08-10 Andrew Cagney <cagney@redhat.com>
1663 Elena Zannoni <ezannoni@redhat.com>
1664 Martin M. Hunt <hunt@redhat.com>
1665
1666 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1667 (build_builtin_type_vec128i): Set the vector bit.
1668 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1669 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1670 (build_builtin_type_vec64): New function.
1671 (build_builtin_type_vec64i): New function.
1672 (build_gdbtypes): Initialize builtin_type_vec64 and
1673 builtin_type_vec64i.
1674
a7e3c2ad
AC
16752002-08-09 Andrew Cagney <cagney@redhat.com>
1676
1677 * regcache.c (regcache_dump): Compare the register offset
1678 with REGISTER_BYTE.
1679 * arch-utils.c (generic_register_byte): New function.
1680 * arch-utils.h (generic_register_byte): Declare.
1681 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1682 * gdbarch.h, gdbarch.c: Regenerate.
1683
af030b9a
AC
16842002-08-09 Andrew Cagney <cagney@redhat.com>
1685
1686 * regcache.c: Include "gdbcmd.h"
1687 (_initialize_regcache): Add commands "maintenance print
1688 registers", "maintenance print raw-registers" and "maintenance
1689 print cooked-registers".
1690 (enum regcache_dump_what): Define.
1691 (dump_endian_bytes): New function.
1692 (regcache_dump): New function.
1693 (regcache_print): New function.
1694 (maintenance_print_registers): New function.
1695 (maintenance_print_raw_registers): New function.
1696 (maintenance_print_cooked_registers): New function.
1697 * Makefile.in (regcache.o): Update dependencies.
1698
cb3d25d1
MS
16992002-08-09 Michael Snyder <msnyder@redhat.com>
1700
1701 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1702 (mips_push_arguments): Correct some comments. Use paddr_nz
1703 for printing addresses in debug output. Replace static
1704 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1705 (mips_n32n64_push_arguments): New function, cloned from
1706 mips_push_arguments and tuned for the n32/n64 ABI.
1707 (mips_push_register): Buffer needs dynamic allocation.
1708 (mips_print_register): Ditto.
1709 (do_gp_register_row): Ditto.
1710 (mips_store_return_value): Ditto.
1711 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1712
2163ab9d
DH
17132002-08-09 Don Howard <dhoward@redhat.com>
1714
1715 * memattr.c (mem_info_command): Print special case of upper bound
1716 as max CORE_ADDR + 1.
1717
b78bcb18
MS
17182002-08-08 Michael Snyder <msnyder@redhat.com>
1719
1720 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1721 returns structs by ref if they're too big to fit in two registers.
1722
ffabd70d
KB
17232002-08-09 Kevin Buettner <kevinb@redhat.com>
1724
1725 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1726 saved regs value.
1727 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1728 mips_find_saved_regs().
1729 (mips_pop_frame): Likewise.
1730
fbcdb4a3
KB
17312002-08-09 Kevin Buettner <kevinb@redhat.com>
1732
1733 * blockframe.c (frame_saved_regs_register_unwind): Revise
1734 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1735 frames are in use.
1736
3c3bea1c
GS
17372002-08-09 Grace Sainsbury <graces@redhat.com>
1738
1739 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1740 T-packets; the 'a' is not taken as a register number.
1741 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1742 (remote_stopped_data_address): New functions; add to target
1743 vector.
1744 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1745 prototypes to match other implementations of this
1746 function. replace integer argument with pointer -- the length
1747 field in the Z-packet is the length of what is pointed to or 1 if
1748 pointer is null. Add to target vector.
1749 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1750 target vector.
1751
1752 From Mark Salter:
1753 * remote.c (remote_wait): Add support to extract optional
1754 watchpoint information from T-packet. Ignore unrecognized
1755 optional info in T-packet.
1756 (remote_async_wait): Ditto.
1757
5d1d95de
CV
17582002-08-09 Corinna Vinschen <vinschen@redhat.com>
1759
1760 * cli/cli-dump.c: Change fopen modes to use binary open modes
1761 as defined in include/fopen-bin.h throughout.
1762
c86b5b38
MS
17632002-08-08 Michael Snyder <msnyder@redhat.com>
1764
1765 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1766
b30590dc
KB
17672002-08-08 Kevin Buettner <kevinb@redhat.com>
1768
1769 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1770 assertion failure by returning early after a warning.
1771
498868ed
KB
17722002-08-08 Kevin Buettner <kevinb@redhat.com>
1773
1774 * mips-tdep.c (mips_find_saved_regs): Make static.
1775 (mips_frame_init_saved_regs): New function.
1776 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1777 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1778 (mips_find_saved_regs): Delete declaration.
1779
b2dd6311
GS
17802002-08-08 Grace Sainsbury <graces@redhat.com>
1781
3c3bea1c
GS
1782 * remote.c (remote_wait, remote_async_wait): Change
1783 thread_num from int to ULONGEST.
1784 (unpack_varlen_hex): Change result parameter from
1785 int * to ULONGEST *.
b2dd6311 1786
ea47855f
AC
17872002-08-08 Andrew Cagney <ac131313@redhat.com>
1788
1789 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1790 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1791 powerpc*-*-*.
1792 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1793
69db8bae
AC
17942002-08-08 Andrew Cagney <cagney@redhat.com>
1795
1796 * gcore.c (override_derive_stack_segment): Delete variable.
1797 (preempt_derive_stack_segment): Delete function.
1798 (derive_stack_segment): Delete function.
1799 (default_derive_stack_segment): Renamed to derive_stack_segment.
1800 (override_derive_heap_segment): Delete variable.
1801 (preempt_derive_heap_segment): Delete function.
1802 (derive_heap_segment): Delete function.
1803 (default_derive_heap_segment): Rename to derive_heap_segment.
1804
cb811fe7
MS
18052002-08-06 Michael Snyder <msnyder@redhat.com>
1806
1807 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1808 * mips-tdep.c (mips_EABI_use_struct_convention,
1809 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1810 New functions. (mips_use_struct_convention): Delete.
1811 (mips_gdbarch_init): set use_gdbarch_convention.
1812
8b389c40
MS
18132002-08-06 Michael Snyder <msnyder@redhat.com>
1814
1815 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1816 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1817 mips_o32_reg_struct_has_addr): New functions.
1818 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1819
5c27f28a
AC
18202002-08-07 Andrew Cagney <ac131313@redhat.com>
1821
1822 * regcache.c (pseudo_register): Delete function.
1823 (fetch_register): Delete function.
1824 (store_register): Delete function.
1825 (regcache_raw_read, legacy_read_register_gen): Use
1826 target_fetch_registers instead of fetch_register.
1827 (legacy_write_register_gen, regcache_raw_write): Use
1828 target_store_register instead of store_register.
1829 (write_register_bytes): Ditto.
1830
1831 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1832 (STORE_PSEUDO_REGISTER): Delete.
1833 * gdbarch.h, gdbarch.c: Regenerate.
1834
5b331675
CV
18352002-08-06 Corinna Vinschen <vinschen@redhat.com>
1836
1837 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1838 write dump file binary.
1839
6acdf5c7
MS
18402002-08-05 Michael Snyder <msnyder@redhat.com>
1841
1842 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1843 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1844 (mips_gdbarch_init): Set N32 target to be mips64.
1845
b2f01c35
KB
18462002-08-06 Kevin Buettner <kevinb@redhat.com>
1847
1848 * frame.c (find_saved_register): Break out of loop once saved
1849 register address is found. Don't mention sparc in loop comment
1850 anymore.
1851
63db5580
KB
18522002-08-06 Kevin Buettner <kevinb@redhat.com>
1853
1854 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1855 mips_default_saved_regsize to 8.
1856
5e34e75e
AC
18572002-08-06 Andrew Cagney <ac131313@redhat.com>
1858
1859 * gcore.c: Do not include <sys/procfs.h>.
1860 * Makefile.in (gcore.o): Update dependencies.
1861
eb4c54a2
AC
18622002-08-06 Andrew Cagney <cagney@redhat.com>
1863
1864 * configure.tgt: Make arc-*-* obsolete.
1865 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1866 * MAINTAINERS: Make arc-elf obsolete.
1867 * arc-tdep.c: Make file obsolete.
1868 * config/arc/arc.mt: Ditto.
1869 * config/arc/tm-arc.h: Ditto.
1870
ced15480
TR
18712002-08-05 Theodore A. Roth <troth@verinet.com>
1872
c1bab85b 1873 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1874
b4743822
AC
18752002-08-05 Andrew Cagney <ac131313@redhat.com>
1876
1877 * mcore-tdep.c (mcore_gdbarch_init): Use
1878 generic_unwind_get_saved_register instead of
1879 generic_get_saved_register.
1880 * v850-tdep.c (v850_gdbarch_init): Ditto.
1881 * frv-tdep.c (frv_gdbarch_init): Ditto.
1882 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1883 * s390-tdep.c (s390_gdbarch_init): Ditto.
1884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1885 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1886 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1887
3956d554
JB
18882002-08-05 Joel Brobecker <brobecker@gnat.com>
1889
1890 * objfiles.h: Add missing #include "symfile.h"
1891
1892 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1893
8249c0d6
AC
18942002-08-04 Andrew Cagney <ac131313@redhat.com>
1895
1896 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1897 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1898 of FIELD_BITSIZE.
1899
b9d14705
DJ
19002002-08-04 Daniel Jacobowitz <drow@mvista.com>
1901
1902 * NEWS: Cleanup and nitpick.
1903
dd73b9bb
AC
19042002-08-03 Andrew Cagney <ac131313@redhat.com>
1905
1906 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1907
043a27f8
AC
19082002-08-03 Andrew Cagney <ac131313@redhat.com>
1909
1910 * Makefile.in (gdbtk-bp.o): Update dependencies.
1911 (gdbtk-register.o): Ditto.
1912 (gdbtk-varobj.o): Ditto.
1913
46ce284d
AC
19142002-08-03 Andrew Cagney <cagney@redhat.com>
1915
1916 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1917 m68hc11_fetch_pseudo_register.
1918 (m68hc11_pseudo_register_write): Replace
1919 m68hc11_store_pseudo_register.
1920 (m68hc11_gdbarch_init): Update.
1921
b66d6d2e
AC
1922Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1923
1924 * gdbarch.sh: Include "gdb_string.h".
1925 * gdbarch.c: Regenerate.
1926
1927 * regcache.c: Include "gdb_string.h".
1928 * ax-general.c: Ditto.
1929 * varobj.c: Ditto.
1930 * std-regs.c: Ditto.
1931 * fbsd-proc.c: Ditto.
1932 * thread.c: Ditto.
1933
1934 * Makefile.in (regcache.o): Update dependencies.
1935 (thread.o, gdbarch.o): Ditto.
1936 (ax-general.o, gdbarch.o): Ditto.
1937 (varobj.o, std-regs.o): Ditto.
1938 (fbsd-proc.o): Specify dependencies.
1939
29e1842b
AC
19402002-08-02 Andrew Cagney <cagney@redhat.com>
1941
1942 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1943 regnum.
1944 (regcache_cooked_write): Ditto.
1945
68365089
AC
19462002-08-02 Andrew Cagney <ac131313@redhat.com>
1947
1948 * regcache.c (regcache_cooked_read): New function.
1949 (regcache_cooked_write): New function.
1950 (read_register_gen): Rewrite using regcache_cooked_read.
1951 (write_register_gen): Rewrite using regcache_cooked_write.
1952
1953 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1954 Declare.
1955
d8124050
AC
19562002-08-02 Andrew Cagney <cagney@redhat.com>
1957
1958 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1959 Replace the architecture methods register_read and register_write.
1960 * gdbarch.h, gdbarch.c: Regenerate.
1961 * regcache.c (init_regcache_descr): Update.
1962 (read_register_gen): Update.
1963 (write_register_gen): Update.
1964 (supply_register): Update comment.
1965
1966 * sh-tdep.c (sh_gdbarch_init): Update.
1967 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1968 `regcache' and `gdbarch' parameters. Make `buffer' a void
1969 pointer. Update code.
1970 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1971 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1972 void pointer. Update code.
1973 (sh64_register_write): Delete.
1974 (sh4_register_read): Delete.
1975 (sh64_register_read): Delete.
1976 (sh4_register_write): Delete.
1977 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1978 void pointer, `to' parameter a void pointer.
1979 (sh_sh64_register_convert_to_raw): Ditto.
1980
a6425924
KB
19812002-08-01 Kevin Buettner <kevinb@redhat.com>
1982
1983 * mips-tdep.c (mips_register_virtual_type): Use architecture
1984 invariant return values.
1985
ff5922b5
AC
19862002-08-01 Andrew Cagney <cagney@redhat.com>
1987
1988 * linux-proc.c: Include "gdb_string.h".
1989 * Makefile.in (linux-proc.o): Update dependency list.
1990
32a6503c
KB
19912002-08-01 Kevin Buettner <kevinb@redhat.com>
1992
1993 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1994 comment.
1995
ccaa32c7
GS
19962002-08-01 Grace Sainsbury <graces@redhat.com>
1997
1998 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1999 to_insert_watchpoint, to_remove_watchpoint,
2000 to_stopped_by_watchpoint, to_stopped_data_address,
2001 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2002 target vecctor. Define their corresponding macros so they call
2003 them.
2004
2005 * target.c: Add default and debug versions of for
2006 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2007 to_insert_watchpoint, to_remove_watchpoint,
2008 to_stopped_by_watchpoint, to_stopped_data_address,
2009 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2010
78fde5f8
KB
20112002-08-01 Kevin Buettner <kevinb@redhat.com>
2012
2013 * mips-tdep.c (mips_register_virtual_type): New function.
2014 (mips_gdbarch_init): Register mips_register_virtual_type()
2015 with gdbarch machinery.
2016 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2017 this file instead of tm-bigmips.h.
2018 (MIPS_REGSIZE): Delete this macro.
2019 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2020 multiarch version in mips-tdep.c will be found.
2021
db034ac5
AC
20222002-08-01 Andrew Cagney <cagney@redhat.com>
2023
2024 * NEWS: Menion that CHILL has been made obsolete.
2025
2026 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2027 * stabsread.c (read_range_type): Ditto.
2028 * gdbtypes.h: Ditto.
2029 * language.c (binop_type_check): Ditto.
2030 (binop_result_type): Ditto.
2031 (integral_type): Ditto.
2032 (character_type): Ditto.
2033 (string_type): Ditto.
2034 (boolean_type): Ditto.
2035 (structured_type): Ditto.
2036 (lang_bool_type): Ditto.
2037 (binop_type_check): Ditto.
2038 * language.h (_LANG_chill): Ditto.
2039 * dwarfread.c (set_cu_language): Ditto.
2040 * dwarfread.c (CHILL_PRODUCER): Ditto.
2041 * dwarfread.c (handle_producer): Ditto.
2042 * expression.h (enum exp_opcode): Ditto.
2043 * eval.c: Ditto for comments.
2044 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2045 * expprint.c (print_subexp): Ditto.
2046 (print_subexp): Ditto.
2047 * valops.c (value_cast): Ditto.
2048 (search_struct_field): Ditto.
2049 * value.h (COERCE_VARYING_ARRAY): Ditto.
2050 * symfile.c (init_filename_language_table): Ditto.
2051 (add_psymbol_with_dem_name_to_list): Ditto.
2052 * valarith.c (value_binop): Ditto.
2053 (value_neg): Ditto.
2054 * valops.c (value_slice): Ditto.
2055 * symtab.h (union language_specific): Ditto.
2056 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2057 (SYMBOL_DEMANGLED_NAME): Ditto.
2058 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2059 * defs.h (enum language): Ditto.
2060 * symtab.c (got_symtab): Ditto.
2061 * utils.c (fprintf_symbol_filtered): Ditto.
2062
2063 * ch-typeprint.c: Make file obsolete.
2064 * ch-valprint.c: Make file obsolete.
2065 * ch-lang.h: Make file obsolete.
2066 * ch-exp.c: Make file obsolete.
2067 * ch-lang.c: Make file obsolete.
2068
2069 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2070 CHILL_LIB.
2071 (TARGET_FLAGS_TO_PASS): Ditto.
2072 (CHILLFLAGS): Obsolete.
2073 (CHILL): Obsolete.
2074 (CHILL_FOR_TARGET): Obsolete.
2075 (CHILL_LIB): Obsolete.
2076 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2077 ch-valprint.c.
2078 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2079 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2080 ch-lang.o.
2081 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2082 targets.
2083
8aaf0b47
JB
20842002-07-31 Joel Brobecker <brobecker@gnat.com>
2085
2086 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2087 This does not change anything at the moment, but will be helpful
2088 later when full Ada support is integrated.
2089
f3a7b3a5
KB
20902002-07-31 Kevin Buettner <kevinb@redhat.com>
2091
2092 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2093 help message.
2094
fb850278
KB
20952002-07-31 Kevin Buettner <kevinb@redhat.com>
2096
2097 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2098 and save it in a local variable. Use variable in later test.
2099
e3bddbfa
KB
21002002-07-31 Kevin Buettner <kevinb@redhat.com>
2101
2102 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2103 test. (Thanks to Daniel Jacobowitz.)
2104
28d169de
KB
21052002-07-31 Kevin Buettner <kevinb@redhat.com>
2106
2107 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2108 (mips_abi_strings): Add "n64".
2109 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2110
7fe7e44e
KB
21112002-07-31 Kevin Buettner <kevinb@redhat.com>
2112
2113 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2114 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2115
c6caf090
KB
21162002-07-31 Kevin Buettner <kevinb@redhat.com>
2117
2118 * utils.c (host_pointer_to_address, address_to_host_pointer):
2119 Use gdb_assert() instead of explicit call to internal_error().
2120
c41669e0
KB
21212002-07-30 Kevin Buettner <kevinb@redhat.com>
2122
2123 * Makefile.in (rs6000-nat.o): Update dependencies.
2124
2125 From Nicholas Duffek:
2126 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2127 (aix-thread.o): New rule.
2128 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2129 * config/powerpc/aix432.mh: New file.
2130
2fda4977
DJ
21312002-07-30 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2134 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2135 (fetch_core_registers, ppc_linux_supply_gregset)
2136 (ppc_linux_supply_fpregset): New functions.
2137 (ppc_linux_regset_core_fns): New.
2138 (_initialize_ppc_linux_tdep): Call add_core_fns.
2139 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2140 and ppc_linux_supply_gregset.
2141 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2142 (supply_fpregset): Call ppc_linux_supply_fpregset.
2143 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2144 corelow.o.
2145 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2146
729051e6
DJ
21472002-07-30 Daniel Jacobowitz <drow@mvista.com>
2148
2149 * symtab.c (lookup_symbol): Demangle before lowercasing.
2150
5f8a3188
AC
21512002-07-30 Andrew Cagney <ac131313@redhat.com>
2152
2153 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2154 declaration.
2155 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2156 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2157 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2158 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2159 "gdb_string.h".
2160 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2161 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2162 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2163 (avr-tdep.o, mon960-rom.o): Ditto.
2164 (aout_stabs_gnu_h): Define.
2165 (symtab_h): Remove $(gdb_obstack_h).
2166
67f07146
JB
21672002-07-30 Jim Blandy <jimb@redhat.com>
2168
2169 Patch from David Carlton <carlton@math.stanford.edu>:
2170 * gdbinit.in: Move the `dir' commands that add GDB's own source
2171 directory to the search path to the end, so that the `gdb' source
2172 directory will be searched first.
2173
04ea0df1
AC
21742002-07-29 Andrew Cagney <ac131313@redhat.com>
2175
2176 * gdb_obstack.h: New file.
2177 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2178 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2179 * objfiles.h: Include "gdb_obstack.h".
2180 * Makefile.in (gdb_obstack_h): Define.
2181 (symtab_h): Add $(gdb_obstack_h).
2182 (objfiles_h): Add $(gdb_obstack_h).
2183
2184 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2185 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2186 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2187 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2188 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2189 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2190 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2191 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2192
2193 * Makefile.in (bcache.o): Update dependencies.
2194 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2195 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2196 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2197 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2198 (stabsread.o, symfile.o, symmisc.o): Ditto.
2199 (symtab.o, typeprint.o, macroexp.o): Ditto.
2200 (macrotab.o, mdebugread.o): Ditto.
2201 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2202 (coff_ecoff_h, aout_aout64_h): Define.
2203 (aout_stabs_gnu_h, libaout_h): Define.
2204
d138e37a
AC
22052002-07-29 Andrew Cagney <cagney@redhat.com>
2206
2207 * regcache.c (struct regcache_descr): Rename nr_registers to
2208 nr_cooked_registers. Revise comments describing the structure
2209 member fields.
2210 (init_regcache_descr): Update.
2211 (init_legacy_regcache_descr): Update.
2212 (read_register_gen, write_register_gen): When a cooked register in
2213 the raw register range, directly access the value from the raw
2214 register cache.
2215
460e6ec3
AC
22162002-07-29 Andrew Cagney <ac131313@redhat.com>
2217
2218 * z8k-tdep.c: Do not include "obstack.h".
2219 * h8300-tdep.c, h8500-tdep.c: Ditto.
2220 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2221 * valprint.c, v850-tdep.c: Ditto.
2222 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2223 * mn10200-tdep.c: Ditto.
2224
2225 * Makefile.in (z8k-tdep.o): Update dependencies.
2226 (m68hc11-tdep.o, valprint.o): Ditto.
2227 (v850-tdep.o, d10v-tdep.o): Ditto.
2228 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2229 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2230 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2231 (sh_opc_h, gdb_sim_sh_h): Define.
2232 (elf_sh_h, elf_bfd_h): Define.
2233 (opcode_m68hc11_h): Define.
2234 (OPCODES_SRC, OPCODES_DIR): define.
2235 (OPCODES): Use $(OPCODES_DIR).
2236 (gdb_sim_d10v_h): Rename sim_d10v_h.
2237 (gdb_sim_arm_h): Rename sim_arm_h.
2238
790c9cf0
KB
22392002-07-26 Kevin Buettner <kevinb@redhat.com>
2240
2241 * utils.c (host_pointer_to_address, address_to_host_pointer):
2242 Change internal_error() message to indicate function responsible
2243 for the error.
2244
9647fa49
KB
22452002-07-26 Kevin Buettner <kevinb@redhat.com>
2246
2247 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2248 calls to local_hex_string_custom().
2249
dabbe2c0
KB
22502002-07-26 Kevin Buettner <kevinb@redhat.com>
2251
2252 * irix5-nat.c: Move IRIX shared library support from here...
2253 * solib-irix.c: ...to here. Revised substantially to work with
2254 generic solib framework.
2255
b96d0a4e
KB
2256 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2257 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2258 * mips-irix-tdep.c: New file.
2259
313fb2f6
KB
2260 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2261 (mips-irix-tdep.o, solib-irix.o): New rules.
2262 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2263 solib-irix.o.
2264 * config/mips/irix6.mt (TDEPFILES): Likewise.
2265 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2266
ab2eaf26
KB
22672002-07-26 Kevin Buettner <kevinb@redhat.com>
2268
177e4768 2269 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2270 disabled (via ``#if 0'') includes.
2271
7244546a
KB
22722002-07-26 Kevin Buettner <kevinb@redhat.com>
2273
2274 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2275 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2276 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2277 Add support for the fpscr register.
2278 * rs6000-nat.c (regmap, fetch_inferior_registers)
2279 (store_inferior_registers, fetch_core_registers): Likewise.
2280
dd7be90a
KB
22812002-07-26 Kevin Buettner <kevinb@redhat.com>
2282
2283 * rs6000-nat.c (language.h): Include.
2284 (special_regs): Delete this array.
2285 (regmap): New function.
2286 (fetch_register, store_register): Use regmap() to map gdb
2287 register numbers to ptrace register numbers. Also, use
2288 outputs from regmap() to make decisions regarding type of
2289 ptrace() call to make. In particular, don't compare against
2290 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2291 (fetch_inferior_registers, store_inferior_registers): Where
2292 possible, obtain register numbers from tdep struct. Don't
2293 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2294 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2295 (LAST_UISA_SP_REGNUM): Delete.
2296
11bf77db
KB
22972002-07-25 Kevin Buettner <kevinb@redhat.com>
2298
2299 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2300 (fetch_registers, store_register, fetch_core_registers): Don't
2301 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2302 regcache_collect() as appropriate.
2303 (find_toc_address): Format hex address with local_hex_string().
2304
06afebeb
AC
23052002-07-25 Andrew Cagney <ac131313@redhat.com>
2306
2307 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2308 bfd/elf32-frv.c.
2309
8c554d79
TT
23102002-07-24 Tom Tromey <tromey@redhat.com>
2311
2312 * jv-exp.y: Marked all strings with _().
2313 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2314 internal_error.
2315 (MethodInvocation, CastExpression, parse_number, yyerror,
2316 java_type_from_name, push_expression_name, yylex): Typo fixes.
2317
e4c242d9
DJ
23182002-07-24 Daniel Jacobowitz <drow@mvista.com>
2319
2320 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2321 (tee_file_flush, tee_file_write, tee_file_fputs)
2322 (tee_file_isatty): New.
2323 * ui-file.h (tee_file_new): Add prototype.
2324
ebf56fd3
AS
23252002-07-24 Aidan Skinner <aidan@velvet.net>
2326
2327 * ada-lang.c: Change k&r style function definitions to prototyped
2328 form.
2329 * ada-typeprint.c: Change k&r style function definitions to prototyped
2330 form.
2331 * ada-valprint.c: Change k&r style function definitions to prototyped
2332 form.
2333
7fb623f7
AC
23342002-07-24 Andrew Cagney <cagney@redhat.com>
2335
2336 * README: Remove reference to remote-bug.
2337 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2338 remote-bug.c.
2339 (m88k-nat.o): Delete rule.
2340 (m88k-tdep.o): Delete rule.
2341 (remote-bug.o): Delete rule.
2342 * MAINTAINERS: Mark as obsolete.
2343 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2344 * m88k-tdep.c: Make file obsolete.
2345 * config/m88k/m88k.mh: Ditto.
2346 * config/m88k/delta88v4.mh: Ditto.
2347 * config/m88k/delta88v4.mt: Ditto.
2348 * config/m88k/delta88.mt: Ditto.
2349 * config/m88k/delta88.mh: Ditto.
2350 * remote-bug.c: Ditto.
2351 * config/m88k/tm-delta88.h: Ditto.
2352 * config/m88k/nm-delta88v4.h: Ditto.
2353 * config/m88k/xm-delta88.h: Ditto.
2354 * config/m88k/xm-dgux.h: Ditto.
2355 * config/m88k/tm-m88k.h: Ditto.
2356 * config/m88k/nm-m88k.h: Ditto.
2357 * config/m88k/tm-delta88v4.h: Ditto.
2358 * m88k-nat.c: Ditto.
2359 * cxux-nat.c: Ditto.
2360 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2361 and m88*-*-* obsolete.
2362 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2363 m88*-*-* obsolete.
2364
37611a2b
AC
23652002-07-24 Andrew Cagney <cagney@redhat.com>
2366
2367 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2368 constant. Same for local pointer variables.
2369 (extract_signed_integer): Ditto.
2370 * defs.h (extract_unsigned_integer): Update.
2371 (extract_signed_integer): Update.
2372
1aaa5f99
AC
23732002-07-24 Andrew Cagney <cagney@redhat.com>
2374
2375 * regcache.c (regcache_raw_write): Change buf parameter to a
2376 constant void pointer.
2377 (regcache_raw_read): Change buf parameter to a void pointer.
2378 (legacy_write_register_gen): Change myaddr parameter a constant
2379 void pointer.
2380 (supply_register): Change val parameter to a const void pointer.
2381 * regcache.h (regcache_raw_write): Update declaration.
2382 (regcache_raw_read): Update declaration.
2383 (supply_register): Update declaration.
2384
b4f5539f
TT
23852002-07-24 Tom Tromey <tromey@redhat.com>
2386
2387 * defs.h (gdb_readline_wrapper): Declare.
2388 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2389 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2390 * top.c (gdb_readline_wrapper): New function.
2391 (command_line_input): Use it.
2392
0818c12a
AC
23932002-07-24 Andrew Cagney <cagney@redhat.com>
2394
2395 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2396 regcache_read and regcache_write.
2397 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2398 * regcache.c: Update.
2399 * sh-tdep.c (sh64_push_arguments): Update comment.
2400 (sh_pseudo_register_read): Update.
2401 (sh_pseudo_register_write): Update.
2402 (sh4_register_read): Update.
2403 (sh4_register_write): Update.
2404 (sh64_pseudo_register_read): Update.
2405 (sh64_pseudo_register_write): Update.
2406 (sh64_register_read): Update.
2407 (sh64_register_write): Update.
2408 * i386-tdep.c (i386_extract_return_value): Update.
2409 (i386_extract_struct_value_address): Update.
2410 (i386_extract_return_value): Update.
2411 * blockframe.c (generic_read_register_dummy): Update.
2412 (generic_call_dummy_register_unwind): Update
2413 * infrun.c (write_inferior_status_register): Update.
2414
f7321c06
JB
24152002-07-23 Jim Blandy <jimb@redhat.com>
2416
2417 * parser-defs.h (expression_context_pc): Make this extern.
2418 (Thanks to Michael Snyder.)
2419
2037aebb
AC
24202002-07-23 Andrew Cagney <ac131313@redhat.com>
2421
2422 GDB 5.2.1 released from 5.2 branch.
2423 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2424 * README: Update to mention 5.2.1.
2425
66504d44
MS
24262002-07-23 Mark Salter <msalter@redhat.com>
2427
2428 * remote.c (remote_read_bytes): Fix check for error.
2429
27bae383
KB
24302002-07-22 Kevin Buettner <kevinb@redhat.com>
2431
2432 * aix-thread.c (language.h): Include.
2433 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2434 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2435 Print newlines at end of debug messages.
2436 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2437 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2438
24392002-07-22 Kevin Buettner <kevinb@redhat.com>
2440
2441 * aix-thread.c (ppc-tdep.h): Include.
2442 (special_register_p): New function.
2443 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2444 (store_regs_user_thread): Use register number information from
2445 gdbarch_tdep struct instead of hardcoded offsets relative to
2446 FIRST_UISA_SP_REGNUM.
2447 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2448 special_register_p() instead of using FPLAST_REGNUM and
2449 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2450 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2451 will be MQ's register number.
2452
24532002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2454
2455 * aix-thread.c (ops): Rename to aix_thread_ops.
2456 (base_ops): Rename to base_target.
2457 (ops_attach): Rename to aix_thread_attach.
2458 (ops_detach): Rename to aix_thread_detach.
2459 (ops_resume): Rename to aix_thread_detach.
2460 (ops_wait): Rename to aix_thread_wait.
2461 (ops_kill): Rename to aix_thread_kill.
2462 (init_ops): Rename to init_aix_thread_ops.
2463 (ops_fetch_register): Rename to aix_thread_fetch_register.
2464 (ops_store_register): Rename to aix_thread_store_register.
2465 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2466 (ops_thread_alive): Rename to aix_thread_thread_alive.
2467 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2468 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2469 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2470 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2471 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2472 (store_regs_lib): Rename to store_regs_user_thread.
2473 (store_regs_kern): Rename to store_regs_kernel_thread.
2474
27bae383 24752002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2476
2477 * aix-thread.c (ops_prepare_to_store): Eliminate.
2478 (init_ops): Don't initialize ops.prepare_to_store.
2479 (store_regs_kern): Pre-fetch register buffers from child,
2480 because some registers may not be in the cache. Copy
2481 regs from register cache only if they are cached.
2482 (store_regs_lib): Copy regs from register cache only
2483 if they are cached.
2484 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2485 fill_gprs64): Ditto.
2486
61c5da0b
KB
24872002-07-22 Kevin Buettner <kevinb@redhat.com>
2488
2489 * aix-thread.c (gdb_assert.h): Include.
2490 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2491 register sizes (from register cache) match size of buffer holding
2492 register data.
2493 (fill_sprs32): Change parameter types to match those in the ptrace()
2494 buffer.
2495 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2496 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2497
24982002-07-22 Michael Snyder <msnyder@redhat.com>
2499
2500 * aix-thread.c (supply_sprs64): Cosmetic change.
2501 (supply_sprs32): Cosmetic change.
2502 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2503 (fill_sprs64): Use regcache_collect instead of read_register.
2504 (store_regs_lib): Use regcache_collect instead of
2505 read_register. Use fill_sprs32 instead of fill_sprs64,
2506 if debugging a 32-bit architecture.
2507 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2508 out of the register cache, instead of passing a pointer into
2509 the register cache directly to ptrace. Use regcache_collect
2510 insteaad of read_register.
2511 (ops_prepare_to_store): Use target_read_registers instead
2512 of read_register_bytes.
2513
36479eb1
AS
25142002-07-20 Aidan Skinner <aidan@velvet.net>
2515
2516 * MAINTAINERS: Add self under write after approval.
2517
80ae6ee2
AS
25182002-07-20 Aidan Skinner <aidan@velvet.net>
2519
2520 * ada-tasks.c: Change k&r style function definitions to prototyped
2521 form.
2522
8a8ab2b9
AC
25232002-07-19 Andrew Cagney <ac131313@redhat.com>
2524
2525 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2526 * x86-64-tdep.c: Include "objfiles.h".
2527 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2528 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2529
fb16b900
ML
25302002-07-17 Michal Ludvig <michal@suse.cz>
2531
2532 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2533 (update_context): Initialise cfa variable.
2534
0fe7bf7b
MS
25352002-07-17 Michael Snyder <msnyder@redhat.com>
2536
2537 * aix-thread.c: Shorten some long lines.
2538 Bring comments into line with code spec.
2539
488f131b
JB
25402002-07-18 Joel Brobecker <brobecker@gnat.com>
2541
2542 * infrun.c: Re-indent using gdb_indent.sh.
2543
46c415d2
JB
25442002-07-18 Joel Brobecker <brobecker@gnat.com>
2545
2546 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2547 Leave the indentation temporarily untouched, to minimize the diffs.
2548
cdecafbe
EZ
25492002-07-18 Elena Zannoni <ezannoni@redhat.com>
2550
2551 * stabsread.c: Make os9k sections of the code obsolete,
2552 for real this time.
2553 * stabsread.h: Make os9k sections of the code obsolete.
2554
7b6aa020
ML
25552002-07-18 Michal Ludvig <mludvig@suse.cz>
2556
09ec9b38
ML
2557 * linux-low.c (regsets_store_inferior_registers): Add free()
2558 at the end of a loop to prevent memory leak.
2559 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2560 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2561 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2562 line a comment.
4894ac5d 2563 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2564
233282cd
JB
25652002-07-17 Jim Blandy <jimb@redhat.com>
2566
2567 * macrocmd.c (info_macro_command): Remove newline from error
2568 message.
2569
7b6aa020 25702002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2571
2572 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2573 (sh_gdbarch_init): Use it for sh-dsp.
2574
f7ef9339
KB
25752002-07-16 Kevin Buettner <kevinb@redhat.com>
2576
2577 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2578 64-bit DWARF2 format.
2579
8dd72958
JB
25802002-07-16 Joel Brobecker <brobecker@gnat.com>
2581
2582 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2583 <sys/proc.h> when not available.
2584
a99a9e1b
AC
25852002-07-16 Andrew Cagney <ac131313@redhat.com>
2586
2587 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2588 * stabsread.c: Make os9k sections of the code obsolete.
2589 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2590 * config/i386/i386os9k.mt: Make file obsolete.
2591 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2592 (COMMON_OBS): Remove os9kread.o
2593 (SFILES): Remove os9kread.c.
2594 (os9kread.o, remote-os9k.o): Make target obsolete.
2595 * remote-os9k.c: Make file obsolete.
2596 * os9kread.c: Make file obsolete.
2597 * Makefile.in
2598
7a3085c1
AC
25992002-07-16 Andrew Cagney <ac131313@redhat.com>
2600
2601 * NEWS: Mention that the FR30 has been made obsolete.
2602 * fr30-tdep.c: Make file obsolete.
2603 * config/fr30/tm-fr30.h: Ditto.
2604 * config/fr30/fr30.mt: Ditto.
2605 * configure.tgt: Make fr30-*-elf obsolete.
2606 * MAINTAINERS: Make fr30-elf obsolete.
2607
28a93f5a
PM
26082002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2609
2610 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2611 found is not inside a section.
2612
be006b8b
KB
26132002-07-15 Kevin Buettner <kevinb@redhat.com>
2614
2615 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2616 strerror().
2617 (pdc_realloc): Use xrealloc() instead of realloc().
2618
14fa3751
KB
26192002-07-15 Kevin Buettner <kevinb@redhat.com>
2620
2621 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2622 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2623 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2624 macros.
2625
42cc437f
KB
26262002-07-15 Kevin Buettner <kevinb@redhat.com>
2627
2628 * aix-thread.c (ptrace_check): Eliminate goto.
2629 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2630 problem.
2631
8e2c28d4
KB
26322002-07-15 Kevin Buettner <kevinb@redhat.com>
2633
2634 * aix-thread.c (gdbcmd.h): Include.
2635 (DEBUG, DBG, DBG2, dbg): Eliminate.
2636 (debug_aix_thread): New static global.
2637 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2638 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2639 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2640 invocations to DBG and DBG2 macros to test against
2641 ``debug_aix_thread'' and call fprintf_unfiltered().
2642 (_initialize_aix_thread): Add new command "set debug aix-thread".
2643
30413464
AC
26442002-07-15 Andrew Cagney <ac131313@redhat.com>
2645
2646 From Gerhard Tonn <TON@de.ibm.com>:
2647 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2648 instead of supply_register.
2649
7c43edc1
AC
26502002-07-15 Andrew Cagney <ac131313@redhat.com>
2651
2652 * dwarf2cfi.c: Include "gdb_assert.h".
2653 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2654 non-NULL.
2655 (update_context): Do not use __func__. Add missing ``break''.
2656 (update_context): Do not use __func__.
2657
9364a0ef
EZ
26582002-07-15 Elena Zannoni <ezannoni@redhat.com>
2659
2660 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2661 and its setting. Set gdbarch instruction printing functions
2662 directly. For non-rs6000 case use new function
2663 gdb_print_insn_powerpc.
2664 (gdb_print_insn_powerpc): New function.
2665
3fbeef0b
AC
26662002-07-13 Andrew Cagney <ac131313@redhat.com>
2667
92eb23c5 2668 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2669 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2670 * configure.tgt: Mark d30v-*-* as obsolete.
2671 * d30v-tdep.c: Mark file as obsolete.
2672 * config/d30v/d30v.mt: Ditto.
2673 * config/d30v/tm-d30v.h: Ditto.
2674
aacb1f0a
AS
26752002-07-13 Aidan Skinner <aidan@velvet.net>
2676
2677 * ada-tasks.c (add_task_entry): replace calls to
2678 malloc() with xmalloc
2679 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2680
2681 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2682 ada_finish_decode_line_1, all_sals_for_line
2683 ada_breakpoint_rewrite): replace calls to free() with xfree()
2684
c11d79f2
KB
26852002-07-12 Kevin Buettner <kevinb@redhat.com>
2686
2687 From Nicholas Duffek (with minor changes by Martin Hunt,
2688 Louis Hamilton, and Kevin Buettner):
2689 * aix-thread.c: New file.
2690
8e19ed76
PS
26912002-07-12 Petr Sorfa <petrs@caldera.com>
2692
2693 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2694 complaint for invalid attribute class or form.
2695 (read_func_scope): DW_AT_frame_base
2696 better handling of DW_AT_block*.
2697 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2698 better handling of DW_AT_block*.
2699 (read_common_block): DW_AT_location
2700 better handling of DW_AT_block*.
2701 (read_partial_die): DW_AT_location better handling
2702 of DW_AT_block*.
2703 (new_symbol): DW_AT_external better handling of
2704 DW_AT_block*. Proper initialization of variable
2705 "addr".
2706 (attr_form_is_block): New function that returns true
2707 if the attribute's form is of DW_FORM_block*.
2708
295401f7
DJ
27092002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2710
2711 * valops.c (find_method_list): Remove comment about
2712 removed STATIC_MEMFUNCP argument.
2713 (value_find_oload_method_list): Likewise.
2714
e42dc924
KB
27152002-07-12 Kevin Buettner <kevinb@redhat.com>
2716
2717 From Nicholas Duffek:
2718 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2719 target_new_objfile_hook.
2720
6904b546
KB
27212002-07-12 Kevin Buettner <kevinb@redhat.com>
2722
2723 From Nicholas Duffek:
2724 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2725 csect.
2726
53fe9346
AC
27272002-07-12 Andrew Cagney <cagney@redhat.com>
2728
2729 * MAINTAINERS: Mention --enable-sim-build-warnings.
2730 (m68hc11-elf): Disable sim build warnings.
2731 (m32r-elf): Mark as broken obsolete candidate.
2732 (x86_64-linux-gnu): Mark as buildable with -Werror.
2733 (arm-elf): Change -w to ``,'' which enables warnings but not
2734 -Werror.
2735
af5f3db6
AC
27362002-07-12 Andrew Cagney <ac131313@redhat.com>
2737
2738 * bcache.h: Update copyright.
2739 (struct bstring, struct bcache): Move definition to "bcache.c".
2740 Replaced by opaque declaration.
2741 (bcache_xfree): Replace free_bcache.
2742 (bcache_xmalloc, bcache_memory_used): Declare.
2743
2744 * bcache.c: Update copyright.
2745 (struct bstring, struct bcache): Moved to here from "bcache.h".
2746 Update comments.
2747 (bcache_xmalloc, bcache_memory_used): New functions.
2748 (bcache_xfree): Replace function free_bcache.
2749
2750 * Makefile.in (objfiles.o): Add $(bcache_h).
2751 (objfiles_h): Remove $(bcache_h).
2752 (symfile.o): Add $(bcache_h).
2753
2754 * symmisc.c: Update copyright.
2755 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2756 (print_objfile_statistics): Use bcache_memory_used.
2757
2758 * symfile.c: Include "bcache.h".
2759 (reread_symbols): Use bcache_xfree.
2760 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2761 (add_psymbol_to_list): Pass psymbol_cache by value.
2762 (add_psymbol_with_dem_name_to_list): Ditto.
2763
2764 * objfiles.h: Update copyright.
2765 (struct bcache): Declare opaque. Do not include "bcache.h".
2766 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2767 bcache'' pointers.
2768 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2769
2770 * objfiles.c: Include "bcache.h". Update copyright.
2771 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2772 macro_cache.
2773 (free_objfile): Use bcache_xfree.
2774
444199e7
GS
27752002-07-11 Grace Sainsbury <graces@redhat.com>
2776
2777 * monitor.c (monitor_fetch_register): Make name a constant.
2778 (monitor_store_register): Same.
2779
261397f8
DJ
27802002-07-11 Daniel Jacobowitz <drow@mvista.com>
2781
2782 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2783 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2784 (finish_block) For non-function blocks, hash the symbol table. For
2785 function blocks, mark the symbol table as unhashed.
2786 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2787 (msymbol_hash_iw): Likewise.
2788 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2789 value.
2790 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2791 (lookup_minimal_symbol): Likewise for both.
2792 * symtab.h (struct block): Add `hashtable' flag. Comment the
2793 hashtable.
2794 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2795 (ALL_BLOCK_SYMBOLS): Update.
2796 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2797 (struct symbol): Add `hash_next' pointer.
2798 * symtab.c (lookup_block_symbol): Search using the hash table when
2799 possible.
2800 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2801 (search_symbols, find_addr_symbol): Likewise.
2802
2803 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2804 (read_dst_symtab): Likewise.
2805 * jv-lang.c (get_java_class_symtab): Likewise.
2806 * mdebugread.c: Include "gdb_assert.h".
2807 (shrink_block): Assert that the block being modified is not hashed.
2808 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2809 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2810 symbols.
2811 (dump_symtab): Recognize hashed blocks.
2812 * printcmd.c (print_frame_args): Assert that function blocks do not
2813 have hashed symbol tables.
2814 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2815 (fill_in_ada_prototype, debug_print_block): Likewise.
2816 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2817
6f0eaa01
CV
28182002-07-11 Corinna Vinschen <vinschen@redhat.com>
2819
2820 * stack.c (print_frame): Use result of frame_address_in_block()
2821 instead of fi->pc when evaluating symbols.
2822 (backtrace_command_1): Ditto.
2823
a208b0cb
AC
28242002-07-11 Andrew Cagney <cagney@redhat.com>
2825
2826 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2827 Make static.
2828
2829 * arm-tdep.c (arm_register_name): Make return type constant.
2830
a6b6b089
AC
28312002-07-10 Andrew Cagney <ac131313@redhat.com>
2832
5ae5f592
AC
2833 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2834 prototype.
2835 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2836 * s390-tdep.c (s390_fp_regnum): Ditto.
2837 (s390_read_fp): Ditto.
2838 (s390_pop_frame): Ditto.
2839 (_initialize_s390_tdep): Ditto.
2840 * remote.c (get_remote_state): Ditto.
2841 * procfs.c (mappingflags): Ditto.
2842 * memattr.c (_initialize_mem): Ditto.
2843 * mcore-tdep.c (mcore_pop_frame): Ditto.
2844 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2845 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2846 * language.c (set_case_str): Ditto.
2847 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2848 * frv-tdep.c (new_variant): Ditto.
2849 (frv_stopped_data_address): Ditto.
2850 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2851 (context_alloc): Ditto.
2852 (frame_state_alloc): Ditto.
2853 (unwind_tmp_obstack_init): Ditto.
2854 (unwind_tmp_obstack_free): Ditto.
2855 (cfi_read_fp): Ditto.
2856 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2857 (cris_pop_frame): Ditto.
2858 * c-lang.c (scanning_macro_expansion): Ditto.
2859 (finished_macro_expansion): Ditto.
2860 (c_preprocess_and_parse): Ditto.
2861 * gdbarch.sh: Ditto.
2862 * gdbarch.h, gdbarch.c: Regenerate.
2863 * config/mn10200/tm-mn10200.h: Adjust indentation.
2864 * target.c: Adjust indentation.
2865 * symtab.h: Adjust indentation.
2866 * stabsread.h: Adjust indentation.
2867 * remote-es.c: Adjust indentation.
2868 * os9kread.c: Adjust indentation.
2869
28702002-07-10 Andrew Cagney <ac131313@redhat.com>
2871
a6b6b089
AC
2872 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2873 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2874
a1789893
GS
28752002-07-10 Grace Sainsbury <graces@redhat.com>
2876
2877 * NEWS: Mention m68k, mcore multi-arching.
2878 * MAINTAINERS: Change status of m68k, mcore to reflect
2879 multi-arching.
2880
02f0d45d
DJ
28812002-07-10 Daniel Jacobowitz <drow@mvista.com>
2882
2883 * valops.c (find_overload_match): Free oload_syms.
2884
f15f768e
JB
28852002-07-09 Joel Brobecker <brobecker@gnat.com>
2886
2887 Define HAVE_SYS_PROC_H if sys/proc.h exists
2888 * configure.in: Add check for sys/proc.h
2889 * config.in: Regenerate.
2890 * configure: Regenerate.
2891
902a7139
GS
28922002-07-09 Grace Sainsbury <graces@redhat.com>
2893
2894 * config/m68k/tm-m68k.h: Remove macros wrapped in
2895 #if !GDB_MULTI_ARCH.
2896
a534e424
AC
28972002-07-08 Andrew Cagney <ac131313@redhat.com>
2898
2899 * config.in, configure: Regenerate.
2900
9b94f7bf
MK
29012002-07-08 Mark Kettenis <kettenis@gnu.org>
2902
2903 * dwarf2cfi.c: Include "gcore.h".
2904 (execute_stack_op): Fix implementation of the
2905 DW_OP_deref and DW_OP_deref_size operators by letting do their
2906 lookup in the target.
2907
1d34db41
MK
29082002-07-07 Mark Kettenis <kettenis@gnu.org>
2909
2910 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2911 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2912 tdep->sc_sp_offset.
2913
79d5b63a
DJ
29142002-07-05 Daniel Jacobowitz <drow@mvista.com>
2915
2916 Fix PR gdb/595, gdb/602
2917 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2918 Don't call value_cast, just read the vtable pointer; update comments
2919 to match.
2920
3bb912e8
GS
29212002-07-05 Grace Sainsbury <graces@redhat.com>
2922
2923 * config/mcore/tm-mcore.h: Remove file.
2924 * config/mcore/mcore.mt: Remove definition of TM_FILE
2925 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2926
ca39387d
MK
29272002-07-05 Mark Kettenis <kettenis@gnu.org>
2928
2929 * i386bsd-tdep.c: Include "gdb_string.h".
2930
efdc1108
GS
29312002-07-04 Grace Sainsbury <graces@redhat.com>
2932
2933 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2934 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2935 mcore-tdep.
2936 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2937 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2938 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2939 (RETVAL_REGNUM): Move macros from tm-mcore.h
2940 (mcore_reg_struct_has_addr): New function.
2941 (mcore_gdbarch_init): Added initializations for the macros removed
2942 from tm-mcore.h.
2943
bb21884d
MK
29442002-07-04 Mark Kettenis <kettenis@gnu.org>
2945
2946 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2947 traditonal string branding within the ELF header.
2948
228c6d41
DJ
29492002-07-04 Daniel Jacobowitz <drow@mvista.com>
2950
2951 * symtab.c (remove_params): New function.
2952 (make_symbol_overload_list): Use it instead of cplus_demangle.
2953 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2954
2404952e
MK
29552002-07-04 Mark Kettenis <kettenis@gnu.org>
2956
e5e4acad
MK
2957 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2958
baadce09
MK
2959 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2960 New variables.
2961 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2962 and tdep->sigtramp_end.
2963 * i386obsd-nat.c: New file.
2964 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2965
2404952e
MK
2966 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2967 Don't call get_current_frame().
2968
9b4f1ba7
PM
29692002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2970
2971 * i386-nat.c (child_post_startup_inferior): New function
2972 calling i386_cleanup_dregs if
2973 I386_USE_GENERIC_WATCHPOINTS is defined.
2974 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2975 conditional to acknowledge that i386-nat.c has its
2976 own child_post_startup_inferior function.
2977
c0d1d883
MK
29782002-07-04 Mark Kettenis <kettenis@gnu.org>
2979
00f8375e
MK
2980 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2981 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2982 instead of MAX_REGISTER_RAW_SIZE.
2983 (i386_extract_return_value, i386_extract_struct_value_address):
2984 Convert to use regcache.
2985 (i386_gdbarch_init): Set max_register_raw_size and
2986 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2987 Set extract_return_value and extract_struct_value_address instead
2988 of their deprecated variants.
2989
c0d1d883
MK
2990 Convert i386 target to generic dummy frames.
2991 * i386-tdep.c: Include "symfile.h".
2992 (i386_frameless_signal_p): Consider a function to be frameless if
2993 the pc points at the first instruction of the function.
2994 (i386_frame_chain): Handle (generic) call dummies.
2995 (i386_frame_saved_pc): Likewise.
2996 (i386_frame_init_saved_regs): Remove code dealing with call
2997 dummies on the stack.
2998 (i386_push_dummy_frame): Removed.
2999 (i386_call_dummy_words): Removed.
3000 (i386_fix_call_dummy): Removed.
3001 (i386_push_return_address): New function.
3002 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3003 parameter, and don't call get_current_frame.
3004 (i386_pop_frame): New function.
3005 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3006 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3007 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3008 call_dummy_length to 0, set call_dummy_words to NULL, set
3009 sizeof_call_dummy_words to 0, set fix_call_dummy to
3010 generic_fix_call_dummy, set pc_in_call_dummy to
3011 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3012 generic_push_dummy_frame, set push_return_address to
3013 i386_push_return_address and set frame_chain_valid to
3014 generic_file_frame_chain_valid.
3015
049ee0e4
AC
30162002-07-03 Andrew Cagney <ac131313@redhat.com>
3017
3018 * gdbarch.sh (struct regcache): Add opaque declaration.
3019 (EXTRACT_RETURN_VALUE): New architecture method.
3020 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3021 * gdbarch.h, gdbarch.c: Regenerate.
3022 * arch-utils.c (legacy_extract_return_value): New function.
3023 * arch-utils.h (legacy_extract_return_value): Declare.
3024 * values.c (value_being_returned): Re-enable code handling
3025 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3026 deprecated_grub_regcache_for_registers call to block handling
3027 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3028 (EXTRACT_RETURN_VALUE): Do not define.
3029
4e0d9804
GS
30302002-07-03 Grace Sainsbury <graces@redhat.com>
3031
3032 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3033 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3034 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3035 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3036 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3037 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3038 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3039 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3040 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3041 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3042 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3043 argument so the function fits the prototype in the architecture
3044 vector.
3045 (mcore_pop_frame): Remove argument so the function fits the
3046 prototype. Use get_current_frame instead of the argument.
3047 (mcore_push_arguments): Change type of struct_return so the
3048 function can be used in the architecture vector.
3049 (mcore_store_struct_return): Add.
3050 (mcore_frame_init_saved_regs): Add.
3051 (mcore_gdbarch_init): Add function calls to replace the macros
3052 removed from tm-mcore.h
3053
36160dc4
AC
30542002-07-03 Andrew Cagney <ac131313@redhat.com>
3055
3056 * infcmd.c (print_return_value): Remove compatibility code calling
3057 deprecated_grub_regcache_for_registers.
3058
3059 * values.c: Include "regcache.h".
3060 (value_being_returned): Update. Use
3061 deprecated_grub_regcache_for_registers to extract the register
3062 buffer address.
3063 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3064 ``struct regcache''.
3065 * Makefile.in (values.o): Add dependency on $(regcache_h).
3066
3067 * inferior.h (run_stack_dummy): Change type of second parameter to
3068 a ``struct regcache''.
3069 * valops.c (hand_function_call): Change type of retbuf to ``struct
3070 regcache''. Allocate using regcache_xmalloc, clean using
3071 make_cleanup_regcache_xfree.
3072 * infcmd.c (run_stack_dummy): Update. Use
3073 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3074
3075 * regcache.c (do_regcache_xfree): New function.
3076 (make_cleanup_regcache_xfree): New function.
3077 * regcache.h (make_cleanup_regcache_xfree): Declare.
3078
e64d9b3d
MH
30792002-07-03 Martin M. Hunt <hunt@redhat.com>
3080
4dd79c29
MH
3081 * event-top.c (command_line_handler): Don't read past
3082 beginning of buffer.
e64d9b3d 3083
4dd79c29
MH
30842002-07-03 Martin M. Hunt <hunt@redhat.com>
3085
e64d9b3d
MH
3086 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3087 struct frame_id.
3088 (varobj_create): Store frame_id for root.
3089 (varobj_gen_name): Use xasprintf.
3090 (varobj_update): Save and restore frame using get_frame_id() and
3091 frame_find_by_id().
3092 (create_child): Use xasprintf.
3093 (new_root_variable): Initialize frame_id.
3094 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3095 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3096 to prevent memory leak.
3097
26e6c56a
AC
30982002-07-03 Andrew Cagney <ac131313@redhat.com>
3099
3100 * valops.c (hand_function_call): Move declaration of retbuf to
3101 start of function, allocate using malloc, add a cleanup but before
3102 the inf_status cleanup, cleanup the buffer. Rename local variable
3103 old_chain to inf_status_cleanup.
3104
f436dd25
MH
31052002-07-03 Martin M. Hunt <hunt@redhat.com>
3106
3107 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3108
3109 * cli/cli-decode.c (cmd_func_p): New function.
3110 (cmd_func): New function.
3111
3112 * command.h: Add cmd_func() and cmd_func_p().
3113
4cfe2084
GS
31142002-07-03 Grace Sainsbury <graces@redhat.com>
3115
3116 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3117 (REGISTER_SIZE): Remove.
3118 (MAX_REGISTER_RAW_SIZE): Remove.
3119 (REGISTER_VIRTUAL_TYPE): Remove.
3120 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3121 (REGISTER_NAME): Remove.
3122 (USE_GENERIC_DUMMY_FRAMES): Remove.
3123 (CALL_DUMMY): Remove.
3124 (CALL_DUMMY_START_OFFSET): Remove.
3125 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3126 (CALL_DUMMY_LOCATION): Remove.
3127 (FIX_CALL_DUMMY): Remove.
3128 (CALL_DUMMY_ADDRESS): Remove.
3129 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3130 (SAVE_DUMMY_FRAME_TOS): Remove.
3131 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3132 (mcore_register_virtual_type): New function.
3133 (mcore_register_byte): New function.
3134 (mcore_register_size): New function.
3135 (mcore_register_name): New function.
3136 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3137 macros removed from tm-mcore.h.
3138 (mcore_dump_tdep): Add.
3139 (_initialize_mcore_tdep): Add gdbarch_register call.
3140
4fd667e9
MK
31412002-07-03 Mark Kettenis <kettenis@gnu.org>
3142
3143 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3144 frameless_look_for_prologue, such that we actually call this
3145 function.
3146
42f99ac2
JB
31472002-07-02 Joel Brobecker <brobecker@gnat.com>
3148
3149 * frame.h (frame_address_in_block): New function.
3150
3151 * blockframe.c (frame_address_in_block): New function extracted
3152 from get_frame_block().
3153 (get_frame_block): Use frame_address_in_block().
3154 (block_innermost_frame): Use frame_address_in_block() to match
3155 the frame pc address against the block boundaries rather than
3156 the frame pc directly. This prevents a failure when a frame pc
3157 is actually a return-address pointing immediately after the end
3158 of the given block.
3159
103a1597 31602002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3161
3162 * MAINTAINERS: Add self under write after approval.
3163
31642002-07-02 Grace Sainsbury <graces@redhat.com>
3165
103a1597
GS
3166 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3167 used in architecture vector. The default is
3168 m68k_local_breakpoint_from_pc.
3169 (m68k_local_breakpoint_from_pc): Add.
3170 (enum): Add register numbers from tm-m68k.h.
3171 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3172 vector.
3173 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3174 GDB_MULTI_ARCH_PARTIAL.
3175 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3176 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3177 m68k-tdep.c.
3178 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3179 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3180 to enum in m68k-tdep.c
3181
7a5a0534
JB
31822002-07-02 Joel Brobecker <brobecker@gnat.com>
3183
3184 * solib-osf.c (open_map): Compute the list of shared libraries
3185 loaded by the inferior, rather than the list of libraries loaded
3186 by GDB itself. Otherwise, GDB ends up reading the symbols from
3187 the wrong shared libraries...
3188
6f558d74
MK
31892002-07-02 Mark Kettenis <kettenis@gnu.org>
3190
b7d15bf7
MK
3191 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3192 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3193 macros.
3194 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3195 Remove functions.
3196 (FRAMELESS_SIGNAL): Remove function.
3197 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3198 i386_linux_saved_pc_after_call): Removed.
3199 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3200 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3201 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3202
6bff26de
MK
3203 * i386-tdep.c (i386_frameless_signal_p): New function.
3204 (i386_frame_chain): Deal with frameless signals.
3205 (i386_sigtramp_saved_sp): New function.
3206 (i386_frame_saved_pc): Deal with frameless signals.
3207 (i386_saved_pc_after_call): Make sure the correct value is
3208 returned just after entry into a sigtramp.
3209 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3210 i386fbsd4_sc_sp_offset): New variables.
3211 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3212 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3213 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3214 similiar to what we already did for sc_pc_offset.
3215 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3216 tdep->sc_sp_offset.
3217
6f558d74
MK
3218 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3219
145564b7
ML
32202002-07-02 Michal Ludvig <mludvig@suse.cz>
3221
3222 * config/i386/tm-x86-64linux.h: New.
3223 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3224 definitions.
3225 * config/i386/nm-x86-64.h: Rename to ...
3226 * config/i386/nm-x86-64linux.h: ... this one.
3227 * config/i386/x86-64linux.mh: Reflect the above change.
3228
3a1e71e3
MK
32292002-07-01 Mark Kettenis <kettenis@gnu.org>
3230
21d0e8a4
MK
3231 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3232 with sigcontext_addr. Add sc_sp_offset.
3233 (i386bsd_sigtramp_saved_pc): Remove prototype.
3234 (i386bsd_sicontext_addr): Add prototype.
3235 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3236 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3237 (i386_svr4_sigtramp_saved_pc): Removed.
3238 (i386_svr4_sigcontext_addr): New function.
3239 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3240 Initialize tdep->sigcontext_addr instead. Initialize
3241 tdep->sc_pc_offset and tdep->sc_sp_offset.
3242 (i386_gdbarch_init): Likewise.
3243 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3244 any more.
3245 (i386bsd_sigtramp_saved_pc): Remove function.
3246 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3247 Initialize tdep->sigcontext_addr instead. Initialize
3248 tdep->sc_pc_offset.
3249 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3250 of tdep->sigtramp_saved_pc.
3251 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3252 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3253 instead.
3254
3a1e71e3
MK
3255 * i386-tdep.c (i386_frameless_function_invocation,
3256 i386_frame_num_args, i386_frame_init_saved_regs,
3257 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3258 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3259 i386_extract_return_value, i386_store_return_value,
3260 i386_extract_struct_value_address, i386_register_virtual_type,
3261 i386_register_convertible, i386_register_convert_to_virtual,
3262 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3263 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3264 static.
3265
52e9098c
MK
32662002-07-01 Mark Kettenis <kettenis@gnu.org>
3267
77b13a25
MK
3268 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3269
52e9098c
MK
3270 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3271 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3272 this macro. Include "value.h".
3273
1b372fff
AS
32742002-06-30 Aidan Skinner <aidan@velvet.net>
3275
3276 * ada-exp.tab.c: remove as it's a generated file
3277 * ada-lex.c: remove as it's a generated file
3278
9c5045b5
MK
32792002-06-30 Mark Kettenis <kettenis@gnu.org>
3280
4a93c5bb
MK
3281 * config/i386/tm-i386.h (struct frame_info, struct
3282 frame_saved_regs, struct value, struct type): Remove forward
3283 declarations.
3284
322d4fe0
MK
3285 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3286 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3287 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3288 (FILL_FPXREGSET): Define.
3289
fdd8263d
MK
3290 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3291
482e577b
MK
3292 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3293 i[3456]86-*-netbsd* case.
3294 * config/i386/tm-obsd.h: Removed.
3295 * config/i386/obsd.mt: Removed.
3296 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3297 core-aout.o.
3298 (MH_CFLAGS): Add -DYYDEBUG=0.
3299
6916549a
MK
3300 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3301 i386nbsd_sc_pc_offset on OpenBSD too.
3302
9c5045b5
MK
3303 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3304 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3305 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3306 define.
3307 * i386bsd-tdep.c: Include "arch-utils.h".
3308 (i386bsd_aout_in_solib_call_trampoline): New function.
3309 (i386bsd_init_abi): Set in_solib_call_trampoline to
3310 i386bsd_aout_in_solib_call_trampoline.
3311 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3312 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3313
aa84d1bb
AC
33142002-06-28 Andrew Cagney <ac131313@redhat.com>
3315
3316 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3317 (struct obstack, struct bcache): Add opaque declarations.
3318 * Makefile.in (macrotab_h): Update
3319
b4d83933
AC
33202002-06-28 Andrew Cagney <ac131313@redhat.com>
3321
3322 * blockframe.c (generic_find_dummy_frame): Change return type to
3323 ``struct regcache''.
3324 (struct dummy_frame): Replace field ``registers'' with regcache, a
3325 struct regcache object.
3326 (generic_find_dummy_frame): Update.
3327 (generic_push_dummy_frame): Update. Use regcache_xfree,
3328 regcache_xmalloc and regcache_cpy.
3329 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3330 regcache_xfree.
3331 (deprecated_generic_find_dummy_frame): Update.
3332 (generic_read_register_dummy): Update. Use
3333 regcache_read_as_address.
3334 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3335 (generic_get_saved_register): Update. Use regcache_read.
3336
08c0b5bc
AC
33372002-06-28 Andrew Cagney <ac131313@redhat.com>
3338
3339 * Makefile.in (objfiles_h): Add $(bcache_h).
3340 * objfiles.h: Include "bcache.h".
3341
3342 * Makefile.in (symtab_h): Remove $(bcache_h).
3343 * symtab.h: Do not include "bcache.h".
3344
1f89801a
AC
33452002-06-28 Andrew Cagney <ac131313@redhat.com>
3346
3347 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3348 generic_func_frame_chain_valid.
3349
b9644b58
DB
33502002-06-28 David O'Brien <obrien@FreeBSD.org>
3351
3352 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3353 * config/i386/tm-fbsd.h: Likewise.
3354
dd486634
AC
33552002-06-28 Andrew Cagney <ac131313@redhat.com>
3356
3357 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3358 generic_unwind_get_saved_register.
3359
0b434a00
AC
33602002-06-27 Andrew Cagney <ac131313@redhat.com>
3361
3362 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3363 * regcache.c (supply_register): Add missing argument to
3364 register_buffer call.
3365
f30e5a77
AC
33662002-06-27 Andrew Cagney <ac131313@redhat.com>
3367
3368 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3369 Solaris /bin/grep does not not like it. From Peter Schauer.
3370
9f064c95
TT
33712002-06-26 Tom Tromey <tromey@redhat.com>
3372
3373 * command.h (add_setshow_cmd): Declare.
3374 (add_setshow_cmd_full): Declare.
3375 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3376 returns void. Use add_setshow_cmd_full.
3377 (add_setshow_cmd_full): New function.
3378 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3379 (add_setshow_boolean_cmd): Likewise.
3380
099c7589
JT
33812002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3382
3383 * config/vax/tm-vax.h: Protect from multiple inclusion.
3384 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3385 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3386 * config/vax/tm-vaxbsd.h: ...here. New file.
3387 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3388
1d049c5e
JT
33892002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3390
3391 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3392 (BELIEVE_PCC_PROMOTION): Remove.
3393 (AP_REGNUM): Move to...
3394 * config/vax/nm-vax.h: ...here.
3395 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3396 (vax_breakpoint_from_pc): New function.
3397 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3398 and gdbarch_believe_pcc_promotion.
3399
4791e091
JT
34002002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3401
3402 * Makefile.in (vax_tdep_h): Define.
3403 (vax-tdep.o): Use $(vax_tdep_h).
3404 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3405 (vax_dump_tdep): New function.
3406 (_initialize_vax_tdep): Register vax_dump_tdep.
3407 * vax-tdep.h: Include osabi.h.
3408 (struct gdbarch_tdep): New.
3409
da130f98
AC
34102002-06-26 Andrew Cagney <cagney@redhat.com>
3411
3412 * frame.h (deprecated_generic_find_dummy_frame): Rename
3413 generic_find_dummy_frame.
3414 * blockframe.c (generic_find_dummy_frame): Make static.
3415 (deprecated_generic_find_dummy_frame): New function.
3416 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3417 generic_find_dummy_frame with deprecated_find_dummy_frame.
3418 (sh64_nofp_frame_init_saved_regs): Ditto.
3419 (sh_fp_frame_init_saved_regs): Ditto.
3420 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3421 (s390_frame_chain): Ditto.
3422 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3423
6300c360
GS
34242002-06-26 Grace Sainsbury <graces@redhat.com>
3425
3426 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3427 gdbarch vector are at the top.
3428 (NUM_REGS): Remove.
3429 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3430 (FRAME_ARGS_ADDRESS): Remove.
3431 (FRAME_LOCALS_ADDRESS): Remove.
3432 (FRAME_NUM_ARGS): Remove.
3433 (FRAME_ARGS_SKIP): Remove.
3434 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3435 (m68k_gdbarch_init): Add gdbarch initializations for macros
3436 undefined in tm-m68k.h
3437
1c617db8
GS
34382002-06-26 Grace Sainsbury <graces@redhat.com>
3439
3440 * monitor.h: Add the function regname to monitor_ops
3441 structure. This way NUM_REGS does not have to be a constant.
3442 * monitor.c (monitor_fetch_register): Added support for regname
3443 function. The function is called if the array regnames is NULL.
3444 (monitor_store_register): Same.
da130f98
AC
3445 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3446 regnames array.
1c617db8
GS
3447 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3448 cpu32bug_cmds.regname to point to new function.
3449 * abug-rom.c (abug_regname): Same as above.
3450 (init_abug_cmds): Same.
3451 * dbug-rom.c (dbug_regname): Same as above.
3452 (init_dbug_cmds): Same.
3453 * remote-est.c (est_regname): Same.
3454 (init_est_cmds): Same.
3455 * rom68k-rom.c (rom68k_regname): Same.
3456 (init_rom68k_cmds): Same.
3457
ea9365bb
TT
34582002-06-25 Tom Tromey <tromey@redhat.com>
3459
3460 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3461
72cec141
AC
34622002-06-25 Andrew Cagney <cagney@redhat.com>
3463
3464 * infrun.c (stop_registers): Change variable's type to ``struct
3465 regcache'''.
3466 (xmalloc_inferior_status): Delete function.
3467 (free_inferior_status): Delete function.
3468 (normal_stop): Use regcache_cpy.
3469 (struct inferior_status): Change type of fields ``stop_registers''
3470 and ``registers'' to ``struct regcache''.
3471 (write_inferior_status_register): Use regcache_write.
3472 (save_inferior_status): Instead of calling
3473 xmalloc_inferior_status, allocate the inf_status buffer directly.
3474 Use regcache_dup_no_passthrough and regcache_dup to save the
3475 buffers.
3476 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3477 Replace the stop_registers regcache instead of overriding it. Use
3478 regcache_xfree. Instead of calling free_inferior_status, xfree
3479 the buffer directly.
3480 (discard_inferior_status): Use regcache_xfree. Instead of calling
3481 free_inferior_status, xfree the buffer directly.
3482 (build_infrun): Use regcache_xmalloc.
3483 (_initialize_infrun): Delete redundant call to build_infrun.
3484
3485 * Makefile.in (infcmd.o): Add $(regcache_h).
3486
3487 * infcmd.c: Include "regcache.h".
3488 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3489 obtain the address of `stop_registers' register buffer.
3490 (print_return_value): Ditto.
3491
3492 * inferior.h (struct regcache): Add opaque declaration.
3493 (stop_registers): Change variable's declared type to ``struct
3494 regcache''.
3495
defc6f8c
TT
34962002-06-24 Tom Tromey <tromey@redhat.com>
3497
c0e624e7
TT
3498 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3499 * target.c (initialize_targets): Fixed typo in
3500 trust-readonly-sections `show' documentation.
3501
defc6f8c
TT
3502 * main.c: Marked all strings with _().
3503
2b236d82
DH
35042002-06-24 Don Howard <dhoward@redhat.com>
3505
3506 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3507 that means max CORE_ADDR+1.
3508 (lookup_mem_region): Ditto.
3509 (mem_info_command): Ditto.
3510
942dc0e9
GS
35112002-06-24 Grace Sainsbury <graces@redhat.com>
3512
3513 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3514 (REGISTER_BYTES_OK): Remove.
3515 (REGISTER_BYTES): Remove.
3516 (STORE_STRUCT_RETURN): Remove.
3517 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3518 (STORE_RETURN_VALUE): Remove.
3519 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3520 (FRAME_CHAIN): Remove.
3521 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3522 (FRAME_SAVED_PC): Remove.
3523 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3524 (m68k_store_struct_return): Add.
3525 (m68k_deprecated_extract_return_value): Add.
3526 (m68k_deprecated_extract_struct_value_address): Add.
3527 (m68k_store_return_value): Add.
3528 (m68k_frame_chain): Add.
3529 (m68k_frameless_function_invocation): Add.
3530 (m68k_frame_saved_pc): Add.
3531 (m68k_gdbarch_init): added set_gdbarch calls for new
3532 functions and deleted macros.
3533
03c30d4d
TT
35342002-06-23 Tom Tromey <tromey@redhat.com>
3535
3536 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3537 (ALLDEPFILES): Likewise.
3538 (udiheaders): Removed.
3539 (udip2soc.o): Likewise.
3540 (udi2go32.o): Likewise.
3541 (udr.o): Likewise.
3542 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3543
37e71372
AC
35442002-06-22 Andrew Cagney <ac131313@redhat.com>
3545
06a6ac57
AC
3546 * infrun.c (_initialize_infrun): Delete unnecessary call to
3547 build_infrun.
3548
37e71372
AC
3549 * regcache.h: Update comments describing the regcache_cpy family
3550 of functions.
3551 (regcache_save, regcache_restore): Delete declaration.
3552 (regcache_save_no_passthrough): Delete declaration.
3553 (regcache_restore_no_passthrough): Delete declaration.
3554 * regcache.c (regcache_save): Delete function.
3555 (regcache_save_no_passthrough): Delete function.
3556 (regcache_restore): Delete function.
3557 (regcache_restore_no_passthrough): Delete function.
3558
78f6d055
AC
35592002-06-21 Andrew Cagney <ac131313@redhat.com>
3560
3561 * config/m68k/tm-m68k.h: Fix typo.
3562 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3563 (m68k_frame_init_saved_regs): Declare.
3564
78b119cb
JB
35652002-06-21 Jim Blandy <jimb@redhat.com>
3566
3567 Remove some vestiges of Harris 88k support.
3568 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3569 register numbering quirk.
3570 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3571 odd symbols occurring in Harris 88k ELF targets.
3572
0fbb3da7
TT
35732002-06-21 Tom Tromey <tromey@redhat.com>
3574
3575 * gdb_locale.h: New file.
3576 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3577 (defs_h): Added gdb_locale.h.
3578 * configure, config.in: Rebuilt.
3579 * configure.in (PACKAGE): Define.
3580 * defs.h: Include gdb_locale.h.
3581 * main.c (captured_main): Call setlocale, bindtextdomain,
3582 textdomain.
3583
456f8b9d
DB
35842002-06-21 Dave Brolley <brolley@redhat.com>
3585
3586 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3587 * config/frv/frv.mt: New file.
3588 * config/frv/tm-frv.h: New file.
3589 * configure.tgt: Support frv-*-*.
3590 * Makefile.in (frv-tdep.o): New target.
3591 * frv-tdep.c: New file.
3592 * NEWS: Mention frv.
3593
cdd463f9
DB
35942002-06-21 Dave Brolley <brolley@redhat.com>
3595
3596 * MAINTAINERS: Add self to "Write After Approval" list.
3597
5d3ed2e3
GS
35982002-06-21 Grace Sainsbury <graces@redhat.com>
3599
3600 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3601 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3602 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3603 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3604 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3605
3606 * m68k-tdep.c: Include arch-utils.h
3607 (m68k_register_raw_size): Add.
3608 (m68k_register_virtual_size): Add.
3609 (m68k_register_virtual_type): Add.
3610 (m68k_register_name): Add.
3611 (m68k_stack_align): Add.
3612 (m68k_register_byte): Add.
3613 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3614 tm-m68k.h.
3615
7f8e7424
GS
36162002-06-21 Grace Sainsbury <graces@redhat.com>
3617
a2c6a6d5 3618 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3619 m68k_find_saved_regs.
3620 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3621 references to it with frame->saved_regs.
7f8e7424
GS
3622 (m68k_gdbarch_init): Added function calls to initialize the
3623 gdbarch structure.
a2c6a6d5
GS
3624 (m68k_fix_call_dummy): Add.
3625 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3626 (CALL_DUMMY): Remove.
3627 (CALL_DUMMY_LENGTH): Remove.
3628 (CALL_DUMMY_START_OFFSET): Remove.
3629 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3630 (FIX_CALL_DUMMY): Remove.
3631 (PUSH_DUMMY_FRAME): Remove.
3632 (POP_FRAME): Remove.
7f8e7424 3633
f461f5cf
PM
36342002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3635
3636 * parse.c (parse_fprintf): New function used to avoid calls to
3637 fprintf in bison parser generated debug code.
3638 * parser-defs.h: Declaration of new parse_fprintf function.
3639 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3640 Set YYDEBUG to 1 by default.
3641 Set YYFPRINTF as parse_fprintf.
3642
7f0c12ed
ML
36432002-06-21 Michal Ludvig <mludvig@suse.cz>
3644
3645 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3646 encoding anymore.
3647 (pointer_encoding, enum ptr_encoding): New.
3648 (execute_cfa_program): Take care about pointer encoding.
3649 (dwarf2_build_frame_info): Only call parse_frame_info for
3650 .debug_frame and .eh_frame.
3651 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3652 fixed augmentation handling, added relative addressing,
3653 ignore duplicate FDEs. Added comments.
19d833a2 3654 * dwarf2cfi.c: Reindented.
7f0c12ed 3655
87c4a039
EZ
36562002-06-20 Elena Zannoni <ezannoni@redhat.com>
3657
3658 * event-top.c (command_handler): Don't use space_at_cmd_start
3659 unless there is sbrk() on the host. Assign time and space data
3660 to union fields of the appropriate length.
3661
1cf877ad
ML
36622002-06-20 Michal Ludvig <mludvig@suse.cz>
3663
3664 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3665 x86_64_register_name. Return type changed to 'const char *'.
3666 (x86_64_register_name2nr): Rename to x86_64_register_number.
3667 (x86_64_gdbarch_init): Update to reflect the change.
3668 * x86-64-tdep.h: Ditto.
3669 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3670 (supply_fpregset): Ditto.
3671
3fadccb3
AC
36722002-06-19 Andrew Cagney <cagney@redhat.com>
3673
3674 * regcache.h: Update copyright.
3675 (struct regcache, struct gdbarch): Add opaque declarations.
3676 (current_regcache): Declare global variable.
3677 (regcache_read, regcache_write): Add gdbarch parameter.
3678 (regcache_save, regcache_save_no_passthrough)
3679 (regcache_restore, regcache_restore_no_passthrough)
3680 (regcache_dup, regcache_dup_no_passthrough)
3681 (regcache_cpy, regcache_cpy_no_passthrough)
3682 (deprecated_grub_regcache_for_registers)
3683 (deprecated_grub_regcache_for_register_valid)
3684 (regcache_valid_p): Add function declarations.
3685
3686 * regcache.c: Update copyright.
3687 (regcache_descr_handle): New global variable.
3688 (struct regcache_descr): Define.
3689 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3690 (regcache_descr, xfree_regcache_descr): New functions.
3691 (struct regcache): Define.
3692 (regcache_xmalloc, regcache_xfree): New functions.
3693 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3694 (regcache_dup, regcache_dup_no_passthrough): New functions.
3695 (regcache_valid_p, regcache_read_as_address): New functions.
3696 (deprecated_grub_regcache_for_registers): New function.
3697 (deprecated_grub_regcache_for_register_valid): New function.
3698 (current_regcache): New global variable.
3699 (register_buffer): Add regcache parameter. Update calls.
3700 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3701 (read_register_gen, write_register_gen): Update register_buffer
3702 call. Test for legacy_p instead of gdbarch_register_read_p or
3703 gdbarch_register_write_p.
3704 (regcache_collect): Update register_buffer call.
3705 (build_regcache): Rewrite. Use deprecated grub functions.
3706 (regcache_save, regcache_save_no_passthrough): New functions.
3707 (regcache_restore, regcache_restore_no_passthrough): New
3708 functions.
3709 (_initialize_regcache): Create the regcache_data_handle. Swap
3710 current_regcache global variable.
3711
3712 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3713 parameter to regcache_read and regcache_write calls.
3714 (sh4_register_read): Ditto.
3715 (sh64_pseudo_register_read): Ditto.
3716 (sh64_register_read): Ditto.
3717 (sh_pseudo_register_write): Ditto.
3718 (sh4_register_write): Ditto.
3719 (sh64_pseudo_register_write): Ditto.
3720 (sh64_register_write): Ditto.
3721
3722 * defs.h (XCALLOC): Define.
3723
152d9db6
GS
37242002-06-19 Grace Sainsbury <graces@redhat.com>
3725
3726 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3727 * m68k-tdep.c (m68k_gdbarch_init): Added.
3728 (m68k_dump_tdep): Added.
3729
170911c7
DJ
37302002-06-19 Daniel Jacobowitz <drow@mvista.com>
3731
3732 * ada-lang.c (fill_in_ada_prototype): Update comment.
3733
2e4ebe70
DJ
37342002-06-19 Daniel Jacobowitz <drow@mvista.com>
3735
3736 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3737 MIPS_ABI_LAST.
3738 (mips_abi_string, mips_abi_strings): New.
3739 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3740 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3741 tdep->mips_abi_string. Honor mips_abi_string. Default to
3742 O32 if no ABI is found.
3743 (mips_dump_tdep): Use mips_abi_strings.
3744 (mips_abi_update): New function.
3745 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3746 ``set mips abi'' and ``show mips abi''. Check the size of
3747 mips_abi_strings.
3748
16775908
AC
37492002-06-19 Andrew Cagney <cagney@redhat.com>
3750
3751 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3752 constant.
3753
5051bfa4 37542002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3755
5051bfa4
JB
3756 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3757 current frame using only the first stack size adjustment. All
3758 subsequent size adjustments are not considered to be part of
3759 the "static" part of the current frame.
3760 Compute the address of the saved registers relative to the
3761 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3762 in use in this frame.
3763
56468235
DH
37642002-06-18 Don Howard <dhoward@redhat.com>
3765
3766 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3767 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3768 suggesting this solution.
3769
0b624158
AC
37702002-06-18 Andrew Cagney <ac131313@redhat.com>
3771
3772 * config/romp/xm-rtbsd.h: Delete file.
3773 * config/romp/rtbsd.mh: Delete file.
3774
221ea385
KS
37752002-06-18 Keith Seitz <keiths@redhat.com>
3776
3777 * breakpoint.c (condition_command): Post breakpoint_modify
3778 when a condition is added to an existing breakpoint.
3779 (commands_command): Likewise for commands.
3780 (set_ignore_count): Likewise for ignore counts.
3781 If no tty, do not simply return, still need to send event
3782 notification.
3783 (ignore_command): Only print a newline if the command came
3784 from a tty.
3785 Don't call breakpoints_changed, since this is now properly
3786 handled by set_ignore_count.
3787
5402eed1
AC
37882002-06-18 Andrew Cagney <cagney@redhat.com>
3789
3790 * MAINTAINERS: Note that cris-elf target can be compiled with
3791 -Werror.
3792 * cris-tdep.c (cris_register_name): Make return type constant.
3793 (cris_breakpoint_from_pc): Ditto.
3794
cc22880b
ML
37952002-06-18 Michal Ludvig <mludvig@suse.cz>
3796
3797 * frame.h (struct frame_info): Change type of context to
3798 'struct context'.
3799
fa88f677
AC
38002002-06-17 Andrew Cagney <cagney@redhat.com>
3801
3802 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3803 pointer.
3804 * gdbarch.h, gdbarch.c: Regenerate.
3805 * config/mips/tm-mips.h (mips_register_name): Update.
3806 * i386-tdep.h (i386_register_name): Update.
3807 * mips-tdep.c (mips_register_name): Update
3808 * alpha-tdep.c (alpha_register_name): Update.
3809 * arch-utils.c (legacy_register_name): Update.
3810 * arch-utils.h (legacy_register_name): Update.
3811 * avr-tdep.c (avr_register_name): Update.
3812 * ia64-tdep.c (ia64_register_name): Update.
3813 * i386-tdep.c (i386_register_name): Update.
3814 * sparc-tdep.c (sparc32_register_name): Update.
3815 (sparc64_register_name): Update.
3816 (sparclite_register_name): Update.
3817 (sparclet_register_name): Update.
3818 * sh-tdep.c (sh_generic_register_name): Update.
3819 (sh_sh_register_name): Update.
3820 (sh_sh3_register_name): Update.
3821 (sh_sh3e_register_name): Update.
3822 (sh_sh_dsp_register_name): Update.
3823 (sh_sh3_dsp_register_name): Update.
3824 (sh_sh4_register_name): Update.
3825 (sh_sh64_register_name): Update.
3826 * s390-tdep.c (s390_register_name): Update.
3827 * rs6000-tdep.c (rs6000_register_name): Update.
3828 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3829 (ns32k_register_name_32382): Update.
3830 * d10v-tdep.c (d10v_ts2_register_name): Update.
3831 (d10v_ts3_register_name): Update.
3832 * xstormy16-tdep.c (xstormy16_register_name): Update.
3833 * vax-tdep.c (vax_register_name): Update.
3834 * v850-tdep.c (v850_register_name): Update.
3835 * m68hc11-tdep.c (m68hc11_register_name): Update.
3836 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3837 (am33_register_name): Update.
3838
ea1e7ef6
GS
38392002-06-17 Grace Sainsbury <graces@redhat.com>
3840
3841 * m68k-tdep.c: Reindented.
3842
9b02dd1b
AC
38432002-06-17 Andrew Cagney <ac131313@redhat.com>
3844
3845 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3846 list of predefined types.
3847
8758dec1
MK
38482002-06-16 Mark Kettenis <kettenis@gnu.org>
3849
b6197528
MK
3850 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3851 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3852 REGISTER_CONVERT_TO_RAW): Remove defines.
3853 (i386_register_virtual_type, i386_register_convertible,
3854 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3855 Remove prototypes.
3856 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3857 macros mentioned above.
3858
82b47e62
MK
3859 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3860 (i386lynx_saved_pc_after_call): Remove prototype.
3861 * i386ly-tdep.c: Include "i386-tdep.h".
3862 (i386lynx_saved_pc_after_call): Make static. Use
3863 read_memory_nobpt instead of read_memory. Use
3864 read_memory_unsigned_integer instead of read_memory_integer.
3865 (i386lynx_init_abi): New function.
3866 (i386lynx_coff_osabi_sniffer): New function.
3867 (_initialize_i386bsd_tdep): New function.
3868
8758dec1
MK
3869 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3870 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3871 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3872 (i386_fix_call_dummy): Remove prototype.
3873 * i386-tdep.c (i386_call_dummy_words): New variable.
3874 (i386_gdbarch_init): Adjust for removal of the
3875 macros mentioned above.
3876
e9e68a56
AC
38772002-06-15 Andrew Cagney <ac131313@redhat.com>
3878
3879 * command.h (add_setshow_auto_boolean_cmd): Replace
3880 add_set_auto_boolean_cmd.
3881 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3882 add_set_auto_boolean_cmd.
3883 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3884 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3885 mask-address'' command.
3886 (show_mask_address): Add cmd parameter.
3887 * remote.c (add_packet_config_cmd): Update. Change type of
3888 set_func and show_func to cmd_sfunc_ftype.
3889 (_initialize_remote): Update `set remote Z-packet'
3890 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3891 (show_remote_protocol_e_packet_cmd): Ditto.
3892 (show_remote_protocol_E_packet_cmd): Ditto.
3893 (show_remote_protocol_P_packet_cmd): Ditto.
3894 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3895 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3896 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3897 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3898 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3899 (show_remote_protocol_Z_packet_cmd): Ditto.
3900 (show_remote_protocol_binary_download_cmd): Ditto.
3901 (show_remote_cmd): Pass NULL to all of above.
3902
fc08ec52
MK
39032002-06-15 Mark Kettenis <kettenis@gnu.org>
3904
3905 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3906 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3907 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3908 POP_FRAME): Remove defines.
3909 (i386_push_arguments, i386_store_struct_return,
3910 i386_extract_return_value, i386_store_return_value,
3911 i386_extract_struct_value_address, i386_push_dummy_frame,
3912 i386_pop_frame): Renove prototypes.
3913 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3914 macros mentioned above.
3915
e707bbc2
AC
39162002-06-15 Andrew Cagney <ac131313@redhat.com>
3917
3918 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3919 add_set_boolean_cmd.
3920 (add_setshow_cmd): New function.
3921 * command.h (add_setshow_boolean_cmd): Replace
3922 add_set_boolean_cmd.
3923 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3924 and ``set rdiromatzero''.
3925 * maint.c (_initialize_maint_cmds): Update commented out code.
3926 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3927 * target.c (initialize_targets): Update `set
3928 trust-readonly-sections'.
3929 * remote.c (_initialize_remote): Update `set remotebreak'.
3930
42fdc8df
MK
39312002-06-15 Mark Kettenis <kettenis@gnu.org>
3932
93924b6b
MK
3933 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3934 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3935 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3936 fit into multi-arch framework.
3937 (i386_breakpoint_from_pc): New function.
3938 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3939 above.
3940
42fdc8df
MK
3941 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3942 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3943 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3944 (i386_frameless_function_invocation, i386_frame_num_args,
3945 i386_frame_init_saved_regs): Remove prototypes.
3946 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3947 macros mentioned above.
3948
9773a94b
AC
39492002-06-15 Andrew Cagney <ac131313@redhat.com>
3950
3951 * cli/cli-decode.c (set_cmd_cfunc): Update.
3952 (set_cmd_sfunc): Update.
3953 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3954 (set_cmd_sfunc, set_cmd_cfunc): Update.
3955 * cli/cli-decode.h: Update.
3956
6e157172
MK
39572002-06-15 Mark Kettenis <kettenis@gnu.org>
3958
3959 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3960 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3961
7f19b9a2
AC
39622002-06-15 Andrew Cagney <ac131313@redhat.com>
3963
3964 * defs.h (auto_boolean): Declare enum.
3965 * command.h (cmd_auto_boolean): Delete enum.
3966 * mips-tdep.c (mask_address_var): Update.
3967 (mips_mask_address_p): Update.
3968 (show_mask_address): Update.
3969 * remote.c (struct packet_config): Update.
3970 (update_packet_config): Update.
3971 (show_packet_config_cmd): Update.
3972 (packet_ok): Update.
3973 (add_packet_config_cmd): Update.
3974 (_initialize_remote):
3975 * command.h: Update.
3976 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3977 (do_setshow_command): Update.
3978 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3979 * cli/cli-decode.h: Update.
3980
1cf88de5
MK
39812002-06-15 Mark Kettenis <kettenis@gnu.org>
3982
22ba8cf2
MK
3983 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3984 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3985 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3986 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3987 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3988 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3989
762c5349
MK
3990 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3991 list of DJGPP COFF targets.
3992
091198bb
MK
3993 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3994 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3995 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3996 (FP0_REGNUM): Remove define.
3997 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3998 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3999 (i386_register_virtual_size): Remove protoype.
4000 * i386-tdep.c (i386_register_virtual_size): Removed.
4001 (i386_extract_return_value, i386_store_return_value): Use
4002 FP0_REGNUM instead of NUM_FREGS to determine whether the
4003 floating-point registers are available.
4004 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4005 Adjust for removal of macros mentioned above.
4006
40072002-06-15 Mark Kettenis <kettenis@gnu.org>
4008
fcc9bf01
MK
4009 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4010 comments.
4011 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4012 Remove prototypes.
4013 (supply_gregset, fill_gregset): Remove use of register keyword and
4014 remove declaration for regmap. Use I386_NUM_GREGS instead of
4015 NUM_REGS and NUM_FREGS.
4016 (FPREGSET_FSAVE_OFFSET): Remove.
4017 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4018 NUM_FREGS to determine whether the floating-point registers are
4019 available.
4020
65e78234
MK
4021 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4022 gnu_store_registers): Replace usage of NUM_GREGS with
4023 I386_NUM_GREGS.
4024
98df6387
MK
4025 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4026 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4027 usage of NUM_GREGS with I386_NUM_GREGS.
4028
099a9414
MK
4029 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4030
57976e88
MK
4031 * i386bsd-nat.c: Include "i386-tdep.h".
4032 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4033 I386_NUM_GREGS.
4034
b335f4a6
MK
4035 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4036 and associated comment. They no longer make any sense, since we
4037 don't use this file anymore on Linux.
4038
1cf88de5
MK
4039 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4040 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4041 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4042 elements in these arrays.
4043 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4044 MAX_NUM_REGS.
4045
daa66587
MK
40462002-06-15 Mark Kettenis <kettenis@gnu.org>
4047
4048 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4049 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4050
26e9b323
AC
40512002-06-14 Andrew Cagney <cagney@redhat.com>
4052
4053 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4054 EXTRACT_RETURN_VALUE.
4055 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4056 EXTRACT_STRUCT_VALUE_ADDRESS.
4057 * gdbarch.h, gdbarch.c: Regenerate.
4058
4059 * values.c (value_being_returned): Handle
4060 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4061 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4062
4063 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4064 * arm-tdep.c (arm_gdbarch_init): Update.
4065 * avr-tdep.c (avr_gdbarch_init): Update.
4066 * cris-tdep.c (cris_gdbarch_init): Update.
4067 * d10v-tdep.c (d10v_gdbarch_init): Update.
4068 * ia64-tdep.c (ia64_gdbarch_init): Update.
4069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4071 * s390-tdep.c (s390_gdbarch_init): Update.
4072 * sh-tdep.c (sh_gdbarch_init): Update.
4073 * s390-tdep.c (s390_gdbarch_init): Update.
4074 * sparc-tdep.c (sparc_gdbarch_init): Update.
4075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4076 * v850-tdep.c (v850_gdbarch_init): Update.
4077 * vax-tdep.c (vax_gdbarch_init): Update.
4078 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4080
4081 * config/arc/tm-arc.h: Update.
4082 * config/d30v/tm-d30v.h: Update.
4083 * config/fr30/tm-fr30.h: Update.
4084 * config/h8300/tm-h8300.h: Update.
4085 * config/h8500/tm-h8500.h: Update.
4086 * config/i386/tm-i386.h: Update.
4087 * config/i386/tm-ptx.h: Update.
4088 * config/i386/tm-symmetry.h: Update.
4089 * config/i960/tm-i960.h: Update.
4090 * config/m32r/tm-m32r.h: Update.
4091 * config/m68k/tm-delta68.h: Update.
4092 * config/m68k/tm-linux.h: Update.
4093 * config/m68k/tm-m68k.h: Update.
4094 * config/m88k/tm-m88k.h: Update.
4095 * config/mcore/tm-mcore.h: Update.
4096 * config/mips/tm-mips.h: Update.
4097 * config/mn10200/tm-mn10200.h: Update.
4098 * config/pa/tm-hppa.h: Update.
4099 * config/pa/tm-hppa64.h: Update.
4100 * config/sparc/tm-sp64.h: Update.
4101 * config/sparc/tm-sparc.h: Update.
4102 * config/sparc/tm-sparclet.h: Update.
4103 * config/z8k/tm-z8k.h: Update.
4104
5179e78f
AC
41052002-06-14 Andrew Cagney <cagney@redhat.com>
4106
4107 * Makefile.in (i386_linux_tdep_h): Define.
4108 (i386_tdep_h, i387_tdep_h): Define.
4109 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4110 $(i386_tdep_h) and $(i387_tdep_h).
4111 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4112
8201327c
MK
41132002-06-14 Mark Kettenis <kettenis@gnu.org>
4114
edf393ac
MK
4115 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4116 Already covered by the default.
4117
896fb97d
MK
4118 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4119 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4120 (i386_gdbarch_init): Initialize long_double_format and long_double
4121 bit.
4122
8201327c
MK
4123 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4124 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4125 Move these to ...
4126 * config/i386/i386sol2.mh: ... here.
4127 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4128 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4129 (SIGCONTEXT_PC_OFFSET): Remove define.
4130 (IN_SIGTRAMP): Remove define.
4131 * i386-sol2-tdep.c: New file.
4132
4133 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4134 * config/i386/tm-i386nw.h: Removed.
4135
4136 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4137 USE_STRUCT_CONVENTION): Remove defines.
4138 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4139 (get_longjmp_target): Remove prototype.
4140 (IN_SIGTRAMP): Remove define.
4141 (i386bsd_in_sigtramp): Remove prototype.
4142 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4143 function. Update comment accordingly
4144 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4145 (FRAME_SAVED_PC): Remove define.
4146 (i386bsd_frame_saved_pc): Remove prototype.
4147 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4148 GET_LONGJMP_TARGET): Remove defines.
4149 (get_longjmp_target): Remove prototype.
4150 (IN_SIGTRAMP): Remove define.
4151 (i386bsd_in_sigtramp): Remove prototype.
4152 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4153 function. Update comment accordingly
4154 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4155 (FRAME_SAVED_PC): Remove define.
4156 (i386bsd_frame_saved_pc): Remove prototype.
4157 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4158 Remove prototype.
4159 (USE_STRUCT_CONVENTION): Remove prototype.
4160 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4161 declaration.
4162 (_initialize_i386bsd_nat): Revise logic to determine some
4163 constants at compile time when compiling a native GDB. Warn if
4164 things don't match up with what we expect.
4165 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4166 Remove variables.
4167 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4168 to use date stored in `struct gdbarch_tdep'.
4169 (i386bsd_sigcontext_offset): Remove varaible.
4170 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4171 stored in `struct gdbarch_tdep'.
4172 (i386bsd_frame_saved_pc): Make static.
4173 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4174 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4175 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4176 i386fbsd4_sc_pc_offset): New variables.
4177 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4178 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4179 functions.
4180 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4181 functions.
4182 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4183 Modify the value of i386fbsd_sigtramp_start and
4184 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4185 i386fbsd_sigtramp_end.
4186 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4187 function.
4188
4189 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4190 define to i386-linux-tdep.h.
4191 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4192 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4193 defines.
4194 (i386_linux_register_name, i386_linux_register_byte,
4195 i386_linux_register_raw_size): Remove prototypes.
4196 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4197 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4198 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4199 TARGET_WRITE_PC): Remove defines.
4200 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4201 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4202 i386_linux_write_pc): Remove prototypes.
4203 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4204 (get_longjmp_target): Remove prototype.
4205 * i386-linux-tdep.h: New file.
4206 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4207 * i386-linux-tdep.c: Include "i386-tdep.h" and
4208 "i386-linux-tdep.h".
4209 (i386_linux_register_name, i386_linux_register_byte,
4210 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4211 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4212 Make static.
4213 (i386_linux_init_abi): New function.
4214 (_initialize_i386_linux_tdep): New function.
4215
4216 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4217 (i386_saved_pc_after_call): Remove prototype.
4218 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4219 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4220 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4221 (i386_register_name, i386_stab_reg_to_regnum,
4222 i386_dwarf_reg_to_regnum): Remove prototypes.
4223 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4224 SIZEOF_SSE_REGS): Remove defines.
4225 (REGISTER_BYTES): Remove define.
4226 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4227 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4228 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4229 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4230 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4231 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4232 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4233 (get_longjmp_target): Remove prototype.
4234 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4235 (sigtramp_saved_pc): Remove define.
4236 (i386v4_sigtramp_saved_pc): Remove prototype.
4237 * config/i386/tm-go32.h (FRAME_CHAIN,
4238 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4239 (i386go32_frame_saved_pc): Remove prototype.
4240 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4241 (get_longjmp_target): Remove prototype.
4242 * i386-tdep.h: Include "osabi.h".
4243 (enum i386_abi): Removed.
4244 (enum struct_return): New enum.
4245 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4246 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4247 sc_pc_offset members.
4248 (i386_gdbarch_register_os_abi): Remove prototype.
4249 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4250 I386_SSE_NUM_REGS): New defines.
4251 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4252 I386_SSE_SIZEOF_REGS): New defines.
4253 (i386_register_name, i386_register_byte, i386_register_raw_size):
4254 New prototypes.
4255 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4256 (i386bsd_sigtramp_saved_pc): New prototype.
4257 * i386-tdep.c: Don't include "elf-bfd.h".
4258 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4259 i386_frame_chain, i386_saved_pc_after_call): Make static.
4260 (i386_frame_saved_pc): Rewrite to call architecture dependent
4261 function to deal with signal handlers. Make static.
4262 (i386go32_frame_saved_pc): Removed.
4263 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4264 Removed.
4265 (i386_get_longjmp_target): New function.
4266 (default_struct_convention, pcc_struct_convention,
4267 reg_struct_convention, valid_conventions, struct_convention): New
4268 variables.
4269 (i386_use_struct_convention): New function.
4270 (i386v4_sigtramp_saved_pc): Renamed to
4271 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4272 (i386_pc_in_sigtramp): New function.
4273 (i386_abi_names): Removed.
4274 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4275 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4276 Removed.
4277 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4278 i386_gdbarch_register_os_abi): Removed.
4279 (struct i386_abi_handler): Removed.
4280 (i386_abi_handler_list): Removed.
4281 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4282 functions.
4283 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4284 i386_nw_init_abi): New functions.
4285 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4286 Use set_gdbarch_xxx() calls instead of relying on macros for a
4287 number of calls.
4288 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4289 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4290 Register the various architecture variants defined in this file.
4291
ad2f7632
DJ
42922002-06-14 Daniel Jacobowitz <drow@mvista.com>
4293
4294 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4295 (struct main_type): Remove arg_types member. Update comments for
4296 struct field.
4297 (TYPE_ARG_TYPES): Remove.
4298 (TYPE_FN_FIELD_ARGS): Update.
4299 (smash_to_method_type): Update prototype.
4300
4301 * c-typeprint.c (cp_type_print_method_args): Take method type
4302 instead of argument list. Use new argument layout. Simplify.
4303 (c_type_print_args): Use new argument layout. Simplify.
4304 (c_type_print_base): Update call to cp_type_print_method_args.
4305 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4306 argument; use die->type instead. Update call to
4307 smash_to_method_type.
4308 (read_structure_scope): Update call to dwarf2_add_member_fn.
4309 * gdbtypes.c (allocate_stub_method): Update comment.
4310 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4311 Use new argument layout.
4312 (check_stub_method): Use new argument layout. Don't count
4313 void as an argument.
4314 (print_arg_types): Update comments. Use new argument layout.
4315 (recursive_dump_type): Don't print arg_types member.
4316 * hpread.c (hpread_read_struct_type): Use new argument layout.
4317 (fixup_class_method_type): Likewise.
4318 (hpread_type_lookup): Likewise.
4319 * stabsread.c (read_type): Update calls to read_args and
4320 smash_to_method_type.
4321 (read_args): Use new argument layout. Simplify.
4322 * valops.c (typecmp): Use new argument layout. Update parameters
4323 and comments. Simplify.
4324 (hand_function_call): Use new argument layout.
4325 (search_struct_method): Update call to typecmp.
4326 (find_overload_match): Use new argument layout.
4327
6da02953
DJ
43282002-06-13 Daniel Jacobowitz <drow@mvista.com>
4329
4330 * NEWS: Mention multithreaded debug support for gdbserver.
4331
519b2366
DJ
43322002-06-13 Daniel Jacobowitz <drow@mvista.com>
4333
4334 * MAINTAINERS: Mention NEWS.
4335
6c0d6680
DJ
43362002-06-13 Daniel Jacobowitz <drow@mvista.com>
4337
4338 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4339 (struct mips_objfile_private, compare_pdr_entries): New.
4340 (non_heuristic_proc_desc): Read the ".pdr" section if it
4341 is present.
4342
6529d2dd
AC
43432002-06-12 Andrew Cagney <ac131313@redhat.com>
4344
4345 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4346 (arm_debug): New static variable.
4347 (_initialize_arm_tdep): Add ``set debug arm'' command.
4348
26216b98
AC
43492002-06-12 Andrew Cagney <ac131313@redhat.com>
4350
4351 * Makefile.in (sim_arm_h): Define.
4352 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4353 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4354 (arm_register_sim_regno): New function, map an internal REGNUM
4355 onto a simulator register number.
4356 (arm_gdbarch_init): Set register_sim_regno.
4357
814b3ba0
AH
43582002-06-09 Aldy Hernandez <aldyh@redhat.com>
4359
4360 * MAINTAINERS: Add self.
4361
475b0867
JB
43622002-06-11 Jim Blandy <jimb@redhat.com>
4363
919d772c
JB
4364 * source.c (source_info): Mention whether the symtab has
4365 information about preprocessor macros.
4366
475b0867
JB
4367 Call the command `info macro', not `show macro'.
4368 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4369 Fix error message.
4370 (_initialize_macrocmd): Register `info_macro_command' in
4371 `infolist', not `showlist'.
4372
9e364162
DJ
43732002-06-11 Daniel Jacobowitz <drow@mvista.com>
4374
4375 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4376 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4377 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4378 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4379 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4380 unconditionally.
4381 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4382 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4383 (_initialize_mips_tdep): Remove dead code.
4384 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4385 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4386 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4387 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4388 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4389 MIPS_LAST_FP_ARG_REGNUM): Remove.
4390
23aa4c72
ML
43912002-06-11 Michal Ludvig <mludvig@suse.cz>
4392
4393 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4394 (unwind_tmp_obstack_free, parse_frame_info)
4395 (update_context, cfi_read_fp, cfi_write_fp)
4396 (cfi_frame_chain, cfi_init_extra_frame_info)
4397 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4398 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4399
70eb15a4
CV
44002002-06-11 Corinna Vinschen <vinschen@redhat.com>
4401
4402 * v850-tdep.c (v850_type_is_scalar): New function.
4403 (v850_use_struct_convention): Match current gcc implementation
4404 as close as possible.
4405 (v850_push_arguments): Fix stack_offset handling. Don't write
4406 struct_addr into register. This is done by v850_store_struct_return.
4407 (v850_extract_return_value): Care for structs.
4408 (v850_store_return_value): Ditto.
4409 (v850_store_struct_return): Actually write address.
4410
482a4d06
ML
44112002-06-11 Michal Ludvig <mludvig@suse.cz>
4412
4413 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4414 without debug information too.
4415
d855c300
AC
44162002-06-10 Andrew Cagney <ac131313@redhat.com>
4417
4418 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4419 Make multi-arch pure.
4420 * gdbarch.h, gdbarch.c: Re-generate.
4421 * arm-tdep.c (arm_print_float_info): Update.
4422 * arch-utils.h (default_print_float_info): Update.
4423 * arch-utils.c (default_print_float_info): Update.
4424 * infcmd.c (float_info): Update call.
4425
dd12a101
AC
44262002-06-10 Andrew Cagney <ac131313@redhat.com>
4427
4428 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4429 the front of the initialize list.
4430
101dcfbe
AC
44312002-06-10 Andrew Cagney <ac131313@redhat.com>
4432
4433 * infrun.c (struct inferior_status): Replace fields
4434 selected_frame_address and selected_level with field
4435 selected_frame_id.
4436 (save_inferior_status): Update. Use get_frame_id.
4437 (struct restore_selected_frame_args): Delete.
4438 (restore_selected_frame): Update. Use frame_find_by_id.
4439 (restore_inferior_status): Update.
4440
4441 * breakpoint.h (struct breakpoint): Change type of
4442 watchpoint_frame to frame_id.
4443 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4444 call to get_current_frame.
4445 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4446 get_current_frame.
4447 (watchpoint_check): Use frame_find_by_id.
4448
4449 * frame.h (record_selected_frame): Delete declaration.
4450 * stack.c (record_selected_frame): Delete function.
4451
4452 * frame.h (struct frame_id): Define.
4453 (get_frame_id): Declare.
4454 (frame_find_by_id): Declare.
4455 * frame.c (frame_find_by_id): New function.
4456 (get_frame_id): New function.
4457
304270b6
AV
44582002-06-10 Andrey Volkov <avolkov@transas.com>
4459
4460 * ser-e7kpc.c: Fix duplicated define and call of
4461 _initialize_ser_e7000pc
4462
2f2cf184
DJ
44632002-06-09 Daniel Jacobowitz <drow@mvista.com>
4464
4465 * signals/signals.c (target_signal_from_host): Fix #ifdef
4466 SIGRTMIN case.
4467 (do_target_signal_to_host): Likewise.
4468
caaa3122
DJ
44692002-06-09 Daniel Jacobowitz <drow@mvista.com>
4470
4471 * mips-tdep.c (mips_find_abi_section): New function.
4472 (mips_gdbarch_init): Call it.
4473
6ac5df3a
MK
44742002-06-09 Mark Kettenis <kettenis@gnu.org>
4475
4476 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4477 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4478 after Andrew's 2002-06-08 gdbarch change.
4479
82ea117a
MK
44802002-06-09 Mark Kettenis <kettenis@gnu.org>
4481
4482 * i386-linux-nat.c (suppy_gregset): Don't supply
4483 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4484 register cache.
4485 (fill_gregset): Don't fetch it under the same circumstances.
4486
3c25f8c7
AC
44872002-06-09 Andrew Cagney <cagney@redhat.com>
4488
4489 * Makefile.in (callback_h): Define.
4490 (remote_sim_h): Update path to remote-sim.h.
4491 (remote-rdp.o): Add $(callback_h).
4492 (remote-sim.o): Use $(callback_h).
4493 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4494 * remote-rdp.c: Include "gdb/callback.h".
4495
1029b7fa
MK
44962002-06-09 Mark Kettenis <kettenis@gnu.org>
4497
4498 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4499 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4500
616675d3
AC
45012002-06-08 Andrew Cagney <ac131313@redhat.com>
4502
a3efda28
AC
4503 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4504 * rdi-share/serpardr.c: Ditto.
4505 * rdi-share/unixcomm.c: Ditto.
4506 * rdi-share/serdrv.c: Ditto.
4507 * rdi-share/hostchan.h: Ditto.
4508 * rdi-share/hostchan.c: Ditto.
4509 * rdi-share/host.h: Ditto.
4510 * rdi-share/devsw.c: Ditto.
4511
c5f10366
AC
4512 * objfiles.h: Change type of obj_private to void pointer.
4513 * pa64solib.c: Update copyright. Don't include "assert.h", use
4514 strcmp instead of STREQ, use LONGEST, do not use PTR
4515 * somsolib.c: Ditto.
4516
616675d3
AC
4517 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4518 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4519 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4520
e4b415d9
AC
45212002-06-08 Andrew Cagney <ac131313@redhat.com>
4522
4523 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4524 (default_get_saved_register): Delete function.
4525 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4526 generic_unwind_get_saved_register.
4527 * gdbarch.h, gdbarch.c: Re-generate.
4528
ca0d0b52
AC
45292002-06-08 Andrew Cagney <ac131313@redhat.com>
4530
4531 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4532 generic_func_frame_chain_valid.
4533 * gdbarch.h, gdbarch.c: Re-generate.
4534 * blockframe.c (generic_func_frame_chain_valid): Only check
4535 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4536 passing FP to PC_IN_CALL_DUMMY.
4537 Fix PR gdb/360.
4538
76860b5f
AC
45392002-06-08 Andrew Cagney <ac131313@redhat.com>
4540
4541 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4542 (register_gdbarch_data): Initialize init_p.
4543 (gdbarch_data): Initialize data pointer using the init function.
4544 (init_gdbarch_data): Delete function.
4545 (gdbarch_update_p): Update.
4546 (initialize_non_multiarch): Update.
4547 (struct gdbarch): Add field initialized_p.
4548 * gdbarch.h, gdbarch.c: Re-generate.
4549
8dda9770
ML
45502002-06-07 Michal Ludvig <mludvig@suse.cz>
4551
4552 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4553 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4554 better do the things actually here.
4555 * x86-64-tdep.c (x86_64_register_name2nr): New.
4556 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4557 (x86_64_gdbarch_init): Respect the above change.
4558 * x86-64-tdep.h (x86_64_register_name2nr)
4559 (x86_64_register_nr2name): Add prototypes.
4560 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4561
3d79a47c
MS
45622002-06-06 Michael Snyder <msnyder@redhat.com>
4563
7bd91a28
MS
4564 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4565 Delete extra braces and re-indent.
4566 (d10v_store_return_value): Char return values
3d79a47c
MS
4567 must be shifted over by one byte in R0.
4568 (d10v_extract_return_value): Delete extra braces, re-indent.
4569
095a4c96
EZ
45702002-06-06 Elena Zannoni <ezannoni@redhat.com>
4571
4572 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4573 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4574 (d10v_integer_to_address): Rewrite.
4575 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4576 the d10v specific functions which take care of converting to the
4577 correct space.
4578
e8a77ca4
EZ
45792002-06-06 Elena Zannoni <ezannoni@redhat.com>
4580
4581 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4582 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4583
4f2e4a4f
AC
45842002-06-02 Andrew Cagney <ac131313@redhat.com>
4585
4586 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4587 includes.
4588 * config/tm-linux.h: Ditto.
4589 * config/alpha/tm-alphalinux.h: Ditto.
4590 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4591 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4592 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4593 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4594 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4595 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4596 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4597 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4598 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4599 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4600 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4601 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4602 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4603 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4604 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4605 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4606 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4607 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4608 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4609 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4610 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4611 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4612 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4613 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4614 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4615 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4616 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4617 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4618 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4619 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4620 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4621 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4622 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4623 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4624 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4625 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4626 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4627
ae2ab2ce
AS
46282002-05-04 Aidan Skinner <aidan@velvet.net>
4629
4630 * ada-exp.tab.c: New file
4631 * ada-exp.y: New file
4632 * ada-lang.c: New file
4633 * ada-lang.h: New file
4634 * ada-lex.c: New file
4635 * ada-lex.l: New file
4636 * ada-tasks.c: New file
4637 * ada-typeprint.c: New file
4638 * ada-valprint.c: New file
4639
0ddd0135
JT
46402002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4641
4642 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4643 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4644
750fbacc
JT
46452002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4646
4647 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4648 insetead of ppc-linux-tdep.o.
4649 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4650 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4651
df94e18a
AC
46522002-06-02 Andrew Cagney <ac131313@redhat.com>
4653
4654 2002-05-07 Christian Groessler <chris@groessler.org>
4655 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4656 bit register contents for little endian hosts.
4657
1a38ab75
AC
46582002-06-01 Andrew Cagney <ac131313@redhat.com>
4659
4660 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4661 any maintainer.
4662
8b1632ac
AC
46632002-06-01 Andrew Cagney <ac131313@redhat.com>
4664
4665 * gdbarch.h: Regenerate.
4666
627054c8
AC
46672002-06-01 Andrew Cagney <ac131313@redhat.com>
4668
4669 * MAINTAINERS: Add everyone to write-after-approval list.
4670
4f460812
AC
46712002-06-01 Andrew Cagney <ac131313@redhat.com>
4672
4673 * stack.c (frame_info): Use frame_register_unwind instead of
4674 saved_regs. Mention when the SP is on the stack or in a register.
4675
4676 * frame.h (frame_register_unwind_ftype): Define. Document.
4677 (struct frame_info): Add field register_unwind and
4678 register_unwind_cache.
4679 (frame_register_unwind): Declare.
4680 (generic_unwind_get_saved_register): Declare.
4681
4682 * frame.c (frame_register_unwind): New function.
4683 (generic_unwind_get_saved_register): New function.
4684
4685 * blockframe.c (generic_call_dummy_register_unwind): New function.
4686 (frame_saved_regs_register_unwind): New function.
4687 (set_unwind_by_pc): New function.
4688 (create_new_frame): New function.
4689 (get_prev_frame): New function.
4690
de888f76
AC
46912002-05-30 Andrew Cagney <ac131313@redhat.com>
4692
4693 * a29k-share/: Delete directory.
4694 * remote-vx29k.c: Delete file.
4695
2f2c3626
JT
46962002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4697
4698 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4699 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4700
9ce5c36a
JT
47012002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4702
4703 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4704 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4705 (sparc64nbsd-nat.o)
4706 (sparcnbsd-nat.o)
4707 (sparcnbsd-tdep.o): New dependency lists.
4708 * NEWS: Note new UltraSPARC NetBSD native configuration.
4709 * configure.host (sparc64-*-netbsd*): New host.
4710 * configure.tgt (sparc-*-netbsdelf*)
4711 (sparc-*-netbsd*): Set gdb_target to nbsd.
4712 (sparc64-*-netbsd*): New target.
4713 * sparc64nbsd-nat.c: New file.
4714 * sparcnbsd-nat.c: New file.
4715 * sparcnbsd-tdep.c: New file.
4716 * sparcnbsd-tdep.h: New file.
4717 * config/sparc/nbsd.mt: New file.
4718 * config/sparc/nbsd64.mh: New file.
4719 * config/sparc/nbsd64.mt: New file.
4720 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4721 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4722 (HOST_IPC): Remove.
4723 * config/sparc/nbsdaout.mt: Remove.
4724 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4725 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4726 (HOST_IPC): Remove.
4727 * config/sparc/nbsdelf.mt: Remove.
4728 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4729 sparc-nat.c compatiblity defines.
4730 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4731 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4732 * config/sparc/tm-nbsd64.h: New file.
4733 * config/sparc/tm-nbsdaout.h: Remove.
4734 * config/sparc/xm-nbsd.h: Remove.
4735
ef3cf062
JT
47362002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4737
4738 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4739 * sparc-tdep.c: Include osabi.h.
4740 (gdbarch_tdep): Add osabi member.
4741 (_initialize_sparc_tdep): Use gdbarch_register.
4742 (sparc_gdbarch_init): Use generic OS ABI framework.
4743 (sparc_dump_tdep): New function.
4744
ee8ff470
KB
47452002-05-30 Kevin Buettner <kevinb@redhat.com>
4746
4747 * corefile.c (do_captured_read_memory_integer): Return non-zero
4748 result.
4749 (safe_read_memory_integer): Copy result of memory read when
4750 status is non-zero. Also, add comments.
4751
7b112f9c
JT
47522002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4753
4754 * Makefile.in (ppc_tdep_h): Define.
4755 (ppc-linux-nat.o)
4756 (ppc-linux-tdep.o)
4757 (rs6000-tdep.o): Use $(ppc_tdep_h).
4758 (ppc-sysv-tdep.o)
4759 (ppcnbsd-nat.o)
4760 (ppcnbsd-tdep.o): New dependency lists.
4761 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4762 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4763 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4764 (ppc_sysv_abi_broken_use_struct_convention)
4765 (ppc_sysv_abi_use_struct_convention)
4766 (ppc_sysv_abi_push_arguments): Move to...
4767 * ppc-sysv-tdep.c: ...here.
4768 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4769 * rs6000-tdep.c (process_note_abi_tag_sections)
4770 (get_elfosabi): Remove.
4771 (rs6000_gdbarch_init): Use generic OS ABI framework.
4772 (rs6000_dump_tdep): New function.
4773 (_initialize_rs6000_tdep): Use gdbarch_register.
4774 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4775 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4776 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4777 of ppc-linux-tdep.o.
4778 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4779 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4780 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4781 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4782 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4783 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4784
480dd42a
JB
47852002-05-29 Jim Blandy <jimb@redhat.com>
4786
4787 * macroscope.c (default_macro_scope): Put `void' in empty argument
4788 list.
4789
4182591f
AC
47902002-05-29 Andrew Cagney <ac131313@redhat.com>
4791
4792 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4793 * arch-utils.c: Include "sim-regno.h".
4794 * gdbarch.sh: Don't include "sim-regno.h".
4795 * gdbarch.h, gdbarch.c: Regenerate.
4796 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4797 here.
4798 * arch-utils.h (legacy_register_sim_regno): To here.
4799 * remote-sim.c (legacy_register_sim_regno): Move function from
4800 here.
4801 * arch-utils.c (legacy_register_sim_regno): To here.
4802
8238d0bf
AC
48032002-05-28 Andrew Cagney <ac131313@redhat.com>
4804
4805 * sim-regno.h: New file.
4806 * Makefile.in (sim_regno_h): Define.
4807 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4808 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4809 (legacy_register_sim_regno): New function.
4810 (one2one_register_sim_regno): New function.
4811 (gdbsim_fetch_register): Rewrite.
4812 (gdbsim_store_register): Only store a register when
4813 REGISTER_SIM_REGNO is valid.
4814 * d10v-tdep.c: Include "sim-regno.h".
4815 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4816 (d10v_ts3_register_sim_regno): Ditto.
4817 * gdbarch.sh: Include "sim-regno.h".
4818 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4819 * gdbarch.h, gdbarch.c: Regenerate.
4820 * arch-utils.h (default_register_sim_regno): Delete declaration.
4821 * arch-utils.c (default_register_sim_regno): Delete function.
4822
485721b1
JT
48232002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4824
4825 * ppcnbsd-nat.c: Rewrite.
4826 * ppcnbsd-tdep.c: New file.
4827 * ppcnbsd-tdep.h: New file.
4828 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4829 solib.o, and solib-svr4.o.
4830 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4831 nbsd-tdep.o, and corelow.o.
4832
697f244d
AC
48332002-05-28 Andrew Cagney <ac131313@redhat.com>
4834
4835 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4836 `tr' and `sed'. Mention that `broken' targets are not expected to
4837 build.
4838
f08caad1 48392002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4840
4841 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4842 Let PC point right after the prologue before looking up symbols.
4843
3139facc
MH
48442002-05-27 Martin M. Hunt <hunt@redhat.com>
4845
4846 * i386-tdep.c (i386_register_virtual_type): Return
4847 builtin_type_vec128i for SSE registers.
4848
4849 * gdbtypes.h (builtin_type_vec128i): Declare.
4850
4851 * gdbtypes.c (build_builtin_type_vec128i): New function.
4852 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4853 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4854 (build_gdbtypes): Initialize new builtin vector types.
4855 (_initialize_gdbtypes): Register new vector types with gdbarch.
4856
6e3ba3b8
JT
48572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4858
4859 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4860 since it has been multi-arch'd.
4861 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4862 Move Alpha and VAX multi-arch news entries to same section
4863 as other multi-arch news.
4864
93d5585d
JT
48652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4866
4867 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4868 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4869 static. Rename some register numbers to put them in ns32k-tdep
4870 private namespace.
4871 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4872 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4873 functions.
4874 (_initialize_ns32k_tdep): Use gdbarch_register.
4875 * ns32k-tdep.h: New file.
4876 * ns32knbsd-tdep.c: New file.
4877 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4878 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4879 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4880 REGISTER_BYTES, REGISTER_BYTE): Remove.
4881 * config/ns32k/tm-ns32k.h: New file.
4882 * config/ns32k/tm-umax.h: Remove.
4883
efb2c70e
JT
48842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4885
4886 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4887 ns32k_store_struct_return, ns32k_extract_return_value,
4888 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4889 functions.
4890 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4891 ns32k_saved_pc_after_call.
4892 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4893 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4894 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4895 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4896 ns32k_extract_struct_value_address.
4897
7bcc927b
JT
48982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4899
4900 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4901 ns32k_fix_call_dummy): New.
4902 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4903 ns32k_call_dummy_words.
4904 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4905 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4906 CALL_DUMMY_NARGS): Remove.
4907 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4908
78f9d765
JT
49092002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4910
4911 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4912 ns32k_frame_saved_pc, ns32k_frame_args_address,
4913 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4914 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4915 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4916 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4917 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4918 (BREAKPOINT): Remove..
4919 (FRAME_CHAIN): Define as ns32k_frame_chain.
4920 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4921 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4922 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4923 (FRAME_FIND_SAVED_REGS): Remove.
4924 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4925 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4926 (POP_FRAME): Define as ns32k_pop_frame.
4927
f2c762e0
JT
49282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4929
4930 * ns32k-tdep.c (ns32k_register_byte_32082,
4931 ns32k_register_byte_32382, ns32k_register_raw_size,
4932 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4933 functions.
4934 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4935 ns32k_register_byte_32382.
4936 * config/ns32k/tm-umax.h: Update copyright years.
4937 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4938 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4939 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4940 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4941 (ns32k_get_enter_addr): Fix prototype.
4942
af137673
JT
49432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4944
4945 * ns32k-tdep.c: Update copyright years.
4946 (ns32k_register_name_32082): New function.
4947 (ns32k_register_name_32382): Ditto.
4948 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4949 (REGISTER_NAME): Define as ns32k_register_name_32382.
4950 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4951 (REGISTER_NAME): Define as ns32k_register_name_32082.
4952
a8bc7b56
JB
49532002-05-24 Jim Blandy <jimb@redhat.com>
4954
4955 * dwarf2read.c (free_line_header): Use xfree, not free.
4956
83a45910
JT
49572002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4958
4959 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4960 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4961
0db71247
AC
49622002-05-23 Andrew Cagney <ac131313@redhat.com>
4963
4964 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4965
b9e5e4dd
AC
49662002-05-23 Andrew Cagney <ac131313@redhat.com>
4967
4968 From Ross Alexander at NEC Europe:
4969 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4970
de530e84
MS
49712002-05-23 Michael Snyder <msnyder@redhat.com>
4972
4973 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4974 for input, rather than parse_and_eval_address.
4975
b91b96f4
AC
49762002-05-23 Andrew Cagney <ac131313@redhat.com>
4977
4978 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4979 * Makefile.in (sim_d10v_h): Update definition.
4980
8b279e7a
AC
49812002-05-24 Andrew Cagney <cagney@redhat.com>
4982
4983 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4984 change `2002-05-22 Michael Snyder' below.
4985 (d10v_push_arguments): Ditto.
4986 (d10v_extract_return_value): Ditto.
4987
0a3d0425
JB
49882002-05-23 Jim Blandy <jimb@redhat.com>
4989
4990 * macrotab.c (check_for_redefinition): Don't complain if the new
4991 definition is the same as the previous one. Take more arguments
4992 to allow the comparison.
4993 (macro_define_object, macro_define_function): Pass more arguments
4994 to check_for_redefinition.
4995
78eac43e
MS
49962002-05-22 Michael Snyder <msnyder@redhat.com>
4997
4998 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4999 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5000 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5001 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5002 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5003 Add a temp variable to save a call (and a memory read).
5004 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5005 if possible (so that PC_IN_CALL_DUMMY will work).
5006
9bc1edb8
CV
50072002-05-22 Corinna Vinschen <vinschen@redhat.com>
5008
5009 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5010
005ef3d2
ML
50112002-05-22 Michal Ludvig <mludvig@suse.cz>
5012
5013 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5014 fde->cie_ptr.
5015 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5016 (dwarf2_build_frame_info): Add offset to fde->initial_location
5017 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5018 (execute_stack_op): Change type of 'result' from ULONGEST to
5019 CORE_ADDR.
005ef3d2 5020
fcf4f891
JT
50212002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5022
5023 * config/alpha/tm-nbsd.h: Include solib.h.
5024
cfef91e4
JT
50252002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5026
5027 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5028 assumptions about the host's byte order.
5029
9964235a
JT
50302002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5031
5032 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5033 to dependency list.
5034 * alphanbsd-tdep.c: Include solib-svr4.h.
5035 * shnbsd-tdep.c: Ditto.
5036
9eeef8ef
JT
50372002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5038
5039 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5040 nbsd-tdep.h to dependency list.
5041 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5042 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5043 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5044 nbsdaout.mh and nbsdelf.mh consistently.
5045 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5046 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5047 nbsdaout.mt and nbsdelf.mh consistently.
5048 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5049 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5050 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5051 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5052 a.out shared library stuff from here...
5053 * config/nm-nbsdaout.h: ...to here.
5054 * config/tm-nbsd.h: Remove.
5055 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5056 * config/arm/nbsd.mh: Remove.
5057 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5058 nbsd-tdep.o.
5059 * config/arm/nbsdaout.mh: New file.
5060 * config/arm/nbsdelf.mh: New file.
5061 * config/arm/nm-nbsdaout.h: New file.
5062 * config/i386/nbsd.mh: Remove.
5063 * config/i386/nbsd.mt: Remove.
5064 * config/i386/nbsdaout.mh: New file.
5065 * config/i386/nbsdaout.mt: New file.
5066 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5067 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5068 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5069 i386_register_u_addr): Remove.
5070 * config/i386/nm-nbsdaout.h: New file.
5071 * config/i386/nm-nbsdelf.h: Remove.
5072 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5073 (USE_STRUCT_CONVENTION): Remove.
5074 * config/i386/tm-nbsdaout.h: New file.
5075 * config/i386/tm-nbsdelf.h: Remove.
5076 * config/m68k/nbsd.mh: Remove.
5077 * config/m68k/nbsd.mt: Remove.
5078 * config/m68k/nbsdaout.mh: New file.
5079 * config/m68k/nbsdaout.mt: New file.
5080 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5081 * config/m68k/nm-nbsdaout.h: New file.
5082 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5083 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5084 * config/ns32k/nbsd.mh: Remove.
5085 * config/ns32k/nbsd.mt: Remove.
5086 * config/ns32k/nbsdaout.mh: New file.
5087 * config/ns32k/nbsdaout.mt: New file.
5088 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5089 * config/ns32k/nm-nbsdaout.h: New file.
5090 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5091 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5092 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5093 (SVR4_SHARED_LIBS): Remove.
5094 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5095 * config/sparc/nbsd.mh: Remove.
5096 * config/sparc/nbsd.mt: Remove.
5097 * config/sparc/nbsdaout.mh: New file.
5098 * config/sparc/nbsdaout.mt: New file.
5099 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5100 * config/sparc/nbsdelf.mt: New file.
5101 * config/sparc/nm-nbsdaout.h: New file.
5102 * config/sparc/nm-nbsdelf.h: Remove.
5103 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5104 * config/sparc/tm-nbsdaout.h: New file.
5105
257ce470
JT
51062002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5107
5108 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5109 mipsnbsd-tdep.c
5110 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5111
76a6d5fe
JT
51122002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5113
5114 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5115 shnbsd-nat.c.
5116 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5117
45888261
JT
51182002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5119
5120 * NEWS: Note new MIPS NetBSD native configuration.
5121 * configure.host (mips*-*-netbsd*): New host.
5122 * configure.tgt (mips*-*-netbsd*): New target.
5123 * mipsnbsd-nat.c: New file.
5124 * mipsnbsd-tdep.c: New file.
5125 * mipsnbsd-tdep.h: New file.
5126 * config/mips/nbsd.mh: New file.
5127 * config/mips/nbsd.mt: New file.
5128 * config/mips/nm-nbsd.h: New file.
5129 * config/mips/tm-nbsd.h: New file.
5130
70f80edf
JT
51312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5132
5133 * Makefile.in (SFILES): Add osabi.c.
5134 (COMMON_OBS): Add osabi.o.
5135 (osabi.o): New dependency list.
5136 * osabi.c: New file.
5137 * osabi.h: New file.
5138 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5139
5140 * Makefile.in (alpha_tdep_h): Define and use instead of
5141 alpha-tdep.h.
5142 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5143 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5144 Remove.
5145 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5146 * alpha-tdep.h: Include osabi.h.
5147 (alpha_abi): Remove.
5148 (gdbarch_tdep): Use generic OS ABI framework.
5149 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5150 gdbarch_register_osabi.
5151 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5152 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5153 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5154
5155 * Makefile.in (sh_tdep_h): Add osabi.h.
5156 * sh-tdep.h (sh_osabi): Remove.
5157 (gdbarch_tdep): Use generic OS ABI framework.
5158 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5159 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5160 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5161 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5162
5163 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5164 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5165 gdbarch_register_osabi.
5166 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5167 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5168 (get_elfosabi): Rename to...
5169 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5170 ABI framework support routines.
5171 (arm_gdbarch_init): Use generic OS ABI framework.
5172 (arm_dump_tdep): Likewise.
5173 (_initialize_arm_tdep): Likewise.
5174 * arm-tdep.h: Include osabi.h.
5175 (arm_abi): Remove.
5176 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5177 osabi member.
5178 (arm_gdbarch_register_os_abi): Remove prototype.
5179 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5180 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5181
5182 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5183 * mips-tdep.c: Include osabi.h.
5184 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5185 OS ABI framework.
5186
d194345b
KH
51872002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5188
5189 * h8300-tdep.c: Fix formatting.
5190
70c6b0d1
EZ
51912002-05-20 Elena Zannoni <ezannoni@redhat.com>
5192
5193 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5194 printing vector registers.
5195
165b8e33
AC
51962002-05-19 Andrew Cagney <ac131313@redhat.com>
5197
5198 From Fernando Nasser:
5199 * remote.c (remote_async_open_1): Re-throw the exception when the
5200 connection fails.
5201 (remote_cisco_open): Ditto.
5202 (remote_open_1): Ditto.
5203
36918e70
AC
52042002-05-19 Andrew Cagney <ac131313@redhat.com>
5205
5206 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5207 (remote_start_remote): Add uiout parameter. Pass through to
5208 remote_start_remote_dummy.
5209 (remote_open_1): Use catch_exception instead of catch_errors.
5210 (remote_async_open_1): Ditto.
5211 (remote_cisco_open): Ditto.
5212
ae44c0c4
AC
52132002-05-19 Andrew Cagney <ac131313@redhat.com>
5214
5215 * remote.c (remote_start_remote): Replace PTR with void pointer.
5216 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5217 static.
5218
8efe637d
AC
52192002-05-18 Andrew Cagney <ac131313@redhat.com>
5220
5221 * gdb_indent.sh: Allow the script to be run in the sim directory.
5222
2f1b5984
MK
52232002-05-18 Mark Kettenis <kettenis@gnu.org>
5224
f0f625e2
MK
5225 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5226 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5227
2f1b5984
MK
5228 * corelow.c (core_open): Only call set_gdbarch_from_file if
5229 exec_bfd is NULL.
5230
fc974602
AV
52312002-05-17 Andrey Volkov <avolkov@transas.com>
5232
5233 * h8300-tdep.c: Add support of EXR register
5234 * config/h8300/tm-h8300.h: Ditto.
5235
906709f4
AV
52362002-05-17 Andrey Volkov <avolkov@transas.com>
5237
5238 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5239
6e591d68
AV
52402002-05-17 Andrey Volkov <avolkov@transas.com>
5241
5242 * h8300-tdep.c: Change literal regnums to REGNO.
5243
84f0252a
JB
52442002-05-17 Jim Blandy <jimb@redhat.com>
5245
e0e9281e
JB
5246 * NEWS: Note addition of macro support.
5247
84f0252a
JB
5248 Expand preprocessor macros in C expressions.
5249 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5250 (scan_macro_expansion, scanning_macro_expansion,
5251 finished_macro_expansion): New function declarations.
5252 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5253 variable declarations.
5254 * parser-defs.h (expression_context_pc): New declaration.
5255 * parse.c (expression_context_pc): New variable.
5256 (parse_exp_1): Set expression_context_pc, as well as
5257 expression_context_block.
5258 * c-exp.y (yylex): If we're not already reading the result of a
5259 macro expansion, try to macro-expand the next token. When we're
5260 done scanning a macro expansion, switch back to the mainline text.
5261 Commas and `if's in a macro's expansion don't terminate the input.
5262 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5263 (macro_original_text, macro_expanded_text,
5264 expression_macro_lookup_func, expression_macro_lookup_baton): New
5265 variables.
5266 (scan_macro_expansion, scanning_macro_expansion,
5267 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5268 c_preprocess_and_parse): New functions.
5269 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5270 c_preprocess_and_parse, instead of c_parse.
5271 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5272 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5273
1c509ca8
JR
5274Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5275
5276 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5277 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5278 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5279
2250ee0c
CV
52802002-05-17 Corinna Vinschen <vinschen@redhat.com>
5281
5282 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5283
ab3b8126
JT
52842002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5285
5286 * Makefile.in (sh_tdep_h): Define and use.
5287 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5288 register enum): Move to...
5289 * * sh-tdep.h: ...here.
5290 * sh-tdep.c: Include sh-tdep.h.
5291 * sh3-rom.c: Likewise.
5292 * shnbsd-tdep.c: Likewise.
5293
ed9d4749
MS
52942002-05-16 Michael Snyder <msnyder@redhat.com>
5295
5296 * arm-tdep.c: Spelling fix in comment.
5297
2e276125
JB
52982002-05-16 Jim Blandy <jimb@redhat.com>
5299
6821892e
JB
5300 Add commands for manually expanding macros and showing their
5301 definitions.
5302 * macrocmd.c, macroscope.c, macroscope.h: New files.
5303 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5304 (macroscope_h): New variable.
5305 (HFILES_NO_SRCDIR): Add macroscope.h.
5306 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5307 (macroscope.o, macrocmd.o): New rules.
5308
2e276125
JB
5309 Teach the Dwarf 2 reader to read macro information.
5310 * dwarf2read.c: #include "macrotab.h".
5311 (dwarf_macinfo_buffer): New variable.
5312 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5313 dwarf_macinfo_size.
5314 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5315 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5316 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5317 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5318 dwarf2_macro_spaces_in_definition): New complaints.
5319 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5320 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5321 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5322 the partial symbol table.
5323 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5324 from what's recorded in the partial symbol table.
5325 (read_file_scope): If the compilation unit has a
5326 `DW_AT_macro_info' attribute, read its macro information.
5327 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5328
2f53fe6c
DJ
53292002-05-16 Daniel Jacobowitz <drow@mvista.com>
5330
5331 Fix PR gdb/546
5332 * ser-tcp.c: Don't include <netinet/udp.h>.
5333
2be99286
SC
53342002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5335
5336 * MAINTAINERS: Update my email address.
5337
c9af212b 53382002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5339
5340 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5341 include file of the same name.
5342
bf5f1a52
CV
53432002-05-16 Corinna Vinschen <vinschen@redhat.com>
5344
5345 * configure.tgt: Mark v850 as multi-arched.
5346 * config/v850/tm-v850.h: Remove file.
5347 * config/v850/v850.mt: Eliminate TM_FILE.
5348
435e042a
CV
53492002-05-16 Corinna Vinschen <vinschen@redhat.com>
5350
5351 * v850-tdep.c: Full multi-arch.
5352 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5353 Define GDB_MULTI_ARCH to 2.
5354
9819c6c8
PM
53552002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5356
5357 * p-exp.y (current_type): New static variable.
5358 Carries the type of the expression at the position that is parsed.
5359 (push_current_type, pop_current_type): Two new functions. Used
5360 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5361 (search_field): New static variable. Set to one after parsing a point
5362 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5363 (FIELDNAME): New token. After a point only a token belonging to
5364 current_type type definition is allowed.
5365 (all over token rules): reset and change current_type according
5366 to rules.
5367 (exp '[' rule): insert implicit array index field if
5368 exp is a pascal string type.
5369
3a06899a
CV
53702002-05-16 Corinna Vinschen <vinschen@redhat.com>
5371
5372 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5373 frame info. Use frame_info's saved_regs instead of matching member
5374 in extra_frame_info throughout.
5375 (v850_frame_init_saved_regs): New function.
5376 (v850_init_extra_frame_info): Move most functionality into
5377 v850_frame_init_saved_regs().
5378 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5379 (v850_frame_find_saved_regs): Remove declaration.
5380 (FRAME_FIND_SAVED_REGS): Remove definition.
5381 (v850_frame_init_saved_regs): Add declaration.
5382 (FRAME_INIT_SAVED_REGS): Add definition.
5383
6ed14b0e
CV
53842002-05-16 Corinna Vinschen <vinschen@redhat.com>
5385
5386 * v850-tdep.c: Begin multi-arch'ing v850.
5387 (v850_target_architecture_hook): Remove function.
5388 (v850_gdbarch_init): New function. Add code previously in
5389 v850_target_architecture_hook().
5390 (_initialize_v850_tdep): Don't set target_architecture_hook.
5391 Call register_gdbarch_init() instead.
5392
42725910
DJ
53932002-05-16 Daniel Jacobowitz <drow@mvista.com>
5394
5395 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5396 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5397 (fixup_class_method_type): Likewise.
5398
99d9066e
JB
53992002-05-15 Jim Blandy <jimb@redhat.com>
5400
5401 Add macro structures to GDB's symbol tables. Nobody puts anything
5402 in them yet.
5403 * symtab.h (struct symtab): New member: `macro_table'.
5404 * buildsym.h (pending_macros): New global variable.
5405 * buildsym.c: #include "macrotab.h".
5406 (buildsym_init): Initialize `pending_macros'.
5407 (end_symtab): If we found macro information while reading a CU's
5408 debugging info, do build a symtab structure for it. Make the
5409 symtab point to the macro information, and clear the
5410 `pending_macros' pointer which held it while we were reading the
5411 debug info.
5412 (really_free_pendings): Free any pending macro table.
5413 * objfiles.h (struct objfile): New member: `macro_cache'.
5414 * objfiles.c (allocate_objfile): Set allocate and free functions
5415 for the macro cache's objstack.
5416 (free_objfile): Empty the macro cache's obstack.
5417 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5418 set new allocate and free functions for it.
5419 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5420 free functions for the macro cache's objstack. (Why is this
5421 function building its own objfile?)
5422 * symmisc.c (print_objfile_statistics): Print statistics on the
5423 macro bcache.
5424 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5425
c899585b
RE
54262002-05-15 Richard Earnshaw <rearnsha@arm.com>
5427
5428 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5429 (REGISTER_U_ADDR): Delete definition.
5430 (arm_register_u_addr): Delete declaration.
5431
a6cdd8c5
RE
54322002-05-15 Richard Earnshaw <rearnsha@arm.com>
5433
5434 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5435 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5436
c97dcfc7
AC
54372002-05-14 Andrew Cagney <ac131313@redhat.com>
5438
5439 * regcache.c (register_valid): Revise comments refering to "Not
5440 available" and "unavailable".
5441 * frame.c (frame_register_read): Ditto.
5442 * findvar.c (value_of_register): Ditto.
5443
93021b7d
AC
54442002-05-15 Andrew Cagney <cagney@redhat.com>
5445
5446 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5447 (remote-sim.o): Update dependencies.
5448 (d10v-tdep.o): Specify dependencies.
5449 (sim_d10v_h): Define.
5450
a86bc61c
JB
54512002-05-14 Jim Blandy <jimb@redhat.com>
5452
5453 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5454 * macrotab.c (macro_lookup_inclusion, find_definition,
5455 new_macro_table): Same.
5456
5457 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5458 not `! strcmp ()'. This is a dubious improvement.
5459 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5460
5461 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5462 although it's not necessary, to avoid a warning.
5463
2fdde8f8
DJ
54642002-05-14 Daniel Jacobowitz <drow@mvista.com>
5465
5466 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5467 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5468 TYPE_INSTANCE_FLAGS.
5469 (struct main_type): New.
5470 (struct type): Move most members to struct main_type. Change
5471 cv_type and as_type to new type_chain member. Add instance_flags.
5472 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5473 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5474 (finish_cv_type): Remove prototype.
5475 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5476 Set TYPE_CHAIN.
5477 (alloc_type_instance): New function.
5478 (smash_type): New function.
5479 (make_pointer_type, make_reference_type, make_function_type)
5480 (smash_to_member_type, smash_to_method_type): Call smash_type.
5481 (make_qualified_type): New function.
5482 (make_type_with_address_space): Call make_qualified_type.
5483 (make_cv_type): Likewise.
5484 (finish_cv_type): Remove unnecessary function.
5485 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5486 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5487 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5488 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5489 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5490 * hpread.c (hpread_read_struct_type): Likewise.
5491 * stabsread.c (read_struct_type): Likewise.
5492
843fedf4
EZ
54932002-05-14 Elena Zannoni <ezannoni@redhat.com>
5494
5495 * configure.tgt: Add a catch all sh* target, for cases like
5496 sh[2,3,4]-elf and sh-hms.
5497
05a6c72c
KS
54982002-05-14 Keith Seitz <keiths@redhat.com>
5499
5500 * event-loop.c (create_file_handler): Don't do anything but
5501 update data when we are given a fd which we are already
5502 monitoring.
5503
5d085aaf
ML
55042002-05-14 Michal Ludvig <mludvig@suse.cz>
5505
5506 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5507 (update_context): Use __func__ in warnings.
5508
9db8d71f
DJ
55092002-05-14 Daniel Jacobowitz <drow@mvista.com>
5510
5511 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5512 and tcp_close to net_open and net_close.
5513 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5514 using UDP if requested. Don't try to disable Nagle on UDP
5515 sockets.
5516 * remote.c (remote_serial_open): New function. Warn about UDP.
5517 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5518
5dbc6baa
EZ
55192002-05-13 Elena Zannoni <ezannoni@redhat.com>
5520
5521 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5522
cc3023f7
EZ
55232002-05-13 Elena Zannoni <ezannoni@redhat.com>
5524
5525 * configure.tgt: Remove sh-hms target.
5526 * MAINTAINERS: Don't list sh-hms as a separate target.
5527
ec2bcbe7
JB
55282002-05-13 Jim Blandy <jimb@redhat.com>
5529
5530 Add first preprocessor macro-expansion files.
5531 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5532 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5533 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5534 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5535 (COMMON_OBS): Add macrotab.o, macroexp.o.
5536 (macroexp.o, macrotab.o): New rules.
5537
6d531722
AC
55382002-05-13 Andrew Cagney <ac131313@redhat.com>
5539
5540 * config/m88k/tm-m88k.h: Update copyright.
5541 (m88k_target_write_pc): Declare
5542 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5543 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5544 (SHIFT_INST_REGS): Update definition.
5545 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5546 using old definition of TARGET_WRITE_PC.
5547 * regcache.c (generic_target_write_pc): Delete code handling
5548 NNPC_REGNUM.
5549 * gdbarch.sh (NNPC_REGNUM): Delete.
5550 * gdbarch.h, gdbarch.c: Regenerate.
5551
3e3f2739
RE
55522002-05-13 Richard Earnshaw <rearnsha@arm.com>
5553
5554 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5555 builtin reg number.
5556
0004e5a2
DJ
55572002-05-13 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5560 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5561 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5562 access macros.
5563 * c-typeprint.c (cp_type_print_method_args): Likewise.
5564 (c_type_print_args): Likewise.
5565 * d10v-tdep.c (d10v_push_arguments): Likewise.
5566 (d10v_extract_return_value): Likewise.
5567 * expprint.c (print_subexp): Likewise.
5568 * gdbtypes.c (lookup_primitive_typename): Likewise.
5569 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5570 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5571 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5572 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5573 (TYPE_VECTOR): Likewise.
5574 * hpread.c (hpread_read_struct_type)
5575 (fix_static_member_physnames, fixup_class_method_type)
5576 (hpread_type_lookup): Likewise.
5577 * mdebugread.c (parse_symbol, parse_type): Likewise.
5578 * p-lang.c (is_pascal_string_type): Likewise.
5579 * valops.c (hand_function_call): Likewise.
5580 * x86-64-tdep.c (classify_argument): Likewise.
5581
5582 * hpread.c (hpread_read_function_type)
5583 (hpread_read_doc_function_type): Call replace_type.
5584 * dstread.c (create_new_type): Delete.
5585 (decode_dst_structure, process_dst_function): Call alloc_type.
5586 Use type access macros.
5587
dff95cc7
MK
55882002-05-12 Mark Kettenis <kettenis@gnu.org>
5589
5590 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5591 the're not supported by the current architecture.
5592 (i387_fill_fxsave): Likewise.
5593
bbcd32ad
FF
55942002-05-12 Fred Fish <fnf@redhat.com>
5595
5596 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5597 sect_index_xxx members to index the first slot in section_offsets
5598 if all of the section_offsets are zero.
5599
89cf4787
MK
56002002-05-12 Mark Kettenis <kettenis@gnu.org>
5601
5602 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5603 checked in with last change.
5604
1f77ffc5
MK
56052002-05-12 Mark Kettenis <kettenis@gnu.org>
5606
5607 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5608 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5609 config.sub.
5610
89b8b4a9
DJ
56112002-05-12 Daniel Jacobowitz <drow@mvista.com>
5612
5613 * Makefile.in: Update dependencies.
5614
14a5e767
AC
56152002-05-11 Andrew Cagney <ac131313@redhat.com>
5616
5617 * language.c (local_hex_string_custom): Simplify. Do not depend
5618 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5619
5620 * memattr.c (mem_info_command): Replace calls to
5621 longest_local_hex_string and longest_local_hex_string_custom.
5622 * buildsym.c (make_blockvector): Ditto.
5623 * solib.c (info_sharedlibrary_command): Ditto.
5624 * tracepoint.c (tracepoints_info): Ditto.
5625 * symtab.c (print_msymbol_info): Ditto.
5626
5627 * language.c (local_hex_string): Delete.
5628 (local_hex_string_custom): Delete.
5629 (longest_local_hex_string): Rename to local_hex_string.
5630 (longest_local_hex_string_custom): Rename to
5631 local_hex_string_custom.
5632 * language.h (local_hex_string): Change parameter type to LONGEST.
5633 (local_hex_string_custom): Ditto.
5634 (longest_local_hex_string): Delete declaration.
5635 (longest_local_hex_string_custom): Ditto.
5636
5637 * solib.c: Update copyright.
5638 * memattr.c: Update copyright.
5639
13d01224
AC
56402002-05-11 Andrew Cagney <ac131313@redhat.com>
5641
5642 * arch-utils.h (legacy_register_to_value): Declare.
5643 (legacy_value_to_register): Declare.
5644 (legacy_convert_register_p): Declare.
5645 * arch-utils.c (legacy_register_to_value): New function.
5646 (legacy_value_to_register): New function.
5647 (legacy_convert_register_p): New function.
5648
5649 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5650 (VALUE_TO_REGISTER): Define.
5651 (CONVERT_REGISTER_P): Define.
5652 * gdbarch.h, gdbarch.c: Regenerate.
5653
5654 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5655 VALUE_TO_REGISTER.
5656 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5657 CONVERT_REGISTER_P.
5658
4a1970e4
DJ
56592005-05-11 Daniel Jacobowitz <drow@mvista.com>
5660 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5661
5662 * Makefile.in: Update dependencies for valops.c.
5663 * valops.c: Include "gdb_assert.h".
5664 (typecmp): Skip THIS parameter to methods.
5665 (find_method_list): Remove static_memfuncp argument,
5666 update callers. Check for stub methods.
5667 (find_value_oload_method_list): Don't set *static_memfuncp.
5668 (find_overload_match): Don't check for stub methods. Assert
5669 that methods are not stubbed. Handle static methods.
5670 (value_find_oload_method_list): Remove static_memfuncp argument.
5671 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5672 to the argument list for static stub methods.
5673 * value.h (value_find_oload_method_list): Update prototype.
5674
b2e75d78
AC
56752002-05-11 Andrew Cagney <ac131313@redhat.com>
5676
5677 * arch-utils.h (generic_register_size): Declare.
5678 (generic_register_raw_size, generic_register_virtual_size): Delete
5679 declarations.
5680 * arch-utils.c (generic_register_raw_size): Delete.
5681 (generic_register_size): New function.
5682 (generic_register_virtual_size): Delete.
5683
5684 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5685 default generic_register_size.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5687
5688 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5689 register_virtual_size.
5690 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5691 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5692
451fbdda
AC
56932002-05-11 Andrew Cagney <ac131313@redhat.com>
5694
5695 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5696 * gdbarch.h, gdbarch.c: Regenerate.
5697 * gnu-v3-abi.c: Update copyright.
5698 (vtable_address_point_offset): Update.
5699 (gnuv3_rtti_type): Update.
5700 (gnuv3_baseclass_offset): Update.
5701 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5702 (init_fetch_link_map_offsets): Update.
5703 * remote.c (get_remote_state): Update.
5704
6d2f5cea
DJ
57052002-05-11 Daniel Jacobowitz <drow@mvista.com>
5706
5707 * TODO: Remove value_headof/value_from_vtable_info comment.
5708 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5709 * values.c (value_headof, value_from_vtable_info): Delete.
5710 * value.h (value_from_vtable_info): Delete prototype.
5711
d2324da4
AC
57122002-05-11 Andrew Cagney <ac131313@redhat.com>
5713
5714 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5715 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5716 $(gdb_regex_h).
5717 (gdb_assert_h): Define.
5718 (gdb_wait_h): Define.
5719 (gdb_regex_h): Define.
5720
5c717440
DJ
57212002-05-11 Daniel Jacobowitz <drow@mvista.com>
5722
5723 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5724 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5725
6c7861b3
JT
57262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5727
5728 * nbsd-tdep.c: Fix comment.
5729
ea5bc2a6
JT
57302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5731
5732 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5733 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5734 (nbsd-tdep.o): New dependency list.
5735 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5736 nbsd-tdep.h.
5737 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5738 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5739 * nbsd-tdep.c: New file.
5740 * nbsd-tdep.h: New file.
5741 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5742 nbsd-tdep.h.
5743 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5744 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5745 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5746 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5747
b28da865
JT
57482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5749
5750 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5751 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5752 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5753 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5754 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5755 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5756
4b8ff1fa
JT
57572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5758
5759 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5760 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5761 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5762 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5763 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5764 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5765 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5766
dfe6eb1f
JT
57672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5768
5769 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5770 fetch_elfcore_registers to...
5771 * i386nbsd-tdep.c: ...here.
5772 (i386nbsd_use_struct_convention): Rename to...
5773 (i386nbsd_aout_use_struct_convention): ...this.
5774 (i386nbsd_supply_reg): New function.
5775 (i386nbsd_fill_reg): New function.
5776 (fetch_core_registers): Use i386nbsd_supply_reg.
5777 (fetch_elfcore_registers): Likewise.
5778 (_initialize_i386nbsd_tdep): New function.
5779 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5780 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5781 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5782 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5783 (i386nbsd_aout_use_struct_convention): ...this.
5784
20cb8cda
JT
57852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5786
5787 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5788 (store_inferior_registers): Use shnbsd_fill_reg.
5789 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5790 sh_nbsd_supply_register): Collapse into...
5791 (shnbsd_supply_reg): ...this.
5792 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5793 (shnbsd_fill_reg): ...this.
5794 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5795 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5796 (fetch_core_registers): Use shnbsd_supply_reg.
5797 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5798 (sh_nbsd_core_fns): Rename to...
5799 (shnbsd_core_fns): ...this.
5800 (sh_nbsd_elfcore_fns): Rename to...
5801 (shnbsd_elfcore_fns): ...this.
5802 (sh_nbsd_init_abi): Rename to...
5803 (shnbsd_init_abi): ...this.
5804 (_initialize_sh_nbsd_tdep): Rename to...
5805 (_initialize_shnbsd_tdep): ...this.
5806 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5807 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5808 sh_nbsd_fill_register): Remove prototypes.
5809 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5810
e750d25e
JT
58112002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5812
5813 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5814 (i387-nat.o): Delete dependency list.
5815 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5816 (x86-64-linux-nat.o): Likewise.
5817 * i387-nat.c: Delete file, moving contents to...
5818 * i387-tdep.c: ...here.
5819 * i387-nat.h: Rename...
5820 * i387-tdep.h: ...to this.
5821 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5822 * i386-linux-nat.c: Likewise.
5823 * i386bsd-nat.c: Likewise.
5824 * i386gnu-nat.c: Likewise.
5825 * i386nbsd-nat.c: Likewise.
5826 * i386v4-nat.c: Likewise.
5827 * x86-64-linux-nat.c: Likewise.
5828 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5829 * config/i386/go32.mh (NATDEPFILES): Likewise.
5830 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5831 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5832 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5833 * config/i386/linux.mh (NATDEPFILES): Likewise.
5834 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5835 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5836 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5837 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5838
1aee598a
JT
58392002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5840
5841 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5842 (alphanbsd-nat.o): Remove dependency list.
5843 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5844 * alphanbsd-nat.c: Delete. Contents moved to...
5845 * alphanbsd-tdep.c: ...here.
5846 (_initialize_alphanbsd_tdep): Register core functions.
5847 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5848
12bcb0fe
JT
58492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5850
5851 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5852 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5853 (alphanbsd-nat.o): Likewise.
5854 (alphabsd-tdep.o): New dependency list.
5855 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5856 (fill_gregset): Use alphabsd_fill_reg.
5857 (supply_fpregset): Use alphabsd_supply_fpreg.
5858 (fill_fpregset): Use alphabsd_fill_fpreg.
5859 (fetch_inferior_registers): Use struct reg and struct fpreg
5860 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5861 and alphabsd_supply_fpreg.
5862 (store_inferior_registers): Use struct reg and struct fpreg
5863 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5864 and alphabsd_fill_fpreg.
5865 * alphabsd-tdep.c: New file.
5866 * alphabsd-tdep.h: New file.
5867 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5868 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5869 alphabsd_supply_fpreg.
5870 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5871 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5872
361d1df0
EC
58732002-05-11 Eric Christopher <echristo@redhat.com>
5874
5875 * mips-tdep.c (mips_double_register_type): Fix thinko.
5876 (mips_single_register_type): Ditto.
5877 * MAINTAINERS: Add self.
5878
92dd7cee
MK
58792002-05-11 Mark Kettenis <kettenis@gnu.org>
5880
5881 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5882 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5883 right thing on architectures with different endianness and/or
5884 integer sizes.
5885
e27da16d
JT
58862002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5887
5888 From Christian Limpach <chris@Pin.LU>
5889 * configure.in: Change sed expression which comments out
5890 NATDEPFILES to also comment out continuation lines.
5891 * configure: Regenerate.
5892
ddde02bd
EZ
58932002-05-10 Elena Zannoni <ezannoni@redhat.com>
5894
5895 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5896 big patch.
5897
1c922164
EZ
58982002-05-10 Elena Zannoni <ezannoni@redhat.com>
5899
5900 * sh-tdep.c: Include correct file.
5901
283150cd
EZ
59022002-05-10 Elena Zannoni <ezannoni@redhat.com>
5903
5904 New support for sh64-elf (sh5) target.
5905
5906 * configure.tgt: For sh64-elf target, default to sh-elf.
5907
5908 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5909 (struct gdbarch_tdep): Add new fields for new registers and ABI
5910 info.
361d1df0 5911
283150cd
EZ
5912 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5913 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5914 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5915 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5916 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5917 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5918 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5919 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5920 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5921 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5922 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5923 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5924 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5925 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5926 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5927 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5928 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5929 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5930 sign_extend, sh64_nofp_frame_init_saved_regs,
5931 sh64_init_extra_frame_info, sh64_get_saved_register,
5932 sh64_extract_struct_value_address, sh64_pop_frame,
5933 sh64_push_arguments, sh64_extract_return_value,
5934 sh64_store_return_value, sh64_show_media_regs,
5935 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5936 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5937 sh_sh64_register_virtual_type,
5938 sh_sh64_register_convert_to_virtual,
5939 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5940 sh64_register_read, sh64_pseudo_register_write,
5941 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5942 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5943 sh64_do_pseudo_register, sh_compact_do_registers_info,
5944 sh64_do_registers_info, sh_gdbarch_init): New functions.
5945
3117ed25
EZ
59462002-05-10 Elena Zannoni <ezannoni@redhat.com>
5947
5948 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5949
2654e6d4
DJ
59502002-05-10 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * linespec.c (decode_line_1): Check for a double quote after
5953 a filename correctly.
5954
9ab3e532
JB
59552002-05-10 Jim Blandy <jimb@redhat.com>
5956
5957 Properly track the size of the current objfile's .debug_line section.
5958 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5959 (DWARF_LINE_SIZE): New macro.
5960 (dwarf2_build_psymtabs_hard): Record the line section's size in
5961 the partial symbol table.
5962 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5963 symbol table.
5964
126fa72d
PS
59652002-05-10 Petr Sorfa <petrs@caldera.com>
5966
5967 * ia64-tdep.c: Handle breakpoints on L instruction type
5968 in MLX instruction bundle by moving the breakpoint to
5969 the third slot (X instruction type) as L holds only data.
5970
1f077a3e
KB
59712002-05-10 Kevin Buettner <kevinb@redhat.com>
5972
5973 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5974 (process_one_symbol): Complain about discarding local symbols
5975 due to a misplaced N_LBRAC entry.
5976
8120c9d5 59772002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
5978
5979 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
5980 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5981 decrease the depth we are at, in the case of templates.
361d1df0 5982
67b2c998
DJ
59832002-05-09 Daniel Jacobowitz <drow@mvista.com>
5984
5985 * mips-tdep.c (mips_float_register_type): New function.
5986 (mips_double_register_type): New function.
5987 (mips_print_register): Use them.
5988 (do_fp_register_row): Likewise.
5989
fd326606
DJ
59902002-05-09 Daniel Jacobowitz <drow@mvista.com>
5991
6609d9af 5992 * signals/signals.c (signals): Remove conditional compilation around
fd326606 5993 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 5994 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 5995
bef35864
MS
59962002-05-09 Michael Snyder <msnyder@redhat.com>
5997
5998 * remote-rdp.c (remote_rdp_can_run): Remove.
5999
c55a3f73
TT
60002002-05-09 Tom Tromey <tromey@redhat.com>
6001
6002 * jv-valprint.c (java_val_print): Handle `char' as a special case
6003 of TYPE_CODE_INT.
6004
b8d5e71d
MS
60052002-05-09 Michael Snyder <msnyder@redhat.com>
6006
6007 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6008 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6009 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6010 str r(0123),[sp,#nn].
361d1df0 6011 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6012 order-independent by placing it in a loop.
6013
e2cd42dd
MS
60142002-05-06 Michael Snyder <msnyder@redhat.com>
6015
6016 * stabsread.c (read_type): Add recognition for new attribute:
6017 "@V;" means that an array type is actually a vector.
6018 This is analogous to the vector flag that's been added to dwarf2.
6019
3ce1502b
MK
60202002-05-09 Mark Kettenis <kettenis@gnu.org>
6021
6022 * i386-tdep.h (i386_abi): New enum.
6023 (struct gdbarch_tdep): Replace os_ident member with abi.
6024 (i386_gdbarch_register_os_abi): New prototype.
6025 * i386-tdep.c (i386_abi_names): New array.
6026 (process_note_abi_tag_sections): Removed.
6027 (process_note_sections): New function.
6028 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6029 (struct i386_abi_handler): New struct.
6030 (i386_abi_handler_list): New variable.
6031 (i386_gdbarch_register_os_abi): New function.
6032 (i386_gdbarch_init): Adapt for the changes given above.
6033
084c156a
DJ
60342002-05-08 Daniel Jacobowitz <drow@mvista.com>
6035
6036 * gregset.h: Say "GNU/Linux".
6037
6599f021
EZ
60382002-05-08 Elena Zannoni <ezannoni@redhat.com>
6039
6040 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6041 (build_gdbtypes): Build builtin_type_v2_float.
6042 (_initialize_gdbtypes): Register new builtin type.
6043
40af4b0c
AC
60442002-05-08 Andrew Cagney <ac131313@redhat.com>
6045
6046 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6047 (clear_gdbarch_swap): New function.
6048 (initialize_non_multiarch): Call.
6049 (gdbarch_update_p): Before calling init(), swap out and clear the
6050 existing architecture.
6051 * gdbarch.c: Regenerate.
6052
4fe84f46
JT
60532002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6054
6055 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6056 alphanbsd-tdep.c.
6057
4015edd1
JT
60582002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6059
6060 * sh-nbsd-nat.c: Rename to...
6061 * shnbsd-nat.c: ...this.
6062 * sh-nbsd-tdep.c: Rename to...
6063 * shnbsd-tdep.c: ...this.
6064 * sh-nbsd-tdep.h: Rename to...
6065 * shnbsd-tdep.h: ...this.
6066 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6067 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6068
0e2bd219
RE
60692002-05-08 Richard Earnshaw <rearnsha@arm.com>
6070
6071 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6072 concatenation for command help messages.
6073
13a38d45
JT
60742002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6075
6076 * NEWS: Note new sh*-*-netbsdelf* configuration.
6077 * configure.host: Set gdb_host_cpu to sh for all sh*.
6078 (sh*-*-netbsdelf*): New host.
6079 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6080 (sh*-*-netbsdelf*): New target.
6081 * sh-nbsd-nat.c: New file.
6082 * sh-nbsd-tdep.c: New file.
6083 * sh-nbsd-tdep.h: New file.
6084 * config/sh/nbsd.mh: New file.
6085 * config/sh/nbsd.mt: New file.
6086 * config/sh/nm-nbsd.h: New file.
6087 * config/sh/tm-nbsd.h: New file.
6088
d658f924
JT
60892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * sh-tdep.c (sh_osabi_names): Declare.
6092 (process_note_abi_tag_sections): New function.
6093 (get_elfosabi): Ditto.
6094 (sh_gdbarch_register_os_abi): Ditto.
6095 (sh_dump_tdep): Ditto.
6096 _initialize_sh_tdep): Use gdbarch_register to register
6097 sh_gdbarch_init and sh_dump_tdep.
6098 * config/sh/tm-sh.h (sh_osabi): Declare.
6099 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6100
848cfffb
AC
61012002-05-07 Andrew Cagney <ac131313@redhat.com>
6102
6103 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6104 (thumb_scan_prologue): Ditto.
6105 (arm_find_callers_reg): Ditto.
6106 (arm_frame_chain): Ditto.
6107 (arm_init_extra_frame_info): Ditto.
6108 (arm_frame_saved_pc): Ditto.
6109 (arm_pop_frame): Ditto.
6110 (arm_push_return_address): New function.
6111 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6112 call_dummy_location, call_dummy_breakpoint_offset_p,
6113 call_dummy_breakpoint_offset, call_dummy_p,
6114 call_dummy_stack_adjust_p, call_dummy_words,
6115 sizeof_call_dummy_words, call_dummy_start_offset,
6116 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6117 call_dummy_address, push_return_address and push_dummy_frame for
6118 generic dummy frames.
6119
e7d717c0
JT
61202002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6123 size computation for alloca.
6124 (sh_fp_frame_init_saved_regs): Likewise.
6125
7bbcf283
RE
61262002-05-07 Richard Earnshaw <rearnsha@arm.com>
6127
6128 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6129 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6130 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6131 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6132 * remote-rdp.c (remote_rdp_fetch_register): Use
6133 ARM_MAX_REGISTER_RAW_SIZE.
6134 (remote_rdp_store_register): Likewise.
6135
4657573b
ML
61362002-05-07 Michal Ludvig <mludvig@suse.cz>
6137
361d1df0 6138 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6139 added default labels to switch {} statements.
6140 * x86-64-tdep.c: Ditto.
6141 * x86-64-linux-nat.c: Ditto.
6142
010f3b2f
JT
61432002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6144
6145 * solib.h: Protect against multiple inclusion.
6146
debd256d
JB
61472002-05-06 Jim Blandy <jimb@redhat.com>
6148
9ab3e532
JB
6149 Add first preprocessor macro-expansion files.
6150 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6151 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6152 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6153 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6154 (COMMON_OBS): Add macrotab.o, macroexp.o.
6155 (macroexp.o, macrotab.o): New rules.
6156
debd256d
JB
6157 Separate the job of reading the line number info statement program
6158 header (...expialidocious) out into its own function.
6159 * dwarf2read.c (struct line_head, struct filenames, struct
6160 directories): Replace with...
6161 (struct line_header): New structure, containing the full
6162 contents of the statement program header, including the
6163 include directory and file name tables.
6164 (read_file_scope): If we have line number info, instead of just
6165 calling dwarf_decode_lines to do all the work, call
6166 dwarf_decode_line_header first to get a `struct line_header'
6167 containing the data in the statement program header, and then
6168 pass that to dwarf_decode_lines, which will pick up where that
6169 left off. Be sure to clean up the `struct line_header' object.
6170 (dwarf_decode_line_header, free_line_header, add_include_dir,
6171 add_file_name): New functions.
6172 (dwarf_decode_lines): Move all the code to read the statement
6173 program header into dwarf_decode_line_header. Take the line
6174 header it built as the first argument, instead of the offset to
6175 the compilation unit's line number info. Use the new `struct
6176 line_header' type instead of the old structures. No need to do
6177 cleanups here now, since we don't allocate anything.
6178 (dwarf2_statement_list_fits_in_line_number_section,
6179 dwarf2_line_header_too_long): New complaints.
6180
ac3aafc7
EZ
61812002-05-06 Elena Zannoni <ezannoni@redhat.com>
6182
6183 * gdbtypes.c (init_vector_type): New function.
6184 (build_builtin_type_vec128): Simplify the representation of SIMD
6185 registers.
6186 (build_gdbtypes): Initialize new builtin vector types.
6187 (_initialize_gdbtypes): Register new vector types with gdbarch.
6188 (builtin_type_v4_float, builtin_type_v4_int32,
6189 builtin_type_v8_int16, builtin_type_v16_int8,
6190 builtin_type_v2_int32, builtin_type_v4_int16,
6191 builtin_type_v8_int8): New (renamed) SIMD types.
6192
13e49980
MK
61932002-05-06 Mark Kettenis <kettenis@gnu.org>
6194
6195 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6196 (i387_fill_fxsave): Likewise.
6197
997b20b8
AO
61982002-05-05 Alexandre Oliva <aoliva@redhat.com>
6199
6200 * alpha-tdep.c (alpha_extract_return_value): Don't use
6201 non-constant array size in prototype.
6202
535c96ce
AC
62032002-05-04 Andrew Cagney <ac131313@redhat.com>
6204
6205 From Brian Taylor <briant at model dot com>:
6206 * ui-out.c (ui_out_field_core_addr): Use the function
6207 longest_local_hex_string_custom'to format addresses > 32 bits
6208 wide.
6209
6210 * ui-out.c (ui_out_field_core_addr): Update comment.
6211
bedfa57b
AC
62122002-05-04 Andrew Cagney <ac131313@redhat.com>
6213
6214 * stack.c (select_and_print_frame): Make static. Delete the
6215 parameter `level'.
6216 (func_command): Update call.
6217 (select_frame_command): Delete code computing the frame level.
6218 * frame.h (select_and_print_frame): Delete declaration.
6219
f621c63e
AC
62202002-05-04 Andrew Cagney <ac131313@redhat.com>
6221
6222 * sparc-tdep.c (sparc_get_saved_register): Comment why
6223 get_prev_frame call is safe.
6224
0f7d239c
AC
62252002-05-04 Andrew Cagney <ac131313@redhat.com>
6226
6227 * frame.h (select_frame): Delete level parameter.
6228 * stack.c (select_frame): Update. Use frame_relative_level to
6229 obtain the frame's level.
6230 (select_and_print_frame): Update call.
6231 (select_frame_command): Ditto.
6232 (up_silently_base): Ditto.
6233 (down_silently_base): Ditto.
6234 * ocd.c (ocd_start_remote): Ditto.
6235 * remote-rdp.c (remote_rdp_open): Ditto.
6236 * remote-mips.c (mips_initialize): Ditto.
6237 (common_open): Ditto.
6238 * remote-e7000.c (e7000_start_remote): Ditto.
6239 * m3-nat.c (select_thread): Ditto.
6240 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6241 (child_get_current_exception_event): Ditto.
6242 * varobj.c (varobj_create): Ditto.
6243 (varobj_update): Ditto.
6244 (c_value_of_root): Ditto.
6245 * tracepoint.c (finish_tfind_command): Ditto.
6246 * corelow.c (core_open): Ditto.
6247 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6248 * thread.c (info_threads_command): Ditto.
6249 (switch_to_thread): Ditto.
6250 * infrun.c (normal_stop): Ditto.
6251 (restore_selected_frame): Ditto.
6252 (restore_inferior_status): Ditto.
6253 * breakpoint.c (insert_breakpoints): Ditto.
6254 (watchpoint_check): Ditto.
6255 (bpstat_stop_status): Ditto.
6256 (do_enable_breakpoint): Ditto.
6257 * blockframe.c (flush_cached_frames): Ditto.
6258 (reinit_frame_cache): Ditto.
6259
71d6c7b1
AC
62602002-05-04 Andrew Cagney <ac131313@redhat.com>
6261
6262 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6263 maintainer.
6264
cda6c68a
JB
62652002-05-04 Jim Blandy <jimb@redhat.com>
6266
6267 * gdbtypes.c (replace_type): Doc fix.
6268
5c1c87f0
AC
62692002-05-04 Andrew Cagney <ac131313@redhat.com>
6270
6271 * valprint.c (strcat_longest): Delete commented out function.
6272 Update copyright.
6273
cd9bfe15
AC
62742002-05-04 Andrew Cagney <ac131313@redhat.com>
6275
6276 * MAINTAINERS: Mark a29k as deleted.
6277 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6278 Move new configurations to the top.
6279 * configure.tgt: Remove a29k.
6280 * config/a29k/tm-vx29k.h: Delete.
6281 * config/a29k/vx29k.mt: Delete.
6282 * config/a29k/tm-a29k.h: Delete.
6283 * config/a29k/a29k-udi.mt: Delete.
6284 * config/a29k/a29k.mt: Delete.
6285 * a29k-tdep.c: Delete.
6286 * remote-udi.c: Delete.
6287 * remote-mm.c: Delete.
6288 * remote-eb.c: Delete.
6289 * remote-adapt.c: Delete.
6290 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6291 * config/s390/s390x.mt: Ditto.
6292 * config/s390/s390.mt: Ditto.
6293 * config/sparc/sparclynx.mh: Ditto.
6294 * config/sparc/linux.mh: Ditto.
6295 * config/pa/hppaosf.mh: Ditto.
6296 * config/pa/hppabsd.mh: Ditto.
6297 * config/ns32k/nbsd.mt: Ditto.
6298 * config/mips/vr5000.mt: Ditto.
6299 * config/m68k/sun3os4.mh: Ditto.
6300 * config/m68k/nbsd.mt: Ditto.
6301 * config/m68k/m68klynx.mh: Ditto.
6302 * config/m32r/m32r.mt: Ditto.
6303 * config/i386/x86-64linux.mt: Ditto.
6304 * config/i386/nbsdelf.mt: Ditto.
6305 * config/i386/nbsd.mt: Ditto.
6306 * config/i386/i386lynx.mh: Ditto.
6307
bf0c5130
AC
63082002-05-04 Andrew Cagney <ac131313@redhat.com>
6309
6310 * target.c (debug_print_register): New function. Handle oversize
6311 registers.
6312 (debug_to_fetch_registers): Call.
6313 (debug_to_store_registers): Call.
6314
2ae1c2d2
JB
63152002-05-03 Jim Blandy <jimb@redhat.com>
6316
13a393b0
JB
6317 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6318 (read_type): Doc fix.
6319 * gdbtypes.c (replace_type): Doc fix.
6320
2ae1c2d2
JB
6321 * stabsread.c (multiply_defined_struct): New complaint.
6322 (read_struct_type): If the type we were passed isn't empty, or
6323 incomplete, don't read the new struct type into it; complain,
6324 and return the original type unchanged. Take a new `type_code'
6325 argument, which is the type code for the new type.
6326 (read_type): Rather than storing the type's type code here, pass
6327 it as an argument to read_struct_type, and let that take care of
6328 storing it. That way, we don't overwrite the original type code,
6329 so read_struct_type can use it to decide whether we're overwriting
6330 something we shouldn't.
6331 (complain_about_struct_wipeout): New function.
6332
8de9bdc4
AC
63332002-05-03 Andrew Cagney <ac131313@redhat.com>
6334
6335 * gdbarch.sh: Assert that gdbarch is non-NULL.
6336 * gdbarch.c: Regenerate.
6337
f773fdbb
JM
63382002-05-03 Jason Merrill <jason@redhat.com>
6339
6340 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6341 and return NULL.
6342
0e04a514
ML
63432002-05-03 Michal Ludvig <mludvig@suse.cz>
6344
6345 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6346 (x86_64_dwarf2gdb_regno_map_length),
6347 (x86_64_dwarf2_reg_to_regnum): Added.
6348 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6349 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6350 (_initialize_x86_64_tdep): Synced with the change above.
6351 (x86_64_skip_prologue): Reformulated message.
6352
065432a8
PM
63532002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6354
6355 * f-exp.y: Also use new prev_lexptr variable
6356 to improve error reporting. Based on Michael Snyder
6357 2002-04-24 dated patch to c-exp.y.
6358 * jv-exp.y: Likewise.
6359 * m2-exp.y: Likewise.
6360
a3162708
EZ
63612002-05-02 Elena Zannoni <ezannoni@redhat.com>
6362
6363 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6364 we are dealing with vectors.
6365
03620c38
PM
63662002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6367
6368 * config/m68k/tm-nbsd.h: Obvious fix,
6369 correct machine name.
6370
6604db2e
PM
63712002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6372
6373 * p-typeprint.c (pascal_type_print_base): Add support
6374 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6375
0906b739
PM
63762002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6377
6378 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6379 for fondamental pascal 'char' type.
6380
e2625b33
PM
63812002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6382
6383 * p-lang.h (is_pascal_string_type): Declaration changed,
6384 new sixth argument of type char ** added.
361d1df0 6385 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6386 changed. Args length_pos, length_size, string_pos, char_size
6387 can now be NULL. New argument arrayname set to the field
6388 name of the char array. Return value set to char array
6389 field index plus one.
361d1df0 6390 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6391 is_pascal_string_type function.
6392
cf17c188
AC
63932002-05-02 Andrew Cagney <cagney@redhat.com>
6394
6395 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6396 <cagney@redhat.com> change.
6397 * gdbarch.c: Regenerate.
6398
52bca491
AC
63992002-05-02 Andrew Cagney <cagney@redhat.com>
6400
6401 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6402 before probing for a new one. Detect errorenous gdbarch_init
6403 functions.
6404 * gdbarch.c: Regenerate.
6405
d5e72505
AC
64062002-05-01 Andrew Cagney <cagney@redhat.com>
6407
6408 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6409 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6410 * config/v850/tm-v850.h: Ditto. Update copyright.
6411
af566d9f
AC
64122002-04-30 Andrew Cagney <ac131313@redhat.com>
6413
6414 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6415 current_gdbarch.
6416
880d85fa
MS
64172002-04-30 Michael Snyder <msnyder@redhat.com>
6418
94c30b78
MS
6419 * arm-tdep.c: Whitespace clean-ups.
6420 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6421 should have been removed as part of 4/24 change.
6422
6f5987a6
KB
64232002-04-30 Kevin Buettner <kevinb@redhat.com>
6424
6425 * rs6000-tdep.c: Added comment describing how fpscr register
6426 numbers were chosen.
6427
1a113c93
MS
64282002-04-30 Michael Snyder <msnyder@redhat.com>
6429
6430 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6431
9a6f53fe
EZ
64322002-04-29 Elena Zannoni <ezannoni@redhat.com>
6433
6434 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6435 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6436 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6437
11ed25ac
KB
64382002-04-29 Kevin Buettner <kevinb@redhat.com>
6439
6440 From Louis Hamilton <hamilton@redhat.com>:
6441 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6442 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6443 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6444 not bfd-private xcoff data, to determine wordsize.
6445 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6446
ae232405
AC
64472002-04-29 Andrew Cagney <ac131313@redhat.com>
6448
6449 GDB 5.2 released from 5.2 branch.
6450
91fd20f7
ML
64512002-04-29 Michal Ludvig <mludvig@suse.cz>
6452
6453 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6454 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6455 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6456
2dc5091b
EZ
64572002-04-29 Elena Zannoni <ezannoni@redhat.com>
6458
6459 * rs6000-tdep.c (rs6000_extract_return_value,
6460 rs6000_store_return_value): Handle returning vectors.
6461 (rs6000_gdbarch_init): Use
6462 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6463 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6464 New function.
6465 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6466 vectors.
6467 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6468 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6469
2b9848d8
PM
64702002-04-24 Pierre Muller <ics.u-strasbg.fr>
6471
6472 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6473 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6474 with fprintf_unfiltered (gdb_stderr,...).
6475
f8d17dc5
PM
64762002-04-24 Pierre Muller <ics.u-strasbg.fr>
6477
6478 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6479 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6480 Replace fprintf (stderr,...
6481 with fprintf_unfiltered (gdb_stderr,....
6482 * remote-es.c: Likewise.
6483 * remote-os9k.c: Likewise.
6484 * remote-st.c: Likewise.
6485
2f2f1ad1
AS
64862002-04-28 Andreas Schwab <schwab@suse.de>
6487
6488 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6489 linux-proc.o and gcore.o.
6490
b6779aa2
AC
64912002-04-26 Michal Ludvig <mludvig@suse.cz>
6492
6493 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6494 code without frame pointers.
6495
7e57f5f4
AC
64962002-04-26 Andrew Cagney <ac131313@redhat.com>
6497
6498 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6499 ON_STACK is needed.
6500
2ceb85d0
BE
65012002-04-26 Ben Elliston <bje@redhat.com>
6502
6503 * target.c (do_xfer_memory): Correct reference to the new option
6504 "trust-readonly-sections".
6505
f5f8a009
EZ
65062002-04-26 Elena Zannoni <ezannoni@redhat.com>
6507
6508 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6509 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6510 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6511 vectors.
6512 (read_array_type): Record the fact that this array type is really a
6513 vector (i.e. are passed in by value).
6514
5868c862
JT
65152002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6516
6517 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6518 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6519 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6520 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6521 * alpha-linux-tdep.c: Include frame.h.
6522 (alpha_linux_sigcontext_addr): New function.
6523 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6524 alpha_linux_sigcontext_addr.
6525 * alpha-osf1-tdep.c: Include gdbcore.h.
6526 (alpha_osf1_sigcontext_addr): New function.
6527 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6528 alpha_osf1_sigcontext_addr.
6529 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6530 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6531
bfb01f37
AC
65322002-04-26 Andrew Cagney <ac131313@redhat.com>
6533
361d1df0 6534 * stack.c (selected_frame_level):
bfb01f37
AC
6535 (select_frame): Do not set selected_frame_level.
6536 * frame.h (selected_frame_level): Delete declaration.
6537
15813d3f
AC
65382002-04-26 Andrew Cagney <ac131313@redhat.com>
6539
6540 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6541 convert_from_func_ptr-addr when AIX / PowerOpen.
6542
6096c27a
AC
65432002-04-25 Andrew Cagney <ac131313@redhat.com>
6544
6545 * valops.c (hand_function_call): Call
6546 generic_save_call_dummy_addr.
6547 * frame.h (generic_save_call_dummy_addr): Declare.
6548 * blockframe.c (struct dummy_frame): Add fields call_lo and
6549 call_hi.
6550 (generic_find_dummy_frame): Check for PC in range call_lo to
6551 call_hi instead of entry_point_address.
6552 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6553 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6554 (generic_save_call_dummy_addr): New function.
6555
f510d44e
DM
65562002-04-24 David S. Miller <davem@redhat.com>
6557
6558 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6559 sparc_skip_prologue.
6560 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6561 information to find prologue when possible.
6562 (sparc_prologue_frameless_p): Call examine_prologue directly.
6563 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6564 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6565 second argument.
6566 (SKIP_PROLOGUE): Likewise.
6567
15d72a92
JT
65682002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6569
6570 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6571 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6572 indicate that the condition it was testing is always true.
6573 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6574 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6575 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6576
accc6d1f
JT
65772002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6578
6579 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6580 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6581 tdep->jb_pc and tdep->jb_elt_size.
6582 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6583 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6584 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6585 * alpha-nat.c (get_longjmp_target): Remove.
6586 (JB_ELEMENT_SIZE): Ditto.
6587 (JB_PC): Ditto.
6588 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6589 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6590 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6591 to alpha_get_longjmp_target.
6592 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6593 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6594 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6595
1bfdc549
AC
65962002-04-25 Andrew Cagney <ac131313@redhat.com>
6597
6598 * README: Update to GDB 5.2.
6599
1bd316f0
AC
66002002-04-25 Andrew Cagney <ac131313@redhat.com>
6601
6602 * gdbarch.sh (LC_ALL): Set to `c'.
6603
2e5ff58c
TR
66042002-04-25 Theodore A. Roth <troth@verinet.com>
6605
6606 * avr-tdep.c: Ran through gdb_indent.sh.
6607
e33ce519
TR
66082002-04-25 Theodore A. Roth <troth@verinet.com>
6609
6610 * MAINTAINERS: Add myself as AVR maintainer.
6611 * NEWS: Note new target avr.
6612
8818c391
TR
66132002-04-25 Theodore A. Roth <troth@verinet.com>
6614
6615 * Makefile.in: Add support for AVR target.
6616 * configure.tgt: Add support for AVR target.
6617 * avr-tdep.c: New file
6618 * config/avr/avr.mt: New file.
6619
79509c2d
TR
66202002-04-25 Theodore A. Roth <troth@verinet.com>
6621
6622 * MAINTAINERS: Add myself to write-after-approval.
6623
dac8068e
PM
66242002-04-24 Pierre Muller <ics.u-strasbg.fr>
6625
6626 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6627 with fprintf_unfiltered (gdb_stderr,....
6628
25bf3106
PM
66292002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6630
6631 Fix PR gdb/508.
6632 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6633
24467a86
PM
66342002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6635
6636 * p-exp.y: Also use new prev_lexptr variable
6637 to improve error reporting. Based on Michael Snyder
6638 2002-04-24 dated patch to c-exp.y.
6639
95b80706
JT
66402002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6641
6642 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6643 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6644 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6645 to 0.
6646 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6647 and struct value.
6648 (FUNCTION_START_OFFSET): Remove.
6649 (BREAKPOINT): Ditto.
6650
e90cc612
JT
66512002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6652
6653 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6654 * NEWS: Ditto.
6655
6c72f9f9
JT
66562002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6657
6658 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6659 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6660 alpha_linux_pc_in_sigtramp.
6661 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6662 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6663 alpha_osf1_pc_in_sigtramp.
6664 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6665 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6666 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6667 alphafbsd_pc_in_sigtramp.
6668 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6669 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6670 alphanbsd_pc_in_sigtramp.
6671 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6672 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6673
5e4f3379
JT
66742002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6675
6676 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6677
da8ca43d
JT
66782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6679
6680 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6681 alphanbsd-tdep.c.
6682 (alphanbsd-nat.o): New dependency list.
6683 (alphanbsd-tdep.o): Ditto.
6684 * NEWS: Note new native NetBSD/alpha configuration.
6685 * alphanbsd-nat.c: New file.
6686 * alphanbsd-tdep.c: Ditto.
6687 * configure.host (alpha*-*-netbsd*): New host.
6688 * configure.tgt (alpha*-*-netbsd*): New target.
6689 * config/alpha/nbsd.mh: New file.
6690 * config/alpha/nbsd.mt: Ditto.
6691 * config/alpha/nm-nbsd.h: Ditto.
6692 * config/alpha/tm-nbsd.h: Ditto.
6693
36a6271d
JT
66942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6695
6696 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6697 (alpha-osf1-tdep.o): New dependency list.
6698 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6699 and skip_sigtramp_frame members.
6700 * alpha-linux-tdep.c: Include gdbcore.h.
6701 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6702 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6703 * alpha-osf1-tdep.c: New file.
6704 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6705 alpha-osf1-dep.c.
6706 (alpha_frame_past_sigtramp_frame): New function.
6707 (alpha_dynamic_sigtramp_offset): Ditto.
6708 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6709 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6710 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6711 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6712 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6713 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6714 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6715 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6716 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6717 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6718 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6719 to find_solib_trampoline_target.
6720 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6721 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6722 (SKIP_TRAMPOLINE_CODE): Remove.
6723 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6724 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6725 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6726 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6727 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6728 (PROC_SIGTRAMP_MAGIC): Ditto.
6729 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6730 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6731 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6732 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6733 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6734
2f4bc57b
JT
67352002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6736
6737 * NEWS: Note that Alpha targets are now multi-arch.
6738
665132f9
MS
67392002-04-24 Michael Snyder <msnyder@redhat.com>
6740
6741 * parser-defs.h (prev_lexptr): New external variable.
6742 * parse.c (parse_exp_1): Set prev_lexptr to null before
6743 calling the language-specific parser.
6744 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6745 (yyerror): Use prev_lexptr in error reporting.
6746
32872fa7
DJ
67472002-04-24 Daniel Jacobowitz <drow@mvista.com>
6748
6749 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6750 * gregset.h: If FILL_FPXREGSET is defined, provide
6751 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6752 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6753 is defined, call fill_fpxregset.
6754
57e76fac
MS
67552002-04-24 Roland McGrath <roland@frob.com>
6756
6757 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6758 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6759 (supply_gregset, supply_fpregset): New functions.
6760
6761 * gnu-nat.c (gnu_find_memory_regions): New function.
6762 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6763 (gnu_xfer_memory): Add a cast.
6764
f43845b3
MS
67652002-04-24 Michael Snyder <msnyder@redhat.com>
6766
361d1df0 6767 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6768 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6769 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6770 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6771 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6772 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6773
a0abec03
AC
6774Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6775
6776 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6777 NUM_PSEUDO_REGS can be used.
6778
d7bd68ca
AC
67792002-04-24 Andrew Cagney <ac131313@redhat.com>
6780
6781 * arch-utils.h: Update copyright.
6782
6783 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6784 * gdbarch.h, gdbarch.c: Re-generate.
6785
6786 * inferior.h (IN_SIGTRAMP): Delete definition.
6787 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6788 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6789
6790 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6791 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6792 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6793 (find_proc_framesize): Ditto.
6794 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6795 (alpha_init_extra_frame_info): Ditto.
6796 * infrun.c (handle_inferior_event): Ditto.
6797 (handle_inferior_event): Ditto.
6798 (check_sigtramp2): Ditto.
6799 * blockframe.c (create_new_frame): Ditto.
6800 (get_prev_frame): Ditto.
6801 * ppc-linux-tdep.c: Update comments.
6802 * i386-linux-tdep.c: Update comments.
6803 * breakpoint.c (bpstat_what): Update comment.
6804
4867e41e
DM
68052002-04-24 David S. Miller <davem@redhat.com>
6806
21d83aa5
DM
6807 * i960-tdep.c (register_in_window_p): New function.
6808 (i960_find_saved_register): Use it instead of
6809 REGISTER_IN_WINDOW_P.
6810 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6811
4867e41e
DM
6812 * symtab.h (find_stab_function_addr): Kill extern.
6813 * minsyms.c (find_stab_function_addr): Remove from here...
6814 * dbxread.c: ... to here, and mark it static.
6815
69cdf6a2
DM
68162002-04-20 David S. Miller <davem@redhat.com>
6817
6818 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6819 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6820
5a595886
DM
68212002-04-21 David S. Miller <davem@redhat.com>
6822
6823 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6824 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6825 (vx_write_register): Likewise.
6826
1da1a192
JB
68272002-04-23 J. Brobecker <brobecker@gnat.com>
6828
6829 * source.c (is_regular_file): New function.
6830 (openp): Check wether file to open is a regular file
6831 to avoid opening directories.
6832
baa6f10b
JT
68332002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6834
6835 * findvar.c (extract_signed_integer): Cast printf argument
6836 to suppress format warning.
6837 (extract_unsigned_integer): Likewise.
6838 * infcmd.c (registers_info): Likewise.
6839 * top.c (get_prompt_1): Likewise.
6840 * valops.c (value_assign): Likewise.
6841 * valprint.c (print_decimal): Likewise.
6842
b2c4da81
L
68432002-04-22 H.J. Lu (hjl@gnu.org)
6844
6845 * c-exp.y (typebase): Support
361d1df0 6846
b2c4da81
L
6847 [long|long long|short] [signed|unsigned] [int|]
6848
6849 and
6850
6851 signed [long|long long|short] int
6852
f267bd6a
JT
68532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6854
6855 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6856 and vax-tdep.h.
6857 * vax-tdep.h: New file.
6858 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6859 Make several routines static.
6860 (vax_get_saved_register): New function.
6861 (vax_gdbarch_init): New function.
6862 (_initialize_vax_tdep): Register vax_gdbarch_init.
6863 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6864 Remove macros now under the control of gdbarch.
6865
da3c6d4a
MS
68662002-04-22 Michael Snyder <msnyder@redhat.com>
6867
11d3b27d
MS
6868 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6869 Some whitespace and coding standards tweaks.
da3c6d4a 6870
a33f7558
JT
68712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6872
6873 * vax-tdep.c: Include regcache.h.
6874 (vax_call_dummy_words): New.
6875 (sizeof_vax_call_dummy_words): New.
6876 (vax_fix_call_dummy): New function.
6877 (vax_saved_pc_after_call): Ditto.
6878 * config/vax/tm-vax.h: Don't include regcache.h.
6879 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6880 (CALL_DUMMY): Remove.
6881 (CALL_DUMMY_WORDS): Define.
6882 (SIZEOF_CALL_DUMMY_WORDS): Define.
6883 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6884
47a73475
MS
68852002-04-18 Michael Snyder <msnyder@redhat.com>
6886
6887 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6888
52efde73
JT
68892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6890
6891 * vax-tdep.c (vax_frame_chain): New function.
6892 (vax_push_dummy_frame): Ditto.
6893 (vax_pop_frame): Ditto.
6894 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6895 (FRAMELESS_FUNCTION_INVOCATION): Use
6896 generic_frameless_function_invocation_not.
6897 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6898 (POP_FRAME): Use vax_pop_frame.
6899
ea74468c
JT
69002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6901
6902 * vax-tdep.c (vax_store_struct_return): New function.
6903 (vax_extract_return_value): Ditto.
6904 (vax_store_return_value): Ditto.
6905 (vax_extract_struct_value_address): Ditto.
6906 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6907 vax_store_struct_return.
6908 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6909 (STORE_RETURN_VALUE): Use vax_store_return_value.
6910 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6911
5516aa92
JT
69122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6913
6914 * vax-tdep.c (vax_frame_saved_pc): New function.
6915 (vax_frame_args_address_correct): Ditto.
6916 (vax_frame_args_address): Ditto.
6917 (vax_frame_locals_address): Ditto.
6918 (vax_frame_num_args): Move code to be in proximity to
6919 other frame-related functions.
6920 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6921 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6922 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6923 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6924 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6925
36af0b35
L
69262002-04-22 H.J. Lu (hjl@gnu.org)
6927
6928 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6929 includedir.
6930
ab62c900
JT
69312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6932
6933 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6934 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6935 (FRAME_INIT_SAVED_REGS): New macro.
6936
7232b100
JT
69372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6938
6939 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6940
b70d2aee
JT
69412002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6942
6943 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6944 where needed.
6945 (fetch_osf_core_registers): Likewise.
6946 (supply_gregset): Likewise.
6947
a0e8a2d1 69482002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6949
a0e8a2d1
JB
6950 * symfile.h (get_section_index): Define.
6951 * symfile.c (get_section_index): New function.
6952 * mdebugread.c (SC_IS_SBSS): New macro.
6953 (SC_IS_BSS): Return true for the scBss storage class only, as
6954 the scSBss storage class refers to the .sbss section.
6955 (parse_partial_symbols): Discard the symbols which associated
6956 section does not exist.
6957 Make sure to use the .sbss section index for symbols which
6958 storage class is scBss, rather than using the .bss section index.
6959
51eb8b08
JT
69602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6961
6962 * vax-tdep.c: Update copyright years.
6963 (vax_register_name): New function.
6964 (vax_register_byte): Ditto.
6965 (vax_register_raw_size): Ditto.
6966 (vax_register_virtual_size): Ditto.
6967 (vax_register_virtual_type): Ditto.
6968 * config/vax/tm-vax.h: Update copyright years.
6969 (REGISTER_NAMES): Remove.
6970 (REGISTER_NAME): Define.
6971 (REGISTER_BYTE): Use vax_register_byte.
6972 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6973 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6974 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6975
6cc1c0a8
AC
69762002-04-21 Andrew Cagney <ac131313@redhat.com>
6977
6978 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6979 declaration
6980 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6981
9319a2fe
DM
69822002-04-21 David S. Miller <davem@redhat.com>
6983
6984 * arch-utils.c (generic_prologue_frameless_p): Kill
6985 SKIP_PROLOGUE_FRAMELESS_P code.
6986 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6987 references.
6988 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6989 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6990 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6991 references.
6992 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6993 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6994 (sparc_gdbarch_init): Pass it to
6995 set_gdbarch_prologue_frameless_p.
a0e8a2d1 6996
e9ed6d01
JT
69972002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6998
6999 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7000 (alphabsd-nat.o): New dependency list.
7001
36012033
JT
70022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7003
7004 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7005 alphafbsd-tdep.c.
7006 (alpha-linux-tdep.o): New dependency list.
7007 (alphafbsd-tdep.o): Likewise.
7008
3379287a
JT
70092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7010
7011 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7012 to here...
7013 * alpha-tdep.c: ...from here.
7014 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7015
4bcbd6cb
JT
70162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7017
7018 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7019 prototype from here...
7020 * alpha-tdep.h: ...to here.
7021
b31da25e
AC
70222002-04-21 Andrew Cagney <ac131313@redhat.com>
7023
7024 * frame.h (selected_frame_level): Document as deprecated.
7025 (frame_relative_level): Declare.
7026 * stack.c (frame_relative_level): New function.
7027 (selected_frame_level): Document as deprecated.
7028 (select_frame): Do not set the selected_frame_level.
7029
7030 * stack.c (frame_info, record_selected_frame): Update.
7031 (frame_command, current_frame_command): Update.
7032 (up_silently_base, up_command, down_silently_base): Update.
7033 (down_command): Update.
7034 * inflow.c (kill_command): Update.
7035 * tracepoint.c (finish_tfind_command): Update.
7036 * corelow.c (core_open): Update.
7037 * thread.c (info_threads_command): Update.
7038 (do_captured_thread_select): Update.
7039 * infcmd.c (finish_command): Update.
7040 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7041
9c1d6fe5
JT
70422002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7045
ab89facf
AC
70462002-04-21 Andrew Cagney <ac131313@redhat.com>
7047
7048 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7049 type const.
7050
82a4efa1
JT
70512002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7052
7053 * alphafbsd-tdep.c: Update copyright years. Include
7054 alpha-tdep.h.
7055 (alphafbsd_use_struct_convention): Make static.
7056 (alphafbsd_init_abi): New function.
7057 (_initialize_alphafbsd_tdep): New function.
7058 * config/alpha/tm-fbsd.h: Update copyright years.
7059 (USE_STRUCT_CONVENTION): Remove.
7060
44dffaac
JT
70612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7062
7063 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7064 an Alpha ABI variant.
7065 (alpha_abi_handler_list): Declare.
7066 (alpha_gdbarch_register_os_abi): New function.
7067 (alpha_gdbarch_init): Give registered ABI variant handlers a
7068 chance to tweak the gdbarch once we have set up defaults.
7069 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7070
65585be4
JT
70712002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7072
7073 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7074 to standard_coerce_float_to_double.
7075 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7076
d9b023cc
JT
70772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7078
7079 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7080 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7081 from gdbarch_tdep rather than a constant.
7082 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7083 the default text address for all Alpha Unix ABIs.
7084 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7085 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7086
dc129d82
JT
70872002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7088
7089 * alpha-tdep.h: New file. Includes several Alpha target constants
7090 taken from...
7091 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7092 let gdbarch deal with.
7093 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7094 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7095 to dependency list.
7096 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7097 Alpha target register names.
7098 * alphabsd-nat.c: Likewise.
7099 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7100 Alpha target register names. Make serveral routines static.
7101 (alpha_get_saved_register): New function.
7102 (alpha_abi_names): New.
7103 (process_note_abi_tag_sections): New function.
7104 (get_elfosabi): New function.
7105 (alpha_gdbarch_init): New function.
7106 (alpha_dump_tdep): New function.
7107 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7108
d49d1e0a
AC
71092002-04-21 Andrew Cagney <ac131313@redhat.com>
7110
7111 * frame.c (find_saved_register): Delete #ifdef
7112 HAVE_REGISTER_WINDOWS code.
7113 * config/sparc/tm-sparc.h: Update comments.
7114 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7115
92e8c9ed
AC
71162002-04-21 Andrew Cagney <ac131313@redhat.com>
7117
7118 * i960-tdep.c (i960_find_saved_register): New function.
7119 (i960_get_saved_register): New function.
7120 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7121 (i960_get_saved_register): Declare.
7122 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7123
e1925118
DM
71242002-04-20 David S. Miller <davem@redhat.com>
7125
7126 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7127
29673b29
AC
71282002-04-20 Andrew Cagney <ac131313@redhat.com>
7129
7130 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7131 instead of NUM_PSEUDO_REGS.
7132
6c86dcd5
DM
71332002-04-20 David S. Miller <davem@redhat.com>
7134
7135 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7136 GDB_MULTI_ARCH_PARTIAL
7137 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7138 define, let tm-sp64.h do it.
7139
aa40ec90
JT
71402002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7141
7142 * frame.c (find_saved_register): Avoid a NULL pointer
7143 dereference and actually walk the frame list.
7144
0f79675b
AC
71452002-04-20 Andrew Cagney <ac131313@redhat.com>
7146
7147 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7148 sorted in most most-recent-used order. Document.
7149 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7150
f91305dd 71512002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7152
7153 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7154 instead of ->prev.
7155 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7156 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7157 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7158 instead of ->prev.
7159
73d322b1
EZ
71602002-04-19 Elena Zannoni <ezannoni@redhat.com>
7161
7162 Fix PR gdb/471.
7163 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7164 (build_builtin_type_vec128): Ditto.
7165 (append_composite_type_field): Fix calculation of type length in
7166 union case.
7167
ccd9a834
EZ
71682002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7169
7170 * config/djgpp/README: Update.
7171
7172 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7173 compiler warnings.
7174
a57f9e49
JT
71752002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7176
7177 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7178 (alpha_setup_arbitrary_frame): ...to this.
7179 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7180 for alpha_setup_arbitrary_frame.
7181
f4f9705a
AC
71822002-04-18 Andrew Cagney <cagney@redhat.com>
7183
7184 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7185 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7186
f4f9705a
AC
7187 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7188 * target.h (memory_breakpoint_from_pc): Update declaration.
7189 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7190
7191 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7192 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7193 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7194 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7195 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7196 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7197 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7198 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7199 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7200 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7201 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7202 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7203
7204 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7205 const pointer.
7206 * monitor.c (monitor_insert_breakpoint): Ditto.
7207 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7208
7209 * config/mcore/tm-mcore.h: Update copyright.
7210 * mem-break.c: Ditto.
7211 * xstormy16-tdep.c: Ditto.
7212
29f319b8
PM
72132002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7214
7215 * p-exp.y: Add precedence rule for '^' token.
7216 This removes the shift/reduce conflicts.
7217 Remove the comment concerning these shift/reduce conflicts.
7218
ebeac11a
EZ
72192002-04-18 Elena Zannoni <ezannoni@redhat.com>
7220
7221 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7222 (registers_powerpc_nofp): New register set for processors
7223 without floating point unit.
7224
27c31547
DM
72252002-04-18 David S. Miller <davem@redhat.com>
7226
7227 * MAINTAINERS: Add myself to write-after-approval.
7228
47a73475
MS
72292002-04-17 Michael Snyder <msnyder@redhat.com>
7230
7231 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7232
953836b2
AC
72332002-04-17 Andrew Cagney <ac131313@redhat.com>
7234
7235 * rs6000-tdep.c (frame_initial_stack_address): Use
7236 frame_register_read to read the alloca_reg.
7237
8b0d4340
AC
72382002-04-17 Andrew Cagney <ac131313@redhat.com>
7239
7240 * frame.c (find_saved_register): Find saved registers in the next
7241 not prev frame.
7242 Fix PR gdb/365.
7243
d8864532
AC
72442002-04-17 Andrew Cagney <ac131313@redhat.com>
7245
7246 * gdbarch.sh (LANG): Set to ``c''.
7247
36cc83a3 72482002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7249
36cc83a3 7250 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7251
2f4150cc 72522002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7253
7254 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7255 Update copyright.
7256
628703c6 7257 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7258 Also fix PR gdb/391.
361d1df0 7259
56157b4a
AC
72602002-04-14 Andrew Cagney <ac131313@redhat.com>
7261
7262 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7263 * aclocal.m4, configure: Re-generate.
7264 Fix PR gdb/391.
361d1df0 7265
6d1e3329
EZ
72662002-04-14 Elena Zannoni <ezannoni@redhat.com>
7267
7268 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7269 instead of tm_print_insn.
7270
cb06fa07
EZ
72712002-04-14 Elena Zannoni <ezannoni@redhat.com>
7272
7273 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7274
f208ba17
AC
72752002-04-14 Andrew Cagney <ac131313@redhat.com>
7276
7277 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7278 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7279 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7280
20f01a46
DH
72812002-04-12 Don Howard <dhoward@redhat.com>
7282
7283 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7284 max_user_call_depth.
7285 (init_cmd_lists): Initialize the new value;
7286 * cli/cli-script.c (execute_user_command): Limit the call depth of
7287 user defined commands. This avoids a core-dump when user commands
7288 are infinitly recursive.
7289
a88376a3
KB
72902002-04-12 Kevin Buettner <kevinb@redhat.com>
7291
7292 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7293 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7294 from tdep struct instead of DEFAULT_LR_SAVE.
7295 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7296 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7297 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7298
f2172603
MS
72992002-04-12 Michael Snyder <msnyder@redhat.com>
7300
694f61fb 7301 * Remote.c: Spelling fix.
20fe79c8
MS
7302 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7303 If no symbol found for "sbrk", try "_sbrk".
7304 (make_output_phdrs): Use bfd_section_name.
7305 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7306 * eval.c: Indentation fix-ups.
169a7369
MS
7307 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7308 in case it gets applied to an address that is already
7309 in the instruction space.
de74f71f
MS
7310 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7311 * symfile.c: Fix indentation, long lines.
f2172603
MS
7312 * source.c: White space fix-up.
7313
cda5a58a
AC
73142002-04-12 Andrew Cagney <cagney@redhat.com>
7315
7316 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7317 * frame.c (frame_register_read): New function. Return non-zero on
7318 success.
7319 (read_relative_register_raw_bytes_for_frame): Delete.
7320 (read_relative_register_raw_bytes): Delete.
7321 * frame.h (frame_register_read): Declare.
7322 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7323 * sh-tdep.c: Ditto.
7324 * infcmd.c (do_registers_info): Ditto.
7325 * hppa-tdep.c: Ditto.
7326 * rs6000-tdep.c: Ditto.
7327 * h8500-tdep.c: Ditto.
7328 * mips-tdep.c: Ditto.
7329 * h8300-tdep.c: Ditto.
7330 * z8k-tdep.c: Ditto.
7331
2ea5f656
KB
73322002-04-12 Kevin Buettner <kevinb@redhat.com>
7333
7334 From Jimi X <jimix@watson.ibm.com>:
7335 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7336 64-bit SysV ABI.
7337
27b15785
KB
73382002-04-12 Kevin Buettner <kevinb@redhat.com>
7339
7340 From Jimi X <jimix@watson.ibm.com>:
7341 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7342 bfd info.
7343
5d57ee30
KB
73442002-04-12 Kevin Buettner <kevinb@redhat.com>
7345
7346 From Jimi X <jimix@watson.ibm.com>:
7347 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7348 register sets for these processor variants.
7349
bc1e36ca
DJ
73502002-04-11 Daniel Jacobowitz <drow@mvista.com>
7351
bc1e36ca
DJ
7352 * regformats/reg-ppc.dat: Support FPSCR.
7353
e3f36dbd
KB
73542002-04-11 Kevin Buettner <kevinb@redhat.com>
7355
7356 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7357 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7358 Add fpscr as an invalid/unfetchable register.
7359 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7360 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7361 (fill_fpregset): Add support for register fpscr.
7362 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7363 (fill_gregset): Account for the fact that register ``mq'' might
7364 not exist.
7365 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7366 (registers_power): Add fpscr to register set at slot 71.
7367 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7368 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7369
943c9c25
MS
73702002-04-11 Michael Snyder <msnyder@redhat.com>
7371
7372 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7373 * configure: Regenerate.
7374 * config.in: Regenerate.
7375 * acconfig.h: Add define for _SYSCALL32.
7376 * core-sol2.c: Remove #define _SYSCALL32.
7377 * solib-legacy.c: Remove #define _SYSCALL32.
7378
d8c0a2e7
AC
73792002-04-10 Andrew Cagney <ac131313@redhat.com>
7380
7381 * stack.c (select_frame): Cleanup internal error message, do not
7382 use %p.
7383
7cc19214
AC
73842002-04-10 Andrew Cagney <ac131313@redhat.com>
7385
7386 * stack.c (select_frame): Check that selected_frame and the
7387 specified level are as expected.
7388 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7389 Update copyright.
7390 * frame.h (struct frame_info): Add field `level'. Update
7391 copyright.
7392 Work-in-progress PR gdb/464.
7393
67a2b77e
AC
73942002-04-10 Andrew Cagney <ac131313@redhat.com>
7395
7396 * maint.c (maint_print_section_info): Rename print_section_info.
7397 (print_bfd_section_info, print_objfile_section_info): Update.
7398 * inferior.h (struct gdbarch): Add opaque declaration.
7399 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7400 * gdbarch.h: Regenerate.
7401
8cfda98c
ML
74022002-04-10 Michal Ludvig <mludvig@suse.cz>
7403
7404 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7405 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7406 (kernel_u_size): Added.
7407 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7408 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7409
ca439ad2 74102002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7411
ca439ad2
JI
7412 * valarith.c (find_size_for_pointer_math): New function, either returns
7413 the size for a pointer's target, returns 1 for void *, or errors for
7414 incomplete types.
7415 (value_add, value_sub): use find_size_for_pointer_math.
7416
2f2893d9
DJ
74172002-04-09 Daniel Jacobowitz <drow@mvista.com>
7418
7419 * linux-low.c (linux_look_up_symbols): New hook.
7420 (linux_target_ops): Add linux_look_up_symbols.
7421 * remote-utils.c (decode_address): New function.
7422 (look_up_one_symbol): New function.
7423 * server.c (handle_query): Call target look_up_symbols hook.
7424 * server.h (look_up_one_symbol): Add prototype.
7425 * target.h (struct target_ops): Add look_up_symbols hook.
7426
96cb11df
AC
74272002-04-09 Andrew Cagney <ac131313@redhat.com>
7428
7429 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7430 override FP_REGNUM with frame->fp. Update copyright.
7431 * parse.c (num_std_regs, std_regs): Delete.
7432 (target_map_name_to_register): Do not search std_regs. Update
7433 function description.
7434 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7435 declarations. Update copyright.
7436 Fix PR gdb/251.
361d1df0 7437
97658e92
DJ
74382002-04-09 Daniel Jacobowitz <drow@mvista.com>
7439
7440 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7441 after the last symbol in a block.
7442
6044e3eb
PM
74432002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7444
7445 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7446 is non zero as a found symbol.
7447
0406ec40
AC
74482002-04-08 Andrew Cagney <ac131313@redhat.com>
7449
7450 * findvar.c: Include "builtin-regs.h".
7451 (value_of_register): Call value_of_builtin_reg when applicable.
7452 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7453 (target_map_name_to_register): Call
7454 builtin_reg_map_name_to_regnum.
7455 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7456 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7457 (builtin_regs_h): Define.
7458 (builtin-regs.o): New target.
7459 (findvar.o): Add $(builtin_regs_h).
7460 * builtin-regs.c, builtin-regs.h: New files.
7461 * std-regs.c: New file.
7462 Partial fix for PR gdb/251.
7463
56a6dfb9
KB
74642002-04-08 Kevin Buettner <kevinb@redhat.com>
7465
7466 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7467 it's no longer required.
7468
3a808432
AC
74692002-04-08 Andrew Cagney <ac131313@redhat.com>
7470
7471 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7472
7c40d541
KB
74732002-04-08 Kevin Buettner <kevinb@redhat.com>
7474
7475 From Jimi X <jimix@watson.ibm.com>:
7476 * rs6000-tdep.c (rs6000_software_single_step): Use
7477 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7478 and size. Use target_insert_breakpoint() and
7479 target_remove_breakpoint() to insert and remove breakpoints
7480 instead of explicit memory reads and writes.
7481
cc9836a8
KB
74822002-04-08 Kevin Buettner <kevinb@redhat.com>
7483
7484 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7485 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7486 ELF_OBJECT_FORMAT ifdef.
7487
7495d1dc
KB
74882002-04-08 Kevin Buettner <kevinb@redhat.com>
7489
7490 From Jimi X <jimix@watson.ibm.com>:
7491 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7492
4288e836
KB
74932002-04-08 Kevin Buettner <kevinb@redhat.com>
7494
7495 From Jimi X <jimix@watson.ibm.com>:
7496 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7497 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7498
a4e4e501
MK
74992002-04-07 Mark Kettenis <kettenis@gnu.org>
7500
7501 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7502 s/asprintf/xasprintf/.
7503 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7504
006defba
AC
75052002-04-07 Andrew Cagney <ac131313@redhat.com>
7506
7507 I believe Jeff Law denies responsability for this one:
7508 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7509 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7510 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7511 Work-around for PR gdb/366.
7512
7aa83cac
EZ
75132002-04-07 Elena Zannoni <ezannoni@redhat.com>
7514
7515 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7516 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7517 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7518
cf1fcca1
EZ
75192002-04-07 Elena Zannoni <ezannoni@redhat.com>
7520
7521 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7522 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7523 information.
7524
3f289e6f
AC
75252002-04-07 Andrew Cagney <ac131313@redhat.com>
7526
7527 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7528 maintainer.
7529
129188f6
AC
75302002-04-07 Andrew Cagney <ac131313@redhat.com>
7531
7532 * README (Reporting Bugs in GDB): Document the bug web page as the
7533 prefered way of submitting bugs.
7534 Fix PR gdb/402.
7535
1200cd6e
AC
75362002-04-06 Andrew Cagney <ac131313@redhat.com>
7537
7538 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7539 -1. Update comment.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541
2853c33c
AS
75422002-04-07 Andreas Schwab <schwab@suse.de>
7543
7544 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7545 buffer to regcache_collect.
7546
c2169756
AC
75472002-04-06 Andrew Cagney <ac131313@redhat.com>
7548
7549 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7550 * gdbarch.c, gdbarch.h: Re-generate.
7551
25f1b008
AC
75522002-04-06 Andrew Cagney <ac131313@redhat.com>
7553
7554 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7555 declaration. Fix -Werror.
7556
59263426
DJ
75572002-04-05 Daniel Jacobowitz <drow@mvista.com>
7558
7559 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7560 * gdbarch.c: Regenerate.
7561
f5db4da3
MS
75622002-04-05 Michael Snyder <msnyder@redhat.com>
7563
80f8a6eb
MS
7564 * breakpoint.c (clear_command): Rewrite middle section to
7565 combine two loops with identical control conditions.
7566 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7567 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7568
ad3dcc5c
L
75692002-04-05 H.J. Lu (hjl@gnu.org)
7570
7571 * solib-svr4.c (bkpt_names): Add "__start".
7572
f32e7a74
AC
75732002-04-04 Andrew Cagney <ac131313@redhat.com>
7574
7575 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7576 as test for 64 bit target.
7577
8227c0ff
AC
75782002-04-05 Andrew Cagney <ac131313@redhat.com>
7579
7580 * h8500-tdep.c (h8500_write_fp): Delete function.
7581 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7582 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7583 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7585 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7586 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7587 (s390_write_fp):
7588 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7589 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7590 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7591 (d10v_write_fp): Delete function.
7592 * inferior.h (write_fp, generic_target_write_fp): Delete
7593 declarations.
7594 * regcache.c (generic_target_write_fp): Delete function.
7595 (write_fp): Delete function.
7596 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7597 * gdbarch.h, gdbarch.c: Regenerate.
7598 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7599 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7600 (sparc64_write_fp): Delete declaration.
7601 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7602 (h8500_write_fp): Delete declaration.
7603
2757dd86
AC
76042002-04-04 Andrew Cagney <ac131313@redhat.com>
7605
7606 * sparc-tdep.c (sparc64_write_fp): Delete.
7607 (sparc_push_dummy_frame): Replace write_fp call with code to store
7608 the FP directly.
7609 (sparc_gdbarch_init): Do not initialize write_fp.
7610
c69255e1
KB
76112002-04-05 Kevin Buettner <kevinb@redhat.com>
7612
7613 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7614 clause.
7615
ae767bfb
JB
76162002-03-29 Jim Blandy <jimb@redhat.com>
7617
7618 * stack.c (get_selected_block): Add new argument `addr_in_block',
7619 used to return the exact code address we used to select the block,
7620 not just the block.
7621 * blockframe.c (get_frame_block, get_current_block): Same.
7622 * frame.h (get_frame_block, get_current_block,
7623 get_selected_block): Update declarations.
7624 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7625 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7626
84d2ac95
MS
76272002-04-05 Michael Snyder <msnyder@redhat.com>
7628
7629 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7630 warning message.
7631
596aa3bf
JB
76322002-04-05 J. Brobecker <brobecker@gnat.com>
7633
7634 * utils.c (xfullpath): New function.
7635 * defs.h (xfullpath): Add declaration.
7636 * source.c (openp): Use xfullpath in place of gdb_realpath to
7637 avoid resolving the basename part of filenames when the
7638 associated file is a symbolic link. This fixes a potential
7639 inconsistency between the filenames known to GDB and the
7640 filenames it prints in the annotations.
7641 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7642 to be able to match a filename with either the real filename, or
7643 the name of any symbolic link to this file.
7644 (lookup_partial_symtab): Ditto.
7645
c02f5703
MS
76462002-04-04 Michael Snyder <msnyder@redhat.com>
7647
7648 * breakpoint.c: Add support for hardware breakpoints in overlays.
7649 (overlay_events_enabled): New state variable.
7650 (insert_breakpoints): Use overlay_events_enabled to decide
7651 whether to attempt to set a breakpoint at the overlay load addr.
7652 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7653 (remove_breakpoint): Use overlay_events_enabled to decide
7654 whether breakpoints need to be removed from overlay load addr.
7655 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7656 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7657 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7658 disable_overlay_breakpoints): Update overlay_events_enabled.
7659
5fb290d7
DJ
76602002-04-04 Daniel Jacobowitz <drow@mvista.com>
7661
7662 * dwarf2read.c (struct function_range): New.
7663 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7664 (check_cu_functions): New.
7665 (read_file_scope): Initialize global function lists.
7666 Call dwarf_decode_line after processing children.
7667 (read_func_scope): Add to global function list.
7668 (dwarf_decode_lines): Call check_cu_functions everywhere
7669 record_line is called. Call record_line with a linenumber
7670 of 0 to mark sequence ends.
7671
7b3fabf0
ML
76722002-04-04 Michal Ludvig <mludvig@suse.cz>
7673
361d1df0 7674 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7675 change sync with glibc.
7676
bce58c09
JB
76772002-04-03 Jim Blandy <jimb@redhat.com>
7678
7679 * configure.in: Call AC_C_INLINE.
7680 * configure: Regenerated.
361d1df0 7681
2fccf04a
DJ
76822002-04-01 Daniel Jacobowitz <drow@mvista.com>
7683
7684 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7685 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7686
2d1bfe2e
MK
76872002-03-31 Mark Kettenis <kettenis@gnu.org>
7688
a5941fbf
MK
7689 * NEWS: Mention gcore support on FreeBSD/i386.
7690
a90cd31d
MK
7691 * fbsd-proc.c: New file.
7692 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7693 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7694
2d1bfe2e
MK
7695 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7696 while statement.
7697
9eb6e5a1
JB
76982002-03-29 Jim Blandy <jimb@redhat.com>
7699
7700 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7701 unescaped newlines in string literals, but newer ones don't. So
7702 escape them.
7703
f02df580
MS
77042002-03-26 Michael Snyder <msnyder@redhat.com>
7705 Andrew Cagney <cagney@redhat.com>
7706
361d1df0 7707 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7708 restore file to memory.
7709 * cli/cli-dump.h: New file.
7710 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7711 * NEWS: Mention new commands.
f02df580 7712
109f874e
MS
77132002-03-28 Michael Snyder <msnyder@redhat.com>
7714
7715 * symfile.c (symbol_file_add): Move test for null symbols to later.
7716
520f6ade
AC
77172002-03-27 Andrew Cagney <ac131313@redhat.com>
7718
7719 From veksler at il.ibm.com:
7720 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7721 the xstrduped original path.
7722 Fix PR gdb/417.
7723
d4654627
MS
77242002-03-27 Michael Snyder <msnyder@redhat.com>
7725
7726 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7727 * infcmd.c (_initialize_infcmd): Ditto.
7728 * language.c (_initialize_language): Ditto.
7729 * symfile.c (_initialize_symfile): Ditto.
7730 * top.c (_init_main): Ditto.
7731 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7732
6be8bc0c
EZ
77332002-03-27 Elena Zannoni <ezannoni@redhat.com>
7734
7735 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7736 vector registers handling.
7737 (skip_prologue): Handle new AltiVec instructions. Fill in new
7738 fields of frame data.
7739 (frame_get_saved_regs): Fill in information for AltiVec registers.
7740
12af6855
JB
77412002-03-27 Jim Blandy <jimb@redhat.com>
7742
7743 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7744 a function; leave this macro here to invoke that function.
7745 (symbol_init_mangled_name): Declaration for that function.
7746 * symtab.c (symbol_init_mangled_name): New function.
7747
dc672865
AC
77482002-03-27 Andrew Cagney <ac131313@redhat.com>
7749
7750 * valarith.c: Replace strerror with safe_strerror.
7751 * tracepoint.c: Ditto.
7752 * lin-lwp.c: Ditto.
7753 * go32-nat.c: Ditto.
7754 * inflow.c: Ditto.
7755 * gnu-nat.c: Ditto.
7756
d96429cd
AS
77572002-03-27 Andreas Schwab <schwab@suse.de>
7758
7759 * event-top.c (command_line_handler): Remove useless if.
7760
7e336ba1
AJ
77612002-03-27 Andreas Jaeger <aj@suse.de>
7762
7763 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7764 comment.
7765
de220d0f
ML
77662002-03-27 Michal Ludvig <mludvig@suse.cz>
7767
7768 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7769 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7770 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7771 (x86_64_linux_dr_get_status, supply_gregset),
7772 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7773 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7774 (x86_64_register_info_table): Add.
7775 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7776 (x86_64_register_raw_size, x86_64_register_virtual_type),
7777 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7778 general x86_64_register_info_table.
7779 (i386_gdbarch_init): gdbarch_register_bytes is now set
7780 dynamicaly during initialization.
7781 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7782 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7783
0e98d0a7
DJ
77842002-03-27 Daniel Jacobowitz <drow@mvista.com>
7785
7786 * gdbserver/server.c (main): Call target_signal_to_host_p
7787 and target_signal_to_host on signals received from the remote.
7788 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7789 target_signal_from_host on signals sent to the remote.
7790 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7791 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7792
3130066b
DJ
77932002-03-27 Daniel Jacobowitz <drow@mvista.com>
7794
7795 * signals/signals.c: Include "server.h" in gdbserver build.
7796 (target_signal_from_name): Don't use STREQ.
7797 (_initialize_signals): Likewise. Don't include function in
7798 gdbserver build.
7799
9aedf4f4
DJ
78002002-03-27 Daniel Jacobowitz <drow@mvista.com>
7801
7802 * signals.c: Moved to...
7803 * signals/signals.c: Here.
7e336ba1 7804 * Makefile (signals.o): Update.
9aedf4f4 7805
3fa41cdb
JL
78062002-03-26 Jeff Law (law@redhat.com)
7807
7808 * somread.c (som_symtab_read): Remove some commented out code and
7809 updated related comments. Do not set the minimal symbol table to
7810 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7811 in a dynamic executable.
7812 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7813 where we are unable to find the minimal symbol for the given
7814 PC value.
7815
ee677e8d
MS
78162002-03-25 Jeff Law (law@redhat.com)
7817
7818 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7819
e76e1718
ML
78202002-03-25 Michal Ludvig <mludvig@suse.cz>
7821
7822 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7823
18a642a1
AC
78242002-03-23 Andrew Cagney <ac131313@redhat.com>
7825
7826 * command.h: Update copyright.
7827 (struct cmd_list_element): Replace definition with opaque
7828 declaration.
7829 (enum cmd_types): Document that it will eventually be moved to
7830 cli/cli-decode.h
7831 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7832 (MALLOCED_REPLACEMENT): Delete macro.
7833 * Makefile.in (cli_decode_h): Add $(command_h).
7834 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7835 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7836 * completer.c: Include "cli/cli-decode.h".
7837 * maint.c: Include "cli/cli-decode.h".
7838 * cli/cli-decode.h: Include "command.h".
7839 (enum command_class): Delete.
7840 (enum cmd_types): Comment out.
7841 (enum cmd_auto_boolean): Delete.
7842 (enum var_types): Delete.
7843
b2875cc0
AC
78442002-03-23 Andrew Cagney <ac131313@redhat.com>
7845
7846 * cli/cli-decode.c: Include "gdb_assert.h".
7847 (add_set_or_show_cmd): New static function.
7848 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7849 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7850 all fields, such as func, from the set command.
7851
3b45974e
AC
78522002-03-23 Andrew Cagney <ac131313@redhat.com>
7853
7854 * MAINTAINERS (sh-elf): Change warning flag to -w.
7855
823ca731
AC
78562002-03-23 Andrew Cagney <cagney@redhat.com>
7857
7858 * defs.h (error): Add printf format attribute.
7859 * thread-db.c (thread_from_lwp): Fix error format string.
7860 * stack.c (parse_frame_specification): Ditto.
7861 * cli/cli-decode.c (undef_cmd_error): Ditto.
7862 * scm-lang.c (scm_lookup_name): Ditto.
7863 * tracepoint.c (trace_error): Ditto.
7864 * remote-utils.c (usage): Ditto.
7865 * remote.c (compare_sections_command): Ditto.
7866 Fix PR gdb/328.
7867
0e101458
AC
78682002-03-22 Andrew Cagney <ac131313@redhat.com>
7869
7870 * gdbtypes.c (append_composite_type_field): New function.
7871 (init_composite_type): New function.
7872 * gdbtypes.h (append_composite_type_field): Declare.
7873 (init_composite_type): Ditto.
7874
8e0662df
EZ
78752002-03-22 Elena Zannoni <ezannoni@redhat.com>
7876
7877 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7878 function.
8e0662df
EZ
7879 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7880 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7881 structure returning convention for SYSV ABI case, but not
7882 for GNU/Linux, FreeBSD, or NetBSD.
7883
3121eff0
DJ
78842002-03-22 Daniel Jacobowitz <drow@mvista.com>
7885
7886 * symtab.h (lookup_block_symbol): Add mangled_name argument
7887 to prototype.
7888
7889 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7890 with new mangled_name argument.
7891 * linespec.c (decode_line_1): Likewise.
7892 * valops (value_of_this): Likewise.
7893 * symtab.c (lookup_transparent_type): Likewise.
7894 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7895 (lookup_symbol): If we are given a mangled name, pass it down
7896 to lookup_symbol_aux.
7897 (lookup_block_symbol): If we are given a mangled name to check
7898 against, only return symbols which match it.
7899
349b409f
CF
79002002-03-22 Christopher Faylor <cgf@redhat.com>
7901
7902 * win32-nat.c (child_create_inferior): Check for proper shell to use
7903 here, in case the user changes it on the fly.
7904 (_initialize_inftarg): Remove shell path considerations.
7905
2a873819
EZ
79062002-03-21 Elena Zannoni <ezannoni@redhat.com>
7907
7908 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7909 for gdbarch_max_register_raw_size and max_register_virtual_size.
7910 Adjust copyright year.
7911
a1b9830c
DJ
79122002-03-21 Daniel Jacobowitz <drow@mvista.com>
7913
7914 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7915 in a function to cover the entire beginning of the function
7916 as well if it does not already.
7917
8b5790f2
TR
79182002-03-21 Tom Rix <trix@redhat.com>
7919
7920 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7921 (rs6000_ptrace64): Renamed from ptrace64.
7922
bdbe5747
MH
79232002-03-20 Martin M. Hunt <hunt@redhat.com>
7924
7925 * gdbserver/remote-utils.c (remote_open): Don't call
7926 getprotobyname, we're all using TCP here so just use
7927 IPPROTO_TCP.
7e336ba1 7928 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7929
79302002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7931
bdbe5747
MH
7932 * regcache.c (_initialize_regcache): No need to call
7933 build_regcache() at this time; it gets called whenever
7934 the gdbarch changes.
7935
7781cd62
DB
79362002-03-20 David O'Brien <obrien@FreeBSD.org>
7937
7938 * sparc-nat.c: Include sys/param.h where possible.
7939
f65ca430
DJ
79402002-03-20 Daniel Jacobowitz <drow@mvista.com>
7941
7942 Fix PR gdb/422.
7943 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7944 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7945 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7946 complex types.
7947 * stabsread.c (rs6000_builtin_type): Likewise.
7948 (read_sun_floating_type): Likewise.
7949
0c867556
PS
79502002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7951
7952 * stabsread.c (read_member_functions): Remove skip code for duplicate
7953 constructor/destructor methods. Use standard parsing for these
7954 methods and just do not chain them to the list of methods after
7955 parsing.
7956
12b9c64f
AO
79572002-03-19 Alexandre Oliva <aoliva@redhat.com>
7958
7959 * coffread.c: Remove redundant static declarations. Replace
7960 occurrences of `PTR' with `void *'.
7961 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7962 * top.h (quit_cover): Likewise.
7963 * defs.h (catch_errors): Likewise.
7964
349c5d5f
AC
79652002-03-18 Andrew Cagney <ac131313@redhat.com>
7966
7967 * defs.h (XMALLOC): Define.
7968 * gdb-events.sh (XMALLOC): Delete macro.
7969 * gdb-events.c, gdb-events.h: Regenerate.
7970 * gdbarch.sh (XMALLOC): Delete macro.
7971 * gdbarch.c: Regenerate.
7972 * serial.c (XMALLOC): Delete macro.
7973 * ui-file.c (XMALLOC): Ditto.
7974 * ser-unix.h (XMALLOC): Ditto.
7975 * sh-tdep.c (XMALLOC): Ditto.
7976 * ui-out.c (XMALLOC): Ditto.
7977 * utils.c (XMALLOC): Ditto.
7978 * i386-tdep.c (XMALLOC): Ditto.
7979 * gdb-events.c (XMALLOC): Ditto.
7980 * d10v-tdep.c (XMALLOC): Ditto.
7981 * cli-out.c (XMALLOC): Ditto.
7982
7983 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7984 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7985 * ui-file.c, ui-out.c: Ditto.
7986
7d0766f3
AC
79872002-03-18 Andrew Cagney <ac131313@redhat.com>
7988
7989 * command.h (struct cmd_list_element): Add field context.
7990 (set_cmd_context, get_cmd_context): Declare.
7991 * cli/cli-decode.h: Ditto.
7992 * cli/cli-decode.c (get_cmd_context): New function.
7993 (set_cmd_context): New function.
7994 (add_cmd): Initialize context.
7995 Part of fixing PR gdb/145 and PR gdb/146.
7996
5913bcb0
AC
79972002-03-17 Andrew Cagney <ac131313@redhat.com>
7998
1868c04e
AC
7999 * cli/cli-decode.c (cmd_type): New function.
8000 * command.h (cmd_type): Declare.
8001 * infrun.c (set_schedlock_func): Call function cmd_type.
8002 * kod.c (kod_set_os): Call cmd_type.
8003 * cris-tdep.c (cris_version_update): Use function cmd_type.
8004 (cris_mode_update, cris_abi_update): Ditto.
8005
5913bcb0
AC
8006 * command.h: (execute_cmd_post_hook): Declare.
8007 (execute_cmd_pre_hook): Declare.
8008 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8009 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8010 functions. Execute pre/post hook while ensuring that afterwords
8011 hook_in is cleared.
8012 * top.c (execute_command): Use execute_cmd_post_hook, and
8013 execute_cmd_pre_hook to execute pre/post commands.
8014 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8015 hook_stop_stub.
8016 (hook_stop_stub): Call execute_cmd_pre_hook.
8017
b51450c9
AC
80182002-03-17 Andrew Cagney <ac131313@redhat.com>
8019
8020 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8021 set'' and this leads to a core dump. Move xstrdup of
8022 operating_system to after check that it is not NULL.
8023
f66c9f11
AC
80242002-03-17 Andrew Cagney <ac131313@redhat.com>
8025
8e694ecf
AC
8026 * kod.c (kod_set_os): Remove unnecessary check that
8027 ``command->type'' is set_cmd.
8028
f66c9f11
AC
8029 * valprint.c (set_input_radix): Use input_radix.
8030 (set_output_radix): Use output_radix.
8031 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8032 isn't reverted.
8033
9d01611c
AC
80342002-03-16 Andrew Cagney <ac131313@redhat.com>
8035
8036 * value.h (struct value): Delete field ``substring_addr''. Change
8037 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8038 force_core_addr_align and force_pointer_aligh.
8039
8040 * value.h (struct value): Fix typo in above change.
9d01611c 8041
4156bb53
PS
80422002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8043
8044 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8045 to fix internal_error from ``maintenance print architecture''.
8046
0e5e3ea6
PS
80472002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8048
8049 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8050 for gcc versions after gcc-2.8.1.
8051
9b013045
PS
80522002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8053
8054 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8055 for method resolution. Restore adjustment of ``this'' pointer after
8056 calling value_struct_elt, which was accidentally removed during the
8057 HP merge.
8058
376c9600
AC
80592002-03-15 Andrew Cagney <ac131313@redhat.com>
8060
8061 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8062 value_of_register.
8063 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8064 get_saved_register.
8065 * value.h (value_of_register): Update.
8066
a4db0f07
RH
80672002-03-14 Richard Henderson <rth@redhat.com>
8068
8069 * configure.in: Detect declaration for canonicalize_file_name.
8070 * utils.c (canonicalize_file_name): Declare, if needed.
8071 (gdb_realpath): Prefer realpath if available and usable.
8072 * config.in, configure: Rebuild.
8073
96383835
RH
80742002-03-14 Richard Henderson <rth@redhat.com>
8075
8076 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8077 a constant array bound.
8078
8079 * MAINTAINERS: Add myself to write-after-approval.
8080
75245b24
MS
80812002-03-14 Michael Snyder <msnyder@redhat.com>
8082
8083 * symfile.c (syms_from_objfile): Return immediately if no syms.
8084 (symbol_file_add): Return immediately if no syms.
8085 (find_sym_fns): Return immediately if no syms.
8086
e641a1ca
ML
80872002-03-13 Michal Ludvig <mludvig@suse.cz>
8088
8089 * gdbserver/remote-util.c (remote_open): Print remote-side's
8090 IP address when remote debugging over the network.
7e336ba1 8091
df08bfec
DB
80922002-03-12 David O'Brien <obrien@FreeBSD.org>
8093
8094 * config/sparc/fbsd.mh: Fix copyright.
8095 * config/sparc/fbsd.mt: Likewise.
8096
9a57864f
RE
80972002-03-11 Richard Earnshaw <rearnsha@arm.com>
8098
8099 * MAINTAINERS: Fix typo in name of gdb warnings option.
8100 (x86-64): Fix formating so that this can be parsed by awk.
8101
dd7bf85e
DJ
81022002-03-10 Daniel Jacobowitz <drow@mvista.com>
8103
8104 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8105 * defs.h: Include "gdb/signals.h".
8106 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8107
33a0a2ac
ML
81082002-03-10 Michal Ludvig <mludvig@suse.cz>
8109
8110 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8111 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8112 from x86-64-tdep.h
8113
dd824b04
DJ
81142002-03-10 Daniel Jacobowitz <drow@mvista.com>
8115 Don Howard <dhoward@redhat.com>
8116
8117 * mips-tdep.c (ST0_FR): Define.
8118 (mips2_fp_compat): New function, temporarily disabled.
8119 (mips_read_fp_register_single): New function.
8120 (mips_read_fp_register_double): New function.
8121 (mips_print_register): Use them.
8122 (do_fp_register_row): Likewise.
8123
6a41ff59
AC
81242002-03-09 Andrew Cagney <ac131313@redhat.com>
8125
8126 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8127 approval''.
8128
4ea09c10
PS
81292002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8130
8131 * stabsread.c (read_member_functions): Fix is_stub test for
8132 static member functions, improve comment.
8133
6ccc741d
RE
81342002-03-07 Richard Earnshaw <rearnsha@arm.com>
8135
8136 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8137 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8138 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8139 commands that set boolean values.
8140 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8141 (arm_rdi_resume): Always initialize PC.
8142 (arm_rdi_open): Don't use rslt as a boolean.
8143 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8144 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8145 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8146 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8147
438013df
AO
81482002-03-06 Alexandre Oliva <aoliva@redhat.com>
8149
8150 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8151 * configure: Rebuilt.
8152
70ed8774
SC
81532002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8154
8155 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8156 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8157
5ba2abeb
AC
81582002-03-06 Andrew Cagney <ac131313@redhat.com>
8159
8160 * cli/cli-decode.c (set_cmd_completer): New function.
8161 * command.h (set_cmd_completer): Declare.
8162 * cli/cli-decode.h (set_cmd_completer): Ditto.
8163
8164 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8165 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8166 * win32-nat.c (_initialize_inftarg): Ditto.
8167 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8168 * proc-api.c (_initialize_proc_api): Ditto.
8169 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8170 * source.c (_initialize_source): Ditto.
8171 * exec.c (_initialize_exec): Ditto.
8172 * solib.c (_initialize_solib): Ditto.
8173 * top.c (init_main): Ditto.
8174 * tracepoint.c (_initialize_tracepoint): Ditto.
8175 * symfile.c (_initialize_symfile): Ditto.
8176 * printcmd.c (_initialize_printcmd): Ditto.
8177 * infcmd.c (_initialize_infcmd): Ditto.
8178 * corefile.c (_initialize_core): Ditto.
8179
f779ca99
AC
81802002-03-05 Andrew Cagney <ac131313@redhat.com>
8181
8182 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8183
01a3934b
AC
81842002-03-05 Andrew Cagney <ac131313@redhat.com>
8185
8186 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8187
37057839
AC
81882002-03-05 Andrew Cagney <ac131313@redhat.com>
8189
8190 * NEWS: Update headings, 5.2 has branched.
8191
c6ecbae5
DJ
81922002-03-04 Daniel Jacobowitz <drow@mvista.com>
8193
8194 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8195 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8196 (register_addr, REGISTER_RAW_SIZE): Likewise.
8197 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8198 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8199
e9f30c21
ML
82002002-03-03 Michal Ludvig <mludvig@suse.cz>
8201
8202 * MAINTAINERS (x86-64): Add myself.
8203 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8204 changed value_ptr -> struct value *
8205
54394ac3
DB
82062002-03-01 David O'Brien <obrien@FreeBSD.org>
8207
8208 * configure.host (sparc64-*-freebsd): Add.
8209 * configure.tgt: Likewise.
8210 * config/sparc/fbsd.mh: New file.
8211 * config/sparc/fbsd.mt: Likewise.
8212 * config/sparc/nm-fbsd.h: Likewise.
8213 * config/sparc/tm-fbsd.h: Likewise.
8214
bfe95955
DJ
82152002-03-01 Daniel Jacobowitz <drow@mvista.com>
8216
8217 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8218 regformats/reg-s390x.dat.
8219
f33c6cbf
AC
82202002-03-01 Andrew Cagney <ac131313@redhat.com>
8221
8222 * utils.c: Add FIXME explaining true/false problem.
8223
5ecaa7dd
AC
82242002-02-28 Andrew Cagney <ac131313@redhat.com>
8225
8226 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8227
2a251cc2
MC
82282002-02-28 Michael Chastain <mec@shout.net>
8229
8230 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8231
6a8031a3 82322002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8233
8234 * gdbserver/linux-s390-low.c: New file.
8235 * regformats/reg-s390.dat: New file.
8236 * regformats/reg-s390x.dat: New file.
8237 * gdbserver/configure.srv: Add S/390.
8238 * gdbserver/Makefile.in: Add S/390.
8239 * configure.tgt: Enable gdbserver for S/390.
8240
ac469903
EZ
82412002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8242
8243 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8244 first line of the doc string for "info dos", except at the end of
8245 the sentence, since the short help stops at the first period.
8246
985cb1a3
JM
82472002-02-28 Jason Merrill <jason@redhat.com>
8248
8249 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8250
c570663e
FF
82512002-02-27 Fred Fish <fnf@redhat.com>
8252
8253 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8254 comment (dumy -> dummy).
8255
43630227
PS
82562002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8257
8258 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8259
b84911e8
RB
82602002-02-27 Rodney Brown <rbrown64@csc.com.au>
8261
8262 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8263
58caa3dc
DJ
82642002-02-27 Daniel Jacobowitz <drow@mvista.com>
8265
8266 * gdbserver/acconfig.h: New file.
8267 * gdbserver/i387-fp.c: New file.
8268 * gdbserver/i387-fp.h: New file.
8269 * gdbserver/linux-x86-64.c: New file.
8270 * regformats/reg-x86-64.dat: New file.
8271 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8272 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8273 * gdbserver/configure.in: Add support for regsets.
8274 * gdbserver/config.in: Regenerate.
8275 * gdbserver/configure: Regenerate.
8276 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8277 * gdbserver/linux-low.h: New file.
8278 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8279 for regsets.
8280 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8281 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8282 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8283 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8284 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8285 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8286 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8287 "i387-fp.h". Add PTRACE_GETREGS and friends.
8288 * gdbserver/regcache.c (supply_register): New function.
8289 (supply_register_by_name): New function.
8290 (collect_register): New function.
8291 (collect_register_by_name): New function.
8292
93652174
DJ
82932002-02-27 Daniel Jacobowitz <drow@mvista.com>
8294
8295 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8296 (config.status): Add configure.srv dependency.
8297 (server_h): Add config.h dependency.
8298
a02e4a61
DJ
82992002-02-27 Daniel Jacobowitz <drow@mvista.com>
8300
8301 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8302 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8303 * gdbserver/configure.srv: Change i386-*-linux* to use
8304 reg-i386-linux.o.
8305
ce0eebec
AC
83062002-02-26 Andrew Cagney <ac131313@redhat.com>
8307
8308 * x86-64-tdep.c: Re-indent. Update copyright date.
8309
82dbc5f7
AC
83102002-02-26 Andrew Cagney <ac131313@redhat.com>
8311
8312 From Michal Ludvig <mludvig@suse.cz>:
8313 * x86-64-tdep.c (value.h): Delete.
8314 (gdb_assert.h): Include.
8315 (x86_64_register_convert_to_virtual,
8316 x86_64_register_convert_to_raw ): Add check which lets only
8317 floating-point values to be converted.
8318 (value_push): Delete.
8319 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8320 (i386_gdbarch_init): Number of register_bytes fixed.
8321
e4621584
AC
83222002-02-26 Andrew Cagney <ac131313@redhat.com>
8323
8324 * MAINTAINERS: Add x86-64 target.
8325
81a9a963
AC
83262002-02-26 Andrew Cagney <ac131313@redhat.com>
8327
8328 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8329 * osfsolib.c (solib_map_sections): Ditto.
8330 * irix5-nat.c (solib_map_sections): Ditto.
8331 * corelow.c (gdb_check_format): Ditto.
8332 * symfile.c (symfile_bfd_open): Ditto.
8333 * solib.c (solib_map_sections): Ditto.
8334 Fix PR gdb/354.
7e336ba1 8335
0f017ab9
AC
83362002-02-26 Andrew Cagney <ac131313@redhat.com>
8337
8338 * remote.c (_initialize_remote): By default, disable ``e'' and
8339 ``E'' step out-of-range packets.
8340
75738c29
AS
83412002-02-26 Andreas Schwab <schwab@suse.de>
8342
8343 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8344 m68k_linux_frame_saved_pc.
8345 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8346 in_sigtramp.
8347 (SIGCONTEXT_PC_OFFSET): Remove.
8348 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8349 m68k_linux_sigtramp_saved_pc): New functions.
8350 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8351 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8352 (UCONTEXT_PC_OFFSET): Define.
8353 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8354 non-RT and RT signal trampolines.
8355
7e8ed687
RE
83562002-02-26 Richard Earnshaw <rearnsha@arm.com>
8357
8358 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8359 (TARGET_NBPG, STACK_END_ADDR): Delete
8360 (VARIABLES_INSIDE_BLOCK): Delete.
8361
6972bc8b
AC
83622002-02-25 Andrew Cagney <ac131313@redhat.com>
8363
8364 * utils.c (perror_with_name): Make string parameter constant.
8365 (print_sys_errmsg): Ditto.
8366 (query): Ditto.
8367 * defs.h (perror_with_name): Update.
8368 (print_sys_errmsg): Update.
8369 (query): Update.
8370
aa32f823
DJ
83712002-02-25 Daniel Jacobowitz <drow@mvista.com>
8372
8373 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8374 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8375
19caaa45
PS
83762002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8377
8378 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8379 if it already matches the current architecture from the exec file.
8380 Include arch-utils.h for gdbarch_info_init prototype.
8381 * Makefile.in (rs6000-nat.o): Update dependencies.
8382
d951901f
EZ
83832002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8384
8385 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8386 list of exported variables.
8387
7ea81414
DJ
83882002-02-24 Daniel Jacobowitz <drow@mvista.com>
8389
8390 * gdbserver/configure.srv: New file.
8391 * gdbserver/configure.in: Use configure.srv instead
8392 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8393 from it.
8394 * gdbserver/configure: Regenerated.
8395 * gdbserver/terminal.h: New file.
8396 * gdbserver/Makefile.in: Update for configure changes. Remove
8397 more unneeded include paths.
8398
080fe24b
AC
83992002-02-24 Andrew Cagney <ac131313@redhat.com>
8400
8401 From wiz at danbala:
8402 * config/sparc/tm-sp64.h: Fix grammar and typos.
8403 Fix PR gdb/287.
8404
8605d56e
AC
84052002-02-24 Andrew Cagney <ac131313@redhat.com>
8406
8407 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8408 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8409 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8410 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8411 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8412 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8413 * s390-tdep.c: Ditto.
92362027
AC
8414 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8415 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8416 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8417 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8418 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8419 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8420 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8421 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8422 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8423 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8424 Fix PR gdb/378.
7e336ba1 8425
8ed32cc0
AC
84262002-02-23 Andrew Cagney <ac131313@redhat.com>
8427
a3007b6f
AC
8428 * lin-thread.c: Delete file.
8429 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8430 to gdb_proc_service.h.
8431 * configure: Re-generate.
8432
50a9e2f1
AC
8433 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8434 * serial.c (serial_open): Delete check for "ocd".
8435 Fix PR gdb/349.
8436
8b6e7932
AC
8437 * Makefile.in (linux-thread.o): Delete target.
8438 * linux-thread.c: Delete file.
8439
d155c46b
AC
8440 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8441 renamed SH files to be consistent.
8442
8ed32cc0
AC
8443 * symtab.c (sort_search_symbols): Use xfree.
8444
0e18d038
RE
84452002-02-23 Richard Earnshaw <rearnsha@arm.com>
8446
8447 * arm-linux-tdep.c (arm_linux_init_abi): Register
8448 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8449 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8450 definition with undef, since we don't want the sysvr4 definition.
8451 (SKIP_TRAMPOLINE_CODE): Likewise.
8452
27aac7ff
AC
84532002-02-23 Andrew Cagney <ac131313@redhat.com>
8454
8455 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8456
8457 * configure.in: (AC_CHECK_FUNCS) Added test for
8458 canonicalize_file_name Regenerated.
8459 * config.in, configure: Regenerated.
8460 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8461 defined use canonicalize_file_name.
7e336ba1 8462
65a6e0ee
MC
84632002-02-23 Michael Chastain <mec@shout.net>
8464
8465 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8466
47b95330
AC
84672002-02-23 Andrew Cagney <ac131313@redhat.com>
8468
8469 * README: Remove references to cygnus.com.
8470 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8471 dot com'' form. Remove references to cygnus.com and sourceware.
8472
696f451b
AC
84732002-02-23 Andrew Cagney <ac131313@redhat.com>
8474
8475 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8476 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8477 1003.1-2001 no longer allows "head -1".
8478 * gdb/Makefile.in (version.c): Likewise.
8479 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8480 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8481 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8482
bbaca940
AC
84832002-02-23 Andrew Cagney <ac131313@redhat.com>
8484
8485 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8486 * command.h (cmd_cfunc_eq): Declare.
8487 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8488
8489 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8490 ``struct cmd_list_element *''.
8491 * cli/cli-cmds.c (is_complete_command): Update. Use
8492 cmd_cfunc_eq.
8493 * top.c (execute_command): Pass the command to
8494 is_complete_command.
8495 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8496
b8b8b047
AC
84972002-02-23 Andrew Cagney <ac131313@redhat.com>
8498
8499 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8500 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8501 architecture defines.
8502 * s390-tdep.c (s390_gdbarch_init): Likewise.
8503
19d3fc80
RE
85042002-02-23 Richard Earnshaw <rearnsha@arm.com>
8505
8506 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8507 (arm_linux_push_arguments): Likewise.
8508 (arm_linux_init_abi): Register them. Also register linux-specific
8509 call_dummy_words.
8510 (find_minsym_and_objfile): Use strcmp, not STREQ.
8511 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8512 (arm_linux_call_dummy_words): Delete declaration.
8513 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8514 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8515 declarations.
8516 (LOWEST_PC): Delete.
8517
3ab13650
PS
85182002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8519
8520 * maint.c (print_section_info): Do not prepend `0x' to filepos
8521 output, it will be handled by local_hex_string_custom.
8522
19d3fc80 85232002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8524
8525 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8526 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8527 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8528
d85a5daf
JB
85292002-02-22 Jim Blandy <jimb@redhat.com>
8530
8531 Indicate that the bcache functions don't change the strings
8532 they're passed.
8533 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8534 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8535
eeb25b8a
PM
85362002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8537
8538 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8539
6badb179
CF
85402002-02-21 Christopher Faylor <cgf@redhat.com>
8541
8542 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8543 find the complete path to a loaded DLL.
8544
e8717518
FF
85452002-02-21 Fred Fish <fnf@redhat.com>
8546
8547 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8548 that marks the end of the range of a function, enter a line number
8549 entry that has a line number of zero and a PC offset that matches
8550 the end of the function. This starts a range of PC's for which no
8551 line number information is known.
8552 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8553 PC's for which no line number info is found (line number is zero)
8554 then we didn't find any valid line information.
8555 * symtab.h: Document use of zero line number entry.
8556
9abe5450
EZ
85572002-02-21 Elena Zannoni <ezannoni@redhat.com>
8558
8559 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8560 (have_ptrace_getvrregs): Define for run time checks.
8561 (gdb_vrregset_t): New type for Altivec register handling.
8562 (fetch_register, store_register): Fetch/store altivec register
8563 when needed.
8564 (fetch_altivec_register, store_altivec_register): New functions.
8565 (supply_vrregset, fill_vrregset): New functions.
8566 (fetch_altivec_registers, store_altivec_registers): New functions.
8567 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8568 registers as well.
8569
aaa38bb5
AJ
85702002-02-21 Jiri Smid <smid@suse.cz>
8571
8572 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8573
b34db576
RE
85742002-02-21 Richard Earnshaw <rearnsha@arm.com>
8575
8576 * Makefile.in (armnbsd-nat.o): Update dependencies.
8577 * armnbsd-nat.c (supply_gregset): New function. Common code to
8578 supply the integer register set.
8579 (supply_fparegset): New function. Similar for FPA registers.
8580 (fetch_regs, fetch_fp_regs): Use them.
8581 (fetch_core_registers): Likewise.
8582 (fetch_elfcore_registers): New function.
8583 (arm_netbsd_elfcore_fns): New core-file type specification.
8584 (_initialize_arm_netbsd_nat): Register it.
8585
3e56fc4b
RE
85862002-02-21 Richard Earnshaw <rearnsha@arm.com>
8587
8588 * armnbsd-nat.c: Include gdbcore.h.
8589 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8590 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8591 'void' to declaration, to shut up ARI.
8592 (fetch_core_registers): Make static. Rewrite using supply_register.
8593 (arm_netbsd_core_fns): New core-file type specification.
8594 (_initialize_arm_netbsd_nat): New function.
8595
097f6b0b
CF
85962002-02-21 Christopher Faylor <cgf@redhat.com>
8597
8598 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8599 value.
8600
c914e0cc
CF
86012002-02-20 Christopher Faylor <cgf@redhat.com>
8602
8603 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8604 fails.
8605
385fa495
DJ
86062002-02-20 Daniel Jacobowitz <drow@mvista.com>
8607
8608 * jv-exp.y (parse_number): Change type of implicit longs
8609 to builtin_type_uint64.
8610
e5f1222d
DJ
86112002-02-20 Daniel Jacobowitz <drow@mvista.com>
8612
8613 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8614 to be an integer instead of a `union wait'.
8615
75c9abc6
DJ
86162002-02-20 Daniel Jacobowitz <drow@mvista.com>
8617
8618 * mips-linux-nat.c: Call the operating system GNU/Linux.
8619 * mips-linux-tdep.c: Likewise.
8620 * mips-tdep.c: Likewise.
8621
551792a5
DJ
86222002-02-20 Daniel Jacobowitz <drow@mvista.com>
8623
8624 Fix PR gdb/265.
8625 * jv-exp.y (parse_number): Handle 64-bit integers.
8626
ee6e2b82
DJ
86272002-02-20 Daniel Jacobowitz <drow@mvista.com>
8628
8629 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8630 AC_STDC_HEADERS to AC_HEADER_STDC.
8631 * gdbserver/configure: Regenerated.
8632
a48442a0
RE
86332002-02-20 Richard Earnshaw <rearnsha@arm.com>
8634
8635 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8636 is defined.
8637 * sparc-tdep.c (get_longjmp_target): Likewise.
8638
fe419ffc
RE
86392002-02-20 Richard Earnshaw <rearnsha@arm.com>
8640
8641 * News: Add news about ARM and Multi-arch. Mention the new target
8642 arm*-*-netbsd*.
8643
5832ed7e
JB
86442002-02-19 Jim Blandy <jimb@redhat.com>
8645
8646 * stabsread.c (error_type_complaint): Improve error message.
8647
84563040
DJ
86482002-02-19 Daniel Jacobowitz <drow@mvista.com>
8649
8650 * gdbserver/README: Update documentation.
8651 * gdbserver/configure.in: Update configury to match documentation.
8652 * gdbserver/Makefile.in: Likewise.
8653 * gdbserver/configure: Regenerated.
8654 * gdbserver/aclocal.m4: New file, generated by aclocal.
8655 * gdbserver/config.in: New file, generated by autoheader.
8656
375fd65b
RE
86572002-02-19 Richard Earnshaw <rearnsha@arm.com>
8658
8659 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8660 armnbsd-nat.c.
8661
08216dd7
RE
86622002-02-19 Richard Earnshaw <rearnsha@arm.com>
8663
8664 * arm-tdep.h (enum arm_float_model): New enum.
8665 (struct gdbarch_tdep): Add fp_model.
8666 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8667 up floating-point conversions until we know the floating-point model
8668 in use by the inferior. Don't complain about being unable to
8669 determine the ABI of the inferior when we don't have one.
8670 (arm_extract_return_value): Support different floating-point models.
8671 (arm_store_return_value): Likewise.
aaa38bb5 8672 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8673 ARM_FLOAT_SOFT.
8674 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8675
65d6d66a
PS
86762002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8677
8678 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8679 of ``current_gdbarch''.
8680
47221191
RE
86812002-02-19 Richard Earnshaw <rearnsha@arm.com>
8682
8683 * armnbsd-nat.c : ANSIfy all function declarations.
8684 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8685 (fetch_inferior_registers): Re-implement in terms of above.
8686 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8687 (store_inferior_registers): Re-implement in terms of above.
8688
fdf39c9a
RE
86892002-02-19 Richard Earnshaw <rearnsha@arm.com>
8690
aaa38bb5 8691 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8692 kernel.
8693 * arm-linux-tdep.c: Likewise.
8694 * config/arm/tm-linux.h: Likewise.
8695
93247f88
RE
86962002-02-19 Richard Earnshaw <rearnsha@arm.com>
8697
8698 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8699 * config/arm/nbsd.mt (TM_FILE): Delete.
8700 * config/arm/tm-nbsd.h: Delete.
8701
d7b486e7
RE
87022002-02-19 Richard Earnshaw <rearnsha@arm.com>
8703
8704 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8705 Initialize CALL_DUMMY_LENGTH.
8706
41d39a95
RE
87072002-02-19 Richard Earnshaw <rearnsha@arm.com>
8708
8709 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8710 function.
8711 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8712 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8713 defines one thing and that is incorrect for this port.
8714 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8715
e1195560
PM
87162002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8717
8718 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8719
c1748f97
PM
87202002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8721
8722 * win32-nat.c (display_selector): New function. Displays information
8723 about the information returned by GetThreadSelectorEntry API function.
8724 (display_selectors): New function. Displays the infomation of
8725 the selector given as argument, or of CS, DS ans FS selectors
8726 if no argument is given.
8727 ( _initialize_inftarg): Add "w32" as info prefix command.
8728 Add "info w32 selector" as command calling display_selectors.
8729
e41e6bbf
PM
87302002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8731
8732 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8733 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8734 if not defined.
8735
0d3a9f48
RE
87362002-02-18 Richard Earnshaw <rearnsha@arm.com>
8737
8738 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8739
3fb4b924
RE
87402002-02-18 Richard Earnshaw <rearnsha@arm.com>
8741
8742 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8743 (arm_fix_call_dummy): Call it.
8744 (arm_call_dummy_breakpoint_offset): Delete.
8745 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8746 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8747
7f55af32
AC
87482002-02-18 Andrew Cagney <ac131313@redhat.com>
8749
8750 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8751 Default to func_frame_chain_valid.
8752 * gdbarch.h, gdbarch.c: Re-generate.
8753 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8754
05f13b9c
EZ
87552002-02-18 Elena Zannoni <ezannoni@redhat.com>
8756
8757 * ppc-linux-nat.c: Update copyright.
8758 (fetch_register, store_register): Add tid parameter, don't compute
8759 tid here.
8760 (fetch_ppc_registers, store_ppc_registers): Add tid
8761 parameter. Pass it along to callees.
8762 (fetch_inferior_registers, store_inferior_registers): Compute tid
8763 here, and pass it to calleed functions.
8764 (fill_gregset, supply_fpregset): Clean up formatting.
8765
d7afb4c9
RE
87662002-02-18 Richard Earnshaw <rearnsha@arm.com>
8767
8768 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8769 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8770
9df628e0
RE
87712002-02-18 Richard Earnshaw <rearnsha@arm.com>
8772
8773 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8774 * gdbarch.c gdbarch.h: Regenerate.
8775 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8776 function.
8777 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8778 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8779 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8780
8781 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8782 * arm-tdep.c (arm_get_longjmp_target): New function.
8783 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8784 this to a positive value register arm_get_longjmp_target as the
8785 longjmp handler.
8786 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8787 (arm_linux_init_abi): Set up longjmp description in tdep.
8788 * armnbsd-nat.c (get_longjmp_target): Delete.
8789 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8790 description in tdep.
8791 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8792 (get_longjmp_target): Delete declaration.
8793 (GET_LONGJMP_TARGET): Delete.
8794 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8795 (GET_LONGJMP_TARGET): Delete.
8796
57bc8964
KB
87972002-02-17 Kevin Buettner <kevinb@redhat.com>
8798
8799 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8800 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8801 of ``current_gdbarch''.
8802
83d31a92
TT
88032002-02-17 Tom Tromey <tromey@redhat.com>
8804
8805 * cli/cli-cmds.c (compare_strings): New function.
8806 (complete_command): Only print each unique item once.
8807 * completer.h (complete_line): Declare.
8808 * completer.c (complete_line): New function.
8809 (line_completion_function): Use it.
8810
17ef5d92
AC
88112002-02-16 Andrew Cagney <ac131313@redhat.com>
8812
8813 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8814 * gdbarch.h, gdbarch.c: Re-generate.
8815
491b8946
DJ
88162002-02-16 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8819
88202002-02-16 Daniel Jacobowitz <drow@mvista.com>
8821
8822 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8823 * valops.c (value_arg_coerce): Don't take the address of a reference
8824 to convert an argument to a reference.
8825
dfe7f3ac
CF
88262002-02-15 Christopher Faylor <cgf@redhat.com>
8827
8828 * win32-nat.c (get_image_name): New function.
8829 (handle_load_dll): Use get_image_name function.
8830 (get_child_debug_event): Avoid registering debug events until possibly
8831 execed process is started.
8832 (child_create_inferior): Allow invocation via shell so that command
8833 line redirection, etc. works ok.
8834 (_initialize_inftarg): Add new command: "set shell" to control whether
8835 a shell is used to start a process.
8836
1d33e73a
DJ
88372002-02-15 Daniel Jacobowitz <drow@mvista.com>
8838
8839 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8840 instead of find_register_by_number.
8841 (cannot_store_register): Likewise.
8842
48cd0caa
PM
88432002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8844
aaa38bb5 8845 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8846 fprintf_unfiltered (gdb_stderr, ...).
8847
8656e7d8
DJ
88482002-02-15 Daniel Jacobowitz <drow@mvista.com>
8849
8850 * gdbserver/gdbserver.1: Document --attach.
8851
66e810cd
RE
88522002-02-15 Richard Earnshaw <rearnsha@arm.com>
8853
8854 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8855 descriptions.
8856 * arm-tdep.c (arm_default_arm_le_breakpoint)
8857 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8858 (arm_default_thumb_be_breakpoint): New. Initialize them from
8859 traditional breakpoint defines.
8860 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8861 (arm_gdbarch_init): Initialize new breakpoint variables.
8862 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8863 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8864 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8865 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8866 code out to ...
8867 (arm_netbsd_init_abi_common): ... here; new function.
8868 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8869 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8870 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8871 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8872
97e03143
RE
88732002-02-15 Richard Earnshaw <rearnsha@arm.com>
8874
8875 * arm-tdep.h (enum arm_abi): New enum.
8876 (struct gdbarch_tdep): New structure.
8877 (LOWEST_PC): Provide a default.
8878 (arm_gdbarch_register_os_abi): Declare new function.
8879 * arm-tdep.c (arm_abi_names): New array.
8880 (process_note_abi_tag_sections): New function.
8881 (get_elfosabi): New function.
8882 (arm_gdbarch_register_os_abi): New function.
8883 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8884 support for that ABI has been built in, then call the appropriate
8885 configuration routine. Use gdbarch_num_regs() to get the number
8886 of registers.
8887 (arm_dump_tdep): New function.
8888 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8889 place-holder functions.
8890 (_initialize_arm_tdep): Register them.
8891 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8892
8893 * armnbsd-tdep.c: New file.
8894 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8895 * config/arm/nbsd.mt (TDEPFILES): Add it.
8896 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8897
8898 * armnbsd-nat.c: Include regcache.h.
8899 * Makefile.in (armnbsd-nat.o): Update dependency list.
8900
8901 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8902
ad68be46
DJ
89032002-02-14 Daniel Jacobowitz <drow@mvista.com>
8904
8905 * gdbserver/Makefile.in: Fix typos in target rules.
8906
003d6d1d
DJ
89072002-02-14 Daniel Jacobowitz <drow@mvista.com>
8908
aaa38bb5 8909 Fix part of PR gdb/267.
003d6d1d
DJ
8910 * linespec.c (find_methods): Handle constructors specially for now.
8911
6b230f1b
CV
89122002-02-14 Corinna Vinschen <vinschen@redhat.com>
8913
8914 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8915 handling.
8916 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8917 standard_coerce_float_to_double().
8918
1ea98d12
CF
89192002-02-14 Christopher Faylor <cgf@redhat.com>
8920
8921 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8922 GDBINIT_FILENAME.
8923
dd47e6fd
EZ
89242002-02-14 Elena Zannoni <ezannoni@redhat.com>
8925
8926 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8927 find_variant_by_name, because it confuses the multiarch
8928 framework. Return NULL if there isn't an architecture with the
8929 user supplied name, instead of forcing a different one without
8930 recording the change with the multiarch machinery.
8931 (find_variant_by_name): Delete.
8932
d7e39b9e
PS
89332002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8934
8935 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8936 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8937
76e42a4f
MH
89382002-02-13 Martin M. Hunt <hunt@redhat.com>
8939
aaa38bb5 8940 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8941 print_frame_info_listing_hook, set current_source_symtab.
8942
0a30fbc4
DJ
89432002-02-14 Daniel Jacobowitz <drow@mvista.com>
8944
8945 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8946 and remove unused $(INCLUDE_DIR).
8947 Add regcache.c to OBS.
8948 Add generated register protocol files to clean target.
8949 Update dependencies for new objects, obsolete old target code.
8950
8951 * gdbserver/linux-low.c: Remove all platform-specific code to
8952 new files. Remove various dead code. Update to use regcache
8953 functionality.
8954 * gdbserver/remote-utils.c (fromhex): Add return statement
8955 to quiet warning.
8956 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8957 constant.
8958 (input_interrupt): Add integer parameter to match prototype
8959 of a signal handler.
8960 (outreg): Use register_data ().
8961 (prepare_resume_reply): Use gdbserver_expedite_regs.
8962 * gdbserver/server.c (main): Dynamically allocate own_buf because
8963 PBUFSIZ is no longer constant. Use registers_to_string () and
8964 registers_from_string ().
8965 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8966 for error (), fatal (), and warning (). Update definition of
8967 PBUFSIZ to use regcache functionality. Add include guard.
8968 * gdbserver/utils.c (fatal): Add missing ``const''.
8969 (warning): New function.
8970
8971 * regformats/regdat.sh: Include "regcache.h" in generated files.
8972 Provide init_registers () function.
8973 * regformats/regdef.h: Add prototype for set_register_cache ().
8974 Add include guard.
8975
8976 * gdbserver/linux-arm-low.c: New file.
8977 * gdbserver/linux-i386-low.c: New file.
8978 * gdbserver/linux-ia64-low.c: New file.
8979 * gdbserver/linux-m68k-low.c: New file.
8980 * gdbserver/linux-mips-low.c: New file.
8981 * gdbserver/linux-ppc-low.c: New file.
8982 * gdbserver/linux-sh-low.c: New file.
8983
8984 * gdbserver/regcache.c: New file.
8985 * gdbserver/regcache.h: New file.
8986
8987 * gdbserver/low-linux.c: Removed obsolete file.
8988
4cc841d0
DJ
89892002-02-14 Daniel Jacobowitz <drow@mvista.com>
8990
8991 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8992 * config/i386/linux.mt: Likewise.
8993 * config/ia64/linux.mt: Likewise.
8994 * config/m68k/linux.mh: Likewise.
8995 * config/powerpc/linux.mh: Likewise.
8996 * config/mips/linux.mt: Likewise.
8997
8998 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8999
9000 * config/i386/i386lynx.mh: Mark gdbserver variables
9001 as (currently) obsolete for this target.
9002 * config/i386/nbsd.mt: Likewise.
9003 * config/i386/nbsdelf.mt: Likewise.
9004 * config/m32r/m32r.mt: Likewise.
9005 * config/m68k/m68klynx.mh: Likewise.
9006 * config/m68k/nbsd.mt: Likewise.
9007 * config/m68k/sun3os4.mh: Likewise.
9008 * config/mips/vr5000.mt: Likewise.
9009 * config/ns32k/nbsd.mt: Likewise.
9010 * config/pa/hppabsd.mh: Likewise.
9011 * config/pa/hppaosf.mh: Likewise.
9012 * config/powerpc/nbsd.mt: Likewise.
9013 * config/rs6000/rs6000lynx.mh: Likewise.
9014 * config/s390/s390.mt: Likewise.
9015 * config/s390/s390x.mt: Likewise.
9016 * config/sparc/sparclynx.mh: Likewise.
9017 * config/sparc/sun4os4.mh: Likewise.
9018 * config/i386/x86-64linux.mt: Likewise.
9019 * config/sparc/linux.mh: Likewise.
9020
a85f51e7
DJ
90212002-02-14 Daniel Jacobowitz <drow@mvista.com>
9022
9023 * configure.tgt: Configure gdbserver only for known working
9024 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9025 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9026 SUBDIRS if it is configured. Update comment for ${nativefile}.
9027 * configure: Regenerated.
9028
65554fef
MS
90292002-02-13 Michael Snyder <msnyder@redhat.com>
9030
670a52db
MS
9031 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9032
6dbdc4a3
MS
9033 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9034 (default_gcore_mach): Just return 0, work around a problem in bfd.
9035 (default_gcore_target): OK to return NULL if exec_bfd is null.
9036 (make_mem_sec): Use a cast, avoid a warning.
9037
9038 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9039 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9040 sizeof (host pointer) != sizeof (target pointer)).
9041 (procfs_make_note_section): Avoid overflow in psargs string.
9042
aaa38bb5 9043 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9044 implementation return an error.
9045
90462002-02-13 Rodney Brown <rbrown64@csc.com.au>
9047
9048 * procfs.c (procfs_make_note_section): Provide a default definition
9049 (for alpha-dec-osf4.0f). Fix typos.
9050
1e4d76e7
EZ
90512002-02-13 Elena Zannoni <ezannoni@redhat.com>
9052
9053 * linux-proc.c: Add include of regcache.h.
9054 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9055
b6d1a1d5
AC
90562002-02-13 Andrew Cagney <ac131313@redhat.com>
9057
9058 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9059 * memattr.c (create_mem_region): Disallow useless empty region.
9060 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9061 non-overlapping.
b6d1a1d5 9062
6c6ea35e
MC
90632002-02-13 Michael Chastain <mec@shout.net>
9064
9065 * defs.h: Kill CONST_PTR.
9066 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9067 * c-lang.c (c_builtin_types): Likewise.
9068 * ch-lang.c (ch_builtin_types): Likewise.
9069 * f-lang.c (f_builtin_types): Likewise.
9070 * language.c (unknown_builtin_types): Likewise.
9071 * m2-lang.c (m2_builtin_types): Likewise.
9072 * p-lang.c (pascal_builtin_types): Likewise.
9073 * scm-lang.c (c_builtin_types): Likewise.
9074
3e0b0f48
KS
90752002-02-13 Keith Seitz <keiths@redhat.com>
9076
9077 * arm-tdep.h (arm_get_next_pc): Add declaration.
9078
67255d04
RE
90792002-02-13 Richard Earnshaw <rearnsha@arm.com>
9080
9081 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9082 with other related struct-returning functions.
9083 (arm_extract_struct_value_address): New function.
9084 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9085 initialize float_format, double_format and long_double_format as
9086 appropriate to the endianness of the target.
9087 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9088 (arm_use_struct_convention): Delete declaration.
9089 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9090
079777f6
KS
90912002-02-13 Keith Seitz <keiths@redhat.com>
9092
9093 * defs.h (core_addr_to_string_nz): New function.
9094
34588f23
MK
90952002-02-13 Mark Kettenis <kettenis@gnu.org>
9096
9097 Apply missing bits of 2002-01-15 patch.
9098 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9099 (fill_fpregset): Use i387_fill_fsave.
9100
49b563f9
KS
91012002-02-12 Keith Seitz <keiths@redhat.com>
9102
49b563f9
KS
9103 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9104 (core_addr_to_string_nz): New function.
9105
aeb98c60
RE
91062002-02-11 Richard Earnshaw <rearnsha@arm.com>
9107
9108 * arm-linux-nat.c: Really include arm-tdep.h.
9109 * config/arm/tm-linux.h (struct type, struct value): Declare.
9110
65554fef
MS
91112002-02-11 Michael Snyder <msnyder@redhat.com>
9112
9113 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9114 (gcore section): Ifdef for Solaris and Unixware only.
9115 (procfs_do_thread_registers): Unixware needs one lwpstatus
9116 per thread (not one prstatus or pstatus).
9117 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9118 not over all gdb threads. For unixware, call elfcore_write_pstatus
9119 once before iterating over threads.
9120
34e8f22d
RE
91212002-02-11 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * arm-tdep.h: New file.
9124 * arm-tdep.c: Include arm-tdep.h.
9125 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9126 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9127 (arm_print_float_info, arm_register_type, convert_to_extended)
9128 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9129 (arm_extract_return_value, arm_register_name): Make static.
9130 (arm_software_single_step): Similarly. Fix types in declaration.
9131 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9132 (arm_store_return_value, arm_store_struct_return): New functions.
9133 (arm_gdbarch_init): Register the above functions. Also register
9134 call_dummy_start_offset, sizeof_call_dummy_words,
9135 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9136 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9137 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9138 prologue_cache.saved_regs here, rather than ...
9139 (_initialize_arm_tdep): ... here.
9140 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9141 declarations.
9142 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9143 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9144 (arm_print_float_info, arm_register_type, convert_to_extended)
9145 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9146 (arm_extract_return_value, arm_register_name): Delete declarations.
9147 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9148 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9149 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9150 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9151 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9152 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9153 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9154 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9155 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9156 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9157 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9158 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9159 interface.
9160 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9161 * remote-rdi.c remote-rdp.c: Likewise.
9162 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9163 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9164 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9165 definition.
9166
9167 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9168 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9169 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9170 from non-ARM_ prefixed definitions.
9171 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9172 all uses of above.
9173 * remote-rdi.c remote-rdp.c: Likewise.
9174 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9175
148754e5
RE
91762002-02-11 Richard Earnshaw <rearnsha@arm.com>
9177
9178 * arm-tdep.c (arm_frameless_function_invocation)
9179 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9180 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9181 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9182 (arm_pop_frame, arm_get_next_pc): Make static.
9183 (arm_gdbarch_init): Register above in gdbarch structure.
9184 (arm_read_fp): Renamed from arm_target_read_fp.
9185 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9186 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9187 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9188 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9189 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9190 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9191 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9192 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9193 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9194 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9195 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9196
434d2d4f
DJ
91972002-02-10 Daniel Jacobowitz <drow@mvista.com>
9198
9199 * symtab.c (compare_search_syms): New function.
9200 (sort_search_symbols): New function.
9201 (search_symbols): Sort symbols after searching rather than
9202 before.
9203
55241689
AC
92042002-02-10 Andrew Cagney <ac131313@redhat.com>
9205
9206 * NEWS: Linux -> GNU/Linux.
9207
028c194b
AC
92082002-02-10 Andrew Cagney <ac131313@redhat.com>
9209
9210 * gdbarch.sh: For for level one methods, disallow a definition
9211 when partially multi-arched. Add comments explaining rationale.
9212 * gdbarch.h: Re-generate.
9213
6acf50cd
AC
92142002-02-10 Andrew Cagney <ac131313@redhat.com>
9215
9216 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9217 multi-arch partial.
aaa38bb5 9218
50248794
AC
92192002-02-10 Andrew Cagney <ac131313@redhat.com>
9220
9221 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9222 field. Use diff -u.
9223 * gdbarch.c: Re-generate.
9224
c30e0066
AC
92252002-02-10 Andrew Cagney <ac131313@redhat.com>
9226
9b56c5f3 9227 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9228 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9229 partial.
9230
6e6d6484
AC
92312002-02-10 Andrew Cagney <ac131313@redhat.com>
9232
9233 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9234 multi-arch partial.
9235 (PUSH_ARGUMENTS): Switch to using predefault.
9236 * gdbarch.c: Regenerate.
9237
c203844d
AC
92382002-02-10 Andrew Cagney <ac131313@redhat.com>
9239
9240 * valops.c (PUSH_ARGUMENTS): Delete definition.
9241 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9242 partial. Default to default_push_arguments.
9243 * gdbarch.h, gdbarch.c: Regenerate.
9244
b5a2688f
AC
92452002-02-09 Andrew Cagney <ac131313@redhat.com>
9246
9247 * defs.h (throw_exception): Rename return_to_top_level. Update
9248 comments.
9249 * utils.c (error_stream, internal_verror, quit): Ditto.
9250 * top.c (throw_exception, catcher): Ditto.
9251 * sparclet-rom.c (sparclet_load): Ditto.
9252 * remote.c (interrupt_query, minitelnet): Ditto.
9253 * remote-sds.c (interrupt_query): Ditto.
9254 * remote-mips.c (mips_error, mips_kill): Ditto.
9255 * ocd.c (interrupt_query): Ditto.
9256 * monitor.c (monitor_interrupt_query): Ditto.
9257 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9258 * target.h: Update comment.
aaa38bb5 9259
b5a2688f 9260 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9261
2fa5c1e0
AC
92622002-02-09 Andrew Cagney <ac131313@redhat.com>
9263
9264 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9265 default_double_format.
9266 * gdbarch.h, gdbarch.c: Re-generate.
9267 * findvar.c (floatformat_unknown): Delete variable definition.
9268 * doublest.h (floatformat_unknown): Delete variable declaration.
9269
da966255
JB
92702002-02-09 Jim Blandy <jimb@redhat.com>
9271
9272 * stabsread.c (read_type): Add code to parse Sun's syntax for
9273 prototyped function types.
9274
123a4891
AC
92752002-02-09 Andrew Cagney <ac131313@redhat.com>
9276
9277 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9278 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9279
fb39c8f3
PS
92802002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9281
9282 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9283 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9284 now _initialize_xcoffsolib gets called again and overrides the
9285 commands from solib.c in a native configuration.
9286
0b87a11d
MK
92872002-02-09 Mark Kettenis <kettenis@gnu.org>
9288
9289 * doublest.c (store_typed_floating): Don't try to return a value.
9290 Fixes PR gdb/290.
9291
bdc2fc72
JB
92922002-02-08 Jim Blandy <jimb@redhat.com>
9293
9294 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9295 is prototyped and has no arguments, print its argument list as
9296 `(void)'.
9297
da69bbcf
CD
92982002-02-08 Chris Demetriou <cgd@broadcom.com>
9299
9300 * MAINTAINERS (write-after-approval): Add myself.
9301 (paper-trail): I've escaped!
aaa38bb5 9302
b69571f5
CF
93032002-02-08 Christopher Faylor <cgf@redhat.com>
9304
9305 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9306 changes.
9307 (_initialize_check_for_gdb_ini): Ditto.
9308
f6871398
MH
93092002-02-08 Martin M. Hunt <hunt@redhat.com>
9310
9311 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9312 xaprintf -> xasprintf.
9313
4e52d31c
PM
93142002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9315
9316 * win32-nat.c: Remove use of printf and sprintf functions.
9317
39bbf761
RE
93182002-02-08 Richard Earnshaw <rearnsha@arm.com>
9319
9320 * arm-tdep.c (arm_frame_chain_valid): Make static.
9321 (arm_push_arguments): Likewise.
9322 (arm_gdbarch_init): New function.
9323 (_initialize_arm_tdep): Call it.
9324 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9325 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9326 (FRAME_CHAIN_VALID): Delete.
9327 (arm_frame_chain_valid): Delete declaration.
9328 (PUSH_ARGUMENTS): Delete.
9329 (arm_push_arguments): Delete declaration.
9330 (CALL_DUMMY_P): Delete.
9331
9c9532c9
CV
93322002-02-08 Andrew Cagney <ac131313@redhat.com>
9333 Corinna Vinschen <vinschen@redhat.com>
9334
9335 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9336 on builtin float types.
9337
4e8f7a8b
DJ
93382002-02-08 Daniel Jacobowitz <drow@mvista.com>
9339
9340 * utils.c: Include <curses.h> before "bfd.h".
9341 * tui/tui-hooks.c: Likewise.
9342 * tui/tui.c: Likewise.
9343 * tui/tuiCommand.c: Likewise.
9344 * tui/tuiData.c: Likewise.
9345 * tui/tuiDataWin.c: Likewise.
9346 * tui/tuiDisassem.c: Likewise.
9347 * tui/tuiGeneralWin.c: Likewise.
9348 * tui/tuiIO.c: Likewise.
9349 * tui/tuiLayout.c: Likewise.
9350 * tui/tuiRegs.c: Likewise.
9351 * tui/tuiSource.c: Likewise.
9352 * tui/tuiSourceWin.c: Likewise.
9353 * tui/tuiStack.c: Likewise.
9354 * tui/tuiWin.c: Likewise.
9355
cd4bffcf
EZ
93562002-02-07 Elena Zannoni <ezannoni@redhat.com>
9357
9358 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9359 to include space for pseudoregs as well. Update loops accordingly.
9360 (sh_fp_frame_init_saved_regs): Ditto.
9361 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9362
26806ce2
AC
93632002-02-07 Andrew Cagney <ac131313@redhat.com>
9364
9365 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9366 Add Richard Earnshaw to Arm maintainers.
9367
97fdab62
AC
93682002-02-07 Andrew Cagney <ac131313@redhat.com>
9369
a6b98203
AC
9370 * defs.h (warning_begin): Delete declaration.
9371
97fdab62
AC
9372 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9373 Delete macro.
9374
78b29b40
MS
93752002-02-07 Michael Snyder <msnyder@redhat.com>
9376
aaa38bb5 9377 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9378 Logic bug, remove misplaced else.
9379
d8849953
KD
93802002-02-07 Klee Dienes <klee@apple.com>
9381
9382 * fork-inferior.c (fork_inferior): Add '!' to the list of
9383 characters that need to be quoted when building a string for the
9384 shell. Quote '!' specifically with a backslash, since CSH chokes
9385 when trying to evaluate "str!str".
aaa38bb5 9386
095778a0
NC
93872002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9388
9389 * rdi-share/host.h: Only provide a typedef for bool if it is not
9390 defined.
9391
1900040c
MS
93922002-02-04 Michael Snyder <msnyder@redhat.com>
9393
9394 * breakpoint.h (enum bptype): Add new overlay event bp type.
9395 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9396
1900040c
MS
9397 * breakpoint.c (create_internal_breakpoint): New function.
9398 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9399 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9400 (create_thread_event_breakpoint): Ditto.
9401 (create_solib_event_breakpoint): Ditto.
9402 (create_overlay_event_breakpoint): New function.
9403 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9404 (update_breakpoints_after_exec): Delete and re-initialize
9405 overlay event breakpoints after an exec. Add FIXME comment
9406 about longjmp breakpoint.
9407 (print_it_typical): Ignore overlay event breakpoints.
9408 (print_one_breakpoint): Ditto.
9409 (mention): Ditto.
9410 (bpstat_what): Do not stop for overlay event breakpoints.
9411 (delete_breakpoint): Don't delete overlay event breakpoints.
9412 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9413 (breakpoint_re_set): Re-create overlay event breakpoint.
9414
9415 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9416 (overlay_manual_command): Disable overlay breakpoints.
9417 (overlay_off_command): Disable overlay breakpoints.
9418
082fc60d
RE
94192002-02-06 Richard Earnshaw <rearnsha@arm.com>
9420
9421 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9422 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9423 to here from config/tm-arm.h.
9424 (coff_sym_is_thumb): Make static.
9425 (arm_elf_make_msymbol_special): New function.
9426 (arm_coff_make_msymbol_special): New function.
9427 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9428 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9429 (coff_sym_is_thumb): Delete declaration.
9430 (arm_elf_make_msymbol_special): Declare.
9431 (arm_coff_make_msymbol_special): Declare.
9432 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9433 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9434
039c5766
RE
94352002-02-06 Richard Earnshaw <rearnsha@arm.com>
9436
9437 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9438
94392002-02-06 Richard Earnshaw <rearnsha@arm.com>
9440
9441 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9442 * gdbarch.c gdbarch.h: Regenerate.
9443 * arch-utils.c (default_print_float_info): New function.
9444 * arch-utils.h (default_print_float_info): Prototype it.
9445 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9446 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9447 (PRINT_FLOAT_INFO): Document it.
9448
9449 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9450 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9451 (PRINT_FLOAT_INFO): Define.
9452
58fa08f0
PM
94532002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9454
aaa38bb5 9455 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9456 Add typecast to sprintf argument to suppress a warning.
9457
7393af7c
PM
94582002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9459
58fa08f0 9460 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9461 to allow easier handling of pass state.
9462 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9463 that gives exception name and address.
9464 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9465 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9466 exceptions added.
aaa38bb5
AJ
9467 (child_continue): Correctly report continue_status.
9468 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9469 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9470 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9471 the exception should be passed to debuggee or not.
9472
6af4589c
MS
94732002-02-05 Michael Snyder <msnyder@redhat.com>
9474
9475 * regcache.c (fetch_register): Call target_fetch_register
9476 only if we don't call FETCH_PSEUDO_REGISTER.
9477 (store_register): Call target_store_register only if we
9478 don't call STORE_PSEUDO_REGISTER.
9479
a2cf933a
EZ
94802002-02-05 Elena Zannoni <ezannoni@redhat.com>
9481
9482 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9483 ELF_MAKE_MSYMBOL_SPECIAL.
9484 * gdbarch.c, gdbarch.h: Regenerate.
9485 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9486 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9487 * elfread.c (elf_symtab_read): Compile use of
9488 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9489 multiarched.
9490 * coffread.c (coff_symtab_read): Ditto, for
9491 COFF_MAKE_MSYMBOL_SPECIAL.
9492
6bb7be43
JB
94932002-02-05 Jim Blandy <jimb@redhat.com>
9494
9495 * solib-svr4.c (svr4_truncate_ptr): New function.
9496 (svr4_relocate_section_addresses): Do the address arithmetic with
9497 the appropriate truncation for target addresses, even when
9498 CORE_ADDR is larger than a target address.
9499
e18651ec
DJ
95002002-02-05 Daniel Jacobowitz <drow@mvista.com>
9501
9502 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9503 to (int *).
9504
6b2725be
DJ
95052002-02-05 Daniel Jacobowitz <drow@mvista.com>
9506
9507 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9508 code.
9509
fca9e603
DJ
95102002-02-05 Daniel Jacobowitz <drow@mvista.com>
9511
9512 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9513
6c537a52
DJ
95142002-02-05 Daniel Jacobowitz <drow@mvista.com>
9515
9516 * gdbserver/linux-low.c: Remove unused include files.
9517
d844cde6
DJ
95182002-02-05 Daniel Jacobowitz <drow@mvista.com>
9519
9520 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9521 (read_inferior_memory): Use it.
9522 (write_inferior_memory): Likewise.
9523
d07c63e7
DJ
95242002-02-05 Daniel Jacobowitz <drow@mvista.com>
9525
9526 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9527 grubbing through sys_errlist.
9528
da6d8c04
DJ
95292002-02-05 Daniel Jacobowitz <drow@mvista.com>
9530
9531 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9532
5b421780
PM
95332002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9534 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9535
9f60d481
AC
95362002-02-04 Andrew Cagney <ac131313@redhat.com>
9537
9538 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9539 (do_sfunc, set_cmd_sfunc): New functions.
9540
9541 * command.h (struct cmd_list_element): Add field func.
9542 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9543 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9544 * cli/cli-decode.h: Ditto.
9545
9546 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9547 (help_all, help_cmd_list): Ditto.
9548 (find_cmd, complete_on_cmdlist): Ditto.
9549 * top.c (execute_command): Ditto.
9550
9551 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9552 function.sfunc.
9553
9554 * infcmd.c (notice_args_read): Fix function signature.
9555
9556 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9557 * cli/cli-decode.c (add_set_cmd): Ditto.
9558 * utils.c (initialize_utils): Ditto.
9559 * maint.c (_initialize_maint_cmds): Ditto.
9560 * infrun.c (_initialize_infrun): Ditto.
9561 * demangle.c (_initialize_demangler): Ditto.
9562 * remote.c (add_packet_config_cmd): Ditto.
9563 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9564 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9565 * proc-api.c (_initialize_proc_api): Ditto.
9566 * kod.c (_initialize_kod): Ditto.
9567 * valprint.c (_initialize_valprint): Ditto.
9568 * top.c (init_main): Ditto.
9569 * infcmd.c (_initialize_infcmd): Ditto.
9570 * corefile.c (_initialize_core): Ditto.
9571 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9572 * arch-utils.c (initialize_current_architecture): Ditto.
9573 (_initialize_gdbarch_utils): Ditto.
9574 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9575
9576 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9577 * wince.c (_initialize_inftarg): Ditto.
9578 * symfile.c (_initialize_symfile): Ditto.
9579 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9580 * language.c (_initialize_language): Ditto.
9581 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9582
f9ba0717
MS
95832002-02-04 Michael Snyder <msnyder@redhat.com>
9584
9585 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9586
0c74b2a7
DJ
95872002-02-04 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9590 Add rules for building the register data files.
9591
c638789f
DJ
95922002-02-04 Daniel Jacobowitz <drow@mvista.com>
9593
9594 * regformats/regdat.sh: Add braces to the definition of
9595 expedite_regs_${arch}.
9596
db253027
DJ
95972002-02-04 Daniel Jacobowitz <drow@mvista.com>
9598
9599 * regformats/regdef.h (struct reg): Add comment describing the
9600 requirements for offset and size fields.
9601
206be19c
AS
96022002-02-04 Andreas Schwab <schwab@suse.de>
9603
9604 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9605 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9606
181c1381
RE
96072002-02-04 Richard Earnshaw <rearnsha@arm.com>
9608
9609 * gdbarch.sh (copyright): Update years in generated header.
9610 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9611 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9612 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9613 * dbxread.c: Likewise.
9614 * dwarfread.c: Likewise.
9615 * elfread.c: Likewise.
9616 * somread.c: Likewise.
9617
9618 * arm-tdep.c (arm_smash_text_address): New function.
9619 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9620
fa4ba8da
PM
96212002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9622
9623 Add support for hardware watchpoints on win32 native.
aaa38bb5 9624 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9625 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9626 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9627 of debug registers.
9628 (debug_registers_changed): New variable. Reflects when debug registers
9629 are changed and need to be written to inferior.
aaa38bb5 9630 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9631 was set, used when new threads are created.
9632 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9633 i386-nat code.
9634 (thread_rec): Set dr array if id is the thread of current_event .
9635 (child_continue, child_resume): Change the debug registers for all
9636 threads if debug_registers_changed.
9637 (child_add_thread): Change the debug registers if debug_registers_used.
9638 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9639 Link nm.h to new nm-cygwin.h file.
9640 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9641 of hardware registers.
9642
a73c86fb
AC
96432002-02-03 Andrew Cagney <ac131313@redhat.com>
9644
9645 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9646 Restore behavour broken by 2002-01-20 Andrew Cagney
9647 <ac131313@redhat.com> IEEE_FLOAT removal.
9648
acf5ed49
DJ
96492002-02-03 Daniel Jacobowitz <drow@mvista.com>
9650
9651 * c-valprint.c (c_val_print): Pass a proper valaddr to
9652 cp_print_class_method.
9653 * valops.c (search_struct_method): If there is only one method
9654 and args is NULL, return that method.
9655
493d28d5
DJ
96562002-02-03 Daniel Jacobowitz <drow@mvista.com>
9657
9658 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9659 accessing tag_name directly.
9660
7495dfdb
DJ
96612002-02-03 Daniel Jacobowitz <drow@mvista.com>
9662
9663 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9664 of accessing tag_name directly.
9665
dd6bda65
DJ
96662002-02-03 Daniel Jacobowitz <drow@mvista.com>
9667
9668 PR gdb/280
9669 * gdbtypes.c (replace_type): New function.
9670 * gdbtypes.h (replace_type): Add prototype.
9671 * stabsread.c (read_type): Use replace_type.
9672
88fe217c
RE
96732002-02-03 Richard Earnshaw <rearnsha@arm.com>
9674
9675 * Makefile.in (memattr.o): Add missing dependencies rule.
9676
e5d66720
PS
96772002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9678
9679 * breakpoint.c (break_at_finish_command): Really export.
9680 (break_at_finish_at_depth_command): Ditto.
9681 (tbreak_at_finish_command): Ditto.
9682 * hppa-tdep.c: Include completer.h.
9683 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9684 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9685
fffee0be
AC
96862002-02-01 Andrew Cagney <ac131313@redhat.com>
9687
9688 * utils.c (do_write): New function.
9689 (error_stream): Rewrite combining the code from error_begin and
9690 verror.
9691 (verror): Rewrite using error_stream.
9692 (error_begin): Delete function.
9693
255e7dbf
AC
96942002-02-01 Andrew Cagney <ac131313@redhat.com>
9695
9696 * utils.c (error_begin): Make static.
9697 * defs.h (error_begin): Delete declaration.
9698
9699 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9700 (decode_line_1): Use cplusplus_error instead of error_begin,
9701 cplusplus_hint and return_to_top_level.
9702 * coffread.c (coff_symfile_read): Use error instead of error_begin
9703 and return_to_top_level.
9704 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9705
ddfe3c15
AC
97062002-02-01 Andrew Cagney <ac131313@redhat.com>
9707
9708 * language.h (type_error, range_error): Make string parameter
9709 constant.
9710 * language.c (warning_pre_print): Delete extern declaration.
9711 * dwarfread.c (warning_pre_print): Ditto.
9712 * language.c (type_error, range_error): Rewrite to use verror and
9713 vwarning instead of warning_begin.
9714
03ac34d5
MS
97152002-02-01 Michael Snyder <msnyder@redhat.com>
9716
261c4ca2
MS
9717 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9718 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9719
e00d1dc8
AC
97202002-02-01 Andrew Cagney <ac131313@redhat.com>
9721
9722 * command.h (NO_FUNCTION): Delete macro.
9723 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9724 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9725 * tracepoint.c (_initialize_tracepoint): Ditto.
9726 * cli/cli-decode.c (add_set_cmd): Ditto.
9727 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9728
76b79d6e
DJ
97292002-02-01 Daniel Jacobowitz <drow@mvista.com>
9730
9731 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9732 Update ``this'' pointer when calling virtual functions.
9733
799f9e91
MS
97342002-02-01 Michael Snyder <msnyder@redhat.com>
9735
c7bd442c 9736 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9737 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9738
3cf384d4
DJ
97392002-02-01 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * regformats/reg-arm.dat: New file.
9742 * regformats/reg-i386.dat: New file.
9743 * regformats/reg-ia64.dat: New file.
9744 * regformats/reg-m68k.dat: New file.
9745 * regformats/reg-mips.dat: New file.
9746 * regformats/reg-ppc.dat: New file.
9747 * regformats/reg-sh.dat: New file.
9748 * regformats/regdef.h: New file.
9749 * regformats/regdat.sh: New file.
9750
0defa245
RE
97512002-02-01 Richard Earnshaw <reanrsha@arm.com>
9752
9753 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9754 (arm_frame_args_address, arm_frame_locals_address): New functions.
9755 (arm_frame_num_args): New function.
9756 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9757 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9758 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9759
405f26e6
MS
97602002-01-31 Michael Snyder <msnyder@redhat.com>
9761
502fd408
MS
9762 * breakpoint.c (break_at_finish_command): Export.
9763 (break_at_finish_at_depth_command): Export.
9764 (tbreak_at_finish_command): Export.
9765 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9766 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9767 "tbreak" commands, which are HPPA specific.
9768
7d35e135
MS
9769 * printcmd.c (disassemble_command): Remove an ancient
9770 artifact of an old merge.
9771
aaa38bb5 9772 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9773 Define enum constant values for overlay mode.
9774 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9775 (overlay_is_mapped, overlay_auto_command,
9776 overlay_manual_command): Ditto.
d874f1e2 9777
aaa38bb5
AJ
9778 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9779 breakpoint_here_p, breakpoint_inserted_here_p,
9780 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9781 describe_other_breakpoints, check_duplicates, clear_command):
9782 Coding standard fixes.
9783
8add0441 9784 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9785 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9786 code: check bfd SEC_READONLY flag for section.
9787
e351066e
AC
97882002-01-31 Andrew Cagney <ac131313@redhat.com>
9789
7d35e135 9790 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9791
8a48e967
DJ
97922002-01-30 Daniel Jacobowitz <drow@mvista.com>
9793
9794 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9795 data symbols, since we search based on textlow and texthigh.
9796 (find_pc_sect_symtab): Likewise.
9797
f5a96129
AC
97982002-01-30 Andrew Cagney <ac131313@redhat.com>
9799
9800 * defs.h (vwarning): Declare.
f5a96129
AC
9801 * utils.c (vwarning): New function.
9802 (warning): Call vwarning.
9803 (warning_begin): Delete function.
9804
9805 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9806 the warning message.
9807 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9808 warning_begin.
9809
cefd4ef5
MS
98102002-01-30 Michael Snyder <msnyder@redhat.com>
9811
1a703748
MS
9812 * NEWS: Mention "set trust-readonly-sections" command.
9813 Mention generate-core-file command.
cefd4ef5 9814
3a11626d
MS
98152002-01-15 Michael Snyder <msnyder@redhat.com>
9816
9817 * target.c: New command, "set trust-readonly-sections on".
9818 (do_xfer_memory): Honor the suggestion to trust readonly sections
9819 by reading them from the object file instead of from the target.
9820 (initialize_targets): Register command "set trust-readonly-sections".
9821
d1c7e53b
AC
98222002-01-29 Andrew Cagney <ac131313@redhat.com>
9823
9824 * parse.c (target_map_name_to_register): Simplify, search regs and
9825 pseudo-regs using a single loop.
9826
e2c9a72c
AC
98272002-01-30 Andrew Cagney <ac131313@redhat.com>
9828
9829 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9830
69824b4e
MK
98312002-01-15 Rodney Brown <rbrown64@csc.com.au>
9832
9833 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9834 * config/i386/i386v42mp.mh: Add i387-nat.o .
9835 * i386v4-nat.c: Include i387-nat.h.
9836 (supply_fpregset): Use i387_supply_fsave.
9837 (fill_fpregset): Use i387_fill_fsave.
9838
6eb69eab
RE
98392002-01-30 Richard Earnshaw <rearnsha@arm.com>
9840
9841 * arm-tdep.c (arm_call_dummy_words): Define.
9842 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9843 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9844 (CALL_DUMMY_WORDS): Define.
9845 (arm_call_dummy_words): Declare.
9846 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9847 (arm_linux_call_dummy_words): Declare.
9848
9852326a
AS
98492002-01-30 Andreas Schwab <schwab@suse.de>
9850
9851 * m68klinux-nat.c: Fix last change to use regcache_collect
9852 instead of referencing registers[] directly.
9853
977a3030
AC
98542002-01-29 Andrew Cagney <ac131313@redhat.com>
9855
9856 * parse.c (target_map_name_to_register): Delete code wrapped in
9857 #ifdef REGISTER_NAME_ALIAS_HOOK.
9858
2076c72b
MS
98592002-01-28 Michael Snyder <msnyder@redhat.com>
9860
9861 * regcache.c (legacy_read_register_gen): Need to be able to
9862 read pseudo-register as well as real register.
9863 (legacy_write_register_gen): Ditto.
9864
8fcc723b
AC
98652002-01-28 Andrew Cagney <ac131313@redhat.com>
9866
9867 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9868 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9869 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9870 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9871 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9872 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9873 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9874 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9875 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9876 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9877 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9878 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9879 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9880 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9881 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9882 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9883 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9884 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9885 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9886 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9887
afe64c1a
AC
98882002-01-28 Andrew Cagney <ac131313@redhat.com>
9889
9890 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9891 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9892 (initialize_current_architecture): Update target_byte_order using
9893 information from BFD.
aaa38bb5 9894 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9895 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9896
75bc7ddf
AC
98972002-01-28 Andrew Cagney <ac131313@redhat.com>
9898
9899 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9900 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9901
9902 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9903 #ifdef INVALID_FLOAT.
9904 * infcmd.c (do_registers_info): Ditto.
9905 * values.c (unpack_double): Ditto. Add comment.
9906
9907 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9908 already commented out.
9909
0280a90a
AS
99102002-01-26 Andreas Schwab <schwab@suse.de>
9911
9912 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9913 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9914 registers and add support for PTRACE_GETREGS.
9915
7072a954
AC
99162002-01-24 Andrew Cagney <ac131313@redhat.com>
9917
9918 GDB 5.1.1 released from 5.1 branch.
9919 * NEWS: Add 5.1.1 news.
9920 * README: Sync with 5.1 branch.
9921
86f902e0
FF
99222002-01-23 Fred Fish <fnf@redhat.com>
9923
9924 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9925 stabstring on initial malloc. Reallocing will copy it for us,
9926 if necessary.
9927
8af51c36
EZ
99282002-01-23 Elena Zannoni <ezannoni@redhat.com>
9929
aaa38bb5 9930 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9931 (HFILES_NO_SRCDIR): Remove hpread.h.
9932 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9933 (hpread.o): Update dependencies.
9934 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9935
9936 * hp-psymtab-read.c: Remove file.
9937 * hp-symtab-read.c: Remove file.
9938 * hpread.h: Remove file.
9939
9940 * hpread.c: Merge all contents of hp-psymtab-read.c,
9941 hp-symtab-read.c and hpread.h into this file, as it was prior to
9942 January 1999.
9943
9944 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9945 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9946 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9947 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9948
dc5cfeb6
EZ
99492002-01-23 Elena Zannoni <ezannoni@redhat.com>
9950
9951 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9952 fill_gregset): Call gdbarch_tdep() just once, assign result to
9953 variable and use that, instead of calling the function several
9954 times.
9955
ea87b71b
AO
99562002-01-24 Alexandre Oliva <aoliva@redhat.com>
9957
9958 * configure.host: Accept sparcv9 as alias for sparc64.
9959 * configure.tgt: Likewise.
9960
13fc0c2f
KB
99612002-01-22 Kevin Buettner <kevinb@redhat.com>
9962
9963 * solib-aix5.c (build_so_list_from_mapfile)
9964 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9965 arguments is not reversed.
9966 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9967 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9968
7bd872fe
EZ
99692002-01-22 Elena Zannoni <ezannoni@redhat.com>
9970
9971 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9972 modified version of obsolete sh_fetch_pseudo_register.
9973 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9974 (sh4_register_read): New function.
9975 (sh_pseudo_register_write): New function. Renamed and modified
9976 version of obsolete sh_store_pseudo_register.
9977 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9978 (sh4_register_write): New function.
9979 (sh_gdbarch_init): Remove setting of gdbarch function
9980 fetch_pseudo_register and store_pseudo_register. Remove setting of
9981 register_convert_to_raw, register_convert_to_virtual,
9982 register_convertible.
9983 (sh_sh4_register_convertible): Delete. No longer needed. All is
9984 taken care by architecture specific functions
9985 register_read/register_write.
9986 (sh_sh4_register_convert_to_virtual): Make static.
9987 (sh_sh4_register_convert_to_raw): Ditto.
9988
069e84fd
AC
99892002-01-22 Andrew Cagney <ac131313@redhat.com>
9990
9991 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9992 (floatformat_is_nan, floatformat_mantissa): Ditto.
9993
9994 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9995 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9996 builtin_type_ieee_double_little,
9997 builtin_type_ieee_double_littlebyte_bigword,
9998 builtin_type_m68881_ext, builtin_type_i960_ext,
9999 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10000 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10001 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10002 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10003
211a4f69
CV
100042002-01-22 Corinna Vinschen <vinschen@redhat.com>
10005
10006 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10007 parameter. Set frameless flag if it exists and depended of
10008 whether the scanned function is frameless or not.
10009 (xstormy16_skip_prologue): If function is frameless, return
10010 result of xstormy16_scan_prologue().
10011 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10012 call.
10013
f81353e4
EZ
100142002-01-21 Elena Zannoni <ezannoni@redhat.com>
10015
10016 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10017 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10018 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10019 sh_sh4_register_byte, sh_sh4_register_raw_size,
10020 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10021 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10022 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10023 sh_store_pseudo_register, sh_do_pseudo_register): Call
10024 gdbarch_tdep() just once, assign result to variable and use that,
10025 instead of calling the function several times.
10026
63c73a17
MK
100272002-01-20 Mark Kettenis <kettenis@gnu.org>
10028
10029 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10030 macros instead of LAST_FPU_CTRL_REGNUM.
10031 (store_register): Likewise.
10032
39ad761d
JB
100332002-01-21 Jim Blandy <jimb@redhat.com>
10034
10035 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10036 is up-to-date before running the program, not just when a program
10037 exits.
10038
3d74b771
FF
100392002-01-21 Fred Fish <fnf@redhat.com>
10040
10041 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10042 when we have found all instructions we are looking for.
10043
966fbf70
RE
100442002-01-21 Richard Earnshaw <rearnsha@arm.com>
10045
10046 * arm-tdep.c (arm_register_name): New function.
10047 (arm_registers_names): Make static.
10048 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10049 (arm_register_name): Declare.
10050 (REGISTER_NAME): Use it.
10051
c3b4394c
RE
100522002-01-21 Richard Earnshaw <rearnsha@arm.com>
10053 Kevin Buettner <kevinb@redhat.com>
10054
10055 Convert arm targets to new FRAME interface.
10056 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10057 (arm_frame_find_save_regs): Delete.
10058 (arm_frame_init_saved_regs): New.
10059 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10060 Allocate extra_info as required. Convert all uses of fsr.regs
10061 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10062 to use extra_info.
10063 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10064 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10065 (check_prologue_cache, save_prologue_cache): Likewise.
10066 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10067 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10068 (FRAME_FIND_SAVED_REGS): Delete.
10069 (arm_frame_find_saved_regs): Delete prototype.
10070 (arm_frame_init_saved_regs): New prototype.
10071 (FRAME_INIT_SAVED_REGS): Define.
10072
61d99182
AC
100732002-01-20 Andrew Cagney <ac131313@redhat.com>
10074
10075 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10076
6aaea291
AC
100772002-01-20 Andrew Cagney <ac131313@redhat.com>
10078
10079 From Jeff Law <law@redhat.com>:
10080 * infttrace.c: Include <sys/pstat.h>.
10081 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10082 exec file if the ttrace equivalent fails.
10083
15f698d2
AC
100842002-01-20 Andrew Cagney <ac131313@redhat.com>
10085
10086 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10087 (closeLogFile): Ditto.
10088
f86ddd7c
MC
100892002-01-20 Michael Chastain <mec@shout.net>
10090
10091 * top.c (print_gdb_version): Bump copyright year to 2002.
10092
904507ce
AC
100932002-01-20 Andrew Cagney <ac131313@redhat.com>
10094
10095 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10096 Zannoni and Eli Zaretskii.
10097
d7f0b9ce
DJ
100982002-01-20 Daniel Jacobowitz <drow@mvista.com>
10099
10100 * buildsym.c: Update copyright years.
10101 * c-typeprint.c: Likewise.
10102 * dwarf2read.c: Likewise.
10103 * f-typeprint.c: Likewise.
10104 * gdbtypes.c: Likewise.
10105 * gdbtypes.h: Likewise.
10106 * hp-symtab-read.c: Likewise.
10107 * hpread.c: Likewise.
10108 * mdebugread.c: Likewise.
10109 * p-typeprint.c: Likewise.
10110
3fd3d7d2
AC
101112002-01-20 Andrew Cagney <ac131313@redhat.com>
10112
10113 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10114 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10115 byte-order selectable.
10116 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10117 * arch-utils.c: Ditto.
10118 (set_endian): Ditto.
10119 (set_endian_from_file): Ditto.
10120 * gdbserver/low-sim.c (create_inferior): Ditto.
10121 * gdbarch.sh: Ditto.
10122 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10123 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10124 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10125 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10126 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10127 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10128 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10129 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10130 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10131 macro definition.
10132 * config/mips/tm-wince.h: Remove #undef of macro
10133 TARGET_BYTE_ORDER_SELECTABLE.
10134 * config/sh/tm-wince.h: Ditto.
10135
b02dede2
DJ
101362002-01-20 Daniel Jacobowitz <drow@mvista.com>
10137
10138 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10139 member function fields. Add accessor macro
10140 TYPE_FN_FIELD_ARTIFICIAL.
10141 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10142 * c-typeprint.c (c_type_print_base): Skip artificial member
10143 functions.
10144
c3643761
DJ
101452002-01-20 Daniel Jacobowitz <drow@mvista.com>
10146
10147 * f-typeprint.c: Delete unused function f_type_print_args.
10148 * p-typeprint.c: Delete unused function pascal_type_print_args.
10149
8176bb6d
DJ
101502002-01-20 Daniel Jacobowitz <drow@mvista.com>
10151
10152 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10153 comment. Add ``artificial'' to ``union field_location''.
10154
10155 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10156
10157 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10158 * mdebugread.c (parse_symbol): Likewise.
10159 * stabsread.c (define_symbol): Likewise.
10160 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10161 initializing TYPE_FIELD_BITPOS to n (obsolete).
10162 (hpread_doc_function_type): Likewise.
10163 * hpread.c (hpread_function_type): Likewise.
10164
7fd60527
AC
101652002-01-20 Andrew Cagney <ac131313@redhat.com>
10166
10167 * configure.in (host_makefile_frag): Only require a host makefile
10168 fragment when a native build.
10169 * configure: Re-generate.
10170
c2f05ac9
AC
101712002-01-20 Andrew Cagney <ac131313@redhat.com>
10172
10173 * doublest.h (floatformat_from_type): Declare.
10174 * doublest.c (floatformat_from_type): New function.
10175 (convert_typed_floating): Use.
10176
10177 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10178 call to function floatformat_from_type.
10179
10180 * gdbarch.sh (IEEE_FLOAT): Delete.
10181 * gdbarch.h, gdbarch.c: Re-generate.
10182 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10183 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10184 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10185 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10186 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10187 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10188 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10189 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10190 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10191 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10192 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10193 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10194
10195 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10196 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10197 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10198 * sh-tdep.c (sh_gdbarch_init): Ditto.
10199 * mips-tdep.c (mips_gdbarch_init): Ditto.
10200 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10201 * cris-tdep.c (cris_gdbarch_init): Ditto.
10202
abf22e64
AJ
102032002-01-20 Jiri Smid <smid@suse.cz>
10204
10205 * configure.host, configure.tgt: Support x86-64.
10206 * NEWS: Note new target x86-64.
10207
b7c4cbf8
AJ
10208 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10209 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10210 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10211 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10212 x86-64-linux-nat.o): Fix dependencies.
10213
82600034
AC
102142002-01-19 Andrew Cagney <ac131313@redhat.com>
10215
10216 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10217 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10218 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10219 * config/sparc/xm-sun4os4.h: Delete file.
10220 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10221
bbe5c628
AC
102222002-01-19 Andrew Cagney <ac131313@redhat.com>
10223
10224 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10225 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10226 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10227 * config/i386/i386lynx.mh (XM_FILE): Delete.
10228 * config/rs6000/xm-rs6000ly.h: Delete file.
10229 * config/sparc/xm-sparclynx.h: Delete file.
10230 * config/m68k/xm-m68klynx.h: Delete file.
10231 * config/i386/xm-i386lynx.h: Delete file.
10232 * config/xm-lynx.h: Delete file.
10233 * config/djgpp/fnchange.lst: Update.
10234
f8453e34
JT
102352002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10236
10237 * alpha-tdep.c (alpha_register_byte): New function.
10238 (alpha_register_raw_size): Ditto.
10239 (alpha_register_virtual_size): Ditto.
10240 (alpha_skip_prologue_internal): Renamed from
10241 alpha_skip_prologue.
10242 (alpha_skip_prologue): New version that calls
10243 alpha_skip_prologue_internal.
10244 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10245 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10246 second argument from alpha_skip_prologue.
10247 (REGISTER_BYTE): Use alpha_register_byte.
10248 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10249 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10250 (FRAMELESS_FUNCTION_INVOCATION): Use
10251 generic_frameless_function_invocation_not.
10252 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10253 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10254
52d9e613
AC
102552002-01-19 Andrew Cagney <ac131313@redhat.com>
10256
10257 * config/mips/xm-news-mips.h: Delete file.
10258 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10259
10260 * config/m88k/xm-m88k.h: Delete file.
10261 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10262 * config/m88k/xm-delta88v4.h: Ditto.
10263 * config/m88k/xm-delta88.h: Ditto.
10264
10265 * config/alpha/xm-fbsd.h: Delete file.
10266 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10267
10268 * config/sparc/xm-sparc.h: Delete file.
10269 * Makefile.in (xm-sun4os4.h): Delete dependency.
10270 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10271 * config/sparc/xm-sun4os4.h: Ditto.
10272 * config/sparc/xm-linux.h: Ditto.
10273
10274 * config/i386/xm-windows.h: Delete file.
10275
2d1b2124
AC
102762002-01-19 Andrew Cagney <ac131313@redhat.com>
10277
10278 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10279 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10280
ee1f65f0
JT
102812002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10282
10283 * alpha-tdep.c (alpha_call_dummy_words): New.
10284 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10285 (CALL_DUMMY_P): Define.
10286 (CALL_DUMMY_WORDS): Define.
10287 (SIZEOF_CALL_DUMMY_WORDS): Define.
10288
98081e55
PB
102892002-01-19 Per Bothner <per@bothner.com>
10290
10291 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10292 isn't NULL, which can happen with some gcj-3.x-produced code.
10293
0d056799
JT
102942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10295
10296 * alpha-tdep.c (alpha_register_virtual_type): New function.
10297 (alpha_init_frame_pc_first): Ditto.
10298 (alpha_fix_call_dummy): Ditto.
10299 (alpha_store_struct_return): Ditto.
10300 (alpha_extract_struct_value_address): Ditto.
10301 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10302 alpha_register_virtual_type.
10303 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10304 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10305 alpha_extract_struct_value_address.
10306 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10307 (INIT_FRAME_PC): Use init_frame_pc_noop.
10308 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10309
4604bcad
MK
103102002-01-19 Mark Kettenis <kettenis@gnu.org>
10311
10312 * i386gnu-nat.c: Include "i386-tdep.h".
10313 (fetch_fpregs): Simplify code dealing with uninitialized floating
10314 point states such that it doesn't require FP7_REGNUM.
10315
140f9984
JT
103162002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10317
abf22e64
AJ
10318 * alpha-tdep.c (frame_extra_info): New.
10319 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10320 frame->extra_info.
10321 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10322 (alpha_frame_saved_pc): Use frame->extra_info.
10323 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10324 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10325 (init_extra_frame_info): Rename to...
10326 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10327 (alpha_print_extra_frame_info): New function.
140f9984
JT
10328 (alpha_frame_locals_address): Ditto.
10329 (alpha_frame_args_address): Ditto.
abf22e64 10330 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10331 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10332 alpha_frame_args_address.
abf22e64 10333 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10334 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10335 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10336 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10337 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10338 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10339
d734c450
JT
103402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10341
10342 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10343 (alpha_cannot_fetch_register): Ditto.
10344 (alpha_cannot_store_register): Ditto.
10345 (alpha_register_convertible): Ditto.
10346 (alpha_use_struct_convention): Ditto.
10347 * config/alpha/tm-alpha.h: Update copyright years.
10348 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10349 (INNER_THAN): Use core_addr_lessthan.
10350 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10351 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10352 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10353 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10354 (FRAME_CHAIN): Remove unnecessary cast.
10355
b4ceaee6
AC
103562002-01-18 Andrew Cagney <ac131313@redhat.com>
10357
10358 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10359 obsolete.
10360
0a65a603
AC
103612002-01-18 Andrew Cagney <ac131313@redhat.com>
10362
10363 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10364 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10365 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10366 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10367 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10368 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10369 * x86-64-linux-nat.c: Ditto.
10370
636a6dfc
JT
103712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10372
abf22e64 10373 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10374 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10375 (REGISTER_NAME): Define.
10376
acceddb6
JT
103772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10378
10379 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10380
ec32e4be
JT
103812002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10382
10383 * alpha-tdep.c: Update copyright years.
10384 (alpha_next_pc): New function.
10385 (alpha_software_single_step): Ditto.
10386 * config/alpha/tm-alpha.h: Add prototype for
10387 alpha_software_single_step.
10388
e771a871
JT
103892002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10390
10391 * alphabsd-nat.c: Update copyright years.
10392 (fill_gregset): Use regcache_collect.
10393 (fill_fpregset): Likewise.
10394 (fetch_inferior_registers): Only fetch integer registers
10395 if requested to do so.
10396 (store_inferior_registers): Only store integer registers
10397 if requested to do so.
10398
7708fa01
AC
103992002-01-17 Andrew Cagney <ac131313@redhat.com>
10400
10401 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10402 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10403 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10404 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10405 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10406 * config/arm/linux.mh (XDEPFILES): Delete.
10407 * config/arm/nbsd.mh (XDEPFILES): Delete.
10408 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10409 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10410 * config/i386/i386m3.mh (XDEPFILES): Delete.
10411 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10412 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10413 * config/i386/fbsd.mh (XDEPFILES): Delete.
10414 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10415 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10416 * config/i386/i386v4.mh (XDEPFILES): Delete.
10417 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10418 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10419 * config/i386/i386aix.mh (XDEPFILES): Delete.
10420 * config/i386/go32.mh (XDEPFILES): Delete.
10421 * config/i386/cygwin.mh (XDEPFILES): Delete.
10422 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10423 * config/i386/i386mach.mh (XDEPFILES): Delete.
10424 * config/i386/i386v32.mh (XDEPFILES): Delete.
10425 * config/i386/linux.mh (XDEPFILES): Delete.
10426 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10427 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10428 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10429 * config/i386/i386sco.mh (XDEPFILES): Delete.
10430 * config/i386/i386v.mh (XDEPFILES): Delete.
10431 * config/i386/nbsd.mh (XDEPFILES): Delete.
10432 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10433 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10434 * config/i386/symmetry.mh (XDEPFILES): Delete.
10435 * config/i386/obsd.mh (XDEPFILES): Delete.
10436 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10437 * config/ia64/linux.mh (XDEPFILES): Delete.
10438 * config/ia64/aix.mh (XDEPFILES): Delete.
10439 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10440 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10441 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10442 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10443 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10444 * config/m68k/linux.mh (XDEPFILES): Delete.
10445 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10446 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10447 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10448 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10449 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10450 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10451 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10452 * config/m88k/delta88.mh (XDEPFILES): Delete.
10453 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10454 * config/m88k/m88k.mh (XDEPFILES): Delete.
10455 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10456 * config/mips/linux.mh (XDEPFILES): Delete.
10457 * config/mips/irix6.mh (XDEPFILES): Delete.
10458 * config/mips/irix5.mh (XDEPFILES): Delete.
10459 * config/mips/irix4.mh (XDEPFILES): Delete.
10460 * config/mips/irix3.mh (XDEPFILES): Delete.
10461 * config/mips/decstation.mh (XDEPFILES): Delete.
10462 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10463 (NATDEPFILES): Move core-aout.o to here.
10464 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10465 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10466 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10467 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10468 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10469 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10470 * config/pa/hpux11.mh (XDEPFILES): Delete.
10471 * config/powerpc/aix.mh (XDEPFILES): Delete.
10472 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10473 * config/powerpc/linux.mh (XDEPFILES): Delete.
10474 * config/romp/rtbsd.mh: Rename XDEPFILES.
10475 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10476 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10477 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10478 * config/s390/s390.mh (XDEPFILES): Delete.
10479 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10480 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10481 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10482 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10483 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10484 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10485 * config/sparc/linux.mh (XDEPFILES): Delete.
10486 * config/vax/vaxult.mh (XDEPFILES): Delete.
10487 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10488 * Makefile.in (DEPFILES): Remove XDEPFILES.
10489
375fc983
AC
104902002-01-17 Andrew Cagney <ac131313@redhat.com>
10491
10492 * utils.c (internal_verror): Fix comments, default is yes not no.
10493 Update queries to match. Default to quit and dump core.
10494
8926118c
AC
104952002-01-17 Andrew Cagney <ac131313@redhat.com>
10496
10497 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10498 copyright.
10499 * defs.h, event-top.c, gdbcmd.h: Ditto.
10500 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10501 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10502 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10503 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10504 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10505 * mi/mi-main.c:Ditto.
10506
10507 * stack.c, symfile.c: Update copyright.
10508
45b7b345
DJ
105092002-01-17 Daniel Jacobowitz <drow@mvista.com>
10510
db728ff7
DJ
10511 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10512 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10513 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10514 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10515
db728ff7
DJ
105162002-01-17 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10519 * gdbserver/low-lynx.c (myattach): Likewise.
10520 * gdbserver/low-nbsd.c (myattach): Likewise.
10521 * gdbserver/low-sim.c (myattach): Likewise.
10522 * gdbserver/low-sparc.c (myattach): Likewise.
10523 * gdbserver/low-sun3.c (myattach): Likewise.
10524
10525 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10526
db728ff7 10527 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10528 (main): Handle "--attach".
10529
8de3c354
AC
105302002-01-16 Andrew Cagney <ac131313@redhat.com>
10531
10532 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10533 maintainer.
10534
b0129042
DJ
105352002-01-15 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * c-typeprint.c (is_type_conversion_operator): Add additional
10538 check for non-conversion operators.
10539
ba8679fb 105402002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10541
10542 * linux-proc.c: Add "info proc" command, a la procfs.c.
10543 (read_mapping): New function, abstract and re-use code.
10544 (linux_find_memory_regions): Use new func read_mapping.
10545 (linux_info_proc_cmd): New function, implement "info proc".
10546 (_initialize_linux_proc): Add new command "info proc".
10547
e4f9b4d5
MS
105482002-01-15 Michael Snyder <msnyder@redhat.com>
10549
10550 * symfile.c (generic_load): Use bfd_map_over_sections method
10551 instead of manipulating bfd structure members directly.
10552 (add_section_size_callback): New function, bfd sections callback
10553 used by generic_load.
10554 (load_sections_callback): New function, bfd sections callback
10555 used by generic_load.
10556
08cf96df
EZ
105572002-01-15 Elena Zannoni <ezannoni@redhat.com>
10558
abf22e64 10559 [Based on work by Jim Blandy]
08cf96df
EZ
10560 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10561 (builtin_type_vec128): Export.
10562 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10563 types.
10564 (builtin_type_vec128): New builtin type for 128 bit vector
10565 registers.
10566 (build_gdbtypes): Initialize builtin_type_v16qi and
10567 builtin_type_v8hi. Create the vec128 register builtin type
10568 structure.
10569 (build_builtin_type_vec128): New function.
abf22e64 10570 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10571 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10572 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10573 AltiVec register to new builtin type.
10574
d7242108
DJ
105752001-01-15 Daniel Jacobowitz <drow@mvista.com>
10576
10577 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10578 to make_cv_type.
10579
4ee3352d
AC
105802002-01-14 Andrew Cagney <ac131313@redhat.com>
10581
10582 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10583 CLEAN_UP_REGISTER_VALUE.
10584 * regcache.c (supply_register): Update only call.
10585
f015b2e7
AC
105862002-01-14 Andrew Cagney <ac131313@redhat.com>
10587
10588 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10589 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10590 a29k-*-vxworks* targets as obsolete.
10591
356ae49d
MS
105922002-01-14 Michael Snyder <msnyder@redhat.com>
10593
10594 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10595 until we can resolve portability issues.
10596 * gregset.h: Remove references to fpxregs.
10597 * gcore.c (gcore_command): Initialize note_sec to NULL.
10598
ade8f45e
AC
105992002-01-13 Andrew Cagney <ac131313@redhat.com>
10600
10601 * signals.c (target_signal_to_name): Rewrite. Only use
10602 signals[].name when in bounds and non-NULL.
abf22e64 10603
89c49e7a
AC
106042002-01-13 Andrew Cagney <ac131313@redhat.com>
10605
10606 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10607 * signals.c (target_signal_to_name): Verify that SIG is within the
10608 bounds of the signals array.
10609
4daa9f9f
AC
106102002-01-13 Andrew Cagney <ac131313@redhat.com>
10611
10612 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10613
ba4bbdcb
KS
106142002-01-13 Keith Seitz <keiths@redhat.com>
10615
10616 * stack.c (print_frame_info_base): Print the frame's pc
10617 only if when print_frame_info_listing_hook is not defined.
10618
575bbeb6
KS
106192002-01-13 Keith Seitz <keiths@redhat.com>
10620
10621 * varobj.c (varobj_set_value): Make sure that there were no
10622 errors evaluating the object before attempting to set its
10623 value.
10624 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10625 so this offset adjustment is no longer necessary.
10626 (create_child): Don't set the error flag if the child is
10627 a CPLUS_FAKE_CHILD.
10628 (value_of_child): If value_fetch_lazy fails, return NULL
10629 so that callers will be notified that an error occurred.
10630 (c_value_of_variable): Delay check of variable's validity
10631 until later. We actually want all structs and unions to have
10632 the value "{...}".
10633 Do not return "???" for variables which could not be evaluated.
10634 This error condition must be returned to the caller so that it
10635 can get the error condition from gdb.
10636 (cplus_name_of_child): Adjust index for vptr before figuring
10637 out the name of the child.
10638 (cplus_value_of_child): If a child's (real) parent is not valid,
10639 don't even bother trying to give a value for it. Just return
10640 an error. Change all instances in this function.
10641 (cplus_type_of_child): If our parent is one of the "fake"
10642 parents, we need to get at the type of the real parent, and
10643 derive the child's true type using this information.
10644
b76898ab
AC
106452002-01-13 Andrew Cagney <ac131313@redhat.com>
10646
10647 From 2002-01-09 John Marshall <johnm@falch.net>:
10648 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10649 sources.redhat.com, and tweak some related URLs which had
10650 suffered from linkrot.
10651
b6649e88
AC
106522002-01-13 Andrew Cagney <ac131313@redhat.com>
10653
10654 From Jeff law:
10655 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10656 structures passed in registers.
10657
82cc5033
EZ
106582002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10659
10660 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10661 white space which prevented compilation. Reported by DSK
10662 <dsk@student.unsw.edu.au>.
10663
ba5f2f8a
MS
106642002-01-11 Michael Snyder <msnyder@redhat.com>
10665
fbd35540
MS
10666 * symfile.c (build_section_addr_info_from_section_tab):
10667 Use bfd access method instead of manipulating bfd directly.
10668 (syms_from_objfile): Ditto.
10669 (simple_overlay_update_1): Ditto.
10670 (simple_overlay_update): Ditto.
10671 (generic_load): Ditto.
10672 (overlay_unmapped_address): FIXME comment, bfd access methods.
10673 (sections_overlap): FIXME comment, bfd access methods.
10674 (pc_in_mapped_range): FIXME comment, bfd access methods.
10675 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10676 (section_is_mapped): FIXME comment, bfd access methods.
10677 (section_is_overlay): FIXME comment, bfd access methods.
10678
ba5f2f8a
MS
10679 * symfile.c (generic_load): Whitespace and long line cleanups.
10680 Remove duplicate variable, change several local variables to
10681 more appropriate data types.
10682 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10683
17df2af6
AC
106842002-01-12 Andrew Cagney <ac131313@redhat.com>
10685
10686 From Peter Schauer:
10687 * language.c (longest_local_hex_string_custom): Use phex_nz to
10688 convert NUM to a hex string.
10689
ec920329
EZ
106902002-01-12 Elena Zannoni <ezannoni@redhat.com>
10691
10692 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10693 the function.
538a76d6 10694 Update Copyright year.
ec920329 10695
3abd2e01
AC
106962002-01-12 Andrew Cagney <ac131313@redhat.com>
10697
10698 * language.c (longest_raw_hex_string): Delete unused function.
10699
b21b22e0
PS
107002002-01-11 Petr Sorfa <petrs@caldera.com>
10701
10702 * MAINTAINERS (write-after-approval): Add myself.
10703 * dwarf2read.c (read_tag_string_type): Handling of
10704 DW_AT_byte_size.
10705 (read_tag_string_type): FORTRAN fix to prevent propagation of
10706 first string size.
10707 (set_cu_language): Handling of DW_LANG_Fortran95
10708
747fe712
RE
107092002-01-11 Richard Earnshaw <rearnsha@arm.com>
10710
10711 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10712 GETPID(inferior_ptid).
10713 (store_inferior_registers): Likewise.
10714
f1bea926
JM
107152002-01-10 Jason Merrill <jason@redhat.com>
10716
10717 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10718 Fix DW_OP_minus.
10719
ae940673
AC
107202002-01-10 Andrew Cagney <ac131313@redhat.com>
10721
10722 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10723 and bfd/elf32-sh-nbsd.c.
10724
00546b04
MS
107252002-01-10 Michael Snyder <msnyder@redhat.com>
10726
352ed7b4
MS
10727 * NEWS: Mention --pid and corefile/proc-id behavior change.
10728
c18be923
MS
10729 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10730 * gcore.c: Include cli/cli-decode.h instead of command.h.
10731
00546b04
MS
10732 * main.c (captured_main): Add new command line option "--pid".
10733 If the second command line argument (following the symbol-file)
10734 begins with a digit, try to attach to it before trying to open
10735 it as a corefile.
10736 (print_gdb_help): Document the "--pid" argument.
10737
db60ec62
EZ
107382002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10739
10740 * completer.c (command_completer): New function.
10741
10742 * completer.h <command_completer>: Add prototype.
10743
10744 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10745 completer for the "help" command.
10746
39c22d1a
JM
107472002-01-09 Jason Merrill <jason@redhat.com>
10748
10749 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10750
c564377f
MS
107512002-01-09 Michael Snyder <msnyder@redhat.com>
10752
975aec09
MS
10753 * i386-linux-nat.c (fill_fpxregset): Make global.
10754 (store_fpxregset): Ditto.
10755
db4a10fa
MS
10756 * gregset.h (gdb_fpxregset_t): Define.
10757 (supply_fpxregset): Prototype.
10758 (fill_fpxregset): Prototype.
10759
c564377f
MS
10760 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10761
c3d45d70
RE
107622002-01-09 Richard Earnshaw <rearnsha@arm.com>
10763
10764 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10765 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10766 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10767
fcc87af1
AC
107682002-01-09 Andrew Cagney <ac131313@redhat.com>
10769
10770 * MAINTAINERS: Update target maintainer rules so that any
10771 Maintainer can approve a tested patch for a maintenance-only
10772 target.
10773
dd96c05b
RE
107742002-01-09 Richard Earnshaw <rearnsha@arm.com>
10775
d4297db9 10776 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10777
d4297db9 10778 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10779 IN_SIGTRAMP.
10780
145fdc6e
MS
107812002-01-08 Michael Snyder <msnyder@redhat.com>
10782
10783 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10784 real name of the executable, rather than the /proc name.
10785
be4d1333
MS
107862002-01-03 Michael Snyder <msnyder@redhat.com>
10787
10788 Implement a "generate-core-file" command in gdb, save target state.
10789 * gcore.c: New file. Implement new command 'generate-core-file'.
10790 Save a corefile image of the current state of the inferior.
10791 * linux-proc.c: Add linux-specific code for saving corefiles.
10792 * target.h (struct target_ops): Add new target vectors for saving
10793 corefiles; to_find_memory_regions and to_make_corefile_notes.
10794 (target_find_memory_regions): New macro.
10795 (target_make_corefile_notes): New macro.
10796 * target.c (update_current_target): Inherit new target methods.
10797 (dummy_find_memory_regions): New place-holder method.
10798 (dummy_make_corefile_notes): New place-holder method.
10799 (init_dummy_target): Initialize new dummy target vectors.
10800 * exec.c (exec_set_find_memory_regions): New function.
10801 Allow the exec_ops vector for memory regions to be taken over.
10802 (exec_make_note_section): New function, target vector method.
10803 * defs.h (exec_set_find_memory_regions): Export prototype.
10804 * procfs.c (proc_find_memory_regions): New function, corefile method.
10805 (procfs_make_note_section): New function, corefile method.
10806 (init_procfs_ops): Set new target vector pointers.
10807 (find_memory_regions_callback): New function.
10808 (procfs_do_thread_registers): New function.
10809 (procfs_corefile_thread_callback): New function.
10810 * sol-thread.c (sol_find_memory_regions): New function.
10811 (sol_make_note_section): New function.
10812 (init_sol_thread_ops): Initialize new target vectors.
10813 * inftarg.c (inftarg_set_find_memory_regions): New function.
10814 Allow to_find_memory_regions vector to be taken over.
10815 (inftarg_set_make_corefile_notes): New function.
10816 Allow to_make_corefile_notes vector to be taken over.
10817 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10818 interface layer if not target_has_execution (may be a corefile).
10819 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10820 * config/sparc/sun4sol2.mh: Ditto.
10821 * config/alpha/alpha-linux.mh: Ditto.
10822 * config/arm/linux.mh: Ditto.
10823 * config/i386/x86-64linux.mh: Ditto.
10824 * config/ia64/linux.mh: Ditto.
10825 * config/m68k/linux.mh: Ditto.
10826 * config/mips/linux.mh: Ditto.
10827 * config/powerpc/linux.mh: Ditto.
10828 * config/sparc/linux.mh: Ditto.
10829
c6b92abd
MS
108302002-01-07 Michael Snyder <msnyder@redhat.com>
10831
10832 * arm-linux-nat.c: Remove references to regcache.c internal data
10833 (registers[] and register_valid[]).
10834
4b09dc8c
MS
108352002-01-07 Michael Snyder <msnyder@redhat.com>
10836
abf22e64
AJ
10837 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10838 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10839 symbol file and shlibs.
10840 * Makefile.in: Add rule for linux-proc.o.
10841 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10842 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10843 * config/arm/linux.mh: Ditto.
10844 * config/i386/linux.mh: Ditto.
10845 * config/i386/x86-64linux.mh: Ditto.
10846 * config/ia64/linux.mh: Ditto.
10847 * config/m68k/linux.mh: Ditto.
10848 * config/mips/linux.mh: Ditto.
10849 * config/powerpc/linux.mh: Ditto.
10850 * config/sparc/linux.mh: Ditto.
10851
c25b74ac
PM
108522002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10853
10854 * win32-nat.c: Add i386-tdep.h dependency.
10855
94cd915f
MS
108562002-01-07 Michael Snyder <msnyder@redhat.com>
10857
c7cccb76
MS
10858 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10859 instead of bfd_get_arch_size. Don't bail out just because
10860 there's no exec_bfd.
abf22e64 10861
34c0bd93
MS
10862 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10863 * p-valprint.c (pascal_object_print_value): Ditto.
10864 * somread.c (som_symtab_read): Ditto.
10865 * symfile.c (simple_free_overlay_region_table): Ditto.
10866 * valops.c (value_assign): Ditto.
10867
21c1c920
MS
10868 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10869 use tilde_expand and strerror for opening save-tracepoints file.
10870
5bbd998e
MS
10871 * thread-db.c (thread_db_new_objfile): Indendation fix.
10872
94cd915f
MS
10873 * infptrace.c (GDB_MAX_ALLOCA): New define.
10874 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10875 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10876 can be overridden with whatever value is appropriate to the host).
10877 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10878 alloca to allocate potentially large buffer.
10879 * rs6000-nat.c (child_xfer_memory): Ditto.
10880 * symm-nat.c (child_xfer_memory): Ditto.
10881 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10882
494e8a93
JSC
108832002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10884
10885 From Nick Clifton <nickc@redhat.com>
10886 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10887
d0e1d48e
MS
108882002-01-07 Michael Snyder <msnyder@redhat.com>
10889
abf22e64 10890 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10891 Don't use exec_bfd if it's NULL.
10892
290b2c7a
MK
108932002-01-06 Mark Kettenis <kettenis@gnu.org>
10894
abf22e64 10895 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10896
aef21287
AC
108972002-01-06 Andrew Cagney <ac131313@redhat.com>
10898
10899 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10900 * gnu-nat.c: Ditto.
10901
30efa627
AC
109022002-01-06 Andrew Cagney <ac131313@redhat.com>
10903
10904 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10905 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10906 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10907 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10908 z8k-coff have not been multi-arched. Update z8k-coff build
10909 status.
10910
9b4ff276
AC
109112002-01-06 Andrew Cagney <ac131313@redhat.com>
10912
10913 * MAINTAINERS: Mark a29k target as obsolete.
10914 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10915 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10916 comments.
10917 * NEWS: Note that a29k targets are obsolete.
10918 * a29k-tdep.c: Mark as obsolete.
10919 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10920 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10921 a29k-*-vxworks* targets as obsolete.
10922 * remote-adapt.c: Obsolete.
10923 * remote-eb.c: Obsolete.
10924 * remote-mm.c: Obsolete.
10925 * remote-udi.c: Obsolete.
10926 * config/a29k/a29k-udi.mt: Obsolete.
10927 * config/a29k/a29k.mt: Obsolete.
10928 * config/a29k/tm-a29k.h: Obsolete.
10929 * config/a29k/tm-vx29k.h: Obsolete.
10930 * config/a29k/vx29k.mt: Obsolete.
10931
a9011d31
AC
109322002-01-05 Andrew Cagney <ac131313@redhat.com>
10933
10934 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10935 with BFD_ENDIAN_BIG.
10936
9299404e
AC
109372002-01-05 Andrew Cagney <ac131313@redhat.com>
10938
10939 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10940 * configure, config.in: Re-generate.
10941 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10942 * defs.h: Do not include <endian.h>.
10943
7e89e357
JT
109442002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10945
10946 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10947 * config.in: Regenerate.
10948 * configure.in: Update copyright years.
10949 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10950 * configure: Regenerate.
10951 * i386bsd-nat.c: Update copyright years.
10952 (fill_gregset): Use regcache_collect.
10953 (fetch_inferior_registers): Only fetch integer registers
10954 if requested to do so. Add support for XMM registers
10955 using PT_GETXMMREGS.
10956 (store_inferior_registers): Only store integer registers
10957 if requested to do so. Add support for XMM registers
10958 using PT_SETXMMREGS.
10959 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10960 (store_inferior_registers): Remove.
10961 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10962 (fetch_elfcore_registers): New function.
10963 (i386nbsd_elfcore_fns): New.
10964 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10965 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10966 i386bsd-nat.o.
10967 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10968 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10969 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10970 * config/i386/tm-nbsd.h: Update copyright years.
10971 (HAVE_SSE_REGS): Define.
10972 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10973 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10974 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10975 (SIGCONTEXT_PC_OFFSET): Remove.
10976 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10977
a752853e
AC
109782002-01-05 Andrew Cagney <ac131313@redhat.com>
10979
10980 * configure.tgt: Remove powerpc-*-macos* target.
10981 * config/m68k/xm-mpw.h: Delete file.
10982 * config/xm-mpw.h: Delete file.
10983 * ser-mac.c: Delete file.
10984 * mpw-make.sed: Delete file.
10985 * mpw-config.in: Delete file.
10986 * mac-xdep.c: Delete file.
10987 * mac-gdb.r: Delete file.
10988 * mac-defs.h: Delete file.
10989 * mac-nat.c: Delete file.
10990 * config/powerpc/macos.mh: Delete file.
10991 * config/powerpc/macos.mt: Delete file.
10992 * config/powerpc/nm-macos.h: Delete file.
10993 * config/powerpc/tm-macos.h: Delete file.
10994 * source.c (openp, open_source_file): Remove obsolete code.
10995 * top.c (gdb_readline): Ditto.
10996 * utils.c (query): Ditto.
10997 * event-top.c (display_gdb_prompt): Ditto.
10998 * Makefile.in (ser-mac.o): Delete obsolete target.
10999 * NEWS: Update.
11000
d7449b42
AC
110012002-01-04 Andrew Cagney <ac131313@redhat.com>
11002
11003 * defs.h (BIG_ENDIAN): Delete macro definition.
11004 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11005 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11006 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11007 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11008 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11009 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11010 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11011 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11012 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11013 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11014 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11015 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11016 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11017 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11018 * gdbarch.c: Re-generate.
11019
356374e8
DJ
110202002-01-04 Daniel Jacobowitz <drow@mvista.com>
11021
11022 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11023 for core files.
11024
a2b8f8f8
JT
110252002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11026
11027 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11028
12466af9
AC
110292002-01-04 Andrew Cagney <ac131313@redhat.com>
11030
11031 * value.h (value_ptr): Delete typedef.
11032
3549ab40
JT
110332002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11034
11035 * i386nbsd-nat.c: Update copyright years.
11036 Include i386-tdep.h.
11037
fedbd091
EZ
110382002-01-04 Elena Zannoni <ezannoni@redhat.com>
11039
11040 * stabsread.c: Update copyright years.
11041
11042 From Debashis Mahata <debashis.mahata@wipro.com>:
11043 (read_struct_fields): Deal with Sun C compiler erroneous stab
11044 output for structs and unions.
fec8b34f 11045 Fix PR gdb/269.
fedbd091 11046
eb43544b
DJ
110472002-01-04 Daniel Jacobowitz <drow@mvista.com>
11048
11049 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11050 prototype.
11051
1514d34e
DJ
110522002-01-04 Daniel Jacobowitz <drow@mvista.com>
11053
11054 * cp-abi.c: Fix whitespace.
11055 (baseclass_offset): New wrapper function.
11056 * cp-abi.h (baseclass_offset): Add prototype.
11057 (struct cp_abi_ops): Add baseclass_offset pointer.
11058
11059 * valops.c (vb_match): Move to...
11060 * gnu-v2-abi.c (vb_match): here.
11061 * valops.c (baseclass_offset): Move to...
11062 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11063
11064 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11065
11066 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11067 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11068 * hpacc-abi.c (init_hpacc_ops): Likewise.
11069
7f8c9282
DJ
110702002-01-04 Daniel Jacobowitz <drow@mvista.com>
11071
11072 * valops.c (find_overload_match): Accept obj as a
11073 reference parameter. Update it before returning.
11074 * value.h (find_overload_match): Update prototype.
11075 * eval.c (evaluate_subexp_standard): Pass object to
11076 find_overload_match by reference.
11077
f23631e4
AC
110782002-01-03 Andrew Cagney <ac131313@redhat.com>
11079
11080 * valarith.c: Replace value_ptr with struct value pointer. Remove
11081 register attribute from value declarations.
11082 * valops.c: Ditto.
11083 * value.h: Ditto.
11084 * scm-lang.c (scm_lookup_name): Ditto.
11085
79e10fab 110862002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11087
79e10fab
AC
11088 Abstract the functionality of iterating over mapped memory
11089 regions into a general purpose iterator function.
abf22e64 11090 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11091 iterator for memory sections.
11092 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11093 (solib_mappings_callback): New function, callback for above.
11094 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11095 (info_mappings_callback): New function, callback for above.
11096
11097 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11098
c5ad026a
MK
110992002-01-01 Mark Kettenis <kettenis@gnu.org>
11100
d2a7c97a
MK
11101 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11102 * i386-tdep.c: Include "elf-bfd.h".
11103 (process_note_abi_tag_sections): New function.
11104 (i386_gdbarch_init): Add code to recognize various OS/ABI
11105 combinations.
11106
c5ad026a
MK
11107 * maint.c (_initialize_maint_cmds): Add missing \ in
11108 string-literal.
11109
a1a5b71e 11110For older changes see ChangeLog-2001
c906108c
SS
11111\f
11112Local Variables:
11113mode: change-log
11114left-margin: 8
11115fill-column: 74
11116version-control: never
11117End:
This page took 0.807203 seconds and 4 git commands to generate.