Add myself to the Write After Approval list.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5b924b9b
AF
12002-09-18 Adam Fedor <fedor@gnu.org>
2
3 * MAINTAINERS: Add myself to the Write After Approval list.
4
5afc051b
JB
52002-09-18 Jim Blandy <jimb@redhat.com>
6
7 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
8 texthigh and textlow to reader-specific structs caused
9 objfile_relocate to miss them. This is fixable, but the work that
10 the change was supposed to prepare GDB for never got done anyway.
11
eb944380
DC
122002-09-18 David Carlton <carlton@math.stanford.edu>
13
14 * MAINTAINERS: Alphabetize Write After Approval list.
15
948e66d9
DJ
162002-09-18 Daniel Jacobowitz <drow@mvista.com>
17
18 Fix PR gdb/709
19 * values.c (value_static_field): Call read_var_value.
20
dc604539
AC
212002-09-18 Andrew Cagney <ac131313@redhat.com>
22
23 * valops.c (hand_function_call): Align the initial stack pointer
24 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
25 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
26 return value.
27 * mips-tdep.c (mips_frame_align): New function.
28 (mips_gdbarch_init): Set frame_align.
29 * gdbarch.sh (FRAME_ALIGN): New method.
30 * gdbarch.h, gdbarch.c: Re-generate.
31
cb7e422f
ML
322002-09-18 Michal Ludvig <mludvig@suse.cz>
33
34 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
35 registers.
36
a094c6fb
AC
372002-09-17 Andrew Cagney <ac131313@redhat.com>
38
39 * NEWS: Mention that MIPS $fp behavior changed.
40 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
41 reference to FP_REGNUM.
42 (mipsnbsd_cannot_store_register): Ditto.
43 * mips-linux-nat.c: Update copyright.
44 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
45 (mips_linux_cannot_store_register): Ditto.
46 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
47 * config/mips/tm-mips.h: Update copyright.
48 (FP_REGNUM): Delete macro.
49 (MIPS_REGISTER_NAMES): Replace "fp" with "".
50 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
51 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
52 (mips_r3041_reg_names, mips_r3051_reg_names)
53 (mips_r3081_reg_names): Replace "fp" with "".
54 Fix PR gdb/480.
55
45cf40d1
TR
562002-09-17 Theodore A. Roth <troth@verinet.com>
57
58 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
59 generic_read_register_dummy() (PR gdb/703).
60 (avr_push_return_address): #if 0 out unused vars.
61 (avr_gdbarch_init): Enable use of avr_push_return_address().
62
c7e701b5
MS
632002-09-17 Michael Snyder <msnyder@redhat.com>
64
d76ba2a5 65 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
66 RTE will take care of it.
67
20bcf01c
AC
682002-09-17 Andrew Cagney <ac131313@redhat.com>
69
70 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
71 invalid, return SP_REGNUM.
72
009a9971 732002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
74
75 * mips-tdep.c (mips_pop_frame): Read saved values of floating
76 point registers without sign extension.
77
135c175f
AC
782002-09-17 Andrew Cagney <cagney@redhat.com>
79
80 * blockframe.c (deprecated_read_register_dummy): Rename
81 generic_read_register_dummy.
82 * frame.c (frame_unwind_signed_register): New function.
83 (frame_unwind_unsigned_register): New function.
84 * frame.h (frame_unwind_signed_register): Declare.
85 (frame_unwind_unsigned_register): Declare.
86 (deprecated_read_register_dummy): Rename
87 generic_read_register_dummy.
88
89 * h8300-tdep.c (h8300_frame_chain): Update.
90 (h8300_frame_saved_pc): Update.
91 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
92 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
93 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
94 (s390_frame_chain): Update.
95 * v850-tdep.c (v850_find_callers_reg): Update.
96 (v850_frame_saved_pc): Update.
97 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
98 (m32r_find_callers_reg): Update.
99 (m32r_frame_saved_pc): Update.
100 * sh-tdep.c (sh_find_callers_reg): Update.
101 (sh64_get_saved_pr): Update.
102 (sh_init_extra_frame_info): Update.
103 (sh_init_extra_frame_info): Update.
104 (sh64_init_extra_frame_info): Update.
105 (sh64_init_extra_frame_info): Update.
106 * mcore-tdep.c (mcore_find_callers_reg): Update.
107 (mcore_frame_saved_pc): Update.
108 (mcore_init_extra_frame_info): Update.
109 * i386-tdep.c (i386_frame_saved_pc): Update.
110 * ia64-tdep.c (ia64_frame_saved_pc): Update.
111 (ia64_init_extra_frame_info): Update.
112 (ia64_init_extra_frame_info): Update.
113 * d10v-tdep.c (d10v_frame_saved_pc): Update.
114 * cris-tdep.c (cris_init_extra_frame_info): Update.
115 * avr-tdep.c (avr_frame_chain): Update.
116 (avr_init_extra_frame_info): Update.
117 (avr_frame_saved_pc): Update.
118 * arm-tdep.c (arm_find_callers_reg): Update.
119 (arm_init_extra_frame_info): Update.
120 (arm_frame_saved_pc): Update.
121
a741e514
TT
1222002-09-17 Tom Tromey <tromey@redhat.com>
123
124 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
125 is "'".
126
d1a8e808
CV
1272002-09-17 Corinna Vinschen <vinschen@redhat.com>
128
129 * MAINTAINERS: Remove "non multi-arched" text from h8300.
130 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
131 NEXT_PROLOGUE_INSN.
132 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
133 NEXT_PROLOGUE_INSN.
134
d9025a18
JB
1352002-09-16 Joel Brobecker <brobecker@gnat.com>
136
137 * osfsolib.c: Remove file, replaced by solib-osf.c.
138 * Makefile.in: Remove compilation rules for osfsolib.c.
139
1b2ef1b6
DC
1402002-09-16 David Carlton <carlton@math.stanford.edu>
141
142 * cp-valprint.c (cp_print_class_method): Correct args to
143 check_stub_method_group.
144
928e48af
CV
1452002-09-16 Corinna Vinschen <vinschen@redhat.com>
146
147 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
148 `set architecture'. Unify naming convention of functions.
149 (h8300_skip_prologue): Improve prologue analysis.
150 (h8300_push_arguments): Rewritten to more closely match GCC's
151 bizarre argument-passing behavior, along with the comment describing
152 said behavior.
153 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
154 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
155 sim, remote-e7000.c, remote-hms.c and remote.c
156
5e3397bb
MK
1572002-09-15 Mark Kettenis <kettenis@gnu.org>
158
159 * i386-tdep.c (gdb_print_insn_i386): Removed.
160 (i386_print_insn): New function.
161 (i386_gdbarch_init): Set print_insn to i386_print_insns.
162 (_initialize_i386_tdep): Don't initialize tm_print_insn and
163 tm_print_insn_info.
164
f710f4fc
MK
1652002-09-14 Mark Kettenis <kettenis@gnu.org>
166
167 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
168 zero.
169
db54fef4
CV
1702002-09-14 Corinna Vinschen <vinschen@redhat.com>
171
172 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
173 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
174 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
175
2becadee
CF
1762002-09-13 Christopher Faylor <cgf@redhat.com>
177
178 * win32-nat.c (child_create_inferior): Honor 'tty' command.
179
de17c821
DJ
1802002-09-13 Daniel Jacobowitz <drow@mvista.com>
181
182 * gdbtypes.c (check_stub_method): Make static.
183 (check_stub_method_group): New function.
184 * gdbtypes.h: Update prototypes.
185 * cp-support.c: New file.
186 * cp-support.h: New file.
187
188 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
189 (update_method_name_from_physname): New function.
190 (read_member_functions): Correct method names for operators
191 and v3 constructors/destructors. Separate v2 constructors and
192 destructors.
193 * Makefile.in (stabsread.o): Update dependencies.
194 (SFILES): Add cp-support.c.
195 (COMMON_OBS): Add cp-support.o.
196 (cp_support_h, cp-support.o): Add.
197
198 * cp-valprint.c (cp_print_class_method): Call
199 check_stub_method_group instead of check_stub_method. Remove
200 extraneous QUITs.
201 * p-valprint.c (pascal_object_print_class_method): Likewise.
202 * valops.c (search_struct_method): Likewise.
203 (find_method_list, value_struct_elt_for_reference): Likewise.
204
e76cff22
AC
2052002-09-13 Andrew Cagney <cagney@redhat.com>
206
207 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
208 * gdbarch.h, gdbarch.c: Regenerate.
209
905abb3f
AC
2102002-09-13 Andrew Cagney <ac131313@redhat.com>
211
212 * frame.c (find_saved_register): Delete function.
213 * frame.h (find_saved_register): Delete declaration.
214 Fix PR gdb/631.
215
64159455
AC
216Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
217
218 * mips-tdep.c (read_next_frame_reg): Re-hack using
219 frame_register_unwind.
220
795e1e11
AC
221Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
222
223 * mips-tdep.c (mips_get_saved_register): Re-hack using
224 frame_register_unwind.
225
5720643c
JB
2262002-09-12 Joel Brobecker <brobecker@gnat.com>
227
228 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
229 vector. Will be useful for Interix.
230 * gdbarch.h, gdbarch.c: Regenerate.
231
232 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
233 name of the malloc function by NAME_OF_MALLOC.
234
3bada2a2
JB
2352002-09-12 Joel Brobecker <brobecker@gnat.com>
236
237 * value.h (find_function_in_inferior): Add const keyword to
238 one of the parameters. Allows us to invoke this function with
239 a const char *.
240 * valops.c (find_function_in_inferior): Likewise.
241
3db26b01
JB
2422002-09-12 Joel Brobecker <brobecker@gnat.com>
243
244 * exec.c (xfer_memory): Fix compilation warning with old versions
245 of GCC.
246 * tracepoint.c (trace_find_tracepoint_command): Likewise.
247
17c5ed2c
DC
2482002-09-12 David Carlton <carlton@math.stanford.edu>
249
250 * symtab.h: Run through gdb_indent.h.
251 Add 2002 to Copyright year list.
252
ecd1107e
AM
2532002-09-12 Alan Modra <amodra@bigpond.net.au>
254
255 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
256 mach constants.
257 * MAINTAINERS: Add myself to write after approval list.
258
e64f66d1
JB
2592002-09-11 J. Brobecker <brobecker@gnat.com>
260
261 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
262
f9395794
JB
2632002-09-11 J. Brobecker <brobecker@gnat.com>
264
265 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
266 Interix.
267
1a303dec
MS
2682002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
269
270 * procfs.c (do_detach): Clear current signal, not just fault.
271 Corrects problem with breakpoint trap signal leaking to detached
272 process on Tru64.
273
c0219d42
MS
2742002-09-10 Michael Snyder <msnyder@redhat.com>
275
276 * buildsym.c (finish_block): Protect against null pointer.
277
9d84ac84
AC
2782002-09-10 Andrew Cagney <cagney@redhat.com>
279
280 * infcmd.c (default_print_registers_info): Send all output to
281 ``file'' instead of ``gdb_stdout''.
282
77d8f2b4
MS
2832002-09-10 Michael Snyder <msnyder@redhat.com>
284
285 * mips-tdep.c (mips_extract_struct_value_address): Make val a
286 LONGEST, and use signed register read (addresses are sign-
287 extended for mips).
288
99656a61
SC
2892002-09-10 Stephane Carrez <stcarrez@nerim.fr>
290
291 * event-loop.c (gdb_do_one_event): Make public.
292 * event-loop.h (gdb_do_one_event): Declare.
293
da12f4d8
JL
2942002-09-10 Jeff Law <law@redhat.com>
295
296 * infttrace.c (child_resume): Simplify and rework to avoid
297 TT_PROC_CONTINUE.
298
d0aee0c4
FF
2992002-09-09 Fred Fish <fnf@intrinsity.com>
300
301 * printcmd.c (print_scalar_formatted): "len" is the number of
302 target bytes, NOT the number of target bits.
303
7cb3ec5e
EZ
3042002-09-09 Elena Zannoni <ezannoni@redhat.com>
305
306 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
307 * top.c (init_main): Set rl_terminal_name.
308
4dc81987
AS
3092002-09-08 Aidan Skinner <aidan@velvet.net>
310
311 * ada-lang.c (ada_array_bound, ada_type_match,
312 _initialize_ada_language): Fix K&R definitions.
313 * ada-tasks.c (get_current_task): Fix K&R definitions.
314 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
315
842330b4
CF
3162002-09-07 Christopher Faylor <cgf@redhat.com>
317
318 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
319 Add XP.
320
43156d82
MK
3212002-09-06 Mark Kettenis <kettenis@gnu.org>
322
66da5fd8
MK
323 * i386-tdep.c (i386_register_virtual_type,
324 i386_register_convertible, i386_register_convert_to_virtual,
325 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
326 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
327 (i386_gdbarch_init): Fix comment. Add comments on calls that set
328 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
329 Don't set push_arguments twice.
330
4b218c18
MK
331 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
332 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
333 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
334 sigtramp_end to NULL.
335 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
336 defines.
337 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
338
4cc314d5
MK
339 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
340 whitespace.
341
43156d82
MK
342 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
343 * gdbarch.h, gdbarch.c: Re-generate.
344 * blockframe.c (find_pc_sect_partial_function): Convert to use
345 SIGTRAMP_START_P predicate.
346
6672060b
MS
3472002-09-05 Michael Snyder <msnyder@redhat.com>
348
a90c3637
MS
349 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
350 generic_dummy_frame method and old method. Also distinguish
351 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 352 (arm_extract_return_value): Use new regcache method.
a90c3637 353
6672060b
MS
354 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
355 adjustment that doesn't conform to the ABI.
356 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
357 saved regcache, not from current regcache.
358
299ffc64
AC
3592002-09-05 Andrew Cagney <ac131313@redhat.com>
360
361 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
362 * README: Update.
363
a3a2ee65
JT
3642002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
365
366 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
367 if arm_apcs_32 is false.
368
2bc7eea9
AC
3692002-09-04 Andrew Cagney <ac131313@redhat.com>
370
371 GDB 5.3 branch created.
372
8a55a7c5
TR
3732002-09-03 Theodore A. Roth <troth@verinet.com>
374
375 * gdb/avr-tdep.c (avr_gdbarch_init): Use
376 generic_unwind_get_saved_register.
377
e26fb1d7
DC
3782002-09-03 David Carlton <carlton@math.stanford.edu>
379
380 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
381 argument (PR gdb/653). Update call to smash_to_method_type.
382 (read_structure_scope): Update call to dwarf2_add_member_fn.
383
30d52491
ML
3842002-09-03 Michal Ludvig <mludvig@suse.cz>
385
386 * x86-64-linux-tdep.c: Include gdb_string.h
387 * x86-64-linux-nat.c: Ditto.
388
06891d83
JT
3892002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
390
391 * ada-exp.y (yyname, yyrule): Remap global variables that appear
392 when YYDEBUG is set to 1.
393 * c-exp.y: Likewise.
394 * f-exp.y: Likewise.
395 * jv-exp.y: Likewise.
396 * m2-exp.y: Likewise.
397 * p-exp.y: Likewise.
398
7d400e77
JT
3992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
400
401 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
402 dependency list.
403 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
404 solib_svr4_fetch_link_map_offsets to
405 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
406 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
407 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
408 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
409 solib-svr4.o, and solib-legacy.o.
410 * config/i386/tm-nbsd.h: Include solib.h.
411
704a27c4
JT
4122002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
413
414 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
415 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
416 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
417 comment noting that this needs its own target configuration.
418 * config/i386/nbsd.mt: New file.
419 * config/i386/nbsdaout.mt: Remove.
420 * config/i386/nbsdelf.mt: Ditto.
421 * config/i386/tm-nbsdaout.h: Ditto.
422
d66198e1
JT
4232002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
424
425 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
426 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
427 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
428 tdep->sigtramp_end.
429 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
430 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
431 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
432
3cac699e
JT
4332002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
434
435 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
436 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
437 * i386-tdep.h (i386bsd_init_abi): New prototype.
438 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
439 function declaration.
440 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
441 for NetBSD-a.out or NetBSD-ELF.
442 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
443 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
444 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
445 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
446 and nbsd-tdep.h.
447 (i386nbsd_pc_in_sigtramp): New function.
448 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
449 i386nbsd_pc_in_sigtramp.
450 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
451 and i386nbsdelf_init_abi OS ABI handlers.
452 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
453 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
454
7010ca0a
MK
4552002-09-02 Mark Kettenis <kettenis@gnu.org>
456
457 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
458 registers if the target really has them.
459
6dd93b72
JT
4602002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
461
462 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
463 than nbsd-tdep.h.
464
2ca8ae21
JT
4652002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
466
467 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
468 list.
469 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
470 (alphanbsd_skip_sigtramp_frame): New functions.
471 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
472 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
473 to alphanbsd_sigcontext_addr.
474
3d9b49b0
JT
4752002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
476
477 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
478 list.
479 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
480 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
481 nbsd_pc_in_sigtramp.
482 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
483 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
484 * nbsd-tdep.c: Include gdb_string.h.
485 (nbsd_pc_in_sigtramp): New function.
486 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
487 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
488 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
489 ppcnbsd_pc_in_sigtramp.
490 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
491 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
492 shnbsd_pc_in_sigtramp.
493 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
494 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
495 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
496
c860120c
PM
4972002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
498
499 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
500 watchpoints to NULL.
501 (insert_breakpoints): set val field of watchpoints if NULL.
502
503
c7612d53
JB
5042002-08-29 Jim Blandy <jimb@redhat.com>
505
506 * symtab.c (lookup_symbol_aux): In the cases where we find a
507 minimal symbol of an appropriate name and use its address to
508 select a symtab to read and search, use `name' (as passed to us)
509 as the demangled name when searching the symtab's global and
510 static blocks, not the minsym's name.
511
66609862
KS
5122002-08-29 Keith Seitz <keiths@redhat.com>
513
514 * stack.c (print_frame_info_base): Always set current_source_symtab
515 and current_source_line.
516
151fefe2
JB
5172002-08-29 Donn Terry <donnte@microsoft.com>
518
519 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
520
bfb3754e
KS
5212002-08-28 Keith Seitz <keiths@redhat.com>
522
523 * stack.c (select_frame): Add FIXME concerning selected-frame
524 events.
525 (select_frame_command): Send selected-frame-level-changed
526 event notification, but only if the level actually changed.
527 (up_silently_base): Add selected-frame-level-changed event
528 notification.
529 (down_silently_base): Likewise.
530
e822a2a0
AC
5312002-08-28 Andrew Cagney <ac131313@redhat.com>
532
533 * Makefile.in: Update dependencies for all gdb/*.c files.
534
309367d4
TT
5352002-08-27 Tom Tromey <tromey@redhat.com>
536
537 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
538 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
539 Update dependencies.
540 * i387-tdep.c: Include gdb_string.h.
541 * osabi.c: Likewise.
542 * i386-linux-nat.c: Likewise.
543 * lin-lwp.c: Likewise.
544 * ax-gdb.c: Likewise.
545 * signals/signals.c: Likewise.
546 * jv-valprint.c: Likewise.
547 * p-lang.c: Likewise.
548 * c-valprint.c: Likewise.
549 * cp-abi.c: Likewise.
550
e1507482
EZ
5512002-08-27 Elena Zannoni <ezannoni@redhat.com>
552
553 * cli/cli-script.h (copy_command_lines): Export.
554 * breakpoint.c: Include cli/cli-script.h.
555 * Makefile.in (breakpoint.o): Update dependencies.
556
c6510018
MS
5572002-08-26 Michael Snyder <msnyder@redhat.com>
558
559 * breakpoint.c (insert_breakpoints): Protect all references
560 to 'process_warning'. Shorten long lines.
561
c2b8ed2c
MS
5622002-08-26 Joel Brobecker <brobecker@gnat.com>
563
564 * cli/cli-script.c (copy_command_lines): New function.
565 * defs.h (copy_command_lines): Export.
566 * testsuite/gdb.base/commands.exp: New tests for commands
567 attached to a temporary breakpoint, and for commands that
568 delete the breakpoint they are attached to.
569
5702002-08-26 Michael Snyder <msnyder@redhat.com>
571
572 * breakpoint.c (bpstat_stop_status): Instead of copying the
573 pointer to the breakpoint commands struct, make a new copy
574 of the struct and point to that.
575 (bpstat_clear): Free the commands struct.
576 (bpstat_clear_actions): Free the commands struct.
577 (bpstat_do_actions): Free the command actions. Also execute
578 the local cleanups, instead of deleting them.
579 (delete_breakpoint): Leave the commands field of the bpstat
580 chain alone -- it will be freed later.
581
64b84175
KB
5822002-08-26 Kevin Buettner <kevinb@redhat.com>
583
584 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
585 deleted in 2002-08-20 commit. This function is still used by
586 ppc-linux-nat.c.
587
55970da6
KS
5882002-08-26 Keith Seitz <keiths@redhat.com>
589
590 * gdb-events.sh: Add selected-frame-level-changed event.
591 * gdb-events.c: Regenerated.
592 * gdb-events.h: Regenerated.
593
a790ad35
SC
5942002-08-26 Stephane Carrez <stcarrez@nerim.fr>
595
596 Fix PR gdb/393:
597 * inflow.c (terminal_save_ours): New function to save terminal
598 settings.
599 * inferior.h (terminal_save_ours): Declare.
600 * target.c (debug_to_terminal_save_ours): New function.
601 (cleanup_target): Defaults to_terminal_save_ours.
602 (update_current_target): Inherit to_terminal_save_ours.
603 (setup_target_debug): Set to_terminal_save_ours.
604 * target.h (target_terminal_save_ours): New to save terminal settings.
605 (target_ops): New member to_terminal_save_ours.
606 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
607 * hpux-thread.c (init_hpux_thread_ops): Likewise.
608 * inftarg.c (init_child_ops): Likewise.
609 * m3-nat.c (init_m3_ops): Likewise.
610 * procfs.c (init_procfs_ops): Likewise.
611 * wince.c (init_child_ops): Likewise.
612 * win32-nat.c (init_child_ops): Likewise.
613 * sol-thread.c (init_sol_thread_ops): Likewise.
614
c00dcbe9
MK
6152002-08-26 Mark Kettenis <kettenis@gnu.org>
616
3d7f4f49
MK
617 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
618 use regcache_* functions.
619 (i386_gdbarch_init): Set store_return_value instead of
620 deprecated_store_return_value.
621
c00dcbe9
MK
622 * regcache.c (regcache_raw_write_signed,
623 regcache_raw_write_unsigned): New functions.
624 * regcache.h (regcache_raw_write_signed,
625 regcache_raw_write_unsigned): New prototypes.
626
0e0d15ca
AC
6272002-08-25 Andrew Cagney <ac131313@redhat.com>
628
629 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
630 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
631 source file dependencies. Cleanup corresponding generator rules.
632
d3b22ed5
AC
6332002-08-25 Andrew Cagney <ac131313@redhat.com>
634
635 * regcache.h (register_offset_hack): Declare.
636 (regcache_cooked_read_using_offset_hack): Declare.
637 (regcache_cooked_write_using_offset_hack): Declare.
638
639 * regcache.c (register_offset_hack): New function.
640 (regcache_cooked_read_using_offset_hack): New function.
641 (regcache_cooked_write_using_offset_hack): New function.
642 (regcache_dump): Check that the registers, according to their
643 offset, are packed hard against each other.
644 (cooked_xfer_using_offset_hack): New function.
645
bb425013
AC
6462002-08-25 Andrew Cagney <ac131313@redhat.com>
647
648 * regcache.c (struct regcache_descr): Add field register_type.
649 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
650 in as a parameter
651 (init_regcache_descr): Initialize register_type. Pass the descr
652 to init_legacy_regcache_descr. Use register_type instead of
653 REGISTER_VIRTUAL_TYPE.
654 (register_type): New function.
655 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
656 * regcache.h (register_type): Declare.
657
d0403e00
AC
6582002-08-25 Andrew Cagney <ac131313@redhat.com>
659
660 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
661 instead of deprecated_store_return_value. Fix fallout from
662 2002-08-23 Andrew Cagney <cagney@redhat.com>.
663
0ed04cce
AC
6642002-08-25 Andrew Cagney <ac131313@redhat.com>
665
666 * regcache.c (max_register_size): New function.
667 (init_legacy_regcache_descr): Ensure that max_register_size is
668 large enough for REGISTER_VIRTUAL_SIZE.
669 * regcache.h (max_register_size): Declare.
670
46d79c04
AC
6712002-08-24 Andrew Cagney <ac131313@redhat.com>
672
673 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
674 store_return_value.
675 (e500_extract_return_value): Change type of valbuf pointer to
676 void.
677
853c7bd0
MK
6782002-08-24 Mark Kettenis <kettenis@gnu.org>
679
cd87e769
MK
680 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
681 workaround.
682
853c7bd0
MK
683 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
684 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
685 long long) to prevent compiler warning on 64-bit systems.
686
ebba8386
AC
6872002-08-23 Andrew Cagney <cagney@redhat.com>
688
689 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
690 (DEPRECATED_STORE_RETURN_VALUE): New method.
691 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
692 * gdbarch.h, gdbarch.c: Re-generate.
693
694 * values.c (set_return_value): Pass current_regcache to
695 STORE_RETURN_VALUE.
696 * arch-utils.h (legacy_store_return_value): Declare.
697 * arch-utils.c (legacy_store_return_value): New function.
698 (legacy_extract_return_value): Update parameters.
699
700 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
701 STORE_RETURN_VALUE.
702 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
703 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
704 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
705 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
706 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
707 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
708 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
709 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
710 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
711 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
712
713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
714 * i386-tdep.c (i386_extract_return_value): Update.
715 * arch-utils.c (legacy_extract_return_value): Update.
716 * frv-tdep.c (frv_gdbarch_init): Update.
717 * cris-tdep.c (cris_gdbarch_init): Update.
718 * d10v-tdep.c (d10v_gdbarch_init): Update.
719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
720 * m68k-tdep.c (m68k_gdbarch_init): Update.
721 * mcore-tdep.c (mcore_gdbarch_init): Update.
722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
723 * s390-tdep.c (s390_gdbarch_init): Update.
724 * sparc-tdep.c (sparc_gdbarch_init): Update.
725 * sh-tdep.c (sh_gdbarch_init): Update.
726 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
727 * v850-tdep.c (v850_gdbarch_init): Update.
728 * avr-tdep.c (avr_gdbarch_init): Update.
729 * ia64-tdep.c (ia64_gdbarch_init): Update.
730 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
731 * vax-tdep.c (vax_gdbarch_init): Update.
732 * alpha-tdep.c (alpha_gdbarch_init): Update.
733 * arm-tdep.c (arm_gdbarch_init): Update.
734 * mips-tdep.c (mips_gdbarch_init): Update.
735 * i386-tdep.c (i386_gdbarch_init): Update.
736
5bd8c6d0
AC
7372002-08-23 Andrew Cagney <ac131313@redhat.com>
738
739 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
740 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
741
e73e1724
MK
7422002-08-24 Mark Kettenis <kettenis@gnu.org>
743
744 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
745 problems.
746
3e6564e1
JB
7472002-08-23 Joel Brobecker <brobecker@gnat.com>
748
749 * infrun.c (handle_inferior_event): Move a comment outside of a
750 function call, in order to avoid indent reformatting this part
751 of the code in an unreadable way.
752
81d0cc19
GS
7532002-08-23 Grace Sainsbury <graces@redhat.com>
754
755 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
756 when breakpoints fail. Move general breakpoint error messages to
757 insert_breakpoints.
758 * breakpoint.c (insert_breakpoints): Change warnings when
759 breakpoints are nto inserted to specify the type. Remove call to
760 memory_error when hardware breakpoints can't be inserted. Remove
761 multiple calls to warning so all messages are sent to the user at
762 once.
763 (delete_breakpoints): Make insert error messsages more explicit.
764
17574093
DJ
7652002-08-23 Daniel Jacobowitz <drow@mvista.com>
766
767 * ChangeLog: Move gdbserver entries after GDB 5.2 to
768 gdbserver/ChangeLog.
769
8acc2935
MK
7702002-08-23 Mark Kettenis <kettenis@gnu.org>
771
dfe01d39
MK
772 * i386-tdep.c: Include "objfiles.h".
773 (i386_svr4_init_abi): Set in_solib_call_trampoline and
774 skip_trampoline_code.
775 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
776 (CPLUS_MARKER): Define to '.'.
777
8acc2935
MK
778 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
779 member.
780 (linux_corefile_thread_callback): Increase args->num_notes.
781 (linux_make_note_section): Initialize thread_args.num_notes, and
782 use it to determine whether notes for any threads were created.
783
151fefe2 7842002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
785
786 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
787 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
788 and PCUNKILL.
789 (write_with_trace): Conditionalize out the switch branch handling
790 PCSHOLD if the corresponding macro is not defined. Likewise for
791 PRSABORT and PRSTOP.
792 This change will be needed by the Interix port.
793
e1507482
EZ
7942002-08-22 Elena Zannoni <ezannoni@redhat.com>
795
796 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
797 write_register wherever possible instead of manipulating the
798 register bytes directly.
799 Assign VALUE_CONTENTS to a variable and use that.
800 The GPR numbers are now dependent on the architecture.
801
96ff0de4
EZ
8022002-08-22 Elena Zannoni <ezannoni@redhat.com>
803
804 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
805 ev_offset fields.
806 (skip_prologue): Add support for BookE/e500 instructions.
807 (e500_extract_return_value): New function.
808 (frame_get_saved_regs): Add support for saving ev registers and
809 pseudo gpr's.
810 (e500_store_return_value): New function.
811 (rs6000_gdbarch_init): Move up default intializations of
812 deprecated_extract_return_value and store_return_value. Overwrite
813 init of store_return_value with e500 specific version.
814 Set extract_return_value for e500.
815
fbefca5b
EZ
8162002-08-22 Elena Zannoni <ezannoni@redhat.com>
817
818 * blockframe.c (generic_call_dummy_register_unwind): Use
819 regcache_cooked_read to catch cases in which the variable is
820 stored in a pseudo register.
821
4d210288
AC
8222002-08-22 Andrew Cagney <cagney@redhat.com>
823
824 * NEWS: Mention that the i960 has been made obsolete.
825 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
826 i960-tdep.c
827 (remote-nrom.o): Obsolete target.
828 (remote-nindy.o, i960-tdep.o): Ditto.
829 * remote-nrom.c: Make file obsolete.
830 * remote-nindy.c, remote-vx960.c: Ditto.
831 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
832 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
833 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
834 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
835 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
836 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
837 i960-*-vxworks* obsolete.
838 * MAINTAINERS: Note that the i960 is obsolete.
839
6c0c456d
CV
8402002-08-21 Corinna Vinschen <vinschen@redhat.com
841
842 * aix-thread.c (aix_thread_detach): Disable thread debugging on
843 detach to allow reinitialization.
844
9f9d12b3
AC
8452002-08-22 Andrew Cagney <ac131313@redhat.com>
846
847 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
848 attempt).
849
ebeb39fe
JB
8502002-08-22 Jim Blandy <jimb@redhat.com>
851
852 * coffread.c (coff_symfile_read): Don't try to read the line
853 number table from disk if the image file doesn't have a symbol
854 table; we'll never actually look at the info anyway, and Windows
855 ships DLL's with bogus file offsets for the line number data.
856
5bf1c677
EZ
8572002-08-21 Elena Zannoni <ezannoni@redhat.com>
858
859 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
860 an e500 executable.
861
71b8ef93
MS
8622002-08-21 Michael Snyder <msnyder@redhat.com>
863
864 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
865 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
866 (DEFAULT_MIPS_TYPE): Delete unused macro.
867 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
868 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 869
d174216d
JB
8702002-08-21 Jim Blandy <jimb@redhat.com>
871
872 * valops.c (value_cast): Simplify and correct logic for doing a
873 static cast from a pointer to a base class to a pointer to a
874 derived class.
875
0ab7a791
AC
8762002-08-21 Andrew Cagney <ac131313@redhat.com>
877
878 * infcmd.c (default_print_registers_info): Replace
879 do_registers_info.
880 (registers_info): Use gdbarch_print_registers_info instead of
881 DO_REGISTERS_INFO.
882 * inferior.h (default_print_registers_info): Replace
883 do_registers_info.
884 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
885 (DO_REGISTERS_INFO): Change to a predicate function.
886 * gdbarch.h, gdbarch.c: Regenerate.
887
e23792cc
KS
8882002-08-21 Keith Seitz <keiths@redhat.com>
889
890 * gdb-events.sh: Add target-changed event.
891 * gdb-events.c: Regenerated.
892 * gdb-events.c: Regenerated.
893 * valops.c (value_assign): Add target-changed event notification
894 to inlval_register, lval_memory, and lval_reg_frame_relative.
895
9fb14e79
JB
8962002-08-21 Joel Brobecker <brobecker@gnat.com>
897
898 * NEWS: Add an entry regarding the improvement of the next/step
899 operation on Alpha Tru64 multi-processor machines.
900
6d39a69f
AC
9012002-08-21 Andrew Cagney <ac131313@redhat.com>
902
72acd513
AC
903 * Makefile.in: Update dependencies for mi/ cli/ and tui/
904 directores.
342af04b 905 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
906 * Makefile.in (install-gdbtk): Move to install section.
907 (rdi-share/libangsd.a): Move to end of file.
908
fa5f27c7
AC
9092002-08-19 Andrew Cagney <ac131313@redhat.com>
910
911 * frame.c (frame_register_unwind): When a register, set addrp to
912 the register's byte.
913
5a89d8aa
MS
9142002-08-20 Michael Snyder <msnyder@redhat.com>
915
916 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
917 used locally, so move them from the target machine header to here.
918 (mips_set_processor_type, mips_register_name, mips32_next_pc,
919 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
920 Make static.
921 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
922
822e978b
AC
9232002-08-20 Andrew Cagney <cagney@redhat.com>
924
925 * NEWS: Mention that the Apollo line was made obsolete.
926 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
927 m68*-hp-hpux* obsolete.
928 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
929 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
930 * buildsym.c (make_blockvector): Make static.
931 * buildsym.h (make_blockvector): Make extern declaration obsolete.
932 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
933 (ALLDEPFILES): Remove dstread.c.
934 (dstread.o): Obsolete make rule.
935 * dstread.c: Makefile obsolete.
936 * dst.h: Ditto.
937 * config/m68k/hp300hpux.mt: Ditto.
938 * config/m68k/hp300hpux.mh: Ditto.
939 * config/m68k/hp300bsd.mt: Ditto.
940 * config/m68k/hp300bsd.mh: Ditto.
941 * config/m68k/apollo68b.mt: Ditto.
942 * config/m68k/apollo68v.mh: Ditto.
943 * config/m68k/apollo68b.mh: Ditto.
944
e41b17f0
MS
9452002-08-20 Michael Snyder <msnyder@redhat.com>
946
947 * mips-tdep.c (mips_in_return_stub): Make static.
948 (mips_gdbarch_init): Set in_solib_return_trampoline.
949 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
950
d50355b6
MS
9512002-08-20 Michael Snyder <msnyder@redhat.com>
952
953 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
954 * gdbarch.c, gdbarch.h: Regenerate.
955 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
956 Add.
957 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
958
757a7cc6
MS
9592002-08-20 Michael Snyder <msnyder@redhat.com>
960
961 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
962 (mips_gdbarch_init): Set skip_trampoline_code,
963 in_solib_call_trampoline.
964 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
965 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
966
c8001721
EZ
9672002-08-20 Elena Zannoni <ezannoni@redhat.com>
968
969 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
970
971 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
972 vector type for ev registers.
973 (e500_pseudo_register_read): New function.
974 (e500_pseudo_register_write): New function.
975 (e500_dwarf2_reg_to_regnum): New function.
976 (PPC_UISA_NOFP_SPRS): New macro.
977 (PPC_EV_REGS): New macro.
978 (PPC_GPRS_PSEUDO_REGS): New macro.
979 (registers_e500): New register set for e500.
980 (variants): Add e500 variant.
981 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
982 before setting architectural dependent variations. Initialize ev
983 registers numbers. Add case for e500 architecture. Set the
984 number of pseudo registers.
985
64366f1c
EZ
9862002-08-20 Elena Zannoni <ezannoni@redhat.com>
987
988 * rs6000-tdep.c: Clean up comments.
989
7e78f0ca
AC
9902002-08-20 Andrew Cagney <cagney@redhat.com>
991
992 * h8300-tdep.c: Re-indent file.
993
697f7479
JB
9942002-08-20 Jim Blandy <jimb@redhat.com>
995
996 * Makefile.in (LDFLAGS): Allow the configure script to establish a
997 default for this.
697f7479 998
e86ae29f
KS
9992002-08-20 Keith Seitz <keiths@redhat.com>
1000
1001 * breakpoints.c (watch_command_1): Use internal breakpoint
1002 when setting a watchpoint_scope breakpoint.
1003
216b504f
EZ
10042002-08-20 Elena Zannoni <ezannoni@redhat.com>
1005
1006 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1007 (build_builtin_type_vec64i): Ditto.
1008 (build_builtin_type_vec128): Ditto.
1009 (build_builtin_type_vec128i): Ditto.
1010
f7ab6ec6
MS
10112002-08-19 Michael Snyder <msnyder@redhat.com>
1012
1013 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1014 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1015 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1016 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1017 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1018 CALL_DUMMY_ADDRESS): Delete.
1019 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1020 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1021 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1022 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1023 push_return_address.
1024 (mips_register_raw_size, mips_eabi_use_struct_convention,
1025 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1026 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1027 mips_init_extra_frame_info, mips_eabi_push_arguments,
1028 mips_n32n64_push_arguments, mips_push_return_address,
1029 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1030 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1031
b5d1566e
MS
10322002-08-19 Michael Snyder <msnyder@redhat.com>
1033
1034 * mips-tdep.c (mips_frame_num_args): New function.
1035 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1036 frame_saved_pc, frame_args_address, frame_locals_address,
1037 frame_num_args, and frame_args_skip.
1038 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1039 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1040 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1041 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1042
2f1488ce
MS
10432002-08-20 Michael Snyder <msnyder@redhat.com>
1044
1045 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1046 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1047 * mips-tdep.c (mips_store_struct_return): New function.
1048 (mips_extract_struct_value_address): New function.
1049 (mips_gdbarch_init): Set store_struct_return and
1050 extract_struct_value_address.
1051
41ff2da1
DC
10522002-08-20 David Carlton <carlton@math.stanford.edu>
1053
1054 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1055 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1056 (read_file_scope): Check that line_header is nonzero before
1057 decoding macro information.
1058
e5451d58
MK
10592002-08-20 Mark Kettenis <kettenis@gnu.org>
1060
1061 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1062 flag the general-purpose registers as floating-point on targets
1063 that don't support the floating-point registers.
1064
4a6daafa
EZ
10652002-08-20 Elena Zannoni <ezannoni@redhat.com>
1066
1067 * rs6000-tdep.c (altivec_register_p): Delete.
1068 (rs6000_do_altivec_registers): Delete.
1069 (rs6000_altivec_registers_info): Delete.
1070 (rs6000_do_registers_info): Delete.
1071 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1072 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1073
ab4327e0
EZ
10742002-08-20 Elena Zannoni <ezannoni@redhat.com>
1075
1076 * infcmd.c (do_registers_info): Print vector registers in hex
1077 format only.
1078 (print_vector_info): Check that printing registers
1079 makes sense.
1080 (print_float_info): Ditto.
1081
cb1d2653
AC
10822002-08-20 Andrew Cagney <ac131313@redhat.com>
1083
1084 * mips-tdep.c (mips_gdbarch_init): Update.
1085 (mips_o32_extract_return_value): Rewrite.
1086 (mips_o32_store_return_value): Rewrite.
1087 (mips_o32_xfer_return_value): New function.
1088 (mips_xfer_register): Tweak debug print message. Allow for
1089 buf_offset when dumping the value transfered.
1090
dfc3d9b2
AC
10912002-08-20 Andrew Cagney <ac131313@redhat.com>
1092
1093 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1094 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1095 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1096 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1097 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1098
7807aa61
MS
10992002-08-14 Michael Snyder <msnyder@redhat.com>
1100
1101 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1102
489461e2
EZ
11032002-08-19 Elena Zannoni <ezannoni@redhat.com>
1104
1105 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1106 register.
1107 (P): New macro to define a register as a pseudo register.
1108 (R, R4, R8, R16, FR32, R64, R0): Updated.
1109 (struct variant): Add new fields for number of pseudo registers
1110 and number of total registers.
1111 (tot_num_registers): New macro replacing....
1112 (num_registers): ...deleted macro.
1113 (num_registers): New function.
1114 (num_pseudo_registers): New function.
1115 (variants): Update all variants to intialize new fields correctly.
1116 Postpone initialization of number of pseudo regs and real regs.
1117 (init_variants): New function.
1118 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1119 registers offsets.
1120
fcaffe4c
DC
11212002-08-19 David Carlton <carlton@math.stanford.edu>
1122
2c2738a0
DC
1123 * valops.c (search_struct_field): Change error message to treat
1124 return value of 0 from value_static_field as meaning that field is
1125 optimized out.
1126 (value_struct_elt_for_reference): Ditto.
1127 * values.c (value_static_field): Treat an unresolved location the
1128 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1129 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1130 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1131 * MAINTAINERS: Add self to Write After Approval list.
1132
88658117
AC
11332002-08-19 Andrew Cagney <ac131313@redhat.com>
1134
1135 * mips-tdep.c (mips_xfer_register): New function.
1136 (mips_n32n64_extract_return_value): Rewrite.
1137 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1138 instead of deprecated_extract_return_value.
1139
21283beb
EZ
11402002-08-19 Elena Zannoni <ezannoni@redhat.com>
1141
1142 * rs6000-tdep.c (TDEP): Delete macro.
1143 (branch_dest): Replace use of TDEP macro with its body.
1144 (rs6000_pop_frame): Ditto.
1145 (rs6000_push_arguments): Ditto.
1146 (rs6000_skip_trampoline_code): Ditto.
1147 (rs6000_frame_saved_pc): Ditto.
1148 (rs6000_frame_chain): Ditto.
1149 (rs6000_register_name): Ditto.
1150 (rs6000_register_byte): Ditto.
1151 (rs6000_register_raw_size): Ditto.
1152 (rs6000_register_virtual_type): Ditto.
1153 (rs6000_register_convertible): Ditto.
1154 (rs6000_convert_from_func_ptr_addr): Ditto.
1155
bf072999
DJ
11562002-08-19 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1159 conditionally.
1160 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1161 MIPS_LINUX_JB_ELEMENT_SIZE.
1162 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1163 for MAX_REGISTER_RAW_SIZE arrays.
1164 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1165 MIPS_LINUX_JB_ELEMENT_SIZE.
1166
9b949a49
PM
11672002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1168
1169 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1170
6d3e79c6
AS
11712002-08-19 Aidan Skinner <aidan@velvet.net>
1172
1173 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1174 ada-valprint.c ada-tasks.c.
1175 (YYFILES): Add ada-exp.y.
1176 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1177 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1178 (ada-exp.tab.o): New target.
1179
06c0b04e
AC
11802002-08-18 Andrew Cagney <ac131313@redhat.com>
1181
1182 * regcache.c (regcache_xfer_part): New function.
1183 (regcache_raw_read_part): New function.
1184 (regcache_raw_write_part): New function.
1185 (regcache_cooked_read_part): New function.
1186 (regcache_cooked_write_part): New function.
1187 * regcache.h (regcache_raw_read_part): Declare.
1188 (regcache_raw_write_part): Declare.
1189 (regcache_cooked_read_part): Declare.
1190 (regcache_cooked_write_part): Declare.
1191
92d1e331
DJ
11922002-08-18 Daniel Jacobowitz <drow@mvista.com>
1193
1194 * remote.c (remote_open_1): Add async_p.
1195 (remote_async_open_1): Delete.
1196 (open_remote_target): Delete.
1197 (remote_open, extended_remote_open): Update calls to remote_open_1.
1198 (remote_async_open, extended_remote_async_open): Call
1199 remote_open_1 instead of remote_async_open_1.
1200
247055de
MK
12012002-08-19 Mark Kettenis <kettenis@gnu.org>
1202
1203 * blockframe.c: Fix a few coding standard violations.
1204
641eda39
MK
12052002-08-19 Mark Kettenis <kettenis@gnu.org>
1206
0b717710
MK
1207 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1208 here from ...
1209 * config/i386/tm-i386sco5.h: ... here. File removed.
1210 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1211
26d28e12 1212 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1213 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1214 (TM_FILE): Set to tm-i386.h.
1215 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1216 * config/i386/tm-i386v.h: Remove file.
1217 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1218 instead of "i386/tm-i386v.h".
1219 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1220 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1221 "i386/tm-i386v.h".
1222 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1223 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1224 "i386/tm-i386.h".
1225
d4e0bab4
MK
12262002-08-18 Mark Kettenis <kettenis@gnu.org>
1227
1228 * config/i386/nm-i386v.h: Add protection against
1229 multiple-inclusion.
1230 (i386_register_u_addr): Remove prototype.
1231 (register_u_addr): New prototype.
1232 (REGISTER_U_ADDR): Redefine accordingly.
1233 * i386v-nat.c: Improve several comments.
1234 (i386_register_u_addr): Change signature and rename to
1235 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1236 ubase variable.
1237
46cac009
AC
12382002-08-18 Andrew Cagney <ac131313@redhat.com>
1239
1240 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1241 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1242 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1243 deprecated_extract_return_value.
1244 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1245 rename mips_o32o64_push_arguments.
1246 (mips_gdbarch_init): Update.
1247 (mips_extract_return_value): Delete.
1248 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1249 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1250 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1251 (mips_n32n64_extract_return_value): Clone
1252 mips_extract_return_value.
1253 (mips_store_return_value): Delete.
1254 (mips_o32_store_return_value): Clone mips_store_return_value.
1255 (mips_o64_store_return_value): Clone mips_store_return_value.
1256 (mips_eabi_store_return_value): Clone mips_store_return_value.
1257 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1258
d2e4a39e
AS
12592002-08-18 Aidan Skinner <aidan@velvet.net>
1260
0c30c098
AS
1261 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1262 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1263
12642002-08-18 Aidan Skinner <aidan@velvet.net>
1265
1266 * ada-lang.c: Run through gdb_indent.sh.
1267 * ada-lang.h: Run through gdb_indent.sh.
1268 * ada-tasks.c: Run through gdb_indent.sh.
1269 * ada-typeprint.c: Run through gdb_indent.sh.
1270 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1271
01fc4e33
AC
12722002-08-18 Andrew Cagney <ac131313@redhat.com>
1273
1274 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1275 ABI.
1276
d8ee244c
MK
12772002-08-18 Mark Kettenis <kettenis@gnu.org>
1278
c38d8261
MK
1279 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1280
222db64c
MK
1281 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1282 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1283
c2848c82
MK
1284 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1285 write_register_gen instead of write_register_bytes.
1286
d8ee244c
MK
1287 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1288 i[3456]-*-osf1mk* configurations have been made obsolete.
1289 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1290 i[3456]86-*-osf1mk* hosts obsolete.
1291 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1292 targets obsolete.
1293 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1294 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1295 config/i386/i386m3.mt, config/i386/nm-m3.h,
1296 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1297 config/i386/i386mk.mh, config/i386/i386mk.mt,
1298 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1299 obsolete.
1300 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1301 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1302 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1303
61d8d407
AC
13042002-08-18 Andrew Cagney <ac131313@redhat.com>
1305
1306 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1307 (hppa_value_returned_from_stack): Declare.
1308 (hppa_extract_return_value): Declare.
1309 * config/pa/hppa.mt: New file.
1310 * configure.tgt: Recognize hppa*-*-*.
1311 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1312
0c52bd59
MK
13132002-08-18 Mark Kettenis <kettenis@gnu.org>
1314
1315 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1316 comment.
1317
b5686e99
MK
13182002-08-17 Mark Kettenis <kettenis@gnu.org>
1319
1320 * top.c (gdb_rl_operate_and_get_next): Make sure
1321 operate-and-get-next functions correctly even when the history
1322 list is completely filled.
1323
c1bab85b
AC
13242002-08-18 Andrew Cagney <ac131313@redhat.com>
1325
1326 * MAINTAINERS (Target Instruction Set Architectures): Rename
1327 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1328 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1329 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1330 already listed under Host/Native.
1331
1332 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1333 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1334 mips*-*-*.
1335
32089c7c
AC
13362002-08-17 Andrew Cagney <ac131313@redhat.com>
1337
1338 * config/ia64/ia64.mt: New file.
1339 * config/alpha/alpha.mt: New file.
1340 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1341 ia64-linux-gnu. Mention that ia64-elf is broken.
1342 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1343
b4671f85
MK
13442002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1345
1346 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1347 generic_func_frame_valid instead of func_frame_valid.
1348
c8edd8b4
JB
13492002-08-16 Joel Brobecker <brobecker@gnat.com>
1350
1351 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1352 procfs appears to be broken when debugging on multi-processor
1353 machines. So enable software single stepping in order to avoid
1354 using the procfs interface to do next/step operations, using
1355 internal breakpoints instead.
1356
1357 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1358 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1359 make this pc address equal to the value it would have if the
1360 system stepping capability was used. Also set a new flag used
1361 to ensure that we don't readjust the PC one more time later.
1362
1363 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1364 address by DECR_PC_AFTER_BREAK when software single step is
1365 in use for this architecture, as this has already been taken
1366 care of in handle_inferior_event().
1367
238617f6
JB
13682002-08-16 Joel Brobecker <brobecker@gnat.com>
1369
1370 * infrun.c (handle_inferior_event): Minor reformatting, to make
1371 a rather long condition expression easier to read.
1372
541a7aac
AC
13732002-08-16 Andrew Cagney <ac131313@redhat.com>
1374
1375 * Makefile.in (gdbtk.o): Move to end of file.
1376 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1377 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1378 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1379 (gdbtk-wrapper.o, gdbres.o): Ditto.
1380
f92d4a7b
AC
13812002-08-16 Andrew Cagney <ac131313@redhat.com>
1382
1383 * Makefile.in (copying.o): Separate out compile rule.
1384 (hpux-thread.o, procfs.o, signals.o): Ditto.
1385 (v850ice.o, z8k-tdep.o): Ditto.
1386 (tui-file.o): Move to TUI section.
1387 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1388 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1389
1cce71eb
JB
13902002-08-16 Joel Brobecker <brobecker@gnat.com>
1391
1392 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1393 skip_trampoline_code, for better namespace-proofing.
1394
1395 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1396
0851f23d
JB
13972002-08-16 Joel Brobecker <brobecker@gnat.com>
1398
1399 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1400
f8d40ec8
JB
14012002-08-16 Joel Brobecker <brobecker@gnat.com>
1402
1403 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1404 signal, check whether we hit a breakpoint before checking for a
1405 single step breakpoint. Otherwise, GDB fails to notice that a
1406 breakpoint has been hit when stepping onto a breakpoint.
1407
63d022e0
KS
14082002-08-16 Keith Seitz <keiths@redhat.com>
1409
1410 * gdb-events.sh (clear_gdb_event_hooks): New function.
1411 * gdb-events.c: Regenerate.
1412 * gdb-events.h: Regenerate.
1413
6e31adb3
AC
14142002-08-16 Andrew Cagney <ac131313@redhat.com>
1415
1416 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1417 not_a_sw_breakpoint.
1418 * breakpoint.h (bpstat_stop_status): Add parameter names.
1419
c8189ed1
GS
14202002-08-16 Grace Sainsbury <graces@redhat.com>
1421
1422 * remote.c (remote_insert_hw_breakpoint)
1423 (remote_remove_hw_breakpoint): Fix calculation of length field
1424 for Z-packet.
1425
d05285fa
MS
14262002-08-15 Michael Snyder <msnyder@redhat.com>
1427
466d7106
MS
1428 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1429 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1430 (supply_fpregset): Ditto.
1431
d05285fa
MS
1432 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1433 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1434 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1435 (TARGET_READ_SP): Delete.
bf1f5b4c 1436 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1437 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1438 Delete.
1439 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1440 from macros to functions.
bf1f5b4c 1441
d05285fa
MS
1442 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1443 (mips_register_convertible, mips_register_convert_to_virtual,
1444 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1445 (mips_read_sp): New function.
1446 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1447 (mips_do_registers_info): Make static.
1448 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1449 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1450 (mips_register_convert_from_type, mips_register_convert_to_type):
1451 New functions.
1452 (mips_gdbarch_init): Set up function_start_offset,
1453 register_virtual_size, pc_in_sigtramp.
d05285fa 1454
e76f1f2e
AC
14552002-08-15 Andrew Cagney <ac131313@redhat.com>
1456
1457 * infcmd.c (vector_info): New function.
1458 (_initialize_infcmd): Add command "info vector".
1459 (print_vector_info): New function.
1460
1461 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1462 * gdbarch.h, gdbarch.c: Regenerate.
1463
4782dc19
AC
14642002-08-15 Andrew Cagney <ac131313@redhat.com>
1465
1466 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1467 ``print_all''. Only print vector registers when ``print_all''.
1468
23e3a7ac
AC
14692002-08-15 Andrew Cagney <ac131313@redhat.com>
1470
8e186fd6
AC
1471 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1472 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1473
23e3a7ac
AC
1474 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1475 Add `args' parameter.
1476 * gdbarch.h, gdbarch.c: Regenerate.
1477
1478 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1479
1480 * infcmd.c (float_info): Call print_float_info.
1481 (print_float_info): New function. By default, print the
1482 floating-point registers.
1483
1484 * arch-utils.h (default_print_float_info): Delete declaration.
1485 * arch-utils.c (default_print_float_info): Delete function.
1486
e0ca2bb9
MK
14872002-08-16 Mark Kettenis <kettenis@gnu.org>
1488
3f733acc
MK
1489 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1490 out define.
1491
7d8d2918
MK
1492 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1493 FRAME.
1494
1c7cc583
MK
1495 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1496 * configure.host: Make i[3456]86-*-aix host obsolete.
1497 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1498 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1499 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1500 config/i386/xm-i386aix.h: Make files obsolete.
1501 * i386aix-nat.c: Make file obsolete.
1502 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1503 (i386aix-nat.o): Make target obsolete.
1504
e0ca2bb9
MK
1505 * config/i386/nm-gnu.h: Removed.
1506 * config/i386/nm-i386gnu.h: New file.
1507 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1508 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1509 Moved here from ...
1510 * config/i386/tm-i386gnu.h: ... here. Removed.
1511 * config/i386/xm-i386gnu.h: Removed.
1512 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1513 (NAT_FILE): Set to nm-i386gnu.h.
1514 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1515 * i386-tdep.c: New file.
1516 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1517 (i386gnu-tdep.o): Specify dependencies.
1518
16057ec7 15192002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1520
6b99ee2e
MK
1521 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1522 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1523 Adjust a few comments to reflect reality a bit closer.
1524 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1525 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1526 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1527 target_insert_watchpoint, target_remove_watchpoint):
1528 Move defines to ...
1529 * config/i386/nm-i386sco5.h: ... here.
1530 (kernel_u_size): Add prototype. Improve a few comments and add
1531 protection against multiple inclusion.
1532
d9a6f65c
MK
1533 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1534 out define.
1535
047eff6a
MK
1536 * uw-thread.c (SP_ARG0): Define if not already defined.
1537 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1538
dcdb1290
MK
1539 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1540
5d2d0b2a
MK
1541 * config/i386/tm-i386.h: Don't include "regcache.h".
1542
61113f8b
MK
1543 * i387-tdep.h (i387_print_float_info): New prototype.
1544 * i387-tdep.c (print_i387_value, print_i387_ext,
1545 print_i387_status_word, print_i387_control_word): Add `struct
1546 ui_file *' argument and use it for output.
1547 (i387_print_float_info): Renamed from i387_float_info. Add
1548 `struct gdbarch *' and `struct ui_file *' arguments and use the
1549 latter for output.
1550 * i386-tdep.c: Include "i387-tdep.h".
1551 (i386_gdbarch_init): Set print_float_info.
1552 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1553 (FLOAT_INFO): Remove define.
1554
46e0f506
MS
15552002-08-13 Michael Snyder <msnyder@redhat.com>
1556
1557 * mips-tdep.c (mips_push_arguments): Rename to
1558 mips_eabi_push_arguments, and tune for EABI.
1559 (MIPS_REGS_HAVE_HOME_P): Delete.
1560 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1561 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1562 Delete references to mips_regs_have_home_p.
1563
409268de
KS
15642002-08-14 Keith Seitz <keiths@redhat.com>
1565
1566 * Makefile.in (install-gdbtk): Create insight plugin directory.
1567 Install plugins.tcl file.
1568
ffc6a242
KS
15692002-08-14 Keith Seitz <keiths@redhat.com>
1570
1571 * configure.in: Move SUBDIRS to near top of the file so that
1572 --enable options may add things to it.
1573 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1574 * configure: Regenerate.
1575
ebafbe83
MS
15762002-08-13 Michael Snyder <msnyder@redhat.com>
1577
1578 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1579 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1580 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1581
32f6f25d
AC
15822002-08-13 Andrew Cagney <ac131313@redhat.com>
1583
1584 * vax-tdep.c (vax_get_saved_register): Delete function.
1585 (vax_gdbarch_init): Update.
1586 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1587 (ns32k_gdbarch_init): Update.
1588 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1589 (alpha_gdbarch_init): Update.
1590
53826de9
AC
15912002-08-13 Andrew Cagney <cagney@redhat.com>
1592
1593 * regcache.c (init_regcache_descr): Overallocate the
1594 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1595 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1596 nr_raw_registers.
1597 (set_register_cached): Add range checking assertions. Use
1598 current_regcache.
1599
16057ec7 16002002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1601
1602 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1603 numbers for MMX registers.
1604
7b4c2dce
AC
16052002-08-13 Andrew Cagney <cagney@redhat.com>
1606
1607 * i386-tdep.c (i386_gdbarch_init): Use
1608 generic_unwind_get_saved_register.
1609
1e03ad20
KB
16102002-08-13 Kevin Buettner <kevinb@redhat.com>
1611
1612 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1613 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1614 target vector.
1615 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1616 Delete. Add comment regarding this now-deleted target method.
1617
548bcbec
SC
16182002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1619
1620 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1621 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1622 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1623 real PC and the page number (if it's within the memory bank window).
1624 (m68hc11_pseudo_register_write): Likewise when saving.
1625 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1626 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1627 (m68hc11_register_raw_size): And use 32-bit for it.
1628 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1629 16K memory bank is used by the prog; also use the virtual pc.
1630
7df11f59
SC
16312002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1632
1633 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1634 (m68hc11_gdbarch_init): Install it in gdbarch.
1635 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1636 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1637 (MSYMBOL_SIZE): New for documentation.
1638 (insn_return_kind): Enum to specify how a function returns.
1639 (frame_extra_info): Cleanup and record the return mode.
1640 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1641 register in address computation.
1642 (m68hc11_get_return_insn): New to obtain the return instruction used
1643 by the function.
1644 (m68hc11_frame_init_saved_regs): Take into account the return
1645 instruction used by the function for far and interrupt functions.
1646 (m68hc11_init_extra_frame_info): Take into account page register.
1647 (m68hc11_frame_args_address): Adjust according to the return mode.
1648 (show_regs): Print page register only when it's used.
1649
5706502a
SC
16502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1651
1652 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1653 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1654 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1655 registers.
1656 (m68hc11_register_raw_size): Likewise.
1657
28fc6740
AC
16582002-08-13 Andrew Cagney <cagney@redhat.com>
1659
1660 * i386-tdep.c (i386_register_name): Handle mmx registers.
1661 (mmx_regnum_p): New function.
1662 (i386_mmx_names): New array.
1663 (mmx_num_regs): New variable.
1664 (i386_pseudo_register_read): New function.
1665 (i386_pseudo_register_write): New function.
1666 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1667
1668 * regcache.c (regcache_raw_read_unsigned): New function.
1669 (regcache_raw_read_signed): New function.
1670 * regcache.h (regcache_raw_read_unsigned): Declare.
1671 (regcache_raw_read_signed): Declare.
1672
a378f419
AC
16732002-08-13 Andrew Cagney <cagney@redhat.com>
1674
1675 * regcache.c (regcache_raw_read_as_address): Delete function.
1676 (regcache_cooked_read_signed): New function.
1677 (regcache_cooked_read_unsigned): New function.
1678 * regcache.h (regcache_cooked_read_signed): Declare.
1679 (regcache_cooked_read_unsigned): Declare.
1680 (regcache_raw_read_as_address): Delete declaration.
1681
1682 * blockframe.c (generic_read_register_dummy): Use
1683 regcache_cooked_read_unsigned.
1684 * i386-tdep.c (i386_extract_struct_value_address): Use
1685 regcache_cooked_read_unsigned.
1686
81967506
SC
16872002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1688
1689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1690 double sizes according to ELF ABI flags.
1691 (gdbarch_tdep): Record elf_flags.
1692
ffe1f3ee
SC
16932002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1694
1695 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1696 (m6812_prolog): They can appear in 68HC12 function prologue.
1697 (m68hc11_frame_chain): Cleanup.
1698
98216c5d
AC
16992002-08-12 Andrew Cagney <cagney@redhat.com>
1700
1701 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1702 declarations.
1703 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1704 (i386_linux_register_raw_size): Delete function.
1705 (i386_linux_init_abi): Update.
1706 * i386-tdep.c (i386_register_raw_size): Delete function.
1707 (i386_register_byte): Delete function.
1708 (i386_gdbarch_init): Update.
1709 (i386_register_size): Delete array.
1710 (i386_register_offset): Delete array.
1711
1712 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1713 (REGISTER_RAW_SIZE): Delete macro.
1714 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1715 (REGISTER_BYTE): Delete macro.
1716
3b19021e
AS
17172002-08-11 Aidan Skinner <aidan@velvet.net>
1718
1719 * ada-lang.c (ada_lookup_partial_symbol)
1720 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1721 prototype names so that grep ^func works properly.
1722
1723 * ada-lang.c (ada_array_element_type)
1724 (ada_lookup_partial_symbol): Fix typos in parameter list.
1725
1726 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1727 Fix prototype names so that grep ^func works properly.
1728
b063e7a2
AC
17292002-08-10 Andrew Cagney <cagney@redhat.com>
1730 Elena Zannoni <ezannoni@redhat.com>
1731 Martin M. Hunt <hunt@redhat.com>
1732
1733 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1734 (build_builtin_type_vec128i): Set the vector bit.
1735 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1736 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1737 (build_builtin_type_vec64): New function.
1738 (build_builtin_type_vec64i): New function.
1739 (build_gdbtypes): Initialize builtin_type_vec64 and
1740 builtin_type_vec64i.
1741
a7e3c2ad
AC
17422002-08-09 Andrew Cagney <cagney@redhat.com>
1743
1744 * regcache.c (regcache_dump): Compare the register offset
1745 with REGISTER_BYTE.
1746 * arch-utils.c (generic_register_byte): New function.
1747 * arch-utils.h (generic_register_byte): Declare.
1748 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1749 * gdbarch.h, gdbarch.c: Regenerate.
1750
af030b9a
AC
17512002-08-09 Andrew Cagney <cagney@redhat.com>
1752
1753 * regcache.c: Include "gdbcmd.h"
1754 (_initialize_regcache): Add commands "maintenance print
1755 registers", "maintenance print raw-registers" and "maintenance
1756 print cooked-registers".
1757 (enum regcache_dump_what): Define.
1758 (dump_endian_bytes): New function.
1759 (regcache_dump): New function.
1760 (regcache_print): New function.
1761 (maintenance_print_registers): New function.
1762 (maintenance_print_raw_registers): New function.
1763 (maintenance_print_cooked_registers): New function.
1764 * Makefile.in (regcache.o): Update dependencies.
1765
cb3d25d1
MS
17662002-08-09 Michael Snyder <msnyder@redhat.com>
1767
1768 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1769 (mips_push_arguments): Correct some comments. Use paddr_nz
1770 for printing addresses in debug output. Replace static
1771 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1772 (mips_n32n64_push_arguments): New function, cloned from
1773 mips_push_arguments and tuned for the n32/n64 ABI.
1774 (mips_push_register): Buffer needs dynamic allocation.
1775 (mips_print_register): Ditto.
1776 (do_gp_register_row): Ditto.
1777 (mips_store_return_value): Ditto.
1778 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1779
2163ab9d
DH
17802002-08-09 Don Howard <dhoward@redhat.com>
1781
1782 * memattr.c (mem_info_command): Print special case of upper bound
1783 as max CORE_ADDR + 1.
1784
b78bcb18
MS
17852002-08-08 Michael Snyder <msnyder@redhat.com>
1786
1787 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1788 returns structs by ref if they're too big to fit in two registers.
1789
ffabd70d
KB
17902002-08-09 Kevin Buettner <kevinb@redhat.com>
1791
1792 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1793 saved regs value.
1794 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1795 mips_find_saved_regs().
1796 (mips_pop_frame): Likewise.
1797
fbcdb4a3
KB
17982002-08-09 Kevin Buettner <kevinb@redhat.com>
1799
1800 * blockframe.c (frame_saved_regs_register_unwind): Revise
1801 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1802 frames are in use.
1803
3c3bea1c
GS
18042002-08-09 Grace Sainsbury <graces@redhat.com>
1805
1806 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1807 T-packets; the 'a' is not taken as a register number.
1808 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1809 (remote_stopped_data_address): New functions; add to target
1810 vector.
1811 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1812 prototypes to match other implementations of this
1813 function. replace integer argument with pointer -- the length
1814 field in the Z-packet is the length of what is pointed to or 1 if
1815 pointer is null. Add to target vector.
1816 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1817 target vector.
1818
1819 From Mark Salter:
1820 * remote.c (remote_wait): Add support to extract optional
1821 watchpoint information from T-packet. Ignore unrecognized
1822 optional info in T-packet.
1823 (remote_async_wait): Ditto.
1824
5d1d95de
CV
18252002-08-09 Corinna Vinschen <vinschen@redhat.com>
1826
1827 * cli/cli-dump.c: Change fopen modes to use binary open modes
1828 as defined in include/fopen-bin.h throughout.
1829
c86b5b38
MS
18302002-08-08 Michael Snyder <msnyder@redhat.com>
1831
1832 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1833
b30590dc
KB
18342002-08-08 Kevin Buettner <kevinb@redhat.com>
1835
1836 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1837 assertion failure by returning early after a warning.
1838
498868ed
KB
18392002-08-08 Kevin Buettner <kevinb@redhat.com>
1840
1841 * mips-tdep.c (mips_find_saved_regs): Make static.
1842 (mips_frame_init_saved_regs): New function.
1843 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1844 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1845 (mips_find_saved_regs): Delete declaration.
1846
b2dd6311
GS
18472002-08-08 Grace Sainsbury <graces@redhat.com>
1848
3c3bea1c
GS
1849 * remote.c (remote_wait, remote_async_wait): Change
1850 thread_num from int to ULONGEST.
1851 (unpack_varlen_hex): Change result parameter from
1852 int * to ULONGEST *.
b2dd6311 1853
ea47855f
AC
18542002-08-08 Andrew Cagney <ac131313@redhat.com>
1855
1856 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1857 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1858 powerpc*-*-*.
1859 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1860
69db8bae
AC
18612002-08-08 Andrew Cagney <cagney@redhat.com>
1862
1863 * gcore.c (override_derive_stack_segment): Delete variable.
1864 (preempt_derive_stack_segment): Delete function.
1865 (derive_stack_segment): Delete function.
1866 (default_derive_stack_segment): Renamed to derive_stack_segment.
1867 (override_derive_heap_segment): Delete variable.
1868 (preempt_derive_heap_segment): Delete function.
1869 (derive_heap_segment): Delete function.
1870 (default_derive_heap_segment): Rename to derive_heap_segment.
1871
cb811fe7
MS
18722002-08-06 Michael Snyder <msnyder@redhat.com>
1873
1874 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1875 * mips-tdep.c (mips_EABI_use_struct_convention,
1876 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1877 New functions. (mips_use_struct_convention): Delete.
1878 (mips_gdbarch_init): set use_gdbarch_convention.
1879
8b389c40
MS
18802002-08-06 Michael Snyder <msnyder@redhat.com>
1881
1882 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1883 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1884 mips_o32_reg_struct_has_addr): New functions.
1885 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1886
5c27f28a
AC
18872002-08-07 Andrew Cagney <ac131313@redhat.com>
1888
1889 * regcache.c (pseudo_register): Delete function.
1890 (fetch_register): Delete function.
1891 (store_register): Delete function.
1892 (regcache_raw_read, legacy_read_register_gen): Use
1893 target_fetch_registers instead of fetch_register.
1894 (legacy_write_register_gen, regcache_raw_write): Use
1895 target_store_register instead of store_register.
1896 (write_register_bytes): Ditto.
1897
1898 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1899 (STORE_PSEUDO_REGISTER): Delete.
1900 * gdbarch.h, gdbarch.c: Regenerate.
1901
5b331675
CV
19022002-08-06 Corinna Vinschen <vinschen@redhat.com>
1903
1904 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1905 write dump file binary.
1906
6acdf5c7
MS
19072002-08-05 Michael Snyder <msnyder@redhat.com>
1908
1909 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1910 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1911 (mips_gdbarch_init): Set N32 target to be mips64.
1912
b2f01c35
KB
19132002-08-06 Kevin Buettner <kevinb@redhat.com>
1914
1915 * frame.c (find_saved_register): Break out of loop once saved
1916 register address is found. Don't mention sparc in loop comment
1917 anymore.
1918
63db5580
KB
19192002-08-06 Kevin Buettner <kevinb@redhat.com>
1920
1921 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1922 mips_default_saved_regsize to 8.
1923
5e34e75e
AC
19242002-08-06 Andrew Cagney <ac131313@redhat.com>
1925
1926 * gcore.c: Do not include <sys/procfs.h>.
1927 * Makefile.in (gcore.o): Update dependencies.
1928
eb4c54a2
AC
19292002-08-06 Andrew Cagney <cagney@redhat.com>
1930
1931 * configure.tgt: Make arc-*-* obsolete.
1932 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1933 * MAINTAINERS: Make arc-elf obsolete.
1934 * arc-tdep.c: Make file obsolete.
1935 * config/arc/arc.mt: Ditto.
1936 * config/arc/tm-arc.h: Ditto.
1937
ced15480
TR
19382002-08-05 Theodore A. Roth <troth@verinet.com>
1939
c1bab85b 1940 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 1941
b4743822
AC
19422002-08-05 Andrew Cagney <ac131313@redhat.com>
1943
1944 * mcore-tdep.c (mcore_gdbarch_init): Use
1945 generic_unwind_get_saved_register instead of
1946 generic_get_saved_register.
1947 * v850-tdep.c (v850_gdbarch_init): Ditto.
1948 * frv-tdep.c (frv_gdbarch_init): Ditto.
1949 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1950 * s390-tdep.c (s390_gdbarch_init): Ditto.
1951 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1952 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1953 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1954
3956d554
JB
19552002-08-05 Joel Brobecker <brobecker@gnat.com>
1956
1957 * objfiles.h: Add missing #include "symfile.h"
1958
1959 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1960
8249c0d6
AC
19612002-08-04 Andrew Cagney <ac131313@redhat.com>
1962
1963 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1964 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1965 of FIELD_BITSIZE.
1966
b9d14705
DJ
19672002-08-04 Daniel Jacobowitz <drow@mvista.com>
1968
1969 * NEWS: Cleanup and nitpick.
1970
dd73b9bb
AC
19712002-08-03 Andrew Cagney <ac131313@redhat.com>
1972
1973 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1974
043a27f8
AC
19752002-08-03 Andrew Cagney <ac131313@redhat.com>
1976
1977 * Makefile.in (gdbtk-bp.o): Update dependencies.
1978 (gdbtk-register.o): Ditto.
1979 (gdbtk-varobj.o): Ditto.
1980
46ce284d
AC
19812002-08-03 Andrew Cagney <cagney@redhat.com>
1982
1983 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1984 m68hc11_fetch_pseudo_register.
1985 (m68hc11_pseudo_register_write): Replace
1986 m68hc11_store_pseudo_register.
1987 (m68hc11_gdbarch_init): Update.
1988
b66d6d2e
AC
1989Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1990
1991 * gdbarch.sh: Include "gdb_string.h".
1992 * gdbarch.c: Regenerate.
1993
1994 * regcache.c: Include "gdb_string.h".
1995 * ax-general.c: Ditto.
1996 * varobj.c: Ditto.
1997 * std-regs.c: Ditto.
1998 * fbsd-proc.c: Ditto.
1999 * thread.c: Ditto.
2000
2001 * Makefile.in (regcache.o): Update dependencies.
2002 (thread.o, gdbarch.o): Ditto.
2003 (ax-general.o, gdbarch.o): Ditto.
2004 (varobj.o, std-regs.o): Ditto.
2005 (fbsd-proc.o): Specify dependencies.
2006
29e1842b
AC
20072002-08-02 Andrew Cagney <cagney@redhat.com>
2008
2009 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2010 regnum.
2011 (regcache_cooked_write): Ditto.
2012
68365089
AC
20132002-08-02 Andrew Cagney <ac131313@redhat.com>
2014
2015 * regcache.c (regcache_cooked_read): New function.
2016 (regcache_cooked_write): New function.
2017 (read_register_gen): Rewrite using regcache_cooked_read.
2018 (write_register_gen): Rewrite using regcache_cooked_write.
2019
2020 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2021 Declare.
2022
d8124050
AC
20232002-08-02 Andrew Cagney <cagney@redhat.com>
2024
2025 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2026 Replace the architecture methods register_read and register_write.
2027 * gdbarch.h, gdbarch.c: Regenerate.
2028 * regcache.c (init_regcache_descr): Update.
2029 (read_register_gen): Update.
2030 (write_register_gen): Update.
2031 (supply_register): Update comment.
2032
2033 * sh-tdep.c (sh_gdbarch_init): Update.
2034 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2035 `regcache' and `gdbarch' parameters. Make `buffer' a void
2036 pointer. Update code.
2037 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2038 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2039 void pointer. Update code.
2040 (sh64_register_write): Delete.
2041 (sh4_register_read): Delete.
2042 (sh64_register_read): Delete.
2043 (sh4_register_write): Delete.
2044 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2045 void pointer, `to' parameter a void pointer.
2046 (sh_sh64_register_convert_to_raw): Ditto.
2047
a6425924
KB
20482002-08-01 Kevin Buettner <kevinb@redhat.com>
2049
2050 * mips-tdep.c (mips_register_virtual_type): Use architecture
2051 invariant return values.
2052
ff5922b5
AC
20532002-08-01 Andrew Cagney <cagney@redhat.com>
2054
2055 * linux-proc.c: Include "gdb_string.h".
2056 * Makefile.in (linux-proc.o): Update dependency list.
2057
32a6503c
KB
20582002-08-01 Kevin Buettner <kevinb@redhat.com>
2059
2060 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2061 comment.
2062
ccaa32c7
GS
20632002-08-01 Grace Sainsbury <graces@redhat.com>
2064
2065 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2066 to_insert_watchpoint, to_remove_watchpoint,
2067 to_stopped_by_watchpoint, to_stopped_data_address,
2068 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2069 target vecctor. Define their corresponding macros so they call
2070 them.
2071
2072 * target.c: Add default and debug versions of for
2073 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2074 to_insert_watchpoint, to_remove_watchpoint,
2075 to_stopped_by_watchpoint, to_stopped_data_address,
2076 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2077
78fde5f8
KB
20782002-08-01 Kevin Buettner <kevinb@redhat.com>
2079
2080 * mips-tdep.c (mips_register_virtual_type): New function.
2081 (mips_gdbarch_init): Register mips_register_virtual_type()
2082 with gdbarch machinery.
2083 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2084 this file instead of tm-bigmips.h.
2085 (MIPS_REGSIZE): Delete this macro.
2086 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2087 multiarch version in mips-tdep.c will be found.
2088
db034ac5
AC
20892002-08-01 Andrew Cagney <cagney@redhat.com>
2090
2091 * NEWS: Menion that CHILL has been made obsolete.
2092
2093 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2094 * stabsread.c (read_range_type): Ditto.
2095 * gdbtypes.h: Ditto.
2096 * language.c (binop_type_check): Ditto.
2097 (binop_result_type): Ditto.
2098 (integral_type): Ditto.
2099 (character_type): Ditto.
2100 (string_type): Ditto.
2101 (boolean_type): Ditto.
2102 (structured_type): Ditto.
2103 (lang_bool_type): Ditto.
2104 (binop_type_check): Ditto.
2105 * language.h (_LANG_chill): Ditto.
2106 * dwarfread.c (set_cu_language): Ditto.
2107 * dwarfread.c (CHILL_PRODUCER): Ditto.
2108 * dwarfread.c (handle_producer): Ditto.
2109 * expression.h (enum exp_opcode): Ditto.
2110 * eval.c: Ditto for comments.
2111 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2112 * expprint.c (print_subexp): Ditto.
2113 (print_subexp): Ditto.
2114 * valops.c (value_cast): Ditto.
2115 (search_struct_field): Ditto.
2116 * value.h (COERCE_VARYING_ARRAY): Ditto.
2117 * symfile.c (init_filename_language_table): Ditto.
2118 (add_psymbol_with_dem_name_to_list): Ditto.
2119 * valarith.c (value_binop): Ditto.
2120 (value_neg): Ditto.
2121 * valops.c (value_slice): Ditto.
2122 * symtab.h (union language_specific): Ditto.
2123 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2124 (SYMBOL_DEMANGLED_NAME): Ditto.
2125 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2126 * defs.h (enum language): Ditto.
2127 * symtab.c (got_symtab): Ditto.
2128 * utils.c (fprintf_symbol_filtered): Ditto.
2129
2130 * ch-typeprint.c: Make file obsolete.
2131 * ch-valprint.c: Make file obsolete.
2132 * ch-lang.h: Make file obsolete.
2133 * ch-exp.c: Make file obsolete.
2134 * ch-lang.c: Make file obsolete.
2135
2136 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2137 CHILL_LIB.
2138 (TARGET_FLAGS_TO_PASS): Ditto.
2139 (CHILLFLAGS): Obsolete.
2140 (CHILL): Obsolete.
2141 (CHILL_FOR_TARGET): Obsolete.
2142 (CHILL_LIB): Obsolete.
2143 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2144 ch-valprint.c.
2145 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2146 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2147 ch-lang.o.
2148 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2149 targets.
2150
8aaf0b47
JB
21512002-07-31 Joel Brobecker <brobecker@gnat.com>
2152
2153 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2154 This does not change anything at the moment, but will be helpful
2155 later when full Ada support is integrated.
2156
f3a7b3a5
KB
21572002-07-31 Kevin Buettner <kevinb@redhat.com>
2158
2159 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2160 help message.
2161
fb850278
KB
21622002-07-31 Kevin Buettner <kevinb@redhat.com>
2163
2164 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2165 and save it in a local variable. Use variable in later test.
2166
e3bddbfa
KB
21672002-07-31 Kevin Buettner <kevinb@redhat.com>
2168
2169 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2170 test. (Thanks to Daniel Jacobowitz.)
2171
28d169de
KB
21722002-07-31 Kevin Buettner <kevinb@redhat.com>
2173
2174 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2175 (mips_abi_strings): Add "n64".
2176 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2177
7fe7e44e
KB
21782002-07-31 Kevin Buettner <kevinb@redhat.com>
2179
2180 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2181 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2182
c6caf090
KB
21832002-07-31 Kevin Buettner <kevinb@redhat.com>
2184
2185 * utils.c (host_pointer_to_address, address_to_host_pointer):
2186 Use gdb_assert() instead of explicit call to internal_error().
2187
c41669e0
KB
21882002-07-30 Kevin Buettner <kevinb@redhat.com>
2189
2190 * Makefile.in (rs6000-nat.o): Update dependencies.
2191
2192 From Nicholas Duffek:
2193 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2194 (aix-thread.o): New rule.
2195 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2196 * config/powerpc/aix432.mh: New file.
2197
2fda4977
DJ
21982002-07-30 Daniel Jacobowitz <drow@mvista.com>
2199
2200 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2201 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2202 (fetch_core_registers, ppc_linux_supply_gregset)
2203 (ppc_linux_supply_fpregset): New functions.
2204 (ppc_linux_regset_core_fns): New.
2205 (_initialize_ppc_linux_tdep): Call add_core_fns.
2206 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2207 and ppc_linux_supply_gregset.
2208 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2209 (supply_fpregset): Call ppc_linux_supply_fpregset.
2210 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2211 corelow.o.
2212 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2213
729051e6
DJ
22142002-07-30 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * symtab.c (lookup_symbol): Demangle before lowercasing.
2217
5f8a3188
AC
22182002-07-30 Andrew Cagney <ac131313@redhat.com>
2219
2220 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2221 declaration.
2222 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2223 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2224 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2225 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2226 "gdb_string.h".
2227 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2228 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2229 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2230 (avr-tdep.o, mon960-rom.o): Ditto.
2231 (aout_stabs_gnu_h): Define.
2232 (symtab_h): Remove $(gdb_obstack_h).
2233
67f07146
JB
22342002-07-30 Jim Blandy <jimb@redhat.com>
2235
2236 Patch from David Carlton <carlton@math.stanford.edu>:
2237 * gdbinit.in: Move the `dir' commands that add GDB's own source
2238 directory to the search path to the end, so that the `gdb' source
2239 directory will be searched first.
2240
04ea0df1
AC
22412002-07-29 Andrew Cagney <ac131313@redhat.com>
2242
2243 * gdb_obstack.h: New file.
2244 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2245 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2246 * objfiles.h: Include "gdb_obstack.h".
2247 * Makefile.in (gdb_obstack_h): Define.
2248 (symtab_h): Add $(gdb_obstack_h).
2249 (objfiles_h): Add $(gdb_obstack_h).
2250
2251 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2252 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2253 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2254 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2255 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2256 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2257 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2258 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2259
2260 * Makefile.in (bcache.o): Update dependencies.
2261 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2262 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2263 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2264 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2265 (stabsread.o, symfile.o, symmisc.o): Ditto.
2266 (symtab.o, typeprint.o, macroexp.o): Ditto.
2267 (macrotab.o, mdebugread.o): Ditto.
2268 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2269 (coff_ecoff_h, aout_aout64_h): Define.
2270 (aout_stabs_gnu_h, libaout_h): Define.
2271
d138e37a
AC
22722002-07-29 Andrew Cagney <cagney@redhat.com>
2273
2274 * regcache.c (struct regcache_descr): Rename nr_registers to
2275 nr_cooked_registers. Revise comments describing the structure
2276 member fields.
2277 (init_regcache_descr): Update.
2278 (init_legacy_regcache_descr): Update.
2279 (read_register_gen, write_register_gen): When a cooked register in
2280 the raw register range, directly access the value from the raw
2281 register cache.
2282
460e6ec3
AC
22832002-07-29 Andrew Cagney <ac131313@redhat.com>
2284
2285 * z8k-tdep.c: Do not include "obstack.h".
2286 * h8300-tdep.c, h8500-tdep.c: Ditto.
2287 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2288 * valprint.c, v850-tdep.c: Ditto.
2289 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2290 * mn10200-tdep.c: Ditto.
2291
2292 * Makefile.in (z8k-tdep.o): Update dependencies.
2293 (m68hc11-tdep.o, valprint.o): Ditto.
2294 (v850-tdep.o, d10v-tdep.o): Ditto.
2295 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2296 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2297 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2298 (sh_opc_h, gdb_sim_sh_h): Define.
2299 (elf_sh_h, elf_bfd_h): Define.
2300 (opcode_m68hc11_h): Define.
2301 (OPCODES_SRC, OPCODES_DIR): define.
2302 (OPCODES): Use $(OPCODES_DIR).
2303 (gdb_sim_d10v_h): Rename sim_d10v_h.
2304 (gdb_sim_arm_h): Rename sim_arm_h.
2305
790c9cf0
KB
23062002-07-26 Kevin Buettner <kevinb@redhat.com>
2307
2308 * utils.c (host_pointer_to_address, address_to_host_pointer):
2309 Change internal_error() message to indicate function responsible
2310 for the error.
2311
9647fa49
KB
23122002-07-26 Kevin Buettner <kevinb@redhat.com>
2313
2314 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2315 calls to local_hex_string_custom().
2316
dabbe2c0
KB
23172002-07-26 Kevin Buettner <kevinb@redhat.com>
2318
2319 * irix5-nat.c: Move IRIX shared library support from here...
2320 * solib-irix.c: ...to here. Revised substantially to work with
2321 generic solib framework.
2322
b96d0a4e
KB
2323 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2324 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2325 * mips-irix-tdep.c: New file.
2326
313fb2f6
KB
2327 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2328 (mips-irix-tdep.o, solib-irix.o): New rules.
2329 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2330 solib-irix.o.
2331 * config/mips/irix6.mt (TDEPFILES): Likewise.
2332 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2333
ab2eaf26
KB
23342002-07-26 Kevin Buettner <kevinb@redhat.com>
2335
177e4768 2336 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2337 disabled (via ``#if 0'') includes.
2338
7244546a
KB
23392002-07-26 Kevin Buettner <kevinb@redhat.com>
2340
2341 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2342 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2343 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2344 Add support for the fpscr register.
2345 * rs6000-nat.c (regmap, fetch_inferior_registers)
2346 (store_inferior_registers, fetch_core_registers): Likewise.
2347
dd7be90a
KB
23482002-07-26 Kevin Buettner <kevinb@redhat.com>
2349
2350 * rs6000-nat.c (language.h): Include.
2351 (special_regs): Delete this array.
2352 (regmap): New function.
2353 (fetch_register, store_register): Use regmap() to map gdb
2354 register numbers to ptrace register numbers. Also, use
2355 outputs from regmap() to make decisions regarding type of
2356 ptrace() call to make. In particular, don't compare against
2357 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2358 (fetch_inferior_registers, store_inferior_registers): Where
2359 possible, obtain register numbers from tdep struct. Don't
2360 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2361 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2362 (LAST_UISA_SP_REGNUM): Delete.
2363
11bf77db
KB
23642002-07-25 Kevin Buettner <kevinb@redhat.com>
2365
2366 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2367 (fetch_registers, store_register, fetch_core_registers): Don't
2368 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2369 regcache_collect() as appropriate.
2370 (find_toc_address): Format hex address with local_hex_string().
2371
06afebeb
AC
23722002-07-25 Andrew Cagney <ac131313@redhat.com>
2373
2374 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2375 bfd/elf32-frv.c.
2376
8c554d79
TT
23772002-07-24 Tom Tromey <tromey@redhat.com>
2378
2379 * jv-exp.y: Marked all strings with _().
2380 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2381 internal_error.
2382 (MethodInvocation, CastExpression, parse_number, yyerror,
2383 java_type_from_name, push_expression_name, yylex): Typo fixes.
2384
e4c242d9
DJ
23852002-07-24 Daniel Jacobowitz <drow@mvista.com>
2386
2387 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2388 (tee_file_flush, tee_file_write, tee_file_fputs)
2389 (tee_file_isatty): New.
2390 * ui-file.h (tee_file_new): Add prototype.
2391
ebf56fd3
AS
23922002-07-24 Aidan Skinner <aidan@velvet.net>
2393
2394 * ada-lang.c: Change k&r style function definitions to prototyped
2395 form.
2396 * ada-typeprint.c: Change k&r style function definitions to prototyped
2397 form.
2398 * ada-valprint.c: Change k&r style function definitions to prototyped
2399 form.
2400
7fb623f7
AC
24012002-07-24 Andrew Cagney <cagney@redhat.com>
2402
2403 * README: Remove reference to remote-bug.
2404 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2405 remote-bug.c.
2406 (m88k-nat.o): Delete rule.
2407 (m88k-tdep.o): Delete rule.
2408 (remote-bug.o): Delete rule.
2409 * MAINTAINERS: Mark as obsolete.
2410 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2411 * m88k-tdep.c: Make file obsolete.
2412 * config/m88k/m88k.mh: Ditto.
2413 * config/m88k/delta88v4.mh: Ditto.
2414 * config/m88k/delta88v4.mt: Ditto.
2415 * config/m88k/delta88.mt: Ditto.
2416 * config/m88k/delta88.mh: Ditto.
2417 * remote-bug.c: Ditto.
2418 * config/m88k/tm-delta88.h: Ditto.
2419 * config/m88k/nm-delta88v4.h: Ditto.
2420 * config/m88k/xm-delta88.h: Ditto.
2421 * config/m88k/xm-dgux.h: Ditto.
2422 * config/m88k/tm-m88k.h: Ditto.
2423 * config/m88k/nm-m88k.h: Ditto.
2424 * config/m88k/tm-delta88v4.h: Ditto.
2425 * m88k-nat.c: Ditto.
2426 * cxux-nat.c: Ditto.
2427 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2428 and m88*-*-* obsolete.
2429 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2430 m88*-*-* obsolete.
2431
37611a2b
AC
24322002-07-24 Andrew Cagney <cagney@redhat.com>
2433
2434 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2435 constant. Same for local pointer variables.
2436 (extract_signed_integer): Ditto.
2437 * defs.h (extract_unsigned_integer): Update.
2438 (extract_signed_integer): Update.
2439
1aaa5f99
AC
24402002-07-24 Andrew Cagney <cagney@redhat.com>
2441
2442 * regcache.c (regcache_raw_write): Change buf parameter to a
2443 constant void pointer.
2444 (regcache_raw_read): Change buf parameter to a void pointer.
2445 (legacy_write_register_gen): Change myaddr parameter a constant
2446 void pointer.
2447 (supply_register): Change val parameter to a const void pointer.
2448 * regcache.h (regcache_raw_write): Update declaration.
2449 (regcache_raw_read): Update declaration.
2450 (supply_register): Update declaration.
2451
b4f5539f
TT
24522002-07-24 Tom Tromey <tromey@redhat.com>
2453
2454 * defs.h (gdb_readline_wrapper): Declare.
2455 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2456 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2457 * top.c (gdb_readline_wrapper): New function.
2458 (command_line_input): Use it.
2459
0818c12a
AC
24602002-07-24 Andrew Cagney <cagney@redhat.com>
2461
2462 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2463 regcache_read and regcache_write.
2464 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2465 * regcache.c: Update.
2466 * sh-tdep.c (sh64_push_arguments): Update comment.
2467 (sh_pseudo_register_read): Update.
2468 (sh_pseudo_register_write): Update.
2469 (sh4_register_read): Update.
2470 (sh4_register_write): Update.
2471 (sh64_pseudo_register_read): Update.
2472 (sh64_pseudo_register_write): Update.
2473 (sh64_register_read): Update.
2474 (sh64_register_write): Update.
2475 * i386-tdep.c (i386_extract_return_value): Update.
2476 (i386_extract_struct_value_address): Update.
2477 (i386_extract_return_value): Update.
2478 * blockframe.c (generic_read_register_dummy): Update.
2479 (generic_call_dummy_register_unwind): Update
2480 * infrun.c (write_inferior_status_register): Update.
2481
f7321c06
JB
24822002-07-23 Jim Blandy <jimb@redhat.com>
2483
2484 * parser-defs.h (expression_context_pc): Make this extern.
2485 (Thanks to Michael Snyder.)
2486
2037aebb
AC
24872002-07-23 Andrew Cagney <ac131313@redhat.com>
2488
2489 GDB 5.2.1 released from 5.2 branch.
2490 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2491 * README: Update to mention 5.2.1.
2492
66504d44
MS
24932002-07-23 Mark Salter <msalter@redhat.com>
2494
2495 * remote.c (remote_read_bytes): Fix check for error.
2496
27bae383
KB
24972002-07-22 Kevin Buettner <kevinb@redhat.com>
2498
2499 * aix-thread.c (language.h): Include.
2500 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2501 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2502 Print newlines at end of debug messages.
2503 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2504 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2505
25062002-07-22 Kevin Buettner <kevinb@redhat.com>
2507
2508 * aix-thread.c (ppc-tdep.h): Include.
2509 (special_register_p): New function.
2510 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2511 (store_regs_user_thread): Use register number information from
2512 gdbarch_tdep struct instead of hardcoded offsets relative to
2513 FIRST_UISA_SP_REGNUM.
2514 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2515 special_register_p() instead of using FPLAST_REGNUM and
2516 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2517 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2518 will be MQ's register number.
2519
25202002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2521
2522 * aix-thread.c (ops): Rename to aix_thread_ops.
2523 (base_ops): Rename to base_target.
2524 (ops_attach): Rename to aix_thread_attach.
2525 (ops_detach): Rename to aix_thread_detach.
2526 (ops_resume): Rename to aix_thread_detach.
2527 (ops_wait): Rename to aix_thread_wait.
2528 (ops_kill): Rename to aix_thread_kill.
2529 (init_ops): Rename to init_aix_thread_ops.
2530 (ops_fetch_register): Rename to aix_thread_fetch_register.
2531 (ops_store_register): Rename to aix_thread_store_register.
2532 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2533 (ops_thread_alive): Rename to aix_thread_thread_alive.
2534 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2535 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2536 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2537 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2538 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2539 (store_regs_lib): Rename to store_regs_user_thread.
2540 (store_regs_kern): Rename to store_regs_kernel_thread.
2541
27bae383 25422002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2543
2544 * aix-thread.c (ops_prepare_to_store): Eliminate.
2545 (init_ops): Don't initialize ops.prepare_to_store.
2546 (store_regs_kern): Pre-fetch register buffers from child,
2547 because some registers may not be in the cache. Copy
2548 regs from register cache only if they are cached.
2549 (store_regs_lib): Copy regs from register cache only
2550 if they are cached.
2551 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2552 fill_gprs64): Ditto.
2553
61c5da0b
KB
25542002-07-22 Kevin Buettner <kevinb@redhat.com>
2555
2556 * aix-thread.c (gdb_assert.h): Include.
2557 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2558 register sizes (from register cache) match size of buffer holding
2559 register data.
2560 (fill_sprs32): Change parameter types to match those in the ptrace()
2561 buffer.
2562 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2563 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2564
25652002-07-22 Michael Snyder <msnyder@redhat.com>
2566
2567 * aix-thread.c (supply_sprs64): Cosmetic change.
2568 (supply_sprs32): Cosmetic change.
2569 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2570 (fill_sprs64): Use regcache_collect instead of read_register.
2571 (store_regs_lib): Use regcache_collect instead of
2572 read_register. Use fill_sprs32 instead of fill_sprs64,
2573 if debugging a 32-bit architecture.
2574 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2575 out of the register cache, instead of passing a pointer into
2576 the register cache directly to ptrace. Use regcache_collect
2577 insteaad of read_register.
2578 (ops_prepare_to_store): Use target_read_registers instead
2579 of read_register_bytes.
2580
36479eb1
AS
25812002-07-20 Aidan Skinner <aidan@velvet.net>
2582
2583 * MAINTAINERS: Add self under write after approval.
2584
80ae6ee2
AS
25852002-07-20 Aidan Skinner <aidan@velvet.net>
2586
2587 * ada-tasks.c: Change k&r style function definitions to prototyped
2588 form.
2589
8a8ab2b9
AC
25902002-07-19 Andrew Cagney <ac131313@redhat.com>
2591
2592 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2593 * x86-64-tdep.c: Include "objfiles.h".
2594 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2595 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2596
fb16b900
ML
25972002-07-17 Michal Ludvig <michal@suse.cz>
2598
2599 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2600 (update_context): Initialise cfa variable.
2601
0fe7bf7b
MS
26022002-07-17 Michael Snyder <msnyder@redhat.com>
2603
2604 * aix-thread.c: Shorten some long lines.
2605 Bring comments into line with code spec.
2606
488f131b
JB
26072002-07-18 Joel Brobecker <brobecker@gnat.com>
2608
2609 * infrun.c: Re-indent using gdb_indent.sh.
2610
46c415d2
JB
26112002-07-18 Joel Brobecker <brobecker@gnat.com>
2612
2613 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2614 Leave the indentation temporarily untouched, to minimize the diffs.
2615
cdecafbe
EZ
26162002-07-18 Elena Zannoni <ezannoni@redhat.com>
2617
2618 * stabsread.c: Make os9k sections of the code obsolete,
2619 for real this time.
2620 * stabsread.h: Make os9k sections of the code obsolete.
2621
7b6aa020
ML
26222002-07-18 Michal Ludvig <mludvig@suse.cz>
2623
09ec9b38
ML
2624 * linux-low.c (regsets_store_inferior_registers): Add free()
2625 at the end of a loop to prevent memory leak.
2626 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2627 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2628 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2629 line a comment.
4894ac5d 2630 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2631
233282cd
JB
26322002-07-17 Jim Blandy <jimb@redhat.com>
2633
2634 * macrocmd.c (info_macro_command): Remove newline from error
2635 message.
2636
7b6aa020 26372002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2638
2639 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2640 (sh_gdbarch_init): Use it for sh-dsp.
2641
f7ef9339
KB
26422002-07-16 Kevin Buettner <kevinb@redhat.com>
2643
2644 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2645 64-bit DWARF2 format.
2646
8dd72958
JB
26472002-07-16 Joel Brobecker <brobecker@gnat.com>
2648
2649 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2650 <sys/proc.h> when not available.
2651
a99a9e1b
AC
26522002-07-16 Andrew Cagney <ac131313@redhat.com>
2653
2654 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2655 * stabsread.c: Make os9k sections of the code obsolete.
2656 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2657 * config/i386/i386os9k.mt: Make file obsolete.
2658 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2659 (COMMON_OBS): Remove os9kread.o
2660 (SFILES): Remove os9kread.c.
2661 (os9kread.o, remote-os9k.o): Make target obsolete.
2662 * remote-os9k.c: Make file obsolete.
2663 * os9kread.c: Make file obsolete.
2664 * Makefile.in
2665
7a3085c1
AC
26662002-07-16 Andrew Cagney <ac131313@redhat.com>
2667
2668 * NEWS: Mention that the FR30 has been made obsolete.
2669 * fr30-tdep.c: Make file obsolete.
2670 * config/fr30/tm-fr30.h: Ditto.
2671 * config/fr30/fr30.mt: Ditto.
2672 * configure.tgt: Make fr30-*-elf obsolete.
2673 * MAINTAINERS: Make fr30-elf obsolete.
2674
28a93f5a
PM
26752002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2676
2677 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2678 found is not inside a section.
2679
be006b8b
KB
26802002-07-15 Kevin Buettner <kevinb@redhat.com>
2681
2682 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2683 strerror().
2684 (pdc_realloc): Use xrealloc() instead of realloc().
2685
14fa3751
KB
26862002-07-15 Kevin Buettner <kevinb@redhat.com>
2687
2688 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2689 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2690 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2691 macros.
2692
42cc437f
KB
26932002-07-15 Kevin Buettner <kevinb@redhat.com>
2694
2695 * aix-thread.c (ptrace_check): Eliminate goto.
2696 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2697 problem.
2698
8e2c28d4
KB
26992002-07-15 Kevin Buettner <kevinb@redhat.com>
2700
2701 * aix-thread.c (gdbcmd.h): Include.
2702 (DEBUG, DBG, DBG2, dbg): Eliminate.
2703 (debug_aix_thread): New static global.
2704 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2705 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2706 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2707 invocations to DBG and DBG2 macros to test against
2708 ``debug_aix_thread'' and call fprintf_unfiltered().
2709 (_initialize_aix_thread): Add new command "set debug aix-thread".
2710
30413464
AC
27112002-07-15 Andrew Cagney <ac131313@redhat.com>
2712
2713 From Gerhard Tonn <TON@de.ibm.com>:
2714 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2715 instead of supply_register.
2716
7c43edc1
AC
27172002-07-15 Andrew Cagney <ac131313@redhat.com>
2718
2719 * dwarf2cfi.c: Include "gdb_assert.h".
2720 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2721 non-NULL.
2722 (update_context): Do not use __func__. Add missing ``break''.
2723 (update_context): Do not use __func__.
2724
9364a0ef
EZ
27252002-07-15 Elena Zannoni <ezannoni@redhat.com>
2726
2727 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2728 and its setting. Set gdbarch instruction printing functions
2729 directly. For non-rs6000 case use new function
2730 gdb_print_insn_powerpc.
2731 (gdb_print_insn_powerpc): New function.
2732
3fbeef0b
AC
27332002-07-13 Andrew Cagney <ac131313@redhat.com>
2734
92eb23c5 2735 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
2736 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2737 * configure.tgt: Mark d30v-*-* as obsolete.
2738 * d30v-tdep.c: Mark file as obsolete.
2739 * config/d30v/d30v.mt: Ditto.
2740 * config/d30v/tm-d30v.h: Ditto.
2741
aacb1f0a
AS
27422002-07-13 Aidan Skinner <aidan@velvet.net>
2743
2744 * ada-tasks.c (add_task_entry): replace calls to
2745 malloc() with xmalloc
2746 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2747
2748 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2749 ada_finish_decode_line_1, all_sals_for_line
2750 ada_breakpoint_rewrite): replace calls to free() with xfree()
2751
c11d79f2
KB
27522002-07-12 Kevin Buettner <kevinb@redhat.com>
2753
2754 From Nicholas Duffek (with minor changes by Martin Hunt,
2755 Louis Hamilton, and Kevin Buettner):
2756 * aix-thread.c: New file.
2757
8e19ed76
PS
27582002-07-12 Petr Sorfa <petrs@caldera.com>
2759
2760 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2761 complaint for invalid attribute class or form.
2762 (read_func_scope): DW_AT_frame_base
2763 better handling of DW_AT_block*.
2764 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2765 better handling of DW_AT_block*.
2766 (read_common_block): DW_AT_location
2767 better handling of DW_AT_block*.
2768 (read_partial_die): DW_AT_location better handling
2769 of DW_AT_block*.
2770 (new_symbol): DW_AT_external better handling of
2771 DW_AT_block*. Proper initialization of variable
2772 "addr".
2773 (attr_form_is_block): New function that returns true
2774 if the attribute's form is of DW_FORM_block*.
2775
295401f7
DJ
27762002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2777
2778 * valops.c (find_method_list): Remove comment about
2779 removed STATIC_MEMFUNCP argument.
2780 (value_find_oload_method_list): Likewise.
2781
e42dc924
KB
27822002-07-12 Kevin Buettner <kevinb@redhat.com>
2783
2784 From Nicholas Duffek:
2785 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2786 target_new_objfile_hook.
2787
6904b546
KB
27882002-07-12 Kevin Buettner <kevinb@redhat.com>
2789
2790 From Nicholas Duffek:
2791 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2792 csect.
2793
53fe9346
AC
27942002-07-12 Andrew Cagney <cagney@redhat.com>
2795
2796 * MAINTAINERS: Mention --enable-sim-build-warnings.
2797 (m68hc11-elf): Disable sim build warnings.
2798 (m32r-elf): Mark as broken obsolete candidate.
2799 (x86_64-linux-gnu): Mark as buildable with -Werror.
2800 (arm-elf): Change -w to ``,'' which enables warnings but not
2801 -Werror.
2802
af5f3db6
AC
28032002-07-12 Andrew Cagney <ac131313@redhat.com>
2804
2805 * bcache.h: Update copyright.
2806 (struct bstring, struct bcache): Move definition to "bcache.c".
2807 Replaced by opaque declaration.
2808 (bcache_xfree): Replace free_bcache.
2809 (bcache_xmalloc, bcache_memory_used): Declare.
2810
2811 * bcache.c: Update copyright.
2812 (struct bstring, struct bcache): Moved to here from "bcache.h".
2813 Update comments.
2814 (bcache_xmalloc, bcache_memory_used): New functions.
2815 (bcache_xfree): Replace function free_bcache.
2816
2817 * Makefile.in (objfiles.o): Add $(bcache_h).
2818 (objfiles_h): Remove $(bcache_h).
2819 (symfile.o): Add $(bcache_h).
2820
2821 * symmisc.c: Update copyright.
2822 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2823 (print_objfile_statistics): Use bcache_memory_used.
2824
2825 * symfile.c: Include "bcache.h".
2826 (reread_symbols): Use bcache_xfree.
2827 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2828 (add_psymbol_to_list): Pass psymbol_cache by value.
2829 (add_psymbol_with_dem_name_to_list): Ditto.
2830
2831 * objfiles.h: Update copyright.
2832 (struct bcache): Declare opaque. Do not include "bcache.h".
2833 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2834 bcache'' pointers.
2835 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2836
2837 * objfiles.c: Include "bcache.h". Update copyright.
2838 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2839 macro_cache.
2840 (free_objfile): Use bcache_xfree.
2841
444199e7
GS
28422002-07-11 Grace Sainsbury <graces@redhat.com>
2843
2844 * monitor.c (monitor_fetch_register): Make name a constant.
2845 (monitor_store_register): Same.
2846
261397f8
DJ
28472002-07-11 Daniel Jacobowitz <drow@mvista.com>
2848
2849 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2850 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2851 (finish_block) For non-function blocks, hash the symbol table. For
2852 function blocks, mark the symbol table as unhashed.
2853 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2854 (msymbol_hash_iw): Likewise.
2855 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2856 value.
2857 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2858 (lookup_minimal_symbol): Likewise for both.
2859 * symtab.h (struct block): Add `hashtable' flag. Comment the
2860 hashtable.
2861 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2862 (ALL_BLOCK_SYMBOLS): Update.
2863 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2864 (struct symbol): Add `hash_next' pointer.
2865 * symtab.c (lookup_block_symbol): Search using the hash table when
2866 possible.
2867 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2868 (search_symbols, find_addr_symbol): Likewise.
2869
2870 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2871 (read_dst_symtab): Likewise.
2872 * jv-lang.c (get_java_class_symtab): Likewise.
2873 * mdebugread.c: Include "gdb_assert.h".
2874 (shrink_block): Assert that the block being modified is not hashed.
2875 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2876 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2877 symbols.
2878 (dump_symtab): Recognize hashed blocks.
2879 * printcmd.c (print_frame_args): Assert that function blocks do not
2880 have hashed symbol tables.
2881 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2882 (fill_in_ada_prototype, debug_print_block): Likewise.
2883 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2884
6f0eaa01
CV
28852002-07-11 Corinna Vinschen <vinschen@redhat.com>
2886
2887 * stack.c (print_frame): Use result of frame_address_in_block()
2888 instead of fi->pc when evaluating symbols.
2889 (backtrace_command_1): Ditto.
2890
a208b0cb
AC
28912002-07-11 Andrew Cagney <cagney@redhat.com>
2892
2893 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2894 Make static.
2895
2896 * arm-tdep.c (arm_register_name): Make return type constant.
2897
a6b6b089
AC
28982002-07-10 Andrew Cagney <ac131313@redhat.com>
2899
5ae5f592
AC
2900 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2901 prototype.
2902 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2903 * s390-tdep.c (s390_fp_regnum): Ditto.
2904 (s390_read_fp): Ditto.
2905 (s390_pop_frame): Ditto.
2906 (_initialize_s390_tdep): Ditto.
2907 * remote.c (get_remote_state): Ditto.
2908 * procfs.c (mappingflags): Ditto.
2909 * memattr.c (_initialize_mem): Ditto.
2910 * mcore-tdep.c (mcore_pop_frame): Ditto.
2911 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2912 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2913 * language.c (set_case_str): Ditto.
2914 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2915 * frv-tdep.c (new_variant): Ditto.
2916 (frv_stopped_data_address): Ditto.
2917 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2918 (context_alloc): Ditto.
2919 (frame_state_alloc): Ditto.
2920 (unwind_tmp_obstack_init): Ditto.
2921 (unwind_tmp_obstack_free): Ditto.
2922 (cfi_read_fp): Ditto.
2923 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2924 (cris_pop_frame): Ditto.
2925 * c-lang.c (scanning_macro_expansion): Ditto.
2926 (finished_macro_expansion): Ditto.
2927 (c_preprocess_and_parse): Ditto.
2928 * gdbarch.sh: Ditto.
2929 * gdbarch.h, gdbarch.c: Regenerate.
2930 * config/mn10200/tm-mn10200.h: Adjust indentation.
2931 * target.c: Adjust indentation.
2932 * symtab.h: Adjust indentation.
2933 * stabsread.h: Adjust indentation.
2934 * remote-es.c: Adjust indentation.
2935 * os9kread.c: Adjust indentation.
2936
29372002-07-10 Andrew Cagney <ac131313@redhat.com>
2938
a6b6b089
AC
2939 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2940 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2941
a1789893
GS
29422002-07-10 Grace Sainsbury <graces@redhat.com>
2943
2944 * NEWS: Mention m68k, mcore multi-arching.
2945 * MAINTAINERS: Change status of m68k, mcore to reflect
2946 multi-arching.
2947
02f0d45d
DJ
29482002-07-10 Daniel Jacobowitz <drow@mvista.com>
2949
2950 * valops.c (find_overload_match): Free oload_syms.
2951
f15f768e
JB
29522002-07-09 Joel Brobecker <brobecker@gnat.com>
2953
2954 Define HAVE_SYS_PROC_H if sys/proc.h exists
2955 * configure.in: Add check for sys/proc.h
2956 * config.in: Regenerate.
2957 * configure: Regenerate.
2958
902a7139
GS
29592002-07-09 Grace Sainsbury <graces@redhat.com>
2960
2961 * config/m68k/tm-m68k.h: Remove macros wrapped in
2962 #if !GDB_MULTI_ARCH.
2963
a534e424
AC
29642002-07-08 Andrew Cagney <ac131313@redhat.com>
2965
2966 * config.in, configure: Regenerate.
2967
9b94f7bf
MK
29682002-07-08 Mark Kettenis <kettenis@gnu.org>
2969
2970 * dwarf2cfi.c: Include "gcore.h".
2971 (execute_stack_op): Fix implementation of the
2972 DW_OP_deref and DW_OP_deref_size operators by letting do their
2973 lookup in the target.
2974
1d34db41
MK
29752002-07-07 Mark Kettenis <kettenis@gnu.org>
2976
2977 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2978 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2979 tdep->sc_sp_offset.
2980
79d5b63a
DJ
29812002-07-05 Daniel Jacobowitz <drow@mvista.com>
2982
2983 Fix PR gdb/595, gdb/602
2984 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2985 Don't call value_cast, just read the vtable pointer; update comments
2986 to match.
2987
3bb912e8
GS
29882002-07-05 Grace Sainsbury <graces@redhat.com>
2989
2990 * config/mcore/tm-mcore.h: Remove file.
2991 * config/mcore/mcore.mt: Remove definition of TM_FILE
2992 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2993
ca39387d
MK
29942002-07-05 Mark Kettenis <kettenis@gnu.org>
2995
2996 * i386bsd-tdep.c: Include "gdb_string.h".
2997
efdc1108
GS
29982002-07-04 Grace Sainsbury <graces@redhat.com>
2999
3000 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3001 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3002 mcore-tdep.
3003 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3004 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3005 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3006 (RETVAL_REGNUM): Move macros from tm-mcore.h
3007 (mcore_reg_struct_has_addr): New function.
3008 (mcore_gdbarch_init): Added initializations for the macros removed
3009 from tm-mcore.h.
3010
bb21884d
MK
30112002-07-04 Mark Kettenis <kettenis@gnu.org>
3012
3013 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3014 traditonal string branding within the ELF header.
3015
228c6d41
DJ
30162002-07-04 Daniel Jacobowitz <drow@mvista.com>
3017
3018 * symtab.c (remove_params): New function.
3019 (make_symbol_overload_list): Use it instead of cplus_demangle.
3020 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3021
2404952e
MK
30222002-07-04 Mark Kettenis <kettenis@gnu.org>
3023
e5e4acad
MK
3024 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3025
baadce09
MK
3026 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3027 New variables.
3028 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3029 and tdep->sigtramp_end.
3030 * i386obsd-nat.c: New file.
3031 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3032
2404952e
MK
3033 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3034 Don't call get_current_frame().
3035
9b4f1ba7
PM
30362002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3037
3038 * i386-nat.c (child_post_startup_inferior): New function
3039 calling i386_cleanup_dregs if
3040 I386_USE_GENERIC_WATCHPOINTS is defined.
3041 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3042 conditional to acknowledge that i386-nat.c has its
3043 own child_post_startup_inferior function.
3044
c0d1d883
MK
30452002-07-04 Mark Kettenis <kettenis@gnu.org>
3046
00f8375e
MK
3047 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3048 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3049 instead of MAX_REGISTER_RAW_SIZE.
3050 (i386_extract_return_value, i386_extract_struct_value_address):
3051 Convert to use regcache.
3052 (i386_gdbarch_init): Set max_register_raw_size and
3053 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3054 Set extract_return_value and extract_struct_value_address instead
3055 of their deprecated variants.
3056
c0d1d883
MK
3057 Convert i386 target to generic dummy frames.
3058 * i386-tdep.c: Include "symfile.h".
3059 (i386_frameless_signal_p): Consider a function to be frameless if
3060 the pc points at the first instruction of the function.
3061 (i386_frame_chain): Handle (generic) call dummies.
3062 (i386_frame_saved_pc): Likewise.
3063 (i386_frame_init_saved_regs): Remove code dealing with call
3064 dummies on the stack.
3065 (i386_push_dummy_frame): Removed.
3066 (i386_call_dummy_words): Removed.
3067 (i386_fix_call_dummy): Removed.
3068 (i386_push_return_address): New function.
3069 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3070 parameter, and don't call get_current_frame.
3071 (i386_pop_frame): New function.
3072 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3073 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3074 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3075 call_dummy_length to 0, set call_dummy_words to NULL, set
3076 sizeof_call_dummy_words to 0, set fix_call_dummy to
3077 generic_fix_call_dummy, set pc_in_call_dummy to
3078 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3079 generic_push_dummy_frame, set push_return_address to
3080 i386_push_return_address and set frame_chain_valid to
3081 generic_file_frame_chain_valid.
3082
049ee0e4
AC
30832002-07-03 Andrew Cagney <ac131313@redhat.com>
3084
3085 * gdbarch.sh (struct regcache): Add opaque declaration.
3086 (EXTRACT_RETURN_VALUE): New architecture method.
3087 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3088 * gdbarch.h, gdbarch.c: Regenerate.
3089 * arch-utils.c (legacy_extract_return_value): New function.
3090 * arch-utils.h (legacy_extract_return_value): Declare.
3091 * values.c (value_being_returned): Re-enable code handling
3092 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3093 deprecated_grub_regcache_for_registers call to block handling
3094 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3095 (EXTRACT_RETURN_VALUE): Do not define.
3096
4e0d9804
GS
30972002-07-03 Grace Sainsbury <graces@redhat.com>
3098
3099 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3100 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3101 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3102 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3103 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3104 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3105 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3106 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3107 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3108 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3109 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3110 argument so the function fits the prototype in the architecture
3111 vector.
3112 (mcore_pop_frame): Remove argument so the function fits the
3113 prototype. Use get_current_frame instead of the argument.
3114 (mcore_push_arguments): Change type of struct_return so the
3115 function can be used in the architecture vector.
3116 (mcore_store_struct_return): Add.
3117 (mcore_frame_init_saved_regs): Add.
3118 (mcore_gdbarch_init): Add function calls to replace the macros
3119 removed from tm-mcore.h
3120
36160dc4
AC
31212002-07-03 Andrew Cagney <ac131313@redhat.com>
3122
3123 * infcmd.c (print_return_value): Remove compatibility code calling
3124 deprecated_grub_regcache_for_registers.
3125
3126 * values.c: Include "regcache.h".
3127 (value_being_returned): Update. Use
3128 deprecated_grub_regcache_for_registers to extract the register
3129 buffer address.
3130 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3131 ``struct regcache''.
3132 * Makefile.in (values.o): Add dependency on $(regcache_h).
3133
3134 * inferior.h (run_stack_dummy): Change type of second parameter to
3135 a ``struct regcache''.
3136 * valops.c (hand_function_call): Change type of retbuf to ``struct
3137 regcache''. Allocate using regcache_xmalloc, clean using
3138 make_cleanup_regcache_xfree.
3139 * infcmd.c (run_stack_dummy): Update. Use
3140 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3141
3142 * regcache.c (do_regcache_xfree): New function.
3143 (make_cleanup_regcache_xfree): New function.
3144 * regcache.h (make_cleanup_regcache_xfree): Declare.
3145
e64d9b3d
MH
31462002-07-03 Martin M. Hunt <hunt@redhat.com>
3147
4dd79c29
MH
3148 * event-top.c (command_line_handler): Don't read past
3149 beginning of buffer.
e64d9b3d 3150
4dd79c29
MH
31512002-07-03 Martin M. Hunt <hunt@redhat.com>
3152
e64d9b3d
MH
3153 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3154 struct frame_id.
3155 (varobj_create): Store frame_id for root.
3156 (varobj_gen_name): Use xasprintf.
3157 (varobj_update): Save and restore frame using get_frame_id() and
3158 frame_find_by_id().
3159 (create_child): Use xasprintf.
3160 (new_root_variable): Initialize frame_id.
3161 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3162 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3163 to prevent memory leak.
3164
26e6c56a
AC
31652002-07-03 Andrew Cagney <ac131313@redhat.com>
3166
3167 * valops.c (hand_function_call): Move declaration of retbuf to
3168 start of function, allocate using malloc, add a cleanup but before
3169 the inf_status cleanup, cleanup the buffer. Rename local variable
3170 old_chain to inf_status_cleanup.
3171
f436dd25
MH
31722002-07-03 Martin M. Hunt <hunt@redhat.com>
3173
3174 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3175
3176 * cli/cli-decode.c (cmd_func_p): New function.
3177 (cmd_func): New function.
3178
3179 * command.h: Add cmd_func() and cmd_func_p().
3180
4cfe2084
GS
31812002-07-03 Grace Sainsbury <graces@redhat.com>
3182
3183 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3184 (REGISTER_SIZE): Remove.
3185 (MAX_REGISTER_RAW_SIZE): Remove.
3186 (REGISTER_VIRTUAL_TYPE): Remove.
3187 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3188 (REGISTER_NAME): Remove.
3189 (USE_GENERIC_DUMMY_FRAMES): Remove.
3190 (CALL_DUMMY): Remove.
3191 (CALL_DUMMY_START_OFFSET): Remove.
3192 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3193 (CALL_DUMMY_LOCATION): Remove.
3194 (FIX_CALL_DUMMY): Remove.
3195 (CALL_DUMMY_ADDRESS): Remove.
3196 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3197 (SAVE_DUMMY_FRAME_TOS): Remove.
3198 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3199 (mcore_register_virtual_type): New function.
3200 (mcore_register_byte): New function.
3201 (mcore_register_size): New function.
3202 (mcore_register_name): New function.
3203 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3204 macros removed from tm-mcore.h.
3205 (mcore_dump_tdep): Add.
3206 (_initialize_mcore_tdep): Add gdbarch_register call.
3207
4fd667e9
MK
32082002-07-03 Mark Kettenis <kettenis@gnu.org>
3209
3210 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3211 frameless_look_for_prologue, such that we actually call this
3212 function.
3213
42f99ac2
JB
32142002-07-02 Joel Brobecker <brobecker@gnat.com>
3215
3216 * frame.h (frame_address_in_block): New function.
3217
3218 * blockframe.c (frame_address_in_block): New function extracted
3219 from get_frame_block().
3220 (get_frame_block): Use frame_address_in_block().
3221 (block_innermost_frame): Use frame_address_in_block() to match
3222 the frame pc address against the block boundaries rather than
3223 the frame pc directly. This prevents a failure when a frame pc
3224 is actually a return-address pointing immediately after the end
3225 of the given block.
3226
103a1597 32272002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3228
3229 * MAINTAINERS: Add self under write after approval.
3230
32312002-07-02 Grace Sainsbury <graces@redhat.com>
3232
103a1597
GS
3233 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3234 used in architecture vector. The default is
3235 m68k_local_breakpoint_from_pc.
3236 (m68k_local_breakpoint_from_pc): Add.
3237 (enum): Add register numbers from tm-m68k.h.
3238 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3239 vector.
3240 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3241 GDB_MULTI_ARCH_PARTIAL.
3242 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3243 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3244 m68k-tdep.c.
3245 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3246 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3247 to enum in m68k-tdep.c
3248
7a5a0534
JB
32492002-07-02 Joel Brobecker <brobecker@gnat.com>
3250
3251 * solib-osf.c (open_map): Compute the list of shared libraries
3252 loaded by the inferior, rather than the list of libraries loaded
3253 by GDB itself. Otherwise, GDB ends up reading the symbols from
3254 the wrong shared libraries...
3255
6f558d74
MK
32562002-07-02 Mark Kettenis <kettenis@gnu.org>
3257
b7d15bf7
MK
3258 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3259 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3260 macros.
3261 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3262 Remove functions.
3263 (FRAMELESS_SIGNAL): Remove function.
3264 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3265 i386_linux_saved_pc_after_call): Removed.
3266 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3267 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3268 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3269
6bff26de
MK
3270 * i386-tdep.c (i386_frameless_signal_p): New function.
3271 (i386_frame_chain): Deal with frameless signals.
3272 (i386_sigtramp_saved_sp): New function.
3273 (i386_frame_saved_pc): Deal with frameless signals.
3274 (i386_saved_pc_after_call): Make sure the correct value is
3275 returned just after entry into a sigtramp.
3276 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3277 i386fbsd4_sc_sp_offset): New variables.
3278 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3279 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3280 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3281 similiar to what we already did for sc_pc_offset.
3282 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3283 tdep->sc_sp_offset.
3284
6f558d74
MK
3285 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3286
145564b7
ML
32872002-07-02 Michal Ludvig <mludvig@suse.cz>
3288
3289 * config/i386/tm-x86-64linux.h: New.
3290 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3291 definitions.
3292 * config/i386/nm-x86-64.h: Rename to ...
3293 * config/i386/nm-x86-64linux.h: ... this one.
3294 * config/i386/x86-64linux.mh: Reflect the above change.
3295
3a1e71e3
MK
32962002-07-01 Mark Kettenis <kettenis@gnu.org>
3297
21d0e8a4
MK
3298 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3299 with sigcontext_addr. Add sc_sp_offset.
3300 (i386bsd_sigtramp_saved_pc): Remove prototype.
3301 (i386bsd_sicontext_addr): Add prototype.
3302 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3303 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3304 (i386_svr4_sigtramp_saved_pc): Removed.
3305 (i386_svr4_sigcontext_addr): New function.
3306 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3307 Initialize tdep->sigcontext_addr instead. Initialize
3308 tdep->sc_pc_offset and tdep->sc_sp_offset.
3309 (i386_gdbarch_init): Likewise.
3310 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3311 any more.
3312 (i386bsd_sigtramp_saved_pc): Remove function.
3313 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3314 Initialize tdep->sigcontext_addr instead. Initialize
3315 tdep->sc_pc_offset.
3316 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3317 of tdep->sigtramp_saved_pc.
3318 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3319 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3320 instead.
3321
3a1e71e3
MK
3322 * i386-tdep.c (i386_frameless_function_invocation,
3323 i386_frame_num_args, i386_frame_init_saved_regs,
3324 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3325 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3326 i386_extract_return_value, i386_store_return_value,
3327 i386_extract_struct_value_address, i386_register_virtual_type,
3328 i386_register_convertible, i386_register_convert_to_virtual,
3329 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3330 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3331 static.
3332
52e9098c
MK
33332002-07-01 Mark Kettenis <kettenis@gnu.org>
3334
77b13a25
MK
3335 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3336
52e9098c
MK
3337 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3338 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3339 this macro. Include "value.h".
3340
1b372fff
AS
33412002-06-30 Aidan Skinner <aidan@velvet.net>
3342
3343 * ada-exp.tab.c: remove as it's a generated file
3344 * ada-lex.c: remove as it's a generated file
3345
9c5045b5
MK
33462002-06-30 Mark Kettenis <kettenis@gnu.org>
3347
4a93c5bb
MK
3348 * config/i386/tm-i386.h (struct frame_info, struct
3349 frame_saved_regs, struct value, struct type): Remove forward
3350 declarations.
3351
322d4fe0
MK
3352 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3353 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3354 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3355 (FILL_FPXREGSET): Define.
3356
fdd8263d
MK
3357 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3358
482e577b
MK
3359 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3360 i[3456]86-*-netbsd* case.
3361 * config/i386/tm-obsd.h: Removed.
3362 * config/i386/obsd.mt: Removed.
3363 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3364 core-aout.o.
3365 (MH_CFLAGS): Add -DYYDEBUG=0.
3366
6916549a
MK
3367 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3368 i386nbsd_sc_pc_offset on OpenBSD too.
3369
9c5045b5
MK
3370 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3371 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3372 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3373 define.
3374 * i386bsd-tdep.c: Include "arch-utils.h".
3375 (i386bsd_aout_in_solib_call_trampoline): New function.
3376 (i386bsd_init_abi): Set in_solib_call_trampoline to
3377 i386bsd_aout_in_solib_call_trampoline.
3378 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3379 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3380
aa84d1bb
AC
33812002-06-28 Andrew Cagney <ac131313@redhat.com>
3382
3383 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3384 (struct obstack, struct bcache): Add opaque declarations.
3385 * Makefile.in (macrotab_h): Update
3386
b4d83933
AC
33872002-06-28 Andrew Cagney <ac131313@redhat.com>
3388
3389 * blockframe.c (generic_find_dummy_frame): Change return type to
3390 ``struct regcache''.
3391 (struct dummy_frame): Replace field ``registers'' with regcache, a
3392 struct regcache object.
3393 (generic_find_dummy_frame): Update.
3394 (generic_push_dummy_frame): Update. Use regcache_xfree,
3395 regcache_xmalloc and regcache_cpy.
3396 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3397 regcache_xfree.
3398 (deprecated_generic_find_dummy_frame): Update.
3399 (generic_read_register_dummy): Update. Use
3400 regcache_read_as_address.
3401 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3402 (generic_get_saved_register): Update. Use regcache_read.
3403
08c0b5bc
AC
34042002-06-28 Andrew Cagney <ac131313@redhat.com>
3405
3406 * Makefile.in (objfiles_h): Add $(bcache_h).
3407 * objfiles.h: Include "bcache.h".
3408
3409 * Makefile.in (symtab_h): Remove $(bcache_h).
3410 * symtab.h: Do not include "bcache.h".
3411
1f89801a
AC
34122002-06-28 Andrew Cagney <ac131313@redhat.com>
3413
3414 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3415 generic_func_frame_chain_valid.
3416
b9644b58
DB
34172002-06-28 David O'Brien <obrien@FreeBSD.org>
3418
3419 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3420 * config/i386/tm-fbsd.h: Likewise.
3421
dd486634
AC
34222002-06-28 Andrew Cagney <ac131313@redhat.com>
3423
3424 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3425 generic_unwind_get_saved_register.
3426
0b434a00
AC
34272002-06-27 Andrew Cagney <ac131313@redhat.com>
3428
3429 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3430 * regcache.c (supply_register): Add missing argument to
3431 register_buffer call.
3432
f30e5a77
AC
34332002-06-27 Andrew Cagney <ac131313@redhat.com>
3434
3435 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3436 Solaris /bin/grep does not not like it. From Peter Schauer.
3437
9f064c95
TT
34382002-06-26 Tom Tromey <tromey@redhat.com>
3439
3440 * command.h (add_setshow_cmd): Declare.
3441 (add_setshow_cmd_full): Declare.
3442 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3443 returns void. Use add_setshow_cmd_full.
3444 (add_setshow_cmd_full): New function.
3445 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3446 (add_setshow_boolean_cmd): Likewise.
3447
099c7589
JT
34482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3449
3450 * config/vax/tm-vax.h: Protect from multiple inclusion.
3451 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3452 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3453 * config/vax/tm-vaxbsd.h: ...here. New file.
3454 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3455
1d049c5e
JT
34562002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3457
3458 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3459 (BELIEVE_PCC_PROMOTION): Remove.
3460 (AP_REGNUM): Move to...
3461 * config/vax/nm-vax.h: ...here.
3462 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3463 (vax_breakpoint_from_pc): New function.
3464 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3465 and gdbarch_believe_pcc_promotion.
3466
4791e091
JT
34672002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3468
3469 * Makefile.in (vax_tdep_h): Define.
3470 (vax-tdep.o): Use $(vax_tdep_h).
3471 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3472 (vax_dump_tdep): New function.
3473 (_initialize_vax_tdep): Register vax_dump_tdep.
3474 * vax-tdep.h: Include osabi.h.
3475 (struct gdbarch_tdep): New.
3476
da130f98
AC
34772002-06-26 Andrew Cagney <cagney@redhat.com>
3478
3479 * frame.h (deprecated_generic_find_dummy_frame): Rename
3480 generic_find_dummy_frame.
3481 * blockframe.c (generic_find_dummy_frame): Make static.
3482 (deprecated_generic_find_dummy_frame): New function.
3483 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3484 generic_find_dummy_frame with deprecated_find_dummy_frame.
3485 (sh64_nofp_frame_init_saved_regs): Ditto.
3486 (sh_fp_frame_init_saved_regs): Ditto.
3487 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3488 (s390_frame_chain): Ditto.
3489 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3490
6300c360
GS
34912002-06-26 Grace Sainsbury <graces@redhat.com>
3492
3493 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3494 gdbarch vector are at the top.
3495 (NUM_REGS): Remove.
3496 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3497 (FRAME_ARGS_ADDRESS): Remove.
3498 (FRAME_LOCALS_ADDRESS): Remove.
3499 (FRAME_NUM_ARGS): Remove.
3500 (FRAME_ARGS_SKIP): Remove.
3501 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3502 (m68k_gdbarch_init): Add gdbarch initializations for macros
3503 undefined in tm-m68k.h
3504
1c617db8
GS
35052002-06-26 Grace Sainsbury <graces@redhat.com>
3506
3507 * monitor.h: Add the function regname to monitor_ops
3508 structure. This way NUM_REGS does not have to be a constant.
3509 * monitor.c (monitor_fetch_register): Added support for regname
3510 function. The function is called if the array regnames is NULL.
3511 (monitor_store_register): Same.
da130f98
AC
3512 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3513 regnames array.
1c617db8
GS
3514 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3515 cpu32bug_cmds.regname to point to new function.
3516 * abug-rom.c (abug_regname): Same as above.
3517 (init_abug_cmds): Same.
3518 * dbug-rom.c (dbug_regname): Same as above.
3519 (init_dbug_cmds): Same.
3520 * remote-est.c (est_regname): Same.
3521 (init_est_cmds): Same.
3522 * rom68k-rom.c (rom68k_regname): Same.
3523 (init_rom68k_cmds): Same.
3524
ea9365bb
TT
35252002-06-25 Tom Tromey <tromey@redhat.com>
3526
3527 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3528
72cec141
AC
35292002-06-25 Andrew Cagney <cagney@redhat.com>
3530
3531 * infrun.c (stop_registers): Change variable's type to ``struct
3532 regcache'''.
3533 (xmalloc_inferior_status): Delete function.
3534 (free_inferior_status): Delete function.
3535 (normal_stop): Use regcache_cpy.
3536 (struct inferior_status): Change type of fields ``stop_registers''
3537 and ``registers'' to ``struct regcache''.
3538 (write_inferior_status_register): Use regcache_write.
3539 (save_inferior_status): Instead of calling
3540 xmalloc_inferior_status, allocate the inf_status buffer directly.
3541 Use regcache_dup_no_passthrough and regcache_dup to save the
3542 buffers.
3543 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3544 Replace the stop_registers regcache instead of overriding it. Use
3545 regcache_xfree. Instead of calling free_inferior_status, xfree
3546 the buffer directly.
3547 (discard_inferior_status): Use regcache_xfree. Instead of calling
3548 free_inferior_status, xfree the buffer directly.
3549 (build_infrun): Use regcache_xmalloc.
3550 (_initialize_infrun): Delete redundant call to build_infrun.
3551
3552 * Makefile.in (infcmd.o): Add $(regcache_h).
3553
3554 * infcmd.c: Include "regcache.h".
3555 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3556 obtain the address of `stop_registers' register buffer.
3557 (print_return_value): Ditto.
3558
3559 * inferior.h (struct regcache): Add opaque declaration.
3560 (stop_registers): Change variable's declared type to ``struct
3561 regcache''.
3562
defc6f8c
TT
35632002-06-24 Tom Tromey <tromey@redhat.com>
3564
c0e624e7
TT
3565 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3566 * target.c (initialize_targets): Fixed typo in
3567 trust-readonly-sections `show' documentation.
3568
defc6f8c
TT
3569 * main.c: Marked all strings with _().
3570
2b236d82
DH
35712002-06-24 Don Howard <dhoward@redhat.com>
3572
3573 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3574 that means max CORE_ADDR+1.
3575 (lookup_mem_region): Ditto.
3576 (mem_info_command): Ditto.
3577
942dc0e9
GS
35782002-06-24 Grace Sainsbury <graces@redhat.com>
3579
3580 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3581 (REGISTER_BYTES_OK): Remove.
3582 (REGISTER_BYTES): Remove.
3583 (STORE_STRUCT_RETURN): Remove.
3584 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3585 (STORE_RETURN_VALUE): Remove.
3586 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3587 (FRAME_CHAIN): Remove.
3588 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3589 (FRAME_SAVED_PC): Remove.
3590 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3591 (m68k_store_struct_return): Add.
3592 (m68k_deprecated_extract_return_value): Add.
3593 (m68k_deprecated_extract_struct_value_address): Add.
3594 (m68k_store_return_value): Add.
3595 (m68k_frame_chain): Add.
3596 (m68k_frameless_function_invocation): Add.
3597 (m68k_frame_saved_pc): Add.
3598 (m68k_gdbarch_init): added set_gdbarch calls for new
3599 functions and deleted macros.
3600
03c30d4d
TT
36012002-06-23 Tom Tromey <tromey@redhat.com>
3602
3603 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3604 (ALLDEPFILES): Likewise.
3605 (udiheaders): Removed.
3606 (udip2soc.o): Likewise.
3607 (udi2go32.o): Likewise.
3608 (udr.o): Likewise.
3609 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3610
37e71372
AC
36112002-06-22 Andrew Cagney <ac131313@redhat.com>
3612
06a6ac57
AC
3613 * infrun.c (_initialize_infrun): Delete unnecessary call to
3614 build_infrun.
3615
37e71372
AC
3616 * regcache.h: Update comments describing the regcache_cpy family
3617 of functions.
3618 (regcache_save, regcache_restore): Delete declaration.
3619 (regcache_save_no_passthrough): Delete declaration.
3620 (regcache_restore_no_passthrough): Delete declaration.
3621 * regcache.c (regcache_save): Delete function.
3622 (regcache_save_no_passthrough): Delete function.
3623 (regcache_restore): Delete function.
3624 (regcache_restore_no_passthrough): Delete function.
3625
78f6d055
AC
36262002-06-21 Andrew Cagney <ac131313@redhat.com>
3627
3628 * config/m68k/tm-m68k.h: Fix typo.
3629 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3630 (m68k_frame_init_saved_regs): Declare.
3631
78b119cb
JB
36322002-06-21 Jim Blandy <jimb@redhat.com>
3633
3634 Remove some vestiges of Harris 88k support.
3635 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3636 register numbering quirk.
3637 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3638 odd symbols occurring in Harris 88k ELF targets.
3639
0fbb3da7
TT
36402002-06-21 Tom Tromey <tromey@redhat.com>
3641
3642 * gdb_locale.h: New file.
3643 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3644 (defs_h): Added gdb_locale.h.
3645 * configure, config.in: Rebuilt.
3646 * configure.in (PACKAGE): Define.
3647 * defs.h: Include gdb_locale.h.
3648 * main.c (captured_main): Call setlocale, bindtextdomain,
3649 textdomain.
3650
456f8b9d
DB
36512002-06-21 Dave Brolley <brolley@redhat.com>
3652
3653 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3654 * config/frv/frv.mt: New file.
3655 * config/frv/tm-frv.h: New file.
3656 * configure.tgt: Support frv-*-*.
3657 * Makefile.in (frv-tdep.o): New target.
3658 * frv-tdep.c: New file.
3659 * NEWS: Mention frv.
3660
cdd463f9
DB
36612002-06-21 Dave Brolley <brolley@redhat.com>
3662
3663 * MAINTAINERS: Add self to "Write After Approval" list.
3664
5d3ed2e3
GS
36652002-06-21 Grace Sainsbury <graces@redhat.com>
3666
3667 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3668 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3669 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3670 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3671 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3672
3673 * m68k-tdep.c: Include arch-utils.h
3674 (m68k_register_raw_size): Add.
3675 (m68k_register_virtual_size): Add.
3676 (m68k_register_virtual_type): Add.
3677 (m68k_register_name): Add.
3678 (m68k_stack_align): Add.
3679 (m68k_register_byte): Add.
3680 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3681 tm-m68k.h.
3682
7f8e7424
GS
36832002-06-21 Grace Sainsbury <graces@redhat.com>
3684
a2c6a6d5 3685 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3686 m68k_find_saved_regs.
3687 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3688 references to it with frame->saved_regs.
7f8e7424
GS
3689 (m68k_gdbarch_init): Added function calls to initialize the
3690 gdbarch structure.
a2c6a6d5
GS
3691 (m68k_fix_call_dummy): Add.
3692 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3693 (CALL_DUMMY): Remove.
3694 (CALL_DUMMY_LENGTH): Remove.
3695 (CALL_DUMMY_START_OFFSET): Remove.
3696 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3697 (FIX_CALL_DUMMY): Remove.
3698 (PUSH_DUMMY_FRAME): Remove.
3699 (POP_FRAME): Remove.
7f8e7424 3700
f461f5cf
PM
37012002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3702
3703 * parse.c (parse_fprintf): New function used to avoid calls to
3704 fprintf in bison parser generated debug code.
3705 * parser-defs.h: Declaration of new parse_fprintf function.
3706 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3707 Set YYDEBUG to 1 by default.
3708 Set YYFPRINTF as parse_fprintf.
3709
7f0c12ed
ML
37102002-06-21 Michal Ludvig <mludvig@suse.cz>
3711
3712 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3713 encoding anymore.
3714 (pointer_encoding, enum ptr_encoding): New.
3715 (execute_cfa_program): Take care about pointer encoding.
3716 (dwarf2_build_frame_info): Only call parse_frame_info for
3717 .debug_frame and .eh_frame.
3718 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3719 fixed augmentation handling, added relative addressing,
3720 ignore duplicate FDEs. Added comments.
19d833a2 3721 * dwarf2cfi.c: Reindented.
7f0c12ed 3722
87c4a039
EZ
37232002-06-20 Elena Zannoni <ezannoni@redhat.com>
3724
3725 * event-top.c (command_handler): Don't use space_at_cmd_start
3726 unless there is sbrk() on the host. Assign time and space data
3727 to union fields of the appropriate length.
3728
1cf877ad
ML
37292002-06-20 Michal Ludvig <mludvig@suse.cz>
3730
3731 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3732 x86_64_register_name. Return type changed to 'const char *'.
3733 (x86_64_register_name2nr): Rename to x86_64_register_number.
3734 (x86_64_gdbarch_init): Update to reflect the change.
3735 * x86-64-tdep.h: Ditto.
3736 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3737 (supply_fpregset): Ditto.
3738
3fadccb3
AC
37392002-06-19 Andrew Cagney <cagney@redhat.com>
3740
3741 * regcache.h: Update copyright.
3742 (struct regcache, struct gdbarch): Add opaque declarations.
3743 (current_regcache): Declare global variable.
3744 (regcache_read, regcache_write): Add gdbarch parameter.
3745 (regcache_save, regcache_save_no_passthrough)
3746 (regcache_restore, regcache_restore_no_passthrough)
3747 (regcache_dup, regcache_dup_no_passthrough)
3748 (regcache_cpy, regcache_cpy_no_passthrough)
3749 (deprecated_grub_regcache_for_registers)
3750 (deprecated_grub_regcache_for_register_valid)
3751 (regcache_valid_p): Add function declarations.
3752
3753 * regcache.c: Update copyright.
3754 (regcache_descr_handle): New global variable.
3755 (struct regcache_descr): Define.
3756 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3757 (regcache_descr, xfree_regcache_descr): New functions.
3758 (struct regcache): Define.
3759 (regcache_xmalloc, regcache_xfree): New functions.
3760 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3761 (regcache_dup, regcache_dup_no_passthrough): New functions.
3762 (regcache_valid_p, regcache_read_as_address): New functions.
3763 (deprecated_grub_regcache_for_registers): New function.
3764 (deprecated_grub_regcache_for_register_valid): New function.
3765 (current_regcache): New global variable.
3766 (register_buffer): Add regcache parameter. Update calls.
3767 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3768 (read_register_gen, write_register_gen): Update register_buffer
3769 call. Test for legacy_p instead of gdbarch_register_read_p or
3770 gdbarch_register_write_p.
3771 (regcache_collect): Update register_buffer call.
3772 (build_regcache): Rewrite. Use deprecated grub functions.
3773 (regcache_save, regcache_save_no_passthrough): New functions.
3774 (regcache_restore, regcache_restore_no_passthrough): New
3775 functions.
3776 (_initialize_regcache): Create the regcache_data_handle. Swap
3777 current_regcache global variable.
3778
3779 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3780 parameter to regcache_read and regcache_write calls.
3781 (sh4_register_read): Ditto.
3782 (sh64_pseudo_register_read): Ditto.
3783 (sh64_register_read): Ditto.
3784 (sh_pseudo_register_write): Ditto.
3785 (sh4_register_write): Ditto.
3786 (sh64_pseudo_register_write): Ditto.
3787 (sh64_register_write): Ditto.
3788
3789 * defs.h (XCALLOC): Define.
3790
152d9db6
GS
37912002-06-19 Grace Sainsbury <graces@redhat.com>
3792
3793 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3794 * m68k-tdep.c (m68k_gdbarch_init): Added.
3795 (m68k_dump_tdep): Added.
3796
170911c7
DJ
37972002-06-19 Daniel Jacobowitz <drow@mvista.com>
3798
3799 * ada-lang.c (fill_in_ada_prototype): Update comment.
3800
2e4ebe70
DJ
38012002-06-19 Daniel Jacobowitz <drow@mvista.com>
3802
3803 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3804 MIPS_ABI_LAST.
3805 (mips_abi_string, mips_abi_strings): New.
3806 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3807 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3808 tdep->mips_abi_string. Honor mips_abi_string. Default to
3809 O32 if no ABI is found.
3810 (mips_dump_tdep): Use mips_abi_strings.
3811 (mips_abi_update): New function.
3812 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3813 ``set mips abi'' and ``show mips abi''. Check the size of
3814 mips_abi_strings.
3815
16775908
AC
38162002-06-19 Andrew Cagney <cagney@redhat.com>
3817
3818 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3819 constant.
3820
5051bfa4 38212002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 3822
5051bfa4
JB
3823 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3824 current frame using only the first stack size adjustment. All
3825 subsequent size adjustments are not considered to be part of
3826 the "static" part of the current frame.
3827 Compute the address of the saved registers relative to the
3828 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3829 in use in this frame.
3830
56468235
DH
38312002-06-18 Don Howard <dhoward@redhat.com>
3832
3833 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3834 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3835 suggesting this solution.
3836
0b624158
AC
38372002-06-18 Andrew Cagney <ac131313@redhat.com>
3838
3839 * config/romp/xm-rtbsd.h: Delete file.
3840 * config/romp/rtbsd.mh: Delete file.
3841
221ea385
KS
38422002-06-18 Keith Seitz <keiths@redhat.com>
3843
3844 * breakpoint.c (condition_command): Post breakpoint_modify
3845 when a condition is added to an existing breakpoint.
3846 (commands_command): Likewise for commands.
3847 (set_ignore_count): Likewise for ignore counts.
3848 If no tty, do not simply return, still need to send event
3849 notification.
3850 (ignore_command): Only print a newline if the command came
3851 from a tty.
3852 Don't call breakpoints_changed, since this is now properly
3853 handled by set_ignore_count.
3854
5402eed1
AC
38552002-06-18 Andrew Cagney <cagney@redhat.com>
3856
3857 * MAINTAINERS: Note that cris-elf target can be compiled with
3858 -Werror.
3859 * cris-tdep.c (cris_register_name): Make return type constant.
3860 (cris_breakpoint_from_pc): Ditto.
3861
cc22880b
ML
38622002-06-18 Michal Ludvig <mludvig@suse.cz>
3863
3864 * frame.h (struct frame_info): Change type of context to
3865 'struct context'.
3866
fa88f677
AC
38672002-06-17 Andrew Cagney <cagney@redhat.com>
3868
3869 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3870 pointer.
3871 * gdbarch.h, gdbarch.c: Regenerate.
3872 * config/mips/tm-mips.h (mips_register_name): Update.
3873 * i386-tdep.h (i386_register_name): Update.
3874 * mips-tdep.c (mips_register_name): Update
3875 * alpha-tdep.c (alpha_register_name): Update.
3876 * arch-utils.c (legacy_register_name): Update.
3877 * arch-utils.h (legacy_register_name): Update.
3878 * avr-tdep.c (avr_register_name): Update.
3879 * ia64-tdep.c (ia64_register_name): Update.
3880 * i386-tdep.c (i386_register_name): Update.
3881 * sparc-tdep.c (sparc32_register_name): Update.
3882 (sparc64_register_name): Update.
3883 (sparclite_register_name): Update.
3884 (sparclet_register_name): Update.
3885 * sh-tdep.c (sh_generic_register_name): Update.
3886 (sh_sh_register_name): Update.
3887 (sh_sh3_register_name): Update.
3888 (sh_sh3e_register_name): Update.
3889 (sh_sh_dsp_register_name): Update.
3890 (sh_sh3_dsp_register_name): Update.
3891 (sh_sh4_register_name): Update.
3892 (sh_sh64_register_name): Update.
3893 * s390-tdep.c (s390_register_name): Update.
3894 * rs6000-tdep.c (rs6000_register_name): Update.
3895 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3896 (ns32k_register_name_32382): Update.
3897 * d10v-tdep.c (d10v_ts2_register_name): Update.
3898 (d10v_ts3_register_name): Update.
3899 * xstormy16-tdep.c (xstormy16_register_name): Update.
3900 * vax-tdep.c (vax_register_name): Update.
3901 * v850-tdep.c (v850_register_name): Update.
3902 * m68hc11-tdep.c (m68hc11_register_name): Update.
3903 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3904 (am33_register_name): Update.
3905
ea1e7ef6
GS
39062002-06-17 Grace Sainsbury <graces@redhat.com>
3907
3908 * m68k-tdep.c: Reindented.
3909
9b02dd1b
AC
39102002-06-17 Andrew Cagney <ac131313@redhat.com>
3911
3912 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3913 list of predefined types.
3914
8758dec1
MK
39152002-06-16 Mark Kettenis <kettenis@gnu.org>
3916
b6197528
MK
3917 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3918 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3919 REGISTER_CONVERT_TO_RAW): Remove defines.
3920 (i386_register_virtual_type, i386_register_convertible,
3921 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3922 Remove prototypes.
3923 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3924 macros mentioned above.
3925
82b47e62
MK
3926 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3927 (i386lynx_saved_pc_after_call): Remove prototype.
3928 * i386ly-tdep.c: Include "i386-tdep.h".
3929 (i386lynx_saved_pc_after_call): Make static. Use
3930 read_memory_nobpt instead of read_memory. Use
3931 read_memory_unsigned_integer instead of read_memory_integer.
3932 (i386lynx_init_abi): New function.
3933 (i386lynx_coff_osabi_sniffer): New function.
3934 (_initialize_i386bsd_tdep): New function.
3935
8758dec1
MK
3936 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3937 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3938 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3939 (i386_fix_call_dummy): Remove prototype.
3940 * i386-tdep.c (i386_call_dummy_words): New variable.
3941 (i386_gdbarch_init): Adjust for removal of the
3942 macros mentioned above.
3943
e9e68a56
AC
39442002-06-15 Andrew Cagney <ac131313@redhat.com>
3945
3946 * command.h (add_setshow_auto_boolean_cmd): Replace
3947 add_set_auto_boolean_cmd.
3948 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3949 add_set_auto_boolean_cmd.
3950 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3951 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3952 mask-address'' command.
3953 (show_mask_address): Add cmd parameter.
3954 * remote.c (add_packet_config_cmd): Update. Change type of
3955 set_func and show_func to cmd_sfunc_ftype.
3956 (_initialize_remote): Update `set remote Z-packet'
3957 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3958 (show_remote_protocol_e_packet_cmd): Ditto.
3959 (show_remote_protocol_E_packet_cmd): Ditto.
3960 (show_remote_protocol_P_packet_cmd): Ditto.
3961 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3962 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3963 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3964 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3965 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3966 (show_remote_protocol_Z_packet_cmd): Ditto.
3967 (show_remote_protocol_binary_download_cmd): Ditto.
3968 (show_remote_cmd): Pass NULL to all of above.
3969
fc08ec52
MK
39702002-06-15 Mark Kettenis <kettenis@gnu.org>
3971
3972 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3973 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3974 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3975 POP_FRAME): Remove defines.
3976 (i386_push_arguments, i386_store_struct_return,
3977 i386_extract_return_value, i386_store_return_value,
3978 i386_extract_struct_value_address, i386_push_dummy_frame,
3979 i386_pop_frame): Renove prototypes.
3980 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3981 macros mentioned above.
3982
e707bbc2
AC
39832002-06-15 Andrew Cagney <ac131313@redhat.com>
3984
3985 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3986 add_set_boolean_cmd.
3987 (add_setshow_cmd): New function.
3988 * command.h (add_setshow_boolean_cmd): Replace
3989 add_set_boolean_cmd.
3990 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3991 and ``set rdiromatzero''.
3992 * maint.c (_initialize_maint_cmds): Update commented out code.
3993 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3994 * target.c (initialize_targets): Update `set
3995 trust-readonly-sections'.
3996 * remote.c (_initialize_remote): Update `set remotebreak'.
3997
42fdc8df
MK
39982002-06-15 Mark Kettenis <kettenis@gnu.org>
3999
93924b6b
MK
4000 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4001 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4002 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4003 fit into multi-arch framework.
4004 (i386_breakpoint_from_pc): New function.
4005 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4006 above.
4007
42fdc8df
MK
4008 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4009 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4010 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4011 (i386_frameless_function_invocation, i386_frame_num_args,
4012 i386_frame_init_saved_regs): Remove prototypes.
4013 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4014 macros mentioned above.
4015
9773a94b
AC
40162002-06-15 Andrew Cagney <ac131313@redhat.com>
4017
4018 * cli/cli-decode.c (set_cmd_cfunc): Update.
4019 (set_cmd_sfunc): Update.
4020 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4021 (set_cmd_sfunc, set_cmd_cfunc): Update.
4022 * cli/cli-decode.h: Update.
4023
6e157172
MK
40242002-06-15 Mark Kettenis <kettenis@gnu.org>
4025
4026 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4027 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4028
7f19b9a2
AC
40292002-06-15 Andrew Cagney <ac131313@redhat.com>
4030
4031 * defs.h (auto_boolean): Declare enum.
4032 * command.h (cmd_auto_boolean): Delete enum.
4033 * mips-tdep.c (mask_address_var): Update.
4034 (mips_mask_address_p): Update.
4035 (show_mask_address): Update.
4036 * remote.c (struct packet_config): Update.
4037 (update_packet_config): Update.
4038 (show_packet_config_cmd): Update.
4039 (packet_ok): Update.
4040 (add_packet_config_cmd): Update.
4041 (_initialize_remote):
4042 * command.h: Update.
4043 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4044 (do_setshow_command): Update.
4045 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4046 * cli/cli-decode.h: Update.
4047
1cf88de5
MK
40482002-06-15 Mark Kettenis <kettenis@gnu.org>
4049
22ba8cf2
MK
4050 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4051 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4052 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4053 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4054 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4055 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4056
762c5349
MK
4057 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4058 list of DJGPP COFF targets.
4059
091198bb
MK
4060 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4061 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4062 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4063 (FP0_REGNUM): Remove define.
4064 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4065 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4066 (i386_register_virtual_size): Remove protoype.
4067 * i386-tdep.c (i386_register_virtual_size): Removed.
4068 (i386_extract_return_value, i386_store_return_value): Use
4069 FP0_REGNUM instead of NUM_FREGS to determine whether the
4070 floating-point registers are available.
4071 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4072 Adjust for removal of macros mentioned above.
4073
40742002-06-15 Mark Kettenis <kettenis@gnu.org>
4075
fcc9bf01
MK
4076 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4077 comments.
4078 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4079 Remove prototypes.
4080 (supply_gregset, fill_gregset): Remove use of register keyword and
4081 remove declaration for regmap. Use I386_NUM_GREGS instead of
4082 NUM_REGS and NUM_FREGS.
4083 (FPREGSET_FSAVE_OFFSET): Remove.
4084 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4085 NUM_FREGS to determine whether the floating-point registers are
4086 available.
4087
65e78234
MK
4088 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4089 gnu_store_registers): Replace usage of NUM_GREGS with
4090 I386_NUM_GREGS.
4091
98df6387
MK
4092 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4093 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4094 usage of NUM_GREGS with I386_NUM_GREGS.
4095
099a9414
MK
4096 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4097
57976e88
MK
4098 * i386bsd-nat.c: Include "i386-tdep.h".
4099 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4100 I386_NUM_GREGS.
4101
b335f4a6
MK
4102 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4103 and associated comment. They no longer make any sense, since we
4104 don't use this file anymore on Linux.
4105
1cf88de5
MK
4106 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4107 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4108 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4109 elements in these arrays.
4110 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4111 MAX_NUM_REGS.
4112
daa66587
MK
41132002-06-15 Mark Kettenis <kettenis@gnu.org>
4114
4115 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4116 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4117
26e9b323
AC
41182002-06-14 Andrew Cagney <cagney@redhat.com>
4119
4120 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4121 EXTRACT_RETURN_VALUE.
4122 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4123 EXTRACT_STRUCT_VALUE_ADDRESS.
4124 * gdbarch.h, gdbarch.c: Regenerate.
4125
4126 * values.c (value_being_returned): Handle
4127 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4128 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4129
4130 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4131 * arm-tdep.c (arm_gdbarch_init): Update.
4132 * avr-tdep.c (avr_gdbarch_init): Update.
4133 * cris-tdep.c (cris_gdbarch_init): Update.
4134 * d10v-tdep.c (d10v_gdbarch_init): Update.
4135 * ia64-tdep.c (ia64_gdbarch_init): Update.
4136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4137 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4138 * s390-tdep.c (s390_gdbarch_init): Update.
4139 * sh-tdep.c (sh_gdbarch_init): Update.
4140 * s390-tdep.c (s390_gdbarch_init): Update.
4141 * sparc-tdep.c (sparc_gdbarch_init): Update.
4142 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4143 * v850-tdep.c (v850_gdbarch_init): Update.
4144 * vax-tdep.c (vax_gdbarch_init): Update.
4145 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4146 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4147
4148 * config/arc/tm-arc.h: Update.
4149 * config/d30v/tm-d30v.h: Update.
4150 * config/fr30/tm-fr30.h: Update.
4151 * config/h8300/tm-h8300.h: Update.
4152 * config/h8500/tm-h8500.h: Update.
4153 * config/i386/tm-i386.h: Update.
4154 * config/i386/tm-ptx.h: Update.
4155 * config/i386/tm-symmetry.h: Update.
4156 * config/i960/tm-i960.h: Update.
4157 * config/m32r/tm-m32r.h: Update.
4158 * config/m68k/tm-delta68.h: Update.
4159 * config/m68k/tm-linux.h: Update.
4160 * config/m68k/tm-m68k.h: Update.
4161 * config/m88k/tm-m88k.h: Update.
4162 * config/mcore/tm-mcore.h: Update.
4163 * config/mips/tm-mips.h: Update.
4164 * config/mn10200/tm-mn10200.h: Update.
4165 * config/pa/tm-hppa.h: Update.
4166 * config/pa/tm-hppa64.h: Update.
4167 * config/sparc/tm-sp64.h: Update.
4168 * config/sparc/tm-sparc.h: Update.
4169 * config/sparc/tm-sparclet.h: Update.
4170 * config/z8k/tm-z8k.h: Update.
4171
5179e78f
AC
41722002-06-14 Andrew Cagney <cagney@redhat.com>
4173
4174 * Makefile.in (i386_linux_tdep_h): Define.
4175 (i386_tdep_h, i387_tdep_h): Define.
4176 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4177 $(i386_tdep_h) and $(i387_tdep_h).
4178 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4179
8201327c
MK
41802002-06-14 Mark Kettenis <kettenis@gnu.org>
4181
edf393ac
MK
4182 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4183 Already covered by the default.
4184
896fb97d
MK
4185 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4186 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4187 (i386_gdbarch_init): Initialize long_double_format and long_double
4188 bit.
4189
8201327c
MK
4190 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4191 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4192 Move these to ...
4193 * config/i386/i386sol2.mh: ... here.
4194 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4195 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4196 (SIGCONTEXT_PC_OFFSET): Remove define.
4197 (IN_SIGTRAMP): Remove define.
4198 * i386-sol2-tdep.c: New file.
4199
4200 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4201 * config/i386/tm-i386nw.h: Removed.
4202
4203 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4204 USE_STRUCT_CONVENTION): Remove defines.
4205 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4206 (get_longjmp_target): Remove prototype.
4207 (IN_SIGTRAMP): Remove define.
4208 (i386bsd_in_sigtramp): Remove prototype.
4209 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4210 function. Update comment accordingly
4211 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4212 (FRAME_SAVED_PC): Remove define.
4213 (i386bsd_frame_saved_pc): Remove prototype.
4214 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4215 GET_LONGJMP_TARGET): Remove defines.
4216 (get_longjmp_target): Remove prototype.
4217 (IN_SIGTRAMP): Remove define.
4218 (i386bsd_in_sigtramp): Remove prototype.
4219 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4220 function. Update comment accordingly
4221 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4222 (FRAME_SAVED_PC): Remove define.
4223 (i386bsd_frame_saved_pc): Remove prototype.
4224 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4225 Remove prototype.
4226 (USE_STRUCT_CONVENTION): Remove prototype.
4227 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4228 declaration.
4229 (_initialize_i386bsd_nat): Revise logic to determine some
4230 constants at compile time when compiling a native GDB. Warn if
4231 things don't match up with what we expect.
4232 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4233 Remove variables.
4234 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4235 to use date stored in `struct gdbarch_tdep'.
4236 (i386bsd_sigcontext_offset): Remove varaible.
4237 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4238 stored in `struct gdbarch_tdep'.
4239 (i386bsd_frame_saved_pc): Make static.
4240 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4241 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4242 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4243 i386fbsd4_sc_pc_offset): New variables.
4244 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4245 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4246 functions.
4247 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4248 functions.
4249 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4250 Modify the value of i386fbsd_sigtramp_start and
4251 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4252 i386fbsd_sigtramp_end.
4253 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4254 function.
4255
4256 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4257 define to i386-linux-tdep.h.
4258 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4259 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4260 defines.
4261 (i386_linux_register_name, i386_linux_register_byte,
4262 i386_linux_register_raw_size): Remove prototypes.
4263 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4264 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4265 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4266 TARGET_WRITE_PC): Remove defines.
4267 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4268 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4269 i386_linux_write_pc): Remove prototypes.
4270 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4271 (get_longjmp_target): Remove prototype.
4272 * i386-linux-tdep.h: New file.
4273 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4274 * i386-linux-tdep.c: Include "i386-tdep.h" and
4275 "i386-linux-tdep.h".
4276 (i386_linux_register_name, i386_linux_register_byte,
4277 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4278 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4279 Make static.
4280 (i386_linux_init_abi): New function.
4281 (_initialize_i386_linux_tdep): New function.
4282
4283 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4284 (i386_saved_pc_after_call): Remove prototype.
4285 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4286 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4287 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4288 (i386_register_name, i386_stab_reg_to_regnum,
4289 i386_dwarf_reg_to_regnum): Remove prototypes.
4290 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4291 SIZEOF_SSE_REGS): Remove defines.
4292 (REGISTER_BYTES): Remove define.
4293 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4294 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4295 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4296 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4297 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4298 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4299 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4300 (get_longjmp_target): Remove prototype.
4301 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4302 (sigtramp_saved_pc): Remove define.
4303 (i386v4_sigtramp_saved_pc): Remove prototype.
4304 * config/i386/tm-go32.h (FRAME_CHAIN,
4305 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4306 (i386go32_frame_saved_pc): Remove prototype.
4307 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4308 (get_longjmp_target): Remove prototype.
4309 * i386-tdep.h: Include "osabi.h".
4310 (enum i386_abi): Removed.
4311 (enum struct_return): New enum.
4312 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4313 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4314 sc_pc_offset members.
4315 (i386_gdbarch_register_os_abi): Remove prototype.
4316 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4317 I386_SSE_NUM_REGS): New defines.
4318 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4319 I386_SSE_SIZEOF_REGS): New defines.
4320 (i386_register_name, i386_register_byte, i386_register_raw_size):
4321 New prototypes.
4322 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4323 (i386bsd_sigtramp_saved_pc): New prototype.
4324 * i386-tdep.c: Don't include "elf-bfd.h".
4325 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4326 i386_frame_chain, i386_saved_pc_after_call): Make static.
4327 (i386_frame_saved_pc): Rewrite to call architecture dependent
4328 function to deal with signal handlers. Make static.
4329 (i386go32_frame_saved_pc): Removed.
4330 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4331 Removed.
4332 (i386_get_longjmp_target): New function.
4333 (default_struct_convention, pcc_struct_convention,
4334 reg_struct_convention, valid_conventions, struct_convention): New
4335 variables.
4336 (i386_use_struct_convention): New function.
4337 (i386v4_sigtramp_saved_pc): Renamed to
4338 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4339 (i386_pc_in_sigtramp): New function.
4340 (i386_abi_names): Removed.
4341 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4342 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4343 Removed.
4344 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4345 i386_gdbarch_register_os_abi): Removed.
4346 (struct i386_abi_handler): Removed.
4347 (i386_abi_handler_list): Removed.
4348 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4349 functions.
4350 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4351 i386_nw_init_abi): New functions.
4352 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4353 Use set_gdbarch_xxx() calls instead of relying on macros for a
4354 number of calls.
4355 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4356 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4357 Register the various architecture variants defined in this file.
4358
ad2f7632
DJ
43592002-06-14 Daniel Jacobowitz <drow@mvista.com>
4360
4361 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4362 (struct main_type): Remove arg_types member. Update comments for
4363 struct field.
4364 (TYPE_ARG_TYPES): Remove.
4365 (TYPE_FN_FIELD_ARGS): Update.
4366 (smash_to_method_type): Update prototype.
4367
4368 * c-typeprint.c (cp_type_print_method_args): Take method type
4369 instead of argument list. Use new argument layout. Simplify.
4370 (c_type_print_args): Use new argument layout. Simplify.
4371 (c_type_print_base): Update call to cp_type_print_method_args.
4372 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4373 argument; use die->type instead. Update call to
4374 smash_to_method_type.
4375 (read_structure_scope): Update call to dwarf2_add_member_fn.
4376 * gdbtypes.c (allocate_stub_method): Update comment.
4377 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4378 Use new argument layout.
4379 (check_stub_method): Use new argument layout. Don't count
4380 void as an argument.
4381 (print_arg_types): Update comments. Use new argument layout.
4382 (recursive_dump_type): Don't print arg_types member.
4383 * hpread.c (hpread_read_struct_type): Use new argument layout.
4384 (fixup_class_method_type): Likewise.
4385 (hpread_type_lookup): Likewise.
4386 * stabsread.c (read_type): Update calls to read_args and
4387 smash_to_method_type.
4388 (read_args): Use new argument layout. Simplify.
4389 * valops.c (typecmp): Use new argument layout. Update parameters
4390 and comments. Simplify.
4391 (hand_function_call): Use new argument layout.
4392 (search_struct_method): Update call to typecmp.
4393 (find_overload_match): Use new argument layout.
4394
6da02953
DJ
43952002-06-13 Daniel Jacobowitz <drow@mvista.com>
4396
4397 * NEWS: Mention multithreaded debug support for gdbserver.
4398
519b2366
DJ
43992002-06-13 Daniel Jacobowitz <drow@mvista.com>
4400
4401 * MAINTAINERS: Mention NEWS.
4402
6c0d6680
DJ
44032002-06-13 Daniel Jacobowitz <drow@mvista.com>
4404
4405 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4406 (struct mips_objfile_private, compare_pdr_entries): New.
4407 (non_heuristic_proc_desc): Read the ".pdr" section if it
4408 is present.
4409
6529d2dd
AC
44102002-06-12 Andrew Cagney <ac131313@redhat.com>
4411
4412 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4413 (arm_debug): New static variable.
4414 (_initialize_arm_tdep): Add ``set debug arm'' command.
4415
26216b98
AC
44162002-06-12 Andrew Cagney <ac131313@redhat.com>
4417
4418 * Makefile.in (sim_arm_h): Define.
4419 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4420 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4421 (arm_register_sim_regno): New function, map an internal REGNUM
4422 onto a simulator register number.
4423 (arm_gdbarch_init): Set register_sim_regno.
4424
814b3ba0
AH
44252002-06-09 Aldy Hernandez <aldyh@redhat.com>
4426
4427 * MAINTAINERS: Add self.
4428
475b0867
JB
44292002-06-11 Jim Blandy <jimb@redhat.com>
4430
919d772c
JB
4431 * source.c (source_info): Mention whether the symtab has
4432 information about preprocessor macros.
4433
475b0867
JB
4434 Call the command `info macro', not `show macro'.
4435 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4436 Fix error message.
4437 (_initialize_macrocmd): Register `info_macro_command' in
4438 `infolist', not `showlist'.
4439
9e364162
DJ
44402002-06-11 Daniel Jacobowitz <drow@mvista.com>
4441
4442 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4443 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4444 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4445 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4446 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4447 unconditionally.
4448 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4449 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4450 (_initialize_mips_tdep): Remove dead code.
4451 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4452 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4453 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4454 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4455 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4456 MIPS_LAST_FP_ARG_REGNUM): Remove.
4457
23aa4c72
ML
44582002-06-11 Michal Ludvig <mludvig@suse.cz>
4459
4460 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4461 (unwind_tmp_obstack_free, parse_frame_info)
4462 (update_context, cfi_read_fp, cfi_write_fp)
4463 (cfi_frame_chain, cfi_init_extra_frame_info)
4464 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4465 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4466
70eb15a4
CV
44672002-06-11 Corinna Vinschen <vinschen@redhat.com>
4468
4469 * v850-tdep.c (v850_type_is_scalar): New function.
4470 (v850_use_struct_convention): Match current gcc implementation
4471 as close as possible.
4472 (v850_push_arguments): Fix stack_offset handling. Don't write
4473 struct_addr into register. This is done by v850_store_struct_return.
4474 (v850_extract_return_value): Care for structs.
4475 (v850_store_return_value): Ditto.
4476 (v850_store_struct_return): Actually write address.
4477
482a4d06
ML
44782002-06-11 Michal Ludvig <mludvig@suse.cz>
4479
4480 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4481 without debug information too.
4482
d855c300
AC
44832002-06-10 Andrew Cagney <ac131313@redhat.com>
4484
4485 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4486 Make multi-arch pure.
4487 * gdbarch.h, gdbarch.c: Re-generate.
4488 * arm-tdep.c (arm_print_float_info): Update.
4489 * arch-utils.h (default_print_float_info): Update.
4490 * arch-utils.c (default_print_float_info): Update.
4491 * infcmd.c (float_info): Update call.
4492
dd12a101
AC
44932002-06-10 Andrew Cagney <ac131313@redhat.com>
4494
4495 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4496 the front of the initialize list.
4497
101dcfbe
AC
44982002-06-10 Andrew Cagney <ac131313@redhat.com>
4499
4500 * infrun.c (struct inferior_status): Replace fields
4501 selected_frame_address and selected_level with field
4502 selected_frame_id.
4503 (save_inferior_status): Update. Use get_frame_id.
4504 (struct restore_selected_frame_args): Delete.
4505 (restore_selected_frame): Update. Use frame_find_by_id.
4506 (restore_inferior_status): Update.
4507
4508 * breakpoint.h (struct breakpoint): Change type of
4509 watchpoint_frame to frame_id.
4510 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4511 call to get_current_frame.
4512 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4513 get_current_frame.
4514 (watchpoint_check): Use frame_find_by_id.
4515
4516 * frame.h (record_selected_frame): Delete declaration.
4517 * stack.c (record_selected_frame): Delete function.
4518
4519 * frame.h (struct frame_id): Define.
4520 (get_frame_id): Declare.
4521 (frame_find_by_id): Declare.
4522 * frame.c (frame_find_by_id): New function.
4523 (get_frame_id): New function.
4524
304270b6
AV
45252002-06-10 Andrey Volkov <avolkov@transas.com>
4526
4527 * ser-e7kpc.c: Fix duplicated define and call of
4528 _initialize_ser_e7000pc
4529
2f2cf184
DJ
45302002-06-09 Daniel Jacobowitz <drow@mvista.com>
4531
4532 * signals/signals.c (target_signal_from_host): Fix #ifdef
4533 SIGRTMIN case.
4534 (do_target_signal_to_host): Likewise.
4535
caaa3122
DJ
45362002-06-09 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * mips-tdep.c (mips_find_abi_section): New function.
4539 (mips_gdbarch_init): Call it.
4540
6ac5df3a
MK
45412002-06-09 Mark Kettenis <kettenis@gnu.org>
4542
4543 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4544 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4545 after Andrew's 2002-06-08 gdbarch change.
4546
82ea117a
MK
45472002-06-09 Mark Kettenis <kettenis@gnu.org>
4548
4549 * i386-linux-nat.c (suppy_gregset): Don't supply
4550 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4551 register cache.
4552 (fill_gregset): Don't fetch it under the same circumstances.
4553
3c25f8c7
AC
45542002-06-09 Andrew Cagney <cagney@redhat.com>
4555
4556 * Makefile.in (callback_h): Define.
4557 (remote_sim_h): Update path to remote-sim.h.
4558 (remote-rdp.o): Add $(callback_h).
4559 (remote-sim.o): Use $(callback_h).
4560 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4561 * remote-rdp.c: Include "gdb/callback.h".
4562
1029b7fa
MK
45632002-06-09 Mark Kettenis <kettenis@gnu.org>
4564
4565 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4566 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4567
616675d3
AC
45682002-06-08 Andrew Cagney <ac131313@redhat.com>
4569
a3efda28
AC
4570 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4571 * rdi-share/serpardr.c: Ditto.
4572 * rdi-share/unixcomm.c: Ditto.
4573 * rdi-share/serdrv.c: Ditto.
4574 * rdi-share/hostchan.h: Ditto.
4575 * rdi-share/hostchan.c: Ditto.
4576 * rdi-share/host.h: Ditto.
4577 * rdi-share/devsw.c: Ditto.
4578
c5f10366
AC
4579 * objfiles.h: Change type of obj_private to void pointer.
4580 * pa64solib.c: Update copyright. Don't include "assert.h", use
4581 strcmp instead of STREQ, use LONGEST, do not use PTR
4582 * somsolib.c: Ditto.
4583
616675d3
AC
4584 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4585 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4586 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4587
e4b415d9
AC
45882002-06-08 Andrew Cagney <ac131313@redhat.com>
4589
4590 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4591 (default_get_saved_register): Delete function.
4592 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4593 generic_unwind_get_saved_register.
4594 * gdbarch.h, gdbarch.c: Re-generate.
4595
ca0d0b52
AC
45962002-06-08 Andrew Cagney <ac131313@redhat.com>
4597
4598 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4599 generic_func_frame_chain_valid.
4600 * gdbarch.h, gdbarch.c: Re-generate.
4601 * blockframe.c (generic_func_frame_chain_valid): Only check
4602 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4603 passing FP to PC_IN_CALL_DUMMY.
4604 Fix PR gdb/360.
4605
76860b5f
AC
46062002-06-08 Andrew Cagney <ac131313@redhat.com>
4607
4608 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4609 (register_gdbarch_data): Initialize init_p.
4610 (gdbarch_data): Initialize data pointer using the init function.
4611 (init_gdbarch_data): Delete function.
4612 (gdbarch_update_p): Update.
4613 (initialize_non_multiarch): Update.
4614 (struct gdbarch): Add field initialized_p.
4615 * gdbarch.h, gdbarch.c: Re-generate.
4616
8dda9770
ML
46172002-06-07 Michal Ludvig <mludvig@suse.cz>
4618
4619 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4620 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4621 better do the things actually here.
4622 * x86-64-tdep.c (x86_64_register_name2nr): New.
4623 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4624 (x86_64_gdbarch_init): Respect the above change.
4625 * x86-64-tdep.h (x86_64_register_name2nr)
4626 (x86_64_register_nr2name): Add prototypes.
4627 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4628
3d79a47c
MS
46292002-06-06 Michael Snyder <msnyder@redhat.com>
4630
7bd91a28
MS
4631 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4632 Delete extra braces and re-indent.
4633 (d10v_store_return_value): Char return values
3d79a47c
MS
4634 must be shifted over by one byte in R0.
4635 (d10v_extract_return_value): Delete extra braces, re-indent.
4636
095a4c96
EZ
46372002-06-06 Elena Zannoni <ezannoni@redhat.com>
4638
4639 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4640 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4641 (d10v_integer_to_address): Rewrite.
4642 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4643 the d10v specific functions which take care of converting to the
4644 correct space.
4645
e8a77ca4
EZ
46462002-06-06 Elena Zannoni <ezannoni@redhat.com>
4647
4648 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4649 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4650
4f2e4a4f
AC
46512002-06-02 Andrew Cagney <ac131313@redhat.com>
4652
4653 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4654 includes.
4655 * config/tm-linux.h: Ditto.
4656 * config/alpha/tm-alphalinux.h: Ditto.
4657 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4658 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4659 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4660 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4661 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4662 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4663 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4664 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4665 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4666 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4667 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4668 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4669 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4670 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4671 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4672 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4673 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4674 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4675 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4676 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4677 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4678 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4679 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4680 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4681 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4682 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4683 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4684 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4685 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4686 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4687 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4688 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4689 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4690 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4691 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4692 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4693 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4694
ae2ab2ce
AS
46952002-05-04 Aidan Skinner <aidan@velvet.net>
4696
4697 * ada-exp.tab.c: New file
4698 * ada-exp.y: New file
4699 * ada-lang.c: New file
4700 * ada-lang.h: New file
4701 * ada-lex.c: New file
4702 * ada-lex.l: New file
4703 * ada-tasks.c: New file
4704 * ada-typeprint.c: New file
4705 * ada-valprint.c: New file
4706
0ddd0135
JT
47072002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4708
4709 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4710 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4711
750fbacc
JT
47122002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4713
4714 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4715 insetead of ppc-linux-tdep.o.
4716 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4717 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4718
df94e18a
AC
47192002-06-02 Andrew Cagney <ac131313@redhat.com>
4720
4721 2002-05-07 Christian Groessler <chris@groessler.org>
4722 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4723 bit register contents for little endian hosts.
4724
1a38ab75
AC
47252002-06-01 Andrew Cagney <ac131313@redhat.com>
4726
4727 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4728 any maintainer.
4729
8b1632ac
AC
47302002-06-01 Andrew Cagney <ac131313@redhat.com>
4731
4732 * gdbarch.h: Regenerate.
4733
627054c8
AC
47342002-06-01 Andrew Cagney <ac131313@redhat.com>
4735
4736 * MAINTAINERS: Add everyone to write-after-approval list.
4737
4f460812
AC
47382002-06-01 Andrew Cagney <ac131313@redhat.com>
4739
4740 * stack.c (frame_info): Use frame_register_unwind instead of
4741 saved_regs. Mention when the SP is on the stack or in a register.
4742
4743 * frame.h (frame_register_unwind_ftype): Define. Document.
4744 (struct frame_info): Add field register_unwind and
4745 register_unwind_cache.
4746 (frame_register_unwind): Declare.
4747 (generic_unwind_get_saved_register): Declare.
4748
4749 * frame.c (frame_register_unwind): New function.
4750 (generic_unwind_get_saved_register): New function.
4751
4752 * blockframe.c (generic_call_dummy_register_unwind): New function.
4753 (frame_saved_regs_register_unwind): New function.
4754 (set_unwind_by_pc): New function.
4755 (create_new_frame): New function.
4756 (get_prev_frame): New function.
4757
de888f76
AC
47582002-05-30 Andrew Cagney <ac131313@redhat.com>
4759
4760 * a29k-share/: Delete directory.
4761 * remote-vx29k.c: Delete file.
4762
2f2c3626
JT
47632002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4764
4765 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4766 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4767
9ce5c36a
JT
47682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4769
4770 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4771 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4772 (sparc64nbsd-nat.o)
4773 (sparcnbsd-nat.o)
4774 (sparcnbsd-tdep.o): New dependency lists.
4775 * NEWS: Note new UltraSPARC NetBSD native configuration.
4776 * configure.host (sparc64-*-netbsd*): New host.
4777 * configure.tgt (sparc-*-netbsdelf*)
4778 (sparc-*-netbsd*): Set gdb_target to nbsd.
4779 (sparc64-*-netbsd*): New target.
4780 * sparc64nbsd-nat.c: New file.
4781 * sparcnbsd-nat.c: New file.
4782 * sparcnbsd-tdep.c: New file.
4783 * sparcnbsd-tdep.h: New file.
4784 * config/sparc/nbsd.mt: New file.
4785 * config/sparc/nbsd64.mh: New file.
4786 * config/sparc/nbsd64.mt: New file.
4787 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4788 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4789 (HOST_IPC): Remove.
4790 * config/sparc/nbsdaout.mt: Remove.
4791 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4792 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4793 (HOST_IPC): Remove.
4794 * config/sparc/nbsdelf.mt: Remove.
4795 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4796 sparc-nat.c compatiblity defines.
4797 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4798 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4799 * config/sparc/tm-nbsd64.h: New file.
4800 * config/sparc/tm-nbsdaout.h: Remove.
4801 * config/sparc/xm-nbsd.h: Remove.
4802
ef3cf062
JT
48032002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4804
4805 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4806 * sparc-tdep.c: Include osabi.h.
4807 (gdbarch_tdep): Add osabi member.
4808 (_initialize_sparc_tdep): Use gdbarch_register.
4809 (sparc_gdbarch_init): Use generic OS ABI framework.
4810 (sparc_dump_tdep): New function.
4811
ee8ff470
KB
48122002-05-30 Kevin Buettner <kevinb@redhat.com>
4813
4814 * corefile.c (do_captured_read_memory_integer): Return non-zero
4815 result.
4816 (safe_read_memory_integer): Copy result of memory read when
4817 status is non-zero. Also, add comments.
4818
7b112f9c
JT
48192002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4820
4821 * Makefile.in (ppc_tdep_h): Define.
4822 (ppc-linux-nat.o)
4823 (ppc-linux-tdep.o)
4824 (rs6000-tdep.o): Use $(ppc_tdep_h).
4825 (ppc-sysv-tdep.o)
4826 (ppcnbsd-nat.o)
4827 (ppcnbsd-tdep.o): New dependency lists.
4828 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
4829 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4830 (ppc_linux_init_abi): New functions.
7b112f9c
JT
4831 (ppc_sysv_abi_broken_use_struct_convention)
4832 (ppc_sysv_abi_use_struct_convention)
4833 (ppc_sysv_abi_push_arguments): Move to...
4834 * ppc-sysv-tdep.c: ...here.
4835 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4836 * rs6000-tdep.c (process_note_abi_tag_sections)
4837 (get_elfosabi): Remove.
4838 (rs6000_gdbarch_init): Use generic OS ABI framework.
4839 (rs6000_dump_tdep): New function.
4840 (_initialize_rs6000_tdep): Use gdbarch_register.
4841 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4842 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4843 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4844 of ppc-linux-tdep.o.
4845 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4846 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4847 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4848 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4849 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4850 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4851
480dd42a
JB
48522002-05-29 Jim Blandy <jimb@redhat.com>
4853
4854 * macroscope.c (default_macro_scope): Put `void' in empty argument
4855 list.
4856
4182591f
AC
48572002-05-29 Andrew Cagney <ac131313@redhat.com>
4858
4859 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4860 * arch-utils.c: Include "sim-regno.h".
4861 * gdbarch.sh: Don't include "sim-regno.h".
4862 * gdbarch.h, gdbarch.c: Regenerate.
4863 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4864 here.
4865 * arch-utils.h (legacy_register_sim_regno): To here.
4866 * remote-sim.c (legacy_register_sim_regno): Move function from
4867 here.
4868 * arch-utils.c (legacy_register_sim_regno): To here.
4869
8238d0bf
AC
48702002-05-28 Andrew Cagney <ac131313@redhat.com>
4871
4872 * sim-regno.h: New file.
4873 * Makefile.in (sim_regno_h): Define.
4874 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4875 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4876 (legacy_register_sim_regno): New function.
4877 (one2one_register_sim_regno): New function.
4878 (gdbsim_fetch_register): Rewrite.
4879 (gdbsim_store_register): Only store a register when
4880 REGISTER_SIM_REGNO is valid.
4881 * d10v-tdep.c: Include "sim-regno.h".
4882 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4883 (d10v_ts3_register_sim_regno): Ditto.
4884 * gdbarch.sh: Include "sim-regno.h".
4885 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4886 * gdbarch.h, gdbarch.c: Regenerate.
4887 * arch-utils.h (default_register_sim_regno): Delete declaration.
4888 * arch-utils.c (default_register_sim_regno): Delete function.
4889
485721b1
JT
48902002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4891
4892 * ppcnbsd-nat.c: Rewrite.
4893 * ppcnbsd-tdep.c: New file.
4894 * ppcnbsd-tdep.h: New file.
4895 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4896 solib.o, and solib-svr4.o.
4897 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4898 nbsd-tdep.o, and corelow.o.
4899
697f244d
AC
49002002-05-28 Andrew Cagney <ac131313@redhat.com>
4901
4902 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4903 `tr' and `sed'. Mention that `broken' targets are not expected to
4904 build.
4905
f08caad1 49062002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
4907
4908 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4909 Let PC point right after the prologue before looking up symbols.
4910
3139facc
MH
49112002-05-27 Martin M. Hunt <hunt@redhat.com>
4912
4913 * i386-tdep.c (i386_register_virtual_type): Return
4914 builtin_type_vec128i for SSE registers.
4915
4916 * gdbtypes.h (builtin_type_vec128i): Declare.
4917
4918 * gdbtypes.c (build_builtin_type_vec128i): New function.
4919 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4920 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4921 (build_gdbtypes): Initialize new builtin vector types.
4922 (_initialize_gdbtypes): Register new vector types with gdbarch.
4923
6e3ba3b8
JT
49242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4925
4926 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4927 since it has been multi-arch'd.
4928 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4929 Move Alpha and VAX multi-arch news entries to same section
4930 as other multi-arch news.
4931
93d5585d
JT
49322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4933
4934 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4935 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4936 static. Rename some register numbers to put them in ns32k-tdep
4937 private namespace.
4938 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4939 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4940 functions.
4941 (_initialize_ns32k_tdep): Use gdbarch_register.
4942 * ns32k-tdep.h: New file.
4943 * ns32knbsd-tdep.c: New file.
4944 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4945 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4946 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4947 REGISTER_BYTES, REGISTER_BYTE): Remove.
4948 * config/ns32k/tm-ns32k.h: New file.
4949 * config/ns32k/tm-umax.h: Remove.
4950
efb2c70e
JT
49512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4952
4953 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4954 ns32k_store_struct_return, ns32k_extract_return_value,
4955 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4956 functions.
4957 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4958 ns32k_saved_pc_after_call.
4959 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4960 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4961 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4962 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4963 ns32k_extract_struct_value_address.
4964
7bcc927b
JT
49652002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4966
4967 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4968 ns32k_fix_call_dummy): New.
4969 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4970 ns32k_call_dummy_words.
4971 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4972 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4973 CALL_DUMMY_NARGS): Remove.
4974 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4975
78f9d765
JT
49762002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4977
4978 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4979 ns32k_frame_saved_pc, ns32k_frame_args_address,
4980 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4981 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4982 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4983 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4984 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4985 (BREAKPOINT): Remove..
4986 (FRAME_CHAIN): Define as ns32k_frame_chain.
4987 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4988 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4989 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4990 (FRAME_FIND_SAVED_REGS): Remove.
4991 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4992 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4993 (POP_FRAME): Define as ns32k_pop_frame.
4994
f2c762e0
JT
49952002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4996
4997 * ns32k-tdep.c (ns32k_register_byte_32082,
4998 ns32k_register_byte_32382, ns32k_register_raw_size,
4999 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5000 functions.
5001 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5002 ns32k_register_byte_32382.
5003 * config/ns32k/tm-umax.h: Update copyright years.
5004 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5005 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5006 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5007 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5008 (ns32k_get_enter_addr): Fix prototype.
5009
af137673
JT
50102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5011
5012 * ns32k-tdep.c: Update copyright years.
5013 (ns32k_register_name_32082): New function.
5014 (ns32k_register_name_32382): Ditto.
5015 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5016 (REGISTER_NAME): Define as ns32k_register_name_32382.
5017 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5018 (REGISTER_NAME): Define as ns32k_register_name_32082.
5019
a8bc7b56
JB
50202002-05-24 Jim Blandy <jimb@redhat.com>
5021
5022 * dwarf2read.c (free_line_header): Use xfree, not free.
5023
83a45910
JT
50242002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5025
5026 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5027 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5028
0db71247
AC
50292002-05-23 Andrew Cagney <ac131313@redhat.com>
5030
5031 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5032
b9e5e4dd
AC
50332002-05-23 Andrew Cagney <ac131313@redhat.com>
5034
5035 From Ross Alexander at NEC Europe:
5036 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5037
de530e84
MS
50382002-05-23 Michael Snyder <msnyder@redhat.com>
5039
5040 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5041 for input, rather than parse_and_eval_address.
5042
b91b96f4
AC
50432002-05-23 Andrew Cagney <ac131313@redhat.com>
5044
5045 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5046 * Makefile.in (sim_d10v_h): Update definition.
5047
8b279e7a
AC
50482002-05-24 Andrew Cagney <cagney@redhat.com>
5049
5050 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5051 change `2002-05-22 Michael Snyder' below.
5052 (d10v_push_arguments): Ditto.
5053 (d10v_extract_return_value): Ditto.
5054
0a3d0425
JB
50552002-05-23 Jim Blandy <jimb@redhat.com>
5056
5057 * macrotab.c (check_for_redefinition): Don't complain if the new
5058 definition is the same as the previous one. Take more arguments
5059 to allow the comparison.
5060 (macro_define_object, macro_define_function): Pass more arguments
5061 to check_for_redefinition.
5062
78eac43e
MS
50632002-05-22 Michael Snyder <msnyder@redhat.com>
5064
5065 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5066 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5067 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5068 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5069 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5070 Add a temp variable to save a call (and a memory read).
5071 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5072 if possible (so that PC_IN_CALL_DUMMY will work).
5073
9bc1edb8
CV
50742002-05-22 Corinna Vinschen <vinschen@redhat.com>
5075
5076 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5077
005ef3d2
ML
50782002-05-22 Michal Ludvig <mludvig@suse.cz>
5079
5080 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5081 fde->cie_ptr.
5082 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5083 (dwarf2_build_frame_info): Add offset to fde->initial_location
5084 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5085 (execute_stack_op): Change type of 'result' from ULONGEST to
5086 CORE_ADDR.
005ef3d2 5087
fcf4f891
JT
50882002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5089
5090 * config/alpha/tm-nbsd.h: Include solib.h.
5091
cfef91e4
JT
50922002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5093
5094 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5095 assumptions about the host's byte order.
5096
9964235a
JT
50972002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5098
5099 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5100 to dependency list.
5101 * alphanbsd-tdep.c: Include solib-svr4.h.
5102 * shnbsd-tdep.c: Ditto.
5103
9eeef8ef
JT
51042002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5105
5106 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5107 nbsd-tdep.h to dependency list.
5108 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5109 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5110 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5111 nbsdaout.mh and nbsdelf.mh consistently.
5112 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5113 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5114 nbsdaout.mt and nbsdelf.mh consistently.
5115 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5116 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5117 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5118 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5119 a.out shared library stuff from here...
5120 * config/nm-nbsdaout.h: ...to here.
5121 * config/tm-nbsd.h: Remove.
5122 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5123 * config/arm/nbsd.mh: Remove.
5124 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5125 nbsd-tdep.o.
5126 * config/arm/nbsdaout.mh: New file.
5127 * config/arm/nbsdelf.mh: New file.
5128 * config/arm/nm-nbsdaout.h: New file.
5129 * config/i386/nbsd.mh: Remove.
5130 * config/i386/nbsd.mt: Remove.
5131 * config/i386/nbsdaout.mh: New file.
5132 * config/i386/nbsdaout.mt: New file.
5133 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5134 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5135 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5136 i386_register_u_addr): Remove.
5137 * config/i386/nm-nbsdaout.h: New file.
5138 * config/i386/nm-nbsdelf.h: Remove.
5139 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5140 (USE_STRUCT_CONVENTION): Remove.
5141 * config/i386/tm-nbsdaout.h: New file.
5142 * config/i386/tm-nbsdelf.h: Remove.
5143 * config/m68k/nbsd.mh: Remove.
5144 * config/m68k/nbsd.mt: Remove.
5145 * config/m68k/nbsdaout.mh: New file.
5146 * config/m68k/nbsdaout.mt: New file.
5147 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5148 * config/m68k/nm-nbsdaout.h: New file.
5149 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5150 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5151 * config/ns32k/nbsd.mh: Remove.
5152 * config/ns32k/nbsd.mt: Remove.
5153 * config/ns32k/nbsdaout.mh: New file.
5154 * config/ns32k/nbsdaout.mt: New file.
5155 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5156 * config/ns32k/nm-nbsdaout.h: New file.
5157 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5158 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5159 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5160 (SVR4_SHARED_LIBS): Remove.
5161 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5162 * config/sparc/nbsd.mh: Remove.
5163 * config/sparc/nbsd.mt: Remove.
5164 * config/sparc/nbsdaout.mh: New file.
5165 * config/sparc/nbsdaout.mt: New file.
5166 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5167 * config/sparc/nbsdelf.mt: New file.
5168 * config/sparc/nm-nbsdaout.h: New file.
5169 * config/sparc/nm-nbsdelf.h: Remove.
5170 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5171 * config/sparc/tm-nbsdaout.h: New file.
5172
257ce470
JT
51732002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5174
5175 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5176 mipsnbsd-tdep.c
5177 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5178
76a6d5fe
JT
51792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5180
5181 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5182 shnbsd-nat.c.
5183 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5184
45888261
JT
51852002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5186
5187 * NEWS: Note new MIPS NetBSD native configuration.
5188 * configure.host (mips*-*-netbsd*): New host.
5189 * configure.tgt (mips*-*-netbsd*): New target.
5190 * mipsnbsd-nat.c: New file.
5191 * mipsnbsd-tdep.c: New file.
5192 * mipsnbsd-tdep.h: New file.
5193 * config/mips/nbsd.mh: New file.
5194 * config/mips/nbsd.mt: New file.
5195 * config/mips/nm-nbsd.h: New file.
5196 * config/mips/tm-nbsd.h: New file.
5197
70f80edf
JT
51982002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5199
5200 * Makefile.in (SFILES): Add osabi.c.
5201 (COMMON_OBS): Add osabi.o.
5202 (osabi.o): New dependency list.
5203 * osabi.c: New file.
5204 * osabi.h: New file.
5205 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5206
5207 * Makefile.in (alpha_tdep_h): Define and use instead of
5208 alpha-tdep.h.
5209 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5210 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5211 Remove.
5212 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5213 * alpha-tdep.h: Include osabi.h.
5214 (alpha_abi): Remove.
5215 (gdbarch_tdep): Use generic OS ABI framework.
5216 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5217 gdbarch_register_osabi.
5218 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5219 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5220 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5221
5222 * Makefile.in (sh_tdep_h): Add osabi.h.
5223 * sh-tdep.h (sh_osabi): Remove.
5224 (gdbarch_tdep): Use generic OS ABI framework.
5225 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5226 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5227 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5228 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5229
5230 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5231 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5232 gdbarch_register_osabi.
5233 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5234 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5235 (get_elfosabi): Rename to...
5236 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5237 ABI framework support routines.
5238 (arm_gdbarch_init): Use generic OS ABI framework.
5239 (arm_dump_tdep): Likewise.
5240 (_initialize_arm_tdep): Likewise.
5241 * arm-tdep.h: Include osabi.h.
5242 (arm_abi): Remove.
5243 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5244 osabi member.
5245 (arm_gdbarch_register_os_abi): Remove prototype.
5246 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5247 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5248
5249 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5250 * mips-tdep.c: Include osabi.h.
5251 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5252 OS ABI framework.
5253
d194345b
KH
52542002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5255
5256 * h8300-tdep.c: Fix formatting.
5257
70c6b0d1
EZ
52582002-05-20 Elena Zannoni <ezannoni@redhat.com>
5259
5260 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5261 printing vector registers.
5262
165b8e33
AC
52632002-05-19 Andrew Cagney <ac131313@redhat.com>
5264
5265 From Fernando Nasser:
5266 * remote.c (remote_async_open_1): Re-throw the exception when the
5267 connection fails.
5268 (remote_cisco_open): Ditto.
5269 (remote_open_1): Ditto.
5270
36918e70
AC
52712002-05-19 Andrew Cagney <ac131313@redhat.com>
5272
5273 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5274 (remote_start_remote): Add uiout parameter. Pass through to
5275 remote_start_remote_dummy.
5276 (remote_open_1): Use catch_exception instead of catch_errors.
5277 (remote_async_open_1): Ditto.
5278 (remote_cisco_open): Ditto.
5279
ae44c0c4
AC
52802002-05-19 Andrew Cagney <ac131313@redhat.com>
5281
5282 * remote.c (remote_start_remote): Replace PTR with void pointer.
5283 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5284 static.
5285
8efe637d
AC
52862002-05-18 Andrew Cagney <ac131313@redhat.com>
5287
5288 * gdb_indent.sh: Allow the script to be run in the sim directory.
5289
2f1b5984
MK
52902002-05-18 Mark Kettenis <kettenis@gnu.org>
5291
f0f625e2
MK
5292 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5293 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5294
2f1b5984
MK
5295 * corelow.c (core_open): Only call set_gdbarch_from_file if
5296 exec_bfd is NULL.
5297
fc974602
AV
52982002-05-17 Andrey Volkov <avolkov@transas.com>
5299
5300 * h8300-tdep.c: Add support of EXR register
5301 * config/h8300/tm-h8300.h: Ditto.
5302
906709f4
AV
53032002-05-17 Andrey Volkov <avolkov@transas.com>
5304
5305 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5306
6e591d68
AV
53072002-05-17 Andrey Volkov <avolkov@transas.com>
5308
5309 * h8300-tdep.c: Change literal regnums to REGNO.
5310
84f0252a
JB
53112002-05-17 Jim Blandy <jimb@redhat.com>
5312
e0e9281e
JB
5313 * NEWS: Note addition of macro support.
5314
84f0252a
JB
5315 Expand preprocessor macros in C expressions.
5316 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5317 (scan_macro_expansion, scanning_macro_expansion,
5318 finished_macro_expansion): New function declarations.
5319 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5320 variable declarations.
5321 * parser-defs.h (expression_context_pc): New declaration.
5322 * parse.c (expression_context_pc): New variable.
5323 (parse_exp_1): Set expression_context_pc, as well as
5324 expression_context_block.
5325 * c-exp.y (yylex): If we're not already reading the result of a
5326 macro expansion, try to macro-expand the next token. When we're
5327 done scanning a macro expansion, switch back to the mainline text.
5328 Commas and `if's in a macro's expansion don't terminate the input.
5329 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5330 (macro_original_text, macro_expanded_text,
5331 expression_macro_lookup_func, expression_macro_lookup_baton): New
5332 variables.
5333 (scan_macro_expansion, scanning_macro_expansion,
5334 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5335 c_preprocess_and_parse): New functions.
5336 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5337 c_preprocess_and_parse, instead of c_parse.
5338 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5339 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5340
1c509ca8
JR
5341Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5342
5343 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5344 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5345 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5346
2250ee0c
CV
53472002-05-17 Corinna Vinschen <vinschen@redhat.com>
5348
5349 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5350
ab3b8126
JT
53512002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5352
5353 * Makefile.in (sh_tdep_h): Define and use.
5354 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5355 register enum): Move to...
5356 * * sh-tdep.h: ...here.
5357 * sh-tdep.c: Include sh-tdep.h.
5358 * sh3-rom.c: Likewise.
5359 * shnbsd-tdep.c: Likewise.
5360
ed9d4749
MS
53612002-05-16 Michael Snyder <msnyder@redhat.com>
5362
5363 * arm-tdep.c: Spelling fix in comment.
5364
2e276125
JB
53652002-05-16 Jim Blandy <jimb@redhat.com>
5366
6821892e
JB
5367 Add commands for manually expanding macros and showing their
5368 definitions.
5369 * macrocmd.c, macroscope.c, macroscope.h: New files.
5370 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5371 (macroscope_h): New variable.
5372 (HFILES_NO_SRCDIR): Add macroscope.h.
5373 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5374 (macroscope.o, macrocmd.o): New rules.
5375
2e276125
JB
5376 Teach the Dwarf 2 reader to read macro information.
5377 * dwarf2read.c: #include "macrotab.h".
5378 (dwarf_macinfo_buffer): New variable.
5379 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5380 dwarf_macinfo_size.
5381 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5382 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5383 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5384 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5385 dwarf2_macro_spaces_in_definition): New complaints.
5386 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5387 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5388 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5389 the partial symbol table.
5390 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5391 from what's recorded in the partial symbol table.
5392 (read_file_scope): If the compilation unit has a
5393 `DW_AT_macro_info' attribute, read its macro information.
5394 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5395
2f53fe6c
DJ
53962002-05-16 Daniel Jacobowitz <drow@mvista.com>
5397
5398 Fix PR gdb/546
5399 * ser-tcp.c: Don't include <netinet/udp.h>.
5400
2be99286
SC
54012002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5402
5403 * MAINTAINERS: Update my email address.
5404
c9af212b 54052002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5406
5407 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5408 include file of the same name.
5409
bf5f1a52
CV
54102002-05-16 Corinna Vinschen <vinschen@redhat.com>
5411
5412 * configure.tgt: Mark v850 as multi-arched.
5413 * config/v850/tm-v850.h: Remove file.
5414 * config/v850/v850.mt: Eliminate TM_FILE.
5415
435e042a
CV
54162002-05-16 Corinna Vinschen <vinschen@redhat.com>
5417
5418 * v850-tdep.c: Full multi-arch.
5419 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5420 Define GDB_MULTI_ARCH to 2.
5421
9819c6c8
PM
54222002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5423
5424 * p-exp.y (current_type): New static variable.
5425 Carries the type of the expression at the position that is parsed.
5426 (push_current_type, pop_current_type): Two new functions. Used
5427 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5428 (search_field): New static variable. Set to one after parsing a point
5429 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5430 (FIELDNAME): New token. After a point only a token belonging to
5431 current_type type definition is allowed.
5432 (all over token rules): reset and change current_type according
5433 to rules.
5434 (exp '[' rule): insert implicit array index field if
5435 exp is a pascal string type.
5436
3a06899a
CV
54372002-05-16 Corinna Vinschen <vinschen@redhat.com>
5438
5439 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5440 frame info. Use frame_info's saved_regs instead of matching member
5441 in extra_frame_info throughout.
5442 (v850_frame_init_saved_regs): New function.
5443 (v850_init_extra_frame_info): Move most functionality into
5444 v850_frame_init_saved_regs().
5445 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5446 (v850_frame_find_saved_regs): Remove declaration.
5447 (FRAME_FIND_SAVED_REGS): Remove definition.
5448 (v850_frame_init_saved_regs): Add declaration.
5449 (FRAME_INIT_SAVED_REGS): Add definition.
5450
6ed14b0e
CV
54512002-05-16 Corinna Vinschen <vinschen@redhat.com>
5452
5453 * v850-tdep.c: Begin multi-arch'ing v850.
5454 (v850_target_architecture_hook): Remove function.
5455 (v850_gdbarch_init): New function. Add code previously in
5456 v850_target_architecture_hook().
5457 (_initialize_v850_tdep): Don't set target_architecture_hook.
5458 Call register_gdbarch_init() instead.
5459
42725910
DJ
54602002-05-16 Daniel Jacobowitz <drow@mvista.com>
5461
5462 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5463 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5464 (fixup_class_method_type): Likewise.
5465
99d9066e
JB
54662002-05-15 Jim Blandy <jimb@redhat.com>
5467
5468 Add macro structures to GDB's symbol tables. Nobody puts anything
5469 in them yet.
5470 * symtab.h (struct symtab): New member: `macro_table'.
5471 * buildsym.h (pending_macros): New global variable.
5472 * buildsym.c: #include "macrotab.h".
5473 (buildsym_init): Initialize `pending_macros'.
5474 (end_symtab): If we found macro information while reading a CU's
5475 debugging info, do build a symtab structure for it. Make the
5476 symtab point to the macro information, and clear the
5477 `pending_macros' pointer which held it while we were reading the
5478 debug info.
5479 (really_free_pendings): Free any pending macro table.
5480 * objfiles.h (struct objfile): New member: `macro_cache'.
5481 * objfiles.c (allocate_objfile): Set allocate and free functions
5482 for the macro cache's objstack.
5483 (free_objfile): Empty the macro cache's obstack.
5484 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5485 set new allocate and free functions for it.
5486 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5487 free functions for the macro cache's objstack. (Why is this
5488 function building its own objfile?)
5489 * symmisc.c (print_objfile_statistics): Print statistics on the
5490 macro bcache.
5491 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5492
c899585b
RE
54932002-05-15 Richard Earnshaw <rearnsha@arm.com>
5494
5495 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5496 (REGISTER_U_ADDR): Delete definition.
5497 (arm_register_u_addr): Delete declaration.
5498
a6cdd8c5
RE
54992002-05-15 Richard Earnshaw <rearnsha@arm.com>
5500
5501 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5502 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5503
c97dcfc7
AC
55042002-05-14 Andrew Cagney <ac131313@redhat.com>
5505
5506 * regcache.c (register_valid): Revise comments refering to "Not
5507 available" and "unavailable".
5508 * frame.c (frame_register_read): Ditto.
5509 * findvar.c (value_of_register): Ditto.
5510
93021b7d
AC
55112002-05-15 Andrew Cagney <cagney@redhat.com>
5512
5513 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5514 (remote-sim.o): Update dependencies.
5515 (d10v-tdep.o): Specify dependencies.
5516 (sim_d10v_h): Define.
5517
a86bc61c
JB
55182002-05-14 Jim Blandy <jimb@redhat.com>
5519
5520 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5521 * macrotab.c (macro_lookup_inclusion, find_definition,
5522 new_macro_table): Same.
5523
5524 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5525 not `! strcmp ()'. This is a dubious improvement.
5526 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5527
5528 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5529 although it's not necessary, to avoid a warning.
5530
2fdde8f8
DJ
55312002-05-14 Daniel Jacobowitz <drow@mvista.com>
5532
5533 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5534 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5535 TYPE_INSTANCE_FLAGS.
5536 (struct main_type): New.
5537 (struct type): Move most members to struct main_type. Change
5538 cv_type and as_type to new type_chain member. Add instance_flags.
5539 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5540 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5541 (finish_cv_type): Remove prototype.
5542 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5543 Set TYPE_CHAIN.
5544 (alloc_type_instance): New function.
5545 (smash_type): New function.
5546 (make_pointer_type, make_reference_type, make_function_type)
5547 (smash_to_member_type, smash_to_method_type): Call smash_type.
5548 (make_qualified_type): New function.
5549 (make_type_with_address_space): Call make_qualified_type.
5550 (make_cv_type): Likewise.
5551 (finish_cv_type): Remove unnecessary function.
5552 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5553 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5554 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5555 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5556 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5557 * hpread.c (hpread_read_struct_type): Likewise.
5558 * stabsread.c (read_struct_type): Likewise.
5559
843fedf4
EZ
55602002-05-14 Elena Zannoni <ezannoni@redhat.com>
5561
5562 * configure.tgt: Add a catch all sh* target, for cases like
5563 sh[2,3,4]-elf and sh-hms.
5564
05a6c72c
KS
55652002-05-14 Keith Seitz <keiths@redhat.com>
5566
5567 * event-loop.c (create_file_handler): Don't do anything but
5568 update data when we are given a fd which we are already
5569 monitoring.
5570
5d085aaf
ML
55712002-05-14 Michal Ludvig <mludvig@suse.cz>
5572
5573 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5574 (update_context): Use __func__ in warnings.
5575
9db8d71f
DJ
55762002-05-14 Daniel Jacobowitz <drow@mvista.com>
5577
5578 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5579 and tcp_close to net_open and net_close.
5580 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5581 using UDP if requested. Don't try to disable Nagle on UDP
5582 sockets.
5583 * remote.c (remote_serial_open): New function. Warn about UDP.
5584 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5585
5dbc6baa
EZ
55862002-05-13 Elena Zannoni <ezannoni@redhat.com>
5587
5588 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5589
cc3023f7
EZ
55902002-05-13 Elena Zannoni <ezannoni@redhat.com>
5591
5592 * configure.tgt: Remove sh-hms target.
5593 * MAINTAINERS: Don't list sh-hms as a separate target.
5594
ec2bcbe7
JB
55952002-05-13 Jim Blandy <jimb@redhat.com>
5596
5597 Add first preprocessor macro-expansion files.
5598 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5599 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5600 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5601 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5602 (COMMON_OBS): Add macrotab.o, macroexp.o.
5603 (macroexp.o, macrotab.o): New rules.
5604
6d531722
AC
56052002-05-13 Andrew Cagney <ac131313@redhat.com>
5606
5607 * config/m88k/tm-m88k.h: Update copyright.
5608 (m88k_target_write_pc): Declare
5609 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5610 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5611 (SHIFT_INST_REGS): Update definition.
5612 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5613 using old definition of TARGET_WRITE_PC.
5614 * regcache.c (generic_target_write_pc): Delete code handling
5615 NNPC_REGNUM.
5616 * gdbarch.sh (NNPC_REGNUM): Delete.
5617 * gdbarch.h, gdbarch.c: Regenerate.
5618
3e3f2739
RE
56192002-05-13 Richard Earnshaw <rearnsha@arm.com>
5620
5621 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5622 builtin reg number.
5623
0004e5a2
DJ
56242002-05-13 Daniel Jacobowitz <drow@mvista.com>
5625
5626 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5627 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5628 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5629 access macros.
5630 * c-typeprint.c (cp_type_print_method_args): Likewise.
5631 (c_type_print_args): Likewise.
5632 * d10v-tdep.c (d10v_push_arguments): Likewise.
5633 (d10v_extract_return_value): Likewise.
5634 * expprint.c (print_subexp): Likewise.
5635 * gdbtypes.c (lookup_primitive_typename): Likewise.
5636 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5637 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5638 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5639 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5640 (TYPE_VECTOR): Likewise.
5641 * hpread.c (hpread_read_struct_type)
5642 (fix_static_member_physnames, fixup_class_method_type)
5643 (hpread_type_lookup): Likewise.
5644 * mdebugread.c (parse_symbol, parse_type): Likewise.
5645 * p-lang.c (is_pascal_string_type): Likewise.
5646 * valops.c (hand_function_call): Likewise.
5647 * x86-64-tdep.c (classify_argument): Likewise.
5648
5649 * hpread.c (hpread_read_function_type)
5650 (hpread_read_doc_function_type): Call replace_type.
5651 * dstread.c (create_new_type): Delete.
5652 (decode_dst_structure, process_dst_function): Call alloc_type.
5653 Use type access macros.
5654
dff95cc7
MK
56552002-05-12 Mark Kettenis <kettenis@gnu.org>
5656
5657 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5658 the're not supported by the current architecture.
5659 (i387_fill_fxsave): Likewise.
5660
bbcd32ad
FF
56612002-05-12 Fred Fish <fnf@redhat.com>
5662
5663 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5664 sect_index_xxx members to index the first slot in section_offsets
5665 if all of the section_offsets are zero.
5666
89cf4787
MK
56672002-05-12 Mark Kettenis <kettenis@gnu.org>
5668
5669 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5670 checked in with last change.
5671
1f77ffc5
MK
56722002-05-12 Mark Kettenis <kettenis@gnu.org>
5673
5674 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5675 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5676 config.sub.
5677
89b8b4a9
DJ
56782002-05-12 Daniel Jacobowitz <drow@mvista.com>
5679
5680 * Makefile.in: Update dependencies.
5681
14a5e767
AC
56822002-05-11 Andrew Cagney <ac131313@redhat.com>
5683
5684 * language.c (local_hex_string_custom): Simplify. Do not depend
5685 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5686
5687 * memattr.c (mem_info_command): Replace calls to
5688 longest_local_hex_string and longest_local_hex_string_custom.
5689 * buildsym.c (make_blockvector): Ditto.
5690 * solib.c (info_sharedlibrary_command): Ditto.
5691 * tracepoint.c (tracepoints_info): Ditto.
5692 * symtab.c (print_msymbol_info): Ditto.
5693
5694 * language.c (local_hex_string): Delete.
5695 (local_hex_string_custom): Delete.
5696 (longest_local_hex_string): Rename to local_hex_string.
5697 (longest_local_hex_string_custom): Rename to
5698 local_hex_string_custom.
5699 * language.h (local_hex_string): Change parameter type to LONGEST.
5700 (local_hex_string_custom): Ditto.
5701 (longest_local_hex_string): Delete declaration.
5702 (longest_local_hex_string_custom): Ditto.
5703
5704 * solib.c: Update copyright.
5705 * memattr.c: Update copyright.
5706
13d01224
AC
57072002-05-11 Andrew Cagney <ac131313@redhat.com>
5708
5709 * arch-utils.h (legacy_register_to_value): Declare.
5710 (legacy_value_to_register): Declare.
5711 (legacy_convert_register_p): Declare.
5712 * arch-utils.c (legacy_register_to_value): New function.
5713 (legacy_value_to_register): New function.
5714 (legacy_convert_register_p): New function.
5715
5716 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5717 (VALUE_TO_REGISTER): Define.
5718 (CONVERT_REGISTER_P): Define.
5719 * gdbarch.h, gdbarch.c: Regenerate.
5720
5721 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5722 VALUE_TO_REGISTER.
5723 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5724 CONVERT_REGISTER_P.
5725
4a1970e4
DJ
57262005-05-11 Daniel Jacobowitz <drow@mvista.com>
5727 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5728
5729 * Makefile.in: Update dependencies for valops.c.
5730 * valops.c: Include "gdb_assert.h".
5731 (typecmp): Skip THIS parameter to methods.
5732 (find_method_list): Remove static_memfuncp argument,
5733 update callers. Check for stub methods.
5734 (find_value_oload_method_list): Don't set *static_memfuncp.
5735 (find_overload_match): Don't check for stub methods. Assert
5736 that methods are not stubbed. Handle static methods.
5737 (value_find_oload_method_list): Remove static_memfuncp argument.
5738 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5739 to the argument list for static stub methods.
5740 * value.h (value_find_oload_method_list): Update prototype.
5741
b2e75d78
AC
57422002-05-11 Andrew Cagney <ac131313@redhat.com>
5743
5744 * arch-utils.h (generic_register_size): Declare.
5745 (generic_register_raw_size, generic_register_virtual_size): Delete
5746 declarations.
5747 * arch-utils.c (generic_register_raw_size): Delete.
5748 (generic_register_size): New function.
5749 (generic_register_virtual_size): Delete.
5750
5751 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5752 default generic_register_size.
5753 * gdbarch.h, gdbarch.c: Re-generate.
5754
5755 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5756 register_virtual_size.
5757 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5758 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5759
451fbdda
AC
57602002-05-11 Andrew Cagney <ac131313@redhat.com>
5761
5762 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5763 * gdbarch.h, gdbarch.c: Regenerate.
5764 * gnu-v3-abi.c: Update copyright.
5765 (vtable_address_point_offset): Update.
5766 (gnuv3_rtti_type): Update.
5767 (gnuv3_baseclass_offset): Update.
5768 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5769 (init_fetch_link_map_offsets): Update.
5770 * remote.c (get_remote_state): Update.
5771
6d2f5cea
DJ
57722002-05-11 Daniel Jacobowitz <drow@mvista.com>
5773
5774 * TODO: Remove value_headof/value_from_vtable_info comment.
5775 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5776 * values.c (value_headof, value_from_vtable_info): Delete.
5777 * value.h (value_from_vtable_info): Delete prototype.
5778
d2324da4
AC
57792002-05-11 Andrew Cagney <ac131313@redhat.com>
5780
5781 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5782 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5783 $(gdb_regex_h).
5784 (gdb_assert_h): Define.
5785 (gdb_wait_h): Define.
5786 (gdb_regex_h): Define.
5787
5c717440
DJ
57882002-05-11 Daniel Jacobowitz <drow@mvista.com>
5789
5790 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5791 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5792
6c7861b3
JT
57932002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5794
5795 * nbsd-tdep.c: Fix comment.
5796
ea5bc2a6
JT
57972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5800 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5801 (nbsd-tdep.o): New dependency list.
5802 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5803 nbsd-tdep.h.
5804 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5805 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5806 * nbsd-tdep.c: New file.
5807 * nbsd-tdep.h: New file.
5808 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5809 nbsd-tdep.h.
5810 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5811 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5812 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5813 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5814
b28da865
JT
58152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5816
5817 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5818 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5819 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5820 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5821 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5822 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5823
4b8ff1fa
JT
58242002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5825
5826 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5827 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5828 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5829 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5830 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5831 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5832 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5833
dfe6eb1f
JT
58342002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5835
5836 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5837 fetch_elfcore_registers to...
5838 * i386nbsd-tdep.c: ...here.
5839 (i386nbsd_use_struct_convention): Rename to...
5840 (i386nbsd_aout_use_struct_convention): ...this.
5841 (i386nbsd_supply_reg): New function.
5842 (i386nbsd_fill_reg): New function.
5843 (fetch_core_registers): Use i386nbsd_supply_reg.
5844 (fetch_elfcore_registers): Likewise.
5845 (_initialize_i386nbsd_tdep): New function.
5846 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5847 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5848 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5849 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5850 (i386nbsd_aout_use_struct_convention): ...this.
5851
20cb8cda
JT
58522002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5853
5854 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5855 (store_inferior_registers): Use shnbsd_fill_reg.
5856 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5857 sh_nbsd_supply_register): Collapse into...
5858 (shnbsd_supply_reg): ...this.
5859 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5860 (shnbsd_fill_reg): ...this.
5861 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5862 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5863 (fetch_core_registers): Use shnbsd_supply_reg.
5864 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5865 (sh_nbsd_core_fns): Rename to...
5866 (shnbsd_core_fns): ...this.
5867 (sh_nbsd_elfcore_fns): Rename to...
5868 (shnbsd_elfcore_fns): ...this.
5869 (sh_nbsd_init_abi): Rename to...
5870 (shnbsd_init_abi): ...this.
5871 (_initialize_sh_nbsd_tdep): Rename to...
5872 (_initialize_shnbsd_tdep): ...this.
5873 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5874 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5875 sh_nbsd_fill_register): Remove prototypes.
5876 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5877
e750d25e
JT
58782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5881 (i387-nat.o): Delete dependency list.
5882 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5883 (x86-64-linux-nat.o): Likewise.
5884 * i387-nat.c: Delete file, moving contents to...
5885 * i387-tdep.c: ...here.
5886 * i387-nat.h: Rename...
5887 * i387-tdep.h: ...to this.
5888 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5889 * i386-linux-nat.c: Likewise.
5890 * i386bsd-nat.c: Likewise.
5891 * i386gnu-nat.c: Likewise.
5892 * i386nbsd-nat.c: Likewise.
5893 * i386v4-nat.c: Likewise.
5894 * x86-64-linux-nat.c: Likewise.
5895 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5896 * config/i386/go32.mh (NATDEPFILES): Likewise.
5897 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5898 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5899 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5900 * config/i386/linux.mh (NATDEPFILES): Likewise.
5901 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5902 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5903 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5904 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5905
1aee598a
JT
59062002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5907
5908 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5909 (alphanbsd-nat.o): Remove dependency list.
5910 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5911 * alphanbsd-nat.c: Delete. Contents moved to...
5912 * alphanbsd-tdep.c: ...here.
5913 (_initialize_alphanbsd_tdep): Register core functions.
5914 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5915
12bcb0fe
JT
59162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5919 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5920 (alphanbsd-nat.o): Likewise.
5921 (alphabsd-tdep.o): New dependency list.
5922 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5923 (fill_gregset): Use alphabsd_fill_reg.
5924 (supply_fpregset): Use alphabsd_supply_fpreg.
5925 (fill_fpregset): Use alphabsd_fill_fpreg.
5926 (fetch_inferior_registers): Use struct reg and struct fpreg
5927 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5928 and alphabsd_supply_fpreg.
5929 (store_inferior_registers): Use struct reg and struct fpreg
5930 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5931 and alphabsd_fill_fpreg.
5932 * alphabsd-tdep.c: New file.
5933 * alphabsd-tdep.h: New file.
5934 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5935 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5936 alphabsd_supply_fpreg.
5937 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5938 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5939
361d1df0
EC
59402002-05-11 Eric Christopher <echristo@redhat.com>
5941
5942 * mips-tdep.c (mips_double_register_type): Fix thinko.
5943 (mips_single_register_type): Ditto.
5944 * MAINTAINERS: Add self.
5945
92dd7cee
MK
59462002-05-11 Mark Kettenis <kettenis@gnu.org>
5947
5948 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5949 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5950 right thing on architectures with different endianness and/or
5951 integer sizes.
5952
e27da16d
JT
59532002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5954
5955 From Christian Limpach <chris@Pin.LU>
5956 * configure.in: Change sed expression which comments out
5957 NATDEPFILES to also comment out continuation lines.
5958 * configure: Regenerate.
5959
ddde02bd
EZ
59602002-05-10 Elena Zannoni <ezannoni@redhat.com>
5961
5962 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5963 big patch.
5964
1c922164
EZ
59652002-05-10 Elena Zannoni <ezannoni@redhat.com>
5966
5967 * sh-tdep.c: Include correct file.
5968
283150cd
EZ
59692002-05-10 Elena Zannoni <ezannoni@redhat.com>
5970
5971 New support for sh64-elf (sh5) target.
5972
5973 * configure.tgt: For sh64-elf target, default to sh-elf.
5974
5975 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5976 (struct gdbarch_tdep): Add new fields for new registers and ABI
5977 info.
361d1df0 5978
283150cd
EZ
5979 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5980 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5981 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5982 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5983 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5984 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5985 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5986 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5987 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5988 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5989 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5990 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5991 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5992 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5993 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5994 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5995 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5996 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5997 sign_extend, sh64_nofp_frame_init_saved_regs,
5998 sh64_init_extra_frame_info, sh64_get_saved_register,
5999 sh64_extract_struct_value_address, sh64_pop_frame,
6000 sh64_push_arguments, sh64_extract_return_value,
6001 sh64_store_return_value, sh64_show_media_regs,
6002 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6003 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6004 sh_sh64_register_virtual_type,
6005 sh_sh64_register_convert_to_virtual,
6006 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6007 sh64_register_read, sh64_pseudo_register_write,
6008 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6009 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6010 sh64_do_pseudo_register, sh_compact_do_registers_info,
6011 sh64_do_registers_info, sh_gdbarch_init): New functions.
6012
3117ed25
EZ
60132002-05-10 Elena Zannoni <ezannoni@redhat.com>
6014
6015 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6016
2654e6d4
DJ
60172002-05-10 Daniel Jacobowitz <drow@mvista.com>
6018
6019 * linespec.c (decode_line_1): Check for a double quote after
6020 a filename correctly.
6021
9ab3e532
JB
60222002-05-10 Jim Blandy <jimb@redhat.com>
6023
6024 Properly track the size of the current objfile's .debug_line section.
6025 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6026 (DWARF_LINE_SIZE): New macro.
6027 (dwarf2_build_psymtabs_hard): Record the line section's size in
6028 the partial symbol table.
6029 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6030 symbol table.
6031
126fa72d
PS
60322002-05-10 Petr Sorfa <petrs@caldera.com>
6033
6034 * ia64-tdep.c: Handle breakpoints on L instruction type
6035 in MLX instruction bundle by moving the breakpoint to
6036 the third slot (X instruction type) as L holds only data.
6037
1f077a3e
KB
60382002-05-10 Kevin Buettner <kevinb@redhat.com>
6039
6040 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6041 (process_one_symbol): Complain about discarding local symbols
6042 due to a misplaced N_LBRAC entry.
6043
8120c9d5 60442002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6045
6046 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6047 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6048 decrease the depth we are at, in the case of templates.
361d1df0 6049
67b2c998
DJ
60502002-05-09 Daniel Jacobowitz <drow@mvista.com>
6051
6052 * mips-tdep.c (mips_float_register_type): New function.
6053 (mips_double_register_type): New function.
6054 (mips_print_register): Use them.
6055 (do_fp_register_row): Likewise.
6056
fd326606
DJ
60572002-05-09 Daniel Jacobowitz <drow@mvista.com>
6058
6609d9af 6059 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6060 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6061 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6062
bef35864
MS
60632002-05-09 Michael Snyder <msnyder@redhat.com>
6064
6065 * remote-rdp.c (remote_rdp_can_run): Remove.
6066
c55a3f73
TT
60672002-05-09 Tom Tromey <tromey@redhat.com>
6068
6069 * jv-valprint.c (java_val_print): Handle `char' as a special case
6070 of TYPE_CODE_INT.
6071
b8d5e71d
MS
60722002-05-09 Michael Snyder <msnyder@redhat.com>
6073
6074 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6075 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6076 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6077 str r(0123),[sp,#nn].
361d1df0 6078 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6079 order-independent by placing it in a loop.
6080
e2cd42dd
MS
60812002-05-06 Michael Snyder <msnyder@redhat.com>
6082
6083 * stabsread.c (read_type): Add recognition for new attribute:
6084 "@V;" means that an array type is actually a vector.
6085 This is analogous to the vector flag that's been added to dwarf2.
6086
3ce1502b
MK
60872002-05-09 Mark Kettenis <kettenis@gnu.org>
6088
6089 * i386-tdep.h (i386_abi): New enum.
6090 (struct gdbarch_tdep): Replace os_ident member with abi.
6091 (i386_gdbarch_register_os_abi): New prototype.
6092 * i386-tdep.c (i386_abi_names): New array.
6093 (process_note_abi_tag_sections): Removed.
6094 (process_note_sections): New function.
6095 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6096 (struct i386_abi_handler): New struct.
6097 (i386_abi_handler_list): New variable.
6098 (i386_gdbarch_register_os_abi): New function.
6099 (i386_gdbarch_init): Adapt for the changes given above.
6100
084c156a
DJ
61012002-05-08 Daniel Jacobowitz <drow@mvista.com>
6102
6103 * gregset.h: Say "GNU/Linux".
6104
6599f021
EZ
61052002-05-08 Elena Zannoni <ezannoni@redhat.com>
6106
6107 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6108 (build_gdbtypes): Build builtin_type_v2_float.
6109 (_initialize_gdbtypes): Register new builtin type.
6110
40af4b0c
AC
61112002-05-08 Andrew Cagney <ac131313@redhat.com>
6112
6113 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6114 (clear_gdbarch_swap): New function.
6115 (initialize_non_multiarch): Call.
6116 (gdbarch_update_p): Before calling init(), swap out and clear the
6117 existing architecture.
6118 * gdbarch.c: Regenerate.
6119
4fe84f46
JT
61202002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6123 alphanbsd-tdep.c.
6124
4015edd1
JT
61252002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6126
6127 * sh-nbsd-nat.c: Rename to...
6128 * shnbsd-nat.c: ...this.
6129 * sh-nbsd-tdep.c: Rename to...
6130 * shnbsd-tdep.c: ...this.
6131 * sh-nbsd-tdep.h: Rename to...
6132 * shnbsd-tdep.h: ...this.
6133 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6134 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6135
0e2bd219
RE
61362002-05-08 Richard Earnshaw <rearnsha@arm.com>
6137
6138 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6139 concatenation for command help messages.
6140
13a38d45
JT
61412002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6142
6143 * NEWS: Note new sh*-*-netbsdelf* configuration.
6144 * configure.host: Set gdb_host_cpu to sh for all sh*.
6145 (sh*-*-netbsdelf*): New host.
6146 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6147 (sh*-*-netbsdelf*): New target.
6148 * sh-nbsd-nat.c: New file.
6149 * sh-nbsd-tdep.c: New file.
6150 * sh-nbsd-tdep.h: New file.
6151 * config/sh/nbsd.mh: New file.
6152 * config/sh/nbsd.mt: New file.
6153 * config/sh/nm-nbsd.h: New file.
6154 * config/sh/tm-nbsd.h: New file.
6155
d658f924
JT
61562002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * sh-tdep.c (sh_osabi_names): Declare.
6159 (process_note_abi_tag_sections): New function.
6160 (get_elfosabi): Ditto.
6161 (sh_gdbarch_register_os_abi): Ditto.
6162 (sh_dump_tdep): Ditto.
6163 _initialize_sh_tdep): Use gdbarch_register to register
6164 sh_gdbarch_init and sh_dump_tdep.
6165 * config/sh/tm-sh.h (sh_osabi): Declare.
6166 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6167
848cfffb
AC
61682002-05-07 Andrew Cagney <ac131313@redhat.com>
6169
6170 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6171 (thumb_scan_prologue): Ditto.
6172 (arm_find_callers_reg): Ditto.
6173 (arm_frame_chain): Ditto.
6174 (arm_init_extra_frame_info): Ditto.
6175 (arm_frame_saved_pc): Ditto.
6176 (arm_pop_frame): Ditto.
6177 (arm_push_return_address): New function.
6178 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6179 call_dummy_location, call_dummy_breakpoint_offset_p,
6180 call_dummy_breakpoint_offset, call_dummy_p,
6181 call_dummy_stack_adjust_p, call_dummy_words,
6182 sizeof_call_dummy_words, call_dummy_start_offset,
6183 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6184 call_dummy_address, push_return_address and push_dummy_frame for
6185 generic dummy frames.
6186
e7d717c0
JT
61872002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6188
6189 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6190 size computation for alloca.
6191 (sh_fp_frame_init_saved_regs): Likewise.
6192
7bbcf283
RE
61932002-05-07 Richard Earnshaw <rearnsha@arm.com>
6194
6195 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6196 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6197 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6198 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6199 * remote-rdp.c (remote_rdp_fetch_register): Use
6200 ARM_MAX_REGISTER_RAW_SIZE.
6201 (remote_rdp_store_register): Likewise.
6202
4657573b
ML
62032002-05-07 Michal Ludvig <mludvig@suse.cz>
6204
361d1df0 6205 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6206 added default labels to switch {} statements.
6207 * x86-64-tdep.c: Ditto.
6208 * x86-64-linux-nat.c: Ditto.
6209
010f3b2f
JT
62102002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * solib.h: Protect against multiple inclusion.
6213
debd256d
JB
62142002-05-06 Jim Blandy <jimb@redhat.com>
6215
9ab3e532
JB
6216 Add first preprocessor macro-expansion files.
6217 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6218 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6219 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6220 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6221 (COMMON_OBS): Add macrotab.o, macroexp.o.
6222 (macroexp.o, macrotab.o): New rules.
6223
debd256d
JB
6224 Separate the job of reading the line number info statement program
6225 header (...expialidocious) out into its own function.
6226 * dwarf2read.c (struct line_head, struct filenames, struct
6227 directories): Replace with...
6228 (struct line_header): New structure, containing the full
6229 contents of the statement program header, including the
6230 include directory and file name tables.
6231 (read_file_scope): If we have line number info, instead of just
6232 calling dwarf_decode_lines to do all the work, call
6233 dwarf_decode_line_header first to get a `struct line_header'
6234 containing the data in the statement program header, and then
6235 pass that to dwarf_decode_lines, which will pick up where that
6236 left off. Be sure to clean up the `struct line_header' object.
6237 (dwarf_decode_line_header, free_line_header, add_include_dir,
6238 add_file_name): New functions.
6239 (dwarf_decode_lines): Move all the code to read the statement
6240 program header into dwarf_decode_line_header. Take the line
6241 header it built as the first argument, instead of the offset to
6242 the compilation unit's line number info. Use the new `struct
6243 line_header' type instead of the old structures. No need to do
6244 cleanups here now, since we don't allocate anything.
6245 (dwarf2_statement_list_fits_in_line_number_section,
6246 dwarf2_line_header_too_long): New complaints.
6247
ac3aafc7
EZ
62482002-05-06 Elena Zannoni <ezannoni@redhat.com>
6249
6250 * gdbtypes.c (init_vector_type): New function.
6251 (build_builtin_type_vec128): Simplify the representation of SIMD
6252 registers.
6253 (build_gdbtypes): Initialize new builtin vector types.
6254 (_initialize_gdbtypes): Register new vector types with gdbarch.
6255 (builtin_type_v4_float, builtin_type_v4_int32,
6256 builtin_type_v8_int16, builtin_type_v16_int8,
6257 builtin_type_v2_int32, builtin_type_v4_int16,
6258 builtin_type_v8_int8): New (renamed) SIMD types.
6259
13e49980
MK
62602002-05-06 Mark Kettenis <kettenis@gnu.org>
6261
6262 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6263 (i387_fill_fxsave): Likewise.
6264
997b20b8
AO
62652002-05-05 Alexandre Oliva <aoliva@redhat.com>
6266
6267 * alpha-tdep.c (alpha_extract_return_value): Don't use
6268 non-constant array size in prototype.
6269
535c96ce
AC
62702002-05-04 Andrew Cagney <ac131313@redhat.com>
6271
6272 From Brian Taylor <briant at model dot com>:
6273 * ui-out.c (ui_out_field_core_addr): Use the function
6274 longest_local_hex_string_custom'to format addresses > 32 bits
6275 wide.
6276
6277 * ui-out.c (ui_out_field_core_addr): Update comment.
6278
bedfa57b
AC
62792002-05-04 Andrew Cagney <ac131313@redhat.com>
6280
6281 * stack.c (select_and_print_frame): Make static. Delete the
6282 parameter `level'.
6283 (func_command): Update call.
6284 (select_frame_command): Delete code computing the frame level.
6285 * frame.h (select_and_print_frame): Delete declaration.
6286
f621c63e
AC
62872002-05-04 Andrew Cagney <ac131313@redhat.com>
6288
6289 * sparc-tdep.c (sparc_get_saved_register): Comment why
6290 get_prev_frame call is safe.
6291
0f7d239c
AC
62922002-05-04 Andrew Cagney <ac131313@redhat.com>
6293
6294 * frame.h (select_frame): Delete level parameter.
6295 * stack.c (select_frame): Update. Use frame_relative_level to
6296 obtain the frame's level.
6297 (select_and_print_frame): Update call.
6298 (select_frame_command): Ditto.
6299 (up_silently_base): Ditto.
6300 (down_silently_base): Ditto.
6301 * ocd.c (ocd_start_remote): Ditto.
6302 * remote-rdp.c (remote_rdp_open): Ditto.
6303 * remote-mips.c (mips_initialize): Ditto.
6304 (common_open): Ditto.
6305 * remote-e7000.c (e7000_start_remote): Ditto.
6306 * m3-nat.c (select_thread): Ditto.
6307 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6308 (child_get_current_exception_event): Ditto.
6309 * varobj.c (varobj_create): Ditto.
6310 (varobj_update): Ditto.
6311 (c_value_of_root): Ditto.
6312 * tracepoint.c (finish_tfind_command): Ditto.
6313 * corelow.c (core_open): Ditto.
6314 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6315 * thread.c (info_threads_command): Ditto.
6316 (switch_to_thread): Ditto.
6317 * infrun.c (normal_stop): Ditto.
6318 (restore_selected_frame): Ditto.
6319 (restore_inferior_status): Ditto.
6320 * breakpoint.c (insert_breakpoints): Ditto.
6321 (watchpoint_check): Ditto.
6322 (bpstat_stop_status): Ditto.
6323 (do_enable_breakpoint): Ditto.
6324 * blockframe.c (flush_cached_frames): Ditto.
6325 (reinit_frame_cache): Ditto.
6326
71d6c7b1
AC
63272002-05-04 Andrew Cagney <ac131313@redhat.com>
6328
6329 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6330 maintainer.
6331
cda6c68a
JB
63322002-05-04 Jim Blandy <jimb@redhat.com>
6333
6334 * gdbtypes.c (replace_type): Doc fix.
6335
5c1c87f0
AC
63362002-05-04 Andrew Cagney <ac131313@redhat.com>
6337
6338 * valprint.c (strcat_longest): Delete commented out function.
6339 Update copyright.
6340
cd9bfe15
AC
63412002-05-04 Andrew Cagney <ac131313@redhat.com>
6342
6343 * MAINTAINERS: Mark a29k as deleted.
6344 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6345 Move new configurations to the top.
6346 * configure.tgt: Remove a29k.
6347 * config/a29k/tm-vx29k.h: Delete.
6348 * config/a29k/vx29k.mt: Delete.
6349 * config/a29k/tm-a29k.h: Delete.
6350 * config/a29k/a29k-udi.mt: Delete.
6351 * config/a29k/a29k.mt: Delete.
6352 * a29k-tdep.c: Delete.
6353 * remote-udi.c: Delete.
6354 * remote-mm.c: Delete.
6355 * remote-eb.c: Delete.
6356 * remote-adapt.c: Delete.
6357 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6358 * config/s390/s390x.mt: Ditto.
6359 * config/s390/s390.mt: Ditto.
6360 * config/sparc/sparclynx.mh: Ditto.
6361 * config/sparc/linux.mh: Ditto.
6362 * config/pa/hppaosf.mh: Ditto.
6363 * config/pa/hppabsd.mh: Ditto.
6364 * config/ns32k/nbsd.mt: Ditto.
6365 * config/mips/vr5000.mt: Ditto.
6366 * config/m68k/sun3os4.mh: Ditto.
6367 * config/m68k/nbsd.mt: Ditto.
6368 * config/m68k/m68klynx.mh: Ditto.
6369 * config/m32r/m32r.mt: Ditto.
6370 * config/i386/x86-64linux.mt: Ditto.
6371 * config/i386/nbsdelf.mt: Ditto.
6372 * config/i386/nbsd.mt: Ditto.
6373 * config/i386/i386lynx.mh: Ditto.
6374
bf0c5130
AC
63752002-05-04 Andrew Cagney <ac131313@redhat.com>
6376
6377 * target.c (debug_print_register): New function. Handle oversize
6378 registers.
6379 (debug_to_fetch_registers): Call.
6380 (debug_to_store_registers): Call.
6381
2ae1c2d2
JB
63822002-05-03 Jim Blandy <jimb@redhat.com>
6383
13a393b0
JB
6384 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6385 (read_type): Doc fix.
6386 * gdbtypes.c (replace_type): Doc fix.
6387
2ae1c2d2
JB
6388 * stabsread.c (multiply_defined_struct): New complaint.
6389 (read_struct_type): If the type we were passed isn't empty, or
6390 incomplete, don't read the new struct type into it; complain,
6391 and return the original type unchanged. Take a new `type_code'
6392 argument, which is the type code for the new type.
6393 (read_type): Rather than storing the type's type code here, pass
6394 it as an argument to read_struct_type, and let that take care of
6395 storing it. That way, we don't overwrite the original type code,
6396 so read_struct_type can use it to decide whether we're overwriting
6397 something we shouldn't.
6398 (complain_about_struct_wipeout): New function.
6399
8de9bdc4
AC
64002002-05-03 Andrew Cagney <ac131313@redhat.com>
6401
6402 * gdbarch.sh: Assert that gdbarch is non-NULL.
6403 * gdbarch.c: Regenerate.
6404
f773fdbb
JM
64052002-05-03 Jason Merrill <jason@redhat.com>
6406
6407 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6408 and return NULL.
6409
0e04a514
ML
64102002-05-03 Michal Ludvig <mludvig@suse.cz>
6411
6412 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6413 (x86_64_dwarf2gdb_regno_map_length),
6414 (x86_64_dwarf2_reg_to_regnum): Added.
6415 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6416 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6417 (_initialize_x86_64_tdep): Synced with the change above.
6418 (x86_64_skip_prologue): Reformulated message.
6419
065432a8
PM
64202002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6421
6422 * f-exp.y: Also use new prev_lexptr variable
6423 to improve error reporting. Based on Michael Snyder
6424 2002-04-24 dated patch to c-exp.y.
6425 * jv-exp.y: Likewise.
6426 * m2-exp.y: Likewise.
6427
a3162708
EZ
64282002-05-02 Elena Zannoni <ezannoni@redhat.com>
6429
6430 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6431 we are dealing with vectors.
6432
03620c38
PM
64332002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6434
6435 * config/m68k/tm-nbsd.h: Obvious fix,
6436 correct machine name.
6437
6604db2e
PM
64382002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6439
6440 * p-typeprint.c (pascal_type_print_base): Add support
6441 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6442
0906b739
PM
64432002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6444
6445 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6446 for fondamental pascal 'char' type.
6447
e2625b33
PM
64482002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6449
6450 * p-lang.h (is_pascal_string_type): Declaration changed,
6451 new sixth argument of type char ** added.
361d1df0 6452 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6453 changed. Args length_pos, length_size, string_pos, char_size
6454 can now be NULL. New argument arrayname set to the field
6455 name of the char array. Return value set to char array
6456 field index plus one.
361d1df0 6457 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6458 is_pascal_string_type function.
6459
cf17c188
AC
64602002-05-02 Andrew Cagney <cagney@redhat.com>
6461
6462 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6463 <cagney@redhat.com> change.
6464 * gdbarch.c: Regenerate.
6465
52bca491
AC
64662002-05-02 Andrew Cagney <cagney@redhat.com>
6467
6468 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6469 before probing for a new one. Detect errorenous gdbarch_init
6470 functions.
6471 * gdbarch.c: Regenerate.
6472
d5e72505
AC
64732002-05-01 Andrew Cagney <cagney@redhat.com>
6474
6475 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6476 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6477 * config/v850/tm-v850.h: Ditto. Update copyright.
6478
af566d9f
AC
64792002-04-30 Andrew Cagney <ac131313@redhat.com>
6480
6481 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6482 current_gdbarch.
6483
880d85fa
MS
64842002-04-30 Michael Snyder <msnyder@redhat.com>
6485
94c30b78
MS
6486 * arm-tdep.c: Whitespace clean-ups.
6487 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6488 should have been removed as part of 4/24 change.
6489
6f5987a6
KB
64902002-04-30 Kevin Buettner <kevinb@redhat.com>
6491
6492 * rs6000-tdep.c: Added comment describing how fpscr register
6493 numbers were chosen.
6494
1a113c93
MS
64952002-04-30 Michael Snyder <msnyder@redhat.com>
6496
6497 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6498
9a6f53fe
EZ
64992002-04-29 Elena Zannoni <ezannoni@redhat.com>
6500
6501 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6502 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6503 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6504
11ed25ac
KB
65052002-04-29 Kevin Buettner <kevinb@redhat.com>
6506
6507 From Louis Hamilton <hamilton@redhat.com>:
6508 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6509 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6510 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6511 not bfd-private xcoff data, to determine wordsize.
6512 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6513
ae232405
AC
65142002-04-29 Andrew Cagney <ac131313@redhat.com>
6515
6516 GDB 5.2 released from 5.2 branch.
6517
91fd20f7
ML
65182002-04-29 Michal Ludvig <mludvig@suse.cz>
6519
6520 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6521 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6522 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6523
2dc5091b
EZ
65242002-04-29 Elena Zannoni <ezannoni@redhat.com>
6525
6526 * rs6000-tdep.c (rs6000_extract_return_value,
6527 rs6000_store_return_value): Handle returning vectors.
6528 (rs6000_gdbarch_init): Use
6529 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6530 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6531 New function.
6532 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6533 vectors.
6534 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6535 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6536
2b9848d8
PM
65372002-04-24 Pierre Muller <ics.u-strasbg.fr>
6538
6539 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6540 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6541 with fprintf_unfiltered (gdb_stderr,...).
6542
f8d17dc5
PM
65432002-04-24 Pierre Muller <ics.u-strasbg.fr>
6544
6545 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6546 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6547 Replace fprintf (stderr,...
6548 with fprintf_unfiltered (gdb_stderr,....
6549 * remote-es.c: Likewise.
6550 * remote-os9k.c: Likewise.
6551 * remote-st.c: Likewise.
6552
2f2f1ad1
AS
65532002-04-28 Andreas Schwab <schwab@suse.de>
6554
6555 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6556 linux-proc.o and gcore.o.
6557
b6779aa2
AC
65582002-04-26 Michal Ludvig <mludvig@suse.cz>
6559
6560 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6561 code without frame pointers.
6562
7e57f5f4
AC
65632002-04-26 Andrew Cagney <ac131313@redhat.com>
6564
6565 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6566 ON_STACK is needed.
6567
2ceb85d0
BE
65682002-04-26 Ben Elliston <bje@redhat.com>
6569
6570 * target.c (do_xfer_memory): Correct reference to the new option
6571 "trust-readonly-sections".
6572
f5f8a009
EZ
65732002-04-26 Elena Zannoni <ezannoni@redhat.com>
6574
6575 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6576 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6577 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6578 vectors.
6579 (read_array_type): Record the fact that this array type is really a
6580 vector (i.e. are passed in by value).
6581
5868c862
JT
65822002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6583
6584 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6585 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6586 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6587 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6588 * alpha-linux-tdep.c: Include frame.h.
6589 (alpha_linux_sigcontext_addr): New function.
6590 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6591 alpha_linux_sigcontext_addr.
6592 * alpha-osf1-tdep.c: Include gdbcore.h.
6593 (alpha_osf1_sigcontext_addr): New function.
6594 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6595 alpha_osf1_sigcontext_addr.
6596 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6597 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6598
bfb01f37
AC
65992002-04-26 Andrew Cagney <ac131313@redhat.com>
6600
361d1df0 6601 * stack.c (selected_frame_level):
bfb01f37
AC
6602 (select_frame): Do not set selected_frame_level.
6603 * frame.h (selected_frame_level): Delete declaration.
6604
15813d3f
AC
66052002-04-26 Andrew Cagney <ac131313@redhat.com>
6606
6607 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6608 convert_from_func_ptr-addr when AIX / PowerOpen.
6609
6096c27a
AC
66102002-04-25 Andrew Cagney <ac131313@redhat.com>
6611
6612 * valops.c (hand_function_call): Call
6613 generic_save_call_dummy_addr.
6614 * frame.h (generic_save_call_dummy_addr): Declare.
6615 * blockframe.c (struct dummy_frame): Add fields call_lo and
6616 call_hi.
6617 (generic_find_dummy_frame): Check for PC in range call_lo to
6618 call_hi instead of entry_point_address.
6619 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6620 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6621 (generic_save_call_dummy_addr): New function.
6622
f510d44e
DM
66232002-04-24 David S. Miller <davem@redhat.com>
6624
6625 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6626 sparc_skip_prologue.
6627 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6628 information to find prologue when possible.
6629 (sparc_prologue_frameless_p): Call examine_prologue directly.
6630 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6631 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6632 second argument.
6633 (SKIP_PROLOGUE): Likewise.
6634
15d72a92
JT
66352002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6636
6637 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6638 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6639 indicate that the condition it was testing is always true.
6640 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6641 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6642 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6643
accc6d1f
JT
66442002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6645
6646 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6647 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6648 tdep->jb_pc and tdep->jb_elt_size.
6649 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6650 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6651 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6652 * alpha-nat.c (get_longjmp_target): Remove.
6653 (JB_ELEMENT_SIZE): Ditto.
6654 (JB_PC): Ditto.
6655 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6656 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6657 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6658 to alpha_get_longjmp_target.
6659 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6660 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6661 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6662
1bfdc549
AC
66632002-04-25 Andrew Cagney <ac131313@redhat.com>
6664
6665 * README: Update to GDB 5.2.
6666
1bd316f0
AC
66672002-04-25 Andrew Cagney <ac131313@redhat.com>
6668
6669 * gdbarch.sh (LC_ALL): Set to `c'.
6670
2e5ff58c
TR
66712002-04-25 Theodore A. Roth <troth@verinet.com>
6672
6673 * avr-tdep.c: Ran through gdb_indent.sh.
6674
e33ce519
TR
66752002-04-25 Theodore A. Roth <troth@verinet.com>
6676
6677 * MAINTAINERS: Add myself as AVR maintainer.
6678 * NEWS: Note new target avr.
6679
8818c391
TR
66802002-04-25 Theodore A. Roth <troth@verinet.com>
6681
6682 * Makefile.in: Add support for AVR target.
6683 * configure.tgt: Add support for AVR target.
6684 * avr-tdep.c: New file
6685 * config/avr/avr.mt: New file.
6686
79509c2d
TR
66872002-04-25 Theodore A. Roth <troth@verinet.com>
6688
6689 * MAINTAINERS: Add myself to write-after-approval.
6690
dac8068e
PM
66912002-04-24 Pierre Muller <ics.u-strasbg.fr>
6692
6693 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6694 with fprintf_unfiltered (gdb_stderr,....
6695
25bf3106
PM
66962002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6697
6698 Fix PR gdb/508.
6699 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6700
24467a86
PM
67012002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6702
6703 * p-exp.y: Also use new prev_lexptr variable
6704 to improve error reporting. Based on Michael Snyder
6705 2002-04-24 dated patch to c-exp.y.
6706
95b80706
JT
67072002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6708
6709 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6710 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6711 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6712 to 0.
6713 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6714 and struct value.
6715 (FUNCTION_START_OFFSET): Remove.
6716 (BREAKPOINT): Ditto.
6717
e90cc612
JT
67182002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6719
6720 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6721 * NEWS: Ditto.
6722
6c72f9f9
JT
67232002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6724
6725 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6726 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6727 alpha_linux_pc_in_sigtramp.
6728 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6729 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6730 alpha_osf1_pc_in_sigtramp.
6731 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6732 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6733 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6734 alphafbsd_pc_in_sigtramp.
6735 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6736 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6737 alphanbsd_pc_in_sigtramp.
6738 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6739 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6740
5e4f3379
JT
67412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6742
6743 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6744
da8ca43d
JT
67452002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6746
6747 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6748 alphanbsd-tdep.c.
6749 (alphanbsd-nat.o): New dependency list.
6750 (alphanbsd-tdep.o): Ditto.
6751 * NEWS: Note new native NetBSD/alpha configuration.
6752 * alphanbsd-nat.c: New file.
6753 * alphanbsd-tdep.c: Ditto.
6754 * configure.host (alpha*-*-netbsd*): New host.
6755 * configure.tgt (alpha*-*-netbsd*): New target.
6756 * config/alpha/nbsd.mh: New file.
6757 * config/alpha/nbsd.mt: Ditto.
6758 * config/alpha/nm-nbsd.h: Ditto.
6759 * config/alpha/tm-nbsd.h: Ditto.
6760
36a6271d
JT
67612002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6762
6763 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6764 (alpha-osf1-tdep.o): New dependency list.
6765 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6766 and skip_sigtramp_frame members.
6767 * alpha-linux-tdep.c: Include gdbcore.h.
6768 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6769 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6770 * alpha-osf1-tdep.c: New file.
6771 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6772 alpha-osf1-dep.c.
6773 (alpha_frame_past_sigtramp_frame): New function.
6774 (alpha_dynamic_sigtramp_offset): Ditto.
6775 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6776 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6777 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6778 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6779 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6780 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6781 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6782 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6783 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6784 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6785 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6786 to find_solib_trampoline_target.
6787 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6788 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6789 (SKIP_TRAMPOLINE_CODE): Remove.
6790 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6791 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6792 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6793 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6794 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6795 (PROC_SIGTRAMP_MAGIC): Ditto.
6796 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6797 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6798 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6799 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6800 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6801
2f4bc57b
JT
68022002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6803
6804 * NEWS: Note that Alpha targets are now multi-arch.
6805
665132f9
MS
68062002-04-24 Michael Snyder <msnyder@redhat.com>
6807
6808 * parser-defs.h (prev_lexptr): New external variable.
6809 * parse.c (parse_exp_1): Set prev_lexptr to null before
6810 calling the language-specific parser.
6811 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6812 (yyerror): Use prev_lexptr in error reporting.
6813
32872fa7
DJ
68142002-04-24 Daniel Jacobowitz <drow@mvista.com>
6815
6816 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6817 * gregset.h: If FILL_FPXREGSET is defined, provide
6818 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6819 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6820 is defined, call fill_fpxregset.
6821
57e76fac
MS
68222002-04-24 Roland McGrath <roland@frob.com>
6823
6824 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6825 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6826 (supply_gregset, supply_fpregset): New functions.
6827
6828 * gnu-nat.c (gnu_find_memory_regions): New function.
6829 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6830 (gnu_xfer_memory): Add a cast.
6831
f43845b3
MS
68322002-04-24 Michael Snyder <msnyder@redhat.com>
6833
361d1df0 6834 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
6835 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6836 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 6837 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
6838 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6839 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6840
a0abec03
AC
6841Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6842
6843 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6844 NUM_PSEUDO_REGS can be used.
6845
d7bd68ca
AC
68462002-04-24 Andrew Cagney <ac131313@redhat.com>
6847
6848 * arch-utils.h: Update copyright.
6849
6850 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6851 * gdbarch.h, gdbarch.c: Re-generate.
6852
6853 * inferior.h (IN_SIGTRAMP): Delete definition.
6854 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6855 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6856
6857 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6858 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6859 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6860 (find_proc_framesize): Ditto.
6861 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6862 (alpha_init_extra_frame_info): Ditto.
6863 * infrun.c (handle_inferior_event): Ditto.
6864 (handle_inferior_event): Ditto.
6865 (check_sigtramp2): Ditto.
6866 * blockframe.c (create_new_frame): Ditto.
6867 (get_prev_frame): Ditto.
6868 * ppc-linux-tdep.c: Update comments.
6869 * i386-linux-tdep.c: Update comments.
6870 * breakpoint.c (bpstat_what): Update comment.
6871
4867e41e
DM
68722002-04-24 David S. Miller <davem@redhat.com>
6873
21d83aa5
DM
6874 * i960-tdep.c (register_in_window_p): New function.
6875 (i960_find_saved_register): Use it instead of
6876 REGISTER_IN_WINDOW_P.
6877 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6878
4867e41e
DM
6879 * symtab.h (find_stab_function_addr): Kill extern.
6880 * minsyms.c (find_stab_function_addr): Remove from here...
6881 * dbxread.c: ... to here, and mark it static.
6882
69cdf6a2
DM
68832002-04-20 David S. Miller <davem@redhat.com>
6884
6885 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6886 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6887
5a595886
DM
68882002-04-21 David S. Miller <davem@redhat.com>
6889
6890 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6891 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6892 (vx_write_register): Likewise.
6893
1da1a192
JB
68942002-04-23 J. Brobecker <brobecker@gnat.com>
6895
6896 * source.c (is_regular_file): New function.
6897 (openp): Check wether file to open is a regular file
6898 to avoid opening directories.
6899
baa6f10b
JT
69002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6901
6902 * findvar.c (extract_signed_integer): Cast printf argument
6903 to suppress format warning.
6904 (extract_unsigned_integer): Likewise.
6905 * infcmd.c (registers_info): Likewise.
6906 * top.c (get_prompt_1): Likewise.
6907 * valops.c (value_assign): Likewise.
6908 * valprint.c (print_decimal): Likewise.
6909
b2c4da81
L
69102002-04-22 H.J. Lu (hjl@gnu.org)
6911
6912 * c-exp.y (typebase): Support
361d1df0 6913
b2c4da81
L
6914 [long|long long|short] [signed|unsigned] [int|]
6915
6916 and
6917
6918 signed [long|long long|short] int
6919
f267bd6a
JT
69202002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6921
6922 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6923 and vax-tdep.h.
6924 * vax-tdep.h: New file.
6925 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6926 Make several routines static.
6927 (vax_get_saved_register): New function.
6928 (vax_gdbarch_init): New function.
6929 (_initialize_vax_tdep): Register vax_gdbarch_init.
6930 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6931 Remove macros now under the control of gdbarch.
6932
da3c6d4a
MS
69332002-04-22 Michael Snyder <msnyder@redhat.com>
6934
11d3b27d
MS
6935 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6936 Some whitespace and coding standards tweaks.
da3c6d4a 6937
a33f7558
JT
69382002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6939
6940 * vax-tdep.c: Include regcache.h.
6941 (vax_call_dummy_words): New.
6942 (sizeof_vax_call_dummy_words): New.
6943 (vax_fix_call_dummy): New function.
6944 (vax_saved_pc_after_call): Ditto.
6945 * config/vax/tm-vax.h: Don't include regcache.h.
6946 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6947 (CALL_DUMMY): Remove.
6948 (CALL_DUMMY_WORDS): Define.
6949 (SIZEOF_CALL_DUMMY_WORDS): Define.
6950 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6951
47a73475
MS
69522002-04-18 Michael Snyder <msnyder@redhat.com>
6953
6954 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6955
52efde73
JT
69562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6957
6958 * vax-tdep.c (vax_frame_chain): New function.
6959 (vax_push_dummy_frame): Ditto.
6960 (vax_pop_frame): Ditto.
6961 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6962 (FRAMELESS_FUNCTION_INVOCATION): Use
6963 generic_frameless_function_invocation_not.
6964 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6965 (POP_FRAME): Use vax_pop_frame.
6966
ea74468c
JT
69672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6968
6969 * vax-tdep.c (vax_store_struct_return): New function.
6970 (vax_extract_return_value): Ditto.
6971 (vax_store_return_value): Ditto.
6972 (vax_extract_struct_value_address): Ditto.
6973 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6974 vax_store_struct_return.
6975 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6976 (STORE_RETURN_VALUE): Use vax_store_return_value.
6977 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6978
5516aa92
JT
69792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6980
6981 * vax-tdep.c (vax_frame_saved_pc): New function.
6982 (vax_frame_args_address_correct): Ditto.
6983 (vax_frame_args_address): Ditto.
6984 (vax_frame_locals_address): Ditto.
6985 (vax_frame_num_args): Move code to be in proximity to
6986 other frame-related functions.
6987 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6988 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6989 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6990 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6991 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6992
36af0b35
L
69932002-04-22 H.J. Lu (hjl@gnu.org)
6994
6995 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6996 includedir.
6997
ab62c900
JT
69982002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6999
7000 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7001 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7002 (FRAME_INIT_SAVED_REGS): New macro.
7003
7232b100
JT
70042002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7005
7006 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7007
b70d2aee
JT
70082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7009
7010 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7011 where needed.
7012 (fetch_osf_core_registers): Likewise.
7013 (supply_gregset): Likewise.
7014
a0e8a2d1 70152002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7016
a0e8a2d1
JB
7017 * symfile.h (get_section_index): Define.
7018 * symfile.c (get_section_index): New function.
7019 * mdebugread.c (SC_IS_SBSS): New macro.
7020 (SC_IS_BSS): Return true for the scBss storage class only, as
7021 the scSBss storage class refers to the .sbss section.
7022 (parse_partial_symbols): Discard the symbols which associated
7023 section does not exist.
7024 Make sure to use the .sbss section index for symbols which
7025 storage class is scBss, rather than using the .bss section index.
7026
51eb8b08
JT
70272002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7028
7029 * vax-tdep.c: Update copyright years.
7030 (vax_register_name): New function.
7031 (vax_register_byte): Ditto.
7032 (vax_register_raw_size): Ditto.
7033 (vax_register_virtual_size): Ditto.
7034 (vax_register_virtual_type): Ditto.
7035 * config/vax/tm-vax.h: Update copyright years.
7036 (REGISTER_NAMES): Remove.
7037 (REGISTER_NAME): Define.
7038 (REGISTER_BYTE): Use vax_register_byte.
7039 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7040 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7041 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7042
6cc1c0a8
AC
70432002-04-21 Andrew Cagney <ac131313@redhat.com>
7044
7045 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7046 declaration
7047 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7048
9319a2fe
DM
70492002-04-21 David S. Miller <davem@redhat.com>
7050
7051 * arch-utils.c (generic_prologue_frameless_p): Kill
7052 SKIP_PROLOGUE_FRAMELESS_P code.
7053 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7054 references.
7055 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7056 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7057 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7058 references.
7059 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7060 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7061 (sparc_gdbarch_init): Pass it to
7062 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7063
e9ed6d01
JT
70642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7065
7066 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7067 (alphabsd-nat.o): New dependency list.
7068
36012033
JT
70692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7070
7071 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7072 alphafbsd-tdep.c.
7073 (alpha-linux-tdep.o): New dependency list.
7074 (alphafbsd-tdep.o): Likewise.
7075
3379287a
JT
70762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7077
7078 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7079 to here...
7080 * alpha-tdep.c: ...from here.
7081 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7082
4bcbd6cb
JT
70832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7084
7085 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7086 prototype from here...
7087 * alpha-tdep.h: ...to here.
7088
b31da25e
AC
70892002-04-21 Andrew Cagney <ac131313@redhat.com>
7090
7091 * frame.h (selected_frame_level): Document as deprecated.
7092 (frame_relative_level): Declare.
7093 * stack.c (frame_relative_level): New function.
7094 (selected_frame_level): Document as deprecated.
7095 (select_frame): Do not set the selected_frame_level.
7096
7097 * stack.c (frame_info, record_selected_frame): Update.
7098 (frame_command, current_frame_command): Update.
7099 (up_silently_base, up_command, down_silently_base): Update.
7100 (down_command): Update.
7101 * inflow.c (kill_command): Update.
7102 * tracepoint.c (finish_tfind_command): Update.
7103 * corelow.c (core_open): Update.
7104 * thread.c (info_threads_command): Update.
7105 (do_captured_thread_select): Update.
7106 * infcmd.c (finish_command): Update.
7107 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7108
9c1d6fe5
JT
71092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7110
7111 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7112
ab89facf
AC
71132002-04-21 Andrew Cagney <ac131313@redhat.com>
7114
7115 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7116 type const.
7117
82a4efa1
JT
71182002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7119
7120 * alphafbsd-tdep.c: Update copyright years. Include
7121 alpha-tdep.h.
7122 (alphafbsd_use_struct_convention): Make static.
7123 (alphafbsd_init_abi): New function.
7124 (_initialize_alphafbsd_tdep): New function.
7125 * config/alpha/tm-fbsd.h: Update copyright years.
7126 (USE_STRUCT_CONVENTION): Remove.
7127
44dffaac
JT
71282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7129
7130 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7131 an Alpha ABI variant.
7132 (alpha_abi_handler_list): Declare.
7133 (alpha_gdbarch_register_os_abi): New function.
7134 (alpha_gdbarch_init): Give registered ABI variant handlers a
7135 chance to tweak the gdbarch once we have set up defaults.
7136 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7137
65585be4
JT
71382002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7139
7140 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7141 to standard_coerce_float_to_double.
7142 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7143
d9b023cc
JT
71442002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7145
7146 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7147 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7148 from gdbarch_tdep rather than a constant.
7149 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7150 the default text address for all Alpha Unix ABIs.
7151 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7152 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7153
dc129d82
JT
71542002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7155
7156 * alpha-tdep.h: New file. Includes several Alpha target constants
7157 taken from...
7158 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7159 let gdbarch deal with.
7160 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7161 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7162 to dependency list.
7163 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7164 Alpha target register names.
7165 * alphabsd-nat.c: Likewise.
7166 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7167 Alpha target register names. Make serveral routines static.
7168 (alpha_get_saved_register): New function.
7169 (alpha_abi_names): New.
7170 (process_note_abi_tag_sections): New function.
7171 (get_elfosabi): New function.
7172 (alpha_gdbarch_init): New function.
7173 (alpha_dump_tdep): New function.
7174 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7175
d49d1e0a
AC
71762002-04-21 Andrew Cagney <ac131313@redhat.com>
7177
7178 * frame.c (find_saved_register): Delete #ifdef
7179 HAVE_REGISTER_WINDOWS code.
7180 * config/sparc/tm-sparc.h: Update comments.
7181 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7182
92e8c9ed
AC
71832002-04-21 Andrew Cagney <ac131313@redhat.com>
7184
7185 * i960-tdep.c (i960_find_saved_register): New function.
7186 (i960_get_saved_register): New function.
7187 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7188 (i960_get_saved_register): Declare.
7189 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7190
e1925118
DM
71912002-04-20 David S. Miller <davem@redhat.com>
7192
7193 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7194
29673b29
AC
71952002-04-20 Andrew Cagney <ac131313@redhat.com>
7196
7197 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7198 instead of NUM_PSEUDO_REGS.
7199
6c86dcd5
DM
72002002-04-20 David S. Miller <davem@redhat.com>
7201
7202 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7203 GDB_MULTI_ARCH_PARTIAL
7204 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7205 define, let tm-sp64.h do it.
7206
aa40ec90
JT
72072002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7208
7209 * frame.c (find_saved_register): Avoid a NULL pointer
7210 dereference and actually walk the frame list.
7211
0f79675b
AC
72122002-04-20 Andrew Cagney <ac131313@redhat.com>
7213
7214 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7215 sorted in most most-recent-used order. Document.
7216 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7217
f91305dd 72182002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7219
7220 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7221 instead of ->prev.
7222 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7223 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7224 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7225 instead of ->prev.
7226
73d322b1
EZ
72272002-04-19 Elena Zannoni <ezannoni@redhat.com>
7228
7229 Fix PR gdb/471.
7230 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7231 (build_builtin_type_vec128): Ditto.
7232 (append_composite_type_field): Fix calculation of type length in
7233 union case.
7234
ccd9a834
EZ
72352002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7236
7237 * config/djgpp/README: Update.
7238
7239 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7240 compiler warnings.
7241
a57f9e49
JT
72422002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7243
7244 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7245 (alpha_setup_arbitrary_frame): ...to this.
7246 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7247 for alpha_setup_arbitrary_frame.
7248
f4f9705a
AC
72492002-04-18 Andrew Cagney <cagney@redhat.com>
7250
7251 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7252 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7253
f4f9705a
AC
7254 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7255 * target.h (memory_breakpoint_from_pc): Update declaration.
7256 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7257
7258 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7259 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7260 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7261 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7262 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7263 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7264 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7265 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7266 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7267 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7268 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7269 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7270
7271 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7272 const pointer.
7273 * monitor.c (monitor_insert_breakpoint): Ditto.
7274 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7275
7276 * config/mcore/tm-mcore.h: Update copyright.
7277 * mem-break.c: Ditto.
7278 * xstormy16-tdep.c: Ditto.
7279
29f319b8
PM
72802002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7281
7282 * p-exp.y: Add precedence rule for '^' token.
7283 This removes the shift/reduce conflicts.
7284 Remove the comment concerning these shift/reduce conflicts.
7285
ebeac11a
EZ
72862002-04-18 Elena Zannoni <ezannoni@redhat.com>
7287
7288 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7289 (registers_powerpc_nofp): New register set for processors
7290 without floating point unit.
7291
27c31547
DM
72922002-04-18 David S. Miller <davem@redhat.com>
7293
7294 * MAINTAINERS: Add myself to write-after-approval.
7295
47a73475
MS
72962002-04-17 Michael Snyder <msnyder@redhat.com>
7297
7298 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7299
953836b2
AC
73002002-04-17 Andrew Cagney <ac131313@redhat.com>
7301
7302 * rs6000-tdep.c (frame_initial_stack_address): Use
7303 frame_register_read to read the alloca_reg.
7304
8b0d4340
AC
73052002-04-17 Andrew Cagney <ac131313@redhat.com>
7306
7307 * frame.c (find_saved_register): Find saved registers in the next
7308 not prev frame.
7309 Fix PR gdb/365.
7310
d8864532
AC
73112002-04-17 Andrew Cagney <ac131313@redhat.com>
7312
7313 * gdbarch.sh (LANG): Set to ``c''.
7314
36cc83a3 73152002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7316
36cc83a3 7317 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7318
2f4150cc 73192002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7320
7321 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7322 Update copyright.
7323
628703c6 7324 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7325 Also fix PR gdb/391.
361d1df0 7326
56157b4a
AC
73272002-04-14 Andrew Cagney <ac131313@redhat.com>
7328
7329 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7330 * aclocal.m4, configure: Re-generate.
7331 Fix PR gdb/391.
361d1df0 7332
6d1e3329
EZ
73332002-04-14 Elena Zannoni <ezannoni@redhat.com>
7334
7335 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7336 instead of tm_print_insn.
7337
cb06fa07
EZ
73382002-04-14 Elena Zannoni <ezannoni@redhat.com>
7339
7340 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7341
f208ba17
AC
73422002-04-14 Andrew Cagney <ac131313@redhat.com>
7343
7344 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7345 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7346 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7347
20f01a46
DH
73482002-04-12 Don Howard <dhoward@redhat.com>
7349
7350 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7351 max_user_call_depth.
7352 (init_cmd_lists): Initialize the new value;
7353 * cli/cli-script.c (execute_user_command): Limit the call depth of
7354 user defined commands. This avoids a core-dump when user commands
7355 are infinitly recursive.
7356
a88376a3
KB
73572002-04-12 Kevin Buettner <kevinb@redhat.com>
7358
7359 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7360 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7361 from tdep struct instead of DEFAULT_LR_SAVE.
7362 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7363 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7364 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7365
f2172603
MS
73662002-04-12 Michael Snyder <msnyder@redhat.com>
7367
694f61fb 7368 * Remote.c: Spelling fix.
20fe79c8
MS
7369 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7370 If no symbol found for "sbrk", try "_sbrk".
7371 (make_output_phdrs): Use bfd_section_name.
7372 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7373 * eval.c: Indentation fix-ups.
169a7369
MS
7374 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7375 in case it gets applied to an address that is already
7376 in the instruction space.
de74f71f
MS
7377 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7378 * symfile.c: Fix indentation, long lines.
f2172603
MS
7379 * source.c: White space fix-up.
7380
cda5a58a
AC
73812002-04-12 Andrew Cagney <cagney@redhat.com>
7382
7383 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7384 * frame.c (frame_register_read): New function. Return non-zero on
7385 success.
7386 (read_relative_register_raw_bytes_for_frame): Delete.
7387 (read_relative_register_raw_bytes): Delete.
7388 * frame.h (frame_register_read): Declare.
7389 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7390 * sh-tdep.c: Ditto.
7391 * infcmd.c (do_registers_info): Ditto.
7392 * hppa-tdep.c: Ditto.
7393 * rs6000-tdep.c: Ditto.
7394 * h8500-tdep.c: Ditto.
7395 * mips-tdep.c: Ditto.
7396 * h8300-tdep.c: Ditto.
7397 * z8k-tdep.c: Ditto.
7398
2ea5f656
KB
73992002-04-12 Kevin Buettner <kevinb@redhat.com>
7400
7401 From Jimi X <jimix@watson.ibm.com>:
7402 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7403 64-bit SysV ABI.
7404
27b15785
KB
74052002-04-12 Kevin Buettner <kevinb@redhat.com>
7406
7407 From Jimi X <jimix@watson.ibm.com>:
7408 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7409 bfd info.
7410
5d57ee30
KB
74112002-04-12 Kevin Buettner <kevinb@redhat.com>
7412
7413 From Jimi X <jimix@watson.ibm.com>:
7414 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7415 register sets for these processor variants.
7416
bc1e36ca
DJ
74172002-04-11 Daniel Jacobowitz <drow@mvista.com>
7418
bc1e36ca
DJ
7419 * regformats/reg-ppc.dat: Support FPSCR.
7420
e3f36dbd
KB
74212002-04-11 Kevin Buettner <kevinb@redhat.com>
7422
7423 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7424 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7425 Add fpscr as an invalid/unfetchable register.
7426 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7427 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7428 (fill_fpregset): Add support for register fpscr.
7429 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7430 (fill_gregset): Account for the fact that register ``mq'' might
7431 not exist.
7432 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7433 (registers_power): Add fpscr to register set at slot 71.
7434 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7435 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7436
943c9c25
MS
74372002-04-11 Michael Snyder <msnyder@redhat.com>
7438
7439 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7440 * configure: Regenerate.
7441 * config.in: Regenerate.
7442 * acconfig.h: Add define for _SYSCALL32.
7443 * core-sol2.c: Remove #define _SYSCALL32.
7444 * solib-legacy.c: Remove #define _SYSCALL32.
7445
d8c0a2e7
AC
74462002-04-10 Andrew Cagney <ac131313@redhat.com>
7447
7448 * stack.c (select_frame): Cleanup internal error message, do not
7449 use %p.
7450
7cc19214
AC
74512002-04-10 Andrew Cagney <ac131313@redhat.com>
7452
7453 * stack.c (select_frame): Check that selected_frame and the
7454 specified level are as expected.
7455 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7456 Update copyright.
7457 * frame.h (struct frame_info): Add field `level'. Update
7458 copyright.
7459 Work-in-progress PR gdb/464.
7460
67a2b77e
AC
74612002-04-10 Andrew Cagney <ac131313@redhat.com>
7462
7463 * maint.c (maint_print_section_info): Rename print_section_info.
7464 (print_bfd_section_info, print_objfile_section_info): Update.
7465 * inferior.h (struct gdbarch): Add opaque declaration.
7466 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7467 * gdbarch.h: Regenerate.
7468
8cfda98c
ML
74692002-04-10 Michal Ludvig <mludvig@suse.cz>
7470
7471 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7472 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7473 (kernel_u_size): Added.
7474 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7475 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7476
ca439ad2 74772002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7478
ca439ad2
JI
7479 * valarith.c (find_size_for_pointer_math): New function, either returns
7480 the size for a pointer's target, returns 1 for void *, or errors for
7481 incomplete types.
7482 (value_add, value_sub): use find_size_for_pointer_math.
7483
2f2893d9
DJ
74842002-04-09 Daniel Jacobowitz <drow@mvista.com>
7485
7486 * linux-low.c (linux_look_up_symbols): New hook.
7487 (linux_target_ops): Add linux_look_up_symbols.
7488 * remote-utils.c (decode_address): New function.
7489 (look_up_one_symbol): New function.
7490 * server.c (handle_query): Call target look_up_symbols hook.
7491 * server.h (look_up_one_symbol): Add prototype.
7492 * target.h (struct target_ops): Add look_up_symbols hook.
7493
96cb11df
AC
74942002-04-09 Andrew Cagney <ac131313@redhat.com>
7495
7496 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7497 override FP_REGNUM with frame->fp. Update copyright.
7498 * parse.c (num_std_regs, std_regs): Delete.
7499 (target_map_name_to_register): Do not search std_regs. Update
7500 function description.
7501 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7502 declarations. Update copyright.
7503 Fix PR gdb/251.
361d1df0 7504
97658e92
DJ
75052002-04-09 Daniel Jacobowitz <drow@mvista.com>
7506
7507 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7508 after the last symbol in a block.
7509
6044e3eb
PM
75102002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7511
7512 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7513 is non zero as a found symbol.
7514
0406ec40
AC
75152002-04-08 Andrew Cagney <ac131313@redhat.com>
7516
7517 * findvar.c: Include "builtin-regs.h".
7518 (value_of_register): Call value_of_builtin_reg when applicable.
7519 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7520 (target_map_name_to_register): Call
7521 builtin_reg_map_name_to_regnum.
7522 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7523 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7524 (builtin_regs_h): Define.
7525 (builtin-regs.o): New target.
7526 (findvar.o): Add $(builtin_regs_h).
7527 * builtin-regs.c, builtin-regs.h: New files.
7528 * std-regs.c: New file.
7529 Partial fix for PR gdb/251.
7530
56a6dfb9
KB
75312002-04-08 Kevin Buettner <kevinb@redhat.com>
7532
7533 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7534 it's no longer required.
7535
3a808432
AC
75362002-04-08 Andrew Cagney <ac131313@redhat.com>
7537
7538 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7539
7c40d541
KB
75402002-04-08 Kevin Buettner <kevinb@redhat.com>
7541
7542 From Jimi X <jimix@watson.ibm.com>:
7543 * rs6000-tdep.c (rs6000_software_single_step): Use
7544 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7545 and size. Use target_insert_breakpoint() and
7546 target_remove_breakpoint() to insert and remove breakpoints
7547 instead of explicit memory reads and writes.
7548
cc9836a8
KB
75492002-04-08 Kevin Buettner <kevinb@redhat.com>
7550
7551 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7552 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7553 ELF_OBJECT_FORMAT ifdef.
7554
7495d1dc
KB
75552002-04-08 Kevin Buettner <kevinb@redhat.com>
7556
7557 From Jimi X <jimix@watson.ibm.com>:
7558 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7559
4288e836
KB
75602002-04-08 Kevin Buettner <kevinb@redhat.com>
7561
7562 From Jimi X <jimix@watson.ibm.com>:
7563 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7564 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7565
a4e4e501
MK
75662002-04-07 Mark Kettenis <kettenis@gnu.org>
7567
7568 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7569 s/asprintf/xasprintf/.
7570 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7571
006defba
AC
75722002-04-07 Andrew Cagney <ac131313@redhat.com>
7573
7574 I believe Jeff Law denies responsability for this one:
7575 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7576 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7577 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7578 Work-around for PR gdb/366.
7579
7aa83cac
EZ
75802002-04-07 Elena Zannoni <ezannoni@redhat.com>
7581
7582 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7583 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7584 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7585
cf1fcca1
EZ
75862002-04-07 Elena Zannoni <ezannoni@redhat.com>
7587
7588 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7589 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7590 information.
7591
3f289e6f
AC
75922002-04-07 Andrew Cagney <ac131313@redhat.com>
7593
7594 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7595 maintainer.
7596
129188f6
AC
75972002-04-07 Andrew Cagney <ac131313@redhat.com>
7598
7599 * README (Reporting Bugs in GDB): Document the bug web page as the
7600 prefered way of submitting bugs.
7601 Fix PR gdb/402.
7602
1200cd6e
AC
76032002-04-06 Andrew Cagney <ac131313@redhat.com>
7604
7605 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7606 -1. Update comment.
7607 * gdbarch.h, gdbarch.c: Re-generate.
7608
2853c33c
AS
76092002-04-07 Andreas Schwab <schwab@suse.de>
7610
7611 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7612 buffer to regcache_collect.
7613
c2169756
AC
76142002-04-06 Andrew Cagney <ac131313@redhat.com>
7615
7616 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7617 * gdbarch.c, gdbarch.h: Re-generate.
7618
25f1b008
AC
76192002-04-06 Andrew Cagney <ac131313@redhat.com>
7620
7621 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7622 declaration. Fix -Werror.
7623
59263426
DJ
76242002-04-05 Daniel Jacobowitz <drow@mvista.com>
7625
7626 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7627 * gdbarch.c: Regenerate.
7628
f5db4da3
MS
76292002-04-05 Michael Snyder <msnyder@redhat.com>
7630
80f8a6eb
MS
7631 * breakpoint.c (clear_command): Rewrite middle section to
7632 combine two loops with identical control conditions.
7633 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7634 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7635
ad3dcc5c
L
76362002-04-05 H.J. Lu (hjl@gnu.org)
7637
7638 * solib-svr4.c (bkpt_names): Add "__start".
7639
f32e7a74
AC
76402002-04-04 Andrew Cagney <ac131313@redhat.com>
7641
7642 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7643 as test for 64 bit target.
7644
8227c0ff
AC
76452002-04-05 Andrew Cagney <ac131313@redhat.com>
7646
7647 * h8500-tdep.c (h8500_write_fp): Delete function.
7648 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7649 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7650 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7652 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7653 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7654 (s390_write_fp):
7655 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7656 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7657 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7658 (d10v_write_fp): Delete function.
7659 * inferior.h (write_fp, generic_target_write_fp): Delete
7660 declarations.
7661 * regcache.c (generic_target_write_fp): Delete function.
7662 (write_fp): Delete function.
7663 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7664 * gdbarch.h, gdbarch.c: Regenerate.
7665 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7666 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7667 (sparc64_write_fp): Delete declaration.
7668 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7669 (h8500_write_fp): Delete declaration.
7670
2757dd86
AC
76712002-04-04 Andrew Cagney <ac131313@redhat.com>
7672
7673 * sparc-tdep.c (sparc64_write_fp): Delete.
7674 (sparc_push_dummy_frame): Replace write_fp call with code to store
7675 the FP directly.
7676 (sparc_gdbarch_init): Do not initialize write_fp.
7677
c69255e1
KB
76782002-04-05 Kevin Buettner <kevinb@redhat.com>
7679
7680 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7681 clause.
7682
ae767bfb
JB
76832002-03-29 Jim Blandy <jimb@redhat.com>
7684
7685 * stack.c (get_selected_block): Add new argument `addr_in_block',
7686 used to return the exact code address we used to select the block,
7687 not just the block.
7688 * blockframe.c (get_frame_block, get_current_block): Same.
7689 * frame.h (get_frame_block, get_current_block,
7690 get_selected_block): Update declarations.
7691 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7692 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7693
84d2ac95
MS
76942002-04-05 Michael Snyder <msnyder@redhat.com>
7695
7696 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7697 warning message.
7698
596aa3bf
JB
76992002-04-05 J. Brobecker <brobecker@gnat.com>
7700
7701 * utils.c (xfullpath): New function.
7702 * defs.h (xfullpath): Add declaration.
7703 * source.c (openp): Use xfullpath in place of gdb_realpath to
7704 avoid resolving the basename part of filenames when the
7705 associated file is a symbolic link. This fixes a potential
7706 inconsistency between the filenames known to GDB and the
7707 filenames it prints in the annotations.
7708 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7709 to be able to match a filename with either the real filename, or
7710 the name of any symbolic link to this file.
7711 (lookup_partial_symtab): Ditto.
7712
c02f5703
MS
77132002-04-04 Michael Snyder <msnyder@redhat.com>
7714
7715 * breakpoint.c: Add support for hardware breakpoints in overlays.
7716 (overlay_events_enabled): New state variable.
7717 (insert_breakpoints): Use overlay_events_enabled to decide
7718 whether to attempt to set a breakpoint at the overlay load addr.
7719 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7720 (remove_breakpoint): Use overlay_events_enabled to decide
7721 whether breakpoints need to be removed from overlay load addr.
7722 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7723 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 7724 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
7725 disable_overlay_breakpoints): Update overlay_events_enabled.
7726
5fb290d7
DJ
77272002-04-04 Daniel Jacobowitz <drow@mvista.com>
7728
7729 * dwarf2read.c (struct function_range): New.
7730 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7731 (check_cu_functions): New.
7732 (read_file_scope): Initialize global function lists.
7733 Call dwarf_decode_line after processing children.
7734 (read_func_scope): Add to global function list.
7735 (dwarf_decode_lines): Call check_cu_functions everywhere
7736 record_line is called. Call record_line with a linenumber
7737 of 0 to mark sequence ends.
7738
7b3fabf0
ML
77392002-04-04 Michal Ludvig <mludvig@suse.cz>
7740
361d1df0 7741 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
7742 change sync with glibc.
7743
bce58c09
JB
77442002-04-03 Jim Blandy <jimb@redhat.com>
7745
7746 * configure.in: Call AC_C_INLINE.
7747 * configure: Regenerated.
361d1df0 7748
2fccf04a
DJ
77492002-04-01 Daniel Jacobowitz <drow@mvista.com>
7750
7751 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7752 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7753
2d1bfe2e
MK
77542002-03-31 Mark Kettenis <kettenis@gnu.org>
7755
a5941fbf
MK
7756 * NEWS: Mention gcore support on FreeBSD/i386.
7757
a90cd31d
MK
7758 * fbsd-proc.c: New file.
7759 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7760 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7761
2d1bfe2e
MK
7762 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7763 while statement.
7764
9eb6e5a1
JB
77652002-03-29 Jim Blandy <jimb@redhat.com>
7766
7767 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7768 unescaped newlines in string literals, but newer ones don't. So
7769 escape them.
7770
f02df580
MS
77712002-03-26 Michael Snyder <msnyder@redhat.com>
7772 Andrew Cagney <cagney@redhat.com>
7773
361d1df0 7774 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
7775 restore file to memory.
7776 * cli/cli-dump.h: New file.
7777 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 7778 * NEWS: Mention new commands.
f02df580 7779
109f874e
MS
77802002-03-28 Michael Snyder <msnyder@redhat.com>
7781
7782 * symfile.c (symbol_file_add): Move test for null symbols to later.
7783
520f6ade
AC
77842002-03-27 Andrew Cagney <ac131313@redhat.com>
7785
7786 From veksler at il.ibm.com:
7787 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7788 the xstrduped original path.
7789 Fix PR gdb/417.
7790
d4654627
MS
77912002-03-27 Michael Snyder <msnyder@redhat.com>
7792
7793 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7794 * infcmd.c (_initialize_infcmd): Ditto.
7795 * language.c (_initialize_language): Ditto.
7796 * symfile.c (_initialize_symfile): Ditto.
7797 * top.c (_init_main): Ditto.
7798 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7799
6be8bc0c
EZ
78002002-03-27 Elena Zannoni <ezannoni@redhat.com>
7801
7802 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7803 vector registers handling.
7804 (skip_prologue): Handle new AltiVec instructions. Fill in new
7805 fields of frame data.
7806 (frame_get_saved_regs): Fill in information for AltiVec registers.
7807
12af6855
JB
78082002-03-27 Jim Blandy <jimb@redhat.com>
7809
7810 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7811 a function; leave this macro here to invoke that function.
7812 (symbol_init_mangled_name): Declaration for that function.
7813 * symtab.c (symbol_init_mangled_name): New function.
7814
dc672865
AC
78152002-03-27 Andrew Cagney <ac131313@redhat.com>
7816
7817 * valarith.c: Replace strerror with safe_strerror.
7818 * tracepoint.c: Ditto.
7819 * lin-lwp.c: Ditto.
7820 * go32-nat.c: Ditto.
7821 * inflow.c: Ditto.
7822 * gnu-nat.c: Ditto.
7823
d96429cd
AS
78242002-03-27 Andreas Schwab <schwab@suse.de>
7825
7826 * event-top.c (command_line_handler): Remove useless if.
7827
7e336ba1
AJ
78282002-03-27 Andreas Jaeger <aj@suse.de>
7829
7830 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7831 comment.
7832
de220d0f
ML
78332002-03-27 Michal Ludvig <mludvig@suse.cz>
7834
7835 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7836 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7837 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7838 (x86_64_linux_dr_get_status, supply_gregset),
7839 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7840 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7841 (x86_64_register_info_table): Add.
7842 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7843 (x86_64_register_raw_size, x86_64_register_virtual_type),
7844 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7845 general x86_64_register_info_table.
7846 (i386_gdbarch_init): gdbarch_register_bytes is now set
7847 dynamicaly during initialization.
7848 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7849 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 7850
0e98d0a7
DJ
78512002-03-27 Daniel Jacobowitz <drow@mvista.com>
7852
7853 * gdbserver/server.c (main): Call target_signal_to_host_p
7854 and target_signal_to_host on signals received from the remote.
7855 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7856 target_signal_from_host on signals sent to the remote.
7857 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7858 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7859
3130066b
DJ
78602002-03-27 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * signals/signals.c: Include "server.h" in gdbserver build.
7863 (target_signal_from_name): Don't use STREQ.
7864 (_initialize_signals): Likewise. Don't include function in
7865 gdbserver build.
7866
9aedf4f4
DJ
78672002-03-27 Daniel Jacobowitz <drow@mvista.com>
7868
7869 * signals.c: Moved to...
7870 * signals/signals.c: Here.
7e336ba1 7871 * Makefile (signals.o): Update.
9aedf4f4 7872
3fa41cdb
JL
78732002-03-26 Jeff Law (law@redhat.com)
7874
7875 * somread.c (som_symtab_read): Remove some commented out code and
7876 updated related comments. Do not set the minimal symbol table to
7877 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7878 in a dynamic executable.
7879 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7880 where we are unable to find the minimal symbol for the given
7881 PC value.
7882
ee677e8d
MS
78832002-03-25 Jeff Law (law@redhat.com)
7884
7885 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7886
e76e1718
ML
78872002-03-25 Michal Ludvig <mludvig@suse.cz>
7888
7889 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7890
18a642a1
AC
78912002-03-23 Andrew Cagney <ac131313@redhat.com>
7892
7893 * command.h: Update copyright.
7894 (struct cmd_list_element): Replace definition with opaque
7895 declaration.
7896 (enum cmd_types): Document that it will eventually be moved to
7897 cli/cli-decode.h
7898 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7899 (MALLOCED_REPLACEMENT): Delete macro.
7900 * Makefile.in (cli_decode_h): Add $(command_h).
7901 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 7902 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
7903 * completer.c: Include "cli/cli-decode.h".
7904 * maint.c: Include "cli/cli-decode.h".
7905 * cli/cli-decode.h: Include "command.h".
7906 (enum command_class): Delete.
7907 (enum cmd_types): Comment out.
7908 (enum cmd_auto_boolean): Delete.
7909 (enum var_types): Delete.
7910
b2875cc0
AC
79112002-03-23 Andrew Cagney <ac131313@redhat.com>
7912
7913 * cli/cli-decode.c: Include "gdb_assert.h".
7914 (add_set_or_show_cmd): New static function.
7915 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7916 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7917 all fields, such as func, from the set command.
7918
3b45974e
AC
79192002-03-23 Andrew Cagney <ac131313@redhat.com>
7920
7921 * MAINTAINERS (sh-elf): Change warning flag to -w.
7922
823ca731
AC
79232002-03-23 Andrew Cagney <cagney@redhat.com>
7924
7925 * defs.h (error): Add printf format attribute.
7926 * thread-db.c (thread_from_lwp): Fix error format string.
7927 * stack.c (parse_frame_specification): Ditto.
7928 * cli/cli-decode.c (undef_cmd_error): Ditto.
7929 * scm-lang.c (scm_lookup_name): Ditto.
7930 * tracepoint.c (trace_error): Ditto.
7931 * remote-utils.c (usage): Ditto.
7932 * remote.c (compare_sections_command): Ditto.
7933 Fix PR gdb/328.
7934
0e101458
AC
79352002-03-22 Andrew Cagney <ac131313@redhat.com>
7936
7937 * gdbtypes.c (append_composite_type_field): New function.
7938 (init_composite_type): New function.
7939 * gdbtypes.h (append_composite_type_field): Declare.
7940 (init_composite_type): Ditto.
7941
8e0662df
EZ
79422002-03-22 Elena Zannoni <ezannoni@redhat.com>
7943
7944 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 7945 function.
8e0662df
EZ
7946 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7947 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7948 structure returning convention for SYSV ABI case, but not
7949 for GNU/Linux, FreeBSD, or NetBSD.
7950
3121eff0
DJ
79512002-03-22 Daniel Jacobowitz <drow@mvista.com>
7952
7953 * symtab.h (lookup_block_symbol): Add mangled_name argument
7954 to prototype.
7955
7956 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7957 with new mangled_name argument.
7958 * linespec.c (decode_line_1): Likewise.
7959 * valops (value_of_this): Likewise.
7960 * symtab.c (lookup_transparent_type): Likewise.
7961 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7962 (lookup_symbol): If we are given a mangled name, pass it down
7963 to lookup_symbol_aux.
7964 (lookup_block_symbol): If we are given a mangled name to check
7965 against, only return symbols which match it.
7966
349b409f
CF
79672002-03-22 Christopher Faylor <cgf@redhat.com>
7968
7969 * win32-nat.c (child_create_inferior): Check for proper shell to use
7970 here, in case the user changes it on the fly.
7971 (_initialize_inftarg): Remove shell path considerations.
7972
2a873819
EZ
79732002-03-21 Elena Zannoni <ezannoni@redhat.com>
7974
7975 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7976 for gdbarch_max_register_raw_size and max_register_virtual_size.
7977 Adjust copyright year.
7978
a1b9830c
DJ
79792002-03-21 Daniel Jacobowitz <drow@mvista.com>
7980
7981 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7982 in a function to cover the entire beginning of the function
7983 as well if it does not already.
7984
8b5790f2
TR
79852002-03-21 Tom Rix <trix@redhat.com>
7986
7987 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7988 (rs6000_ptrace64): Renamed from ptrace64.
7989
bdbe5747
MH
79902002-03-20 Martin M. Hunt <hunt@redhat.com>
7991
7992 * gdbserver/remote-utils.c (remote_open): Don't call
7993 getprotobyname, we're all using TCP here so just use
7994 IPPROTO_TCP.
7e336ba1 7995 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
7996
79972002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 7998
bdbe5747
MH
7999 * regcache.c (_initialize_regcache): No need to call
8000 build_regcache() at this time; it gets called whenever
8001 the gdbarch changes.
8002
7781cd62
DB
80032002-03-20 David O'Brien <obrien@FreeBSD.org>
8004
8005 * sparc-nat.c: Include sys/param.h where possible.
8006
f65ca430
DJ
80072002-03-20 Daniel Jacobowitz <drow@mvista.com>
8008
8009 Fix PR gdb/422.
8010 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8011 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8012 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8013 complex types.
8014 * stabsread.c (rs6000_builtin_type): Likewise.
8015 (read_sun_floating_type): Likewise.
8016
0c867556
PS
80172002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8018
8019 * stabsread.c (read_member_functions): Remove skip code for duplicate
8020 constructor/destructor methods. Use standard parsing for these
8021 methods and just do not chain them to the list of methods after
8022 parsing.
8023
12b9c64f
AO
80242002-03-19 Alexandre Oliva <aoliva@redhat.com>
8025
8026 * coffread.c: Remove redundant static declarations. Replace
8027 occurrences of `PTR' with `void *'.
8028 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8029 * top.h (quit_cover): Likewise.
8030 * defs.h (catch_errors): Likewise.
8031
349c5d5f
AC
80322002-03-18 Andrew Cagney <ac131313@redhat.com>
8033
8034 * defs.h (XMALLOC): Define.
8035 * gdb-events.sh (XMALLOC): Delete macro.
8036 * gdb-events.c, gdb-events.h: Regenerate.
8037 * gdbarch.sh (XMALLOC): Delete macro.
8038 * gdbarch.c: Regenerate.
8039 * serial.c (XMALLOC): Delete macro.
8040 * ui-file.c (XMALLOC): Ditto.
8041 * ser-unix.h (XMALLOC): Ditto.
8042 * sh-tdep.c (XMALLOC): Ditto.
8043 * ui-out.c (XMALLOC): Ditto.
8044 * utils.c (XMALLOC): Ditto.
8045 * i386-tdep.c (XMALLOC): Ditto.
8046 * gdb-events.c (XMALLOC): Ditto.
8047 * d10v-tdep.c (XMALLOC): Ditto.
8048 * cli-out.c (XMALLOC): Ditto.
8049
8050 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8051 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8052 * ui-file.c, ui-out.c: Ditto.
8053
7d0766f3
AC
80542002-03-18 Andrew Cagney <ac131313@redhat.com>
8055
8056 * command.h (struct cmd_list_element): Add field context.
8057 (set_cmd_context, get_cmd_context): Declare.
8058 * cli/cli-decode.h: Ditto.
8059 * cli/cli-decode.c (get_cmd_context): New function.
8060 (set_cmd_context): New function.
8061 (add_cmd): Initialize context.
8062 Part of fixing PR gdb/145 and PR gdb/146.
8063
5913bcb0
AC
80642002-03-17 Andrew Cagney <ac131313@redhat.com>
8065
1868c04e
AC
8066 * cli/cli-decode.c (cmd_type): New function.
8067 * command.h (cmd_type): Declare.
8068 * infrun.c (set_schedlock_func): Call function cmd_type.
8069 * kod.c (kod_set_os): Call cmd_type.
8070 * cris-tdep.c (cris_version_update): Use function cmd_type.
8071 (cris_mode_update, cris_abi_update): Ditto.
8072
5913bcb0
AC
8073 * command.h: (execute_cmd_post_hook): Declare.
8074 (execute_cmd_pre_hook): Declare.
8075 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8076 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8077 functions. Execute pre/post hook while ensuring that afterwords
8078 hook_in is cleared.
8079 * top.c (execute_command): Use execute_cmd_post_hook, and
8080 execute_cmd_pre_hook to execute pre/post commands.
8081 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8082 hook_stop_stub.
8083 (hook_stop_stub): Call execute_cmd_pre_hook.
8084
b51450c9
AC
80852002-03-17 Andrew Cagney <ac131313@redhat.com>
8086
8087 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8088 set'' and this leads to a core dump. Move xstrdup of
8089 operating_system to after check that it is not NULL.
8090
f66c9f11
AC
80912002-03-17 Andrew Cagney <ac131313@redhat.com>
8092
8e694ecf
AC
8093 * kod.c (kod_set_os): Remove unnecessary check that
8094 ``command->type'' is set_cmd.
8095
f66c9f11
AC
8096 * valprint.c (set_input_radix): Use input_radix.
8097 (set_output_radix): Use output_radix.
8098 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8099 isn't reverted.
8100
9d01611c
AC
81012002-03-16 Andrew Cagney <ac131313@redhat.com>
8102
8103 * value.h (struct value): Delete field ``substring_addr''. Change
8104 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8105 force_core_addr_align and force_pointer_aligh.
8106
8107 * value.h (struct value): Fix typo in above change.
9d01611c 8108
4156bb53
PS
81092002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8110
8111 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8112 to fix internal_error from ``maintenance print architecture''.
8113
0e5e3ea6
PS
81142002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8115
8116 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8117 for gcc versions after gcc-2.8.1.
8118
9b013045
PS
81192002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8120
8121 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8122 for method resolution. Restore adjustment of ``this'' pointer after
8123 calling value_struct_elt, which was accidentally removed during the
8124 HP merge.
8125
376c9600
AC
81262002-03-15 Andrew Cagney <ac131313@redhat.com>
8127
8128 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8129 value_of_register.
8130 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8131 get_saved_register.
8132 * value.h (value_of_register): Update.
8133
a4db0f07
RH
81342002-03-14 Richard Henderson <rth@redhat.com>
8135
8136 * configure.in: Detect declaration for canonicalize_file_name.
8137 * utils.c (canonicalize_file_name): Declare, if needed.
8138 (gdb_realpath): Prefer realpath if available and usable.
8139 * config.in, configure: Rebuild.
8140
96383835
RH
81412002-03-14 Richard Henderson <rth@redhat.com>
8142
8143 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8144 a constant array bound.
8145
8146 * MAINTAINERS: Add myself to write-after-approval.
8147
75245b24
MS
81482002-03-14 Michael Snyder <msnyder@redhat.com>
8149
8150 * symfile.c (syms_from_objfile): Return immediately if no syms.
8151 (symbol_file_add): Return immediately if no syms.
8152 (find_sym_fns): Return immediately if no syms.
8153
e641a1ca
ML
81542002-03-13 Michal Ludvig <mludvig@suse.cz>
8155
8156 * gdbserver/remote-util.c (remote_open): Print remote-side's
8157 IP address when remote debugging over the network.
7e336ba1 8158
df08bfec
DB
81592002-03-12 David O'Brien <obrien@FreeBSD.org>
8160
8161 * config/sparc/fbsd.mh: Fix copyright.
8162 * config/sparc/fbsd.mt: Likewise.
8163
9a57864f
RE
81642002-03-11 Richard Earnshaw <rearnsha@arm.com>
8165
8166 * MAINTAINERS: Fix typo in name of gdb warnings option.
8167 (x86-64): Fix formating so that this can be parsed by awk.
8168
dd7bf85e
DJ
81692002-03-10 Daniel Jacobowitz <drow@mvista.com>
8170
8171 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8172 * defs.h: Include "gdb/signals.h".
8173 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8174
33a0a2ac
ML
81752002-03-10 Michal Ludvig <mludvig@suse.cz>
8176
8177 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8178 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8179 from x86-64-tdep.h
8180
dd824b04
DJ
81812002-03-10 Daniel Jacobowitz <drow@mvista.com>
8182 Don Howard <dhoward@redhat.com>
8183
8184 * mips-tdep.c (ST0_FR): Define.
8185 (mips2_fp_compat): New function, temporarily disabled.
8186 (mips_read_fp_register_single): New function.
8187 (mips_read_fp_register_double): New function.
8188 (mips_print_register): Use them.
8189 (do_fp_register_row): Likewise.
8190
6a41ff59
AC
81912002-03-09 Andrew Cagney <ac131313@redhat.com>
8192
8193 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8194 approval''.
8195
4ea09c10
PS
81962002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8197
8198 * stabsread.c (read_member_functions): Fix is_stub test for
8199 static member functions, improve comment.
8200
6ccc741d
RE
82012002-03-07 Richard Earnshaw <rearnsha@arm.com>
8202
8203 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8204 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8205 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8206 commands that set boolean values.
8207 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8208 (arm_rdi_resume): Always initialize PC.
8209 (arm_rdi_open): Don't use rslt as a boolean.
8210 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8211 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8212 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8213 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8214
438013df
AO
82152002-03-06 Alexandre Oliva <aoliva@redhat.com>
8216
8217 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8218 * configure: Rebuilt.
8219
70ed8774
SC
82202002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8221
8222 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8223 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8224
5ba2abeb
AC
82252002-03-06 Andrew Cagney <ac131313@redhat.com>
8226
8227 * cli/cli-decode.c (set_cmd_completer): New function.
8228 * command.h (set_cmd_completer): Declare.
8229 * cli/cli-decode.h (set_cmd_completer): Ditto.
8230
8231 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8232 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8233 * win32-nat.c (_initialize_inftarg): Ditto.
8234 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8235 * proc-api.c (_initialize_proc_api): Ditto.
8236 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8237 * source.c (_initialize_source): Ditto.
8238 * exec.c (_initialize_exec): Ditto.
8239 * solib.c (_initialize_solib): Ditto.
8240 * top.c (init_main): Ditto.
8241 * tracepoint.c (_initialize_tracepoint): Ditto.
8242 * symfile.c (_initialize_symfile): Ditto.
8243 * printcmd.c (_initialize_printcmd): Ditto.
8244 * infcmd.c (_initialize_infcmd): Ditto.
8245 * corefile.c (_initialize_core): Ditto.
8246
f779ca99
AC
82472002-03-05 Andrew Cagney <ac131313@redhat.com>
8248
8249 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8250
01a3934b
AC
82512002-03-05 Andrew Cagney <ac131313@redhat.com>
8252
8253 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8254
37057839
AC
82552002-03-05 Andrew Cagney <ac131313@redhat.com>
8256
8257 * NEWS: Update headings, 5.2 has branched.
8258
c6ecbae5
DJ
82592002-03-04 Daniel Jacobowitz <drow@mvista.com>
8260
8261 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8262 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8263 (register_addr, REGISTER_RAW_SIZE): Likewise.
8264 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8265 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8266
e9f30c21
ML
82672002-03-03 Michal Ludvig <mludvig@suse.cz>
8268
8269 * MAINTAINERS (x86-64): Add myself.
8270 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8271 changed value_ptr -> struct value *
8272
54394ac3
DB
82732002-03-01 David O'Brien <obrien@FreeBSD.org>
8274
8275 * configure.host (sparc64-*-freebsd): Add.
8276 * configure.tgt: Likewise.
8277 * config/sparc/fbsd.mh: New file.
8278 * config/sparc/fbsd.mt: Likewise.
8279 * config/sparc/nm-fbsd.h: Likewise.
8280 * config/sparc/tm-fbsd.h: Likewise.
8281
bfe95955
DJ
82822002-03-01 Daniel Jacobowitz <drow@mvista.com>
8283
8284 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8285 regformats/reg-s390x.dat.
8286
f33c6cbf
AC
82872002-03-01 Andrew Cagney <ac131313@redhat.com>
8288
8289 * utils.c: Add FIXME explaining true/false problem.
8290
5ecaa7dd
AC
82912002-02-28 Andrew Cagney <ac131313@redhat.com>
8292
8293 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8294
2a251cc2
MC
82952002-02-28 Michael Chastain <mec@shout.net>
8296
8297 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8298
6a8031a3 82992002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8300
8301 * gdbserver/linux-s390-low.c: New file.
8302 * regformats/reg-s390.dat: New file.
8303 * regformats/reg-s390x.dat: New file.
8304 * gdbserver/configure.srv: Add S/390.
8305 * gdbserver/Makefile.in: Add S/390.
8306 * configure.tgt: Enable gdbserver for S/390.
8307
ac469903
EZ
83082002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8309
8310 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8311 first line of the doc string for "info dos", except at the end of
8312 the sentence, since the short help stops at the first period.
8313
985cb1a3
JM
83142002-02-28 Jason Merrill <jason@redhat.com>
8315
8316 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8317
c570663e
FF
83182002-02-27 Fred Fish <fnf@redhat.com>
8319
8320 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8321 comment (dumy -> dummy).
8322
43630227
PS
83232002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8324
8325 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8326
b84911e8
RB
83272002-02-27 Rodney Brown <rbrown64@csc.com.au>
8328
8329 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8330
58caa3dc
DJ
83312002-02-27 Daniel Jacobowitz <drow@mvista.com>
8332
8333 * gdbserver/acconfig.h: New file.
8334 * gdbserver/i387-fp.c: New file.
8335 * gdbserver/i387-fp.h: New file.
8336 * gdbserver/linux-x86-64.c: New file.
8337 * regformats/reg-x86-64.dat: New file.
8338 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8339 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8340 * gdbserver/configure.in: Add support for regsets.
8341 * gdbserver/config.in: Regenerate.
8342 * gdbserver/configure: Regenerate.
8343 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8344 * gdbserver/linux-low.h: New file.
8345 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8346 for regsets.
8347 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8348 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8349 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8350 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8351 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8352 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8353 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8354 "i387-fp.h". Add PTRACE_GETREGS and friends.
8355 * gdbserver/regcache.c (supply_register): New function.
8356 (supply_register_by_name): New function.
8357 (collect_register): New function.
8358 (collect_register_by_name): New function.
8359
93652174
DJ
83602002-02-27 Daniel Jacobowitz <drow@mvista.com>
8361
8362 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8363 (config.status): Add configure.srv dependency.
8364 (server_h): Add config.h dependency.
8365
a02e4a61
DJ
83662002-02-27 Daniel Jacobowitz <drow@mvista.com>
8367
8368 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8369 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8370 * gdbserver/configure.srv: Change i386-*-linux* to use
8371 reg-i386-linux.o.
8372
ce0eebec
AC
83732002-02-26 Andrew Cagney <ac131313@redhat.com>
8374
8375 * x86-64-tdep.c: Re-indent. Update copyright date.
8376
82dbc5f7
AC
83772002-02-26 Andrew Cagney <ac131313@redhat.com>
8378
8379 From Michal Ludvig <mludvig@suse.cz>:
8380 * x86-64-tdep.c (value.h): Delete.
8381 (gdb_assert.h): Include.
8382 (x86_64_register_convert_to_virtual,
8383 x86_64_register_convert_to_raw ): Add check which lets only
8384 floating-point values to be converted.
8385 (value_push): Delete.
8386 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8387 (i386_gdbarch_init): Number of register_bytes fixed.
8388
e4621584
AC
83892002-02-26 Andrew Cagney <ac131313@redhat.com>
8390
8391 * MAINTAINERS: Add x86-64 target.
8392
81a9a963
AC
83932002-02-26 Andrew Cagney <ac131313@redhat.com>
8394
8395 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8396 * osfsolib.c (solib_map_sections): Ditto.
8397 * irix5-nat.c (solib_map_sections): Ditto.
8398 * corelow.c (gdb_check_format): Ditto.
8399 * symfile.c (symfile_bfd_open): Ditto.
8400 * solib.c (solib_map_sections): Ditto.
8401 Fix PR gdb/354.
7e336ba1 8402
0f017ab9
AC
84032002-02-26 Andrew Cagney <ac131313@redhat.com>
8404
8405 * remote.c (_initialize_remote): By default, disable ``e'' and
8406 ``E'' step out-of-range packets.
8407
75738c29
AS
84082002-02-26 Andreas Schwab <schwab@suse.de>
8409
8410 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8411 m68k_linux_frame_saved_pc.
8412 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8413 in_sigtramp.
8414 (SIGCONTEXT_PC_OFFSET): Remove.
8415 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8416 m68k_linux_sigtramp_saved_pc): New functions.
8417 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8418 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8419 (UCONTEXT_PC_OFFSET): Define.
8420 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8421 non-RT and RT signal trampolines.
8422
7e8ed687
RE
84232002-02-26 Richard Earnshaw <rearnsha@arm.com>
8424
8425 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8426 (TARGET_NBPG, STACK_END_ADDR): Delete
8427 (VARIABLES_INSIDE_BLOCK): Delete.
8428
6972bc8b
AC
84292002-02-25 Andrew Cagney <ac131313@redhat.com>
8430
8431 * utils.c (perror_with_name): Make string parameter constant.
8432 (print_sys_errmsg): Ditto.
8433 (query): Ditto.
8434 * defs.h (perror_with_name): Update.
8435 (print_sys_errmsg): Update.
8436 (query): Update.
8437
aa32f823
DJ
84382002-02-25 Daniel Jacobowitz <drow@mvista.com>
8439
8440 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8441 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8442
19caaa45
PS
84432002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8444
8445 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8446 if it already matches the current architecture from the exec file.
8447 Include arch-utils.h for gdbarch_info_init prototype.
8448 * Makefile.in (rs6000-nat.o): Update dependencies.
8449
d951901f
EZ
84502002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8451
8452 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8453 list of exported variables.
8454
7ea81414
DJ
84552002-02-24 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * gdbserver/configure.srv: New file.
8458 * gdbserver/configure.in: Use configure.srv instead
8459 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8460 from it.
8461 * gdbserver/configure: Regenerated.
8462 * gdbserver/terminal.h: New file.
8463 * gdbserver/Makefile.in: Update for configure changes. Remove
8464 more unneeded include paths.
8465
080fe24b
AC
84662002-02-24 Andrew Cagney <ac131313@redhat.com>
8467
8468 From wiz at danbala:
8469 * config/sparc/tm-sp64.h: Fix grammar and typos.
8470 Fix PR gdb/287.
8471
8605d56e
AC
84722002-02-24 Andrew Cagney <ac131313@redhat.com>
8473
8474 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8475 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8476 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8477 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8478 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8479 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8480 * s390-tdep.c: Ditto.
92362027
AC
8481 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8482 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8483 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8484 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8485 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8486 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8487 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8488 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8489 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8490 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8491 Fix PR gdb/378.
7e336ba1 8492
8ed32cc0
AC
84932002-02-23 Andrew Cagney <ac131313@redhat.com>
8494
a3007b6f
AC
8495 * lin-thread.c: Delete file.
8496 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8497 to gdb_proc_service.h.
8498 * configure: Re-generate.
8499
50a9e2f1
AC
8500 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8501 * serial.c (serial_open): Delete check for "ocd".
8502 Fix PR gdb/349.
8503
8b6e7932
AC
8504 * Makefile.in (linux-thread.o): Delete target.
8505 * linux-thread.c: Delete file.
8506
d155c46b
AC
8507 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8508 renamed SH files to be consistent.
8509
8ed32cc0
AC
8510 * symtab.c (sort_search_symbols): Use xfree.
8511
0e18d038
RE
85122002-02-23 Richard Earnshaw <rearnsha@arm.com>
8513
8514 * arm-linux-tdep.c (arm_linux_init_abi): Register
8515 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8516 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8517 definition with undef, since we don't want the sysvr4 definition.
8518 (SKIP_TRAMPOLINE_CODE): Likewise.
8519
27aac7ff
AC
85202002-02-23 Andrew Cagney <ac131313@redhat.com>
8521
8522 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8523
8524 * configure.in: (AC_CHECK_FUNCS) Added test for
8525 canonicalize_file_name Regenerated.
8526 * config.in, configure: Regenerated.
8527 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8528 defined use canonicalize_file_name.
7e336ba1 8529
65a6e0ee
MC
85302002-02-23 Michael Chastain <mec@shout.net>
8531
8532 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8533
47b95330
AC
85342002-02-23 Andrew Cagney <ac131313@redhat.com>
8535
8536 * README: Remove references to cygnus.com.
8537 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8538 dot com'' form. Remove references to cygnus.com and sourceware.
8539
696f451b
AC
85402002-02-23 Andrew Cagney <ac131313@redhat.com>
8541
8542 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8543 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8544 1003.1-2001 no longer allows "head -1".
8545 * gdb/Makefile.in (version.c): Likewise.
8546 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8547 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8548 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8549
bbaca940
AC
85502002-02-23 Andrew Cagney <ac131313@redhat.com>
8551
8552 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8553 * command.h (cmd_cfunc_eq): Declare.
8554 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8555
8556 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8557 ``struct cmd_list_element *''.
8558 * cli/cli-cmds.c (is_complete_command): Update. Use
8559 cmd_cfunc_eq.
8560 * top.c (execute_command): Pass the command to
8561 is_complete_command.
8562 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8563
b8b8b047
AC
85642002-02-23 Andrew Cagney <ac131313@redhat.com>
8565
8566 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8567 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8568 architecture defines.
8569 * s390-tdep.c (s390_gdbarch_init): Likewise.
8570
19d3fc80
RE
85712002-02-23 Richard Earnshaw <rearnsha@arm.com>
8572
8573 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8574 (arm_linux_push_arguments): Likewise.
8575 (arm_linux_init_abi): Register them. Also register linux-specific
8576 call_dummy_words.
8577 (find_minsym_and_objfile): Use strcmp, not STREQ.
8578 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8579 (arm_linux_call_dummy_words): Delete declaration.
8580 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8581 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8582 declarations.
8583 (LOWEST_PC): Delete.
8584
3ab13650
PS
85852002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8586
8587 * maint.c (print_section_info): Do not prepend `0x' to filepos
8588 output, it will be handled by local_hex_string_custom.
8589
19d3fc80 85902002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8591
8592 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8593 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8594 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8595
d85a5daf
JB
85962002-02-22 Jim Blandy <jimb@redhat.com>
8597
8598 Indicate that the bcache functions don't change the strings
8599 they're passed.
8600 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8601 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8602
eeb25b8a
PM
86032002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8604
8605 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8606
6badb179
CF
86072002-02-21 Christopher Faylor <cgf@redhat.com>
8608
8609 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8610 find the complete path to a loaded DLL.
8611
e8717518
FF
86122002-02-21 Fred Fish <fnf@redhat.com>
8613
8614 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8615 that marks the end of the range of a function, enter a line number
8616 entry that has a line number of zero and a PC offset that matches
8617 the end of the function. This starts a range of PC's for which no
8618 line number information is known.
8619 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8620 PC's for which no line number info is found (line number is zero)
8621 then we didn't find any valid line information.
8622 * symtab.h: Document use of zero line number entry.
8623
9abe5450
EZ
86242002-02-21 Elena Zannoni <ezannoni@redhat.com>
8625
8626 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8627 (have_ptrace_getvrregs): Define for run time checks.
8628 (gdb_vrregset_t): New type for Altivec register handling.
8629 (fetch_register, store_register): Fetch/store altivec register
8630 when needed.
8631 (fetch_altivec_register, store_altivec_register): New functions.
8632 (supply_vrregset, fill_vrregset): New functions.
8633 (fetch_altivec_registers, store_altivec_registers): New functions.
8634 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8635 registers as well.
8636
aaa38bb5
AJ
86372002-02-21 Jiri Smid <smid@suse.cz>
8638
8639 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8640
b34db576
RE
86412002-02-21 Richard Earnshaw <rearnsha@arm.com>
8642
8643 * Makefile.in (armnbsd-nat.o): Update dependencies.
8644 * armnbsd-nat.c (supply_gregset): New function. Common code to
8645 supply the integer register set.
8646 (supply_fparegset): New function. Similar for FPA registers.
8647 (fetch_regs, fetch_fp_regs): Use them.
8648 (fetch_core_registers): Likewise.
8649 (fetch_elfcore_registers): New function.
8650 (arm_netbsd_elfcore_fns): New core-file type specification.
8651 (_initialize_arm_netbsd_nat): Register it.
8652
3e56fc4b
RE
86532002-02-21 Richard Earnshaw <rearnsha@arm.com>
8654
8655 * armnbsd-nat.c: Include gdbcore.h.
8656 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8657 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8658 'void' to declaration, to shut up ARI.
8659 (fetch_core_registers): Make static. Rewrite using supply_register.
8660 (arm_netbsd_core_fns): New core-file type specification.
8661 (_initialize_arm_netbsd_nat): New function.
8662
097f6b0b
CF
86632002-02-21 Christopher Faylor <cgf@redhat.com>
8664
8665 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8666 value.
8667
c914e0cc
CF
86682002-02-20 Christopher Faylor <cgf@redhat.com>
8669
8670 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8671 fails.
8672
385fa495
DJ
86732002-02-20 Daniel Jacobowitz <drow@mvista.com>
8674
8675 * jv-exp.y (parse_number): Change type of implicit longs
8676 to builtin_type_uint64.
8677
e5f1222d
DJ
86782002-02-20 Daniel Jacobowitz <drow@mvista.com>
8679
8680 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8681 to be an integer instead of a `union wait'.
8682
75c9abc6
DJ
86832002-02-20 Daniel Jacobowitz <drow@mvista.com>
8684
8685 * mips-linux-nat.c: Call the operating system GNU/Linux.
8686 * mips-linux-tdep.c: Likewise.
8687 * mips-tdep.c: Likewise.
8688
551792a5
DJ
86892002-02-20 Daniel Jacobowitz <drow@mvista.com>
8690
8691 Fix PR gdb/265.
8692 * jv-exp.y (parse_number): Handle 64-bit integers.
8693
ee6e2b82
DJ
86942002-02-20 Daniel Jacobowitz <drow@mvista.com>
8695
8696 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8697 AC_STDC_HEADERS to AC_HEADER_STDC.
8698 * gdbserver/configure: Regenerated.
8699
a48442a0
RE
87002002-02-20 Richard Earnshaw <rearnsha@arm.com>
8701
8702 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8703 is defined.
8704 * sparc-tdep.c (get_longjmp_target): Likewise.
8705
fe419ffc
RE
87062002-02-20 Richard Earnshaw <rearnsha@arm.com>
8707
8708 * News: Add news about ARM and Multi-arch. Mention the new target
8709 arm*-*-netbsd*.
8710
5832ed7e
JB
87112002-02-19 Jim Blandy <jimb@redhat.com>
8712
8713 * stabsread.c (error_type_complaint): Improve error message.
8714
84563040
DJ
87152002-02-19 Daniel Jacobowitz <drow@mvista.com>
8716
8717 * gdbserver/README: Update documentation.
8718 * gdbserver/configure.in: Update configury to match documentation.
8719 * gdbserver/Makefile.in: Likewise.
8720 * gdbserver/configure: Regenerated.
8721 * gdbserver/aclocal.m4: New file, generated by aclocal.
8722 * gdbserver/config.in: New file, generated by autoheader.
8723
375fd65b
RE
87242002-02-19 Richard Earnshaw <rearnsha@arm.com>
8725
8726 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8727 armnbsd-nat.c.
8728
08216dd7
RE
87292002-02-19 Richard Earnshaw <rearnsha@arm.com>
8730
8731 * arm-tdep.h (enum arm_float_model): New enum.
8732 (struct gdbarch_tdep): Add fp_model.
8733 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8734 up floating-point conversions until we know the floating-point model
8735 in use by the inferior. Don't complain about being unable to
8736 determine the ABI of the inferior when we don't have one.
8737 (arm_extract_return_value): Support different floating-point models.
8738 (arm_store_return_value): Likewise.
aaa38bb5 8739 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
8740 ARM_FLOAT_SOFT.
8741 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8742
65d6d66a
PS
87432002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8744
8745 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8746 of ``current_gdbarch''.
8747
47221191
RE
87482002-02-19 Richard Earnshaw <rearnsha@arm.com>
8749
8750 * armnbsd-nat.c : ANSIfy all function declarations.
8751 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8752 (fetch_inferior_registers): Re-implement in terms of above.
8753 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8754 (store_inferior_registers): Re-implement in terms of above.
8755
fdf39c9a
RE
87562002-02-19 Richard Earnshaw <rearnsha@arm.com>
8757
aaa38bb5 8758 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
8759 kernel.
8760 * arm-linux-tdep.c: Likewise.
8761 * config/arm/tm-linux.h: Likewise.
8762
93247f88
RE
87632002-02-19 Richard Earnshaw <rearnsha@arm.com>
8764
8765 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8766 * config/arm/nbsd.mt (TM_FILE): Delete.
8767 * config/arm/tm-nbsd.h: Delete.
8768
d7b486e7
RE
87692002-02-19 Richard Earnshaw <rearnsha@arm.com>
8770
8771 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8772 Initialize CALL_DUMMY_LENGTH.
8773
41d39a95
RE
87742002-02-19 Richard Earnshaw <rearnsha@arm.com>
8775
8776 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8777 function.
8778 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 8779 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
8780 defines one thing and that is incorrect for this port.
8781 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8782
e1195560
PM
87832002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8784
8785 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8786
c1748f97
PM
87872002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8788
8789 * win32-nat.c (display_selector): New function. Displays information
8790 about the information returned by GetThreadSelectorEntry API function.
8791 (display_selectors): New function. Displays the infomation of
8792 the selector given as argument, or of CS, DS ans FS selectors
8793 if no argument is given.
8794 ( _initialize_inftarg): Add "w32" as info prefix command.
8795 Add "info w32 selector" as command calling display_selectors.
8796
e41e6bbf
PM
87972002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8798
8799 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8800 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8801 if not defined.
8802
0d3a9f48
RE
88032002-02-18 Richard Earnshaw <rearnsha@arm.com>
8804
8805 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8806
3fb4b924
RE
88072002-02-18 Richard Earnshaw <rearnsha@arm.com>
8808
8809 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8810 (arm_fix_call_dummy): Call it.
8811 (arm_call_dummy_breakpoint_offset): Delete.
8812 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8813 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8814
7f55af32
AC
88152002-02-18 Andrew Cagney <ac131313@redhat.com>
8816
8817 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8818 Default to func_frame_chain_valid.
8819 * gdbarch.h, gdbarch.c: Re-generate.
8820 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8821
05f13b9c
EZ
88222002-02-18 Elena Zannoni <ezannoni@redhat.com>
8823
8824 * ppc-linux-nat.c: Update copyright.
8825 (fetch_register, store_register): Add tid parameter, don't compute
8826 tid here.
8827 (fetch_ppc_registers, store_ppc_registers): Add tid
8828 parameter. Pass it along to callees.
8829 (fetch_inferior_registers, store_inferior_registers): Compute tid
8830 here, and pass it to calleed functions.
8831 (fill_gregset, supply_fpregset): Clean up formatting.
8832
d7afb4c9
RE
88332002-02-18 Richard Earnshaw <rearnsha@arm.com>
8834
8835 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8836 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8837
9df628e0
RE
88382002-02-18 Richard Earnshaw <rearnsha@arm.com>
8839
8840 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8841 * gdbarch.c gdbarch.h: Regenerate.
8842 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8843 function.
8844 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8845 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8846 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8847
8848 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8849 * arm-tdep.c (arm_get_longjmp_target): New function.
8850 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8851 this to a positive value register arm_get_longjmp_target as the
8852 longjmp handler.
8853 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8854 (arm_linux_init_abi): Set up longjmp description in tdep.
8855 * armnbsd-nat.c (get_longjmp_target): Delete.
8856 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8857 description in tdep.
8858 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8859 (get_longjmp_target): Delete declaration.
8860 (GET_LONGJMP_TARGET): Delete.
8861 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8862 (GET_LONGJMP_TARGET): Delete.
8863
57bc8964
KB
88642002-02-17 Kevin Buettner <kevinb@redhat.com>
8865
8866 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8867 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8868 of ``current_gdbarch''.
8869
83d31a92
TT
88702002-02-17 Tom Tromey <tromey@redhat.com>
8871
8872 * cli/cli-cmds.c (compare_strings): New function.
8873 (complete_command): Only print each unique item once.
8874 * completer.h (complete_line): Declare.
8875 * completer.c (complete_line): New function.
8876 (line_completion_function): Use it.
8877
17ef5d92
AC
88782002-02-16 Andrew Cagney <ac131313@redhat.com>
8879
8880 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8881 * gdbarch.h, gdbarch.c: Re-generate.
8882
491b8946
DJ
88832002-02-16 Daniel Jacobowitz <drow@mvista.com>
8884
8885 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8886
88872002-02-16 Daniel Jacobowitz <drow@mvista.com>
8888
8889 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8890 * valops.c (value_arg_coerce): Don't take the address of a reference
8891 to convert an argument to a reference.
8892
dfe7f3ac
CF
88932002-02-15 Christopher Faylor <cgf@redhat.com>
8894
8895 * win32-nat.c (get_image_name): New function.
8896 (handle_load_dll): Use get_image_name function.
8897 (get_child_debug_event): Avoid registering debug events until possibly
8898 execed process is started.
8899 (child_create_inferior): Allow invocation via shell so that command
8900 line redirection, etc. works ok.
8901 (_initialize_inftarg): Add new command: "set shell" to control whether
8902 a shell is used to start a process.
8903
1d33e73a
DJ
89042002-02-15 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8907 instead of find_register_by_number.
8908 (cannot_store_register): Likewise.
8909
48cd0caa
PM
89102002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8911
aaa38bb5 8912 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
8913 fprintf_unfiltered (gdb_stderr, ...).
8914
8656e7d8
DJ
89152002-02-15 Daniel Jacobowitz <drow@mvista.com>
8916
8917 * gdbserver/gdbserver.1: Document --attach.
8918
66e810cd
RE
89192002-02-15 Richard Earnshaw <rearnsha@arm.com>
8920
8921 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8922 descriptions.
8923 * arm-tdep.c (arm_default_arm_le_breakpoint)
8924 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8925 (arm_default_thumb_be_breakpoint): New. Initialize them from
8926 traditional breakpoint defines.
8927 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8928 (arm_gdbarch_init): Initialize new breakpoint variables.
8929 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8930 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8931 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8932 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8933 code out to ...
8934 (arm_netbsd_init_abi_common): ... here; new function.
8935 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8936 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8937 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8938 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8939
97e03143
RE
89402002-02-15 Richard Earnshaw <rearnsha@arm.com>
8941
8942 * arm-tdep.h (enum arm_abi): New enum.
8943 (struct gdbarch_tdep): New structure.
8944 (LOWEST_PC): Provide a default.
8945 (arm_gdbarch_register_os_abi): Declare new function.
8946 * arm-tdep.c (arm_abi_names): New array.
8947 (process_note_abi_tag_sections): New function.
8948 (get_elfosabi): New function.
8949 (arm_gdbarch_register_os_abi): New function.
8950 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8951 support for that ABI has been built in, then call the appropriate
8952 configuration routine. Use gdbarch_num_regs() to get the number
8953 of registers.
8954 (arm_dump_tdep): New function.
8955 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8956 place-holder functions.
8957 (_initialize_arm_tdep): Register them.
8958 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8959
8960 * armnbsd-tdep.c: New file.
8961 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8962 * config/arm/nbsd.mt (TDEPFILES): Add it.
8963 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8964
8965 * armnbsd-nat.c: Include regcache.h.
8966 * Makefile.in (armnbsd-nat.o): Update dependency list.
8967
8968 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8969
ad68be46
DJ
89702002-02-14 Daniel Jacobowitz <drow@mvista.com>
8971
8972 * gdbserver/Makefile.in: Fix typos in target rules.
8973
003d6d1d
DJ
89742002-02-14 Daniel Jacobowitz <drow@mvista.com>
8975
aaa38bb5 8976 Fix part of PR gdb/267.
003d6d1d
DJ
8977 * linespec.c (find_methods): Handle constructors specially for now.
8978
6b230f1b
CV
89792002-02-14 Corinna Vinschen <vinschen@redhat.com>
8980
8981 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8982 handling.
8983 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8984 standard_coerce_float_to_double().
8985
1ea98d12
CF
89862002-02-14 Christopher Faylor <cgf@redhat.com>
8987
8988 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8989 GDBINIT_FILENAME.
8990
dd47e6fd
EZ
89912002-02-14 Elena Zannoni <ezannoni@redhat.com>
8992
8993 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8994 find_variant_by_name, because it confuses the multiarch
8995 framework. Return NULL if there isn't an architecture with the
8996 user supplied name, instead of forcing a different one without
8997 recording the change with the multiarch machinery.
8998 (find_variant_by_name): Delete.
8999
d7e39b9e
PS
90002002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9001
9002 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9003 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9004
76e42a4f
MH
90052002-02-13 Martin M. Hunt <hunt@redhat.com>
9006
aaa38bb5 9007 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9008 print_frame_info_listing_hook, set current_source_symtab.
9009
0a30fbc4
DJ
90102002-02-14 Daniel Jacobowitz <drow@mvista.com>
9011
9012 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9013 and remove unused $(INCLUDE_DIR).
9014 Add regcache.c to OBS.
9015 Add generated register protocol files to clean target.
9016 Update dependencies for new objects, obsolete old target code.
9017
9018 * gdbserver/linux-low.c: Remove all platform-specific code to
9019 new files. Remove various dead code. Update to use regcache
9020 functionality.
9021 * gdbserver/remote-utils.c (fromhex): Add return statement
9022 to quiet warning.
9023 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9024 constant.
9025 (input_interrupt): Add integer parameter to match prototype
9026 of a signal handler.
9027 (outreg): Use register_data ().
9028 (prepare_resume_reply): Use gdbserver_expedite_regs.
9029 * gdbserver/server.c (main): Dynamically allocate own_buf because
9030 PBUFSIZ is no longer constant. Use registers_to_string () and
9031 registers_from_string ().
9032 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9033 for error (), fatal (), and warning (). Update definition of
9034 PBUFSIZ to use regcache functionality. Add include guard.
9035 * gdbserver/utils.c (fatal): Add missing ``const''.
9036 (warning): New function.
9037
9038 * regformats/regdat.sh: Include "regcache.h" in generated files.
9039 Provide init_registers () function.
9040 * regformats/regdef.h: Add prototype for set_register_cache ().
9041 Add include guard.
9042
9043 * gdbserver/linux-arm-low.c: New file.
9044 * gdbserver/linux-i386-low.c: New file.
9045 * gdbserver/linux-ia64-low.c: New file.
9046 * gdbserver/linux-m68k-low.c: New file.
9047 * gdbserver/linux-mips-low.c: New file.
9048 * gdbserver/linux-ppc-low.c: New file.
9049 * gdbserver/linux-sh-low.c: New file.
9050
9051 * gdbserver/regcache.c: New file.
9052 * gdbserver/regcache.h: New file.
9053
9054 * gdbserver/low-linux.c: Removed obsolete file.
9055
4cc841d0
DJ
90562002-02-14 Daniel Jacobowitz <drow@mvista.com>
9057
9058 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9059 * config/i386/linux.mt: Likewise.
9060 * config/ia64/linux.mt: Likewise.
9061 * config/m68k/linux.mh: Likewise.
9062 * config/powerpc/linux.mh: Likewise.
9063 * config/mips/linux.mt: Likewise.
9064
9065 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9066
9067 * config/i386/i386lynx.mh: Mark gdbserver variables
9068 as (currently) obsolete for this target.
9069 * config/i386/nbsd.mt: Likewise.
9070 * config/i386/nbsdelf.mt: Likewise.
9071 * config/m32r/m32r.mt: Likewise.
9072 * config/m68k/m68klynx.mh: Likewise.
9073 * config/m68k/nbsd.mt: Likewise.
9074 * config/m68k/sun3os4.mh: Likewise.
9075 * config/mips/vr5000.mt: Likewise.
9076 * config/ns32k/nbsd.mt: Likewise.
9077 * config/pa/hppabsd.mh: Likewise.
9078 * config/pa/hppaosf.mh: Likewise.
9079 * config/powerpc/nbsd.mt: Likewise.
9080 * config/rs6000/rs6000lynx.mh: Likewise.
9081 * config/s390/s390.mt: Likewise.
9082 * config/s390/s390x.mt: Likewise.
9083 * config/sparc/sparclynx.mh: Likewise.
9084 * config/sparc/sun4os4.mh: Likewise.
9085 * config/i386/x86-64linux.mt: Likewise.
9086 * config/sparc/linux.mh: Likewise.
9087
a85f51e7
DJ
90882002-02-14 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * configure.tgt: Configure gdbserver only for known working
9091 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9092 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9093 SUBDIRS if it is configured. Update comment for ${nativefile}.
9094 * configure: Regenerated.
9095
65554fef
MS
90962002-02-13 Michael Snyder <msnyder@redhat.com>
9097
670a52db
MS
9098 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9099
6dbdc4a3
MS
9100 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9101 (default_gcore_mach): Just return 0, work around a problem in bfd.
9102 (default_gcore_target): OK to return NULL if exec_bfd is null.
9103 (make_mem_sec): Use a cast, avoid a warning.
9104
9105 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9106 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9107 sizeof (host pointer) != sizeof (target pointer)).
9108 (procfs_make_note_section): Avoid overflow in psargs string.
9109
aaa38bb5 9110 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9111 implementation return an error.
9112
91132002-02-13 Rodney Brown <rbrown64@csc.com.au>
9114
9115 * procfs.c (procfs_make_note_section): Provide a default definition
9116 (for alpha-dec-osf4.0f). Fix typos.
9117
1e4d76e7
EZ
91182002-02-13 Elena Zannoni <ezannoni@redhat.com>
9119
9120 * linux-proc.c: Add include of regcache.h.
9121 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9122
b6d1a1d5
AC
91232002-02-13 Andrew Cagney <ac131313@redhat.com>
9124
9125 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9126 * memattr.c (create_mem_region): Disallow useless empty region.
9127 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9128 non-overlapping.
b6d1a1d5 9129
6c6ea35e
MC
91302002-02-13 Michael Chastain <mec@shout.net>
9131
9132 * defs.h: Kill CONST_PTR.
9133 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9134 * c-lang.c (c_builtin_types): Likewise.
9135 * ch-lang.c (ch_builtin_types): Likewise.
9136 * f-lang.c (f_builtin_types): Likewise.
9137 * language.c (unknown_builtin_types): Likewise.
9138 * m2-lang.c (m2_builtin_types): Likewise.
9139 * p-lang.c (pascal_builtin_types): Likewise.
9140 * scm-lang.c (c_builtin_types): Likewise.
9141
3e0b0f48
KS
91422002-02-13 Keith Seitz <keiths@redhat.com>
9143
9144 * arm-tdep.h (arm_get_next_pc): Add declaration.
9145
67255d04
RE
91462002-02-13 Richard Earnshaw <rearnsha@arm.com>
9147
9148 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9149 with other related struct-returning functions.
9150 (arm_extract_struct_value_address): New function.
9151 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9152 initialize float_format, double_format and long_double_format as
9153 appropriate to the endianness of the target.
9154 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9155 (arm_use_struct_convention): Delete declaration.
9156 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9157
079777f6
KS
91582002-02-13 Keith Seitz <keiths@redhat.com>
9159
9160 * defs.h (core_addr_to_string_nz): New function.
9161
34588f23
MK
91622002-02-13 Mark Kettenis <kettenis@gnu.org>
9163
9164 Apply missing bits of 2002-01-15 patch.
9165 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9166 (fill_fpregset): Use i387_fill_fsave.
9167
49b563f9
KS
91682002-02-12 Keith Seitz <keiths@redhat.com>
9169
49b563f9
KS
9170 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9171 (core_addr_to_string_nz): New function.
9172
aeb98c60
RE
91732002-02-11 Richard Earnshaw <rearnsha@arm.com>
9174
9175 * arm-linux-nat.c: Really include arm-tdep.h.
9176 * config/arm/tm-linux.h (struct type, struct value): Declare.
9177
65554fef
MS
91782002-02-11 Michael Snyder <msnyder@redhat.com>
9179
9180 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9181 (gcore section): Ifdef for Solaris and Unixware only.
9182 (procfs_do_thread_registers): Unixware needs one lwpstatus
9183 per thread (not one prstatus or pstatus).
9184 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9185 not over all gdb threads. For unixware, call elfcore_write_pstatus
9186 once before iterating over threads.
9187
34e8f22d
RE
91882002-02-11 Richard Earnshaw <rearnsha@arm.com>
9189
9190 * arm-tdep.h: New file.
9191 * arm-tdep.c: Include arm-tdep.h.
9192 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9193 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9194 (arm_print_float_info, arm_register_type, convert_to_extended)
9195 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9196 (arm_extract_return_value, arm_register_name): Make static.
9197 (arm_software_single_step): Similarly. Fix types in declaration.
9198 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9199 (arm_store_return_value, arm_store_struct_return): New functions.
9200 (arm_gdbarch_init): Register the above functions. Also register
9201 call_dummy_start_offset, sizeof_call_dummy_words,
9202 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9203 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9204 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9205 prologue_cache.saved_regs here, rather than ...
9206 (_initialize_arm_tdep): ... here.
9207 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9208 declarations.
9209 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9210 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9211 (arm_print_float_info, arm_register_type, convert_to_extended)
9212 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9213 (arm_extract_return_value, arm_register_name): Delete declarations.
9214 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9215 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9216 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9217 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9218 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9219 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9220 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9221 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9222 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9223 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9224 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9225 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9226 interface.
9227 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9228 * remote-rdi.c remote-rdp.c: Likewise.
9229 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9230 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9231 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9232 definition.
9233
9234 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9235 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9236 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9237 from non-ARM_ prefixed definitions.
9238 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9239 all uses of above.
9240 * remote-rdi.c remote-rdp.c: Likewise.
9241 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9242
148754e5
RE
92432002-02-11 Richard Earnshaw <rearnsha@arm.com>
9244
9245 * arm-tdep.c (arm_frameless_function_invocation)
9246 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9247 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9248 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9249 (arm_pop_frame, arm_get_next_pc): Make static.
9250 (arm_gdbarch_init): Register above in gdbarch structure.
9251 (arm_read_fp): Renamed from arm_target_read_fp.
9252 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9253 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9254 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9255 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9256 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9257 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9258 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9259 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9260 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9261 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9262 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9263
434d2d4f
DJ
92642002-02-10 Daniel Jacobowitz <drow@mvista.com>
9265
9266 * symtab.c (compare_search_syms): New function.
9267 (sort_search_symbols): New function.
9268 (search_symbols): Sort symbols after searching rather than
9269 before.
9270
55241689
AC
92712002-02-10 Andrew Cagney <ac131313@redhat.com>
9272
9273 * NEWS: Linux -> GNU/Linux.
9274
028c194b
AC
92752002-02-10 Andrew Cagney <ac131313@redhat.com>
9276
9277 * gdbarch.sh: For for level one methods, disallow a definition
9278 when partially multi-arched. Add comments explaining rationale.
9279 * gdbarch.h: Re-generate.
9280
6acf50cd
AC
92812002-02-10 Andrew Cagney <ac131313@redhat.com>
9282
9283 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9284 multi-arch partial.
aaa38bb5 9285
50248794
AC
92862002-02-10 Andrew Cagney <ac131313@redhat.com>
9287
9288 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9289 field. Use diff -u.
9290 * gdbarch.c: Re-generate.
9291
c30e0066
AC
92922002-02-10 Andrew Cagney <ac131313@redhat.com>
9293
9b56c5f3 9294 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9295 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9296 partial.
9297
6e6d6484
AC
92982002-02-10 Andrew Cagney <ac131313@redhat.com>
9299
9300 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9301 multi-arch partial.
9302 (PUSH_ARGUMENTS): Switch to using predefault.
9303 * gdbarch.c: Regenerate.
9304
c203844d
AC
93052002-02-10 Andrew Cagney <ac131313@redhat.com>
9306
9307 * valops.c (PUSH_ARGUMENTS): Delete definition.
9308 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9309 partial. Default to default_push_arguments.
9310 * gdbarch.h, gdbarch.c: Regenerate.
9311
b5a2688f
AC
93122002-02-09 Andrew Cagney <ac131313@redhat.com>
9313
9314 * defs.h (throw_exception): Rename return_to_top_level. Update
9315 comments.
9316 * utils.c (error_stream, internal_verror, quit): Ditto.
9317 * top.c (throw_exception, catcher): Ditto.
9318 * sparclet-rom.c (sparclet_load): Ditto.
9319 * remote.c (interrupt_query, minitelnet): Ditto.
9320 * remote-sds.c (interrupt_query): Ditto.
9321 * remote-mips.c (mips_error, mips_kill): Ditto.
9322 * ocd.c (interrupt_query): Ditto.
9323 * monitor.c (monitor_interrupt_query): Ditto.
9324 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9325 * target.h: Update comment.
aaa38bb5 9326
b5a2688f 9327 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9328
2fa5c1e0
AC
93292002-02-09 Andrew Cagney <ac131313@redhat.com>
9330
9331 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9332 default_double_format.
9333 * gdbarch.h, gdbarch.c: Re-generate.
9334 * findvar.c (floatformat_unknown): Delete variable definition.
9335 * doublest.h (floatformat_unknown): Delete variable declaration.
9336
da966255
JB
93372002-02-09 Jim Blandy <jimb@redhat.com>
9338
9339 * stabsread.c (read_type): Add code to parse Sun's syntax for
9340 prototyped function types.
9341
123a4891
AC
93422002-02-09 Andrew Cagney <ac131313@redhat.com>
9343
9344 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9345 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9346
fb39c8f3
PS
93472002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9348
9349 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9350 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9351 now _initialize_xcoffsolib gets called again and overrides the
9352 commands from solib.c in a native configuration.
9353
0b87a11d
MK
93542002-02-09 Mark Kettenis <kettenis@gnu.org>
9355
9356 * doublest.c (store_typed_floating): Don't try to return a value.
9357 Fixes PR gdb/290.
9358
bdc2fc72
JB
93592002-02-08 Jim Blandy <jimb@redhat.com>
9360
9361 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9362 is prototyped and has no arguments, print its argument list as
9363 `(void)'.
9364
da69bbcf
CD
93652002-02-08 Chris Demetriou <cgd@broadcom.com>
9366
9367 * MAINTAINERS (write-after-approval): Add myself.
9368 (paper-trail): I've escaped!
aaa38bb5 9369
b69571f5
CF
93702002-02-08 Christopher Faylor <cgf@redhat.com>
9371
9372 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9373 changes.
9374 (_initialize_check_for_gdb_ini): Ditto.
9375
f6871398
MH
93762002-02-08 Martin M. Hunt <hunt@redhat.com>
9377
9378 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9379 xaprintf -> xasprintf.
9380
4e52d31c
PM
93812002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9382
9383 * win32-nat.c: Remove use of printf and sprintf functions.
9384
39bbf761
RE
93852002-02-08 Richard Earnshaw <rearnsha@arm.com>
9386
9387 * arm-tdep.c (arm_frame_chain_valid): Make static.
9388 (arm_push_arguments): Likewise.
9389 (arm_gdbarch_init): New function.
9390 (_initialize_arm_tdep): Call it.
9391 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9392 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9393 (FRAME_CHAIN_VALID): Delete.
9394 (arm_frame_chain_valid): Delete declaration.
9395 (PUSH_ARGUMENTS): Delete.
9396 (arm_push_arguments): Delete declaration.
9397 (CALL_DUMMY_P): Delete.
9398
9c9532c9
CV
93992002-02-08 Andrew Cagney <ac131313@redhat.com>
9400 Corinna Vinschen <vinschen@redhat.com>
9401
9402 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9403 on builtin float types.
9404
4e8f7a8b
DJ
94052002-02-08 Daniel Jacobowitz <drow@mvista.com>
9406
9407 * utils.c: Include <curses.h> before "bfd.h".
9408 * tui/tui-hooks.c: Likewise.
9409 * tui/tui.c: Likewise.
9410 * tui/tuiCommand.c: Likewise.
9411 * tui/tuiData.c: Likewise.
9412 * tui/tuiDataWin.c: Likewise.
9413 * tui/tuiDisassem.c: Likewise.
9414 * tui/tuiGeneralWin.c: Likewise.
9415 * tui/tuiIO.c: Likewise.
9416 * tui/tuiLayout.c: Likewise.
9417 * tui/tuiRegs.c: Likewise.
9418 * tui/tuiSource.c: Likewise.
9419 * tui/tuiSourceWin.c: Likewise.
9420 * tui/tuiStack.c: Likewise.
9421 * tui/tuiWin.c: Likewise.
9422
cd4bffcf
EZ
94232002-02-07 Elena Zannoni <ezannoni@redhat.com>
9424
9425 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9426 to include space for pseudoregs as well. Update loops accordingly.
9427 (sh_fp_frame_init_saved_regs): Ditto.
9428 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9429
26806ce2
AC
94302002-02-07 Andrew Cagney <ac131313@redhat.com>
9431
9432 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9433 Add Richard Earnshaw to Arm maintainers.
9434
97fdab62
AC
94352002-02-07 Andrew Cagney <ac131313@redhat.com>
9436
a6b98203
AC
9437 * defs.h (warning_begin): Delete declaration.
9438
97fdab62
AC
9439 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9440 Delete macro.
9441
78b29b40
MS
94422002-02-07 Michael Snyder <msnyder@redhat.com>
9443
aaa38bb5 9444 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9445 Logic bug, remove misplaced else.
9446
d8849953
KD
94472002-02-07 Klee Dienes <klee@apple.com>
9448
9449 * fork-inferior.c (fork_inferior): Add '!' to the list of
9450 characters that need to be quoted when building a string for the
9451 shell. Quote '!' specifically with a backslash, since CSH chokes
9452 when trying to evaluate "str!str".
aaa38bb5 9453
095778a0
NC
94542002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9455
9456 * rdi-share/host.h: Only provide a typedef for bool if it is not
9457 defined.
9458
1900040c
MS
94592002-02-04 Michael Snyder <msnyder@redhat.com>
9460
9461 * breakpoint.h (enum bptype): Add new overlay event bp type.
9462 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9463
1900040c
MS
9464 * breakpoint.c (create_internal_breakpoint): New function.
9465 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9466 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9467 (create_thread_event_breakpoint): Ditto.
9468 (create_solib_event_breakpoint): Ditto.
9469 (create_overlay_event_breakpoint): New function.
9470 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9471 (update_breakpoints_after_exec): Delete and re-initialize
9472 overlay event breakpoints after an exec. Add FIXME comment
9473 about longjmp breakpoint.
9474 (print_it_typical): Ignore overlay event breakpoints.
9475 (print_one_breakpoint): Ditto.
9476 (mention): Ditto.
9477 (bpstat_what): Do not stop for overlay event breakpoints.
9478 (delete_breakpoint): Don't delete overlay event breakpoints.
9479 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9480 (breakpoint_re_set): Re-create overlay event breakpoint.
9481
9482 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9483 (overlay_manual_command): Disable overlay breakpoints.
9484 (overlay_off_command): Disable overlay breakpoints.
9485
082fc60d
RE
94862002-02-06 Richard Earnshaw <rearnsha@arm.com>
9487
9488 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9489 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9490 to here from config/tm-arm.h.
9491 (coff_sym_is_thumb): Make static.
9492 (arm_elf_make_msymbol_special): New function.
9493 (arm_coff_make_msymbol_special): New function.
9494 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9495 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9496 (coff_sym_is_thumb): Delete declaration.
9497 (arm_elf_make_msymbol_special): Declare.
9498 (arm_coff_make_msymbol_special): Declare.
9499 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9500 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9501
039c5766
RE
95022002-02-06 Richard Earnshaw <rearnsha@arm.com>
9503
9504 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9505
95062002-02-06 Richard Earnshaw <rearnsha@arm.com>
9507
9508 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9509 * gdbarch.c gdbarch.h: Regenerate.
9510 * arch-utils.c (default_print_float_info): New function.
9511 * arch-utils.h (default_print_float_info): Prototype it.
9512 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9513 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9514 (PRINT_FLOAT_INFO): Document it.
9515
9516 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9517 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9518 (PRINT_FLOAT_INFO): Define.
9519
58fa08f0
PM
95202002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9521
aaa38bb5 9522 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9523 Add typecast to sprintf argument to suppress a warning.
9524
7393af7c
PM
95252002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9526
58fa08f0 9527 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9528 to allow easier handling of pass state.
9529 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9530 that gives exception name and address.
9531 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9532 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9533 exceptions added.
aaa38bb5
AJ
9534 (child_continue): Correctly report continue_status.
9535 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9536 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9537 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9538 the exception should be passed to debuggee or not.
9539
6af4589c
MS
95402002-02-05 Michael Snyder <msnyder@redhat.com>
9541
9542 * regcache.c (fetch_register): Call target_fetch_register
9543 only if we don't call FETCH_PSEUDO_REGISTER.
9544 (store_register): Call target_store_register only if we
9545 don't call STORE_PSEUDO_REGISTER.
9546
a2cf933a
EZ
95472002-02-05 Elena Zannoni <ezannoni@redhat.com>
9548
9549 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9550 ELF_MAKE_MSYMBOL_SPECIAL.
9551 * gdbarch.c, gdbarch.h: Regenerate.
9552 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9553 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9554 * elfread.c (elf_symtab_read): Compile use of
9555 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9556 multiarched.
9557 * coffread.c (coff_symtab_read): Ditto, for
9558 COFF_MAKE_MSYMBOL_SPECIAL.
9559
6bb7be43
JB
95602002-02-05 Jim Blandy <jimb@redhat.com>
9561
9562 * solib-svr4.c (svr4_truncate_ptr): New function.
9563 (svr4_relocate_section_addresses): Do the address arithmetic with
9564 the appropriate truncation for target addresses, even when
9565 CORE_ADDR is larger than a target address.
9566
e18651ec
DJ
95672002-02-05 Daniel Jacobowitz <drow@mvista.com>
9568
9569 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9570 to (int *).
9571
6b2725be
DJ
95722002-02-05 Daniel Jacobowitz <drow@mvista.com>
9573
9574 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9575 code.
9576
fca9e603
DJ
95772002-02-05 Daniel Jacobowitz <drow@mvista.com>
9578
9579 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9580
6c537a52
DJ
95812002-02-05 Daniel Jacobowitz <drow@mvista.com>
9582
9583 * gdbserver/linux-low.c: Remove unused include files.
9584
d844cde6
DJ
95852002-02-05 Daniel Jacobowitz <drow@mvista.com>
9586
9587 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9588 (read_inferior_memory): Use it.
9589 (write_inferior_memory): Likewise.
9590
d07c63e7
DJ
95912002-02-05 Daniel Jacobowitz <drow@mvista.com>
9592
9593 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9594 grubbing through sys_errlist.
9595
da6d8c04
DJ
95962002-02-05 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9599
5b421780
PM
96002002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9601 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9602
9f60d481
AC
96032002-02-04 Andrew Cagney <ac131313@redhat.com>
9604
9605 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9606 (do_sfunc, set_cmd_sfunc): New functions.
9607
9608 * command.h (struct cmd_list_element): Add field func.
9609 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9610 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9611 * cli/cli-decode.h: Ditto.
9612
9613 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9614 (help_all, help_cmd_list): Ditto.
9615 (find_cmd, complete_on_cmdlist): Ditto.
9616 * top.c (execute_command): Ditto.
9617
9618 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9619 function.sfunc.
9620
9621 * infcmd.c (notice_args_read): Fix function signature.
9622
9623 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9624 * cli/cli-decode.c (add_set_cmd): Ditto.
9625 * utils.c (initialize_utils): Ditto.
9626 * maint.c (_initialize_maint_cmds): Ditto.
9627 * infrun.c (_initialize_infrun): Ditto.
9628 * demangle.c (_initialize_demangler): Ditto.
9629 * remote.c (add_packet_config_cmd): Ditto.
9630 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9631 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9632 * proc-api.c (_initialize_proc_api): Ditto.
9633 * kod.c (_initialize_kod): Ditto.
9634 * valprint.c (_initialize_valprint): Ditto.
9635 * top.c (init_main): Ditto.
9636 * infcmd.c (_initialize_infcmd): Ditto.
9637 * corefile.c (_initialize_core): Ditto.
9638 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9639 * arch-utils.c (initialize_current_architecture): Ditto.
9640 (_initialize_gdbarch_utils): Ditto.
9641 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9642
9643 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9644 * wince.c (_initialize_inftarg): Ditto.
9645 * symfile.c (_initialize_symfile): Ditto.
9646 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9647 * language.c (_initialize_language): Ditto.
9648 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9649
f9ba0717
MS
96502002-02-04 Michael Snyder <msnyder@redhat.com>
9651
9652 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9653
0c74b2a7
DJ
96542002-02-04 Daniel Jacobowitz <drow@mvista.com>
9655
9656 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9657 Add rules for building the register data files.
9658
c638789f
DJ
96592002-02-04 Daniel Jacobowitz <drow@mvista.com>
9660
9661 * regformats/regdat.sh: Add braces to the definition of
9662 expedite_regs_${arch}.
9663
db253027
DJ
96642002-02-04 Daniel Jacobowitz <drow@mvista.com>
9665
9666 * regformats/regdef.h (struct reg): Add comment describing the
9667 requirements for offset and size fields.
9668
206be19c
AS
96692002-02-04 Andreas Schwab <schwab@suse.de>
9670
9671 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9672 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9673
181c1381
RE
96742002-02-04 Richard Earnshaw <rearnsha@arm.com>
9675
9676 * gdbarch.sh (copyright): Update years in generated header.
9677 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9678 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9679 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9680 * dbxread.c: Likewise.
9681 * dwarfread.c: Likewise.
9682 * elfread.c: Likewise.
9683 * somread.c: Likewise.
9684
9685 * arm-tdep.c (arm_smash_text_address): New function.
9686 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9687
fa4ba8da
PM
96882002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9689
9690 Add support for hardware watchpoints on win32 native.
aaa38bb5 9691 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9692 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9693 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9694 of debug registers.
9695 (debug_registers_changed): New variable. Reflects when debug registers
9696 are changed and need to be written to inferior.
aaa38bb5 9697 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9698 was set, used when new threads are created.
9699 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9700 i386-nat code.
9701 (thread_rec): Set dr array if id is the thread of current_event .
9702 (child_continue, child_resume): Change the debug registers for all
9703 threads if debug_registers_changed.
9704 (child_add_thread): Change the debug registers if debug_registers_used.
9705 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9706 Link nm.h to new nm-cygwin.h file.
9707 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9708 of hardware registers.
9709
a73c86fb
AC
97102002-02-03 Andrew Cagney <ac131313@redhat.com>
9711
9712 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9713 Restore behavour broken by 2002-01-20 Andrew Cagney
9714 <ac131313@redhat.com> IEEE_FLOAT removal.
9715
acf5ed49
DJ
97162002-02-03 Daniel Jacobowitz <drow@mvista.com>
9717
9718 * c-valprint.c (c_val_print): Pass a proper valaddr to
9719 cp_print_class_method.
9720 * valops.c (search_struct_method): If there is only one method
9721 and args is NULL, return that method.
9722
493d28d5
DJ
97232002-02-03 Daniel Jacobowitz <drow@mvista.com>
9724
9725 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9726 accessing tag_name directly.
9727
7495dfdb
DJ
97282002-02-03 Daniel Jacobowitz <drow@mvista.com>
9729
9730 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9731 of accessing tag_name directly.
9732
dd6bda65
DJ
97332002-02-03 Daniel Jacobowitz <drow@mvista.com>
9734
9735 PR gdb/280
9736 * gdbtypes.c (replace_type): New function.
9737 * gdbtypes.h (replace_type): Add prototype.
9738 * stabsread.c (read_type): Use replace_type.
9739
88fe217c
RE
97402002-02-03 Richard Earnshaw <rearnsha@arm.com>
9741
9742 * Makefile.in (memattr.o): Add missing dependencies rule.
9743
e5d66720
PS
97442002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9745
9746 * breakpoint.c (break_at_finish_command): Really export.
9747 (break_at_finish_at_depth_command): Ditto.
9748 (tbreak_at_finish_command): Ditto.
9749 * hppa-tdep.c: Include completer.h.
9750 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9751 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9752
fffee0be
AC
97532002-02-01 Andrew Cagney <ac131313@redhat.com>
9754
9755 * utils.c (do_write): New function.
9756 (error_stream): Rewrite combining the code from error_begin and
9757 verror.
9758 (verror): Rewrite using error_stream.
9759 (error_begin): Delete function.
9760
255e7dbf
AC
97612002-02-01 Andrew Cagney <ac131313@redhat.com>
9762
9763 * utils.c (error_begin): Make static.
9764 * defs.h (error_begin): Delete declaration.
9765
9766 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9767 (decode_line_1): Use cplusplus_error instead of error_begin,
9768 cplusplus_hint and return_to_top_level.
9769 * coffread.c (coff_symfile_read): Use error instead of error_begin
9770 and return_to_top_level.
9771 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9772
ddfe3c15
AC
97732002-02-01 Andrew Cagney <ac131313@redhat.com>
9774
9775 * language.h (type_error, range_error): Make string parameter
9776 constant.
9777 * language.c (warning_pre_print): Delete extern declaration.
9778 * dwarfread.c (warning_pre_print): Ditto.
9779 * language.c (type_error, range_error): Rewrite to use verror and
9780 vwarning instead of warning_begin.
9781
03ac34d5
MS
97822002-02-01 Michael Snyder <msnyder@redhat.com>
9783
261c4ca2
MS
9784 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9785 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 9786
e00d1dc8
AC
97872002-02-01 Andrew Cagney <ac131313@redhat.com>
9788
9789 * command.h (NO_FUNCTION): Delete macro.
9790 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9791 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9792 * tracepoint.c (_initialize_tracepoint): Ditto.
9793 * cli/cli-decode.c (add_set_cmd): Ditto.
9794 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 9795
76b79d6e
DJ
97962002-02-01 Daniel Jacobowitz <drow@mvista.com>
9797
9798 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9799 Update ``this'' pointer when calling virtual functions.
9800
799f9e91
MS
98012002-02-01 Michael Snyder <msnyder@redhat.com>
9802
c7bd442c 9803 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
9804 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9805
3cf384d4
DJ
98062002-02-01 Daniel Jacobowitz <drow@mvista.com>
9807
9808 * regformats/reg-arm.dat: New file.
9809 * regformats/reg-i386.dat: New file.
9810 * regformats/reg-ia64.dat: New file.
9811 * regformats/reg-m68k.dat: New file.
9812 * regformats/reg-mips.dat: New file.
9813 * regformats/reg-ppc.dat: New file.
9814 * regformats/reg-sh.dat: New file.
9815 * regformats/regdef.h: New file.
9816 * regformats/regdat.sh: New file.
9817
0defa245
RE
98182002-02-01 Richard Earnshaw <reanrsha@arm.com>
9819
9820 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9821 (arm_frame_args_address, arm_frame_locals_address): New functions.
9822 (arm_frame_num_args): New function.
9823 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9824 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9825 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9826
405f26e6
MS
98272002-01-31 Michael Snyder <msnyder@redhat.com>
9828
502fd408
MS
9829 * breakpoint.c (break_at_finish_command): Export.
9830 (break_at_finish_at_depth_command): Export.
9831 (tbreak_at_finish_command): Export.
9832 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9833 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9834 "tbreak" commands, which are HPPA specific.
9835
7d35e135
MS
9836 * printcmd.c (disassemble_command): Remove an ancient
9837 artifact of an old merge.
9838
aaa38bb5 9839 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
9840 Define enum constant values for overlay mode.
9841 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
9842 (overlay_is_mapped, overlay_auto_command,
9843 overlay_manual_command): Ditto.
d874f1e2 9844
aaa38bb5
AJ
9845 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9846 breakpoint_here_p, breakpoint_inserted_here_p,
9847 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
9848 describe_other_breakpoints, check_duplicates, clear_command):
9849 Coding standard fixes.
9850
8add0441 9851 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 9852 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
9853 code: check bfd SEC_READONLY flag for section.
9854
e351066e
AC
98552002-01-31 Andrew Cagney <ac131313@redhat.com>
9856
7d35e135 9857 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 9858
8a48e967
DJ
98592002-01-30 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9862 data symbols, since we search based on textlow and texthigh.
9863 (find_pc_sect_symtab): Likewise.
9864
f5a96129
AC
98652002-01-30 Andrew Cagney <ac131313@redhat.com>
9866
9867 * defs.h (vwarning): Declare.
f5a96129
AC
9868 * utils.c (vwarning): New function.
9869 (warning): Call vwarning.
9870 (warning_begin): Delete function.
9871
9872 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9873 the warning message.
9874 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9875 warning_begin.
9876
cefd4ef5
MS
98772002-01-30 Michael Snyder <msnyder@redhat.com>
9878
1a703748
MS
9879 * NEWS: Mention "set trust-readonly-sections" command.
9880 Mention generate-core-file command.
cefd4ef5 9881
3a11626d
MS
98822002-01-15 Michael Snyder <msnyder@redhat.com>
9883
9884 * target.c: New command, "set trust-readonly-sections on".
9885 (do_xfer_memory): Honor the suggestion to trust readonly sections
9886 by reading them from the object file instead of from the target.
9887 (initialize_targets): Register command "set trust-readonly-sections".
9888
d1c7e53b
AC
98892002-01-29 Andrew Cagney <ac131313@redhat.com>
9890
9891 * parse.c (target_map_name_to_register): Simplify, search regs and
9892 pseudo-regs using a single loop.
9893
e2c9a72c
AC
98942002-01-30 Andrew Cagney <ac131313@redhat.com>
9895
9896 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9897
69824b4e
MK
98982002-01-15 Rodney Brown <rbrown64@csc.com.au>
9899
9900 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9901 * config/i386/i386v42mp.mh: Add i387-nat.o .
9902 * i386v4-nat.c: Include i387-nat.h.
9903 (supply_fpregset): Use i387_supply_fsave.
9904 (fill_fpregset): Use i387_fill_fsave.
9905
6eb69eab
RE
99062002-01-30 Richard Earnshaw <rearnsha@arm.com>
9907
9908 * arm-tdep.c (arm_call_dummy_words): Define.
9909 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9910 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9911 (CALL_DUMMY_WORDS): Define.
9912 (arm_call_dummy_words): Declare.
9913 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9914 (arm_linux_call_dummy_words): Declare.
9915
9852326a
AS
99162002-01-30 Andreas Schwab <schwab@suse.de>
9917
9918 * m68klinux-nat.c: Fix last change to use regcache_collect
9919 instead of referencing registers[] directly.
9920
977a3030
AC
99212002-01-29 Andrew Cagney <ac131313@redhat.com>
9922
9923 * parse.c (target_map_name_to_register): Delete code wrapped in
9924 #ifdef REGISTER_NAME_ALIAS_HOOK.
9925
2076c72b
MS
99262002-01-28 Michael Snyder <msnyder@redhat.com>
9927
9928 * regcache.c (legacy_read_register_gen): Need to be able to
9929 read pseudo-register as well as real register.
9930 (legacy_write_register_gen): Ditto.
9931
8fcc723b
AC
99322002-01-28 Andrew Cagney <ac131313@redhat.com>
9933
9934 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9935 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9936 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9937 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9938 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9939 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9940 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9941 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9942 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9943 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9944 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9945 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9946 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9947 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9948 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9949 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9950 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9951 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9952 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9953 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9954
afe64c1a
AC
99552002-01-28 Andrew Cagney <ac131313@redhat.com>
9956
9957 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9958 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9959 (initialize_current_architecture): Update target_byte_order using
9960 information from BFD.
aaa38bb5 9961 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
9962 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9963
75bc7ddf
AC
99642002-01-28 Andrew Cagney <ac131313@redhat.com>
9965
9966 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9967 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9968
9969 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9970 #ifdef INVALID_FLOAT.
9971 * infcmd.c (do_registers_info): Ditto.
9972 * values.c (unpack_double): Ditto. Add comment.
9973
9974 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9975 already commented out.
9976
0280a90a
AS
99772002-01-26 Andreas Schwab <schwab@suse.de>
9978
9979 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9980 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9981 registers and add support for PTRACE_GETREGS.
9982
7072a954
AC
99832002-01-24 Andrew Cagney <ac131313@redhat.com>
9984
9985 GDB 5.1.1 released from 5.1 branch.
9986 * NEWS: Add 5.1.1 news.
9987 * README: Sync with 5.1 branch.
9988
86f902e0
FF
99892002-01-23 Fred Fish <fnf@redhat.com>
9990
9991 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9992 stabstring on initial malloc. Reallocing will copy it for us,
9993 if necessary.
9994
8af51c36
EZ
99952002-01-23 Elena Zannoni <ezannoni@redhat.com>
9996
aaa38bb5 9997 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
9998 (HFILES_NO_SRCDIR): Remove hpread.h.
9999 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10000 (hpread.o): Update dependencies.
10001 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10002
10003 * hp-psymtab-read.c: Remove file.
10004 * hp-symtab-read.c: Remove file.
10005 * hpread.h: Remove file.
10006
10007 * hpread.c: Merge all contents of hp-psymtab-read.c,
10008 hp-symtab-read.c and hpread.h into this file, as it was prior to
10009 January 1999.
10010
10011 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10012 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10013 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10014 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10015
dc5cfeb6
EZ
100162002-01-23 Elena Zannoni <ezannoni@redhat.com>
10017
10018 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10019 fill_gregset): Call gdbarch_tdep() just once, assign result to
10020 variable and use that, instead of calling the function several
10021 times.
10022
ea87b71b
AO
100232002-01-24 Alexandre Oliva <aoliva@redhat.com>
10024
10025 * configure.host: Accept sparcv9 as alias for sparc64.
10026 * configure.tgt: Likewise.
10027
13fc0c2f
KB
100282002-01-22 Kevin Buettner <kevinb@redhat.com>
10029
10030 * solib-aix5.c (build_so_list_from_mapfile)
10031 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10032 arguments is not reversed.
10033 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10034 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10035
7bd872fe
EZ
100362002-01-22 Elena Zannoni <ezannoni@redhat.com>
10037
10038 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10039 modified version of obsolete sh_fetch_pseudo_register.
10040 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10041 (sh4_register_read): New function.
10042 (sh_pseudo_register_write): New function. Renamed and modified
10043 version of obsolete sh_store_pseudo_register.
10044 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10045 (sh4_register_write): New function.
10046 (sh_gdbarch_init): Remove setting of gdbarch function
10047 fetch_pseudo_register and store_pseudo_register. Remove setting of
10048 register_convert_to_raw, register_convert_to_virtual,
10049 register_convertible.
10050 (sh_sh4_register_convertible): Delete. No longer needed. All is
10051 taken care by architecture specific functions
10052 register_read/register_write.
10053 (sh_sh4_register_convert_to_virtual): Make static.
10054 (sh_sh4_register_convert_to_raw): Ditto.
10055
069e84fd
AC
100562002-01-22 Andrew Cagney <ac131313@redhat.com>
10057
10058 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10059 (floatformat_is_nan, floatformat_mantissa): Ditto.
10060
10061 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10062 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10063 builtin_type_ieee_double_little,
10064 builtin_type_ieee_double_littlebyte_bigword,
10065 builtin_type_m68881_ext, builtin_type_i960_ext,
10066 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10067 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10068 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10069 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10070
211a4f69
CV
100712002-01-22 Corinna Vinschen <vinschen@redhat.com>
10072
10073 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10074 parameter. Set frameless flag if it exists and depended of
10075 whether the scanned function is frameless or not.
10076 (xstormy16_skip_prologue): If function is frameless, return
10077 result of xstormy16_scan_prologue().
10078 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10079 call.
10080
f81353e4
EZ
100812002-01-21 Elena Zannoni <ezannoni@redhat.com>
10082
10083 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10084 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10085 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10086 sh_sh4_register_byte, sh_sh4_register_raw_size,
10087 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10088 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10089 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10090 sh_store_pseudo_register, sh_do_pseudo_register): Call
10091 gdbarch_tdep() just once, assign result to variable and use that,
10092 instead of calling the function several times.
10093
63c73a17
MK
100942002-01-20 Mark Kettenis <kettenis@gnu.org>
10095
10096 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10097 macros instead of LAST_FPU_CTRL_REGNUM.
10098 (store_register): Likewise.
10099
39ad761d
JB
101002002-01-21 Jim Blandy <jimb@redhat.com>
10101
10102 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10103 is up-to-date before running the program, not just when a program
10104 exits.
10105
3d74b771
FF
101062002-01-21 Fred Fish <fnf@redhat.com>
10107
10108 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10109 when we have found all instructions we are looking for.
10110
966fbf70
RE
101112002-01-21 Richard Earnshaw <rearnsha@arm.com>
10112
10113 * arm-tdep.c (arm_register_name): New function.
10114 (arm_registers_names): Make static.
10115 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10116 (arm_register_name): Declare.
10117 (REGISTER_NAME): Use it.
10118
c3b4394c
RE
101192002-01-21 Richard Earnshaw <rearnsha@arm.com>
10120 Kevin Buettner <kevinb@redhat.com>
10121
10122 Convert arm targets to new FRAME interface.
10123 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10124 (arm_frame_find_save_regs): Delete.
10125 (arm_frame_init_saved_regs): New.
10126 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10127 Allocate extra_info as required. Convert all uses of fsr.regs
10128 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10129 to use extra_info.
10130 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10131 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10132 (check_prologue_cache, save_prologue_cache): Likewise.
10133 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10134 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10135 (FRAME_FIND_SAVED_REGS): Delete.
10136 (arm_frame_find_saved_regs): Delete prototype.
10137 (arm_frame_init_saved_regs): New prototype.
10138 (FRAME_INIT_SAVED_REGS): Define.
10139
61d99182
AC
101402002-01-20 Andrew Cagney <ac131313@redhat.com>
10141
10142 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10143
6aaea291
AC
101442002-01-20 Andrew Cagney <ac131313@redhat.com>
10145
10146 From Jeff Law <law@redhat.com>:
10147 * infttrace.c: Include <sys/pstat.h>.
10148 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10149 exec file if the ttrace equivalent fails.
10150
15f698d2
AC
101512002-01-20 Andrew Cagney <ac131313@redhat.com>
10152
10153 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10154 (closeLogFile): Ditto.
10155
f86ddd7c
MC
101562002-01-20 Michael Chastain <mec@shout.net>
10157
10158 * top.c (print_gdb_version): Bump copyright year to 2002.
10159
904507ce
AC
101602002-01-20 Andrew Cagney <ac131313@redhat.com>
10161
10162 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10163 Zannoni and Eli Zaretskii.
10164
d7f0b9ce
DJ
101652002-01-20 Daniel Jacobowitz <drow@mvista.com>
10166
10167 * buildsym.c: Update copyright years.
10168 * c-typeprint.c: Likewise.
10169 * dwarf2read.c: Likewise.
10170 * f-typeprint.c: Likewise.
10171 * gdbtypes.c: Likewise.
10172 * gdbtypes.h: Likewise.
10173 * hp-symtab-read.c: Likewise.
10174 * hpread.c: Likewise.
10175 * mdebugread.c: Likewise.
10176 * p-typeprint.c: Likewise.
10177
3fd3d7d2
AC
101782002-01-20 Andrew Cagney <ac131313@redhat.com>
10179
10180 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10181 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10182 byte-order selectable.
10183 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10184 * arch-utils.c: Ditto.
10185 (set_endian): Ditto.
10186 (set_endian_from_file): Ditto.
10187 * gdbserver/low-sim.c (create_inferior): Ditto.
10188 * gdbarch.sh: Ditto.
10189 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10190 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10191 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10192 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10193 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10194 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10195 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10196 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10197 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10198 macro definition.
10199 * config/mips/tm-wince.h: Remove #undef of macro
10200 TARGET_BYTE_ORDER_SELECTABLE.
10201 * config/sh/tm-wince.h: Ditto.
10202
b02dede2
DJ
102032002-01-20 Daniel Jacobowitz <drow@mvista.com>
10204
10205 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10206 member function fields. Add accessor macro
10207 TYPE_FN_FIELD_ARTIFICIAL.
10208 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10209 * c-typeprint.c (c_type_print_base): Skip artificial member
10210 functions.
10211
c3643761
DJ
102122002-01-20 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * f-typeprint.c: Delete unused function f_type_print_args.
10215 * p-typeprint.c: Delete unused function pascal_type_print_args.
10216
8176bb6d
DJ
102172002-01-20 Daniel Jacobowitz <drow@mvista.com>
10218
10219 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10220 comment. Add ``artificial'' to ``union field_location''.
10221
10222 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10223
10224 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10225 * mdebugread.c (parse_symbol): Likewise.
10226 * stabsread.c (define_symbol): Likewise.
10227 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10228 initializing TYPE_FIELD_BITPOS to n (obsolete).
10229 (hpread_doc_function_type): Likewise.
10230 * hpread.c (hpread_function_type): Likewise.
10231
7fd60527
AC
102322002-01-20 Andrew Cagney <ac131313@redhat.com>
10233
10234 * configure.in (host_makefile_frag): Only require a host makefile
10235 fragment when a native build.
10236 * configure: Re-generate.
10237
c2f05ac9
AC
102382002-01-20 Andrew Cagney <ac131313@redhat.com>
10239
10240 * doublest.h (floatformat_from_type): Declare.
10241 * doublest.c (floatformat_from_type): New function.
10242 (convert_typed_floating): Use.
10243
10244 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10245 call to function floatformat_from_type.
10246
10247 * gdbarch.sh (IEEE_FLOAT): Delete.
10248 * gdbarch.h, gdbarch.c: Re-generate.
10249 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10250 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10251 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10252 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10253 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10254 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10255 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10256 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10257 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10258 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10259 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10260 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10261
10262 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10263 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10264 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10265 * sh-tdep.c (sh_gdbarch_init): Ditto.
10266 * mips-tdep.c (mips_gdbarch_init): Ditto.
10267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10268 * cris-tdep.c (cris_gdbarch_init): Ditto.
10269
abf22e64
AJ
102702002-01-20 Jiri Smid <smid@suse.cz>
10271
10272 * configure.host, configure.tgt: Support x86-64.
10273 * NEWS: Note new target x86-64.
10274
b7c4cbf8
AJ
10275 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10276 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10277 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10278 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10279 x86-64-linux-nat.o): Fix dependencies.
10280
82600034
AC
102812002-01-19 Andrew Cagney <ac131313@redhat.com>
10282
10283 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10284 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10285 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10286 * config/sparc/xm-sun4os4.h: Delete file.
10287 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10288
bbe5c628
AC
102892002-01-19 Andrew Cagney <ac131313@redhat.com>
10290
10291 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10292 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10293 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10294 * config/i386/i386lynx.mh (XM_FILE): Delete.
10295 * config/rs6000/xm-rs6000ly.h: Delete file.
10296 * config/sparc/xm-sparclynx.h: Delete file.
10297 * config/m68k/xm-m68klynx.h: Delete file.
10298 * config/i386/xm-i386lynx.h: Delete file.
10299 * config/xm-lynx.h: Delete file.
10300 * config/djgpp/fnchange.lst: Update.
10301
f8453e34
JT
103022002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10303
10304 * alpha-tdep.c (alpha_register_byte): New function.
10305 (alpha_register_raw_size): Ditto.
10306 (alpha_register_virtual_size): Ditto.
10307 (alpha_skip_prologue_internal): Renamed from
10308 alpha_skip_prologue.
10309 (alpha_skip_prologue): New version that calls
10310 alpha_skip_prologue_internal.
10311 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10312 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10313 second argument from alpha_skip_prologue.
10314 (REGISTER_BYTE): Use alpha_register_byte.
10315 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10316 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10317 (FRAMELESS_FUNCTION_INVOCATION): Use
10318 generic_frameless_function_invocation_not.
10319 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10320 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10321
52d9e613
AC
103222002-01-19 Andrew Cagney <ac131313@redhat.com>
10323
10324 * config/mips/xm-news-mips.h: Delete file.
10325 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10326
10327 * config/m88k/xm-m88k.h: Delete file.
10328 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10329 * config/m88k/xm-delta88v4.h: Ditto.
10330 * config/m88k/xm-delta88.h: Ditto.
10331
10332 * config/alpha/xm-fbsd.h: Delete file.
10333 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10334
10335 * config/sparc/xm-sparc.h: Delete file.
10336 * Makefile.in (xm-sun4os4.h): Delete dependency.
10337 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10338 * config/sparc/xm-sun4os4.h: Ditto.
10339 * config/sparc/xm-linux.h: Ditto.
10340
10341 * config/i386/xm-windows.h: Delete file.
10342
2d1b2124
AC
103432002-01-19 Andrew Cagney <ac131313@redhat.com>
10344
10345 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10346 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10347
ee1f65f0
JT
103482002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10349
10350 * alpha-tdep.c (alpha_call_dummy_words): New.
10351 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10352 (CALL_DUMMY_P): Define.
10353 (CALL_DUMMY_WORDS): Define.
10354 (SIZEOF_CALL_DUMMY_WORDS): Define.
10355
98081e55
PB
103562002-01-19 Per Bothner <per@bothner.com>
10357
10358 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10359 isn't NULL, which can happen with some gcj-3.x-produced code.
10360
0d056799
JT
103612002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10362
10363 * alpha-tdep.c (alpha_register_virtual_type): New function.
10364 (alpha_init_frame_pc_first): Ditto.
10365 (alpha_fix_call_dummy): Ditto.
10366 (alpha_store_struct_return): Ditto.
10367 (alpha_extract_struct_value_address): Ditto.
10368 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10369 alpha_register_virtual_type.
10370 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10371 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10372 alpha_extract_struct_value_address.
10373 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10374 (INIT_FRAME_PC): Use init_frame_pc_noop.
10375 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10376
4604bcad
MK
103772002-01-19 Mark Kettenis <kettenis@gnu.org>
10378
10379 * i386gnu-nat.c: Include "i386-tdep.h".
10380 (fetch_fpregs): Simplify code dealing with uninitialized floating
10381 point states such that it doesn't require FP7_REGNUM.
10382
140f9984
JT
103832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10384
abf22e64
AJ
10385 * alpha-tdep.c (frame_extra_info): New.
10386 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10387 frame->extra_info.
10388 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10389 (alpha_frame_saved_pc): Use frame->extra_info.
10390 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10391 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10392 (init_extra_frame_info): Rename to...
10393 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10394 (alpha_print_extra_frame_info): New function.
140f9984
JT
10395 (alpha_frame_locals_address): Ditto.
10396 (alpha_frame_args_address): Ditto.
abf22e64 10397 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10398 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10399 alpha_frame_args_address.
abf22e64 10400 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10401 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10402 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10403 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10404 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10405 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10406
d734c450
JT
104072002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10408
10409 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10410 (alpha_cannot_fetch_register): Ditto.
10411 (alpha_cannot_store_register): Ditto.
10412 (alpha_register_convertible): Ditto.
10413 (alpha_use_struct_convention): Ditto.
10414 * config/alpha/tm-alpha.h: Update copyright years.
10415 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10416 (INNER_THAN): Use core_addr_lessthan.
10417 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10418 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10419 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10420 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10421 (FRAME_CHAIN): Remove unnecessary cast.
10422
b4ceaee6
AC
104232002-01-18 Andrew Cagney <ac131313@redhat.com>
10424
10425 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10426 obsolete.
10427
0a65a603
AC
104282002-01-18 Andrew Cagney <ac131313@redhat.com>
10429
10430 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10431 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10432 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10433 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10434 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10435 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10436 * x86-64-linux-nat.c: Ditto.
10437
636a6dfc
JT
104382002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10439
abf22e64 10440 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10441 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10442 (REGISTER_NAME): Define.
10443
acceddb6
JT
104442002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10445
10446 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10447
ec32e4be
JT
104482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10449
10450 * alpha-tdep.c: Update copyright years.
10451 (alpha_next_pc): New function.
10452 (alpha_software_single_step): Ditto.
10453 * config/alpha/tm-alpha.h: Add prototype for
10454 alpha_software_single_step.
10455
e771a871
JT
104562002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10457
10458 * alphabsd-nat.c: Update copyright years.
10459 (fill_gregset): Use regcache_collect.
10460 (fill_fpregset): Likewise.
10461 (fetch_inferior_registers): Only fetch integer registers
10462 if requested to do so.
10463 (store_inferior_registers): Only store integer registers
10464 if requested to do so.
10465
7708fa01
AC
104662002-01-17 Andrew Cagney <ac131313@redhat.com>
10467
10468 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10469 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10470 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10471 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10472 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10473 * config/arm/linux.mh (XDEPFILES): Delete.
10474 * config/arm/nbsd.mh (XDEPFILES): Delete.
10475 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10476 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10477 * config/i386/i386m3.mh (XDEPFILES): Delete.
10478 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10479 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10480 * config/i386/fbsd.mh (XDEPFILES): Delete.
10481 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10482 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10483 * config/i386/i386v4.mh (XDEPFILES): Delete.
10484 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10485 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10486 * config/i386/i386aix.mh (XDEPFILES): Delete.
10487 * config/i386/go32.mh (XDEPFILES): Delete.
10488 * config/i386/cygwin.mh (XDEPFILES): Delete.
10489 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10490 * config/i386/i386mach.mh (XDEPFILES): Delete.
10491 * config/i386/i386v32.mh (XDEPFILES): Delete.
10492 * config/i386/linux.mh (XDEPFILES): Delete.
10493 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10494 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10495 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10496 * config/i386/i386sco.mh (XDEPFILES): Delete.
10497 * config/i386/i386v.mh (XDEPFILES): Delete.
10498 * config/i386/nbsd.mh (XDEPFILES): Delete.
10499 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10500 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10501 * config/i386/symmetry.mh (XDEPFILES): Delete.
10502 * config/i386/obsd.mh (XDEPFILES): Delete.
10503 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10504 * config/ia64/linux.mh (XDEPFILES): Delete.
10505 * config/ia64/aix.mh (XDEPFILES): Delete.
10506 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10507 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10508 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10509 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10510 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10511 * config/m68k/linux.mh (XDEPFILES): Delete.
10512 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10513 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10514 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10515 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10516 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10517 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10518 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10519 * config/m88k/delta88.mh (XDEPFILES): Delete.
10520 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10521 * config/m88k/m88k.mh (XDEPFILES): Delete.
10522 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10523 * config/mips/linux.mh (XDEPFILES): Delete.
10524 * config/mips/irix6.mh (XDEPFILES): Delete.
10525 * config/mips/irix5.mh (XDEPFILES): Delete.
10526 * config/mips/irix4.mh (XDEPFILES): Delete.
10527 * config/mips/irix3.mh (XDEPFILES): Delete.
10528 * config/mips/decstation.mh (XDEPFILES): Delete.
10529 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10530 (NATDEPFILES): Move core-aout.o to here.
10531 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10532 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10533 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10534 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10535 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10536 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10537 * config/pa/hpux11.mh (XDEPFILES): Delete.
10538 * config/powerpc/aix.mh (XDEPFILES): Delete.
10539 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10540 * config/powerpc/linux.mh (XDEPFILES): Delete.
10541 * config/romp/rtbsd.mh: Rename XDEPFILES.
10542 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10543 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10544 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10545 * config/s390/s390.mh (XDEPFILES): Delete.
10546 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10547 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10548 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10549 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10550 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10551 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10552 * config/sparc/linux.mh (XDEPFILES): Delete.
10553 * config/vax/vaxult.mh (XDEPFILES): Delete.
10554 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10555 * Makefile.in (DEPFILES): Remove XDEPFILES.
10556
375fc983
AC
105572002-01-17 Andrew Cagney <ac131313@redhat.com>
10558
10559 * utils.c (internal_verror): Fix comments, default is yes not no.
10560 Update queries to match. Default to quit and dump core.
10561
8926118c
AC
105622002-01-17 Andrew Cagney <ac131313@redhat.com>
10563
10564 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10565 copyright.
10566 * defs.h, event-top.c, gdbcmd.h: Ditto.
10567 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10568 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10569 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10570 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10571 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10572 * mi/mi-main.c:Ditto.
10573
10574 * stack.c, symfile.c: Update copyright.
10575
45b7b345
DJ
105762002-01-17 Daniel Jacobowitz <drow@mvista.com>
10577
db728ff7
DJ
10578 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10579 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10580 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10581 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10582
db728ff7
DJ
105832002-01-17 Daniel Jacobowitz <drow@mvista.com>
10584
10585 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10586 * gdbserver/low-lynx.c (myattach): Likewise.
10587 * gdbserver/low-nbsd.c (myattach): Likewise.
10588 * gdbserver/low-sim.c (myattach): Likewise.
10589 * gdbserver/low-sparc.c (myattach): Likewise.
10590 * gdbserver/low-sun3.c (myattach): Likewise.
10591
10592 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10593
db728ff7 10594 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10595 (main): Handle "--attach".
10596
8de3c354
AC
105972002-01-16 Andrew Cagney <ac131313@redhat.com>
10598
10599 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10600 maintainer.
10601
b0129042
DJ
106022002-01-15 Daniel Jacobowitz <drow@mvista.com>
10603
10604 * c-typeprint.c (is_type_conversion_operator): Add additional
10605 check for non-conversion operators.
10606
ba8679fb 106072002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10608
10609 * linux-proc.c: Add "info proc" command, a la procfs.c.
10610 (read_mapping): New function, abstract and re-use code.
10611 (linux_find_memory_regions): Use new func read_mapping.
10612 (linux_info_proc_cmd): New function, implement "info proc".
10613 (_initialize_linux_proc): Add new command "info proc".
10614
e4f9b4d5
MS
106152002-01-15 Michael Snyder <msnyder@redhat.com>
10616
10617 * symfile.c (generic_load): Use bfd_map_over_sections method
10618 instead of manipulating bfd structure members directly.
10619 (add_section_size_callback): New function, bfd sections callback
10620 used by generic_load.
10621 (load_sections_callback): New function, bfd sections callback
10622 used by generic_load.
10623
08cf96df
EZ
106242002-01-15 Elena Zannoni <ezannoni@redhat.com>
10625
abf22e64 10626 [Based on work by Jim Blandy]
08cf96df
EZ
10627 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10628 (builtin_type_vec128): Export.
10629 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10630 types.
10631 (builtin_type_vec128): New builtin type for 128 bit vector
10632 registers.
10633 (build_gdbtypes): Initialize builtin_type_v16qi and
10634 builtin_type_v8hi. Create the vec128 register builtin type
10635 structure.
10636 (build_builtin_type_vec128): New function.
abf22e64 10637 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10638 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10639 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10640 AltiVec register to new builtin type.
10641
d7242108
DJ
106422001-01-15 Daniel Jacobowitz <drow@mvista.com>
10643
10644 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10645 to make_cv_type.
10646
4ee3352d
AC
106472002-01-14 Andrew Cagney <ac131313@redhat.com>
10648
10649 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10650 CLEAN_UP_REGISTER_VALUE.
10651 * regcache.c (supply_register): Update only call.
10652
f015b2e7
AC
106532002-01-14 Andrew Cagney <ac131313@redhat.com>
10654
10655 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10656 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10657 a29k-*-vxworks* targets as obsolete.
10658
356ae49d
MS
106592002-01-14 Michael Snyder <msnyder@redhat.com>
10660
10661 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10662 until we can resolve portability issues.
10663 * gregset.h: Remove references to fpxregs.
10664 * gcore.c (gcore_command): Initialize note_sec to NULL.
10665
ade8f45e
AC
106662002-01-13 Andrew Cagney <ac131313@redhat.com>
10667
10668 * signals.c (target_signal_to_name): Rewrite. Only use
10669 signals[].name when in bounds and non-NULL.
abf22e64 10670
89c49e7a
AC
106712002-01-13 Andrew Cagney <ac131313@redhat.com>
10672
10673 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10674 * signals.c (target_signal_to_name): Verify that SIG is within the
10675 bounds of the signals array.
10676
4daa9f9f
AC
106772002-01-13 Andrew Cagney <ac131313@redhat.com>
10678
10679 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10680
ba4bbdcb
KS
106812002-01-13 Keith Seitz <keiths@redhat.com>
10682
10683 * stack.c (print_frame_info_base): Print the frame's pc
10684 only if when print_frame_info_listing_hook is not defined.
10685
575bbeb6
KS
106862002-01-13 Keith Seitz <keiths@redhat.com>
10687
10688 * varobj.c (varobj_set_value): Make sure that there were no
10689 errors evaluating the object before attempting to set its
10690 value.
10691 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10692 so this offset adjustment is no longer necessary.
10693 (create_child): Don't set the error flag if the child is
10694 a CPLUS_FAKE_CHILD.
10695 (value_of_child): If value_fetch_lazy fails, return NULL
10696 so that callers will be notified that an error occurred.
10697 (c_value_of_variable): Delay check of variable's validity
10698 until later. We actually want all structs and unions to have
10699 the value "{...}".
10700 Do not return "???" for variables which could not be evaluated.
10701 This error condition must be returned to the caller so that it
10702 can get the error condition from gdb.
10703 (cplus_name_of_child): Adjust index for vptr before figuring
10704 out the name of the child.
10705 (cplus_value_of_child): If a child's (real) parent is not valid,
10706 don't even bother trying to give a value for it. Just return
10707 an error. Change all instances in this function.
10708 (cplus_type_of_child): If our parent is one of the "fake"
10709 parents, we need to get at the type of the real parent, and
10710 derive the child's true type using this information.
10711
b76898ab
AC
107122002-01-13 Andrew Cagney <ac131313@redhat.com>
10713
10714 From 2002-01-09 John Marshall <johnm@falch.net>:
10715 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10716 sources.redhat.com, and tweak some related URLs which had
10717 suffered from linkrot.
10718
b6649e88
AC
107192002-01-13 Andrew Cagney <ac131313@redhat.com>
10720
10721 From Jeff law:
10722 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10723 structures passed in registers.
10724
82cc5033
EZ
107252002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10726
10727 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10728 white space which prevented compilation. Reported by DSK
10729 <dsk@student.unsw.edu.au>.
10730
ba5f2f8a
MS
107312002-01-11 Michael Snyder <msnyder@redhat.com>
10732
fbd35540
MS
10733 * symfile.c (build_section_addr_info_from_section_tab):
10734 Use bfd access method instead of manipulating bfd directly.
10735 (syms_from_objfile): Ditto.
10736 (simple_overlay_update_1): Ditto.
10737 (simple_overlay_update): Ditto.
10738 (generic_load): Ditto.
10739 (overlay_unmapped_address): FIXME comment, bfd access methods.
10740 (sections_overlap): FIXME comment, bfd access methods.
10741 (pc_in_mapped_range): FIXME comment, bfd access methods.
10742 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10743 (section_is_mapped): FIXME comment, bfd access methods.
10744 (section_is_overlay): FIXME comment, bfd access methods.
10745
ba5f2f8a
MS
10746 * symfile.c (generic_load): Whitespace and long line cleanups.
10747 Remove duplicate variable, change several local variables to
10748 more appropriate data types.
10749 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10750
17df2af6
AC
107512002-01-12 Andrew Cagney <ac131313@redhat.com>
10752
10753 From Peter Schauer:
10754 * language.c (longest_local_hex_string_custom): Use phex_nz to
10755 convert NUM to a hex string.
10756
ec920329
EZ
107572002-01-12 Elena Zannoni <ezannoni@redhat.com>
10758
10759 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10760 the function.
538a76d6 10761 Update Copyright year.
ec920329 10762
3abd2e01
AC
107632002-01-12 Andrew Cagney <ac131313@redhat.com>
10764
10765 * language.c (longest_raw_hex_string): Delete unused function.
10766
b21b22e0
PS
107672002-01-11 Petr Sorfa <petrs@caldera.com>
10768
10769 * MAINTAINERS (write-after-approval): Add myself.
10770 * dwarf2read.c (read_tag_string_type): Handling of
10771 DW_AT_byte_size.
10772 (read_tag_string_type): FORTRAN fix to prevent propagation of
10773 first string size.
10774 (set_cu_language): Handling of DW_LANG_Fortran95
10775
747fe712
RE
107762002-01-11 Richard Earnshaw <rearnsha@arm.com>
10777
10778 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10779 GETPID(inferior_ptid).
10780 (store_inferior_registers): Likewise.
10781
f1bea926
JM
107822002-01-10 Jason Merrill <jason@redhat.com>
10783
10784 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10785 Fix DW_OP_minus.
10786
ae940673
AC
107872002-01-10 Andrew Cagney <ac131313@redhat.com>
10788
10789 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10790 and bfd/elf32-sh-nbsd.c.
10791
00546b04
MS
107922002-01-10 Michael Snyder <msnyder@redhat.com>
10793
352ed7b4
MS
10794 * NEWS: Mention --pid and corefile/proc-id behavior change.
10795
c18be923
MS
10796 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10797 * gcore.c: Include cli/cli-decode.h instead of command.h.
10798
00546b04
MS
10799 * main.c (captured_main): Add new command line option "--pid".
10800 If the second command line argument (following the symbol-file)
10801 begins with a digit, try to attach to it before trying to open
10802 it as a corefile.
10803 (print_gdb_help): Document the "--pid" argument.
10804
db60ec62
EZ
108052002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10806
10807 * completer.c (command_completer): New function.
10808
10809 * completer.h <command_completer>: Add prototype.
10810
10811 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10812 completer for the "help" command.
10813
39c22d1a
JM
108142002-01-09 Jason Merrill <jason@redhat.com>
10815
10816 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10817
c564377f
MS
108182002-01-09 Michael Snyder <msnyder@redhat.com>
10819
975aec09
MS
10820 * i386-linux-nat.c (fill_fpxregset): Make global.
10821 (store_fpxregset): Ditto.
10822
db4a10fa
MS
10823 * gregset.h (gdb_fpxregset_t): Define.
10824 (supply_fpxregset): Prototype.
10825 (fill_fpxregset): Prototype.
10826
c564377f
MS
10827 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10828
c3d45d70
RE
108292002-01-09 Richard Earnshaw <rearnsha@arm.com>
10830
10831 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10832 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10833 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10834
fcc87af1
AC
108352002-01-09 Andrew Cagney <ac131313@redhat.com>
10836
10837 * MAINTAINERS: Update target maintainer rules so that any
10838 Maintainer can approve a tested patch for a maintenance-only
10839 target.
10840
dd96c05b
RE
108412002-01-09 Richard Earnshaw <rearnsha@arm.com>
10842
d4297db9 10843 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 10844
d4297db9 10845 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
10846 IN_SIGTRAMP.
10847
145fdc6e
MS
108482002-01-08 Michael Snyder <msnyder@redhat.com>
10849
10850 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10851 real name of the executable, rather than the /proc name.
10852
be4d1333
MS
108532002-01-03 Michael Snyder <msnyder@redhat.com>
10854
10855 Implement a "generate-core-file" command in gdb, save target state.
10856 * gcore.c: New file. Implement new command 'generate-core-file'.
10857 Save a corefile image of the current state of the inferior.
10858 * linux-proc.c: Add linux-specific code for saving corefiles.
10859 * target.h (struct target_ops): Add new target vectors for saving
10860 corefiles; to_find_memory_regions and to_make_corefile_notes.
10861 (target_find_memory_regions): New macro.
10862 (target_make_corefile_notes): New macro.
10863 * target.c (update_current_target): Inherit new target methods.
10864 (dummy_find_memory_regions): New place-holder method.
10865 (dummy_make_corefile_notes): New place-holder method.
10866 (init_dummy_target): Initialize new dummy target vectors.
10867 * exec.c (exec_set_find_memory_regions): New function.
10868 Allow the exec_ops vector for memory regions to be taken over.
10869 (exec_make_note_section): New function, target vector method.
10870 * defs.h (exec_set_find_memory_regions): Export prototype.
10871 * procfs.c (proc_find_memory_regions): New function, corefile method.
10872 (procfs_make_note_section): New function, corefile method.
10873 (init_procfs_ops): Set new target vector pointers.
10874 (find_memory_regions_callback): New function.
10875 (procfs_do_thread_registers): New function.
10876 (procfs_corefile_thread_callback): New function.
10877 * sol-thread.c (sol_find_memory_regions): New function.
10878 (sol_make_note_section): New function.
10879 (init_sol_thread_ops): Initialize new target vectors.
10880 * inftarg.c (inftarg_set_find_memory_regions): New function.
10881 Allow to_find_memory_regions vector to be taken over.
10882 (inftarg_set_make_corefile_notes): New function.
10883 Allow to_make_corefile_notes vector to be taken over.
10884 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10885 interface layer if not target_has_execution (may be a corefile).
10886 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10887 * config/sparc/sun4sol2.mh: Ditto.
10888 * config/alpha/alpha-linux.mh: Ditto.
10889 * config/arm/linux.mh: Ditto.
10890 * config/i386/x86-64linux.mh: Ditto.
10891 * config/ia64/linux.mh: Ditto.
10892 * config/m68k/linux.mh: Ditto.
10893 * config/mips/linux.mh: Ditto.
10894 * config/powerpc/linux.mh: Ditto.
10895 * config/sparc/linux.mh: Ditto.
10896
c6b92abd
MS
108972002-01-07 Michael Snyder <msnyder@redhat.com>
10898
10899 * arm-linux-nat.c: Remove references to regcache.c internal data
10900 (registers[] and register_valid[]).
10901
4b09dc8c
MS
109022002-01-07 Michael Snyder <msnyder@redhat.com>
10903
abf22e64
AJ
10904 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10905 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
10906 symbol file and shlibs.
10907 * Makefile.in: Add rule for linux-proc.o.
10908 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10909 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10910 * config/arm/linux.mh: Ditto.
10911 * config/i386/linux.mh: Ditto.
10912 * config/i386/x86-64linux.mh: Ditto.
10913 * config/ia64/linux.mh: Ditto.
10914 * config/m68k/linux.mh: Ditto.
10915 * config/mips/linux.mh: Ditto.
10916 * config/powerpc/linux.mh: Ditto.
10917 * config/sparc/linux.mh: Ditto.
10918
c25b74ac
PM
109192002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10920
10921 * win32-nat.c: Add i386-tdep.h dependency.
10922
94cd915f
MS
109232002-01-07 Michael Snyder <msnyder@redhat.com>
10924
c7cccb76
MS
10925 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10926 instead of bfd_get_arch_size. Don't bail out just because
10927 there's no exec_bfd.
abf22e64 10928
34c0bd93
MS
10929 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10930 * p-valprint.c (pascal_object_print_value): Ditto.
10931 * somread.c (som_symtab_read): Ditto.
10932 * symfile.c (simple_free_overlay_region_table): Ditto.
10933 * valops.c (value_assign): Ditto.
10934
21c1c920
MS
10935 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10936 use tilde_expand and strerror for opening save-tracepoints file.
10937
5bbd998e
MS
10938 * thread-db.c (thread_db_new_objfile): Indendation fix.
10939
94cd915f
MS
10940 * infptrace.c (GDB_MAX_ALLOCA): New define.
10941 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 10942 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
10943 can be overridden with whatever value is appropriate to the host).
10944 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10945 alloca to allocate potentially large buffer.
10946 * rs6000-nat.c (child_xfer_memory): Ditto.
10947 * symm-nat.c (child_xfer_memory): Ditto.
10948 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10949
494e8a93
JSC
109502002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10951
10952 From Nick Clifton <nickc@redhat.com>
10953 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10954
d0e1d48e
MS
109552002-01-07 Michael Snyder <msnyder@redhat.com>
10956
abf22e64 10957 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
10958 Don't use exec_bfd if it's NULL.
10959
290b2c7a
MK
109602002-01-06 Mark Kettenis <kettenis@gnu.org>
10961
abf22e64 10962 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 10963
aef21287
AC
109642002-01-06 Andrew Cagney <ac131313@redhat.com>
10965
10966 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10967 * gnu-nat.c: Ditto.
10968
30efa627
AC
109692002-01-06 Andrew Cagney <ac131313@redhat.com>
10970
10971 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10972 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10973 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10974 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10975 z8k-coff have not been multi-arched. Update z8k-coff build
10976 status.
10977
9b4ff276
AC
109782002-01-06 Andrew Cagney <ac131313@redhat.com>
10979
10980 * MAINTAINERS: Mark a29k target as obsolete.
10981 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10982 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10983 comments.
10984 * NEWS: Note that a29k targets are obsolete.
10985 * a29k-tdep.c: Mark as obsolete.
10986 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10987 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10988 a29k-*-vxworks* targets as obsolete.
10989 * remote-adapt.c: Obsolete.
10990 * remote-eb.c: Obsolete.
10991 * remote-mm.c: Obsolete.
10992 * remote-udi.c: Obsolete.
10993 * config/a29k/a29k-udi.mt: Obsolete.
10994 * config/a29k/a29k.mt: Obsolete.
10995 * config/a29k/tm-a29k.h: Obsolete.
10996 * config/a29k/tm-vx29k.h: Obsolete.
10997 * config/a29k/vx29k.mt: Obsolete.
10998
a9011d31
AC
109992002-01-05 Andrew Cagney <ac131313@redhat.com>
11000
11001 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11002 with BFD_ENDIAN_BIG.
11003
9299404e
AC
110042002-01-05 Andrew Cagney <ac131313@redhat.com>
11005
11006 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11007 * configure, config.in: Re-generate.
11008 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11009 * defs.h: Do not include <endian.h>.
11010
7e89e357
JT
110112002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11012
11013 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11014 * config.in: Regenerate.
11015 * configure.in: Update copyright years.
11016 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11017 * configure: Regenerate.
11018 * i386bsd-nat.c: Update copyright years.
11019 (fill_gregset): Use regcache_collect.
11020 (fetch_inferior_registers): Only fetch integer registers
11021 if requested to do so. Add support for XMM registers
11022 using PT_GETXMMREGS.
11023 (store_inferior_registers): Only store integer registers
11024 if requested to do so. Add support for XMM registers
11025 using PT_SETXMMREGS.
11026 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11027 (store_inferior_registers): Remove.
11028 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11029 (fetch_elfcore_registers): New function.
11030 (i386nbsd_elfcore_fns): New.
11031 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11032 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11033 i386bsd-nat.o.
11034 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11035 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11036 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11037 * config/i386/tm-nbsd.h: Update copyright years.
11038 (HAVE_SSE_REGS): Define.
11039 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11040 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11041 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11042 (SIGCONTEXT_PC_OFFSET): Remove.
11043 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11044
a752853e
AC
110452002-01-05 Andrew Cagney <ac131313@redhat.com>
11046
11047 * configure.tgt: Remove powerpc-*-macos* target.
11048 * config/m68k/xm-mpw.h: Delete file.
11049 * config/xm-mpw.h: Delete file.
11050 * ser-mac.c: Delete file.
11051 * mpw-make.sed: Delete file.
11052 * mpw-config.in: Delete file.
11053 * mac-xdep.c: Delete file.
11054 * mac-gdb.r: Delete file.
11055 * mac-defs.h: Delete file.
11056 * mac-nat.c: Delete file.
11057 * config/powerpc/macos.mh: Delete file.
11058 * config/powerpc/macos.mt: Delete file.
11059 * config/powerpc/nm-macos.h: Delete file.
11060 * config/powerpc/tm-macos.h: Delete file.
11061 * source.c (openp, open_source_file): Remove obsolete code.
11062 * top.c (gdb_readline): Ditto.
11063 * utils.c (query): Ditto.
11064 * event-top.c (display_gdb_prompt): Ditto.
11065 * Makefile.in (ser-mac.o): Delete obsolete target.
11066 * NEWS: Update.
11067
d7449b42
AC
110682002-01-04 Andrew Cagney <ac131313@redhat.com>
11069
11070 * defs.h (BIG_ENDIAN): Delete macro definition.
11071 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11072 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11073 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11074 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11075 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11076 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11077 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11078 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11079 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11080 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11081 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11082 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11083 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11084 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11085 * gdbarch.c: Re-generate.
11086
356374e8
DJ
110872002-01-04 Daniel Jacobowitz <drow@mvista.com>
11088
11089 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11090 for core files.
11091
a2b8f8f8
JT
110922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11095
12466af9
AC
110962002-01-04 Andrew Cagney <ac131313@redhat.com>
11097
11098 * value.h (value_ptr): Delete typedef.
11099
3549ab40
JT
111002002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11101
11102 * i386nbsd-nat.c: Update copyright years.
11103 Include i386-tdep.h.
11104
fedbd091
EZ
111052002-01-04 Elena Zannoni <ezannoni@redhat.com>
11106
11107 * stabsread.c: Update copyright years.
11108
11109 From Debashis Mahata <debashis.mahata@wipro.com>:
11110 (read_struct_fields): Deal with Sun C compiler erroneous stab
11111 output for structs and unions.
fec8b34f 11112 Fix PR gdb/269.
fedbd091 11113
eb43544b
DJ
111142002-01-04 Daniel Jacobowitz <drow@mvista.com>
11115
11116 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11117 prototype.
11118
1514d34e
DJ
111192002-01-04 Daniel Jacobowitz <drow@mvista.com>
11120
11121 * cp-abi.c: Fix whitespace.
11122 (baseclass_offset): New wrapper function.
11123 * cp-abi.h (baseclass_offset): Add prototype.
11124 (struct cp_abi_ops): Add baseclass_offset pointer.
11125
11126 * valops.c (vb_match): Move to...
11127 * gnu-v2-abi.c (vb_match): here.
11128 * valops.c (baseclass_offset): Move to...
11129 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11130
11131 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11132
11133 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11134 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11135 * hpacc-abi.c (init_hpacc_ops): Likewise.
11136
7f8c9282
DJ
111372002-01-04 Daniel Jacobowitz <drow@mvista.com>
11138
11139 * valops.c (find_overload_match): Accept obj as a
11140 reference parameter. Update it before returning.
11141 * value.h (find_overload_match): Update prototype.
11142 * eval.c (evaluate_subexp_standard): Pass object to
11143 find_overload_match by reference.
11144
f23631e4
AC
111452002-01-03 Andrew Cagney <ac131313@redhat.com>
11146
11147 * valarith.c: Replace value_ptr with struct value pointer. Remove
11148 register attribute from value declarations.
11149 * valops.c: Ditto.
11150 * value.h: Ditto.
11151 * scm-lang.c (scm_lookup_name): Ditto.
11152
79e10fab 111532002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11154
79e10fab
AC
11155 Abstract the functionality of iterating over mapped memory
11156 regions into a general purpose iterator function.
abf22e64 11157 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11158 iterator for memory sections.
11159 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11160 (solib_mappings_callback): New function, callback for above.
11161 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11162 (info_mappings_callback): New function, callback for above.
11163
11164 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11165
c5ad026a
MK
111662002-01-01 Mark Kettenis <kettenis@gnu.org>
11167
d2a7c97a
MK
11168 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11169 * i386-tdep.c: Include "elf-bfd.h".
11170 (process_note_abi_tag_sections): New function.
11171 (i386_gdbarch_init): Add code to recognize various OS/ABI
11172 combinations.
11173
c5ad026a
MK
11174 * maint.c (_initialize_maint_cmds): Add missing \ in
11175 string-literal.
11176
a1a5b71e 11177For older changes see ChangeLog-2001
c906108c
SS
11178\f
11179Local Variables:
11180mode: change-log
11181left-margin: 8
11182fill-column: 74
11183version-control: never
11184End:
This page took 0.892557 seconds and 4 git commands to generate.