4fa4228a0ce64b7120e086bd072510d633debb05
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-18 Michael Snyder <msnyder@redhat.com>
2
3 * objc-lang.c: First clean-up round: comments, indentation.
4 * objc-lang.h: Ditto.
5 * objc-lang.y: Ditto.
6
7 2002-09-18 Andrew Cagney <ac131313@redhat.com>
8
9 * maint.c (maintenance_internal_error): Print the parameter as the
10 error message.
11 (maintenance_internal_warning): New function.
12 (_initialize_maint_cmds): Add command `maint internal-warning'.
13
14 * defs.h (internal_warning, internal_vwarning): Declare.
15 * utils.c (struct internal_problem): Define.
16 (internal_vproblem): New function.
17 (internal_warning): New function.
18 (internal_vwarning): New function.
19 (internal_warning_problem, internal_error_problem): New variables.
20 (internal_verror): Just call internal_vproblem.
21
22 2002-09-18 Michael Snyder <msnyder@redhat.com>
23
24 * objc-lang.c: New file, support for Objective-C.
25 Preliminary check-in, not yet integrated into gdb.
26 * objc-lang.h: New file.
27 * objc-exp.y: New file.
28
29 2002-09-18 Andrew Cagney <ac131313@redhat.com>
30
31 * infrun.c (signal_stop_update): Convert definition to ISO C.
32 (signal_print_update): Ditto.
33 (signal_pass_update): Ditto.
34 * inflow.c (terminal_save_ours): Ditto.
35
36 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
37 comments.
38
39 * config/djgpp/fnchange.lst: Handle name clashes between
40 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
41 bfd/coff-tic80.c.
42
43 * i386-linux-tdep.h: Fix tipo.
44
45 2002-09-18 Adam Fedor <fedor@gnu.org>
46
47 * MAINTAINERS: Add myself to the Write After Approval list.
48
49 2002-09-18 Jim Blandy <jimb@redhat.com>
50
51 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
52 texthigh and textlow to reader-specific structs caused
53 objfile_relocate to miss them. This is fixable, but the work that
54 the change was supposed to prepare GDB for never got done anyway.
55
56 2002-09-18 David Carlton <carlton@math.stanford.edu>
57
58 * MAINTAINERS: Alphabetize Write After Approval list.
59
60 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
61
62 Fix PR gdb/709
63 * values.c (value_static_field): Call read_var_value.
64
65 2002-09-18 Andrew Cagney <ac131313@redhat.com>
66
67 * valops.c (hand_function_call): Align the initial stack pointer
68 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
69 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
70 return value.
71 * mips-tdep.c (mips_frame_align): New function.
72 (mips_gdbarch_init): Set frame_align.
73 * gdbarch.sh (FRAME_ALIGN): New method.
74 * gdbarch.h, gdbarch.c: Re-generate.
75
76 2002-09-18 Michal Ludvig <mludvig@suse.cz>
77
78 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
79 registers.
80
81 2002-09-17 Andrew Cagney <ac131313@redhat.com>
82
83 * NEWS: Mention that MIPS $fp behavior changed.
84 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
85 reference to FP_REGNUM.
86 (mipsnbsd_cannot_store_register): Ditto.
87 * mips-linux-nat.c: Update copyright.
88 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
89 (mips_linux_cannot_store_register): Ditto.
90 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
91 * config/mips/tm-mips.h: Update copyright.
92 (FP_REGNUM): Delete macro.
93 (MIPS_REGISTER_NAMES): Replace "fp" with "".
94 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
95 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
96 (mips_r3041_reg_names, mips_r3051_reg_names)
97 (mips_r3081_reg_names): Replace "fp" with "".
98 Fix PR gdb/480.
99
100 2002-09-17 Theodore A. Roth <troth@verinet.com>
101
102 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
103 generic_read_register_dummy() (PR gdb/703).
104 (avr_push_return_address): #if 0 out unused vars.
105 (avr_gdbarch_init): Enable use of avr_push_return_address().
106
107 2002-09-17 Michael Snyder <msnyder@redhat.com>
108
109 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
110 RTE will take care of it.
111
112 2002-09-17 Andrew Cagney <ac131313@redhat.com>
113
114 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
115 invalid, return SP_REGNUM.
116
117 2002-09-17 Michael Snyder <msnyder@redhat.com>
118
119 * mips-tdep.c (mips_pop_frame): Read saved values of floating
120 point registers without sign extension.
121
122 2002-09-17 Andrew Cagney <cagney@redhat.com>
123
124 * blockframe.c (deprecated_read_register_dummy): Rename
125 generic_read_register_dummy.
126 * frame.c (frame_unwind_signed_register): New function.
127 (frame_unwind_unsigned_register): New function.
128 * frame.h (frame_unwind_signed_register): Declare.
129 (frame_unwind_unsigned_register): Declare.
130 (deprecated_read_register_dummy): Rename
131 generic_read_register_dummy.
132
133 * h8300-tdep.c (h8300_frame_chain): Update.
134 (h8300_frame_saved_pc): Update.
135 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
136 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
137 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
138 (s390_frame_chain): Update.
139 * v850-tdep.c (v850_find_callers_reg): Update.
140 (v850_frame_saved_pc): Update.
141 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
142 (m32r_find_callers_reg): Update.
143 (m32r_frame_saved_pc): Update.
144 * sh-tdep.c (sh_find_callers_reg): Update.
145 (sh64_get_saved_pr): Update.
146 (sh_init_extra_frame_info): Update.
147 (sh_init_extra_frame_info): Update.
148 (sh64_init_extra_frame_info): Update.
149 (sh64_init_extra_frame_info): Update.
150 * mcore-tdep.c (mcore_find_callers_reg): Update.
151 (mcore_frame_saved_pc): Update.
152 (mcore_init_extra_frame_info): Update.
153 * i386-tdep.c (i386_frame_saved_pc): Update.
154 * ia64-tdep.c (ia64_frame_saved_pc): Update.
155 (ia64_init_extra_frame_info): Update.
156 (ia64_init_extra_frame_info): Update.
157 * d10v-tdep.c (d10v_frame_saved_pc): Update.
158 * cris-tdep.c (cris_init_extra_frame_info): Update.
159 * avr-tdep.c (avr_frame_chain): Update.
160 (avr_init_extra_frame_info): Update.
161 (avr_frame_saved_pc): Update.
162 * arm-tdep.c (arm_find_callers_reg): Update.
163 (arm_init_extra_frame_info): Update.
164 (arm_frame_saved_pc): Update.
165
166 2002-09-17 Tom Tromey <tromey@redhat.com>
167
168 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
169 is "'".
170
171 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
172
173 * MAINTAINERS: Remove "non multi-arched" text from h8300.
174 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
175 NEXT_PROLOGUE_INSN.
176 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
177 NEXT_PROLOGUE_INSN.
178
179 2002-09-16 Joel Brobecker <brobecker@gnat.com>
180
181 * osfsolib.c: Remove file, replaced by solib-osf.c.
182 * Makefile.in: Remove compilation rules for osfsolib.c.
183
184 2002-09-16 David Carlton <carlton@math.stanford.edu>
185
186 * cp-valprint.c (cp_print_class_method): Correct args to
187 check_stub_method_group.
188
189 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
190
191 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
192 `set architecture'. Unify naming convention of functions.
193 (h8300_skip_prologue): Improve prologue analysis.
194 (h8300_push_arguments): Rewritten to more closely match GCC's
195 bizarre argument-passing behavior, along with the comment describing
196 said behavior.
197 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
198 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
199 sim, remote-e7000.c, remote-hms.c and remote.c
200
201 2002-09-15 Mark Kettenis <kettenis@gnu.org>
202
203 * i386-tdep.c (gdb_print_insn_i386): Removed.
204 (i386_print_insn): New function.
205 (i386_gdbarch_init): Set print_insn to i386_print_insns.
206 (_initialize_i386_tdep): Don't initialize tm_print_insn and
207 tm_print_insn_info.
208
209 2002-09-14 Mark Kettenis <kettenis@gnu.org>
210
211 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
212 zero.
213
214 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
215
216 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
217 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
218 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
219
220 2002-09-13 Christopher Faylor <cgf@redhat.com>
221
222 * win32-nat.c (child_create_inferior): Honor 'tty' command.
223
224 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
225
226 * gdbtypes.c (check_stub_method): Make static.
227 (check_stub_method_group): New function.
228 * gdbtypes.h: Update prototypes.
229 * cp-support.c: New file.
230 * cp-support.h: New file.
231
232 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
233 (update_method_name_from_physname): New function.
234 (read_member_functions): Correct method names for operators
235 and v3 constructors/destructors. Separate v2 constructors and
236 destructors.
237 * Makefile.in (stabsread.o): Update dependencies.
238 (SFILES): Add cp-support.c.
239 (COMMON_OBS): Add cp-support.o.
240 (cp_support_h, cp-support.o): Add.
241
242 * cp-valprint.c (cp_print_class_method): Call
243 check_stub_method_group instead of check_stub_method. Remove
244 extraneous QUITs.
245 * p-valprint.c (pascal_object_print_class_method): Likewise.
246 * valops.c (search_struct_method): Likewise.
247 (find_method_list, value_struct_elt_for_reference): Likewise.
248
249 2002-09-13 Andrew Cagney <cagney@redhat.com>
250
251 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
252 * gdbarch.h, gdbarch.c: Regenerate.
253
254 2002-09-13 Andrew Cagney <ac131313@redhat.com>
255
256 * frame.c (find_saved_register): Delete function.
257 * frame.h (find_saved_register): Delete declaration.
258 Fix PR gdb/631.
259
260 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
261
262 * mips-tdep.c (read_next_frame_reg): Re-hack using
263 frame_register_unwind.
264
265 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
266
267 * mips-tdep.c (mips_get_saved_register): Re-hack using
268 frame_register_unwind.
269
270 2002-09-12 Joel Brobecker <brobecker@gnat.com>
271
272 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
273 vector. Will be useful for Interix.
274 * gdbarch.h, gdbarch.c: Regenerate.
275
276 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
277 name of the malloc function by NAME_OF_MALLOC.
278
279 2002-09-12 Joel Brobecker <brobecker@gnat.com>
280
281 * value.h (find_function_in_inferior): Add const keyword to
282 one of the parameters. Allows us to invoke this function with
283 a const char *.
284 * valops.c (find_function_in_inferior): Likewise.
285
286 2002-09-12 Joel Brobecker <brobecker@gnat.com>
287
288 * exec.c (xfer_memory): Fix compilation warning with old versions
289 of GCC.
290 * tracepoint.c (trace_find_tracepoint_command): Likewise.
291
292 2002-09-12 David Carlton <carlton@math.stanford.edu>
293
294 * symtab.h: Run through gdb_indent.h.
295 Add 2002 to Copyright year list.
296
297 2002-09-12 Alan Modra <amodra@bigpond.net.au>
298
299 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
300 mach constants.
301 * MAINTAINERS: Add myself to write after approval list.
302
303 2002-09-11 J. Brobecker <brobecker@gnat.com>
304
305 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
306
307 2002-09-11 J. Brobecker <brobecker@gnat.com>
308
309 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
310 Interix.
311
312 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
313
314 * procfs.c (do_detach): Clear current signal, not just fault.
315 Corrects problem with breakpoint trap signal leaking to detached
316 process on Tru64.
317
318 2002-09-10 Michael Snyder <msnyder@redhat.com>
319
320 * buildsym.c (finish_block): Protect against null pointer.
321
322 2002-09-10 Andrew Cagney <cagney@redhat.com>
323
324 * infcmd.c (default_print_registers_info): Send all output to
325 ``file'' instead of ``gdb_stdout''.
326
327 2002-09-10 Michael Snyder <msnyder@redhat.com>
328
329 * mips-tdep.c (mips_extract_struct_value_address): Make val a
330 LONGEST, and use signed register read (addresses are sign-
331 extended for mips).
332
333 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
334
335 * event-loop.c (gdb_do_one_event): Make public.
336 * event-loop.h (gdb_do_one_event): Declare.
337
338 2002-09-10 Jeff Law <law@redhat.com>
339
340 * infttrace.c (child_resume): Simplify and rework to avoid
341 TT_PROC_CONTINUE.
342
343 2002-09-09 Fred Fish <fnf@intrinsity.com>
344
345 * printcmd.c (print_scalar_formatted): "len" is the number of
346 target bytes, NOT the number of target bits.
347
348 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
349
350 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
351 * top.c (init_main): Set rl_terminal_name.
352
353 2002-09-08 Aidan Skinner <aidan@velvet.net>
354
355 * ada-lang.c (ada_array_bound, ada_type_match,
356 _initialize_ada_language): Fix K&R definitions.
357 * ada-tasks.c (get_current_task): Fix K&R definitions.
358 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
359
360 2002-09-07 Christopher Faylor <cgf@redhat.com>
361
362 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
363 Add XP.
364
365 2002-09-06 Mark Kettenis <kettenis@gnu.org>
366
367 * i386-tdep.c (i386_register_virtual_type,
368 i386_register_convertible, i386_register_convert_to_virtual,
369 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
370 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
371 (i386_gdbarch_init): Fix comment. Add comments on calls that set
372 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
373 Don't set push_arguments twice.
374
375 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
376 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
377 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
378 sigtramp_end to NULL.
379 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
380 defines.
381 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
382
383 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
384 whitespace.
385
386 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
387 * gdbarch.h, gdbarch.c: Re-generate.
388 * blockframe.c (find_pc_sect_partial_function): Convert to use
389 SIGTRAMP_START_P predicate.
390
391 2002-09-05 Michael Snyder <msnyder@redhat.com>
392
393 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
394 generic_dummy_frame method and old method. Also distinguish
395 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
396 (arm_extract_return_value): Use new regcache method.
397
398 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
399 adjustment that doesn't conform to the ABI.
400 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
401 saved regcache, not from current regcache.
402
403 2002-09-05 Andrew Cagney <ac131313@redhat.com>
404
405 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
406 * README: Update.
407
408 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
409
410 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
411 if arm_apcs_32 is false.
412
413 2002-09-04 Andrew Cagney <ac131313@redhat.com>
414
415 GDB 5.3 branch created.
416
417 2002-09-03 Theodore A. Roth <troth@verinet.com>
418
419 * gdb/avr-tdep.c (avr_gdbarch_init): Use
420 generic_unwind_get_saved_register.
421
422 2002-09-03 David Carlton <carlton@math.stanford.edu>
423
424 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
425 argument (PR gdb/653). Update call to smash_to_method_type.
426 (read_structure_scope): Update call to dwarf2_add_member_fn.
427
428 2002-09-03 Michal Ludvig <mludvig@suse.cz>
429
430 * x86-64-linux-tdep.c: Include gdb_string.h
431 * x86-64-linux-nat.c: Ditto.
432
433 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
434
435 * ada-exp.y (yyname, yyrule): Remap global variables that appear
436 when YYDEBUG is set to 1.
437 * c-exp.y: Likewise.
438 * f-exp.y: Likewise.
439 * jv-exp.y: Likewise.
440 * m2-exp.y: Likewise.
441 * p-exp.y: Likewise.
442
443 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
444
445 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
446 dependency list.
447 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
448 solib_svr4_fetch_link_map_offsets to
449 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
450 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
451 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
452 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
453 solib-svr4.o, and solib-legacy.o.
454 * config/i386/tm-nbsd.h: Include solib.h.
455
456 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
457
458 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
459 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
460 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
461 comment noting that this needs its own target configuration.
462 * config/i386/nbsd.mt: New file.
463 * config/i386/nbsdaout.mt: Remove.
464 * config/i386/nbsdelf.mt: Ditto.
465 * config/i386/tm-nbsdaout.h: Ditto.
466
467 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
468
469 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
470 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
471 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
472 tdep->sigtramp_end.
473 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
474 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
475 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
476
477 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
478
479 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
480 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
481 * i386-tdep.h (i386bsd_init_abi): New prototype.
482 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
483 function declaration.
484 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
485 for NetBSD-a.out or NetBSD-ELF.
486 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
487 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
488 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
489 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
490 and nbsd-tdep.h.
491 (i386nbsd_pc_in_sigtramp): New function.
492 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
493 i386nbsd_pc_in_sigtramp.
494 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
495 and i386nbsdelf_init_abi OS ABI handlers.
496 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
497 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
498
499 2002-09-02 Mark Kettenis <kettenis@gnu.org>
500
501 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
502 registers if the target really has them.
503
504 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
505
506 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
507 than nbsd-tdep.h.
508
509 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
510
511 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
512 list.
513 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
514 (alphanbsd_skip_sigtramp_frame): New functions.
515 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
516 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
517 to alphanbsd_sigcontext_addr.
518
519 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
520
521 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
522 list.
523 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
524 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
525 nbsd_pc_in_sigtramp.
526 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
527 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
528 * nbsd-tdep.c: Include gdb_string.h.
529 (nbsd_pc_in_sigtramp): New function.
530 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
531 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
532 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
533 ppcnbsd_pc_in_sigtramp.
534 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
535 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
536 shnbsd_pc_in_sigtramp.
537 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
538 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
539 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
540
541 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
542
543 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
544 watchpoints to NULL.
545 (insert_breakpoints): set val field of watchpoints if NULL.
546
547
548 2002-08-29 Jim Blandy <jimb@redhat.com>
549
550 * symtab.c (lookup_symbol_aux): In the cases where we find a
551 minimal symbol of an appropriate name and use its address to
552 select a symtab to read and search, use `name' (as passed to us)
553 as the demangled name when searching the symtab's global and
554 static blocks, not the minsym's name.
555
556 2002-08-29 Keith Seitz <keiths@redhat.com>
557
558 * stack.c (print_frame_info_base): Always set current_source_symtab
559 and current_source_line.
560
561 2002-08-29 Donn Terry <donnte@microsoft.com>
562
563 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
564
565 2002-08-28 Keith Seitz <keiths@redhat.com>
566
567 * stack.c (select_frame): Add FIXME concerning selected-frame
568 events.
569 (select_frame_command): Send selected-frame-level-changed
570 event notification, but only if the level actually changed.
571 (up_silently_base): Add selected-frame-level-changed event
572 notification.
573 (down_silently_base): Likewise.
574
575 2002-08-28 Andrew Cagney <ac131313@redhat.com>
576
577 * Makefile.in: Update dependencies for all gdb/*.c files.
578
579 2002-08-27 Tom Tromey <tromey@redhat.com>
580
581 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
582 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
583 Update dependencies.
584 * i387-tdep.c: Include gdb_string.h.
585 * osabi.c: Likewise.
586 * i386-linux-nat.c: Likewise.
587 * lin-lwp.c: Likewise.
588 * ax-gdb.c: Likewise.
589 * signals/signals.c: Likewise.
590 * jv-valprint.c: Likewise.
591 * p-lang.c: Likewise.
592 * c-valprint.c: Likewise.
593 * cp-abi.c: Likewise.
594
595 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
596
597 * cli/cli-script.h (copy_command_lines): Export.
598 * breakpoint.c: Include cli/cli-script.h.
599 * Makefile.in (breakpoint.o): Update dependencies.
600
601 2002-08-26 Michael Snyder <msnyder@redhat.com>
602
603 * breakpoint.c (insert_breakpoints): Protect all references
604 to 'process_warning'. Shorten long lines.
605
606 2002-08-26 Joel Brobecker <brobecker@gnat.com>
607
608 * cli/cli-script.c (copy_command_lines): New function.
609 * defs.h (copy_command_lines): Export.
610 * testsuite/gdb.base/commands.exp: New tests for commands
611 attached to a temporary breakpoint, and for commands that
612 delete the breakpoint they are attached to.
613
614 2002-08-26 Michael Snyder <msnyder@redhat.com>
615
616 * breakpoint.c (bpstat_stop_status): Instead of copying the
617 pointer to the breakpoint commands struct, make a new copy
618 of the struct and point to that.
619 (bpstat_clear): Free the commands struct.
620 (bpstat_clear_actions): Free the commands struct.
621 (bpstat_do_actions): Free the command actions. Also execute
622 the local cleanups, instead of deleting them.
623 (delete_breakpoint): Leave the commands field of the bpstat
624 chain alone -- it will be freed later.
625
626 2002-08-26 Kevin Buettner <kevinb@redhat.com>
627
628 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
629 deleted in 2002-08-20 commit. This function is still used by
630 ppc-linux-nat.c.
631
632 2002-08-26 Keith Seitz <keiths@redhat.com>
633
634 * gdb-events.sh: Add selected-frame-level-changed event.
635 * gdb-events.c: Regenerated.
636 * gdb-events.h: Regenerated.
637
638 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
639
640 Fix PR gdb/393:
641 * inflow.c (terminal_save_ours): New function to save terminal
642 settings.
643 * inferior.h (terminal_save_ours): Declare.
644 * target.c (debug_to_terminal_save_ours): New function.
645 (cleanup_target): Defaults to_terminal_save_ours.
646 (update_current_target): Inherit to_terminal_save_ours.
647 (setup_target_debug): Set to_terminal_save_ours.
648 * target.h (target_terminal_save_ours): New to save terminal settings.
649 (target_ops): New member to_terminal_save_ours.
650 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
651 * hpux-thread.c (init_hpux_thread_ops): Likewise.
652 * inftarg.c (init_child_ops): Likewise.
653 * m3-nat.c (init_m3_ops): Likewise.
654 * procfs.c (init_procfs_ops): Likewise.
655 * wince.c (init_child_ops): Likewise.
656 * win32-nat.c (init_child_ops): Likewise.
657 * sol-thread.c (init_sol_thread_ops): Likewise.
658
659 2002-08-26 Mark Kettenis <kettenis@gnu.org>
660
661 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
662 use regcache_* functions.
663 (i386_gdbarch_init): Set store_return_value instead of
664 deprecated_store_return_value.
665
666 * regcache.c (regcache_raw_write_signed,
667 regcache_raw_write_unsigned): New functions.
668 * regcache.h (regcache_raw_write_signed,
669 regcache_raw_write_unsigned): New prototypes.
670
671 2002-08-25 Andrew Cagney <ac131313@redhat.com>
672
673 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
674 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
675 source file dependencies. Cleanup corresponding generator rules.
676
677 2002-08-25 Andrew Cagney <ac131313@redhat.com>
678
679 * regcache.h (register_offset_hack): Declare.
680 (regcache_cooked_read_using_offset_hack): Declare.
681 (regcache_cooked_write_using_offset_hack): Declare.
682
683 * regcache.c (register_offset_hack): New function.
684 (regcache_cooked_read_using_offset_hack): New function.
685 (regcache_cooked_write_using_offset_hack): New function.
686 (regcache_dump): Check that the registers, according to their
687 offset, are packed hard against each other.
688 (cooked_xfer_using_offset_hack): New function.
689
690 2002-08-25 Andrew Cagney <ac131313@redhat.com>
691
692 * regcache.c (struct regcache_descr): Add field register_type.
693 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
694 in as a parameter
695 (init_regcache_descr): Initialize register_type. Pass the descr
696 to init_legacy_regcache_descr. Use register_type instead of
697 REGISTER_VIRTUAL_TYPE.
698 (register_type): New function.
699 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
700 * regcache.h (register_type): Declare.
701
702 2002-08-25 Andrew Cagney <ac131313@redhat.com>
703
704 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
705 instead of deprecated_store_return_value. Fix fallout from
706 2002-08-23 Andrew Cagney <cagney@redhat.com>.
707
708 2002-08-25 Andrew Cagney <ac131313@redhat.com>
709
710 * regcache.c (max_register_size): New function.
711 (init_legacy_regcache_descr): Ensure that max_register_size is
712 large enough for REGISTER_VIRTUAL_SIZE.
713 * regcache.h (max_register_size): Declare.
714
715 2002-08-24 Andrew Cagney <ac131313@redhat.com>
716
717 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
718 store_return_value.
719 (e500_extract_return_value): Change type of valbuf pointer to
720 void.
721
722 2002-08-24 Mark Kettenis <kettenis@gnu.org>
723
724 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
725 workaround.
726
727 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
728 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
729 long long) to prevent compiler warning on 64-bit systems.
730
731 2002-08-23 Andrew Cagney <cagney@redhat.com>
732
733 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
734 (DEPRECATED_STORE_RETURN_VALUE): New method.
735 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
736 * gdbarch.h, gdbarch.c: Re-generate.
737
738 * values.c (set_return_value): Pass current_regcache to
739 STORE_RETURN_VALUE.
740 * arch-utils.h (legacy_store_return_value): Declare.
741 * arch-utils.c (legacy_store_return_value): New function.
742 (legacy_extract_return_value): Update parameters.
743
744 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
745 STORE_RETURN_VALUE.
746 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
747 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
748 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
749 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
750 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
751 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
752 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
753 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
754 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
755 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
756
757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
758 * i386-tdep.c (i386_extract_return_value): Update.
759 * arch-utils.c (legacy_extract_return_value): Update.
760 * frv-tdep.c (frv_gdbarch_init): Update.
761 * cris-tdep.c (cris_gdbarch_init): Update.
762 * d10v-tdep.c (d10v_gdbarch_init): Update.
763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
764 * m68k-tdep.c (m68k_gdbarch_init): Update.
765 * mcore-tdep.c (mcore_gdbarch_init): Update.
766 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
767 * s390-tdep.c (s390_gdbarch_init): Update.
768 * sparc-tdep.c (sparc_gdbarch_init): Update.
769 * sh-tdep.c (sh_gdbarch_init): Update.
770 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
771 * v850-tdep.c (v850_gdbarch_init): Update.
772 * avr-tdep.c (avr_gdbarch_init): Update.
773 * ia64-tdep.c (ia64_gdbarch_init): Update.
774 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
775 * vax-tdep.c (vax_gdbarch_init): Update.
776 * alpha-tdep.c (alpha_gdbarch_init): Update.
777 * arm-tdep.c (arm_gdbarch_init): Update.
778 * mips-tdep.c (mips_gdbarch_init): Update.
779 * i386-tdep.c (i386_gdbarch_init): Update.
780
781 2002-08-23 Andrew Cagney <ac131313@redhat.com>
782
783 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
784 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
785
786 2002-08-24 Mark Kettenis <kettenis@gnu.org>
787
788 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
789 problems.
790
791 2002-08-23 Joel Brobecker <brobecker@gnat.com>
792
793 * infrun.c (handle_inferior_event): Move a comment outside of a
794 function call, in order to avoid indent reformatting this part
795 of the code in an unreadable way.
796
797 2002-08-23 Grace Sainsbury <graces@redhat.com>
798
799 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
800 when breakpoints fail. Move general breakpoint error messages to
801 insert_breakpoints.
802 * breakpoint.c (insert_breakpoints): Change warnings when
803 breakpoints are nto inserted to specify the type. Remove call to
804 memory_error when hardware breakpoints can't be inserted. Remove
805 multiple calls to warning so all messages are sent to the user at
806 once.
807 (delete_breakpoints): Make insert error messsages more explicit.
808
809 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
810
811 * ChangeLog: Move gdbserver entries after GDB 5.2 to
812 gdbserver/ChangeLog.
813
814 2002-08-23 Mark Kettenis <kettenis@gnu.org>
815
816 * i386-tdep.c: Include "objfiles.h".
817 (i386_svr4_init_abi): Set in_solib_call_trampoline and
818 skip_trampoline_code.
819 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
820 (CPLUS_MARKER): Define to '.'.
821
822 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
823 member.
824 (linux_corefile_thread_callback): Increase args->num_notes.
825 (linux_make_note_section): Initialize thread_args.num_notes, and
826 use it to determine whether notes for any threads were created.
827
828 2002-08-23 Donn Terry <donnte@microsoft.com>
829
830 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
831 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
832 and PCUNKILL.
833 (write_with_trace): Conditionalize out the switch branch handling
834 PCSHOLD if the corresponding macro is not defined. Likewise for
835 PRSABORT and PRSTOP.
836 This change will be needed by the Interix port.
837
838 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
839
840 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
841 write_register wherever possible instead of manipulating the
842 register bytes directly.
843 Assign VALUE_CONTENTS to a variable and use that.
844 The GPR numbers are now dependent on the architecture.
845
846 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
847
848 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
849 ev_offset fields.
850 (skip_prologue): Add support for BookE/e500 instructions.
851 (e500_extract_return_value): New function.
852 (frame_get_saved_regs): Add support for saving ev registers and
853 pseudo gpr's.
854 (e500_store_return_value): New function.
855 (rs6000_gdbarch_init): Move up default intializations of
856 deprecated_extract_return_value and store_return_value. Overwrite
857 init of store_return_value with e500 specific version.
858 Set extract_return_value for e500.
859
860 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
861
862 * blockframe.c (generic_call_dummy_register_unwind): Use
863 regcache_cooked_read to catch cases in which the variable is
864 stored in a pseudo register.
865
866 2002-08-22 Andrew Cagney <cagney@redhat.com>
867
868 * NEWS: Mention that the i960 has been made obsolete.
869 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
870 i960-tdep.c
871 (remote-nrom.o): Obsolete target.
872 (remote-nindy.o, i960-tdep.o): Ditto.
873 * remote-nrom.c: Make file obsolete.
874 * remote-nindy.c, remote-vx960.c: Ditto.
875 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
876 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
877 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
878 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
879 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
880 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
881 i960-*-vxworks* obsolete.
882 * MAINTAINERS: Note that the i960 is obsolete.
883
884 2002-08-21 Corinna Vinschen <vinschen@redhat.com
885
886 * aix-thread.c (aix_thread_detach): Disable thread debugging on
887 detach to allow reinitialization.
888
889 2002-08-22 Andrew Cagney <ac131313@redhat.com>
890
891 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
892 attempt).
893
894 2002-08-22 Jim Blandy <jimb@redhat.com>
895
896 * coffread.c (coff_symfile_read): Don't try to read the line
897 number table from disk if the image file doesn't have a symbol
898 table; we'll never actually look at the info anyway, and Windows
899 ships DLL's with bogus file offsets for the line number data.
900
901 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
902
903 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
904 an e500 executable.
905
906 2002-08-21 Michael Snyder <msnyder@redhat.com>
907
908 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
909 (MSYMBOL_SIZE): Replace macro with function.
910 (DEFAULT_MIPS_TYPE): Delete unused macro.
911 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
912 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
913
914 2002-08-21 Jim Blandy <jimb@redhat.com>
915
916 * valops.c (value_cast): Simplify and correct logic for doing a
917 static cast from a pointer to a base class to a pointer to a
918 derived class.
919
920 2002-08-21 Andrew Cagney <ac131313@redhat.com>
921
922 * infcmd.c (default_print_registers_info): Replace
923 do_registers_info.
924 (registers_info): Use gdbarch_print_registers_info instead of
925 DO_REGISTERS_INFO.
926 * inferior.h (default_print_registers_info): Replace
927 do_registers_info.
928 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
929 (DO_REGISTERS_INFO): Change to a predicate function.
930 * gdbarch.h, gdbarch.c: Regenerate.
931
932 2002-08-21 Keith Seitz <keiths@redhat.com>
933
934 * gdb-events.sh: Add target-changed event.
935 * gdb-events.c: Regenerated.
936 * gdb-events.c: Regenerated.
937 * valops.c (value_assign): Add target-changed event notification
938 to inlval_register, lval_memory, and lval_reg_frame_relative.
939
940 2002-08-21 Joel Brobecker <brobecker@gnat.com>
941
942 * NEWS: Add an entry regarding the improvement of the next/step
943 operation on Alpha Tru64 multi-processor machines.
944
945 2002-08-21 Andrew Cagney <ac131313@redhat.com>
946
947 * Makefile.in: Update dependencies for mi/ cli/ and tui/
948 directores.
949 * Makefile.in: Update all _h macro definitions.
950 * Makefile.in (install-gdbtk): Move to install section.
951 (rdi-share/libangsd.a): Move to end of file.
952
953 2002-08-19 Andrew Cagney <ac131313@redhat.com>
954
955 * frame.c (frame_register_unwind): When a register, set addrp to
956 the register's byte.
957
958 2002-08-20 Michael Snyder <msnyder@redhat.com>
959
960 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
961 used locally, so move them from the target machine header to here.
962 (mips_set_processor_type, mips_register_name, mips32_next_pc,
963 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
964 Make static.
965 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
966
967 2002-08-20 Andrew Cagney <cagney@redhat.com>
968
969 * NEWS: Mention that the Apollo line was made obsolete.
970 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
971 m68*-hp-hpux* obsolete.
972 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
973 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
974 * buildsym.c (make_blockvector): Make static.
975 * buildsym.h (make_blockvector): Make extern declaration obsolete.
976 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
977 (ALLDEPFILES): Remove dstread.c.
978 (dstread.o): Obsolete make rule.
979 * dstread.c: Makefile obsolete.
980 * dst.h: Ditto.
981 * config/m68k/hp300hpux.mt: Ditto.
982 * config/m68k/hp300hpux.mh: Ditto.
983 * config/m68k/hp300bsd.mt: Ditto.
984 * config/m68k/hp300bsd.mh: Ditto.
985 * config/m68k/apollo68b.mt: Ditto.
986 * config/m68k/apollo68v.mh: Ditto.
987 * config/m68k/apollo68b.mh: Ditto.
988
989 2002-08-20 Michael Snyder <msnyder@redhat.com>
990
991 * mips-tdep.c (mips_in_return_stub): Make static.
992 (mips_gdbarch_init): Set in_solib_return_trampoline.
993 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
994
995 2002-08-20 Michael Snyder <msnyder@redhat.com>
996
997 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
998 * gdbarch.c, gdbarch.h: Regenerate.
999 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1000 Add.
1001 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1002
1003 2002-08-20 Michael Snyder <msnyder@redhat.com>
1004
1005 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1006 (mips_gdbarch_init): Set skip_trampoline_code,
1007 in_solib_call_trampoline.
1008 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1009 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1010
1011 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1012
1013 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1014
1015 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1016 vector type for ev registers.
1017 (e500_pseudo_register_read): New function.
1018 (e500_pseudo_register_write): New function.
1019 (e500_dwarf2_reg_to_regnum): New function.
1020 (PPC_UISA_NOFP_SPRS): New macro.
1021 (PPC_EV_REGS): New macro.
1022 (PPC_GPRS_PSEUDO_REGS): New macro.
1023 (registers_e500): New register set for e500.
1024 (variants): Add e500 variant.
1025 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1026 before setting architectural dependent variations. Initialize ev
1027 registers numbers. Add case for e500 architecture. Set the
1028 number of pseudo registers.
1029
1030 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1031
1032 * rs6000-tdep.c: Clean up comments.
1033
1034 2002-08-20 Andrew Cagney <cagney@redhat.com>
1035
1036 * h8300-tdep.c: Re-indent file.
1037
1038 2002-08-20 Jim Blandy <jimb@redhat.com>
1039
1040 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1041 default for this.
1042
1043 2002-08-20 Keith Seitz <keiths@redhat.com>
1044
1045 * breakpoints.c (watch_command_1): Use internal breakpoint
1046 when setting a watchpoint_scope breakpoint.
1047
1048 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1049
1050 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1051 (build_builtin_type_vec64i): Ditto.
1052 (build_builtin_type_vec128): Ditto.
1053 (build_builtin_type_vec128i): Ditto.
1054
1055 2002-08-19 Michael Snyder <msnyder@redhat.com>
1056
1057 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1058 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1059 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1060 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1061 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1062 CALL_DUMMY_ADDRESS): Delete.
1063 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1064 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1065 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1066 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1067 push_return_address.
1068 (mips_register_raw_size, mips_eabi_use_struct_convention,
1069 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1070 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1071 mips_init_extra_frame_info, mips_eabi_push_arguments,
1072 mips_n32n64_push_arguments, mips_push_return_address,
1073 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1074 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1075
1076 2002-08-19 Michael Snyder <msnyder@redhat.com>
1077
1078 * mips-tdep.c (mips_frame_num_args): New function.
1079 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1080 frame_saved_pc, frame_args_address, frame_locals_address,
1081 frame_num_args, and frame_args_skip.
1082 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1083 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1084 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1085 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1086
1087 2002-08-20 Michael Snyder <msnyder@redhat.com>
1088
1089 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1090 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1091 * mips-tdep.c (mips_store_struct_return): New function.
1092 (mips_extract_struct_value_address): New function.
1093 (mips_gdbarch_init): Set store_struct_return and
1094 extract_struct_value_address.
1095
1096 2002-08-20 David Carlton <carlton@math.stanford.edu>
1097
1098 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1099 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1100 (read_file_scope): Check that line_header is nonzero before
1101 decoding macro information.
1102
1103 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1104
1105 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1106 flag the general-purpose registers as floating-point on targets
1107 that don't support the floating-point registers.
1108
1109 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1110
1111 * rs6000-tdep.c (altivec_register_p): Delete.
1112 (rs6000_do_altivec_registers): Delete.
1113 (rs6000_altivec_registers_info): Delete.
1114 (rs6000_do_registers_info): Delete.
1115 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1116 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1117
1118 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1119
1120 * infcmd.c (do_registers_info): Print vector registers in hex
1121 format only.
1122 (print_vector_info): Check that printing registers
1123 makes sense.
1124 (print_float_info): Ditto.
1125
1126 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1127
1128 * mips-tdep.c (mips_gdbarch_init): Update.
1129 (mips_o32_extract_return_value): Rewrite.
1130 (mips_o32_store_return_value): Rewrite.
1131 (mips_o32_xfer_return_value): New function.
1132 (mips_xfer_register): Tweak debug print message. Allow for
1133 buf_offset when dumping the value transfered.
1134
1135 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1136
1137 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1138 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1139 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1140 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1141 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1142
1143 2002-08-14 Michael Snyder <msnyder@redhat.com>
1144
1145 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1146
1147 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1148
1149 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1150 register.
1151 (P): New macro to define a register as a pseudo register.
1152 (R, R4, R8, R16, FR32, R64, R0): Updated.
1153 (struct variant): Add new fields for number of pseudo registers
1154 and number of total registers.
1155 (tot_num_registers): New macro replacing....
1156 (num_registers): ...deleted macro.
1157 (num_registers): New function.
1158 (num_pseudo_registers): New function.
1159 (variants): Update all variants to intialize new fields correctly.
1160 Postpone initialization of number of pseudo regs and real regs.
1161 (init_variants): New function.
1162 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1163 registers offsets.
1164
1165 2002-08-19 David Carlton <carlton@math.stanford.edu>
1166
1167 * valops.c (search_struct_field): Change error message to treat
1168 return value of 0 from value_static_field as meaning that field is
1169 optimized out.
1170 (value_struct_elt_for_reference): Ditto.
1171 * values.c (value_static_field): Treat an unresolved location the
1172 same as a nonexistent symbol. Fix PR gdb/635.
1173 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1174 enclosed. Fix PR gdb/574.
1175 * MAINTAINERS: Add self to Write After Approval list.
1176
1177 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1178
1179 * mips-tdep.c (mips_xfer_register): New function.
1180 (mips_n32n64_extract_return_value): Rewrite.
1181 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1182 instead of deprecated_extract_return_value.
1183
1184 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1185
1186 * rs6000-tdep.c (TDEP): Delete macro.
1187 (branch_dest): Replace use of TDEP macro with its body.
1188 (rs6000_pop_frame): Ditto.
1189 (rs6000_push_arguments): Ditto.
1190 (rs6000_skip_trampoline_code): Ditto.
1191 (rs6000_frame_saved_pc): Ditto.
1192 (rs6000_frame_chain): Ditto.
1193 (rs6000_register_name): Ditto.
1194 (rs6000_register_byte): Ditto.
1195 (rs6000_register_raw_size): Ditto.
1196 (rs6000_register_virtual_type): Ditto.
1197 (rs6000_register_convertible): Ditto.
1198 (rs6000_convert_from_func_ptr_addr): Ditto.
1199
1200 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1201
1202 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1203 conditionally.
1204 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1205 MIPS_LINUX_JB_ELEMENT_SIZE.
1206 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1207 for MAX_REGISTER_RAW_SIZE arrays.
1208 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1209 MIPS_LINUX_JB_ELEMENT_SIZE.
1210
1211 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1212
1213 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1214
1215 2002-08-19 Aidan Skinner <aidan@velvet.net>
1216
1217 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1218 ada-valprint.c ada-tasks.c.
1219 (YYFILES): Add ada-exp.y.
1220 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1221 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1222 (ada-exp.tab.o): New target.
1223
1224 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1225
1226 * regcache.c (regcache_xfer_part): New function.
1227 (regcache_raw_read_part): New function.
1228 (regcache_raw_write_part): New function.
1229 (regcache_cooked_read_part): New function.
1230 (regcache_cooked_write_part): New function.
1231 * regcache.h (regcache_raw_read_part): Declare.
1232 (regcache_raw_write_part): Declare.
1233 (regcache_cooked_read_part): Declare.
1234 (regcache_cooked_write_part): Declare.
1235
1236 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1237
1238 * remote.c (remote_open_1): Add async_p.
1239 (remote_async_open_1): Delete.
1240 (open_remote_target): Delete.
1241 (remote_open, extended_remote_open): Update calls to remote_open_1.
1242 (remote_async_open, extended_remote_async_open): Call
1243 remote_open_1 instead of remote_async_open_1.
1244
1245 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1246
1247 * blockframe.c: Fix a few coding standard violations.
1248
1249 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1250
1251 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1252 here from ...
1253 * config/i386/tm-i386sco5.h: ... here. File removed.
1254 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1255
1256 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1257 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1258 (TM_FILE): Set to tm-i386.h.
1259 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1260 * config/i386/tm-i386v.h: Remove file.
1261 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1262 instead of "i386/tm-i386v.h".
1263 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1264 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1265 "i386/tm-i386v.h".
1266 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1267 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1268 "i386/tm-i386.h".
1269
1270 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1271
1272 * config/i386/nm-i386v.h: Add protection against
1273 multiple-inclusion.
1274 (i386_register_u_addr): Remove prototype.
1275 (register_u_addr): New prototype.
1276 (REGISTER_U_ADDR): Redefine accordingly.
1277 * i386v-nat.c: Improve several comments.
1278 (i386_register_u_addr): Change signature and rename to
1279 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1280 ubase variable.
1281
1282 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1283
1284 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1285 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1286 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1287 deprecated_extract_return_value.
1288 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1289 rename mips_o32o64_push_arguments.
1290 (mips_gdbarch_init): Update.
1291 (mips_extract_return_value): Delete.
1292 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1293 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1294 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1295 (mips_n32n64_extract_return_value): Clone
1296 mips_extract_return_value.
1297 (mips_store_return_value): Delete.
1298 (mips_o32_store_return_value): Clone mips_store_return_value.
1299 (mips_o64_store_return_value): Clone mips_store_return_value.
1300 (mips_eabi_store_return_value): Clone mips_store_return_value.
1301 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1302
1303 2002-08-18 Aidan Skinner <aidan@velvet.net>
1304
1305 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1306 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1307
1308 2002-08-18 Aidan Skinner <aidan@velvet.net>
1309
1310 * ada-lang.c: Run through gdb_indent.sh.
1311 * ada-lang.h: Run through gdb_indent.sh.
1312 * ada-tasks.c: Run through gdb_indent.sh.
1313 * ada-typeprint.c: Run through gdb_indent.sh.
1314 * ada-valprint.c: Run through gdb_indent.sh.
1315
1316 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1317
1318 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1319 ABI.
1320
1321 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1322
1323 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1324
1325 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1326 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1327
1328 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1329 write_register_gen instead of write_register_bytes.
1330
1331 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1332 i[3456]-*-osf1mk* configurations have been made obsolete.
1333 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1334 i[3456]86-*-osf1mk* hosts obsolete.
1335 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1336 targets obsolete.
1337 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1338 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1339 config/i386/i386m3.mt, config/i386/nm-m3.h,
1340 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1341 config/i386/i386mk.mh, config/i386/i386mk.mt,
1342 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1343 obsolete.
1344 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1345 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1346 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1347
1348 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1349
1350 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1351 (hppa_value_returned_from_stack): Declare.
1352 (hppa_extract_return_value): Declare.
1353 * config/pa/hppa.mt: New file.
1354 * configure.tgt: Recognize hppa*-*-*.
1355 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1356
1357 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1358
1359 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1360 comment.
1361
1362 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1363
1364 * top.c (gdb_rl_operate_and_get_next): Make sure
1365 operate-and-get-next functions correctly even when the history
1366 list is completely filled.
1367
1368 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1369
1370 * MAINTAINERS (Target Instruction Set Architectures): Rename
1371 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1372 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1373 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1374 already listed under Host/Native.
1375
1376 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1377 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1378 mips*-*-*.
1379
1380 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1381
1382 * config/ia64/ia64.mt: New file.
1383 * config/alpha/alpha.mt: New file.
1384 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1385 ia64-linux-gnu. Mention that ia64-elf is broken.
1386 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1387
1388 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1389
1390 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1391 generic_func_frame_valid instead of func_frame_valid.
1392
1393 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1394
1395 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1396 procfs appears to be broken when debugging on multi-processor
1397 machines. So enable software single stepping in order to avoid
1398 using the procfs interface to do next/step operations, using
1399 internal breakpoints instead.
1400
1401 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1402 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1403 make this pc address equal to the value it would have if the
1404 system stepping capability was used. Also set a new flag used
1405 to ensure that we don't readjust the PC one more time later.
1406
1407 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1408 address by DECR_PC_AFTER_BREAK when software single step is
1409 in use for this architecture, as this has already been taken
1410 care of in handle_inferior_event().
1411
1412 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1413
1414 * infrun.c (handle_inferior_event): Minor reformatting, to make
1415 a rather long condition expression easier to read.
1416
1417 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1418
1419 * Makefile.in (gdbtk.o): Move to end of file.
1420 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1421 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1422 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1423 (gdbtk-wrapper.o, gdbres.o): Ditto.
1424
1425 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1426
1427 * Makefile.in (copying.o): Separate out compile rule.
1428 (hpux-thread.o, procfs.o, signals.o): Ditto.
1429 (v850ice.o, z8k-tdep.o): Ditto.
1430 (tui-file.o): Move to TUI section.
1431 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1432 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1433
1434 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1435
1436 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1437 skip_trampoline_code, for better namespace-proofing.
1438
1439 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1440
1441 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1442
1443 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1444
1445 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1446
1447 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1448 signal, check whether we hit a breakpoint before checking for a
1449 single step breakpoint. Otherwise, GDB fails to notice that a
1450 breakpoint has been hit when stepping onto a breakpoint.
1451
1452 2002-08-16 Keith Seitz <keiths@redhat.com>
1453
1454 * gdb-events.sh (clear_gdb_event_hooks): New function.
1455 * gdb-events.c: Regenerate.
1456 * gdb-events.h: Regenerate.
1457
1458 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1459
1460 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1461 not_a_sw_breakpoint.
1462 * breakpoint.h (bpstat_stop_status): Add parameter names.
1463
1464 2002-08-16 Grace Sainsbury <graces@redhat.com>
1465
1466 * remote.c (remote_insert_hw_breakpoint)
1467 (remote_remove_hw_breakpoint): Fix calculation of length field
1468 for Z-packet.
1469
1470 2002-08-15 Michael Snyder <msnyder@redhat.com>
1471
1472 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1473 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1474 (supply_fpregset): Ditto.
1475
1476 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1477 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1478 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1479 (TARGET_READ_SP): Delete.
1480 (DO_REGISTERS_INFO): Delete.
1481 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1482 Delete.
1483 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1484 from macros to functions.
1485
1486 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1487 (mips_register_convertible, mips_register_convert_to_virtual,
1488 mips_register_convert_to_raw): Make static.
1489 (mips_read_sp): New function.
1490 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1491 (mips_do_registers_info): Make static.
1492 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1493 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1494 (mips_register_convert_from_type, mips_register_convert_to_type):
1495 New functions.
1496 (mips_gdbarch_init): Set up function_start_offset,
1497 register_virtual_size, pc_in_sigtramp.
1498
1499 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1500
1501 * infcmd.c (vector_info): New function.
1502 (_initialize_infcmd): Add command "info vector".
1503 (print_vector_info): New function.
1504
1505 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1506 * gdbarch.h, gdbarch.c: Regenerate.
1507
1508 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1509
1510 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1511 ``print_all''. Only print vector registers when ``print_all''.
1512
1513 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1514
1515 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1516 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1517
1518 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1519 Add `args' parameter.
1520 * gdbarch.h, gdbarch.c: Regenerate.
1521
1522 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1523
1524 * infcmd.c (float_info): Call print_float_info.
1525 (print_float_info): New function. By default, print the
1526 floating-point registers.
1527
1528 * arch-utils.h (default_print_float_info): Delete declaration.
1529 * arch-utils.c (default_print_float_info): Delete function.
1530
1531 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1532
1533 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1534 out define.
1535
1536 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1537 FRAME.
1538
1539 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1540 * configure.host: Make i[3456]86-*-aix host obsolete.
1541 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1542 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1543 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1544 config/i386/xm-i386aix.h: Make files obsolete.
1545 * i386aix-nat.c: Make file obsolete.
1546 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1547 (i386aix-nat.o): Make target obsolete.
1548
1549 * config/i386/nm-gnu.h: Removed.
1550 * config/i386/nm-i386gnu.h: New file.
1551 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1552 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1553 Moved here from ...
1554 * config/i386/tm-i386gnu.h: ... here. Removed.
1555 * config/i386/xm-i386gnu.h: Removed.
1556 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1557 (NAT_FILE): Set to nm-i386gnu.h.
1558 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1559 * i386-tdep.c: New file.
1560 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1561 (i386gnu-tdep.o): Specify dependencies.
1562
1563 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1564
1565 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1566 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1567 Adjust a few comments to reflect reality a bit closer.
1568 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1569 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1570 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1571 target_insert_watchpoint, target_remove_watchpoint):
1572 Move defines to ...
1573 * config/i386/nm-i386sco5.h: ... here.
1574 (kernel_u_size): Add prototype. Improve a few comments and add
1575 protection against multiple inclusion.
1576
1577 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1578 out define.
1579
1580 * uw-thread.c (SP_ARG0): Define if not already defined.
1581 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1582
1583 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1584
1585 * config/i386/tm-i386.h: Don't include "regcache.h".
1586
1587 * i387-tdep.h (i387_print_float_info): New prototype.
1588 * i387-tdep.c (print_i387_value, print_i387_ext,
1589 print_i387_status_word, print_i387_control_word): Add `struct
1590 ui_file *' argument and use it for output.
1591 (i387_print_float_info): Renamed from i387_float_info. Add
1592 `struct gdbarch *' and `struct ui_file *' arguments and use the
1593 latter for output.
1594 * i386-tdep.c: Include "i387-tdep.h".
1595 (i386_gdbarch_init): Set print_float_info.
1596 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1597 (FLOAT_INFO): Remove define.
1598
1599 2002-08-13 Michael Snyder <msnyder@redhat.com>
1600
1601 * mips-tdep.c (mips_push_arguments): Rename to
1602 mips_eabi_push_arguments, and tune for EABI.
1603 (MIPS_REGS_HAVE_HOME_P): Delete.
1604 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1605 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1606 Delete references to mips_regs_have_home_p.
1607
1608 2002-08-14 Keith Seitz <keiths@redhat.com>
1609
1610 * Makefile.in (install-gdbtk): Create insight plugin directory.
1611 Install plugins.tcl file.
1612
1613 2002-08-14 Keith Seitz <keiths@redhat.com>
1614
1615 * configure.in: Move SUBDIRS to near top of the file so that
1616 --enable options may add things to it.
1617 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1618 * configure: Regenerate.
1619
1620 2002-08-13 Michael Snyder <msnyder@redhat.com>
1621
1622 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1623 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1624 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1625
1626 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1627
1628 * vax-tdep.c (vax_get_saved_register): Delete function.
1629 (vax_gdbarch_init): Update.
1630 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1631 (ns32k_gdbarch_init): Update.
1632 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1633 (alpha_gdbarch_init): Update.
1634
1635 2002-08-13 Andrew Cagney <cagney@redhat.com>
1636
1637 * regcache.c (init_regcache_descr): Overallocate the
1638 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1639 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1640 nr_raw_registers.
1641 (set_register_cached): Add range checking assertions. Use
1642 current_regcache.
1643
1644 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1645
1646 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1647 numbers for MMX registers.
1648
1649 2002-08-13 Andrew Cagney <cagney@redhat.com>
1650
1651 * i386-tdep.c (i386_gdbarch_init): Use
1652 generic_unwind_get_saved_register.
1653
1654 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1655
1656 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1657 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1658 target vector.
1659 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1660 Delete. Add comment regarding this now-deleted target method.
1661
1662 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1663
1664 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1665 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1666 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1667 real PC and the page number (if it's within the memory bank window).
1668 (m68hc11_pseudo_register_write): Likewise when saving.
1669 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1670 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1671 (m68hc11_register_raw_size): And use 32-bit for it.
1672 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1673 16K memory bank is used by the prog; also use the virtual pc.
1674
1675 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1676
1677 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1678 (m68hc11_gdbarch_init): Install it in gdbarch.
1679 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1680 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1681 (MSYMBOL_SIZE): New for documentation.
1682 (insn_return_kind): Enum to specify how a function returns.
1683 (frame_extra_info): Cleanup and record the return mode.
1684 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1685 register in address computation.
1686 (m68hc11_get_return_insn): New to obtain the return instruction used
1687 by the function.
1688 (m68hc11_frame_init_saved_regs): Take into account the return
1689 instruction used by the function for far and interrupt functions.
1690 (m68hc11_init_extra_frame_info): Take into account page register.
1691 (m68hc11_frame_args_address): Adjust according to the return mode.
1692 (show_regs): Print page register only when it's used.
1693
1694 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1695
1696 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1697 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1698 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1699 registers.
1700 (m68hc11_register_raw_size): Likewise.
1701
1702 2002-08-13 Andrew Cagney <cagney@redhat.com>
1703
1704 * i386-tdep.c (i386_register_name): Handle mmx registers.
1705 (mmx_regnum_p): New function.
1706 (i386_mmx_names): New array.
1707 (mmx_num_regs): New variable.
1708 (i386_pseudo_register_read): New function.
1709 (i386_pseudo_register_write): New function.
1710 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1711
1712 * regcache.c (regcache_raw_read_unsigned): New function.
1713 (regcache_raw_read_signed): New function.
1714 * regcache.h (regcache_raw_read_unsigned): Declare.
1715 (regcache_raw_read_signed): Declare.
1716
1717 2002-08-13 Andrew Cagney <cagney@redhat.com>
1718
1719 * regcache.c (regcache_raw_read_as_address): Delete function.
1720 (regcache_cooked_read_signed): New function.
1721 (regcache_cooked_read_unsigned): New function.
1722 * regcache.h (regcache_cooked_read_signed): Declare.
1723 (regcache_cooked_read_unsigned): Declare.
1724 (regcache_raw_read_as_address): Delete declaration.
1725
1726 * blockframe.c (generic_read_register_dummy): Use
1727 regcache_cooked_read_unsigned.
1728 * i386-tdep.c (i386_extract_struct_value_address): Use
1729 regcache_cooked_read_unsigned.
1730
1731 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1732
1733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1734 double sizes according to ELF ABI flags.
1735 (gdbarch_tdep): Record elf_flags.
1736
1737 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1738
1739 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1740 (m6812_prolog): They can appear in 68HC12 function prologue.
1741 (m68hc11_frame_chain): Cleanup.
1742
1743 2002-08-12 Andrew Cagney <cagney@redhat.com>
1744
1745 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1746 declarations.
1747 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1748 (i386_linux_register_raw_size): Delete function.
1749 (i386_linux_init_abi): Update.
1750 * i386-tdep.c (i386_register_raw_size): Delete function.
1751 (i386_register_byte): Delete function.
1752 (i386_gdbarch_init): Update.
1753 (i386_register_size): Delete array.
1754 (i386_register_offset): Delete array.
1755
1756 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1757 (REGISTER_RAW_SIZE): Delete macro.
1758 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1759 (REGISTER_BYTE): Delete macro.
1760
1761 2002-08-11 Aidan Skinner <aidan@velvet.net>
1762
1763 * ada-lang.c (ada_lookup_partial_symbol)
1764 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1765 prototype names so that grep ^func works properly.
1766
1767 * ada-lang.c (ada_array_element_type)
1768 (ada_lookup_partial_symbol): Fix typos in parameter list.
1769
1770 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1771 Fix prototype names so that grep ^func works properly.
1772
1773 2002-08-10 Andrew Cagney <cagney@redhat.com>
1774 Elena Zannoni <ezannoni@redhat.com>
1775 Martin M. Hunt <hunt@redhat.com>
1776
1777 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1778 (build_builtin_type_vec128i): Set the vector bit.
1779 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1780 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1781 (build_builtin_type_vec64): New function.
1782 (build_builtin_type_vec64i): New function.
1783 (build_gdbtypes): Initialize builtin_type_vec64 and
1784 builtin_type_vec64i.
1785
1786 2002-08-09 Andrew Cagney <cagney@redhat.com>
1787
1788 * regcache.c (regcache_dump): Compare the register offset
1789 with REGISTER_BYTE.
1790 * arch-utils.c (generic_register_byte): New function.
1791 * arch-utils.h (generic_register_byte): Declare.
1792 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1793 * gdbarch.h, gdbarch.c: Regenerate.
1794
1795 2002-08-09 Andrew Cagney <cagney@redhat.com>
1796
1797 * regcache.c: Include "gdbcmd.h"
1798 (_initialize_regcache): Add commands "maintenance print
1799 registers", "maintenance print raw-registers" and "maintenance
1800 print cooked-registers".
1801 (enum regcache_dump_what): Define.
1802 (dump_endian_bytes): New function.
1803 (regcache_dump): New function.
1804 (regcache_print): New function.
1805 (maintenance_print_registers): New function.
1806 (maintenance_print_raw_registers): New function.
1807 (maintenance_print_cooked_registers): New function.
1808 * Makefile.in (regcache.o): Update dependencies.
1809
1810 2002-08-09 Michael Snyder <msnyder@redhat.com>
1811
1812 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1813 (mips_push_arguments): Correct some comments. Use paddr_nz
1814 for printing addresses in debug output. Replace static
1815 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1816 (mips_n32n64_push_arguments): New function, cloned from
1817 mips_push_arguments and tuned for the n32/n64 ABI.
1818 (mips_push_register): Buffer needs dynamic allocation.
1819 (mips_print_register): Ditto.
1820 (do_gp_register_row): Ditto.
1821 (mips_store_return_value): Ditto.
1822 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1823
1824 2002-08-09 Don Howard <dhoward@redhat.com>
1825
1826 * memattr.c (mem_info_command): Print special case of upper bound
1827 as max CORE_ADDR + 1.
1828
1829 2002-08-08 Michael Snyder <msnyder@redhat.com>
1830
1831 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1832 returns structs by ref if they're too big to fit in two registers.
1833
1834 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1835
1836 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1837 saved regs value.
1838 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1839 mips_find_saved_regs().
1840 (mips_pop_frame): Likewise.
1841
1842 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1843
1844 * blockframe.c (frame_saved_regs_register_unwind): Revise
1845 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1846 frames are in use.
1847
1848 2002-08-09 Grace Sainsbury <graces@redhat.com>
1849
1850 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1851 T-packets; the 'a' is not taken as a register number.
1852 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1853 (remote_stopped_data_address): New functions; add to target
1854 vector.
1855 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1856 prototypes to match other implementations of this
1857 function. replace integer argument with pointer -- the length
1858 field in the Z-packet is the length of what is pointed to or 1 if
1859 pointer is null. Add to target vector.
1860 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1861 target vector.
1862
1863 From Mark Salter:
1864 * remote.c (remote_wait): Add support to extract optional
1865 watchpoint information from T-packet. Ignore unrecognized
1866 optional info in T-packet.
1867 (remote_async_wait): Ditto.
1868
1869 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1870
1871 * cli/cli-dump.c: Change fopen modes to use binary open modes
1872 as defined in include/fopen-bin.h throughout.
1873
1874 2002-08-08 Michael Snyder <msnyder@redhat.com>
1875
1876 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1877
1878 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1879
1880 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1881 assertion failure by returning early after a warning.
1882
1883 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1884
1885 * mips-tdep.c (mips_find_saved_regs): Make static.
1886 (mips_frame_init_saved_regs): New function.
1887 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1888 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1889 (mips_find_saved_regs): Delete declaration.
1890
1891 2002-08-08 Grace Sainsbury <graces@redhat.com>
1892
1893 * remote.c (remote_wait, remote_async_wait): Change
1894 thread_num from int to ULONGEST.
1895 (unpack_varlen_hex): Change result parameter from
1896 int * to ULONGEST *.
1897
1898 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1899
1900 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1901 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1902 powerpc*-*-*.
1903 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1904
1905 2002-08-08 Andrew Cagney <cagney@redhat.com>
1906
1907 * gcore.c (override_derive_stack_segment): Delete variable.
1908 (preempt_derive_stack_segment): Delete function.
1909 (derive_stack_segment): Delete function.
1910 (default_derive_stack_segment): Renamed to derive_stack_segment.
1911 (override_derive_heap_segment): Delete variable.
1912 (preempt_derive_heap_segment): Delete function.
1913 (derive_heap_segment): Delete function.
1914 (default_derive_heap_segment): Rename to derive_heap_segment.
1915
1916 2002-08-06 Michael Snyder <msnyder@redhat.com>
1917
1918 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1919 * mips-tdep.c (mips_EABI_use_struct_convention,
1920 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1921 New functions. (mips_use_struct_convention): Delete.
1922 (mips_gdbarch_init): set use_gdbarch_convention.
1923
1924 2002-08-06 Michael Snyder <msnyder@redhat.com>
1925
1926 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1927 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1928 mips_o32_reg_struct_has_addr): New functions.
1929 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1930
1931 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1932
1933 * regcache.c (pseudo_register): Delete function.
1934 (fetch_register): Delete function.
1935 (store_register): Delete function.
1936 (regcache_raw_read, legacy_read_register_gen): Use
1937 target_fetch_registers instead of fetch_register.
1938 (legacy_write_register_gen, regcache_raw_write): Use
1939 target_store_register instead of store_register.
1940 (write_register_bytes): Ditto.
1941
1942 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1943 (STORE_PSEUDO_REGISTER): Delete.
1944 * gdbarch.h, gdbarch.c: Regenerate.
1945
1946 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1947
1948 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1949 write dump file binary.
1950
1951 2002-08-05 Michael Snyder <msnyder@redhat.com>
1952
1953 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1954 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1955 (mips_gdbarch_init): Set N32 target to be mips64.
1956
1957 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1958
1959 * frame.c (find_saved_register): Break out of loop once saved
1960 register address is found. Don't mention sparc in loop comment
1961 anymore.
1962
1963 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1964
1965 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1966 mips_default_saved_regsize to 8.
1967
1968 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1969
1970 * gcore.c: Do not include <sys/procfs.h>.
1971 * Makefile.in (gcore.o): Update dependencies.
1972
1973 2002-08-06 Andrew Cagney <cagney@redhat.com>
1974
1975 * configure.tgt: Make arc-*-* obsolete.
1976 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1977 * MAINTAINERS: Make arc-elf obsolete.
1978 * arc-tdep.c: Make file obsolete.
1979 * config/arc/arc.mt: Ditto.
1980 * config/arc/tm-arc.h: Ditto.
1981
1982 2002-08-05 Theodore A. Roth <troth@verinet.com>
1983
1984 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1985
1986 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1987
1988 * mcore-tdep.c (mcore_gdbarch_init): Use
1989 generic_unwind_get_saved_register instead of
1990 generic_get_saved_register.
1991 * v850-tdep.c (v850_gdbarch_init): Ditto.
1992 * frv-tdep.c (frv_gdbarch_init): Ditto.
1993 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1994 * s390-tdep.c (s390_gdbarch_init): Ditto.
1995 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1996 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1997 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1998
1999 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2000
2001 * objfiles.h: Add missing #include "symfile.h"
2002
2003 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2004
2005 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2006
2007 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2008 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2009 of FIELD_BITSIZE.
2010
2011 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2012
2013 * NEWS: Cleanup and nitpick.
2014
2015 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2016
2017 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2018
2019 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2020
2021 * Makefile.in (gdbtk-bp.o): Update dependencies.
2022 (gdbtk-register.o): Ditto.
2023 (gdbtk-varobj.o): Ditto.
2024
2025 2002-08-03 Andrew Cagney <cagney@redhat.com>
2026
2027 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2028 m68hc11_fetch_pseudo_register.
2029 (m68hc11_pseudo_register_write): Replace
2030 m68hc11_store_pseudo_register.
2031 (m68hc11_gdbarch_init): Update.
2032
2033 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2034
2035 * gdbarch.sh: Include "gdb_string.h".
2036 * gdbarch.c: Regenerate.
2037
2038 * regcache.c: Include "gdb_string.h".
2039 * ax-general.c: Ditto.
2040 * varobj.c: Ditto.
2041 * std-regs.c: Ditto.
2042 * fbsd-proc.c: Ditto.
2043 * thread.c: Ditto.
2044
2045 * Makefile.in (regcache.o): Update dependencies.
2046 (thread.o, gdbarch.o): Ditto.
2047 (ax-general.o, gdbarch.o): Ditto.
2048 (varobj.o, std-regs.o): Ditto.
2049 (fbsd-proc.o): Specify dependencies.
2050
2051 2002-08-02 Andrew Cagney <cagney@redhat.com>
2052
2053 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2054 regnum.
2055 (regcache_cooked_write): Ditto.
2056
2057 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2058
2059 * regcache.c (regcache_cooked_read): New function.
2060 (regcache_cooked_write): New function.
2061 (read_register_gen): Rewrite using regcache_cooked_read.
2062 (write_register_gen): Rewrite using regcache_cooked_write.
2063
2064 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2065 Declare.
2066
2067 2002-08-02 Andrew Cagney <cagney@redhat.com>
2068
2069 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2070 Replace the architecture methods register_read and register_write.
2071 * gdbarch.h, gdbarch.c: Regenerate.
2072 * regcache.c (init_regcache_descr): Update.
2073 (read_register_gen): Update.
2074 (write_register_gen): Update.
2075 (supply_register): Update comment.
2076
2077 * sh-tdep.c (sh_gdbarch_init): Update.
2078 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2079 `regcache' and `gdbarch' parameters. Make `buffer' a void
2080 pointer. Update code.
2081 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2082 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2083 void pointer. Update code.
2084 (sh64_register_write): Delete.
2085 (sh4_register_read): Delete.
2086 (sh64_register_read): Delete.
2087 (sh4_register_write): Delete.
2088 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2089 void pointer, `to' parameter a void pointer.
2090 (sh_sh64_register_convert_to_raw): Ditto.
2091
2092 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2093
2094 * mips-tdep.c (mips_register_virtual_type): Use architecture
2095 invariant return values.
2096
2097 2002-08-01 Andrew Cagney <cagney@redhat.com>
2098
2099 * linux-proc.c: Include "gdb_string.h".
2100 * Makefile.in (linux-proc.o): Update dependency list.
2101
2102 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2103
2104 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2105 comment.
2106
2107 2002-08-01 Grace Sainsbury <graces@redhat.com>
2108
2109 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2110 to_insert_watchpoint, to_remove_watchpoint,
2111 to_stopped_by_watchpoint, to_stopped_data_address,
2112 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2113 target vecctor. Define their corresponding macros so they call
2114 them.
2115
2116 * target.c: Add default and debug versions of for
2117 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2118 to_insert_watchpoint, to_remove_watchpoint,
2119 to_stopped_by_watchpoint, to_stopped_data_address,
2120 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2121
2122 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2123
2124 * mips-tdep.c (mips_register_virtual_type): New function.
2125 (mips_gdbarch_init): Register mips_register_virtual_type()
2126 with gdbarch machinery.
2127 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2128 this file instead of tm-bigmips.h.
2129 (MIPS_REGSIZE): Delete this macro.
2130 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2131 multiarch version in mips-tdep.c will be found.
2132
2133 2002-08-01 Andrew Cagney <cagney@redhat.com>
2134
2135 * NEWS: Menion that CHILL has been made obsolete.
2136
2137 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2138 * stabsread.c (read_range_type): Ditto.
2139 * gdbtypes.h: Ditto.
2140 * language.c (binop_type_check): Ditto.
2141 (binop_result_type): Ditto.
2142 (integral_type): Ditto.
2143 (character_type): Ditto.
2144 (string_type): Ditto.
2145 (boolean_type): Ditto.
2146 (structured_type): Ditto.
2147 (lang_bool_type): Ditto.
2148 (binop_type_check): Ditto.
2149 * language.h (_LANG_chill): Ditto.
2150 * dwarfread.c (set_cu_language): Ditto.
2151 * dwarfread.c (CHILL_PRODUCER): Ditto.
2152 * dwarfread.c (handle_producer): Ditto.
2153 * expression.h (enum exp_opcode): Ditto.
2154 * eval.c: Ditto for comments.
2155 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2156 * expprint.c (print_subexp): Ditto.
2157 (print_subexp): Ditto.
2158 * valops.c (value_cast): Ditto.
2159 (search_struct_field): Ditto.
2160 * value.h (COERCE_VARYING_ARRAY): Ditto.
2161 * symfile.c (init_filename_language_table): Ditto.
2162 (add_psymbol_with_dem_name_to_list): Ditto.
2163 * valarith.c (value_binop): Ditto.
2164 (value_neg): Ditto.
2165 * valops.c (value_slice): Ditto.
2166 * symtab.h (union language_specific): Ditto.
2167 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2168 (SYMBOL_DEMANGLED_NAME): Ditto.
2169 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2170 * defs.h (enum language): Ditto.
2171 * symtab.c (got_symtab): Ditto.
2172 * utils.c (fprintf_symbol_filtered): Ditto.
2173
2174 * ch-typeprint.c: Make file obsolete.
2175 * ch-valprint.c: Make file obsolete.
2176 * ch-lang.h: Make file obsolete.
2177 * ch-exp.c: Make file obsolete.
2178 * ch-lang.c: Make file obsolete.
2179
2180 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2181 CHILL_LIB.
2182 (TARGET_FLAGS_TO_PASS): Ditto.
2183 (CHILLFLAGS): Obsolete.
2184 (CHILL): Obsolete.
2185 (CHILL_FOR_TARGET): Obsolete.
2186 (CHILL_LIB): Obsolete.
2187 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2188 ch-valprint.c.
2189 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2190 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2191 ch-lang.o.
2192 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2193 targets.
2194
2195 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2196
2197 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2198 This does not change anything at the moment, but will be helpful
2199 later when full Ada support is integrated.
2200
2201 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2202
2203 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2204 help message.
2205
2206 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2207
2208 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2209 and save it in a local variable. Use variable in later test.
2210
2211 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2212
2213 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2214 test. (Thanks to Daniel Jacobowitz.)
2215
2216 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2217
2218 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2219 (mips_abi_strings): Add "n64".
2220 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2221
2222 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2223
2224 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2225 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2226
2227 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2228
2229 * utils.c (host_pointer_to_address, address_to_host_pointer):
2230 Use gdb_assert() instead of explicit call to internal_error().
2231
2232 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2233
2234 * Makefile.in (rs6000-nat.o): Update dependencies.
2235
2236 From Nicholas Duffek:
2237 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2238 (aix-thread.o): New rule.
2239 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2240 * config/powerpc/aix432.mh: New file.
2241
2242 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2243
2244 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2245 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2246 (fetch_core_registers, ppc_linux_supply_gregset)
2247 (ppc_linux_supply_fpregset): New functions.
2248 (ppc_linux_regset_core_fns): New.
2249 (_initialize_ppc_linux_tdep): Call add_core_fns.
2250 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2251 and ppc_linux_supply_gregset.
2252 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2253 (supply_fpregset): Call ppc_linux_supply_fpregset.
2254 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2255 corelow.o.
2256 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2257
2258 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2259
2260 * symtab.c (lookup_symbol): Demangle before lowercasing.
2261
2262 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2263
2264 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2265 declaration.
2266 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2267 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2268 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2269 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2270 "gdb_string.h".
2271 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2272 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2273 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2274 (avr-tdep.o, mon960-rom.o): Ditto.
2275 (aout_stabs_gnu_h): Define.
2276 (symtab_h): Remove $(gdb_obstack_h).
2277
2278 2002-07-30 Jim Blandy <jimb@redhat.com>
2279
2280 Patch from David Carlton <carlton@math.stanford.edu>:
2281 * gdbinit.in: Move the `dir' commands that add GDB's own source
2282 directory to the search path to the end, so that the `gdb' source
2283 directory will be searched first.
2284
2285 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2286
2287 * gdb_obstack.h: New file.
2288 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2289 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2290 * objfiles.h: Include "gdb_obstack.h".
2291 * Makefile.in (gdb_obstack_h): Define.
2292 (symtab_h): Add $(gdb_obstack_h).
2293 (objfiles_h): Add $(gdb_obstack_h).
2294
2295 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2296 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2297 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2298 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2299 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2300 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2301 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2302 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2303
2304 * Makefile.in (bcache.o): Update dependencies.
2305 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2306 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2307 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2308 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2309 (stabsread.o, symfile.o, symmisc.o): Ditto.
2310 (symtab.o, typeprint.o, macroexp.o): Ditto.
2311 (macrotab.o, mdebugread.o): Ditto.
2312 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2313 (coff_ecoff_h, aout_aout64_h): Define.
2314 (aout_stabs_gnu_h, libaout_h): Define.
2315
2316 2002-07-29 Andrew Cagney <cagney@redhat.com>
2317
2318 * regcache.c (struct regcache_descr): Rename nr_registers to
2319 nr_cooked_registers. Revise comments describing the structure
2320 member fields.
2321 (init_regcache_descr): Update.
2322 (init_legacy_regcache_descr): Update.
2323 (read_register_gen, write_register_gen): When a cooked register in
2324 the raw register range, directly access the value from the raw
2325 register cache.
2326
2327 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2328
2329 * z8k-tdep.c: Do not include "obstack.h".
2330 * h8300-tdep.c, h8500-tdep.c: Ditto.
2331 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2332 * valprint.c, v850-tdep.c: Ditto.
2333 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2334 * mn10200-tdep.c: Ditto.
2335
2336 * Makefile.in (z8k-tdep.o): Update dependencies.
2337 (m68hc11-tdep.o, valprint.o): Ditto.
2338 (v850-tdep.o, d10v-tdep.o): Ditto.
2339 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2340 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2341 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2342 (sh_opc_h, gdb_sim_sh_h): Define.
2343 (elf_sh_h, elf_bfd_h): Define.
2344 (opcode_m68hc11_h): Define.
2345 (OPCODES_SRC, OPCODES_DIR): define.
2346 (OPCODES): Use $(OPCODES_DIR).
2347 (gdb_sim_d10v_h): Rename sim_d10v_h.
2348 (gdb_sim_arm_h): Rename sim_arm_h.
2349
2350 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2351
2352 * utils.c (host_pointer_to_address, address_to_host_pointer):
2353 Change internal_error() message to indicate function responsible
2354 for the error.
2355
2356 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2357
2358 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2359 calls to local_hex_string_custom().
2360
2361 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2362
2363 * irix5-nat.c: Move IRIX shared library support from here...
2364 * solib-irix.c: ...to here. Revised substantially to work with
2365 generic solib framework.
2366
2367 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2368 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2369 * mips-irix-tdep.c: New file.
2370
2371 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2372 (mips-irix-tdep.o, solib-irix.o): New rules.
2373 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2374 solib-irix.o.
2375 * config/mips/irix6.mt (TDEPFILES): Likewise.
2376 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2377
2378 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2379
2380 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2381 disabled (via ``#if 0'') includes.
2382
2383 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2384
2385 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2386 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2387 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2388 Add support for the fpscr register.
2389 * rs6000-nat.c (regmap, fetch_inferior_registers)
2390 (store_inferior_registers, fetch_core_registers): Likewise.
2391
2392 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2393
2394 * rs6000-nat.c (language.h): Include.
2395 (special_regs): Delete this array.
2396 (regmap): New function.
2397 (fetch_register, store_register): Use regmap() to map gdb
2398 register numbers to ptrace register numbers. Also, use
2399 outputs from regmap() to make decisions regarding type of
2400 ptrace() call to make. In particular, don't compare against
2401 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2402 (fetch_inferior_registers, store_inferior_registers): Where
2403 possible, obtain register numbers from tdep struct. Don't
2404 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2405 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2406 (LAST_UISA_SP_REGNUM): Delete.
2407
2408 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2409
2410 * rs6000-nat.c (ppc-tdep.h): Include.
2411 (fetch_registers, store_register, fetch_core_registers): Don't
2412 access registers[] directly. Instead, use supply_register() or
2413 regcache_collect() as appropriate.
2414 (find_toc_address): Format hex address with local_hex_string().
2415
2416 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2417
2418 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2419 bfd/elf32-frv.c.
2420
2421 2002-07-24 Tom Tromey <tromey@redhat.com>
2422
2423 * jv-exp.y: Marked all strings with _().
2424 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2425 internal_error.
2426 (MethodInvocation, CastExpression, parse_number, yyerror,
2427 java_type_from_name, push_expression_name, yylex): Typo fixes.
2428
2429 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2430
2431 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2432 (tee_file_flush, tee_file_write, tee_file_fputs)
2433 (tee_file_isatty): New.
2434 * ui-file.h (tee_file_new): Add prototype.
2435
2436 2002-07-24 Aidan Skinner <aidan@velvet.net>
2437
2438 * ada-lang.c: Change k&r style function definitions to prototyped
2439 form.
2440 * ada-typeprint.c: Change k&r style function definitions to prototyped
2441 form.
2442 * ada-valprint.c: Change k&r style function definitions to prototyped
2443 form.
2444
2445 2002-07-24 Andrew Cagney <cagney@redhat.com>
2446
2447 * README: Remove reference to remote-bug.
2448 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2449 remote-bug.c.
2450 (m88k-nat.o): Delete rule.
2451 (m88k-tdep.o): Delete rule.
2452 (remote-bug.o): Delete rule.
2453 * MAINTAINERS: Mark as obsolete.
2454 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2455 * m88k-tdep.c: Make file obsolete.
2456 * config/m88k/m88k.mh: Ditto.
2457 * config/m88k/delta88v4.mh: Ditto.
2458 * config/m88k/delta88v4.mt: Ditto.
2459 * config/m88k/delta88.mt: Ditto.
2460 * config/m88k/delta88.mh: Ditto.
2461 * remote-bug.c: Ditto.
2462 * config/m88k/tm-delta88.h: Ditto.
2463 * config/m88k/nm-delta88v4.h: Ditto.
2464 * config/m88k/xm-delta88.h: Ditto.
2465 * config/m88k/xm-dgux.h: Ditto.
2466 * config/m88k/tm-m88k.h: Ditto.
2467 * config/m88k/nm-m88k.h: Ditto.
2468 * config/m88k/tm-delta88v4.h: Ditto.
2469 * m88k-nat.c: Ditto.
2470 * cxux-nat.c: Ditto.
2471 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2472 and m88*-*-* obsolete.
2473 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2474 m88*-*-* obsolete.
2475
2476 2002-07-24 Andrew Cagney <cagney@redhat.com>
2477
2478 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2479 constant. Same for local pointer variables.
2480 (extract_signed_integer): Ditto.
2481 * defs.h (extract_unsigned_integer): Update.
2482 (extract_signed_integer): Update.
2483
2484 2002-07-24 Andrew Cagney <cagney@redhat.com>
2485
2486 * regcache.c (regcache_raw_write): Change buf parameter to a
2487 constant void pointer.
2488 (regcache_raw_read): Change buf parameter to a void pointer.
2489 (legacy_write_register_gen): Change myaddr parameter a constant
2490 void pointer.
2491 (supply_register): Change val parameter to a const void pointer.
2492 * regcache.h (regcache_raw_write): Update declaration.
2493 (regcache_raw_read): Update declaration.
2494 (supply_register): Update declaration.
2495
2496 2002-07-24 Tom Tromey <tromey@redhat.com>
2497
2498 * defs.h (gdb_readline_wrapper): Declare.
2499 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2500 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2501 * top.c (gdb_readline_wrapper): New function.
2502 (command_line_input): Use it.
2503
2504 2002-07-24 Andrew Cagney <cagney@redhat.com>
2505
2506 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2507 regcache_read and regcache_write.
2508 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2509 * regcache.c: Update.
2510 * sh-tdep.c (sh64_push_arguments): Update comment.
2511 (sh_pseudo_register_read): Update.
2512 (sh_pseudo_register_write): Update.
2513 (sh4_register_read): Update.
2514 (sh4_register_write): Update.
2515 (sh64_pseudo_register_read): Update.
2516 (sh64_pseudo_register_write): Update.
2517 (sh64_register_read): Update.
2518 (sh64_register_write): Update.
2519 * i386-tdep.c (i386_extract_return_value): Update.
2520 (i386_extract_struct_value_address): Update.
2521 (i386_extract_return_value): Update.
2522 * blockframe.c (generic_read_register_dummy): Update.
2523 (generic_call_dummy_register_unwind): Update
2524 * infrun.c (write_inferior_status_register): Update.
2525
2526 2002-07-23 Jim Blandy <jimb@redhat.com>
2527
2528 * parser-defs.h (expression_context_pc): Make this extern.
2529 (Thanks to Michael Snyder.)
2530
2531 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2532
2533 GDB 5.2.1 released from 5.2 branch.
2534 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2535 * README: Update to mention 5.2.1.
2536
2537 2002-07-23 Mark Salter <msalter@redhat.com>
2538
2539 * remote.c (remote_read_bytes): Fix check for error.
2540
2541 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2542
2543 * aix-thread.c (language.h): Include.
2544 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2545 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2546 Print newlines at end of debug messages.
2547 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2548 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2549
2550 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2551
2552 * aix-thread.c (ppc-tdep.h): Include.
2553 (special_register_p): New function.
2554 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2555 (store_regs_user_thread): Use register number information from
2556 gdbarch_tdep struct instead of hardcoded offsets relative to
2557 FIRST_UISA_SP_REGNUM.
2558 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2559 special_register_p() instead of using FPLAST_REGNUM and
2560 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2561 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2562 will be MQ's register number.
2563
2564 2002-07-22 Michael Snyder <msnyder@redhat.com>
2565
2566 * aix-thread.c (ops): Rename to aix_thread_ops.
2567 (base_ops): Rename to base_target.
2568 (ops_attach): Rename to aix_thread_attach.
2569 (ops_detach): Rename to aix_thread_detach.
2570 (ops_resume): Rename to aix_thread_detach.
2571 (ops_wait): Rename to aix_thread_wait.
2572 (ops_kill): Rename to aix_thread_kill.
2573 (init_ops): Rename to init_aix_thread_ops.
2574 (ops_fetch_register): Rename to aix_thread_fetch_register.
2575 (ops_store_register): Rename to aix_thread_store_register.
2576 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2577 (ops_thread_alive): Rename to aix_thread_thread_alive.
2578 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2579 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2580 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2581 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2582 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2583 (store_regs_lib): Rename to store_regs_user_thread.
2584 (store_regs_kern): Rename to store_regs_kernel_thread.
2585
2586 2002-07-22 Michael Snyder <msnyder@redhat.com>
2587
2588 * aix-thread.c (ops_prepare_to_store): Eliminate.
2589 (init_ops): Don't initialize ops.prepare_to_store.
2590 (store_regs_kern): Pre-fetch register buffers from child,
2591 because some registers may not be in the cache. Copy
2592 regs from register cache only if they are cached.
2593 (store_regs_lib): Copy regs from register cache only
2594 if they are cached.
2595 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2596 fill_gprs64): Ditto.
2597
2598 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2599
2600 * aix-thread.c (gdb_assert.h): Include.
2601 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2602 register sizes (from register cache) match size of buffer holding
2603 register data.
2604 (fill_sprs32): Change parameter types to match those in the ptrace()
2605 buffer.
2606 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2607 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2608
2609 2002-07-22 Michael Snyder <msnyder@redhat.com>
2610
2611 * aix-thread.c (supply_sprs64): Cosmetic change.
2612 (supply_sprs32): Cosmetic change.
2613 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2614 (fill_sprs64): Use regcache_collect instead of read_register.
2615 (store_regs_lib): Use regcache_collect instead of
2616 read_register. Use fill_sprs32 instead of fill_sprs64,
2617 if debugging a 32-bit architecture.
2618 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2619 out of the register cache, instead of passing a pointer into
2620 the register cache directly to ptrace. Use regcache_collect
2621 insteaad of read_register.
2622 (ops_prepare_to_store): Use target_read_registers instead
2623 of read_register_bytes.
2624
2625 2002-07-20 Aidan Skinner <aidan@velvet.net>
2626
2627 * MAINTAINERS: Add self under write after approval.
2628
2629 2002-07-20 Aidan Skinner <aidan@velvet.net>
2630
2631 * ada-tasks.c: Change k&r style function definitions to prototyped
2632 form.
2633
2634 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2635
2636 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2637 * x86-64-tdep.c: Include "objfiles.h".
2638 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2639 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2640
2641 2002-07-17 Michal Ludvig <michal@suse.cz>
2642
2643 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2644 (update_context): Initialise cfa variable.
2645
2646 2002-07-17 Michael Snyder <msnyder@redhat.com>
2647
2648 * aix-thread.c: Shorten some long lines.
2649 Bring comments into line with code spec.
2650
2651 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2652
2653 * infrun.c: Re-indent using gdb_indent.sh.
2654
2655 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2656
2657 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2658 Leave the indentation temporarily untouched, to minimize the diffs.
2659
2660 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2661
2662 * stabsread.c: Make os9k sections of the code obsolete,
2663 for real this time.
2664 * stabsread.h: Make os9k sections of the code obsolete.
2665
2666 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2667
2668 * linux-low.c (regsets_store_inferior_registers): Add free()
2669 at the end of a loop to prevent memory leak.
2670 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2671 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2672 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2673 line a comment.
2674 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2675
2676 2002-07-17 Jim Blandy <jimb@redhat.com>
2677
2678 * macrocmd.c (info_macro_command): Remove newline from error
2679 message.
2680
2681 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2682
2683 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2684 (sh_gdbarch_init): Use it for sh-dsp.
2685
2686 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2687
2688 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2689 64-bit DWARF2 format.
2690
2691 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2692
2693 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2694 <sys/proc.h> when not available.
2695
2696 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2697
2698 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2699 * stabsread.c: Make os9k sections of the code obsolete.
2700 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2701 * config/i386/i386os9k.mt: Make file obsolete.
2702 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2703 (COMMON_OBS): Remove os9kread.o
2704 (SFILES): Remove os9kread.c.
2705 (os9kread.o, remote-os9k.o): Make target obsolete.
2706 * remote-os9k.c: Make file obsolete.
2707 * os9kread.c: Make file obsolete.
2708 * Makefile.in
2709
2710 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2711
2712 * NEWS: Mention that the FR30 has been made obsolete.
2713 * fr30-tdep.c: Make file obsolete.
2714 * config/fr30/tm-fr30.h: Ditto.
2715 * config/fr30/fr30.mt: Ditto.
2716 * configure.tgt: Make fr30-*-elf obsolete.
2717 * MAINTAINERS: Make fr30-elf obsolete.
2718
2719 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2720
2721 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2722 found is not inside a section.
2723
2724 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2725
2726 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2727 strerror().
2728 (pdc_realloc): Use xrealloc() instead of realloc().
2729
2730 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2731
2732 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2733 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2734 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2735 macros.
2736
2737 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2738
2739 * aix-thread.c (ptrace_check): Eliminate goto.
2740 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2741 problem.
2742
2743 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2744
2745 * aix-thread.c (gdbcmd.h): Include.
2746 (DEBUG, DBG, DBG2, dbg): Eliminate.
2747 (debug_aix_thread): New static global.
2748 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2749 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2750 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2751 invocations to DBG and DBG2 macros to test against
2752 ``debug_aix_thread'' and call fprintf_unfiltered().
2753 (_initialize_aix_thread): Add new command "set debug aix-thread".
2754
2755 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2756
2757 From Gerhard Tonn <TON@de.ibm.com>:
2758 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2759 instead of supply_register.
2760
2761 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2762
2763 * dwarf2cfi.c: Include "gdb_assert.h".
2764 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2765 non-NULL.
2766 (update_context): Do not use __func__. Add missing ``break''.
2767 (update_context): Do not use __func__.
2768
2769 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2770
2771 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2772 and its setting. Set gdbarch instruction printing functions
2773 directly. For non-rs6000 case use new function
2774 gdb_print_insn_powerpc.
2775 (gdb_print_insn_powerpc): New function.
2776
2777 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2778
2779 * NEWS: Mention that the d30v has been marked obsolete.
2780 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2781 * configure.tgt: Mark d30v-*-* as obsolete.
2782 * d30v-tdep.c: Mark file as obsolete.
2783 * config/d30v/d30v.mt: Ditto.
2784 * config/d30v/tm-d30v.h: Ditto.
2785
2786 2002-07-13 Aidan Skinner <aidan@velvet.net>
2787
2788 * ada-tasks.c (add_task_entry): replace calls to
2789 malloc() with xmalloc
2790 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2791
2792 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2793 ada_finish_decode_line_1, all_sals_for_line
2794 ada_breakpoint_rewrite): replace calls to free() with xfree()
2795
2796 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2797
2798 From Nicholas Duffek (with minor changes by Martin Hunt,
2799 Louis Hamilton, and Kevin Buettner):
2800 * aix-thread.c: New file.
2801
2802 2002-07-12 Petr Sorfa <petrs@caldera.com>
2803
2804 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2805 complaint for invalid attribute class or form.
2806 (read_func_scope): DW_AT_frame_base
2807 better handling of DW_AT_block*.
2808 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2809 better handling of DW_AT_block*.
2810 (read_common_block): DW_AT_location
2811 better handling of DW_AT_block*.
2812 (read_partial_die): DW_AT_location better handling
2813 of DW_AT_block*.
2814 (new_symbol): DW_AT_external better handling of
2815 DW_AT_block*. Proper initialization of variable
2816 "addr".
2817 (attr_form_is_block): New function that returns true
2818 if the attribute's form is of DW_FORM_block*.
2819
2820 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2821
2822 * valops.c (find_method_list): Remove comment about
2823 removed STATIC_MEMFUNCP argument.
2824 (value_find_oload_method_list): Likewise.
2825
2826 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2827
2828 From Nicholas Duffek:
2829 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2830 target_new_objfile_hook.
2831
2832 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2833
2834 From Nicholas Duffek:
2835 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2836 csect.
2837
2838 2002-07-12 Andrew Cagney <cagney@redhat.com>
2839
2840 * MAINTAINERS: Mention --enable-sim-build-warnings.
2841 (m68hc11-elf): Disable sim build warnings.
2842 (m32r-elf): Mark as broken obsolete candidate.
2843 (x86_64-linux-gnu): Mark as buildable with -Werror.
2844 (arm-elf): Change -w to ``,'' which enables warnings but not
2845 -Werror.
2846
2847 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2848
2849 * bcache.h: Update copyright.
2850 (struct bstring, struct bcache): Move definition to "bcache.c".
2851 Replaced by opaque declaration.
2852 (bcache_xfree): Replace free_bcache.
2853 (bcache_xmalloc, bcache_memory_used): Declare.
2854
2855 * bcache.c: Update copyright.
2856 (struct bstring, struct bcache): Moved to here from "bcache.h".
2857 Update comments.
2858 (bcache_xmalloc, bcache_memory_used): New functions.
2859 (bcache_xfree): Replace function free_bcache.
2860
2861 * Makefile.in (objfiles.o): Add $(bcache_h).
2862 (objfiles_h): Remove $(bcache_h).
2863 (symfile.o): Add $(bcache_h).
2864
2865 * symmisc.c: Update copyright.
2866 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2867 (print_objfile_statistics): Use bcache_memory_used.
2868
2869 * symfile.c: Include "bcache.h".
2870 (reread_symbols): Use bcache_xfree.
2871 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2872 (add_psymbol_to_list): Pass psymbol_cache by value.
2873 (add_psymbol_with_dem_name_to_list): Ditto.
2874
2875 * objfiles.h: Update copyright.
2876 (struct bcache): Declare opaque. Do not include "bcache.h".
2877 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2878 bcache'' pointers.
2879 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2880
2881 * objfiles.c: Include "bcache.h". Update copyright.
2882 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2883 macro_cache.
2884 (free_objfile): Use bcache_xfree.
2885
2886 2002-07-11 Grace Sainsbury <graces@redhat.com>
2887
2888 * monitor.c (monitor_fetch_register): Make name a constant.
2889 (monitor_store_register): Same.
2890
2891 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2892
2893 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2894 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2895 (finish_block) For non-function blocks, hash the symbol table. For
2896 function blocks, mark the symbol table as unhashed.
2897 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2898 (msymbol_hash_iw): Likewise.
2899 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2900 value.
2901 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2902 (lookup_minimal_symbol): Likewise for both.
2903 * symtab.h (struct block): Add `hashtable' flag. Comment the
2904 hashtable.
2905 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2906 (ALL_BLOCK_SYMBOLS): Update.
2907 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2908 (struct symbol): Add `hash_next' pointer.
2909 * symtab.c (lookup_block_symbol): Search using the hash table when
2910 possible.
2911 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2912 (search_symbols, find_addr_symbol): Likewise.
2913
2914 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2915 (read_dst_symtab): Likewise.
2916 * jv-lang.c (get_java_class_symtab): Likewise.
2917 * mdebugread.c: Include "gdb_assert.h".
2918 (shrink_block): Assert that the block being modified is not hashed.
2919 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2920 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2921 symbols.
2922 (dump_symtab): Recognize hashed blocks.
2923 * printcmd.c (print_frame_args): Assert that function blocks do not
2924 have hashed symbol tables.
2925 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2926 (fill_in_ada_prototype, debug_print_block): Likewise.
2927 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2928
2929 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2930
2931 * stack.c (print_frame): Use result of frame_address_in_block()
2932 instead of fi->pc when evaluating symbols.
2933 (backtrace_command_1): Ditto.
2934
2935 2002-07-11 Andrew Cagney <cagney@redhat.com>
2936
2937 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2938 Make static.
2939
2940 * arm-tdep.c (arm_register_name): Make return type constant.
2941
2942 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2943
2944 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2945 prototype.
2946 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2947 * s390-tdep.c (s390_fp_regnum): Ditto.
2948 (s390_read_fp): Ditto.
2949 (s390_pop_frame): Ditto.
2950 (_initialize_s390_tdep): Ditto.
2951 * remote.c (get_remote_state): Ditto.
2952 * procfs.c (mappingflags): Ditto.
2953 * memattr.c (_initialize_mem): Ditto.
2954 * mcore-tdep.c (mcore_pop_frame): Ditto.
2955 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2956 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2957 * language.c (set_case_str): Ditto.
2958 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2959 * frv-tdep.c (new_variant): Ditto.
2960 (frv_stopped_data_address): Ditto.
2961 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2962 (context_alloc): Ditto.
2963 (frame_state_alloc): Ditto.
2964 (unwind_tmp_obstack_init): Ditto.
2965 (unwind_tmp_obstack_free): Ditto.
2966 (cfi_read_fp): Ditto.
2967 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2968 (cris_pop_frame): Ditto.
2969 * c-lang.c (scanning_macro_expansion): Ditto.
2970 (finished_macro_expansion): Ditto.
2971 (c_preprocess_and_parse): Ditto.
2972 * gdbarch.sh: Ditto.
2973 * gdbarch.h, gdbarch.c: Regenerate.
2974 * config/mn10200/tm-mn10200.h: Adjust indentation.
2975 * target.c: Adjust indentation.
2976 * symtab.h: Adjust indentation.
2977 * stabsread.h: Adjust indentation.
2978 * remote-es.c: Adjust indentation.
2979 * os9kread.c: Adjust indentation.
2980
2981 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2982
2983 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2984 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2985
2986 2002-07-10 Grace Sainsbury <graces@redhat.com>
2987
2988 * NEWS: Mention m68k, mcore multi-arching.
2989 * MAINTAINERS: Change status of m68k, mcore to reflect
2990 multi-arching.
2991
2992 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2993
2994 * valops.c (find_overload_match): Free oload_syms.
2995
2996 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2997
2998 Define HAVE_SYS_PROC_H if sys/proc.h exists
2999 * configure.in: Add check for sys/proc.h
3000 * config.in: Regenerate.
3001 * configure: Regenerate.
3002
3003 2002-07-09 Grace Sainsbury <graces@redhat.com>
3004
3005 * config/m68k/tm-m68k.h: Remove macros wrapped in
3006 #if !GDB_MULTI_ARCH.
3007
3008 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3009
3010 * config.in, configure: Regenerate.
3011
3012 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3013
3014 * dwarf2cfi.c: Include "gcore.h".
3015 (execute_stack_op): Fix implementation of the
3016 DW_OP_deref and DW_OP_deref_size operators by letting do their
3017 lookup in the target.
3018
3019 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3020
3021 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3022 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3023 tdep->sc_sp_offset.
3024
3025 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3026
3027 Fix PR gdb/595, gdb/602
3028 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3029 Don't call value_cast, just read the vtable pointer; update comments
3030 to match.
3031
3032 2002-07-05 Grace Sainsbury <graces@redhat.com>
3033
3034 * config/mcore/tm-mcore.h: Remove file.
3035 * config/mcore/mcore.mt: Remove definition of TM_FILE
3036 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3037
3038 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3039
3040 * i386bsd-tdep.c: Include "gdb_string.h".
3041
3042 2002-07-04 Grace Sainsbury <graces@redhat.com>
3043
3044 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3045 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3046 mcore-tdep.
3047 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3048 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3049 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3050 (RETVAL_REGNUM): Move macros from tm-mcore.h
3051 (mcore_reg_struct_has_addr): New function.
3052 (mcore_gdbarch_init): Added initializations for the macros removed
3053 from tm-mcore.h.
3054
3055 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3056
3057 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3058 traditonal string branding within the ELF header.
3059
3060 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * symtab.c (remove_params): New function.
3063 (make_symbol_overload_list): Use it instead of cplus_demangle.
3064 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3065
3066 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3067
3068 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3069
3070 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3071 New variables.
3072 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3073 and tdep->sigtramp_end.
3074 * i386obsd-nat.c: New file.
3075 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3076
3077 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3078 Don't call get_current_frame().
3079
3080 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3081
3082 * i386-nat.c (child_post_startup_inferior): New function
3083 calling i386_cleanup_dregs if
3084 I386_USE_GENERIC_WATCHPOINTS is defined.
3085 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3086 conditional to acknowledge that i386-nat.c has its
3087 own child_post_startup_inferior function.
3088
3089 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3090
3091 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3092 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3093 instead of MAX_REGISTER_RAW_SIZE.
3094 (i386_extract_return_value, i386_extract_struct_value_address):
3095 Convert to use regcache.
3096 (i386_gdbarch_init): Set max_register_raw_size and
3097 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3098 Set extract_return_value and extract_struct_value_address instead
3099 of their deprecated variants.
3100
3101 Convert i386 target to generic dummy frames.
3102 * i386-tdep.c: Include "symfile.h".
3103 (i386_frameless_signal_p): Consider a function to be frameless if
3104 the pc points at the first instruction of the function.
3105 (i386_frame_chain): Handle (generic) call dummies.
3106 (i386_frame_saved_pc): Likewise.
3107 (i386_frame_init_saved_regs): Remove code dealing with call
3108 dummies on the stack.
3109 (i386_push_dummy_frame): Removed.
3110 (i386_call_dummy_words): Removed.
3111 (i386_fix_call_dummy): Removed.
3112 (i386_push_return_address): New function.
3113 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3114 parameter, and don't call get_current_frame.
3115 (i386_pop_frame): New function.
3116 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3117 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3118 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3119 call_dummy_length to 0, set call_dummy_words to NULL, set
3120 sizeof_call_dummy_words to 0, set fix_call_dummy to
3121 generic_fix_call_dummy, set pc_in_call_dummy to
3122 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3123 generic_push_dummy_frame, set push_return_address to
3124 i386_push_return_address and set frame_chain_valid to
3125 generic_file_frame_chain_valid.
3126
3127 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3128
3129 * gdbarch.sh (struct regcache): Add opaque declaration.
3130 (EXTRACT_RETURN_VALUE): New architecture method.
3131 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3132 * gdbarch.h, gdbarch.c: Regenerate.
3133 * arch-utils.c (legacy_extract_return_value): New function.
3134 * arch-utils.h (legacy_extract_return_value): Declare.
3135 * values.c (value_being_returned): Re-enable code handling
3136 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3137 deprecated_grub_regcache_for_registers call to block handling
3138 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3139 (EXTRACT_RETURN_VALUE): Do not define.
3140
3141 2002-07-03 Grace Sainsbury <graces@redhat.com>
3142
3143 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3144 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3145 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3146 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3147 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3148 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3149 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3150 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3151 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3152 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3153 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3154 argument so the function fits the prototype in the architecture
3155 vector.
3156 (mcore_pop_frame): Remove argument so the function fits the
3157 prototype. Use get_current_frame instead of the argument.
3158 (mcore_push_arguments): Change type of struct_return so the
3159 function can be used in the architecture vector.
3160 (mcore_store_struct_return): Add.
3161 (mcore_frame_init_saved_regs): Add.
3162 (mcore_gdbarch_init): Add function calls to replace the macros
3163 removed from tm-mcore.h
3164
3165 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3166
3167 * infcmd.c (print_return_value): Remove compatibility code calling
3168 deprecated_grub_regcache_for_registers.
3169
3170 * values.c: Include "regcache.h".
3171 (value_being_returned): Update. Use
3172 deprecated_grub_regcache_for_registers to extract the register
3173 buffer address.
3174 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3175 ``struct regcache''.
3176 * Makefile.in (values.o): Add dependency on $(regcache_h).
3177
3178 * inferior.h (run_stack_dummy): Change type of second parameter to
3179 a ``struct regcache''.
3180 * valops.c (hand_function_call): Change type of retbuf to ``struct
3181 regcache''. Allocate using regcache_xmalloc, clean using
3182 make_cleanup_regcache_xfree.
3183 * infcmd.c (run_stack_dummy): Update. Use
3184 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3185
3186 * regcache.c (do_regcache_xfree): New function.
3187 (make_cleanup_regcache_xfree): New function.
3188 * regcache.h (make_cleanup_regcache_xfree): Declare.
3189
3190 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3191
3192 * event-top.c (command_line_handler): Don't read past
3193 beginning of buffer.
3194
3195 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3196
3197 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3198 struct frame_id.
3199 (varobj_create): Store frame_id for root.
3200 (varobj_gen_name): Use xasprintf.
3201 (varobj_update): Save and restore frame using get_frame_id() and
3202 frame_find_by_id().
3203 (create_child): Use xasprintf.
3204 (new_root_variable): Initialize frame_id.
3205 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3206 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3207 to prevent memory leak.
3208
3209 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3210
3211 * valops.c (hand_function_call): Move declaration of retbuf to
3212 start of function, allocate using malloc, add a cleanup but before
3213 the inf_status cleanup, cleanup the buffer. Rename local variable
3214 old_chain to inf_status_cleanup.
3215
3216 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3217
3218 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3219
3220 * cli/cli-decode.c (cmd_func_p): New function.
3221 (cmd_func): New function.
3222
3223 * command.h: Add cmd_func() and cmd_func_p().
3224
3225 2002-07-03 Grace Sainsbury <graces@redhat.com>
3226
3227 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3228 (REGISTER_SIZE): Remove.
3229 (MAX_REGISTER_RAW_SIZE): Remove.
3230 (REGISTER_VIRTUAL_TYPE): Remove.
3231 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3232 (REGISTER_NAME): Remove.
3233 (USE_GENERIC_DUMMY_FRAMES): Remove.
3234 (CALL_DUMMY): Remove.
3235 (CALL_DUMMY_START_OFFSET): Remove.
3236 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3237 (CALL_DUMMY_LOCATION): Remove.
3238 (FIX_CALL_DUMMY): Remove.
3239 (CALL_DUMMY_ADDRESS): Remove.
3240 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3241 (SAVE_DUMMY_FRAME_TOS): Remove.
3242 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3243 (mcore_register_virtual_type): New function.
3244 (mcore_register_byte): New function.
3245 (mcore_register_size): New function.
3246 (mcore_register_name): New function.
3247 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3248 macros removed from tm-mcore.h.
3249 (mcore_dump_tdep): Add.
3250 (_initialize_mcore_tdep): Add gdbarch_register call.
3251
3252 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3253
3254 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3255 frameless_look_for_prologue, such that we actually call this
3256 function.
3257
3258 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3259
3260 * frame.h (frame_address_in_block): New function.
3261
3262 * blockframe.c (frame_address_in_block): New function extracted
3263 from get_frame_block().
3264 (get_frame_block): Use frame_address_in_block().
3265 (block_innermost_frame): Use frame_address_in_block() to match
3266 the frame pc address against the block boundaries rather than
3267 the frame pc directly. This prevents a failure when a frame pc
3268 is actually a return-address pointing immediately after the end
3269 of the given block.
3270
3271 2002-07-02 Grace Sainsbury <graces@redhat.com>
3272
3273 * MAINTAINERS: Add self under write after approval.
3274
3275 2002-07-02 Grace Sainsbury <graces@redhat.com>
3276
3277 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3278 used in architecture vector. The default is
3279 m68k_local_breakpoint_from_pc.
3280 (m68k_local_breakpoint_from_pc): Add.
3281 (enum): Add register numbers from tm-m68k.h.
3282 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3283 vector.
3284 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3285 GDB_MULTI_ARCH_PARTIAL.
3286 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3287 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3288 m68k-tdep.c.
3289 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3290 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3291 to enum in m68k-tdep.c
3292
3293 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3294
3295 * solib-osf.c (open_map): Compute the list of shared libraries
3296 loaded by the inferior, rather than the list of libraries loaded
3297 by GDB itself. Otherwise, GDB ends up reading the symbols from
3298 the wrong shared libraries...
3299
3300 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3301
3302 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3303 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3304 macros.
3305 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3306 Remove functions.
3307 (FRAMELESS_SIGNAL): Remove function.
3308 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3309 i386_linux_saved_pc_after_call): Removed.
3310 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3311 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3312 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3313
3314 * i386-tdep.c (i386_frameless_signal_p): New function.
3315 (i386_frame_chain): Deal with frameless signals.
3316 (i386_sigtramp_saved_sp): New function.
3317 (i386_frame_saved_pc): Deal with frameless signals.
3318 (i386_saved_pc_after_call): Make sure the correct value is
3319 returned just after entry into a sigtramp.
3320 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3321 i386fbsd4_sc_sp_offset): New variables.
3322 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3323 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3324 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3325 similiar to what we already did for sc_pc_offset.
3326 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3327 tdep->sc_sp_offset.
3328
3329 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3330
3331 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3332
3333 * config/i386/tm-x86-64linux.h: New.
3334 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3335 definitions.
3336 * config/i386/nm-x86-64.h: Rename to ...
3337 * config/i386/nm-x86-64linux.h: ... this one.
3338 * config/i386/x86-64linux.mh: Reflect the above change.
3339
3340 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3341
3342 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3343 with sigcontext_addr. Add sc_sp_offset.
3344 (i386bsd_sigtramp_saved_pc): Remove prototype.
3345 (i386bsd_sicontext_addr): Add prototype.
3346 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3347 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3348 (i386_svr4_sigtramp_saved_pc): Removed.
3349 (i386_svr4_sigcontext_addr): New function.
3350 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3351 Initialize tdep->sigcontext_addr instead. Initialize
3352 tdep->sc_pc_offset and tdep->sc_sp_offset.
3353 (i386_gdbarch_init): Likewise.
3354 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3355 any more.
3356 (i386bsd_sigtramp_saved_pc): Remove function.
3357 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3358 Initialize tdep->sigcontext_addr instead. Initialize
3359 tdep->sc_pc_offset.
3360 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3361 of tdep->sigtramp_saved_pc.
3362 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3363 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3364 instead.
3365
3366 * i386-tdep.c (i386_frameless_function_invocation,
3367 i386_frame_num_args, i386_frame_init_saved_regs,
3368 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3369 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3370 i386_extract_return_value, i386_store_return_value,
3371 i386_extract_struct_value_address, i386_register_virtual_type,
3372 i386_register_convertible, i386_register_convert_to_virtual,
3373 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3374 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3375 static.
3376
3377 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3378
3379 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3380
3381 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3382 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3383 this macro. Include "value.h".
3384
3385 2002-06-30 Aidan Skinner <aidan@velvet.net>
3386
3387 * ada-exp.tab.c: remove as it's a generated file
3388 * ada-lex.c: remove as it's a generated file
3389
3390 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3391
3392 * config/i386/tm-i386.h (struct frame_info, struct
3393 frame_saved_regs, struct value, struct type): Remove forward
3394 declarations.
3395
3396 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3397 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3398 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3399 (FILL_FPXREGSET): Define.
3400
3401 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3402
3403 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3404 i[3456]86-*-netbsd* case.
3405 * config/i386/tm-obsd.h: Removed.
3406 * config/i386/obsd.mt: Removed.
3407 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3408 core-aout.o.
3409 (MH_CFLAGS): Add -DYYDEBUG=0.
3410
3411 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3412 i386nbsd_sc_pc_offset on OpenBSD too.
3413
3414 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3415 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3416 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3417 define.
3418 * i386bsd-tdep.c: Include "arch-utils.h".
3419 (i386bsd_aout_in_solib_call_trampoline): New function.
3420 (i386bsd_init_abi): Set in_solib_call_trampoline to
3421 i386bsd_aout_in_solib_call_trampoline.
3422 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3423 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3424
3425 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3426
3427 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3428 (struct obstack, struct bcache): Add opaque declarations.
3429 * Makefile.in (macrotab_h): Update
3430
3431 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3432
3433 * blockframe.c (generic_find_dummy_frame): Change return type to
3434 ``struct regcache''.
3435 (struct dummy_frame): Replace field ``registers'' with regcache, a
3436 struct regcache object.
3437 (generic_find_dummy_frame): Update.
3438 (generic_push_dummy_frame): Update. Use regcache_xfree,
3439 regcache_xmalloc and regcache_cpy.
3440 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3441 regcache_xfree.
3442 (deprecated_generic_find_dummy_frame): Update.
3443 (generic_read_register_dummy): Update. Use
3444 regcache_read_as_address.
3445 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3446 (generic_get_saved_register): Update. Use regcache_read.
3447
3448 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3449
3450 * Makefile.in (objfiles_h): Add $(bcache_h).
3451 * objfiles.h: Include "bcache.h".
3452
3453 * Makefile.in (symtab_h): Remove $(bcache_h).
3454 * symtab.h: Do not include "bcache.h".
3455
3456 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3457
3458 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3459 generic_func_frame_chain_valid.
3460
3461 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3462
3463 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3464 * config/i386/tm-fbsd.h: Likewise.
3465
3466 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3467
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3469 generic_unwind_get_saved_register.
3470
3471 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3472
3473 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3474 * regcache.c (supply_register): Add missing argument to
3475 register_buffer call.
3476
3477 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3478
3479 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3480 Solaris /bin/grep does not not like it. From Peter Schauer.
3481
3482 2002-06-26 Tom Tromey <tromey@redhat.com>
3483
3484 * command.h (add_setshow_cmd): Declare.
3485 (add_setshow_cmd_full): Declare.
3486 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3487 returns void. Use add_setshow_cmd_full.
3488 (add_setshow_cmd_full): New function.
3489 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3490 (add_setshow_boolean_cmd): Likewise.
3491
3492 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3493
3494 * config/vax/tm-vax.h: Protect from multiple inclusion.
3495 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3496 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3497 * config/vax/tm-vaxbsd.h: ...here. New file.
3498 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3499
3500 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3501
3502 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3503 (BELIEVE_PCC_PROMOTION): Remove.
3504 (AP_REGNUM): Move to...
3505 * config/vax/nm-vax.h: ...here.
3506 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3507 (vax_breakpoint_from_pc): New function.
3508 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3509 and gdbarch_believe_pcc_promotion.
3510
3511 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3512
3513 * Makefile.in (vax_tdep_h): Define.
3514 (vax-tdep.o): Use $(vax_tdep_h).
3515 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3516 (vax_dump_tdep): New function.
3517 (_initialize_vax_tdep): Register vax_dump_tdep.
3518 * vax-tdep.h: Include osabi.h.
3519 (struct gdbarch_tdep): New.
3520
3521 2002-06-26 Andrew Cagney <cagney@redhat.com>
3522
3523 * frame.h (deprecated_generic_find_dummy_frame): Rename
3524 generic_find_dummy_frame.
3525 * blockframe.c (generic_find_dummy_frame): Make static.
3526 (deprecated_generic_find_dummy_frame): New function.
3527 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3528 generic_find_dummy_frame with deprecated_find_dummy_frame.
3529 (sh64_nofp_frame_init_saved_regs): Ditto.
3530 (sh_fp_frame_init_saved_regs): Ditto.
3531 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3532 (s390_frame_chain): Ditto.
3533 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3534
3535 2002-06-26 Grace Sainsbury <graces@redhat.com>
3536
3537 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3538 gdbarch vector are at the top.
3539 (NUM_REGS): Remove.
3540 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3541 (FRAME_ARGS_ADDRESS): Remove.
3542 (FRAME_LOCALS_ADDRESS): Remove.
3543 (FRAME_NUM_ARGS): Remove.
3544 (FRAME_ARGS_SKIP): Remove.
3545 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3546 (m68k_gdbarch_init): Add gdbarch initializations for macros
3547 undefined in tm-m68k.h
3548
3549 2002-06-26 Grace Sainsbury <graces@redhat.com>
3550
3551 * monitor.h: Add the function regname to monitor_ops
3552 structure. This way NUM_REGS does not have to be a constant.
3553 * monitor.c (monitor_fetch_register): Added support for regname
3554 function. The function is called if the array regnames is NULL.
3555 (monitor_store_register): Same.
3556 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3557 regnames array.
3558 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3559 cpu32bug_cmds.regname to point to new function.
3560 * abug-rom.c (abug_regname): Same as above.
3561 (init_abug_cmds): Same.
3562 * dbug-rom.c (dbug_regname): Same as above.
3563 (init_dbug_cmds): Same.
3564 * remote-est.c (est_regname): Same.
3565 (init_est_cmds): Same.
3566 * rom68k-rom.c (rom68k_regname): Same.
3567 (init_rom68k_cmds): Same.
3568
3569 2002-06-25 Tom Tromey <tromey@redhat.com>
3570
3571 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3572
3573 2002-06-25 Andrew Cagney <cagney@redhat.com>
3574
3575 * infrun.c (stop_registers): Change variable's type to ``struct
3576 regcache'''.
3577 (xmalloc_inferior_status): Delete function.
3578 (free_inferior_status): Delete function.
3579 (normal_stop): Use regcache_cpy.
3580 (struct inferior_status): Change type of fields ``stop_registers''
3581 and ``registers'' to ``struct regcache''.
3582 (write_inferior_status_register): Use regcache_write.
3583 (save_inferior_status): Instead of calling
3584 xmalloc_inferior_status, allocate the inf_status buffer directly.
3585 Use regcache_dup_no_passthrough and regcache_dup to save the
3586 buffers.
3587 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3588 Replace the stop_registers regcache instead of overriding it. Use
3589 regcache_xfree. Instead of calling free_inferior_status, xfree
3590 the buffer directly.
3591 (discard_inferior_status): Use regcache_xfree. Instead of calling
3592 free_inferior_status, xfree the buffer directly.
3593 (build_infrun): Use regcache_xmalloc.
3594 (_initialize_infrun): Delete redundant call to build_infrun.
3595
3596 * Makefile.in (infcmd.o): Add $(regcache_h).
3597
3598 * infcmd.c: Include "regcache.h".
3599 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3600 obtain the address of `stop_registers' register buffer.
3601 (print_return_value): Ditto.
3602
3603 * inferior.h (struct regcache): Add opaque declaration.
3604 (stop_registers): Change variable's declared type to ``struct
3605 regcache''.
3606
3607 2002-06-24 Tom Tromey <tromey@redhat.com>
3608
3609 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3610 * target.c (initialize_targets): Fixed typo in
3611 trust-readonly-sections `show' documentation.
3612
3613 * main.c: Marked all strings with _().
3614
3615 2002-06-24 Don Howard <dhoward@redhat.com>
3616
3617 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3618 that means max CORE_ADDR+1.
3619 (lookup_mem_region): Ditto.
3620 (mem_info_command): Ditto.
3621
3622 2002-06-24 Grace Sainsbury <graces@redhat.com>
3623
3624 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3625 (REGISTER_BYTES_OK): Remove.
3626 (REGISTER_BYTES): Remove.
3627 (STORE_STRUCT_RETURN): Remove.
3628 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3629 (STORE_RETURN_VALUE): Remove.
3630 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3631 (FRAME_CHAIN): Remove.
3632 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3633 (FRAME_SAVED_PC): Remove.
3634 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3635 (m68k_store_struct_return): Add.
3636 (m68k_deprecated_extract_return_value): Add.
3637 (m68k_deprecated_extract_struct_value_address): Add.
3638 (m68k_store_return_value): Add.
3639 (m68k_frame_chain): Add.
3640 (m68k_frameless_function_invocation): Add.
3641 (m68k_frame_saved_pc): Add.
3642 (m68k_gdbarch_init): added set_gdbarch calls for new
3643 functions and deleted macros.
3644
3645 2002-06-23 Tom Tromey <tromey@redhat.com>
3646
3647 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3648 (ALLDEPFILES): Likewise.
3649 (udiheaders): Removed.
3650 (udip2soc.o): Likewise.
3651 (udi2go32.o): Likewise.
3652 (udr.o): Likewise.
3653 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3654
3655 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3656
3657 * infrun.c (_initialize_infrun): Delete unnecessary call to
3658 build_infrun.
3659
3660 * regcache.h: Update comments describing the regcache_cpy family
3661 of functions.
3662 (regcache_save, regcache_restore): Delete declaration.
3663 (regcache_save_no_passthrough): Delete declaration.
3664 (regcache_restore_no_passthrough): Delete declaration.
3665 * regcache.c (regcache_save): Delete function.
3666 (regcache_save_no_passthrough): Delete function.
3667 (regcache_restore): Delete function.
3668 (regcache_restore_no_passthrough): Delete function.
3669
3670 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3671
3672 * config/m68k/tm-m68k.h: Fix typo.
3673 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3674 (m68k_frame_init_saved_regs): Declare.
3675
3676 2002-06-21 Jim Blandy <jimb@redhat.com>
3677
3678 Remove some vestiges of Harris 88k support.
3679 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3680 register numbering quirk.
3681 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3682 odd symbols occurring in Harris 88k ELF targets.
3683
3684 2002-06-21 Tom Tromey <tromey@redhat.com>
3685
3686 * gdb_locale.h: New file.
3687 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3688 (defs_h): Added gdb_locale.h.
3689 * configure, config.in: Rebuilt.
3690 * configure.in (PACKAGE): Define.
3691 * defs.h: Include gdb_locale.h.
3692 * main.c (captured_main): Call setlocale, bindtextdomain,
3693 textdomain.
3694
3695 2002-06-21 Dave Brolley <brolley@redhat.com>
3696
3697 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3698 * config/frv/frv.mt: New file.
3699 * config/frv/tm-frv.h: New file.
3700 * configure.tgt: Support frv-*-*.
3701 * Makefile.in (frv-tdep.o): New target.
3702 * frv-tdep.c: New file.
3703 * NEWS: Mention frv.
3704
3705 2002-06-21 Dave Brolley <brolley@redhat.com>
3706
3707 * MAINTAINERS: Add self to "Write After Approval" list.
3708
3709 2002-06-21 Grace Sainsbury <graces@redhat.com>
3710
3711 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3712 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3713 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3714 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3715 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3716
3717 * m68k-tdep.c: Include arch-utils.h
3718 (m68k_register_raw_size): Add.
3719 (m68k_register_virtual_size): Add.
3720 (m68k_register_virtual_type): Add.
3721 (m68k_register_name): Add.
3722 (m68k_stack_align): Add.
3723 (m68k_register_byte): Add.
3724 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3725 tm-m68k.h.
3726
3727 2002-06-21 Grace Sainsbury <graces@redhat.com>
3728
3729 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3730 m68k_find_saved_regs.
3731 (m68k_pop_frame): Removed saved_regs structure, and replaced
3732 references to it with frame->saved_regs.
3733 (m68k_gdbarch_init): Added function calls to initialize the
3734 gdbarch structure.
3735 (m68k_fix_call_dummy): Add.
3736 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3737 (CALL_DUMMY): Remove.
3738 (CALL_DUMMY_LENGTH): Remove.
3739 (CALL_DUMMY_START_OFFSET): Remove.
3740 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3741 (FIX_CALL_DUMMY): Remove.
3742 (PUSH_DUMMY_FRAME): Remove.
3743 (POP_FRAME): Remove.
3744
3745 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3746
3747 * parse.c (parse_fprintf): New function used to avoid calls to
3748 fprintf in bison parser generated debug code.
3749 * parser-defs.h: Declaration of new parse_fprintf function.
3750 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3751 Set YYDEBUG to 1 by default.
3752 Set YYFPRINTF as parse_fprintf.
3753
3754 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3755
3756 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3757 encoding anymore.
3758 (pointer_encoding, enum ptr_encoding): New.
3759 (execute_cfa_program): Take care about pointer encoding.
3760 (dwarf2_build_frame_info): Only call parse_frame_info for
3761 .debug_frame and .eh_frame.
3762 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3763 fixed augmentation handling, added relative addressing,
3764 ignore duplicate FDEs. Added comments.
3765 * dwarf2cfi.c: Reindented.
3766
3767 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3768
3769 * event-top.c (command_handler): Don't use space_at_cmd_start
3770 unless there is sbrk() on the host. Assign time and space data
3771 to union fields of the appropriate length.
3772
3773 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3774
3775 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3776 x86_64_register_name. Return type changed to 'const char *'.
3777 (x86_64_register_name2nr): Rename to x86_64_register_number.
3778 (x86_64_gdbarch_init): Update to reflect the change.
3779 * x86-64-tdep.h: Ditto.
3780 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3781 (supply_fpregset): Ditto.
3782
3783 2002-06-19 Andrew Cagney <cagney@redhat.com>
3784
3785 * regcache.h: Update copyright.
3786 (struct regcache, struct gdbarch): Add opaque declarations.
3787 (current_regcache): Declare global variable.
3788 (regcache_read, regcache_write): Add gdbarch parameter.
3789 (regcache_save, regcache_save_no_passthrough)
3790 (regcache_restore, regcache_restore_no_passthrough)
3791 (regcache_dup, regcache_dup_no_passthrough)
3792 (regcache_cpy, regcache_cpy_no_passthrough)
3793 (deprecated_grub_regcache_for_registers)
3794 (deprecated_grub_regcache_for_register_valid)
3795 (regcache_valid_p): Add function declarations.
3796
3797 * regcache.c: Update copyright.
3798 (regcache_descr_handle): New global variable.
3799 (struct regcache_descr): Define.
3800 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3801 (regcache_descr, xfree_regcache_descr): New functions.
3802 (struct regcache): Define.
3803 (regcache_xmalloc, regcache_xfree): New functions.
3804 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3805 (regcache_dup, regcache_dup_no_passthrough): New functions.
3806 (regcache_valid_p, regcache_read_as_address): New functions.
3807 (deprecated_grub_regcache_for_registers): New function.
3808 (deprecated_grub_regcache_for_register_valid): New function.
3809 (current_regcache): New global variable.
3810 (register_buffer): Add regcache parameter. Update calls.
3811 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3812 (read_register_gen, write_register_gen): Update register_buffer
3813 call. Test for legacy_p instead of gdbarch_register_read_p or
3814 gdbarch_register_write_p.
3815 (regcache_collect): Update register_buffer call.
3816 (build_regcache): Rewrite. Use deprecated grub functions.
3817 (regcache_save, regcache_save_no_passthrough): New functions.
3818 (regcache_restore, regcache_restore_no_passthrough): New
3819 functions.
3820 (_initialize_regcache): Create the regcache_data_handle. Swap
3821 current_regcache global variable.
3822
3823 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3824 parameter to regcache_read and regcache_write calls.
3825 (sh4_register_read): Ditto.
3826 (sh64_pseudo_register_read): Ditto.
3827 (sh64_register_read): Ditto.
3828 (sh_pseudo_register_write): Ditto.
3829 (sh4_register_write): Ditto.
3830 (sh64_pseudo_register_write): Ditto.
3831 (sh64_register_write): Ditto.
3832
3833 * defs.h (XCALLOC): Define.
3834
3835 2002-06-19 Grace Sainsbury <graces@redhat.com>
3836
3837 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3838 * m68k-tdep.c (m68k_gdbarch_init): Added.
3839 (m68k_dump_tdep): Added.
3840
3841 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3842
3843 * ada-lang.c (fill_in_ada_prototype): Update comment.
3844
3845 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3846
3847 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3848 MIPS_ABI_LAST.
3849 (mips_abi_string, mips_abi_strings): New.
3850 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3851 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3852 tdep->mips_abi_string. Honor mips_abi_string. Default to
3853 O32 if no ABI is found.
3854 (mips_dump_tdep): Use mips_abi_strings.
3855 (mips_abi_update): New function.
3856 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3857 ``set mips abi'' and ``show mips abi''. Check the size of
3858 mips_abi_strings.
3859
3860 2002-06-19 Andrew Cagney <cagney@redhat.com>
3861
3862 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3863 constant.
3864
3865 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3866
3867 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3868 current frame using only the first stack size adjustment. All
3869 subsequent size adjustments are not considered to be part of
3870 the "static" part of the current frame.
3871 Compute the address of the saved registers relative to the
3872 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3873 in use in this frame.
3874
3875 2002-06-18 Don Howard <dhoward@redhat.com>
3876
3877 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3878 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3879 suggesting this solution.
3880
3881 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3882
3883 * config/romp/xm-rtbsd.h: Delete file.
3884 * config/romp/rtbsd.mh: Delete file.
3885
3886 2002-06-18 Keith Seitz <keiths@redhat.com>
3887
3888 * breakpoint.c (condition_command): Post breakpoint_modify
3889 when a condition is added to an existing breakpoint.
3890 (commands_command): Likewise for commands.
3891 (set_ignore_count): Likewise for ignore counts.
3892 If no tty, do not simply return, still need to send event
3893 notification.
3894 (ignore_command): Only print a newline if the command came
3895 from a tty.
3896 Don't call breakpoints_changed, since this is now properly
3897 handled by set_ignore_count.
3898
3899 2002-06-18 Andrew Cagney <cagney@redhat.com>
3900
3901 * MAINTAINERS: Note that cris-elf target can be compiled with
3902 -Werror.
3903 * cris-tdep.c (cris_register_name): Make return type constant.
3904 (cris_breakpoint_from_pc): Ditto.
3905
3906 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3907
3908 * frame.h (struct frame_info): Change type of context to
3909 'struct context'.
3910
3911 2002-06-17 Andrew Cagney <cagney@redhat.com>
3912
3913 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3914 pointer.
3915 * gdbarch.h, gdbarch.c: Regenerate.
3916 * config/mips/tm-mips.h (mips_register_name): Update.
3917 * i386-tdep.h (i386_register_name): Update.
3918 * mips-tdep.c (mips_register_name): Update
3919 * alpha-tdep.c (alpha_register_name): Update.
3920 * arch-utils.c (legacy_register_name): Update.
3921 * arch-utils.h (legacy_register_name): Update.
3922 * avr-tdep.c (avr_register_name): Update.
3923 * ia64-tdep.c (ia64_register_name): Update.
3924 * i386-tdep.c (i386_register_name): Update.
3925 * sparc-tdep.c (sparc32_register_name): Update.
3926 (sparc64_register_name): Update.
3927 (sparclite_register_name): Update.
3928 (sparclet_register_name): Update.
3929 * sh-tdep.c (sh_generic_register_name): Update.
3930 (sh_sh_register_name): Update.
3931 (sh_sh3_register_name): Update.
3932 (sh_sh3e_register_name): Update.
3933 (sh_sh_dsp_register_name): Update.
3934 (sh_sh3_dsp_register_name): Update.
3935 (sh_sh4_register_name): Update.
3936 (sh_sh64_register_name): Update.
3937 * s390-tdep.c (s390_register_name): Update.
3938 * rs6000-tdep.c (rs6000_register_name): Update.
3939 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3940 (ns32k_register_name_32382): Update.
3941 * d10v-tdep.c (d10v_ts2_register_name): Update.
3942 (d10v_ts3_register_name): Update.
3943 * xstormy16-tdep.c (xstormy16_register_name): Update.
3944 * vax-tdep.c (vax_register_name): Update.
3945 * v850-tdep.c (v850_register_name): Update.
3946 * m68hc11-tdep.c (m68hc11_register_name): Update.
3947 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3948 (am33_register_name): Update.
3949
3950 2002-06-17 Grace Sainsbury <graces@redhat.com>
3951
3952 * m68k-tdep.c: Reindented.
3953
3954 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3955
3956 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3957 list of predefined types.
3958
3959 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3960
3961 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3962 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3963 REGISTER_CONVERT_TO_RAW): Remove defines.
3964 (i386_register_virtual_type, i386_register_convertible,
3965 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3966 Remove prototypes.
3967 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3968 macros mentioned above.
3969
3970 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3971 (i386lynx_saved_pc_after_call): Remove prototype.
3972 * i386ly-tdep.c: Include "i386-tdep.h".
3973 (i386lynx_saved_pc_after_call): Make static. Use
3974 read_memory_nobpt instead of read_memory. Use
3975 read_memory_unsigned_integer instead of read_memory_integer.
3976 (i386lynx_init_abi): New function.
3977 (i386lynx_coff_osabi_sniffer): New function.
3978 (_initialize_i386bsd_tdep): New function.
3979
3980 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3981 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3982 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3983 (i386_fix_call_dummy): Remove prototype.
3984 * i386-tdep.c (i386_call_dummy_words): New variable.
3985 (i386_gdbarch_init): Adjust for removal of the
3986 macros mentioned above.
3987
3988 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3989
3990 * command.h (add_setshow_auto_boolean_cmd): Replace
3991 add_set_auto_boolean_cmd.
3992 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3993 add_set_auto_boolean_cmd.
3994 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3995 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3996 mask-address'' command.
3997 (show_mask_address): Add cmd parameter.
3998 * remote.c (add_packet_config_cmd): Update. Change type of
3999 set_func and show_func to cmd_sfunc_ftype.
4000 (_initialize_remote): Update `set remote Z-packet'
4001 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4002 (show_remote_protocol_e_packet_cmd): Ditto.
4003 (show_remote_protocol_E_packet_cmd): Ditto.
4004 (show_remote_protocol_P_packet_cmd): Ditto.
4005 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4006 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4007 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4008 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4009 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4010 (show_remote_protocol_Z_packet_cmd): Ditto.
4011 (show_remote_protocol_binary_download_cmd): Ditto.
4012 (show_remote_cmd): Pass NULL to all of above.
4013
4014 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4015
4016 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4017 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4018 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4019 POP_FRAME): Remove defines.
4020 (i386_push_arguments, i386_store_struct_return,
4021 i386_extract_return_value, i386_store_return_value,
4022 i386_extract_struct_value_address, i386_push_dummy_frame,
4023 i386_pop_frame): Renove prototypes.
4024 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4025 macros mentioned above.
4026
4027 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4028
4029 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4030 add_set_boolean_cmd.
4031 (add_setshow_cmd): New function.
4032 * command.h (add_setshow_boolean_cmd): Replace
4033 add_set_boolean_cmd.
4034 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4035 and ``set rdiromatzero''.
4036 * maint.c (_initialize_maint_cmds): Update commented out code.
4037 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4038 * target.c (initialize_targets): Update `set
4039 trust-readonly-sections'.
4040 * remote.c (_initialize_remote): Update `set remotebreak'.
4041
4042 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4043
4044 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4045 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4046 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4047 fit into multi-arch framework.
4048 (i386_breakpoint_from_pc): New function.
4049 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4050 above.
4051
4052 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4053 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4054 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4055 (i386_frameless_function_invocation, i386_frame_num_args,
4056 i386_frame_init_saved_regs): Remove prototypes.
4057 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4058 macros mentioned above.
4059
4060 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4061
4062 * cli/cli-decode.c (set_cmd_cfunc): Update.
4063 (set_cmd_sfunc): Update.
4064 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4065 (set_cmd_sfunc, set_cmd_cfunc): Update.
4066 * cli/cli-decode.h: Update.
4067
4068 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4069
4070 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4071 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4072
4073 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4074
4075 * defs.h (auto_boolean): Declare enum.
4076 * command.h (cmd_auto_boolean): Delete enum.
4077 * mips-tdep.c (mask_address_var): Update.
4078 (mips_mask_address_p): Update.
4079 (show_mask_address): Update.
4080 * remote.c (struct packet_config): Update.
4081 (update_packet_config): Update.
4082 (show_packet_config_cmd): Update.
4083 (packet_ok): Update.
4084 (add_packet_config_cmd): Update.
4085 (_initialize_remote):
4086 * command.h: Update.
4087 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4088 (do_setshow_command): Update.
4089 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4090 * cli/cli-decode.h: Update.
4091
4092 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4093
4094 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4095 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4096 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4097 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4098 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4099 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4100
4101 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4102 list of DJGPP COFF targets.
4103
4104 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4105 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4106 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4107 (FP0_REGNUM): Remove define.
4108 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4109 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4110 (i386_register_virtual_size): Remove protoype.
4111 * i386-tdep.c (i386_register_virtual_size): Removed.
4112 (i386_extract_return_value, i386_store_return_value): Use
4113 FP0_REGNUM instead of NUM_FREGS to determine whether the
4114 floating-point registers are available.
4115 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4116 Adjust for removal of macros mentioned above.
4117
4118 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4119
4120 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4121 comments.
4122 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4123 Remove prototypes.
4124 (supply_gregset, fill_gregset): Remove use of register keyword and
4125 remove declaration for regmap. Use I386_NUM_GREGS instead of
4126 NUM_REGS and NUM_FREGS.
4127 (FPREGSET_FSAVE_OFFSET): Remove.
4128 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4129 NUM_FREGS to determine whether the floating-point registers are
4130 available.
4131
4132 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4133 gnu_store_registers): Replace usage of NUM_GREGS with
4134 I386_NUM_GREGS.
4135
4136 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4137 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4138 usage of NUM_GREGS with I386_NUM_GREGS.
4139
4140 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4141
4142 * i386bsd-nat.c: Include "i386-tdep.h".
4143 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4144 I386_NUM_GREGS.
4145
4146 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4147 and associated comment. They no longer make any sense, since we
4148 don't use this file anymore on Linux.
4149
4150 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4151 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4152 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4153 elements in these arrays.
4154 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4155 MAX_NUM_REGS.
4156
4157 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4158
4159 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4160 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4161
4162 2002-06-14 Andrew Cagney <cagney@redhat.com>
4163
4164 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4165 EXTRACT_RETURN_VALUE.
4166 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4167 EXTRACT_STRUCT_VALUE_ADDRESS.
4168 * gdbarch.h, gdbarch.c: Regenerate.
4169
4170 * values.c (value_being_returned): Handle
4171 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4172 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4173
4174 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4175 * arm-tdep.c (arm_gdbarch_init): Update.
4176 * avr-tdep.c (avr_gdbarch_init): Update.
4177 * cris-tdep.c (cris_gdbarch_init): Update.
4178 * d10v-tdep.c (d10v_gdbarch_init): Update.
4179 * ia64-tdep.c (ia64_gdbarch_init): Update.
4180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4182 * s390-tdep.c (s390_gdbarch_init): Update.
4183 * sh-tdep.c (sh_gdbarch_init): Update.
4184 * s390-tdep.c (s390_gdbarch_init): Update.
4185 * sparc-tdep.c (sparc_gdbarch_init): Update.
4186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4187 * v850-tdep.c (v850_gdbarch_init): Update.
4188 * vax-tdep.c (vax_gdbarch_init): Update.
4189 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4191
4192 * config/arc/tm-arc.h: Update.
4193 * config/d30v/tm-d30v.h: Update.
4194 * config/fr30/tm-fr30.h: Update.
4195 * config/h8300/tm-h8300.h: Update.
4196 * config/h8500/tm-h8500.h: Update.
4197 * config/i386/tm-i386.h: Update.
4198 * config/i386/tm-ptx.h: Update.
4199 * config/i386/tm-symmetry.h: Update.
4200 * config/i960/tm-i960.h: Update.
4201 * config/m32r/tm-m32r.h: Update.
4202 * config/m68k/tm-delta68.h: Update.
4203 * config/m68k/tm-linux.h: Update.
4204 * config/m68k/tm-m68k.h: Update.
4205 * config/m88k/tm-m88k.h: Update.
4206 * config/mcore/tm-mcore.h: Update.
4207 * config/mips/tm-mips.h: Update.
4208 * config/mn10200/tm-mn10200.h: Update.
4209 * config/pa/tm-hppa.h: Update.
4210 * config/pa/tm-hppa64.h: Update.
4211 * config/sparc/tm-sp64.h: Update.
4212 * config/sparc/tm-sparc.h: Update.
4213 * config/sparc/tm-sparclet.h: Update.
4214 * config/z8k/tm-z8k.h: Update.
4215
4216 2002-06-14 Andrew Cagney <cagney@redhat.com>
4217
4218 * Makefile.in (i386_linux_tdep_h): Define.
4219 (i386_tdep_h, i387_tdep_h): Define.
4220 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4221 $(i386_tdep_h) and $(i387_tdep_h).
4222 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4223
4224 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4225
4226 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4227 Already covered by the default.
4228
4229 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4230 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4231 (i386_gdbarch_init): Initialize long_double_format and long_double
4232 bit.
4233
4234 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4235 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4236 Move these to ...
4237 * config/i386/i386sol2.mh: ... here.
4238 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4239 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4240 (SIGCONTEXT_PC_OFFSET): Remove define.
4241 (IN_SIGTRAMP): Remove define.
4242 * i386-sol2-tdep.c: New file.
4243
4244 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4245 * config/i386/tm-i386nw.h: Removed.
4246
4247 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4248 USE_STRUCT_CONVENTION): Remove defines.
4249 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4250 (get_longjmp_target): Remove prototype.
4251 (IN_SIGTRAMP): Remove define.
4252 (i386bsd_in_sigtramp): Remove prototype.
4253 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4254 function. Update comment accordingly
4255 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4256 (FRAME_SAVED_PC): Remove define.
4257 (i386bsd_frame_saved_pc): Remove prototype.
4258 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4259 GET_LONGJMP_TARGET): Remove defines.
4260 (get_longjmp_target): Remove prototype.
4261 (IN_SIGTRAMP): Remove define.
4262 (i386bsd_in_sigtramp): Remove prototype.
4263 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4264 function. Update comment accordingly
4265 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4266 (FRAME_SAVED_PC): Remove define.
4267 (i386bsd_frame_saved_pc): Remove prototype.
4268 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4269 Remove prototype.
4270 (USE_STRUCT_CONVENTION): Remove prototype.
4271 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4272 declaration.
4273 (_initialize_i386bsd_nat): Revise logic to determine some
4274 constants at compile time when compiling a native GDB. Warn if
4275 things don't match up with what we expect.
4276 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4277 Remove variables.
4278 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4279 to use date stored in `struct gdbarch_tdep'.
4280 (i386bsd_sigcontext_offset): Remove varaible.
4281 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4282 stored in `struct gdbarch_tdep'.
4283 (i386bsd_frame_saved_pc): Make static.
4284 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4285 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4286 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4287 i386fbsd4_sc_pc_offset): New variables.
4288 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4289 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4290 functions.
4291 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4292 functions.
4293 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4294 Modify the value of i386fbsd_sigtramp_start and
4295 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4296 i386fbsd_sigtramp_end.
4297 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4298 function.
4299
4300 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4301 define to i386-linux-tdep.h.
4302 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4303 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4304 defines.
4305 (i386_linux_register_name, i386_linux_register_byte,
4306 i386_linux_register_raw_size): Remove prototypes.
4307 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4308 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4309 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4310 TARGET_WRITE_PC): Remove defines.
4311 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4312 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4313 i386_linux_write_pc): Remove prototypes.
4314 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4315 (get_longjmp_target): Remove prototype.
4316 * i386-linux-tdep.h: New file.
4317 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4318 * i386-linux-tdep.c: Include "i386-tdep.h" and
4319 "i386-linux-tdep.h".
4320 (i386_linux_register_name, i386_linux_register_byte,
4321 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4322 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4323 Make static.
4324 (i386_linux_init_abi): New function.
4325 (_initialize_i386_linux_tdep): New function.
4326
4327 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4328 (i386_saved_pc_after_call): Remove prototype.
4329 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4330 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4331 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4332 (i386_register_name, i386_stab_reg_to_regnum,
4333 i386_dwarf_reg_to_regnum): Remove prototypes.
4334 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4335 SIZEOF_SSE_REGS): Remove defines.
4336 (REGISTER_BYTES): Remove define.
4337 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4338 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4339 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4340 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4341 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4342 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4343 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4344 (get_longjmp_target): Remove prototype.
4345 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4346 (sigtramp_saved_pc): Remove define.
4347 (i386v4_sigtramp_saved_pc): Remove prototype.
4348 * config/i386/tm-go32.h (FRAME_CHAIN,
4349 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4350 (i386go32_frame_saved_pc): Remove prototype.
4351 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4352 (get_longjmp_target): Remove prototype.
4353 * i386-tdep.h: Include "osabi.h".
4354 (enum i386_abi): Removed.
4355 (enum struct_return): New enum.
4356 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4357 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4358 sc_pc_offset members.
4359 (i386_gdbarch_register_os_abi): Remove prototype.
4360 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4361 I386_SSE_NUM_REGS): New defines.
4362 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4363 I386_SSE_SIZEOF_REGS): New defines.
4364 (i386_register_name, i386_register_byte, i386_register_raw_size):
4365 New prototypes.
4366 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4367 (i386bsd_sigtramp_saved_pc): New prototype.
4368 * i386-tdep.c: Don't include "elf-bfd.h".
4369 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4370 i386_frame_chain, i386_saved_pc_after_call): Make static.
4371 (i386_frame_saved_pc): Rewrite to call architecture dependent
4372 function to deal with signal handlers. Make static.
4373 (i386go32_frame_saved_pc): Removed.
4374 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4375 Removed.
4376 (i386_get_longjmp_target): New function.
4377 (default_struct_convention, pcc_struct_convention,
4378 reg_struct_convention, valid_conventions, struct_convention): New
4379 variables.
4380 (i386_use_struct_convention): New function.
4381 (i386v4_sigtramp_saved_pc): Renamed to
4382 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4383 (i386_pc_in_sigtramp): New function.
4384 (i386_abi_names): Removed.
4385 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4386 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4387 Removed.
4388 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4389 i386_gdbarch_register_os_abi): Removed.
4390 (struct i386_abi_handler): Removed.
4391 (i386_abi_handler_list): Removed.
4392 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4393 functions.
4394 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4395 i386_nw_init_abi): New functions.
4396 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4397 Use set_gdbarch_xxx() calls instead of relying on macros for a
4398 number of calls.
4399 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4400 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4401 Register the various architecture variants defined in this file.
4402
4403 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4404
4405 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4406 (struct main_type): Remove arg_types member. Update comments for
4407 struct field.
4408 (TYPE_ARG_TYPES): Remove.
4409 (TYPE_FN_FIELD_ARGS): Update.
4410 (smash_to_method_type): Update prototype.
4411
4412 * c-typeprint.c (cp_type_print_method_args): Take method type
4413 instead of argument list. Use new argument layout. Simplify.
4414 (c_type_print_args): Use new argument layout. Simplify.
4415 (c_type_print_base): Update call to cp_type_print_method_args.
4416 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4417 argument; use die->type instead. Update call to
4418 smash_to_method_type.
4419 (read_structure_scope): Update call to dwarf2_add_member_fn.
4420 * gdbtypes.c (allocate_stub_method): Update comment.
4421 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4422 Use new argument layout.
4423 (check_stub_method): Use new argument layout. Don't count
4424 void as an argument.
4425 (print_arg_types): Update comments. Use new argument layout.
4426 (recursive_dump_type): Don't print arg_types member.
4427 * hpread.c (hpread_read_struct_type): Use new argument layout.
4428 (fixup_class_method_type): Likewise.
4429 (hpread_type_lookup): Likewise.
4430 * stabsread.c (read_type): Update calls to read_args and
4431 smash_to_method_type.
4432 (read_args): Use new argument layout. Simplify.
4433 * valops.c (typecmp): Use new argument layout. Update parameters
4434 and comments. Simplify.
4435 (hand_function_call): Use new argument layout.
4436 (search_struct_method): Update call to typecmp.
4437 (find_overload_match): Use new argument layout.
4438
4439 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4440
4441 * NEWS: Mention multithreaded debug support for gdbserver.
4442
4443 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4444
4445 * MAINTAINERS: Mention NEWS.
4446
4447 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4448
4449 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4450 (struct mips_objfile_private, compare_pdr_entries): New.
4451 (non_heuristic_proc_desc): Read the ".pdr" section if it
4452 is present.
4453
4454 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4455
4456 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4457 (arm_debug): New static variable.
4458 (_initialize_arm_tdep): Add ``set debug arm'' command.
4459
4460 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4461
4462 * Makefile.in (sim_arm_h): Define.
4463 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4464 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4465 (arm_register_sim_regno): New function, map an internal REGNUM
4466 onto a simulator register number.
4467 (arm_gdbarch_init): Set register_sim_regno.
4468
4469 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4470
4471 * MAINTAINERS: Add self.
4472
4473 2002-06-11 Jim Blandy <jimb@redhat.com>
4474
4475 * source.c (source_info): Mention whether the symtab has
4476 information about preprocessor macros.
4477
4478 Call the command `info macro', not `show macro'.
4479 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4480 Fix error message.
4481 (_initialize_macrocmd): Register `info_macro_command' in
4482 `infolist', not `showlist'.
4483
4484 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4485
4486 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4487 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4488 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4489 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4490 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4491 unconditionally.
4492 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4493 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4494 (_initialize_mips_tdep): Remove dead code.
4495 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4496 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4497 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4498 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4499 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4500 MIPS_LAST_FP_ARG_REGNUM): Remove.
4501
4502 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4503
4504 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4505 (unwind_tmp_obstack_free, parse_frame_info)
4506 (update_context, cfi_read_fp, cfi_write_fp)
4507 (cfi_frame_chain, cfi_init_extra_frame_info)
4508 (cfi_virtual_frame_pointer): Use the above function.
4509 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4510
4511 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4512
4513 * v850-tdep.c (v850_type_is_scalar): New function.
4514 (v850_use_struct_convention): Match current gcc implementation
4515 as close as possible.
4516 (v850_push_arguments): Fix stack_offset handling. Don't write
4517 struct_addr into register. This is done by v850_store_struct_return.
4518 (v850_extract_return_value): Care for structs.
4519 (v850_store_return_value): Ditto.
4520 (v850_store_struct_return): Actually write address.
4521
4522 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4523
4524 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4525 without debug information too.
4526
4527 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4528
4529 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4530 Make multi-arch pure.
4531 * gdbarch.h, gdbarch.c: Re-generate.
4532 * arm-tdep.c (arm_print_float_info): Update.
4533 * arch-utils.h (default_print_float_info): Update.
4534 * arch-utils.c (default_print_float_info): Update.
4535 * infcmd.c (float_info): Update call.
4536
4537 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4538
4539 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4540 the front of the initialize list.
4541
4542 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4543
4544 * infrun.c (struct inferior_status): Replace fields
4545 selected_frame_address and selected_level with field
4546 selected_frame_id.
4547 (save_inferior_status): Update. Use get_frame_id.
4548 (struct restore_selected_frame_args): Delete.
4549 (restore_selected_frame): Update. Use frame_find_by_id.
4550 (restore_inferior_status): Update.
4551
4552 * breakpoint.h (struct breakpoint): Change type of
4553 watchpoint_frame to frame_id.
4554 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4555 call to get_current_frame.
4556 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4557 get_current_frame.
4558 (watchpoint_check): Use frame_find_by_id.
4559
4560 * frame.h (record_selected_frame): Delete declaration.
4561 * stack.c (record_selected_frame): Delete function.
4562
4563 * frame.h (struct frame_id): Define.
4564 (get_frame_id): Declare.
4565 (frame_find_by_id): Declare.
4566 * frame.c (frame_find_by_id): New function.
4567 (get_frame_id): New function.
4568
4569 2002-06-10 Andrey Volkov <avolkov@transas.com>
4570
4571 * ser-e7kpc.c: Fix duplicated define and call of
4572 _initialize_ser_e7000pc
4573
4574 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4575
4576 * signals/signals.c (target_signal_from_host): Fix #ifdef
4577 SIGRTMIN case.
4578 (do_target_signal_to_host): Likewise.
4579
4580 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4581
4582 * mips-tdep.c (mips_find_abi_section): New function.
4583 (mips_gdbarch_init): Call it.
4584
4585 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4586
4587 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4588 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4589 after Andrew's 2002-06-08 gdbarch change.
4590
4591 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4592
4593 * i386-linux-nat.c (suppy_gregset): Don't supply
4594 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4595 register cache.
4596 (fill_gregset): Don't fetch it under the same circumstances.
4597
4598 2002-06-09 Andrew Cagney <cagney@redhat.com>
4599
4600 * Makefile.in (callback_h): Define.
4601 (remote_sim_h): Update path to remote-sim.h.
4602 (remote-rdp.o): Add $(callback_h).
4603 (remote-sim.o): Use $(callback_h).
4604 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4605 * remote-rdp.c: Include "gdb/callback.h".
4606
4607 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4608
4609 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4610 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4611
4612 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4613
4614 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4615 * rdi-share/serpardr.c: Ditto.
4616 * rdi-share/unixcomm.c: Ditto.
4617 * rdi-share/serdrv.c: Ditto.
4618 * rdi-share/hostchan.h: Ditto.
4619 * rdi-share/hostchan.c: Ditto.
4620 * rdi-share/host.h: Ditto.
4621 * rdi-share/devsw.c: Ditto.
4622
4623 * objfiles.h: Change type of obj_private to void pointer.
4624 * pa64solib.c: Update copyright. Don't include "assert.h", use
4625 strcmp instead of STREQ, use LONGEST, do not use PTR
4626 * somsolib.c: Ditto.
4627
4628 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4629 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4630 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4631
4632 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4633
4634 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4635 (default_get_saved_register): Delete function.
4636 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4637 generic_unwind_get_saved_register.
4638 * gdbarch.h, gdbarch.c: Re-generate.
4639
4640 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4641
4642 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4643 generic_func_frame_chain_valid.
4644 * gdbarch.h, gdbarch.c: Re-generate.
4645 * blockframe.c (generic_func_frame_chain_valid): Only check
4646 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4647 passing FP to PC_IN_CALL_DUMMY.
4648 Fix PR gdb/360.
4649
4650 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4651
4652 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4653 (register_gdbarch_data): Initialize init_p.
4654 (gdbarch_data): Initialize data pointer using the init function.
4655 (init_gdbarch_data): Delete function.
4656 (gdbarch_update_p): Update.
4657 (initialize_non_multiarch): Update.
4658 (struct gdbarch): Add field initialized_p.
4659 * gdbarch.h, gdbarch.c: Re-generate.
4660
4661 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4662
4663 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4664 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4665 better do the things actually here.
4666 * x86-64-tdep.c (x86_64_register_name2nr): New.
4667 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4668 (x86_64_gdbarch_init): Respect the above change.
4669 * x86-64-tdep.h (x86_64_register_name2nr)
4670 (x86_64_register_nr2name): Add prototypes.
4671 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4672
4673 2002-06-06 Michael Snyder <msnyder@redhat.com>
4674
4675 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4676 Delete extra braces and re-indent.
4677 (d10v_store_return_value): Char return values
4678 must be shifted over by one byte in R0.
4679 (d10v_extract_return_value): Delete extra braces, re-indent.
4680
4681 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4682
4683 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4684 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4685 (d10v_integer_to_address): Rewrite.
4686 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4687 the d10v specific functions which take care of converting to the
4688 correct space.
4689
4690 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4691
4692 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4693 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4694
4695 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4696
4697 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4698 includes.
4699 * config/tm-linux.h: Ditto.
4700 * config/alpha/tm-alphalinux.h: Ditto.
4701 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4702 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4703 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4704 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4705 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4706 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4707 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4708 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4709 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4710 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4711 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4712 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4713 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4714 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4715 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4716 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4717 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4718 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4719 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4720 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4721 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4722 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4723 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4724 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4725 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4726 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4727 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4728 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4729 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4730 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4731 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4732 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4733 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4734 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4735 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4736 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4737 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4738
4739 2002-05-04 Aidan Skinner <aidan@velvet.net>
4740
4741 * ada-exp.tab.c: New file
4742 * ada-exp.y: New file
4743 * ada-lang.c: New file
4744 * ada-lang.h: New file
4745 * ada-lex.c: New file
4746 * ada-lex.l: New file
4747 * ada-tasks.c: New file
4748 * ada-typeprint.c: New file
4749 * ada-valprint.c: New file
4750
4751 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4752
4753 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4754 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4755
4756 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4757
4758 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4759 insetead of ppc-linux-tdep.o.
4760 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4761 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4762
4763 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4764
4765 2002-05-07 Christian Groessler <chris@groessler.org>
4766 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4767 bit register contents for little endian hosts.
4768
4769 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4770
4771 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4772 any maintainer.
4773
4774 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4775
4776 * gdbarch.h: Regenerate.
4777
4778 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4779
4780 * MAINTAINERS: Add everyone to write-after-approval list.
4781
4782 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4783
4784 * stack.c (frame_info): Use frame_register_unwind instead of
4785 saved_regs. Mention when the SP is on the stack or in a register.
4786
4787 * frame.h (frame_register_unwind_ftype): Define. Document.
4788 (struct frame_info): Add field register_unwind and
4789 register_unwind_cache.
4790 (frame_register_unwind): Declare.
4791 (generic_unwind_get_saved_register): Declare.
4792
4793 * frame.c (frame_register_unwind): New function.
4794 (generic_unwind_get_saved_register): New function.
4795
4796 * blockframe.c (generic_call_dummy_register_unwind): New function.
4797 (frame_saved_regs_register_unwind): New function.
4798 (set_unwind_by_pc): New function.
4799 (create_new_frame): New function.
4800 (get_prev_frame): New function.
4801
4802 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4803
4804 * a29k-share/: Delete directory.
4805 * remote-vx29k.c: Delete file.
4806
4807 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4808
4809 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4810 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4811
4812 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4813
4814 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4815 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4816 (sparc64nbsd-nat.o)
4817 (sparcnbsd-nat.o)
4818 (sparcnbsd-tdep.o): New dependency lists.
4819 * NEWS: Note new UltraSPARC NetBSD native configuration.
4820 * configure.host (sparc64-*-netbsd*): New host.
4821 * configure.tgt (sparc-*-netbsdelf*)
4822 (sparc-*-netbsd*): Set gdb_target to nbsd.
4823 (sparc64-*-netbsd*): New target.
4824 * sparc64nbsd-nat.c: New file.
4825 * sparcnbsd-nat.c: New file.
4826 * sparcnbsd-tdep.c: New file.
4827 * sparcnbsd-tdep.h: New file.
4828 * config/sparc/nbsd.mt: New file.
4829 * config/sparc/nbsd64.mh: New file.
4830 * config/sparc/nbsd64.mt: New file.
4831 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4832 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4833 (HOST_IPC): Remove.
4834 * config/sparc/nbsdaout.mt: Remove.
4835 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4836 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4837 (HOST_IPC): Remove.
4838 * config/sparc/nbsdelf.mt: Remove.
4839 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4840 sparc-nat.c compatiblity defines.
4841 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4842 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4843 * config/sparc/tm-nbsd64.h: New file.
4844 * config/sparc/tm-nbsdaout.h: Remove.
4845 * config/sparc/xm-nbsd.h: Remove.
4846
4847 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4848
4849 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4850 * sparc-tdep.c: Include osabi.h.
4851 (gdbarch_tdep): Add osabi member.
4852 (_initialize_sparc_tdep): Use gdbarch_register.
4853 (sparc_gdbarch_init): Use generic OS ABI framework.
4854 (sparc_dump_tdep): New function.
4855
4856 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4857
4858 * corefile.c (do_captured_read_memory_integer): Return non-zero
4859 result.
4860 (safe_read_memory_integer): Copy result of memory read when
4861 status is non-zero. Also, add comments.
4862
4863 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4864
4865 * Makefile.in (ppc_tdep_h): Define.
4866 (ppc-linux-nat.o)
4867 (ppc-linux-tdep.o)
4868 (rs6000-tdep.o): Use $(ppc_tdep_h).
4869 (ppc-sysv-tdep.o)
4870 (ppcnbsd-nat.o)
4871 (ppcnbsd-tdep.o): New dependency lists.
4872 * ppc-tdep.h: Use generic OS ABI framework.
4873 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4874 (ppc_linux_init_abi): New functions.
4875 (ppc_sysv_abi_broken_use_struct_convention)
4876 (ppc_sysv_abi_use_struct_convention)
4877 (ppc_sysv_abi_push_arguments): Move to...
4878 * ppc-sysv-tdep.c: ...here.
4879 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4880 * rs6000-tdep.c (process_note_abi_tag_sections)
4881 (get_elfosabi): Remove.
4882 (rs6000_gdbarch_init): Use generic OS ABI framework.
4883 (rs6000_dump_tdep): New function.
4884 (_initialize_rs6000_tdep): Use gdbarch_register.
4885 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4886 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4887 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4888 of ppc-linux-tdep.o.
4889 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4890 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4891 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4892 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4893 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4894 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4895
4896 2002-05-29 Jim Blandy <jimb@redhat.com>
4897
4898 * macroscope.c (default_macro_scope): Put `void' in empty argument
4899 list.
4900
4901 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4902
4903 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4904 * arch-utils.c: Include "sim-regno.h".
4905 * gdbarch.sh: Don't include "sim-regno.h".
4906 * gdbarch.h, gdbarch.c: Regenerate.
4907 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4908 here.
4909 * arch-utils.h (legacy_register_sim_regno): To here.
4910 * remote-sim.c (legacy_register_sim_regno): Move function from
4911 here.
4912 * arch-utils.c (legacy_register_sim_regno): To here.
4913
4914 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4915
4916 * sim-regno.h: New file.
4917 * Makefile.in (sim_regno_h): Define.
4918 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4919 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4920 (legacy_register_sim_regno): New function.
4921 (one2one_register_sim_regno): New function.
4922 (gdbsim_fetch_register): Rewrite.
4923 (gdbsim_store_register): Only store a register when
4924 REGISTER_SIM_REGNO is valid.
4925 * d10v-tdep.c: Include "sim-regno.h".
4926 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4927 (d10v_ts3_register_sim_regno): Ditto.
4928 * gdbarch.sh: Include "sim-regno.h".
4929 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4930 * gdbarch.h, gdbarch.c: Regenerate.
4931 * arch-utils.h (default_register_sim_regno): Delete declaration.
4932 * arch-utils.c (default_register_sim_regno): Delete function.
4933
4934 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4935
4936 * ppcnbsd-nat.c: Rewrite.
4937 * ppcnbsd-tdep.c: New file.
4938 * ppcnbsd-tdep.h: New file.
4939 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4940 solib.o, and solib-svr4.o.
4941 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4942 nbsd-tdep.o, and corelow.o.
4943
4944 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4945
4946 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4947 `tr' and `sed'. Mention that `broken' targets are not expected to
4948 build.
4949
4950 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4951
4952 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4953 Let PC point right after the prologue before looking up symbols.
4954
4955 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4956
4957 * i386-tdep.c (i386_register_virtual_type): Return
4958 builtin_type_vec128i for SSE registers.
4959
4960 * gdbtypes.h (builtin_type_vec128i): Declare.
4961
4962 * gdbtypes.c (build_builtin_type_vec128i): New function.
4963 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4964 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4965 (build_gdbtypes): Initialize new builtin vector types.
4966 (_initialize_gdbtypes): Register new vector types with gdbarch.
4967
4968 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4969
4970 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4971 since it has been multi-arch'd.
4972 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4973 Move Alpha and VAX multi-arch news entries to same section
4974 as other multi-arch news.
4975
4976 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4977
4978 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4979 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4980 static. Rename some register numbers to put them in ns32k-tdep
4981 private namespace.
4982 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4983 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4984 functions.
4985 (_initialize_ns32k_tdep): Use gdbarch_register.
4986 * ns32k-tdep.h: New file.
4987 * ns32knbsd-tdep.c: New file.
4988 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4989 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4990 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4991 REGISTER_BYTES, REGISTER_BYTE): Remove.
4992 * config/ns32k/tm-ns32k.h: New file.
4993 * config/ns32k/tm-umax.h: Remove.
4994
4995 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4996
4997 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4998 ns32k_store_struct_return, ns32k_extract_return_value,
4999 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5000 functions.
5001 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5002 ns32k_saved_pc_after_call.
5003 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5004 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5005 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5006 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5007 ns32k_extract_struct_value_address.
5008
5009 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5010
5011 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5012 ns32k_fix_call_dummy): New.
5013 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5014 ns32k_call_dummy_words.
5015 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5016 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5017 CALL_DUMMY_NARGS): Remove.
5018 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5019
5020 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5021
5022 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5023 ns32k_frame_saved_pc, ns32k_frame_args_address,
5024 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5025 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5026 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5027 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5028 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5029 (BREAKPOINT): Remove..
5030 (FRAME_CHAIN): Define as ns32k_frame_chain.
5031 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5032 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5033 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5034 (FRAME_FIND_SAVED_REGS): Remove.
5035 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5036 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5037 (POP_FRAME): Define as ns32k_pop_frame.
5038
5039 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5040
5041 * ns32k-tdep.c (ns32k_register_byte_32082,
5042 ns32k_register_byte_32382, ns32k_register_raw_size,
5043 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5044 functions.
5045 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5046 ns32k_register_byte_32382.
5047 * config/ns32k/tm-umax.h: Update copyright years.
5048 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5049 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5050 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5051 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5052 (ns32k_get_enter_addr): Fix prototype.
5053
5054 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5055
5056 * ns32k-tdep.c: Update copyright years.
5057 (ns32k_register_name_32082): New function.
5058 (ns32k_register_name_32382): Ditto.
5059 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5060 (REGISTER_NAME): Define as ns32k_register_name_32382.
5061 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5062 (REGISTER_NAME): Define as ns32k_register_name_32082.
5063
5064 2002-05-24 Jim Blandy <jimb@redhat.com>
5065
5066 * dwarf2read.c (free_line_header): Use xfree, not free.
5067
5068 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5069
5070 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5071 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5072
5073 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5074
5075 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5076
5077 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5078
5079 From Ross Alexander at NEC Europe:
5080 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5081
5082 2002-05-23 Michael Snyder <msnyder@redhat.com>
5083
5084 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5085 for input, rather than parse_and_eval_address.
5086
5087 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5088
5089 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5090 * Makefile.in (sim_d10v_h): Update definition.
5091
5092 2002-05-24 Andrew Cagney <cagney@redhat.com>
5093
5094 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5095 change `2002-05-22 Michael Snyder' below.
5096 (d10v_push_arguments): Ditto.
5097 (d10v_extract_return_value): Ditto.
5098
5099 2002-05-23 Jim Blandy <jimb@redhat.com>
5100
5101 * macrotab.c (check_for_redefinition): Don't complain if the new
5102 definition is the same as the previous one. Take more arguments
5103 to allow the comparison.
5104 (macro_define_object, macro_define_function): Pass more arguments
5105 to check_for_redefinition.
5106
5107 2002-05-22 Michael Snyder <msnyder@redhat.com>
5108
5109 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5110 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5111 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5112 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5113 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5114 Add a temp variable to save a call (and a memory read).
5115 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5116 if possible (so that PC_IN_CALL_DUMMY will work).
5117
5118 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5119
5120 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5121
5122 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5123
5124 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5125 fde->cie_ptr.
5126 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5127 (dwarf2_build_frame_info): Add offset to fde->initial_location
5128 so that frames of shared libraries are mapped correctly.
5129 (execute_stack_op): Change type of 'result' from ULONGEST to
5130 CORE_ADDR.
5131
5132 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5133
5134 * config/alpha/tm-nbsd.h: Include solib.h.
5135
5136 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5137
5138 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5139 assumptions about the host's byte order.
5140
5141 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5142
5143 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5144 to dependency list.
5145 * alphanbsd-tdep.c: Include solib-svr4.h.
5146 * shnbsd-tdep.c: Ditto.
5147
5148 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5149
5150 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5151 nbsd-tdep.h to dependency list.
5152 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5153 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5154 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5155 nbsdaout.mh and nbsdelf.mh consistently.
5156 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5157 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5158 nbsdaout.mt and nbsdelf.mh consistently.
5159 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5160 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5161 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5162 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5163 a.out shared library stuff from here...
5164 * config/nm-nbsdaout.h: ...to here.
5165 * config/tm-nbsd.h: Remove.
5166 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5167 * config/arm/nbsd.mh: Remove.
5168 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5169 nbsd-tdep.o.
5170 * config/arm/nbsdaout.mh: New file.
5171 * config/arm/nbsdelf.mh: New file.
5172 * config/arm/nm-nbsdaout.h: New file.
5173 * config/i386/nbsd.mh: Remove.
5174 * config/i386/nbsd.mt: Remove.
5175 * config/i386/nbsdaout.mh: New file.
5176 * config/i386/nbsdaout.mt: New file.
5177 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5178 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5179 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5180 i386_register_u_addr): Remove.
5181 * config/i386/nm-nbsdaout.h: New file.
5182 * config/i386/nm-nbsdelf.h: Remove.
5183 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5184 (USE_STRUCT_CONVENTION): Remove.
5185 * config/i386/tm-nbsdaout.h: New file.
5186 * config/i386/tm-nbsdelf.h: Remove.
5187 * config/m68k/nbsd.mh: Remove.
5188 * config/m68k/nbsd.mt: Remove.
5189 * config/m68k/nbsdaout.mh: New file.
5190 * config/m68k/nbsdaout.mt: New file.
5191 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5192 * config/m68k/nm-nbsdaout.h: New file.
5193 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5194 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5195 * config/ns32k/nbsd.mh: Remove.
5196 * config/ns32k/nbsd.mt: Remove.
5197 * config/ns32k/nbsdaout.mh: New file.
5198 * config/ns32k/nbsdaout.mt: New file.
5199 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5200 * config/ns32k/nm-nbsdaout.h: New file.
5201 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5202 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5203 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5204 (SVR4_SHARED_LIBS): Remove.
5205 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5206 * config/sparc/nbsd.mh: Remove.
5207 * config/sparc/nbsd.mt: Remove.
5208 * config/sparc/nbsdaout.mh: New file.
5209 * config/sparc/nbsdaout.mt: New file.
5210 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5211 * config/sparc/nbsdelf.mt: New file.
5212 * config/sparc/nm-nbsdaout.h: New file.
5213 * config/sparc/nm-nbsdelf.h: Remove.
5214 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5215 * config/sparc/tm-nbsdaout.h: New file.
5216
5217 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5218
5219 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5220 mipsnbsd-tdep.c
5221 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5222
5223 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5224
5225 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5226 shnbsd-nat.c.
5227 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5228
5229 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5230
5231 * NEWS: Note new MIPS NetBSD native configuration.
5232 * configure.host (mips*-*-netbsd*): New host.
5233 * configure.tgt (mips*-*-netbsd*): New target.
5234 * mipsnbsd-nat.c: New file.
5235 * mipsnbsd-tdep.c: New file.
5236 * mipsnbsd-tdep.h: New file.
5237 * config/mips/nbsd.mh: New file.
5238 * config/mips/nbsd.mt: New file.
5239 * config/mips/nm-nbsd.h: New file.
5240 * config/mips/tm-nbsd.h: New file.
5241
5242 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5243
5244 * Makefile.in (SFILES): Add osabi.c.
5245 (COMMON_OBS): Add osabi.o.
5246 (osabi.o): New dependency list.
5247 * osabi.c: New file.
5248 * osabi.h: New file.
5249 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5250
5251 * Makefile.in (alpha_tdep_h): Define and use instead of
5252 alpha-tdep.h.
5253 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5254 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5255 Remove.
5256 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5257 * alpha-tdep.h: Include osabi.h.
5258 (alpha_abi): Remove.
5259 (gdbarch_tdep): Use generic OS ABI framework.
5260 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5261 gdbarch_register_osabi.
5262 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5263 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5264 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5265
5266 * Makefile.in (sh_tdep_h): Add osabi.h.
5267 * sh-tdep.h (sh_osabi): Remove.
5268 (gdbarch_tdep): Use generic OS ABI framework.
5269 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5270 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5271 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5272 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5273
5274 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5275 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5276 gdbarch_register_osabi.
5277 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5278 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5279 (get_elfosabi): Rename to...
5280 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5281 ABI framework support routines.
5282 (arm_gdbarch_init): Use generic OS ABI framework.
5283 (arm_dump_tdep): Likewise.
5284 (_initialize_arm_tdep): Likewise.
5285 * arm-tdep.h: Include osabi.h.
5286 (arm_abi): Remove.
5287 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5288 osabi member.
5289 (arm_gdbarch_register_os_abi): Remove prototype.
5290 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5291 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5292
5293 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5294 * mips-tdep.c: Include osabi.h.
5295 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5296 OS ABI framework.
5297
5298 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5299
5300 * h8300-tdep.c: Fix formatting.
5301
5302 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5303
5304 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5305 printing vector registers.
5306
5307 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5308
5309 From Fernando Nasser:
5310 * remote.c (remote_async_open_1): Re-throw the exception when the
5311 connection fails.
5312 (remote_cisco_open): Ditto.
5313 (remote_open_1): Ditto.
5314
5315 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5316
5317 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5318 (remote_start_remote): Add uiout parameter. Pass through to
5319 remote_start_remote_dummy.
5320 (remote_open_1): Use catch_exception instead of catch_errors.
5321 (remote_async_open_1): Ditto.
5322 (remote_cisco_open): Ditto.
5323
5324 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5325
5326 * remote.c (remote_start_remote): Replace PTR with void pointer.
5327 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5328 static.
5329
5330 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5331
5332 * gdb_indent.sh: Allow the script to be run in the sim directory.
5333
5334 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5335
5336 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5337 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5338
5339 * corelow.c (core_open): Only call set_gdbarch_from_file if
5340 exec_bfd is NULL.
5341
5342 2002-05-17 Andrey Volkov <avolkov@transas.com>
5343
5344 * h8300-tdep.c: Add support of EXR register
5345 * config/h8300/tm-h8300.h: Ditto.
5346
5347 2002-05-17 Andrey Volkov <avolkov@transas.com>
5348
5349 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5350
5351 2002-05-17 Andrey Volkov <avolkov@transas.com>
5352
5353 * h8300-tdep.c: Change literal regnums to REGNO.
5354
5355 2002-05-17 Jim Blandy <jimb@redhat.com>
5356
5357 * NEWS: Note addition of macro support.
5358
5359 Expand preprocessor macros in C expressions.
5360 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5361 (scan_macro_expansion, scanning_macro_expansion,
5362 finished_macro_expansion): New function declarations.
5363 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5364 variable declarations.
5365 * parser-defs.h (expression_context_pc): New declaration.
5366 * parse.c (expression_context_pc): New variable.
5367 (parse_exp_1): Set expression_context_pc, as well as
5368 expression_context_block.
5369 * c-exp.y (yylex): If we're not already reading the result of a
5370 macro expansion, try to macro-expand the next token. When we're
5371 done scanning a macro expansion, switch back to the mainline text.
5372 Commas and `if's in a macro's expansion don't terminate the input.
5373 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5374 (macro_original_text, macro_expanded_text,
5375 expression_macro_lookup_func, expression_macro_lookup_baton): New
5376 variables.
5377 (scan_macro_expansion, scanning_macro_expansion,
5378 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5379 c_preprocess_and_parse): New functions.
5380 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5381 c_preprocess_and_parse, instead of c_parse.
5382 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5383 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5384
5385 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5386
5387 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5388 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5389 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5390
5391 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5392
5393 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5394
5395 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5396
5397 * Makefile.in (sh_tdep_h): Define and use.
5398 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5399 register enum): Move to...
5400 * * sh-tdep.h: ...here.
5401 * sh-tdep.c: Include sh-tdep.h.
5402 * sh3-rom.c: Likewise.
5403 * shnbsd-tdep.c: Likewise.
5404
5405 2002-05-16 Michael Snyder <msnyder@redhat.com>
5406
5407 * arm-tdep.c: Spelling fix in comment.
5408
5409 2002-05-16 Jim Blandy <jimb@redhat.com>
5410
5411 Add commands for manually expanding macros and showing their
5412 definitions.
5413 * macrocmd.c, macroscope.c, macroscope.h: New files.
5414 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5415 (macroscope_h): New variable.
5416 (HFILES_NO_SRCDIR): Add macroscope.h.
5417 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5418 (macroscope.o, macrocmd.o): New rules.
5419
5420 Teach the Dwarf 2 reader to read macro information.
5421 * dwarf2read.c: #include "macrotab.h".
5422 (dwarf_macinfo_buffer): New variable.
5423 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5424 dwarf_macinfo_size.
5425 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5426 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5427 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5428 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5429 dwarf2_macro_spaces_in_definition): New complaints.
5430 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5431 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5432 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5433 the partial symbol table.
5434 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5435 from what's recorded in the partial symbol table.
5436 (read_file_scope): If the compilation unit has a
5437 `DW_AT_macro_info' attribute, read its macro information.
5438 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5439
5440 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5441
5442 Fix PR gdb/546
5443 * ser-tcp.c: Don't include <netinet/udp.h>.
5444
5445 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5446
5447 * MAINTAINERS: Update my email address.
5448
5449 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5450
5451 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5452 include file of the same name.
5453
5454 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5455
5456 * configure.tgt: Mark v850 as multi-arched.
5457 * config/v850/tm-v850.h: Remove file.
5458 * config/v850/v850.mt: Eliminate TM_FILE.
5459
5460 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5461
5462 * v850-tdep.c: Full multi-arch.
5463 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5464 Define GDB_MULTI_ARCH to 2.
5465
5466 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5467
5468 * p-exp.y (current_type): New static variable.
5469 Carries the type of the expression at the position that is parsed.
5470 (push_current_type, pop_current_type): Two new functions. Used
5471 to store/restore current_type in expression on specific tokens.
5472 (search_field): New static variable. Set to one after parsing a point
5473 as at that point only a FIELDNAME token should be searched.
5474 (FIELDNAME): New token. After a point only a token belonging to
5475 current_type type definition is allowed.
5476 (all over token rules): reset and change current_type according
5477 to rules.
5478 (exp '[' rule): insert implicit array index field if
5479 exp is a pascal string type.
5480
5481 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5482
5483 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5484 frame info. Use frame_info's saved_regs instead of matching member
5485 in extra_frame_info throughout.
5486 (v850_frame_init_saved_regs): New function.
5487 (v850_init_extra_frame_info): Move most functionality into
5488 v850_frame_init_saved_regs().
5489 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5490 (v850_frame_find_saved_regs): Remove declaration.
5491 (FRAME_FIND_SAVED_REGS): Remove definition.
5492 (v850_frame_init_saved_regs): Add declaration.
5493 (FRAME_INIT_SAVED_REGS): Add definition.
5494
5495 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5496
5497 * v850-tdep.c: Begin multi-arch'ing v850.
5498 (v850_target_architecture_hook): Remove function.
5499 (v850_gdbarch_init): New function. Add code previously in
5500 v850_target_architecture_hook().
5501 (_initialize_v850_tdep): Don't set target_architecture_hook.
5502 Call register_gdbarch_init() instead.
5503
5504 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5505
5506 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5507 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5508 (fixup_class_method_type): Likewise.
5509
5510 2002-05-15 Jim Blandy <jimb@redhat.com>
5511
5512 Add macro structures to GDB's symbol tables. Nobody puts anything
5513 in them yet.
5514 * symtab.h (struct symtab): New member: `macro_table'.
5515 * buildsym.h (pending_macros): New global variable.
5516 * buildsym.c: #include "macrotab.h".
5517 (buildsym_init): Initialize `pending_macros'.
5518 (end_symtab): If we found macro information while reading a CU's
5519 debugging info, do build a symtab structure for it. Make the
5520 symtab point to the macro information, and clear the
5521 `pending_macros' pointer which held it while we were reading the
5522 debug info.
5523 (really_free_pendings): Free any pending macro table.
5524 * objfiles.h (struct objfile): New member: `macro_cache'.
5525 * objfiles.c (allocate_objfile): Set allocate and free functions
5526 for the macro cache's objstack.
5527 (free_objfile): Empty the macro cache's obstack.
5528 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5529 set new allocate and free functions for it.
5530 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5531 free functions for the macro cache's objstack. (Why is this
5532 function building its own objfile?)
5533 * symmisc.c (print_objfile_statistics): Print statistics on the
5534 macro bcache.
5535 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5536
5537 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5538
5539 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5540 (REGISTER_U_ADDR): Delete definition.
5541 (arm_register_u_addr): Delete declaration.
5542
5543 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5544
5545 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5546 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5547
5548 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5549
5550 * regcache.c (register_valid): Revise comments refering to "Not
5551 available" and "unavailable".
5552 * frame.c (frame_register_read): Ditto.
5553 * findvar.c (value_of_register): Ditto.
5554
5555 2002-05-15 Andrew Cagney <cagney@redhat.com>
5556
5557 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5558 (remote-sim.o): Update dependencies.
5559 (d10v-tdep.o): Specify dependencies.
5560 (sim_d10v_h): Define.
5561
5562 2002-05-14 Jim Blandy <jimb@redhat.com>
5563
5564 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5565 * macrotab.c (macro_lookup_inclusion, find_definition,
5566 new_macro_table): Same.
5567
5568 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5569 not `! strcmp ()'. This is a dubious improvement.
5570 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5571
5572 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5573 although it's not necessary, to avoid a warning.
5574
5575 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5576
5577 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5578 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5579 TYPE_INSTANCE_FLAGS.
5580 (struct main_type): New.
5581 (struct type): Move most members to struct main_type. Change
5582 cv_type and as_type to new type_chain member. Add instance_flags.
5583 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5584 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5585 (finish_cv_type): Remove prototype.
5586 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5587 Set TYPE_CHAIN.
5588 (alloc_type_instance): New function.
5589 (smash_type): New function.
5590 (make_pointer_type, make_reference_type, make_function_type)
5591 (smash_to_member_type, smash_to_method_type): Call smash_type.
5592 (make_qualified_type): New function.
5593 (make_type_with_address_space): Call make_qualified_type.
5594 (make_cv_type): Likewise.
5595 (finish_cv_type): Remove unnecessary function.
5596 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5597 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5598 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5599 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5600 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5601 * hpread.c (hpread_read_struct_type): Likewise.
5602 * stabsread.c (read_struct_type): Likewise.
5603
5604 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5605
5606 * configure.tgt: Add a catch all sh* target, for cases like
5607 sh[2,3,4]-elf and sh-hms.
5608
5609 2002-05-14 Keith Seitz <keiths@redhat.com>
5610
5611 * event-loop.c (create_file_handler): Don't do anything but
5612 update data when we are given a fd which we are already
5613 monitoring.
5614
5615 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5616
5617 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5618 (update_context): Use __func__ in warnings.
5619
5620 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5621
5622 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5623 and tcp_close to net_open and net_close.
5624 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5625 using UDP if requested. Don't try to disable Nagle on UDP
5626 sockets.
5627 * remote.c (remote_serial_open): New function. Warn about UDP.
5628 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5629
5630 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5631
5632 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5633
5634 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5635
5636 * configure.tgt: Remove sh-hms target.
5637 * MAINTAINERS: Don't list sh-hms as a separate target.
5638
5639 2002-05-13 Jim Blandy <jimb@redhat.com>
5640
5641 Add first preprocessor macro-expansion files.
5642 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5643 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5644 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5645 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5646 (COMMON_OBS): Add macrotab.o, macroexp.o.
5647 (macroexp.o, macrotab.o): New rules.
5648
5649 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5650
5651 * config/m88k/tm-m88k.h: Update copyright.
5652 (m88k_target_write_pc): Declare
5653 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5654 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5655 (SHIFT_INST_REGS): Update definition.
5656 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5657 using old definition of TARGET_WRITE_PC.
5658 * regcache.c (generic_target_write_pc): Delete code handling
5659 NNPC_REGNUM.
5660 * gdbarch.sh (NNPC_REGNUM): Delete.
5661 * gdbarch.h, gdbarch.c: Regenerate.
5662
5663 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5664
5665 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5666 builtin reg number.
5667
5668 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5669
5670 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5671 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5672 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5673 access macros.
5674 * c-typeprint.c (cp_type_print_method_args): Likewise.
5675 (c_type_print_args): Likewise.
5676 * d10v-tdep.c (d10v_push_arguments): Likewise.
5677 (d10v_extract_return_value): Likewise.
5678 * expprint.c (print_subexp): Likewise.
5679 * gdbtypes.c (lookup_primitive_typename): Likewise.
5680 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5681 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5682 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5683 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5684 (TYPE_VECTOR): Likewise.
5685 * hpread.c (hpread_read_struct_type)
5686 (fix_static_member_physnames, fixup_class_method_type)
5687 (hpread_type_lookup): Likewise.
5688 * mdebugread.c (parse_symbol, parse_type): Likewise.
5689 * p-lang.c (is_pascal_string_type): Likewise.
5690 * valops.c (hand_function_call): Likewise.
5691 * x86-64-tdep.c (classify_argument): Likewise.
5692
5693 * hpread.c (hpread_read_function_type)
5694 (hpread_read_doc_function_type): Call replace_type.
5695 * dstread.c (create_new_type): Delete.
5696 (decode_dst_structure, process_dst_function): Call alloc_type.
5697 Use type access macros.
5698
5699 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5700
5701 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5702 the're not supported by the current architecture.
5703 (i387_fill_fxsave): Likewise.
5704
5705 2002-05-12 Fred Fish <fnf@redhat.com>
5706
5707 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5708 sect_index_xxx members to index the first slot in section_offsets
5709 if all of the section_offsets are zero.
5710
5711 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5712
5713 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5714 checked in with last change.
5715
5716 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5717
5718 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5719 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5720 config.sub.
5721
5722 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5723
5724 * Makefile.in: Update dependencies.
5725
5726 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5727
5728 * language.c (local_hex_string_custom): Simplify. Do not depend
5729 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5730
5731 * memattr.c (mem_info_command): Replace calls to
5732 longest_local_hex_string and longest_local_hex_string_custom.
5733 * buildsym.c (make_blockvector): Ditto.
5734 * solib.c (info_sharedlibrary_command): Ditto.
5735 * tracepoint.c (tracepoints_info): Ditto.
5736 * symtab.c (print_msymbol_info): Ditto.
5737
5738 * language.c (local_hex_string): Delete.
5739 (local_hex_string_custom): Delete.
5740 (longest_local_hex_string): Rename to local_hex_string.
5741 (longest_local_hex_string_custom): Rename to
5742 local_hex_string_custom.
5743 * language.h (local_hex_string): Change parameter type to LONGEST.
5744 (local_hex_string_custom): Ditto.
5745 (longest_local_hex_string): Delete declaration.
5746 (longest_local_hex_string_custom): Ditto.
5747
5748 * solib.c: Update copyright.
5749 * memattr.c: Update copyright.
5750
5751 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5752
5753 * arch-utils.h (legacy_register_to_value): Declare.
5754 (legacy_value_to_register): Declare.
5755 (legacy_convert_register_p): Declare.
5756 * arch-utils.c (legacy_register_to_value): New function.
5757 (legacy_value_to_register): New function.
5758 (legacy_convert_register_p): New function.
5759
5760 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5761 (VALUE_TO_REGISTER): Define.
5762 (CONVERT_REGISTER_P): Define.
5763 * gdbarch.h, gdbarch.c: Regenerate.
5764
5765 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5766 VALUE_TO_REGISTER.
5767 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5768 CONVERT_REGISTER_P.
5769
5770 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5771 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5772
5773 * Makefile.in: Update dependencies for valops.c.
5774 * valops.c: Include "gdb_assert.h".
5775 (typecmp): Skip THIS parameter to methods.
5776 (find_method_list): Remove static_memfuncp argument,
5777 update callers. Check for stub methods.
5778 (find_value_oload_method_list): Don't set *static_memfuncp.
5779 (find_overload_match): Don't check for stub methods. Assert
5780 that methods are not stubbed. Handle static methods.
5781 (value_find_oload_method_list): Remove static_memfuncp argument.
5782 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5783 to the argument list for static stub methods.
5784 * value.h (value_find_oload_method_list): Update prototype.
5785
5786 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5787
5788 * arch-utils.h (generic_register_size): Declare.
5789 (generic_register_raw_size, generic_register_virtual_size): Delete
5790 declarations.
5791 * arch-utils.c (generic_register_raw_size): Delete.
5792 (generic_register_size): New function.
5793 (generic_register_virtual_size): Delete.
5794
5795 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5796 default generic_register_size.
5797 * gdbarch.h, gdbarch.c: Re-generate.
5798
5799 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5800 register_virtual_size.
5801 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5803
5804 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5805
5806 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5807 * gdbarch.h, gdbarch.c: Regenerate.
5808 * gnu-v3-abi.c: Update copyright.
5809 (vtable_address_point_offset): Update.
5810 (gnuv3_rtti_type): Update.
5811 (gnuv3_baseclass_offset): Update.
5812 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5813 (init_fetch_link_map_offsets): Update.
5814 * remote.c (get_remote_state): Update.
5815
5816 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5817
5818 * TODO: Remove value_headof/value_from_vtable_info comment.
5819 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5820 * values.c (value_headof, value_from_vtable_info): Delete.
5821 * value.h (value_from_vtable_info): Delete prototype.
5822
5823 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5824
5825 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5826 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5827 $(gdb_regex_h).
5828 (gdb_assert_h): Define.
5829 (gdb_wait_h): Define.
5830 (gdb_regex_h): Define.
5831
5832 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5833
5834 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5835 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5836
5837 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5838
5839 * nbsd-tdep.c: Fix comment.
5840
5841 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5842
5843 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5844 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5845 (nbsd-tdep.o): New dependency list.
5846 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5847 nbsd-tdep.h.
5848 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5849 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5850 * nbsd-tdep.c: New file.
5851 * nbsd-tdep.h: New file.
5852 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5853 nbsd-tdep.h.
5854 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5855 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5856 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5857 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5858
5859 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5860
5861 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5862 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5863 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5864 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5865 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5866 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5867
5868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5871 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5872 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5873 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5874 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5875 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5876 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5877
5878 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5879
5880 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5881 fetch_elfcore_registers to...
5882 * i386nbsd-tdep.c: ...here.
5883 (i386nbsd_use_struct_convention): Rename to...
5884 (i386nbsd_aout_use_struct_convention): ...this.
5885 (i386nbsd_supply_reg): New function.
5886 (i386nbsd_fill_reg): New function.
5887 (fetch_core_registers): Use i386nbsd_supply_reg.
5888 (fetch_elfcore_registers): Likewise.
5889 (_initialize_i386nbsd_tdep): New function.
5890 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5891 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5892 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5893 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5894 (i386nbsd_aout_use_struct_convention): ...this.
5895
5896 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5897
5898 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5899 (store_inferior_registers): Use shnbsd_fill_reg.
5900 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5901 sh_nbsd_supply_register): Collapse into...
5902 (shnbsd_supply_reg): ...this.
5903 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5904 (shnbsd_fill_reg): ...this.
5905 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5906 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5907 (fetch_core_registers): Use shnbsd_supply_reg.
5908 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5909 (sh_nbsd_core_fns): Rename to...
5910 (shnbsd_core_fns): ...this.
5911 (sh_nbsd_elfcore_fns): Rename to...
5912 (shnbsd_elfcore_fns): ...this.
5913 (sh_nbsd_init_abi): Rename to...
5914 (shnbsd_init_abi): ...this.
5915 (_initialize_sh_nbsd_tdep): Rename to...
5916 (_initialize_shnbsd_tdep): ...this.
5917 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5918 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5919 sh_nbsd_fill_register): Remove prototypes.
5920 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5921
5922 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5923
5924 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5925 (i387-nat.o): Delete dependency list.
5926 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5927 (x86-64-linux-nat.o): Likewise.
5928 * i387-nat.c: Delete file, moving contents to...
5929 * i387-tdep.c: ...here.
5930 * i387-nat.h: Rename...
5931 * i387-tdep.h: ...to this.
5932 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5933 * i386-linux-nat.c: Likewise.
5934 * i386bsd-nat.c: Likewise.
5935 * i386gnu-nat.c: Likewise.
5936 * i386nbsd-nat.c: Likewise.
5937 * i386v4-nat.c: Likewise.
5938 * x86-64-linux-nat.c: Likewise.
5939 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5940 * config/i386/go32.mh (NATDEPFILES): Likewise.
5941 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5942 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5943 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5944 * config/i386/linux.mh (NATDEPFILES): Likewise.
5945 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5946 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5947 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5948 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5949
5950 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5951
5952 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5953 (alphanbsd-nat.o): Remove dependency list.
5954 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5955 * alphanbsd-nat.c: Delete. Contents moved to...
5956 * alphanbsd-tdep.c: ...here.
5957 (_initialize_alphanbsd_tdep): Register core functions.
5958 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5959
5960 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5961
5962 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5963 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5964 (alphanbsd-nat.o): Likewise.
5965 (alphabsd-tdep.o): New dependency list.
5966 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5967 (fill_gregset): Use alphabsd_fill_reg.
5968 (supply_fpregset): Use alphabsd_supply_fpreg.
5969 (fill_fpregset): Use alphabsd_fill_fpreg.
5970 (fetch_inferior_registers): Use struct reg and struct fpreg
5971 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5972 and alphabsd_supply_fpreg.
5973 (store_inferior_registers): Use struct reg and struct fpreg
5974 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5975 and alphabsd_fill_fpreg.
5976 * alphabsd-tdep.c: New file.
5977 * alphabsd-tdep.h: New file.
5978 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5979 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5980 alphabsd_supply_fpreg.
5981 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5982 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5983
5984 2002-05-11 Eric Christopher <echristo@redhat.com>
5985
5986 * mips-tdep.c (mips_double_register_type): Fix thinko.
5987 (mips_single_register_type): Ditto.
5988 * MAINTAINERS: Add self.
5989
5990 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5991
5992 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5993 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5994 right thing on architectures with different endianness and/or
5995 integer sizes.
5996
5997 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5998
5999 From Christian Limpach <chris@Pin.LU>
6000 * configure.in: Change sed expression which comments out
6001 NATDEPFILES to also comment out continuation lines.
6002 * configure: Regenerate.
6003
6004 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6005
6006 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6007 big patch.
6008
6009 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6010
6011 * sh-tdep.c: Include correct file.
6012
6013 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6014
6015 New support for sh64-elf (sh5) target.
6016
6017 * configure.tgt: For sh64-elf target, default to sh-elf.
6018
6019 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6020 (struct gdbarch_tdep): Add new fields for new registers and ABI
6021 info.
6022
6023 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6024 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6025 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6026 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6027 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6028 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6029 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6030 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6031 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6032 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6033 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6034 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6035 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6036 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6037 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6038 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6039 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6040 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6041 sign_extend, sh64_nofp_frame_init_saved_regs,
6042 sh64_init_extra_frame_info, sh64_get_saved_register,
6043 sh64_extract_struct_value_address, sh64_pop_frame,
6044 sh64_push_arguments, sh64_extract_return_value,
6045 sh64_store_return_value, sh64_show_media_regs,
6046 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6047 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6048 sh_sh64_register_virtual_type,
6049 sh_sh64_register_convert_to_virtual,
6050 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6051 sh64_register_read, sh64_pseudo_register_write,
6052 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6053 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6054 sh64_do_pseudo_register, sh_compact_do_registers_info,
6055 sh64_do_registers_info, sh_gdbarch_init): New functions.
6056
6057 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6058
6059 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6060
6061 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6062
6063 * linespec.c (decode_line_1): Check for a double quote after
6064 a filename correctly.
6065
6066 2002-05-10 Jim Blandy <jimb@redhat.com>
6067
6068 Properly track the size of the current objfile's .debug_line section.
6069 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6070 (DWARF_LINE_SIZE): New macro.
6071 (dwarf2_build_psymtabs_hard): Record the line section's size in
6072 the partial symbol table.
6073 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6074 symbol table.
6075
6076 2002-05-10 Petr Sorfa <petrs@caldera.com>
6077
6078 * ia64-tdep.c: Handle breakpoints on L instruction type
6079 in MLX instruction bundle by moving the breakpoint to
6080 the third slot (X instruction type) as L holds only data.
6081
6082 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6083
6084 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6085 (process_one_symbol): Complain about discarding local symbols
6086 due to a misplaced N_LBRAC entry.
6087
6088 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6089
6090 From Daniel Berlin <dan@cgsoftware.com>
6091 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6092 decrease the depth we are at, in the case of templates.
6093
6094 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6095
6096 * mips-tdep.c (mips_float_register_type): New function.
6097 (mips_double_register_type): New function.
6098 (mips_print_register): Use them.
6099 (do_fp_register_row): Likewise.
6100
6101 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6102
6103 * signals/signals.c (signals): Remove conditional compilation around
6104 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6105 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6106
6107 2002-05-09 Michael Snyder <msnyder@redhat.com>
6108
6109 * remote-rdp.c (remote_rdp_can_run): Remove.
6110
6111 2002-05-09 Tom Tromey <tromey@redhat.com>
6112
6113 * jv-valprint.c (java_val_print): Handle `char' as a special case
6114 of TYPE_CODE_INT.
6115
6116 2002-05-09 Michael Snyder <msnyder@redhat.com>
6117
6118 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6119 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6120 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6121 str r(0123),[sp,#nn].
6122 (arm_skip_prologue): Ditto. Also make disassembly
6123 order-independent by placing it in a loop.
6124
6125 2002-05-06 Michael Snyder <msnyder@redhat.com>
6126
6127 * stabsread.c (read_type): Add recognition for new attribute:
6128 "@V;" means that an array type is actually a vector.
6129 This is analogous to the vector flag that's been added to dwarf2.
6130
6131 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6132
6133 * i386-tdep.h (i386_abi): New enum.
6134 (struct gdbarch_tdep): Replace os_ident member with abi.
6135 (i386_gdbarch_register_os_abi): New prototype.
6136 * i386-tdep.c (i386_abi_names): New array.
6137 (process_note_abi_tag_sections): Removed.
6138 (process_note_sections): New function.
6139 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6140 (struct i386_abi_handler): New struct.
6141 (i386_abi_handler_list): New variable.
6142 (i386_gdbarch_register_os_abi): New function.
6143 (i386_gdbarch_init): Adapt for the changes given above.
6144
6145 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6146
6147 * gregset.h: Say "GNU/Linux".
6148
6149 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6150
6151 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6152 (build_gdbtypes): Build builtin_type_v2_float.
6153 (_initialize_gdbtypes): Register new builtin type.
6154
6155 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6156
6157 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6158 (clear_gdbarch_swap): New function.
6159 (initialize_non_multiarch): Call.
6160 (gdbarch_update_p): Before calling init(), swap out and clear the
6161 existing architecture.
6162 * gdbarch.c: Regenerate.
6163
6164 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6165
6166 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6167 alphanbsd-tdep.c.
6168
6169 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6170
6171 * sh-nbsd-nat.c: Rename to...
6172 * shnbsd-nat.c: ...this.
6173 * sh-nbsd-tdep.c: Rename to...
6174 * shnbsd-tdep.c: ...this.
6175 * sh-nbsd-tdep.h: Rename to...
6176 * shnbsd-tdep.h: ...this.
6177 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6178 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6179
6180 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6181
6182 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6183 concatenation for command help messages.
6184
6185 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6186
6187 * NEWS: Note new sh*-*-netbsdelf* configuration.
6188 * configure.host: Set gdb_host_cpu to sh for all sh*.
6189 (sh*-*-netbsdelf*): New host.
6190 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6191 (sh*-*-netbsdelf*): New target.
6192 * sh-nbsd-nat.c: New file.
6193 * sh-nbsd-tdep.c: New file.
6194 * sh-nbsd-tdep.h: New file.
6195 * config/sh/nbsd.mh: New file.
6196 * config/sh/nbsd.mt: New file.
6197 * config/sh/nm-nbsd.h: New file.
6198 * config/sh/tm-nbsd.h: New file.
6199
6200 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6201
6202 * sh-tdep.c (sh_osabi_names): Declare.
6203 (process_note_abi_tag_sections): New function.
6204 (get_elfosabi): Ditto.
6205 (sh_gdbarch_register_os_abi): Ditto.
6206 (sh_dump_tdep): Ditto.
6207 _initialize_sh_tdep): Use gdbarch_register to register
6208 sh_gdbarch_init and sh_dump_tdep.
6209 * config/sh/tm-sh.h (sh_osabi): Declare.
6210 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6211
6212 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6213
6214 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6215 (thumb_scan_prologue): Ditto.
6216 (arm_find_callers_reg): Ditto.
6217 (arm_frame_chain): Ditto.
6218 (arm_init_extra_frame_info): Ditto.
6219 (arm_frame_saved_pc): Ditto.
6220 (arm_pop_frame): Ditto.
6221 (arm_push_return_address): New function.
6222 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6223 call_dummy_location, call_dummy_breakpoint_offset_p,
6224 call_dummy_breakpoint_offset, call_dummy_p,
6225 call_dummy_stack_adjust_p, call_dummy_words,
6226 sizeof_call_dummy_words, call_dummy_start_offset,
6227 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6228 call_dummy_address, push_return_address and push_dummy_frame for
6229 generic dummy frames.
6230
6231 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6232
6233 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6234 size computation for alloca.
6235 (sh_fp_frame_init_saved_regs): Likewise.
6236
6237 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6238
6239 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6240 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6241 * arm-tdep.c (arm_store_return_value): Use them.
6242 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6243 * remote-rdp.c (remote_rdp_fetch_register): Use
6244 ARM_MAX_REGISTER_RAW_SIZE.
6245 (remote_rdp_store_register): Likewise.
6246
6247 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6248
6249 * dwarf2cfi.c: Code cleanup, removed unused variables,
6250 added default labels to switch {} statements.
6251 * x86-64-tdep.c: Ditto.
6252 * x86-64-linux-nat.c: Ditto.
6253
6254 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6255
6256 * solib.h: Protect against multiple inclusion.
6257
6258 2002-05-06 Jim Blandy <jimb@redhat.com>
6259
6260 Add first preprocessor macro-expansion files.
6261 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6262 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6263 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6264 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6265 (COMMON_OBS): Add macrotab.o, macroexp.o.
6266 (macroexp.o, macrotab.o): New rules.
6267
6268 Separate the job of reading the line number info statement program
6269 header (...expialidocious) out into its own function.
6270 * dwarf2read.c (struct line_head, struct filenames, struct
6271 directories): Replace with...
6272 (struct line_header): New structure, containing the full
6273 contents of the statement program header, including the
6274 include directory and file name tables.
6275 (read_file_scope): If we have line number info, instead of just
6276 calling dwarf_decode_lines to do all the work, call
6277 dwarf_decode_line_header first to get a `struct line_header'
6278 containing the data in the statement program header, and then
6279 pass that to dwarf_decode_lines, which will pick up where that
6280 left off. Be sure to clean up the `struct line_header' object.
6281 (dwarf_decode_line_header, free_line_header, add_include_dir,
6282 add_file_name): New functions.
6283 (dwarf_decode_lines): Move all the code to read the statement
6284 program header into dwarf_decode_line_header. Take the line
6285 header it built as the first argument, instead of the offset to
6286 the compilation unit's line number info. Use the new `struct
6287 line_header' type instead of the old structures. No need to do
6288 cleanups here now, since we don't allocate anything.
6289 (dwarf2_statement_list_fits_in_line_number_section,
6290 dwarf2_line_header_too_long): New complaints.
6291
6292 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6293
6294 * gdbtypes.c (init_vector_type): New function.
6295 (build_builtin_type_vec128): Simplify the representation of SIMD
6296 registers.
6297 (build_gdbtypes): Initialize new builtin vector types.
6298 (_initialize_gdbtypes): Register new vector types with gdbarch.
6299 (builtin_type_v4_float, builtin_type_v4_int32,
6300 builtin_type_v8_int16, builtin_type_v16_int8,
6301 builtin_type_v2_int32, builtin_type_v4_int16,
6302 builtin_type_v8_int8): New (renamed) SIMD types.
6303
6304 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6305
6306 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6307 (i387_fill_fxsave): Likewise.
6308
6309 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6310
6311 * alpha-tdep.c (alpha_extract_return_value): Don't use
6312 non-constant array size in prototype.
6313
6314 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6315
6316 From Brian Taylor <briant at model dot com>:
6317 * ui-out.c (ui_out_field_core_addr): Use the function
6318 longest_local_hex_string_custom'to format addresses > 32 bits
6319 wide.
6320
6321 * ui-out.c (ui_out_field_core_addr): Update comment.
6322
6323 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6324
6325 * stack.c (select_and_print_frame): Make static. Delete the
6326 parameter `level'.
6327 (func_command): Update call.
6328 (select_frame_command): Delete code computing the frame level.
6329 * frame.h (select_and_print_frame): Delete declaration.
6330
6331 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6332
6333 * sparc-tdep.c (sparc_get_saved_register): Comment why
6334 get_prev_frame call is safe.
6335
6336 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6337
6338 * frame.h (select_frame): Delete level parameter.
6339 * stack.c (select_frame): Update. Use frame_relative_level to
6340 obtain the frame's level.
6341 (select_and_print_frame): Update call.
6342 (select_frame_command): Ditto.
6343 (up_silently_base): Ditto.
6344 (down_silently_base): Ditto.
6345 * ocd.c (ocd_start_remote): Ditto.
6346 * remote-rdp.c (remote_rdp_open): Ditto.
6347 * remote-mips.c (mips_initialize): Ditto.
6348 (common_open): Ditto.
6349 * remote-e7000.c (e7000_start_remote): Ditto.
6350 * m3-nat.c (select_thread): Ditto.
6351 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6352 (child_get_current_exception_event): Ditto.
6353 * varobj.c (varobj_create): Ditto.
6354 (varobj_update): Ditto.
6355 (c_value_of_root): Ditto.
6356 * tracepoint.c (finish_tfind_command): Ditto.
6357 * corelow.c (core_open): Ditto.
6358 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6359 * thread.c (info_threads_command): Ditto.
6360 (switch_to_thread): Ditto.
6361 * infrun.c (normal_stop): Ditto.
6362 (restore_selected_frame): Ditto.
6363 (restore_inferior_status): Ditto.
6364 * breakpoint.c (insert_breakpoints): Ditto.
6365 (watchpoint_check): Ditto.
6366 (bpstat_stop_status): Ditto.
6367 (do_enable_breakpoint): Ditto.
6368 * blockframe.c (flush_cached_frames): Ditto.
6369 (reinit_frame_cache): Ditto.
6370
6371 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6372
6373 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6374 maintainer.
6375
6376 2002-05-04 Jim Blandy <jimb@redhat.com>
6377
6378 * gdbtypes.c (replace_type): Doc fix.
6379
6380 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6381
6382 * valprint.c (strcat_longest): Delete commented out function.
6383 Update copyright.
6384
6385 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6386
6387 * MAINTAINERS: Mark a29k as deleted.
6388 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6389 Move new configurations to the top.
6390 * configure.tgt: Remove a29k.
6391 * config/a29k/tm-vx29k.h: Delete.
6392 * config/a29k/vx29k.mt: Delete.
6393 * config/a29k/tm-a29k.h: Delete.
6394 * config/a29k/a29k-udi.mt: Delete.
6395 * config/a29k/a29k.mt: Delete.
6396 * a29k-tdep.c: Delete.
6397 * remote-udi.c: Delete.
6398 * remote-mm.c: Delete.
6399 * remote-eb.c: Delete.
6400 * remote-adapt.c: Delete.
6401 * Makefile.in: Remove obsolete code.
6402 * config/s390/s390x.mt: Ditto.
6403 * config/s390/s390.mt: Ditto.
6404 * config/sparc/sparclynx.mh: Ditto.
6405 * config/sparc/linux.mh: Ditto.
6406 * config/pa/hppaosf.mh: Ditto.
6407 * config/pa/hppabsd.mh: Ditto.
6408 * config/ns32k/nbsd.mt: Ditto.
6409 * config/mips/vr5000.mt: Ditto.
6410 * config/m68k/sun3os4.mh: Ditto.
6411 * config/m68k/nbsd.mt: Ditto.
6412 * config/m68k/m68klynx.mh: Ditto.
6413 * config/m32r/m32r.mt: Ditto.
6414 * config/i386/x86-64linux.mt: Ditto.
6415 * config/i386/nbsdelf.mt: Ditto.
6416 * config/i386/nbsd.mt: Ditto.
6417 * config/i386/i386lynx.mh: Ditto.
6418
6419 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6420
6421 * target.c (debug_print_register): New function. Handle oversize
6422 registers.
6423 (debug_to_fetch_registers): Call.
6424 (debug_to_store_registers): Call.
6425
6426 2002-05-03 Jim Blandy <jimb@redhat.com>
6427
6428 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6429 (read_type): Doc fix.
6430 * gdbtypes.c (replace_type): Doc fix.
6431
6432 * stabsread.c (multiply_defined_struct): New complaint.
6433 (read_struct_type): If the type we were passed isn't empty, or
6434 incomplete, don't read the new struct type into it; complain,
6435 and return the original type unchanged. Take a new `type_code'
6436 argument, which is the type code for the new type.
6437 (read_type): Rather than storing the type's type code here, pass
6438 it as an argument to read_struct_type, and let that take care of
6439 storing it. That way, we don't overwrite the original type code,
6440 so read_struct_type can use it to decide whether we're overwriting
6441 something we shouldn't.
6442 (complain_about_struct_wipeout): New function.
6443
6444 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6445
6446 * gdbarch.sh: Assert that gdbarch is non-NULL.
6447 * gdbarch.c: Regenerate.
6448
6449 2002-05-03 Jason Merrill <jason@redhat.com>
6450
6451 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6452 and return NULL.
6453
6454 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6455
6456 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6457 (x86_64_dwarf2gdb_regno_map_length),
6458 (x86_64_dwarf2_reg_to_regnum): Added.
6459 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6460 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6461 (_initialize_x86_64_tdep): Synced with the change above.
6462 (x86_64_skip_prologue): Reformulated message.
6463
6464 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6465
6466 * f-exp.y: Also use new prev_lexptr variable
6467 to improve error reporting. Based on Michael Snyder
6468 2002-04-24 dated patch to c-exp.y.
6469 * jv-exp.y: Likewise.
6470 * m2-exp.y: Likewise.
6471
6472 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6473
6474 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6475 we are dealing with vectors.
6476
6477 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6478
6479 * config/m68k/tm-nbsd.h: Obvious fix,
6480 correct machine name.
6481
6482 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6483
6484 * p-typeprint.c (pascal_type_print_base): Add support
6485 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6486
6487 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6488
6489 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6490 for fondamental pascal 'char' type.
6491
6492 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6493
6494 * p-lang.h (is_pascal_string_type): Declaration changed,
6495 new sixth argument of type char ** added.
6496 * p-lang.c (is_pascal_string_type): Implementation
6497 changed. Args length_pos, length_size, string_pos, char_size
6498 can now be NULL. New argument arrayname set to the field
6499 name of the char array. Return value set to char array
6500 field index plus one.
6501 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6502 is_pascal_string_type function.
6503
6504 2002-05-02 Andrew Cagney <cagney@redhat.com>
6505
6506 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6507 <cagney@redhat.com> change.
6508 * gdbarch.c: Regenerate.
6509
6510 2002-05-02 Andrew Cagney <cagney@redhat.com>
6511
6512 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6513 before probing for a new one. Detect errorenous gdbarch_init
6514 functions.
6515 * gdbarch.c: Regenerate.
6516
6517 2002-05-01 Andrew Cagney <cagney@redhat.com>
6518
6519 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6520 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6521 * config/v850/tm-v850.h: Ditto. Update copyright.
6522
6523 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6524
6525 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6526 current_gdbarch.
6527
6528 2002-04-30 Michael Snyder <msnyder@redhat.com>
6529
6530 * arm-tdep.c: Whitespace clean-ups.
6531 (arm_skip_prologue): Fix thinko; two lines
6532 should have been removed as part of 4/24 change.
6533
6534 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6535
6536 * rs6000-tdep.c: Added comment describing how fpscr register
6537 numbers were chosen.
6538
6539 2002-04-30 Michael Snyder <msnyder@redhat.com>
6540
6541 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6542
6543 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6544
6545 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6546 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6547 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6548
6549 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6550
6551 From Louis Hamilton <hamilton@redhat.com>:
6552 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6553 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6554 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6555 not bfd-private xcoff data, to determine wordsize.
6556 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6557
6558 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6559
6560 GDB 5.2 released from 5.2 branch.
6561
6562 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6563
6564 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6565 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6566 (x86_64_register_info_table): Added comments with register numbers.
6567
6568 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6569
6570 * rs6000-tdep.c (rs6000_extract_return_value,
6571 rs6000_store_return_value): Handle returning vectors.
6572 (rs6000_gdbarch_init): Use
6573 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6574 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6575 New function.
6576 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6577 vectors.
6578 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6579 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6580
6581 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6582
6583 * hpread.c (hpread_psymtab_to_symtab_1,
6584 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6585 with fprintf_unfiltered (gdb_stderr,...).
6586
6587 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6588
6589 * remote-array.c (printf_monitor, write_monitor,
6590 array_insert_breakpoint, array_remove_breakpoint ):
6591 Replace fprintf (stderr,...
6592 with fprintf_unfiltered (gdb_stderr,....
6593 * remote-es.c: Likewise.
6594 * remote-os9k.c: Likewise.
6595 * remote-st.c: Likewise.
6596
6597 2002-04-28 Andreas Schwab <schwab@suse.de>
6598
6599 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6600 linux-proc.o and gcore.o.
6601
6602 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6603
6604 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6605 code without frame pointers.
6606
6607 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6608
6609 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6610 ON_STACK is needed.
6611
6612 2002-04-26 Ben Elliston <bje@redhat.com>
6613
6614 * target.c (do_xfer_memory): Correct reference to the new option
6615 "trust-readonly-sections".
6616
6617 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6618
6619 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6620 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6621 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6622 vectors.
6623 (read_array_type): Record the fact that this array type is really a
6624 vector (i.e. are passed in by value).
6625
6626 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6627
6628 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6629 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6630 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6631 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6632 * alpha-linux-tdep.c: Include frame.h.
6633 (alpha_linux_sigcontext_addr): New function.
6634 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6635 alpha_linux_sigcontext_addr.
6636 * alpha-osf1-tdep.c: Include gdbcore.h.
6637 (alpha_osf1_sigcontext_addr): New function.
6638 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6639 alpha_osf1_sigcontext_addr.
6640 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6641 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6642
6643 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6644
6645 * stack.c (selected_frame_level):
6646 (select_frame): Do not set selected_frame_level.
6647 * frame.h (selected_frame_level): Delete declaration.
6648
6649 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6650
6651 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6652 convert_from_func_ptr-addr when AIX / PowerOpen.
6653
6654 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6655
6656 * valops.c (hand_function_call): Call
6657 generic_save_call_dummy_addr.
6658 * frame.h (generic_save_call_dummy_addr): Declare.
6659 * blockframe.c (struct dummy_frame): Add fields call_lo and
6660 call_hi.
6661 (generic_find_dummy_frame): Check for PC in range call_lo to
6662 call_hi instead of entry_point_address.
6663 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6664 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6665 (generic_save_call_dummy_addr): New function.
6666
6667 2002-04-24 David S. Miller <davem@redhat.com>
6668
6669 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6670 sparc_skip_prologue.
6671 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6672 information to find prologue when possible.
6673 (sparc_prologue_frameless_p): Call examine_prologue directly.
6674 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6675 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6676 second argument.
6677 (SKIP_PROLOGUE): Likewise.
6678
6679 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6680
6681 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6682 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6683 indicate that the condition it was testing is always true.
6684 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6685 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6686 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6687
6688 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6689
6690 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6691 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6692 tdep->jb_pc and tdep->jb_elt_size.
6693 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6694 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6695 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6696 * alpha-nat.c (get_longjmp_target): Remove.
6697 (JB_ELEMENT_SIZE): Ditto.
6698 (JB_PC): Ditto.
6699 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6700 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6701 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6702 to alpha_get_longjmp_target.
6703 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6704 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6705 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6706
6707 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6708
6709 * README: Update to GDB 5.2.
6710
6711 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6712
6713 * gdbarch.sh (LC_ALL): Set to `c'.
6714
6715 2002-04-25 Theodore A. Roth <troth@verinet.com>
6716
6717 * avr-tdep.c: Ran through gdb_indent.sh.
6718
6719 2002-04-25 Theodore A. Roth <troth@verinet.com>
6720
6721 * MAINTAINERS: Add myself as AVR maintainer.
6722 * NEWS: Note new target avr.
6723
6724 2002-04-25 Theodore A. Roth <troth@verinet.com>
6725
6726 * Makefile.in: Add support for AVR target.
6727 * configure.tgt: Add support for AVR target.
6728 * avr-tdep.c: New file
6729 * config/avr/avr.mt: New file.
6730
6731 2002-04-25 Theodore A. Roth <troth@verinet.com>
6732
6733 * MAINTAINERS: Add myself to write-after-approval.
6734
6735 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6736
6737 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6738 with fprintf_unfiltered (gdb_stderr,....
6739
6740 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6741
6742 Fix PR gdb/508.
6743 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6744
6745 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6746
6747 * p-exp.y: Also use new prev_lexptr variable
6748 to improve error reporting. Based on Michael Snyder
6749 2002-04-24 dated patch to c-exp.y.
6750
6751 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6752
6753 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6754 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6755 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6756 to 0.
6757 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6758 and struct value.
6759 (FUNCTION_START_OFFSET): Remove.
6760 (BREAKPOINT): Ditto.
6761
6762 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6763
6764 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6765 * NEWS: Ditto.
6766
6767 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6770 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6771 alpha_linux_pc_in_sigtramp.
6772 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6773 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6774 alpha_osf1_pc_in_sigtramp.
6775 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6776 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6777 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6778 alphafbsd_pc_in_sigtramp.
6779 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6780 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6781 alphanbsd_pc_in_sigtramp.
6782 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6783 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6784
6785 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6786
6787 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6788
6789 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6790
6791 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6792 alphanbsd-tdep.c.
6793 (alphanbsd-nat.o): New dependency list.
6794 (alphanbsd-tdep.o): Ditto.
6795 * NEWS: Note new native NetBSD/alpha configuration.
6796 * alphanbsd-nat.c: New file.
6797 * alphanbsd-tdep.c: Ditto.
6798 * configure.host (alpha*-*-netbsd*): New host.
6799 * configure.tgt (alpha*-*-netbsd*): New target.
6800 * config/alpha/nbsd.mh: New file.
6801 * config/alpha/nbsd.mt: Ditto.
6802 * config/alpha/nm-nbsd.h: Ditto.
6803 * config/alpha/tm-nbsd.h: Ditto.
6804
6805 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6806
6807 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6808 (alpha-osf1-tdep.o): New dependency list.
6809 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6810 and skip_sigtramp_frame members.
6811 * alpha-linux-tdep.c: Include gdbcore.h.
6812 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6813 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6814 * alpha-osf1-tdep.c: New file.
6815 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6816 alpha-osf1-dep.c.
6817 (alpha_frame_past_sigtramp_frame): New function.
6818 (alpha_dynamic_sigtramp_offset): Ditto.
6819 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6820 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6821 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6822 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6823 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6824 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6825 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6826 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6827 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6828 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6829 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6830 to find_solib_trampoline_target.
6831 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6832 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6833 (SKIP_TRAMPOLINE_CODE): Remove.
6834 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6835 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6836 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6837 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6838 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6839 (PROC_SIGTRAMP_MAGIC): Ditto.
6840 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6841 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6842 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6843 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6844 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6845
6846 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6847
6848 * NEWS: Note that Alpha targets are now multi-arch.
6849
6850 2002-04-24 Michael Snyder <msnyder@redhat.com>
6851
6852 * parser-defs.h (prev_lexptr): New external variable.
6853 * parse.c (parse_exp_1): Set prev_lexptr to null before
6854 calling the language-specific parser.
6855 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6856 (yyerror): Use prev_lexptr in error reporting.
6857
6858 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6859
6860 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6861 * gregset.h: If FILL_FPXREGSET is defined, provide
6862 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6863 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6864 is defined, call fill_fpxregset.
6865
6866 2002-04-24 Roland McGrath <roland@frob.com>
6867
6868 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6869 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6870 (supply_gregset, supply_fpregset): New functions.
6871
6872 * gnu-nat.c (gnu_find_memory_regions): New function.
6873 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6874 (gnu_xfer_memory): Add a cast.
6875
6876 2002-04-24 Michael Snyder <msnyder@redhat.com>
6877
6878 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6879 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6880 of argument regs ("str r(0123), [r11, #-nn"]).
6881 (arm_skip_prologue): Better handling for frameless functions.
6882 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6883 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6884
6885 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6886
6887 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6888 NUM_PSEUDO_REGS can be used.
6889
6890 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6891
6892 * arch-utils.h: Update copyright.
6893
6894 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6895 * gdbarch.h, gdbarch.c: Re-generate.
6896
6897 * inferior.h (IN_SIGTRAMP): Delete definition.
6898 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6899 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6900
6901 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6902 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6903 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6904 (find_proc_framesize): Ditto.
6905 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6906 (alpha_init_extra_frame_info): Ditto.
6907 * infrun.c (handle_inferior_event): Ditto.
6908 (handle_inferior_event): Ditto.
6909 (check_sigtramp2): Ditto.
6910 * blockframe.c (create_new_frame): Ditto.
6911 (get_prev_frame): Ditto.
6912 * ppc-linux-tdep.c: Update comments.
6913 * i386-linux-tdep.c: Update comments.
6914 * breakpoint.c (bpstat_what): Update comment.
6915
6916 2002-04-24 David S. Miller <davem@redhat.com>
6917
6918 * i960-tdep.c (register_in_window_p): New function.
6919 (i960_find_saved_register): Use it instead of
6920 REGISTER_IN_WINDOW_P.
6921 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6922
6923 * symtab.h (find_stab_function_addr): Kill extern.
6924 * minsyms.c (find_stab_function_addr): Remove from here...
6925 * dbxread.c: ... to here, and mark it static.
6926
6927 2002-04-20 David S. Miller <davem@redhat.com>
6928
6929 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6930 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6931
6932 2002-04-21 David S. Miller <davem@redhat.com>
6933
6934 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6935 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6936 (vx_write_register): Likewise.
6937
6938 2002-04-23 J. Brobecker <brobecker@gnat.com>
6939
6940 * source.c (is_regular_file): New function.
6941 (openp): Check wether file to open is a regular file
6942 to avoid opening directories.
6943
6944 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6945
6946 * findvar.c (extract_signed_integer): Cast printf argument
6947 to suppress format warning.
6948 (extract_unsigned_integer): Likewise.
6949 * infcmd.c (registers_info): Likewise.
6950 * top.c (get_prompt_1): Likewise.
6951 * valops.c (value_assign): Likewise.
6952 * valprint.c (print_decimal): Likewise.
6953
6954 2002-04-22 H.J. Lu (hjl@gnu.org)
6955
6956 * c-exp.y (typebase): Support
6957
6958 [long|long long|short] [signed|unsigned] [int|]
6959
6960 and
6961
6962 signed [long|long long|short] int
6963
6964 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6965
6966 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6967 and vax-tdep.h.
6968 * vax-tdep.h: New file.
6969 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6970 Make several routines static.
6971 (vax_get_saved_register): New function.
6972 (vax_gdbarch_init): New function.
6973 (_initialize_vax_tdep): Register vax_gdbarch_init.
6974 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6975 Remove macros now under the control of gdbarch.
6976
6977 2002-04-22 Michael Snyder <msnyder@redhat.com>
6978
6979 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6980 Some whitespace and coding standards tweaks.
6981
6982 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6983
6984 * vax-tdep.c: Include regcache.h.
6985 (vax_call_dummy_words): New.
6986 (sizeof_vax_call_dummy_words): New.
6987 (vax_fix_call_dummy): New function.
6988 (vax_saved_pc_after_call): Ditto.
6989 * config/vax/tm-vax.h: Don't include regcache.h.
6990 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6991 (CALL_DUMMY): Remove.
6992 (CALL_DUMMY_WORDS): Define.
6993 (SIZEOF_CALL_DUMMY_WORDS): Define.
6994 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6995
6996 2002-04-18 Michael Snyder <msnyder@redhat.com>
6997
6998 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6999
7000 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7001
7002 * vax-tdep.c (vax_frame_chain): New function.
7003 (vax_push_dummy_frame): Ditto.
7004 (vax_pop_frame): Ditto.
7005 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7006 (FRAMELESS_FUNCTION_INVOCATION): Use
7007 generic_frameless_function_invocation_not.
7008 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7009 (POP_FRAME): Use vax_pop_frame.
7010
7011 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7012
7013 * vax-tdep.c (vax_store_struct_return): New function.
7014 (vax_extract_return_value): Ditto.
7015 (vax_store_return_value): Ditto.
7016 (vax_extract_struct_value_address): Ditto.
7017 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7018 vax_store_struct_return.
7019 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7020 (STORE_RETURN_VALUE): Use vax_store_return_value.
7021 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7022
7023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7024
7025 * vax-tdep.c (vax_frame_saved_pc): New function.
7026 (vax_frame_args_address_correct): Ditto.
7027 (vax_frame_args_address): Ditto.
7028 (vax_frame_locals_address): Ditto.
7029 (vax_frame_num_args): Move code to be in proximity to
7030 other frame-related functions.
7031 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7032 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7033 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7034 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7035 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7036
7037 2002-04-22 H.J. Lu (hjl@gnu.org)
7038
7039 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7040 includedir.
7041
7042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7043
7044 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7045 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7046 (FRAME_INIT_SAVED_REGS): New macro.
7047
7048 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7049
7050 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7051
7052 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7053
7054 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7055 where needed.
7056 (fetch_osf_core_registers): Likewise.
7057 (supply_gregset): Likewise.
7058
7059 2002-04-22 J. Brobecker <brobecker@gnat.com>
7060
7061 * symfile.h (get_section_index): Define.
7062 * symfile.c (get_section_index): New function.
7063 * mdebugread.c (SC_IS_SBSS): New macro.
7064 (SC_IS_BSS): Return true for the scBss storage class only, as
7065 the scSBss storage class refers to the .sbss section.
7066 (parse_partial_symbols): Discard the symbols which associated
7067 section does not exist.
7068 Make sure to use the .sbss section index for symbols which
7069 storage class is scBss, rather than using the .bss section index.
7070
7071 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7072
7073 * vax-tdep.c: Update copyright years.
7074 (vax_register_name): New function.
7075 (vax_register_byte): Ditto.
7076 (vax_register_raw_size): Ditto.
7077 (vax_register_virtual_size): Ditto.
7078 (vax_register_virtual_type): Ditto.
7079 * config/vax/tm-vax.h: Update copyright years.
7080 (REGISTER_NAMES): Remove.
7081 (REGISTER_NAME): Define.
7082 (REGISTER_BYTE): Use vax_register_byte.
7083 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7084 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7085 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7086
7087 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7088
7089 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7090 declaration
7091 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7092
7093 2002-04-21 David S. Miller <davem@redhat.com>
7094
7095 * arch-utils.c (generic_prologue_frameless_p): Kill
7096 SKIP_PROLOGUE_FRAMELESS_P code.
7097 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7098 references.
7099 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7100 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7101 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7102 references.
7103 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7104 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7105 (sparc_gdbarch_init): Pass it to
7106 set_gdbarch_prologue_frameless_p.
7107
7108 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7111 (alphabsd-nat.o): New dependency list.
7112
7113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7114
7115 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7116 alphafbsd-tdep.c.
7117 (alpha-linux-tdep.o): New dependency list.
7118 (alphafbsd-tdep.o): Likewise.
7119
7120 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7121
7122 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7123 to here...
7124 * alpha-tdep.c: ...from here.
7125 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7126
7127 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7128
7129 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7130 prototype from here...
7131 * alpha-tdep.h: ...to here.
7132
7133 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7134
7135 * frame.h (selected_frame_level): Document as deprecated.
7136 (frame_relative_level): Declare.
7137 * stack.c (frame_relative_level): New function.
7138 (selected_frame_level): Document as deprecated.
7139 (select_frame): Do not set the selected_frame_level.
7140
7141 * stack.c (frame_info, record_selected_frame): Update.
7142 (frame_command, current_frame_command): Update.
7143 (up_silently_base, up_command, down_silently_base): Update.
7144 (down_command): Update.
7145 * inflow.c (kill_command): Update.
7146 * tracepoint.c (finish_tfind_command): Update.
7147 * corelow.c (core_open): Update.
7148 * thread.c (info_threads_command): Update.
7149 (do_captured_thread_select): Update.
7150 * infcmd.c (finish_command): Update.
7151 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7152
7153 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7154
7155 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7156
7157 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7158
7159 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7160 type const.
7161
7162 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7163
7164 * alphafbsd-tdep.c: Update copyright years. Include
7165 alpha-tdep.h.
7166 (alphafbsd_use_struct_convention): Make static.
7167 (alphafbsd_init_abi): New function.
7168 (_initialize_alphafbsd_tdep): New function.
7169 * config/alpha/tm-fbsd.h: Update copyright years.
7170 (USE_STRUCT_CONVENTION): Remove.
7171
7172 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7173
7174 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7175 an Alpha ABI variant.
7176 (alpha_abi_handler_list): Declare.
7177 (alpha_gdbarch_register_os_abi): New function.
7178 (alpha_gdbarch_init): Give registered ABI variant handlers a
7179 chance to tweak the gdbarch once we have set up defaults.
7180 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7181
7182 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7183
7184 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7185 to standard_coerce_float_to_double.
7186 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7187
7188 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7189
7190 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7191 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7192 from gdbarch_tdep rather than a constant.
7193 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7194 the default text address for all Alpha Unix ABIs.
7195 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7196 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7197
7198 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7199
7200 * alpha-tdep.h: New file. Includes several Alpha target constants
7201 taken from...
7202 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7203 let gdbarch deal with.
7204 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7205 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7206 to dependency list.
7207 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7208 Alpha target register names.
7209 * alphabsd-nat.c: Likewise.
7210 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7211 Alpha target register names. Make serveral routines static.
7212 (alpha_get_saved_register): New function.
7213 (alpha_abi_names): New.
7214 (process_note_abi_tag_sections): New function.
7215 (get_elfosabi): New function.
7216 (alpha_gdbarch_init): New function.
7217 (alpha_dump_tdep): New function.
7218 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7219
7220 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7221
7222 * frame.c (find_saved_register): Delete #ifdef
7223 HAVE_REGISTER_WINDOWS code.
7224 * config/sparc/tm-sparc.h: Update comments.
7225 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7226
7227 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7228
7229 * i960-tdep.c (i960_find_saved_register): New function.
7230 (i960_get_saved_register): New function.
7231 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7232 (i960_get_saved_register): Declare.
7233 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7234
7235 2002-04-20 David S. Miller <davem@redhat.com>
7236
7237 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7238
7239 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7240
7241 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7242 instead of NUM_PSEUDO_REGS.
7243
7244 2002-04-20 David S. Miller <davem@redhat.com>
7245
7246 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7247 GDB_MULTI_ARCH_PARTIAL
7248 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7249 define, let tm-sp64.h do it.
7250
7251 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7252
7253 * frame.c (find_saved_register): Avoid a NULL pointer
7254 dereference and actually walk the frame list.
7255
7256 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7257
7258 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7259 sorted in most most-recent-used order. Document.
7260 * gdbarch.h, gdbarch.c: Regenerate.
7261
7262 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7263
7264 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7265 instead of ->prev.
7266 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7267 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7268 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7269 instead of ->prev.
7270
7271 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7272
7273 Fix PR gdb/471.
7274 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7275 (build_builtin_type_vec128): Ditto.
7276 (append_composite_type_field): Fix calculation of type length in
7277 union case.
7278
7279 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7280
7281 * config/djgpp/README: Update.
7282
7283 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7284 compiler warnings.
7285
7286 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7287
7288 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7289 (alpha_setup_arbitrary_frame): ...to this.
7290 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7291 for alpha_setup_arbitrary_frame.
7292
7293 2002-04-18 Andrew Cagney <cagney@redhat.com>
7294
7295 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7296 * gdbarch.h, gdbarch.c: Regenerate.
7297
7298 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7299 * target.h (memory_breakpoint_from_pc): Update declaration.
7300 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7301
7302 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7303 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7304 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7305 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7306 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7307 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7308 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7309 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7310 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7311 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7312 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7313 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7314
7315 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7316 const pointer.
7317 * monitor.c (monitor_insert_breakpoint): Ditto.
7318 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7319
7320 * config/mcore/tm-mcore.h: Update copyright.
7321 * mem-break.c: Ditto.
7322 * xstormy16-tdep.c: Ditto.
7323
7324 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7325
7326 * p-exp.y: Add precedence rule for '^' token.
7327 This removes the shift/reduce conflicts.
7328 Remove the comment concerning these shift/reduce conflicts.
7329
7330 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7331
7332 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7333 (registers_powerpc_nofp): New register set for processors
7334 without floating point unit.
7335
7336 2002-04-18 David S. Miller <davem@redhat.com>
7337
7338 * MAINTAINERS: Add myself to write-after-approval.
7339
7340 2002-04-17 Michael Snyder <msnyder@redhat.com>
7341
7342 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7343
7344 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7345
7346 * rs6000-tdep.c (frame_initial_stack_address): Use
7347 frame_register_read to read the alloca_reg.
7348
7349 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7350
7351 * frame.c (find_saved_register): Find saved registers in the next
7352 not prev frame.
7353 Fix PR gdb/365.
7354
7355 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7356
7357 * gdbarch.sh (LANG): Set to ``c''.
7358
7359 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7360
7361 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7362
7363 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7364
7365 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7366 Update copyright.
7367
7368 * hpread.c (hpread_get_lntt): Add declaration.
7369 Also fix PR gdb/391.
7370
7371 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7372
7373 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7374 * aclocal.m4, configure: Re-generate.
7375 Fix PR gdb/391.
7376
7377 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7378
7379 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7380 instead of tm_print_insn.
7381
7382 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7383
7384 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7385
7386 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7387
7388 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7389 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7390 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7391
7392 2002-04-12 Don Howard <dhoward@redhat.com>
7393
7394 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7395 max_user_call_depth.
7396 (init_cmd_lists): Initialize the new value;
7397 * cli/cli-script.c (execute_user_command): Limit the call depth of
7398 user defined commands. This avoids a core-dump when user commands
7399 are infinitly recursive.
7400
7401 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7402
7403 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7404 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7405 from tdep struct instead of DEFAULT_LR_SAVE.
7406 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7407 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7408 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7409
7410 2002-04-12 Michael Snyder <msnyder@redhat.com>
7411
7412 * Remote.c: Spelling fix.
7413 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7414 If no symbol found for "sbrk", try "_sbrk".
7415 (make_output_phdrs): Use bfd_section_name.
7416 (gcore_copy_callback): Use bfd_section_name.
7417 * eval.c: Indentation fix-ups.
7418 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7419 in case it gets applied to an address that is already
7420 in the instruction space.
7421 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7422 * symfile.c: Fix indentation, long lines.
7423 * source.c: White space fix-up.
7424
7425 2002-04-12 Andrew Cagney <cagney@redhat.com>
7426
7427 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7428 * frame.c (frame_register_read): New function. Return non-zero on
7429 success.
7430 (read_relative_register_raw_bytes_for_frame): Delete.
7431 (read_relative_register_raw_bytes): Delete.
7432 * frame.h (frame_register_read): Declare.
7433 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7434 * sh-tdep.c: Ditto.
7435 * infcmd.c (do_registers_info): Ditto.
7436 * hppa-tdep.c: Ditto.
7437 * rs6000-tdep.c: Ditto.
7438 * h8500-tdep.c: Ditto.
7439 * mips-tdep.c: Ditto.
7440 * h8300-tdep.c: Ditto.
7441 * z8k-tdep.c: Ditto.
7442
7443 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7444
7445 From Jimi X <jimix@watson.ibm.com>:
7446 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7447 64-bit SysV ABI.
7448
7449 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7450
7451 From Jimi X <jimix@watson.ibm.com>:
7452 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7453 bfd info.
7454
7455 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7456
7457 From Jimi X <jimix@watson.ibm.com>:
7458 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7459 register sets for these processor variants.
7460
7461 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7462
7463 * regformats/reg-ppc.dat: Support FPSCR.
7464
7465 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7466
7467 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7468 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7469 Add fpscr as an invalid/unfetchable register.
7470 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7471 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7472 (fill_fpregset): Add support for register fpscr.
7473 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7474 (fill_gregset): Account for the fact that register ``mq'' might
7475 not exist.
7476 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7477 (registers_power): Add fpscr to register set at slot 71.
7478 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7479 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7480
7481 2002-04-11 Michael Snyder <msnyder@redhat.com>
7482
7483 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7484 * configure: Regenerate.
7485 * config.in: Regenerate.
7486 * acconfig.h: Add define for _SYSCALL32.
7487 * core-sol2.c: Remove #define _SYSCALL32.
7488 * solib-legacy.c: Remove #define _SYSCALL32.
7489
7490 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7491
7492 * stack.c (select_frame): Cleanup internal error message, do not
7493 use %p.
7494
7495 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7496
7497 * stack.c (select_frame): Check that selected_frame and the
7498 specified level are as expected.
7499 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7500 Update copyright.
7501 * frame.h (struct frame_info): Add field `level'. Update
7502 copyright.
7503 Work-in-progress PR gdb/464.
7504
7505 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7506
7507 * maint.c (maint_print_section_info): Rename print_section_info.
7508 (print_bfd_section_info, print_objfile_section_info): Update.
7509 * inferior.h (struct gdbarch): Add opaque declaration.
7510 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7511 * gdbarch.h: Regenerate.
7512
7513 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7514
7515 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7516 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7517 (kernel_u_size): Added.
7518 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7519 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7520
7521 2002-04-04 Jim Ingham <jingham@apple.com>
7522
7523 * valarith.c (find_size_for_pointer_math): New function, either returns
7524 the size for a pointer's target, returns 1 for void *, or errors for
7525 incomplete types.
7526 (value_add, value_sub): use find_size_for_pointer_math.
7527
7528 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7529
7530 * linux-low.c (linux_look_up_symbols): New hook.
7531 (linux_target_ops): Add linux_look_up_symbols.
7532 * remote-utils.c (decode_address): New function.
7533 (look_up_one_symbol): New function.
7534 * server.c (handle_query): Call target look_up_symbols hook.
7535 * server.h (look_up_one_symbol): Add prototype.
7536 * target.h (struct target_ops): Add look_up_symbols hook.
7537
7538 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7539
7540 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7541 override FP_REGNUM with frame->fp. Update copyright.
7542 * parse.c (num_std_regs, std_regs): Delete.
7543 (target_map_name_to_register): Do not search std_regs. Update
7544 function description.
7545 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7546 declarations. Update copyright.
7547 Fix PR gdb/251.
7548
7549 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7550
7551 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7552 after the last symbol in a block.
7553
7554 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7555
7556 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7557 is non zero as a found symbol.
7558
7559 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7560
7561 * findvar.c: Include "builtin-regs.h".
7562 (value_of_register): Call value_of_builtin_reg when applicable.
7563 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7564 (target_map_name_to_register): Call
7565 builtin_reg_map_name_to_regnum.
7566 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7567 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7568 (builtin_regs_h): Define.
7569 (builtin-regs.o): New target.
7570 (findvar.o): Add $(builtin_regs_h).
7571 * builtin-regs.c, builtin-regs.h: New files.
7572 * std-regs.c: New file.
7573 Partial fix for PR gdb/251.
7574
7575 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7576
7577 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7578 it's no longer required.
7579
7580 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7581
7582 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7583
7584 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7585
7586 From Jimi X <jimix@watson.ibm.com>:
7587 * rs6000-tdep.c (rs6000_software_single_step): Use
7588 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7589 and size. Use target_insert_breakpoint() and
7590 target_remove_breakpoint() to insert and remove breakpoints
7591 instead of explicit memory reads and writes.
7592
7593 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7594
7595 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7596 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7597 ELF_OBJECT_FORMAT ifdef.
7598
7599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7600
7601 From Jimi X <jimix@watson.ibm.com>:
7602 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7603
7604 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7605
7606 From Jimi X <jimix@watson.ibm.com>:
7607 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7608 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7609
7610 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7611
7612 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7613 s/asprintf/xasprintf/.
7614 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7615
7616 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7617
7618 I believe Jeff Law denies responsability for this one:
7619 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7620 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7621 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7622 Work-around for PR gdb/366.
7623
7624 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7625
7626 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7627 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7628 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7629
7630 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7631
7632 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7633 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7634 information.
7635
7636 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7637
7638 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7639 maintainer.
7640
7641 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7642
7643 * README (Reporting Bugs in GDB): Document the bug web page as the
7644 prefered way of submitting bugs.
7645 Fix PR gdb/402.
7646
7647 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7648
7649 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7650 -1. Update comment.
7651 * gdbarch.h, gdbarch.c: Re-generate.
7652
7653 2002-04-07 Andreas Schwab <schwab@suse.de>
7654
7655 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7656 buffer to regcache_collect.
7657
7658 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7659
7660 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7661 * gdbarch.c, gdbarch.h: Re-generate.
7662
7663 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7664
7665 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7666 declaration. Fix -Werror.
7667
7668 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7669
7670 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7671 * gdbarch.c: Regenerate.
7672
7673 2002-04-05 Michael Snyder <msnyder@redhat.com>
7674
7675 * breakpoint.c (clear_command): Rewrite middle section to
7676 combine two loops with identical control conditions.
7677 Add a cleanup to eliminate a memory leak.
7678 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7679
7680 2002-04-05 H.J. Lu (hjl@gnu.org)
7681
7682 * solib-svr4.c (bkpt_names): Add "__start".
7683
7684 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7685
7686 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7687 as test for 64 bit target.
7688
7689 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7690
7691 * h8500-tdep.c (h8500_write_fp): Delete function.
7692 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7693 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7694 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7696 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7697 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7698 (s390_write_fp):
7699 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7700 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7701 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7702 (d10v_write_fp): Delete function.
7703 * inferior.h (write_fp, generic_target_write_fp): Delete
7704 declarations.
7705 * regcache.c (generic_target_write_fp): Delete function.
7706 (write_fp): Delete function.
7707 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7708 * gdbarch.h, gdbarch.c: Regenerate.
7709 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7710 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7711 (sparc64_write_fp): Delete declaration.
7712 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7713 (h8500_write_fp): Delete declaration.
7714
7715 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7716
7717 * sparc-tdep.c (sparc64_write_fp): Delete.
7718 (sparc_push_dummy_frame): Replace write_fp call with code to store
7719 the FP directly.
7720 (sparc_gdbarch_init): Do not initialize write_fp.
7721
7722 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7723
7724 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7725 clause.
7726
7727 2002-03-29 Jim Blandy <jimb@redhat.com>
7728
7729 * stack.c (get_selected_block): Add new argument `addr_in_block',
7730 used to return the exact code address we used to select the block,
7731 not just the block.
7732 * blockframe.c (get_frame_block, get_current_block): Same.
7733 * frame.h (get_frame_block, get_current_block,
7734 get_selected_block): Update declarations.
7735 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7736 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7737
7738 2002-04-05 Michael Snyder <msnyder@redhat.com>
7739
7740 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7741 warning message.
7742
7743 2002-04-05 J. Brobecker <brobecker@gnat.com>
7744
7745 * utils.c (xfullpath): New function.
7746 * defs.h (xfullpath): Add declaration.
7747 * source.c (openp): Use xfullpath in place of gdb_realpath to
7748 avoid resolving the basename part of filenames when the
7749 associated file is a symbolic link. This fixes a potential
7750 inconsistency between the filenames known to GDB and the
7751 filenames it prints in the annotations.
7752 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7753 to be able to match a filename with either the real filename, or
7754 the name of any symbolic link to this file.
7755 (lookup_partial_symtab): Ditto.
7756
7757 2002-04-04 Michael Snyder <msnyder@redhat.com>
7758
7759 * breakpoint.c: Add support for hardware breakpoints in overlays.
7760 (overlay_events_enabled): New state variable.
7761 (insert_breakpoints): Use overlay_events_enabled to decide
7762 whether to attempt to set a breakpoint at the overlay load addr.
7763 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7764 (remove_breakpoint): Use overlay_events_enabled to decide
7765 whether breakpoints need to be removed from overlay load addr.
7766 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7767 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7768 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7769 disable_overlay_breakpoints): Update overlay_events_enabled.
7770
7771 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7772
7773 * dwarf2read.c (struct function_range): New.
7774 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7775 (check_cu_functions): New.
7776 (read_file_scope): Initialize global function lists.
7777 Call dwarf_decode_line after processing children.
7778 (read_func_scope): Add to global function list.
7779 (dwarf_decode_lines): Call check_cu_functions everywhere
7780 record_line is called. Call record_line with a linenumber
7781 of 0 to mark sequence ends.
7782
7783 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7784
7785 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7786 change sync with glibc.
7787
7788 2002-04-03 Jim Blandy <jimb@redhat.com>
7789
7790 * configure.in: Call AC_C_INLINE.
7791 * configure: Regenerated.
7792
7793 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7794
7795 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7796 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7797
7798 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7799
7800 * NEWS: Mention gcore support on FreeBSD/i386.
7801
7802 * fbsd-proc.c: New file.
7803 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7804 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7805
7806 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7807 while statement.
7808
7809 2002-03-29 Jim Blandy <jimb@redhat.com>
7810
7811 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7812 unescaped newlines in string literals, but newer ones don't. So
7813 escape them.
7814
7815 2002-03-26 Michael Snyder <msnyder@redhat.com>
7816 Andrew Cagney <cagney@redhat.com>
7817
7818 * cli/cli-dump.c: New file. Dump memory to file,
7819 restore file to memory.
7820 * cli/cli-dump.h: New file.
7821 * Makefile.in: Add rules, dependencies for cli-dump.o.
7822 * NEWS: Mention new commands.
7823
7824 2002-03-28 Michael Snyder <msnyder@redhat.com>
7825
7826 * symfile.c (symbol_file_add): Move test for null symbols to later.
7827
7828 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7829
7830 From veksler at il.ibm.com:
7831 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7832 the xstrduped original path.
7833 Fix PR gdb/417.
7834
7835 2002-03-27 Michael Snyder <msnyder@redhat.com>
7836
7837 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7838 * infcmd.c (_initialize_infcmd): Ditto.
7839 * language.c (_initialize_language): Ditto.
7840 * symfile.c (_initialize_symfile): Ditto.
7841 * top.c (_init_main): Ditto.
7842 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7843
7844 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7845
7846 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7847 vector registers handling.
7848 (skip_prologue): Handle new AltiVec instructions. Fill in new
7849 fields of frame data.
7850 (frame_get_saved_regs): Fill in information for AltiVec registers.
7851
7852 2002-03-27 Jim Blandy <jimb@redhat.com>
7853
7854 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7855 a function; leave this macro here to invoke that function.
7856 (symbol_init_mangled_name): Declaration for that function.
7857 * symtab.c (symbol_init_mangled_name): New function.
7858
7859 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7860
7861 * valarith.c: Replace strerror with safe_strerror.
7862 * tracepoint.c: Ditto.
7863 * lin-lwp.c: Ditto.
7864 * go32-nat.c: Ditto.
7865 * inflow.c: Ditto.
7866 * gnu-nat.c: Ditto.
7867
7868 2002-03-27 Andreas Schwab <schwab@suse.de>
7869
7870 * event-top.c (command_line_handler): Remove useless if.
7871
7872 2002-03-27 Andreas Jaeger <aj@suse.de>
7873
7874 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7875 comment.
7876
7877 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7878
7879 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7880 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7881 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7882 (x86_64_linux_dr_get_status, supply_gregset),
7883 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7884 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7885 (x86_64_register_info_table): Add.
7886 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7887 (x86_64_register_raw_size, x86_64_register_virtual_type),
7888 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7889 general x86_64_register_info_table.
7890 (i386_gdbarch_init): gdbarch_register_bytes is now set
7891 dynamicaly during initialization.
7892 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7893 * gdbserver/linux-x86-64-low.c: Ditto.
7894
7895 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7896
7897 * gdbserver/server.c (main): Call target_signal_to_host_p
7898 and target_signal_to_host on signals received from the remote.
7899 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7900 target_signal_from_host on signals sent to the remote.
7901 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7902 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7903
7904 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7905
7906 * signals/signals.c: Include "server.h" in gdbserver build.
7907 (target_signal_from_name): Don't use STREQ.
7908 (_initialize_signals): Likewise. Don't include function in
7909 gdbserver build.
7910
7911 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7912
7913 * signals.c: Moved to...
7914 * signals/signals.c: Here.
7915 * Makefile (signals.o): Update.
7916
7917 2002-03-26 Jeff Law (law@redhat.com)
7918
7919 * somread.c (som_symtab_read): Remove some commented out code and
7920 updated related comments. Do not set the minimal symbol table to
7921 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7922 in a dynamic executable.
7923 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7924 where we are unable to find the minimal symbol for the given
7925 PC value.
7926
7927 2002-03-25 Jeff Law (law@redhat.com)
7928
7929 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7930
7931 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7932
7933 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7934
7935 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7936
7937 * command.h: Update copyright.
7938 (struct cmd_list_element): Replace definition with opaque
7939 declaration.
7940 (enum cmd_types): Document that it will eventually be moved to
7941 cli/cli-decode.h
7942 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7943 (MALLOCED_REPLACEMENT): Delete macro.
7944 * Makefile.in (cli_decode_h): Add $(command_h).
7945 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7946 * top.c: Include "cli/cli-decode.h".
7947 * completer.c: Include "cli/cli-decode.h".
7948 * maint.c: Include "cli/cli-decode.h".
7949 * cli/cli-decode.h: Include "command.h".
7950 (enum command_class): Delete.
7951 (enum cmd_types): Comment out.
7952 (enum cmd_auto_boolean): Delete.
7953 (enum var_types): Delete.
7954
7955 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7956
7957 * cli/cli-decode.c: Include "gdb_assert.h".
7958 (add_set_or_show_cmd): New static function.
7959 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7960 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7961 all fields, such as func, from the set command.
7962
7963 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7964
7965 * MAINTAINERS (sh-elf): Change warning flag to -w.
7966
7967 2002-03-23 Andrew Cagney <cagney@redhat.com>
7968
7969 * defs.h (error): Add printf format attribute.
7970 * thread-db.c (thread_from_lwp): Fix error format string.
7971 * stack.c (parse_frame_specification): Ditto.
7972 * cli/cli-decode.c (undef_cmd_error): Ditto.
7973 * scm-lang.c (scm_lookup_name): Ditto.
7974 * tracepoint.c (trace_error): Ditto.
7975 * remote-utils.c (usage): Ditto.
7976 * remote.c (compare_sections_command): Ditto.
7977 Fix PR gdb/328.
7978
7979 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7980
7981 * gdbtypes.c (append_composite_type_field): New function.
7982 (init_composite_type): New function.
7983 * gdbtypes.h (append_composite_type_field): Declare.
7984 (init_composite_type): Ditto.
7985
7986 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7987
7988 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7989 function.
7990 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7991 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7992 structure returning convention for SYSV ABI case, but not
7993 for GNU/Linux, FreeBSD, or NetBSD.
7994
7995 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7996
7997 * symtab.h (lookup_block_symbol): Add mangled_name argument
7998 to prototype.
7999
8000 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8001 with new mangled_name argument.
8002 * linespec.c (decode_line_1): Likewise.
8003 * valops (value_of_this): Likewise.
8004 * symtab.c (lookup_transparent_type): Likewise.
8005 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8006 (lookup_symbol): If we are given a mangled name, pass it down
8007 to lookup_symbol_aux.
8008 (lookup_block_symbol): If we are given a mangled name to check
8009 against, only return symbols which match it.
8010
8011 2002-03-22 Christopher Faylor <cgf@redhat.com>
8012
8013 * win32-nat.c (child_create_inferior): Check for proper shell to use
8014 here, in case the user changes it on the fly.
8015 (_initialize_inftarg): Remove shell path considerations.
8016
8017 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8018
8019 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8020 for gdbarch_max_register_raw_size and max_register_virtual_size.
8021 Adjust copyright year.
8022
8023 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8024
8025 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8026 in a function to cover the entire beginning of the function
8027 as well if it does not already.
8028
8029 2002-03-21 Tom Rix <trix@redhat.com>
8030
8031 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8032 (rs6000_ptrace64): Renamed from ptrace64.
8033
8034 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8035
8036 * gdbserver/remote-utils.c (remote_open): Don't call
8037 getprotobyname, we're all using TCP here so just use
8038 IPPROTO_TCP.
8039 * gdbserver/gdbreplay.c (remote_open): Ditto.
8040
8041 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8042
8043 * regcache.c (_initialize_regcache): No need to call
8044 build_regcache() at this time; it gets called whenever
8045 the gdbarch changes.
8046
8047 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8048
8049 * sparc-nat.c: Include sys/param.h where possible.
8050
8051 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8052
8053 Fix PR gdb/422.
8054 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8055 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8056 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8057 complex types.
8058 * stabsread.c (rs6000_builtin_type): Likewise.
8059 (read_sun_floating_type): Likewise.
8060
8061 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8062
8063 * stabsread.c (read_member_functions): Remove skip code for duplicate
8064 constructor/destructor methods. Use standard parsing for these
8065 methods and just do not chain them to the list of methods after
8066 parsing.
8067
8068 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8069
8070 * coffread.c: Remove redundant static declarations. Replace
8071 occurrences of `PTR' with `void *'.
8072 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8073 * top.h (quit_cover): Likewise.
8074 * defs.h (catch_errors): Likewise.
8075
8076 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8077
8078 * defs.h (XMALLOC): Define.
8079 * gdb-events.sh (XMALLOC): Delete macro.
8080 * gdb-events.c, gdb-events.h: Regenerate.
8081 * gdbarch.sh (XMALLOC): Delete macro.
8082 * gdbarch.c: Regenerate.
8083 * serial.c (XMALLOC): Delete macro.
8084 * ui-file.c (XMALLOC): Ditto.
8085 * ser-unix.h (XMALLOC): Ditto.
8086 * sh-tdep.c (XMALLOC): Ditto.
8087 * ui-out.c (XMALLOC): Ditto.
8088 * utils.c (XMALLOC): Ditto.
8089 * i386-tdep.c (XMALLOC): Ditto.
8090 * gdb-events.c (XMALLOC): Ditto.
8091 * d10v-tdep.c (XMALLOC): Ditto.
8092 * cli-out.c (XMALLOC): Ditto.
8093
8094 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8095 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8096 * ui-file.c, ui-out.c: Ditto.
8097
8098 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8099
8100 * command.h (struct cmd_list_element): Add field context.
8101 (set_cmd_context, get_cmd_context): Declare.
8102 * cli/cli-decode.h: Ditto.
8103 * cli/cli-decode.c (get_cmd_context): New function.
8104 (set_cmd_context): New function.
8105 (add_cmd): Initialize context.
8106 Part of fixing PR gdb/145 and PR gdb/146.
8107
8108 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8109
8110 * cli/cli-decode.c (cmd_type): New function.
8111 * command.h (cmd_type): Declare.
8112 * infrun.c (set_schedlock_func): Call function cmd_type.
8113 * kod.c (kod_set_os): Call cmd_type.
8114 * cris-tdep.c (cris_version_update): Use function cmd_type.
8115 (cris_mode_update, cris_abi_update): Ditto.
8116
8117 * command.h: (execute_cmd_post_hook): Declare.
8118 (execute_cmd_pre_hook): Declare.
8119 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8120 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8121 functions. Execute pre/post hook while ensuring that afterwords
8122 hook_in is cleared.
8123 * top.c (execute_command): Use execute_cmd_post_hook, and
8124 execute_cmd_pre_hook to execute pre/post commands.
8125 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8126 hook_stop_stub.
8127 (hook_stop_stub): Call execute_cmd_pre_hook.
8128
8129 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8130
8131 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8132 set'' and this leads to a core dump. Move xstrdup of
8133 operating_system to after check that it is not NULL.
8134
8135 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8136
8137 * kod.c (kod_set_os): Remove unnecessary check that
8138 ``command->type'' is set_cmd.
8139
8140 * valprint.c (set_input_radix): Use input_radix.
8141 (set_output_radix): Use output_radix.
8142 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8143 isn't reverted.
8144
8145 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8146
8147 * value.h (struct value): Delete field ``substring_addr''. Change
8148 aligner fields to force_doublest_align, force_longest_align,
8149 force_core_addr_align and force_pointer_aligh.
8150
8151 * value.h (struct value): Fix typo in above change.
8152
8153 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8154
8155 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8156 to fix internal_error from ``maintenance print architecture''.
8157
8158 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8159
8160 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8161 for gcc versions after gcc-2.8.1.
8162
8163 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8164
8165 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8166 for method resolution. Restore adjustment of ``this'' pointer after
8167 calling value_struct_elt, which was accidentally removed during the
8168 HP merge.
8169
8170 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8171
8172 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8173 value_of_register.
8174 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8175 get_saved_register.
8176 * value.h (value_of_register): Update.
8177
8178 2002-03-14 Richard Henderson <rth@redhat.com>
8179
8180 * configure.in: Detect declaration for canonicalize_file_name.
8181 * utils.c (canonicalize_file_name): Declare, if needed.
8182 (gdb_realpath): Prefer realpath if available and usable.
8183 * config.in, configure: Rebuild.
8184
8185 2002-03-14 Richard Henderson <rth@redhat.com>
8186
8187 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8188 a constant array bound.
8189
8190 * MAINTAINERS: Add myself to write-after-approval.
8191
8192 2002-03-14 Michael Snyder <msnyder@redhat.com>
8193
8194 * symfile.c (syms_from_objfile): Return immediately if no syms.
8195 (symbol_file_add): Return immediately if no syms.
8196 (find_sym_fns): Return immediately if no syms.
8197
8198 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8199
8200 * gdbserver/remote-util.c (remote_open): Print remote-side's
8201 IP address when remote debugging over the network.
8202
8203 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8204
8205 * config/sparc/fbsd.mh: Fix copyright.
8206 * config/sparc/fbsd.mt: Likewise.
8207
8208 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8209
8210 * MAINTAINERS: Fix typo in name of gdb warnings option.
8211 (x86-64): Fix formating so that this can be parsed by awk.
8212
8213 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8214
8215 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8216 * defs.h: Include "gdb/signals.h".
8217 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8218
8219 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8220
8221 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8222 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8223 from x86-64-tdep.h
8224
8225 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8226 Don Howard <dhoward@redhat.com>
8227
8228 * mips-tdep.c (ST0_FR): Define.
8229 (mips2_fp_compat): New function, temporarily disabled.
8230 (mips_read_fp_register_single): New function.
8231 (mips_read_fp_register_double): New function.
8232 (mips_print_register): Use them.
8233 (do_fp_register_row): Likewise.
8234
8235 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8236
8237 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8238 approval''.
8239
8240 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8241
8242 * stabsread.c (read_member_functions): Fix is_stub test for
8243 static member functions, improve comment.
8244
8245 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8246
8247 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8248 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8249 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8250 commands that set boolean values.
8251 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8252 (arm_rdi_resume): Always initialize PC.
8253 (arm_rdi_open): Don't use rslt as a boolean.
8254 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8255 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8256 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8257 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8258
8259 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8260
8261 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8262 * configure: Rebuilt.
8263
8264 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8265
8266 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8267 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8268
8269 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8270
8271 * cli/cli-decode.c (set_cmd_completer): New function.
8272 * command.h (set_cmd_completer): Declare.
8273 * cli/cli-decode.h (set_cmd_completer): Ditto.
8274
8275 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8276 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8277 * win32-nat.c (_initialize_inftarg): Ditto.
8278 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8279 * proc-api.c (_initialize_proc_api): Ditto.
8280 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8281 * source.c (_initialize_source): Ditto.
8282 * exec.c (_initialize_exec): Ditto.
8283 * solib.c (_initialize_solib): Ditto.
8284 * top.c (init_main): Ditto.
8285 * tracepoint.c (_initialize_tracepoint): Ditto.
8286 * symfile.c (_initialize_symfile): Ditto.
8287 * printcmd.c (_initialize_printcmd): Ditto.
8288 * infcmd.c (_initialize_infcmd): Ditto.
8289 * corefile.c (_initialize_core): Ditto.
8290
8291 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8292
8293 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8294
8295 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8296
8297 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8298
8299 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8300
8301 * NEWS: Update headings, 5.2 has branched.
8302
8303 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8306 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8307 (register_addr, REGISTER_RAW_SIZE): Likewise.
8308 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8309 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8310
8311 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8312
8313 * MAINTAINERS (x86-64): Add myself.
8314 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8315 changed value_ptr -> struct value *
8316
8317 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8318
8319 * configure.host (sparc64-*-freebsd): Add.
8320 * configure.tgt: Likewise.
8321 * config/sparc/fbsd.mh: New file.
8322 * config/sparc/fbsd.mt: Likewise.
8323 * config/sparc/nm-fbsd.h: Likewise.
8324 * config/sparc/tm-fbsd.h: Likewise.
8325
8326 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8329 regformats/reg-s390x.dat.
8330
8331 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8332
8333 * utils.c: Add FIXME explaining true/false problem.
8334
8335 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8336
8337 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8338
8339 2002-02-28 Michael Chastain <mec@shout.net>
8340
8341 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8342
8343 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * gdbserver/linux-s390-low.c: New file.
8346 * regformats/reg-s390.dat: New file.
8347 * regformats/reg-s390x.dat: New file.
8348 * gdbserver/configure.srv: Add S/390.
8349 * gdbserver/Makefile.in: Add S/390.
8350 * configure.tgt: Enable gdbserver for S/390.
8351
8352 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8353
8354 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8355 first line of the doc string for "info dos", except at the end of
8356 the sentence, since the short help stops at the first period.
8357
8358 2002-02-28 Jason Merrill <jason@redhat.com>
8359
8360 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8361
8362 2002-02-27 Fred Fish <fnf@redhat.com>
8363
8364 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8365 comment (dumy -> dummy).
8366
8367 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8368
8369 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8370
8371 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8372
8373 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8374
8375 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8376
8377 * gdbserver/acconfig.h: New file.
8378 * gdbserver/i387-fp.c: New file.
8379 * gdbserver/i387-fp.h: New file.
8380 * gdbserver/linux-x86-64.c: New file.
8381 * regformats/reg-x86-64.dat: New file.
8382 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8383 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8384 * gdbserver/configure.in: Add support for regsets.
8385 * gdbserver/config.in: Regenerate.
8386 * gdbserver/configure: Regenerate.
8387 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8388 * gdbserver/linux-low.h: New file.
8389 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8390 for regsets.
8391 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8392 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8393 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8394 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8395 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8396 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8397 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8398 "i387-fp.h". Add PTRACE_GETREGS and friends.
8399 * gdbserver/regcache.c (supply_register): New function.
8400 (supply_register_by_name): New function.
8401 (collect_register): New function.
8402 (collect_register_by_name): New function.
8403
8404 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8405
8406 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8407 (config.status): Add configure.srv dependency.
8408 (server_h): Add config.h dependency.
8409
8410 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8411
8412 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8413 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8414 * gdbserver/configure.srv: Change i386-*-linux* to use
8415 reg-i386-linux.o.
8416
8417 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8418
8419 * x86-64-tdep.c: Re-indent. Update copyright date.
8420
8421 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8422
8423 From Michal Ludvig <mludvig@suse.cz>:
8424 * x86-64-tdep.c (value.h): Delete.
8425 (gdb_assert.h): Include.
8426 (x86_64_register_convert_to_virtual,
8427 x86_64_register_convert_to_raw ): Add check which lets only
8428 floating-point values to be converted.
8429 (value_push): Delete.
8430 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8431 (i386_gdbarch_init): Number of register_bytes fixed.
8432
8433 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8434
8435 * MAINTAINERS: Add x86-64 target.
8436
8437 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8438
8439 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8440 * osfsolib.c (solib_map_sections): Ditto.
8441 * irix5-nat.c (solib_map_sections): Ditto.
8442 * corelow.c (gdb_check_format): Ditto.
8443 * symfile.c (symfile_bfd_open): Ditto.
8444 * solib.c (solib_map_sections): Ditto.
8445 Fix PR gdb/354.
8446
8447 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8448
8449 * remote.c (_initialize_remote): By default, disable ``e'' and
8450 ``E'' step out-of-range packets.
8451
8452 2002-02-26 Andreas Schwab <schwab@suse.de>
8453
8454 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8455 m68k_linux_frame_saved_pc.
8456 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8457 in_sigtramp.
8458 (SIGCONTEXT_PC_OFFSET): Remove.
8459 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8460 m68k_linux_sigtramp_saved_pc): New functions.
8461 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8462 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8463 (UCONTEXT_PC_OFFSET): Define.
8464 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8465 non-RT and RT signal trampolines.
8466
8467 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8468
8469 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8470 (TARGET_NBPG, STACK_END_ADDR): Delete
8471 (VARIABLES_INSIDE_BLOCK): Delete.
8472
8473 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8474
8475 * utils.c (perror_with_name): Make string parameter constant.
8476 (print_sys_errmsg): Ditto.
8477 (query): Ditto.
8478 * defs.h (perror_with_name): Update.
8479 (print_sys_errmsg): Update.
8480 (query): Update.
8481
8482 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8483
8484 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8485 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8486
8487 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8488
8489 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8490 if it already matches the current architecture from the exec file.
8491 Include arch-utils.h for gdbarch_info_init prototype.
8492 * Makefile.in (rs6000-nat.o): Update dependencies.
8493
8494 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8495
8496 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8497 list of exported variables.
8498
8499 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8500
8501 * gdbserver/configure.srv: New file.
8502 * gdbserver/configure.in: Use configure.srv instead
8503 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8504 from it.
8505 * gdbserver/configure: Regenerated.
8506 * gdbserver/terminal.h: New file.
8507 * gdbserver/Makefile.in: Update for configure changes. Remove
8508 more unneeded include paths.
8509
8510 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8511
8512 From wiz at danbala:
8513 * config/sparc/tm-sp64.h: Fix grammar and typos.
8514 Fix PR gdb/287.
8515
8516 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8517
8518 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8519 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8520 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8521 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8522 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8523 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8524 * s390-tdep.c: Ditto.
8525 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8526 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8527 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8528 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8529 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8530 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8531 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8532 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8533 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8534 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8535 Fix PR gdb/378.
8536
8537 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8538
8539 * lin-thread.c: Delete file.
8540 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8541 to gdb_proc_service.h.
8542 * configure: Re-generate.
8543
8544 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8545 * serial.c (serial_open): Delete check for "ocd".
8546 Fix PR gdb/349.
8547
8548 * Makefile.in (linux-thread.o): Delete target.
8549 * linux-thread.c: Delete file.
8550
8551 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8552 renamed SH files to be consistent.
8553
8554 * symtab.c (sort_search_symbols): Use xfree.
8555
8556 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8557
8558 * arm-linux-tdep.c (arm_linux_init_abi): Register
8559 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8560 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8561 definition with undef, since we don't want the sysvr4 definition.
8562 (SKIP_TRAMPOLINE_CODE): Likewise.
8563
8564 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8565
8566 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8567
8568 * configure.in: (AC_CHECK_FUNCS) Added test for
8569 canonicalize_file_name Regenerated.
8570 * config.in, configure: Regenerated.
8571 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8572 defined use canonicalize_file_name.
8573
8574 2002-02-23 Michael Chastain <mec@shout.net>
8575
8576 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8577
8578 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8579
8580 * README: Remove references to cygnus.com.
8581 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8582 dot com'' form. Remove references to cygnus.com and sourceware.
8583
8584 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8585
8586 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8587 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8588 1003.1-2001 no longer allows "head -1".
8589 * gdb/Makefile.in (version.c): Likewise.
8590 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8591 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8592 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8593
8594 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8595
8596 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8597 * command.h (cmd_cfunc_eq): Declare.
8598 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8599
8600 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8601 ``struct cmd_list_element *''.
8602 * cli/cli-cmds.c (is_complete_command): Update. Use
8603 cmd_cfunc_eq.
8604 * top.c (execute_command): Pass the command to
8605 is_complete_command.
8606 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8607
8608 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8609
8610 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8611 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8612 architecture defines.
8613 * s390-tdep.c (s390_gdbarch_init): Likewise.
8614
8615 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8616
8617 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8618 (arm_linux_push_arguments): Likewise.
8619 (arm_linux_init_abi): Register them. Also register linux-specific
8620 call_dummy_words.
8621 (find_minsym_and_objfile): Use strcmp, not STREQ.
8622 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8623 (arm_linux_call_dummy_words): Delete declaration.
8624 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8625 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8626 declarations.
8627 (LOWEST_PC): Delete.
8628
8629 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8630
8631 * maint.c (print_section_info): Do not prepend `0x' to filepos
8632 output, it will be handled by local_hex_string_custom.
8633
8634 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8635
8636 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8637 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8638 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8639
8640 2002-02-22 Jim Blandy <jimb@redhat.com>
8641
8642 Indicate that the bcache functions don't change the strings
8643 they're passed.
8644 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8645 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8646
8647 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8648
8649 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8650
8651 2002-02-21 Christopher Faylor <cgf@redhat.com>
8652
8653 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8654 find the complete path to a loaded DLL.
8655
8656 2002-02-21 Fred Fish <fnf@redhat.com>
8657
8658 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8659 that marks the end of the range of a function, enter a line number
8660 entry that has a line number of zero and a PC offset that matches
8661 the end of the function. This starts a range of PC's for which no
8662 line number information is known.
8663 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8664 PC's for which no line number info is found (line number is zero)
8665 then we didn't find any valid line information.
8666 * symtab.h: Document use of zero line number entry.
8667
8668 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8669
8670 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8671 (have_ptrace_getvrregs): Define for run time checks.
8672 (gdb_vrregset_t): New type for Altivec register handling.
8673 (fetch_register, store_register): Fetch/store altivec register
8674 when needed.
8675 (fetch_altivec_register, store_altivec_register): New functions.
8676 (supply_vrregset, fill_vrregset): New functions.
8677 (fetch_altivec_registers, store_altivec_registers): New functions.
8678 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8679 registers as well.
8680
8681 2002-02-21 Jiri Smid <smid@suse.cz>
8682
8683 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8684
8685 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8686
8687 * Makefile.in (armnbsd-nat.o): Update dependencies.
8688 * armnbsd-nat.c (supply_gregset): New function. Common code to
8689 supply the integer register set.
8690 (supply_fparegset): New function. Similar for FPA registers.
8691 (fetch_regs, fetch_fp_regs): Use them.
8692 (fetch_core_registers): Likewise.
8693 (fetch_elfcore_registers): New function.
8694 (arm_netbsd_elfcore_fns): New core-file type specification.
8695 (_initialize_arm_netbsd_nat): Register it.
8696
8697 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8698
8699 * armnbsd-nat.c: Include gdbcore.h.
8700 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8701 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8702 'void' to declaration, to shut up ARI.
8703 (fetch_core_registers): Make static. Rewrite using supply_register.
8704 (arm_netbsd_core_fns): New core-file type specification.
8705 (_initialize_arm_netbsd_nat): New function.
8706
8707 2002-02-21 Christopher Faylor <cgf@redhat.com>
8708
8709 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8710 value.
8711
8712 2002-02-20 Christopher Faylor <cgf@redhat.com>
8713
8714 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8715 fails.
8716
8717 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8718
8719 * jv-exp.y (parse_number): Change type of implicit longs
8720 to builtin_type_uint64.
8721
8722 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8725 to be an integer instead of a `union wait'.
8726
8727 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * mips-linux-nat.c: Call the operating system GNU/Linux.
8730 * mips-linux-tdep.c: Likewise.
8731 * mips-tdep.c: Likewise.
8732
8733 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8734
8735 Fix PR gdb/265.
8736 * jv-exp.y (parse_number): Handle 64-bit integers.
8737
8738 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8739
8740 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8741 AC_STDC_HEADERS to AC_HEADER_STDC.
8742 * gdbserver/configure: Regenerated.
8743
8744 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8745
8746 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8747 is defined.
8748 * sparc-tdep.c (get_longjmp_target): Likewise.
8749
8750 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8751
8752 * News: Add news about ARM and Multi-arch. Mention the new target
8753 arm*-*-netbsd*.
8754
8755 2002-02-19 Jim Blandy <jimb@redhat.com>
8756
8757 * stabsread.c (error_type_complaint): Improve error message.
8758
8759 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8760
8761 * gdbserver/README: Update documentation.
8762 * gdbserver/configure.in: Update configury to match documentation.
8763 * gdbserver/Makefile.in: Likewise.
8764 * gdbserver/configure: Regenerated.
8765 * gdbserver/aclocal.m4: New file, generated by aclocal.
8766 * gdbserver/config.in: New file, generated by autoheader.
8767
8768 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8769
8770 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8771 armnbsd-nat.c.
8772
8773 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8774
8775 * arm-tdep.h (enum arm_float_model): New enum.
8776 (struct gdbarch_tdep): Add fp_model.
8777 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8778 up floating-point conversions until we know the floating-point model
8779 in use by the inferior. Don't complain about being unable to
8780 determine the ABI of the inferior when we don't have one.
8781 (arm_extract_return_value): Support different floating-point models.
8782 (arm_store_return_value): Likewise.
8783 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8784 ARM_FLOAT_SOFT.
8785 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8786
8787 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8788
8789 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8790 of ``current_gdbarch''.
8791
8792 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8793
8794 * armnbsd-nat.c : ANSIfy all function declarations.
8795 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8796 (fetch_inferior_registers): Re-implement in terms of above.
8797 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8798 (store_inferior_registers): Re-implement in terms of above.
8799
8800 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8801
8802 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8803 kernel.
8804 * arm-linux-tdep.c: Likewise.
8805 * config/arm/tm-linux.h: Likewise.
8806
8807 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8808
8809 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8810 * config/arm/nbsd.mt (TM_FILE): Delete.
8811 * config/arm/tm-nbsd.h: Delete.
8812
8813 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8814
8815 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8816 Initialize CALL_DUMMY_LENGTH.
8817
8818 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8819
8820 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8821 function.
8822 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8823 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8824 defines one thing and that is incorrect for this port.
8825 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8826
8827 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8828
8829 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8830
8831 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8832
8833 * win32-nat.c (display_selector): New function. Displays information
8834 about the information returned by GetThreadSelectorEntry API function.
8835 (display_selectors): New function. Displays the infomation of
8836 the selector given as argument, or of CS, DS ans FS selectors
8837 if no argument is given.
8838 ( _initialize_inftarg): Add "w32" as info prefix command.
8839 Add "info w32 selector" as command calling display_selectors.
8840
8841 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8842
8843 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8844 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8845 if not defined.
8846
8847 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8848
8849 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8850
8851 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8852
8853 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8854 (arm_fix_call_dummy): Call it.
8855 (arm_call_dummy_breakpoint_offset): Delete.
8856 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8857 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8858
8859 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8860
8861 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8862 Default to func_frame_chain_valid.
8863 * gdbarch.h, gdbarch.c: Re-generate.
8864 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8865
8866 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8867
8868 * ppc-linux-nat.c: Update copyright.
8869 (fetch_register, store_register): Add tid parameter, don't compute
8870 tid here.
8871 (fetch_ppc_registers, store_ppc_registers): Add tid
8872 parameter. Pass it along to callees.
8873 (fetch_inferior_registers, store_inferior_registers): Compute tid
8874 here, and pass it to calleed functions.
8875 (fill_gregset, supply_fpregset): Clean up formatting.
8876
8877 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8878
8879 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8880 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8881
8882 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8883
8884 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8885 * gdbarch.c gdbarch.h: Regenerate.
8886 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8887 function.
8888 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8889 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8890 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8891
8892 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8893 * arm-tdep.c (arm_get_longjmp_target): New function.
8894 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8895 this to a positive value register arm_get_longjmp_target as the
8896 longjmp handler.
8897 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8898 (arm_linux_init_abi): Set up longjmp description in tdep.
8899 * armnbsd-nat.c (get_longjmp_target): Delete.
8900 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8901 description in tdep.
8902 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8903 (get_longjmp_target): Delete declaration.
8904 (GET_LONGJMP_TARGET): Delete.
8905 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8906 (GET_LONGJMP_TARGET): Delete.
8907
8908 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8909
8910 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8911 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8912 of ``current_gdbarch''.
8913
8914 2002-02-17 Tom Tromey <tromey@redhat.com>
8915
8916 * cli/cli-cmds.c (compare_strings): New function.
8917 (complete_command): Only print each unique item once.
8918 * completer.h (complete_line): Declare.
8919 * completer.c (complete_line): New function.
8920 (line_completion_function): Use it.
8921
8922 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8923
8924 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8925 * gdbarch.h, gdbarch.c: Re-generate.
8926
8927 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8928
8929 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8930
8931 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8932
8933 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8934 * valops.c (value_arg_coerce): Don't take the address of a reference
8935 to convert an argument to a reference.
8936
8937 2002-02-15 Christopher Faylor <cgf@redhat.com>
8938
8939 * win32-nat.c (get_image_name): New function.
8940 (handle_load_dll): Use get_image_name function.
8941 (get_child_debug_event): Avoid registering debug events until possibly
8942 execed process is started.
8943 (child_create_inferior): Allow invocation via shell so that command
8944 line redirection, etc. works ok.
8945 (_initialize_inftarg): Add new command: "set shell" to control whether
8946 a shell is used to start a process.
8947
8948 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8949
8950 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8951 instead of find_register_by_number.
8952 (cannot_store_register): Likewise.
8953
8954 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8955
8956 * dwarf2read.c: Replace fprintf (stderr, ...) by
8957 fprintf_unfiltered (gdb_stderr, ...).
8958
8959 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8960
8961 * gdbserver/gdbserver.1: Document --attach.
8962
8963 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8964
8965 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8966 descriptions.
8967 * arm-tdep.c (arm_default_arm_le_breakpoint)
8968 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8969 (arm_default_thumb_be_breakpoint): New. Initialize them from
8970 traditional breakpoint defines.
8971 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8972 (arm_gdbarch_init): Initialize new breakpoint variables.
8973 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8974 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8975 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8976 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8977 code out to ...
8978 (arm_netbsd_init_abi_common): ... here; new function.
8979 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8980 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8981 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8982 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8983
8984 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8985
8986 * arm-tdep.h (enum arm_abi): New enum.
8987 (struct gdbarch_tdep): New structure.
8988 (LOWEST_PC): Provide a default.
8989 (arm_gdbarch_register_os_abi): Declare new function.
8990 * arm-tdep.c (arm_abi_names): New array.
8991 (process_note_abi_tag_sections): New function.
8992 (get_elfosabi): New function.
8993 (arm_gdbarch_register_os_abi): New function.
8994 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8995 support for that ABI has been built in, then call the appropriate
8996 configuration routine. Use gdbarch_num_regs() to get the number
8997 of registers.
8998 (arm_dump_tdep): New function.
8999 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9000 place-holder functions.
9001 (_initialize_arm_tdep): Register them.
9002 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9003
9004 * armnbsd-tdep.c: New file.
9005 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9006 * config/arm/nbsd.mt (TDEPFILES): Add it.
9007 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9008
9009 * armnbsd-nat.c: Include regcache.h.
9010 * Makefile.in (armnbsd-nat.o): Update dependency list.
9011
9012 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9013
9014 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9015
9016 * gdbserver/Makefile.in: Fix typos in target rules.
9017
9018 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9019
9020 Fix part of PR gdb/267.
9021 * linespec.c (find_methods): Handle constructors specially for now.
9022
9023 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9024
9025 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9026 handling.
9027 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9028 standard_coerce_float_to_double().
9029
9030 2002-02-14 Christopher Faylor <cgf@redhat.com>
9031
9032 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9033 GDBINIT_FILENAME.
9034
9035 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9036
9037 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9038 find_variant_by_name, because it confuses the multiarch
9039 framework. Return NULL if there isn't an architecture with the
9040 user supplied name, instead of forcing a different one without
9041 recording the change with the multiarch machinery.
9042 (find_variant_by_name): Delete.
9043
9044 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9045
9046 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9047 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9048
9049 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9050
9051 * stack.c (print_frame_info_base): When calling
9052 print_frame_info_listing_hook, set current_source_symtab.
9053
9054 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9057 and remove unused $(INCLUDE_DIR).
9058 Add regcache.c to OBS.
9059 Add generated register protocol files to clean target.
9060 Update dependencies for new objects, obsolete old target code.
9061
9062 * gdbserver/linux-low.c: Remove all platform-specific code to
9063 new files. Remove various dead code. Update to use regcache
9064 functionality.
9065 * gdbserver/remote-utils.c (fromhex): Add return statement
9066 to quiet warning.
9067 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9068 constant.
9069 (input_interrupt): Add integer parameter to match prototype
9070 of a signal handler.
9071 (outreg): Use register_data ().
9072 (prepare_resume_reply): Use gdbserver_expedite_regs.
9073 * gdbserver/server.c (main): Dynamically allocate own_buf because
9074 PBUFSIZ is no longer constant. Use registers_to_string () and
9075 registers_from_string ().
9076 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9077 for error (), fatal (), and warning (). Update definition of
9078 PBUFSIZ to use regcache functionality. Add include guard.
9079 * gdbserver/utils.c (fatal): Add missing ``const''.
9080 (warning): New function.
9081
9082 * regformats/regdat.sh: Include "regcache.h" in generated files.
9083 Provide init_registers () function.
9084 * regformats/regdef.h: Add prototype for set_register_cache ().
9085 Add include guard.
9086
9087 * gdbserver/linux-arm-low.c: New file.
9088 * gdbserver/linux-i386-low.c: New file.
9089 * gdbserver/linux-ia64-low.c: New file.
9090 * gdbserver/linux-m68k-low.c: New file.
9091 * gdbserver/linux-mips-low.c: New file.
9092 * gdbserver/linux-ppc-low.c: New file.
9093 * gdbserver/linux-sh-low.c: New file.
9094
9095 * gdbserver/regcache.c: New file.
9096 * gdbserver/regcache.h: New file.
9097
9098 * gdbserver/low-linux.c: Removed obsolete file.
9099
9100 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9101
9102 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9103 * config/i386/linux.mt: Likewise.
9104 * config/ia64/linux.mt: Likewise.
9105 * config/m68k/linux.mh: Likewise.
9106 * config/powerpc/linux.mh: Likewise.
9107 * config/mips/linux.mt: Likewise.
9108
9109 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9110
9111 * config/i386/i386lynx.mh: Mark gdbserver variables
9112 as (currently) obsolete for this target.
9113 * config/i386/nbsd.mt: Likewise.
9114 * config/i386/nbsdelf.mt: Likewise.
9115 * config/m32r/m32r.mt: Likewise.
9116 * config/m68k/m68klynx.mh: Likewise.
9117 * config/m68k/nbsd.mt: Likewise.
9118 * config/m68k/sun3os4.mh: Likewise.
9119 * config/mips/vr5000.mt: Likewise.
9120 * config/ns32k/nbsd.mt: Likewise.
9121 * config/pa/hppabsd.mh: Likewise.
9122 * config/pa/hppaosf.mh: Likewise.
9123 * config/powerpc/nbsd.mt: Likewise.
9124 * config/rs6000/rs6000lynx.mh: Likewise.
9125 * config/s390/s390.mt: Likewise.
9126 * config/s390/s390x.mt: Likewise.
9127 * config/sparc/sparclynx.mh: Likewise.
9128 * config/sparc/sun4os4.mh: Likewise.
9129 * config/i386/x86-64linux.mt: Likewise.
9130 * config/sparc/linux.mh: Likewise.
9131
9132 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9133
9134 * configure.tgt: Configure gdbserver only for known working
9135 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9136 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9137 SUBDIRS if it is configured. Update comment for ${nativefile}.
9138 * configure: Regenerated.
9139
9140 2002-02-13 Michael Snyder <msnyder@redhat.com>
9141
9142 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9143
9144 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9145 (default_gcore_mach): Just return 0, work around a problem in bfd.
9146 (default_gcore_target): OK to return NULL if exec_bfd is null.
9147 (make_mem_sec): Use a cast, avoid a warning.
9148
9149 * procfs.c (find_memory_regions_callback): Use a cast instead of
9150 calling host_pointer_to_address (which complains if
9151 sizeof (host pointer) != sizeof (target pointer)).
9152 (procfs_make_note_section): Avoid overflow in psargs string.
9153
9154 * procfs.c (procfs_make_note_section): Make the default
9155 implementation return an error.
9156
9157 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9158
9159 * procfs.c (procfs_make_note_section): Provide a default definition
9160 (for alpha-dec-osf4.0f). Fix typos.
9161
9162 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9163
9164 * linux-proc.c: Add include of regcache.h.
9165 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9166
9167 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9168
9169 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9170 * memattr.c (create_mem_region): Disallow useless empty region.
9171 Regions are half-open intervals, so allow [A..B) [B..C) as
9172 non-overlapping.
9173
9174 2002-02-13 Michael Chastain <mec@shout.net>
9175
9176 * defs.h: Kill CONST_PTR.
9177 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9178 * c-lang.c (c_builtin_types): Likewise.
9179 * ch-lang.c (ch_builtin_types): Likewise.
9180 * f-lang.c (f_builtin_types): Likewise.
9181 * language.c (unknown_builtin_types): Likewise.
9182 * m2-lang.c (m2_builtin_types): Likewise.
9183 * p-lang.c (pascal_builtin_types): Likewise.
9184 * scm-lang.c (c_builtin_types): Likewise.
9185
9186 2002-02-13 Keith Seitz <keiths@redhat.com>
9187
9188 * arm-tdep.h (arm_get_next_pc): Add declaration.
9189
9190 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9191
9192 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9193 with other related struct-returning functions.
9194 (arm_extract_struct_value_address): New function.
9195 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9196 initialize float_format, double_format and long_double_format as
9197 appropriate to the endianness of the target.
9198 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9199 (arm_use_struct_convention): Delete declaration.
9200 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9201
9202 2002-02-13 Keith Seitz <keiths@redhat.com>
9203
9204 * defs.h (core_addr_to_string_nz): New function.
9205
9206 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9207
9208 Apply missing bits of 2002-01-15 patch.
9209 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9210 (fill_fpregset): Use i387_fill_fsave.
9211
9212 2002-02-12 Keith Seitz <keiths@redhat.com>
9213
9214 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9215 (core_addr_to_string_nz): New function.
9216
9217 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9218
9219 * arm-linux-nat.c: Really include arm-tdep.h.
9220 * config/arm/tm-linux.h (struct type, struct value): Declare.
9221
9222 2002-02-11 Michael Snyder <msnyder@redhat.com>
9223
9224 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9225 (gcore section): Ifdef for Solaris and Unixware only.
9226 (procfs_do_thread_registers): Unixware needs one lwpstatus
9227 per thread (not one prstatus or pstatus).
9228 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9229 not over all gdb threads. For unixware, call elfcore_write_pstatus
9230 once before iterating over threads.
9231
9232 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * arm-tdep.h: New file.
9235 * arm-tdep.c: Include arm-tdep.h.
9236 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9237 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9238 (arm_print_float_info, arm_register_type, convert_to_extended)
9239 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9240 (arm_extract_return_value, arm_register_name): Make static.
9241 (arm_software_single_step): Similarly. Fix types in declaration.
9242 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9243 (arm_store_return_value, arm_store_struct_return): New functions.
9244 (arm_gdbarch_init): Register the above functions. Also register
9245 call_dummy_start_offset, sizeof_call_dummy_words,
9246 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9247 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9248 max_register_virtual_size, register_size. Set up
9249 prologue_cache.saved_regs here, rather than ...
9250 (_initialize_arm_tdep): ... here.
9251 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9252 declarations.
9253 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9254 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9255 (arm_print_float_info, arm_register_type, convert_to_extended)
9256 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9257 (arm_extract_return_value, arm_register_name): Delete declarations.
9258 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9259 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9260 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9261 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9262 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9263 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9264 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9265 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9266 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9267 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9268 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9269 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9270 interface.
9271 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9272 * remote-rdi.c remote-rdp.c: Likewise.
9273 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9274 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9275 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9276 definition.
9277
9278 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9279 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9280 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9281 from non-ARM_ prefixed definitions.
9282 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9283 all uses of above.
9284 * remote-rdi.c remote-rdp.c: Likewise.
9285 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9286
9287 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * arm-tdep.c (arm_frameless_function_invocation)
9290 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9291 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9292 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9293 (arm_pop_frame, arm_get_next_pc): Make static.
9294 (arm_gdbarch_init): Register above in gdbarch structure.
9295 (arm_read_fp): Renamed from arm_target_read_fp.
9296 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9297 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9298 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9299 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9300 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9301 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9302 (arm_pc_is_thumb_dummy): Delete declarations.
9303 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9304 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9305 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9306 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9307
9308 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9309
9310 * symtab.c (compare_search_syms): New function.
9311 (sort_search_symbols): New function.
9312 (search_symbols): Sort symbols after searching rather than
9313 before.
9314
9315 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9316
9317 * NEWS: Linux -> GNU/Linux.
9318
9319 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9320
9321 * gdbarch.sh: For for level one methods, disallow a definition
9322 when partially multi-arched. Add comments explaining rationale.
9323 * gdbarch.h: Re-generate.
9324
9325 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9326
9327 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9328 multi-arch partial.
9329
9330 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9331
9332 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9333 field. Use diff -u.
9334 * gdbarch.c: Re-generate.
9335
9336 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9337
9338 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9339 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9340 partial.
9341
9342 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9343
9344 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9345 multi-arch partial.
9346 (PUSH_ARGUMENTS): Switch to using predefault.
9347 * gdbarch.c: Regenerate.
9348
9349 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9350
9351 * valops.c (PUSH_ARGUMENTS): Delete definition.
9352 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9353 partial. Default to default_push_arguments.
9354 * gdbarch.h, gdbarch.c: Regenerate.
9355
9356 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9357
9358 * defs.h (throw_exception): Rename return_to_top_level. Update
9359 comments.
9360 * utils.c (error_stream, internal_verror, quit): Ditto.
9361 * top.c (throw_exception, catcher): Ditto.
9362 * sparclet-rom.c (sparclet_load): Ditto.
9363 * remote.c (interrupt_query, minitelnet): Ditto.
9364 * remote-sds.c (interrupt_query): Ditto.
9365 * remote-mips.c (mips_error, mips_kill): Ditto.
9366 * ocd.c (interrupt_query): Ditto.
9367 * monitor.c (monitor_interrupt_query): Ditto.
9368 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9369 * target.h: Update comment.
9370
9371 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9372
9373 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9374
9375 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9376 default_double_format.
9377 * gdbarch.h, gdbarch.c: Re-generate.
9378 * findvar.c (floatformat_unknown): Delete variable definition.
9379 * doublest.h (floatformat_unknown): Delete variable declaration.
9380
9381 2002-02-09 Jim Blandy <jimb@redhat.com>
9382
9383 * stabsread.c (read_type): Add code to parse Sun's syntax for
9384 prototyped function types.
9385
9386 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9387
9388 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9389 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9390
9391 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9392
9393 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9394 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9395 now _initialize_xcoffsolib gets called again and overrides the
9396 commands from solib.c in a native configuration.
9397
9398 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9399
9400 * doublest.c (store_typed_floating): Don't try to return a value.
9401 Fixes PR gdb/290.
9402
9403 2002-02-08 Jim Blandy <jimb@redhat.com>
9404
9405 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9406 is prototyped and has no arguments, print its argument list as
9407 `(void)'.
9408
9409 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9410
9411 * MAINTAINERS (write-after-approval): Add myself.
9412 (paper-trail): I've escaped!
9413
9414 2002-02-08 Christopher Faylor <cgf@redhat.com>
9415
9416 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9417 changes.
9418 (_initialize_check_for_gdb_ini): Ditto.
9419
9420 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9421
9422 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9423 xaprintf -> xasprintf.
9424
9425 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9426
9427 * win32-nat.c: Remove use of printf and sprintf functions.
9428
9429 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * arm-tdep.c (arm_frame_chain_valid): Make static.
9432 (arm_push_arguments): Likewise.
9433 (arm_gdbarch_init): New function.
9434 (_initialize_arm_tdep): Call it.
9435 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9436 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9437 (FRAME_CHAIN_VALID): Delete.
9438 (arm_frame_chain_valid): Delete declaration.
9439 (PUSH_ARGUMENTS): Delete.
9440 (arm_push_arguments): Delete declaration.
9441 (CALL_DUMMY_P): Delete.
9442
9443 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9444 Corinna Vinschen <vinschen@redhat.com>
9445
9446 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9447 on builtin float types.
9448
9449 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9450
9451 * utils.c: Include <curses.h> before "bfd.h".
9452 * tui/tui-hooks.c: Likewise.
9453 * tui/tui.c: Likewise.
9454 * tui/tuiCommand.c: Likewise.
9455 * tui/tuiData.c: Likewise.
9456 * tui/tuiDataWin.c: Likewise.
9457 * tui/tuiDisassem.c: Likewise.
9458 * tui/tuiGeneralWin.c: Likewise.
9459 * tui/tuiIO.c: Likewise.
9460 * tui/tuiLayout.c: Likewise.
9461 * tui/tuiRegs.c: Likewise.
9462 * tui/tuiSource.c: Likewise.
9463 * tui/tuiSourceWin.c: Likewise.
9464 * tui/tuiStack.c: Likewise.
9465 * tui/tuiWin.c: Likewise.
9466
9467 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9468
9469 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9470 to include space for pseudoregs as well. Update loops accordingly.
9471 (sh_fp_frame_init_saved_regs): Ditto.
9472 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9473
9474 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9475
9476 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9477 Add Richard Earnshaw to Arm maintainers.
9478
9479 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9480
9481 * defs.h (warning_begin): Delete declaration.
9482
9483 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9484 Delete macro.
9485
9486 2002-02-07 Michael Snyder <msnyder@redhat.com>
9487
9488 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9489 Logic bug, remove misplaced else.
9490
9491 2002-02-07 Klee Dienes <klee@apple.com>
9492
9493 * fork-inferior.c (fork_inferior): Add '!' to the list of
9494 characters that need to be quoted when building a string for the
9495 shell. Quote '!' specifically with a backslash, since CSH chokes
9496 when trying to evaluate "str!str".
9497
9498 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9499
9500 * rdi-share/host.h: Only provide a typedef for bool if it is not
9501 defined.
9502
9503 2002-02-04 Michael Snyder <msnyder@redhat.com>
9504
9505 * breakpoint.h (enum bptype): Add new overlay event bp type.
9506 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9507
9508 * breakpoint.c (create_internal_breakpoint): New function.
9509 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9510 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9511 (create_thread_event_breakpoint): Ditto.
9512 (create_solib_event_breakpoint): Ditto.
9513 (create_overlay_event_breakpoint): New function.
9514 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9515 (update_breakpoints_after_exec): Delete and re-initialize
9516 overlay event breakpoints after an exec. Add FIXME comment
9517 about longjmp breakpoint.
9518 (print_it_typical): Ignore overlay event breakpoints.
9519 (print_one_breakpoint): Ditto.
9520 (mention): Ditto.
9521 (bpstat_what): Do not stop for overlay event breakpoints.
9522 (delete_breakpoint): Don't delete overlay event breakpoints.
9523 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9524 (breakpoint_re_set): Re-create overlay event breakpoint.
9525
9526 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9527 (overlay_manual_command): Disable overlay breakpoints.
9528 (overlay_off_command): Disable overlay breakpoints.
9529
9530 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9531
9532 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9533 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9534 to here from config/tm-arm.h.
9535 (coff_sym_is_thumb): Make static.
9536 (arm_elf_make_msymbol_special): New function.
9537 (arm_coff_make_msymbol_special): New function.
9538 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9539 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9540 (coff_sym_is_thumb): Delete declaration.
9541 (arm_elf_make_msymbol_special): Declare.
9542 (arm_coff_make_msymbol_special): Declare.
9543 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9544 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9545
9546 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9547
9548 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9549
9550 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9551
9552 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9553 * gdbarch.c gdbarch.h: Regenerate.
9554 * arch-utils.c (default_print_float_info): New function.
9555 * arch-utils.h (default_print_float_info): Prototype it.
9556 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9557 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9558 (PRINT_FLOAT_INFO): Document it.
9559
9560 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9561 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9562 (PRINT_FLOAT_INFO): Define.
9563
9564 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9565
9566 * win32-nat.c (_initialize_check_for_gdb_ini):
9567 Add typecast to sprintf argument to suppress a warning.
9568
9569 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9570
9571 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9572 to allow easier handling of pass state.
9573 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9574 that gives exception name and address.
9575 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9576 and set last_sig value to ourstatus->value.sig. Some missing
9577 exceptions added.
9578 (child_continue): Correctly report continue_status.
9579 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9580 TARGET_SIGNAL_0 (new default value).
9581 (child_resume): consider sig argument passed to decide if
9582 the exception should be passed to debuggee or not.
9583
9584 2002-02-05 Michael Snyder <msnyder@redhat.com>
9585
9586 * regcache.c (fetch_register): Call target_fetch_register
9587 only if we don't call FETCH_PSEUDO_REGISTER.
9588 (store_register): Call target_store_register only if we
9589 don't call STORE_PSEUDO_REGISTER.
9590
9591 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9592
9593 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9594 ELF_MAKE_MSYMBOL_SPECIAL.
9595 * gdbarch.c, gdbarch.h: Regenerate.
9596 * arch-utils.c (default_make_msymbol_special): New function.
9597 * arch-utils.h (default_make_msymbol_special): Export.
9598 * elfread.c (elf_symtab_read): Compile use of
9599 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9600 multiarched.
9601 * coffread.c (coff_symtab_read): Ditto, for
9602 COFF_MAKE_MSYMBOL_SPECIAL.
9603
9604 2002-02-05 Jim Blandy <jimb@redhat.com>
9605
9606 * solib-svr4.c (svr4_truncate_ptr): New function.
9607 (svr4_relocate_section_addresses): Do the address arithmetic with
9608 the appropriate truncation for target addresses, even when
9609 CORE_ADDR is larger than a target address.
9610
9611 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9614 to (int *).
9615
9616 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9619 code.
9620
9621 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9622
9623 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9624
9625 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9626
9627 * gdbserver/linux-low.c: Remove unused include files.
9628
9629 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9630
9631 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9632 (read_inferior_memory): Use it.
9633 (write_inferior_memory): Likewise.
9634
9635 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9636
9637 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9638 grubbing through sys_errlist.
9639
9640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9643
9644 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9645 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9646
9647 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9648
9649 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9650 (do_sfunc, set_cmd_sfunc): New functions.
9651
9652 * command.h (struct cmd_list_element): Add field func.
9653 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9654 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9655 * cli/cli-decode.h: Ditto.
9656
9657 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9658 (help_all, help_cmd_list): Ditto.
9659 (find_cmd, complete_on_cmdlist): Ditto.
9660 * top.c (execute_command): Ditto.
9661
9662 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9663 function.sfunc.
9664
9665 * infcmd.c (notice_args_read): Fix function signature.
9666
9667 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9668 * cli/cli-decode.c (add_set_cmd): Ditto.
9669 * utils.c (initialize_utils): Ditto.
9670 * maint.c (_initialize_maint_cmds): Ditto.
9671 * infrun.c (_initialize_infrun): Ditto.
9672 * demangle.c (_initialize_demangler): Ditto.
9673 * remote.c (add_packet_config_cmd): Ditto.
9674 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9675 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9676 * proc-api.c (_initialize_proc_api): Ditto.
9677 * kod.c (_initialize_kod): Ditto.
9678 * valprint.c (_initialize_valprint): Ditto.
9679 * top.c (init_main): Ditto.
9680 * infcmd.c (_initialize_infcmd): Ditto.
9681 * corefile.c (_initialize_core): Ditto.
9682 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9683 * arch-utils.c (initialize_current_architecture): Ditto.
9684 (_initialize_gdbarch_utils): Ditto.
9685 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9686
9687 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9688 * wince.c (_initialize_inftarg): Ditto.
9689 * symfile.c (_initialize_symfile): Ditto.
9690 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9691 * language.c (_initialize_language): Ditto.
9692 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9693
9694 2002-02-04 Michael Snyder <msnyder@redhat.com>
9695
9696 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9697
9698 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9699
9700 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9701 Add rules for building the register data files.
9702
9703 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9704
9705 * regformats/regdat.sh: Add braces to the definition of
9706 expedite_regs_${arch}.
9707
9708 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * regformats/regdef.h (struct reg): Add comment describing the
9711 requirements for offset and size fields.
9712
9713 2002-02-04 Andreas Schwab <schwab@suse.de>
9714
9715 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9716 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9717
9718 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9719
9720 * gdbarch.sh (copyright): Update years in generated header.
9721 (SMASH_TEXT_ADDRESS): Add rule.
9722 * gdbarch.h, gdbarch.c: Re-generate.
9723 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9724 * dbxread.c: Likewise.
9725 * dwarfread.c: Likewise.
9726 * elfread.c: Likewise.
9727 * somread.c: Likewise.
9728
9729 * arm-tdep.c (arm_smash_text_address): New function.
9730 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9731
9732 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9733
9734 Add support for hardware watchpoints on win32 native.
9735 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9736 CONTEXT_DEBUG_REGISTERS.
9737 (dr variable): New variable. Static array containing a local copy
9738 of debug registers.
9739 (debug_registers_changed): New variable. Reflects when debug registers
9740 are changed and need to be written to inferior.
9741 (debug_registers_used): New variable. Reflects when any debug register
9742 was set, used when new threads are created.
9743 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9744 i386-nat code.
9745 (thread_rec): Set dr array if id is the thread of current_event .
9746 (child_continue, child_resume): Change the debug registers for all
9747 threads if debug_registers_changed.
9748 (child_add_thread): Change the debug registers if debug_registers_used.
9749 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9750 Link nm.h to new nm-cygwin.h file.
9751 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9752 of hardware registers.
9753
9754 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9755
9756 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9757 Restore behavour broken by 2002-01-20 Andrew Cagney
9758 <ac131313@redhat.com> IEEE_FLOAT removal.
9759
9760 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9761
9762 * c-valprint.c (c_val_print): Pass a proper valaddr to
9763 cp_print_class_method.
9764 * valops.c (search_struct_method): If there is only one method
9765 and args is NULL, return that method.
9766
9767 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9768
9769 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9770 accessing tag_name directly.
9771
9772 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9775 of accessing tag_name directly.
9776
9777 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9778
9779 PR gdb/280
9780 * gdbtypes.c (replace_type): New function.
9781 * gdbtypes.h (replace_type): Add prototype.
9782 * stabsread.c (read_type): Use replace_type.
9783
9784 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9785
9786 * Makefile.in (memattr.o): Add missing dependencies rule.
9787
9788 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9789
9790 * breakpoint.c (break_at_finish_command): Really export.
9791 (break_at_finish_at_depth_command): Ditto.
9792 (tbreak_at_finish_command): Ditto.
9793 * hppa-tdep.c: Include completer.h.
9794 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9795 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9796
9797 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9798
9799 * utils.c (do_write): New function.
9800 (error_stream): Rewrite combining the code from error_begin and
9801 verror.
9802 (verror): Rewrite using error_stream.
9803 (error_begin): Delete function.
9804
9805 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9806
9807 * utils.c (error_begin): Make static.
9808 * defs.h (error_begin): Delete declaration.
9809
9810 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9811 (decode_line_1): Use cplusplus_error instead of error_begin,
9812 cplusplus_hint and return_to_top_level.
9813 * coffread.c (coff_symfile_read): Use error instead of error_begin
9814 and return_to_top_level.
9815 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9816
9817 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9818
9819 * language.h (type_error, range_error): Make string parameter
9820 constant.
9821 * language.c (warning_pre_print): Delete extern declaration.
9822 * dwarfread.c (warning_pre_print): Ditto.
9823 * language.c (type_error, range_error): Rewrite to use verror and
9824 vwarning instead of warning_begin.
9825
9826 2002-02-01 Michael Snyder <msnyder@redhat.com>
9827
9828 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9829 (set_ignore_count): Move misplaced comment back where it belongs.
9830
9831 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9832
9833 * command.h (NO_FUNCTION): Delete macro.
9834 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9835 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9836 * tracepoint.c (_initialize_tracepoint): Ditto.
9837 * cli/cli-decode.c (add_set_cmd): Ditto.
9838 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9839
9840 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9841
9842 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9843 Update ``this'' pointer when calling virtual functions.
9844
9845 2002-02-01 Michael Snyder <msnyder@redhat.com>
9846
9847 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9848 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9849
9850 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9851
9852 * regformats/reg-arm.dat: New file.
9853 * regformats/reg-i386.dat: New file.
9854 * regformats/reg-ia64.dat: New file.
9855 * regformats/reg-m68k.dat: New file.
9856 * regformats/reg-mips.dat: New file.
9857 * regformats/reg-ppc.dat: New file.
9858 * regformats/reg-sh.dat: New file.
9859 * regformats/regdef.h: New file.
9860 * regformats/regdat.sh: New file.
9861
9862 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9863
9864 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9865 (arm_frame_args_address, arm_frame_locals_address): New functions.
9866 (arm_frame_num_args): New function.
9867 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9868 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9869 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9870
9871 2002-01-31 Michael Snyder <msnyder@redhat.com>
9872
9873 * breakpoint.c (break_at_finish_command): Export.
9874 (break_at_finish_at_depth_command): Export.
9875 (tbreak_at_finish_command): Export.
9876 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9877 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9878 "tbreak" commands, which are HPPA specific.
9879
9880 * printcmd.c (disassemble_command): Remove an ancient
9881 artifact of an old merge.
9882
9883 * symfile.h (enum overlay_debugging_state):
9884 Define enum constant values for overlay mode.
9885 * symfile.c (overlay_debugging): Use enums instead of literals.
9886 (overlay_is_mapped, overlay_auto_command,
9887 overlay_manual_command): Ditto.
9888
9889 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9890 breakpoint_here_p, breakpoint_inserted_here_p,
9891 breakpoint_thread_match, bpstat_stop_status,
9892 describe_other_breakpoints, check_duplicates, clear_command):
9893 Coding standard fixes.
9894
9895 * target.c (target_xfer_memory): Add spaces, coding standard.
9896 (do_xfer_memory): Add missing line to trust-readonly
9897 code: check bfd SEC_READONLY flag for section.
9898
9899 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9900
9901 * PROBLEMS: Fix typo, 5.1->5.1.1.
9902
9903 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9904
9905 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9906 data symbols, since we search based on textlow and texthigh.
9907 (find_pc_sect_symtab): Likewise.
9908
9909 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9910
9911 * defs.h (vwarning): Declare.
9912 * utils.c (vwarning): New function.
9913 (warning): Call vwarning.
9914 (warning_begin): Delete function.
9915
9916 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9917 the warning message.
9918 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9919 warning_begin.
9920
9921 2002-01-30 Michael Snyder <msnyder@redhat.com>
9922
9923 * NEWS: Mention "set trust-readonly-sections" command.
9924 Mention generate-core-file command.
9925
9926 2002-01-15 Michael Snyder <msnyder@redhat.com>
9927
9928 * target.c: New command, "set trust-readonly-sections on".
9929 (do_xfer_memory): Honor the suggestion to trust readonly sections
9930 by reading them from the object file instead of from the target.
9931 (initialize_targets): Register command "set trust-readonly-sections".
9932
9933 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9934
9935 * parse.c (target_map_name_to_register): Simplify, search regs and
9936 pseudo-regs using a single loop.
9937
9938 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9939
9940 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9941
9942 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9943
9944 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9945 * config/i386/i386v42mp.mh: Add i387-nat.o .
9946 * i386v4-nat.c: Include i387-nat.h.
9947 (supply_fpregset): Use i387_supply_fsave.
9948 (fill_fpregset): Use i387_fill_fsave.
9949
9950 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9951
9952 * arm-tdep.c (arm_call_dummy_words): Define.
9953 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9954 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9955 (CALL_DUMMY_WORDS): Define.
9956 (arm_call_dummy_words): Declare.
9957 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9958 (arm_linux_call_dummy_words): Declare.
9959
9960 2002-01-30 Andreas Schwab <schwab@suse.de>
9961
9962 * m68klinux-nat.c: Fix last change to use regcache_collect
9963 instead of referencing registers[] directly.
9964
9965 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9966
9967 * parse.c (target_map_name_to_register): Delete code wrapped in
9968 #ifdef REGISTER_NAME_ALIAS_HOOK.
9969
9970 2002-01-28 Michael Snyder <msnyder@redhat.com>
9971
9972 * regcache.c (legacy_read_register_gen): Need to be able to
9973 read pseudo-register as well as real register.
9974 (legacy_write_register_gen): Ditto.
9975
9976 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9977
9978 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9979 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9980 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9981 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9982 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9983 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9984 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9985 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9986 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9987 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9988 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9989 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9990 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9991 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9992 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9993 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9994 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9995 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9996 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9997 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9998
9999 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10000
10001 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10002 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10003 (initialize_current_architecture): Update target_byte_order using
10004 information from BFD.
10005 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10006 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10007
10008 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10009
10010 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10011 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10012
10013 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10014 #ifdef INVALID_FLOAT.
10015 * infcmd.c (do_registers_info): Ditto.
10016 * values.c (unpack_double): Ditto. Add comment.
10017
10018 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10019 already commented out.
10020
10021 2002-01-26 Andreas Schwab <schwab@suse.de>
10022
10023 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10024 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10025 registers and add support for PTRACE_GETREGS.
10026
10027 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10028
10029 GDB 5.1.1 released from 5.1 branch.
10030 * NEWS: Add 5.1.1 news.
10031 * README: Sync with 5.1 branch.
10032
10033 2002-01-23 Fred Fish <fnf@redhat.com>
10034
10035 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10036 stabstring on initial malloc. Reallocing will copy it for us,
10037 if necessary.
10038
10039 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10040
10041 * Makefile.in (hpread_h): Delete.
10042 (HFILES_NO_SRCDIR): Remove hpread.h.
10043 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10044 (hpread.o): Update dependencies.
10045 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10046
10047 * hp-psymtab-read.c: Remove file.
10048 * hp-symtab-read.c: Remove file.
10049 * hpread.h: Remove file.
10050
10051 * hpread.c: Merge all contents of hp-psymtab-read.c,
10052 hp-symtab-read.c and hpread.h into this file, as it was prior to
10053 January 1999.
10054
10055 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10056 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10057 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10058 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10059
10060 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10061
10062 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10063 fill_gregset): Call gdbarch_tdep() just once, assign result to
10064 variable and use that, instead of calling the function several
10065 times.
10066
10067 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10068
10069 * configure.host: Accept sparcv9 as alias for sparc64.
10070 * configure.tgt: Likewise.
10071
10072 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10073
10074 * solib-aix5.c (build_so_list_from_mapfile)
10075 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10076 arguments is not reversed.
10077 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10078 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10079
10080 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10081
10082 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10083 modified version of obsolete sh_fetch_pseudo_register.
10084 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10085 (sh4_register_read): New function.
10086 (sh_pseudo_register_write): New function. Renamed and modified
10087 version of obsolete sh_store_pseudo_register.
10088 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10089 (sh4_register_write): New function.
10090 (sh_gdbarch_init): Remove setting of gdbarch function
10091 fetch_pseudo_register and store_pseudo_register. Remove setting of
10092 register_convert_to_raw, register_convert_to_virtual,
10093 register_convertible.
10094 (sh_sh4_register_convertible): Delete. No longer needed. All is
10095 taken care by architecture specific functions
10096 register_read/register_write.
10097 (sh_sh4_register_convert_to_virtual): Make static.
10098 (sh_sh4_register_convert_to_raw): Ditto.
10099
10100 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10101
10102 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10103 (floatformat_is_nan, floatformat_mantissa): Ditto.
10104
10105 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10106 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10107 builtin_type_ieee_double_little,
10108 builtin_type_ieee_double_littlebyte_bigword,
10109 builtin_type_m68881_ext, builtin_type_i960_ext,
10110 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10111 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10112 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10113 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10114
10115 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10116
10117 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10118 parameter. Set frameless flag if it exists and depended of
10119 whether the scanned function is frameless or not.
10120 (xstormy16_skip_prologue): If function is frameless, return
10121 result of xstormy16_scan_prologue().
10122 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10123 call.
10124
10125 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10126
10127 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10128 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10129 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10130 sh_sh4_register_byte, sh_sh4_register_raw_size,
10131 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10132 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10133 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10134 sh_store_pseudo_register, sh_do_pseudo_register): Call
10135 gdbarch_tdep() just once, assign result to variable and use that,
10136 instead of calling the function several times.
10137
10138 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10139
10140 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10141 macros instead of LAST_FPU_CTRL_REGNUM.
10142 (store_register): Likewise.
10143
10144 2002-01-21 Jim Blandy <jimb@redhat.com>
10145
10146 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10147 is up-to-date before running the program, not just when a program
10148 exits.
10149
10150 2002-01-21 Fred Fish <fnf@redhat.com>
10151
10152 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10153 when we have found all instructions we are looking for.
10154
10155 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10156
10157 * arm-tdep.c (arm_register_name): New function.
10158 (arm_registers_names): Make static.
10159 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10160 (arm_register_name): Declare.
10161 (REGISTER_NAME): Use it.
10162
10163 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10164 Kevin Buettner <kevinb@redhat.com>
10165
10166 Convert arm targets to new FRAME interface.
10167 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10168 (arm_frame_find_save_regs): Delete.
10169 (arm_frame_init_saved_regs): New.
10170 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10171 Allocate extra_info as required. Convert all uses of fsr.regs
10172 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10173 to use extra_info.
10174 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10175 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10176 (check_prologue_cache, save_prologue_cache): Likewise.
10177 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10178 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10179 (FRAME_FIND_SAVED_REGS): Delete.
10180 (arm_frame_find_saved_regs): Delete prototype.
10181 (arm_frame_init_saved_regs): New prototype.
10182 (FRAME_INIT_SAVED_REGS): Define.
10183
10184 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10185
10186 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10187
10188 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10189
10190 From Jeff Law <law@redhat.com>:
10191 * infttrace.c: Include <sys/pstat.h>.
10192 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10193 exec file if the ttrace equivalent fails.
10194
10195 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10196
10197 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10198 (closeLogFile): Ditto.
10199
10200 2002-01-20 Michael Chastain <mec@shout.net>
10201
10202 * top.c (print_gdb_version): Bump copyright year to 2002.
10203
10204 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10205
10206 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10207 Zannoni and Eli Zaretskii.
10208
10209 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10210
10211 * buildsym.c: Update copyright years.
10212 * c-typeprint.c: Likewise.
10213 * dwarf2read.c: Likewise.
10214 * f-typeprint.c: Likewise.
10215 * gdbtypes.c: Likewise.
10216 * gdbtypes.h: Likewise.
10217 * hp-symtab-read.c: Likewise.
10218 * hpread.c: Likewise.
10219 * mdebugread.c: Likewise.
10220 * p-typeprint.c: Likewise.
10221
10222 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10223
10224 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10225 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10226 byte-order selectable.
10227 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10228 * arch-utils.c: Ditto.
10229 (set_endian): Ditto.
10230 (set_endian_from_file): Ditto.
10231 * gdbserver/low-sim.c (create_inferior): Ditto.
10232 * gdbarch.sh: Ditto.
10233 * gdbarch.h: Re-generate.
10234 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10235 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10236 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10237 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10238 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10239 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10240 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10241 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10242 macro definition.
10243 * config/mips/tm-wince.h: Remove #undef of macro
10244 TARGET_BYTE_ORDER_SELECTABLE.
10245 * config/sh/tm-wince.h: Ditto.
10246
10247 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10248
10249 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10250 member function fields. Add accessor macro
10251 TYPE_FN_FIELD_ARTIFICIAL.
10252 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10253 * c-typeprint.c (c_type_print_base): Skip artificial member
10254 functions.
10255
10256 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10257
10258 * f-typeprint.c: Delete unused function f_type_print_args.
10259 * p-typeprint.c: Delete unused function pascal_type_print_args.
10260
10261 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10262
10263 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10264 comment. Add ``artificial'' to ``union field_location''.
10265
10266 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10267
10268 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10269 * mdebugread.c (parse_symbol): Likewise.
10270 * stabsread.c (define_symbol): Likewise.
10271 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10272 initializing TYPE_FIELD_BITPOS to n (obsolete).
10273 (hpread_doc_function_type): Likewise.
10274 * hpread.c (hpread_function_type): Likewise.
10275
10276 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10277
10278 * configure.in (host_makefile_frag): Only require a host makefile
10279 fragment when a native build.
10280 * configure: Re-generate.
10281
10282 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10283
10284 * doublest.h (floatformat_from_type): Declare.
10285 * doublest.c (floatformat_from_type): New function.
10286 (convert_typed_floating): Use.
10287
10288 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10289 call to function floatformat_from_type.
10290
10291 * gdbarch.sh (IEEE_FLOAT): Delete.
10292 * gdbarch.h, gdbarch.c: Re-generate.
10293 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10294 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10295 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10296 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10297 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10298 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10299 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10300 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10301 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10302 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10303 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10304 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10305
10306 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10307 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10308 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10309 * sh-tdep.c (sh_gdbarch_init): Ditto.
10310 * mips-tdep.c (mips_gdbarch_init): Ditto.
10311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10312 * cris-tdep.c (cris_gdbarch_init): Ditto.
10313
10314 2002-01-20 Jiri Smid <smid@suse.cz>
10315
10316 * configure.host, configure.tgt: Support x86-64.
10317 * NEWS: Note new target x86-64.
10318
10319 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10320 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10321 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10322 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10323 x86-64-linux-nat.o): Fix dependencies.
10324
10325 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10326
10327 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10328 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10329 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10330 * config/sparc/xm-sun4os4.h: Delete file.
10331 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10332
10333 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10334
10335 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10336 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10337 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10338 * config/i386/i386lynx.mh (XM_FILE): Delete.
10339 * config/rs6000/xm-rs6000ly.h: Delete file.
10340 * config/sparc/xm-sparclynx.h: Delete file.
10341 * config/m68k/xm-m68klynx.h: Delete file.
10342 * config/i386/xm-i386lynx.h: Delete file.
10343 * config/xm-lynx.h: Delete file.
10344 * config/djgpp/fnchange.lst: Update.
10345
10346 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10347
10348 * alpha-tdep.c (alpha_register_byte): New function.
10349 (alpha_register_raw_size): Ditto.
10350 (alpha_register_virtual_size): Ditto.
10351 (alpha_skip_prologue_internal): Renamed from
10352 alpha_skip_prologue.
10353 (alpha_skip_prologue): New version that calls
10354 alpha_skip_prologue_internal.
10355 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10356 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10357 second argument from alpha_skip_prologue.
10358 (REGISTER_BYTE): Use alpha_register_byte.
10359 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10360 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10361 (FRAMELESS_FUNCTION_INVOCATION): Use
10362 generic_frameless_function_invocation_not.
10363 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10364 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10365
10366 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10367
10368 * config/mips/xm-news-mips.h: Delete file.
10369 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10370
10371 * config/m88k/xm-m88k.h: Delete file.
10372 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10373 * config/m88k/xm-delta88v4.h: Ditto.
10374 * config/m88k/xm-delta88.h: Ditto.
10375
10376 * config/alpha/xm-fbsd.h: Delete file.
10377 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10378
10379 * config/sparc/xm-sparc.h: Delete file.
10380 * Makefile.in (xm-sun4os4.h): Delete dependency.
10381 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10382 * config/sparc/xm-sun4os4.h: Ditto.
10383 * config/sparc/xm-linux.h: Ditto.
10384
10385 * config/i386/xm-windows.h: Delete file.
10386
10387 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10388
10389 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10390 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10391
10392 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10393
10394 * alpha-tdep.c (alpha_call_dummy_words): New.
10395 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10396 (CALL_DUMMY_P): Define.
10397 (CALL_DUMMY_WORDS): Define.
10398 (SIZEOF_CALL_DUMMY_WORDS): Define.
10399
10400 2002-01-19 Per Bothner <per@bothner.com>
10401
10402 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10403 isn't NULL, which can happen with some gcj-3.x-produced code.
10404
10405 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10406
10407 * alpha-tdep.c (alpha_register_virtual_type): New function.
10408 (alpha_init_frame_pc_first): Ditto.
10409 (alpha_fix_call_dummy): Ditto.
10410 (alpha_store_struct_return): Ditto.
10411 (alpha_extract_struct_value_address): Ditto.
10412 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10413 alpha_register_virtual_type.
10414 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10415 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10416 alpha_extract_struct_value_address.
10417 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10418 (INIT_FRAME_PC): Use init_frame_pc_noop.
10419 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10420
10421 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10422
10423 * i386gnu-nat.c: Include "i386-tdep.h".
10424 (fetch_fpregs): Simplify code dealing with uninitialized floating
10425 point states such that it doesn't require FP7_REGNUM.
10426
10427 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10428
10429 * alpha-tdep.c (frame_extra_info): New.
10430 (alpha_find_saved_regs): Make static. Use
10431 frame->extra_info.
10432 (alpha_frame_init_saved_regs): New function.
10433 (alpha_frame_saved_pc): Use frame->extra_info.
10434 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10435 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10436 (init_extra_frame_info): Rename to...
10437 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10438 (alpha_print_extra_frame_info): New function.
10439 (alpha_frame_locals_address): Ditto.
10440 (alpha_frame_args_address): Ditto.
10441 (alpha_pop_frame): Use frame->extra_info.
10442 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10443 alpha_frame_args_address.
10444 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10445 (alpha_find_saved_regs): Remove prototype.
10446 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10447 (EXTRA_FRAME_INFO): Remove.
10448 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10449 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10450
10451 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10452
10453 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10454 (alpha_cannot_fetch_register): Ditto.
10455 (alpha_cannot_store_register): Ditto.
10456 (alpha_register_convertible): Ditto.
10457 (alpha_use_struct_convention): Ditto.
10458 * config/alpha/tm-alpha.h: Update copyright years.
10459 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10460 (INNER_THAN): Use core_addr_lessthan.
10461 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10462 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10463 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10464 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10465 (FRAME_CHAIN): Remove unnecessary cast.
10466
10467 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10468
10469 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10470 obsolete.
10471
10472 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10473
10474 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10475 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10476 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10477 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10478 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10479 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10480 * x86-64-linux-nat.c: Ditto.
10481
10482 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10483
10484 * alpha-tdep.c (alpha_register_name): New function.
10485 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10486 (REGISTER_NAME): Define.
10487
10488 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10489
10490 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10491
10492 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10493
10494 * alpha-tdep.c: Update copyright years.
10495 (alpha_next_pc): New function.
10496 (alpha_software_single_step): Ditto.
10497 * config/alpha/tm-alpha.h: Add prototype for
10498 alpha_software_single_step.
10499
10500 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10501
10502 * alphabsd-nat.c: Update copyright years.
10503 (fill_gregset): Use regcache_collect.
10504 (fill_fpregset): Likewise.
10505 (fetch_inferior_registers): Only fetch integer registers
10506 if requested to do so.
10507 (store_inferior_registers): Only store integer registers
10508 if requested to do so.
10509
10510 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10511
10512 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10513 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10514 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10515 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10516 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10517 * config/arm/linux.mh (XDEPFILES): Delete.
10518 * config/arm/nbsd.mh (XDEPFILES): Delete.
10519 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10520 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10521 * config/i386/i386m3.mh (XDEPFILES): Delete.
10522 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10523 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10524 * config/i386/fbsd.mh (XDEPFILES): Delete.
10525 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10526 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10527 * config/i386/i386v4.mh (XDEPFILES): Delete.
10528 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10529 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10530 * config/i386/i386aix.mh (XDEPFILES): Delete.
10531 * config/i386/go32.mh (XDEPFILES): Delete.
10532 * config/i386/cygwin.mh (XDEPFILES): Delete.
10533 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10534 * config/i386/i386mach.mh (XDEPFILES): Delete.
10535 * config/i386/i386v32.mh (XDEPFILES): Delete.
10536 * config/i386/linux.mh (XDEPFILES): Delete.
10537 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10538 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10539 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10540 * config/i386/i386sco.mh (XDEPFILES): Delete.
10541 * config/i386/i386v.mh (XDEPFILES): Delete.
10542 * config/i386/nbsd.mh (XDEPFILES): Delete.
10543 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10544 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10545 * config/i386/symmetry.mh (XDEPFILES): Delete.
10546 * config/i386/obsd.mh (XDEPFILES): Delete.
10547 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10548 * config/ia64/linux.mh (XDEPFILES): Delete.
10549 * config/ia64/aix.mh (XDEPFILES): Delete.
10550 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10551 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10552 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10553 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10554 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10555 * config/m68k/linux.mh (XDEPFILES): Delete.
10556 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10557 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10558 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10559 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10560 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10561 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10562 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10563 * config/m88k/delta88.mh (XDEPFILES): Delete.
10564 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10565 * config/m88k/m88k.mh (XDEPFILES): Delete.
10566 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10567 * config/mips/linux.mh (XDEPFILES): Delete.
10568 * config/mips/irix6.mh (XDEPFILES): Delete.
10569 * config/mips/irix5.mh (XDEPFILES): Delete.
10570 * config/mips/irix4.mh (XDEPFILES): Delete.
10571 * config/mips/irix3.mh (XDEPFILES): Delete.
10572 * config/mips/decstation.mh (XDEPFILES): Delete.
10573 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10574 (NATDEPFILES): Move core-aout.o to here.
10575 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10576 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10577 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10578 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10579 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10580 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10581 * config/pa/hpux11.mh (XDEPFILES): Delete.
10582 * config/powerpc/aix.mh (XDEPFILES): Delete.
10583 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10584 * config/powerpc/linux.mh (XDEPFILES): Delete.
10585 * config/romp/rtbsd.mh: Rename XDEPFILES.
10586 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10587 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10588 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10589 * config/s390/s390.mh (XDEPFILES): Delete.
10590 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10591 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10592 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10593 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10594 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10595 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10596 * config/sparc/linux.mh (XDEPFILES): Delete.
10597 * config/vax/vaxult.mh (XDEPFILES): Delete.
10598 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10599 * Makefile.in (DEPFILES): Remove XDEPFILES.
10600
10601 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10602
10603 * utils.c (internal_verror): Fix comments, default is yes not no.
10604 Update queries to match. Default to quit and dump core.
10605
10606 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10607
10608 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10609 copyright.
10610 * defs.h, event-top.c, gdbcmd.h: Ditto.
10611 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10612 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10613 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10614 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10615 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10616 * mi/mi-main.c:Ditto.
10617
10618 * stack.c, symfile.c: Update copyright.
10619
10620 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10621
10622 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10623 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10624 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10625 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10626
10627 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10628
10629 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10630 * gdbserver/low-lynx.c (myattach): Likewise.
10631 * gdbserver/low-nbsd.c (myattach): Likewise.
10632 * gdbserver/low-sim.c (myattach): Likewise.
10633 * gdbserver/low-sparc.c (myattach): Likewise.
10634 * gdbserver/low-sun3.c (myattach): Likewise.
10635
10636 * gdbserver/low-linux.c (myattach): New function.
10637
10638 * gdbserver/server.c (attach_inferior): New function.
10639 (main): Handle "--attach".
10640
10641 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10642
10643 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10644 maintainer.
10645
10646 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * c-typeprint.c (is_type_conversion_operator): Add additional
10649 check for non-conversion operators.
10650
10651 2002-01-15 Michael Snyder <msnyder@redhat.com>
10652
10653 * linux-proc.c: Add "info proc" command, a la procfs.c.
10654 (read_mapping): New function, abstract and re-use code.
10655 (linux_find_memory_regions): Use new func read_mapping.
10656 (linux_info_proc_cmd): New function, implement "info proc".
10657 (_initialize_linux_proc): Add new command "info proc".
10658
10659 2002-01-15 Michael Snyder <msnyder@redhat.com>
10660
10661 * symfile.c (generic_load): Use bfd_map_over_sections method
10662 instead of manipulating bfd structure members directly.
10663 (add_section_size_callback): New function, bfd sections callback
10664 used by generic_load.
10665 (load_sections_callback): New function, bfd sections callback
10666 used by generic_load.
10667
10668 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10669
10670 [Based on work by Jim Blandy]
10671 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10672 (builtin_type_vec128): Export.
10673 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10674 types.
10675 (builtin_type_vec128): New builtin type for 128 bit vector
10676 registers.
10677 (build_gdbtypes): Initialize builtin_type_v16qi and
10678 builtin_type_v8hi. Create the vec128 register builtin type
10679 structure.
10680 (build_builtin_type_vec128): New function.
10681 (_initialize_gdbtypes): Register builtin_type_v16qi and
10682 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10683 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10684 AltiVec register to new builtin type.
10685
10686 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10687
10688 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10689 to make_cv_type.
10690
10691 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10692
10693 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10694 CLEAN_UP_REGISTER_VALUE.
10695 * regcache.c (supply_register): Update only call.
10696
10697 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10698
10699 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10700 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10701 a29k-*-vxworks* targets as obsolete.
10702
10703 2002-01-14 Michael Snyder <msnyder@redhat.com>
10704
10705 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10706 until we can resolve portability issues.
10707 * gregset.h: Remove references to fpxregs.
10708 * gcore.c (gcore_command): Initialize note_sec to NULL.
10709
10710 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10711
10712 * signals.c (target_signal_to_name): Rewrite. Only use
10713 signals[].name when in bounds and non-NULL.
10714
10715 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10716
10717 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10718 * signals.c (target_signal_to_name): Verify that SIG is within the
10719 bounds of the signals array.
10720
10721 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10722
10723 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10724
10725 2002-01-13 Keith Seitz <keiths@redhat.com>
10726
10727 * stack.c (print_frame_info_base): Print the frame's pc
10728 only if when print_frame_info_listing_hook is not defined.
10729
10730 2002-01-13 Keith Seitz <keiths@redhat.com>
10731
10732 * varobj.c (varobj_set_value): Make sure that there were no
10733 errors evaluating the object before attempting to set its
10734 value.
10735 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10736 so this offset adjustment is no longer necessary.
10737 (create_child): Don't set the error flag if the child is
10738 a CPLUS_FAKE_CHILD.
10739 (value_of_child): If value_fetch_lazy fails, return NULL
10740 so that callers will be notified that an error occurred.
10741 (c_value_of_variable): Delay check of variable's validity
10742 until later. We actually want all structs and unions to have
10743 the value "{...}".
10744 Do not return "???" for variables which could not be evaluated.
10745 This error condition must be returned to the caller so that it
10746 can get the error condition from gdb.
10747 (cplus_name_of_child): Adjust index for vptr before figuring
10748 out the name of the child.
10749 (cplus_value_of_child): If a child's (real) parent is not valid,
10750 don't even bother trying to give a value for it. Just return
10751 an error. Change all instances in this function.
10752 (cplus_type_of_child): If our parent is one of the "fake"
10753 parents, we need to get at the type of the real parent, and
10754 derive the child's true type using this information.
10755
10756 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10757
10758 From 2002-01-09 John Marshall <johnm@falch.net>:
10759 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10760 sources.redhat.com, and tweak some related URLs which had
10761 suffered from linkrot.
10762
10763 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10764
10765 From Jeff law:
10766 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10767 structures passed in registers.
10768
10769 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10770
10771 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10772 white space which prevented compilation. Reported by DSK
10773 <dsk@student.unsw.edu.au>.
10774
10775 2002-01-11 Michael Snyder <msnyder@redhat.com>
10776
10777 * symfile.c (build_section_addr_info_from_section_tab):
10778 Use bfd access method instead of manipulating bfd directly.
10779 (syms_from_objfile): Ditto.
10780 (simple_overlay_update_1): Ditto.
10781 (simple_overlay_update): Ditto.
10782 (generic_load): Ditto.
10783 (overlay_unmapped_address): FIXME comment, bfd access methods.
10784 (sections_overlap): FIXME comment, bfd access methods.
10785 (pc_in_mapped_range): FIXME comment, bfd access methods.
10786 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10787 (section_is_mapped): FIXME comment, bfd access methods.
10788 (section_is_overlay): FIXME comment, bfd access methods.
10789
10790 * symfile.c (generic_load): Whitespace and long line cleanups.
10791 Remove duplicate variable, change several local variables to
10792 more appropriate data types.
10793 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10794
10795 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10796
10797 From Peter Schauer:
10798 * language.c (longest_local_hex_string_custom): Use phex_nz to
10799 convert NUM to a hex string.
10800
10801 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10802
10803 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10804 the function.
10805 Update Copyright year.
10806
10807 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10808
10809 * language.c (longest_raw_hex_string): Delete unused function.
10810
10811 2002-01-11 Petr Sorfa <petrs@caldera.com>
10812
10813 * MAINTAINERS (write-after-approval): Add myself.
10814 * dwarf2read.c (read_tag_string_type): Handling of
10815 DW_AT_byte_size.
10816 (read_tag_string_type): FORTRAN fix to prevent propagation of
10817 first string size.
10818 (set_cu_language): Handling of DW_LANG_Fortran95
10819
10820 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10821
10822 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10823 GETPID(inferior_ptid).
10824 (store_inferior_registers): Likewise.
10825
10826 2002-01-10 Jason Merrill <jason@redhat.com>
10827
10828 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10829 Fix DW_OP_minus.
10830
10831 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10832
10833 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10834 and bfd/elf32-sh-nbsd.c.
10835
10836 2002-01-10 Michael Snyder <msnyder@redhat.com>
10837
10838 * NEWS: Mention --pid and corefile/proc-id behavior change.
10839
10840 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10841 * gcore.c: Include cli/cli-decode.h instead of command.h.
10842
10843 * main.c (captured_main): Add new command line option "--pid".
10844 If the second command line argument (following the symbol-file)
10845 begins with a digit, try to attach to it before trying to open
10846 it as a corefile.
10847 (print_gdb_help): Document the "--pid" argument.
10848
10849 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10850
10851 * completer.c (command_completer): New function.
10852
10853 * completer.h <command_completer>: Add prototype.
10854
10855 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10856 completer for the "help" command.
10857
10858 2002-01-09 Jason Merrill <jason@redhat.com>
10859
10860 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10861
10862 2002-01-09 Michael Snyder <msnyder@redhat.com>
10863
10864 * i386-linux-nat.c (fill_fpxregset): Make global.
10865 (store_fpxregset): Ditto.
10866
10867 * gregset.h (gdb_fpxregset_t): Define.
10868 (supply_fpxregset): Prototype.
10869 (fill_fpxregset): Prototype.
10870
10871 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10872
10873 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10874
10875 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10876 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10877 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10878
10879 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10880
10881 * MAINTAINERS: Update target maintainer rules so that any
10882 Maintainer can approve a tested patch for a maintenance-only
10883 target.
10884
10885 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10886
10887 * MAINTAINERS (write-after-approval): Add myself.
10888
10889 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10890 IN_SIGTRAMP.
10891
10892 2002-01-08 Michael Snyder <msnyder@redhat.com>
10893
10894 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10895 real name of the executable, rather than the /proc name.
10896
10897 2002-01-03 Michael Snyder <msnyder@redhat.com>
10898
10899 Implement a "generate-core-file" command in gdb, save target state.
10900 * gcore.c: New file. Implement new command 'generate-core-file'.
10901 Save a corefile image of the current state of the inferior.
10902 * linux-proc.c: Add linux-specific code for saving corefiles.
10903 * target.h (struct target_ops): Add new target vectors for saving
10904 corefiles; to_find_memory_regions and to_make_corefile_notes.
10905 (target_find_memory_regions): New macro.
10906 (target_make_corefile_notes): New macro.
10907 * target.c (update_current_target): Inherit new target methods.
10908 (dummy_find_memory_regions): New place-holder method.
10909 (dummy_make_corefile_notes): New place-holder method.
10910 (init_dummy_target): Initialize new dummy target vectors.
10911 * exec.c (exec_set_find_memory_regions): New function.
10912 Allow the exec_ops vector for memory regions to be taken over.
10913 (exec_make_note_section): New function, target vector method.
10914 * defs.h (exec_set_find_memory_regions): Export prototype.
10915 * procfs.c (proc_find_memory_regions): New function, corefile method.
10916 (procfs_make_note_section): New function, corefile method.
10917 (init_procfs_ops): Set new target vector pointers.
10918 (find_memory_regions_callback): New function.
10919 (procfs_do_thread_registers): New function.
10920 (procfs_corefile_thread_callback): New function.
10921 * sol-thread.c (sol_find_memory_regions): New function.
10922 (sol_make_note_section): New function.
10923 (init_sol_thread_ops): Initialize new target vectors.
10924 * inftarg.c (inftarg_set_find_memory_regions): New function.
10925 Allow to_find_memory_regions vector to be taken over.
10926 (inftarg_set_make_corefile_notes): New function.
10927 Allow to_make_corefile_notes vector to be taken over.
10928 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10929 interface layer if not target_has_execution (may be a corefile).
10930 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10931 * config/sparc/sun4sol2.mh: Ditto.
10932 * config/alpha/alpha-linux.mh: Ditto.
10933 * config/arm/linux.mh: Ditto.
10934 * config/i386/x86-64linux.mh: Ditto.
10935 * config/ia64/linux.mh: Ditto.
10936 * config/m68k/linux.mh: Ditto.
10937 * config/mips/linux.mh: Ditto.
10938 * config/powerpc/linux.mh: Ditto.
10939 * config/sparc/linux.mh: Ditto.
10940
10941 2002-01-07 Michael Snyder <msnyder@redhat.com>
10942
10943 * arm-linux-nat.c: Remove references to regcache.c internal data
10944 (registers[] and register_valid[]).
10945
10946 2002-01-07 Michael Snyder <msnyder@redhat.com>
10947
10948 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10949 so that attaching to a pid will automatically read the process's
10950 symbol file and shlibs.
10951 * Makefile.in: Add rule for linux-proc.o.
10952 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10953 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10954 * config/arm/linux.mh: Ditto.
10955 * config/i386/linux.mh: Ditto.
10956 * config/i386/x86-64linux.mh: Ditto.
10957 * config/ia64/linux.mh: Ditto.
10958 * config/m68k/linux.mh: Ditto.
10959 * config/mips/linux.mh: Ditto.
10960 * config/powerpc/linux.mh: Ditto.
10961 * config/sparc/linux.mh: Ditto.
10962
10963 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10964
10965 * win32-nat.c: Add i386-tdep.h dependency.
10966
10967 2002-01-07 Michael Snyder <msnyder@redhat.com>
10968
10969 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10970 instead of bfd_get_arch_size. Don't bail out just because
10971 there's no exec_bfd.
10972
10973 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10974 * p-valprint.c (pascal_object_print_value): Ditto.
10975 * somread.c (som_symtab_read): Ditto.
10976 * symfile.c (simple_free_overlay_region_table): Ditto.
10977 * valops.c (value_assign): Ditto.
10978
10979 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10980 use tilde_expand and strerror for opening save-tracepoints file.
10981
10982 * thread-db.c (thread_db_new_objfile): Indendation fix.
10983
10984 * infptrace.c (GDB_MAX_ALLOCA): New define.
10985 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10986 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10987 can be overridden with whatever value is appropriate to the host).
10988 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10989 alloca to allocate potentially large buffer.
10990 * rs6000-nat.c (child_xfer_memory): Ditto.
10991 * symm-nat.c (child_xfer_memory): Ditto.
10992 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10993
10994 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10995
10996 From Nick Clifton <nickc@redhat.com>
10997 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10998
10999 2002-01-07 Michael Snyder <msnyder@redhat.com>
11000
11001 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11002 Don't use exec_bfd if it's NULL.
11003
11004 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11005
11006 * valops.c (value_arg_coerce): Fix formatting.
11007
11008 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11009
11010 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11011 * gnu-nat.c: Ditto.
11012
11013 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11014
11015 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11016 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11017 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11018 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11019 z8k-coff have not been multi-arched. Update z8k-coff build
11020 status.
11021
11022 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11023
11024 * MAINTAINERS: Mark a29k target as obsolete.
11025 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11026 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11027 comments.
11028 * NEWS: Note that a29k targets are obsolete.
11029 * a29k-tdep.c: Mark as obsolete.
11030 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11031 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11032 a29k-*-vxworks* targets as obsolete.
11033 * remote-adapt.c: Obsolete.
11034 * remote-eb.c: Obsolete.
11035 * remote-mm.c: Obsolete.
11036 * remote-udi.c: Obsolete.
11037 * config/a29k/a29k-udi.mt: Obsolete.
11038 * config/a29k/a29k.mt: Obsolete.
11039 * config/a29k/tm-a29k.h: Obsolete.
11040 * config/a29k/tm-vx29k.h: Obsolete.
11041 * config/a29k/vx29k.mt: Obsolete.
11042
11043 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11044
11045 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11046 with BFD_ENDIAN_BIG.
11047
11048 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11049
11050 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11051 * configure, config.in: Re-generate.
11052 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11053 * defs.h: Do not include <endian.h>.
11054
11055 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11056
11057 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11058 * config.in: Regenerate.
11059 * configure.in: Update copyright years.
11060 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11061 * configure: Regenerate.
11062 * i386bsd-nat.c: Update copyright years.
11063 (fill_gregset): Use regcache_collect.
11064 (fetch_inferior_registers): Only fetch integer registers
11065 if requested to do so. Add support for XMM registers
11066 using PT_GETXMMREGS.
11067 (store_inferior_registers): Only store integer registers
11068 if requested to do so. Add support for XMM registers
11069 using PT_SETXMMREGS.
11070 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11071 (store_inferior_registers): Remove.
11072 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11073 (fetch_elfcore_registers): New function.
11074 (i386nbsd_elfcore_fns): New.
11075 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11076 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11077 i386bsd-nat.o.
11078 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11079 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11080 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11081 * config/i386/tm-nbsd.h: Update copyright years.
11082 (HAVE_SSE_REGS): Define.
11083 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11084 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11085 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11086 (SIGCONTEXT_PC_OFFSET): Remove.
11087 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11088
11089 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11090
11091 * configure.tgt: Remove powerpc-*-macos* target.
11092 * config/m68k/xm-mpw.h: Delete file.
11093 * config/xm-mpw.h: Delete file.
11094 * ser-mac.c: Delete file.
11095 * mpw-make.sed: Delete file.
11096 * mpw-config.in: Delete file.
11097 * mac-xdep.c: Delete file.
11098 * mac-gdb.r: Delete file.
11099 * mac-defs.h: Delete file.
11100 * mac-nat.c: Delete file.
11101 * config/powerpc/macos.mh: Delete file.
11102 * config/powerpc/macos.mt: Delete file.
11103 * config/powerpc/nm-macos.h: Delete file.
11104 * config/powerpc/tm-macos.h: Delete file.
11105 * source.c (openp, open_source_file): Remove obsolete code.
11106 * top.c (gdb_readline): Ditto.
11107 * utils.c (query): Ditto.
11108 * event-top.c (display_gdb_prompt): Ditto.
11109 * Makefile.in (ser-mac.o): Delete obsolete target.
11110 * NEWS: Update.
11111
11112 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11113
11114 * defs.h (BIG_ENDIAN): Delete macro definition.
11115 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11116 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11117 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11118 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11119 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11120 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11121 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11122 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11123 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11124 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11125 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11126 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11127 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11128 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11129 * gdbarch.c: Re-generate.
11130
11131 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11132
11133 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11134 for core files.
11135
11136 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11137
11138 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11139
11140 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11141
11142 * value.h (value_ptr): Delete typedef.
11143
11144 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11145
11146 * i386nbsd-nat.c: Update copyright years.
11147 Include i386-tdep.h.
11148
11149 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11150
11151 * stabsread.c: Update copyright years.
11152
11153 From Debashis Mahata <debashis.mahata@wipro.com>:
11154 (read_struct_fields): Deal with Sun C compiler erroneous stab
11155 output for structs and unions.
11156 Fix PR gdb/269.
11157
11158 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11161 prototype.
11162
11163 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11164
11165 * cp-abi.c: Fix whitespace.
11166 (baseclass_offset): New wrapper function.
11167 * cp-abi.h (baseclass_offset): Add prototype.
11168 (struct cp_abi_ops): Add baseclass_offset pointer.
11169
11170 * valops.c (vb_match): Move to...
11171 * gnu-v2-abi.c (vb_match): here.
11172 * valops.c (baseclass_offset): Move to...
11173 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11174
11175 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11176
11177 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11178 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11179 * hpacc-abi.c (init_hpacc_ops): Likewise.
11180
11181 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11182
11183 * valops.c (find_overload_match): Accept obj as a
11184 reference parameter. Update it before returning.
11185 * value.h (find_overload_match): Update prototype.
11186 * eval.c (evaluate_subexp_standard): Pass object to
11187 find_overload_match by reference.
11188
11189 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11190
11191 * valarith.c: Replace value_ptr with struct value pointer. Remove
11192 register attribute from value declarations.
11193 * valops.c: Ditto.
11194 * value.h: Ditto.
11195 * scm-lang.c (scm_lookup_name): Ditto.
11196
11197 2002-01-03 Michael Snyder <msnyder@redhat.com>
11198
11199 Abstract the functionality of iterating over mapped memory
11200 regions into a general purpose iterator function.
11201 * procfs.c (iterate_over_mappings): New function, general purpose
11202 iterator for memory sections.
11203 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11204 (solib_mappings_callback): New function, callback for above.
11205 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11206 (info_mappings_callback): New function, callback for above.
11207
11208 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11209
11210 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11211
11212 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11213 * i386-tdep.c: Include "elf-bfd.h".
11214 (process_note_abi_tag_sections): New function.
11215 (i386_gdbarch_init): Add code to recognize various OS/ABI
11216 combinations.
11217
11218 * maint.c (_initialize_maint_cmds): Add missing \ in
11219 string-literal.
11220
11221 For older changes see ChangeLog-2001
11222 \f
11223 Local Variables:
11224 mode: change-log
11225 left-margin: 8
11226 fill-column: 74
11227 version-control: never
11228 End:
This page took 0.25423 seconds and 3 git commands to generate.