* elf64-mips.c (mips_elf64_be_swap_reloca_out): Handle type2 and type3.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a094c6fb
AC
12002-09-17 Andrew Cagney <ac131313@redhat.com>
2
3 * NEWS: Mention that MIPS $fp behavior changed.
4 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
5 reference to FP_REGNUM.
6 (mipsnbsd_cannot_store_register): Ditto.
7 * mips-linux-nat.c: Update copyright.
8 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
9 (mips_linux_cannot_store_register): Ditto.
10 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
11 * config/mips/tm-mips.h: Update copyright.
12 (FP_REGNUM): Delete macro.
13 (MIPS_REGISTER_NAMES): Replace "fp" with "".
14 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
15 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
16 (mips_r3041_reg_names, mips_r3051_reg_names)
17 (mips_r3081_reg_names): Replace "fp" with "".
18 Fix PR gdb/480.
19
45cf40d1
TR
202002-09-17 Theodore A. Roth <troth@verinet.com>
21
22 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
23 generic_read_register_dummy() (PR gdb/703).
24 (avr_push_return_address): #if 0 out unused vars.
25 (avr_gdbarch_init): Enable use of avr_push_return_address().
26
c7e701b5
MS
272002-09-17 Michael Snyder <msnyder@redhat.com>
28
d76ba2a5 29 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
30 RTE will take care of it.
31
20bcf01c
AC
322002-09-17 Andrew Cagney <ac131313@redhat.com>
33
34 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
35 invalid, return SP_REGNUM.
36
009a9971 372002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
38
39 * mips-tdep.c (mips_pop_frame): Read saved values of floating
40 point registers without sign extension.
41
135c175f
AC
422002-09-17 Andrew Cagney <cagney@redhat.com>
43
44 * blockframe.c (deprecated_read_register_dummy): Rename
45 generic_read_register_dummy.
46 * frame.c (frame_unwind_signed_register): New function.
47 (frame_unwind_unsigned_register): New function.
48 * frame.h (frame_unwind_signed_register): Declare.
49 (frame_unwind_unsigned_register): Declare.
50 (deprecated_read_register_dummy): Rename
51 generic_read_register_dummy.
52
53 * h8300-tdep.c (h8300_frame_chain): Update.
54 (h8300_frame_saved_pc): Update.
55 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
56 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
57 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
58 (s390_frame_chain): Update.
59 * v850-tdep.c (v850_find_callers_reg): Update.
60 (v850_frame_saved_pc): Update.
61 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
62 (m32r_find_callers_reg): Update.
63 (m32r_frame_saved_pc): Update.
64 * sh-tdep.c (sh_find_callers_reg): Update.
65 (sh64_get_saved_pr): Update.
66 (sh_init_extra_frame_info): Update.
67 (sh_init_extra_frame_info): Update.
68 (sh64_init_extra_frame_info): Update.
69 (sh64_init_extra_frame_info): Update.
70 * mcore-tdep.c (mcore_find_callers_reg): Update.
71 (mcore_frame_saved_pc): Update.
72 (mcore_init_extra_frame_info): Update.
73 * i386-tdep.c (i386_frame_saved_pc): Update.
74 * ia64-tdep.c (ia64_frame_saved_pc): Update.
75 (ia64_init_extra_frame_info): Update.
76 (ia64_init_extra_frame_info): Update.
77 * d10v-tdep.c (d10v_frame_saved_pc): Update.
78 * cris-tdep.c (cris_init_extra_frame_info): Update.
79 * avr-tdep.c (avr_frame_chain): Update.
80 (avr_init_extra_frame_info): Update.
81 (avr_frame_saved_pc): Update.
82 * arm-tdep.c (arm_find_callers_reg): Update.
83 (arm_init_extra_frame_info): Update.
84 (arm_frame_saved_pc): Update.
85
a741e514
TT
862002-09-17 Tom Tromey <tromey@redhat.com>
87
88 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
89 is "'".
90
d1a8e808
CV
912002-09-17 Corinna Vinschen <vinschen@redhat.com>
92
93 * MAINTAINERS: Remove "non multi-arched" text from h8300.
94 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
95 NEXT_PROLOGUE_INSN.
96 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
97 NEXT_PROLOGUE_INSN.
98
d9025a18
JB
992002-09-16 Joel Brobecker <brobecker@gnat.com>
100
101 * osfsolib.c: Remove file, replaced by solib-osf.c.
102 * Makefile.in: Remove compilation rules for osfsolib.c.
103
1b2ef1b6
DC
1042002-09-16 David Carlton <carlton@math.stanford.edu>
105
106 * cp-valprint.c (cp_print_class_method): Correct args to
107 check_stub_method_group.
108
928e48af
CV
1092002-09-16 Corinna Vinschen <vinschen@redhat.com>
110
111 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
112 `set architecture'. Unify naming convention of functions.
113 (h8300_skip_prologue): Improve prologue analysis.
114 (h8300_push_arguments): Rewritten to more closely match GCC's
115 bizarre argument-passing behavior, along with the comment describing
116 said behavior.
117 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
118 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
119 sim, remote-e7000.c, remote-hms.c and remote.c
120
5e3397bb
MK
1212002-09-15 Mark Kettenis <kettenis@gnu.org>
122
123 * i386-tdep.c (gdb_print_insn_i386): Removed.
124 (i386_print_insn): New function.
125 (i386_gdbarch_init): Set print_insn to i386_print_insns.
126 (_initialize_i386_tdep): Don't initialize tm_print_insn and
127 tm_print_insn_info.
128
f710f4fc
MK
1292002-09-14 Mark Kettenis <kettenis@gnu.org>
130
131 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
132 zero.
133
db54fef4
CV
1342002-09-14 Corinna Vinschen <vinschen@redhat.com>
135
136 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
137 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
138 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
139
2becadee
CF
1402002-09-13 Christopher Faylor <cgf@redhat.com>
141
142 * win32-nat.c (child_create_inferior): Honor 'tty' command.
143
de17c821
DJ
1442002-09-13 Daniel Jacobowitz <drow@mvista.com>
145
146 * gdbtypes.c (check_stub_method): Make static.
147 (check_stub_method_group): New function.
148 * gdbtypes.h: Update prototypes.
149 * cp-support.c: New file.
150 * cp-support.h: New file.
151
152 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
153 (update_method_name_from_physname): New function.
154 (read_member_functions): Correct method names for operators
155 and v3 constructors/destructors. Separate v2 constructors and
156 destructors.
157 * Makefile.in (stabsread.o): Update dependencies.
158 (SFILES): Add cp-support.c.
159 (COMMON_OBS): Add cp-support.o.
160 (cp_support_h, cp-support.o): Add.
161
162 * cp-valprint.c (cp_print_class_method): Call
163 check_stub_method_group instead of check_stub_method. Remove
164 extraneous QUITs.
165 * p-valprint.c (pascal_object_print_class_method): Likewise.
166 * valops.c (search_struct_method): Likewise.
167 (find_method_list, value_struct_elt_for_reference): Likewise.
168
e76cff22
AC
1692002-09-13 Andrew Cagney <cagney@redhat.com>
170
171 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
172 * gdbarch.h, gdbarch.c: Regenerate.
173
905abb3f
AC
1742002-09-13 Andrew Cagney <ac131313@redhat.com>
175
176 * frame.c (find_saved_register): Delete function.
177 * frame.h (find_saved_register): Delete declaration.
178 Fix PR gdb/631.
179
64159455
AC
180Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
181
182 * mips-tdep.c (read_next_frame_reg): Re-hack using
183 frame_register_unwind.
184
795e1e11
AC
185Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
186
187 * mips-tdep.c (mips_get_saved_register): Re-hack using
188 frame_register_unwind.
189
5720643c
JB
1902002-09-12 Joel Brobecker <brobecker@gnat.com>
191
192 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
193 vector. Will be useful for Interix.
194 * gdbarch.h, gdbarch.c: Regenerate.
195
196 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
197 name of the malloc function by NAME_OF_MALLOC.
198
3bada2a2
JB
1992002-09-12 Joel Brobecker <brobecker@gnat.com>
200
201 * value.h (find_function_in_inferior): Add const keyword to
202 one of the parameters. Allows us to invoke this function with
203 a const char *.
204 * valops.c (find_function_in_inferior): Likewise.
205
3db26b01
JB
2062002-09-12 Joel Brobecker <brobecker@gnat.com>
207
208 * exec.c (xfer_memory): Fix compilation warning with old versions
209 of GCC.
210 * tracepoint.c (trace_find_tracepoint_command): Likewise.
211
17c5ed2c
DC
2122002-09-12 David Carlton <carlton@math.stanford.edu>
213
214 * symtab.h: Run through gdb_indent.h.
215 Add 2002 to Copyright year list.
216
ecd1107e
AM
2172002-09-12 Alan Modra <amodra@bigpond.net.au>
218
219 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
220 mach constants.
221 * MAINTAINERS: Add myself to write after approval list.
222
e64f66d1
JB
2232002-09-11 J. Brobecker <brobecker@gnat.com>
224
225 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
226
f9395794
JB
2272002-09-11 J. Brobecker <brobecker@gnat.com>
228
229 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
230 Interix.
231
1a303dec
MS
2322002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
233
234 * procfs.c (do_detach): Clear current signal, not just fault.
235 Corrects problem with breakpoint trap signal leaking to detached
236 process on Tru64.
237
c0219d42
MS
2382002-09-10 Michael Snyder <msnyder@redhat.com>
239
240 * buildsym.c (finish_block): Protect against null pointer.
241
9d84ac84
AC
2422002-09-10 Andrew Cagney <cagney@redhat.com>
243
244 * infcmd.c (default_print_registers_info): Send all output to
245 ``file'' instead of ``gdb_stdout''.
246
77d8f2b4
MS
2472002-09-10 Michael Snyder <msnyder@redhat.com>
248
249 * mips-tdep.c (mips_extract_struct_value_address): Make val a
250 LONGEST, and use signed register read (addresses are sign-
251 extended for mips).
252
99656a61
SC
2532002-09-10 Stephane Carrez <stcarrez@nerim.fr>
254
255 * event-loop.c (gdb_do_one_event): Make public.
256 * event-loop.h (gdb_do_one_event): Declare.
257
da12f4d8
JL
2582002-09-10 Jeff Law <law@redhat.com>
259
260 * infttrace.c (child_resume): Simplify and rework to avoid
261 TT_PROC_CONTINUE.
262
d0aee0c4
FF
2632002-09-09 Fred Fish <fnf@intrinsity.com>
264
265 * printcmd.c (print_scalar_formatted): "len" is the number of
266 target bytes, NOT the number of target bits.
267
7cb3ec5e
EZ
2682002-09-09 Elena Zannoni <ezannoni@redhat.com>
269
270 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
271 * top.c (init_main): Set rl_terminal_name.
272
4dc81987
AS
2732002-09-08 Aidan Skinner <aidan@velvet.net>
274
275 * ada-lang.c (ada_array_bound, ada_type_match,
276 _initialize_ada_language): Fix K&R definitions.
277 * ada-tasks.c (get_current_task): Fix K&R definitions.
278 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
279
842330b4
CF
2802002-09-07 Christopher Faylor <cgf@redhat.com>
281
282 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
283 Add XP.
284
43156d82
MK
2852002-09-06 Mark Kettenis <kettenis@gnu.org>
286
66da5fd8
MK
287 * i386-tdep.c (i386_register_virtual_type,
288 i386_register_convertible, i386_register_convert_to_virtual,
289 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
290 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
291 (i386_gdbarch_init): Fix comment. Add comments on calls that set
292 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
293 Don't set push_arguments twice.
294
4b218c18
MK
295 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
296 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
297 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
298 sigtramp_end to NULL.
299 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
300 defines.
301 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
302
4cc314d5
MK
303 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
304 whitespace.
305
43156d82
MK
306 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
307 * gdbarch.h, gdbarch.c: Re-generate.
308 * blockframe.c (find_pc_sect_partial_function): Convert to use
309 SIGTRAMP_START_P predicate.
310
6672060b
MS
3112002-09-05 Michael Snyder <msnyder@redhat.com>
312
a90c3637
MS
313 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
314 generic_dummy_frame method and old method. Also distinguish
315 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 316 (arm_extract_return_value): Use new regcache method.
a90c3637 317
6672060b
MS
318 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
319 adjustment that doesn't conform to the ABI.
320 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
321 saved regcache, not from current regcache.
322
299ffc64
AC
3232002-09-05 Andrew Cagney <ac131313@redhat.com>
324
325 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
326 * README: Update.
327
a3a2ee65
JT
3282002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
329
330 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
331 if arm_apcs_32 is false.
332
2bc7eea9
AC
3332002-09-04 Andrew Cagney <ac131313@redhat.com>
334
335 GDB 5.3 branch created.
336
8a55a7c5
TR
3372002-09-03 Theodore A. Roth <troth@verinet.com>
338
339 * gdb/avr-tdep.c (avr_gdbarch_init): Use
340 generic_unwind_get_saved_register.
341
e26fb1d7
DC
3422002-09-03 David Carlton <carlton@math.stanford.edu>
343
344 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
345 argument (PR gdb/653). Update call to smash_to_method_type.
346 (read_structure_scope): Update call to dwarf2_add_member_fn.
347
30d52491
ML
3482002-09-03 Michal Ludvig <mludvig@suse.cz>
349
350 * x86-64-linux-tdep.c: Include gdb_string.h
351 * x86-64-linux-nat.c: Ditto.
352
06891d83
JT
3532002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
354
355 * ada-exp.y (yyname, yyrule): Remap global variables that appear
356 when YYDEBUG is set to 1.
357 * c-exp.y: Likewise.
358 * f-exp.y: Likewise.
359 * jv-exp.y: Likewise.
360 * m2-exp.y: Likewise.
361 * p-exp.y: Likewise.
362
7d400e77
JT
3632002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
364
365 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
366 dependency list.
367 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
368 solib_svr4_fetch_link_map_offsets to
369 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
370 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
371 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
372 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
373 solib-svr4.o, and solib-legacy.o.
374 * config/i386/tm-nbsd.h: Include solib.h.
375
704a27c4
JT
3762002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
377
378 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
379 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
380 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
381 comment noting that this needs its own target configuration.
382 * config/i386/nbsd.mt: New file.
383 * config/i386/nbsdaout.mt: Remove.
384 * config/i386/nbsdelf.mt: Ditto.
385 * config/i386/tm-nbsdaout.h: Ditto.
386
d66198e1
JT
3872002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
388
389 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
390 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
391 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
392 tdep->sigtramp_end.
393 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
394 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
395 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
396
3cac699e
JT
3972002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
398
399 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
400 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
401 * i386-tdep.h (i386bsd_init_abi): New prototype.
402 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
403 function declaration.
404 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
405 for NetBSD-a.out or NetBSD-ELF.
406 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
407 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
408 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
409 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
410 and nbsd-tdep.h.
411 (i386nbsd_pc_in_sigtramp): New function.
412 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
413 i386nbsd_pc_in_sigtramp.
414 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
415 and i386nbsdelf_init_abi OS ABI handlers.
416 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
417 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
418
7010ca0a
MK
4192002-09-02 Mark Kettenis <kettenis@gnu.org>
420
421 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
422 registers if the target really has them.
423
6dd93b72
JT
4242002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
425
426 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
427 than nbsd-tdep.h.
428
2ca8ae21
JT
4292002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
430
431 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
432 list.
433 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
434 (alphanbsd_skip_sigtramp_frame): New functions.
435 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
436 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
437 to alphanbsd_sigcontext_addr.
438
3d9b49b0
JT
4392002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
440
441 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
442 list.
443 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
444 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
445 nbsd_pc_in_sigtramp.
446 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
447 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
448 * nbsd-tdep.c: Include gdb_string.h.
449 (nbsd_pc_in_sigtramp): New function.
450 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
451 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
452 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
453 ppcnbsd_pc_in_sigtramp.
454 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
455 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
456 shnbsd_pc_in_sigtramp.
457 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
458 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
459 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
460
c860120c
PM
4612002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
462
463 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
464 watchpoints to NULL.
465 (insert_breakpoints): set val field of watchpoints if NULL.
466
467
c7612d53
JB
4682002-08-29 Jim Blandy <jimb@redhat.com>
469
470 * symtab.c (lookup_symbol_aux): In the cases where we find a
471 minimal symbol of an appropriate name and use its address to
472 select a symtab to read and search, use `name' (as passed to us)
473 as the demangled name when searching the symtab's global and
474 static blocks, not the minsym's name.
475
66609862
KS
4762002-08-29 Keith Seitz <keiths@redhat.com>
477
478 * stack.c (print_frame_info_base): Always set current_source_symtab
479 and current_source_line.
480
151fefe2
JB
4812002-08-29 Donn Terry <donnte@microsoft.com>
482
483 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
484
bfb3754e
KS
4852002-08-28 Keith Seitz <keiths@redhat.com>
486
487 * stack.c (select_frame): Add FIXME concerning selected-frame
488 events.
489 (select_frame_command): Send selected-frame-level-changed
490 event notification, but only if the level actually changed.
491 (up_silently_base): Add selected-frame-level-changed event
492 notification.
493 (down_silently_base): Likewise.
494
e822a2a0
AC
4952002-08-28 Andrew Cagney <ac131313@redhat.com>
496
497 * Makefile.in: Update dependencies for all gdb/*.c files.
498
309367d4
TT
4992002-08-27 Tom Tromey <tromey@redhat.com>
500
501 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
502 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
503 Update dependencies.
504 * i387-tdep.c: Include gdb_string.h.
505 * osabi.c: Likewise.
506 * i386-linux-nat.c: Likewise.
507 * lin-lwp.c: Likewise.
508 * ax-gdb.c: Likewise.
509 * signals/signals.c: Likewise.
510 * jv-valprint.c: Likewise.
511 * p-lang.c: Likewise.
512 * c-valprint.c: Likewise.
513 * cp-abi.c: Likewise.
514
e1507482
EZ
5152002-08-27 Elena Zannoni <ezannoni@redhat.com>
516
517 * cli/cli-script.h (copy_command_lines): Export.
518 * breakpoint.c: Include cli/cli-script.h.
519 * Makefile.in (breakpoint.o): Update dependencies.
520
c6510018
MS
5212002-08-26 Michael Snyder <msnyder@redhat.com>
522
523 * breakpoint.c (insert_breakpoints): Protect all references
524 to 'process_warning'. Shorten long lines.
525
c2b8ed2c
MS
5262002-08-26 Joel Brobecker <brobecker@gnat.com>
527
528 * cli/cli-script.c (copy_command_lines): New function.
529 * defs.h (copy_command_lines): Export.
530 * testsuite/gdb.base/commands.exp: New tests for commands
531 attached to a temporary breakpoint, and for commands that
532 delete the breakpoint they are attached to.
533
5342002-08-26 Michael Snyder <msnyder@redhat.com>
535
536 * breakpoint.c (bpstat_stop_status): Instead of copying the
537 pointer to the breakpoint commands struct, make a new copy
538 of the struct and point to that.
539 (bpstat_clear): Free the commands struct.
540 (bpstat_clear_actions): Free the commands struct.
541 (bpstat_do_actions): Free the command actions. Also execute
542 the local cleanups, instead of deleting them.
543 (delete_breakpoint): Leave the commands field of the bpstat
544 chain alone -- it will be freed later.
545
64b84175
KB
5462002-08-26 Kevin Buettner <kevinb@redhat.com>
547
548 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
549 deleted in 2002-08-20 commit. This function is still used by
550 ppc-linux-nat.c.
551
55970da6
KS
5522002-08-26 Keith Seitz <keiths@redhat.com>
553
554 * gdb-events.sh: Add selected-frame-level-changed event.
555 * gdb-events.c: Regenerated.
556 * gdb-events.h: Regenerated.
557
a790ad35
SC
5582002-08-26 Stephane Carrez <stcarrez@nerim.fr>
559
560 Fix PR gdb/393:
561 * inflow.c (terminal_save_ours): New function to save terminal
562 settings.
563 * inferior.h (terminal_save_ours): Declare.
564 * target.c (debug_to_terminal_save_ours): New function.
565 (cleanup_target): Defaults to_terminal_save_ours.
566 (update_current_target): Inherit to_terminal_save_ours.
567 (setup_target_debug): Set to_terminal_save_ours.
568 * target.h (target_terminal_save_ours): New to save terminal settings.
569 (target_ops): New member to_terminal_save_ours.
570 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
571 * hpux-thread.c (init_hpux_thread_ops): Likewise.
572 * inftarg.c (init_child_ops): Likewise.
573 * m3-nat.c (init_m3_ops): Likewise.
574 * procfs.c (init_procfs_ops): Likewise.
575 * wince.c (init_child_ops): Likewise.
576 * win32-nat.c (init_child_ops): Likewise.
577 * sol-thread.c (init_sol_thread_ops): Likewise.
578
c00dcbe9
MK
5792002-08-26 Mark Kettenis <kettenis@gnu.org>
580
3d7f4f49
MK
581 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
582 use regcache_* functions.
583 (i386_gdbarch_init): Set store_return_value instead of
584 deprecated_store_return_value.
585
c00dcbe9
MK
586 * regcache.c (regcache_raw_write_signed,
587 regcache_raw_write_unsigned): New functions.
588 * regcache.h (regcache_raw_write_signed,
589 regcache_raw_write_unsigned): New prototypes.
590
0e0d15ca
AC
5912002-08-25 Andrew Cagney <ac131313@redhat.com>
592
593 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
594 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
595 source file dependencies. Cleanup corresponding generator rules.
596
d3b22ed5
AC
5972002-08-25 Andrew Cagney <ac131313@redhat.com>
598
599 * regcache.h (register_offset_hack): Declare.
600 (regcache_cooked_read_using_offset_hack): Declare.
601 (regcache_cooked_write_using_offset_hack): Declare.
602
603 * regcache.c (register_offset_hack): New function.
604 (regcache_cooked_read_using_offset_hack): New function.
605 (regcache_cooked_write_using_offset_hack): New function.
606 (regcache_dump): Check that the registers, according to their
607 offset, are packed hard against each other.
608 (cooked_xfer_using_offset_hack): New function.
609
bb425013
AC
6102002-08-25 Andrew Cagney <ac131313@redhat.com>
611
612 * regcache.c (struct regcache_descr): Add field register_type.
613 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
614 in as a parameter
615 (init_regcache_descr): Initialize register_type. Pass the descr
616 to init_legacy_regcache_descr. Use register_type instead of
617 REGISTER_VIRTUAL_TYPE.
618 (register_type): New function.
619 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
620 * regcache.h (register_type): Declare.
621
d0403e00
AC
6222002-08-25 Andrew Cagney <ac131313@redhat.com>
623
624 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
625 instead of deprecated_store_return_value. Fix fallout from
626 2002-08-23 Andrew Cagney <cagney@redhat.com>.
627
0ed04cce
AC
6282002-08-25 Andrew Cagney <ac131313@redhat.com>
629
630 * regcache.c (max_register_size): New function.
631 (init_legacy_regcache_descr): Ensure that max_register_size is
632 large enough for REGISTER_VIRTUAL_SIZE.
633 * regcache.h (max_register_size): Declare.
634
46d79c04
AC
6352002-08-24 Andrew Cagney <ac131313@redhat.com>
636
637 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
638 store_return_value.
639 (e500_extract_return_value): Change type of valbuf pointer to
640 void.
641
853c7bd0
MK
6422002-08-24 Mark Kettenis <kettenis@gnu.org>
643
cd87e769
MK
644 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
645 workaround.
646
853c7bd0
MK
647 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
648 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
649 long long) to prevent compiler warning on 64-bit systems.
650
ebba8386
AC
6512002-08-23 Andrew Cagney <cagney@redhat.com>
652
653 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
654 (DEPRECATED_STORE_RETURN_VALUE): New method.
655 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
656 * gdbarch.h, gdbarch.c: Re-generate.
657
658 * values.c (set_return_value): Pass current_regcache to
659 STORE_RETURN_VALUE.
660 * arch-utils.h (legacy_store_return_value): Declare.
661 * arch-utils.c (legacy_store_return_value): New function.
662 (legacy_extract_return_value): Update parameters.
663
664 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
665 STORE_RETURN_VALUE.
666 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
667 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
668 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
669 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
670 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
671 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
672 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
673 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
674 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
675 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
676
677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
678 * i386-tdep.c (i386_extract_return_value): Update.
679 * arch-utils.c (legacy_extract_return_value): Update.
680 * frv-tdep.c (frv_gdbarch_init): Update.
681 * cris-tdep.c (cris_gdbarch_init): Update.
682 * d10v-tdep.c (d10v_gdbarch_init): Update.
683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
684 * m68k-tdep.c (m68k_gdbarch_init): Update.
685 * mcore-tdep.c (mcore_gdbarch_init): Update.
686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
687 * s390-tdep.c (s390_gdbarch_init): Update.
688 * sparc-tdep.c (sparc_gdbarch_init): Update.
689 * sh-tdep.c (sh_gdbarch_init): Update.
690 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
691 * v850-tdep.c (v850_gdbarch_init): Update.
692 * avr-tdep.c (avr_gdbarch_init): Update.
693 * ia64-tdep.c (ia64_gdbarch_init): Update.
694 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
695 * vax-tdep.c (vax_gdbarch_init): Update.
696 * alpha-tdep.c (alpha_gdbarch_init): Update.
697 * arm-tdep.c (arm_gdbarch_init): Update.
698 * mips-tdep.c (mips_gdbarch_init): Update.
699 * i386-tdep.c (i386_gdbarch_init): Update.
700
5bd8c6d0
AC
7012002-08-23 Andrew Cagney <ac131313@redhat.com>
702
703 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
704 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
705
e73e1724
MK
7062002-08-24 Mark Kettenis <kettenis@gnu.org>
707
708 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
709 problems.
710
3e6564e1
JB
7112002-08-23 Joel Brobecker <brobecker@gnat.com>
712
713 * infrun.c (handle_inferior_event): Move a comment outside of a
714 function call, in order to avoid indent reformatting this part
715 of the code in an unreadable way.
716
81d0cc19
GS
7172002-08-23 Grace Sainsbury <graces@redhat.com>
718
719 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
720 when breakpoints fail. Move general breakpoint error messages to
721 insert_breakpoints.
722 * breakpoint.c (insert_breakpoints): Change warnings when
723 breakpoints are nto inserted to specify the type. Remove call to
724 memory_error when hardware breakpoints can't be inserted. Remove
725 multiple calls to warning so all messages are sent to the user at
726 once.
727 (delete_breakpoints): Make insert error messsages more explicit.
728
17574093
DJ
7292002-08-23 Daniel Jacobowitz <drow@mvista.com>
730
731 * ChangeLog: Move gdbserver entries after GDB 5.2 to
732 gdbserver/ChangeLog.
733
8acc2935
MK
7342002-08-23 Mark Kettenis <kettenis@gnu.org>
735
dfe01d39
MK
736 * i386-tdep.c: Include "objfiles.h".
737 (i386_svr4_init_abi): Set in_solib_call_trampoline and
738 skip_trampoline_code.
739 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
740 (CPLUS_MARKER): Define to '.'.
741
8acc2935
MK
742 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
743 member.
744 (linux_corefile_thread_callback): Increase args->num_notes.
745 (linux_make_note_section): Initialize thread_args.num_notes, and
746 use it to determine whether notes for any threads were created.
747
151fefe2 7482002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
749
750 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
751 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
752 and PCUNKILL.
753 (write_with_trace): Conditionalize out the switch branch handling
754 PCSHOLD if the corresponding macro is not defined. Likewise for
755 PRSABORT and PRSTOP.
756 This change will be needed by the Interix port.
757
e1507482
EZ
7582002-08-22 Elena Zannoni <ezannoni@redhat.com>
759
760 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
761 write_register wherever possible instead of manipulating the
762 register bytes directly.
763 Assign VALUE_CONTENTS to a variable and use that.
764 The GPR numbers are now dependent on the architecture.
765
96ff0de4
EZ
7662002-08-22 Elena Zannoni <ezannoni@redhat.com>
767
768 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
769 ev_offset fields.
770 (skip_prologue): Add support for BookE/e500 instructions.
771 (e500_extract_return_value): New function.
772 (frame_get_saved_regs): Add support for saving ev registers and
773 pseudo gpr's.
774 (e500_store_return_value): New function.
775 (rs6000_gdbarch_init): Move up default intializations of
776 deprecated_extract_return_value and store_return_value. Overwrite
777 init of store_return_value with e500 specific version.
778 Set extract_return_value for e500.
779
fbefca5b
EZ
7802002-08-22 Elena Zannoni <ezannoni@redhat.com>
781
782 * blockframe.c (generic_call_dummy_register_unwind): Use
783 regcache_cooked_read to catch cases in which the variable is
784 stored in a pseudo register.
785
4d210288
AC
7862002-08-22 Andrew Cagney <cagney@redhat.com>
787
788 * NEWS: Mention that the i960 has been made obsolete.
789 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
790 i960-tdep.c
791 (remote-nrom.o): Obsolete target.
792 (remote-nindy.o, i960-tdep.o): Ditto.
793 * remote-nrom.c: Make file obsolete.
794 * remote-nindy.c, remote-vx960.c: Ditto.
795 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
796 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
797 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
798 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
799 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
800 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
801 i960-*-vxworks* obsolete.
802 * MAINTAINERS: Note that the i960 is obsolete.
803
6c0c456d
CV
8042002-08-21 Corinna Vinschen <vinschen@redhat.com
805
806 * aix-thread.c (aix_thread_detach): Disable thread debugging on
807 detach to allow reinitialization.
808
9f9d12b3
AC
8092002-08-22 Andrew Cagney <ac131313@redhat.com>
810
811 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
812 attempt).
813
ebeb39fe
JB
8142002-08-22 Jim Blandy <jimb@redhat.com>
815
816 * coffread.c (coff_symfile_read): Don't try to read the line
817 number table from disk if the image file doesn't have a symbol
818 table; we'll never actually look at the info anyway, and Windows
819 ships DLL's with bogus file offsets for the line number data.
820
5bf1c677
EZ
8212002-08-21 Elena Zannoni <ezannoni@redhat.com>
822
823 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
824 an e500 executable.
825
71b8ef93
MS
8262002-08-21 Michael Snyder <msnyder@redhat.com>
827
828 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
829 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
830 (DEFAULT_MIPS_TYPE): Delete unused macro.
831 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
832 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 833
d174216d
JB
8342002-08-21 Jim Blandy <jimb@redhat.com>
835
836 * valops.c (value_cast): Simplify and correct logic for doing a
837 static cast from a pointer to a base class to a pointer to a
838 derived class.
839
0ab7a791
AC
8402002-08-21 Andrew Cagney <ac131313@redhat.com>
841
842 * infcmd.c (default_print_registers_info): Replace
843 do_registers_info.
844 (registers_info): Use gdbarch_print_registers_info instead of
845 DO_REGISTERS_INFO.
846 * inferior.h (default_print_registers_info): Replace
847 do_registers_info.
848 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
849 (DO_REGISTERS_INFO): Change to a predicate function.
850 * gdbarch.h, gdbarch.c: Regenerate.
851
e23792cc
KS
8522002-08-21 Keith Seitz <keiths@redhat.com>
853
854 * gdb-events.sh: Add target-changed event.
855 * gdb-events.c: Regenerated.
856 * gdb-events.c: Regenerated.
857 * valops.c (value_assign): Add target-changed event notification
858 to inlval_register, lval_memory, and lval_reg_frame_relative.
859
9fb14e79
JB
8602002-08-21 Joel Brobecker <brobecker@gnat.com>
861
862 * NEWS: Add an entry regarding the improvement of the next/step
863 operation on Alpha Tru64 multi-processor machines.
864
6d39a69f
AC
8652002-08-21 Andrew Cagney <ac131313@redhat.com>
866
72acd513
AC
867 * Makefile.in: Update dependencies for mi/ cli/ and tui/
868 directores.
342af04b 869 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
870 * Makefile.in (install-gdbtk): Move to install section.
871 (rdi-share/libangsd.a): Move to end of file.
872
fa5f27c7
AC
8732002-08-19 Andrew Cagney <ac131313@redhat.com>
874
875 * frame.c (frame_register_unwind): When a register, set addrp to
876 the register's byte.
877
5a89d8aa
MS
8782002-08-20 Michael Snyder <msnyder@redhat.com>
879
880 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
881 used locally, so move them from the target machine header to here.
882 (mips_set_processor_type, mips_register_name, mips32_next_pc,
883 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
884 Make static.
885 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
886
822e978b
AC
8872002-08-20 Andrew Cagney <cagney@redhat.com>
888
889 * NEWS: Mention that the Apollo line was made obsolete.
890 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
891 m68*-hp-hpux* obsolete.
892 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
893 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
894 * buildsym.c (make_blockvector): Make static.
895 * buildsym.h (make_blockvector): Make extern declaration obsolete.
896 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
897 (ALLDEPFILES): Remove dstread.c.
898 (dstread.o): Obsolete make rule.
899 * dstread.c: Makefile obsolete.
900 * dst.h: Ditto.
901 * config/m68k/hp300hpux.mt: Ditto.
902 * config/m68k/hp300hpux.mh: Ditto.
903 * config/m68k/hp300bsd.mt: Ditto.
904 * config/m68k/hp300bsd.mh: Ditto.
905 * config/m68k/apollo68b.mt: Ditto.
906 * config/m68k/apollo68v.mh: Ditto.
907 * config/m68k/apollo68b.mh: Ditto.
908
e41b17f0
MS
9092002-08-20 Michael Snyder <msnyder@redhat.com>
910
911 * mips-tdep.c (mips_in_return_stub): Make static.
912 (mips_gdbarch_init): Set in_solib_return_trampoline.
913 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
914
d50355b6
MS
9152002-08-20 Michael Snyder <msnyder@redhat.com>
916
917 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
918 * gdbarch.c, gdbarch.h: Regenerate.
919 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
920 Add.
921 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
922
757a7cc6
MS
9232002-08-20 Michael Snyder <msnyder@redhat.com>
924
925 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
926 (mips_gdbarch_init): Set skip_trampoline_code,
927 in_solib_call_trampoline.
928 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
929 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
930
c8001721
EZ
9312002-08-20 Elena Zannoni <ezannoni@redhat.com>
932
933 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
934
935 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
936 vector type for ev registers.
937 (e500_pseudo_register_read): New function.
938 (e500_pseudo_register_write): New function.
939 (e500_dwarf2_reg_to_regnum): New function.
940 (PPC_UISA_NOFP_SPRS): New macro.
941 (PPC_EV_REGS): New macro.
942 (PPC_GPRS_PSEUDO_REGS): New macro.
943 (registers_e500): New register set for e500.
944 (variants): Add e500 variant.
945 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
946 before setting architectural dependent variations. Initialize ev
947 registers numbers. Add case for e500 architecture. Set the
948 number of pseudo registers.
949
64366f1c
EZ
9502002-08-20 Elena Zannoni <ezannoni@redhat.com>
951
952 * rs6000-tdep.c: Clean up comments.
953
7e78f0ca
AC
9542002-08-20 Andrew Cagney <cagney@redhat.com>
955
956 * h8300-tdep.c: Re-indent file.
957
697f7479
JB
9582002-08-20 Jim Blandy <jimb@redhat.com>
959
960 * Makefile.in (LDFLAGS): Allow the configure script to establish a
961 default for this.
697f7479 962
e86ae29f
KS
9632002-08-20 Keith Seitz <keiths@redhat.com>
964
965 * breakpoints.c (watch_command_1): Use internal breakpoint
966 when setting a watchpoint_scope breakpoint.
967
216b504f
EZ
9682002-08-20 Elena Zannoni <ezannoni@redhat.com>
969
970 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
971 (build_builtin_type_vec64i): Ditto.
972 (build_builtin_type_vec128): Ditto.
973 (build_builtin_type_vec128i): Ditto.
974
f7ab6ec6
MS
9752002-08-19 Michael Snyder <msnyder@redhat.com>
976
977 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
978 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
979 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
980 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
981 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
982 CALL_DUMMY_ADDRESS): Delete.
983 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
984 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
985 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
986 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
987 push_return_address.
988 (mips_register_raw_size, mips_eabi_use_struct_convention,
989 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
990 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
991 mips_init_extra_frame_info, mips_eabi_push_arguments,
992 mips_n32n64_push_arguments, mips_push_return_address,
993 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
994 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
995
b5d1566e
MS
9962002-08-19 Michael Snyder <msnyder@redhat.com>
997
998 * mips-tdep.c (mips_frame_num_args): New function.
999 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1000 frame_saved_pc, frame_args_address, frame_locals_address,
1001 frame_num_args, and frame_args_skip.
1002 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1003 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1004 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1005 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1006
2f1488ce
MS
10072002-08-20 Michael Snyder <msnyder@redhat.com>
1008
1009 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1010 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1011 * mips-tdep.c (mips_store_struct_return): New function.
1012 (mips_extract_struct_value_address): New function.
1013 (mips_gdbarch_init): Set store_struct_return and
1014 extract_struct_value_address.
1015
41ff2da1
DC
10162002-08-20 David Carlton <carlton@math.stanford.edu>
1017
1018 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1019 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1020 (read_file_scope): Check that line_header is nonzero before
1021 decoding macro information.
1022
e5451d58
MK
10232002-08-20 Mark Kettenis <kettenis@gnu.org>
1024
1025 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1026 flag the general-purpose registers as floating-point on targets
1027 that don't support the floating-point registers.
1028
4a6daafa
EZ
10292002-08-20 Elena Zannoni <ezannoni@redhat.com>
1030
1031 * rs6000-tdep.c (altivec_register_p): Delete.
1032 (rs6000_do_altivec_registers): Delete.
1033 (rs6000_altivec_registers_info): Delete.
1034 (rs6000_do_registers_info): Delete.
1035 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1036 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1037
ab4327e0
EZ
10382002-08-20 Elena Zannoni <ezannoni@redhat.com>
1039
1040 * infcmd.c (do_registers_info): Print vector registers in hex
1041 format only.
1042 (print_vector_info): Check that printing registers
1043 makes sense.
1044 (print_float_info): Ditto.
1045
cb1d2653
AC
10462002-08-20 Andrew Cagney <ac131313@redhat.com>
1047
1048 * mips-tdep.c (mips_gdbarch_init): Update.
1049 (mips_o32_extract_return_value): Rewrite.
1050 (mips_o32_store_return_value): Rewrite.
1051 (mips_o32_xfer_return_value): New function.
1052 (mips_xfer_register): Tweak debug print message. Allow for
1053 buf_offset when dumping the value transfered.
1054
dfc3d9b2
AC
10552002-08-20 Andrew Cagney <ac131313@redhat.com>
1056
1057 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1058 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1059 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1060 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1061 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1062
7807aa61
MS
10632002-08-14 Michael Snyder <msnyder@redhat.com>
1064
1065 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1066
489461e2
EZ
10672002-08-19 Elena Zannoni <ezannoni@redhat.com>
1068
1069 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1070 register.
1071 (P): New macro to define a register as a pseudo register.
1072 (R, R4, R8, R16, FR32, R64, R0): Updated.
1073 (struct variant): Add new fields for number of pseudo registers
1074 and number of total registers.
1075 (tot_num_registers): New macro replacing....
1076 (num_registers): ...deleted macro.
1077 (num_registers): New function.
1078 (num_pseudo_registers): New function.
1079 (variants): Update all variants to intialize new fields correctly.
1080 Postpone initialization of number of pseudo regs and real regs.
1081 (init_variants): New function.
1082 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1083 registers offsets.
1084
fcaffe4c
DC
10852002-08-19 David Carlton <carlton@math.stanford.edu>
1086
2c2738a0
DC
1087 * valops.c (search_struct_field): Change error message to treat
1088 return value of 0 from value_static_field as meaning that field is
1089 optimized out.
1090 (value_struct_elt_for_reference): Ditto.
1091 * values.c (value_static_field): Treat an unresolved location the
1092 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1093 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1094 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1095 * MAINTAINERS: Add self to Write After Approval list.
1096
88658117
AC
10972002-08-19 Andrew Cagney <ac131313@redhat.com>
1098
1099 * mips-tdep.c (mips_xfer_register): New function.
1100 (mips_n32n64_extract_return_value): Rewrite.
1101 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1102 instead of deprecated_extract_return_value.
1103
21283beb
EZ
11042002-08-19 Elena Zannoni <ezannoni@redhat.com>
1105
1106 * rs6000-tdep.c (TDEP): Delete macro.
1107 (branch_dest): Replace use of TDEP macro with its body.
1108 (rs6000_pop_frame): Ditto.
1109 (rs6000_push_arguments): Ditto.
1110 (rs6000_skip_trampoline_code): Ditto.
1111 (rs6000_frame_saved_pc): Ditto.
1112 (rs6000_frame_chain): Ditto.
1113 (rs6000_register_name): Ditto.
1114 (rs6000_register_byte): Ditto.
1115 (rs6000_register_raw_size): Ditto.
1116 (rs6000_register_virtual_type): Ditto.
1117 (rs6000_register_convertible): Ditto.
1118 (rs6000_convert_from_func_ptr_addr): Ditto.
1119
bf072999
DJ
11202002-08-19 Daniel Jacobowitz <drow@mvista.com>
1121
1122 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1123 conditionally.
1124 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1125 MIPS_LINUX_JB_ELEMENT_SIZE.
1126 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1127 for MAX_REGISTER_RAW_SIZE arrays.
1128 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1129 MIPS_LINUX_JB_ELEMENT_SIZE.
1130
9b949a49
PM
11312002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1132
1133 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1134
6d3e79c6
AS
11352002-08-19 Aidan Skinner <aidan@velvet.net>
1136
1137 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1138 ada-valprint.c ada-tasks.c.
1139 (YYFILES): Add ada-exp.y.
1140 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1141 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1142 (ada-exp.tab.o): New target.
1143
06c0b04e
AC
11442002-08-18 Andrew Cagney <ac131313@redhat.com>
1145
1146 * regcache.c (regcache_xfer_part): New function.
1147 (regcache_raw_read_part): New function.
1148 (regcache_raw_write_part): New function.
1149 (regcache_cooked_read_part): New function.
1150 (regcache_cooked_write_part): New function.
1151 * regcache.h (regcache_raw_read_part): Declare.
1152 (regcache_raw_write_part): Declare.
1153 (regcache_cooked_read_part): Declare.
1154 (regcache_cooked_write_part): Declare.
1155
92d1e331
DJ
11562002-08-18 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * remote.c (remote_open_1): Add async_p.
1159 (remote_async_open_1): Delete.
1160 (open_remote_target): Delete.
1161 (remote_open, extended_remote_open): Update calls to remote_open_1.
1162 (remote_async_open, extended_remote_async_open): Call
1163 remote_open_1 instead of remote_async_open_1.
1164
247055de
MK
11652002-08-19 Mark Kettenis <kettenis@gnu.org>
1166
1167 * blockframe.c: Fix a few coding standard violations.
1168
641eda39
MK
11692002-08-19 Mark Kettenis <kettenis@gnu.org>
1170
0b717710
MK
1171 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1172 here from ...
1173 * config/i386/tm-i386sco5.h: ... here. File removed.
1174 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1175
26d28e12 1176 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1177 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1178 (TM_FILE): Set to tm-i386.h.
1179 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1180 * config/i386/tm-i386v.h: Remove file.
1181 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1182 instead of "i386/tm-i386v.h".
1183 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1184 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1185 "i386/tm-i386v.h".
1186 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1187 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1188 "i386/tm-i386.h".
1189
d4e0bab4
MK
11902002-08-18 Mark Kettenis <kettenis@gnu.org>
1191
1192 * config/i386/nm-i386v.h: Add protection against
1193 multiple-inclusion.
1194 (i386_register_u_addr): Remove prototype.
1195 (register_u_addr): New prototype.
1196 (REGISTER_U_ADDR): Redefine accordingly.
1197 * i386v-nat.c: Improve several comments.
1198 (i386_register_u_addr): Change signature and rename to
1199 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1200 ubase variable.
1201
46cac009
AC
12022002-08-18 Andrew Cagney <ac131313@redhat.com>
1203
1204 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1205 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1206 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1207 deprecated_extract_return_value.
1208 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1209 rename mips_o32o64_push_arguments.
1210 (mips_gdbarch_init): Update.
1211 (mips_extract_return_value): Delete.
1212 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1213 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1214 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1215 (mips_n32n64_extract_return_value): Clone
1216 mips_extract_return_value.
1217 (mips_store_return_value): Delete.
1218 (mips_o32_store_return_value): Clone mips_store_return_value.
1219 (mips_o64_store_return_value): Clone mips_store_return_value.
1220 (mips_eabi_store_return_value): Clone mips_store_return_value.
1221 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1222
d2e4a39e
AS
12232002-08-18 Aidan Skinner <aidan@velvet.net>
1224
0c30c098
AS
1225 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1226 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1227
12282002-08-18 Aidan Skinner <aidan@velvet.net>
1229
1230 * ada-lang.c: Run through gdb_indent.sh.
1231 * ada-lang.h: Run through gdb_indent.sh.
1232 * ada-tasks.c: Run through gdb_indent.sh.
1233 * ada-typeprint.c: Run through gdb_indent.sh.
1234 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1235
01fc4e33
AC
12362002-08-18 Andrew Cagney <ac131313@redhat.com>
1237
1238 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1239 ABI.
1240
d8ee244c
MK
12412002-08-18 Mark Kettenis <kettenis@gnu.org>
1242
c38d8261
MK
1243 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1244
222db64c
MK
1245 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1246 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1247
c2848c82
MK
1248 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1249 write_register_gen instead of write_register_bytes.
1250
d8ee244c
MK
1251 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1252 i[3456]-*-osf1mk* configurations have been made obsolete.
1253 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1254 i[3456]86-*-osf1mk* hosts obsolete.
1255 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1256 targets obsolete.
1257 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1258 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1259 config/i386/i386m3.mt, config/i386/nm-m3.h,
1260 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1261 config/i386/i386mk.mh, config/i386/i386mk.mt,
1262 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1263 obsolete.
1264 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1265 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1266 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1267
61d8d407
AC
12682002-08-18 Andrew Cagney <ac131313@redhat.com>
1269
1270 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1271 (hppa_value_returned_from_stack): Declare.
1272 (hppa_extract_return_value): Declare.
1273 * config/pa/hppa.mt: New file.
1274 * configure.tgt: Recognize hppa*-*-*.
1275 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1276
0c52bd59
MK
12772002-08-18 Mark Kettenis <kettenis@gnu.org>
1278
1279 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1280 comment.
1281
b5686e99
MK
12822002-08-17 Mark Kettenis <kettenis@gnu.org>
1283
1284 * top.c (gdb_rl_operate_and_get_next): Make sure
1285 operate-and-get-next functions correctly even when the history
1286 list is completely filled.
1287
c1bab85b
AC
12882002-08-18 Andrew Cagney <ac131313@redhat.com>
1289
1290 * MAINTAINERS (Target Instruction Set Architectures): Rename
1291 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1292 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1293 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1294 already listed under Host/Native.
1295
1296 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1297 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1298 mips*-*-*.
1299
32089c7c
AC
13002002-08-17 Andrew Cagney <ac131313@redhat.com>
1301
1302 * config/ia64/ia64.mt: New file.
1303 * config/alpha/alpha.mt: New file.
1304 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1305 ia64-linux-gnu. Mention that ia64-elf is broken.
1306 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1307
b4671f85
MK
13082002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1309
1310 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1311 generic_func_frame_valid instead of func_frame_valid.
1312
c8edd8b4
JB
13132002-08-16 Joel Brobecker <brobecker@gnat.com>
1314
1315 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1316 procfs appears to be broken when debugging on multi-processor
1317 machines. So enable software single stepping in order to avoid
1318 using the procfs interface to do next/step operations, using
1319 internal breakpoints instead.
1320
1321 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1322 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1323 make this pc address equal to the value it would have if the
1324 system stepping capability was used. Also set a new flag used
1325 to ensure that we don't readjust the PC one more time later.
1326
1327 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1328 address by DECR_PC_AFTER_BREAK when software single step is
1329 in use for this architecture, as this has already been taken
1330 care of in handle_inferior_event().
1331
238617f6
JB
13322002-08-16 Joel Brobecker <brobecker@gnat.com>
1333
1334 * infrun.c (handle_inferior_event): Minor reformatting, to make
1335 a rather long condition expression easier to read.
1336
541a7aac
AC
13372002-08-16 Andrew Cagney <ac131313@redhat.com>
1338
1339 * Makefile.in (gdbtk.o): Move to end of file.
1340 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1341 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1342 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1343 (gdbtk-wrapper.o, gdbres.o): Ditto.
1344
f92d4a7b
AC
13452002-08-16 Andrew Cagney <ac131313@redhat.com>
1346
1347 * Makefile.in (copying.o): Separate out compile rule.
1348 (hpux-thread.o, procfs.o, signals.o): Ditto.
1349 (v850ice.o, z8k-tdep.o): Ditto.
1350 (tui-file.o): Move to TUI section.
1351 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1352 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1353
1cce71eb
JB
13542002-08-16 Joel Brobecker <brobecker@gnat.com>
1355
1356 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1357 skip_trampoline_code, for better namespace-proofing.
1358
1359 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1360
0851f23d
JB
13612002-08-16 Joel Brobecker <brobecker@gnat.com>
1362
1363 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1364
f8d40ec8
JB
13652002-08-16 Joel Brobecker <brobecker@gnat.com>
1366
1367 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1368 signal, check whether we hit a breakpoint before checking for a
1369 single step breakpoint. Otherwise, GDB fails to notice that a
1370 breakpoint has been hit when stepping onto a breakpoint.
1371
63d022e0
KS
13722002-08-16 Keith Seitz <keiths@redhat.com>
1373
1374 * gdb-events.sh (clear_gdb_event_hooks): New function.
1375 * gdb-events.c: Regenerate.
1376 * gdb-events.h: Regenerate.
1377
6e31adb3
AC
13782002-08-16 Andrew Cagney <ac131313@redhat.com>
1379
1380 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1381 not_a_sw_breakpoint.
1382 * breakpoint.h (bpstat_stop_status): Add parameter names.
1383
c8189ed1
GS
13842002-08-16 Grace Sainsbury <graces@redhat.com>
1385
1386 * remote.c (remote_insert_hw_breakpoint)
1387 (remote_remove_hw_breakpoint): Fix calculation of length field
1388 for Z-packet.
1389
d05285fa
MS
13902002-08-15 Michael Snyder <msnyder@redhat.com>
1391
466d7106
MS
1392 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1393 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1394 (supply_fpregset): Ditto.
1395
d05285fa
MS
1396 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1397 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1398 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1399 (TARGET_READ_SP): Delete.
bf1f5b4c 1400 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1401 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1402 Delete.
1403 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1404 from macros to functions.
bf1f5b4c 1405
d05285fa
MS
1406 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1407 (mips_register_convertible, mips_register_convert_to_virtual,
1408 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1409 (mips_read_sp): New function.
1410 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1411 (mips_do_registers_info): Make static.
1412 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1413 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1414 (mips_register_convert_from_type, mips_register_convert_to_type):
1415 New functions.
1416 (mips_gdbarch_init): Set up function_start_offset,
1417 register_virtual_size, pc_in_sigtramp.
d05285fa 1418
e76f1f2e
AC
14192002-08-15 Andrew Cagney <ac131313@redhat.com>
1420
1421 * infcmd.c (vector_info): New function.
1422 (_initialize_infcmd): Add command "info vector".
1423 (print_vector_info): New function.
1424
1425 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1426 * gdbarch.h, gdbarch.c: Regenerate.
1427
4782dc19
AC
14282002-08-15 Andrew Cagney <ac131313@redhat.com>
1429
1430 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1431 ``print_all''. Only print vector registers when ``print_all''.
1432
23e3a7ac
AC
14332002-08-15 Andrew Cagney <ac131313@redhat.com>
1434
8e186fd6
AC
1435 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1436 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1437
23e3a7ac
AC
1438 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1439 Add `args' parameter.
1440 * gdbarch.h, gdbarch.c: Regenerate.
1441
1442 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1443
1444 * infcmd.c (float_info): Call print_float_info.
1445 (print_float_info): New function. By default, print the
1446 floating-point registers.
1447
1448 * arch-utils.h (default_print_float_info): Delete declaration.
1449 * arch-utils.c (default_print_float_info): Delete function.
1450
e0ca2bb9
MK
14512002-08-16 Mark Kettenis <kettenis@gnu.org>
1452
3f733acc
MK
1453 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1454 out define.
1455
7d8d2918
MK
1456 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1457 FRAME.
1458
1c7cc583
MK
1459 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1460 * configure.host: Make i[3456]86-*-aix host obsolete.
1461 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1462 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1463 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1464 config/i386/xm-i386aix.h: Make files obsolete.
1465 * i386aix-nat.c: Make file obsolete.
1466 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1467 (i386aix-nat.o): Make target obsolete.
1468
e0ca2bb9
MK
1469 * config/i386/nm-gnu.h: Removed.
1470 * config/i386/nm-i386gnu.h: New file.
1471 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1472 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1473 Moved here from ...
1474 * config/i386/tm-i386gnu.h: ... here. Removed.
1475 * config/i386/xm-i386gnu.h: Removed.
1476 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1477 (NAT_FILE): Set to nm-i386gnu.h.
1478 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1479 * i386-tdep.c: New file.
1480 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1481 (i386gnu-tdep.o): Specify dependencies.
1482
16057ec7 14832002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1484
6b99ee2e
MK
1485 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1486 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1487 Adjust a few comments to reflect reality a bit closer.
1488 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1489 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1490 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1491 target_insert_watchpoint, target_remove_watchpoint):
1492 Move defines to ...
1493 * config/i386/nm-i386sco5.h: ... here.
1494 (kernel_u_size): Add prototype. Improve a few comments and add
1495 protection against multiple inclusion.
1496
d9a6f65c
MK
1497 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1498 out define.
1499
047eff6a
MK
1500 * uw-thread.c (SP_ARG0): Define if not already defined.
1501 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1502
dcdb1290
MK
1503 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1504
5d2d0b2a
MK
1505 * config/i386/tm-i386.h: Don't include "regcache.h".
1506
61113f8b
MK
1507 * i387-tdep.h (i387_print_float_info): New prototype.
1508 * i387-tdep.c (print_i387_value, print_i387_ext,
1509 print_i387_status_word, print_i387_control_word): Add `struct
1510 ui_file *' argument and use it for output.
1511 (i387_print_float_info): Renamed from i387_float_info. Add
1512 `struct gdbarch *' and `struct ui_file *' arguments and use the
1513 latter for output.
1514 * i386-tdep.c: Include "i387-tdep.h".
1515 (i386_gdbarch_init): Set print_float_info.
1516 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1517 (FLOAT_INFO): Remove define.
1518
46e0f506
MS
15192002-08-13 Michael Snyder <msnyder@redhat.com>
1520
1521 * mips-tdep.c (mips_push_arguments): Rename to
1522 mips_eabi_push_arguments, and tune for EABI.
1523 (MIPS_REGS_HAVE_HOME_P): Delete.
1524 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1525 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1526 Delete references to mips_regs_have_home_p.
1527
409268de
KS
15282002-08-14 Keith Seitz <keiths@redhat.com>
1529
1530 * Makefile.in (install-gdbtk): Create insight plugin directory.
1531 Install plugins.tcl file.
1532
ffc6a242
KS
15332002-08-14 Keith Seitz <keiths@redhat.com>
1534
1535 * configure.in: Move SUBDIRS to near top of the file so that
1536 --enable options may add things to it.
1537 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1538 * configure: Regenerate.
1539
ebafbe83
MS
15402002-08-13 Michael Snyder <msnyder@redhat.com>
1541
1542 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1543 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1544 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1545
32f6f25d
AC
15462002-08-13 Andrew Cagney <ac131313@redhat.com>
1547
1548 * vax-tdep.c (vax_get_saved_register): Delete function.
1549 (vax_gdbarch_init): Update.
1550 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1551 (ns32k_gdbarch_init): Update.
1552 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1553 (alpha_gdbarch_init): Update.
1554
53826de9
AC
15552002-08-13 Andrew Cagney <cagney@redhat.com>
1556
1557 * regcache.c (init_regcache_descr): Overallocate the
1558 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1559 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1560 nr_raw_registers.
1561 (set_register_cached): Add range checking assertions. Use
1562 current_regcache.
1563
16057ec7 15642002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1565
1566 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1567 numbers for MMX registers.
1568
7b4c2dce
AC
15692002-08-13 Andrew Cagney <cagney@redhat.com>
1570
1571 * i386-tdep.c (i386_gdbarch_init): Use
1572 generic_unwind_get_saved_register.
1573
1e03ad20
KB
15742002-08-13 Kevin Buettner <kevinb@redhat.com>
1575
1576 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1577 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1578 target vector.
1579 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1580 Delete. Add comment regarding this now-deleted target method.
1581
548bcbec
SC
15822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1583
1584 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1585 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1586 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1587 real PC and the page number (if it's within the memory bank window).
1588 (m68hc11_pseudo_register_write): Likewise when saving.
1589 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1590 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1591 (m68hc11_register_raw_size): And use 32-bit for it.
1592 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1593 16K memory bank is used by the prog; also use the virtual pc.
1594
7df11f59
SC
15952002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1596
1597 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1598 (m68hc11_gdbarch_init): Install it in gdbarch.
1599 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1600 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1601 (MSYMBOL_SIZE): New for documentation.
1602 (insn_return_kind): Enum to specify how a function returns.
1603 (frame_extra_info): Cleanup and record the return mode.
1604 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1605 register in address computation.
1606 (m68hc11_get_return_insn): New to obtain the return instruction used
1607 by the function.
1608 (m68hc11_frame_init_saved_regs): Take into account the return
1609 instruction used by the function for far and interrupt functions.
1610 (m68hc11_init_extra_frame_info): Take into account page register.
1611 (m68hc11_frame_args_address): Adjust according to the return mode.
1612 (show_regs): Print page register only when it's used.
1613
5706502a
SC
16142002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1615
1616 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1617 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1618 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1619 registers.
1620 (m68hc11_register_raw_size): Likewise.
1621
28fc6740
AC
16222002-08-13 Andrew Cagney <cagney@redhat.com>
1623
1624 * i386-tdep.c (i386_register_name): Handle mmx registers.
1625 (mmx_regnum_p): New function.
1626 (i386_mmx_names): New array.
1627 (mmx_num_regs): New variable.
1628 (i386_pseudo_register_read): New function.
1629 (i386_pseudo_register_write): New function.
1630 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1631
1632 * regcache.c (regcache_raw_read_unsigned): New function.
1633 (regcache_raw_read_signed): New function.
1634 * regcache.h (regcache_raw_read_unsigned): Declare.
1635 (regcache_raw_read_signed): Declare.
1636
a378f419
AC
16372002-08-13 Andrew Cagney <cagney@redhat.com>
1638
1639 * regcache.c (regcache_raw_read_as_address): Delete function.
1640 (regcache_cooked_read_signed): New function.
1641 (regcache_cooked_read_unsigned): New function.
1642 * regcache.h (regcache_cooked_read_signed): Declare.
1643 (regcache_cooked_read_unsigned): Declare.
1644 (regcache_raw_read_as_address): Delete declaration.
1645
1646 * blockframe.c (generic_read_register_dummy): Use
1647 regcache_cooked_read_unsigned.
1648 * i386-tdep.c (i386_extract_struct_value_address): Use
1649 regcache_cooked_read_unsigned.
1650
81967506
SC
16512002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1652
1653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1654 double sizes according to ELF ABI flags.
1655 (gdbarch_tdep): Record elf_flags.
1656
ffe1f3ee
SC
16572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1658
1659 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1660 (m6812_prolog): They can appear in 68HC12 function prologue.
1661 (m68hc11_frame_chain): Cleanup.
1662
98216c5d
AC
16632002-08-12 Andrew Cagney <cagney@redhat.com>
1664
1665 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1666 declarations.
1667 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1668 (i386_linux_register_raw_size): Delete function.
1669 (i386_linux_init_abi): Update.
1670 * i386-tdep.c (i386_register_raw_size): Delete function.
1671 (i386_register_byte): Delete function.
1672 (i386_gdbarch_init): Update.
1673 (i386_register_size): Delete array.
1674 (i386_register_offset): Delete array.
1675
1676 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1677 (REGISTER_RAW_SIZE): Delete macro.
1678 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1679 (REGISTER_BYTE): Delete macro.
1680
3b19021e
AS
16812002-08-11 Aidan Skinner <aidan@velvet.net>
1682
1683 * ada-lang.c (ada_lookup_partial_symbol)
1684 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1685 prototype names so that grep ^func works properly.
1686
1687 * ada-lang.c (ada_array_element_type)
1688 (ada_lookup_partial_symbol): Fix typos in parameter list.
1689
1690 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1691 Fix prototype names so that grep ^func works properly.
1692
b063e7a2
AC
16932002-08-10 Andrew Cagney <cagney@redhat.com>
1694 Elena Zannoni <ezannoni@redhat.com>
1695 Martin M. Hunt <hunt@redhat.com>
1696
1697 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1698 (build_builtin_type_vec128i): Set the vector bit.
1699 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1700 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1701 (build_builtin_type_vec64): New function.
1702 (build_builtin_type_vec64i): New function.
1703 (build_gdbtypes): Initialize builtin_type_vec64 and
1704 builtin_type_vec64i.
1705
a7e3c2ad
AC
17062002-08-09 Andrew Cagney <cagney@redhat.com>
1707
1708 * regcache.c (regcache_dump): Compare the register offset
1709 with REGISTER_BYTE.
1710 * arch-utils.c (generic_register_byte): New function.
1711 * arch-utils.h (generic_register_byte): Declare.
1712 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1713 * gdbarch.h, gdbarch.c: Regenerate.
1714
af030b9a
AC
17152002-08-09 Andrew Cagney <cagney@redhat.com>
1716
1717 * regcache.c: Include "gdbcmd.h"
1718 (_initialize_regcache): Add commands "maintenance print
1719 registers", "maintenance print raw-registers" and "maintenance
1720 print cooked-registers".
1721 (enum regcache_dump_what): Define.
1722 (dump_endian_bytes): New function.
1723 (regcache_dump): New function.
1724 (regcache_print): New function.
1725 (maintenance_print_registers): New function.
1726 (maintenance_print_raw_registers): New function.
1727 (maintenance_print_cooked_registers): New function.
1728 * Makefile.in (regcache.o): Update dependencies.
1729
cb3d25d1
MS
17302002-08-09 Michael Snyder <msnyder@redhat.com>
1731
1732 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1733 (mips_push_arguments): Correct some comments. Use paddr_nz
1734 for printing addresses in debug output. Replace static
1735 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1736 (mips_n32n64_push_arguments): New function, cloned from
1737 mips_push_arguments and tuned for the n32/n64 ABI.
1738 (mips_push_register): Buffer needs dynamic allocation.
1739 (mips_print_register): Ditto.
1740 (do_gp_register_row): Ditto.
1741 (mips_store_return_value): Ditto.
1742 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1743
2163ab9d
DH
17442002-08-09 Don Howard <dhoward@redhat.com>
1745
1746 * memattr.c (mem_info_command): Print special case of upper bound
1747 as max CORE_ADDR + 1.
1748
b78bcb18
MS
17492002-08-08 Michael Snyder <msnyder@redhat.com>
1750
1751 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1752 returns structs by ref if they're too big to fit in two registers.
1753
ffabd70d
KB
17542002-08-09 Kevin Buettner <kevinb@redhat.com>
1755
1756 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1757 saved regs value.
1758 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1759 mips_find_saved_regs().
1760 (mips_pop_frame): Likewise.
1761
fbcdb4a3
KB
17622002-08-09 Kevin Buettner <kevinb@redhat.com>
1763
1764 * blockframe.c (frame_saved_regs_register_unwind): Revise
1765 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1766 frames are in use.
1767
3c3bea1c
GS
17682002-08-09 Grace Sainsbury <graces@redhat.com>
1769
1770 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1771 T-packets; the 'a' is not taken as a register number.
1772 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1773 (remote_stopped_data_address): New functions; add to target
1774 vector.
1775 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1776 prototypes to match other implementations of this
1777 function. replace integer argument with pointer -- the length
1778 field in the Z-packet is the length of what is pointed to or 1 if
1779 pointer is null. Add to target vector.
1780 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1781 target vector.
1782
1783 From Mark Salter:
1784 * remote.c (remote_wait): Add support to extract optional
1785 watchpoint information from T-packet. Ignore unrecognized
1786 optional info in T-packet.
1787 (remote_async_wait): Ditto.
1788
5d1d95de
CV
17892002-08-09 Corinna Vinschen <vinschen@redhat.com>
1790
1791 * cli/cli-dump.c: Change fopen modes to use binary open modes
1792 as defined in include/fopen-bin.h throughout.
1793
c86b5b38
MS
17942002-08-08 Michael Snyder <msnyder@redhat.com>
1795
1796 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1797
b30590dc
KB
17982002-08-08 Kevin Buettner <kevinb@redhat.com>
1799
1800 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1801 assertion failure by returning early after a warning.
1802
498868ed
KB
18032002-08-08 Kevin Buettner <kevinb@redhat.com>
1804
1805 * mips-tdep.c (mips_find_saved_regs): Make static.
1806 (mips_frame_init_saved_regs): New function.
1807 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1808 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1809 (mips_find_saved_regs): Delete declaration.
1810
b2dd6311
GS
18112002-08-08 Grace Sainsbury <graces@redhat.com>
1812
3c3bea1c
GS
1813 * remote.c (remote_wait, remote_async_wait): Change
1814 thread_num from int to ULONGEST.
1815 (unpack_varlen_hex): Change result parameter from
1816 int * to ULONGEST *.
b2dd6311 1817
ea47855f
AC
18182002-08-08 Andrew Cagney <ac131313@redhat.com>
1819
1820 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1821 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1822 powerpc*-*-*.
1823 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1824
69db8bae
AC
18252002-08-08 Andrew Cagney <cagney@redhat.com>
1826
1827 * gcore.c (override_derive_stack_segment): Delete variable.
1828 (preempt_derive_stack_segment): Delete function.
1829 (derive_stack_segment): Delete function.
1830 (default_derive_stack_segment): Renamed to derive_stack_segment.
1831 (override_derive_heap_segment): Delete variable.
1832 (preempt_derive_heap_segment): Delete function.
1833 (derive_heap_segment): Delete function.
1834 (default_derive_heap_segment): Rename to derive_heap_segment.
1835
cb811fe7
MS
18362002-08-06 Michael Snyder <msnyder@redhat.com>
1837
1838 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1839 * mips-tdep.c (mips_EABI_use_struct_convention,
1840 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1841 New functions. (mips_use_struct_convention): Delete.
1842 (mips_gdbarch_init): set use_gdbarch_convention.
1843
8b389c40
MS
18442002-08-06 Michael Snyder <msnyder@redhat.com>
1845
1846 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1847 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1848 mips_o32_reg_struct_has_addr): New functions.
1849 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1850
5c27f28a
AC
18512002-08-07 Andrew Cagney <ac131313@redhat.com>
1852
1853 * regcache.c (pseudo_register): Delete function.
1854 (fetch_register): Delete function.
1855 (store_register): Delete function.
1856 (regcache_raw_read, legacy_read_register_gen): Use
1857 target_fetch_registers instead of fetch_register.
1858 (legacy_write_register_gen, regcache_raw_write): Use
1859 target_store_register instead of store_register.
1860 (write_register_bytes): Ditto.
1861
1862 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1863 (STORE_PSEUDO_REGISTER): Delete.
1864 * gdbarch.h, gdbarch.c: Regenerate.
1865
5b331675
CV
18662002-08-06 Corinna Vinschen <vinschen@redhat.com>
1867
1868 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1869 write dump file binary.
1870
6acdf5c7
MS
18712002-08-05 Michael Snyder <msnyder@redhat.com>
1872
1873 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1874 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1875 (mips_gdbarch_init): Set N32 target to be mips64.
1876
b2f01c35
KB
18772002-08-06 Kevin Buettner <kevinb@redhat.com>
1878
1879 * frame.c (find_saved_register): Break out of loop once saved
1880 register address is found. Don't mention sparc in loop comment
1881 anymore.
1882
63db5580
KB
18832002-08-06 Kevin Buettner <kevinb@redhat.com>
1884
1885 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1886 mips_default_saved_regsize to 8.
1887
5e34e75e
AC
18882002-08-06 Andrew Cagney <ac131313@redhat.com>
1889
1890 * gcore.c: Do not include <sys/procfs.h>.
1891 * Makefile.in (gcore.o): Update dependencies.
1892
eb4c54a2
AC
18932002-08-06 Andrew Cagney <cagney@redhat.com>
1894
1895 * configure.tgt: Make arc-*-* obsolete.
1896 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1897 * MAINTAINERS: Make arc-elf obsolete.
1898 * arc-tdep.c: Make file obsolete.
1899 * config/arc/arc.mt: Ditto.
1900 * config/arc/tm-arc.h: Ditto.
1901
ced15480
TR
19022002-08-05 Theodore A. Roth <troth@verinet.com>
1903
c1bab85b 1904 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1905
b4743822
AC
19062002-08-05 Andrew Cagney <ac131313@redhat.com>
1907
1908 * mcore-tdep.c (mcore_gdbarch_init): Use
1909 generic_unwind_get_saved_register instead of
1910 generic_get_saved_register.
1911 * v850-tdep.c (v850_gdbarch_init): Ditto.
1912 * frv-tdep.c (frv_gdbarch_init): Ditto.
1913 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1914 * s390-tdep.c (s390_gdbarch_init): Ditto.
1915 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1916 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1917 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1918
3956d554
JB
19192002-08-05 Joel Brobecker <brobecker@gnat.com>
1920
1921 * objfiles.h: Add missing #include "symfile.h"
1922
1923 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1924
8249c0d6
AC
19252002-08-04 Andrew Cagney <ac131313@redhat.com>
1926
1927 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1928 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1929 of FIELD_BITSIZE.
1930
b9d14705
DJ
19312002-08-04 Daniel Jacobowitz <drow@mvista.com>
1932
1933 * NEWS: Cleanup and nitpick.
1934
dd73b9bb
AC
19352002-08-03 Andrew Cagney <ac131313@redhat.com>
1936
1937 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1938
043a27f8
AC
19392002-08-03 Andrew Cagney <ac131313@redhat.com>
1940
1941 * Makefile.in (gdbtk-bp.o): Update dependencies.
1942 (gdbtk-register.o): Ditto.
1943 (gdbtk-varobj.o): Ditto.
1944
46ce284d
AC
19452002-08-03 Andrew Cagney <cagney@redhat.com>
1946
1947 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1948 m68hc11_fetch_pseudo_register.
1949 (m68hc11_pseudo_register_write): Replace
1950 m68hc11_store_pseudo_register.
1951 (m68hc11_gdbarch_init): Update.
1952
b66d6d2e
AC
1953Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1954
1955 * gdbarch.sh: Include "gdb_string.h".
1956 * gdbarch.c: Regenerate.
1957
1958 * regcache.c: Include "gdb_string.h".
1959 * ax-general.c: Ditto.
1960 * varobj.c: Ditto.
1961 * std-regs.c: Ditto.
1962 * fbsd-proc.c: Ditto.
1963 * thread.c: Ditto.
1964
1965 * Makefile.in (regcache.o): Update dependencies.
1966 (thread.o, gdbarch.o): Ditto.
1967 (ax-general.o, gdbarch.o): Ditto.
1968 (varobj.o, std-regs.o): Ditto.
1969 (fbsd-proc.o): Specify dependencies.
1970
29e1842b
AC
19712002-08-02 Andrew Cagney <cagney@redhat.com>
1972
1973 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1974 regnum.
1975 (regcache_cooked_write): Ditto.
1976
68365089
AC
19772002-08-02 Andrew Cagney <ac131313@redhat.com>
1978
1979 * regcache.c (regcache_cooked_read): New function.
1980 (regcache_cooked_write): New function.
1981 (read_register_gen): Rewrite using regcache_cooked_read.
1982 (write_register_gen): Rewrite using regcache_cooked_write.
1983
1984 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1985 Declare.
1986
d8124050
AC
19872002-08-02 Andrew Cagney <cagney@redhat.com>
1988
1989 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1990 Replace the architecture methods register_read and register_write.
1991 * gdbarch.h, gdbarch.c: Regenerate.
1992 * regcache.c (init_regcache_descr): Update.
1993 (read_register_gen): Update.
1994 (write_register_gen): Update.
1995 (supply_register): Update comment.
1996
1997 * sh-tdep.c (sh_gdbarch_init): Update.
1998 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1999 `regcache' and `gdbarch' parameters. Make `buffer' a void
2000 pointer. Update code.
2001 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2002 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2003 void pointer. Update code.
2004 (sh64_register_write): Delete.
2005 (sh4_register_read): Delete.
2006 (sh64_register_read): Delete.
2007 (sh4_register_write): Delete.
2008 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2009 void pointer, `to' parameter a void pointer.
2010 (sh_sh64_register_convert_to_raw): Ditto.
2011
a6425924
KB
20122002-08-01 Kevin Buettner <kevinb@redhat.com>
2013
2014 * mips-tdep.c (mips_register_virtual_type): Use architecture
2015 invariant return values.
2016
ff5922b5
AC
20172002-08-01 Andrew Cagney <cagney@redhat.com>
2018
2019 * linux-proc.c: Include "gdb_string.h".
2020 * Makefile.in (linux-proc.o): Update dependency list.
2021
32a6503c
KB
20222002-08-01 Kevin Buettner <kevinb@redhat.com>
2023
2024 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2025 comment.
2026
ccaa32c7
GS
20272002-08-01 Grace Sainsbury <graces@redhat.com>
2028
2029 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2030 to_insert_watchpoint, to_remove_watchpoint,
2031 to_stopped_by_watchpoint, to_stopped_data_address,
2032 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2033 target vecctor. Define their corresponding macros so they call
2034 them.
2035
2036 * target.c: Add default and debug versions of for
2037 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2038 to_insert_watchpoint, to_remove_watchpoint,
2039 to_stopped_by_watchpoint, to_stopped_data_address,
2040 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2041
78fde5f8
KB
20422002-08-01 Kevin Buettner <kevinb@redhat.com>
2043
2044 * mips-tdep.c (mips_register_virtual_type): New function.
2045 (mips_gdbarch_init): Register mips_register_virtual_type()
2046 with gdbarch machinery.
2047 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2048 this file instead of tm-bigmips.h.
2049 (MIPS_REGSIZE): Delete this macro.
2050 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2051 multiarch version in mips-tdep.c will be found.
2052
db034ac5
AC
20532002-08-01 Andrew Cagney <cagney@redhat.com>
2054
2055 * NEWS: Menion that CHILL has been made obsolete.
2056
2057 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2058 * stabsread.c (read_range_type): Ditto.
2059 * gdbtypes.h: Ditto.
2060 * language.c (binop_type_check): Ditto.
2061 (binop_result_type): Ditto.
2062 (integral_type): Ditto.
2063 (character_type): Ditto.
2064 (string_type): Ditto.
2065 (boolean_type): Ditto.
2066 (structured_type): Ditto.
2067 (lang_bool_type): Ditto.
2068 (binop_type_check): Ditto.
2069 * language.h (_LANG_chill): Ditto.
2070 * dwarfread.c (set_cu_language): Ditto.
2071 * dwarfread.c (CHILL_PRODUCER): Ditto.
2072 * dwarfread.c (handle_producer): Ditto.
2073 * expression.h (enum exp_opcode): Ditto.
2074 * eval.c: Ditto for comments.
2075 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2076 * expprint.c (print_subexp): Ditto.
2077 (print_subexp): Ditto.
2078 * valops.c (value_cast): Ditto.
2079 (search_struct_field): Ditto.
2080 * value.h (COERCE_VARYING_ARRAY): Ditto.
2081 * symfile.c (init_filename_language_table): Ditto.
2082 (add_psymbol_with_dem_name_to_list): Ditto.
2083 * valarith.c (value_binop): Ditto.
2084 (value_neg): Ditto.
2085 * valops.c (value_slice): Ditto.
2086 * symtab.h (union language_specific): Ditto.
2087 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2088 (SYMBOL_DEMANGLED_NAME): Ditto.
2089 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2090 * defs.h (enum language): Ditto.
2091 * symtab.c (got_symtab): Ditto.
2092 * utils.c (fprintf_symbol_filtered): Ditto.
2093
2094 * ch-typeprint.c: Make file obsolete.
2095 * ch-valprint.c: Make file obsolete.
2096 * ch-lang.h: Make file obsolete.
2097 * ch-exp.c: Make file obsolete.
2098 * ch-lang.c: Make file obsolete.
2099
2100 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2101 CHILL_LIB.
2102 (TARGET_FLAGS_TO_PASS): Ditto.
2103 (CHILLFLAGS): Obsolete.
2104 (CHILL): Obsolete.
2105 (CHILL_FOR_TARGET): Obsolete.
2106 (CHILL_LIB): Obsolete.
2107 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2108 ch-valprint.c.
2109 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2110 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2111 ch-lang.o.
2112 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2113 targets.
2114
8aaf0b47
JB
21152002-07-31 Joel Brobecker <brobecker@gnat.com>
2116
2117 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2118 This does not change anything at the moment, but will be helpful
2119 later when full Ada support is integrated.
2120
f3a7b3a5
KB
21212002-07-31 Kevin Buettner <kevinb@redhat.com>
2122
2123 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2124 help message.
2125
fb850278
KB
21262002-07-31 Kevin Buettner <kevinb@redhat.com>
2127
2128 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2129 and save it in a local variable. Use variable in later test.
2130
e3bddbfa
KB
21312002-07-31 Kevin Buettner <kevinb@redhat.com>
2132
2133 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2134 test. (Thanks to Daniel Jacobowitz.)
2135
28d169de
KB
21362002-07-31 Kevin Buettner <kevinb@redhat.com>
2137
2138 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2139 (mips_abi_strings): Add "n64".
2140 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2141
7fe7e44e
KB
21422002-07-31 Kevin Buettner <kevinb@redhat.com>
2143
2144 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2145 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2146
c6caf090
KB
21472002-07-31 Kevin Buettner <kevinb@redhat.com>
2148
2149 * utils.c (host_pointer_to_address, address_to_host_pointer):
2150 Use gdb_assert() instead of explicit call to internal_error().
2151
c41669e0
KB
21522002-07-30 Kevin Buettner <kevinb@redhat.com>
2153
2154 * Makefile.in (rs6000-nat.o): Update dependencies.
2155
2156 From Nicholas Duffek:
2157 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2158 (aix-thread.o): New rule.
2159 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2160 * config/powerpc/aix432.mh: New file.
2161
2fda4977
DJ
21622002-07-30 Daniel Jacobowitz <drow@mvista.com>
2163
2164 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2165 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2166 (fetch_core_registers, ppc_linux_supply_gregset)
2167 (ppc_linux_supply_fpregset): New functions.
2168 (ppc_linux_regset_core_fns): New.
2169 (_initialize_ppc_linux_tdep): Call add_core_fns.
2170 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2171 and ppc_linux_supply_gregset.
2172 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2173 (supply_fpregset): Call ppc_linux_supply_fpregset.
2174 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2175 corelow.o.
2176 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2177
729051e6
DJ
21782002-07-30 Daniel Jacobowitz <drow@mvista.com>
2179
2180 * symtab.c (lookup_symbol): Demangle before lowercasing.
2181
5f8a3188
AC
21822002-07-30 Andrew Cagney <ac131313@redhat.com>
2183
2184 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2185 declaration.
2186 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2187 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2188 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2189 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2190 "gdb_string.h".
2191 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2192 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2193 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2194 (avr-tdep.o, mon960-rom.o): Ditto.
2195 (aout_stabs_gnu_h): Define.
2196 (symtab_h): Remove $(gdb_obstack_h).
2197
67f07146
JB
21982002-07-30 Jim Blandy <jimb@redhat.com>
2199
2200 Patch from David Carlton <carlton@math.stanford.edu>:
2201 * gdbinit.in: Move the `dir' commands that add GDB's own source
2202 directory to the search path to the end, so that the `gdb' source
2203 directory will be searched first.
2204
04ea0df1
AC
22052002-07-29 Andrew Cagney <ac131313@redhat.com>
2206
2207 * gdb_obstack.h: New file.
2208 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2209 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2210 * objfiles.h: Include "gdb_obstack.h".
2211 * Makefile.in (gdb_obstack_h): Define.
2212 (symtab_h): Add $(gdb_obstack_h).
2213 (objfiles_h): Add $(gdb_obstack_h).
2214
2215 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2216 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2217 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2218 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2219 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2220 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2221 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2222 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2223
2224 * Makefile.in (bcache.o): Update dependencies.
2225 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2226 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2227 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2228 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2229 (stabsread.o, symfile.o, symmisc.o): Ditto.
2230 (symtab.o, typeprint.o, macroexp.o): Ditto.
2231 (macrotab.o, mdebugread.o): Ditto.
2232 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2233 (coff_ecoff_h, aout_aout64_h): Define.
2234 (aout_stabs_gnu_h, libaout_h): Define.
2235
d138e37a
AC
22362002-07-29 Andrew Cagney <cagney@redhat.com>
2237
2238 * regcache.c (struct regcache_descr): Rename nr_registers to
2239 nr_cooked_registers. Revise comments describing the structure
2240 member fields.
2241 (init_regcache_descr): Update.
2242 (init_legacy_regcache_descr): Update.
2243 (read_register_gen, write_register_gen): When a cooked register in
2244 the raw register range, directly access the value from the raw
2245 register cache.
2246
460e6ec3
AC
22472002-07-29 Andrew Cagney <ac131313@redhat.com>
2248
2249 * z8k-tdep.c: Do not include "obstack.h".
2250 * h8300-tdep.c, h8500-tdep.c: Ditto.
2251 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2252 * valprint.c, v850-tdep.c: Ditto.
2253 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2254 * mn10200-tdep.c: Ditto.
2255
2256 * Makefile.in (z8k-tdep.o): Update dependencies.
2257 (m68hc11-tdep.o, valprint.o): Ditto.
2258 (v850-tdep.o, d10v-tdep.o): Ditto.
2259 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2260 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2261 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2262 (sh_opc_h, gdb_sim_sh_h): Define.
2263 (elf_sh_h, elf_bfd_h): Define.
2264 (opcode_m68hc11_h): Define.
2265 (OPCODES_SRC, OPCODES_DIR): define.
2266 (OPCODES): Use $(OPCODES_DIR).
2267 (gdb_sim_d10v_h): Rename sim_d10v_h.
2268 (gdb_sim_arm_h): Rename sim_arm_h.
2269
790c9cf0
KB
22702002-07-26 Kevin Buettner <kevinb@redhat.com>
2271
2272 * utils.c (host_pointer_to_address, address_to_host_pointer):
2273 Change internal_error() message to indicate function responsible
2274 for the error.
2275
9647fa49
KB
22762002-07-26 Kevin Buettner <kevinb@redhat.com>
2277
2278 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2279 calls to local_hex_string_custom().
2280
dabbe2c0
KB
22812002-07-26 Kevin Buettner <kevinb@redhat.com>
2282
2283 * irix5-nat.c: Move IRIX shared library support from here...
2284 * solib-irix.c: ...to here. Revised substantially to work with
2285 generic solib framework.
2286
b96d0a4e
KB
2287 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2288 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2289 * mips-irix-tdep.c: New file.
2290
313fb2f6
KB
2291 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2292 (mips-irix-tdep.o, solib-irix.o): New rules.
2293 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2294 solib-irix.o.
2295 * config/mips/irix6.mt (TDEPFILES): Likewise.
2296 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2297
ab2eaf26
KB
22982002-07-26 Kevin Buettner <kevinb@redhat.com>
2299
177e4768 2300 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2301 disabled (via ``#if 0'') includes.
2302
7244546a
KB
23032002-07-26 Kevin Buettner <kevinb@redhat.com>
2304
2305 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2306 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2307 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2308 Add support for the fpscr register.
2309 * rs6000-nat.c (regmap, fetch_inferior_registers)
2310 (store_inferior_registers, fetch_core_registers): Likewise.
2311
dd7be90a
KB
23122002-07-26 Kevin Buettner <kevinb@redhat.com>
2313
2314 * rs6000-nat.c (language.h): Include.
2315 (special_regs): Delete this array.
2316 (regmap): New function.
2317 (fetch_register, store_register): Use regmap() to map gdb
2318 register numbers to ptrace register numbers. Also, use
2319 outputs from regmap() to make decisions regarding type of
2320 ptrace() call to make. In particular, don't compare against
2321 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2322 (fetch_inferior_registers, store_inferior_registers): Where
2323 possible, obtain register numbers from tdep struct. Don't
2324 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2325 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2326 (LAST_UISA_SP_REGNUM): Delete.
2327
11bf77db
KB
23282002-07-25 Kevin Buettner <kevinb@redhat.com>
2329
2330 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2331 (fetch_registers, store_register, fetch_core_registers): Don't
2332 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2333 regcache_collect() as appropriate.
2334 (find_toc_address): Format hex address with local_hex_string().
2335
06afebeb
AC
23362002-07-25 Andrew Cagney <ac131313@redhat.com>
2337
2338 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2339 bfd/elf32-frv.c.
2340
8c554d79
TT
23412002-07-24 Tom Tromey <tromey@redhat.com>
2342
2343 * jv-exp.y: Marked all strings with _().
2344 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2345 internal_error.
2346 (MethodInvocation, CastExpression, parse_number, yyerror,
2347 java_type_from_name, push_expression_name, yylex): Typo fixes.
2348
e4c242d9
DJ
23492002-07-24 Daniel Jacobowitz <drow@mvista.com>
2350
2351 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2352 (tee_file_flush, tee_file_write, tee_file_fputs)
2353 (tee_file_isatty): New.
2354 * ui-file.h (tee_file_new): Add prototype.
2355
ebf56fd3
AS
23562002-07-24 Aidan Skinner <aidan@velvet.net>
2357
2358 * ada-lang.c: Change k&r style function definitions to prototyped
2359 form.
2360 * ada-typeprint.c: Change k&r style function definitions to prototyped
2361 form.
2362 * ada-valprint.c: Change k&r style function definitions to prototyped
2363 form.
2364
7fb623f7
AC
23652002-07-24 Andrew Cagney <cagney@redhat.com>
2366
2367 * README: Remove reference to remote-bug.
2368 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2369 remote-bug.c.
2370 (m88k-nat.o): Delete rule.
2371 (m88k-tdep.o): Delete rule.
2372 (remote-bug.o): Delete rule.
2373 * MAINTAINERS: Mark as obsolete.
2374 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2375 * m88k-tdep.c: Make file obsolete.
2376 * config/m88k/m88k.mh: Ditto.
2377 * config/m88k/delta88v4.mh: Ditto.
2378 * config/m88k/delta88v4.mt: Ditto.
2379 * config/m88k/delta88.mt: Ditto.
2380 * config/m88k/delta88.mh: Ditto.
2381 * remote-bug.c: Ditto.
2382 * config/m88k/tm-delta88.h: Ditto.
2383 * config/m88k/nm-delta88v4.h: Ditto.
2384 * config/m88k/xm-delta88.h: Ditto.
2385 * config/m88k/xm-dgux.h: Ditto.
2386 * config/m88k/tm-m88k.h: Ditto.
2387 * config/m88k/nm-m88k.h: Ditto.
2388 * config/m88k/tm-delta88v4.h: Ditto.
2389 * m88k-nat.c: Ditto.
2390 * cxux-nat.c: Ditto.
2391 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2392 and m88*-*-* obsolete.
2393 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2394 m88*-*-* obsolete.
2395
37611a2b
AC
23962002-07-24 Andrew Cagney <cagney@redhat.com>
2397
2398 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2399 constant. Same for local pointer variables.
2400 (extract_signed_integer): Ditto.
2401 * defs.h (extract_unsigned_integer): Update.
2402 (extract_signed_integer): Update.
2403
1aaa5f99
AC
24042002-07-24 Andrew Cagney <cagney@redhat.com>
2405
2406 * regcache.c (regcache_raw_write): Change buf parameter to a
2407 constant void pointer.
2408 (regcache_raw_read): Change buf parameter to a void pointer.
2409 (legacy_write_register_gen): Change myaddr parameter a constant
2410 void pointer.
2411 (supply_register): Change val parameter to a const void pointer.
2412 * regcache.h (regcache_raw_write): Update declaration.
2413 (regcache_raw_read): Update declaration.
2414 (supply_register): Update declaration.
2415
b4f5539f
TT
24162002-07-24 Tom Tromey <tromey@redhat.com>
2417
2418 * defs.h (gdb_readline_wrapper): Declare.
2419 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2420 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2421 * top.c (gdb_readline_wrapper): New function.
2422 (command_line_input): Use it.
2423
0818c12a
AC
24242002-07-24 Andrew Cagney <cagney@redhat.com>
2425
2426 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2427 regcache_read and regcache_write.
2428 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2429 * regcache.c: Update.
2430 * sh-tdep.c (sh64_push_arguments): Update comment.
2431 (sh_pseudo_register_read): Update.
2432 (sh_pseudo_register_write): Update.
2433 (sh4_register_read): Update.
2434 (sh4_register_write): Update.
2435 (sh64_pseudo_register_read): Update.
2436 (sh64_pseudo_register_write): Update.
2437 (sh64_register_read): Update.
2438 (sh64_register_write): Update.
2439 * i386-tdep.c (i386_extract_return_value): Update.
2440 (i386_extract_struct_value_address): Update.
2441 (i386_extract_return_value): Update.
2442 * blockframe.c (generic_read_register_dummy): Update.
2443 (generic_call_dummy_register_unwind): Update
2444 * infrun.c (write_inferior_status_register): Update.
2445
f7321c06
JB
24462002-07-23 Jim Blandy <jimb@redhat.com>
2447
2448 * parser-defs.h (expression_context_pc): Make this extern.
2449 (Thanks to Michael Snyder.)
2450
2037aebb
AC
24512002-07-23 Andrew Cagney <ac131313@redhat.com>
2452
2453 GDB 5.2.1 released from 5.2 branch.
2454 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2455 * README: Update to mention 5.2.1.
2456
66504d44
MS
24572002-07-23 Mark Salter <msalter@redhat.com>
2458
2459 * remote.c (remote_read_bytes): Fix check for error.
2460
27bae383
KB
24612002-07-22 Kevin Buettner <kevinb@redhat.com>
2462
2463 * aix-thread.c (language.h): Include.
2464 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2465 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2466 Print newlines at end of debug messages.
2467 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2468 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2469
24702002-07-22 Kevin Buettner <kevinb@redhat.com>
2471
2472 * aix-thread.c (ppc-tdep.h): Include.
2473 (special_register_p): New function.
2474 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2475 (store_regs_user_thread): Use register number information from
2476 gdbarch_tdep struct instead of hardcoded offsets relative to
2477 FIRST_UISA_SP_REGNUM.
2478 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2479 special_register_p() instead of using FPLAST_REGNUM and
2480 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2481 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2482 will be MQ's register number.
2483
24842002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2485
2486 * aix-thread.c (ops): Rename to aix_thread_ops.
2487 (base_ops): Rename to base_target.
2488 (ops_attach): Rename to aix_thread_attach.
2489 (ops_detach): Rename to aix_thread_detach.
2490 (ops_resume): Rename to aix_thread_detach.
2491 (ops_wait): Rename to aix_thread_wait.
2492 (ops_kill): Rename to aix_thread_kill.
2493 (init_ops): Rename to init_aix_thread_ops.
2494 (ops_fetch_register): Rename to aix_thread_fetch_register.
2495 (ops_store_register): Rename to aix_thread_store_register.
2496 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2497 (ops_thread_alive): Rename to aix_thread_thread_alive.
2498 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2499 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2500 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2501 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2502 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2503 (store_regs_lib): Rename to store_regs_user_thread.
2504 (store_regs_kern): Rename to store_regs_kernel_thread.
2505
27bae383 25062002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2507
2508 * aix-thread.c (ops_prepare_to_store): Eliminate.
2509 (init_ops): Don't initialize ops.prepare_to_store.
2510 (store_regs_kern): Pre-fetch register buffers from child,
2511 because some registers may not be in the cache. Copy
2512 regs from register cache only if they are cached.
2513 (store_regs_lib): Copy regs from register cache only
2514 if they are cached.
2515 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2516 fill_gprs64): Ditto.
2517
61c5da0b
KB
25182002-07-22 Kevin Buettner <kevinb@redhat.com>
2519
2520 * aix-thread.c (gdb_assert.h): Include.
2521 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2522 register sizes (from register cache) match size of buffer holding
2523 register data.
2524 (fill_sprs32): Change parameter types to match those in the ptrace()
2525 buffer.
2526 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2527 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2528
25292002-07-22 Michael Snyder <msnyder@redhat.com>
2530
2531 * aix-thread.c (supply_sprs64): Cosmetic change.
2532 (supply_sprs32): Cosmetic change.
2533 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2534 (fill_sprs64): Use regcache_collect instead of read_register.
2535 (store_regs_lib): Use regcache_collect instead of
2536 read_register. Use fill_sprs32 instead of fill_sprs64,
2537 if debugging a 32-bit architecture.
2538 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2539 out of the register cache, instead of passing a pointer into
2540 the register cache directly to ptrace. Use regcache_collect
2541 insteaad of read_register.
2542 (ops_prepare_to_store): Use target_read_registers instead
2543 of read_register_bytes.
2544
36479eb1
AS
25452002-07-20 Aidan Skinner <aidan@velvet.net>
2546
2547 * MAINTAINERS: Add self under write after approval.
2548
80ae6ee2
AS
25492002-07-20 Aidan Skinner <aidan@velvet.net>
2550
2551 * ada-tasks.c: Change k&r style function definitions to prototyped
2552 form.
2553
8a8ab2b9
AC
25542002-07-19 Andrew Cagney <ac131313@redhat.com>
2555
2556 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2557 * x86-64-tdep.c: Include "objfiles.h".
2558 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2559 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2560
fb16b900
ML
25612002-07-17 Michal Ludvig <michal@suse.cz>
2562
2563 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2564 (update_context): Initialise cfa variable.
2565
0fe7bf7b
MS
25662002-07-17 Michael Snyder <msnyder@redhat.com>
2567
2568 * aix-thread.c: Shorten some long lines.
2569 Bring comments into line with code spec.
2570
488f131b
JB
25712002-07-18 Joel Brobecker <brobecker@gnat.com>
2572
2573 * infrun.c: Re-indent using gdb_indent.sh.
2574
46c415d2
JB
25752002-07-18 Joel Brobecker <brobecker@gnat.com>
2576
2577 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2578 Leave the indentation temporarily untouched, to minimize the diffs.
2579
cdecafbe
EZ
25802002-07-18 Elena Zannoni <ezannoni@redhat.com>
2581
2582 * stabsread.c: Make os9k sections of the code obsolete,
2583 for real this time.
2584 * stabsread.h: Make os9k sections of the code obsolete.
2585
7b6aa020
ML
25862002-07-18 Michal Ludvig <mludvig@suse.cz>
2587
09ec9b38
ML
2588 * linux-low.c (regsets_store_inferior_registers): Add free()
2589 at the end of a loop to prevent memory leak.
2590 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2591 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2592 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2593 line a comment.
4894ac5d 2594 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2595
233282cd
JB
25962002-07-17 Jim Blandy <jimb@redhat.com>
2597
2598 * macrocmd.c (info_macro_command): Remove newline from error
2599 message.
2600
7b6aa020 26012002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2602
2603 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2604 (sh_gdbarch_init): Use it for sh-dsp.
2605
f7ef9339
KB
26062002-07-16 Kevin Buettner <kevinb@redhat.com>
2607
2608 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2609 64-bit DWARF2 format.
2610
8dd72958
JB
26112002-07-16 Joel Brobecker <brobecker@gnat.com>
2612
2613 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2614 <sys/proc.h> when not available.
2615
a99a9e1b
AC
26162002-07-16 Andrew Cagney <ac131313@redhat.com>
2617
2618 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2619 * stabsread.c: Make os9k sections of the code obsolete.
2620 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2621 * config/i386/i386os9k.mt: Make file obsolete.
2622 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2623 (COMMON_OBS): Remove os9kread.o
2624 (SFILES): Remove os9kread.c.
2625 (os9kread.o, remote-os9k.o): Make target obsolete.
2626 * remote-os9k.c: Make file obsolete.
2627 * os9kread.c: Make file obsolete.
2628 * Makefile.in
2629
7a3085c1
AC
26302002-07-16 Andrew Cagney <ac131313@redhat.com>
2631
2632 * NEWS: Mention that the FR30 has been made obsolete.
2633 * fr30-tdep.c: Make file obsolete.
2634 * config/fr30/tm-fr30.h: Ditto.
2635 * config/fr30/fr30.mt: Ditto.
2636 * configure.tgt: Make fr30-*-elf obsolete.
2637 * MAINTAINERS: Make fr30-elf obsolete.
2638
28a93f5a
PM
26392002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2640
2641 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2642 found is not inside a section.
2643
be006b8b
KB
26442002-07-15 Kevin Buettner <kevinb@redhat.com>
2645
2646 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2647 strerror().
2648 (pdc_realloc): Use xrealloc() instead of realloc().
2649
14fa3751
KB
26502002-07-15 Kevin Buettner <kevinb@redhat.com>
2651
2652 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2653 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2654 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2655 macros.
2656
42cc437f
KB
26572002-07-15 Kevin Buettner <kevinb@redhat.com>
2658
2659 * aix-thread.c (ptrace_check): Eliminate goto.
2660 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2661 problem.
2662
8e2c28d4
KB
26632002-07-15 Kevin Buettner <kevinb@redhat.com>
2664
2665 * aix-thread.c (gdbcmd.h): Include.
2666 (DEBUG, DBG, DBG2, dbg): Eliminate.
2667 (debug_aix_thread): New static global.
2668 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2669 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2670 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2671 invocations to DBG and DBG2 macros to test against
2672 ``debug_aix_thread'' and call fprintf_unfiltered().
2673 (_initialize_aix_thread): Add new command "set debug aix-thread".
2674
30413464
AC
26752002-07-15 Andrew Cagney <ac131313@redhat.com>
2676
2677 From Gerhard Tonn <TON@de.ibm.com>:
2678 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2679 instead of supply_register.
2680
7c43edc1
AC
26812002-07-15 Andrew Cagney <ac131313@redhat.com>
2682
2683 * dwarf2cfi.c: Include "gdb_assert.h".
2684 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2685 non-NULL.
2686 (update_context): Do not use __func__. Add missing ``break''.
2687 (update_context): Do not use __func__.
2688
9364a0ef
EZ
26892002-07-15 Elena Zannoni <ezannoni@redhat.com>
2690
2691 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2692 and its setting. Set gdbarch instruction printing functions
2693 directly. For non-rs6000 case use new function
2694 gdb_print_insn_powerpc.
2695 (gdb_print_insn_powerpc): New function.
2696
3fbeef0b
AC
26972002-07-13 Andrew Cagney <ac131313@redhat.com>
2698
92eb23c5 2699 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2700 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2701 * configure.tgt: Mark d30v-*-* as obsolete.
2702 * d30v-tdep.c: Mark file as obsolete.
2703 * config/d30v/d30v.mt: Ditto.
2704 * config/d30v/tm-d30v.h: Ditto.
2705
aacb1f0a
AS
27062002-07-13 Aidan Skinner <aidan@velvet.net>
2707
2708 * ada-tasks.c (add_task_entry): replace calls to
2709 malloc() with xmalloc
2710 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2711
2712 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2713 ada_finish_decode_line_1, all_sals_for_line
2714 ada_breakpoint_rewrite): replace calls to free() with xfree()
2715
c11d79f2
KB
27162002-07-12 Kevin Buettner <kevinb@redhat.com>
2717
2718 From Nicholas Duffek (with minor changes by Martin Hunt,
2719 Louis Hamilton, and Kevin Buettner):
2720 * aix-thread.c: New file.
2721
8e19ed76
PS
27222002-07-12 Petr Sorfa <petrs@caldera.com>
2723
2724 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2725 complaint for invalid attribute class or form.
2726 (read_func_scope): DW_AT_frame_base
2727 better handling of DW_AT_block*.
2728 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2729 better handling of DW_AT_block*.
2730 (read_common_block): DW_AT_location
2731 better handling of DW_AT_block*.
2732 (read_partial_die): DW_AT_location better handling
2733 of DW_AT_block*.
2734 (new_symbol): DW_AT_external better handling of
2735 DW_AT_block*. Proper initialization of variable
2736 "addr".
2737 (attr_form_is_block): New function that returns true
2738 if the attribute's form is of DW_FORM_block*.
2739
295401f7
DJ
27402002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2741
2742 * valops.c (find_method_list): Remove comment about
2743 removed STATIC_MEMFUNCP argument.
2744 (value_find_oload_method_list): Likewise.
2745
e42dc924
KB
27462002-07-12 Kevin Buettner <kevinb@redhat.com>
2747
2748 From Nicholas Duffek:
2749 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2750 target_new_objfile_hook.
2751
6904b546
KB
27522002-07-12 Kevin Buettner <kevinb@redhat.com>
2753
2754 From Nicholas Duffek:
2755 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2756 csect.
2757
53fe9346
AC
27582002-07-12 Andrew Cagney <cagney@redhat.com>
2759
2760 * MAINTAINERS: Mention --enable-sim-build-warnings.
2761 (m68hc11-elf): Disable sim build warnings.
2762 (m32r-elf): Mark as broken obsolete candidate.
2763 (x86_64-linux-gnu): Mark as buildable with -Werror.
2764 (arm-elf): Change -w to ``,'' which enables warnings but not
2765 -Werror.
2766
af5f3db6
AC
27672002-07-12 Andrew Cagney <ac131313@redhat.com>
2768
2769 * bcache.h: Update copyright.
2770 (struct bstring, struct bcache): Move definition to "bcache.c".
2771 Replaced by opaque declaration.
2772 (bcache_xfree): Replace free_bcache.
2773 (bcache_xmalloc, bcache_memory_used): Declare.
2774
2775 * bcache.c: Update copyright.
2776 (struct bstring, struct bcache): Moved to here from "bcache.h".
2777 Update comments.
2778 (bcache_xmalloc, bcache_memory_used): New functions.
2779 (bcache_xfree): Replace function free_bcache.
2780
2781 * Makefile.in (objfiles.o): Add $(bcache_h).
2782 (objfiles_h): Remove $(bcache_h).
2783 (symfile.o): Add $(bcache_h).
2784
2785 * symmisc.c: Update copyright.
2786 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2787 (print_objfile_statistics): Use bcache_memory_used.
2788
2789 * symfile.c: Include "bcache.h".
2790 (reread_symbols): Use bcache_xfree.
2791 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2792 (add_psymbol_to_list): Pass psymbol_cache by value.
2793 (add_psymbol_with_dem_name_to_list): Ditto.
2794
2795 * objfiles.h: Update copyright.
2796 (struct bcache): Declare opaque. Do not include "bcache.h".
2797 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2798 bcache'' pointers.
2799 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2800
2801 * objfiles.c: Include "bcache.h". Update copyright.
2802 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2803 macro_cache.
2804 (free_objfile): Use bcache_xfree.
2805
444199e7
GS
28062002-07-11 Grace Sainsbury <graces@redhat.com>
2807
2808 * monitor.c (monitor_fetch_register): Make name a constant.
2809 (monitor_store_register): Same.
2810
261397f8
DJ
28112002-07-11 Daniel Jacobowitz <drow@mvista.com>
2812
2813 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2814 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2815 (finish_block) For non-function blocks, hash the symbol table. For
2816 function blocks, mark the symbol table as unhashed.
2817 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2818 (msymbol_hash_iw): Likewise.
2819 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2820 value.
2821 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2822 (lookup_minimal_symbol): Likewise for both.
2823 * symtab.h (struct block): Add `hashtable' flag. Comment the
2824 hashtable.
2825 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2826 (ALL_BLOCK_SYMBOLS): Update.
2827 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2828 (struct symbol): Add `hash_next' pointer.
2829 * symtab.c (lookup_block_symbol): Search using the hash table when
2830 possible.
2831 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2832 (search_symbols, find_addr_symbol): Likewise.
2833
2834 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2835 (read_dst_symtab): Likewise.
2836 * jv-lang.c (get_java_class_symtab): Likewise.
2837 * mdebugread.c: Include "gdb_assert.h".
2838 (shrink_block): Assert that the block being modified is not hashed.
2839 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2840 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2841 symbols.
2842 (dump_symtab): Recognize hashed blocks.
2843 * printcmd.c (print_frame_args): Assert that function blocks do not
2844 have hashed symbol tables.
2845 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2846 (fill_in_ada_prototype, debug_print_block): Likewise.
2847 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2848
6f0eaa01
CV
28492002-07-11 Corinna Vinschen <vinschen@redhat.com>
2850
2851 * stack.c (print_frame): Use result of frame_address_in_block()
2852 instead of fi->pc when evaluating symbols.
2853 (backtrace_command_1): Ditto.
2854
a208b0cb
AC
28552002-07-11 Andrew Cagney <cagney@redhat.com>
2856
2857 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2858 Make static.
2859
2860 * arm-tdep.c (arm_register_name): Make return type constant.
2861
a6b6b089
AC
28622002-07-10 Andrew Cagney <ac131313@redhat.com>
2863
5ae5f592
AC
2864 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2865 prototype.
2866 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2867 * s390-tdep.c (s390_fp_regnum): Ditto.
2868 (s390_read_fp): Ditto.
2869 (s390_pop_frame): Ditto.
2870 (_initialize_s390_tdep): Ditto.
2871 * remote.c (get_remote_state): Ditto.
2872 * procfs.c (mappingflags): Ditto.
2873 * memattr.c (_initialize_mem): Ditto.
2874 * mcore-tdep.c (mcore_pop_frame): Ditto.
2875 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2876 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2877 * language.c (set_case_str): Ditto.
2878 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2879 * frv-tdep.c (new_variant): Ditto.
2880 (frv_stopped_data_address): Ditto.
2881 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2882 (context_alloc): Ditto.
2883 (frame_state_alloc): Ditto.
2884 (unwind_tmp_obstack_init): Ditto.
2885 (unwind_tmp_obstack_free): Ditto.
2886 (cfi_read_fp): Ditto.
2887 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2888 (cris_pop_frame): Ditto.
2889 * c-lang.c (scanning_macro_expansion): Ditto.
2890 (finished_macro_expansion): Ditto.
2891 (c_preprocess_and_parse): Ditto.
2892 * gdbarch.sh: Ditto.
2893 * gdbarch.h, gdbarch.c: Regenerate.
2894 * config/mn10200/tm-mn10200.h: Adjust indentation.
2895 * target.c: Adjust indentation.
2896 * symtab.h: Adjust indentation.
2897 * stabsread.h: Adjust indentation.
2898 * remote-es.c: Adjust indentation.
2899 * os9kread.c: Adjust indentation.
2900
29012002-07-10 Andrew Cagney <ac131313@redhat.com>
2902
a6b6b089
AC
2903 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2904 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2905
a1789893
GS
29062002-07-10 Grace Sainsbury <graces@redhat.com>
2907
2908 * NEWS: Mention m68k, mcore multi-arching.
2909 * MAINTAINERS: Change status of m68k, mcore to reflect
2910 multi-arching.
2911
02f0d45d
DJ
29122002-07-10 Daniel Jacobowitz <drow@mvista.com>
2913
2914 * valops.c (find_overload_match): Free oload_syms.
2915
f15f768e
JB
29162002-07-09 Joel Brobecker <brobecker@gnat.com>
2917
2918 Define HAVE_SYS_PROC_H if sys/proc.h exists
2919 * configure.in: Add check for sys/proc.h
2920 * config.in: Regenerate.
2921 * configure: Regenerate.
2922
902a7139
GS
29232002-07-09 Grace Sainsbury <graces@redhat.com>
2924
2925 * config/m68k/tm-m68k.h: Remove macros wrapped in
2926 #if !GDB_MULTI_ARCH.
2927
a534e424
AC
29282002-07-08 Andrew Cagney <ac131313@redhat.com>
2929
2930 * config.in, configure: Regenerate.
2931
9b94f7bf
MK
29322002-07-08 Mark Kettenis <kettenis@gnu.org>
2933
2934 * dwarf2cfi.c: Include "gcore.h".
2935 (execute_stack_op): Fix implementation of the
2936 DW_OP_deref and DW_OP_deref_size operators by letting do their
2937 lookup in the target.
2938
1d34db41
MK
29392002-07-07 Mark Kettenis <kettenis@gnu.org>
2940
2941 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2942 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2943 tdep->sc_sp_offset.
2944
79d5b63a
DJ
29452002-07-05 Daniel Jacobowitz <drow@mvista.com>
2946
2947 Fix PR gdb/595, gdb/602
2948 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2949 Don't call value_cast, just read the vtable pointer; update comments
2950 to match.
2951
3bb912e8
GS
29522002-07-05 Grace Sainsbury <graces@redhat.com>
2953
2954 * config/mcore/tm-mcore.h: Remove file.
2955 * config/mcore/mcore.mt: Remove definition of TM_FILE
2956 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2957
ca39387d
MK
29582002-07-05 Mark Kettenis <kettenis@gnu.org>
2959
2960 * i386bsd-tdep.c: Include "gdb_string.h".
2961
efdc1108
GS
29622002-07-04 Grace Sainsbury <graces@redhat.com>
2963
2964 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2965 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2966 mcore-tdep.
2967 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2968 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2969 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2970 (RETVAL_REGNUM): Move macros from tm-mcore.h
2971 (mcore_reg_struct_has_addr): New function.
2972 (mcore_gdbarch_init): Added initializations for the macros removed
2973 from tm-mcore.h.
2974
bb21884d
MK
29752002-07-04 Mark Kettenis <kettenis@gnu.org>
2976
2977 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2978 traditonal string branding within the ELF header.
2979
228c6d41
DJ
29802002-07-04 Daniel Jacobowitz <drow@mvista.com>
2981
2982 * symtab.c (remove_params): New function.
2983 (make_symbol_overload_list): Use it instead of cplus_demangle.
2984 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2985
2404952e
MK
29862002-07-04 Mark Kettenis <kettenis@gnu.org>
2987
e5e4acad
MK
2988 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2989
baadce09
MK
2990 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2991 New variables.
2992 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2993 and tdep->sigtramp_end.
2994 * i386obsd-nat.c: New file.
2995 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2996
2404952e
MK
2997 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2998 Don't call get_current_frame().
2999
9b4f1ba7
PM
30002002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3001
3002 * i386-nat.c (child_post_startup_inferior): New function
3003 calling i386_cleanup_dregs if
3004 I386_USE_GENERIC_WATCHPOINTS is defined.
3005 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3006 conditional to acknowledge that i386-nat.c has its
3007 own child_post_startup_inferior function.
3008
c0d1d883
MK
30092002-07-04 Mark Kettenis <kettenis@gnu.org>
3010
00f8375e
MK
3011 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3012 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3013 instead of MAX_REGISTER_RAW_SIZE.
3014 (i386_extract_return_value, i386_extract_struct_value_address):
3015 Convert to use regcache.
3016 (i386_gdbarch_init): Set max_register_raw_size and
3017 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3018 Set extract_return_value and extract_struct_value_address instead
3019 of their deprecated variants.
3020
c0d1d883
MK
3021 Convert i386 target to generic dummy frames.
3022 * i386-tdep.c: Include "symfile.h".
3023 (i386_frameless_signal_p): Consider a function to be frameless if
3024 the pc points at the first instruction of the function.
3025 (i386_frame_chain): Handle (generic) call dummies.
3026 (i386_frame_saved_pc): Likewise.
3027 (i386_frame_init_saved_regs): Remove code dealing with call
3028 dummies on the stack.
3029 (i386_push_dummy_frame): Removed.
3030 (i386_call_dummy_words): Removed.
3031 (i386_fix_call_dummy): Removed.
3032 (i386_push_return_address): New function.
3033 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3034 parameter, and don't call get_current_frame.
3035 (i386_pop_frame): New function.
3036 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3037 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3038 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3039 call_dummy_length to 0, set call_dummy_words to NULL, set
3040 sizeof_call_dummy_words to 0, set fix_call_dummy to
3041 generic_fix_call_dummy, set pc_in_call_dummy to
3042 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3043 generic_push_dummy_frame, set push_return_address to
3044 i386_push_return_address and set frame_chain_valid to
3045 generic_file_frame_chain_valid.
3046
049ee0e4
AC
30472002-07-03 Andrew Cagney <ac131313@redhat.com>
3048
3049 * gdbarch.sh (struct regcache): Add opaque declaration.
3050 (EXTRACT_RETURN_VALUE): New architecture method.
3051 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3052 * gdbarch.h, gdbarch.c: Regenerate.
3053 * arch-utils.c (legacy_extract_return_value): New function.
3054 * arch-utils.h (legacy_extract_return_value): Declare.
3055 * values.c (value_being_returned): Re-enable code handling
3056 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3057 deprecated_grub_regcache_for_registers call to block handling
3058 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3059 (EXTRACT_RETURN_VALUE): Do not define.
3060
4e0d9804
GS
30612002-07-03 Grace Sainsbury <graces@redhat.com>
3062
3063 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3064 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3065 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3066 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3067 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3068 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3069 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3070 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3071 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3072 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3073 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3074 argument so the function fits the prototype in the architecture
3075 vector.
3076 (mcore_pop_frame): Remove argument so the function fits the
3077 prototype. Use get_current_frame instead of the argument.
3078 (mcore_push_arguments): Change type of struct_return so the
3079 function can be used in the architecture vector.
3080 (mcore_store_struct_return): Add.
3081 (mcore_frame_init_saved_regs): Add.
3082 (mcore_gdbarch_init): Add function calls to replace the macros
3083 removed from tm-mcore.h
3084
36160dc4
AC
30852002-07-03 Andrew Cagney <ac131313@redhat.com>
3086
3087 * infcmd.c (print_return_value): Remove compatibility code calling
3088 deprecated_grub_regcache_for_registers.
3089
3090 * values.c: Include "regcache.h".
3091 (value_being_returned): Update. Use
3092 deprecated_grub_regcache_for_registers to extract the register
3093 buffer address.
3094 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3095 ``struct regcache''.
3096 * Makefile.in (values.o): Add dependency on $(regcache_h).
3097
3098 * inferior.h (run_stack_dummy): Change type of second parameter to
3099 a ``struct regcache''.
3100 * valops.c (hand_function_call): Change type of retbuf to ``struct
3101 regcache''. Allocate using regcache_xmalloc, clean using
3102 make_cleanup_regcache_xfree.
3103 * infcmd.c (run_stack_dummy): Update. Use
3104 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3105
3106 * regcache.c (do_regcache_xfree): New function.
3107 (make_cleanup_regcache_xfree): New function.
3108 * regcache.h (make_cleanup_regcache_xfree): Declare.
3109
e64d9b3d
MH
31102002-07-03 Martin M. Hunt <hunt@redhat.com>
3111
4dd79c29
MH
3112 * event-top.c (command_line_handler): Don't read past
3113 beginning of buffer.
e64d9b3d 3114
4dd79c29
MH
31152002-07-03 Martin M. Hunt <hunt@redhat.com>
3116
e64d9b3d
MH
3117 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3118 struct frame_id.
3119 (varobj_create): Store frame_id for root.
3120 (varobj_gen_name): Use xasprintf.
3121 (varobj_update): Save and restore frame using get_frame_id() and
3122 frame_find_by_id().
3123 (create_child): Use xasprintf.
3124 (new_root_variable): Initialize frame_id.
3125 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3126 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3127 to prevent memory leak.
3128
26e6c56a
AC
31292002-07-03 Andrew Cagney <ac131313@redhat.com>
3130
3131 * valops.c (hand_function_call): Move declaration of retbuf to
3132 start of function, allocate using malloc, add a cleanup but before
3133 the inf_status cleanup, cleanup the buffer. Rename local variable
3134 old_chain to inf_status_cleanup.
3135
f436dd25
MH
31362002-07-03 Martin M. Hunt <hunt@redhat.com>
3137
3138 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3139
3140 * cli/cli-decode.c (cmd_func_p): New function.
3141 (cmd_func): New function.
3142
3143 * command.h: Add cmd_func() and cmd_func_p().
3144
4cfe2084
GS
31452002-07-03 Grace Sainsbury <graces@redhat.com>
3146
3147 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3148 (REGISTER_SIZE): Remove.
3149 (MAX_REGISTER_RAW_SIZE): Remove.
3150 (REGISTER_VIRTUAL_TYPE): Remove.
3151 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3152 (REGISTER_NAME): Remove.
3153 (USE_GENERIC_DUMMY_FRAMES): Remove.
3154 (CALL_DUMMY): Remove.
3155 (CALL_DUMMY_START_OFFSET): Remove.
3156 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3157 (CALL_DUMMY_LOCATION): Remove.
3158 (FIX_CALL_DUMMY): Remove.
3159 (CALL_DUMMY_ADDRESS): Remove.
3160 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3161 (SAVE_DUMMY_FRAME_TOS): Remove.
3162 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3163 (mcore_register_virtual_type): New function.
3164 (mcore_register_byte): New function.
3165 (mcore_register_size): New function.
3166 (mcore_register_name): New function.
3167 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3168 macros removed from tm-mcore.h.
3169 (mcore_dump_tdep): Add.
3170 (_initialize_mcore_tdep): Add gdbarch_register call.
3171
4fd667e9
MK
31722002-07-03 Mark Kettenis <kettenis@gnu.org>
3173
3174 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3175 frameless_look_for_prologue, such that we actually call this
3176 function.
3177
42f99ac2
JB
31782002-07-02 Joel Brobecker <brobecker@gnat.com>
3179
3180 * frame.h (frame_address_in_block): New function.
3181
3182 * blockframe.c (frame_address_in_block): New function extracted
3183 from get_frame_block().
3184 (get_frame_block): Use frame_address_in_block().
3185 (block_innermost_frame): Use frame_address_in_block() to match
3186 the frame pc address against the block boundaries rather than
3187 the frame pc directly. This prevents a failure when a frame pc
3188 is actually a return-address pointing immediately after the end
3189 of the given block.
3190
103a1597 31912002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3192
3193 * MAINTAINERS: Add self under write after approval.
3194
31952002-07-02 Grace Sainsbury <graces@redhat.com>
3196
103a1597
GS
3197 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3198 used in architecture vector. The default is
3199 m68k_local_breakpoint_from_pc.
3200 (m68k_local_breakpoint_from_pc): Add.
3201 (enum): Add register numbers from tm-m68k.h.
3202 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3203 vector.
3204 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3205 GDB_MULTI_ARCH_PARTIAL.
3206 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3207 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3208 m68k-tdep.c.
3209 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3210 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3211 to enum in m68k-tdep.c
3212
7a5a0534
JB
32132002-07-02 Joel Brobecker <brobecker@gnat.com>
3214
3215 * solib-osf.c (open_map): Compute the list of shared libraries
3216 loaded by the inferior, rather than the list of libraries loaded
3217 by GDB itself. Otherwise, GDB ends up reading the symbols from
3218 the wrong shared libraries...
3219
6f558d74
MK
32202002-07-02 Mark Kettenis <kettenis@gnu.org>
3221
b7d15bf7
MK
3222 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3223 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3224 macros.
3225 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3226 Remove functions.
3227 (FRAMELESS_SIGNAL): Remove function.
3228 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3229 i386_linux_saved_pc_after_call): Removed.
3230 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3231 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3232 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3233
6bff26de
MK
3234 * i386-tdep.c (i386_frameless_signal_p): New function.
3235 (i386_frame_chain): Deal with frameless signals.
3236 (i386_sigtramp_saved_sp): New function.
3237 (i386_frame_saved_pc): Deal with frameless signals.
3238 (i386_saved_pc_after_call): Make sure the correct value is
3239 returned just after entry into a sigtramp.
3240 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3241 i386fbsd4_sc_sp_offset): New variables.
3242 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3243 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3244 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3245 similiar to what we already did for sc_pc_offset.
3246 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3247 tdep->sc_sp_offset.
3248
6f558d74
MK
3249 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3250
145564b7
ML
32512002-07-02 Michal Ludvig <mludvig@suse.cz>
3252
3253 * config/i386/tm-x86-64linux.h: New.
3254 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3255 definitions.
3256 * config/i386/nm-x86-64.h: Rename to ...
3257 * config/i386/nm-x86-64linux.h: ... this one.
3258 * config/i386/x86-64linux.mh: Reflect the above change.
3259
3a1e71e3
MK
32602002-07-01 Mark Kettenis <kettenis@gnu.org>
3261
21d0e8a4
MK
3262 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3263 with sigcontext_addr. Add sc_sp_offset.
3264 (i386bsd_sigtramp_saved_pc): Remove prototype.
3265 (i386bsd_sicontext_addr): Add prototype.
3266 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3267 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3268 (i386_svr4_sigtramp_saved_pc): Removed.
3269 (i386_svr4_sigcontext_addr): New function.
3270 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3271 Initialize tdep->sigcontext_addr instead. Initialize
3272 tdep->sc_pc_offset and tdep->sc_sp_offset.
3273 (i386_gdbarch_init): Likewise.
3274 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3275 any more.
3276 (i386bsd_sigtramp_saved_pc): Remove function.
3277 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3278 Initialize tdep->sigcontext_addr instead. Initialize
3279 tdep->sc_pc_offset.
3280 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3281 of tdep->sigtramp_saved_pc.
3282 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3283 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3284 instead.
3285
3a1e71e3
MK
3286 * i386-tdep.c (i386_frameless_function_invocation,
3287 i386_frame_num_args, i386_frame_init_saved_regs,
3288 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3289 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3290 i386_extract_return_value, i386_store_return_value,
3291 i386_extract_struct_value_address, i386_register_virtual_type,
3292 i386_register_convertible, i386_register_convert_to_virtual,
3293 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3294 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3295 static.
3296
52e9098c
MK
32972002-07-01 Mark Kettenis <kettenis@gnu.org>
3298
77b13a25
MK
3299 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3300
52e9098c
MK
3301 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3302 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3303 this macro. Include "value.h".
3304
1b372fff
AS
33052002-06-30 Aidan Skinner <aidan@velvet.net>
3306
3307 * ada-exp.tab.c: remove as it's a generated file
3308 * ada-lex.c: remove as it's a generated file
3309
9c5045b5
MK
33102002-06-30 Mark Kettenis <kettenis@gnu.org>
3311
4a93c5bb
MK
3312 * config/i386/tm-i386.h (struct frame_info, struct
3313 frame_saved_regs, struct value, struct type): Remove forward
3314 declarations.
3315
322d4fe0
MK
3316 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3317 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3318 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3319 (FILL_FPXREGSET): Define.
3320
fdd8263d
MK
3321 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3322
482e577b
MK
3323 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3324 i[3456]86-*-netbsd* case.
3325 * config/i386/tm-obsd.h: Removed.
3326 * config/i386/obsd.mt: Removed.
3327 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3328 core-aout.o.
3329 (MH_CFLAGS): Add -DYYDEBUG=0.
3330
6916549a
MK
3331 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3332 i386nbsd_sc_pc_offset on OpenBSD too.
3333
9c5045b5
MK
3334 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3335 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3336 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3337 define.
3338 * i386bsd-tdep.c: Include "arch-utils.h".
3339 (i386bsd_aout_in_solib_call_trampoline): New function.
3340 (i386bsd_init_abi): Set in_solib_call_trampoline to
3341 i386bsd_aout_in_solib_call_trampoline.
3342 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3343 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3344
aa84d1bb
AC
33452002-06-28 Andrew Cagney <ac131313@redhat.com>
3346
3347 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3348 (struct obstack, struct bcache): Add opaque declarations.
3349 * Makefile.in (macrotab_h): Update
3350
b4d83933
AC
33512002-06-28 Andrew Cagney <ac131313@redhat.com>
3352
3353 * blockframe.c (generic_find_dummy_frame): Change return type to
3354 ``struct regcache''.
3355 (struct dummy_frame): Replace field ``registers'' with regcache, a
3356 struct regcache object.
3357 (generic_find_dummy_frame): Update.
3358 (generic_push_dummy_frame): Update. Use regcache_xfree,
3359 regcache_xmalloc and regcache_cpy.
3360 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3361 regcache_xfree.
3362 (deprecated_generic_find_dummy_frame): Update.
3363 (generic_read_register_dummy): Update. Use
3364 regcache_read_as_address.
3365 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3366 (generic_get_saved_register): Update. Use regcache_read.
3367
08c0b5bc
AC
33682002-06-28 Andrew Cagney <ac131313@redhat.com>
3369
3370 * Makefile.in (objfiles_h): Add $(bcache_h).
3371 * objfiles.h: Include "bcache.h".
3372
3373 * Makefile.in (symtab_h): Remove $(bcache_h).
3374 * symtab.h: Do not include "bcache.h".
3375
1f89801a
AC
33762002-06-28 Andrew Cagney <ac131313@redhat.com>
3377
3378 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3379 generic_func_frame_chain_valid.
3380
b9644b58
DB
33812002-06-28 David O'Brien <obrien@FreeBSD.org>
3382
3383 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3384 * config/i386/tm-fbsd.h: Likewise.
3385
dd486634
AC
33862002-06-28 Andrew Cagney <ac131313@redhat.com>
3387
3388 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3389 generic_unwind_get_saved_register.
3390
0b434a00
AC
33912002-06-27 Andrew Cagney <ac131313@redhat.com>
3392
3393 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3394 * regcache.c (supply_register): Add missing argument to
3395 register_buffer call.
3396
f30e5a77
AC
33972002-06-27 Andrew Cagney <ac131313@redhat.com>
3398
3399 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3400 Solaris /bin/grep does not not like it. From Peter Schauer.
3401
9f064c95
TT
34022002-06-26 Tom Tromey <tromey@redhat.com>
3403
3404 * command.h (add_setshow_cmd): Declare.
3405 (add_setshow_cmd_full): Declare.
3406 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3407 returns void. Use add_setshow_cmd_full.
3408 (add_setshow_cmd_full): New function.
3409 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3410 (add_setshow_boolean_cmd): Likewise.
3411
099c7589
JT
34122002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3413
3414 * config/vax/tm-vax.h: Protect from multiple inclusion.
3415 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3416 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3417 * config/vax/tm-vaxbsd.h: ...here. New file.
3418 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3419
1d049c5e
JT
34202002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3421
3422 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3423 (BELIEVE_PCC_PROMOTION): Remove.
3424 (AP_REGNUM): Move to...
3425 * config/vax/nm-vax.h: ...here.
3426 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3427 (vax_breakpoint_from_pc): New function.
3428 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3429 and gdbarch_believe_pcc_promotion.
3430
4791e091
JT
34312002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3432
3433 * Makefile.in (vax_tdep_h): Define.
3434 (vax-tdep.o): Use $(vax_tdep_h).
3435 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3436 (vax_dump_tdep): New function.
3437 (_initialize_vax_tdep): Register vax_dump_tdep.
3438 * vax-tdep.h: Include osabi.h.
3439 (struct gdbarch_tdep): New.
3440
da130f98
AC
34412002-06-26 Andrew Cagney <cagney@redhat.com>
3442
3443 * frame.h (deprecated_generic_find_dummy_frame): Rename
3444 generic_find_dummy_frame.
3445 * blockframe.c (generic_find_dummy_frame): Make static.
3446 (deprecated_generic_find_dummy_frame): New function.
3447 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3448 generic_find_dummy_frame with deprecated_find_dummy_frame.
3449 (sh64_nofp_frame_init_saved_regs): Ditto.
3450 (sh_fp_frame_init_saved_regs): Ditto.
3451 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3452 (s390_frame_chain): Ditto.
3453 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3454
6300c360
GS
34552002-06-26 Grace Sainsbury <graces@redhat.com>
3456
3457 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3458 gdbarch vector are at the top.
3459 (NUM_REGS): Remove.
3460 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3461 (FRAME_ARGS_ADDRESS): Remove.
3462 (FRAME_LOCALS_ADDRESS): Remove.
3463 (FRAME_NUM_ARGS): Remove.
3464 (FRAME_ARGS_SKIP): Remove.
3465 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3466 (m68k_gdbarch_init): Add gdbarch initializations for macros
3467 undefined in tm-m68k.h
3468
1c617db8
GS
34692002-06-26 Grace Sainsbury <graces@redhat.com>
3470
3471 * monitor.h: Add the function regname to monitor_ops
3472 structure. This way NUM_REGS does not have to be a constant.
3473 * monitor.c (monitor_fetch_register): Added support for regname
3474 function. The function is called if the array regnames is NULL.
3475 (monitor_store_register): Same.
da130f98
AC
3476 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3477 regnames array.
1c617db8
GS
3478 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3479 cpu32bug_cmds.regname to point to new function.
3480 * abug-rom.c (abug_regname): Same as above.
3481 (init_abug_cmds): Same.
3482 * dbug-rom.c (dbug_regname): Same as above.
3483 (init_dbug_cmds): Same.
3484 * remote-est.c (est_regname): Same.
3485 (init_est_cmds): Same.
3486 * rom68k-rom.c (rom68k_regname): Same.
3487 (init_rom68k_cmds): Same.
3488
ea9365bb
TT
34892002-06-25 Tom Tromey <tromey@redhat.com>
3490
3491 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3492
72cec141
AC
34932002-06-25 Andrew Cagney <cagney@redhat.com>
3494
3495 * infrun.c (stop_registers): Change variable's type to ``struct
3496 regcache'''.
3497 (xmalloc_inferior_status): Delete function.
3498 (free_inferior_status): Delete function.
3499 (normal_stop): Use regcache_cpy.
3500 (struct inferior_status): Change type of fields ``stop_registers''
3501 and ``registers'' to ``struct regcache''.
3502 (write_inferior_status_register): Use regcache_write.
3503 (save_inferior_status): Instead of calling
3504 xmalloc_inferior_status, allocate the inf_status buffer directly.
3505 Use regcache_dup_no_passthrough and regcache_dup to save the
3506 buffers.
3507 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3508 Replace the stop_registers regcache instead of overriding it. Use
3509 regcache_xfree. Instead of calling free_inferior_status, xfree
3510 the buffer directly.
3511 (discard_inferior_status): Use regcache_xfree. Instead of calling
3512 free_inferior_status, xfree the buffer directly.
3513 (build_infrun): Use regcache_xmalloc.
3514 (_initialize_infrun): Delete redundant call to build_infrun.
3515
3516 * Makefile.in (infcmd.o): Add $(regcache_h).
3517
3518 * infcmd.c: Include "regcache.h".
3519 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3520 obtain the address of `stop_registers' register buffer.
3521 (print_return_value): Ditto.
3522
3523 * inferior.h (struct regcache): Add opaque declaration.
3524 (stop_registers): Change variable's declared type to ``struct
3525 regcache''.
3526
defc6f8c
TT
35272002-06-24 Tom Tromey <tromey@redhat.com>
3528
c0e624e7
TT
3529 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3530 * target.c (initialize_targets): Fixed typo in
3531 trust-readonly-sections `show' documentation.
3532
defc6f8c
TT
3533 * main.c: Marked all strings with _().
3534
2b236d82
DH
35352002-06-24 Don Howard <dhoward@redhat.com>
3536
3537 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3538 that means max CORE_ADDR+1.
3539 (lookup_mem_region): Ditto.
3540 (mem_info_command): Ditto.
3541
942dc0e9
GS
35422002-06-24 Grace Sainsbury <graces@redhat.com>
3543
3544 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3545 (REGISTER_BYTES_OK): Remove.
3546 (REGISTER_BYTES): Remove.
3547 (STORE_STRUCT_RETURN): Remove.
3548 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3549 (STORE_RETURN_VALUE): Remove.
3550 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3551 (FRAME_CHAIN): Remove.
3552 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3553 (FRAME_SAVED_PC): Remove.
3554 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3555 (m68k_store_struct_return): Add.
3556 (m68k_deprecated_extract_return_value): Add.
3557 (m68k_deprecated_extract_struct_value_address): Add.
3558 (m68k_store_return_value): Add.
3559 (m68k_frame_chain): Add.
3560 (m68k_frameless_function_invocation): Add.
3561 (m68k_frame_saved_pc): Add.
3562 (m68k_gdbarch_init): added set_gdbarch calls for new
3563 functions and deleted macros.
3564
03c30d4d
TT
35652002-06-23 Tom Tromey <tromey@redhat.com>
3566
3567 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3568 (ALLDEPFILES): Likewise.
3569 (udiheaders): Removed.
3570 (udip2soc.o): Likewise.
3571 (udi2go32.o): Likewise.
3572 (udr.o): Likewise.
3573 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3574
37e71372
AC
35752002-06-22 Andrew Cagney <ac131313@redhat.com>
3576
06a6ac57
AC
3577 * infrun.c (_initialize_infrun): Delete unnecessary call to
3578 build_infrun.
3579
37e71372
AC
3580 * regcache.h: Update comments describing the regcache_cpy family
3581 of functions.
3582 (regcache_save, regcache_restore): Delete declaration.
3583 (regcache_save_no_passthrough): Delete declaration.
3584 (regcache_restore_no_passthrough): Delete declaration.
3585 * regcache.c (regcache_save): Delete function.
3586 (regcache_save_no_passthrough): Delete function.
3587 (regcache_restore): Delete function.
3588 (regcache_restore_no_passthrough): Delete function.
3589
78f6d055
AC
35902002-06-21 Andrew Cagney <ac131313@redhat.com>
3591
3592 * config/m68k/tm-m68k.h: Fix typo.
3593 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3594 (m68k_frame_init_saved_regs): Declare.
3595
78b119cb
JB
35962002-06-21 Jim Blandy <jimb@redhat.com>
3597
3598 Remove some vestiges of Harris 88k support.
3599 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3600 register numbering quirk.
3601 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3602 odd symbols occurring in Harris 88k ELF targets.
3603
0fbb3da7
TT
36042002-06-21 Tom Tromey <tromey@redhat.com>
3605
3606 * gdb_locale.h: New file.
3607 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3608 (defs_h): Added gdb_locale.h.
3609 * configure, config.in: Rebuilt.
3610 * configure.in (PACKAGE): Define.
3611 * defs.h: Include gdb_locale.h.
3612 * main.c (captured_main): Call setlocale, bindtextdomain,
3613 textdomain.
3614
456f8b9d
DB
36152002-06-21 Dave Brolley <brolley@redhat.com>
3616
3617 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3618 * config/frv/frv.mt: New file.
3619 * config/frv/tm-frv.h: New file.
3620 * configure.tgt: Support frv-*-*.
3621 * Makefile.in (frv-tdep.o): New target.
3622 * frv-tdep.c: New file.
3623 * NEWS: Mention frv.
3624
cdd463f9
DB
36252002-06-21 Dave Brolley <brolley@redhat.com>
3626
3627 * MAINTAINERS: Add self to "Write After Approval" list.
3628
5d3ed2e3
GS
36292002-06-21 Grace Sainsbury <graces@redhat.com>
3630
3631 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3632 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3633 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3634 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3635 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3636
3637 * m68k-tdep.c: Include arch-utils.h
3638 (m68k_register_raw_size): Add.
3639 (m68k_register_virtual_size): Add.
3640 (m68k_register_virtual_type): Add.
3641 (m68k_register_name): Add.
3642 (m68k_stack_align): Add.
3643 (m68k_register_byte): Add.
3644 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3645 tm-m68k.h.
3646
7f8e7424
GS
36472002-06-21 Grace Sainsbury <graces@redhat.com>
3648
a2c6a6d5 3649 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3650 m68k_find_saved_regs.
3651 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3652 references to it with frame->saved_regs.
7f8e7424
GS
3653 (m68k_gdbarch_init): Added function calls to initialize the
3654 gdbarch structure.
a2c6a6d5
GS
3655 (m68k_fix_call_dummy): Add.
3656 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3657 (CALL_DUMMY): Remove.
3658 (CALL_DUMMY_LENGTH): Remove.
3659 (CALL_DUMMY_START_OFFSET): Remove.
3660 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3661 (FIX_CALL_DUMMY): Remove.
3662 (PUSH_DUMMY_FRAME): Remove.
3663 (POP_FRAME): Remove.
7f8e7424 3664
f461f5cf
PM
36652002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3666
3667 * parse.c (parse_fprintf): New function used to avoid calls to
3668 fprintf in bison parser generated debug code.
3669 * parser-defs.h: Declaration of new parse_fprintf function.
3670 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3671 Set YYDEBUG to 1 by default.
3672 Set YYFPRINTF as parse_fprintf.
3673
7f0c12ed
ML
36742002-06-21 Michal Ludvig <mludvig@suse.cz>
3675
3676 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3677 encoding anymore.
3678 (pointer_encoding, enum ptr_encoding): New.
3679 (execute_cfa_program): Take care about pointer encoding.
3680 (dwarf2_build_frame_info): Only call parse_frame_info for
3681 .debug_frame and .eh_frame.
3682 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3683 fixed augmentation handling, added relative addressing,
3684 ignore duplicate FDEs. Added comments.
19d833a2 3685 * dwarf2cfi.c: Reindented.
7f0c12ed 3686
87c4a039
EZ
36872002-06-20 Elena Zannoni <ezannoni@redhat.com>
3688
3689 * event-top.c (command_handler): Don't use space_at_cmd_start
3690 unless there is sbrk() on the host. Assign time and space data
3691 to union fields of the appropriate length.
3692
1cf877ad
ML
36932002-06-20 Michal Ludvig <mludvig@suse.cz>
3694
3695 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3696 x86_64_register_name. Return type changed to 'const char *'.
3697 (x86_64_register_name2nr): Rename to x86_64_register_number.
3698 (x86_64_gdbarch_init): Update to reflect the change.
3699 * x86-64-tdep.h: Ditto.
3700 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3701 (supply_fpregset): Ditto.
3702
3fadccb3
AC
37032002-06-19 Andrew Cagney <cagney@redhat.com>
3704
3705 * regcache.h: Update copyright.
3706 (struct regcache, struct gdbarch): Add opaque declarations.
3707 (current_regcache): Declare global variable.
3708 (regcache_read, regcache_write): Add gdbarch parameter.
3709 (regcache_save, regcache_save_no_passthrough)
3710 (regcache_restore, regcache_restore_no_passthrough)
3711 (regcache_dup, regcache_dup_no_passthrough)
3712 (regcache_cpy, regcache_cpy_no_passthrough)
3713 (deprecated_grub_regcache_for_registers)
3714 (deprecated_grub_regcache_for_register_valid)
3715 (regcache_valid_p): Add function declarations.
3716
3717 * regcache.c: Update copyright.
3718 (regcache_descr_handle): New global variable.
3719 (struct regcache_descr): Define.
3720 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3721 (regcache_descr, xfree_regcache_descr): New functions.
3722 (struct regcache): Define.
3723 (regcache_xmalloc, regcache_xfree): New functions.
3724 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3725 (regcache_dup, regcache_dup_no_passthrough): New functions.
3726 (regcache_valid_p, regcache_read_as_address): New functions.
3727 (deprecated_grub_regcache_for_registers): New function.
3728 (deprecated_grub_regcache_for_register_valid): New function.
3729 (current_regcache): New global variable.
3730 (register_buffer): Add regcache parameter. Update calls.
3731 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3732 (read_register_gen, write_register_gen): Update register_buffer
3733 call. Test for legacy_p instead of gdbarch_register_read_p or
3734 gdbarch_register_write_p.
3735 (regcache_collect): Update register_buffer call.
3736 (build_regcache): Rewrite. Use deprecated grub functions.
3737 (regcache_save, regcache_save_no_passthrough): New functions.
3738 (regcache_restore, regcache_restore_no_passthrough): New
3739 functions.
3740 (_initialize_regcache): Create the regcache_data_handle. Swap
3741 current_regcache global variable.
3742
3743 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3744 parameter to regcache_read and regcache_write calls.
3745 (sh4_register_read): Ditto.
3746 (sh64_pseudo_register_read): Ditto.
3747 (sh64_register_read): Ditto.
3748 (sh_pseudo_register_write): Ditto.
3749 (sh4_register_write): Ditto.
3750 (sh64_pseudo_register_write): Ditto.
3751 (sh64_register_write): Ditto.
3752
3753 * defs.h (XCALLOC): Define.
3754
152d9db6
GS
37552002-06-19 Grace Sainsbury <graces@redhat.com>
3756
3757 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3758 * m68k-tdep.c (m68k_gdbarch_init): Added.
3759 (m68k_dump_tdep): Added.
3760
170911c7
DJ
37612002-06-19 Daniel Jacobowitz <drow@mvista.com>
3762
3763 * ada-lang.c (fill_in_ada_prototype): Update comment.
3764
2e4ebe70
DJ
37652002-06-19 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3768 MIPS_ABI_LAST.
3769 (mips_abi_string, mips_abi_strings): New.
3770 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3771 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3772 tdep->mips_abi_string. Honor mips_abi_string. Default to
3773 O32 if no ABI is found.
3774 (mips_dump_tdep): Use mips_abi_strings.
3775 (mips_abi_update): New function.
3776 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3777 ``set mips abi'' and ``show mips abi''. Check the size of
3778 mips_abi_strings.
3779
16775908
AC
37802002-06-19 Andrew Cagney <cagney@redhat.com>
3781
3782 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3783 constant.
3784
5051bfa4 37852002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3786
5051bfa4
JB
3787 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3788 current frame using only the first stack size adjustment. All
3789 subsequent size adjustments are not considered to be part of
3790 the "static" part of the current frame.
3791 Compute the address of the saved registers relative to the
3792 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3793 in use in this frame.
3794
56468235
DH
37952002-06-18 Don Howard <dhoward@redhat.com>
3796
3797 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3798 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3799 suggesting this solution.
3800
0b624158
AC
38012002-06-18 Andrew Cagney <ac131313@redhat.com>
3802
3803 * config/romp/xm-rtbsd.h: Delete file.
3804 * config/romp/rtbsd.mh: Delete file.
3805
221ea385
KS
38062002-06-18 Keith Seitz <keiths@redhat.com>
3807
3808 * breakpoint.c (condition_command): Post breakpoint_modify
3809 when a condition is added to an existing breakpoint.
3810 (commands_command): Likewise for commands.
3811 (set_ignore_count): Likewise for ignore counts.
3812 If no tty, do not simply return, still need to send event
3813 notification.
3814 (ignore_command): Only print a newline if the command came
3815 from a tty.
3816 Don't call breakpoints_changed, since this is now properly
3817 handled by set_ignore_count.
3818
5402eed1
AC
38192002-06-18 Andrew Cagney <cagney@redhat.com>
3820
3821 * MAINTAINERS: Note that cris-elf target can be compiled with
3822 -Werror.
3823 * cris-tdep.c (cris_register_name): Make return type constant.
3824 (cris_breakpoint_from_pc): Ditto.
3825
cc22880b
ML
38262002-06-18 Michal Ludvig <mludvig@suse.cz>
3827
3828 * frame.h (struct frame_info): Change type of context to
3829 'struct context'.
3830
fa88f677
AC
38312002-06-17 Andrew Cagney <cagney@redhat.com>
3832
3833 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3834 pointer.
3835 * gdbarch.h, gdbarch.c: Regenerate.
3836 * config/mips/tm-mips.h (mips_register_name): Update.
3837 * i386-tdep.h (i386_register_name): Update.
3838 * mips-tdep.c (mips_register_name): Update
3839 * alpha-tdep.c (alpha_register_name): Update.
3840 * arch-utils.c (legacy_register_name): Update.
3841 * arch-utils.h (legacy_register_name): Update.
3842 * avr-tdep.c (avr_register_name): Update.
3843 * ia64-tdep.c (ia64_register_name): Update.
3844 * i386-tdep.c (i386_register_name): Update.
3845 * sparc-tdep.c (sparc32_register_name): Update.
3846 (sparc64_register_name): Update.
3847 (sparclite_register_name): Update.
3848 (sparclet_register_name): Update.
3849 * sh-tdep.c (sh_generic_register_name): Update.
3850 (sh_sh_register_name): Update.
3851 (sh_sh3_register_name): Update.
3852 (sh_sh3e_register_name): Update.
3853 (sh_sh_dsp_register_name): Update.
3854 (sh_sh3_dsp_register_name): Update.
3855 (sh_sh4_register_name): Update.
3856 (sh_sh64_register_name): Update.
3857 * s390-tdep.c (s390_register_name): Update.
3858 * rs6000-tdep.c (rs6000_register_name): Update.
3859 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3860 (ns32k_register_name_32382): Update.
3861 * d10v-tdep.c (d10v_ts2_register_name): Update.
3862 (d10v_ts3_register_name): Update.
3863 * xstormy16-tdep.c (xstormy16_register_name): Update.
3864 * vax-tdep.c (vax_register_name): Update.
3865 * v850-tdep.c (v850_register_name): Update.
3866 * m68hc11-tdep.c (m68hc11_register_name): Update.
3867 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3868 (am33_register_name): Update.
3869
ea1e7ef6
GS
38702002-06-17 Grace Sainsbury <graces@redhat.com>
3871
3872 * m68k-tdep.c: Reindented.
3873
9b02dd1b
AC
38742002-06-17 Andrew Cagney <ac131313@redhat.com>
3875
3876 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3877 list of predefined types.
3878
8758dec1
MK
38792002-06-16 Mark Kettenis <kettenis@gnu.org>
3880
b6197528
MK
3881 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3882 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3883 REGISTER_CONVERT_TO_RAW): Remove defines.
3884 (i386_register_virtual_type, i386_register_convertible,
3885 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3886 Remove prototypes.
3887 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3888 macros mentioned above.
3889
82b47e62
MK
3890 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3891 (i386lynx_saved_pc_after_call): Remove prototype.
3892 * i386ly-tdep.c: Include "i386-tdep.h".
3893 (i386lynx_saved_pc_after_call): Make static. Use
3894 read_memory_nobpt instead of read_memory. Use
3895 read_memory_unsigned_integer instead of read_memory_integer.
3896 (i386lynx_init_abi): New function.
3897 (i386lynx_coff_osabi_sniffer): New function.
3898 (_initialize_i386bsd_tdep): New function.
3899
8758dec1
MK
3900 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3901 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3902 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3903 (i386_fix_call_dummy): Remove prototype.
3904 * i386-tdep.c (i386_call_dummy_words): New variable.
3905 (i386_gdbarch_init): Adjust for removal of the
3906 macros mentioned above.
3907
e9e68a56
AC
39082002-06-15 Andrew Cagney <ac131313@redhat.com>
3909
3910 * command.h (add_setshow_auto_boolean_cmd): Replace
3911 add_set_auto_boolean_cmd.
3912 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3913 add_set_auto_boolean_cmd.
3914 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3915 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3916 mask-address'' command.
3917 (show_mask_address): Add cmd parameter.
3918 * remote.c (add_packet_config_cmd): Update. Change type of
3919 set_func and show_func to cmd_sfunc_ftype.
3920 (_initialize_remote): Update `set remote Z-packet'
3921 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3922 (show_remote_protocol_e_packet_cmd): Ditto.
3923 (show_remote_protocol_E_packet_cmd): Ditto.
3924 (show_remote_protocol_P_packet_cmd): Ditto.
3925 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3926 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3927 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3928 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3929 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3930 (show_remote_protocol_Z_packet_cmd): Ditto.
3931 (show_remote_protocol_binary_download_cmd): Ditto.
3932 (show_remote_cmd): Pass NULL to all of above.
3933
fc08ec52
MK
39342002-06-15 Mark Kettenis <kettenis@gnu.org>
3935
3936 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3937 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3938 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3939 POP_FRAME): Remove defines.
3940 (i386_push_arguments, i386_store_struct_return,
3941 i386_extract_return_value, i386_store_return_value,
3942 i386_extract_struct_value_address, i386_push_dummy_frame,
3943 i386_pop_frame): Renove prototypes.
3944 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3945 macros mentioned above.
3946
e707bbc2
AC
39472002-06-15 Andrew Cagney <ac131313@redhat.com>
3948
3949 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3950 add_set_boolean_cmd.
3951 (add_setshow_cmd): New function.
3952 * command.h (add_setshow_boolean_cmd): Replace
3953 add_set_boolean_cmd.
3954 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3955 and ``set rdiromatzero''.
3956 * maint.c (_initialize_maint_cmds): Update commented out code.
3957 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3958 * target.c (initialize_targets): Update `set
3959 trust-readonly-sections'.
3960 * remote.c (_initialize_remote): Update `set remotebreak'.
3961
42fdc8df
MK
39622002-06-15 Mark Kettenis <kettenis@gnu.org>
3963
93924b6b
MK
3964 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3965 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3966 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3967 fit into multi-arch framework.
3968 (i386_breakpoint_from_pc): New function.
3969 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3970 above.
3971
42fdc8df
MK
3972 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3973 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3974 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3975 (i386_frameless_function_invocation, i386_frame_num_args,
3976 i386_frame_init_saved_regs): Remove prototypes.
3977 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3978 macros mentioned above.
3979
9773a94b
AC
39802002-06-15 Andrew Cagney <ac131313@redhat.com>
3981
3982 * cli/cli-decode.c (set_cmd_cfunc): Update.
3983 (set_cmd_sfunc): Update.
3984 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3985 (set_cmd_sfunc, set_cmd_cfunc): Update.
3986 * cli/cli-decode.h: Update.
3987
6e157172
MK
39882002-06-15 Mark Kettenis <kettenis@gnu.org>
3989
3990 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3991 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3992
7f19b9a2
AC
39932002-06-15 Andrew Cagney <ac131313@redhat.com>
3994
3995 * defs.h (auto_boolean): Declare enum.
3996 * command.h (cmd_auto_boolean): Delete enum.
3997 * mips-tdep.c (mask_address_var): Update.
3998 (mips_mask_address_p): Update.
3999 (show_mask_address): Update.
4000 * remote.c (struct packet_config): Update.
4001 (update_packet_config): Update.
4002 (show_packet_config_cmd): Update.
4003 (packet_ok): Update.
4004 (add_packet_config_cmd): Update.
4005 (_initialize_remote):
4006 * command.h: Update.
4007 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4008 (do_setshow_command): Update.
4009 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4010 * cli/cli-decode.h: Update.
4011
1cf88de5
MK
40122002-06-15 Mark Kettenis <kettenis@gnu.org>
4013
22ba8cf2
MK
4014 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4015 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4016 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4017 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4018 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4019 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4020
762c5349
MK
4021 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4022 list of DJGPP COFF targets.
4023
091198bb
MK
4024 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4025 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4026 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4027 (FP0_REGNUM): Remove define.
4028 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4029 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4030 (i386_register_virtual_size): Remove protoype.
4031 * i386-tdep.c (i386_register_virtual_size): Removed.
4032 (i386_extract_return_value, i386_store_return_value): Use
4033 FP0_REGNUM instead of NUM_FREGS to determine whether the
4034 floating-point registers are available.
4035 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4036 Adjust for removal of macros mentioned above.
4037
40382002-06-15 Mark Kettenis <kettenis@gnu.org>
4039
fcc9bf01
MK
4040 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4041 comments.
4042 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4043 Remove prototypes.
4044 (supply_gregset, fill_gregset): Remove use of register keyword and
4045 remove declaration for regmap. Use I386_NUM_GREGS instead of
4046 NUM_REGS and NUM_FREGS.
4047 (FPREGSET_FSAVE_OFFSET): Remove.
4048 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4049 NUM_FREGS to determine whether the floating-point registers are
4050 available.
4051
65e78234
MK
4052 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4053 gnu_store_registers): Replace usage of NUM_GREGS with
4054 I386_NUM_GREGS.
4055
98df6387
MK
4056 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4057 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4058 usage of NUM_GREGS with I386_NUM_GREGS.
4059
099a9414
MK
4060 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4061
57976e88
MK
4062 * i386bsd-nat.c: Include "i386-tdep.h".
4063 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4064 I386_NUM_GREGS.
4065
b335f4a6
MK
4066 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4067 and associated comment. They no longer make any sense, since we
4068 don't use this file anymore on Linux.
4069
1cf88de5
MK
4070 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4071 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4072 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4073 elements in these arrays.
4074 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4075 MAX_NUM_REGS.
4076
daa66587
MK
40772002-06-15 Mark Kettenis <kettenis@gnu.org>
4078
4079 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4080 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4081
26e9b323
AC
40822002-06-14 Andrew Cagney <cagney@redhat.com>
4083
4084 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4085 EXTRACT_RETURN_VALUE.
4086 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4087 EXTRACT_STRUCT_VALUE_ADDRESS.
4088 * gdbarch.h, gdbarch.c: Regenerate.
4089
4090 * values.c (value_being_returned): Handle
4091 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4092 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4093
4094 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4095 * arm-tdep.c (arm_gdbarch_init): Update.
4096 * avr-tdep.c (avr_gdbarch_init): Update.
4097 * cris-tdep.c (cris_gdbarch_init): Update.
4098 * d10v-tdep.c (d10v_gdbarch_init): Update.
4099 * ia64-tdep.c (ia64_gdbarch_init): Update.
4100 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4102 * s390-tdep.c (s390_gdbarch_init): Update.
4103 * sh-tdep.c (sh_gdbarch_init): Update.
4104 * s390-tdep.c (s390_gdbarch_init): Update.
4105 * sparc-tdep.c (sparc_gdbarch_init): Update.
4106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4107 * v850-tdep.c (v850_gdbarch_init): Update.
4108 * vax-tdep.c (vax_gdbarch_init): Update.
4109 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4110 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4111
4112 * config/arc/tm-arc.h: Update.
4113 * config/d30v/tm-d30v.h: Update.
4114 * config/fr30/tm-fr30.h: Update.
4115 * config/h8300/tm-h8300.h: Update.
4116 * config/h8500/tm-h8500.h: Update.
4117 * config/i386/tm-i386.h: Update.
4118 * config/i386/tm-ptx.h: Update.
4119 * config/i386/tm-symmetry.h: Update.
4120 * config/i960/tm-i960.h: Update.
4121 * config/m32r/tm-m32r.h: Update.
4122 * config/m68k/tm-delta68.h: Update.
4123 * config/m68k/tm-linux.h: Update.
4124 * config/m68k/tm-m68k.h: Update.
4125 * config/m88k/tm-m88k.h: Update.
4126 * config/mcore/tm-mcore.h: Update.
4127 * config/mips/tm-mips.h: Update.
4128 * config/mn10200/tm-mn10200.h: Update.
4129 * config/pa/tm-hppa.h: Update.
4130 * config/pa/tm-hppa64.h: Update.
4131 * config/sparc/tm-sp64.h: Update.
4132 * config/sparc/tm-sparc.h: Update.
4133 * config/sparc/tm-sparclet.h: Update.
4134 * config/z8k/tm-z8k.h: Update.
4135
5179e78f
AC
41362002-06-14 Andrew Cagney <cagney@redhat.com>
4137
4138 * Makefile.in (i386_linux_tdep_h): Define.
4139 (i386_tdep_h, i387_tdep_h): Define.
4140 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4141 $(i386_tdep_h) and $(i387_tdep_h).
4142 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4143
8201327c
MK
41442002-06-14 Mark Kettenis <kettenis@gnu.org>
4145
edf393ac
MK
4146 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4147 Already covered by the default.
4148
896fb97d
MK
4149 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4150 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4151 (i386_gdbarch_init): Initialize long_double_format and long_double
4152 bit.
4153
8201327c
MK
4154 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4155 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4156 Move these to ...
4157 * config/i386/i386sol2.mh: ... here.
4158 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4159 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4160 (SIGCONTEXT_PC_OFFSET): Remove define.
4161 (IN_SIGTRAMP): Remove define.
4162 * i386-sol2-tdep.c: New file.
4163
4164 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4165 * config/i386/tm-i386nw.h: Removed.
4166
4167 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4168 USE_STRUCT_CONVENTION): Remove defines.
4169 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4170 (get_longjmp_target): Remove prototype.
4171 (IN_SIGTRAMP): Remove define.
4172 (i386bsd_in_sigtramp): Remove prototype.
4173 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4174 function. Update comment accordingly
4175 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4176 (FRAME_SAVED_PC): Remove define.
4177 (i386bsd_frame_saved_pc): Remove prototype.
4178 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4179 GET_LONGJMP_TARGET): Remove defines.
4180 (get_longjmp_target): Remove prototype.
4181 (IN_SIGTRAMP): Remove define.
4182 (i386bsd_in_sigtramp): Remove prototype.
4183 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4184 function. Update comment accordingly
4185 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4186 (FRAME_SAVED_PC): Remove define.
4187 (i386bsd_frame_saved_pc): Remove prototype.
4188 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4189 Remove prototype.
4190 (USE_STRUCT_CONVENTION): Remove prototype.
4191 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4192 declaration.
4193 (_initialize_i386bsd_nat): Revise logic to determine some
4194 constants at compile time when compiling a native GDB. Warn if
4195 things don't match up with what we expect.
4196 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4197 Remove variables.
4198 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4199 to use date stored in `struct gdbarch_tdep'.
4200 (i386bsd_sigcontext_offset): Remove varaible.
4201 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4202 stored in `struct gdbarch_tdep'.
4203 (i386bsd_frame_saved_pc): Make static.
4204 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4205 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4206 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4207 i386fbsd4_sc_pc_offset): New variables.
4208 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4209 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4210 functions.
4211 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4212 functions.
4213 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4214 Modify the value of i386fbsd_sigtramp_start and
4215 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4216 i386fbsd_sigtramp_end.
4217 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4218 function.
4219
4220 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4221 define to i386-linux-tdep.h.
4222 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4223 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4224 defines.
4225 (i386_linux_register_name, i386_linux_register_byte,
4226 i386_linux_register_raw_size): Remove prototypes.
4227 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4228 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4229 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4230 TARGET_WRITE_PC): Remove defines.
4231 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4232 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4233 i386_linux_write_pc): Remove prototypes.
4234 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4235 (get_longjmp_target): Remove prototype.
4236 * i386-linux-tdep.h: New file.
4237 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4238 * i386-linux-tdep.c: Include "i386-tdep.h" and
4239 "i386-linux-tdep.h".
4240 (i386_linux_register_name, i386_linux_register_byte,
4241 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4242 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4243 Make static.
4244 (i386_linux_init_abi): New function.
4245 (_initialize_i386_linux_tdep): New function.
4246
4247 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4248 (i386_saved_pc_after_call): Remove prototype.
4249 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4250 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4251 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4252 (i386_register_name, i386_stab_reg_to_regnum,
4253 i386_dwarf_reg_to_regnum): Remove prototypes.
4254 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4255 SIZEOF_SSE_REGS): Remove defines.
4256 (REGISTER_BYTES): Remove define.
4257 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4258 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4259 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4260 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4261 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4262 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4263 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4264 (get_longjmp_target): Remove prototype.
4265 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4266 (sigtramp_saved_pc): Remove define.
4267 (i386v4_sigtramp_saved_pc): Remove prototype.
4268 * config/i386/tm-go32.h (FRAME_CHAIN,
4269 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4270 (i386go32_frame_saved_pc): Remove prototype.
4271 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4272 (get_longjmp_target): Remove prototype.
4273 * i386-tdep.h: Include "osabi.h".
4274 (enum i386_abi): Removed.
4275 (enum struct_return): New enum.
4276 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4277 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4278 sc_pc_offset members.
4279 (i386_gdbarch_register_os_abi): Remove prototype.
4280 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4281 I386_SSE_NUM_REGS): New defines.
4282 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4283 I386_SSE_SIZEOF_REGS): New defines.
4284 (i386_register_name, i386_register_byte, i386_register_raw_size):
4285 New prototypes.
4286 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4287 (i386bsd_sigtramp_saved_pc): New prototype.
4288 * i386-tdep.c: Don't include "elf-bfd.h".
4289 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4290 i386_frame_chain, i386_saved_pc_after_call): Make static.
4291 (i386_frame_saved_pc): Rewrite to call architecture dependent
4292 function to deal with signal handlers. Make static.
4293 (i386go32_frame_saved_pc): Removed.
4294 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4295 Removed.
4296 (i386_get_longjmp_target): New function.
4297 (default_struct_convention, pcc_struct_convention,
4298 reg_struct_convention, valid_conventions, struct_convention): New
4299 variables.
4300 (i386_use_struct_convention): New function.
4301 (i386v4_sigtramp_saved_pc): Renamed to
4302 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4303 (i386_pc_in_sigtramp): New function.
4304 (i386_abi_names): Removed.
4305 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4306 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4307 Removed.
4308 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4309 i386_gdbarch_register_os_abi): Removed.
4310 (struct i386_abi_handler): Removed.
4311 (i386_abi_handler_list): Removed.
4312 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4313 functions.
4314 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4315 i386_nw_init_abi): New functions.
4316 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4317 Use set_gdbarch_xxx() calls instead of relying on macros for a
4318 number of calls.
4319 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4320 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4321 Register the various architecture variants defined in this file.
4322
ad2f7632
DJ
43232002-06-14 Daniel Jacobowitz <drow@mvista.com>
4324
4325 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4326 (struct main_type): Remove arg_types member. Update comments for
4327 struct field.
4328 (TYPE_ARG_TYPES): Remove.
4329 (TYPE_FN_FIELD_ARGS): Update.
4330 (smash_to_method_type): Update prototype.
4331
4332 * c-typeprint.c (cp_type_print_method_args): Take method type
4333 instead of argument list. Use new argument layout. Simplify.
4334 (c_type_print_args): Use new argument layout. Simplify.
4335 (c_type_print_base): Update call to cp_type_print_method_args.
4336 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4337 argument; use die->type instead. Update call to
4338 smash_to_method_type.
4339 (read_structure_scope): Update call to dwarf2_add_member_fn.
4340 * gdbtypes.c (allocate_stub_method): Update comment.
4341 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4342 Use new argument layout.
4343 (check_stub_method): Use new argument layout. Don't count
4344 void as an argument.
4345 (print_arg_types): Update comments. Use new argument layout.
4346 (recursive_dump_type): Don't print arg_types member.
4347 * hpread.c (hpread_read_struct_type): Use new argument layout.
4348 (fixup_class_method_type): Likewise.
4349 (hpread_type_lookup): Likewise.
4350 * stabsread.c (read_type): Update calls to read_args and
4351 smash_to_method_type.
4352 (read_args): Use new argument layout. Simplify.
4353 * valops.c (typecmp): Use new argument layout. Update parameters
4354 and comments. Simplify.
4355 (hand_function_call): Use new argument layout.
4356 (search_struct_method): Update call to typecmp.
4357 (find_overload_match): Use new argument layout.
4358
6da02953
DJ
43592002-06-13 Daniel Jacobowitz <drow@mvista.com>
4360
4361 * NEWS: Mention multithreaded debug support for gdbserver.
4362
519b2366
DJ
43632002-06-13 Daniel Jacobowitz <drow@mvista.com>
4364
4365 * MAINTAINERS: Mention NEWS.
4366
6c0d6680
DJ
43672002-06-13 Daniel Jacobowitz <drow@mvista.com>
4368
4369 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4370 (struct mips_objfile_private, compare_pdr_entries): New.
4371 (non_heuristic_proc_desc): Read the ".pdr" section if it
4372 is present.
4373
6529d2dd
AC
43742002-06-12 Andrew Cagney <ac131313@redhat.com>
4375
4376 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4377 (arm_debug): New static variable.
4378 (_initialize_arm_tdep): Add ``set debug arm'' command.
4379
26216b98
AC
43802002-06-12 Andrew Cagney <ac131313@redhat.com>
4381
4382 * Makefile.in (sim_arm_h): Define.
4383 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4384 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4385 (arm_register_sim_regno): New function, map an internal REGNUM
4386 onto a simulator register number.
4387 (arm_gdbarch_init): Set register_sim_regno.
4388
814b3ba0
AH
43892002-06-09 Aldy Hernandez <aldyh@redhat.com>
4390
4391 * MAINTAINERS: Add self.
4392
475b0867
JB
43932002-06-11 Jim Blandy <jimb@redhat.com>
4394
919d772c
JB
4395 * source.c (source_info): Mention whether the symtab has
4396 information about preprocessor macros.
4397
475b0867
JB
4398 Call the command `info macro', not `show macro'.
4399 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4400 Fix error message.
4401 (_initialize_macrocmd): Register `info_macro_command' in
4402 `infolist', not `showlist'.
4403
9e364162
DJ
44042002-06-11 Daniel Jacobowitz <drow@mvista.com>
4405
4406 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4407 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4408 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4409 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4410 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4411 unconditionally.
4412 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4413 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4414 (_initialize_mips_tdep): Remove dead code.
4415 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4416 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4417 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4418 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4419 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4420 MIPS_LAST_FP_ARG_REGNUM): Remove.
4421
23aa4c72
ML
44222002-06-11 Michal Ludvig <mludvig@suse.cz>
4423
4424 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4425 (unwind_tmp_obstack_free, parse_frame_info)
4426 (update_context, cfi_read_fp, cfi_write_fp)
4427 (cfi_frame_chain, cfi_init_extra_frame_info)
4428 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4429 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4430
70eb15a4
CV
44312002-06-11 Corinna Vinschen <vinschen@redhat.com>
4432
4433 * v850-tdep.c (v850_type_is_scalar): New function.
4434 (v850_use_struct_convention): Match current gcc implementation
4435 as close as possible.
4436 (v850_push_arguments): Fix stack_offset handling. Don't write
4437 struct_addr into register. This is done by v850_store_struct_return.
4438 (v850_extract_return_value): Care for structs.
4439 (v850_store_return_value): Ditto.
4440 (v850_store_struct_return): Actually write address.
4441
482a4d06
ML
44422002-06-11 Michal Ludvig <mludvig@suse.cz>
4443
4444 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4445 without debug information too.
4446
d855c300
AC
44472002-06-10 Andrew Cagney <ac131313@redhat.com>
4448
4449 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4450 Make multi-arch pure.
4451 * gdbarch.h, gdbarch.c: Re-generate.
4452 * arm-tdep.c (arm_print_float_info): Update.
4453 * arch-utils.h (default_print_float_info): Update.
4454 * arch-utils.c (default_print_float_info): Update.
4455 * infcmd.c (float_info): Update call.
4456
dd12a101
AC
44572002-06-10 Andrew Cagney <ac131313@redhat.com>
4458
4459 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4460 the front of the initialize list.
4461
101dcfbe
AC
44622002-06-10 Andrew Cagney <ac131313@redhat.com>
4463
4464 * infrun.c (struct inferior_status): Replace fields
4465 selected_frame_address and selected_level with field
4466 selected_frame_id.
4467 (save_inferior_status): Update. Use get_frame_id.
4468 (struct restore_selected_frame_args): Delete.
4469 (restore_selected_frame): Update. Use frame_find_by_id.
4470 (restore_inferior_status): Update.
4471
4472 * breakpoint.h (struct breakpoint): Change type of
4473 watchpoint_frame to frame_id.
4474 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4475 call to get_current_frame.
4476 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4477 get_current_frame.
4478 (watchpoint_check): Use frame_find_by_id.
4479
4480 * frame.h (record_selected_frame): Delete declaration.
4481 * stack.c (record_selected_frame): Delete function.
4482
4483 * frame.h (struct frame_id): Define.
4484 (get_frame_id): Declare.
4485 (frame_find_by_id): Declare.
4486 * frame.c (frame_find_by_id): New function.
4487 (get_frame_id): New function.
4488
304270b6
AV
44892002-06-10 Andrey Volkov <avolkov@transas.com>
4490
4491 * ser-e7kpc.c: Fix duplicated define and call of
4492 _initialize_ser_e7000pc
4493
2f2cf184
DJ
44942002-06-09 Daniel Jacobowitz <drow@mvista.com>
4495
4496 * signals/signals.c (target_signal_from_host): Fix #ifdef
4497 SIGRTMIN case.
4498 (do_target_signal_to_host): Likewise.
4499
caaa3122
DJ
45002002-06-09 Daniel Jacobowitz <drow@mvista.com>
4501
4502 * mips-tdep.c (mips_find_abi_section): New function.
4503 (mips_gdbarch_init): Call it.
4504
6ac5df3a
MK
45052002-06-09 Mark Kettenis <kettenis@gnu.org>
4506
4507 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4508 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4509 after Andrew's 2002-06-08 gdbarch change.
4510
82ea117a
MK
45112002-06-09 Mark Kettenis <kettenis@gnu.org>
4512
4513 * i386-linux-nat.c (suppy_gregset): Don't supply
4514 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4515 register cache.
4516 (fill_gregset): Don't fetch it under the same circumstances.
4517
3c25f8c7
AC
45182002-06-09 Andrew Cagney <cagney@redhat.com>
4519
4520 * Makefile.in (callback_h): Define.
4521 (remote_sim_h): Update path to remote-sim.h.
4522 (remote-rdp.o): Add $(callback_h).
4523 (remote-sim.o): Use $(callback_h).
4524 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4525 * remote-rdp.c: Include "gdb/callback.h".
4526
1029b7fa
MK
45272002-06-09 Mark Kettenis <kettenis@gnu.org>
4528
4529 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4530 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4531
616675d3
AC
45322002-06-08 Andrew Cagney <ac131313@redhat.com>
4533
a3efda28
AC
4534 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4535 * rdi-share/serpardr.c: Ditto.
4536 * rdi-share/unixcomm.c: Ditto.
4537 * rdi-share/serdrv.c: Ditto.
4538 * rdi-share/hostchan.h: Ditto.
4539 * rdi-share/hostchan.c: Ditto.
4540 * rdi-share/host.h: Ditto.
4541 * rdi-share/devsw.c: Ditto.
4542
c5f10366
AC
4543 * objfiles.h: Change type of obj_private to void pointer.
4544 * pa64solib.c: Update copyright. Don't include "assert.h", use
4545 strcmp instead of STREQ, use LONGEST, do not use PTR
4546 * somsolib.c: Ditto.
4547
616675d3
AC
4548 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4549 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4550 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4551
e4b415d9
AC
45522002-06-08 Andrew Cagney <ac131313@redhat.com>
4553
4554 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4555 (default_get_saved_register): Delete function.
4556 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4557 generic_unwind_get_saved_register.
4558 * gdbarch.h, gdbarch.c: Re-generate.
4559
ca0d0b52
AC
45602002-06-08 Andrew Cagney <ac131313@redhat.com>
4561
4562 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4563 generic_func_frame_chain_valid.
4564 * gdbarch.h, gdbarch.c: Re-generate.
4565 * blockframe.c (generic_func_frame_chain_valid): Only check
4566 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4567 passing FP to PC_IN_CALL_DUMMY.
4568 Fix PR gdb/360.
4569
76860b5f
AC
45702002-06-08 Andrew Cagney <ac131313@redhat.com>
4571
4572 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4573 (register_gdbarch_data): Initialize init_p.
4574 (gdbarch_data): Initialize data pointer using the init function.
4575 (init_gdbarch_data): Delete function.
4576 (gdbarch_update_p): Update.
4577 (initialize_non_multiarch): Update.
4578 (struct gdbarch): Add field initialized_p.
4579 * gdbarch.h, gdbarch.c: Re-generate.
4580
8dda9770
ML
45812002-06-07 Michal Ludvig <mludvig@suse.cz>
4582
4583 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4584 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4585 better do the things actually here.
4586 * x86-64-tdep.c (x86_64_register_name2nr): New.
4587 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4588 (x86_64_gdbarch_init): Respect the above change.
4589 * x86-64-tdep.h (x86_64_register_name2nr)
4590 (x86_64_register_nr2name): Add prototypes.
4591 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4592
3d79a47c
MS
45932002-06-06 Michael Snyder <msnyder@redhat.com>
4594
7bd91a28
MS
4595 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4596 Delete extra braces and re-indent.
4597 (d10v_store_return_value): Char return values
3d79a47c
MS
4598 must be shifted over by one byte in R0.
4599 (d10v_extract_return_value): Delete extra braces, re-indent.
4600
095a4c96
EZ
46012002-06-06 Elena Zannoni <ezannoni@redhat.com>
4602
4603 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4604 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4605 (d10v_integer_to_address): Rewrite.
4606 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4607 the d10v specific functions which take care of converting to the
4608 correct space.
4609
e8a77ca4
EZ
46102002-06-06 Elena Zannoni <ezannoni@redhat.com>
4611
4612 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4613 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4614
4f2e4a4f
AC
46152002-06-02 Andrew Cagney <ac131313@redhat.com>
4616
4617 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4618 includes.
4619 * config/tm-linux.h: Ditto.
4620 * config/alpha/tm-alphalinux.h: Ditto.
4621 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4622 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4623 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4624 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4625 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4626 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4627 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4628 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4629 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4630 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4631 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4632 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4633 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4634 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4635 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4636 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4637 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4638 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4639 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4640 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4641 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4642 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4643 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4644 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4645 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4646 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4647 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4648 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4649 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4650 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4651 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4652 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4653 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4654 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4655 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4656 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4657 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4658
ae2ab2ce
AS
46592002-05-04 Aidan Skinner <aidan@velvet.net>
4660
4661 * ada-exp.tab.c: New file
4662 * ada-exp.y: New file
4663 * ada-lang.c: New file
4664 * ada-lang.h: New file
4665 * ada-lex.c: New file
4666 * ada-lex.l: New file
4667 * ada-tasks.c: New file
4668 * ada-typeprint.c: New file
4669 * ada-valprint.c: New file
4670
0ddd0135
JT
46712002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4672
4673 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4674 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4675
750fbacc
JT
46762002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4677
4678 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4679 insetead of ppc-linux-tdep.o.
4680 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4681 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4682
df94e18a
AC
46832002-06-02 Andrew Cagney <ac131313@redhat.com>
4684
4685 2002-05-07 Christian Groessler <chris@groessler.org>
4686 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4687 bit register contents for little endian hosts.
4688
1a38ab75
AC
46892002-06-01 Andrew Cagney <ac131313@redhat.com>
4690
4691 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4692 any maintainer.
4693
8b1632ac
AC
46942002-06-01 Andrew Cagney <ac131313@redhat.com>
4695
4696 * gdbarch.h: Regenerate.
4697
627054c8
AC
46982002-06-01 Andrew Cagney <ac131313@redhat.com>
4699
4700 * MAINTAINERS: Add everyone to write-after-approval list.
4701
4f460812
AC
47022002-06-01 Andrew Cagney <ac131313@redhat.com>
4703
4704 * stack.c (frame_info): Use frame_register_unwind instead of
4705 saved_regs. Mention when the SP is on the stack or in a register.
4706
4707 * frame.h (frame_register_unwind_ftype): Define. Document.
4708 (struct frame_info): Add field register_unwind and
4709 register_unwind_cache.
4710 (frame_register_unwind): Declare.
4711 (generic_unwind_get_saved_register): Declare.
4712
4713 * frame.c (frame_register_unwind): New function.
4714 (generic_unwind_get_saved_register): New function.
4715
4716 * blockframe.c (generic_call_dummy_register_unwind): New function.
4717 (frame_saved_regs_register_unwind): New function.
4718 (set_unwind_by_pc): New function.
4719 (create_new_frame): New function.
4720 (get_prev_frame): New function.
4721
de888f76
AC
47222002-05-30 Andrew Cagney <ac131313@redhat.com>
4723
4724 * a29k-share/: Delete directory.
4725 * remote-vx29k.c: Delete file.
4726
2f2c3626
JT
47272002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4728
4729 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4730 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4731
9ce5c36a
JT
47322002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4733
4734 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4735 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4736 (sparc64nbsd-nat.o)
4737 (sparcnbsd-nat.o)
4738 (sparcnbsd-tdep.o): New dependency lists.
4739 * NEWS: Note new UltraSPARC NetBSD native configuration.
4740 * configure.host (sparc64-*-netbsd*): New host.
4741 * configure.tgt (sparc-*-netbsdelf*)
4742 (sparc-*-netbsd*): Set gdb_target to nbsd.
4743 (sparc64-*-netbsd*): New target.
4744 * sparc64nbsd-nat.c: New file.
4745 * sparcnbsd-nat.c: New file.
4746 * sparcnbsd-tdep.c: New file.
4747 * sparcnbsd-tdep.h: New file.
4748 * config/sparc/nbsd.mt: New file.
4749 * config/sparc/nbsd64.mh: New file.
4750 * config/sparc/nbsd64.mt: New file.
4751 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4752 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4753 (HOST_IPC): Remove.
4754 * config/sparc/nbsdaout.mt: Remove.
4755 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4756 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4757 (HOST_IPC): Remove.
4758 * config/sparc/nbsdelf.mt: Remove.
4759 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4760 sparc-nat.c compatiblity defines.
4761 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4762 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4763 * config/sparc/tm-nbsd64.h: New file.
4764 * config/sparc/tm-nbsdaout.h: Remove.
4765 * config/sparc/xm-nbsd.h: Remove.
4766
ef3cf062
JT
47672002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4768
4769 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4770 * sparc-tdep.c: Include osabi.h.
4771 (gdbarch_tdep): Add osabi member.
4772 (_initialize_sparc_tdep): Use gdbarch_register.
4773 (sparc_gdbarch_init): Use generic OS ABI framework.
4774 (sparc_dump_tdep): New function.
4775
ee8ff470
KB
47762002-05-30 Kevin Buettner <kevinb@redhat.com>
4777
4778 * corefile.c (do_captured_read_memory_integer): Return non-zero
4779 result.
4780 (safe_read_memory_integer): Copy result of memory read when
4781 status is non-zero. Also, add comments.
4782
7b112f9c
JT
47832002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4784
4785 * Makefile.in (ppc_tdep_h): Define.
4786 (ppc-linux-nat.o)
4787 (ppc-linux-tdep.o)
4788 (rs6000-tdep.o): Use $(ppc_tdep_h).
4789 (ppc-sysv-tdep.o)
4790 (ppcnbsd-nat.o)
4791 (ppcnbsd-tdep.o): New dependency lists.
4792 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4793 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4794 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4795 (ppc_sysv_abi_broken_use_struct_convention)
4796 (ppc_sysv_abi_use_struct_convention)
4797 (ppc_sysv_abi_push_arguments): Move to...
4798 * ppc-sysv-tdep.c: ...here.
4799 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4800 * rs6000-tdep.c (process_note_abi_tag_sections)
4801 (get_elfosabi): Remove.
4802 (rs6000_gdbarch_init): Use generic OS ABI framework.
4803 (rs6000_dump_tdep): New function.
4804 (_initialize_rs6000_tdep): Use gdbarch_register.
4805 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4806 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4807 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4808 of ppc-linux-tdep.o.
4809 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4810 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4811 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4812 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4813 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4814 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4815
480dd42a
JB
48162002-05-29 Jim Blandy <jimb@redhat.com>
4817
4818 * macroscope.c (default_macro_scope): Put `void' in empty argument
4819 list.
4820
4182591f
AC
48212002-05-29 Andrew Cagney <ac131313@redhat.com>
4822
4823 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4824 * arch-utils.c: Include "sim-regno.h".
4825 * gdbarch.sh: Don't include "sim-regno.h".
4826 * gdbarch.h, gdbarch.c: Regenerate.
4827 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4828 here.
4829 * arch-utils.h (legacy_register_sim_regno): To here.
4830 * remote-sim.c (legacy_register_sim_regno): Move function from
4831 here.
4832 * arch-utils.c (legacy_register_sim_regno): To here.
4833
8238d0bf
AC
48342002-05-28 Andrew Cagney <ac131313@redhat.com>
4835
4836 * sim-regno.h: New file.
4837 * Makefile.in (sim_regno_h): Define.
4838 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4839 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4840 (legacy_register_sim_regno): New function.
4841 (one2one_register_sim_regno): New function.
4842 (gdbsim_fetch_register): Rewrite.
4843 (gdbsim_store_register): Only store a register when
4844 REGISTER_SIM_REGNO is valid.
4845 * d10v-tdep.c: Include "sim-regno.h".
4846 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4847 (d10v_ts3_register_sim_regno): Ditto.
4848 * gdbarch.sh: Include "sim-regno.h".
4849 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4850 * gdbarch.h, gdbarch.c: Regenerate.
4851 * arch-utils.h (default_register_sim_regno): Delete declaration.
4852 * arch-utils.c (default_register_sim_regno): Delete function.
4853
485721b1
JT
48542002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4855
4856 * ppcnbsd-nat.c: Rewrite.
4857 * ppcnbsd-tdep.c: New file.
4858 * ppcnbsd-tdep.h: New file.
4859 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4860 solib.o, and solib-svr4.o.
4861 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4862 nbsd-tdep.o, and corelow.o.
4863
697f244d
AC
48642002-05-28 Andrew Cagney <ac131313@redhat.com>
4865
4866 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4867 `tr' and `sed'. Mention that `broken' targets are not expected to
4868 build.
4869
f08caad1 48702002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4871
4872 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4873 Let PC point right after the prologue before looking up symbols.
4874
3139facc
MH
48752002-05-27 Martin M. Hunt <hunt@redhat.com>
4876
4877 * i386-tdep.c (i386_register_virtual_type): Return
4878 builtin_type_vec128i for SSE registers.
4879
4880 * gdbtypes.h (builtin_type_vec128i): Declare.
4881
4882 * gdbtypes.c (build_builtin_type_vec128i): New function.
4883 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4884 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4885 (build_gdbtypes): Initialize new builtin vector types.
4886 (_initialize_gdbtypes): Register new vector types with gdbarch.
4887
6e3ba3b8
JT
48882002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4889
4890 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4891 since it has been multi-arch'd.
4892 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4893 Move Alpha and VAX multi-arch news entries to same section
4894 as other multi-arch news.
4895
93d5585d
JT
48962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4897
4898 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4899 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4900 static. Rename some register numbers to put them in ns32k-tdep
4901 private namespace.
4902 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4903 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4904 functions.
4905 (_initialize_ns32k_tdep): Use gdbarch_register.
4906 * ns32k-tdep.h: New file.
4907 * ns32knbsd-tdep.c: New file.
4908 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4909 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4910 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4911 REGISTER_BYTES, REGISTER_BYTE): Remove.
4912 * config/ns32k/tm-ns32k.h: New file.
4913 * config/ns32k/tm-umax.h: Remove.
4914
efb2c70e
JT
49152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4916
4917 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4918 ns32k_store_struct_return, ns32k_extract_return_value,
4919 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4920 functions.
4921 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4922 ns32k_saved_pc_after_call.
4923 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4924 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4925 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4926 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4927 ns32k_extract_struct_value_address.
4928
7bcc927b
JT
49292002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4930
4931 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4932 ns32k_fix_call_dummy): New.
4933 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4934 ns32k_call_dummy_words.
4935 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4936 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4937 CALL_DUMMY_NARGS): Remove.
4938 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4939
78f9d765
JT
49402002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4941
4942 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4943 ns32k_frame_saved_pc, ns32k_frame_args_address,
4944 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4945 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4946 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4947 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4948 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4949 (BREAKPOINT): Remove..
4950 (FRAME_CHAIN): Define as ns32k_frame_chain.
4951 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4952 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4953 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4954 (FRAME_FIND_SAVED_REGS): Remove.
4955 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4956 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4957 (POP_FRAME): Define as ns32k_pop_frame.
4958
f2c762e0
JT
49592002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4960
4961 * ns32k-tdep.c (ns32k_register_byte_32082,
4962 ns32k_register_byte_32382, ns32k_register_raw_size,
4963 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4964 functions.
4965 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4966 ns32k_register_byte_32382.
4967 * config/ns32k/tm-umax.h: Update copyright years.
4968 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4969 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4970 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4971 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4972 (ns32k_get_enter_addr): Fix prototype.
4973
af137673
JT
49742002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4975
4976 * ns32k-tdep.c: Update copyright years.
4977 (ns32k_register_name_32082): New function.
4978 (ns32k_register_name_32382): Ditto.
4979 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4980 (REGISTER_NAME): Define as ns32k_register_name_32382.
4981 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4982 (REGISTER_NAME): Define as ns32k_register_name_32082.
4983
a8bc7b56
JB
49842002-05-24 Jim Blandy <jimb@redhat.com>
4985
4986 * dwarf2read.c (free_line_header): Use xfree, not free.
4987
83a45910
JT
49882002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4989
4990 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4991 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4992
0db71247
AC
49932002-05-23 Andrew Cagney <ac131313@redhat.com>
4994
4995 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4996
b9e5e4dd
AC
49972002-05-23 Andrew Cagney <ac131313@redhat.com>
4998
4999 From Ross Alexander at NEC Europe:
5000 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5001
de530e84
MS
50022002-05-23 Michael Snyder <msnyder@redhat.com>
5003
5004 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5005 for input, rather than parse_and_eval_address.
5006
b91b96f4
AC
50072002-05-23 Andrew Cagney <ac131313@redhat.com>
5008
5009 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5010 * Makefile.in (sim_d10v_h): Update definition.
5011
8b279e7a
AC
50122002-05-24 Andrew Cagney <cagney@redhat.com>
5013
5014 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5015 change `2002-05-22 Michael Snyder' below.
5016 (d10v_push_arguments): Ditto.
5017 (d10v_extract_return_value): Ditto.
5018
0a3d0425
JB
50192002-05-23 Jim Blandy <jimb@redhat.com>
5020
5021 * macrotab.c (check_for_redefinition): Don't complain if the new
5022 definition is the same as the previous one. Take more arguments
5023 to allow the comparison.
5024 (macro_define_object, macro_define_function): Pass more arguments
5025 to check_for_redefinition.
5026
78eac43e
MS
50272002-05-22 Michael Snyder <msnyder@redhat.com>
5028
5029 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5030 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5031 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5032 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5033 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5034 Add a temp variable to save a call (and a memory read).
5035 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5036 if possible (so that PC_IN_CALL_DUMMY will work).
5037
9bc1edb8
CV
50382002-05-22 Corinna Vinschen <vinschen@redhat.com>
5039
5040 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5041
005ef3d2
ML
50422002-05-22 Michal Ludvig <mludvig@suse.cz>
5043
5044 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5045 fde->cie_ptr.
5046 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5047 (dwarf2_build_frame_info): Add offset to fde->initial_location
5048 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5049 (execute_stack_op): Change type of 'result' from ULONGEST to
5050 CORE_ADDR.
005ef3d2 5051
fcf4f891
JT
50522002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5053
5054 * config/alpha/tm-nbsd.h: Include solib.h.
5055
cfef91e4
JT
50562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5057
5058 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5059 assumptions about the host's byte order.
5060
9964235a
JT
50612002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5062
5063 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5064 to dependency list.
5065 * alphanbsd-tdep.c: Include solib-svr4.h.
5066 * shnbsd-tdep.c: Ditto.
5067
9eeef8ef
JT
50682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5071 nbsd-tdep.h to dependency list.
5072 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5073 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5074 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5075 nbsdaout.mh and nbsdelf.mh consistently.
5076 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5077 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5078 nbsdaout.mt and nbsdelf.mh consistently.
5079 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5080 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5081 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5082 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5083 a.out shared library stuff from here...
5084 * config/nm-nbsdaout.h: ...to here.
5085 * config/tm-nbsd.h: Remove.
5086 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5087 * config/arm/nbsd.mh: Remove.
5088 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5089 nbsd-tdep.o.
5090 * config/arm/nbsdaout.mh: New file.
5091 * config/arm/nbsdelf.mh: New file.
5092 * config/arm/nm-nbsdaout.h: New file.
5093 * config/i386/nbsd.mh: Remove.
5094 * config/i386/nbsd.mt: Remove.
5095 * config/i386/nbsdaout.mh: New file.
5096 * config/i386/nbsdaout.mt: New file.
5097 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5098 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5099 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5100 i386_register_u_addr): Remove.
5101 * config/i386/nm-nbsdaout.h: New file.
5102 * config/i386/nm-nbsdelf.h: Remove.
5103 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5104 (USE_STRUCT_CONVENTION): Remove.
5105 * config/i386/tm-nbsdaout.h: New file.
5106 * config/i386/tm-nbsdelf.h: Remove.
5107 * config/m68k/nbsd.mh: Remove.
5108 * config/m68k/nbsd.mt: Remove.
5109 * config/m68k/nbsdaout.mh: New file.
5110 * config/m68k/nbsdaout.mt: New file.
5111 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5112 * config/m68k/nm-nbsdaout.h: New file.
5113 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5114 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5115 * config/ns32k/nbsd.mh: Remove.
5116 * config/ns32k/nbsd.mt: Remove.
5117 * config/ns32k/nbsdaout.mh: New file.
5118 * config/ns32k/nbsdaout.mt: New file.
5119 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5120 * config/ns32k/nm-nbsdaout.h: New file.
5121 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5122 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5123 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5124 (SVR4_SHARED_LIBS): Remove.
5125 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5126 * config/sparc/nbsd.mh: Remove.
5127 * config/sparc/nbsd.mt: Remove.
5128 * config/sparc/nbsdaout.mh: New file.
5129 * config/sparc/nbsdaout.mt: New file.
5130 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5131 * config/sparc/nbsdelf.mt: New file.
5132 * config/sparc/nm-nbsdaout.h: New file.
5133 * config/sparc/nm-nbsdelf.h: Remove.
5134 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5135 * config/sparc/tm-nbsdaout.h: New file.
5136
257ce470
JT
51372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5138
5139 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5140 mipsnbsd-tdep.c
5141 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5142
76a6d5fe
JT
51432002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5144
5145 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5146 shnbsd-nat.c.
5147 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5148
45888261
JT
51492002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5150
5151 * NEWS: Note new MIPS NetBSD native configuration.
5152 * configure.host (mips*-*-netbsd*): New host.
5153 * configure.tgt (mips*-*-netbsd*): New target.
5154 * mipsnbsd-nat.c: New file.
5155 * mipsnbsd-tdep.c: New file.
5156 * mipsnbsd-tdep.h: New file.
5157 * config/mips/nbsd.mh: New file.
5158 * config/mips/nbsd.mt: New file.
5159 * config/mips/nm-nbsd.h: New file.
5160 * config/mips/tm-nbsd.h: New file.
5161
70f80edf
JT
51622002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5163
5164 * Makefile.in (SFILES): Add osabi.c.
5165 (COMMON_OBS): Add osabi.o.
5166 (osabi.o): New dependency list.
5167 * osabi.c: New file.
5168 * osabi.h: New file.
5169 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5170
5171 * Makefile.in (alpha_tdep_h): Define and use instead of
5172 alpha-tdep.h.
5173 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5174 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5175 Remove.
5176 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5177 * alpha-tdep.h: Include osabi.h.
5178 (alpha_abi): Remove.
5179 (gdbarch_tdep): Use generic OS ABI framework.
5180 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5181 gdbarch_register_osabi.
5182 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5183 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5184 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5185
5186 * Makefile.in (sh_tdep_h): Add osabi.h.
5187 * sh-tdep.h (sh_osabi): Remove.
5188 (gdbarch_tdep): Use generic OS ABI framework.
5189 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5190 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5191 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5192 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5193
5194 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5195 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5196 gdbarch_register_osabi.
5197 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5198 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5199 (get_elfosabi): Rename to...
5200 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5201 ABI framework support routines.
5202 (arm_gdbarch_init): Use generic OS ABI framework.
5203 (arm_dump_tdep): Likewise.
5204 (_initialize_arm_tdep): Likewise.
5205 * arm-tdep.h: Include osabi.h.
5206 (arm_abi): Remove.
5207 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5208 osabi member.
5209 (arm_gdbarch_register_os_abi): Remove prototype.
5210 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5211 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5212
5213 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5214 * mips-tdep.c: Include osabi.h.
5215 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5216 OS ABI framework.
5217
d194345b
KH
52182002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5219
5220 * h8300-tdep.c: Fix formatting.
5221
70c6b0d1
EZ
52222002-05-20 Elena Zannoni <ezannoni@redhat.com>
5223
5224 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5225 printing vector registers.
5226
165b8e33
AC
52272002-05-19 Andrew Cagney <ac131313@redhat.com>
5228
5229 From Fernando Nasser:
5230 * remote.c (remote_async_open_1): Re-throw the exception when the
5231 connection fails.
5232 (remote_cisco_open): Ditto.
5233 (remote_open_1): Ditto.
5234
36918e70
AC
52352002-05-19 Andrew Cagney <ac131313@redhat.com>
5236
5237 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5238 (remote_start_remote): Add uiout parameter. Pass through to
5239 remote_start_remote_dummy.
5240 (remote_open_1): Use catch_exception instead of catch_errors.
5241 (remote_async_open_1): Ditto.
5242 (remote_cisco_open): Ditto.
5243
ae44c0c4
AC
52442002-05-19 Andrew Cagney <ac131313@redhat.com>
5245
5246 * remote.c (remote_start_remote): Replace PTR with void pointer.
5247 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5248 static.
5249
8efe637d
AC
52502002-05-18 Andrew Cagney <ac131313@redhat.com>
5251
5252 * gdb_indent.sh: Allow the script to be run in the sim directory.
5253
2f1b5984
MK
52542002-05-18 Mark Kettenis <kettenis@gnu.org>
5255
f0f625e2
MK
5256 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5257 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5258
2f1b5984
MK
5259 * corelow.c (core_open): Only call set_gdbarch_from_file if
5260 exec_bfd is NULL.
5261
fc974602
AV
52622002-05-17 Andrey Volkov <avolkov@transas.com>
5263
5264 * h8300-tdep.c: Add support of EXR register
5265 * config/h8300/tm-h8300.h: Ditto.
5266
906709f4
AV
52672002-05-17 Andrey Volkov <avolkov@transas.com>
5268
5269 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5270
6e591d68
AV
52712002-05-17 Andrey Volkov <avolkov@transas.com>
5272
5273 * h8300-tdep.c: Change literal regnums to REGNO.
5274
84f0252a
JB
52752002-05-17 Jim Blandy <jimb@redhat.com>
5276
e0e9281e
JB
5277 * NEWS: Note addition of macro support.
5278
84f0252a
JB
5279 Expand preprocessor macros in C expressions.
5280 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5281 (scan_macro_expansion, scanning_macro_expansion,
5282 finished_macro_expansion): New function declarations.
5283 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5284 variable declarations.
5285 * parser-defs.h (expression_context_pc): New declaration.
5286 * parse.c (expression_context_pc): New variable.
5287 (parse_exp_1): Set expression_context_pc, as well as
5288 expression_context_block.
5289 * c-exp.y (yylex): If we're not already reading the result of a
5290 macro expansion, try to macro-expand the next token. When we're
5291 done scanning a macro expansion, switch back to the mainline text.
5292 Commas and `if's in a macro's expansion don't terminate the input.
5293 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5294 (macro_original_text, macro_expanded_text,
5295 expression_macro_lookup_func, expression_macro_lookup_baton): New
5296 variables.
5297 (scan_macro_expansion, scanning_macro_expansion,
5298 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5299 c_preprocess_and_parse): New functions.
5300 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5301 c_preprocess_and_parse, instead of c_parse.
5302 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5303 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5304
1c509ca8
JR
5305Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5306
5307 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5308 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5309 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5310
2250ee0c
CV
53112002-05-17 Corinna Vinschen <vinschen@redhat.com>
5312
5313 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5314
ab3b8126
JT
53152002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5316
5317 * Makefile.in (sh_tdep_h): Define and use.
5318 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5319 register enum): Move to...
5320 * * sh-tdep.h: ...here.
5321 * sh-tdep.c: Include sh-tdep.h.
5322 * sh3-rom.c: Likewise.
5323 * shnbsd-tdep.c: Likewise.
5324
ed9d4749
MS
53252002-05-16 Michael Snyder <msnyder@redhat.com>
5326
5327 * arm-tdep.c: Spelling fix in comment.
5328
2e276125
JB
53292002-05-16 Jim Blandy <jimb@redhat.com>
5330
6821892e
JB
5331 Add commands for manually expanding macros and showing their
5332 definitions.
5333 * macrocmd.c, macroscope.c, macroscope.h: New files.
5334 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5335 (macroscope_h): New variable.
5336 (HFILES_NO_SRCDIR): Add macroscope.h.
5337 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5338 (macroscope.o, macrocmd.o): New rules.
5339
2e276125
JB
5340 Teach the Dwarf 2 reader to read macro information.
5341 * dwarf2read.c: #include "macrotab.h".
5342 (dwarf_macinfo_buffer): New variable.
5343 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5344 dwarf_macinfo_size.
5345 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5346 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5347 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5348 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5349 dwarf2_macro_spaces_in_definition): New complaints.
5350 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5351 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5352 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5353 the partial symbol table.
5354 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5355 from what's recorded in the partial symbol table.
5356 (read_file_scope): If the compilation unit has a
5357 `DW_AT_macro_info' attribute, read its macro information.
5358 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5359
2f53fe6c
DJ
53602002-05-16 Daniel Jacobowitz <drow@mvista.com>
5361
5362 Fix PR gdb/546
5363 * ser-tcp.c: Don't include <netinet/udp.h>.
5364
2be99286
SC
53652002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5366
5367 * MAINTAINERS: Update my email address.
5368
c9af212b 53692002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5370
5371 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5372 include file of the same name.
5373
bf5f1a52
CV
53742002-05-16 Corinna Vinschen <vinschen@redhat.com>
5375
5376 * configure.tgt: Mark v850 as multi-arched.
5377 * config/v850/tm-v850.h: Remove file.
5378 * config/v850/v850.mt: Eliminate TM_FILE.
5379
435e042a
CV
53802002-05-16 Corinna Vinschen <vinschen@redhat.com>
5381
5382 * v850-tdep.c: Full multi-arch.
5383 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5384 Define GDB_MULTI_ARCH to 2.
5385
9819c6c8
PM
53862002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5387
5388 * p-exp.y (current_type): New static variable.
5389 Carries the type of the expression at the position that is parsed.
5390 (push_current_type, pop_current_type): Two new functions. Used
5391 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5392 (search_field): New static variable. Set to one after parsing a point
5393 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5394 (FIELDNAME): New token. After a point only a token belonging to
5395 current_type type definition is allowed.
5396 (all over token rules): reset and change current_type according
5397 to rules.
5398 (exp '[' rule): insert implicit array index field if
5399 exp is a pascal string type.
5400
3a06899a
CV
54012002-05-16 Corinna Vinschen <vinschen@redhat.com>
5402
5403 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5404 frame info. Use frame_info's saved_regs instead of matching member
5405 in extra_frame_info throughout.
5406 (v850_frame_init_saved_regs): New function.
5407 (v850_init_extra_frame_info): Move most functionality into
5408 v850_frame_init_saved_regs().
5409 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5410 (v850_frame_find_saved_regs): Remove declaration.
5411 (FRAME_FIND_SAVED_REGS): Remove definition.
5412 (v850_frame_init_saved_regs): Add declaration.
5413 (FRAME_INIT_SAVED_REGS): Add definition.
5414
6ed14b0e
CV
54152002-05-16 Corinna Vinschen <vinschen@redhat.com>
5416
5417 * v850-tdep.c: Begin multi-arch'ing v850.
5418 (v850_target_architecture_hook): Remove function.
5419 (v850_gdbarch_init): New function. Add code previously in
5420 v850_target_architecture_hook().
5421 (_initialize_v850_tdep): Don't set target_architecture_hook.
5422 Call register_gdbarch_init() instead.
5423
42725910
DJ
54242002-05-16 Daniel Jacobowitz <drow@mvista.com>
5425
5426 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5427 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5428 (fixup_class_method_type): Likewise.
5429
99d9066e
JB
54302002-05-15 Jim Blandy <jimb@redhat.com>
5431
5432 Add macro structures to GDB's symbol tables. Nobody puts anything
5433 in them yet.
5434 * symtab.h (struct symtab): New member: `macro_table'.
5435 * buildsym.h (pending_macros): New global variable.
5436 * buildsym.c: #include "macrotab.h".
5437 (buildsym_init): Initialize `pending_macros'.
5438 (end_symtab): If we found macro information while reading a CU's
5439 debugging info, do build a symtab structure for it. Make the
5440 symtab point to the macro information, and clear the
5441 `pending_macros' pointer which held it while we were reading the
5442 debug info.
5443 (really_free_pendings): Free any pending macro table.
5444 * objfiles.h (struct objfile): New member: `macro_cache'.
5445 * objfiles.c (allocate_objfile): Set allocate and free functions
5446 for the macro cache's objstack.
5447 (free_objfile): Empty the macro cache's obstack.
5448 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5449 set new allocate and free functions for it.
5450 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5451 free functions for the macro cache's objstack. (Why is this
5452 function building its own objfile?)
5453 * symmisc.c (print_objfile_statistics): Print statistics on the
5454 macro bcache.
5455 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5456
c899585b
RE
54572002-05-15 Richard Earnshaw <rearnsha@arm.com>
5458
5459 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5460 (REGISTER_U_ADDR): Delete definition.
5461 (arm_register_u_addr): Delete declaration.
5462
a6cdd8c5
RE
54632002-05-15 Richard Earnshaw <rearnsha@arm.com>
5464
5465 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5466 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5467
c97dcfc7
AC
54682002-05-14 Andrew Cagney <ac131313@redhat.com>
5469
5470 * regcache.c (register_valid): Revise comments refering to "Not
5471 available" and "unavailable".
5472 * frame.c (frame_register_read): Ditto.
5473 * findvar.c (value_of_register): Ditto.
5474
93021b7d
AC
54752002-05-15 Andrew Cagney <cagney@redhat.com>
5476
5477 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5478 (remote-sim.o): Update dependencies.
5479 (d10v-tdep.o): Specify dependencies.
5480 (sim_d10v_h): Define.
5481
a86bc61c
JB
54822002-05-14 Jim Blandy <jimb@redhat.com>
5483
5484 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5485 * macrotab.c (macro_lookup_inclusion, find_definition,
5486 new_macro_table): Same.
5487
5488 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5489 not `! strcmp ()'. This is a dubious improvement.
5490 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5491
5492 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5493 although it's not necessary, to avoid a warning.
5494
2fdde8f8
DJ
54952002-05-14 Daniel Jacobowitz <drow@mvista.com>
5496
5497 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5498 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5499 TYPE_INSTANCE_FLAGS.
5500 (struct main_type): New.
5501 (struct type): Move most members to struct main_type. Change
5502 cv_type and as_type to new type_chain member. Add instance_flags.
5503 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5504 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5505 (finish_cv_type): Remove prototype.
5506 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5507 Set TYPE_CHAIN.
5508 (alloc_type_instance): New function.
5509 (smash_type): New function.
5510 (make_pointer_type, make_reference_type, make_function_type)
5511 (smash_to_member_type, smash_to_method_type): Call smash_type.
5512 (make_qualified_type): New function.
5513 (make_type_with_address_space): Call make_qualified_type.
5514 (make_cv_type): Likewise.
5515 (finish_cv_type): Remove unnecessary function.
5516 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5517 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5518 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5519 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5520 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5521 * hpread.c (hpread_read_struct_type): Likewise.
5522 * stabsread.c (read_struct_type): Likewise.
5523
843fedf4
EZ
55242002-05-14 Elena Zannoni <ezannoni@redhat.com>
5525
5526 * configure.tgt: Add a catch all sh* target, for cases like
5527 sh[2,3,4]-elf and sh-hms.
5528
05a6c72c
KS
55292002-05-14 Keith Seitz <keiths@redhat.com>
5530
5531 * event-loop.c (create_file_handler): Don't do anything but
5532 update data when we are given a fd which we are already
5533 monitoring.
5534
5d085aaf
ML
55352002-05-14 Michal Ludvig <mludvig@suse.cz>
5536
5537 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5538 (update_context): Use __func__ in warnings.
5539
9db8d71f
DJ
55402002-05-14 Daniel Jacobowitz <drow@mvista.com>
5541
5542 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5543 and tcp_close to net_open and net_close.
5544 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5545 using UDP if requested. Don't try to disable Nagle on UDP
5546 sockets.
5547 * remote.c (remote_serial_open): New function. Warn about UDP.
5548 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5549
5dbc6baa
EZ
55502002-05-13 Elena Zannoni <ezannoni@redhat.com>
5551
5552 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5553
cc3023f7
EZ
55542002-05-13 Elena Zannoni <ezannoni@redhat.com>
5555
5556 * configure.tgt: Remove sh-hms target.
5557 * MAINTAINERS: Don't list sh-hms as a separate target.
5558
ec2bcbe7
JB
55592002-05-13 Jim Blandy <jimb@redhat.com>
5560
5561 Add first preprocessor macro-expansion files.
5562 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5563 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5564 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5565 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5566 (COMMON_OBS): Add macrotab.o, macroexp.o.
5567 (macroexp.o, macrotab.o): New rules.
5568
6d531722
AC
55692002-05-13 Andrew Cagney <ac131313@redhat.com>
5570
5571 * config/m88k/tm-m88k.h: Update copyright.
5572 (m88k_target_write_pc): Declare
5573 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5574 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5575 (SHIFT_INST_REGS): Update definition.
5576 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5577 using old definition of TARGET_WRITE_PC.
5578 * regcache.c (generic_target_write_pc): Delete code handling
5579 NNPC_REGNUM.
5580 * gdbarch.sh (NNPC_REGNUM): Delete.
5581 * gdbarch.h, gdbarch.c: Regenerate.
5582
3e3f2739
RE
55832002-05-13 Richard Earnshaw <rearnsha@arm.com>
5584
5585 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5586 builtin reg number.
5587
0004e5a2
DJ
55882002-05-13 Daniel Jacobowitz <drow@mvista.com>
5589
5590 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5591 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5592 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5593 access macros.
5594 * c-typeprint.c (cp_type_print_method_args): Likewise.
5595 (c_type_print_args): Likewise.
5596 * d10v-tdep.c (d10v_push_arguments): Likewise.
5597 (d10v_extract_return_value): Likewise.
5598 * expprint.c (print_subexp): Likewise.
5599 * gdbtypes.c (lookup_primitive_typename): Likewise.
5600 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5601 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5602 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5603 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5604 (TYPE_VECTOR): Likewise.
5605 * hpread.c (hpread_read_struct_type)
5606 (fix_static_member_physnames, fixup_class_method_type)
5607 (hpread_type_lookup): Likewise.
5608 * mdebugread.c (parse_symbol, parse_type): Likewise.
5609 * p-lang.c (is_pascal_string_type): Likewise.
5610 * valops.c (hand_function_call): Likewise.
5611 * x86-64-tdep.c (classify_argument): Likewise.
5612
5613 * hpread.c (hpread_read_function_type)
5614 (hpread_read_doc_function_type): Call replace_type.
5615 * dstread.c (create_new_type): Delete.
5616 (decode_dst_structure, process_dst_function): Call alloc_type.
5617 Use type access macros.
5618
dff95cc7
MK
56192002-05-12 Mark Kettenis <kettenis@gnu.org>
5620
5621 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5622 the're not supported by the current architecture.
5623 (i387_fill_fxsave): Likewise.
5624
bbcd32ad
FF
56252002-05-12 Fred Fish <fnf@redhat.com>
5626
5627 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5628 sect_index_xxx members to index the first slot in section_offsets
5629 if all of the section_offsets are zero.
5630
89cf4787
MK
56312002-05-12 Mark Kettenis <kettenis@gnu.org>
5632
5633 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5634 checked in with last change.
5635
1f77ffc5
MK
56362002-05-12 Mark Kettenis <kettenis@gnu.org>
5637
5638 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5639 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5640 config.sub.
5641
89b8b4a9
DJ
56422002-05-12 Daniel Jacobowitz <drow@mvista.com>
5643
5644 * Makefile.in: Update dependencies.
5645
14a5e767
AC
56462002-05-11 Andrew Cagney <ac131313@redhat.com>
5647
5648 * language.c (local_hex_string_custom): Simplify. Do not depend
5649 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5650
5651 * memattr.c (mem_info_command): Replace calls to
5652 longest_local_hex_string and longest_local_hex_string_custom.
5653 * buildsym.c (make_blockvector): Ditto.
5654 * solib.c (info_sharedlibrary_command): Ditto.
5655 * tracepoint.c (tracepoints_info): Ditto.
5656 * symtab.c (print_msymbol_info): Ditto.
5657
5658 * language.c (local_hex_string): Delete.
5659 (local_hex_string_custom): Delete.
5660 (longest_local_hex_string): Rename to local_hex_string.
5661 (longest_local_hex_string_custom): Rename to
5662 local_hex_string_custom.
5663 * language.h (local_hex_string): Change parameter type to LONGEST.
5664 (local_hex_string_custom): Ditto.
5665 (longest_local_hex_string): Delete declaration.
5666 (longest_local_hex_string_custom): Ditto.
5667
5668 * solib.c: Update copyright.
5669 * memattr.c: Update copyright.
5670
13d01224
AC
56712002-05-11 Andrew Cagney <ac131313@redhat.com>
5672
5673 * arch-utils.h (legacy_register_to_value): Declare.
5674 (legacy_value_to_register): Declare.
5675 (legacy_convert_register_p): Declare.
5676 * arch-utils.c (legacy_register_to_value): New function.
5677 (legacy_value_to_register): New function.
5678 (legacy_convert_register_p): New function.
5679
5680 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5681 (VALUE_TO_REGISTER): Define.
5682 (CONVERT_REGISTER_P): Define.
5683 * gdbarch.h, gdbarch.c: Regenerate.
5684
5685 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5686 VALUE_TO_REGISTER.
5687 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5688 CONVERT_REGISTER_P.
5689
4a1970e4
DJ
56902005-05-11 Daniel Jacobowitz <drow@mvista.com>
5691 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5692
5693 * Makefile.in: Update dependencies for valops.c.
5694 * valops.c: Include "gdb_assert.h".
5695 (typecmp): Skip THIS parameter to methods.
5696 (find_method_list): Remove static_memfuncp argument,
5697 update callers. Check for stub methods.
5698 (find_value_oload_method_list): Don't set *static_memfuncp.
5699 (find_overload_match): Don't check for stub methods. Assert
5700 that methods are not stubbed. Handle static methods.
5701 (value_find_oload_method_list): Remove static_memfuncp argument.
5702 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5703 to the argument list for static stub methods.
5704 * value.h (value_find_oload_method_list): Update prototype.
5705
b2e75d78
AC
57062002-05-11 Andrew Cagney <ac131313@redhat.com>
5707
5708 * arch-utils.h (generic_register_size): Declare.
5709 (generic_register_raw_size, generic_register_virtual_size): Delete
5710 declarations.
5711 * arch-utils.c (generic_register_raw_size): Delete.
5712 (generic_register_size): New function.
5713 (generic_register_virtual_size): Delete.
5714
5715 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5716 default generic_register_size.
5717 * gdbarch.h, gdbarch.c: Re-generate.
5718
5719 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5720 register_virtual_size.
5721 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5722 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5723
451fbdda
AC
57242002-05-11 Andrew Cagney <ac131313@redhat.com>
5725
5726 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5727 * gdbarch.h, gdbarch.c: Regenerate.
5728 * gnu-v3-abi.c: Update copyright.
5729 (vtable_address_point_offset): Update.
5730 (gnuv3_rtti_type): Update.
5731 (gnuv3_baseclass_offset): Update.
5732 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5733 (init_fetch_link_map_offsets): Update.
5734 * remote.c (get_remote_state): Update.
5735
6d2f5cea
DJ
57362002-05-11 Daniel Jacobowitz <drow@mvista.com>
5737
5738 * TODO: Remove value_headof/value_from_vtable_info comment.
5739 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5740 * values.c (value_headof, value_from_vtable_info): Delete.
5741 * value.h (value_from_vtable_info): Delete prototype.
5742
d2324da4
AC
57432002-05-11 Andrew Cagney <ac131313@redhat.com>
5744
5745 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5746 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5747 $(gdb_regex_h).
5748 (gdb_assert_h): Define.
5749 (gdb_wait_h): Define.
5750 (gdb_regex_h): Define.
5751
5c717440
DJ
57522002-05-11 Daniel Jacobowitz <drow@mvista.com>
5753
5754 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5755 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5756
6c7861b3
JT
57572002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5758
5759 * nbsd-tdep.c: Fix comment.
5760
ea5bc2a6
JT
57612002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5762
5763 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5764 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5765 (nbsd-tdep.o): New dependency list.
5766 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5767 nbsd-tdep.h.
5768 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5769 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5770 * nbsd-tdep.c: New file.
5771 * nbsd-tdep.h: New file.
5772 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5773 nbsd-tdep.h.
5774 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5775 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5776 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5777 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5778
b28da865
JT
57792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5780
5781 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5782 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5783 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5784 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5785 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5786 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5787
4b8ff1fa
JT
57882002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5789
5790 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5791 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5792 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5793 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5794 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5795 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5796 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5797
dfe6eb1f
JT
57982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5801 fetch_elfcore_registers to...
5802 * i386nbsd-tdep.c: ...here.
5803 (i386nbsd_use_struct_convention): Rename to...
5804 (i386nbsd_aout_use_struct_convention): ...this.
5805 (i386nbsd_supply_reg): New function.
5806 (i386nbsd_fill_reg): New function.
5807 (fetch_core_registers): Use i386nbsd_supply_reg.
5808 (fetch_elfcore_registers): Likewise.
5809 (_initialize_i386nbsd_tdep): New function.
5810 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5811 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5812 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5813 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5814 (i386nbsd_aout_use_struct_convention): ...this.
5815
20cb8cda
JT
58162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5817
5818 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5819 (store_inferior_registers): Use shnbsd_fill_reg.
5820 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5821 sh_nbsd_supply_register): Collapse into...
5822 (shnbsd_supply_reg): ...this.
5823 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5824 (shnbsd_fill_reg): ...this.
5825 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5826 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5827 (fetch_core_registers): Use shnbsd_supply_reg.
5828 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5829 (sh_nbsd_core_fns): Rename to...
5830 (shnbsd_core_fns): ...this.
5831 (sh_nbsd_elfcore_fns): Rename to...
5832 (shnbsd_elfcore_fns): ...this.
5833 (sh_nbsd_init_abi): Rename to...
5834 (shnbsd_init_abi): ...this.
5835 (_initialize_sh_nbsd_tdep): Rename to...
5836 (_initialize_shnbsd_tdep): ...this.
5837 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5838 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5839 sh_nbsd_fill_register): Remove prototypes.
5840 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5841
e750d25e
JT
58422002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5843
5844 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5845 (i387-nat.o): Delete dependency list.
5846 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5847 (x86-64-linux-nat.o): Likewise.
5848 * i387-nat.c: Delete file, moving contents to...
5849 * i387-tdep.c: ...here.
5850 * i387-nat.h: Rename...
5851 * i387-tdep.h: ...to this.
5852 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5853 * i386-linux-nat.c: Likewise.
5854 * i386bsd-nat.c: Likewise.
5855 * i386gnu-nat.c: Likewise.
5856 * i386nbsd-nat.c: Likewise.
5857 * i386v4-nat.c: Likewise.
5858 * x86-64-linux-nat.c: Likewise.
5859 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5860 * config/i386/go32.mh (NATDEPFILES): Likewise.
5861 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5862 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5863 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5864 * config/i386/linux.mh (NATDEPFILES): Likewise.
5865 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5866 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5867 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5868 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5869
1aee598a
JT
58702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5871
5872 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5873 (alphanbsd-nat.o): Remove dependency list.
5874 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5875 * alphanbsd-nat.c: Delete. Contents moved to...
5876 * alphanbsd-tdep.c: ...here.
5877 (_initialize_alphanbsd_tdep): Register core functions.
5878 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5879
12bcb0fe
JT
58802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5881
5882 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5883 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5884 (alphanbsd-nat.o): Likewise.
5885 (alphabsd-tdep.o): New dependency list.
5886 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5887 (fill_gregset): Use alphabsd_fill_reg.
5888 (supply_fpregset): Use alphabsd_supply_fpreg.
5889 (fill_fpregset): Use alphabsd_fill_fpreg.
5890 (fetch_inferior_registers): Use struct reg and struct fpreg
5891 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5892 and alphabsd_supply_fpreg.
5893 (store_inferior_registers): Use struct reg and struct fpreg
5894 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5895 and alphabsd_fill_fpreg.
5896 * alphabsd-tdep.c: New file.
5897 * alphabsd-tdep.h: New file.
5898 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5899 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5900 alphabsd_supply_fpreg.
5901 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5902 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5903
361d1df0
EC
59042002-05-11 Eric Christopher <echristo@redhat.com>
5905
5906 * mips-tdep.c (mips_double_register_type): Fix thinko.
5907 (mips_single_register_type): Ditto.
5908 * MAINTAINERS: Add self.
5909
92dd7cee
MK
59102002-05-11 Mark Kettenis <kettenis@gnu.org>
5911
5912 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5913 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5914 right thing on architectures with different endianness and/or
5915 integer sizes.
5916
e27da16d
JT
59172002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5918
5919 From Christian Limpach <chris@Pin.LU>
5920 * configure.in: Change sed expression which comments out
5921 NATDEPFILES to also comment out continuation lines.
5922 * configure: Regenerate.
5923
ddde02bd
EZ
59242002-05-10 Elena Zannoni <ezannoni@redhat.com>
5925
5926 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5927 big patch.
5928
1c922164
EZ
59292002-05-10 Elena Zannoni <ezannoni@redhat.com>
5930
5931 * sh-tdep.c: Include correct file.
5932
283150cd
EZ
59332002-05-10 Elena Zannoni <ezannoni@redhat.com>
5934
5935 New support for sh64-elf (sh5) target.
5936
5937 * configure.tgt: For sh64-elf target, default to sh-elf.
5938
5939 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5940 (struct gdbarch_tdep): Add new fields for new registers and ABI
5941 info.
361d1df0 5942
283150cd
EZ
5943 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5944 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5945 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5946 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5947 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5948 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5949 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5950 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5951 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5952 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5953 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5954 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5955 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5956 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5957 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5958 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5959 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5960 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5961 sign_extend, sh64_nofp_frame_init_saved_regs,
5962 sh64_init_extra_frame_info, sh64_get_saved_register,
5963 sh64_extract_struct_value_address, sh64_pop_frame,
5964 sh64_push_arguments, sh64_extract_return_value,
5965 sh64_store_return_value, sh64_show_media_regs,
5966 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5967 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5968 sh_sh64_register_virtual_type,
5969 sh_sh64_register_convert_to_virtual,
5970 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5971 sh64_register_read, sh64_pseudo_register_write,
5972 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5973 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5974 sh64_do_pseudo_register, sh_compact_do_registers_info,
5975 sh64_do_registers_info, sh_gdbarch_init): New functions.
5976
3117ed25
EZ
59772002-05-10 Elena Zannoni <ezannoni@redhat.com>
5978
5979 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5980
2654e6d4
DJ
59812002-05-10 Daniel Jacobowitz <drow@mvista.com>
5982
5983 * linespec.c (decode_line_1): Check for a double quote after
5984 a filename correctly.
5985
9ab3e532
JB
59862002-05-10 Jim Blandy <jimb@redhat.com>
5987
5988 Properly track the size of the current objfile's .debug_line section.
5989 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5990 (DWARF_LINE_SIZE): New macro.
5991 (dwarf2_build_psymtabs_hard): Record the line section's size in
5992 the partial symbol table.
5993 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5994 symbol table.
5995
126fa72d
PS
59962002-05-10 Petr Sorfa <petrs@caldera.com>
5997
5998 * ia64-tdep.c: Handle breakpoints on L instruction type
5999 in MLX instruction bundle by moving the breakpoint to
6000 the third slot (X instruction type) as L holds only data.
6001
1f077a3e
KB
60022002-05-10 Kevin Buettner <kevinb@redhat.com>
6003
6004 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6005 (process_one_symbol): Complain about discarding local symbols
6006 due to a misplaced N_LBRAC entry.
6007
8120c9d5 60082002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6009
6010 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6011 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6012 decrease the depth we are at, in the case of templates.
361d1df0 6013
67b2c998
DJ
60142002-05-09 Daniel Jacobowitz <drow@mvista.com>
6015
6016 * mips-tdep.c (mips_float_register_type): New function.
6017 (mips_double_register_type): New function.
6018 (mips_print_register): Use them.
6019 (do_fp_register_row): Likewise.
6020
fd326606
DJ
60212002-05-09 Daniel Jacobowitz <drow@mvista.com>
6022
6609d9af 6023 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6024 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6025 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6026
bef35864
MS
60272002-05-09 Michael Snyder <msnyder@redhat.com>
6028
6029 * remote-rdp.c (remote_rdp_can_run): Remove.
6030
c55a3f73
TT
60312002-05-09 Tom Tromey <tromey@redhat.com>
6032
6033 * jv-valprint.c (java_val_print): Handle `char' as a special case
6034 of TYPE_CODE_INT.
6035
b8d5e71d
MS
60362002-05-09 Michael Snyder <msnyder@redhat.com>
6037
6038 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6039 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6040 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6041 str r(0123),[sp,#nn].
361d1df0 6042 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6043 order-independent by placing it in a loop.
6044
e2cd42dd
MS
60452002-05-06 Michael Snyder <msnyder@redhat.com>
6046
6047 * stabsread.c (read_type): Add recognition for new attribute:
6048 "@V;" means that an array type is actually a vector.
6049 This is analogous to the vector flag that's been added to dwarf2.
6050
3ce1502b
MK
60512002-05-09 Mark Kettenis <kettenis@gnu.org>
6052
6053 * i386-tdep.h (i386_abi): New enum.
6054 (struct gdbarch_tdep): Replace os_ident member with abi.
6055 (i386_gdbarch_register_os_abi): New prototype.
6056 * i386-tdep.c (i386_abi_names): New array.
6057 (process_note_abi_tag_sections): Removed.
6058 (process_note_sections): New function.
6059 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6060 (struct i386_abi_handler): New struct.
6061 (i386_abi_handler_list): New variable.
6062 (i386_gdbarch_register_os_abi): New function.
6063 (i386_gdbarch_init): Adapt for the changes given above.
6064
084c156a
DJ
60652002-05-08 Daniel Jacobowitz <drow@mvista.com>
6066
6067 * gregset.h: Say "GNU/Linux".
6068
6599f021
EZ
60692002-05-08 Elena Zannoni <ezannoni@redhat.com>
6070
6071 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6072 (build_gdbtypes): Build builtin_type_v2_float.
6073 (_initialize_gdbtypes): Register new builtin type.
6074
40af4b0c
AC
60752002-05-08 Andrew Cagney <ac131313@redhat.com>
6076
6077 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6078 (clear_gdbarch_swap): New function.
6079 (initialize_non_multiarch): Call.
6080 (gdbarch_update_p): Before calling init(), swap out and clear the
6081 existing architecture.
6082 * gdbarch.c: Regenerate.
6083
4fe84f46
JT
60842002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6085
6086 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6087 alphanbsd-tdep.c.
6088
4015edd1
JT
60892002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * sh-nbsd-nat.c: Rename to...
6092 * shnbsd-nat.c: ...this.
6093 * sh-nbsd-tdep.c: Rename to...
6094 * shnbsd-tdep.c: ...this.
6095 * sh-nbsd-tdep.h: Rename to...
6096 * shnbsd-tdep.h: ...this.
6097 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6098 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6099
0e2bd219
RE
61002002-05-08 Richard Earnshaw <rearnsha@arm.com>
6101
6102 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6103 concatenation for command help messages.
6104
13a38d45
JT
61052002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6106
6107 * NEWS: Note new sh*-*-netbsdelf* configuration.
6108 * configure.host: Set gdb_host_cpu to sh for all sh*.
6109 (sh*-*-netbsdelf*): New host.
6110 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6111 (sh*-*-netbsdelf*): New target.
6112 * sh-nbsd-nat.c: New file.
6113 * sh-nbsd-tdep.c: New file.
6114 * sh-nbsd-tdep.h: New file.
6115 * config/sh/nbsd.mh: New file.
6116 * config/sh/nbsd.mt: New file.
6117 * config/sh/nm-nbsd.h: New file.
6118 * config/sh/tm-nbsd.h: New file.
6119
d658f924
JT
61202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * sh-tdep.c (sh_osabi_names): Declare.
6123 (process_note_abi_tag_sections): New function.
6124 (get_elfosabi): Ditto.
6125 (sh_gdbarch_register_os_abi): Ditto.
6126 (sh_dump_tdep): Ditto.
6127 _initialize_sh_tdep): Use gdbarch_register to register
6128 sh_gdbarch_init and sh_dump_tdep.
6129 * config/sh/tm-sh.h (sh_osabi): Declare.
6130 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6131
848cfffb
AC
61322002-05-07 Andrew Cagney <ac131313@redhat.com>
6133
6134 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6135 (thumb_scan_prologue): Ditto.
6136 (arm_find_callers_reg): Ditto.
6137 (arm_frame_chain): Ditto.
6138 (arm_init_extra_frame_info): Ditto.
6139 (arm_frame_saved_pc): Ditto.
6140 (arm_pop_frame): Ditto.
6141 (arm_push_return_address): New function.
6142 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6143 call_dummy_location, call_dummy_breakpoint_offset_p,
6144 call_dummy_breakpoint_offset, call_dummy_p,
6145 call_dummy_stack_adjust_p, call_dummy_words,
6146 sizeof_call_dummy_words, call_dummy_start_offset,
6147 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6148 call_dummy_address, push_return_address and push_dummy_frame for
6149 generic dummy frames.
6150
e7d717c0
JT
61512002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6152
6153 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6154 size computation for alloca.
6155 (sh_fp_frame_init_saved_regs): Likewise.
6156
7bbcf283
RE
61572002-05-07 Richard Earnshaw <rearnsha@arm.com>
6158
6159 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6160 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6161 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6162 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6163 * remote-rdp.c (remote_rdp_fetch_register): Use
6164 ARM_MAX_REGISTER_RAW_SIZE.
6165 (remote_rdp_store_register): Likewise.
6166
4657573b
ML
61672002-05-07 Michal Ludvig <mludvig@suse.cz>
6168
361d1df0 6169 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6170 added default labels to switch {} statements.
6171 * x86-64-tdep.c: Ditto.
6172 * x86-64-linux-nat.c: Ditto.
6173
010f3b2f
JT
61742002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6175
6176 * solib.h: Protect against multiple inclusion.
6177
debd256d
JB
61782002-05-06 Jim Blandy <jimb@redhat.com>
6179
9ab3e532
JB
6180 Add first preprocessor macro-expansion files.
6181 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6182 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6183 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6184 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6185 (COMMON_OBS): Add macrotab.o, macroexp.o.
6186 (macroexp.o, macrotab.o): New rules.
6187
debd256d
JB
6188 Separate the job of reading the line number info statement program
6189 header (...expialidocious) out into its own function.
6190 * dwarf2read.c (struct line_head, struct filenames, struct
6191 directories): Replace with...
6192 (struct line_header): New structure, containing the full
6193 contents of the statement program header, including the
6194 include directory and file name tables.
6195 (read_file_scope): If we have line number info, instead of just
6196 calling dwarf_decode_lines to do all the work, call
6197 dwarf_decode_line_header first to get a `struct line_header'
6198 containing the data in the statement program header, and then
6199 pass that to dwarf_decode_lines, which will pick up where that
6200 left off. Be sure to clean up the `struct line_header' object.
6201 (dwarf_decode_line_header, free_line_header, add_include_dir,
6202 add_file_name): New functions.
6203 (dwarf_decode_lines): Move all the code to read the statement
6204 program header into dwarf_decode_line_header. Take the line
6205 header it built as the first argument, instead of the offset to
6206 the compilation unit's line number info. Use the new `struct
6207 line_header' type instead of the old structures. No need to do
6208 cleanups here now, since we don't allocate anything.
6209 (dwarf2_statement_list_fits_in_line_number_section,
6210 dwarf2_line_header_too_long): New complaints.
6211
ac3aafc7
EZ
62122002-05-06 Elena Zannoni <ezannoni@redhat.com>
6213
6214 * gdbtypes.c (init_vector_type): New function.
6215 (build_builtin_type_vec128): Simplify the representation of SIMD
6216 registers.
6217 (build_gdbtypes): Initialize new builtin vector types.
6218 (_initialize_gdbtypes): Register new vector types with gdbarch.
6219 (builtin_type_v4_float, builtin_type_v4_int32,
6220 builtin_type_v8_int16, builtin_type_v16_int8,
6221 builtin_type_v2_int32, builtin_type_v4_int16,
6222 builtin_type_v8_int8): New (renamed) SIMD types.
6223
13e49980
MK
62242002-05-06 Mark Kettenis <kettenis@gnu.org>
6225
6226 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6227 (i387_fill_fxsave): Likewise.
6228
997b20b8
AO
62292002-05-05 Alexandre Oliva <aoliva@redhat.com>
6230
6231 * alpha-tdep.c (alpha_extract_return_value): Don't use
6232 non-constant array size in prototype.
6233
535c96ce
AC
62342002-05-04 Andrew Cagney <ac131313@redhat.com>
6235
6236 From Brian Taylor <briant at model dot com>:
6237 * ui-out.c (ui_out_field_core_addr): Use the function
6238 longest_local_hex_string_custom'to format addresses > 32 bits
6239 wide.
6240
6241 * ui-out.c (ui_out_field_core_addr): Update comment.
6242
bedfa57b
AC
62432002-05-04 Andrew Cagney <ac131313@redhat.com>
6244
6245 * stack.c (select_and_print_frame): Make static. Delete the
6246 parameter `level'.
6247 (func_command): Update call.
6248 (select_frame_command): Delete code computing the frame level.
6249 * frame.h (select_and_print_frame): Delete declaration.
6250
f621c63e
AC
62512002-05-04 Andrew Cagney <ac131313@redhat.com>
6252
6253 * sparc-tdep.c (sparc_get_saved_register): Comment why
6254 get_prev_frame call is safe.
6255
0f7d239c
AC
62562002-05-04 Andrew Cagney <ac131313@redhat.com>
6257
6258 * frame.h (select_frame): Delete level parameter.
6259 * stack.c (select_frame): Update. Use frame_relative_level to
6260 obtain the frame's level.
6261 (select_and_print_frame): Update call.
6262 (select_frame_command): Ditto.
6263 (up_silently_base): Ditto.
6264 (down_silently_base): Ditto.
6265 * ocd.c (ocd_start_remote): Ditto.
6266 * remote-rdp.c (remote_rdp_open): Ditto.
6267 * remote-mips.c (mips_initialize): Ditto.
6268 (common_open): Ditto.
6269 * remote-e7000.c (e7000_start_remote): Ditto.
6270 * m3-nat.c (select_thread): Ditto.
6271 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6272 (child_get_current_exception_event): Ditto.
6273 * varobj.c (varobj_create): Ditto.
6274 (varobj_update): Ditto.
6275 (c_value_of_root): Ditto.
6276 * tracepoint.c (finish_tfind_command): Ditto.
6277 * corelow.c (core_open): Ditto.
6278 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6279 * thread.c (info_threads_command): Ditto.
6280 (switch_to_thread): Ditto.
6281 * infrun.c (normal_stop): Ditto.
6282 (restore_selected_frame): Ditto.
6283 (restore_inferior_status): Ditto.
6284 * breakpoint.c (insert_breakpoints): Ditto.
6285 (watchpoint_check): Ditto.
6286 (bpstat_stop_status): Ditto.
6287 (do_enable_breakpoint): Ditto.
6288 * blockframe.c (flush_cached_frames): Ditto.
6289 (reinit_frame_cache): Ditto.
6290
71d6c7b1
AC
62912002-05-04 Andrew Cagney <ac131313@redhat.com>
6292
6293 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6294 maintainer.
6295
cda6c68a
JB
62962002-05-04 Jim Blandy <jimb@redhat.com>
6297
6298 * gdbtypes.c (replace_type): Doc fix.
6299
5c1c87f0
AC
63002002-05-04 Andrew Cagney <ac131313@redhat.com>
6301
6302 * valprint.c (strcat_longest): Delete commented out function.
6303 Update copyright.
6304
cd9bfe15
AC
63052002-05-04 Andrew Cagney <ac131313@redhat.com>
6306
6307 * MAINTAINERS: Mark a29k as deleted.
6308 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6309 Move new configurations to the top.
6310 * configure.tgt: Remove a29k.
6311 * config/a29k/tm-vx29k.h: Delete.
6312 * config/a29k/vx29k.mt: Delete.
6313 * config/a29k/tm-a29k.h: Delete.
6314 * config/a29k/a29k-udi.mt: Delete.
6315 * config/a29k/a29k.mt: Delete.
6316 * a29k-tdep.c: Delete.
6317 * remote-udi.c: Delete.
6318 * remote-mm.c: Delete.
6319 * remote-eb.c: Delete.
6320 * remote-adapt.c: Delete.
6321 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6322 * config/s390/s390x.mt: Ditto.
6323 * config/s390/s390.mt: Ditto.
6324 * config/sparc/sparclynx.mh: Ditto.
6325 * config/sparc/linux.mh: Ditto.
6326 * config/pa/hppaosf.mh: Ditto.
6327 * config/pa/hppabsd.mh: Ditto.
6328 * config/ns32k/nbsd.mt: Ditto.
6329 * config/mips/vr5000.mt: Ditto.
6330 * config/m68k/sun3os4.mh: Ditto.
6331 * config/m68k/nbsd.mt: Ditto.
6332 * config/m68k/m68klynx.mh: Ditto.
6333 * config/m32r/m32r.mt: Ditto.
6334 * config/i386/x86-64linux.mt: Ditto.
6335 * config/i386/nbsdelf.mt: Ditto.
6336 * config/i386/nbsd.mt: Ditto.
6337 * config/i386/i386lynx.mh: Ditto.
6338
bf0c5130
AC
63392002-05-04 Andrew Cagney <ac131313@redhat.com>
6340
6341 * target.c (debug_print_register): New function. Handle oversize
6342 registers.
6343 (debug_to_fetch_registers): Call.
6344 (debug_to_store_registers): Call.
6345
2ae1c2d2
JB
63462002-05-03 Jim Blandy <jimb@redhat.com>
6347
13a393b0
JB
6348 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6349 (read_type): Doc fix.
6350 * gdbtypes.c (replace_type): Doc fix.
6351
2ae1c2d2
JB
6352 * stabsread.c (multiply_defined_struct): New complaint.
6353 (read_struct_type): If the type we were passed isn't empty, or
6354 incomplete, don't read the new struct type into it; complain,
6355 and return the original type unchanged. Take a new `type_code'
6356 argument, which is the type code for the new type.
6357 (read_type): Rather than storing the type's type code here, pass
6358 it as an argument to read_struct_type, and let that take care of
6359 storing it. That way, we don't overwrite the original type code,
6360 so read_struct_type can use it to decide whether we're overwriting
6361 something we shouldn't.
6362 (complain_about_struct_wipeout): New function.
6363
8de9bdc4
AC
63642002-05-03 Andrew Cagney <ac131313@redhat.com>
6365
6366 * gdbarch.sh: Assert that gdbarch is non-NULL.
6367 * gdbarch.c: Regenerate.
6368
f773fdbb
JM
63692002-05-03 Jason Merrill <jason@redhat.com>
6370
6371 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6372 and return NULL.
6373
0e04a514
ML
63742002-05-03 Michal Ludvig <mludvig@suse.cz>
6375
6376 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6377 (x86_64_dwarf2gdb_regno_map_length),
6378 (x86_64_dwarf2_reg_to_regnum): Added.
6379 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6380 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6381 (_initialize_x86_64_tdep): Synced with the change above.
6382 (x86_64_skip_prologue): Reformulated message.
6383
065432a8
PM
63842002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6385
6386 * f-exp.y: Also use new prev_lexptr variable
6387 to improve error reporting. Based on Michael Snyder
6388 2002-04-24 dated patch to c-exp.y.
6389 * jv-exp.y: Likewise.
6390 * m2-exp.y: Likewise.
6391
a3162708
EZ
63922002-05-02 Elena Zannoni <ezannoni@redhat.com>
6393
6394 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6395 we are dealing with vectors.
6396
03620c38
PM
63972002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6398
6399 * config/m68k/tm-nbsd.h: Obvious fix,
6400 correct machine name.
6401
6604db2e
PM
64022002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6403
6404 * p-typeprint.c (pascal_type_print_base): Add support
6405 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6406
0906b739
PM
64072002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6408
6409 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6410 for fondamental pascal 'char' type.
6411
e2625b33
PM
64122002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6413
6414 * p-lang.h (is_pascal_string_type): Declaration changed,
6415 new sixth argument of type char ** added.
361d1df0 6416 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6417 changed. Args length_pos, length_size, string_pos, char_size
6418 can now be NULL. New argument arrayname set to the field
6419 name of the char array. Return value set to char array
6420 field index plus one.
361d1df0 6421 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6422 is_pascal_string_type function.
6423
cf17c188
AC
64242002-05-02 Andrew Cagney <cagney@redhat.com>
6425
6426 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6427 <cagney@redhat.com> change.
6428 * gdbarch.c: Regenerate.
6429
52bca491
AC
64302002-05-02 Andrew Cagney <cagney@redhat.com>
6431
6432 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6433 before probing for a new one. Detect errorenous gdbarch_init
6434 functions.
6435 * gdbarch.c: Regenerate.
6436
d5e72505
AC
64372002-05-01 Andrew Cagney <cagney@redhat.com>
6438
6439 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6440 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6441 * config/v850/tm-v850.h: Ditto. Update copyright.
6442
af566d9f
AC
64432002-04-30 Andrew Cagney <ac131313@redhat.com>
6444
6445 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6446 current_gdbarch.
6447
880d85fa
MS
64482002-04-30 Michael Snyder <msnyder@redhat.com>
6449
94c30b78
MS
6450 * arm-tdep.c: Whitespace clean-ups.
6451 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6452 should have been removed as part of 4/24 change.
6453
6f5987a6
KB
64542002-04-30 Kevin Buettner <kevinb@redhat.com>
6455
6456 * rs6000-tdep.c: Added comment describing how fpscr register
6457 numbers were chosen.
6458
1a113c93
MS
64592002-04-30 Michael Snyder <msnyder@redhat.com>
6460
6461 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6462
9a6f53fe
EZ
64632002-04-29 Elena Zannoni <ezannoni@redhat.com>
6464
6465 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6466 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6467 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6468
11ed25ac
KB
64692002-04-29 Kevin Buettner <kevinb@redhat.com>
6470
6471 From Louis Hamilton <hamilton@redhat.com>:
6472 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6473 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6474 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6475 not bfd-private xcoff data, to determine wordsize.
6476 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6477
ae232405
AC
64782002-04-29 Andrew Cagney <ac131313@redhat.com>
6479
6480 GDB 5.2 released from 5.2 branch.
6481
91fd20f7
ML
64822002-04-29 Michal Ludvig <mludvig@suse.cz>
6483
6484 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6485 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6486 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6487
2dc5091b
EZ
64882002-04-29 Elena Zannoni <ezannoni@redhat.com>
6489
6490 * rs6000-tdep.c (rs6000_extract_return_value,
6491 rs6000_store_return_value): Handle returning vectors.
6492 (rs6000_gdbarch_init): Use
6493 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6494 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6495 New function.
6496 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6497 vectors.
6498 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6499 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6500
2b9848d8
PM
65012002-04-24 Pierre Muller <ics.u-strasbg.fr>
6502
6503 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6504 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6505 with fprintf_unfiltered (gdb_stderr,...).
6506
f8d17dc5
PM
65072002-04-24 Pierre Muller <ics.u-strasbg.fr>
6508
6509 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6510 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6511 Replace fprintf (stderr,...
6512 with fprintf_unfiltered (gdb_stderr,....
6513 * remote-es.c: Likewise.
6514 * remote-os9k.c: Likewise.
6515 * remote-st.c: Likewise.
6516
2f2f1ad1
AS
65172002-04-28 Andreas Schwab <schwab@suse.de>
6518
6519 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6520 linux-proc.o and gcore.o.
6521
b6779aa2
AC
65222002-04-26 Michal Ludvig <mludvig@suse.cz>
6523
6524 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6525 code without frame pointers.
6526
7e57f5f4
AC
65272002-04-26 Andrew Cagney <ac131313@redhat.com>
6528
6529 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6530 ON_STACK is needed.
6531
2ceb85d0
BE
65322002-04-26 Ben Elliston <bje@redhat.com>
6533
6534 * target.c (do_xfer_memory): Correct reference to the new option
6535 "trust-readonly-sections".
6536
f5f8a009
EZ
65372002-04-26 Elena Zannoni <ezannoni@redhat.com>
6538
6539 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6540 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6541 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6542 vectors.
6543 (read_array_type): Record the fact that this array type is really a
6544 vector (i.e. are passed in by value).
6545
5868c862
JT
65462002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6547
6548 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6549 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6550 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6551 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6552 * alpha-linux-tdep.c: Include frame.h.
6553 (alpha_linux_sigcontext_addr): New function.
6554 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6555 alpha_linux_sigcontext_addr.
6556 * alpha-osf1-tdep.c: Include gdbcore.h.
6557 (alpha_osf1_sigcontext_addr): New function.
6558 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6559 alpha_osf1_sigcontext_addr.
6560 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6561 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6562
bfb01f37
AC
65632002-04-26 Andrew Cagney <ac131313@redhat.com>
6564
361d1df0 6565 * stack.c (selected_frame_level):
bfb01f37
AC
6566 (select_frame): Do not set selected_frame_level.
6567 * frame.h (selected_frame_level): Delete declaration.
6568
15813d3f
AC
65692002-04-26 Andrew Cagney <ac131313@redhat.com>
6570
6571 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6572 convert_from_func_ptr-addr when AIX / PowerOpen.
6573
6096c27a
AC
65742002-04-25 Andrew Cagney <ac131313@redhat.com>
6575
6576 * valops.c (hand_function_call): Call
6577 generic_save_call_dummy_addr.
6578 * frame.h (generic_save_call_dummy_addr): Declare.
6579 * blockframe.c (struct dummy_frame): Add fields call_lo and
6580 call_hi.
6581 (generic_find_dummy_frame): Check for PC in range call_lo to
6582 call_hi instead of entry_point_address.
6583 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6584 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6585 (generic_save_call_dummy_addr): New function.
6586
f510d44e
DM
65872002-04-24 David S. Miller <davem@redhat.com>
6588
6589 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6590 sparc_skip_prologue.
6591 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6592 information to find prologue when possible.
6593 (sparc_prologue_frameless_p): Call examine_prologue directly.
6594 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6595 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6596 second argument.
6597 (SKIP_PROLOGUE): Likewise.
6598
15d72a92
JT
65992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6600
6601 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6602 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6603 indicate that the condition it was testing is always true.
6604 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6605 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6606 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6607
accc6d1f
JT
66082002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6609
6610 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6611 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6612 tdep->jb_pc and tdep->jb_elt_size.
6613 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6614 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6615 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6616 * alpha-nat.c (get_longjmp_target): Remove.
6617 (JB_ELEMENT_SIZE): Ditto.
6618 (JB_PC): Ditto.
6619 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6620 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6621 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6622 to alpha_get_longjmp_target.
6623 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6624 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6625 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6626
1bfdc549
AC
66272002-04-25 Andrew Cagney <ac131313@redhat.com>
6628
6629 * README: Update to GDB 5.2.
6630
1bd316f0
AC
66312002-04-25 Andrew Cagney <ac131313@redhat.com>
6632
6633 * gdbarch.sh (LC_ALL): Set to `c'.
6634
2e5ff58c
TR
66352002-04-25 Theodore A. Roth <troth@verinet.com>
6636
6637 * avr-tdep.c: Ran through gdb_indent.sh.
6638
e33ce519
TR
66392002-04-25 Theodore A. Roth <troth@verinet.com>
6640
6641 * MAINTAINERS: Add myself as AVR maintainer.
6642 * NEWS: Note new target avr.
6643
8818c391
TR
66442002-04-25 Theodore A. Roth <troth@verinet.com>
6645
6646 * Makefile.in: Add support for AVR target.
6647 * configure.tgt: Add support for AVR target.
6648 * avr-tdep.c: New file
6649 * config/avr/avr.mt: New file.
6650
79509c2d
TR
66512002-04-25 Theodore A. Roth <troth@verinet.com>
6652
6653 * MAINTAINERS: Add myself to write-after-approval.
6654
dac8068e
PM
66552002-04-24 Pierre Muller <ics.u-strasbg.fr>
6656
6657 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6658 with fprintf_unfiltered (gdb_stderr,....
6659
25bf3106
PM
66602002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6661
6662 Fix PR gdb/508.
6663 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6664
24467a86
PM
66652002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6666
6667 * p-exp.y: Also use new prev_lexptr variable
6668 to improve error reporting. Based on Michael Snyder
6669 2002-04-24 dated patch to c-exp.y.
6670
95b80706
JT
66712002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6672
6673 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6674 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6675 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6676 to 0.
6677 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6678 and struct value.
6679 (FUNCTION_START_OFFSET): Remove.
6680 (BREAKPOINT): Ditto.
6681
e90cc612
JT
66822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6683
6684 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6685 * NEWS: Ditto.
6686
6c72f9f9
JT
66872002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6688
6689 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6690 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6691 alpha_linux_pc_in_sigtramp.
6692 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6693 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6694 alpha_osf1_pc_in_sigtramp.
6695 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6696 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6697 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6698 alphafbsd_pc_in_sigtramp.
6699 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6700 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6701 alphanbsd_pc_in_sigtramp.
6702 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6703 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6704
5e4f3379
JT
67052002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6706
6707 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6708
da8ca43d
JT
67092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6710
6711 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6712 alphanbsd-tdep.c.
6713 (alphanbsd-nat.o): New dependency list.
6714 (alphanbsd-tdep.o): Ditto.
6715 * NEWS: Note new native NetBSD/alpha configuration.
6716 * alphanbsd-nat.c: New file.
6717 * alphanbsd-tdep.c: Ditto.
6718 * configure.host (alpha*-*-netbsd*): New host.
6719 * configure.tgt (alpha*-*-netbsd*): New target.
6720 * config/alpha/nbsd.mh: New file.
6721 * config/alpha/nbsd.mt: Ditto.
6722 * config/alpha/nm-nbsd.h: Ditto.
6723 * config/alpha/tm-nbsd.h: Ditto.
6724
36a6271d
JT
67252002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6726
6727 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6728 (alpha-osf1-tdep.o): New dependency list.
6729 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6730 and skip_sigtramp_frame members.
6731 * alpha-linux-tdep.c: Include gdbcore.h.
6732 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6733 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6734 * alpha-osf1-tdep.c: New file.
6735 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6736 alpha-osf1-dep.c.
6737 (alpha_frame_past_sigtramp_frame): New function.
6738 (alpha_dynamic_sigtramp_offset): Ditto.
6739 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6740 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6741 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6742 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6743 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6744 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6745 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6746 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6747 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6748 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6749 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6750 to find_solib_trampoline_target.
6751 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6752 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6753 (SKIP_TRAMPOLINE_CODE): Remove.
6754 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6755 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6756 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6757 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6758 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6759 (PROC_SIGTRAMP_MAGIC): Ditto.
6760 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6761 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6762 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6763 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6764 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6765
2f4bc57b
JT
67662002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6767
6768 * NEWS: Note that Alpha targets are now multi-arch.
6769
665132f9
MS
67702002-04-24 Michael Snyder <msnyder@redhat.com>
6771
6772 * parser-defs.h (prev_lexptr): New external variable.
6773 * parse.c (parse_exp_1): Set prev_lexptr to null before
6774 calling the language-specific parser.
6775 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6776 (yyerror): Use prev_lexptr in error reporting.
6777
32872fa7
DJ
67782002-04-24 Daniel Jacobowitz <drow@mvista.com>
6779
6780 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6781 * gregset.h: If FILL_FPXREGSET is defined, provide
6782 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6783 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6784 is defined, call fill_fpxregset.
6785
57e76fac
MS
67862002-04-24 Roland McGrath <roland@frob.com>
6787
6788 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6789 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6790 (supply_gregset, supply_fpregset): New functions.
6791
6792 * gnu-nat.c (gnu_find_memory_regions): New function.
6793 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6794 (gnu_xfer_memory): Add a cast.
6795
f43845b3
MS
67962002-04-24 Michael Snyder <msnyder@redhat.com>
6797
361d1df0 6798 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6799 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6800 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6801 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6802 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6803 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6804
a0abec03
AC
6805Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6806
6807 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6808 NUM_PSEUDO_REGS can be used.
6809
d7bd68ca
AC
68102002-04-24 Andrew Cagney <ac131313@redhat.com>
6811
6812 * arch-utils.h: Update copyright.
6813
6814 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6815 * gdbarch.h, gdbarch.c: Re-generate.
6816
6817 * inferior.h (IN_SIGTRAMP): Delete definition.
6818 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6819 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6820
6821 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6822 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6823 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6824 (find_proc_framesize): Ditto.
6825 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6826 (alpha_init_extra_frame_info): Ditto.
6827 * infrun.c (handle_inferior_event): Ditto.
6828 (handle_inferior_event): Ditto.
6829 (check_sigtramp2): Ditto.
6830 * blockframe.c (create_new_frame): Ditto.
6831 (get_prev_frame): Ditto.
6832 * ppc-linux-tdep.c: Update comments.
6833 * i386-linux-tdep.c: Update comments.
6834 * breakpoint.c (bpstat_what): Update comment.
6835
4867e41e
DM
68362002-04-24 David S. Miller <davem@redhat.com>
6837
21d83aa5
DM
6838 * i960-tdep.c (register_in_window_p): New function.
6839 (i960_find_saved_register): Use it instead of
6840 REGISTER_IN_WINDOW_P.
6841 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6842
4867e41e
DM
6843 * symtab.h (find_stab_function_addr): Kill extern.
6844 * minsyms.c (find_stab_function_addr): Remove from here...
6845 * dbxread.c: ... to here, and mark it static.
6846
69cdf6a2
DM
68472002-04-20 David S. Miller <davem@redhat.com>
6848
6849 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6850 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6851
5a595886
DM
68522002-04-21 David S. Miller <davem@redhat.com>
6853
6854 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6855 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6856 (vx_write_register): Likewise.
6857
1da1a192
JB
68582002-04-23 J. Brobecker <brobecker@gnat.com>
6859
6860 * source.c (is_regular_file): New function.
6861 (openp): Check wether file to open is a regular file
6862 to avoid opening directories.
6863
baa6f10b
JT
68642002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * findvar.c (extract_signed_integer): Cast printf argument
6867 to suppress format warning.
6868 (extract_unsigned_integer): Likewise.
6869 * infcmd.c (registers_info): Likewise.
6870 * top.c (get_prompt_1): Likewise.
6871 * valops.c (value_assign): Likewise.
6872 * valprint.c (print_decimal): Likewise.
6873
b2c4da81
L
68742002-04-22 H.J. Lu (hjl@gnu.org)
6875
6876 * c-exp.y (typebase): Support
361d1df0 6877
b2c4da81
L
6878 [long|long long|short] [signed|unsigned] [int|]
6879
6880 and
6881
6882 signed [long|long long|short] int
6883
f267bd6a
JT
68842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6887 and vax-tdep.h.
6888 * vax-tdep.h: New file.
6889 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6890 Make several routines static.
6891 (vax_get_saved_register): New function.
6892 (vax_gdbarch_init): New function.
6893 (_initialize_vax_tdep): Register vax_gdbarch_init.
6894 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6895 Remove macros now under the control of gdbarch.
6896
da3c6d4a
MS
68972002-04-22 Michael Snyder <msnyder@redhat.com>
6898
11d3b27d
MS
6899 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6900 Some whitespace and coding standards tweaks.
da3c6d4a 6901
a33f7558
JT
69022002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * vax-tdep.c: Include regcache.h.
6905 (vax_call_dummy_words): New.
6906 (sizeof_vax_call_dummy_words): New.
6907 (vax_fix_call_dummy): New function.
6908 (vax_saved_pc_after_call): Ditto.
6909 * config/vax/tm-vax.h: Don't include regcache.h.
6910 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6911 (CALL_DUMMY): Remove.
6912 (CALL_DUMMY_WORDS): Define.
6913 (SIZEOF_CALL_DUMMY_WORDS): Define.
6914 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6915
47a73475
MS
69162002-04-18 Michael Snyder <msnyder@redhat.com>
6917
6918 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6919
52efde73
JT
69202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * vax-tdep.c (vax_frame_chain): New function.
6923 (vax_push_dummy_frame): Ditto.
6924 (vax_pop_frame): Ditto.
6925 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6926 (FRAMELESS_FUNCTION_INVOCATION): Use
6927 generic_frameless_function_invocation_not.
6928 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6929 (POP_FRAME): Use vax_pop_frame.
6930
ea74468c
JT
69312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6932
6933 * vax-tdep.c (vax_store_struct_return): New function.
6934 (vax_extract_return_value): Ditto.
6935 (vax_store_return_value): Ditto.
6936 (vax_extract_struct_value_address): Ditto.
6937 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6938 vax_store_struct_return.
6939 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6940 (STORE_RETURN_VALUE): Use vax_store_return_value.
6941 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6942
5516aa92
JT
69432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * vax-tdep.c (vax_frame_saved_pc): New function.
6946 (vax_frame_args_address_correct): Ditto.
6947 (vax_frame_args_address): Ditto.
6948 (vax_frame_locals_address): Ditto.
6949 (vax_frame_num_args): Move code to be in proximity to
6950 other frame-related functions.
6951 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6952 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6953 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6954 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6955 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6956
36af0b35
L
69572002-04-22 H.J. Lu (hjl@gnu.org)
6958
6959 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6960 includedir.
6961
ab62c900
JT
69622002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6963
6964 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6965 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6966 (FRAME_INIT_SAVED_REGS): New macro.
6967
7232b100
JT
69682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6969
6970 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6971
b70d2aee
JT
69722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6973
6974 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6975 where needed.
6976 (fetch_osf_core_registers): Likewise.
6977 (supply_gregset): Likewise.
6978
a0e8a2d1 69792002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 6980
a0e8a2d1
JB
6981 * symfile.h (get_section_index): Define.
6982 * symfile.c (get_section_index): New function.
6983 * mdebugread.c (SC_IS_SBSS): New macro.
6984 (SC_IS_BSS): Return true for the scBss storage class only, as
6985 the scSBss storage class refers to the .sbss section.
6986 (parse_partial_symbols): Discard the symbols which associated
6987 section does not exist.
6988 Make sure to use the .sbss section index for symbols which
6989 storage class is scBss, rather than using the .bss section index.
6990
51eb8b08
JT
69912002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6992
6993 * vax-tdep.c: Update copyright years.
6994 (vax_register_name): New function.
6995 (vax_register_byte): Ditto.
6996 (vax_register_raw_size): Ditto.
6997 (vax_register_virtual_size): Ditto.
6998 (vax_register_virtual_type): Ditto.
6999 * config/vax/tm-vax.h: Update copyright years.
7000 (REGISTER_NAMES): Remove.
7001 (REGISTER_NAME): Define.
7002 (REGISTER_BYTE): Use vax_register_byte.
7003 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7004 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7005 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7006
6cc1c0a8
AC
70072002-04-21 Andrew Cagney <ac131313@redhat.com>
7008
7009 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7010 declaration
7011 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7012
9319a2fe
DM
70132002-04-21 David S. Miller <davem@redhat.com>
7014
7015 * arch-utils.c (generic_prologue_frameless_p): Kill
7016 SKIP_PROLOGUE_FRAMELESS_P code.
7017 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7018 references.
7019 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7020 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7021 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7022 references.
7023 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7024 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7025 (sparc_gdbarch_init): Pass it to
7026 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7027
e9ed6d01
JT
70282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7029
7030 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7031 (alphabsd-nat.o): New dependency list.
7032
36012033
JT
70332002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7036 alphafbsd-tdep.c.
7037 (alpha-linux-tdep.o): New dependency list.
7038 (alphafbsd-tdep.o): Likewise.
7039
3379287a
JT
70402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7041
7042 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7043 to here...
7044 * alpha-tdep.c: ...from here.
7045 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7046
4bcbd6cb
JT
70472002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7048
7049 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7050 prototype from here...
7051 * alpha-tdep.h: ...to here.
7052
b31da25e
AC
70532002-04-21 Andrew Cagney <ac131313@redhat.com>
7054
7055 * frame.h (selected_frame_level): Document as deprecated.
7056 (frame_relative_level): Declare.
7057 * stack.c (frame_relative_level): New function.
7058 (selected_frame_level): Document as deprecated.
7059 (select_frame): Do not set the selected_frame_level.
7060
7061 * stack.c (frame_info, record_selected_frame): Update.
7062 (frame_command, current_frame_command): Update.
7063 (up_silently_base, up_command, down_silently_base): Update.
7064 (down_command): Update.
7065 * inflow.c (kill_command): Update.
7066 * tracepoint.c (finish_tfind_command): Update.
7067 * corelow.c (core_open): Update.
7068 * thread.c (info_threads_command): Update.
7069 (do_captured_thread_select): Update.
7070 * infcmd.c (finish_command): Update.
7071 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7072
9c1d6fe5
JT
70732002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7076
ab89facf
AC
70772002-04-21 Andrew Cagney <ac131313@redhat.com>
7078
7079 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7080 type const.
7081
82a4efa1
JT
70822002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7083
7084 * alphafbsd-tdep.c: Update copyright years. Include
7085 alpha-tdep.h.
7086 (alphafbsd_use_struct_convention): Make static.
7087 (alphafbsd_init_abi): New function.
7088 (_initialize_alphafbsd_tdep): New function.
7089 * config/alpha/tm-fbsd.h: Update copyright years.
7090 (USE_STRUCT_CONVENTION): Remove.
7091
44dffaac
JT
70922002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7093
7094 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7095 an Alpha ABI variant.
7096 (alpha_abi_handler_list): Declare.
7097 (alpha_gdbarch_register_os_abi): New function.
7098 (alpha_gdbarch_init): Give registered ABI variant handlers a
7099 chance to tweak the gdbarch once we have set up defaults.
7100 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7101
65585be4
JT
71022002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7103
7104 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7105 to standard_coerce_float_to_double.
7106 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7107
d9b023cc
JT
71082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7111 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7112 from gdbarch_tdep rather than a constant.
7113 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7114 the default text address for all Alpha Unix ABIs.
7115 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7116 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7117
dc129d82
JT
71182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7119
7120 * alpha-tdep.h: New file. Includes several Alpha target constants
7121 taken from...
7122 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7123 let gdbarch deal with.
7124 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7125 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7126 to dependency list.
7127 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7128 Alpha target register names.
7129 * alphabsd-nat.c: Likewise.
7130 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7131 Alpha target register names. Make serveral routines static.
7132 (alpha_get_saved_register): New function.
7133 (alpha_abi_names): New.
7134 (process_note_abi_tag_sections): New function.
7135 (get_elfosabi): New function.
7136 (alpha_gdbarch_init): New function.
7137 (alpha_dump_tdep): New function.
7138 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7139
d49d1e0a
AC
71402002-04-21 Andrew Cagney <ac131313@redhat.com>
7141
7142 * frame.c (find_saved_register): Delete #ifdef
7143 HAVE_REGISTER_WINDOWS code.
7144 * config/sparc/tm-sparc.h: Update comments.
7145 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7146
92e8c9ed
AC
71472002-04-21 Andrew Cagney <ac131313@redhat.com>
7148
7149 * i960-tdep.c (i960_find_saved_register): New function.
7150 (i960_get_saved_register): New function.
7151 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7152 (i960_get_saved_register): Declare.
7153 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7154
e1925118
DM
71552002-04-20 David S. Miller <davem@redhat.com>
7156
7157 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7158
29673b29
AC
71592002-04-20 Andrew Cagney <ac131313@redhat.com>
7160
7161 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7162 instead of NUM_PSEUDO_REGS.
7163
6c86dcd5
DM
71642002-04-20 David S. Miller <davem@redhat.com>
7165
7166 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7167 GDB_MULTI_ARCH_PARTIAL
7168 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7169 define, let tm-sp64.h do it.
7170
aa40ec90
JT
71712002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7172
7173 * frame.c (find_saved_register): Avoid a NULL pointer
7174 dereference and actually walk the frame list.
7175
0f79675b
AC
71762002-04-20 Andrew Cagney <ac131313@redhat.com>
7177
7178 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7179 sorted in most most-recent-used order. Document.
7180 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7181
f91305dd 71822002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7183
7184 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7185 instead of ->prev.
7186 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7187 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7188 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7189 instead of ->prev.
7190
73d322b1
EZ
71912002-04-19 Elena Zannoni <ezannoni@redhat.com>
7192
7193 Fix PR gdb/471.
7194 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7195 (build_builtin_type_vec128): Ditto.
7196 (append_composite_type_field): Fix calculation of type length in
7197 union case.
7198
ccd9a834
EZ
71992002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7200
7201 * config/djgpp/README: Update.
7202
7203 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7204 compiler warnings.
7205
a57f9e49
JT
72062002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7207
7208 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7209 (alpha_setup_arbitrary_frame): ...to this.
7210 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7211 for alpha_setup_arbitrary_frame.
7212
f4f9705a
AC
72132002-04-18 Andrew Cagney <cagney@redhat.com>
7214
7215 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7216 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7217
f4f9705a
AC
7218 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7219 * target.h (memory_breakpoint_from_pc): Update declaration.
7220 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7221
7222 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7223 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7224 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7225 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7226 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7227 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7228 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7229 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7230 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7231 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7232 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7233 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7234
7235 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7236 const pointer.
7237 * monitor.c (monitor_insert_breakpoint): Ditto.
7238 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7239
7240 * config/mcore/tm-mcore.h: Update copyright.
7241 * mem-break.c: Ditto.
7242 * xstormy16-tdep.c: Ditto.
7243
29f319b8
PM
72442002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7245
7246 * p-exp.y: Add precedence rule for '^' token.
7247 This removes the shift/reduce conflicts.
7248 Remove the comment concerning these shift/reduce conflicts.
7249
ebeac11a
EZ
72502002-04-18 Elena Zannoni <ezannoni@redhat.com>
7251
7252 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7253 (registers_powerpc_nofp): New register set for processors
7254 without floating point unit.
7255
27c31547
DM
72562002-04-18 David S. Miller <davem@redhat.com>
7257
7258 * MAINTAINERS: Add myself to write-after-approval.
7259
47a73475
MS
72602002-04-17 Michael Snyder <msnyder@redhat.com>
7261
7262 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7263
953836b2
AC
72642002-04-17 Andrew Cagney <ac131313@redhat.com>
7265
7266 * rs6000-tdep.c (frame_initial_stack_address): Use
7267 frame_register_read to read the alloca_reg.
7268
8b0d4340
AC
72692002-04-17 Andrew Cagney <ac131313@redhat.com>
7270
7271 * frame.c (find_saved_register): Find saved registers in the next
7272 not prev frame.
7273 Fix PR gdb/365.
7274
d8864532
AC
72752002-04-17 Andrew Cagney <ac131313@redhat.com>
7276
7277 * gdbarch.sh (LANG): Set to ``c''.
7278
36cc83a3 72792002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7280
36cc83a3 7281 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7282
2f4150cc 72832002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7284
7285 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7286 Update copyright.
7287
628703c6 7288 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7289 Also fix PR gdb/391.
361d1df0 7290
56157b4a
AC
72912002-04-14 Andrew Cagney <ac131313@redhat.com>
7292
7293 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7294 * aclocal.m4, configure: Re-generate.
7295 Fix PR gdb/391.
361d1df0 7296
6d1e3329
EZ
72972002-04-14 Elena Zannoni <ezannoni@redhat.com>
7298
7299 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7300 instead of tm_print_insn.
7301
cb06fa07
EZ
73022002-04-14 Elena Zannoni <ezannoni@redhat.com>
7303
7304 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7305
f208ba17
AC
73062002-04-14 Andrew Cagney <ac131313@redhat.com>
7307
7308 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7309 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7310 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7311
20f01a46
DH
73122002-04-12 Don Howard <dhoward@redhat.com>
7313
7314 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7315 max_user_call_depth.
7316 (init_cmd_lists): Initialize the new value;
7317 * cli/cli-script.c (execute_user_command): Limit the call depth of
7318 user defined commands. This avoids a core-dump when user commands
7319 are infinitly recursive.
7320
a88376a3
KB
73212002-04-12 Kevin Buettner <kevinb@redhat.com>
7322
7323 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7324 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7325 from tdep struct instead of DEFAULT_LR_SAVE.
7326 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7327 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7328 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7329
f2172603
MS
73302002-04-12 Michael Snyder <msnyder@redhat.com>
7331
694f61fb 7332 * Remote.c: Spelling fix.
20fe79c8
MS
7333 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7334 If no symbol found for "sbrk", try "_sbrk".
7335 (make_output_phdrs): Use bfd_section_name.
7336 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7337 * eval.c: Indentation fix-ups.
169a7369
MS
7338 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7339 in case it gets applied to an address that is already
7340 in the instruction space.
de74f71f
MS
7341 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7342 * symfile.c: Fix indentation, long lines.
f2172603
MS
7343 * source.c: White space fix-up.
7344
cda5a58a
AC
73452002-04-12 Andrew Cagney <cagney@redhat.com>
7346
7347 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7348 * frame.c (frame_register_read): New function. Return non-zero on
7349 success.
7350 (read_relative_register_raw_bytes_for_frame): Delete.
7351 (read_relative_register_raw_bytes): Delete.
7352 * frame.h (frame_register_read): Declare.
7353 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7354 * sh-tdep.c: Ditto.
7355 * infcmd.c (do_registers_info): Ditto.
7356 * hppa-tdep.c: Ditto.
7357 * rs6000-tdep.c: Ditto.
7358 * h8500-tdep.c: Ditto.
7359 * mips-tdep.c: Ditto.
7360 * h8300-tdep.c: Ditto.
7361 * z8k-tdep.c: Ditto.
7362
2ea5f656
KB
73632002-04-12 Kevin Buettner <kevinb@redhat.com>
7364
7365 From Jimi X <jimix@watson.ibm.com>:
7366 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7367 64-bit SysV ABI.
7368
27b15785
KB
73692002-04-12 Kevin Buettner <kevinb@redhat.com>
7370
7371 From Jimi X <jimix@watson.ibm.com>:
7372 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7373 bfd info.
7374
5d57ee30
KB
73752002-04-12 Kevin Buettner <kevinb@redhat.com>
7376
7377 From Jimi X <jimix@watson.ibm.com>:
7378 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7379 register sets for these processor variants.
7380
bc1e36ca
DJ
73812002-04-11 Daniel Jacobowitz <drow@mvista.com>
7382
bc1e36ca
DJ
7383 * regformats/reg-ppc.dat: Support FPSCR.
7384
e3f36dbd
KB
73852002-04-11 Kevin Buettner <kevinb@redhat.com>
7386
7387 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7388 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7389 Add fpscr as an invalid/unfetchable register.
7390 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7391 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7392 (fill_fpregset): Add support for register fpscr.
7393 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7394 (fill_gregset): Account for the fact that register ``mq'' might
7395 not exist.
7396 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7397 (registers_power): Add fpscr to register set at slot 71.
7398 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7399 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7400
943c9c25
MS
74012002-04-11 Michael Snyder <msnyder@redhat.com>
7402
7403 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7404 * configure: Regenerate.
7405 * config.in: Regenerate.
7406 * acconfig.h: Add define for _SYSCALL32.
7407 * core-sol2.c: Remove #define _SYSCALL32.
7408 * solib-legacy.c: Remove #define _SYSCALL32.
7409
d8c0a2e7
AC
74102002-04-10 Andrew Cagney <ac131313@redhat.com>
7411
7412 * stack.c (select_frame): Cleanup internal error message, do not
7413 use %p.
7414
7cc19214
AC
74152002-04-10 Andrew Cagney <ac131313@redhat.com>
7416
7417 * stack.c (select_frame): Check that selected_frame and the
7418 specified level are as expected.
7419 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7420 Update copyright.
7421 * frame.h (struct frame_info): Add field `level'. Update
7422 copyright.
7423 Work-in-progress PR gdb/464.
7424
67a2b77e
AC
74252002-04-10 Andrew Cagney <ac131313@redhat.com>
7426
7427 * maint.c (maint_print_section_info): Rename print_section_info.
7428 (print_bfd_section_info, print_objfile_section_info): Update.
7429 * inferior.h (struct gdbarch): Add opaque declaration.
7430 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7431 * gdbarch.h: Regenerate.
7432
8cfda98c
ML
74332002-04-10 Michal Ludvig <mludvig@suse.cz>
7434
7435 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7436 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7437 (kernel_u_size): Added.
7438 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7439 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7440
ca439ad2 74412002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7442
ca439ad2
JI
7443 * valarith.c (find_size_for_pointer_math): New function, either returns
7444 the size for a pointer's target, returns 1 for void *, or errors for
7445 incomplete types.
7446 (value_add, value_sub): use find_size_for_pointer_math.
7447
2f2893d9
DJ
74482002-04-09 Daniel Jacobowitz <drow@mvista.com>
7449
7450 * linux-low.c (linux_look_up_symbols): New hook.
7451 (linux_target_ops): Add linux_look_up_symbols.
7452 * remote-utils.c (decode_address): New function.
7453 (look_up_one_symbol): New function.
7454 * server.c (handle_query): Call target look_up_symbols hook.
7455 * server.h (look_up_one_symbol): Add prototype.
7456 * target.h (struct target_ops): Add look_up_symbols hook.
7457
96cb11df
AC
74582002-04-09 Andrew Cagney <ac131313@redhat.com>
7459
7460 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7461 override FP_REGNUM with frame->fp. Update copyright.
7462 * parse.c (num_std_regs, std_regs): Delete.
7463 (target_map_name_to_register): Do not search std_regs. Update
7464 function description.
7465 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7466 declarations. Update copyright.
7467 Fix PR gdb/251.
361d1df0 7468
97658e92
DJ
74692002-04-09 Daniel Jacobowitz <drow@mvista.com>
7470
7471 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7472 after the last symbol in a block.
7473
6044e3eb
PM
74742002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7475
7476 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7477 is non zero as a found symbol.
7478
0406ec40
AC
74792002-04-08 Andrew Cagney <ac131313@redhat.com>
7480
7481 * findvar.c: Include "builtin-regs.h".
7482 (value_of_register): Call value_of_builtin_reg when applicable.
7483 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7484 (target_map_name_to_register): Call
7485 builtin_reg_map_name_to_regnum.
7486 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7487 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7488 (builtin_regs_h): Define.
7489 (builtin-regs.o): New target.
7490 (findvar.o): Add $(builtin_regs_h).
7491 * builtin-regs.c, builtin-regs.h: New files.
7492 * std-regs.c: New file.
7493 Partial fix for PR gdb/251.
7494
56a6dfb9
KB
74952002-04-08 Kevin Buettner <kevinb@redhat.com>
7496
7497 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7498 it's no longer required.
7499
3a808432
AC
75002002-04-08 Andrew Cagney <ac131313@redhat.com>
7501
7502 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7503
7c40d541
KB
75042002-04-08 Kevin Buettner <kevinb@redhat.com>
7505
7506 From Jimi X <jimix@watson.ibm.com>:
7507 * rs6000-tdep.c (rs6000_software_single_step): Use
7508 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7509 and size. Use target_insert_breakpoint() and
7510 target_remove_breakpoint() to insert and remove breakpoints
7511 instead of explicit memory reads and writes.
7512
cc9836a8
KB
75132002-04-08 Kevin Buettner <kevinb@redhat.com>
7514
7515 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7516 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7517 ELF_OBJECT_FORMAT ifdef.
7518
7495d1dc
KB
75192002-04-08 Kevin Buettner <kevinb@redhat.com>
7520
7521 From Jimi X <jimix@watson.ibm.com>:
7522 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7523
4288e836
KB
75242002-04-08 Kevin Buettner <kevinb@redhat.com>
7525
7526 From Jimi X <jimix@watson.ibm.com>:
7527 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7528 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7529
a4e4e501
MK
75302002-04-07 Mark Kettenis <kettenis@gnu.org>
7531
7532 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7533 s/asprintf/xasprintf/.
7534 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7535
006defba
AC
75362002-04-07 Andrew Cagney <ac131313@redhat.com>
7537
7538 I believe Jeff Law denies responsability for this one:
7539 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7540 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7541 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7542 Work-around for PR gdb/366.
7543
7aa83cac
EZ
75442002-04-07 Elena Zannoni <ezannoni@redhat.com>
7545
7546 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7547 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7548 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7549
cf1fcca1
EZ
75502002-04-07 Elena Zannoni <ezannoni@redhat.com>
7551
7552 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7553 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7554 information.
7555
3f289e6f
AC
75562002-04-07 Andrew Cagney <ac131313@redhat.com>
7557
7558 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7559 maintainer.
7560
129188f6
AC
75612002-04-07 Andrew Cagney <ac131313@redhat.com>
7562
7563 * README (Reporting Bugs in GDB): Document the bug web page as the
7564 prefered way of submitting bugs.
7565 Fix PR gdb/402.
7566
1200cd6e
AC
75672002-04-06 Andrew Cagney <ac131313@redhat.com>
7568
7569 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7570 -1. Update comment.
7571 * gdbarch.h, gdbarch.c: Re-generate.
7572
2853c33c
AS
75732002-04-07 Andreas Schwab <schwab@suse.de>
7574
7575 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7576 buffer to regcache_collect.
7577
c2169756
AC
75782002-04-06 Andrew Cagney <ac131313@redhat.com>
7579
7580 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7581 * gdbarch.c, gdbarch.h: Re-generate.
7582
25f1b008
AC
75832002-04-06 Andrew Cagney <ac131313@redhat.com>
7584
7585 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7586 declaration. Fix -Werror.
7587
59263426
DJ
75882002-04-05 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7591 * gdbarch.c: Regenerate.
7592
f5db4da3
MS
75932002-04-05 Michael Snyder <msnyder@redhat.com>
7594
80f8a6eb
MS
7595 * breakpoint.c (clear_command): Rewrite middle section to
7596 combine two loops with identical control conditions.
7597 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7598 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7599
ad3dcc5c
L
76002002-04-05 H.J. Lu (hjl@gnu.org)
7601
7602 * solib-svr4.c (bkpt_names): Add "__start".
7603
f32e7a74
AC
76042002-04-04 Andrew Cagney <ac131313@redhat.com>
7605
7606 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7607 as test for 64 bit target.
7608
8227c0ff
AC
76092002-04-05 Andrew Cagney <ac131313@redhat.com>
7610
7611 * h8500-tdep.c (h8500_write_fp): Delete function.
7612 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7613 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7614 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7615 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7616 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7617 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7618 (s390_write_fp):
7619 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7620 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7621 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7622 (d10v_write_fp): Delete function.
7623 * inferior.h (write_fp, generic_target_write_fp): Delete
7624 declarations.
7625 * regcache.c (generic_target_write_fp): Delete function.
7626 (write_fp): Delete function.
7627 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7628 * gdbarch.h, gdbarch.c: Regenerate.
7629 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7630 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7631 (sparc64_write_fp): Delete declaration.
7632 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7633 (h8500_write_fp): Delete declaration.
7634
2757dd86
AC
76352002-04-04 Andrew Cagney <ac131313@redhat.com>
7636
7637 * sparc-tdep.c (sparc64_write_fp): Delete.
7638 (sparc_push_dummy_frame): Replace write_fp call with code to store
7639 the FP directly.
7640 (sparc_gdbarch_init): Do not initialize write_fp.
7641
c69255e1
KB
76422002-04-05 Kevin Buettner <kevinb@redhat.com>
7643
7644 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7645 clause.
7646
ae767bfb
JB
76472002-03-29 Jim Blandy <jimb@redhat.com>
7648
7649 * stack.c (get_selected_block): Add new argument `addr_in_block',
7650 used to return the exact code address we used to select the block,
7651 not just the block.
7652 * blockframe.c (get_frame_block, get_current_block): Same.
7653 * frame.h (get_frame_block, get_current_block,
7654 get_selected_block): Update declarations.
7655 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7656 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7657
84d2ac95
MS
76582002-04-05 Michael Snyder <msnyder@redhat.com>
7659
7660 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7661 warning message.
7662
596aa3bf
JB
76632002-04-05 J. Brobecker <brobecker@gnat.com>
7664
7665 * utils.c (xfullpath): New function.
7666 * defs.h (xfullpath): Add declaration.
7667 * source.c (openp): Use xfullpath in place of gdb_realpath to
7668 avoid resolving the basename part of filenames when the
7669 associated file is a symbolic link. This fixes a potential
7670 inconsistency between the filenames known to GDB and the
7671 filenames it prints in the annotations.
7672 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7673 to be able to match a filename with either the real filename, or
7674 the name of any symbolic link to this file.
7675 (lookup_partial_symtab): Ditto.
7676
c02f5703
MS
76772002-04-04 Michael Snyder <msnyder@redhat.com>
7678
7679 * breakpoint.c: Add support for hardware breakpoints in overlays.
7680 (overlay_events_enabled): New state variable.
7681 (insert_breakpoints): Use overlay_events_enabled to decide
7682 whether to attempt to set a breakpoint at the overlay load addr.
7683 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7684 (remove_breakpoint): Use overlay_events_enabled to decide
7685 whether breakpoints need to be removed from overlay load addr.
7686 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7687 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7688 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7689 disable_overlay_breakpoints): Update overlay_events_enabled.
7690
5fb290d7
DJ
76912002-04-04 Daniel Jacobowitz <drow@mvista.com>
7692
7693 * dwarf2read.c (struct function_range): New.
7694 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7695 (check_cu_functions): New.
7696 (read_file_scope): Initialize global function lists.
7697 Call dwarf_decode_line after processing children.
7698 (read_func_scope): Add to global function list.
7699 (dwarf_decode_lines): Call check_cu_functions everywhere
7700 record_line is called. Call record_line with a linenumber
7701 of 0 to mark sequence ends.
7702
7b3fabf0
ML
77032002-04-04 Michal Ludvig <mludvig@suse.cz>
7704
361d1df0 7705 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7706 change sync with glibc.
7707
bce58c09
JB
77082002-04-03 Jim Blandy <jimb@redhat.com>
7709
7710 * configure.in: Call AC_C_INLINE.
7711 * configure: Regenerated.
361d1df0 7712
2fccf04a
DJ
77132002-04-01 Daniel Jacobowitz <drow@mvista.com>
7714
7715 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7716 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7717
2d1bfe2e
MK
77182002-03-31 Mark Kettenis <kettenis@gnu.org>
7719
a5941fbf
MK
7720 * NEWS: Mention gcore support on FreeBSD/i386.
7721
a90cd31d
MK
7722 * fbsd-proc.c: New file.
7723 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7724 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7725
2d1bfe2e
MK
7726 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7727 while statement.
7728
9eb6e5a1
JB
77292002-03-29 Jim Blandy <jimb@redhat.com>
7730
7731 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7732 unescaped newlines in string literals, but newer ones don't. So
7733 escape them.
7734
f02df580
MS
77352002-03-26 Michael Snyder <msnyder@redhat.com>
7736 Andrew Cagney <cagney@redhat.com>
7737
361d1df0 7738 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7739 restore file to memory.
7740 * cli/cli-dump.h: New file.
7741 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7742 * NEWS: Mention new commands.
f02df580 7743
109f874e
MS
77442002-03-28 Michael Snyder <msnyder@redhat.com>
7745
7746 * symfile.c (symbol_file_add): Move test for null symbols to later.
7747
520f6ade
AC
77482002-03-27 Andrew Cagney <ac131313@redhat.com>
7749
7750 From veksler at il.ibm.com:
7751 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7752 the xstrduped original path.
7753 Fix PR gdb/417.
7754
d4654627
MS
77552002-03-27 Michael Snyder <msnyder@redhat.com>
7756
7757 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7758 * infcmd.c (_initialize_infcmd): Ditto.
7759 * language.c (_initialize_language): Ditto.
7760 * symfile.c (_initialize_symfile): Ditto.
7761 * top.c (_init_main): Ditto.
7762 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7763
6be8bc0c
EZ
77642002-03-27 Elena Zannoni <ezannoni@redhat.com>
7765
7766 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7767 vector registers handling.
7768 (skip_prologue): Handle new AltiVec instructions. Fill in new
7769 fields of frame data.
7770 (frame_get_saved_regs): Fill in information for AltiVec registers.
7771
12af6855
JB
77722002-03-27 Jim Blandy <jimb@redhat.com>
7773
7774 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7775 a function; leave this macro here to invoke that function.
7776 (symbol_init_mangled_name): Declaration for that function.
7777 * symtab.c (symbol_init_mangled_name): New function.
7778
dc672865
AC
77792002-03-27 Andrew Cagney <ac131313@redhat.com>
7780
7781 * valarith.c: Replace strerror with safe_strerror.
7782 * tracepoint.c: Ditto.
7783 * lin-lwp.c: Ditto.
7784 * go32-nat.c: Ditto.
7785 * inflow.c: Ditto.
7786 * gnu-nat.c: Ditto.
7787
d96429cd
AS
77882002-03-27 Andreas Schwab <schwab@suse.de>
7789
7790 * event-top.c (command_line_handler): Remove useless if.
7791
7e336ba1
AJ
77922002-03-27 Andreas Jaeger <aj@suse.de>
7793
7794 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7795 comment.
7796
de220d0f
ML
77972002-03-27 Michal Ludvig <mludvig@suse.cz>
7798
7799 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7800 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7801 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7802 (x86_64_linux_dr_get_status, supply_gregset),
7803 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7804 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7805 (x86_64_register_info_table): Add.
7806 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7807 (x86_64_register_raw_size, x86_64_register_virtual_type),
7808 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7809 general x86_64_register_info_table.
7810 (i386_gdbarch_init): gdbarch_register_bytes is now set
7811 dynamicaly during initialization.
7812 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7813 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7814
0e98d0a7
DJ
78152002-03-27 Daniel Jacobowitz <drow@mvista.com>
7816
7817 * gdbserver/server.c (main): Call target_signal_to_host_p
7818 and target_signal_to_host on signals received from the remote.
7819 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7820 target_signal_from_host on signals sent to the remote.
7821 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7822 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7823
3130066b
DJ
78242002-03-27 Daniel Jacobowitz <drow@mvista.com>
7825
7826 * signals/signals.c: Include "server.h" in gdbserver build.
7827 (target_signal_from_name): Don't use STREQ.
7828 (_initialize_signals): Likewise. Don't include function in
7829 gdbserver build.
7830
9aedf4f4
DJ
78312002-03-27 Daniel Jacobowitz <drow@mvista.com>
7832
7833 * signals.c: Moved to...
7834 * signals/signals.c: Here.
7e336ba1 7835 * Makefile (signals.o): Update.
9aedf4f4 7836
3fa41cdb
JL
78372002-03-26 Jeff Law (law@redhat.com)
7838
7839 * somread.c (som_symtab_read): Remove some commented out code and
7840 updated related comments. Do not set the minimal symbol table to
7841 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7842 in a dynamic executable.
7843 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7844 where we are unable to find the minimal symbol for the given
7845 PC value.
7846
ee677e8d
MS
78472002-03-25 Jeff Law (law@redhat.com)
7848
7849 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7850
e76e1718
ML
78512002-03-25 Michal Ludvig <mludvig@suse.cz>
7852
7853 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7854
18a642a1
AC
78552002-03-23 Andrew Cagney <ac131313@redhat.com>
7856
7857 * command.h: Update copyright.
7858 (struct cmd_list_element): Replace definition with opaque
7859 declaration.
7860 (enum cmd_types): Document that it will eventually be moved to
7861 cli/cli-decode.h
7862 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7863 (MALLOCED_REPLACEMENT): Delete macro.
7864 * Makefile.in (cli_decode_h): Add $(command_h).
7865 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7866 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7867 * completer.c: Include "cli/cli-decode.h".
7868 * maint.c: Include "cli/cli-decode.h".
7869 * cli/cli-decode.h: Include "command.h".
7870 (enum command_class): Delete.
7871 (enum cmd_types): Comment out.
7872 (enum cmd_auto_boolean): Delete.
7873 (enum var_types): Delete.
7874
b2875cc0
AC
78752002-03-23 Andrew Cagney <ac131313@redhat.com>
7876
7877 * cli/cli-decode.c: Include "gdb_assert.h".
7878 (add_set_or_show_cmd): New static function.
7879 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7880 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7881 all fields, such as func, from the set command.
7882
3b45974e
AC
78832002-03-23 Andrew Cagney <ac131313@redhat.com>
7884
7885 * MAINTAINERS (sh-elf): Change warning flag to -w.
7886
823ca731
AC
78872002-03-23 Andrew Cagney <cagney@redhat.com>
7888
7889 * defs.h (error): Add printf format attribute.
7890 * thread-db.c (thread_from_lwp): Fix error format string.
7891 * stack.c (parse_frame_specification): Ditto.
7892 * cli/cli-decode.c (undef_cmd_error): Ditto.
7893 * scm-lang.c (scm_lookup_name): Ditto.
7894 * tracepoint.c (trace_error): Ditto.
7895 * remote-utils.c (usage): Ditto.
7896 * remote.c (compare_sections_command): Ditto.
7897 Fix PR gdb/328.
7898
0e101458
AC
78992002-03-22 Andrew Cagney <ac131313@redhat.com>
7900
7901 * gdbtypes.c (append_composite_type_field): New function.
7902 (init_composite_type): New function.
7903 * gdbtypes.h (append_composite_type_field): Declare.
7904 (init_composite_type): Ditto.
7905
8e0662df
EZ
79062002-03-22 Elena Zannoni <ezannoni@redhat.com>
7907
7908 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7909 function.
8e0662df
EZ
7910 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7911 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7912 structure returning convention for SYSV ABI case, but not
7913 for GNU/Linux, FreeBSD, or NetBSD.
7914
3121eff0
DJ
79152002-03-22 Daniel Jacobowitz <drow@mvista.com>
7916
7917 * symtab.h (lookup_block_symbol): Add mangled_name argument
7918 to prototype.
7919
7920 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7921 with new mangled_name argument.
7922 * linespec.c (decode_line_1): Likewise.
7923 * valops (value_of_this): Likewise.
7924 * symtab.c (lookup_transparent_type): Likewise.
7925 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7926 (lookup_symbol): If we are given a mangled name, pass it down
7927 to lookup_symbol_aux.
7928 (lookup_block_symbol): If we are given a mangled name to check
7929 against, only return symbols which match it.
7930
349b409f
CF
79312002-03-22 Christopher Faylor <cgf@redhat.com>
7932
7933 * win32-nat.c (child_create_inferior): Check for proper shell to use
7934 here, in case the user changes it on the fly.
7935 (_initialize_inftarg): Remove shell path considerations.
7936
2a873819
EZ
79372002-03-21 Elena Zannoni <ezannoni@redhat.com>
7938
7939 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7940 for gdbarch_max_register_raw_size and max_register_virtual_size.
7941 Adjust copyright year.
7942
a1b9830c
DJ
79432002-03-21 Daniel Jacobowitz <drow@mvista.com>
7944
7945 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7946 in a function to cover the entire beginning of the function
7947 as well if it does not already.
7948
8b5790f2
TR
79492002-03-21 Tom Rix <trix@redhat.com>
7950
7951 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7952 (rs6000_ptrace64): Renamed from ptrace64.
7953
bdbe5747
MH
79542002-03-20 Martin M. Hunt <hunt@redhat.com>
7955
7956 * gdbserver/remote-utils.c (remote_open): Don't call
7957 getprotobyname, we're all using TCP here so just use
7958 IPPROTO_TCP.
7e336ba1 7959 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7960
79612002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7962
bdbe5747
MH
7963 * regcache.c (_initialize_regcache): No need to call
7964 build_regcache() at this time; it gets called whenever
7965 the gdbarch changes.
7966
7781cd62
DB
79672002-03-20 David O'Brien <obrien@FreeBSD.org>
7968
7969 * sparc-nat.c: Include sys/param.h where possible.
7970
f65ca430
DJ
79712002-03-20 Daniel Jacobowitz <drow@mvista.com>
7972
7973 Fix PR gdb/422.
7974 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7975 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7976 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7977 complex types.
7978 * stabsread.c (rs6000_builtin_type): Likewise.
7979 (read_sun_floating_type): Likewise.
7980
0c867556
PS
79812002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7982
7983 * stabsread.c (read_member_functions): Remove skip code for duplicate
7984 constructor/destructor methods. Use standard parsing for these
7985 methods and just do not chain them to the list of methods after
7986 parsing.
7987
12b9c64f
AO
79882002-03-19 Alexandre Oliva <aoliva@redhat.com>
7989
7990 * coffread.c: Remove redundant static declarations. Replace
7991 occurrences of `PTR' with `void *'.
7992 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7993 * top.h (quit_cover): Likewise.
7994 * defs.h (catch_errors): Likewise.
7995
349c5d5f
AC
79962002-03-18 Andrew Cagney <ac131313@redhat.com>
7997
7998 * defs.h (XMALLOC): Define.
7999 * gdb-events.sh (XMALLOC): Delete macro.
8000 * gdb-events.c, gdb-events.h: Regenerate.
8001 * gdbarch.sh (XMALLOC): Delete macro.
8002 * gdbarch.c: Regenerate.
8003 * serial.c (XMALLOC): Delete macro.
8004 * ui-file.c (XMALLOC): Ditto.
8005 * ser-unix.h (XMALLOC): Ditto.
8006 * sh-tdep.c (XMALLOC): Ditto.
8007 * ui-out.c (XMALLOC): Ditto.
8008 * utils.c (XMALLOC): Ditto.
8009 * i386-tdep.c (XMALLOC): Ditto.
8010 * gdb-events.c (XMALLOC): Ditto.
8011 * d10v-tdep.c (XMALLOC): Ditto.
8012 * cli-out.c (XMALLOC): Ditto.
8013
8014 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8015 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8016 * ui-file.c, ui-out.c: Ditto.
8017
7d0766f3
AC
80182002-03-18 Andrew Cagney <ac131313@redhat.com>
8019
8020 * command.h (struct cmd_list_element): Add field context.
8021 (set_cmd_context, get_cmd_context): Declare.
8022 * cli/cli-decode.h: Ditto.
8023 * cli/cli-decode.c (get_cmd_context): New function.
8024 (set_cmd_context): New function.
8025 (add_cmd): Initialize context.
8026 Part of fixing PR gdb/145 and PR gdb/146.
8027
5913bcb0
AC
80282002-03-17 Andrew Cagney <ac131313@redhat.com>
8029
1868c04e
AC
8030 * cli/cli-decode.c (cmd_type): New function.
8031 * command.h (cmd_type): Declare.
8032 * infrun.c (set_schedlock_func): Call function cmd_type.
8033 * kod.c (kod_set_os): Call cmd_type.
8034 * cris-tdep.c (cris_version_update): Use function cmd_type.
8035 (cris_mode_update, cris_abi_update): Ditto.
8036
5913bcb0
AC
8037 * command.h: (execute_cmd_post_hook): Declare.
8038 (execute_cmd_pre_hook): Declare.
8039 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8040 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8041 functions. Execute pre/post hook while ensuring that afterwords
8042 hook_in is cleared.
8043 * top.c (execute_command): Use execute_cmd_post_hook, and
8044 execute_cmd_pre_hook to execute pre/post commands.
8045 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8046 hook_stop_stub.
8047 (hook_stop_stub): Call execute_cmd_pre_hook.
8048
b51450c9
AC
80492002-03-17 Andrew Cagney <ac131313@redhat.com>
8050
8051 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8052 set'' and this leads to a core dump. Move xstrdup of
8053 operating_system to after check that it is not NULL.
8054
f66c9f11
AC
80552002-03-17 Andrew Cagney <ac131313@redhat.com>
8056
8e694ecf
AC
8057 * kod.c (kod_set_os): Remove unnecessary check that
8058 ``command->type'' is set_cmd.
8059
f66c9f11
AC
8060 * valprint.c (set_input_radix): Use input_radix.
8061 (set_output_radix): Use output_radix.
8062 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8063 isn't reverted.
8064
9d01611c
AC
80652002-03-16 Andrew Cagney <ac131313@redhat.com>
8066
8067 * value.h (struct value): Delete field ``substring_addr''. Change
8068 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8069 force_core_addr_align and force_pointer_aligh.
8070
8071 * value.h (struct value): Fix typo in above change.
9d01611c 8072
4156bb53
PS
80732002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8074
8075 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8076 to fix internal_error from ``maintenance print architecture''.
8077
0e5e3ea6
PS
80782002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8079
8080 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8081 for gcc versions after gcc-2.8.1.
8082
9b013045
PS
80832002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8084
8085 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8086 for method resolution. Restore adjustment of ``this'' pointer after
8087 calling value_struct_elt, which was accidentally removed during the
8088 HP merge.
8089
376c9600
AC
80902002-03-15 Andrew Cagney <ac131313@redhat.com>
8091
8092 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8093 value_of_register.
8094 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8095 get_saved_register.
8096 * value.h (value_of_register): Update.
8097
a4db0f07
RH
80982002-03-14 Richard Henderson <rth@redhat.com>
8099
8100 * configure.in: Detect declaration for canonicalize_file_name.
8101 * utils.c (canonicalize_file_name): Declare, if needed.
8102 (gdb_realpath): Prefer realpath if available and usable.
8103 * config.in, configure: Rebuild.
8104
96383835
RH
81052002-03-14 Richard Henderson <rth@redhat.com>
8106
8107 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8108 a constant array bound.
8109
8110 * MAINTAINERS: Add myself to write-after-approval.
8111
75245b24
MS
81122002-03-14 Michael Snyder <msnyder@redhat.com>
8113
8114 * symfile.c (syms_from_objfile): Return immediately if no syms.
8115 (symbol_file_add): Return immediately if no syms.
8116 (find_sym_fns): Return immediately if no syms.
8117
e641a1ca
ML
81182002-03-13 Michal Ludvig <mludvig@suse.cz>
8119
8120 * gdbserver/remote-util.c (remote_open): Print remote-side's
8121 IP address when remote debugging over the network.
7e336ba1 8122
df08bfec
DB
81232002-03-12 David O'Brien <obrien@FreeBSD.org>
8124
8125 * config/sparc/fbsd.mh: Fix copyright.
8126 * config/sparc/fbsd.mt: Likewise.
8127
9a57864f
RE
81282002-03-11 Richard Earnshaw <rearnsha@arm.com>
8129
8130 * MAINTAINERS: Fix typo in name of gdb warnings option.
8131 (x86-64): Fix formating so that this can be parsed by awk.
8132
dd7bf85e
DJ
81332002-03-10 Daniel Jacobowitz <drow@mvista.com>
8134
8135 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8136 * defs.h: Include "gdb/signals.h".
8137 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8138
33a0a2ac
ML
81392002-03-10 Michal Ludvig <mludvig@suse.cz>
8140
8141 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8142 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8143 from x86-64-tdep.h
8144
dd824b04
DJ
81452002-03-10 Daniel Jacobowitz <drow@mvista.com>
8146 Don Howard <dhoward@redhat.com>
8147
8148 * mips-tdep.c (ST0_FR): Define.
8149 (mips2_fp_compat): New function, temporarily disabled.
8150 (mips_read_fp_register_single): New function.
8151 (mips_read_fp_register_double): New function.
8152 (mips_print_register): Use them.
8153 (do_fp_register_row): Likewise.
8154
6a41ff59
AC
81552002-03-09 Andrew Cagney <ac131313@redhat.com>
8156
8157 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8158 approval''.
8159
4ea09c10
PS
81602002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8161
8162 * stabsread.c (read_member_functions): Fix is_stub test for
8163 static member functions, improve comment.
8164
6ccc741d
RE
81652002-03-07 Richard Earnshaw <rearnsha@arm.com>
8166
8167 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8168 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8169 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8170 commands that set boolean values.
8171 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8172 (arm_rdi_resume): Always initialize PC.
8173 (arm_rdi_open): Don't use rslt as a boolean.
8174 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8175 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8176 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8177 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8178
438013df
AO
81792002-03-06 Alexandre Oliva <aoliva@redhat.com>
8180
8181 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8182 * configure: Rebuilt.
8183
70ed8774
SC
81842002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8185
8186 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8187 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8188
5ba2abeb
AC
81892002-03-06 Andrew Cagney <ac131313@redhat.com>
8190
8191 * cli/cli-decode.c (set_cmd_completer): New function.
8192 * command.h (set_cmd_completer): Declare.
8193 * cli/cli-decode.h (set_cmd_completer): Ditto.
8194
8195 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8196 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8197 * win32-nat.c (_initialize_inftarg): Ditto.
8198 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8199 * proc-api.c (_initialize_proc_api): Ditto.
8200 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8201 * source.c (_initialize_source): Ditto.
8202 * exec.c (_initialize_exec): Ditto.
8203 * solib.c (_initialize_solib): Ditto.
8204 * top.c (init_main): Ditto.
8205 * tracepoint.c (_initialize_tracepoint): Ditto.
8206 * symfile.c (_initialize_symfile): Ditto.
8207 * printcmd.c (_initialize_printcmd): Ditto.
8208 * infcmd.c (_initialize_infcmd): Ditto.
8209 * corefile.c (_initialize_core): Ditto.
8210
f779ca99
AC
82112002-03-05 Andrew Cagney <ac131313@redhat.com>
8212
8213 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8214
01a3934b
AC
82152002-03-05 Andrew Cagney <ac131313@redhat.com>
8216
8217 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8218
37057839
AC
82192002-03-05 Andrew Cagney <ac131313@redhat.com>
8220
8221 * NEWS: Update headings, 5.2 has branched.
8222
c6ecbae5
DJ
82232002-03-04 Daniel Jacobowitz <drow@mvista.com>
8224
8225 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8226 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8227 (register_addr, REGISTER_RAW_SIZE): Likewise.
8228 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8229 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8230
e9f30c21
ML
82312002-03-03 Michal Ludvig <mludvig@suse.cz>
8232
8233 * MAINTAINERS (x86-64): Add myself.
8234 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8235 changed value_ptr -> struct value *
8236
54394ac3
DB
82372002-03-01 David O'Brien <obrien@FreeBSD.org>
8238
8239 * configure.host (sparc64-*-freebsd): Add.
8240 * configure.tgt: Likewise.
8241 * config/sparc/fbsd.mh: New file.
8242 * config/sparc/fbsd.mt: Likewise.
8243 * config/sparc/nm-fbsd.h: Likewise.
8244 * config/sparc/tm-fbsd.h: Likewise.
8245
bfe95955
DJ
82462002-03-01 Daniel Jacobowitz <drow@mvista.com>
8247
8248 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8249 regformats/reg-s390x.dat.
8250
f33c6cbf
AC
82512002-03-01 Andrew Cagney <ac131313@redhat.com>
8252
8253 * utils.c: Add FIXME explaining true/false problem.
8254
5ecaa7dd
AC
82552002-02-28 Andrew Cagney <ac131313@redhat.com>
8256
8257 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8258
2a251cc2
MC
82592002-02-28 Michael Chastain <mec@shout.net>
8260
8261 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8262
6a8031a3 82632002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8264
8265 * gdbserver/linux-s390-low.c: New file.
8266 * regformats/reg-s390.dat: New file.
8267 * regformats/reg-s390x.dat: New file.
8268 * gdbserver/configure.srv: Add S/390.
8269 * gdbserver/Makefile.in: Add S/390.
8270 * configure.tgt: Enable gdbserver for S/390.
8271
ac469903
EZ
82722002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8273
8274 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8275 first line of the doc string for "info dos", except at the end of
8276 the sentence, since the short help stops at the first period.
8277
985cb1a3
JM
82782002-02-28 Jason Merrill <jason@redhat.com>
8279
8280 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8281
c570663e
FF
82822002-02-27 Fred Fish <fnf@redhat.com>
8283
8284 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8285 comment (dumy -> dummy).
8286
43630227
PS
82872002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8288
8289 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8290
b84911e8
RB
82912002-02-27 Rodney Brown <rbrown64@csc.com.au>
8292
8293 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8294
58caa3dc
DJ
82952002-02-27 Daniel Jacobowitz <drow@mvista.com>
8296
8297 * gdbserver/acconfig.h: New file.
8298 * gdbserver/i387-fp.c: New file.
8299 * gdbserver/i387-fp.h: New file.
8300 * gdbserver/linux-x86-64.c: New file.
8301 * regformats/reg-x86-64.dat: New file.
8302 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8303 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8304 * gdbserver/configure.in: Add support for regsets.
8305 * gdbserver/config.in: Regenerate.
8306 * gdbserver/configure: Regenerate.
8307 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8308 * gdbserver/linux-low.h: New file.
8309 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8310 for regsets.
8311 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8312 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8313 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8314 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8315 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8316 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8317 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8318 "i387-fp.h". Add PTRACE_GETREGS and friends.
8319 * gdbserver/regcache.c (supply_register): New function.
8320 (supply_register_by_name): New function.
8321 (collect_register): New function.
8322 (collect_register_by_name): New function.
8323
93652174
DJ
83242002-02-27 Daniel Jacobowitz <drow@mvista.com>
8325
8326 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8327 (config.status): Add configure.srv dependency.
8328 (server_h): Add config.h dependency.
8329
a02e4a61
DJ
83302002-02-27 Daniel Jacobowitz <drow@mvista.com>
8331
8332 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8333 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8334 * gdbserver/configure.srv: Change i386-*-linux* to use
8335 reg-i386-linux.o.
8336
ce0eebec
AC
83372002-02-26 Andrew Cagney <ac131313@redhat.com>
8338
8339 * x86-64-tdep.c: Re-indent. Update copyright date.
8340
82dbc5f7
AC
83412002-02-26 Andrew Cagney <ac131313@redhat.com>
8342
8343 From Michal Ludvig <mludvig@suse.cz>:
8344 * x86-64-tdep.c (value.h): Delete.
8345 (gdb_assert.h): Include.
8346 (x86_64_register_convert_to_virtual,
8347 x86_64_register_convert_to_raw ): Add check which lets only
8348 floating-point values to be converted.
8349 (value_push): Delete.
8350 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8351 (i386_gdbarch_init): Number of register_bytes fixed.
8352
e4621584
AC
83532002-02-26 Andrew Cagney <ac131313@redhat.com>
8354
8355 * MAINTAINERS: Add x86-64 target.
8356
81a9a963
AC
83572002-02-26 Andrew Cagney <ac131313@redhat.com>
8358
8359 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8360 * osfsolib.c (solib_map_sections): Ditto.
8361 * irix5-nat.c (solib_map_sections): Ditto.
8362 * corelow.c (gdb_check_format): Ditto.
8363 * symfile.c (symfile_bfd_open): Ditto.
8364 * solib.c (solib_map_sections): Ditto.
8365 Fix PR gdb/354.
7e336ba1 8366
0f017ab9
AC
83672002-02-26 Andrew Cagney <ac131313@redhat.com>
8368
8369 * remote.c (_initialize_remote): By default, disable ``e'' and
8370 ``E'' step out-of-range packets.
8371
75738c29
AS
83722002-02-26 Andreas Schwab <schwab@suse.de>
8373
8374 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8375 m68k_linux_frame_saved_pc.
8376 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8377 in_sigtramp.
8378 (SIGCONTEXT_PC_OFFSET): Remove.
8379 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8380 m68k_linux_sigtramp_saved_pc): New functions.
8381 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8382 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8383 (UCONTEXT_PC_OFFSET): Define.
8384 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8385 non-RT and RT signal trampolines.
8386
7e8ed687
RE
83872002-02-26 Richard Earnshaw <rearnsha@arm.com>
8388
8389 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8390 (TARGET_NBPG, STACK_END_ADDR): Delete
8391 (VARIABLES_INSIDE_BLOCK): Delete.
8392
6972bc8b
AC
83932002-02-25 Andrew Cagney <ac131313@redhat.com>
8394
8395 * utils.c (perror_with_name): Make string parameter constant.
8396 (print_sys_errmsg): Ditto.
8397 (query): Ditto.
8398 * defs.h (perror_with_name): Update.
8399 (print_sys_errmsg): Update.
8400 (query): Update.
8401
aa32f823
DJ
84022002-02-25 Daniel Jacobowitz <drow@mvista.com>
8403
8404 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8405 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8406
19caaa45
PS
84072002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8408
8409 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8410 if it already matches the current architecture from the exec file.
8411 Include arch-utils.h for gdbarch_info_init prototype.
8412 * Makefile.in (rs6000-nat.o): Update dependencies.
8413
d951901f
EZ
84142002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8415
8416 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8417 list of exported variables.
8418
7ea81414
DJ
84192002-02-24 Daniel Jacobowitz <drow@mvista.com>
8420
8421 * gdbserver/configure.srv: New file.
8422 * gdbserver/configure.in: Use configure.srv instead
8423 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8424 from it.
8425 * gdbserver/configure: Regenerated.
8426 * gdbserver/terminal.h: New file.
8427 * gdbserver/Makefile.in: Update for configure changes. Remove
8428 more unneeded include paths.
8429
080fe24b
AC
84302002-02-24 Andrew Cagney <ac131313@redhat.com>
8431
8432 From wiz at danbala:
8433 * config/sparc/tm-sp64.h: Fix grammar and typos.
8434 Fix PR gdb/287.
8435
8605d56e
AC
84362002-02-24 Andrew Cagney <ac131313@redhat.com>
8437
8438 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8439 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8440 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8441 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8442 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8443 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8444 * s390-tdep.c: Ditto.
92362027
AC
8445 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8446 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8447 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8448 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8449 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8450 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8451 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8452 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8453 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8454 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8455 Fix PR gdb/378.
7e336ba1 8456
8ed32cc0
AC
84572002-02-23 Andrew Cagney <ac131313@redhat.com>
8458
a3007b6f
AC
8459 * lin-thread.c: Delete file.
8460 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8461 to gdb_proc_service.h.
8462 * configure: Re-generate.
8463
50a9e2f1
AC
8464 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8465 * serial.c (serial_open): Delete check for "ocd".
8466 Fix PR gdb/349.
8467
8b6e7932
AC
8468 * Makefile.in (linux-thread.o): Delete target.
8469 * linux-thread.c: Delete file.
8470
d155c46b
AC
8471 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8472 renamed SH files to be consistent.
8473
8ed32cc0
AC
8474 * symtab.c (sort_search_symbols): Use xfree.
8475
0e18d038
RE
84762002-02-23 Richard Earnshaw <rearnsha@arm.com>
8477
8478 * arm-linux-tdep.c (arm_linux_init_abi): Register
8479 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8480 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8481 definition with undef, since we don't want the sysvr4 definition.
8482 (SKIP_TRAMPOLINE_CODE): Likewise.
8483
27aac7ff
AC
84842002-02-23 Andrew Cagney <ac131313@redhat.com>
8485
8486 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8487
8488 * configure.in: (AC_CHECK_FUNCS) Added test for
8489 canonicalize_file_name Regenerated.
8490 * config.in, configure: Regenerated.
8491 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8492 defined use canonicalize_file_name.
7e336ba1 8493
65a6e0ee
MC
84942002-02-23 Michael Chastain <mec@shout.net>
8495
8496 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8497
47b95330
AC
84982002-02-23 Andrew Cagney <ac131313@redhat.com>
8499
8500 * README: Remove references to cygnus.com.
8501 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8502 dot com'' form. Remove references to cygnus.com and sourceware.
8503
696f451b
AC
85042002-02-23 Andrew Cagney <ac131313@redhat.com>
8505
8506 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8507 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8508 1003.1-2001 no longer allows "head -1".
8509 * gdb/Makefile.in (version.c): Likewise.
8510 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8511 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8512 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8513
bbaca940
AC
85142002-02-23 Andrew Cagney <ac131313@redhat.com>
8515
8516 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8517 * command.h (cmd_cfunc_eq): Declare.
8518 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8519
8520 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8521 ``struct cmd_list_element *''.
8522 * cli/cli-cmds.c (is_complete_command): Update. Use
8523 cmd_cfunc_eq.
8524 * top.c (execute_command): Pass the command to
8525 is_complete_command.
8526 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8527
b8b8b047
AC
85282002-02-23 Andrew Cagney <ac131313@redhat.com>
8529
8530 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8531 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8532 architecture defines.
8533 * s390-tdep.c (s390_gdbarch_init): Likewise.
8534
19d3fc80
RE
85352002-02-23 Richard Earnshaw <rearnsha@arm.com>
8536
8537 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8538 (arm_linux_push_arguments): Likewise.
8539 (arm_linux_init_abi): Register them. Also register linux-specific
8540 call_dummy_words.
8541 (find_minsym_and_objfile): Use strcmp, not STREQ.
8542 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8543 (arm_linux_call_dummy_words): Delete declaration.
8544 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8545 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8546 declarations.
8547 (LOWEST_PC): Delete.
8548
3ab13650
PS
85492002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8550
8551 * maint.c (print_section_info): Do not prepend `0x' to filepos
8552 output, it will be handled by local_hex_string_custom.
8553
19d3fc80 85542002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8555
8556 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8557 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8558 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8559
d85a5daf
JB
85602002-02-22 Jim Blandy <jimb@redhat.com>
8561
8562 Indicate that the bcache functions don't change the strings
8563 they're passed.
8564 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8565 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8566
eeb25b8a
PM
85672002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8568
8569 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8570
6badb179
CF
85712002-02-21 Christopher Faylor <cgf@redhat.com>
8572
8573 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8574 find the complete path to a loaded DLL.
8575
e8717518
FF
85762002-02-21 Fred Fish <fnf@redhat.com>
8577
8578 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8579 that marks the end of the range of a function, enter a line number
8580 entry that has a line number of zero and a PC offset that matches
8581 the end of the function. This starts a range of PC's for which no
8582 line number information is known.
8583 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8584 PC's for which no line number info is found (line number is zero)
8585 then we didn't find any valid line information.
8586 * symtab.h: Document use of zero line number entry.
8587
9abe5450
EZ
85882002-02-21 Elena Zannoni <ezannoni@redhat.com>
8589
8590 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8591 (have_ptrace_getvrregs): Define for run time checks.
8592 (gdb_vrregset_t): New type for Altivec register handling.
8593 (fetch_register, store_register): Fetch/store altivec register
8594 when needed.
8595 (fetch_altivec_register, store_altivec_register): New functions.
8596 (supply_vrregset, fill_vrregset): New functions.
8597 (fetch_altivec_registers, store_altivec_registers): New functions.
8598 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8599 registers as well.
8600
aaa38bb5
AJ
86012002-02-21 Jiri Smid <smid@suse.cz>
8602
8603 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8604
b34db576
RE
86052002-02-21 Richard Earnshaw <rearnsha@arm.com>
8606
8607 * Makefile.in (armnbsd-nat.o): Update dependencies.
8608 * armnbsd-nat.c (supply_gregset): New function. Common code to
8609 supply the integer register set.
8610 (supply_fparegset): New function. Similar for FPA registers.
8611 (fetch_regs, fetch_fp_regs): Use them.
8612 (fetch_core_registers): Likewise.
8613 (fetch_elfcore_registers): New function.
8614 (arm_netbsd_elfcore_fns): New core-file type specification.
8615 (_initialize_arm_netbsd_nat): Register it.
8616
3e56fc4b
RE
86172002-02-21 Richard Earnshaw <rearnsha@arm.com>
8618
8619 * armnbsd-nat.c: Include gdbcore.h.
8620 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8621 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8622 'void' to declaration, to shut up ARI.
8623 (fetch_core_registers): Make static. Rewrite using supply_register.
8624 (arm_netbsd_core_fns): New core-file type specification.
8625 (_initialize_arm_netbsd_nat): New function.
8626
097f6b0b
CF
86272002-02-21 Christopher Faylor <cgf@redhat.com>
8628
8629 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8630 value.
8631
c914e0cc
CF
86322002-02-20 Christopher Faylor <cgf@redhat.com>
8633
8634 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8635 fails.
8636
385fa495
DJ
86372002-02-20 Daniel Jacobowitz <drow@mvista.com>
8638
8639 * jv-exp.y (parse_number): Change type of implicit longs
8640 to builtin_type_uint64.
8641
e5f1222d
DJ
86422002-02-20 Daniel Jacobowitz <drow@mvista.com>
8643
8644 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8645 to be an integer instead of a `union wait'.
8646
75c9abc6
DJ
86472002-02-20 Daniel Jacobowitz <drow@mvista.com>
8648
8649 * mips-linux-nat.c: Call the operating system GNU/Linux.
8650 * mips-linux-tdep.c: Likewise.
8651 * mips-tdep.c: Likewise.
8652
551792a5
DJ
86532002-02-20 Daniel Jacobowitz <drow@mvista.com>
8654
8655 Fix PR gdb/265.
8656 * jv-exp.y (parse_number): Handle 64-bit integers.
8657
ee6e2b82
DJ
86582002-02-20 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8661 AC_STDC_HEADERS to AC_HEADER_STDC.
8662 * gdbserver/configure: Regenerated.
8663
a48442a0
RE
86642002-02-20 Richard Earnshaw <rearnsha@arm.com>
8665
8666 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8667 is defined.
8668 * sparc-tdep.c (get_longjmp_target): Likewise.
8669
fe419ffc
RE
86702002-02-20 Richard Earnshaw <rearnsha@arm.com>
8671
8672 * News: Add news about ARM and Multi-arch. Mention the new target
8673 arm*-*-netbsd*.
8674
5832ed7e
JB
86752002-02-19 Jim Blandy <jimb@redhat.com>
8676
8677 * stabsread.c (error_type_complaint): Improve error message.
8678
84563040
DJ
86792002-02-19 Daniel Jacobowitz <drow@mvista.com>
8680
8681 * gdbserver/README: Update documentation.
8682 * gdbserver/configure.in: Update configury to match documentation.
8683 * gdbserver/Makefile.in: Likewise.
8684 * gdbserver/configure: Regenerated.
8685 * gdbserver/aclocal.m4: New file, generated by aclocal.
8686 * gdbserver/config.in: New file, generated by autoheader.
8687
375fd65b
RE
86882002-02-19 Richard Earnshaw <rearnsha@arm.com>
8689
8690 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8691 armnbsd-nat.c.
8692
08216dd7
RE
86932002-02-19 Richard Earnshaw <rearnsha@arm.com>
8694
8695 * arm-tdep.h (enum arm_float_model): New enum.
8696 (struct gdbarch_tdep): Add fp_model.
8697 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8698 up floating-point conversions until we know the floating-point model
8699 in use by the inferior. Don't complain about being unable to
8700 determine the ABI of the inferior when we don't have one.
8701 (arm_extract_return_value): Support different floating-point models.
8702 (arm_store_return_value): Likewise.
aaa38bb5 8703 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8704 ARM_FLOAT_SOFT.
8705 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8706
65d6d66a
PS
87072002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8708
8709 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8710 of ``current_gdbarch''.
8711
47221191
RE
87122002-02-19 Richard Earnshaw <rearnsha@arm.com>
8713
8714 * armnbsd-nat.c : ANSIfy all function declarations.
8715 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8716 (fetch_inferior_registers): Re-implement in terms of above.
8717 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8718 (store_inferior_registers): Re-implement in terms of above.
8719
fdf39c9a
RE
87202002-02-19 Richard Earnshaw <rearnsha@arm.com>
8721
aaa38bb5 8722 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8723 kernel.
8724 * arm-linux-tdep.c: Likewise.
8725 * config/arm/tm-linux.h: Likewise.
8726
93247f88
RE
87272002-02-19 Richard Earnshaw <rearnsha@arm.com>
8728
8729 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8730 * config/arm/nbsd.mt (TM_FILE): Delete.
8731 * config/arm/tm-nbsd.h: Delete.
8732
d7b486e7
RE
87332002-02-19 Richard Earnshaw <rearnsha@arm.com>
8734
8735 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8736 Initialize CALL_DUMMY_LENGTH.
8737
41d39a95
RE
87382002-02-19 Richard Earnshaw <rearnsha@arm.com>
8739
8740 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8741 function.
8742 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8743 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8744 defines one thing and that is incorrect for this port.
8745 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8746
e1195560
PM
87472002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8748
8749 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8750
c1748f97
PM
87512002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8752
8753 * win32-nat.c (display_selector): New function. Displays information
8754 about the information returned by GetThreadSelectorEntry API function.
8755 (display_selectors): New function. Displays the infomation of
8756 the selector given as argument, or of CS, DS ans FS selectors
8757 if no argument is given.
8758 ( _initialize_inftarg): Add "w32" as info prefix command.
8759 Add "info w32 selector" as command calling display_selectors.
8760
e41e6bbf
PM
87612002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8762
8763 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8764 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8765 if not defined.
8766
0d3a9f48
RE
87672002-02-18 Richard Earnshaw <rearnsha@arm.com>
8768
8769 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8770
3fb4b924
RE
87712002-02-18 Richard Earnshaw <rearnsha@arm.com>
8772
8773 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8774 (arm_fix_call_dummy): Call it.
8775 (arm_call_dummy_breakpoint_offset): Delete.
8776 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8777 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8778
7f55af32
AC
87792002-02-18 Andrew Cagney <ac131313@redhat.com>
8780
8781 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8782 Default to func_frame_chain_valid.
8783 * gdbarch.h, gdbarch.c: Re-generate.
8784 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8785
05f13b9c
EZ
87862002-02-18 Elena Zannoni <ezannoni@redhat.com>
8787
8788 * ppc-linux-nat.c: Update copyright.
8789 (fetch_register, store_register): Add tid parameter, don't compute
8790 tid here.
8791 (fetch_ppc_registers, store_ppc_registers): Add tid
8792 parameter. Pass it along to callees.
8793 (fetch_inferior_registers, store_inferior_registers): Compute tid
8794 here, and pass it to calleed functions.
8795 (fill_gregset, supply_fpregset): Clean up formatting.
8796
d7afb4c9
RE
87972002-02-18 Richard Earnshaw <rearnsha@arm.com>
8798
8799 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8800 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8801
9df628e0
RE
88022002-02-18 Richard Earnshaw <rearnsha@arm.com>
8803
8804 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8805 * gdbarch.c gdbarch.h: Regenerate.
8806 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8807 function.
8808 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8809 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8810 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8811
8812 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8813 * arm-tdep.c (arm_get_longjmp_target): New function.
8814 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8815 this to a positive value register arm_get_longjmp_target as the
8816 longjmp handler.
8817 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8818 (arm_linux_init_abi): Set up longjmp description in tdep.
8819 * armnbsd-nat.c (get_longjmp_target): Delete.
8820 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8821 description in tdep.
8822 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8823 (get_longjmp_target): Delete declaration.
8824 (GET_LONGJMP_TARGET): Delete.
8825 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8826 (GET_LONGJMP_TARGET): Delete.
8827
57bc8964
KB
88282002-02-17 Kevin Buettner <kevinb@redhat.com>
8829
8830 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8831 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8832 of ``current_gdbarch''.
8833
83d31a92
TT
88342002-02-17 Tom Tromey <tromey@redhat.com>
8835
8836 * cli/cli-cmds.c (compare_strings): New function.
8837 (complete_command): Only print each unique item once.
8838 * completer.h (complete_line): Declare.
8839 * completer.c (complete_line): New function.
8840 (line_completion_function): Use it.
8841
17ef5d92
AC
88422002-02-16 Andrew Cagney <ac131313@redhat.com>
8843
8844 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8845 * gdbarch.h, gdbarch.c: Re-generate.
8846
491b8946
DJ
88472002-02-16 Daniel Jacobowitz <drow@mvista.com>
8848
8849 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8850
88512002-02-16 Daniel Jacobowitz <drow@mvista.com>
8852
8853 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8854 * valops.c (value_arg_coerce): Don't take the address of a reference
8855 to convert an argument to a reference.
8856
dfe7f3ac
CF
88572002-02-15 Christopher Faylor <cgf@redhat.com>
8858
8859 * win32-nat.c (get_image_name): New function.
8860 (handle_load_dll): Use get_image_name function.
8861 (get_child_debug_event): Avoid registering debug events until possibly
8862 execed process is started.
8863 (child_create_inferior): Allow invocation via shell so that command
8864 line redirection, etc. works ok.
8865 (_initialize_inftarg): Add new command: "set shell" to control whether
8866 a shell is used to start a process.
8867
1d33e73a
DJ
88682002-02-15 Daniel Jacobowitz <drow@mvista.com>
8869
8870 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8871 instead of find_register_by_number.
8872 (cannot_store_register): Likewise.
8873
48cd0caa
PM
88742002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8875
aaa38bb5 8876 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8877 fprintf_unfiltered (gdb_stderr, ...).
8878
8656e7d8
DJ
88792002-02-15 Daniel Jacobowitz <drow@mvista.com>
8880
8881 * gdbserver/gdbserver.1: Document --attach.
8882
66e810cd
RE
88832002-02-15 Richard Earnshaw <rearnsha@arm.com>
8884
8885 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8886 descriptions.
8887 * arm-tdep.c (arm_default_arm_le_breakpoint)
8888 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8889 (arm_default_thumb_be_breakpoint): New. Initialize them from
8890 traditional breakpoint defines.
8891 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8892 (arm_gdbarch_init): Initialize new breakpoint variables.
8893 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8894 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8895 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8896 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8897 code out to ...
8898 (arm_netbsd_init_abi_common): ... here; new function.
8899 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8900 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8901 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8902 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8903
97e03143
RE
89042002-02-15 Richard Earnshaw <rearnsha@arm.com>
8905
8906 * arm-tdep.h (enum arm_abi): New enum.
8907 (struct gdbarch_tdep): New structure.
8908 (LOWEST_PC): Provide a default.
8909 (arm_gdbarch_register_os_abi): Declare new function.
8910 * arm-tdep.c (arm_abi_names): New array.
8911 (process_note_abi_tag_sections): New function.
8912 (get_elfosabi): New function.
8913 (arm_gdbarch_register_os_abi): New function.
8914 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8915 support for that ABI has been built in, then call the appropriate
8916 configuration routine. Use gdbarch_num_regs() to get the number
8917 of registers.
8918 (arm_dump_tdep): New function.
8919 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8920 place-holder functions.
8921 (_initialize_arm_tdep): Register them.
8922 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8923
8924 * armnbsd-tdep.c: New file.
8925 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8926 * config/arm/nbsd.mt (TDEPFILES): Add it.
8927 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8928
8929 * armnbsd-nat.c: Include regcache.h.
8930 * Makefile.in (armnbsd-nat.o): Update dependency list.
8931
8932 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8933
ad68be46
DJ
89342002-02-14 Daniel Jacobowitz <drow@mvista.com>
8935
8936 * gdbserver/Makefile.in: Fix typos in target rules.
8937
003d6d1d
DJ
89382002-02-14 Daniel Jacobowitz <drow@mvista.com>
8939
aaa38bb5 8940 Fix part of PR gdb/267.
003d6d1d
DJ
8941 * linespec.c (find_methods): Handle constructors specially for now.
8942
6b230f1b
CV
89432002-02-14 Corinna Vinschen <vinschen@redhat.com>
8944
8945 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8946 handling.
8947 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8948 standard_coerce_float_to_double().
8949
1ea98d12
CF
89502002-02-14 Christopher Faylor <cgf@redhat.com>
8951
8952 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8953 GDBINIT_FILENAME.
8954
dd47e6fd
EZ
89552002-02-14 Elena Zannoni <ezannoni@redhat.com>
8956
8957 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8958 find_variant_by_name, because it confuses the multiarch
8959 framework. Return NULL if there isn't an architecture with the
8960 user supplied name, instead of forcing a different one without
8961 recording the change with the multiarch machinery.
8962 (find_variant_by_name): Delete.
8963
d7e39b9e
PS
89642002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8965
8966 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8967 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8968
76e42a4f
MH
89692002-02-13 Martin M. Hunt <hunt@redhat.com>
8970
aaa38bb5 8971 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
8972 print_frame_info_listing_hook, set current_source_symtab.
8973
0a30fbc4
DJ
89742002-02-14 Daniel Jacobowitz <drow@mvista.com>
8975
8976 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8977 and remove unused $(INCLUDE_DIR).
8978 Add regcache.c to OBS.
8979 Add generated register protocol files to clean target.
8980 Update dependencies for new objects, obsolete old target code.
8981
8982 * gdbserver/linux-low.c: Remove all platform-specific code to
8983 new files. Remove various dead code. Update to use regcache
8984 functionality.
8985 * gdbserver/remote-utils.c (fromhex): Add return statement
8986 to quiet warning.
8987 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8988 constant.
8989 (input_interrupt): Add integer parameter to match prototype
8990 of a signal handler.
8991 (outreg): Use register_data ().
8992 (prepare_resume_reply): Use gdbserver_expedite_regs.
8993 * gdbserver/server.c (main): Dynamically allocate own_buf because
8994 PBUFSIZ is no longer constant. Use registers_to_string () and
8995 registers_from_string ().
8996 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8997 for error (), fatal (), and warning (). Update definition of
8998 PBUFSIZ to use regcache functionality. Add include guard.
8999 * gdbserver/utils.c (fatal): Add missing ``const''.
9000 (warning): New function.
9001
9002 * regformats/regdat.sh: Include "regcache.h" in generated files.
9003 Provide init_registers () function.
9004 * regformats/regdef.h: Add prototype for set_register_cache ().
9005 Add include guard.
9006
9007 * gdbserver/linux-arm-low.c: New file.
9008 * gdbserver/linux-i386-low.c: New file.
9009 * gdbserver/linux-ia64-low.c: New file.
9010 * gdbserver/linux-m68k-low.c: New file.
9011 * gdbserver/linux-mips-low.c: New file.
9012 * gdbserver/linux-ppc-low.c: New file.
9013 * gdbserver/linux-sh-low.c: New file.
9014
9015 * gdbserver/regcache.c: New file.
9016 * gdbserver/regcache.h: New file.
9017
9018 * gdbserver/low-linux.c: Removed obsolete file.
9019
4cc841d0
DJ
90202002-02-14 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9023 * config/i386/linux.mt: Likewise.
9024 * config/ia64/linux.mt: Likewise.
9025 * config/m68k/linux.mh: Likewise.
9026 * config/powerpc/linux.mh: Likewise.
9027 * config/mips/linux.mt: Likewise.
9028
9029 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9030
9031 * config/i386/i386lynx.mh: Mark gdbserver variables
9032 as (currently) obsolete for this target.
9033 * config/i386/nbsd.mt: Likewise.
9034 * config/i386/nbsdelf.mt: Likewise.
9035 * config/m32r/m32r.mt: Likewise.
9036 * config/m68k/m68klynx.mh: Likewise.
9037 * config/m68k/nbsd.mt: Likewise.
9038 * config/m68k/sun3os4.mh: Likewise.
9039 * config/mips/vr5000.mt: Likewise.
9040 * config/ns32k/nbsd.mt: Likewise.
9041 * config/pa/hppabsd.mh: Likewise.
9042 * config/pa/hppaosf.mh: Likewise.
9043 * config/powerpc/nbsd.mt: Likewise.
9044 * config/rs6000/rs6000lynx.mh: Likewise.
9045 * config/s390/s390.mt: Likewise.
9046 * config/s390/s390x.mt: Likewise.
9047 * config/sparc/sparclynx.mh: Likewise.
9048 * config/sparc/sun4os4.mh: Likewise.
9049 * config/i386/x86-64linux.mt: Likewise.
9050 * config/sparc/linux.mh: Likewise.
9051
a85f51e7
DJ
90522002-02-14 Daniel Jacobowitz <drow@mvista.com>
9053
9054 * configure.tgt: Configure gdbserver only for known working
9055 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9056 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9057 SUBDIRS if it is configured. Update comment for ${nativefile}.
9058 * configure: Regenerated.
9059
65554fef
MS
90602002-02-13 Michael Snyder <msnyder@redhat.com>
9061
670a52db
MS
9062 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9063
6dbdc4a3
MS
9064 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9065 (default_gcore_mach): Just return 0, work around a problem in bfd.
9066 (default_gcore_target): OK to return NULL if exec_bfd is null.
9067 (make_mem_sec): Use a cast, avoid a warning.
9068
9069 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9070 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9071 sizeof (host pointer) != sizeof (target pointer)).
9072 (procfs_make_note_section): Avoid overflow in psargs string.
9073
aaa38bb5 9074 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9075 implementation return an error.
9076
90772002-02-13 Rodney Brown <rbrown64@csc.com.au>
9078
9079 * procfs.c (procfs_make_note_section): Provide a default definition
9080 (for alpha-dec-osf4.0f). Fix typos.
9081
1e4d76e7
EZ
90822002-02-13 Elena Zannoni <ezannoni@redhat.com>
9083
9084 * linux-proc.c: Add include of regcache.h.
9085 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9086
b6d1a1d5
AC
90872002-02-13 Andrew Cagney <ac131313@redhat.com>
9088
9089 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9090 * memattr.c (create_mem_region): Disallow useless empty region.
9091 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9092 non-overlapping.
b6d1a1d5 9093
6c6ea35e
MC
90942002-02-13 Michael Chastain <mec@shout.net>
9095
9096 * defs.h: Kill CONST_PTR.
9097 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9098 * c-lang.c (c_builtin_types): Likewise.
9099 * ch-lang.c (ch_builtin_types): Likewise.
9100 * f-lang.c (f_builtin_types): Likewise.
9101 * language.c (unknown_builtin_types): Likewise.
9102 * m2-lang.c (m2_builtin_types): Likewise.
9103 * p-lang.c (pascal_builtin_types): Likewise.
9104 * scm-lang.c (c_builtin_types): Likewise.
9105
3e0b0f48
KS
91062002-02-13 Keith Seitz <keiths@redhat.com>
9107
9108 * arm-tdep.h (arm_get_next_pc): Add declaration.
9109
67255d04
RE
91102002-02-13 Richard Earnshaw <rearnsha@arm.com>
9111
9112 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9113 with other related struct-returning functions.
9114 (arm_extract_struct_value_address): New function.
9115 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9116 initialize float_format, double_format and long_double_format as
9117 appropriate to the endianness of the target.
9118 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9119 (arm_use_struct_convention): Delete declaration.
9120 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9121
079777f6
KS
91222002-02-13 Keith Seitz <keiths@redhat.com>
9123
9124 * defs.h (core_addr_to_string_nz): New function.
9125
34588f23
MK
91262002-02-13 Mark Kettenis <kettenis@gnu.org>
9127
9128 Apply missing bits of 2002-01-15 patch.
9129 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9130 (fill_fpregset): Use i387_fill_fsave.
9131
49b563f9
KS
91322002-02-12 Keith Seitz <keiths@redhat.com>
9133
49b563f9
KS
9134 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9135 (core_addr_to_string_nz): New function.
9136
aeb98c60
RE
91372002-02-11 Richard Earnshaw <rearnsha@arm.com>
9138
9139 * arm-linux-nat.c: Really include arm-tdep.h.
9140 * config/arm/tm-linux.h (struct type, struct value): Declare.
9141
65554fef
MS
91422002-02-11 Michael Snyder <msnyder@redhat.com>
9143
9144 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9145 (gcore section): Ifdef for Solaris and Unixware only.
9146 (procfs_do_thread_registers): Unixware needs one lwpstatus
9147 per thread (not one prstatus or pstatus).
9148 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9149 not over all gdb threads. For unixware, call elfcore_write_pstatus
9150 once before iterating over threads.
9151
34e8f22d
RE
91522002-02-11 Richard Earnshaw <rearnsha@arm.com>
9153
9154 * arm-tdep.h: New file.
9155 * arm-tdep.c: Include arm-tdep.h.
9156 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9157 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9158 (arm_print_float_info, arm_register_type, convert_to_extended)
9159 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9160 (arm_extract_return_value, arm_register_name): Make static.
9161 (arm_software_single_step): Similarly. Fix types in declaration.
9162 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9163 (arm_store_return_value, arm_store_struct_return): New functions.
9164 (arm_gdbarch_init): Register the above functions. Also register
9165 call_dummy_start_offset, sizeof_call_dummy_words,
9166 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9167 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9168 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9169 prologue_cache.saved_regs here, rather than ...
9170 (_initialize_arm_tdep): ... here.
9171 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9172 declarations.
9173 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9174 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9175 (arm_print_float_info, arm_register_type, convert_to_extended)
9176 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9177 (arm_extract_return_value, arm_register_name): Delete declarations.
9178 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9179 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9180 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9181 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9182 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9183 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9184 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9185 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9186 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9187 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9188 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9189 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9190 interface.
9191 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9192 * remote-rdi.c remote-rdp.c: Likewise.
9193 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9194 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9195 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9196 definition.
9197
9198 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9199 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9200 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9201 from non-ARM_ prefixed definitions.
9202 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9203 all uses of above.
9204 * remote-rdi.c remote-rdp.c: Likewise.
9205 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9206
148754e5
RE
92072002-02-11 Richard Earnshaw <rearnsha@arm.com>
9208
9209 * arm-tdep.c (arm_frameless_function_invocation)
9210 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9211 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9212 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9213 (arm_pop_frame, arm_get_next_pc): Make static.
9214 (arm_gdbarch_init): Register above in gdbarch structure.
9215 (arm_read_fp): Renamed from arm_target_read_fp.
9216 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9217 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9218 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9219 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9220 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9221 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9222 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9223 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9224 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9225 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9226 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9227
434d2d4f
DJ
92282002-02-10 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * symtab.c (compare_search_syms): New function.
9231 (sort_search_symbols): New function.
9232 (search_symbols): Sort symbols after searching rather than
9233 before.
9234
55241689
AC
92352002-02-10 Andrew Cagney <ac131313@redhat.com>
9236
9237 * NEWS: Linux -> GNU/Linux.
9238
028c194b
AC
92392002-02-10 Andrew Cagney <ac131313@redhat.com>
9240
9241 * gdbarch.sh: For for level one methods, disallow a definition
9242 when partially multi-arched. Add comments explaining rationale.
9243 * gdbarch.h: Re-generate.
9244
6acf50cd
AC
92452002-02-10 Andrew Cagney <ac131313@redhat.com>
9246
9247 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9248 multi-arch partial.
aaa38bb5 9249
50248794
AC
92502002-02-10 Andrew Cagney <ac131313@redhat.com>
9251
9252 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9253 field. Use diff -u.
9254 * gdbarch.c: Re-generate.
9255
c30e0066
AC
92562002-02-10 Andrew Cagney <ac131313@redhat.com>
9257
9b56c5f3 9258 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9259 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9260 partial.
9261
6e6d6484
AC
92622002-02-10 Andrew Cagney <ac131313@redhat.com>
9263
9264 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9265 multi-arch partial.
9266 (PUSH_ARGUMENTS): Switch to using predefault.
9267 * gdbarch.c: Regenerate.
9268
c203844d
AC
92692002-02-10 Andrew Cagney <ac131313@redhat.com>
9270
9271 * valops.c (PUSH_ARGUMENTS): Delete definition.
9272 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9273 partial. Default to default_push_arguments.
9274 * gdbarch.h, gdbarch.c: Regenerate.
9275
b5a2688f
AC
92762002-02-09 Andrew Cagney <ac131313@redhat.com>
9277
9278 * defs.h (throw_exception): Rename return_to_top_level. Update
9279 comments.
9280 * utils.c (error_stream, internal_verror, quit): Ditto.
9281 * top.c (throw_exception, catcher): Ditto.
9282 * sparclet-rom.c (sparclet_load): Ditto.
9283 * remote.c (interrupt_query, minitelnet): Ditto.
9284 * remote-sds.c (interrupt_query): Ditto.
9285 * remote-mips.c (mips_error, mips_kill): Ditto.
9286 * ocd.c (interrupt_query): Ditto.
9287 * monitor.c (monitor_interrupt_query): Ditto.
9288 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9289 * target.h: Update comment.
aaa38bb5 9290
b5a2688f 9291 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9292
2fa5c1e0
AC
92932002-02-09 Andrew Cagney <ac131313@redhat.com>
9294
9295 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9296 default_double_format.
9297 * gdbarch.h, gdbarch.c: Re-generate.
9298 * findvar.c (floatformat_unknown): Delete variable definition.
9299 * doublest.h (floatformat_unknown): Delete variable declaration.
9300
da966255
JB
93012002-02-09 Jim Blandy <jimb@redhat.com>
9302
9303 * stabsread.c (read_type): Add code to parse Sun's syntax for
9304 prototyped function types.
9305
123a4891
AC
93062002-02-09 Andrew Cagney <ac131313@redhat.com>
9307
9308 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9309 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9310
fb39c8f3
PS
93112002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9312
9313 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9314 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9315 now _initialize_xcoffsolib gets called again and overrides the
9316 commands from solib.c in a native configuration.
9317
0b87a11d
MK
93182002-02-09 Mark Kettenis <kettenis@gnu.org>
9319
9320 * doublest.c (store_typed_floating): Don't try to return a value.
9321 Fixes PR gdb/290.
9322
bdc2fc72
JB
93232002-02-08 Jim Blandy <jimb@redhat.com>
9324
9325 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9326 is prototyped and has no arguments, print its argument list as
9327 `(void)'.
9328
da69bbcf
CD
93292002-02-08 Chris Demetriou <cgd@broadcom.com>
9330
9331 * MAINTAINERS (write-after-approval): Add myself.
9332 (paper-trail): I've escaped!
aaa38bb5 9333
b69571f5
CF
93342002-02-08 Christopher Faylor <cgf@redhat.com>
9335
9336 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9337 changes.
9338 (_initialize_check_for_gdb_ini): Ditto.
9339
f6871398
MH
93402002-02-08 Martin M. Hunt <hunt@redhat.com>
9341
9342 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9343 xaprintf -> xasprintf.
9344
4e52d31c
PM
93452002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9346
9347 * win32-nat.c: Remove use of printf and sprintf functions.
9348
39bbf761
RE
93492002-02-08 Richard Earnshaw <rearnsha@arm.com>
9350
9351 * arm-tdep.c (arm_frame_chain_valid): Make static.
9352 (arm_push_arguments): Likewise.
9353 (arm_gdbarch_init): New function.
9354 (_initialize_arm_tdep): Call it.
9355 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9356 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9357 (FRAME_CHAIN_VALID): Delete.
9358 (arm_frame_chain_valid): Delete declaration.
9359 (PUSH_ARGUMENTS): Delete.
9360 (arm_push_arguments): Delete declaration.
9361 (CALL_DUMMY_P): Delete.
9362
9c9532c9
CV
93632002-02-08 Andrew Cagney <ac131313@redhat.com>
9364 Corinna Vinschen <vinschen@redhat.com>
9365
9366 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9367 on builtin float types.
9368
4e8f7a8b
DJ
93692002-02-08 Daniel Jacobowitz <drow@mvista.com>
9370
9371 * utils.c: Include <curses.h> before "bfd.h".
9372 * tui/tui-hooks.c: Likewise.
9373 * tui/tui.c: Likewise.
9374 * tui/tuiCommand.c: Likewise.
9375 * tui/tuiData.c: Likewise.
9376 * tui/tuiDataWin.c: Likewise.
9377 * tui/tuiDisassem.c: Likewise.
9378 * tui/tuiGeneralWin.c: Likewise.
9379 * tui/tuiIO.c: Likewise.
9380 * tui/tuiLayout.c: Likewise.
9381 * tui/tuiRegs.c: Likewise.
9382 * tui/tuiSource.c: Likewise.
9383 * tui/tuiSourceWin.c: Likewise.
9384 * tui/tuiStack.c: Likewise.
9385 * tui/tuiWin.c: Likewise.
9386
cd4bffcf
EZ
93872002-02-07 Elena Zannoni <ezannoni@redhat.com>
9388
9389 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9390 to include space for pseudoregs as well. Update loops accordingly.
9391 (sh_fp_frame_init_saved_regs): Ditto.
9392 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9393
26806ce2
AC
93942002-02-07 Andrew Cagney <ac131313@redhat.com>
9395
9396 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9397 Add Richard Earnshaw to Arm maintainers.
9398
97fdab62
AC
93992002-02-07 Andrew Cagney <ac131313@redhat.com>
9400
a6b98203
AC
9401 * defs.h (warning_begin): Delete declaration.
9402
97fdab62
AC
9403 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9404 Delete macro.
9405
78b29b40
MS
94062002-02-07 Michael Snyder <msnyder@redhat.com>
9407
aaa38bb5 9408 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9409 Logic bug, remove misplaced else.
9410
d8849953
KD
94112002-02-07 Klee Dienes <klee@apple.com>
9412
9413 * fork-inferior.c (fork_inferior): Add '!' to the list of
9414 characters that need to be quoted when building a string for the
9415 shell. Quote '!' specifically with a backslash, since CSH chokes
9416 when trying to evaluate "str!str".
aaa38bb5 9417
095778a0
NC
94182002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9419
9420 * rdi-share/host.h: Only provide a typedef for bool if it is not
9421 defined.
9422
1900040c
MS
94232002-02-04 Michael Snyder <msnyder@redhat.com>
9424
9425 * breakpoint.h (enum bptype): Add new overlay event bp type.
9426 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9427
1900040c
MS
9428 * breakpoint.c (create_internal_breakpoint): New function.
9429 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9430 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9431 (create_thread_event_breakpoint): Ditto.
9432 (create_solib_event_breakpoint): Ditto.
9433 (create_overlay_event_breakpoint): New function.
9434 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9435 (update_breakpoints_after_exec): Delete and re-initialize
9436 overlay event breakpoints after an exec. Add FIXME comment
9437 about longjmp breakpoint.
9438 (print_it_typical): Ignore overlay event breakpoints.
9439 (print_one_breakpoint): Ditto.
9440 (mention): Ditto.
9441 (bpstat_what): Do not stop for overlay event breakpoints.
9442 (delete_breakpoint): Don't delete overlay event breakpoints.
9443 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9444 (breakpoint_re_set): Re-create overlay event breakpoint.
9445
9446 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9447 (overlay_manual_command): Disable overlay breakpoints.
9448 (overlay_off_command): Disable overlay breakpoints.
9449
082fc60d
RE
94502002-02-06 Richard Earnshaw <rearnsha@arm.com>
9451
9452 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9453 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9454 to here from config/tm-arm.h.
9455 (coff_sym_is_thumb): Make static.
9456 (arm_elf_make_msymbol_special): New function.
9457 (arm_coff_make_msymbol_special): New function.
9458 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9459 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9460 (coff_sym_is_thumb): Delete declaration.
9461 (arm_elf_make_msymbol_special): Declare.
9462 (arm_coff_make_msymbol_special): Declare.
9463 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9464 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9465
039c5766
RE
94662002-02-06 Richard Earnshaw <rearnsha@arm.com>
9467
9468 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9469
94702002-02-06 Richard Earnshaw <rearnsha@arm.com>
9471
9472 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9473 * gdbarch.c gdbarch.h: Regenerate.
9474 * arch-utils.c (default_print_float_info): New function.
9475 * arch-utils.h (default_print_float_info): Prototype it.
9476 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9477 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9478 (PRINT_FLOAT_INFO): Document it.
9479
9480 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9481 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9482 (PRINT_FLOAT_INFO): Define.
9483
58fa08f0
PM
94842002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9485
aaa38bb5 9486 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9487 Add typecast to sprintf argument to suppress a warning.
9488
7393af7c
PM
94892002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9490
58fa08f0 9491 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9492 to allow easier handling of pass state.
9493 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9494 that gives exception name and address.
9495 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9496 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9497 exceptions added.
aaa38bb5
AJ
9498 (child_continue): Correctly report continue_status.
9499 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9500 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9501 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9502 the exception should be passed to debuggee or not.
9503
6af4589c
MS
95042002-02-05 Michael Snyder <msnyder@redhat.com>
9505
9506 * regcache.c (fetch_register): Call target_fetch_register
9507 only if we don't call FETCH_PSEUDO_REGISTER.
9508 (store_register): Call target_store_register only if we
9509 don't call STORE_PSEUDO_REGISTER.
9510
a2cf933a
EZ
95112002-02-05 Elena Zannoni <ezannoni@redhat.com>
9512
9513 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9514 ELF_MAKE_MSYMBOL_SPECIAL.
9515 * gdbarch.c, gdbarch.h: Regenerate.
9516 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9517 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9518 * elfread.c (elf_symtab_read): Compile use of
9519 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9520 multiarched.
9521 * coffread.c (coff_symtab_read): Ditto, for
9522 COFF_MAKE_MSYMBOL_SPECIAL.
9523
6bb7be43
JB
95242002-02-05 Jim Blandy <jimb@redhat.com>
9525
9526 * solib-svr4.c (svr4_truncate_ptr): New function.
9527 (svr4_relocate_section_addresses): Do the address arithmetic with
9528 the appropriate truncation for target addresses, even when
9529 CORE_ADDR is larger than a target address.
9530
e18651ec
DJ
95312002-02-05 Daniel Jacobowitz <drow@mvista.com>
9532
9533 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9534 to (int *).
9535
6b2725be
DJ
95362002-02-05 Daniel Jacobowitz <drow@mvista.com>
9537
9538 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9539 code.
9540
fca9e603
DJ
95412002-02-05 Daniel Jacobowitz <drow@mvista.com>
9542
9543 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9544
6c537a52
DJ
95452002-02-05 Daniel Jacobowitz <drow@mvista.com>
9546
9547 * gdbserver/linux-low.c: Remove unused include files.
9548
d844cde6
DJ
95492002-02-05 Daniel Jacobowitz <drow@mvista.com>
9550
9551 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9552 (read_inferior_memory): Use it.
9553 (write_inferior_memory): Likewise.
9554
d07c63e7
DJ
95552002-02-05 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9558 grubbing through sys_errlist.
9559
da6d8c04
DJ
95602002-02-05 Daniel Jacobowitz <drow@mvista.com>
9561
9562 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9563
5b421780
PM
95642002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9565 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9566
9f60d481
AC
95672002-02-04 Andrew Cagney <ac131313@redhat.com>
9568
9569 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9570 (do_sfunc, set_cmd_sfunc): New functions.
9571
9572 * command.h (struct cmd_list_element): Add field func.
9573 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9574 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9575 * cli/cli-decode.h: Ditto.
9576
9577 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9578 (help_all, help_cmd_list): Ditto.
9579 (find_cmd, complete_on_cmdlist): Ditto.
9580 * top.c (execute_command): Ditto.
9581
9582 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9583 function.sfunc.
9584
9585 * infcmd.c (notice_args_read): Fix function signature.
9586
9587 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9588 * cli/cli-decode.c (add_set_cmd): Ditto.
9589 * utils.c (initialize_utils): Ditto.
9590 * maint.c (_initialize_maint_cmds): Ditto.
9591 * infrun.c (_initialize_infrun): Ditto.
9592 * demangle.c (_initialize_demangler): Ditto.
9593 * remote.c (add_packet_config_cmd): Ditto.
9594 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9595 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9596 * proc-api.c (_initialize_proc_api): Ditto.
9597 * kod.c (_initialize_kod): Ditto.
9598 * valprint.c (_initialize_valprint): Ditto.
9599 * top.c (init_main): Ditto.
9600 * infcmd.c (_initialize_infcmd): Ditto.
9601 * corefile.c (_initialize_core): Ditto.
9602 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9603 * arch-utils.c (initialize_current_architecture): Ditto.
9604 (_initialize_gdbarch_utils): Ditto.
9605 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9606
9607 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9608 * wince.c (_initialize_inftarg): Ditto.
9609 * symfile.c (_initialize_symfile): Ditto.
9610 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9611 * language.c (_initialize_language): Ditto.
9612 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9613
f9ba0717
MS
96142002-02-04 Michael Snyder <msnyder@redhat.com>
9615
9616 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9617
0c74b2a7
DJ
96182002-02-04 Daniel Jacobowitz <drow@mvista.com>
9619
9620 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9621 Add rules for building the register data files.
9622
c638789f
DJ
96232002-02-04 Daniel Jacobowitz <drow@mvista.com>
9624
9625 * regformats/regdat.sh: Add braces to the definition of
9626 expedite_regs_${arch}.
9627
db253027
DJ
96282002-02-04 Daniel Jacobowitz <drow@mvista.com>
9629
9630 * regformats/regdef.h (struct reg): Add comment describing the
9631 requirements for offset and size fields.
9632
206be19c
AS
96332002-02-04 Andreas Schwab <schwab@suse.de>
9634
9635 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9636 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9637
181c1381
RE
96382002-02-04 Richard Earnshaw <rearnsha@arm.com>
9639
9640 * gdbarch.sh (copyright): Update years in generated header.
9641 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9642 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9643 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9644 * dbxread.c: Likewise.
9645 * dwarfread.c: Likewise.
9646 * elfread.c: Likewise.
9647 * somread.c: Likewise.
9648
9649 * arm-tdep.c (arm_smash_text_address): New function.
9650 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9651
fa4ba8da
PM
96522002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9653
9654 Add support for hardware watchpoints on win32 native.
aaa38bb5 9655 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9656 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9657 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9658 of debug registers.
9659 (debug_registers_changed): New variable. Reflects when debug registers
9660 are changed and need to be written to inferior.
aaa38bb5 9661 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9662 was set, used when new threads are created.
9663 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9664 i386-nat code.
9665 (thread_rec): Set dr array if id is the thread of current_event .
9666 (child_continue, child_resume): Change the debug registers for all
9667 threads if debug_registers_changed.
9668 (child_add_thread): Change the debug registers if debug_registers_used.
9669 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9670 Link nm.h to new nm-cygwin.h file.
9671 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9672 of hardware registers.
9673
a73c86fb
AC
96742002-02-03 Andrew Cagney <ac131313@redhat.com>
9675
9676 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9677 Restore behavour broken by 2002-01-20 Andrew Cagney
9678 <ac131313@redhat.com> IEEE_FLOAT removal.
9679
acf5ed49
DJ
96802002-02-03 Daniel Jacobowitz <drow@mvista.com>
9681
9682 * c-valprint.c (c_val_print): Pass a proper valaddr to
9683 cp_print_class_method.
9684 * valops.c (search_struct_method): If there is only one method
9685 and args is NULL, return that method.
9686
493d28d5
DJ
96872002-02-03 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9690 accessing tag_name directly.
9691
7495dfdb
DJ
96922002-02-03 Daniel Jacobowitz <drow@mvista.com>
9693
9694 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9695 of accessing tag_name directly.
9696
dd6bda65
DJ
96972002-02-03 Daniel Jacobowitz <drow@mvista.com>
9698
9699 PR gdb/280
9700 * gdbtypes.c (replace_type): New function.
9701 * gdbtypes.h (replace_type): Add prototype.
9702 * stabsread.c (read_type): Use replace_type.
9703
88fe217c
RE
97042002-02-03 Richard Earnshaw <rearnsha@arm.com>
9705
9706 * Makefile.in (memattr.o): Add missing dependencies rule.
9707
e5d66720
PS
97082002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9709
9710 * breakpoint.c (break_at_finish_command): Really export.
9711 (break_at_finish_at_depth_command): Ditto.
9712 (tbreak_at_finish_command): Ditto.
9713 * hppa-tdep.c: Include completer.h.
9714 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9715 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9716
fffee0be
AC
97172002-02-01 Andrew Cagney <ac131313@redhat.com>
9718
9719 * utils.c (do_write): New function.
9720 (error_stream): Rewrite combining the code from error_begin and
9721 verror.
9722 (verror): Rewrite using error_stream.
9723 (error_begin): Delete function.
9724
255e7dbf
AC
97252002-02-01 Andrew Cagney <ac131313@redhat.com>
9726
9727 * utils.c (error_begin): Make static.
9728 * defs.h (error_begin): Delete declaration.
9729
9730 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9731 (decode_line_1): Use cplusplus_error instead of error_begin,
9732 cplusplus_hint and return_to_top_level.
9733 * coffread.c (coff_symfile_read): Use error instead of error_begin
9734 and return_to_top_level.
9735 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9736
ddfe3c15
AC
97372002-02-01 Andrew Cagney <ac131313@redhat.com>
9738
9739 * language.h (type_error, range_error): Make string parameter
9740 constant.
9741 * language.c (warning_pre_print): Delete extern declaration.
9742 * dwarfread.c (warning_pre_print): Ditto.
9743 * language.c (type_error, range_error): Rewrite to use verror and
9744 vwarning instead of warning_begin.
9745
03ac34d5
MS
97462002-02-01 Michael Snyder <msnyder@redhat.com>
9747
261c4ca2
MS
9748 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9749 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9750
e00d1dc8
AC
97512002-02-01 Andrew Cagney <ac131313@redhat.com>
9752
9753 * command.h (NO_FUNCTION): Delete macro.
9754 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9755 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9756 * tracepoint.c (_initialize_tracepoint): Ditto.
9757 * cli/cli-decode.c (add_set_cmd): Ditto.
9758 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9759
76b79d6e
DJ
97602002-02-01 Daniel Jacobowitz <drow@mvista.com>
9761
9762 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9763 Update ``this'' pointer when calling virtual functions.
9764
799f9e91
MS
97652002-02-01 Michael Snyder <msnyder@redhat.com>
9766
c7bd442c 9767 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9768 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9769
3cf384d4
DJ
97702002-02-01 Daniel Jacobowitz <drow@mvista.com>
9771
9772 * regformats/reg-arm.dat: New file.
9773 * regformats/reg-i386.dat: New file.
9774 * regformats/reg-ia64.dat: New file.
9775 * regformats/reg-m68k.dat: New file.
9776 * regformats/reg-mips.dat: New file.
9777 * regformats/reg-ppc.dat: New file.
9778 * regformats/reg-sh.dat: New file.
9779 * regformats/regdef.h: New file.
9780 * regformats/regdat.sh: New file.
9781
0defa245
RE
97822002-02-01 Richard Earnshaw <reanrsha@arm.com>
9783
9784 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9785 (arm_frame_args_address, arm_frame_locals_address): New functions.
9786 (arm_frame_num_args): New function.
9787 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9788 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9789 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9790
405f26e6
MS
97912002-01-31 Michael Snyder <msnyder@redhat.com>
9792
502fd408
MS
9793 * breakpoint.c (break_at_finish_command): Export.
9794 (break_at_finish_at_depth_command): Export.
9795 (tbreak_at_finish_command): Export.
9796 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9797 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9798 "tbreak" commands, which are HPPA specific.
9799
7d35e135
MS
9800 * printcmd.c (disassemble_command): Remove an ancient
9801 artifact of an old merge.
9802
aaa38bb5 9803 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9804 Define enum constant values for overlay mode.
9805 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9806 (overlay_is_mapped, overlay_auto_command,
9807 overlay_manual_command): Ditto.
d874f1e2 9808
aaa38bb5
AJ
9809 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9810 breakpoint_here_p, breakpoint_inserted_here_p,
9811 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9812 describe_other_breakpoints, check_duplicates, clear_command):
9813 Coding standard fixes.
9814
8add0441 9815 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9816 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9817 code: check bfd SEC_READONLY flag for section.
9818
e351066e
AC
98192002-01-31 Andrew Cagney <ac131313@redhat.com>
9820
7d35e135 9821 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9822
8a48e967
DJ
98232002-01-30 Daniel Jacobowitz <drow@mvista.com>
9824
9825 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9826 data symbols, since we search based on textlow and texthigh.
9827 (find_pc_sect_symtab): Likewise.
9828
f5a96129
AC
98292002-01-30 Andrew Cagney <ac131313@redhat.com>
9830
9831 * defs.h (vwarning): Declare.
f5a96129
AC
9832 * utils.c (vwarning): New function.
9833 (warning): Call vwarning.
9834 (warning_begin): Delete function.
9835
9836 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9837 the warning message.
9838 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9839 warning_begin.
9840
cefd4ef5
MS
98412002-01-30 Michael Snyder <msnyder@redhat.com>
9842
1a703748
MS
9843 * NEWS: Mention "set trust-readonly-sections" command.
9844 Mention generate-core-file command.
cefd4ef5 9845
3a11626d
MS
98462002-01-15 Michael Snyder <msnyder@redhat.com>
9847
9848 * target.c: New command, "set trust-readonly-sections on".
9849 (do_xfer_memory): Honor the suggestion to trust readonly sections
9850 by reading them from the object file instead of from the target.
9851 (initialize_targets): Register command "set trust-readonly-sections".
9852
d1c7e53b
AC
98532002-01-29 Andrew Cagney <ac131313@redhat.com>
9854
9855 * parse.c (target_map_name_to_register): Simplify, search regs and
9856 pseudo-regs using a single loop.
9857
e2c9a72c
AC
98582002-01-30 Andrew Cagney <ac131313@redhat.com>
9859
9860 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9861
69824b4e
MK
98622002-01-15 Rodney Brown <rbrown64@csc.com.au>
9863
9864 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9865 * config/i386/i386v42mp.mh: Add i387-nat.o .
9866 * i386v4-nat.c: Include i387-nat.h.
9867 (supply_fpregset): Use i387_supply_fsave.
9868 (fill_fpregset): Use i387_fill_fsave.
9869
6eb69eab
RE
98702002-01-30 Richard Earnshaw <rearnsha@arm.com>
9871
9872 * arm-tdep.c (arm_call_dummy_words): Define.
9873 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9874 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9875 (CALL_DUMMY_WORDS): Define.
9876 (arm_call_dummy_words): Declare.
9877 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9878 (arm_linux_call_dummy_words): Declare.
9879
9852326a
AS
98802002-01-30 Andreas Schwab <schwab@suse.de>
9881
9882 * m68klinux-nat.c: Fix last change to use regcache_collect
9883 instead of referencing registers[] directly.
9884
977a3030
AC
98852002-01-29 Andrew Cagney <ac131313@redhat.com>
9886
9887 * parse.c (target_map_name_to_register): Delete code wrapped in
9888 #ifdef REGISTER_NAME_ALIAS_HOOK.
9889
2076c72b
MS
98902002-01-28 Michael Snyder <msnyder@redhat.com>
9891
9892 * regcache.c (legacy_read_register_gen): Need to be able to
9893 read pseudo-register as well as real register.
9894 (legacy_write_register_gen): Ditto.
9895
8fcc723b
AC
98962002-01-28 Andrew Cagney <ac131313@redhat.com>
9897
9898 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9899 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9900 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9901 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9902 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9903 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9904 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9905 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9906 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9907 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9908 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9909 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9910 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9911 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9912 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9913 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9914 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9915 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9916 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9917 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9918
afe64c1a
AC
99192002-01-28 Andrew Cagney <ac131313@redhat.com>
9920
9921 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9922 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9923 (initialize_current_architecture): Update target_byte_order using
9924 information from BFD.
aaa38bb5 9925 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9926 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9927
75bc7ddf
AC
99282002-01-28 Andrew Cagney <ac131313@redhat.com>
9929
9930 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9931 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9932
9933 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9934 #ifdef INVALID_FLOAT.
9935 * infcmd.c (do_registers_info): Ditto.
9936 * values.c (unpack_double): Ditto. Add comment.
9937
9938 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9939 already commented out.
9940
0280a90a
AS
99412002-01-26 Andreas Schwab <schwab@suse.de>
9942
9943 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9944 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9945 registers and add support for PTRACE_GETREGS.
9946
7072a954
AC
99472002-01-24 Andrew Cagney <ac131313@redhat.com>
9948
9949 GDB 5.1.1 released from 5.1 branch.
9950 * NEWS: Add 5.1.1 news.
9951 * README: Sync with 5.1 branch.
9952
86f902e0
FF
99532002-01-23 Fred Fish <fnf@redhat.com>
9954
9955 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9956 stabstring on initial malloc. Reallocing will copy it for us,
9957 if necessary.
9958
8af51c36
EZ
99592002-01-23 Elena Zannoni <ezannoni@redhat.com>
9960
aaa38bb5 9961 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9962 (HFILES_NO_SRCDIR): Remove hpread.h.
9963 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9964 (hpread.o): Update dependencies.
9965 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9966
9967 * hp-psymtab-read.c: Remove file.
9968 * hp-symtab-read.c: Remove file.
9969 * hpread.h: Remove file.
9970
9971 * hpread.c: Merge all contents of hp-psymtab-read.c,
9972 hp-symtab-read.c and hpread.h into this file, as it was prior to
9973 January 1999.
9974
9975 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 9976 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
9977 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9978 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9979
dc5cfeb6
EZ
99802002-01-23 Elena Zannoni <ezannoni@redhat.com>
9981
9982 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9983 fill_gregset): Call gdbarch_tdep() just once, assign result to
9984 variable and use that, instead of calling the function several
9985 times.
9986
ea87b71b
AO
99872002-01-24 Alexandre Oliva <aoliva@redhat.com>
9988
9989 * configure.host: Accept sparcv9 as alias for sparc64.
9990 * configure.tgt: Likewise.
9991
13fc0c2f
KB
99922002-01-22 Kevin Buettner <kevinb@redhat.com>
9993
9994 * solib-aix5.c (build_so_list_from_mapfile)
9995 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9996 arguments is not reversed.
9997 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9998 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 9999
7bd872fe
EZ
100002002-01-22 Elena Zannoni <ezannoni@redhat.com>
10001
10002 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10003 modified version of obsolete sh_fetch_pseudo_register.
10004 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10005 (sh4_register_read): New function.
10006 (sh_pseudo_register_write): New function. Renamed and modified
10007 version of obsolete sh_store_pseudo_register.
10008 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10009 (sh4_register_write): New function.
10010 (sh_gdbarch_init): Remove setting of gdbarch function
10011 fetch_pseudo_register and store_pseudo_register. Remove setting of
10012 register_convert_to_raw, register_convert_to_virtual,
10013 register_convertible.
10014 (sh_sh4_register_convertible): Delete. No longer needed. All is
10015 taken care by architecture specific functions
10016 register_read/register_write.
10017 (sh_sh4_register_convert_to_virtual): Make static.
10018 (sh_sh4_register_convert_to_raw): Ditto.
10019
069e84fd
AC
100202002-01-22 Andrew Cagney <ac131313@redhat.com>
10021
10022 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10023 (floatformat_is_nan, floatformat_mantissa): Ditto.
10024
10025 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10026 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10027 builtin_type_ieee_double_little,
10028 builtin_type_ieee_double_littlebyte_bigword,
10029 builtin_type_m68881_ext, builtin_type_i960_ext,
10030 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10031 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10032 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10033 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10034
211a4f69
CV
100352002-01-22 Corinna Vinschen <vinschen@redhat.com>
10036
10037 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10038 parameter. Set frameless flag if it exists and depended of
10039 whether the scanned function is frameless or not.
10040 (xstormy16_skip_prologue): If function is frameless, return
10041 result of xstormy16_scan_prologue().
10042 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10043 call.
10044
f81353e4
EZ
100452002-01-21 Elena Zannoni <ezannoni@redhat.com>
10046
10047 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10048 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10049 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10050 sh_sh4_register_byte, sh_sh4_register_raw_size,
10051 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10052 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10053 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10054 sh_store_pseudo_register, sh_do_pseudo_register): Call
10055 gdbarch_tdep() just once, assign result to variable and use that,
10056 instead of calling the function several times.
10057
63c73a17
MK
100582002-01-20 Mark Kettenis <kettenis@gnu.org>
10059
10060 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10061 macros instead of LAST_FPU_CTRL_REGNUM.
10062 (store_register): Likewise.
10063
39ad761d
JB
100642002-01-21 Jim Blandy <jimb@redhat.com>
10065
10066 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10067 is up-to-date before running the program, not just when a program
10068 exits.
10069
3d74b771
FF
100702002-01-21 Fred Fish <fnf@redhat.com>
10071
10072 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10073 when we have found all instructions we are looking for.
10074
966fbf70
RE
100752002-01-21 Richard Earnshaw <rearnsha@arm.com>
10076
10077 * arm-tdep.c (arm_register_name): New function.
10078 (arm_registers_names): Make static.
10079 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10080 (arm_register_name): Declare.
10081 (REGISTER_NAME): Use it.
10082
c3b4394c
RE
100832002-01-21 Richard Earnshaw <rearnsha@arm.com>
10084 Kevin Buettner <kevinb@redhat.com>
10085
10086 Convert arm targets to new FRAME interface.
10087 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10088 (arm_frame_find_save_regs): Delete.
10089 (arm_frame_init_saved_regs): New.
10090 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10091 Allocate extra_info as required. Convert all uses of fsr.regs
10092 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10093 to use extra_info.
10094 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10095 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10096 (check_prologue_cache, save_prologue_cache): Likewise.
10097 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10098 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10099 (FRAME_FIND_SAVED_REGS): Delete.
10100 (arm_frame_find_saved_regs): Delete prototype.
10101 (arm_frame_init_saved_regs): New prototype.
10102 (FRAME_INIT_SAVED_REGS): Define.
10103
61d99182
AC
101042002-01-20 Andrew Cagney <ac131313@redhat.com>
10105
10106 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10107
6aaea291
AC
101082002-01-20 Andrew Cagney <ac131313@redhat.com>
10109
10110 From Jeff Law <law@redhat.com>:
10111 * infttrace.c: Include <sys/pstat.h>.
10112 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10113 exec file if the ttrace equivalent fails.
10114
15f698d2
AC
101152002-01-20 Andrew Cagney <ac131313@redhat.com>
10116
10117 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10118 (closeLogFile): Ditto.
10119
f86ddd7c
MC
101202002-01-20 Michael Chastain <mec@shout.net>
10121
10122 * top.c (print_gdb_version): Bump copyright year to 2002.
10123
904507ce
AC
101242002-01-20 Andrew Cagney <ac131313@redhat.com>
10125
10126 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10127 Zannoni and Eli Zaretskii.
10128
d7f0b9ce
DJ
101292002-01-20 Daniel Jacobowitz <drow@mvista.com>
10130
10131 * buildsym.c: Update copyright years.
10132 * c-typeprint.c: Likewise.
10133 * dwarf2read.c: Likewise.
10134 * f-typeprint.c: Likewise.
10135 * gdbtypes.c: Likewise.
10136 * gdbtypes.h: Likewise.
10137 * hp-symtab-read.c: Likewise.
10138 * hpread.c: Likewise.
10139 * mdebugread.c: Likewise.
10140 * p-typeprint.c: Likewise.
10141
3fd3d7d2
AC
101422002-01-20 Andrew Cagney <ac131313@redhat.com>
10143
10144 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10145 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10146 byte-order selectable.
10147 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10148 * arch-utils.c: Ditto.
10149 (set_endian): Ditto.
10150 (set_endian_from_file): Ditto.
10151 * gdbserver/low-sim.c (create_inferior): Ditto.
10152 * gdbarch.sh: Ditto.
10153 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10154 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10155 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10156 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10157 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10158 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10159 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10160 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10161 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10162 macro definition.
10163 * config/mips/tm-wince.h: Remove #undef of macro
10164 TARGET_BYTE_ORDER_SELECTABLE.
10165 * config/sh/tm-wince.h: Ditto.
10166
b02dede2
DJ
101672002-01-20 Daniel Jacobowitz <drow@mvista.com>
10168
10169 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10170 member function fields. Add accessor macro
10171 TYPE_FN_FIELD_ARTIFICIAL.
10172 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10173 * c-typeprint.c (c_type_print_base): Skip artificial member
10174 functions.
10175
c3643761
DJ
101762002-01-20 Daniel Jacobowitz <drow@mvista.com>
10177
10178 * f-typeprint.c: Delete unused function f_type_print_args.
10179 * p-typeprint.c: Delete unused function pascal_type_print_args.
10180
8176bb6d
DJ
101812002-01-20 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10184 comment. Add ``artificial'' to ``union field_location''.
10185
10186 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10187
10188 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10189 * mdebugread.c (parse_symbol): Likewise.
10190 * stabsread.c (define_symbol): Likewise.
10191 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10192 initializing TYPE_FIELD_BITPOS to n (obsolete).
10193 (hpread_doc_function_type): Likewise.
10194 * hpread.c (hpread_function_type): Likewise.
10195
7fd60527
AC
101962002-01-20 Andrew Cagney <ac131313@redhat.com>
10197
10198 * configure.in (host_makefile_frag): Only require a host makefile
10199 fragment when a native build.
10200 * configure: Re-generate.
10201
c2f05ac9
AC
102022002-01-20 Andrew Cagney <ac131313@redhat.com>
10203
10204 * doublest.h (floatformat_from_type): Declare.
10205 * doublest.c (floatformat_from_type): New function.
10206 (convert_typed_floating): Use.
10207
10208 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10209 call to function floatformat_from_type.
10210
10211 * gdbarch.sh (IEEE_FLOAT): Delete.
10212 * gdbarch.h, gdbarch.c: Re-generate.
10213 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10214 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10215 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10216 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10217 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10218 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10219 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10220 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10221 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10222 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10223 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10224 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10225
10226 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10227 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10228 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10229 * sh-tdep.c (sh_gdbarch_init): Ditto.
10230 * mips-tdep.c (mips_gdbarch_init): Ditto.
10231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10232 * cris-tdep.c (cris_gdbarch_init): Ditto.
10233
abf22e64
AJ
102342002-01-20 Jiri Smid <smid@suse.cz>
10235
10236 * configure.host, configure.tgt: Support x86-64.
10237 * NEWS: Note new target x86-64.
10238
b7c4cbf8
AJ
10239 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10240 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10241 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10242 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10243 x86-64-linux-nat.o): Fix dependencies.
10244
82600034
AC
102452002-01-19 Andrew Cagney <ac131313@redhat.com>
10246
10247 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10248 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10249 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10250 * config/sparc/xm-sun4os4.h: Delete file.
10251 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10252
bbe5c628
AC
102532002-01-19 Andrew Cagney <ac131313@redhat.com>
10254
10255 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10256 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10257 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10258 * config/i386/i386lynx.mh (XM_FILE): Delete.
10259 * config/rs6000/xm-rs6000ly.h: Delete file.
10260 * config/sparc/xm-sparclynx.h: Delete file.
10261 * config/m68k/xm-m68klynx.h: Delete file.
10262 * config/i386/xm-i386lynx.h: Delete file.
10263 * config/xm-lynx.h: Delete file.
10264 * config/djgpp/fnchange.lst: Update.
10265
f8453e34
JT
102662002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10267
10268 * alpha-tdep.c (alpha_register_byte): New function.
10269 (alpha_register_raw_size): Ditto.
10270 (alpha_register_virtual_size): Ditto.
10271 (alpha_skip_prologue_internal): Renamed from
10272 alpha_skip_prologue.
10273 (alpha_skip_prologue): New version that calls
10274 alpha_skip_prologue_internal.
10275 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10276 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10277 second argument from alpha_skip_prologue.
10278 (REGISTER_BYTE): Use alpha_register_byte.
10279 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10280 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10281 (FRAMELESS_FUNCTION_INVOCATION): Use
10282 generic_frameless_function_invocation_not.
10283 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10284 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10285
52d9e613
AC
102862002-01-19 Andrew Cagney <ac131313@redhat.com>
10287
10288 * config/mips/xm-news-mips.h: Delete file.
10289 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10290
10291 * config/m88k/xm-m88k.h: Delete file.
10292 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10293 * config/m88k/xm-delta88v4.h: Ditto.
10294 * config/m88k/xm-delta88.h: Ditto.
10295
10296 * config/alpha/xm-fbsd.h: Delete file.
10297 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10298
10299 * config/sparc/xm-sparc.h: Delete file.
10300 * Makefile.in (xm-sun4os4.h): Delete dependency.
10301 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10302 * config/sparc/xm-sun4os4.h: Ditto.
10303 * config/sparc/xm-linux.h: Ditto.
10304
10305 * config/i386/xm-windows.h: Delete file.
10306
2d1b2124
AC
103072002-01-19 Andrew Cagney <ac131313@redhat.com>
10308
10309 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10310 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10311
ee1f65f0
JT
103122002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10313
10314 * alpha-tdep.c (alpha_call_dummy_words): New.
10315 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10316 (CALL_DUMMY_P): Define.
10317 (CALL_DUMMY_WORDS): Define.
10318 (SIZEOF_CALL_DUMMY_WORDS): Define.
10319
98081e55
PB
103202002-01-19 Per Bothner <per@bothner.com>
10321
10322 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10323 isn't NULL, which can happen with some gcj-3.x-produced code.
10324
0d056799
JT
103252002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10326
10327 * alpha-tdep.c (alpha_register_virtual_type): New function.
10328 (alpha_init_frame_pc_first): Ditto.
10329 (alpha_fix_call_dummy): Ditto.
10330 (alpha_store_struct_return): Ditto.
10331 (alpha_extract_struct_value_address): Ditto.
10332 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10333 alpha_register_virtual_type.
10334 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10335 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10336 alpha_extract_struct_value_address.
10337 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10338 (INIT_FRAME_PC): Use init_frame_pc_noop.
10339 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10340
4604bcad
MK
103412002-01-19 Mark Kettenis <kettenis@gnu.org>
10342
10343 * i386gnu-nat.c: Include "i386-tdep.h".
10344 (fetch_fpregs): Simplify code dealing with uninitialized floating
10345 point states such that it doesn't require FP7_REGNUM.
10346
140f9984
JT
103472002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10348
abf22e64
AJ
10349 * alpha-tdep.c (frame_extra_info): New.
10350 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10351 frame->extra_info.
10352 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10353 (alpha_frame_saved_pc): Use frame->extra_info.
10354 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10355 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10356 (init_extra_frame_info): Rename to...
10357 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10358 (alpha_print_extra_frame_info): New function.
140f9984
JT
10359 (alpha_frame_locals_address): Ditto.
10360 (alpha_frame_args_address): Ditto.
abf22e64 10361 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10362 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10363 alpha_frame_args_address.
abf22e64 10364 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10365 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10366 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10367 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10368 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10369 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10370
d734c450
JT
103712002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10372
10373 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10374 (alpha_cannot_fetch_register): Ditto.
10375 (alpha_cannot_store_register): Ditto.
10376 (alpha_register_convertible): Ditto.
10377 (alpha_use_struct_convention): Ditto.
10378 * config/alpha/tm-alpha.h: Update copyright years.
10379 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10380 (INNER_THAN): Use core_addr_lessthan.
10381 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10382 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10383 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10384 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10385 (FRAME_CHAIN): Remove unnecessary cast.
10386
b4ceaee6
AC
103872002-01-18 Andrew Cagney <ac131313@redhat.com>
10388
10389 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10390 obsolete.
10391
0a65a603
AC
103922002-01-18 Andrew Cagney <ac131313@redhat.com>
10393
10394 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10395 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10396 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10397 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10398 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10399 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10400 * x86-64-linux-nat.c: Ditto.
10401
636a6dfc
JT
104022002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10403
abf22e64 10404 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10405 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10406 (REGISTER_NAME): Define.
10407
acceddb6
JT
104082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10409
10410 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10411
ec32e4be
JT
104122002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10413
10414 * alpha-tdep.c: Update copyright years.
10415 (alpha_next_pc): New function.
10416 (alpha_software_single_step): Ditto.
10417 * config/alpha/tm-alpha.h: Add prototype for
10418 alpha_software_single_step.
10419
e771a871
JT
104202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10421
10422 * alphabsd-nat.c: Update copyright years.
10423 (fill_gregset): Use regcache_collect.
10424 (fill_fpregset): Likewise.
10425 (fetch_inferior_registers): Only fetch integer registers
10426 if requested to do so.
10427 (store_inferior_registers): Only store integer registers
10428 if requested to do so.
10429
7708fa01
AC
104302002-01-17 Andrew Cagney <ac131313@redhat.com>
10431
10432 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10433 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10434 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10435 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10436 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10437 * config/arm/linux.mh (XDEPFILES): Delete.
10438 * config/arm/nbsd.mh (XDEPFILES): Delete.
10439 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10440 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10441 * config/i386/i386m3.mh (XDEPFILES): Delete.
10442 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10443 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10444 * config/i386/fbsd.mh (XDEPFILES): Delete.
10445 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10446 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10447 * config/i386/i386v4.mh (XDEPFILES): Delete.
10448 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10449 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10450 * config/i386/i386aix.mh (XDEPFILES): Delete.
10451 * config/i386/go32.mh (XDEPFILES): Delete.
10452 * config/i386/cygwin.mh (XDEPFILES): Delete.
10453 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10454 * config/i386/i386mach.mh (XDEPFILES): Delete.
10455 * config/i386/i386v32.mh (XDEPFILES): Delete.
10456 * config/i386/linux.mh (XDEPFILES): Delete.
10457 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10458 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10459 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10460 * config/i386/i386sco.mh (XDEPFILES): Delete.
10461 * config/i386/i386v.mh (XDEPFILES): Delete.
10462 * config/i386/nbsd.mh (XDEPFILES): Delete.
10463 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10464 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10465 * config/i386/symmetry.mh (XDEPFILES): Delete.
10466 * config/i386/obsd.mh (XDEPFILES): Delete.
10467 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10468 * config/ia64/linux.mh (XDEPFILES): Delete.
10469 * config/ia64/aix.mh (XDEPFILES): Delete.
10470 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10471 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10472 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10473 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10474 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10475 * config/m68k/linux.mh (XDEPFILES): Delete.
10476 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10477 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10478 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10479 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10480 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10481 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10482 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10483 * config/m88k/delta88.mh (XDEPFILES): Delete.
10484 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10485 * config/m88k/m88k.mh (XDEPFILES): Delete.
10486 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10487 * config/mips/linux.mh (XDEPFILES): Delete.
10488 * config/mips/irix6.mh (XDEPFILES): Delete.
10489 * config/mips/irix5.mh (XDEPFILES): Delete.
10490 * config/mips/irix4.mh (XDEPFILES): Delete.
10491 * config/mips/irix3.mh (XDEPFILES): Delete.
10492 * config/mips/decstation.mh (XDEPFILES): Delete.
10493 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10494 (NATDEPFILES): Move core-aout.o to here.
10495 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10496 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10497 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10498 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10499 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10500 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10501 * config/pa/hpux11.mh (XDEPFILES): Delete.
10502 * config/powerpc/aix.mh (XDEPFILES): Delete.
10503 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10504 * config/powerpc/linux.mh (XDEPFILES): Delete.
10505 * config/romp/rtbsd.mh: Rename XDEPFILES.
10506 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10507 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10508 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10509 * config/s390/s390.mh (XDEPFILES): Delete.
10510 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10511 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10512 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10513 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10514 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10515 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10516 * config/sparc/linux.mh (XDEPFILES): Delete.
10517 * config/vax/vaxult.mh (XDEPFILES): Delete.
10518 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10519 * Makefile.in (DEPFILES): Remove XDEPFILES.
10520
375fc983
AC
105212002-01-17 Andrew Cagney <ac131313@redhat.com>
10522
10523 * utils.c (internal_verror): Fix comments, default is yes not no.
10524 Update queries to match. Default to quit and dump core.
10525
8926118c
AC
105262002-01-17 Andrew Cagney <ac131313@redhat.com>
10527
10528 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10529 copyright.
10530 * defs.h, event-top.c, gdbcmd.h: Ditto.
10531 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10532 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10533 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10534 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10535 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10536 * mi/mi-main.c:Ditto.
10537
10538 * stack.c, symfile.c: Update copyright.
10539
45b7b345
DJ
105402002-01-17 Daniel Jacobowitz <drow@mvista.com>
10541
db728ff7
DJ
10542 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10543 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10544 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10545 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10546
db728ff7
DJ
105472002-01-17 Daniel Jacobowitz <drow@mvista.com>
10548
10549 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10550 * gdbserver/low-lynx.c (myattach): Likewise.
10551 * gdbserver/low-nbsd.c (myattach): Likewise.
10552 * gdbserver/low-sim.c (myattach): Likewise.
10553 * gdbserver/low-sparc.c (myattach): Likewise.
10554 * gdbserver/low-sun3.c (myattach): Likewise.
10555
10556 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10557
db728ff7 10558 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10559 (main): Handle "--attach".
10560
8de3c354
AC
105612002-01-16 Andrew Cagney <ac131313@redhat.com>
10562
10563 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10564 maintainer.
10565
b0129042
DJ
105662002-01-15 Daniel Jacobowitz <drow@mvista.com>
10567
10568 * c-typeprint.c (is_type_conversion_operator): Add additional
10569 check for non-conversion operators.
10570
ba8679fb 105712002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10572
10573 * linux-proc.c: Add "info proc" command, a la procfs.c.
10574 (read_mapping): New function, abstract and re-use code.
10575 (linux_find_memory_regions): Use new func read_mapping.
10576 (linux_info_proc_cmd): New function, implement "info proc".
10577 (_initialize_linux_proc): Add new command "info proc".
10578
e4f9b4d5
MS
105792002-01-15 Michael Snyder <msnyder@redhat.com>
10580
10581 * symfile.c (generic_load): Use bfd_map_over_sections method
10582 instead of manipulating bfd structure members directly.
10583 (add_section_size_callback): New function, bfd sections callback
10584 used by generic_load.
10585 (load_sections_callback): New function, bfd sections callback
10586 used by generic_load.
10587
08cf96df
EZ
105882002-01-15 Elena Zannoni <ezannoni@redhat.com>
10589
abf22e64 10590 [Based on work by Jim Blandy]
08cf96df
EZ
10591 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10592 (builtin_type_vec128): Export.
10593 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10594 types.
10595 (builtin_type_vec128): New builtin type for 128 bit vector
10596 registers.
10597 (build_gdbtypes): Initialize builtin_type_v16qi and
10598 builtin_type_v8hi. Create the vec128 register builtin type
10599 structure.
10600 (build_builtin_type_vec128): New function.
abf22e64 10601 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10602 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10603 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10604 AltiVec register to new builtin type.
10605
d7242108
DJ
106062001-01-15 Daniel Jacobowitz <drow@mvista.com>
10607
10608 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10609 to make_cv_type.
10610
4ee3352d
AC
106112002-01-14 Andrew Cagney <ac131313@redhat.com>
10612
10613 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10614 CLEAN_UP_REGISTER_VALUE.
10615 * regcache.c (supply_register): Update only call.
10616
f015b2e7
AC
106172002-01-14 Andrew Cagney <ac131313@redhat.com>
10618
10619 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10620 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10621 a29k-*-vxworks* targets as obsolete.
10622
356ae49d
MS
106232002-01-14 Michael Snyder <msnyder@redhat.com>
10624
10625 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10626 until we can resolve portability issues.
10627 * gregset.h: Remove references to fpxregs.
10628 * gcore.c (gcore_command): Initialize note_sec to NULL.
10629
ade8f45e
AC
106302002-01-13 Andrew Cagney <ac131313@redhat.com>
10631
10632 * signals.c (target_signal_to_name): Rewrite. Only use
10633 signals[].name when in bounds and non-NULL.
abf22e64 10634
89c49e7a
AC
106352002-01-13 Andrew Cagney <ac131313@redhat.com>
10636
10637 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10638 * signals.c (target_signal_to_name): Verify that SIG is within the
10639 bounds of the signals array.
10640
4daa9f9f
AC
106412002-01-13 Andrew Cagney <ac131313@redhat.com>
10642
10643 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10644
ba4bbdcb
KS
106452002-01-13 Keith Seitz <keiths@redhat.com>
10646
10647 * stack.c (print_frame_info_base): Print the frame's pc
10648 only if when print_frame_info_listing_hook is not defined.
10649
575bbeb6
KS
106502002-01-13 Keith Seitz <keiths@redhat.com>
10651
10652 * varobj.c (varobj_set_value): Make sure that there were no
10653 errors evaluating the object before attempting to set its
10654 value.
10655 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10656 so this offset adjustment is no longer necessary.
10657 (create_child): Don't set the error flag if the child is
10658 a CPLUS_FAKE_CHILD.
10659 (value_of_child): If value_fetch_lazy fails, return NULL
10660 so that callers will be notified that an error occurred.
10661 (c_value_of_variable): Delay check of variable's validity
10662 until later. We actually want all structs and unions to have
10663 the value "{...}".
10664 Do not return "???" for variables which could not be evaluated.
10665 This error condition must be returned to the caller so that it
10666 can get the error condition from gdb.
10667 (cplus_name_of_child): Adjust index for vptr before figuring
10668 out the name of the child.
10669 (cplus_value_of_child): If a child's (real) parent is not valid,
10670 don't even bother trying to give a value for it. Just return
10671 an error. Change all instances in this function.
10672 (cplus_type_of_child): If our parent is one of the "fake"
10673 parents, we need to get at the type of the real parent, and
10674 derive the child's true type using this information.
10675
b76898ab
AC
106762002-01-13 Andrew Cagney <ac131313@redhat.com>
10677
10678 From 2002-01-09 John Marshall <johnm@falch.net>:
10679 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10680 sources.redhat.com, and tweak some related URLs which had
10681 suffered from linkrot.
10682
b6649e88
AC
106832002-01-13 Andrew Cagney <ac131313@redhat.com>
10684
10685 From Jeff law:
10686 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10687 structures passed in registers.
10688
82cc5033
EZ
106892002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10690
10691 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10692 white space which prevented compilation. Reported by DSK
10693 <dsk@student.unsw.edu.au>.
10694
ba5f2f8a
MS
106952002-01-11 Michael Snyder <msnyder@redhat.com>
10696
fbd35540
MS
10697 * symfile.c (build_section_addr_info_from_section_tab):
10698 Use bfd access method instead of manipulating bfd directly.
10699 (syms_from_objfile): Ditto.
10700 (simple_overlay_update_1): Ditto.
10701 (simple_overlay_update): Ditto.
10702 (generic_load): Ditto.
10703 (overlay_unmapped_address): FIXME comment, bfd access methods.
10704 (sections_overlap): FIXME comment, bfd access methods.
10705 (pc_in_mapped_range): FIXME comment, bfd access methods.
10706 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10707 (section_is_mapped): FIXME comment, bfd access methods.
10708 (section_is_overlay): FIXME comment, bfd access methods.
10709
ba5f2f8a
MS
10710 * symfile.c (generic_load): Whitespace and long line cleanups.
10711 Remove duplicate variable, change several local variables to
10712 more appropriate data types.
10713 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10714
17df2af6
AC
107152002-01-12 Andrew Cagney <ac131313@redhat.com>
10716
10717 From Peter Schauer:
10718 * language.c (longest_local_hex_string_custom): Use phex_nz to
10719 convert NUM to a hex string.
10720
ec920329
EZ
107212002-01-12 Elena Zannoni <ezannoni@redhat.com>
10722
10723 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10724 the function.
538a76d6 10725 Update Copyright year.
ec920329 10726
3abd2e01
AC
107272002-01-12 Andrew Cagney <ac131313@redhat.com>
10728
10729 * language.c (longest_raw_hex_string): Delete unused function.
10730
b21b22e0
PS
107312002-01-11 Petr Sorfa <petrs@caldera.com>
10732
10733 * MAINTAINERS (write-after-approval): Add myself.
10734 * dwarf2read.c (read_tag_string_type): Handling of
10735 DW_AT_byte_size.
10736 (read_tag_string_type): FORTRAN fix to prevent propagation of
10737 first string size.
10738 (set_cu_language): Handling of DW_LANG_Fortran95
10739
747fe712
RE
107402002-01-11 Richard Earnshaw <rearnsha@arm.com>
10741
10742 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10743 GETPID(inferior_ptid).
10744 (store_inferior_registers): Likewise.
10745
f1bea926
JM
107462002-01-10 Jason Merrill <jason@redhat.com>
10747
10748 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10749 Fix DW_OP_minus.
10750
ae940673
AC
107512002-01-10 Andrew Cagney <ac131313@redhat.com>
10752
10753 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10754 and bfd/elf32-sh-nbsd.c.
10755
00546b04
MS
107562002-01-10 Michael Snyder <msnyder@redhat.com>
10757
352ed7b4
MS
10758 * NEWS: Mention --pid and corefile/proc-id behavior change.
10759
c18be923
MS
10760 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10761 * gcore.c: Include cli/cli-decode.h instead of command.h.
10762
00546b04
MS
10763 * main.c (captured_main): Add new command line option "--pid".
10764 If the second command line argument (following the symbol-file)
10765 begins with a digit, try to attach to it before trying to open
10766 it as a corefile.
10767 (print_gdb_help): Document the "--pid" argument.
10768
db60ec62
EZ
107692002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10770
10771 * completer.c (command_completer): New function.
10772
10773 * completer.h <command_completer>: Add prototype.
10774
10775 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10776 completer for the "help" command.
10777
39c22d1a
JM
107782002-01-09 Jason Merrill <jason@redhat.com>
10779
10780 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10781
c564377f
MS
107822002-01-09 Michael Snyder <msnyder@redhat.com>
10783
975aec09
MS
10784 * i386-linux-nat.c (fill_fpxregset): Make global.
10785 (store_fpxregset): Ditto.
10786
db4a10fa
MS
10787 * gregset.h (gdb_fpxregset_t): Define.
10788 (supply_fpxregset): Prototype.
10789 (fill_fpxregset): Prototype.
10790
c564377f
MS
10791 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10792
c3d45d70
RE
107932002-01-09 Richard Earnshaw <rearnsha@arm.com>
10794
10795 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10796 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10797 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10798
fcc87af1
AC
107992002-01-09 Andrew Cagney <ac131313@redhat.com>
10800
10801 * MAINTAINERS: Update target maintainer rules so that any
10802 Maintainer can approve a tested patch for a maintenance-only
10803 target.
10804
dd96c05b
RE
108052002-01-09 Richard Earnshaw <rearnsha@arm.com>
10806
d4297db9 10807 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10808
d4297db9 10809 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10810 IN_SIGTRAMP.
10811
145fdc6e
MS
108122002-01-08 Michael Snyder <msnyder@redhat.com>
10813
10814 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10815 real name of the executable, rather than the /proc name.
10816
be4d1333
MS
108172002-01-03 Michael Snyder <msnyder@redhat.com>
10818
10819 Implement a "generate-core-file" command in gdb, save target state.
10820 * gcore.c: New file. Implement new command 'generate-core-file'.
10821 Save a corefile image of the current state of the inferior.
10822 * linux-proc.c: Add linux-specific code for saving corefiles.
10823 * target.h (struct target_ops): Add new target vectors for saving
10824 corefiles; to_find_memory_regions and to_make_corefile_notes.
10825 (target_find_memory_regions): New macro.
10826 (target_make_corefile_notes): New macro.
10827 * target.c (update_current_target): Inherit new target methods.
10828 (dummy_find_memory_regions): New place-holder method.
10829 (dummy_make_corefile_notes): New place-holder method.
10830 (init_dummy_target): Initialize new dummy target vectors.
10831 * exec.c (exec_set_find_memory_regions): New function.
10832 Allow the exec_ops vector for memory regions to be taken over.
10833 (exec_make_note_section): New function, target vector method.
10834 * defs.h (exec_set_find_memory_regions): Export prototype.
10835 * procfs.c (proc_find_memory_regions): New function, corefile method.
10836 (procfs_make_note_section): New function, corefile method.
10837 (init_procfs_ops): Set new target vector pointers.
10838 (find_memory_regions_callback): New function.
10839 (procfs_do_thread_registers): New function.
10840 (procfs_corefile_thread_callback): New function.
10841 * sol-thread.c (sol_find_memory_regions): New function.
10842 (sol_make_note_section): New function.
10843 (init_sol_thread_ops): Initialize new target vectors.
10844 * inftarg.c (inftarg_set_find_memory_regions): New function.
10845 Allow to_find_memory_regions vector to be taken over.
10846 (inftarg_set_make_corefile_notes): New function.
10847 Allow to_make_corefile_notes vector to be taken over.
10848 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10849 interface layer if not target_has_execution (may be a corefile).
10850 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10851 * config/sparc/sun4sol2.mh: Ditto.
10852 * config/alpha/alpha-linux.mh: Ditto.
10853 * config/arm/linux.mh: Ditto.
10854 * config/i386/x86-64linux.mh: Ditto.
10855 * config/ia64/linux.mh: Ditto.
10856 * config/m68k/linux.mh: Ditto.
10857 * config/mips/linux.mh: Ditto.
10858 * config/powerpc/linux.mh: Ditto.
10859 * config/sparc/linux.mh: Ditto.
10860
c6b92abd
MS
108612002-01-07 Michael Snyder <msnyder@redhat.com>
10862
10863 * arm-linux-nat.c: Remove references to regcache.c internal data
10864 (registers[] and register_valid[]).
10865
4b09dc8c
MS
108662002-01-07 Michael Snyder <msnyder@redhat.com>
10867
abf22e64
AJ
10868 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10869 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10870 symbol file and shlibs.
10871 * Makefile.in: Add rule for linux-proc.o.
10872 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10873 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10874 * config/arm/linux.mh: Ditto.
10875 * config/i386/linux.mh: Ditto.
10876 * config/i386/x86-64linux.mh: Ditto.
10877 * config/ia64/linux.mh: Ditto.
10878 * config/m68k/linux.mh: Ditto.
10879 * config/mips/linux.mh: Ditto.
10880 * config/powerpc/linux.mh: Ditto.
10881 * config/sparc/linux.mh: Ditto.
10882
c25b74ac
PM
108832002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10884
10885 * win32-nat.c: Add i386-tdep.h dependency.
10886
94cd915f
MS
108872002-01-07 Michael Snyder <msnyder@redhat.com>
10888
c7cccb76
MS
10889 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10890 instead of bfd_get_arch_size. Don't bail out just because
10891 there's no exec_bfd.
abf22e64 10892
34c0bd93
MS
10893 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10894 * p-valprint.c (pascal_object_print_value): Ditto.
10895 * somread.c (som_symtab_read): Ditto.
10896 * symfile.c (simple_free_overlay_region_table): Ditto.
10897 * valops.c (value_assign): Ditto.
10898
21c1c920
MS
10899 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10900 use tilde_expand and strerror for opening save-tracepoints file.
10901
5bbd998e
MS
10902 * thread-db.c (thread_db_new_objfile): Indendation fix.
10903
94cd915f
MS
10904 * infptrace.c (GDB_MAX_ALLOCA): New define.
10905 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10906 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10907 can be overridden with whatever value is appropriate to the host).
10908 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10909 alloca to allocate potentially large buffer.
10910 * rs6000-nat.c (child_xfer_memory): Ditto.
10911 * symm-nat.c (child_xfer_memory): Ditto.
10912 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10913
494e8a93
JSC
109142002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10915
10916 From Nick Clifton <nickc@redhat.com>
10917 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10918
d0e1d48e
MS
109192002-01-07 Michael Snyder <msnyder@redhat.com>
10920
abf22e64 10921 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10922 Don't use exec_bfd if it's NULL.
10923
290b2c7a
MK
109242002-01-06 Mark Kettenis <kettenis@gnu.org>
10925
abf22e64 10926 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10927
aef21287
AC
109282002-01-06 Andrew Cagney <ac131313@redhat.com>
10929
10930 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10931 * gnu-nat.c: Ditto.
10932
30efa627
AC
109332002-01-06 Andrew Cagney <ac131313@redhat.com>
10934
10935 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10936 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10937 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10938 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10939 z8k-coff have not been multi-arched. Update z8k-coff build
10940 status.
10941
9b4ff276
AC
109422002-01-06 Andrew Cagney <ac131313@redhat.com>
10943
10944 * MAINTAINERS: Mark a29k target as obsolete.
10945 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10946 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10947 comments.
10948 * NEWS: Note that a29k targets are obsolete.
10949 * a29k-tdep.c: Mark as obsolete.
10950 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10951 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10952 a29k-*-vxworks* targets as obsolete.
10953 * remote-adapt.c: Obsolete.
10954 * remote-eb.c: Obsolete.
10955 * remote-mm.c: Obsolete.
10956 * remote-udi.c: Obsolete.
10957 * config/a29k/a29k-udi.mt: Obsolete.
10958 * config/a29k/a29k.mt: Obsolete.
10959 * config/a29k/tm-a29k.h: Obsolete.
10960 * config/a29k/tm-vx29k.h: Obsolete.
10961 * config/a29k/vx29k.mt: Obsolete.
10962
a9011d31
AC
109632002-01-05 Andrew Cagney <ac131313@redhat.com>
10964
10965 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10966 with BFD_ENDIAN_BIG.
10967
9299404e
AC
109682002-01-05 Andrew Cagney <ac131313@redhat.com>
10969
10970 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10971 * configure, config.in: Re-generate.
10972 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10973 * defs.h: Do not include <endian.h>.
10974
7e89e357
JT
109752002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10976
10977 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10978 * config.in: Regenerate.
10979 * configure.in: Update copyright years.
10980 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10981 * configure: Regenerate.
10982 * i386bsd-nat.c: Update copyright years.
10983 (fill_gregset): Use regcache_collect.
10984 (fetch_inferior_registers): Only fetch integer registers
10985 if requested to do so. Add support for XMM registers
10986 using PT_GETXMMREGS.
10987 (store_inferior_registers): Only store integer registers
10988 if requested to do so. Add support for XMM registers
10989 using PT_SETXMMREGS.
10990 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10991 (store_inferior_registers): Remove.
10992 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10993 (fetch_elfcore_registers): New function.
10994 (i386nbsd_elfcore_fns): New.
10995 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10996 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10997 i386bsd-nat.o.
10998 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10999 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11000 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11001 * config/i386/tm-nbsd.h: Update copyright years.
11002 (HAVE_SSE_REGS): Define.
11003 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11004 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11005 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11006 (SIGCONTEXT_PC_OFFSET): Remove.
11007 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11008
a752853e
AC
110092002-01-05 Andrew Cagney <ac131313@redhat.com>
11010
11011 * configure.tgt: Remove powerpc-*-macos* target.
11012 * config/m68k/xm-mpw.h: Delete file.
11013 * config/xm-mpw.h: Delete file.
11014 * ser-mac.c: Delete file.
11015 * mpw-make.sed: Delete file.
11016 * mpw-config.in: Delete file.
11017 * mac-xdep.c: Delete file.
11018 * mac-gdb.r: Delete file.
11019 * mac-defs.h: Delete file.
11020 * mac-nat.c: Delete file.
11021 * config/powerpc/macos.mh: Delete file.
11022 * config/powerpc/macos.mt: Delete file.
11023 * config/powerpc/nm-macos.h: Delete file.
11024 * config/powerpc/tm-macos.h: Delete file.
11025 * source.c (openp, open_source_file): Remove obsolete code.
11026 * top.c (gdb_readline): Ditto.
11027 * utils.c (query): Ditto.
11028 * event-top.c (display_gdb_prompt): Ditto.
11029 * Makefile.in (ser-mac.o): Delete obsolete target.
11030 * NEWS: Update.
11031
d7449b42
AC
110322002-01-04 Andrew Cagney <ac131313@redhat.com>
11033
11034 * defs.h (BIG_ENDIAN): Delete macro definition.
11035 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11036 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11037 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11038 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11039 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11040 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11041 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11042 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11043 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11044 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11045 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11046 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11047 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11048 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11049 * gdbarch.c: Re-generate.
11050
356374e8
DJ
110512002-01-04 Daniel Jacobowitz <drow@mvista.com>
11052
11053 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11054 for core files.
11055
a2b8f8f8
JT
110562002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11057
11058 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11059
12466af9
AC
110602002-01-04 Andrew Cagney <ac131313@redhat.com>
11061
11062 * value.h (value_ptr): Delete typedef.
11063
3549ab40
JT
110642002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11065
11066 * i386nbsd-nat.c: Update copyright years.
11067 Include i386-tdep.h.
11068
fedbd091
EZ
110692002-01-04 Elena Zannoni <ezannoni@redhat.com>
11070
11071 * stabsread.c: Update copyright years.
11072
11073 From Debashis Mahata <debashis.mahata@wipro.com>:
11074 (read_struct_fields): Deal with Sun C compiler erroneous stab
11075 output for structs and unions.
fec8b34f 11076 Fix PR gdb/269.
fedbd091 11077
eb43544b
DJ
110782002-01-04 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11081 prototype.
11082
1514d34e
DJ
110832002-01-04 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * cp-abi.c: Fix whitespace.
11086 (baseclass_offset): New wrapper function.
11087 * cp-abi.h (baseclass_offset): Add prototype.
11088 (struct cp_abi_ops): Add baseclass_offset pointer.
11089
11090 * valops.c (vb_match): Move to...
11091 * gnu-v2-abi.c (vb_match): here.
11092 * valops.c (baseclass_offset): Move to...
11093 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11094
11095 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11096
11097 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11098 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11099 * hpacc-abi.c (init_hpacc_ops): Likewise.
11100
7f8c9282
DJ
111012002-01-04 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * valops.c (find_overload_match): Accept obj as a
11104 reference parameter. Update it before returning.
11105 * value.h (find_overload_match): Update prototype.
11106 * eval.c (evaluate_subexp_standard): Pass object to
11107 find_overload_match by reference.
11108
f23631e4
AC
111092002-01-03 Andrew Cagney <ac131313@redhat.com>
11110
11111 * valarith.c: Replace value_ptr with struct value pointer. Remove
11112 register attribute from value declarations.
11113 * valops.c: Ditto.
11114 * value.h: Ditto.
11115 * scm-lang.c (scm_lookup_name): Ditto.
11116
79e10fab 111172002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11118
79e10fab
AC
11119 Abstract the functionality of iterating over mapped memory
11120 regions into a general purpose iterator function.
abf22e64 11121 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11122 iterator for memory sections.
11123 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11124 (solib_mappings_callback): New function, callback for above.
11125 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11126 (info_mappings_callback): New function, callback for above.
11127
11128 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11129
c5ad026a
MK
111302002-01-01 Mark Kettenis <kettenis@gnu.org>
11131
d2a7c97a
MK
11132 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11133 * i386-tdep.c: Include "elf-bfd.h".
11134 (process_note_abi_tag_sections): New function.
11135 (i386_gdbarch_init): Add code to recognize various OS/ABI
11136 combinations.
11137
c5ad026a
MK
11138 * maint.c (_initialize_maint_cmds): Add missing \ in
11139 string-literal.
11140
a1a5b71e 11141For older changes see ChangeLog-2001
c906108c
SS
11142\f
11143Local Variables:
11144mode: change-log
11145left-margin: 8
11146fill-column: 74
11147version-control: never
11148End:
This page took 1.162303 seconds and 4 git commands to generate.