2002-09-18 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2
3 * infrun.c (signal_stop_update): Convert definition to ISO C.
4 (signal_print_update): Ditto.
5 (signal_pass_update): Ditto.
6 * inflow.c (terminal_save_ours): Ditto.
7
8 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
9 comments.
10
11 * config/djgpp/fnchange.lst: Handle name clashes between
12 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
13 bfd/coff-tic80.c.
14
15 * i386-linux-tdep.h: Fix tipo.
16
17 2002-09-18 Adam Fedor <fedor@gnu.org>
18
19 * MAINTAINERS: Add myself to the Write After Approval list.
20
21 2002-09-18 Jim Blandy <jimb@redhat.com>
22
23 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
24 texthigh and textlow to reader-specific structs caused
25 objfile_relocate to miss them. This is fixable, but the work that
26 the change was supposed to prepare GDB for never got done anyway.
27
28 2002-09-18 David Carlton <carlton@math.stanford.edu>
29
30 * MAINTAINERS: Alphabetize Write After Approval list.
31
32 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
33
34 Fix PR gdb/709
35 * values.c (value_static_field): Call read_var_value.
36
37 2002-09-18 Andrew Cagney <ac131313@redhat.com>
38
39 * valops.c (hand_function_call): Align the initial stack pointer
40 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
41 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
42 return value.
43 * mips-tdep.c (mips_frame_align): New function.
44 (mips_gdbarch_init): Set frame_align.
45 * gdbarch.sh (FRAME_ALIGN): New method.
46 * gdbarch.h, gdbarch.c: Re-generate.
47
48 2002-09-18 Michal Ludvig <mludvig@suse.cz>
49
50 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
51 registers.
52
53 2002-09-17 Andrew Cagney <ac131313@redhat.com>
54
55 * NEWS: Mention that MIPS $fp behavior changed.
56 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
57 reference to FP_REGNUM.
58 (mipsnbsd_cannot_store_register): Ditto.
59 * mips-linux-nat.c: Update copyright.
60 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
61 (mips_linux_cannot_store_register): Ditto.
62 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
63 * config/mips/tm-mips.h: Update copyright.
64 (FP_REGNUM): Delete macro.
65 (MIPS_REGISTER_NAMES): Replace "fp" with "".
66 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
67 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
68 (mips_r3041_reg_names, mips_r3051_reg_names)
69 (mips_r3081_reg_names): Replace "fp" with "".
70 Fix PR gdb/480.
71
72 2002-09-17 Theodore A. Roth <troth@verinet.com>
73
74 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
75 generic_read_register_dummy() (PR gdb/703).
76 (avr_push_return_address): #if 0 out unused vars.
77 (avr_gdbarch_init): Enable use of avr_push_return_address().
78
79 2002-09-17 Michael Snyder <msnyder@redhat.com>
80
81 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
82 RTE will take care of it.
83
84 2002-09-17 Andrew Cagney <ac131313@redhat.com>
85
86 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
87 invalid, return SP_REGNUM.
88
89 2002-09-17 Michael Snyder <msnyder@redhat.com>
90
91 * mips-tdep.c (mips_pop_frame): Read saved values of floating
92 point registers without sign extension.
93
94 2002-09-17 Andrew Cagney <cagney@redhat.com>
95
96 * blockframe.c (deprecated_read_register_dummy): Rename
97 generic_read_register_dummy.
98 * frame.c (frame_unwind_signed_register): New function.
99 (frame_unwind_unsigned_register): New function.
100 * frame.h (frame_unwind_signed_register): Declare.
101 (frame_unwind_unsigned_register): Declare.
102 (deprecated_read_register_dummy): Rename
103 generic_read_register_dummy.
104
105 * h8300-tdep.c (h8300_frame_chain): Update.
106 (h8300_frame_saved_pc): Update.
107 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
108 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
109 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
110 (s390_frame_chain): Update.
111 * v850-tdep.c (v850_find_callers_reg): Update.
112 (v850_frame_saved_pc): Update.
113 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
114 (m32r_find_callers_reg): Update.
115 (m32r_frame_saved_pc): Update.
116 * sh-tdep.c (sh_find_callers_reg): Update.
117 (sh64_get_saved_pr): Update.
118 (sh_init_extra_frame_info): Update.
119 (sh_init_extra_frame_info): Update.
120 (sh64_init_extra_frame_info): Update.
121 (sh64_init_extra_frame_info): Update.
122 * mcore-tdep.c (mcore_find_callers_reg): Update.
123 (mcore_frame_saved_pc): Update.
124 (mcore_init_extra_frame_info): Update.
125 * i386-tdep.c (i386_frame_saved_pc): Update.
126 * ia64-tdep.c (ia64_frame_saved_pc): Update.
127 (ia64_init_extra_frame_info): Update.
128 (ia64_init_extra_frame_info): Update.
129 * d10v-tdep.c (d10v_frame_saved_pc): Update.
130 * cris-tdep.c (cris_init_extra_frame_info): Update.
131 * avr-tdep.c (avr_frame_chain): Update.
132 (avr_init_extra_frame_info): Update.
133 (avr_frame_saved_pc): Update.
134 * arm-tdep.c (arm_find_callers_reg): Update.
135 (arm_init_extra_frame_info): Update.
136 (arm_frame_saved_pc): Update.
137
138 2002-09-17 Tom Tromey <tromey@redhat.com>
139
140 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
141 is "'".
142
143 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
144
145 * MAINTAINERS: Remove "non multi-arched" text from h8300.
146 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
147 NEXT_PROLOGUE_INSN.
148 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
149 NEXT_PROLOGUE_INSN.
150
151 2002-09-16 Joel Brobecker <brobecker@gnat.com>
152
153 * osfsolib.c: Remove file, replaced by solib-osf.c.
154 * Makefile.in: Remove compilation rules for osfsolib.c.
155
156 2002-09-16 David Carlton <carlton@math.stanford.edu>
157
158 * cp-valprint.c (cp_print_class_method): Correct args to
159 check_stub_method_group.
160
161 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
162
163 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
164 `set architecture'. Unify naming convention of functions.
165 (h8300_skip_prologue): Improve prologue analysis.
166 (h8300_push_arguments): Rewritten to more closely match GCC's
167 bizarre argument-passing behavior, along with the comment describing
168 said behavior.
169 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
170 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
171 sim, remote-e7000.c, remote-hms.c and remote.c
172
173 2002-09-15 Mark Kettenis <kettenis@gnu.org>
174
175 * i386-tdep.c (gdb_print_insn_i386): Removed.
176 (i386_print_insn): New function.
177 (i386_gdbarch_init): Set print_insn to i386_print_insns.
178 (_initialize_i386_tdep): Don't initialize tm_print_insn and
179 tm_print_insn_info.
180
181 2002-09-14 Mark Kettenis <kettenis@gnu.org>
182
183 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
184 zero.
185
186 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
187
188 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
189 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
190 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
191
192 2002-09-13 Christopher Faylor <cgf@redhat.com>
193
194 * win32-nat.c (child_create_inferior): Honor 'tty' command.
195
196 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
197
198 * gdbtypes.c (check_stub_method): Make static.
199 (check_stub_method_group): New function.
200 * gdbtypes.h: Update prototypes.
201 * cp-support.c: New file.
202 * cp-support.h: New file.
203
204 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
205 (update_method_name_from_physname): New function.
206 (read_member_functions): Correct method names for operators
207 and v3 constructors/destructors. Separate v2 constructors and
208 destructors.
209 * Makefile.in (stabsread.o): Update dependencies.
210 (SFILES): Add cp-support.c.
211 (COMMON_OBS): Add cp-support.o.
212 (cp_support_h, cp-support.o): Add.
213
214 * cp-valprint.c (cp_print_class_method): Call
215 check_stub_method_group instead of check_stub_method. Remove
216 extraneous QUITs.
217 * p-valprint.c (pascal_object_print_class_method): Likewise.
218 * valops.c (search_struct_method): Likewise.
219 (find_method_list, value_struct_elt_for_reference): Likewise.
220
221 2002-09-13 Andrew Cagney <cagney@redhat.com>
222
223 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
224 * gdbarch.h, gdbarch.c: Regenerate.
225
226 2002-09-13 Andrew Cagney <ac131313@redhat.com>
227
228 * frame.c (find_saved_register): Delete function.
229 * frame.h (find_saved_register): Delete declaration.
230 Fix PR gdb/631.
231
232 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
233
234 * mips-tdep.c (read_next_frame_reg): Re-hack using
235 frame_register_unwind.
236
237 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
238
239 * mips-tdep.c (mips_get_saved_register): Re-hack using
240 frame_register_unwind.
241
242 2002-09-12 Joel Brobecker <brobecker@gnat.com>
243
244 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
245 vector. Will be useful for Interix.
246 * gdbarch.h, gdbarch.c: Regenerate.
247
248 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
249 name of the malloc function by NAME_OF_MALLOC.
250
251 2002-09-12 Joel Brobecker <brobecker@gnat.com>
252
253 * value.h (find_function_in_inferior): Add const keyword to
254 one of the parameters. Allows us to invoke this function with
255 a const char *.
256 * valops.c (find_function_in_inferior): Likewise.
257
258 2002-09-12 Joel Brobecker <brobecker@gnat.com>
259
260 * exec.c (xfer_memory): Fix compilation warning with old versions
261 of GCC.
262 * tracepoint.c (trace_find_tracepoint_command): Likewise.
263
264 2002-09-12 David Carlton <carlton@math.stanford.edu>
265
266 * symtab.h: Run through gdb_indent.h.
267 Add 2002 to Copyright year list.
268
269 2002-09-12 Alan Modra <amodra@bigpond.net.au>
270
271 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
272 mach constants.
273 * MAINTAINERS: Add myself to write after approval list.
274
275 2002-09-11 J. Brobecker <brobecker@gnat.com>
276
277 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
278
279 2002-09-11 J. Brobecker <brobecker@gnat.com>
280
281 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
282 Interix.
283
284 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
285
286 * procfs.c (do_detach): Clear current signal, not just fault.
287 Corrects problem with breakpoint trap signal leaking to detached
288 process on Tru64.
289
290 2002-09-10 Michael Snyder <msnyder@redhat.com>
291
292 * buildsym.c (finish_block): Protect against null pointer.
293
294 2002-09-10 Andrew Cagney <cagney@redhat.com>
295
296 * infcmd.c (default_print_registers_info): Send all output to
297 ``file'' instead of ``gdb_stdout''.
298
299 2002-09-10 Michael Snyder <msnyder@redhat.com>
300
301 * mips-tdep.c (mips_extract_struct_value_address): Make val a
302 LONGEST, and use signed register read (addresses are sign-
303 extended for mips).
304
305 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
306
307 * event-loop.c (gdb_do_one_event): Make public.
308 * event-loop.h (gdb_do_one_event): Declare.
309
310 2002-09-10 Jeff Law <law@redhat.com>
311
312 * infttrace.c (child_resume): Simplify and rework to avoid
313 TT_PROC_CONTINUE.
314
315 2002-09-09 Fred Fish <fnf@intrinsity.com>
316
317 * printcmd.c (print_scalar_formatted): "len" is the number of
318 target bytes, NOT the number of target bits.
319
320 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
321
322 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
323 * top.c (init_main): Set rl_terminal_name.
324
325 2002-09-08 Aidan Skinner <aidan@velvet.net>
326
327 * ada-lang.c (ada_array_bound, ada_type_match,
328 _initialize_ada_language): Fix K&R definitions.
329 * ada-tasks.c (get_current_task): Fix K&R definitions.
330 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
331
332 2002-09-07 Christopher Faylor <cgf@redhat.com>
333
334 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
335 Add XP.
336
337 2002-09-06 Mark Kettenis <kettenis@gnu.org>
338
339 * i386-tdep.c (i386_register_virtual_type,
340 i386_register_convertible, i386_register_convert_to_virtual,
341 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
342 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
343 (i386_gdbarch_init): Fix comment. Add comments on calls that set
344 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
345 Don't set push_arguments twice.
346
347 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
348 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
349 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
350 sigtramp_end to NULL.
351 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
352 defines.
353 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
354
355 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
356 whitespace.
357
358 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
359 * gdbarch.h, gdbarch.c: Re-generate.
360 * blockframe.c (find_pc_sect_partial_function): Convert to use
361 SIGTRAMP_START_P predicate.
362
363 2002-09-05 Michael Snyder <msnyder@redhat.com>
364
365 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
366 generic_dummy_frame method and old method. Also distinguish
367 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
368 (arm_extract_return_value): Use new regcache method.
369
370 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
371 adjustment that doesn't conform to the ABI.
372 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
373 saved regcache, not from current regcache.
374
375 2002-09-05 Andrew Cagney <ac131313@redhat.com>
376
377 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
378 * README: Update.
379
380 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
381
382 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
383 if arm_apcs_32 is false.
384
385 2002-09-04 Andrew Cagney <ac131313@redhat.com>
386
387 GDB 5.3 branch created.
388
389 2002-09-03 Theodore A. Roth <troth@verinet.com>
390
391 * gdb/avr-tdep.c (avr_gdbarch_init): Use
392 generic_unwind_get_saved_register.
393
394 2002-09-03 David Carlton <carlton@math.stanford.edu>
395
396 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
397 argument (PR gdb/653). Update call to smash_to_method_type.
398 (read_structure_scope): Update call to dwarf2_add_member_fn.
399
400 2002-09-03 Michal Ludvig <mludvig@suse.cz>
401
402 * x86-64-linux-tdep.c: Include gdb_string.h
403 * x86-64-linux-nat.c: Ditto.
404
405 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
406
407 * ada-exp.y (yyname, yyrule): Remap global variables that appear
408 when YYDEBUG is set to 1.
409 * c-exp.y: Likewise.
410 * f-exp.y: Likewise.
411 * jv-exp.y: Likewise.
412 * m2-exp.y: Likewise.
413 * p-exp.y: Likewise.
414
415 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
416
417 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
418 dependency list.
419 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
420 solib_svr4_fetch_link_map_offsets to
421 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
422 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
423 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
424 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
425 solib-svr4.o, and solib-legacy.o.
426 * config/i386/tm-nbsd.h: Include solib.h.
427
428 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
429
430 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
431 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
432 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
433 comment noting that this needs its own target configuration.
434 * config/i386/nbsd.mt: New file.
435 * config/i386/nbsdaout.mt: Remove.
436 * config/i386/nbsdelf.mt: Ditto.
437 * config/i386/tm-nbsdaout.h: Ditto.
438
439 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
440
441 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
442 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
443 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
444 tdep->sigtramp_end.
445 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
446 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
447 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
448
449 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
450
451 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
452 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
453 * i386-tdep.h (i386bsd_init_abi): New prototype.
454 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
455 function declaration.
456 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
457 for NetBSD-a.out or NetBSD-ELF.
458 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
459 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
460 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
461 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
462 and nbsd-tdep.h.
463 (i386nbsd_pc_in_sigtramp): New function.
464 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
465 i386nbsd_pc_in_sigtramp.
466 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
467 and i386nbsdelf_init_abi OS ABI handlers.
468 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
469 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
470
471 2002-09-02 Mark Kettenis <kettenis@gnu.org>
472
473 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
474 registers if the target really has them.
475
476 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
477
478 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
479 than nbsd-tdep.h.
480
481 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
482
483 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
484 list.
485 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
486 (alphanbsd_skip_sigtramp_frame): New functions.
487 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
488 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
489 to alphanbsd_sigcontext_addr.
490
491 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
492
493 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
494 list.
495 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
496 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
497 nbsd_pc_in_sigtramp.
498 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
499 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
500 * nbsd-tdep.c: Include gdb_string.h.
501 (nbsd_pc_in_sigtramp): New function.
502 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
503 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
504 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
505 ppcnbsd_pc_in_sigtramp.
506 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
507 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
508 shnbsd_pc_in_sigtramp.
509 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
510 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
511 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
512
513 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
514
515 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
516 watchpoints to NULL.
517 (insert_breakpoints): set val field of watchpoints if NULL.
518
519
520 2002-08-29 Jim Blandy <jimb@redhat.com>
521
522 * symtab.c (lookup_symbol_aux): In the cases where we find a
523 minimal symbol of an appropriate name and use its address to
524 select a symtab to read and search, use `name' (as passed to us)
525 as the demangled name when searching the symtab's global and
526 static blocks, not the minsym's name.
527
528 2002-08-29 Keith Seitz <keiths@redhat.com>
529
530 * stack.c (print_frame_info_base): Always set current_source_symtab
531 and current_source_line.
532
533 2002-08-29 Donn Terry <donnte@microsoft.com>
534
535 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
536
537 2002-08-28 Keith Seitz <keiths@redhat.com>
538
539 * stack.c (select_frame): Add FIXME concerning selected-frame
540 events.
541 (select_frame_command): Send selected-frame-level-changed
542 event notification, but only if the level actually changed.
543 (up_silently_base): Add selected-frame-level-changed event
544 notification.
545 (down_silently_base): Likewise.
546
547 2002-08-28 Andrew Cagney <ac131313@redhat.com>
548
549 * Makefile.in: Update dependencies for all gdb/*.c files.
550
551 2002-08-27 Tom Tromey <tromey@redhat.com>
552
553 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
554 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
555 Update dependencies.
556 * i387-tdep.c: Include gdb_string.h.
557 * osabi.c: Likewise.
558 * i386-linux-nat.c: Likewise.
559 * lin-lwp.c: Likewise.
560 * ax-gdb.c: Likewise.
561 * signals/signals.c: Likewise.
562 * jv-valprint.c: Likewise.
563 * p-lang.c: Likewise.
564 * c-valprint.c: Likewise.
565 * cp-abi.c: Likewise.
566
567 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
568
569 * cli/cli-script.h (copy_command_lines): Export.
570 * breakpoint.c: Include cli/cli-script.h.
571 * Makefile.in (breakpoint.o): Update dependencies.
572
573 2002-08-26 Michael Snyder <msnyder@redhat.com>
574
575 * breakpoint.c (insert_breakpoints): Protect all references
576 to 'process_warning'. Shorten long lines.
577
578 2002-08-26 Joel Brobecker <brobecker@gnat.com>
579
580 * cli/cli-script.c (copy_command_lines): New function.
581 * defs.h (copy_command_lines): Export.
582 * testsuite/gdb.base/commands.exp: New tests for commands
583 attached to a temporary breakpoint, and for commands that
584 delete the breakpoint they are attached to.
585
586 2002-08-26 Michael Snyder <msnyder@redhat.com>
587
588 * breakpoint.c (bpstat_stop_status): Instead of copying the
589 pointer to the breakpoint commands struct, make a new copy
590 of the struct and point to that.
591 (bpstat_clear): Free the commands struct.
592 (bpstat_clear_actions): Free the commands struct.
593 (bpstat_do_actions): Free the command actions. Also execute
594 the local cleanups, instead of deleting them.
595 (delete_breakpoint): Leave the commands field of the bpstat
596 chain alone -- it will be freed later.
597
598 2002-08-26 Kevin Buettner <kevinb@redhat.com>
599
600 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
601 deleted in 2002-08-20 commit. This function is still used by
602 ppc-linux-nat.c.
603
604 2002-08-26 Keith Seitz <keiths@redhat.com>
605
606 * gdb-events.sh: Add selected-frame-level-changed event.
607 * gdb-events.c: Regenerated.
608 * gdb-events.h: Regenerated.
609
610 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
611
612 Fix PR gdb/393:
613 * inflow.c (terminal_save_ours): New function to save terminal
614 settings.
615 * inferior.h (terminal_save_ours): Declare.
616 * target.c (debug_to_terminal_save_ours): New function.
617 (cleanup_target): Defaults to_terminal_save_ours.
618 (update_current_target): Inherit to_terminal_save_ours.
619 (setup_target_debug): Set to_terminal_save_ours.
620 * target.h (target_terminal_save_ours): New to save terminal settings.
621 (target_ops): New member to_terminal_save_ours.
622 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
623 * hpux-thread.c (init_hpux_thread_ops): Likewise.
624 * inftarg.c (init_child_ops): Likewise.
625 * m3-nat.c (init_m3_ops): Likewise.
626 * procfs.c (init_procfs_ops): Likewise.
627 * wince.c (init_child_ops): Likewise.
628 * win32-nat.c (init_child_ops): Likewise.
629 * sol-thread.c (init_sol_thread_ops): Likewise.
630
631 2002-08-26 Mark Kettenis <kettenis@gnu.org>
632
633 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
634 use regcache_* functions.
635 (i386_gdbarch_init): Set store_return_value instead of
636 deprecated_store_return_value.
637
638 * regcache.c (regcache_raw_write_signed,
639 regcache_raw_write_unsigned): New functions.
640 * regcache.h (regcache_raw_write_signed,
641 regcache_raw_write_unsigned): New prototypes.
642
643 2002-08-25 Andrew Cagney <ac131313@redhat.com>
644
645 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
646 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
647 source file dependencies. Cleanup corresponding generator rules.
648
649 2002-08-25 Andrew Cagney <ac131313@redhat.com>
650
651 * regcache.h (register_offset_hack): Declare.
652 (regcache_cooked_read_using_offset_hack): Declare.
653 (regcache_cooked_write_using_offset_hack): Declare.
654
655 * regcache.c (register_offset_hack): New function.
656 (regcache_cooked_read_using_offset_hack): New function.
657 (regcache_cooked_write_using_offset_hack): New function.
658 (regcache_dump): Check that the registers, according to their
659 offset, are packed hard against each other.
660 (cooked_xfer_using_offset_hack): New function.
661
662 2002-08-25 Andrew Cagney <ac131313@redhat.com>
663
664 * regcache.c (struct regcache_descr): Add field register_type.
665 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
666 in as a parameter
667 (init_regcache_descr): Initialize register_type. Pass the descr
668 to init_legacy_regcache_descr. Use register_type instead of
669 REGISTER_VIRTUAL_TYPE.
670 (register_type): New function.
671 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
672 * regcache.h (register_type): Declare.
673
674 2002-08-25 Andrew Cagney <ac131313@redhat.com>
675
676 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
677 instead of deprecated_store_return_value. Fix fallout from
678 2002-08-23 Andrew Cagney <cagney@redhat.com>.
679
680 2002-08-25 Andrew Cagney <ac131313@redhat.com>
681
682 * regcache.c (max_register_size): New function.
683 (init_legacy_regcache_descr): Ensure that max_register_size is
684 large enough for REGISTER_VIRTUAL_SIZE.
685 * regcache.h (max_register_size): Declare.
686
687 2002-08-24 Andrew Cagney <ac131313@redhat.com>
688
689 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
690 store_return_value.
691 (e500_extract_return_value): Change type of valbuf pointer to
692 void.
693
694 2002-08-24 Mark Kettenis <kettenis@gnu.org>
695
696 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
697 workaround.
698
699 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
700 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
701 long long) to prevent compiler warning on 64-bit systems.
702
703 2002-08-23 Andrew Cagney <cagney@redhat.com>
704
705 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
706 (DEPRECATED_STORE_RETURN_VALUE): New method.
707 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
708 * gdbarch.h, gdbarch.c: Re-generate.
709
710 * values.c (set_return_value): Pass current_regcache to
711 STORE_RETURN_VALUE.
712 * arch-utils.h (legacy_store_return_value): Declare.
713 * arch-utils.c (legacy_store_return_value): New function.
714 (legacy_extract_return_value): Update parameters.
715
716 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
717 STORE_RETURN_VALUE.
718 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
719 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
720 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
721 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
722 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
723 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
724 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
725 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
726 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
727 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
728
729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
730 * i386-tdep.c (i386_extract_return_value): Update.
731 * arch-utils.c (legacy_extract_return_value): Update.
732 * frv-tdep.c (frv_gdbarch_init): Update.
733 * cris-tdep.c (cris_gdbarch_init): Update.
734 * d10v-tdep.c (d10v_gdbarch_init): Update.
735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
736 * m68k-tdep.c (m68k_gdbarch_init): Update.
737 * mcore-tdep.c (mcore_gdbarch_init): Update.
738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
739 * s390-tdep.c (s390_gdbarch_init): Update.
740 * sparc-tdep.c (sparc_gdbarch_init): Update.
741 * sh-tdep.c (sh_gdbarch_init): Update.
742 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
743 * v850-tdep.c (v850_gdbarch_init): Update.
744 * avr-tdep.c (avr_gdbarch_init): Update.
745 * ia64-tdep.c (ia64_gdbarch_init): Update.
746 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
747 * vax-tdep.c (vax_gdbarch_init): Update.
748 * alpha-tdep.c (alpha_gdbarch_init): Update.
749 * arm-tdep.c (arm_gdbarch_init): Update.
750 * mips-tdep.c (mips_gdbarch_init): Update.
751 * i386-tdep.c (i386_gdbarch_init): Update.
752
753 2002-08-23 Andrew Cagney <ac131313@redhat.com>
754
755 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
756 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
757
758 2002-08-24 Mark Kettenis <kettenis@gnu.org>
759
760 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
761 problems.
762
763 2002-08-23 Joel Brobecker <brobecker@gnat.com>
764
765 * infrun.c (handle_inferior_event): Move a comment outside of a
766 function call, in order to avoid indent reformatting this part
767 of the code in an unreadable way.
768
769 2002-08-23 Grace Sainsbury <graces@redhat.com>
770
771 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
772 when breakpoints fail. Move general breakpoint error messages to
773 insert_breakpoints.
774 * breakpoint.c (insert_breakpoints): Change warnings when
775 breakpoints are nto inserted to specify the type. Remove call to
776 memory_error when hardware breakpoints can't be inserted. Remove
777 multiple calls to warning so all messages are sent to the user at
778 once.
779 (delete_breakpoints): Make insert error messsages more explicit.
780
781 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
782
783 * ChangeLog: Move gdbserver entries after GDB 5.2 to
784 gdbserver/ChangeLog.
785
786 2002-08-23 Mark Kettenis <kettenis@gnu.org>
787
788 * i386-tdep.c: Include "objfiles.h".
789 (i386_svr4_init_abi): Set in_solib_call_trampoline and
790 skip_trampoline_code.
791 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
792 (CPLUS_MARKER): Define to '.'.
793
794 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
795 member.
796 (linux_corefile_thread_callback): Increase args->num_notes.
797 (linux_make_note_section): Initialize thread_args.num_notes, and
798 use it to determine whether notes for any threads were created.
799
800 2002-08-23 Donn Terry <donnte@microsoft.com>
801
802 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
803 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
804 and PCUNKILL.
805 (write_with_trace): Conditionalize out the switch branch handling
806 PCSHOLD if the corresponding macro is not defined. Likewise for
807 PRSABORT and PRSTOP.
808 This change will be needed by the Interix port.
809
810 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
811
812 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
813 write_register wherever possible instead of manipulating the
814 register bytes directly.
815 Assign VALUE_CONTENTS to a variable and use that.
816 The GPR numbers are now dependent on the architecture.
817
818 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
819
820 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
821 ev_offset fields.
822 (skip_prologue): Add support for BookE/e500 instructions.
823 (e500_extract_return_value): New function.
824 (frame_get_saved_regs): Add support for saving ev registers and
825 pseudo gpr's.
826 (e500_store_return_value): New function.
827 (rs6000_gdbarch_init): Move up default intializations of
828 deprecated_extract_return_value and store_return_value. Overwrite
829 init of store_return_value with e500 specific version.
830 Set extract_return_value for e500.
831
832 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
833
834 * blockframe.c (generic_call_dummy_register_unwind): Use
835 regcache_cooked_read to catch cases in which the variable is
836 stored in a pseudo register.
837
838 2002-08-22 Andrew Cagney <cagney@redhat.com>
839
840 * NEWS: Mention that the i960 has been made obsolete.
841 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
842 i960-tdep.c
843 (remote-nrom.o): Obsolete target.
844 (remote-nindy.o, i960-tdep.o): Ditto.
845 * remote-nrom.c: Make file obsolete.
846 * remote-nindy.c, remote-vx960.c: Ditto.
847 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
848 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
849 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
850 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
851 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
852 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
853 i960-*-vxworks* obsolete.
854 * MAINTAINERS: Note that the i960 is obsolete.
855
856 2002-08-21 Corinna Vinschen <vinschen@redhat.com
857
858 * aix-thread.c (aix_thread_detach): Disable thread debugging on
859 detach to allow reinitialization.
860
861 2002-08-22 Andrew Cagney <ac131313@redhat.com>
862
863 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
864 attempt).
865
866 2002-08-22 Jim Blandy <jimb@redhat.com>
867
868 * coffread.c (coff_symfile_read): Don't try to read the line
869 number table from disk if the image file doesn't have a symbol
870 table; we'll never actually look at the info anyway, and Windows
871 ships DLL's with bogus file offsets for the line number data.
872
873 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
874
875 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
876 an e500 executable.
877
878 2002-08-21 Michael Snyder <msnyder@redhat.com>
879
880 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
881 (MSYMBOL_SIZE): Replace macro with function.
882 (DEFAULT_MIPS_TYPE): Delete unused macro.
883 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
884 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
885
886 2002-08-21 Jim Blandy <jimb@redhat.com>
887
888 * valops.c (value_cast): Simplify and correct logic for doing a
889 static cast from a pointer to a base class to a pointer to a
890 derived class.
891
892 2002-08-21 Andrew Cagney <ac131313@redhat.com>
893
894 * infcmd.c (default_print_registers_info): Replace
895 do_registers_info.
896 (registers_info): Use gdbarch_print_registers_info instead of
897 DO_REGISTERS_INFO.
898 * inferior.h (default_print_registers_info): Replace
899 do_registers_info.
900 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
901 (DO_REGISTERS_INFO): Change to a predicate function.
902 * gdbarch.h, gdbarch.c: Regenerate.
903
904 2002-08-21 Keith Seitz <keiths@redhat.com>
905
906 * gdb-events.sh: Add target-changed event.
907 * gdb-events.c: Regenerated.
908 * gdb-events.c: Regenerated.
909 * valops.c (value_assign): Add target-changed event notification
910 to inlval_register, lval_memory, and lval_reg_frame_relative.
911
912 2002-08-21 Joel Brobecker <brobecker@gnat.com>
913
914 * NEWS: Add an entry regarding the improvement of the next/step
915 operation on Alpha Tru64 multi-processor machines.
916
917 2002-08-21 Andrew Cagney <ac131313@redhat.com>
918
919 * Makefile.in: Update dependencies for mi/ cli/ and tui/
920 directores.
921 * Makefile.in: Update all _h macro definitions.
922 * Makefile.in (install-gdbtk): Move to install section.
923 (rdi-share/libangsd.a): Move to end of file.
924
925 2002-08-19 Andrew Cagney <ac131313@redhat.com>
926
927 * frame.c (frame_register_unwind): When a register, set addrp to
928 the register's byte.
929
930 2002-08-20 Michael Snyder <msnyder@redhat.com>
931
932 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
933 used locally, so move them from the target machine header to here.
934 (mips_set_processor_type, mips_register_name, mips32_next_pc,
935 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
936 Make static.
937 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
938
939 2002-08-20 Andrew Cagney <cagney@redhat.com>
940
941 * NEWS: Mention that the Apollo line was made obsolete.
942 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
943 m68*-hp-hpux* obsolete.
944 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
945 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
946 * buildsym.c (make_blockvector): Make static.
947 * buildsym.h (make_blockvector): Make extern declaration obsolete.
948 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
949 (ALLDEPFILES): Remove dstread.c.
950 (dstread.o): Obsolete make rule.
951 * dstread.c: Makefile obsolete.
952 * dst.h: Ditto.
953 * config/m68k/hp300hpux.mt: Ditto.
954 * config/m68k/hp300hpux.mh: Ditto.
955 * config/m68k/hp300bsd.mt: Ditto.
956 * config/m68k/hp300bsd.mh: Ditto.
957 * config/m68k/apollo68b.mt: Ditto.
958 * config/m68k/apollo68v.mh: Ditto.
959 * config/m68k/apollo68b.mh: Ditto.
960
961 2002-08-20 Michael Snyder <msnyder@redhat.com>
962
963 * mips-tdep.c (mips_in_return_stub): Make static.
964 (mips_gdbarch_init): Set in_solib_return_trampoline.
965 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
966
967 2002-08-20 Michael Snyder <msnyder@redhat.com>
968
969 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
970 * gdbarch.c, gdbarch.h: Regenerate.
971 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
972 Add.
973 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
974
975 2002-08-20 Michael Snyder <msnyder@redhat.com>
976
977 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
978 (mips_gdbarch_init): Set skip_trampoline_code,
979 in_solib_call_trampoline.
980 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
981 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
982
983 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
984
985 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
986
987 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
988 vector type for ev registers.
989 (e500_pseudo_register_read): New function.
990 (e500_pseudo_register_write): New function.
991 (e500_dwarf2_reg_to_regnum): New function.
992 (PPC_UISA_NOFP_SPRS): New macro.
993 (PPC_EV_REGS): New macro.
994 (PPC_GPRS_PSEUDO_REGS): New macro.
995 (registers_e500): New register set for e500.
996 (variants): Add e500 variant.
997 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
998 before setting architectural dependent variations. Initialize ev
999 registers numbers. Add case for e500 architecture. Set the
1000 number of pseudo registers.
1001
1002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1003
1004 * rs6000-tdep.c: Clean up comments.
1005
1006 2002-08-20 Andrew Cagney <cagney@redhat.com>
1007
1008 * h8300-tdep.c: Re-indent file.
1009
1010 2002-08-20 Jim Blandy <jimb@redhat.com>
1011
1012 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1013 default for this.
1014
1015 2002-08-20 Keith Seitz <keiths@redhat.com>
1016
1017 * breakpoints.c (watch_command_1): Use internal breakpoint
1018 when setting a watchpoint_scope breakpoint.
1019
1020 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1021
1022 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1023 (build_builtin_type_vec64i): Ditto.
1024 (build_builtin_type_vec128): Ditto.
1025 (build_builtin_type_vec128i): Ditto.
1026
1027 2002-08-19 Michael Snyder <msnyder@redhat.com>
1028
1029 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1030 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1031 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1032 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1033 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1034 CALL_DUMMY_ADDRESS): Delete.
1035 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1036 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1037 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1038 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1039 push_return_address.
1040 (mips_register_raw_size, mips_eabi_use_struct_convention,
1041 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1042 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1043 mips_init_extra_frame_info, mips_eabi_push_arguments,
1044 mips_n32n64_push_arguments, mips_push_return_address,
1045 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1046 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1047
1048 2002-08-19 Michael Snyder <msnyder@redhat.com>
1049
1050 * mips-tdep.c (mips_frame_num_args): New function.
1051 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1052 frame_saved_pc, frame_args_address, frame_locals_address,
1053 frame_num_args, and frame_args_skip.
1054 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1055 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1056 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1057 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1058
1059 2002-08-20 Michael Snyder <msnyder@redhat.com>
1060
1061 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1062 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1063 * mips-tdep.c (mips_store_struct_return): New function.
1064 (mips_extract_struct_value_address): New function.
1065 (mips_gdbarch_init): Set store_struct_return and
1066 extract_struct_value_address.
1067
1068 2002-08-20 David Carlton <carlton@math.stanford.edu>
1069
1070 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1071 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1072 (read_file_scope): Check that line_header is nonzero before
1073 decoding macro information.
1074
1075 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1076
1077 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1078 flag the general-purpose registers as floating-point on targets
1079 that don't support the floating-point registers.
1080
1081 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1082
1083 * rs6000-tdep.c (altivec_register_p): Delete.
1084 (rs6000_do_altivec_registers): Delete.
1085 (rs6000_altivec_registers_info): Delete.
1086 (rs6000_do_registers_info): Delete.
1087 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1088 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1089
1090 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1091
1092 * infcmd.c (do_registers_info): Print vector registers in hex
1093 format only.
1094 (print_vector_info): Check that printing registers
1095 makes sense.
1096 (print_float_info): Ditto.
1097
1098 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1099
1100 * mips-tdep.c (mips_gdbarch_init): Update.
1101 (mips_o32_extract_return_value): Rewrite.
1102 (mips_o32_store_return_value): Rewrite.
1103 (mips_o32_xfer_return_value): New function.
1104 (mips_xfer_register): Tweak debug print message. Allow for
1105 buf_offset when dumping the value transfered.
1106
1107 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1108
1109 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1110 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1111 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1112 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1113 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1114
1115 2002-08-14 Michael Snyder <msnyder@redhat.com>
1116
1117 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1118
1119 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1120
1121 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1122 register.
1123 (P): New macro to define a register as a pseudo register.
1124 (R, R4, R8, R16, FR32, R64, R0): Updated.
1125 (struct variant): Add new fields for number of pseudo registers
1126 and number of total registers.
1127 (tot_num_registers): New macro replacing....
1128 (num_registers): ...deleted macro.
1129 (num_registers): New function.
1130 (num_pseudo_registers): New function.
1131 (variants): Update all variants to intialize new fields correctly.
1132 Postpone initialization of number of pseudo regs and real regs.
1133 (init_variants): New function.
1134 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1135 registers offsets.
1136
1137 2002-08-19 David Carlton <carlton@math.stanford.edu>
1138
1139 * valops.c (search_struct_field): Change error message to treat
1140 return value of 0 from value_static_field as meaning that field is
1141 optimized out.
1142 (value_struct_elt_for_reference): Ditto.
1143 * values.c (value_static_field): Treat an unresolved location the
1144 same as a nonexistent symbol. Fix PR gdb/635.
1145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1146 enclosed. Fix PR gdb/574.
1147 * MAINTAINERS: Add self to Write After Approval list.
1148
1149 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1150
1151 * mips-tdep.c (mips_xfer_register): New function.
1152 (mips_n32n64_extract_return_value): Rewrite.
1153 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1154 instead of deprecated_extract_return_value.
1155
1156 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1157
1158 * rs6000-tdep.c (TDEP): Delete macro.
1159 (branch_dest): Replace use of TDEP macro with its body.
1160 (rs6000_pop_frame): Ditto.
1161 (rs6000_push_arguments): Ditto.
1162 (rs6000_skip_trampoline_code): Ditto.
1163 (rs6000_frame_saved_pc): Ditto.
1164 (rs6000_frame_chain): Ditto.
1165 (rs6000_register_name): Ditto.
1166 (rs6000_register_byte): Ditto.
1167 (rs6000_register_raw_size): Ditto.
1168 (rs6000_register_virtual_type): Ditto.
1169 (rs6000_register_convertible): Ditto.
1170 (rs6000_convert_from_func_ptr_addr): Ditto.
1171
1172 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1173
1174 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1175 conditionally.
1176 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1177 MIPS_LINUX_JB_ELEMENT_SIZE.
1178 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1179 for MAX_REGISTER_RAW_SIZE arrays.
1180 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1181 MIPS_LINUX_JB_ELEMENT_SIZE.
1182
1183 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1184
1185 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1186
1187 2002-08-19 Aidan Skinner <aidan@velvet.net>
1188
1189 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1190 ada-valprint.c ada-tasks.c.
1191 (YYFILES): Add ada-exp.y.
1192 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1193 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1194 (ada-exp.tab.o): New target.
1195
1196 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1197
1198 * regcache.c (regcache_xfer_part): New function.
1199 (regcache_raw_read_part): New function.
1200 (regcache_raw_write_part): New function.
1201 (regcache_cooked_read_part): New function.
1202 (regcache_cooked_write_part): New function.
1203 * regcache.h (regcache_raw_read_part): Declare.
1204 (regcache_raw_write_part): Declare.
1205 (regcache_cooked_read_part): Declare.
1206 (regcache_cooked_write_part): Declare.
1207
1208 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1209
1210 * remote.c (remote_open_1): Add async_p.
1211 (remote_async_open_1): Delete.
1212 (open_remote_target): Delete.
1213 (remote_open, extended_remote_open): Update calls to remote_open_1.
1214 (remote_async_open, extended_remote_async_open): Call
1215 remote_open_1 instead of remote_async_open_1.
1216
1217 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1218
1219 * blockframe.c: Fix a few coding standard violations.
1220
1221 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1222
1223 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1224 here from ...
1225 * config/i386/tm-i386sco5.h: ... here. File removed.
1226 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1227
1228 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1229 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1230 (TM_FILE): Set to tm-i386.h.
1231 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1232 * config/i386/tm-i386v.h: Remove file.
1233 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1234 instead of "i386/tm-i386v.h".
1235 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1236 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1237 "i386/tm-i386v.h".
1238 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1239 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1240 "i386/tm-i386.h".
1241
1242 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1243
1244 * config/i386/nm-i386v.h: Add protection against
1245 multiple-inclusion.
1246 (i386_register_u_addr): Remove prototype.
1247 (register_u_addr): New prototype.
1248 (REGISTER_U_ADDR): Redefine accordingly.
1249 * i386v-nat.c: Improve several comments.
1250 (i386_register_u_addr): Change signature and rename to
1251 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1252 ubase variable.
1253
1254 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1255
1256 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1257 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1258 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1259 deprecated_extract_return_value.
1260 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1261 rename mips_o32o64_push_arguments.
1262 (mips_gdbarch_init): Update.
1263 (mips_extract_return_value): Delete.
1264 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1265 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1266 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1267 (mips_n32n64_extract_return_value): Clone
1268 mips_extract_return_value.
1269 (mips_store_return_value): Delete.
1270 (mips_o32_store_return_value): Clone mips_store_return_value.
1271 (mips_o64_store_return_value): Clone mips_store_return_value.
1272 (mips_eabi_store_return_value): Clone mips_store_return_value.
1273 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1274
1275 2002-08-18 Aidan Skinner <aidan@velvet.net>
1276
1277 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1278 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1279
1280 2002-08-18 Aidan Skinner <aidan@velvet.net>
1281
1282 * ada-lang.c: Run through gdb_indent.sh.
1283 * ada-lang.h: Run through gdb_indent.sh.
1284 * ada-tasks.c: Run through gdb_indent.sh.
1285 * ada-typeprint.c: Run through gdb_indent.sh.
1286 * ada-valprint.c: Run through gdb_indent.sh.
1287
1288 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1289
1290 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1291 ABI.
1292
1293 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1294
1295 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1296
1297 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1298 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1299
1300 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1301 write_register_gen instead of write_register_bytes.
1302
1303 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1304 i[3456]-*-osf1mk* configurations have been made obsolete.
1305 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1306 i[3456]86-*-osf1mk* hosts obsolete.
1307 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1308 targets obsolete.
1309 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1310 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1311 config/i386/i386m3.mt, config/i386/nm-m3.h,
1312 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1313 config/i386/i386mk.mh, config/i386/i386mk.mt,
1314 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1315 obsolete.
1316 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1317 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1318 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1319
1320 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1321
1322 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1323 (hppa_value_returned_from_stack): Declare.
1324 (hppa_extract_return_value): Declare.
1325 * config/pa/hppa.mt: New file.
1326 * configure.tgt: Recognize hppa*-*-*.
1327 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1328
1329 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1330
1331 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1332 comment.
1333
1334 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1335
1336 * top.c (gdb_rl_operate_and_get_next): Make sure
1337 operate-and-get-next functions correctly even when the history
1338 list is completely filled.
1339
1340 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1341
1342 * MAINTAINERS (Target Instruction Set Architectures): Rename
1343 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1344 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1345 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1346 already listed under Host/Native.
1347
1348 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1349 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1350 mips*-*-*.
1351
1352 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1353
1354 * config/ia64/ia64.mt: New file.
1355 * config/alpha/alpha.mt: New file.
1356 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1357 ia64-linux-gnu. Mention that ia64-elf is broken.
1358 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1359
1360 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1361
1362 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1363 generic_func_frame_valid instead of func_frame_valid.
1364
1365 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1366
1367 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1368 procfs appears to be broken when debugging on multi-processor
1369 machines. So enable software single stepping in order to avoid
1370 using the procfs interface to do next/step operations, using
1371 internal breakpoints instead.
1372
1373 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1374 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1375 make this pc address equal to the value it would have if the
1376 system stepping capability was used. Also set a new flag used
1377 to ensure that we don't readjust the PC one more time later.
1378
1379 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1380 address by DECR_PC_AFTER_BREAK when software single step is
1381 in use for this architecture, as this has already been taken
1382 care of in handle_inferior_event().
1383
1384 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1385
1386 * infrun.c (handle_inferior_event): Minor reformatting, to make
1387 a rather long condition expression easier to read.
1388
1389 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1390
1391 * Makefile.in (gdbtk.o): Move to end of file.
1392 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1393 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1394 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1395 (gdbtk-wrapper.o, gdbres.o): Ditto.
1396
1397 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1398
1399 * Makefile.in (copying.o): Separate out compile rule.
1400 (hpux-thread.o, procfs.o, signals.o): Ditto.
1401 (v850ice.o, z8k-tdep.o): Ditto.
1402 (tui-file.o): Move to TUI section.
1403 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1404 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1405
1406 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1407
1408 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1409 skip_trampoline_code, for better namespace-proofing.
1410
1411 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1412
1413 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1414
1415 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1416
1417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1418
1419 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1420 signal, check whether we hit a breakpoint before checking for a
1421 single step breakpoint. Otherwise, GDB fails to notice that a
1422 breakpoint has been hit when stepping onto a breakpoint.
1423
1424 2002-08-16 Keith Seitz <keiths@redhat.com>
1425
1426 * gdb-events.sh (clear_gdb_event_hooks): New function.
1427 * gdb-events.c: Regenerate.
1428 * gdb-events.h: Regenerate.
1429
1430 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1431
1432 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1433 not_a_sw_breakpoint.
1434 * breakpoint.h (bpstat_stop_status): Add parameter names.
1435
1436 2002-08-16 Grace Sainsbury <graces@redhat.com>
1437
1438 * remote.c (remote_insert_hw_breakpoint)
1439 (remote_remove_hw_breakpoint): Fix calculation of length field
1440 for Z-packet.
1441
1442 2002-08-15 Michael Snyder <msnyder@redhat.com>
1443
1444 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1445 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1446 (supply_fpregset): Ditto.
1447
1448 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1449 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1450 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1451 (TARGET_READ_SP): Delete.
1452 (DO_REGISTERS_INFO): Delete.
1453 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1454 Delete.
1455 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1456 from macros to functions.
1457
1458 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1459 (mips_register_convertible, mips_register_convert_to_virtual,
1460 mips_register_convert_to_raw): Make static.
1461 (mips_read_sp): New function.
1462 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1463 (mips_do_registers_info): Make static.
1464 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1465 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1466 (mips_register_convert_from_type, mips_register_convert_to_type):
1467 New functions.
1468 (mips_gdbarch_init): Set up function_start_offset,
1469 register_virtual_size, pc_in_sigtramp.
1470
1471 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1472
1473 * infcmd.c (vector_info): New function.
1474 (_initialize_infcmd): Add command "info vector".
1475 (print_vector_info): New function.
1476
1477 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1478 * gdbarch.h, gdbarch.c: Regenerate.
1479
1480 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1481
1482 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1483 ``print_all''. Only print vector registers when ``print_all''.
1484
1485 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1486
1487 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1488 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1489
1490 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1491 Add `args' parameter.
1492 * gdbarch.h, gdbarch.c: Regenerate.
1493
1494 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1495
1496 * infcmd.c (float_info): Call print_float_info.
1497 (print_float_info): New function. By default, print the
1498 floating-point registers.
1499
1500 * arch-utils.h (default_print_float_info): Delete declaration.
1501 * arch-utils.c (default_print_float_info): Delete function.
1502
1503 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1504
1505 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1506 out define.
1507
1508 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1509 FRAME.
1510
1511 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1512 * configure.host: Make i[3456]86-*-aix host obsolete.
1513 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1514 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1515 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1516 config/i386/xm-i386aix.h: Make files obsolete.
1517 * i386aix-nat.c: Make file obsolete.
1518 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1519 (i386aix-nat.o): Make target obsolete.
1520
1521 * config/i386/nm-gnu.h: Removed.
1522 * config/i386/nm-i386gnu.h: New file.
1523 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1524 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1525 Moved here from ...
1526 * config/i386/tm-i386gnu.h: ... here. Removed.
1527 * config/i386/xm-i386gnu.h: Removed.
1528 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1529 (NAT_FILE): Set to nm-i386gnu.h.
1530 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1531 * i386-tdep.c: New file.
1532 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1533 (i386gnu-tdep.o): Specify dependencies.
1534
1535 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1536
1537 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1538 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1539 Adjust a few comments to reflect reality a bit closer.
1540 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1541 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1542 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1543 target_insert_watchpoint, target_remove_watchpoint):
1544 Move defines to ...
1545 * config/i386/nm-i386sco5.h: ... here.
1546 (kernel_u_size): Add prototype. Improve a few comments and add
1547 protection against multiple inclusion.
1548
1549 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1550 out define.
1551
1552 * uw-thread.c (SP_ARG0): Define if not already defined.
1553 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1554
1555 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1556
1557 * config/i386/tm-i386.h: Don't include "regcache.h".
1558
1559 * i387-tdep.h (i387_print_float_info): New prototype.
1560 * i387-tdep.c (print_i387_value, print_i387_ext,
1561 print_i387_status_word, print_i387_control_word): Add `struct
1562 ui_file *' argument and use it for output.
1563 (i387_print_float_info): Renamed from i387_float_info. Add
1564 `struct gdbarch *' and `struct ui_file *' arguments and use the
1565 latter for output.
1566 * i386-tdep.c: Include "i387-tdep.h".
1567 (i386_gdbarch_init): Set print_float_info.
1568 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1569 (FLOAT_INFO): Remove define.
1570
1571 2002-08-13 Michael Snyder <msnyder@redhat.com>
1572
1573 * mips-tdep.c (mips_push_arguments): Rename to
1574 mips_eabi_push_arguments, and tune for EABI.
1575 (MIPS_REGS_HAVE_HOME_P): Delete.
1576 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1577 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1578 Delete references to mips_regs_have_home_p.
1579
1580 2002-08-14 Keith Seitz <keiths@redhat.com>
1581
1582 * Makefile.in (install-gdbtk): Create insight plugin directory.
1583 Install plugins.tcl file.
1584
1585 2002-08-14 Keith Seitz <keiths@redhat.com>
1586
1587 * configure.in: Move SUBDIRS to near top of the file so that
1588 --enable options may add things to it.
1589 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1590 * configure: Regenerate.
1591
1592 2002-08-13 Michael Snyder <msnyder@redhat.com>
1593
1594 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1595 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1596 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1597
1598 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1599
1600 * vax-tdep.c (vax_get_saved_register): Delete function.
1601 (vax_gdbarch_init): Update.
1602 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1603 (ns32k_gdbarch_init): Update.
1604 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1605 (alpha_gdbarch_init): Update.
1606
1607 2002-08-13 Andrew Cagney <cagney@redhat.com>
1608
1609 * regcache.c (init_regcache_descr): Overallocate the
1610 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1611 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1612 nr_raw_registers.
1613 (set_register_cached): Add range checking assertions. Use
1614 current_regcache.
1615
1616 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1617
1618 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1619 numbers for MMX registers.
1620
1621 2002-08-13 Andrew Cagney <cagney@redhat.com>
1622
1623 * i386-tdep.c (i386_gdbarch_init): Use
1624 generic_unwind_get_saved_register.
1625
1626 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1627
1628 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1629 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1630 target vector.
1631 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1632 Delete. Add comment regarding this now-deleted target method.
1633
1634 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1635
1636 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1637 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1638 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1639 real PC and the page number (if it's within the memory bank window).
1640 (m68hc11_pseudo_register_write): Likewise when saving.
1641 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1642 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1643 (m68hc11_register_raw_size): And use 32-bit for it.
1644 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1645 16K memory bank is used by the prog; also use the virtual pc.
1646
1647 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1648
1649 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1650 (m68hc11_gdbarch_init): Install it in gdbarch.
1651 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1652 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1653 (MSYMBOL_SIZE): New for documentation.
1654 (insn_return_kind): Enum to specify how a function returns.
1655 (frame_extra_info): Cleanup and record the return mode.
1656 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1657 register in address computation.
1658 (m68hc11_get_return_insn): New to obtain the return instruction used
1659 by the function.
1660 (m68hc11_frame_init_saved_regs): Take into account the return
1661 instruction used by the function for far and interrupt functions.
1662 (m68hc11_init_extra_frame_info): Take into account page register.
1663 (m68hc11_frame_args_address): Adjust according to the return mode.
1664 (show_regs): Print page register only when it's used.
1665
1666 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1667
1668 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1669 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1670 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1671 registers.
1672 (m68hc11_register_raw_size): Likewise.
1673
1674 2002-08-13 Andrew Cagney <cagney@redhat.com>
1675
1676 * i386-tdep.c (i386_register_name): Handle mmx registers.
1677 (mmx_regnum_p): New function.
1678 (i386_mmx_names): New array.
1679 (mmx_num_regs): New variable.
1680 (i386_pseudo_register_read): New function.
1681 (i386_pseudo_register_write): New function.
1682 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1683
1684 * regcache.c (regcache_raw_read_unsigned): New function.
1685 (regcache_raw_read_signed): New function.
1686 * regcache.h (regcache_raw_read_unsigned): Declare.
1687 (regcache_raw_read_signed): Declare.
1688
1689 2002-08-13 Andrew Cagney <cagney@redhat.com>
1690
1691 * regcache.c (regcache_raw_read_as_address): Delete function.
1692 (regcache_cooked_read_signed): New function.
1693 (regcache_cooked_read_unsigned): New function.
1694 * regcache.h (regcache_cooked_read_signed): Declare.
1695 (regcache_cooked_read_unsigned): Declare.
1696 (regcache_raw_read_as_address): Delete declaration.
1697
1698 * blockframe.c (generic_read_register_dummy): Use
1699 regcache_cooked_read_unsigned.
1700 * i386-tdep.c (i386_extract_struct_value_address): Use
1701 regcache_cooked_read_unsigned.
1702
1703 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1704
1705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1706 double sizes according to ELF ABI flags.
1707 (gdbarch_tdep): Record elf_flags.
1708
1709 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1710
1711 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1712 (m6812_prolog): They can appear in 68HC12 function prologue.
1713 (m68hc11_frame_chain): Cleanup.
1714
1715 2002-08-12 Andrew Cagney <cagney@redhat.com>
1716
1717 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1718 declarations.
1719 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1720 (i386_linux_register_raw_size): Delete function.
1721 (i386_linux_init_abi): Update.
1722 * i386-tdep.c (i386_register_raw_size): Delete function.
1723 (i386_register_byte): Delete function.
1724 (i386_gdbarch_init): Update.
1725 (i386_register_size): Delete array.
1726 (i386_register_offset): Delete array.
1727
1728 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1729 (REGISTER_RAW_SIZE): Delete macro.
1730 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1731 (REGISTER_BYTE): Delete macro.
1732
1733 2002-08-11 Aidan Skinner <aidan@velvet.net>
1734
1735 * ada-lang.c (ada_lookup_partial_symbol)
1736 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1737 prototype names so that grep ^func works properly.
1738
1739 * ada-lang.c (ada_array_element_type)
1740 (ada_lookup_partial_symbol): Fix typos in parameter list.
1741
1742 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1743 Fix prototype names so that grep ^func works properly.
1744
1745 2002-08-10 Andrew Cagney <cagney@redhat.com>
1746 Elena Zannoni <ezannoni@redhat.com>
1747 Martin M. Hunt <hunt@redhat.com>
1748
1749 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1750 (build_builtin_type_vec128i): Set the vector bit.
1751 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1752 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1753 (build_builtin_type_vec64): New function.
1754 (build_builtin_type_vec64i): New function.
1755 (build_gdbtypes): Initialize builtin_type_vec64 and
1756 builtin_type_vec64i.
1757
1758 2002-08-09 Andrew Cagney <cagney@redhat.com>
1759
1760 * regcache.c (regcache_dump): Compare the register offset
1761 with REGISTER_BYTE.
1762 * arch-utils.c (generic_register_byte): New function.
1763 * arch-utils.h (generic_register_byte): Declare.
1764 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1765 * gdbarch.h, gdbarch.c: Regenerate.
1766
1767 2002-08-09 Andrew Cagney <cagney@redhat.com>
1768
1769 * regcache.c: Include "gdbcmd.h"
1770 (_initialize_regcache): Add commands "maintenance print
1771 registers", "maintenance print raw-registers" and "maintenance
1772 print cooked-registers".
1773 (enum regcache_dump_what): Define.
1774 (dump_endian_bytes): New function.
1775 (regcache_dump): New function.
1776 (regcache_print): New function.
1777 (maintenance_print_registers): New function.
1778 (maintenance_print_raw_registers): New function.
1779 (maintenance_print_cooked_registers): New function.
1780 * Makefile.in (regcache.o): Update dependencies.
1781
1782 2002-08-09 Michael Snyder <msnyder@redhat.com>
1783
1784 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1785 (mips_push_arguments): Correct some comments. Use paddr_nz
1786 for printing addresses in debug output. Replace static
1787 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1788 (mips_n32n64_push_arguments): New function, cloned from
1789 mips_push_arguments and tuned for the n32/n64 ABI.
1790 (mips_push_register): Buffer needs dynamic allocation.
1791 (mips_print_register): Ditto.
1792 (do_gp_register_row): Ditto.
1793 (mips_store_return_value): Ditto.
1794 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1795
1796 2002-08-09 Don Howard <dhoward@redhat.com>
1797
1798 * memattr.c (mem_info_command): Print special case of upper bound
1799 as max CORE_ADDR + 1.
1800
1801 2002-08-08 Michael Snyder <msnyder@redhat.com>
1802
1803 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1804 returns structs by ref if they're too big to fit in two registers.
1805
1806 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1807
1808 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1809 saved regs value.
1810 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1811 mips_find_saved_regs().
1812 (mips_pop_frame): Likewise.
1813
1814 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1815
1816 * blockframe.c (frame_saved_regs_register_unwind): Revise
1817 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1818 frames are in use.
1819
1820 2002-08-09 Grace Sainsbury <graces@redhat.com>
1821
1822 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1823 T-packets; the 'a' is not taken as a register number.
1824 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1825 (remote_stopped_data_address): New functions; add to target
1826 vector.
1827 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1828 prototypes to match other implementations of this
1829 function. replace integer argument with pointer -- the length
1830 field in the Z-packet is the length of what is pointed to or 1 if
1831 pointer is null. Add to target vector.
1832 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1833 target vector.
1834
1835 From Mark Salter:
1836 * remote.c (remote_wait): Add support to extract optional
1837 watchpoint information from T-packet. Ignore unrecognized
1838 optional info in T-packet.
1839 (remote_async_wait): Ditto.
1840
1841 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1842
1843 * cli/cli-dump.c: Change fopen modes to use binary open modes
1844 as defined in include/fopen-bin.h throughout.
1845
1846 2002-08-08 Michael Snyder <msnyder@redhat.com>
1847
1848 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1849
1850 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1851
1852 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1853 assertion failure by returning early after a warning.
1854
1855 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1856
1857 * mips-tdep.c (mips_find_saved_regs): Make static.
1858 (mips_frame_init_saved_regs): New function.
1859 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1860 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1861 (mips_find_saved_regs): Delete declaration.
1862
1863 2002-08-08 Grace Sainsbury <graces@redhat.com>
1864
1865 * remote.c (remote_wait, remote_async_wait): Change
1866 thread_num from int to ULONGEST.
1867 (unpack_varlen_hex): Change result parameter from
1868 int * to ULONGEST *.
1869
1870 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1871
1872 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1873 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1874 powerpc*-*-*.
1875 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1876
1877 2002-08-08 Andrew Cagney <cagney@redhat.com>
1878
1879 * gcore.c (override_derive_stack_segment): Delete variable.
1880 (preempt_derive_stack_segment): Delete function.
1881 (derive_stack_segment): Delete function.
1882 (default_derive_stack_segment): Renamed to derive_stack_segment.
1883 (override_derive_heap_segment): Delete variable.
1884 (preempt_derive_heap_segment): Delete function.
1885 (derive_heap_segment): Delete function.
1886 (default_derive_heap_segment): Rename to derive_heap_segment.
1887
1888 2002-08-06 Michael Snyder <msnyder@redhat.com>
1889
1890 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1891 * mips-tdep.c (mips_EABI_use_struct_convention,
1892 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1893 New functions. (mips_use_struct_convention): Delete.
1894 (mips_gdbarch_init): set use_gdbarch_convention.
1895
1896 2002-08-06 Michael Snyder <msnyder@redhat.com>
1897
1898 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1899 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1900 mips_o32_reg_struct_has_addr): New functions.
1901 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1902
1903 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1904
1905 * regcache.c (pseudo_register): Delete function.
1906 (fetch_register): Delete function.
1907 (store_register): Delete function.
1908 (regcache_raw_read, legacy_read_register_gen): Use
1909 target_fetch_registers instead of fetch_register.
1910 (legacy_write_register_gen, regcache_raw_write): Use
1911 target_store_register instead of store_register.
1912 (write_register_bytes): Ditto.
1913
1914 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1915 (STORE_PSEUDO_REGISTER): Delete.
1916 * gdbarch.h, gdbarch.c: Regenerate.
1917
1918 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1919
1920 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1921 write dump file binary.
1922
1923 2002-08-05 Michael Snyder <msnyder@redhat.com>
1924
1925 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1926 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1927 (mips_gdbarch_init): Set N32 target to be mips64.
1928
1929 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1930
1931 * frame.c (find_saved_register): Break out of loop once saved
1932 register address is found. Don't mention sparc in loop comment
1933 anymore.
1934
1935 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1936
1937 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1938 mips_default_saved_regsize to 8.
1939
1940 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1941
1942 * gcore.c: Do not include <sys/procfs.h>.
1943 * Makefile.in (gcore.o): Update dependencies.
1944
1945 2002-08-06 Andrew Cagney <cagney@redhat.com>
1946
1947 * configure.tgt: Make arc-*-* obsolete.
1948 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1949 * MAINTAINERS: Make arc-elf obsolete.
1950 * arc-tdep.c: Make file obsolete.
1951 * config/arc/arc.mt: Ditto.
1952 * config/arc/tm-arc.h: Ditto.
1953
1954 2002-08-05 Theodore A. Roth <troth@verinet.com>
1955
1956 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1957
1958 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1959
1960 * mcore-tdep.c (mcore_gdbarch_init): Use
1961 generic_unwind_get_saved_register instead of
1962 generic_get_saved_register.
1963 * v850-tdep.c (v850_gdbarch_init): Ditto.
1964 * frv-tdep.c (frv_gdbarch_init): Ditto.
1965 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1966 * s390-tdep.c (s390_gdbarch_init): Ditto.
1967 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1968 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1969 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1970
1971 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1972
1973 * objfiles.h: Add missing #include "symfile.h"
1974
1975 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1976
1977 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1978
1979 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1980 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1981 of FIELD_BITSIZE.
1982
1983 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1984
1985 * NEWS: Cleanup and nitpick.
1986
1987 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1988
1989 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1990
1991 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1992
1993 * Makefile.in (gdbtk-bp.o): Update dependencies.
1994 (gdbtk-register.o): Ditto.
1995 (gdbtk-varobj.o): Ditto.
1996
1997 2002-08-03 Andrew Cagney <cagney@redhat.com>
1998
1999 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2000 m68hc11_fetch_pseudo_register.
2001 (m68hc11_pseudo_register_write): Replace
2002 m68hc11_store_pseudo_register.
2003 (m68hc11_gdbarch_init): Update.
2004
2005 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2006
2007 * gdbarch.sh: Include "gdb_string.h".
2008 * gdbarch.c: Regenerate.
2009
2010 * regcache.c: Include "gdb_string.h".
2011 * ax-general.c: Ditto.
2012 * varobj.c: Ditto.
2013 * std-regs.c: Ditto.
2014 * fbsd-proc.c: Ditto.
2015 * thread.c: Ditto.
2016
2017 * Makefile.in (regcache.o): Update dependencies.
2018 (thread.o, gdbarch.o): Ditto.
2019 (ax-general.o, gdbarch.o): Ditto.
2020 (varobj.o, std-regs.o): Ditto.
2021 (fbsd-proc.o): Specify dependencies.
2022
2023 2002-08-02 Andrew Cagney <cagney@redhat.com>
2024
2025 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2026 regnum.
2027 (regcache_cooked_write): Ditto.
2028
2029 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2030
2031 * regcache.c (regcache_cooked_read): New function.
2032 (regcache_cooked_write): New function.
2033 (read_register_gen): Rewrite using regcache_cooked_read.
2034 (write_register_gen): Rewrite using regcache_cooked_write.
2035
2036 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2037 Declare.
2038
2039 2002-08-02 Andrew Cagney <cagney@redhat.com>
2040
2041 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2042 Replace the architecture methods register_read and register_write.
2043 * gdbarch.h, gdbarch.c: Regenerate.
2044 * regcache.c (init_regcache_descr): Update.
2045 (read_register_gen): Update.
2046 (write_register_gen): Update.
2047 (supply_register): Update comment.
2048
2049 * sh-tdep.c (sh_gdbarch_init): Update.
2050 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2051 `regcache' and `gdbarch' parameters. Make `buffer' a void
2052 pointer. Update code.
2053 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2054 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2055 void pointer. Update code.
2056 (sh64_register_write): Delete.
2057 (sh4_register_read): Delete.
2058 (sh64_register_read): Delete.
2059 (sh4_register_write): Delete.
2060 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2061 void pointer, `to' parameter a void pointer.
2062 (sh_sh64_register_convert_to_raw): Ditto.
2063
2064 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2065
2066 * mips-tdep.c (mips_register_virtual_type): Use architecture
2067 invariant return values.
2068
2069 2002-08-01 Andrew Cagney <cagney@redhat.com>
2070
2071 * linux-proc.c: Include "gdb_string.h".
2072 * Makefile.in (linux-proc.o): Update dependency list.
2073
2074 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2075
2076 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2077 comment.
2078
2079 2002-08-01 Grace Sainsbury <graces@redhat.com>
2080
2081 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2082 to_insert_watchpoint, to_remove_watchpoint,
2083 to_stopped_by_watchpoint, to_stopped_data_address,
2084 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2085 target vecctor. Define their corresponding macros so they call
2086 them.
2087
2088 * target.c: Add default and debug versions of for
2089 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2090 to_insert_watchpoint, to_remove_watchpoint,
2091 to_stopped_by_watchpoint, to_stopped_data_address,
2092 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2093
2094 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2095
2096 * mips-tdep.c (mips_register_virtual_type): New function.
2097 (mips_gdbarch_init): Register mips_register_virtual_type()
2098 with gdbarch machinery.
2099 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2100 this file instead of tm-bigmips.h.
2101 (MIPS_REGSIZE): Delete this macro.
2102 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2103 multiarch version in mips-tdep.c will be found.
2104
2105 2002-08-01 Andrew Cagney <cagney@redhat.com>
2106
2107 * NEWS: Menion that CHILL has been made obsolete.
2108
2109 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2110 * stabsread.c (read_range_type): Ditto.
2111 * gdbtypes.h: Ditto.
2112 * language.c (binop_type_check): Ditto.
2113 (binop_result_type): Ditto.
2114 (integral_type): Ditto.
2115 (character_type): Ditto.
2116 (string_type): Ditto.
2117 (boolean_type): Ditto.
2118 (structured_type): Ditto.
2119 (lang_bool_type): Ditto.
2120 (binop_type_check): Ditto.
2121 * language.h (_LANG_chill): Ditto.
2122 * dwarfread.c (set_cu_language): Ditto.
2123 * dwarfread.c (CHILL_PRODUCER): Ditto.
2124 * dwarfread.c (handle_producer): Ditto.
2125 * expression.h (enum exp_opcode): Ditto.
2126 * eval.c: Ditto for comments.
2127 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2128 * expprint.c (print_subexp): Ditto.
2129 (print_subexp): Ditto.
2130 * valops.c (value_cast): Ditto.
2131 (search_struct_field): Ditto.
2132 * value.h (COERCE_VARYING_ARRAY): Ditto.
2133 * symfile.c (init_filename_language_table): Ditto.
2134 (add_psymbol_with_dem_name_to_list): Ditto.
2135 * valarith.c (value_binop): Ditto.
2136 (value_neg): Ditto.
2137 * valops.c (value_slice): Ditto.
2138 * symtab.h (union language_specific): Ditto.
2139 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2140 (SYMBOL_DEMANGLED_NAME): Ditto.
2141 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2142 * defs.h (enum language): Ditto.
2143 * symtab.c (got_symtab): Ditto.
2144 * utils.c (fprintf_symbol_filtered): Ditto.
2145
2146 * ch-typeprint.c: Make file obsolete.
2147 * ch-valprint.c: Make file obsolete.
2148 * ch-lang.h: Make file obsolete.
2149 * ch-exp.c: Make file obsolete.
2150 * ch-lang.c: Make file obsolete.
2151
2152 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2153 CHILL_LIB.
2154 (TARGET_FLAGS_TO_PASS): Ditto.
2155 (CHILLFLAGS): Obsolete.
2156 (CHILL): Obsolete.
2157 (CHILL_FOR_TARGET): Obsolete.
2158 (CHILL_LIB): Obsolete.
2159 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2160 ch-valprint.c.
2161 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2162 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2163 ch-lang.o.
2164 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2165 targets.
2166
2167 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2168
2169 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2170 This does not change anything at the moment, but will be helpful
2171 later when full Ada support is integrated.
2172
2173 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2174
2175 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2176 help message.
2177
2178 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2179
2180 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2181 and save it in a local variable. Use variable in later test.
2182
2183 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2184
2185 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2186 test. (Thanks to Daniel Jacobowitz.)
2187
2188 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2189
2190 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2191 (mips_abi_strings): Add "n64".
2192 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2193
2194 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2195
2196 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2197 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2198
2199 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2200
2201 * utils.c (host_pointer_to_address, address_to_host_pointer):
2202 Use gdb_assert() instead of explicit call to internal_error().
2203
2204 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2205
2206 * Makefile.in (rs6000-nat.o): Update dependencies.
2207
2208 From Nicholas Duffek:
2209 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2210 (aix-thread.o): New rule.
2211 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2212 * config/powerpc/aix432.mh: New file.
2213
2214 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2217 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2218 (fetch_core_registers, ppc_linux_supply_gregset)
2219 (ppc_linux_supply_fpregset): New functions.
2220 (ppc_linux_regset_core_fns): New.
2221 (_initialize_ppc_linux_tdep): Call add_core_fns.
2222 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2223 and ppc_linux_supply_gregset.
2224 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2225 (supply_fpregset): Call ppc_linux_supply_fpregset.
2226 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2227 corelow.o.
2228 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2229
2230 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2231
2232 * symtab.c (lookup_symbol): Demangle before lowercasing.
2233
2234 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2235
2236 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2237 declaration.
2238 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2239 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2240 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2241 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2242 "gdb_string.h".
2243 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2244 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2245 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2246 (avr-tdep.o, mon960-rom.o): Ditto.
2247 (aout_stabs_gnu_h): Define.
2248 (symtab_h): Remove $(gdb_obstack_h).
2249
2250 2002-07-30 Jim Blandy <jimb@redhat.com>
2251
2252 Patch from David Carlton <carlton@math.stanford.edu>:
2253 * gdbinit.in: Move the `dir' commands that add GDB's own source
2254 directory to the search path to the end, so that the `gdb' source
2255 directory will be searched first.
2256
2257 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2258
2259 * gdb_obstack.h: New file.
2260 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2261 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2262 * objfiles.h: Include "gdb_obstack.h".
2263 * Makefile.in (gdb_obstack_h): Define.
2264 (symtab_h): Add $(gdb_obstack_h).
2265 (objfiles_h): Add $(gdb_obstack_h).
2266
2267 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2268 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2269 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2270 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2271 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2272 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2273 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2274 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2275
2276 * Makefile.in (bcache.o): Update dependencies.
2277 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2278 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2279 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2280 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2281 (stabsread.o, symfile.o, symmisc.o): Ditto.
2282 (symtab.o, typeprint.o, macroexp.o): Ditto.
2283 (macrotab.o, mdebugread.o): Ditto.
2284 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2285 (coff_ecoff_h, aout_aout64_h): Define.
2286 (aout_stabs_gnu_h, libaout_h): Define.
2287
2288 2002-07-29 Andrew Cagney <cagney@redhat.com>
2289
2290 * regcache.c (struct regcache_descr): Rename nr_registers to
2291 nr_cooked_registers. Revise comments describing the structure
2292 member fields.
2293 (init_regcache_descr): Update.
2294 (init_legacy_regcache_descr): Update.
2295 (read_register_gen, write_register_gen): When a cooked register in
2296 the raw register range, directly access the value from the raw
2297 register cache.
2298
2299 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2300
2301 * z8k-tdep.c: Do not include "obstack.h".
2302 * h8300-tdep.c, h8500-tdep.c: Ditto.
2303 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2304 * valprint.c, v850-tdep.c: Ditto.
2305 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2306 * mn10200-tdep.c: Ditto.
2307
2308 * Makefile.in (z8k-tdep.o): Update dependencies.
2309 (m68hc11-tdep.o, valprint.o): Ditto.
2310 (v850-tdep.o, d10v-tdep.o): Ditto.
2311 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2312 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2313 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2314 (sh_opc_h, gdb_sim_sh_h): Define.
2315 (elf_sh_h, elf_bfd_h): Define.
2316 (opcode_m68hc11_h): Define.
2317 (OPCODES_SRC, OPCODES_DIR): define.
2318 (OPCODES): Use $(OPCODES_DIR).
2319 (gdb_sim_d10v_h): Rename sim_d10v_h.
2320 (gdb_sim_arm_h): Rename sim_arm_h.
2321
2322 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2323
2324 * utils.c (host_pointer_to_address, address_to_host_pointer):
2325 Change internal_error() message to indicate function responsible
2326 for the error.
2327
2328 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2329
2330 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2331 calls to local_hex_string_custom().
2332
2333 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2334
2335 * irix5-nat.c: Move IRIX shared library support from here...
2336 * solib-irix.c: ...to here. Revised substantially to work with
2337 generic solib framework.
2338
2339 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2340 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2341 * mips-irix-tdep.c: New file.
2342
2343 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2344 (mips-irix-tdep.o, solib-irix.o): New rules.
2345 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2346 solib-irix.o.
2347 * config/mips/irix6.mt (TDEPFILES): Likewise.
2348 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2349
2350 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2351
2352 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2353 disabled (via ``#if 0'') includes.
2354
2355 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2356
2357 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2358 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2359 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2360 Add support for the fpscr register.
2361 * rs6000-nat.c (regmap, fetch_inferior_registers)
2362 (store_inferior_registers, fetch_core_registers): Likewise.
2363
2364 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2365
2366 * rs6000-nat.c (language.h): Include.
2367 (special_regs): Delete this array.
2368 (regmap): New function.
2369 (fetch_register, store_register): Use regmap() to map gdb
2370 register numbers to ptrace register numbers. Also, use
2371 outputs from regmap() to make decisions regarding type of
2372 ptrace() call to make. In particular, don't compare against
2373 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2374 (fetch_inferior_registers, store_inferior_registers): Where
2375 possible, obtain register numbers from tdep struct. Don't
2376 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2377 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2378 (LAST_UISA_SP_REGNUM): Delete.
2379
2380 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2381
2382 * rs6000-nat.c (ppc-tdep.h): Include.
2383 (fetch_registers, store_register, fetch_core_registers): Don't
2384 access registers[] directly. Instead, use supply_register() or
2385 regcache_collect() as appropriate.
2386 (find_toc_address): Format hex address with local_hex_string().
2387
2388 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2389
2390 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2391 bfd/elf32-frv.c.
2392
2393 2002-07-24 Tom Tromey <tromey@redhat.com>
2394
2395 * jv-exp.y: Marked all strings with _().
2396 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2397 internal_error.
2398 (MethodInvocation, CastExpression, parse_number, yyerror,
2399 java_type_from_name, push_expression_name, yylex): Typo fixes.
2400
2401 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2402
2403 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2404 (tee_file_flush, tee_file_write, tee_file_fputs)
2405 (tee_file_isatty): New.
2406 * ui-file.h (tee_file_new): Add prototype.
2407
2408 2002-07-24 Aidan Skinner <aidan@velvet.net>
2409
2410 * ada-lang.c: Change k&r style function definitions to prototyped
2411 form.
2412 * ada-typeprint.c: Change k&r style function definitions to prototyped
2413 form.
2414 * ada-valprint.c: Change k&r style function definitions to prototyped
2415 form.
2416
2417 2002-07-24 Andrew Cagney <cagney@redhat.com>
2418
2419 * README: Remove reference to remote-bug.
2420 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2421 remote-bug.c.
2422 (m88k-nat.o): Delete rule.
2423 (m88k-tdep.o): Delete rule.
2424 (remote-bug.o): Delete rule.
2425 * MAINTAINERS: Mark as obsolete.
2426 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2427 * m88k-tdep.c: Make file obsolete.
2428 * config/m88k/m88k.mh: Ditto.
2429 * config/m88k/delta88v4.mh: Ditto.
2430 * config/m88k/delta88v4.mt: Ditto.
2431 * config/m88k/delta88.mt: Ditto.
2432 * config/m88k/delta88.mh: Ditto.
2433 * remote-bug.c: Ditto.
2434 * config/m88k/tm-delta88.h: Ditto.
2435 * config/m88k/nm-delta88v4.h: Ditto.
2436 * config/m88k/xm-delta88.h: Ditto.
2437 * config/m88k/xm-dgux.h: Ditto.
2438 * config/m88k/tm-m88k.h: Ditto.
2439 * config/m88k/nm-m88k.h: Ditto.
2440 * config/m88k/tm-delta88v4.h: Ditto.
2441 * m88k-nat.c: Ditto.
2442 * cxux-nat.c: Ditto.
2443 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2444 and m88*-*-* obsolete.
2445 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2446 m88*-*-* obsolete.
2447
2448 2002-07-24 Andrew Cagney <cagney@redhat.com>
2449
2450 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2451 constant. Same for local pointer variables.
2452 (extract_signed_integer): Ditto.
2453 * defs.h (extract_unsigned_integer): Update.
2454 (extract_signed_integer): Update.
2455
2456 2002-07-24 Andrew Cagney <cagney@redhat.com>
2457
2458 * regcache.c (regcache_raw_write): Change buf parameter to a
2459 constant void pointer.
2460 (regcache_raw_read): Change buf parameter to a void pointer.
2461 (legacy_write_register_gen): Change myaddr parameter a constant
2462 void pointer.
2463 (supply_register): Change val parameter to a const void pointer.
2464 * regcache.h (regcache_raw_write): Update declaration.
2465 (regcache_raw_read): Update declaration.
2466 (supply_register): Update declaration.
2467
2468 2002-07-24 Tom Tromey <tromey@redhat.com>
2469
2470 * defs.h (gdb_readline_wrapper): Declare.
2471 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2472 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2473 * top.c (gdb_readline_wrapper): New function.
2474 (command_line_input): Use it.
2475
2476 2002-07-24 Andrew Cagney <cagney@redhat.com>
2477
2478 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2479 regcache_read and regcache_write.
2480 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2481 * regcache.c: Update.
2482 * sh-tdep.c (sh64_push_arguments): Update comment.
2483 (sh_pseudo_register_read): Update.
2484 (sh_pseudo_register_write): Update.
2485 (sh4_register_read): Update.
2486 (sh4_register_write): Update.
2487 (sh64_pseudo_register_read): Update.
2488 (sh64_pseudo_register_write): Update.
2489 (sh64_register_read): Update.
2490 (sh64_register_write): Update.
2491 * i386-tdep.c (i386_extract_return_value): Update.
2492 (i386_extract_struct_value_address): Update.
2493 (i386_extract_return_value): Update.
2494 * blockframe.c (generic_read_register_dummy): Update.
2495 (generic_call_dummy_register_unwind): Update
2496 * infrun.c (write_inferior_status_register): Update.
2497
2498 2002-07-23 Jim Blandy <jimb@redhat.com>
2499
2500 * parser-defs.h (expression_context_pc): Make this extern.
2501 (Thanks to Michael Snyder.)
2502
2503 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2504
2505 GDB 5.2.1 released from 5.2 branch.
2506 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2507 * README: Update to mention 5.2.1.
2508
2509 2002-07-23 Mark Salter <msalter@redhat.com>
2510
2511 * remote.c (remote_read_bytes): Fix check for error.
2512
2513 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2514
2515 * aix-thread.c (language.h): Include.
2516 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2517 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2518 Print newlines at end of debug messages.
2519 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2520 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2521
2522 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2523
2524 * aix-thread.c (ppc-tdep.h): Include.
2525 (special_register_p): New function.
2526 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2527 (store_regs_user_thread): Use register number information from
2528 gdbarch_tdep struct instead of hardcoded offsets relative to
2529 FIRST_UISA_SP_REGNUM.
2530 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2531 special_register_p() instead of using FPLAST_REGNUM and
2532 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2533 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2534 will be MQ's register number.
2535
2536 2002-07-22 Michael Snyder <msnyder@redhat.com>
2537
2538 * aix-thread.c (ops): Rename to aix_thread_ops.
2539 (base_ops): Rename to base_target.
2540 (ops_attach): Rename to aix_thread_attach.
2541 (ops_detach): Rename to aix_thread_detach.
2542 (ops_resume): Rename to aix_thread_detach.
2543 (ops_wait): Rename to aix_thread_wait.
2544 (ops_kill): Rename to aix_thread_kill.
2545 (init_ops): Rename to init_aix_thread_ops.
2546 (ops_fetch_register): Rename to aix_thread_fetch_register.
2547 (ops_store_register): Rename to aix_thread_store_register.
2548 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2549 (ops_thread_alive): Rename to aix_thread_thread_alive.
2550 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2551 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2552 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2553 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2554 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2555 (store_regs_lib): Rename to store_regs_user_thread.
2556 (store_regs_kern): Rename to store_regs_kernel_thread.
2557
2558 2002-07-22 Michael Snyder <msnyder@redhat.com>
2559
2560 * aix-thread.c (ops_prepare_to_store): Eliminate.
2561 (init_ops): Don't initialize ops.prepare_to_store.
2562 (store_regs_kern): Pre-fetch register buffers from child,
2563 because some registers may not be in the cache. Copy
2564 regs from register cache only if they are cached.
2565 (store_regs_lib): Copy regs from register cache only
2566 if they are cached.
2567 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2568 fill_gprs64): Ditto.
2569
2570 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2571
2572 * aix-thread.c (gdb_assert.h): Include.
2573 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2574 register sizes (from register cache) match size of buffer holding
2575 register data.
2576 (fill_sprs32): Change parameter types to match those in the ptrace()
2577 buffer.
2578 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2579 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2580
2581 2002-07-22 Michael Snyder <msnyder@redhat.com>
2582
2583 * aix-thread.c (supply_sprs64): Cosmetic change.
2584 (supply_sprs32): Cosmetic change.
2585 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2586 (fill_sprs64): Use regcache_collect instead of read_register.
2587 (store_regs_lib): Use regcache_collect instead of
2588 read_register. Use fill_sprs32 instead of fill_sprs64,
2589 if debugging a 32-bit architecture.
2590 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2591 out of the register cache, instead of passing a pointer into
2592 the register cache directly to ptrace. Use regcache_collect
2593 insteaad of read_register.
2594 (ops_prepare_to_store): Use target_read_registers instead
2595 of read_register_bytes.
2596
2597 2002-07-20 Aidan Skinner <aidan@velvet.net>
2598
2599 * MAINTAINERS: Add self under write after approval.
2600
2601 2002-07-20 Aidan Skinner <aidan@velvet.net>
2602
2603 * ada-tasks.c: Change k&r style function definitions to prototyped
2604 form.
2605
2606 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2607
2608 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2609 * x86-64-tdep.c: Include "objfiles.h".
2610 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2611 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2612
2613 2002-07-17 Michal Ludvig <michal@suse.cz>
2614
2615 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2616 (update_context): Initialise cfa variable.
2617
2618 2002-07-17 Michael Snyder <msnyder@redhat.com>
2619
2620 * aix-thread.c: Shorten some long lines.
2621 Bring comments into line with code spec.
2622
2623 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2624
2625 * infrun.c: Re-indent using gdb_indent.sh.
2626
2627 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2628
2629 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2630 Leave the indentation temporarily untouched, to minimize the diffs.
2631
2632 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2633
2634 * stabsread.c: Make os9k sections of the code obsolete,
2635 for real this time.
2636 * stabsread.h: Make os9k sections of the code obsolete.
2637
2638 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2639
2640 * linux-low.c (regsets_store_inferior_registers): Add free()
2641 at the end of a loop to prevent memory leak.
2642 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2643 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2644 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2645 line a comment.
2646 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2647
2648 2002-07-17 Jim Blandy <jimb@redhat.com>
2649
2650 * macrocmd.c (info_macro_command): Remove newline from error
2651 message.
2652
2653 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2654
2655 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2656 (sh_gdbarch_init): Use it for sh-dsp.
2657
2658 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2659
2660 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2661 64-bit DWARF2 format.
2662
2663 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2664
2665 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2666 <sys/proc.h> when not available.
2667
2668 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2669
2670 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2671 * stabsread.c: Make os9k sections of the code obsolete.
2672 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2673 * config/i386/i386os9k.mt: Make file obsolete.
2674 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2675 (COMMON_OBS): Remove os9kread.o
2676 (SFILES): Remove os9kread.c.
2677 (os9kread.o, remote-os9k.o): Make target obsolete.
2678 * remote-os9k.c: Make file obsolete.
2679 * os9kread.c: Make file obsolete.
2680 * Makefile.in
2681
2682 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2683
2684 * NEWS: Mention that the FR30 has been made obsolete.
2685 * fr30-tdep.c: Make file obsolete.
2686 * config/fr30/tm-fr30.h: Ditto.
2687 * config/fr30/fr30.mt: Ditto.
2688 * configure.tgt: Make fr30-*-elf obsolete.
2689 * MAINTAINERS: Make fr30-elf obsolete.
2690
2691 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2692
2693 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2694 found is not inside a section.
2695
2696 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2697
2698 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2699 strerror().
2700 (pdc_realloc): Use xrealloc() instead of realloc().
2701
2702 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2703
2704 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2705 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2706 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2707 macros.
2708
2709 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2710
2711 * aix-thread.c (ptrace_check): Eliminate goto.
2712 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2713 problem.
2714
2715 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2716
2717 * aix-thread.c (gdbcmd.h): Include.
2718 (DEBUG, DBG, DBG2, dbg): Eliminate.
2719 (debug_aix_thread): New static global.
2720 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2721 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2722 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2723 invocations to DBG and DBG2 macros to test against
2724 ``debug_aix_thread'' and call fprintf_unfiltered().
2725 (_initialize_aix_thread): Add new command "set debug aix-thread".
2726
2727 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2728
2729 From Gerhard Tonn <TON@de.ibm.com>:
2730 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2731 instead of supply_register.
2732
2733 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2734
2735 * dwarf2cfi.c: Include "gdb_assert.h".
2736 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2737 non-NULL.
2738 (update_context): Do not use __func__. Add missing ``break''.
2739 (update_context): Do not use __func__.
2740
2741 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2742
2743 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2744 and its setting. Set gdbarch instruction printing functions
2745 directly. For non-rs6000 case use new function
2746 gdb_print_insn_powerpc.
2747 (gdb_print_insn_powerpc): New function.
2748
2749 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2750
2751 * NEWS: Mention that the d30v has been marked obsolete.
2752 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2753 * configure.tgt: Mark d30v-*-* as obsolete.
2754 * d30v-tdep.c: Mark file as obsolete.
2755 * config/d30v/d30v.mt: Ditto.
2756 * config/d30v/tm-d30v.h: Ditto.
2757
2758 2002-07-13 Aidan Skinner <aidan@velvet.net>
2759
2760 * ada-tasks.c (add_task_entry): replace calls to
2761 malloc() with xmalloc
2762 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2763
2764 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2765 ada_finish_decode_line_1, all_sals_for_line
2766 ada_breakpoint_rewrite): replace calls to free() with xfree()
2767
2768 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2769
2770 From Nicholas Duffek (with minor changes by Martin Hunt,
2771 Louis Hamilton, and Kevin Buettner):
2772 * aix-thread.c: New file.
2773
2774 2002-07-12 Petr Sorfa <petrs@caldera.com>
2775
2776 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2777 complaint for invalid attribute class or form.
2778 (read_func_scope): DW_AT_frame_base
2779 better handling of DW_AT_block*.
2780 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2781 better handling of DW_AT_block*.
2782 (read_common_block): DW_AT_location
2783 better handling of DW_AT_block*.
2784 (read_partial_die): DW_AT_location better handling
2785 of DW_AT_block*.
2786 (new_symbol): DW_AT_external better handling of
2787 DW_AT_block*. Proper initialization of variable
2788 "addr".
2789 (attr_form_is_block): New function that returns true
2790 if the attribute's form is of DW_FORM_block*.
2791
2792 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2793
2794 * valops.c (find_method_list): Remove comment about
2795 removed STATIC_MEMFUNCP argument.
2796 (value_find_oload_method_list): Likewise.
2797
2798 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2799
2800 From Nicholas Duffek:
2801 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2802 target_new_objfile_hook.
2803
2804 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2805
2806 From Nicholas Duffek:
2807 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2808 csect.
2809
2810 2002-07-12 Andrew Cagney <cagney@redhat.com>
2811
2812 * MAINTAINERS: Mention --enable-sim-build-warnings.
2813 (m68hc11-elf): Disable sim build warnings.
2814 (m32r-elf): Mark as broken obsolete candidate.
2815 (x86_64-linux-gnu): Mark as buildable with -Werror.
2816 (arm-elf): Change -w to ``,'' which enables warnings but not
2817 -Werror.
2818
2819 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2820
2821 * bcache.h: Update copyright.
2822 (struct bstring, struct bcache): Move definition to "bcache.c".
2823 Replaced by opaque declaration.
2824 (bcache_xfree): Replace free_bcache.
2825 (bcache_xmalloc, bcache_memory_used): Declare.
2826
2827 * bcache.c: Update copyright.
2828 (struct bstring, struct bcache): Moved to here from "bcache.h".
2829 Update comments.
2830 (bcache_xmalloc, bcache_memory_used): New functions.
2831 (bcache_xfree): Replace function free_bcache.
2832
2833 * Makefile.in (objfiles.o): Add $(bcache_h).
2834 (objfiles_h): Remove $(bcache_h).
2835 (symfile.o): Add $(bcache_h).
2836
2837 * symmisc.c: Update copyright.
2838 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2839 (print_objfile_statistics): Use bcache_memory_used.
2840
2841 * symfile.c: Include "bcache.h".
2842 (reread_symbols): Use bcache_xfree.
2843 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2844 (add_psymbol_to_list): Pass psymbol_cache by value.
2845 (add_psymbol_with_dem_name_to_list): Ditto.
2846
2847 * objfiles.h: Update copyright.
2848 (struct bcache): Declare opaque. Do not include "bcache.h".
2849 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2850 bcache'' pointers.
2851 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2852
2853 * objfiles.c: Include "bcache.h". Update copyright.
2854 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2855 macro_cache.
2856 (free_objfile): Use bcache_xfree.
2857
2858 2002-07-11 Grace Sainsbury <graces@redhat.com>
2859
2860 * monitor.c (monitor_fetch_register): Make name a constant.
2861 (monitor_store_register): Same.
2862
2863 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2864
2865 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2866 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2867 (finish_block) For non-function blocks, hash the symbol table. For
2868 function blocks, mark the symbol table as unhashed.
2869 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2870 (msymbol_hash_iw): Likewise.
2871 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2872 value.
2873 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2874 (lookup_minimal_symbol): Likewise for both.
2875 * symtab.h (struct block): Add `hashtable' flag. Comment the
2876 hashtable.
2877 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2878 (ALL_BLOCK_SYMBOLS): Update.
2879 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2880 (struct symbol): Add `hash_next' pointer.
2881 * symtab.c (lookup_block_symbol): Search using the hash table when
2882 possible.
2883 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2884 (search_symbols, find_addr_symbol): Likewise.
2885
2886 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2887 (read_dst_symtab): Likewise.
2888 * jv-lang.c (get_java_class_symtab): Likewise.
2889 * mdebugread.c: Include "gdb_assert.h".
2890 (shrink_block): Assert that the block being modified is not hashed.
2891 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2892 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2893 symbols.
2894 (dump_symtab): Recognize hashed blocks.
2895 * printcmd.c (print_frame_args): Assert that function blocks do not
2896 have hashed symbol tables.
2897 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2898 (fill_in_ada_prototype, debug_print_block): Likewise.
2899 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2900
2901 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2902
2903 * stack.c (print_frame): Use result of frame_address_in_block()
2904 instead of fi->pc when evaluating symbols.
2905 (backtrace_command_1): Ditto.
2906
2907 2002-07-11 Andrew Cagney <cagney@redhat.com>
2908
2909 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2910 Make static.
2911
2912 * arm-tdep.c (arm_register_name): Make return type constant.
2913
2914 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2915
2916 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2917 prototype.
2918 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2919 * s390-tdep.c (s390_fp_regnum): Ditto.
2920 (s390_read_fp): Ditto.
2921 (s390_pop_frame): Ditto.
2922 (_initialize_s390_tdep): Ditto.
2923 * remote.c (get_remote_state): Ditto.
2924 * procfs.c (mappingflags): Ditto.
2925 * memattr.c (_initialize_mem): Ditto.
2926 * mcore-tdep.c (mcore_pop_frame): Ditto.
2927 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2928 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2929 * language.c (set_case_str): Ditto.
2930 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2931 * frv-tdep.c (new_variant): Ditto.
2932 (frv_stopped_data_address): Ditto.
2933 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2934 (context_alloc): Ditto.
2935 (frame_state_alloc): Ditto.
2936 (unwind_tmp_obstack_init): Ditto.
2937 (unwind_tmp_obstack_free): Ditto.
2938 (cfi_read_fp): Ditto.
2939 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2940 (cris_pop_frame): Ditto.
2941 * c-lang.c (scanning_macro_expansion): Ditto.
2942 (finished_macro_expansion): Ditto.
2943 (c_preprocess_and_parse): Ditto.
2944 * gdbarch.sh: Ditto.
2945 * gdbarch.h, gdbarch.c: Regenerate.
2946 * config/mn10200/tm-mn10200.h: Adjust indentation.
2947 * target.c: Adjust indentation.
2948 * symtab.h: Adjust indentation.
2949 * stabsread.h: Adjust indentation.
2950 * remote-es.c: Adjust indentation.
2951 * os9kread.c: Adjust indentation.
2952
2953 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2954
2955 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2956 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2957
2958 2002-07-10 Grace Sainsbury <graces@redhat.com>
2959
2960 * NEWS: Mention m68k, mcore multi-arching.
2961 * MAINTAINERS: Change status of m68k, mcore to reflect
2962 multi-arching.
2963
2964 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2965
2966 * valops.c (find_overload_match): Free oload_syms.
2967
2968 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2969
2970 Define HAVE_SYS_PROC_H if sys/proc.h exists
2971 * configure.in: Add check for sys/proc.h
2972 * config.in: Regenerate.
2973 * configure: Regenerate.
2974
2975 2002-07-09 Grace Sainsbury <graces@redhat.com>
2976
2977 * config/m68k/tm-m68k.h: Remove macros wrapped in
2978 #if !GDB_MULTI_ARCH.
2979
2980 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2981
2982 * config.in, configure: Regenerate.
2983
2984 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2985
2986 * dwarf2cfi.c: Include "gcore.h".
2987 (execute_stack_op): Fix implementation of the
2988 DW_OP_deref and DW_OP_deref_size operators by letting do their
2989 lookup in the target.
2990
2991 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2992
2993 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2994 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2995 tdep->sc_sp_offset.
2996
2997 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2998
2999 Fix PR gdb/595, gdb/602
3000 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3001 Don't call value_cast, just read the vtable pointer; update comments
3002 to match.
3003
3004 2002-07-05 Grace Sainsbury <graces@redhat.com>
3005
3006 * config/mcore/tm-mcore.h: Remove file.
3007 * config/mcore/mcore.mt: Remove definition of TM_FILE
3008 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3009
3010 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3011
3012 * i386bsd-tdep.c: Include "gdb_string.h".
3013
3014 2002-07-04 Grace Sainsbury <graces@redhat.com>
3015
3016 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3017 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3018 mcore-tdep.
3019 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3020 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3021 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3022 (RETVAL_REGNUM): Move macros from tm-mcore.h
3023 (mcore_reg_struct_has_addr): New function.
3024 (mcore_gdbarch_init): Added initializations for the macros removed
3025 from tm-mcore.h.
3026
3027 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3028
3029 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3030 traditonal string branding within the ELF header.
3031
3032 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3033
3034 * symtab.c (remove_params): New function.
3035 (make_symbol_overload_list): Use it instead of cplus_demangle.
3036 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3037
3038 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3039
3040 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3041
3042 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3043 New variables.
3044 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3045 and tdep->sigtramp_end.
3046 * i386obsd-nat.c: New file.
3047 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3048
3049 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3050 Don't call get_current_frame().
3051
3052 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3053
3054 * i386-nat.c (child_post_startup_inferior): New function
3055 calling i386_cleanup_dregs if
3056 I386_USE_GENERIC_WATCHPOINTS is defined.
3057 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3058 conditional to acknowledge that i386-nat.c has its
3059 own child_post_startup_inferior function.
3060
3061 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3062
3063 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3064 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3065 instead of MAX_REGISTER_RAW_SIZE.
3066 (i386_extract_return_value, i386_extract_struct_value_address):
3067 Convert to use regcache.
3068 (i386_gdbarch_init): Set max_register_raw_size and
3069 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3070 Set extract_return_value and extract_struct_value_address instead
3071 of their deprecated variants.
3072
3073 Convert i386 target to generic dummy frames.
3074 * i386-tdep.c: Include "symfile.h".
3075 (i386_frameless_signal_p): Consider a function to be frameless if
3076 the pc points at the first instruction of the function.
3077 (i386_frame_chain): Handle (generic) call dummies.
3078 (i386_frame_saved_pc): Likewise.
3079 (i386_frame_init_saved_regs): Remove code dealing with call
3080 dummies on the stack.
3081 (i386_push_dummy_frame): Removed.
3082 (i386_call_dummy_words): Removed.
3083 (i386_fix_call_dummy): Removed.
3084 (i386_push_return_address): New function.
3085 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3086 parameter, and don't call get_current_frame.
3087 (i386_pop_frame): New function.
3088 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3089 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3090 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3091 call_dummy_length to 0, set call_dummy_words to NULL, set
3092 sizeof_call_dummy_words to 0, set fix_call_dummy to
3093 generic_fix_call_dummy, set pc_in_call_dummy to
3094 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3095 generic_push_dummy_frame, set push_return_address to
3096 i386_push_return_address and set frame_chain_valid to
3097 generic_file_frame_chain_valid.
3098
3099 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3100
3101 * gdbarch.sh (struct regcache): Add opaque declaration.
3102 (EXTRACT_RETURN_VALUE): New architecture method.
3103 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3104 * gdbarch.h, gdbarch.c: Regenerate.
3105 * arch-utils.c (legacy_extract_return_value): New function.
3106 * arch-utils.h (legacy_extract_return_value): Declare.
3107 * values.c (value_being_returned): Re-enable code handling
3108 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3109 deprecated_grub_regcache_for_registers call to block handling
3110 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3111 (EXTRACT_RETURN_VALUE): Do not define.
3112
3113 2002-07-03 Grace Sainsbury <graces@redhat.com>
3114
3115 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3116 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3117 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3118 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3119 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3120 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3121 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3122 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3123 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3124 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3125 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3126 argument so the function fits the prototype in the architecture
3127 vector.
3128 (mcore_pop_frame): Remove argument so the function fits the
3129 prototype. Use get_current_frame instead of the argument.
3130 (mcore_push_arguments): Change type of struct_return so the
3131 function can be used in the architecture vector.
3132 (mcore_store_struct_return): Add.
3133 (mcore_frame_init_saved_regs): Add.
3134 (mcore_gdbarch_init): Add function calls to replace the macros
3135 removed from tm-mcore.h
3136
3137 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3138
3139 * infcmd.c (print_return_value): Remove compatibility code calling
3140 deprecated_grub_regcache_for_registers.
3141
3142 * values.c: Include "regcache.h".
3143 (value_being_returned): Update. Use
3144 deprecated_grub_regcache_for_registers to extract the register
3145 buffer address.
3146 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3147 ``struct regcache''.
3148 * Makefile.in (values.o): Add dependency on $(regcache_h).
3149
3150 * inferior.h (run_stack_dummy): Change type of second parameter to
3151 a ``struct regcache''.
3152 * valops.c (hand_function_call): Change type of retbuf to ``struct
3153 regcache''. Allocate using regcache_xmalloc, clean using
3154 make_cleanup_regcache_xfree.
3155 * infcmd.c (run_stack_dummy): Update. Use
3156 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3157
3158 * regcache.c (do_regcache_xfree): New function.
3159 (make_cleanup_regcache_xfree): New function.
3160 * regcache.h (make_cleanup_regcache_xfree): Declare.
3161
3162 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3163
3164 * event-top.c (command_line_handler): Don't read past
3165 beginning of buffer.
3166
3167 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3168
3169 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3170 struct frame_id.
3171 (varobj_create): Store frame_id for root.
3172 (varobj_gen_name): Use xasprintf.
3173 (varobj_update): Save and restore frame using get_frame_id() and
3174 frame_find_by_id().
3175 (create_child): Use xasprintf.
3176 (new_root_variable): Initialize frame_id.
3177 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3178 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3179 to prevent memory leak.
3180
3181 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3182
3183 * valops.c (hand_function_call): Move declaration of retbuf to
3184 start of function, allocate using malloc, add a cleanup but before
3185 the inf_status cleanup, cleanup the buffer. Rename local variable
3186 old_chain to inf_status_cleanup.
3187
3188 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3189
3190 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3191
3192 * cli/cli-decode.c (cmd_func_p): New function.
3193 (cmd_func): New function.
3194
3195 * command.h: Add cmd_func() and cmd_func_p().
3196
3197 2002-07-03 Grace Sainsbury <graces@redhat.com>
3198
3199 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3200 (REGISTER_SIZE): Remove.
3201 (MAX_REGISTER_RAW_SIZE): Remove.
3202 (REGISTER_VIRTUAL_TYPE): Remove.
3203 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3204 (REGISTER_NAME): Remove.
3205 (USE_GENERIC_DUMMY_FRAMES): Remove.
3206 (CALL_DUMMY): Remove.
3207 (CALL_DUMMY_START_OFFSET): Remove.
3208 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3209 (CALL_DUMMY_LOCATION): Remove.
3210 (FIX_CALL_DUMMY): Remove.
3211 (CALL_DUMMY_ADDRESS): Remove.
3212 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3213 (SAVE_DUMMY_FRAME_TOS): Remove.
3214 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3215 (mcore_register_virtual_type): New function.
3216 (mcore_register_byte): New function.
3217 (mcore_register_size): New function.
3218 (mcore_register_name): New function.
3219 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3220 macros removed from tm-mcore.h.
3221 (mcore_dump_tdep): Add.
3222 (_initialize_mcore_tdep): Add gdbarch_register call.
3223
3224 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3225
3226 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3227 frameless_look_for_prologue, such that we actually call this
3228 function.
3229
3230 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3231
3232 * frame.h (frame_address_in_block): New function.
3233
3234 * blockframe.c (frame_address_in_block): New function extracted
3235 from get_frame_block().
3236 (get_frame_block): Use frame_address_in_block().
3237 (block_innermost_frame): Use frame_address_in_block() to match
3238 the frame pc address against the block boundaries rather than
3239 the frame pc directly. This prevents a failure when a frame pc
3240 is actually a return-address pointing immediately after the end
3241 of the given block.
3242
3243 2002-07-02 Grace Sainsbury <graces@redhat.com>
3244
3245 * MAINTAINERS: Add self under write after approval.
3246
3247 2002-07-02 Grace Sainsbury <graces@redhat.com>
3248
3249 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3250 used in architecture vector. The default is
3251 m68k_local_breakpoint_from_pc.
3252 (m68k_local_breakpoint_from_pc): Add.
3253 (enum): Add register numbers from tm-m68k.h.
3254 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3255 vector.
3256 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3257 GDB_MULTI_ARCH_PARTIAL.
3258 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3259 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3260 m68k-tdep.c.
3261 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3262 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3263 to enum in m68k-tdep.c
3264
3265 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3266
3267 * solib-osf.c (open_map): Compute the list of shared libraries
3268 loaded by the inferior, rather than the list of libraries loaded
3269 by GDB itself. Otherwise, GDB ends up reading the symbols from
3270 the wrong shared libraries...
3271
3272 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3273
3274 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3275 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3276 macros.
3277 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3278 Remove functions.
3279 (FRAMELESS_SIGNAL): Remove function.
3280 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3281 i386_linux_saved_pc_after_call): Removed.
3282 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3283 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3284 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3285
3286 * i386-tdep.c (i386_frameless_signal_p): New function.
3287 (i386_frame_chain): Deal with frameless signals.
3288 (i386_sigtramp_saved_sp): New function.
3289 (i386_frame_saved_pc): Deal with frameless signals.
3290 (i386_saved_pc_after_call): Make sure the correct value is
3291 returned just after entry into a sigtramp.
3292 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3293 i386fbsd4_sc_sp_offset): New variables.
3294 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3295 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3296 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3297 similiar to what we already did for sc_pc_offset.
3298 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3299 tdep->sc_sp_offset.
3300
3301 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3302
3303 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3304
3305 * config/i386/tm-x86-64linux.h: New.
3306 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3307 definitions.
3308 * config/i386/nm-x86-64.h: Rename to ...
3309 * config/i386/nm-x86-64linux.h: ... this one.
3310 * config/i386/x86-64linux.mh: Reflect the above change.
3311
3312 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3313
3314 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3315 with sigcontext_addr. Add sc_sp_offset.
3316 (i386bsd_sigtramp_saved_pc): Remove prototype.
3317 (i386bsd_sicontext_addr): Add prototype.
3318 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3319 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3320 (i386_svr4_sigtramp_saved_pc): Removed.
3321 (i386_svr4_sigcontext_addr): New function.
3322 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3323 Initialize tdep->sigcontext_addr instead. Initialize
3324 tdep->sc_pc_offset and tdep->sc_sp_offset.
3325 (i386_gdbarch_init): Likewise.
3326 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3327 any more.
3328 (i386bsd_sigtramp_saved_pc): Remove function.
3329 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3330 Initialize tdep->sigcontext_addr instead. Initialize
3331 tdep->sc_pc_offset.
3332 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3333 of tdep->sigtramp_saved_pc.
3334 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3335 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3336 instead.
3337
3338 * i386-tdep.c (i386_frameless_function_invocation,
3339 i386_frame_num_args, i386_frame_init_saved_regs,
3340 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3341 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3342 i386_extract_return_value, i386_store_return_value,
3343 i386_extract_struct_value_address, i386_register_virtual_type,
3344 i386_register_convertible, i386_register_convert_to_virtual,
3345 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3346 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3347 static.
3348
3349 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3350
3351 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3352
3353 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3354 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3355 this macro. Include "value.h".
3356
3357 2002-06-30 Aidan Skinner <aidan@velvet.net>
3358
3359 * ada-exp.tab.c: remove as it's a generated file
3360 * ada-lex.c: remove as it's a generated file
3361
3362 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3363
3364 * config/i386/tm-i386.h (struct frame_info, struct
3365 frame_saved_regs, struct value, struct type): Remove forward
3366 declarations.
3367
3368 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3369 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3370 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3371 (FILL_FPXREGSET): Define.
3372
3373 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3374
3375 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3376 i[3456]86-*-netbsd* case.
3377 * config/i386/tm-obsd.h: Removed.
3378 * config/i386/obsd.mt: Removed.
3379 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3380 core-aout.o.
3381 (MH_CFLAGS): Add -DYYDEBUG=0.
3382
3383 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3384 i386nbsd_sc_pc_offset on OpenBSD too.
3385
3386 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3387 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3388 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3389 define.
3390 * i386bsd-tdep.c: Include "arch-utils.h".
3391 (i386bsd_aout_in_solib_call_trampoline): New function.
3392 (i386bsd_init_abi): Set in_solib_call_trampoline to
3393 i386bsd_aout_in_solib_call_trampoline.
3394 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3395 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3396
3397 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3398
3399 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3400 (struct obstack, struct bcache): Add opaque declarations.
3401 * Makefile.in (macrotab_h): Update
3402
3403 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3404
3405 * blockframe.c (generic_find_dummy_frame): Change return type to
3406 ``struct regcache''.
3407 (struct dummy_frame): Replace field ``registers'' with regcache, a
3408 struct regcache object.
3409 (generic_find_dummy_frame): Update.
3410 (generic_push_dummy_frame): Update. Use regcache_xfree,
3411 regcache_xmalloc and regcache_cpy.
3412 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3413 regcache_xfree.
3414 (deprecated_generic_find_dummy_frame): Update.
3415 (generic_read_register_dummy): Update. Use
3416 regcache_read_as_address.
3417 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3418 (generic_get_saved_register): Update. Use regcache_read.
3419
3420 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3421
3422 * Makefile.in (objfiles_h): Add $(bcache_h).
3423 * objfiles.h: Include "bcache.h".
3424
3425 * Makefile.in (symtab_h): Remove $(bcache_h).
3426 * symtab.h: Do not include "bcache.h".
3427
3428 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3429
3430 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3431 generic_func_frame_chain_valid.
3432
3433 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3434
3435 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3436 * config/i386/tm-fbsd.h: Likewise.
3437
3438 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3439
3440 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3441 generic_unwind_get_saved_register.
3442
3443 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3444
3445 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3446 * regcache.c (supply_register): Add missing argument to
3447 register_buffer call.
3448
3449 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3450
3451 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3452 Solaris /bin/grep does not not like it. From Peter Schauer.
3453
3454 2002-06-26 Tom Tromey <tromey@redhat.com>
3455
3456 * command.h (add_setshow_cmd): Declare.
3457 (add_setshow_cmd_full): Declare.
3458 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3459 returns void. Use add_setshow_cmd_full.
3460 (add_setshow_cmd_full): New function.
3461 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3462 (add_setshow_boolean_cmd): Likewise.
3463
3464 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3465
3466 * config/vax/tm-vax.h: Protect from multiple inclusion.
3467 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3468 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3469 * config/vax/tm-vaxbsd.h: ...here. New file.
3470 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3471
3472 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3473
3474 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3475 (BELIEVE_PCC_PROMOTION): Remove.
3476 (AP_REGNUM): Move to...
3477 * config/vax/nm-vax.h: ...here.
3478 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3479 (vax_breakpoint_from_pc): New function.
3480 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3481 and gdbarch_believe_pcc_promotion.
3482
3483 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3484
3485 * Makefile.in (vax_tdep_h): Define.
3486 (vax-tdep.o): Use $(vax_tdep_h).
3487 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3488 (vax_dump_tdep): New function.
3489 (_initialize_vax_tdep): Register vax_dump_tdep.
3490 * vax-tdep.h: Include osabi.h.
3491 (struct gdbarch_tdep): New.
3492
3493 2002-06-26 Andrew Cagney <cagney@redhat.com>
3494
3495 * frame.h (deprecated_generic_find_dummy_frame): Rename
3496 generic_find_dummy_frame.
3497 * blockframe.c (generic_find_dummy_frame): Make static.
3498 (deprecated_generic_find_dummy_frame): New function.
3499 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3500 generic_find_dummy_frame with deprecated_find_dummy_frame.
3501 (sh64_nofp_frame_init_saved_regs): Ditto.
3502 (sh_fp_frame_init_saved_regs): Ditto.
3503 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3504 (s390_frame_chain): Ditto.
3505 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3506
3507 2002-06-26 Grace Sainsbury <graces@redhat.com>
3508
3509 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3510 gdbarch vector are at the top.
3511 (NUM_REGS): Remove.
3512 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3513 (FRAME_ARGS_ADDRESS): Remove.
3514 (FRAME_LOCALS_ADDRESS): Remove.
3515 (FRAME_NUM_ARGS): Remove.
3516 (FRAME_ARGS_SKIP): Remove.
3517 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3518 (m68k_gdbarch_init): Add gdbarch initializations for macros
3519 undefined in tm-m68k.h
3520
3521 2002-06-26 Grace Sainsbury <graces@redhat.com>
3522
3523 * monitor.h: Add the function regname to monitor_ops
3524 structure. This way NUM_REGS does not have to be a constant.
3525 * monitor.c (monitor_fetch_register): Added support for regname
3526 function. The function is called if the array regnames is NULL.
3527 (monitor_store_register): Same.
3528 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3529 regnames array.
3530 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3531 cpu32bug_cmds.regname to point to new function.
3532 * abug-rom.c (abug_regname): Same as above.
3533 (init_abug_cmds): Same.
3534 * dbug-rom.c (dbug_regname): Same as above.
3535 (init_dbug_cmds): Same.
3536 * remote-est.c (est_regname): Same.
3537 (init_est_cmds): Same.
3538 * rom68k-rom.c (rom68k_regname): Same.
3539 (init_rom68k_cmds): Same.
3540
3541 2002-06-25 Tom Tromey <tromey@redhat.com>
3542
3543 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3544
3545 2002-06-25 Andrew Cagney <cagney@redhat.com>
3546
3547 * infrun.c (stop_registers): Change variable's type to ``struct
3548 regcache'''.
3549 (xmalloc_inferior_status): Delete function.
3550 (free_inferior_status): Delete function.
3551 (normal_stop): Use regcache_cpy.
3552 (struct inferior_status): Change type of fields ``stop_registers''
3553 and ``registers'' to ``struct regcache''.
3554 (write_inferior_status_register): Use regcache_write.
3555 (save_inferior_status): Instead of calling
3556 xmalloc_inferior_status, allocate the inf_status buffer directly.
3557 Use regcache_dup_no_passthrough and regcache_dup to save the
3558 buffers.
3559 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3560 Replace the stop_registers regcache instead of overriding it. Use
3561 regcache_xfree. Instead of calling free_inferior_status, xfree
3562 the buffer directly.
3563 (discard_inferior_status): Use regcache_xfree. Instead of calling
3564 free_inferior_status, xfree the buffer directly.
3565 (build_infrun): Use regcache_xmalloc.
3566 (_initialize_infrun): Delete redundant call to build_infrun.
3567
3568 * Makefile.in (infcmd.o): Add $(regcache_h).
3569
3570 * infcmd.c: Include "regcache.h".
3571 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3572 obtain the address of `stop_registers' register buffer.
3573 (print_return_value): Ditto.
3574
3575 * inferior.h (struct regcache): Add opaque declaration.
3576 (stop_registers): Change variable's declared type to ``struct
3577 regcache''.
3578
3579 2002-06-24 Tom Tromey <tromey@redhat.com>
3580
3581 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3582 * target.c (initialize_targets): Fixed typo in
3583 trust-readonly-sections `show' documentation.
3584
3585 * main.c: Marked all strings with _().
3586
3587 2002-06-24 Don Howard <dhoward@redhat.com>
3588
3589 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3590 that means max CORE_ADDR+1.
3591 (lookup_mem_region): Ditto.
3592 (mem_info_command): Ditto.
3593
3594 2002-06-24 Grace Sainsbury <graces@redhat.com>
3595
3596 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3597 (REGISTER_BYTES_OK): Remove.
3598 (REGISTER_BYTES): Remove.
3599 (STORE_STRUCT_RETURN): Remove.
3600 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3601 (STORE_RETURN_VALUE): Remove.
3602 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3603 (FRAME_CHAIN): Remove.
3604 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3605 (FRAME_SAVED_PC): Remove.
3606 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3607 (m68k_store_struct_return): Add.
3608 (m68k_deprecated_extract_return_value): Add.
3609 (m68k_deprecated_extract_struct_value_address): Add.
3610 (m68k_store_return_value): Add.
3611 (m68k_frame_chain): Add.
3612 (m68k_frameless_function_invocation): Add.
3613 (m68k_frame_saved_pc): Add.
3614 (m68k_gdbarch_init): added set_gdbarch calls for new
3615 functions and deleted macros.
3616
3617 2002-06-23 Tom Tromey <tromey@redhat.com>
3618
3619 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3620 (ALLDEPFILES): Likewise.
3621 (udiheaders): Removed.
3622 (udip2soc.o): Likewise.
3623 (udi2go32.o): Likewise.
3624 (udr.o): Likewise.
3625 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3626
3627 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3628
3629 * infrun.c (_initialize_infrun): Delete unnecessary call to
3630 build_infrun.
3631
3632 * regcache.h: Update comments describing the regcache_cpy family
3633 of functions.
3634 (regcache_save, regcache_restore): Delete declaration.
3635 (regcache_save_no_passthrough): Delete declaration.
3636 (regcache_restore_no_passthrough): Delete declaration.
3637 * regcache.c (regcache_save): Delete function.
3638 (regcache_save_no_passthrough): Delete function.
3639 (regcache_restore): Delete function.
3640 (regcache_restore_no_passthrough): Delete function.
3641
3642 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3643
3644 * config/m68k/tm-m68k.h: Fix typo.
3645 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3646 (m68k_frame_init_saved_regs): Declare.
3647
3648 2002-06-21 Jim Blandy <jimb@redhat.com>
3649
3650 Remove some vestiges of Harris 88k support.
3651 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3652 register numbering quirk.
3653 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3654 odd symbols occurring in Harris 88k ELF targets.
3655
3656 2002-06-21 Tom Tromey <tromey@redhat.com>
3657
3658 * gdb_locale.h: New file.
3659 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3660 (defs_h): Added gdb_locale.h.
3661 * configure, config.in: Rebuilt.
3662 * configure.in (PACKAGE): Define.
3663 * defs.h: Include gdb_locale.h.
3664 * main.c (captured_main): Call setlocale, bindtextdomain,
3665 textdomain.
3666
3667 2002-06-21 Dave Brolley <brolley@redhat.com>
3668
3669 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3670 * config/frv/frv.mt: New file.
3671 * config/frv/tm-frv.h: New file.
3672 * configure.tgt: Support frv-*-*.
3673 * Makefile.in (frv-tdep.o): New target.
3674 * frv-tdep.c: New file.
3675 * NEWS: Mention frv.
3676
3677 2002-06-21 Dave Brolley <brolley@redhat.com>
3678
3679 * MAINTAINERS: Add self to "Write After Approval" list.
3680
3681 2002-06-21 Grace Sainsbury <graces@redhat.com>
3682
3683 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3684 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3685 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3686 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3687 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3688
3689 * m68k-tdep.c: Include arch-utils.h
3690 (m68k_register_raw_size): Add.
3691 (m68k_register_virtual_size): Add.
3692 (m68k_register_virtual_type): Add.
3693 (m68k_register_name): Add.
3694 (m68k_stack_align): Add.
3695 (m68k_register_byte): Add.
3696 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3697 tm-m68k.h.
3698
3699 2002-06-21 Grace Sainsbury <graces@redhat.com>
3700
3701 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3702 m68k_find_saved_regs.
3703 (m68k_pop_frame): Removed saved_regs structure, and replaced
3704 references to it with frame->saved_regs.
3705 (m68k_gdbarch_init): Added function calls to initialize the
3706 gdbarch structure.
3707 (m68k_fix_call_dummy): Add.
3708 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3709 (CALL_DUMMY): Remove.
3710 (CALL_DUMMY_LENGTH): Remove.
3711 (CALL_DUMMY_START_OFFSET): Remove.
3712 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3713 (FIX_CALL_DUMMY): Remove.
3714 (PUSH_DUMMY_FRAME): Remove.
3715 (POP_FRAME): Remove.
3716
3717 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3718
3719 * parse.c (parse_fprintf): New function used to avoid calls to
3720 fprintf in bison parser generated debug code.
3721 * parser-defs.h: Declaration of new parse_fprintf function.
3722 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3723 Set YYDEBUG to 1 by default.
3724 Set YYFPRINTF as parse_fprintf.
3725
3726 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3727
3728 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3729 encoding anymore.
3730 (pointer_encoding, enum ptr_encoding): New.
3731 (execute_cfa_program): Take care about pointer encoding.
3732 (dwarf2_build_frame_info): Only call parse_frame_info for
3733 .debug_frame and .eh_frame.
3734 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3735 fixed augmentation handling, added relative addressing,
3736 ignore duplicate FDEs. Added comments.
3737 * dwarf2cfi.c: Reindented.
3738
3739 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3740
3741 * event-top.c (command_handler): Don't use space_at_cmd_start
3742 unless there is sbrk() on the host. Assign time and space data
3743 to union fields of the appropriate length.
3744
3745 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3746
3747 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3748 x86_64_register_name. Return type changed to 'const char *'.
3749 (x86_64_register_name2nr): Rename to x86_64_register_number.
3750 (x86_64_gdbarch_init): Update to reflect the change.
3751 * x86-64-tdep.h: Ditto.
3752 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3753 (supply_fpregset): Ditto.
3754
3755 2002-06-19 Andrew Cagney <cagney@redhat.com>
3756
3757 * regcache.h: Update copyright.
3758 (struct regcache, struct gdbarch): Add opaque declarations.
3759 (current_regcache): Declare global variable.
3760 (regcache_read, regcache_write): Add gdbarch parameter.
3761 (regcache_save, regcache_save_no_passthrough)
3762 (regcache_restore, regcache_restore_no_passthrough)
3763 (regcache_dup, regcache_dup_no_passthrough)
3764 (regcache_cpy, regcache_cpy_no_passthrough)
3765 (deprecated_grub_regcache_for_registers)
3766 (deprecated_grub_regcache_for_register_valid)
3767 (regcache_valid_p): Add function declarations.
3768
3769 * regcache.c: Update copyright.
3770 (regcache_descr_handle): New global variable.
3771 (struct regcache_descr): Define.
3772 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3773 (regcache_descr, xfree_regcache_descr): New functions.
3774 (struct regcache): Define.
3775 (regcache_xmalloc, regcache_xfree): New functions.
3776 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3777 (regcache_dup, regcache_dup_no_passthrough): New functions.
3778 (regcache_valid_p, regcache_read_as_address): New functions.
3779 (deprecated_grub_regcache_for_registers): New function.
3780 (deprecated_grub_regcache_for_register_valid): New function.
3781 (current_regcache): New global variable.
3782 (register_buffer): Add regcache parameter. Update calls.
3783 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3784 (read_register_gen, write_register_gen): Update register_buffer
3785 call. Test for legacy_p instead of gdbarch_register_read_p or
3786 gdbarch_register_write_p.
3787 (regcache_collect): Update register_buffer call.
3788 (build_regcache): Rewrite. Use deprecated grub functions.
3789 (regcache_save, regcache_save_no_passthrough): New functions.
3790 (regcache_restore, regcache_restore_no_passthrough): New
3791 functions.
3792 (_initialize_regcache): Create the regcache_data_handle. Swap
3793 current_regcache global variable.
3794
3795 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3796 parameter to regcache_read and regcache_write calls.
3797 (sh4_register_read): Ditto.
3798 (sh64_pseudo_register_read): Ditto.
3799 (sh64_register_read): Ditto.
3800 (sh_pseudo_register_write): Ditto.
3801 (sh4_register_write): Ditto.
3802 (sh64_pseudo_register_write): Ditto.
3803 (sh64_register_write): Ditto.
3804
3805 * defs.h (XCALLOC): Define.
3806
3807 2002-06-19 Grace Sainsbury <graces@redhat.com>
3808
3809 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3810 * m68k-tdep.c (m68k_gdbarch_init): Added.
3811 (m68k_dump_tdep): Added.
3812
3813 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3814
3815 * ada-lang.c (fill_in_ada_prototype): Update comment.
3816
3817 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3820 MIPS_ABI_LAST.
3821 (mips_abi_string, mips_abi_strings): New.
3822 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3823 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3824 tdep->mips_abi_string. Honor mips_abi_string. Default to
3825 O32 if no ABI is found.
3826 (mips_dump_tdep): Use mips_abi_strings.
3827 (mips_abi_update): New function.
3828 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3829 ``set mips abi'' and ``show mips abi''. Check the size of
3830 mips_abi_strings.
3831
3832 2002-06-19 Andrew Cagney <cagney@redhat.com>
3833
3834 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3835 constant.
3836
3837 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3838
3839 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3840 current frame using only the first stack size adjustment. All
3841 subsequent size adjustments are not considered to be part of
3842 the "static" part of the current frame.
3843 Compute the address of the saved registers relative to the
3844 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3845 in use in this frame.
3846
3847 2002-06-18 Don Howard <dhoward@redhat.com>
3848
3849 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3850 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3851 suggesting this solution.
3852
3853 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3854
3855 * config/romp/xm-rtbsd.h: Delete file.
3856 * config/romp/rtbsd.mh: Delete file.
3857
3858 2002-06-18 Keith Seitz <keiths@redhat.com>
3859
3860 * breakpoint.c (condition_command): Post breakpoint_modify
3861 when a condition is added to an existing breakpoint.
3862 (commands_command): Likewise for commands.
3863 (set_ignore_count): Likewise for ignore counts.
3864 If no tty, do not simply return, still need to send event
3865 notification.
3866 (ignore_command): Only print a newline if the command came
3867 from a tty.
3868 Don't call breakpoints_changed, since this is now properly
3869 handled by set_ignore_count.
3870
3871 2002-06-18 Andrew Cagney <cagney@redhat.com>
3872
3873 * MAINTAINERS: Note that cris-elf target can be compiled with
3874 -Werror.
3875 * cris-tdep.c (cris_register_name): Make return type constant.
3876 (cris_breakpoint_from_pc): Ditto.
3877
3878 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3879
3880 * frame.h (struct frame_info): Change type of context to
3881 'struct context'.
3882
3883 2002-06-17 Andrew Cagney <cagney@redhat.com>
3884
3885 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3886 pointer.
3887 * gdbarch.h, gdbarch.c: Regenerate.
3888 * config/mips/tm-mips.h (mips_register_name): Update.
3889 * i386-tdep.h (i386_register_name): Update.
3890 * mips-tdep.c (mips_register_name): Update
3891 * alpha-tdep.c (alpha_register_name): Update.
3892 * arch-utils.c (legacy_register_name): Update.
3893 * arch-utils.h (legacy_register_name): Update.
3894 * avr-tdep.c (avr_register_name): Update.
3895 * ia64-tdep.c (ia64_register_name): Update.
3896 * i386-tdep.c (i386_register_name): Update.
3897 * sparc-tdep.c (sparc32_register_name): Update.
3898 (sparc64_register_name): Update.
3899 (sparclite_register_name): Update.
3900 (sparclet_register_name): Update.
3901 * sh-tdep.c (sh_generic_register_name): Update.
3902 (sh_sh_register_name): Update.
3903 (sh_sh3_register_name): Update.
3904 (sh_sh3e_register_name): Update.
3905 (sh_sh_dsp_register_name): Update.
3906 (sh_sh3_dsp_register_name): Update.
3907 (sh_sh4_register_name): Update.
3908 (sh_sh64_register_name): Update.
3909 * s390-tdep.c (s390_register_name): Update.
3910 * rs6000-tdep.c (rs6000_register_name): Update.
3911 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3912 (ns32k_register_name_32382): Update.
3913 * d10v-tdep.c (d10v_ts2_register_name): Update.
3914 (d10v_ts3_register_name): Update.
3915 * xstormy16-tdep.c (xstormy16_register_name): Update.
3916 * vax-tdep.c (vax_register_name): Update.
3917 * v850-tdep.c (v850_register_name): Update.
3918 * m68hc11-tdep.c (m68hc11_register_name): Update.
3919 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3920 (am33_register_name): Update.
3921
3922 2002-06-17 Grace Sainsbury <graces@redhat.com>
3923
3924 * m68k-tdep.c: Reindented.
3925
3926 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3927
3928 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3929 list of predefined types.
3930
3931 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3932
3933 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3934 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3935 REGISTER_CONVERT_TO_RAW): Remove defines.
3936 (i386_register_virtual_type, i386_register_convertible,
3937 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3938 Remove prototypes.
3939 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3940 macros mentioned above.
3941
3942 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3943 (i386lynx_saved_pc_after_call): Remove prototype.
3944 * i386ly-tdep.c: Include "i386-tdep.h".
3945 (i386lynx_saved_pc_after_call): Make static. Use
3946 read_memory_nobpt instead of read_memory. Use
3947 read_memory_unsigned_integer instead of read_memory_integer.
3948 (i386lynx_init_abi): New function.
3949 (i386lynx_coff_osabi_sniffer): New function.
3950 (_initialize_i386bsd_tdep): New function.
3951
3952 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3953 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3954 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3955 (i386_fix_call_dummy): Remove prototype.
3956 * i386-tdep.c (i386_call_dummy_words): New variable.
3957 (i386_gdbarch_init): Adjust for removal of the
3958 macros mentioned above.
3959
3960 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3961
3962 * command.h (add_setshow_auto_boolean_cmd): Replace
3963 add_set_auto_boolean_cmd.
3964 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3965 add_set_auto_boolean_cmd.
3966 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3967 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3968 mask-address'' command.
3969 (show_mask_address): Add cmd parameter.
3970 * remote.c (add_packet_config_cmd): Update. Change type of
3971 set_func and show_func to cmd_sfunc_ftype.
3972 (_initialize_remote): Update `set remote Z-packet'
3973 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3974 (show_remote_protocol_e_packet_cmd): Ditto.
3975 (show_remote_protocol_E_packet_cmd): Ditto.
3976 (show_remote_protocol_P_packet_cmd): Ditto.
3977 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3978 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3979 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3980 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3981 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3982 (show_remote_protocol_Z_packet_cmd): Ditto.
3983 (show_remote_protocol_binary_download_cmd): Ditto.
3984 (show_remote_cmd): Pass NULL to all of above.
3985
3986 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3987
3988 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3989 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3990 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3991 POP_FRAME): Remove defines.
3992 (i386_push_arguments, i386_store_struct_return,
3993 i386_extract_return_value, i386_store_return_value,
3994 i386_extract_struct_value_address, i386_push_dummy_frame,
3995 i386_pop_frame): Renove prototypes.
3996 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3997 macros mentioned above.
3998
3999 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4000
4001 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4002 add_set_boolean_cmd.
4003 (add_setshow_cmd): New function.
4004 * command.h (add_setshow_boolean_cmd): Replace
4005 add_set_boolean_cmd.
4006 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4007 and ``set rdiromatzero''.
4008 * maint.c (_initialize_maint_cmds): Update commented out code.
4009 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4010 * target.c (initialize_targets): Update `set
4011 trust-readonly-sections'.
4012 * remote.c (_initialize_remote): Update `set remotebreak'.
4013
4014 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4015
4016 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4017 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4018 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4019 fit into multi-arch framework.
4020 (i386_breakpoint_from_pc): New function.
4021 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4022 above.
4023
4024 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4025 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4026 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4027 (i386_frameless_function_invocation, i386_frame_num_args,
4028 i386_frame_init_saved_regs): Remove prototypes.
4029 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4030 macros mentioned above.
4031
4032 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4033
4034 * cli/cli-decode.c (set_cmd_cfunc): Update.
4035 (set_cmd_sfunc): Update.
4036 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4037 (set_cmd_sfunc, set_cmd_cfunc): Update.
4038 * cli/cli-decode.h: Update.
4039
4040 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4041
4042 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4043 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4044
4045 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4046
4047 * defs.h (auto_boolean): Declare enum.
4048 * command.h (cmd_auto_boolean): Delete enum.
4049 * mips-tdep.c (mask_address_var): Update.
4050 (mips_mask_address_p): Update.
4051 (show_mask_address): Update.
4052 * remote.c (struct packet_config): Update.
4053 (update_packet_config): Update.
4054 (show_packet_config_cmd): Update.
4055 (packet_ok): Update.
4056 (add_packet_config_cmd): Update.
4057 (_initialize_remote):
4058 * command.h: Update.
4059 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4060 (do_setshow_command): Update.
4061 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4062 * cli/cli-decode.h: Update.
4063
4064 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4065
4066 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4067 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4068 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4069 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4070 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4071 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4072
4073 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4074 list of DJGPP COFF targets.
4075
4076 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4077 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4078 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4079 (FP0_REGNUM): Remove define.
4080 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4081 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4082 (i386_register_virtual_size): Remove protoype.
4083 * i386-tdep.c (i386_register_virtual_size): Removed.
4084 (i386_extract_return_value, i386_store_return_value): Use
4085 FP0_REGNUM instead of NUM_FREGS to determine whether the
4086 floating-point registers are available.
4087 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4088 Adjust for removal of macros mentioned above.
4089
4090 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4091
4092 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4093 comments.
4094 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4095 Remove prototypes.
4096 (supply_gregset, fill_gregset): Remove use of register keyword and
4097 remove declaration for regmap. Use I386_NUM_GREGS instead of
4098 NUM_REGS and NUM_FREGS.
4099 (FPREGSET_FSAVE_OFFSET): Remove.
4100 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4101 NUM_FREGS to determine whether the floating-point registers are
4102 available.
4103
4104 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4105 gnu_store_registers): Replace usage of NUM_GREGS with
4106 I386_NUM_GREGS.
4107
4108 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4109 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4110 usage of NUM_GREGS with I386_NUM_GREGS.
4111
4112 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4113
4114 * i386bsd-nat.c: Include "i386-tdep.h".
4115 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4116 I386_NUM_GREGS.
4117
4118 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4119 and associated comment. They no longer make any sense, since we
4120 don't use this file anymore on Linux.
4121
4122 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4123 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4124 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4125 elements in these arrays.
4126 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4127 MAX_NUM_REGS.
4128
4129 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4130
4131 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4132 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4133
4134 2002-06-14 Andrew Cagney <cagney@redhat.com>
4135
4136 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4137 EXTRACT_RETURN_VALUE.
4138 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4139 EXTRACT_STRUCT_VALUE_ADDRESS.
4140 * gdbarch.h, gdbarch.c: Regenerate.
4141
4142 * values.c (value_being_returned): Handle
4143 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4144 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4145
4146 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4147 * arm-tdep.c (arm_gdbarch_init): Update.
4148 * avr-tdep.c (avr_gdbarch_init): Update.
4149 * cris-tdep.c (cris_gdbarch_init): Update.
4150 * d10v-tdep.c (d10v_gdbarch_init): Update.
4151 * ia64-tdep.c (ia64_gdbarch_init): Update.
4152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4153 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4154 * s390-tdep.c (s390_gdbarch_init): Update.
4155 * sh-tdep.c (sh_gdbarch_init): Update.
4156 * s390-tdep.c (s390_gdbarch_init): Update.
4157 * sparc-tdep.c (sparc_gdbarch_init): Update.
4158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4159 * v850-tdep.c (v850_gdbarch_init): Update.
4160 * vax-tdep.c (vax_gdbarch_init): Update.
4161 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4162 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4163
4164 * config/arc/tm-arc.h: Update.
4165 * config/d30v/tm-d30v.h: Update.
4166 * config/fr30/tm-fr30.h: Update.
4167 * config/h8300/tm-h8300.h: Update.
4168 * config/h8500/tm-h8500.h: Update.
4169 * config/i386/tm-i386.h: Update.
4170 * config/i386/tm-ptx.h: Update.
4171 * config/i386/tm-symmetry.h: Update.
4172 * config/i960/tm-i960.h: Update.
4173 * config/m32r/tm-m32r.h: Update.
4174 * config/m68k/tm-delta68.h: Update.
4175 * config/m68k/tm-linux.h: Update.
4176 * config/m68k/tm-m68k.h: Update.
4177 * config/m88k/tm-m88k.h: Update.
4178 * config/mcore/tm-mcore.h: Update.
4179 * config/mips/tm-mips.h: Update.
4180 * config/mn10200/tm-mn10200.h: Update.
4181 * config/pa/tm-hppa.h: Update.
4182 * config/pa/tm-hppa64.h: Update.
4183 * config/sparc/tm-sp64.h: Update.
4184 * config/sparc/tm-sparc.h: Update.
4185 * config/sparc/tm-sparclet.h: Update.
4186 * config/z8k/tm-z8k.h: Update.
4187
4188 2002-06-14 Andrew Cagney <cagney@redhat.com>
4189
4190 * Makefile.in (i386_linux_tdep_h): Define.
4191 (i386_tdep_h, i387_tdep_h): Define.
4192 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4193 $(i386_tdep_h) and $(i387_tdep_h).
4194 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4195
4196 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4197
4198 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4199 Already covered by the default.
4200
4201 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4202 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4203 (i386_gdbarch_init): Initialize long_double_format and long_double
4204 bit.
4205
4206 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4207 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4208 Move these to ...
4209 * config/i386/i386sol2.mh: ... here.
4210 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4211 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4212 (SIGCONTEXT_PC_OFFSET): Remove define.
4213 (IN_SIGTRAMP): Remove define.
4214 * i386-sol2-tdep.c: New file.
4215
4216 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4217 * config/i386/tm-i386nw.h: Removed.
4218
4219 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4220 USE_STRUCT_CONVENTION): Remove defines.
4221 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4222 (get_longjmp_target): Remove prototype.
4223 (IN_SIGTRAMP): Remove define.
4224 (i386bsd_in_sigtramp): Remove prototype.
4225 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4226 function. Update comment accordingly
4227 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4228 (FRAME_SAVED_PC): Remove define.
4229 (i386bsd_frame_saved_pc): Remove prototype.
4230 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4231 GET_LONGJMP_TARGET): Remove defines.
4232 (get_longjmp_target): Remove prototype.
4233 (IN_SIGTRAMP): Remove define.
4234 (i386bsd_in_sigtramp): Remove prototype.
4235 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4236 function. Update comment accordingly
4237 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4238 (FRAME_SAVED_PC): Remove define.
4239 (i386bsd_frame_saved_pc): Remove prototype.
4240 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4241 Remove prototype.
4242 (USE_STRUCT_CONVENTION): Remove prototype.
4243 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4244 declaration.
4245 (_initialize_i386bsd_nat): Revise logic to determine some
4246 constants at compile time when compiling a native GDB. Warn if
4247 things don't match up with what we expect.
4248 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4249 Remove variables.
4250 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4251 to use date stored in `struct gdbarch_tdep'.
4252 (i386bsd_sigcontext_offset): Remove varaible.
4253 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4254 stored in `struct gdbarch_tdep'.
4255 (i386bsd_frame_saved_pc): Make static.
4256 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4257 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4258 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4259 i386fbsd4_sc_pc_offset): New variables.
4260 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4261 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4262 functions.
4263 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4264 functions.
4265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4266 Modify the value of i386fbsd_sigtramp_start and
4267 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4268 i386fbsd_sigtramp_end.
4269 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4270 function.
4271
4272 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4273 define to i386-linux-tdep.h.
4274 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4275 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4276 defines.
4277 (i386_linux_register_name, i386_linux_register_byte,
4278 i386_linux_register_raw_size): Remove prototypes.
4279 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4280 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4281 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4282 TARGET_WRITE_PC): Remove defines.
4283 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4284 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4285 i386_linux_write_pc): Remove prototypes.
4286 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4287 (get_longjmp_target): Remove prototype.
4288 * i386-linux-tdep.h: New file.
4289 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4290 * i386-linux-tdep.c: Include "i386-tdep.h" and
4291 "i386-linux-tdep.h".
4292 (i386_linux_register_name, i386_linux_register_byte,
4293 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4294 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4295 Make static.
4296 (i386_linux_init_abi): New function.
4297 (_initialize_i386_linux_tdep): New function.
4298
4299 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4300 (i386_saved_pc_after_call): Remove prototype.
4301 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4302 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4303 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4304 (i386_register_name, i386_stab_reg_to_regnum,
4305 i386_dwarf_reg_to_regnum): Remove prototypes.
4306 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4307 SIZEOF_SSE_REGS): Remove defines.
4308 (REGISTER_BYTES): Remove define.
4309 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4310 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4311 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4312 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4313 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4314 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4315 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4316 (get_longjmp_target): Remove prototype.
4317 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4318 (sigtramp_saved_pc): Remove define.
4319 (i386v4_sigtramp_saved_pc): Remove prototype.
4320 * config/i386/tm-go32.h (FRAME_CHAIN,
4321 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4322 (i386go32_frame_saved_pc): Remove prototype.
4323 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4324 (get_longjmp_target): Remove prototype.
4325 * i386-tdep.h: Include "osabi.h".
4326 (enum i386_abi): Removed.
4327 (enum struct_return): New enum.
4328 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4329 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4330 sc_pc_offset members.
4331 (i386_gdbarch_register_os_abi): Remove prototype.
4332 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4333 I386_SSE_NUM_REGS): New defines.
4334 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4335 I386_SSE_SIZEOF_REGS): New defines.
4336 (i386_register_name, i386_register_byte, i386_register_raw_size):
4337 New prototypes.
4338 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4339 (i386bsd_sigtramp_saved_pc): New prototype.
4340 * i386-tdep.c: Don't include "elf-bfd.h".
4341 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4342 i386_frame_chain, i386_saved_pc_after_call): Make static.
4343 (i386_frame_saved_pc): Rewrite to call architecture dependent
4344 function to deal with signal handlers. Make static.
4345 (i386go32_frame_saved_pc): Removed.
4346 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4347 Removed.
4348 (i386_get_longjmp_target): New function.
4349 (default_struct_convention, pcc_struct_convention,
4350 reg_struct_convention, valid_conventions, struct_convention): New
4351 variables.
4352 (i386_use_struct_convention): New function.
4353 (i386v4_sigtramp_saved_pc): Renamed to
4354 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4355 (i386_pc_in_sigtramp): New function.
4356 (i386_abi_names): Removed.
4357 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4358 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4359 Removed.
4360 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4361 i386_gdbarch_register_os_abi): Removed.
4362 (struct i386_abi_handler): Removed.
4363 (i386_abi_handler_list): Removed.
4364 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4365 functions.
4366 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4367 i386_nw_init_abi): New functions.
4368 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4369 Use set_gdbarch_xxx() calls instead of relying on macros for a
4370 number of calls.
4371 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4372 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4373 Register the various architecture variants defined in this file.
4374
4375 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4376
4377 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4378 (struct main_type): Remove arg_types member. Update comments for
4379 struct field.
4380 (TYPE_ARG_TYPES): Remove.
4381 (TYPE_FN_FIELD_ARGS): Update.
4382 (smash_to_method_type): Update prototype.
4383
4384 * c-typeprint.c (cp_type_print_method_args): Take method type
4385 instead of argument list. Use new argument layout. Simplify.
4386 (c_type_print_args): Use new argument layout. Simplify.
4387 (c_type_print_base): Update call to cp_type_print_method_args.
4388 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4389 argument; use die->type instead. Update call to
4390 smash_to_method_type.
4391 (read_structure_scope): Update call to dwarf2_add_member_fn.
4392 * gdbtypes.c (allocate_stub_method): Update comment.
4393 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4394 Use new argument layout.
4395 (check_stub_method): Use new argument layout. Don't count
4396 void as an argument.
4397 (print_arg_types): Update comments. Use new argument layout.
4398 (recursive_dump_type): Don't print arg_types member.
4399 * hpread.c (hpread_read_struct_type): Use new argument layout.
4400 (fixup_class_method_type): Likewise.
4401 (hpread_type_lookup): Likewise.
4402 * stabsread.c (read_type): Update calls to read_args and
4403 smash_to_method_type.
4404 (read_args): Use new argument layout. Simplify.
4405 * valops.c (typecmp): Use new argument layout. Update parameters
4406 and comments. Simplify.
4407 (hand_function_call): Use new argument layout.
4408 (search_struct_method): Update call to typecmp.
4409 (find_overload_match): Use new argument layout.
4410
4411 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4412
4413 * NEWS: Mention multithreaded debug support for gdbserver.
4414
4415 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4416
4417 * MAINTAINERS: Mention NEWS.
4418
4419 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4420
4421 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4422 (struct mips_objfile_private, compare_pdr_entries): New.
4423 (non_heuristic_proc_desc): Read the ".pdr" section if it
4424 is present.
4425
4426 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4427
4428 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4429 (arm_debug): New static variable.
4430 (_initialize_arm_tdep): Add ``set debug arm'' command.
4431
4432 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4433
4434 * Makefile.in (sim_arm_h): Define.
4435 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4436 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4437 (arm_register_sim_regno): New function, map an internal REGNUM
4438 onto a simulator register number.
4439 (arm_gdbarch_init): Set register_sim_regno.
4440
4441 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4442
4443 * MAINTAINERS: Add self.
4444
4445 2002-06-11 Jim Blandy <jimb@redhat.com>
4446
4447 * source.c (source_info): Mention whether the symtab has
4448 information about preprocessor macros.
4449
4450 Call the command `info macro', not `show macro'.
4451 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4452 Fix error message.
4453 (_initialize_macrocmd): Register `info_macro_command' in
4454 `infolist', not `showlist'.
4455
4456 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4457
4458 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4459 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4460 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4461 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4462 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4463 unconditionally.
4464 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4465 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4466 (_initialize_mips_tdep): Remove dead code.
4467 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4468 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4469 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4470 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4471 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4472 MIPS_LAST_FP_ARG_REGNUM): Remove.
4473
4474 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4475
4476 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4477 (unwind_tmp_obstack_free, parse_frame_info)
4478 (update_context, cfi_read_fp, cfi_write_fp)
4479 (cfi_frame_chain, cfi_init_extra_frame_info)
4480 (cfi_virtual_frame_pointer): Use the above function.
4481 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4482
4483 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4484
4485 * v850-tdep.c (v850_type_is_scalar): New function.
4486 (v850_use_struct_convention): Match current gcc implementation
4487 as close as possible.
4488 (v850_push_arguments): Fix stack_offset handling. Don't write
4489 struct_addr into register. This is done by v850_store_struct_return.
4490 (v850_extract_return_value): Care for structs.
4491 (v850_store_return_value): Ditto.
4492 (v850_store_struct_return): Actually write address.
4493
4494 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4495
4496 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4497 without debug information too.
4498
4499 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4500
4501 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4502 Make multi-arch pure.
4503 * gdbarch.h, gdbarch.c: Re-generate.
4504 * arm-tdep.c (arm_print_float_info): Update.
4505 * arch-utils.h (default_print_float_info): Update.
4506 * arch-utils.c (default_print_float_info): Update.
4507 * infcmd.c (float_info): Update call.
4508
4509 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4510
4511 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4512 the front of the initialize list.
4513
4514 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4515
4516 * infrun.c (struct inferior_status): Replace fields
4517 selected_frame_address and selected_level with field
4518 selected_frame_id.
4519 (save_inferior_status): Update. Use get_frame_id.
4520 (struct restore_selected_frame_args): Delete.
4521 (restore_selected_frame): Update. Use frame_find_by_id.
4522 (restore_inferior_status): Update.
4523
4524 * breakpoint.h (struct breakpoint): Change type of
4525 watchpoint_frame to frame_id.
4526 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4527 call to get_current_frame.
4528 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4529 get_current_frame.
4530 (watchpoint_check): Use frame_find_by_id.
4531
4532 * frame.h (record_selected_frame): Delete declaration.
4533 * stack.c (record_selected_frame): Delete function.
4534
4535 * frame.h (struct frame_id): Define.
4536 (get_frame_id): Declare.
4537 (frame_find_by_id): Declare.
4538 * frame.c (frame_find_by_id): New function.
4539 (get_frame_id): New function.
4540
4541 2002-06-10 Andrey Volkov <avolkov@transas.com>
4542
4543 * ser-e7kpc.c: Fix duplicated define and call of
4544 _initialize_ser_e7000pc
4545
4546 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4547
4548 * signals/signals.c (target_signal_from_host): Fix #ifdef
4549 SIGRTMIN case.
4550 (do_target_signal_to_host): Likewise.
4551
4552 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4553
4554 * mips-tdep.c (mips_find_abi_section): New function.
4555 (mips_gdbarch_init): Call it.
4556
4557 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4558
4559 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4560 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4561 after Andrew's 2002-06-08 gdbarch change.
4562
4563 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4564
4565 * i386-linux-nat.c (suppy_gregset): Don't supply
4566 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4567 register cache.
4568 (fill_gregset): Don't fetch it under the same circumstances.
4569
4570 2002-06-09 Andrew Cagney <cagney@redhat.com>
4571
4572 * Makefile.in (callback_h): Define.
4573 (remote_sim_h): Update path to remote-sim.h.
4574 (remote-rdp.o): Add $(callback_h).
4575 (remote-sim.o): Use $(callback_h).
4576 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4577 * remote-rdp.c: Include "gdb/callback.h".
4578
4579 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4580
4581 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4582 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4583
4584 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4585
4586 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4587 * rdi-share/serpardr.c: Ditto.
4588 * rdi-share/unixcomm.c: Ditto.
4589 * rdi-share/serdrv.c: Ditto.
4590 * rdi-share/hostchan.h: Ditto.
4591 * rdi-share/hostchan.c: Ditto.
4592 * rdi-share/host.h: Ditto.
4593 * rdi-share/devsw.c: Ditto.
4594
4595 * objfiles.h: Change type of obj_private to void pointer.
4596 * pa64solib.c: Update copyright. Don't include "assert.h", use
4597 strcmp instead of STREQ, use LONGEST, do not use PTR
4598 * somsolib.c: Ditto.
4599
4600 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4601 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4602 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4603
4604 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4605
4606 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4607 (default_get_saved_register): Delete function.
4608 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4609 generic_unwind_get_saved_register.
4610 * gdbarch.h, gdbarch.c: Re-generate.
4611
4612 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4613
4614 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4615 generic_func_frame_chain_valid.
4616 * gdbarch.h, gdbarch.c: Re-generate.
4617 * blockframe.c (generic_func_frame_chain_valid): Only check
4618 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4619 passing FP to PC_IN_CALL_DUMMY.
4620 Fix PR gdb/360.
4621
4622 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4623
4624 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4625 (register_gdbarch_data): Initialize init_p.
4626 (gdbarch_data): Initialize data pointer using the init function.
4627 (init_gdbarch_data): Delete function.
4628 (gdbarch_update_p): Update.
4629 (initialize_non_multiarch): Update.
4630 (struct gdbarch): Add field initialized_p.
4631 * gdbarch.h, gdbarch.c: Re-generate.
4632
4633 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4634
4635 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4636 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4637 better do the things actually here.
4638 * x86-64-tdep.c (x86_64_register_name2nr): New.
4639 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4640 (x86_64_gdbarch_init): Respect the above change.
4641 * x86-64-tdep.h (x86_64_register_name2nr)
4642 (x86_64_register_nr2name): Add prototypes.
4643 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4644
4645 2002-06-06 Michael Snyder <msnyder@redhat.com>
4646
4647 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4648 Delete extra braces and re-indent.
4649 (d10v_store_return_value): Char return values
4650 must be shifted over by one byte in R0.
4651 (d10v_extract_return_value): Delete extra braces, re-indent.
4652
4653 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4654
4655 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4656 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4657 (d10v_integer_to_address): Rewrite.
4658 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4659 the d10v specific functions which take care of converting to the
4660 correct space.
4661
4662 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4663
4664 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4665 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4666
4667 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4668
4669 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4670 includes.
4671 * config/tm-linux.h: Ditto.
4672 * config/alpha/tm-alphalinux.h: Ditto.
4673 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4674 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4675 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4676 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4677 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4678 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4679 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4680 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4681 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4682 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4683 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4684 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4685 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4686 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4687 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4688 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4689 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4690 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4691 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4692 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4693 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4694 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4695 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4696 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4697 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4698 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4699 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4700 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4701 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4702 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4703 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4704 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4705 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4706 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4707 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4708 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4709 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4710
4711 2002-05-04 Aidan Skinner <aidan@velvet.net>
4712
4713 * ada-exp.tab.c: New file
4714 * ada-exp.y: New file
4715 * ada-lang.c: New file
4716 * ada-lang.h: New file
4717 * ada-lex.c: New file
4718 * ada-lex.l: New file
4719 * ada-tasks.c: New file
4720 * ada-typeprint.c: New file
4721 * ada-valprint.c: New file
4722
4723 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4724
4725 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4726 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4727
4728 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4729
4730 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4731 insetead of ppc-linux-tdep.o.
4732 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4733 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4734
4735 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4736
4737 2002-05-07 Christian Groessler <chris@groessler.org>
4738 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4739 bit register contents for little endian hosts.
4740
4741 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4742
4743 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4744 any maintainer.
4745
4746 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4747
4748 * gdbarch.h: Regenerate.
4749
4750 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4751
4752 * MAINTAINERS: Add everyone to write-after-approval list.
4753
4754 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4755
4756 * stack.c (frame_info): Use frame_register_unwind instead of
4757 saved_regs. Mention when the SP is on the stack or in a register.
4758
4759 * frame.h (frame_register_unwind_ftype): Define. Document.
4760 (struct frame_info): Add field register_unwind and
4761 register_unwind_cache.
4762 (frame_register_unwind): Declare.
4763 (generic_unwind_get_saved_register): Declare.
4764
4765 * frame.c (frame_register_unwind): New function.
4766 (generic_unwind_get_saved_register): New function.
4767
4768 * blockframe.c (generic_call_dummy_register_unwind): New function.
4769 (frame_saved_regs_register_unwind): New function.
4770 (set_unwind_by_pc): New function.
4771 (create_new_frame): New function.
4772 (get_prev_frame): New function.
4773
4774 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4775
4776 * a29k-share/: Delete directory.
4777 * remote-vx29k.c: Delete file.
4778
4779 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4780
4781 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4782 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4783
4784 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4785
4786 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4787 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4788 (sparc64nbsd-nat.o)
4789 (sparcnbsd-nat.o)
4790 (sparcnbsd-tdep.o): New dependency lists.
4791 * NEWS: Note new UltraSPARC NetBSD native configuration.
4792 * configure.host (sparc64-*-netbsd*): New host.
4793 * configure.tgt (sparc-*-netbsdelf*)
4794 (sparc-*-netbsd*): Set gdb_target to nbsd.
4795 (sparc64-*-netbsd*): New target.
4796 * sparc64nbsd-nat.c: New file.
4797 * sparcnbsd-nat.c: New file.
4798 * sparcnbsd-tdep.c: New file.
4799 * sparcnbsd-tdep.h: New file.
4800 * config/sparc/nbsd.mt: New file.
4801 * config/sparc/nbsd64.mh: New file.
4802 * config/sparc/nbsd64.mt: New file.
4803 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4804 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4805 (HOST_IPC): Remove.
4806 * config/sparc/nbsdaout.mt: Remove.
4807 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4808 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4809 (HOST_IPC): Remove.
4810 * config/sparc/nbsdelf.mt: Remove.
4811 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4812 sparc-nat.c compatiblity defines.
4813 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4814 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4815 * config/sparc/tm-nbsd64.h: New file.
4816 * config/sparc/tm-nbsdaout.h: Remove.
4817 * config/sparc/xm-nbsd.h: Remove.
4818
4819 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4820
4821 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4822 * sparc-tdep.c: Include osabi.h.
4823 (gdbarch_tdep): Add osabi member.
4824 (_initialize_sparc_tdep): Use gdbarch_register.
4825 (sparc_gdbarch_init): Use generic OS ABI framework.
4826 (sparc_dump_tdep): New function.
4827
4828 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4829
4830 * corefile.c (do_captured_read_memory_integer): Return non-zero
4831 result.
4832 (safe_read_memory_integer): Copy result of memory read when
4833 status is non-zero. Also, add comments.
4834
4835 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4836
4837 * Makefile.in (ppc_tdep_h): Define.
4838 (ppc-linux-nat.o)
4839 (ppc-linux-tdep.o)
4840 (rs6000-tdep.o): Use $(ppc_tdep_h).
4841 (ppc-sysv-tdep.o)
4842 (ppcnbsd-nat.o)
4843 (ppcnbsd-tdep.o): New dependency lists.
4844 * ppc-tdep.h: Use generic OS ABI framework.
4845 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4846 (ppc_linux_init_abi): New functions.
4847 (ppc_sysv_abi_broken_use_struct_convention)
4848 (ppc_sysv_abi_use_struct_convention)
4849 (ppc_sysv_abi_push_arguments): Move to...
4850 * ppc-sysv-tdep.c: ...here.
4851 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4852 * rs6000-tdep.c (process_note_abi_tag_sections)
4853 (get_elfosabi): Remove.
4854 (rs6000_gdbarch_init): Use generic OS ABI framework.
4855 (rs6000_dump_tdep): New function.
4856 (_initialize_rs6000_tdep): Use gdbarch_register.
4857 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4858 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4859 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4860 of ppc-linux-tdep.o.
4861 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4862 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4863 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4864 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4865 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4866 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4867
4868 2002-05-29 Jim Blandy <jimb@redhat.com>
4869
4870 * macroscope.c (default_macro_scope): Put `void' in empty argument
4871 list.
4872
4873 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4874
4875 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4876 * arch-utils.c: Include "sim-regno.h".
4877 * gdbarch.sh: Don't include "sim-regno.h".
4878 * gdbarch.h, gdbarch.c: Regenerate.
4879 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4880 here.
4881 * arch-utils.h (legacy_register_sim_regno): To here.
4882 * remote-sim.c (legacy_register_sim_regno): Move function from
4883 here.
4884 * arch-utils.c (legacy_register_sim_regno): To here.
4885
4886 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4887
4888 * sim-regno.h: New file.
4889 * Makefile.in (sim_regno_h): Define.
4890 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4891 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4892 (legacy_register_sim_regno): New function.
4893 (one2one_register_sim_regno): New function.
4894 (gdbsim_fetch_register): Rewrite.
4895 (gdbsim_store_register): Only store a register when
4896 REGISTER_SIM_REGNO is valid.
4897 * d10v-tdep.c: Include "sim-regno.h".
4898 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4899 (d10v_ts3_register_sim_regno): Ditto.
4900 * gdbarch.sh: Include "sim-regno.h".
4901 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4902 * gdbarch.h, gdbarch.c: Regenerate.
4903 * arch-utils.h (default_register_sim_regno): Delete declaration.
4904 * arch-utils.c (default_register_sim_regno): Delete function.
4905
4906 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4907
4908 * ppcnbsd-nat.c: Rewrite.
4909 * ppcnbsd-tdep.c: New file.
4910 * ppcnbsd-tdep.h: New file.
4911 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4912 solib.o, and solib-svr4.o.
4913 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4914 nbsd-tdep.o, and corelow.o.
4915
4916 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4917
4918 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4919 `tr' and `sed'. Mention that `broken' targets are not expected to
4920 build.
4921
4922 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4923
4924 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4925 Let PC point right after the prologue before looking up symbols.
4926
4927 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4928
4929 * i386-tdep.c (i386_register_virtual_type): Return
4930 builtin_type_vec128i for SSE registers.
4931
4932 * gdbtypes.h (builtin_type_vec128i): Declare.
4933
4934 * gdbtypes.c (build_builtin_type_vec128i): New function.
4935 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4936 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4937 (build_gdbtypes): Initialize new builtin vector types.
4938 (_initialize_gdbtypes): Register new vector types with gdbarch.
4939
4940 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4941
4942 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4943 since it has been multi-arch'd.
4944 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4945 Move Alpha and VAX multi-arch news entries to same section
4946 as other multi-arch news.
4947
4948 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4949
4950 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4951 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4952 static. Rename some register numbers to put them in ns32k-tdep
4953 private namespace.
4954 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4955 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4956 functions.
4957 (_initialize_ns32k_tdep): Use gdbarch_register.
4958 * ns32k-tdep.h: New file.
4959 * ns32knbsd-tdep.c: New file.
4960 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4961 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4962 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4963 REGISTER_BYTES, REGISTER_BYTE): Remove.
4964 * config/ns32k/tm-ns32k.h: New file.
4965 * config/ns32k/tm-umax.h: Remove.
4966
4967 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4968
4969 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4970 ns32k_store_struct_return, ns32k_extract_return_value,
4971 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4972 functions.
4973 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4974 ns32k_saved_pc_after_call.
4975 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4976 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4977 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4978 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4979 ns32k_extract_struct_value_address.
4980
4981 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4982
4983 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4984 ns32k_fix_call_dummy): New.
4985 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4986 ns32k_call_dummy_words.
4987 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4988 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4989 CALL_DUMMY_NARGS): Remove.
4990 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4991
4992 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4993
4994 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4995 ns32k_frame_saved_pc, ns32k_frame_args_address,
4996 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4997 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4998 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4999 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5000 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5001 (BREAKPOINT): Remove..
5002 (FRAME_CHAIN): Define as ns32k_frame_chain.
5003 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5004 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5005 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5006 (FRAME_FIND_SAVED_REGS): Remove.
5007 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5008 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5009 (POP_FRAME): Define as ns32k_pop_frame.
5010
5011 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5012
5013 * ns32k-tdep.c (ns32k_register_byte_32082,
5014 ns32k_register_byte_32382, ns32k_register_raw_size,
5015 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5016 functions.
5017 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5018 ns32k_register_byte_32382.
5019 * config/ns32k/tm-umax.h: Update copyright years.
5020 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5021 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5022 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5023 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5024 (ns32k_get_enter_addr): Fix prototype.
5025
5026 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5027
5028 * ns32k-tdep.c: Update copyright years.
5029 (ns32k_register_name_32082): New function.
5030 (ns32k_register_name_32382): Ditto.
5031 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5032 (REGISTER_NAME): Define as ns32k_register_name_32382.
5033 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5034 (REGISTER_NAME): Define as ns32k_register_name_32082.
5035
5036 2002-05-24 Jim Blandy <jimb@redhat.com>
5037
5038 * dwarf2read.c (free_line_header): Use xfree, not free.
5039
5040 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5041
5042 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5043 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5044
5045 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5046
5047 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5048
5049 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5050
5051 From Ross Alexander at NEC Europe:
5052 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5053
5054 2002-05-23 Michael Snyder <msnyder@redhat.com>
5055
5056 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5057 for input, rather than parse_and_eval_address.
5058
5059 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5060
5061 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5062 * Makefile.in (sim_d10v_h): Update definition.
5063
5064 2002-05-24 Andrew Cagney <cagney@redhat.com>
5065
5066 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5067 change `2002-05-22 Michael Snyder' below.
5068 (d10v_push_arguments): Ditto.
5069 (d10v_extract_return_value): Ditto.
5070
5071 2002-05-23 Jim Blandy <jimb@redhat.com>
5072
5073 * macrotab.c (check_for_redefinition): Don't complain if the new
5074 definition is the same as the previous one. Take more arguments
5075 to allow the comparison.
5076 (macro_define_object, macro_define_function): Pass more arguments
5077 to check_for_redefinition.
5078
5079 2002-05-22 Michael Snyder <msnyder@redhat.com>
5080
5081 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5082 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5083 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5084 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5085 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5086 Add a temp variable to save a call (and a memory read).
5087 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5088 if possible (so that PC_IN_CALL_DUMMY will work).
5089
5090 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5091
5092 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5093
5094 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5095
5096 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5097 fde->cie_ptr.
5098 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5099 (dwarf2_build_frame_info): Add offset to fde->initial_location
5100 so that frames of shared libraries are mapped correctly.
5101 (execute_stack_op): Change type of 'result' from ULONGEST to
5102 CORE_ADDR.
5103
5104 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5105
5106 * config/alpha/tm-nbsd.h: Include solib.h.
5107
5108 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5109
5110 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5111 assumptions about the host's byte order.
5112
5113 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5114
5115 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5116 to dependency list.
5117 * alphanbsd-tdep.c: Include solib-svr4.h.
5118 * shnbsd-tdep.c: Ditto.
5119
5120 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5121
5122 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5123 nbsd-tdep.h to dependency list.
5124 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5125 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5126 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5127 nbsdaout.mh and nbsdelf.mh consistently.
5128 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5129 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5130 nbsdaout.mt and nbsdelf.mh consistently.
5131 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5132 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5133 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5134 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5135 a.out shared library stuff from here...
5136 * config/nm-nbsdaout.h: ...to here.
5137 * config/tm-nbsd.h: Remove.
5138 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5139 * config/arm/nbsd.mh: Remove.
5140 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5141 nbsd-tdep.o.
5142 * config/arm/nbsdaout.mh: New file.
5143 * config/arm/nbsdelf.mh: New file.
5144 * config/arm/nm-nbsdaout.h: New file.
5145 * config/i386/nbsd.mh: Remove.
5146 * config/i386/nbsd.mt: Remove.
5147 * config/i386/nbsdaout.mh: New file.
5148 * config/i386/nbsdaout.mt: New file.
5149 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5150 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5151 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5152 i386_register_u_addr): Remove.
5153 * config/i386/nm-nbsdaout.h: New file.
5154 * config/i386/nm-nbsdelf.h: Remove.
5155 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5156 (USE_STRUCT_CONVENTION): Remove.
5157 * config/i386/tm-nbsdaout.h: New file.
5158 * config/i386/tm-nbsdelf.h: Remove.
5159 * config/m68k/nbsd.mh: Remove.
5160 * config/m68k/nbsd.mt: Remove.
5161 * config/m68k/nbsdaout.mh: New file.
5162 * config/m68k/nbsdaout.mt: New file.
5163 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5164 * config/m68k/nm-nbsdaout.h: New file.
5165 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5166 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5167 * config/ns32k/nbsd.mh: Remove.
5168 * config/ns32k/nbsd.mt: Remove.
5169 * config/ns32k/nbsdaout.mh: New file.
5170 * config/ns32k/nbsdaout.mt: New file.
5171 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5172 * config/ns32k/nm-nbsdaout.h: New file.
5173 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5174 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5175 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5176 (SVR4_SHARED_LIBS): Remove.
5177 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5178 * config/sparc/nbsd.mh: Remove.
5179 * config/sparc/nbsd.mt: Remove.
5180 * config/sparc/nbsdaout.mh: New file.
5181 * config/sparc/nbsdaout.mt: New file.
5182 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5183 * config/sparc/nbsdelf.mt: New file.
5184 * config/sparc/nm-nbsdaout.h: New file.
5185 * config/sparc/nm-nbsdelf.h: Remove.
5186 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5187 * config/sparc/tm-nbsdaout.h: New file.
5188
5189 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5190
5191 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5192 mipsnbsd-tdep.c
5193 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5194
5195 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5196
5197 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5198 shnbsd-nat.c.
5199 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5200
5201 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5202
5203 * NEWS: Note new MIPS NetBSD native configuration.
5204 * configure.host (mips*-*-netbsd*): New host.
5205 * configure.tgt (mips*-*-netbsd*): New target.
5206 * mipsnbsd-nat.c: New file.
5207 * mipsnbsd-tdep.c: New file.
5208 * mipsnbsd-tdep.h: New file.
5209 * config/mips/nbsd.mh: New file.
5210 * config/mips/nbsd.mt: New file.
5211 * config/mips/nm-nbsd.h: New file.
5212 * config/mips/tm-nbsd.h: New file.
5213
5214 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5215
5216 * Makefile.in (SFILES): Add osabi.c.
5217 (COMMON_OBS): Add osabi.o.
5218 (osabi.o): New dependency list.
5219 * osabi.c: New file.
5220 * osabi.h: New file.
5221 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5222
5223 * Makefile.in (alpha_tdep_h): Define and use instead of
5224 alpha-tdep.h.
5225 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5226 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5227 Remove.
5228 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5229 * alpha-tdep.h: Include osabi.h.
5230 (alpha_abi): Remove.
5231 (gdbarch_tdep): Use generic OS ABI framework.
5232 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5233 gdbarch_register_osabi.
5234 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5235 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5236 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5237
5238 * Makefile.in (sh_tdep_h): Add osabi.h.
5239 * sh-tdep.h (sh_osabi): Remove.
5240 (gdbarch_tdep): Use generic OS ABI framework.
5241 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5242 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5243 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5244 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5245
5246 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5247 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5248 gdbarch_register_osabi.
5249 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5250 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5251 (get_elfosabi): Rename to...
5252 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5253 ABI framework support routines.
5254 (arm_gdbarch_init): Use generic OS ABI framework.
5255 (arm_dump_tdep): Likewise.
5256 (_initialize_arm_tdep): Likewise.
5257 * arm-tdep.h: Include osabi.h.
5258 (arm_abi): Remove.
5259 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5260 osabi member.
5261 (arm_gdbarch_register_os_abi): Remove prototype.
5262 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5263 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5264
5265 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5266 * mips-tdep.c: Include osabi.h.
5267 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5268 OS ABI framework.
5269
5270 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5271
5272 * h8300-tdep.c: Fix formatting.
5273
5274 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5275
5276 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5277 printing vector registers.
5278
5279 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5280
5281 From Fernando Nasser:
5282 * remote.c (remote_async_open_1): Re-throw the exception when the
5283 connection fails.
5284 (remote_cisco_open): Ditto.
5285 (remote_open_1): Ditto.
5286
5287 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5288
5289 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5290 (remote_start_remote): Add uiout parameter. Pass through to
5291 remote_start_remote_dummy.
5292 (remote_open_1): Use catch_exception instead of catch_errors.
5293 (remote_async_open_1): Ditto.
5294 (remote_cisco_open): Ditto.
5295
5296 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5297
5298 * remote.c (remote_start_remote): Replace PTR with void pointer.
5299 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5300 static.
5301
5302 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5303
5304 * gdb_indent.sh: Allow the script to be run in the sim directory.
5305
5306 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5307
5308 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5309 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5310
5311 * corelow.c (core_open): Only call set_gdbarch_from_file if
5312 exec_bfd is NULL.
5313
5314 2002-05-17 Andrey Volkov <avolkov@transas.com>
5315
5316 * h8300-tdep.c: Add support of EXR register
5317 * config/h8300/tm-h8300.h: Ditto.
5318
5319 2002-05-17 Andrey Volkov <avolkov@transas.com>
5320
5321 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5322
5323 2002-05-17 Andrey Volkov <avolkov@transas.com>
5324
5325 * h8300-tdep.c: Change literal regnums to REGNO.
5326
5327 2002-05-17 Jim Blandy <jimb@redhat.com>
5328
5329 * NEWS: Note addition of macro support.
5330
5331 Expand preprocessor macros in C expressions.
5332 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5333 (scan_macro_expansion, scanning_macro_expansion,
5334 finished_macro_expansion): New function declarations.
5335 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5336 variable declarations.
5337 * parser-defs.h (expression_context_pc): New declaration.
5338 * parse.c (expression_context_pc): New variable.
5339 (parse_exp_1): Set expression_context_pc, as well as
5340 expression_context_block.
5341 * c-exp.y (yylex): If we're not already reading the result of a
5342 macro expansion, try to macro-expand the next token. When we're
5343 done scanning a macro expansion, switch back to the mainline text.
5344 Commas and `if's in a macro's expansion don't terminate the input.
5345 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5346 (macro_original_text, macro_expanded_text,
5347 expression_macro_lookup_func, expression_macro_lookup_baton): New
5348 variables.
5349 (scan_macro_expansion, scanning_macro_expansion,
5350 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5351 c_preprocess_and_parse): New functions.
5352 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5353 c_preprocess_and_parse, instead of c_parse.
5354 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5355 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5356
5357 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5358
5359 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5360 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5361 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5362
5363 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5364
5365 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5366
5367 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5368
5369 * Makefile.in (sh_tdep_h): Define and use.
5370 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5371 register enum): Move to...
5372 * * sh-tdep.h: ...here.
5373 * sh-tdep.c: Include sh-tdep.h.
5374 * sh3-rom.c: Likewise.
5375 * shnbsd-tdep.c: Likewise.
5376
5377 2002-05-16 Michael Snyder <msnyder@redhat.com>
5378
5379 * arm-tdep.c: Spelling fix in comment.
5380
5381 2002-05-16 Jim Blandy <jimb@redhat.com>
5382
5383 Add commands for manually expanding macros and showing their
5384 definitions.
5385 * macrocmd.c, macroscope.c, macroscope.h: New files.
5386 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5387 (macroscope_h): New variable.
5388 (HFILES_NO_SRCDIR): Add macroscope.h.
5389 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5390 (macroscope.o, macrocmd.o): New rules.
5391
5392 Teach the Dwarf 2 reader to read macro information.
5393 * dwarf2read.c: #include "macrotab.h".
5394 (dwarf_macinfo_buffer): New variable.
5395 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5396 dwarf_macinfo_size.
5397 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5398 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5399 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5400 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5401 dwarf2_macro_spaces_in_definition): New complaints.
5402 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5403 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5404 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5405 the partial symbol table.
5406 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5407 from what's recorded in the partial symbol table.
5408 (read_file_scope): If the compilation unit has a
5409 `DW_AT_macro_info' attribute, read its macro information.
5410 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5411
5412 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5413
5414 Fix PR gdb/546
5415 * ser-tcp.c: Don't include <netinet/udp.h>.
5416
5417 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5418
5419 * MAINTAINERS: Update my email address.
5420
5421 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5422
5423 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5424 include file of the same name.
5425
5426 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5427
5428 * configure.tgt: Mark v850 as multi-arched.
5429 * config/v850/tm-v850.h: Remove file.
5430 * config/v850/v850.mt: Eliminate TM_FILE.
5431
5432 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5433
5434 * v850-tdep.c: Full multi-arch.
5435 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5436 Define GDB_MULTI_ARCH to 2.
5437
5438 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5439
5440 * p-exp.y (current_type): New static variable.
5441 Carries the type of the expression at the position that is parsed.
5442 (push_current_type, pop_current_type): Two new functions. Used
5443 to store/restore current_type in expression on specific tokens.
5444 (search_field): New static variable. Set to one after parsing a point
5445 as at that point only a FIELDNAME token should be searched.
5446 (FIELDNAME): New token. After a point only a token belonging to
5447 current_type type definition is allowed.
5448 (all over token rules): reset and change current_type according
5449 to rules.
5450 (exp '[' rule): insert implicit array index field if
5451 exp is a pascal string type.
5452
5453 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5454
5455 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5456 frame info. Use frame_info's saved_regs instead of matching member
5457 in extra_frame_info throughout.
5458 (v850_frame_init_saved_regs): New function.
5459 (v850_init_extra_frame_info): Move most functionality into
5460 v850_frame_init_saved_regs().
5461 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5462 (v850_frame_find_saved_regs): Remove declaration.
5463 (FRAME_FIND_SAVED_REGS): Remove definition.
5464 (v850_frame_init_saved_regs): Add declaration.
5465 (FRAME_INIT_SAVED_REGS): Add definition.
5466
5467 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5468
5469 * v850-tdep.c: Begin multi-arch'ing v850.
5470 (v850_target_architecture_hook): Remove function.
5471 (v850_gdbarch_init): New function. Add code previously in
5472 v850_target_architecture_hook().
5473 (_initialize_v850_tdep): Don't set target_architecture_hook.
5474 Call register_gdbarch_init() instead.
5475
5476 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5477
5478 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5479 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5480 (fixup_class_method_type): Likewise.
5481
5482 2002-05-15 Jim Blandy <jimb@redhat.com>
5483
5484 Add macro structures to GDB's symbol tables. Nobody puts anything
5485 in them yet.
5486 * symtab.h (struct symtab): New member: `macro_table'.
5487 * buildsym.h (pending_macros): New global variable.
5488 * buildsym.c: #include "macrotab.h".
5489 (buildsym_init): Initialize `pending_macros'.
5490 (end_symtab): If we found macro information while reading a CU's
5491 debugging info, do build a symtab structure for it. Make the
5492 symtab point to the macro information, and clear the
5493 `pending_macros' pointer which held it while we were reading the
5494 debug info.
5495 (really_free_pendings): Free any pending macro table.
5496 * objfiles.h (struct objfile): New member: `macro_cache'.
5497 * objfiles.c (allocate_objfile): Set allocate and free functions
5498 for the macro cache's objstack.
5499 (free_objfile): Empty the macro cache's obstack.
5500 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5501 set new allocate and free functions for it.
5502 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5503 free functions for the macro cache's objstack. (Why is this
5504 function building its own objfile?)
5505 * symmisc.c (print_objfile_statistics): Print statistics on the
5506 macro bcache.
5507 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5508
5509 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5510
5511 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5512 (REGISTER_U_ADDR): Delete definition.
5513 (arm_register_u_addr): Delete declaration.
5514
5515 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5516
5517 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5518 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5519
5520 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5521
5522 * regcache.c (register_valid): Revise comments refering to "Not
5523 available" and "unavailable".
5524 * frame.c (frame_register_read): Ditto.
5525 * findvar.c (value_of_register): Ditto.
5526
5527 2002-05-15 Andrew Cagney <cagney@redhat.com>
5528
5529 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5530 (remote-sim.o): Update dependencies.
5531 (d10v-tdep.o): Specify dependencies.
5532 (sim_d10v_h): Define.
5533
5534 2002-05-14 Jim Blandy <jimb@redhat.com>
5535
5536 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5537 * macrotab.c (macro_lookup_inclusion, find_definition,
5538 new_macro_table): Same.
5539
5540 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5541 not `! strcmp ()'. This is a dubious improvement.
5542 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5543
5544 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5545 although it's not necessary, to avoid a warning.
5546
5547 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5548
5549 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5550 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5551 TYPE_INSTANCE_FLAGS.
5552 (struct main_type): New.
5553 (struct type): Move most members to struct main_type. Change
5554 cv_type and as_type to new type_chain member. Add instance_flags.
5555 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5556 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5557 (finish_cv_type): Remove prototype.
5558 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5559 Set TYPE_CHAIN.
5560 (alloc_type_instance): New function.
5561 (smash_type): New function.
5562 (make_pointer_type, make_reference_type, make_function_type)
5563 (smash_to_member_type, smash_to_method_type): Call smash_type.
5564 (make_qualified_type): New function.
5565 (make_type_with_address_space): Call make_qualified_type.
5566 (make_cv_type): Likewise.
5567 (finish_cv_type): Remove unnecessary function.
5568 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5569 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5570 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5571 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5572 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5573 * hpread.c (hpread_read_struct_type): Likewise.
5574 * stabsread.c (read_struct_type): Likewise.
5575
5576 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5577
5578 * configure.tgt: Add a catch all sh* target, for cases like
5579 sh[2,3,4]-elf and sh-hms.
5580
5581 2002-05-14 Keith Seitz <keiths@redhat.com>
5582
5583 * event-loop.c (create_file_handler): Don't do anything but
5584 update data when we are given a fd which we are already
5585 monitoring.
5586
5587 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5588
5589 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5590 (update_context): Use __func__ in warnings.
5591
5592 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5593
5594 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5595 and tcp_close to net_open and net_close.
5596 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5597 using UDP if requested. Don't try to disable Nagle on UDP
5598 sockets.
5599 * remote.c (remote_serial_open): New function. Warn about UDP.
5600 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5601
5602 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5603
5604 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5605
5606 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5607
5608 * configure.tgt: Remove sh-hms target.
5609 * MAINTAINERS: Don't list sh-hms as a separate target.
5610
5611 2002-05-13 Jim Blandy <jimb@redhat.com>
5612
5613 Add first preprocessor macro-expansion files.
5614 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5615 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5616 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5617 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5618 (COMMON_OBS): Add macrotab.o, macroexp.o.
5619 (macroexp.o, macrotab.o): New rules.
5620
5621 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5622
5623 * config/m88k/tm-m88k.h: Update copyright.
5624 (m88k_target_write_pc): Declare
5625 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5626 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5627 (SHIFT_INST_REGS): Update definition.
5628 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5629 using old definition of TARGET_WRITE_PC.
5630 * regcache.c (generic_target_write_pc): Delete code handling
5631 NNPC_REGNUM.
5632 * gdbarch.sh (NNPC_REGNUM): Delete.
5633 * gdbarch.h, gdbarch.c: Regenerate.
5634
5635 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5636
5637 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5638 builtin reg number.
5639
5640 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5641
5642 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5643 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5644 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5645 access macros.
5646 * c-typeprint.c (cp_type_print_method_args): Likewise.
5647 (c_type_print_args): Likewise.
5648 * d10v-tdep.c (d10v_push_arguments): Likewise.
5649 (d10v_extract_return_value): Likewise.
5650 * expprint.c (print_subexp): Likewise.
5651 * gdbtypes.c (lookup_primitive_typename): Likewise.
5652 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5653 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5654 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5655 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5656 (TYPE_VECTOR): Likewise.
5657 * hpread.c (hpread_read_struct_type)
5658 (fix_static_member_physnames, fixup_class_method_type)
5659 (hpread_type_lookup): Likewise.
5660 * mdebugread.c (parse_symbol, parse_type): Likewise.
5661 * p-lang.c (is_pascal_string_type): Likewise.
5662 * valops.c (hand_function_call): Likewise.
5663 * x86-64-tdep.c (classify_argument): Likewise.
5664
5665 * hpread.c (hpread_read_function_type)
5666 (hpread_read_doc_function_type): Call replace_type.
5667 * dstread.c (create_new_type): Delete.
5668 (decode_dst_structure, process_dst_function): Call alloc_type.
5669 Use type access macros.
5670
5671 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5672
5673 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5674 the're not supported by the current architecture.
5675 (i387_fill_fxsave): Likewise.
5676
5677 2002-05-12 Fred Fish <fnf@redhat.com>
5678
5679 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5680 sect_index_xxx members to index the first slot in section_offsets
5681 if all of the section_offsets are zero.
5682
5683 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5684
5685 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5686 checked in with last change.
5687
5688 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5689
5690 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5691 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5692 config.sub.
5693
5694 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5695
5696 * Makefile.in: Update dependencies.
5697
5698 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5699
5700 * language.c (local_hex_string_custom): Simplify. Do not depend
5701 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5702
5703 * memattr.c (mem_info_command): Replace calls to
5704 longest_local_hex_string and longest_local_hex_string_custom.
5705 * buildsym.c (make_blockvector): Ditto.
5706 * solib.c (info_sharedlibrary_command): Ditto.
5707 * tracepoint.c (tracepoints_info): Ditto.
5708 * symtab.c (print_msymbol_info): Ditto.
5709
5710 * language.c (local_hex_string): Delete.
5711 (local_hex_string_custom): Delete.
5712 (longest_local_hex_string): Rename to local_hex_string.
5713 (longest_local_hex_string_custom): Rename to
5714 local_hex_string_custom.
5715 * language.h (local_hex_string): Change parameter type to LONGEST.
5716 (local_hex_string_custom): Ditto.
5717 (longest_local_hex_string): Delete declaration.
5718 (longest_local_hex_string_custom): Ditto.
5719
5720 * solib.c: Update copyright.
5721 * memattr.c: Update copyright.
5722
5723 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5724
5725 * arch-utils.h (legacy_register_to_value): Declare.
5726 (legacy_value_to_register): Declare.
5727 (legacy_convert_register_p): Declare.
5728 * arch-utils.c (legacy_register_to_value): New function.
5729 (legacy_value_to_register): New function.
5730 (legacy_convert_register_p): New function.
5731
5732 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5733 (VALUE_TO_REGISTER): Define.
5734 (CONVERT_REGISTER_P): Define.
5735 * gdbarch.h, gdbarch.c: Regenerate.
5736
5737 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5738 VALUE_TO_REGISTER.
5739 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5740 CONVERT_REGISTER_P.
5741
5742 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5743 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5744
5745 * Makefile.in: Update dependencies for valops.c.
5746 * valops.c: Include "gdb_assert.h".
5747 (typecmp): Skip THIS parameter to methods.
5748 (find_method_list): Remove static_memfuncp argument,
5749 update callers. Check for stub methods.
5750 (find_value_oload_method_list): Don't set *static_memfuncp.
5751 (find_overload_match): Don't check for stub methods. Assert
5752 that methods are not stubbed. Handle static methods.
5753 (value_find_oload_method_list): Remove static_memfuncp argument.
5754 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5755 to the argument list for static stub methods.
5756 * value.h (value_find_oload_method_list): Update prototype.
5757
5758 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5759
5760 * arch-utils.h (generic_register_size): Declare.
5761 (generic_register_raw_size, generic_register_virtual_size): Delete
5762 declarations.
5763 * arch-utils.c (generic_register_raw_size): Delete.
5764 (generic_register_size): New function.
5765 (generic_register_virtual_size): Delete.
5766
5767 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5768 default generic_register_size.
5769 * gdbarch.h, gdbarch.c: Re-generate.
5770
5771 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5772 register_virtual_size.
5773 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5774 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5775
5776 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5777
5778 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5779 * gdbarch.h, gdbarch.c: Regenerate.
5780 * gnu-v3-abi.c: Update copyright.
5781 (vtable_address_point_offset): Update.
5782 (gnuv3_rtti_type): Update.
5783 (gnuv3_baseclass_offset): Update.
5784 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5785 (init_fetch_link_map_offsets): Update.
5786 * remote.c (get_remote_state): Update.
5787
5788 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5789
5790 * TODO: Remove value_headof/value_from_vtable_info comment.
5791 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5792 * values.c (value_headof, value_from_vtable_info): Delete.
5793 * value.h (value_from_vtable_info): Delete prototype.
5794
5795 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5796
5797 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5798 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5799 $(gdb_regex_h).
5800 (gdb_assert_h): Define.
5801 (gdb_wait_h): Define.
5802 (gdb_regex_h): Define.
5803
5804 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5805
5806 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5807 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5808
5809 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5810
5811 * nbsd-tdep.c: Fix comment.
5812
5813 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5814
5815 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5816 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5817 (nbsd-tdep.o): New dependency list.
5818 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5819 nbsd-tdep.h.
5820 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5821 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5822 * nbsd-tdep.c: New file.
5823 * nbsd-tdep.h: New file.
5824 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5825 nbsd-tdep.h.
5826 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5827 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5828 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5829 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5830
5831 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5832
5833 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5834 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5835 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5836 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5837 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5838 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5839
5840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5841
5842 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5843 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5844 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5845 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5846 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5847 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5848 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5849
5850 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5851
5852 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5853 fetch_elfcore_registers to...
5854 * i386nbsd-tdep.c: ...here.
5855 (i386nbsd_use_struct_convention): Rename to...
5856 (i386nbsd_aout_use_struct_convention): ...this.
5857 (i386nbsd_supply_reg): New function.
5858 (i386nbsd_fill_reg): New function.
5859 (fetch_core_registers): Use i386nbsd_supply_reg.
5860 (fetch_elfcore_registers): Likewise.
5861 (_initialize_i386nbsd_tdep): New function.
5862 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5863 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5864 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5865 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5866 (i386nbsd_aout_use_struct_convention): ...this.
5867
5868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5869
5870 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5871 (store_inferior_registers): Use shnbsd_fill_reg.
5872 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5873 sh_nbsd_supply_register): Collapse into...
5874 (shnbsd_supply_reg): ...this.
5875 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5876 (shnbsd_fill_reg): ...this.
5877 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5878 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5879 (fetch_core_registers): Use shnbsd_supply_reg.
5880 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5881 (sh_nbsd_core_fns): Rename to...
5882 (shnbsd_core_fns): ...this.
5883 (sh_nbsd_elfcore_fns): Rename to...
5884 (shnbsd_elfcore_fns): ...this.
5885 (sh_nbsd_init_abi): Rename to...
5886 (shnbsd_init_abi): ...this.
5887 (_initialize_sh_nbsd_tdep): Rename to...
5888 (_initialize_shnbsd_tdep): ...this.
5889 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5890 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5891 sh_nbsd_fill_register): Remove prototypes.
5892 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5893
5894 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5895
5896 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5897 (i387-nat.o): Delete dependency list.
5898 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5899 (x86-64-linux-nat.o): Likewise.
5900 * i387-nat.c: Delete file, moving contents to...
5901 * i387-tdep.c: ...here.
5902 * i387-nat.h: Rename...
5903 * i387-tdep.h: ...to this.
5904 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5905 * i386-linux-nat.c: Likewise.
5906 * i386bsd-nat.c: Likewise.
5907 * i386gnu-nat.c: Likewise.
5908 * i386nbsd-nat.c: Likewise.
5909 * i386v4-nat.c: Likewise.
5910 * x86-64-linux-nat.c: Likewise.
5911 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5912 * config/i386/go32.mh (NATDEPFILES): Likewise.
5913 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5914 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5915 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5916 * config/i386/linux.mh (NATDEPFILES): Likewise.
5917 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5918 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5919 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5920 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5921
5922 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5923
5924 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5925 (alphanbsd-nat.o): Remove dependency list.
5926 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5927 * alphanbsd-nat.c: Delete. Contents moved to...
5928 * alphanbsd-tdep.c: ...here.
5929 (_initialize_alphanbsd_tdep): Register core functions.
5930 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5931
5932 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5933
5934 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5935 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5936 (alphanbsd-nat.o): Likewise.
5937 (alphabsd-tdep.o): New dependency list.
5938 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5939 (fill_gregset): Use alphabsd_fill_reg.
5940 (supply_fpregset): Use alphabsd_supply_fpreg.
5941 (fill_fpregset): Use alphabsd_fill_fpreg.
5942 (fetch_inferior_registers): Use struct reg and struct fpreg
5943 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5944 and alphabsd_supply_fpreg.
5945 (store_inferior_registers): Use struct reg and struct fpreg
5946 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5947 and alphabsd_fill_fpreg.
5948 * alphabsd-tdep.c: New file.
5949 * alphabsd-tdep.h: New file.
5950 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5951 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5952 alphabsd_supply_fpreg.
5953 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5954 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5955
5956 2002-05-11 Eric Christopher <echristo@redhat.com>
5957
5958 * mips-tdep.c (mips_double_register_type): Fix thinko.
5959 (mips_single_register_type): Ditto.
5960 * MAINTAINERS: Add self.
5961
5962 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5963
5964 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5965 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5966 right thing on architectures with different endianness and/or
5967 integer sizes.
5968
5969 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5970
5971 From Christian Limpach <chris@Pin.LU>
5972 * configure.in: Change sed expression which comments out
5973 NATDEPFILES to also comment out continuation lines.
5974 * configure: Regenerate.
5975
5976 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5977
5978 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5979 big patch.
5980
5981 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5982
5983 * sh-tdep.c: Include correct file.
5984
5985 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5986
5987 New support for sh64-elf (sh5) target.
5988
5989 * configure.tgt: For sh64-elf target, default to sh-elf.
5990
5991 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5992 (struct gdbarch_tdep): Add new fields for new registers and ABI
5993 info.
5994
5995 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5996 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5997 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5998 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5999 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6000 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6001 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6002 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6003 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6004 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6005 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6006 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6007 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6008 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6009 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6010 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6011 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6012 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6013 sign_extend, sh64_nofp_frame_init_saved_regs,
6014 sh64_init_extra_frame_info, sh64_get_saved_register,
6015 sh64_extract_struct_value_address, sh64_pop_frame,
6016 sh64_push_arguments, sh64_extract_return_value,
6017 sh64_store_return_value, sh64_show_media_regs,
6018 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6019 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6020 sh_sh64_register_virtual_type,
6021 sh_sh64_register_convert_to_virtual,
6022 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6023 sh64_register_read, sh64_pseudo_register_write,
6024 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6025 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6026 sh64_do_pseudo_register, sh_compact_do_registers_info,
6027 sh64_do_registers_info, sh_gdbarch_init): New functions.
6028
6029 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6030
6031 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6032
6033 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6034
6035 * linespec.c (decode_line_1): Check for a double quote after
6036 a filename correctly.
6037
6038 2002-05-10 Jim Blandy <jimb@redhat.com>
6039
6040 Properly track the size of the current objfile's .debug_line section.
6041 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6042 (DWARF_LINE_SIZE): New macro.
6043 (dwarf2_build_psymtabs_hard): Record the line section's size in
6044 the partial symbol table.
6045 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6046 symbol table.
6047
6048 2002-05-10 Petr Sorfa <petrs@caldera.com>
6049
6050 * ia64-tdep.c: Handle breakpoints on L instruction type
6051 in MLX instruction bundle by moving the breakpoint to
6052 the third slot (X instruction type) as L holds only data.
6053
6054 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6055
6056 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6057 (process_one_symbol): Complain about discarding local symbols
6058 due to a misplaced N_LBRAC entry.
6059
6060 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6061
6062 From Daniel Berlin <dan@cgsoftware.com>
6063 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6064 decrease the depth we are at, in the case of templates.
6065
6066 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6067
6068 * mips-tdep.c (mips_float_register_type): New function.
6069 (mips_double_register_type): New function.
6070 (mips_print_register): Use them.
6071 (do_fp_register_row): Likewise.
6072
6073 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6074
6075 * signals/signals.c (signals): Remove conditional compilation around
6076 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6077 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6078
6079 2002-05-09 Michael Snyder <msnyder@redhat.com>
6080
6081 * remote-rdp.c (remote_rdp_can_run): Remove.
6082
6083 2002-05-09 Tom Tromey <tromey@redhat.com>
6084
6085 * jv-valprint.c (java_val_print): Handle `char' as a special case
6086 of TYPE_CODE_INT.
6087
6088 2002-05-09 Michael Snyder <msnyder@redhat.com>
6089
6090 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6091 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6092 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6093 str r(0123),[sp,#nn].
6094 (arm_skip_prologue): Ditto. Also make disassembly
6095 order-independent by placing it in a loop.
6096
6097 2002-05-06 Michael Snyder <msnyder@redhat.com>
6098
6099 * stabsread.c (read_type): Add recognition for new attribute:
6100 "@V;" means that an array type is actually a vector.
6101 This is analogous to the vector flag that's been added to dwarf2.
6102
6103 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6104
6105 * i386-tdep.h (i386_abi): New enum.
6106 (struct gdbarch_tdep): Replace os_ident member with abi.
6107 (i386_gdbarch_register_os_abi): New prototype.
6108 * i386-tdep.c (i386_abi_names): New array.
6109 (process_note_abi_tag_sections): Removed.
6110 (process_note_sections): New function.
6111 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6112 (struct i386_abi_handler): New struct.
6113 (i386_abi_handler_list): New variable.
6114 (i386_gdbarch_register_os_abi): New function.
6115 (i386_gdbarch_init): Adapt for the changes given above.
6116
6117 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6118
6119 * gregset.h: Say "GNU/Linux".
6120
6121 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6122
6123 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6124 (build_gdbtypes): Build builtin_type_v2_float.
6125 (_initialize_gdbtypes): Register new builtin type.
6126
6127 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6128
6129 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6130 (clear_gdbarch_swap): New function.
6131 (initialize_non_multiarch): Call.
6132 (gdbarch_update_p): Before calling init(), swap out and clear the
6133 existing architecture.
6134 * gdbarch.c: Regenerate.
6135
6136 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6137
6138 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6139 alphanbsd-tdep.c.
6140
6141 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6142
6143 * sh-nbsd-nat.c: Rename to...
6144 * shnbsd-nat.c: ...this.
6145 * sh-nbsd-tdep.c: Rename to...
6146 * shnbsd-tdep.c: ...this.
6147 * sh-nbsd-tdep.h: Rename to...
6148 * shnbsd-tdep.h: ...this.
6149 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6150 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6151
6152 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6153
6154 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6155 concatenation for command help messages.
6156
6157 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6158
6159 * NEWS: Note new sh*-*-netbsdelf* configuration.
6160 * configure.host: Set gdb_host_cpu to sh for all sh*.
6161 (sh*-*-netbsdelf*): New host.
6162 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6163 (sh*-*-netbsdelf*): New target.
6164 * sh-nbsd-nat.c: New file.
6165 * sh-nbsd-tdep.c: New file.
6166 * sh-nbsd-tdep.h: New file.
6167 * config/sh/nbsd.mh: New file.
6168 * config/sh/nbsd.mt: New file.
6169 * config/sh/nm-nbsd.h: New file.
6170 * config/sh/tm-nbsd.h: New file.
6171
6172 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6173
6174 * sh-tdep.c (sh_osabi_names): Declare.
6175 (process_note_abi_tag_sections): New function.
6176 (get_elfosabi): Ditto.
6177 (sh_gdbarch_register_os_abi): Ditto.
6178 (sh_dump_tdep): Ditto.
6179 _initialize_sh_tdep): Use gdbarch_register to register
6180 sh_gdbarch_init and sh_dump_tdep.
6181 * config/sh/tm-sh.h (sh_osabi): Declare.
6182 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6183
6184 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6185
6186 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6187 (thumb_scan_prologue): Ditto.
6188 (arm_find_callers_reg): Ditto.
6189 (arm_frame_chain): Ditto.
6190 (arm_init_extra_frame_info): Ditto.
6191 (arm_frame_saved_pc): Ditto.
6192 (arm_pop_frame): Ditto.
6193 (arm_push_return_address): New function.
6194 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6195 call_dummy_location, call_dummy_breakpoint_offset_p,
6196 call_dummy_breakpoint_offset, call_dummy_p,
6197 call_dummy_stack_adjust_p, call_dummy_words,
6198 sizeof_call_dummy_words, call_dummy_start_offset,
6199 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6200 call_dummy_address, push_return_address and push_dummy_frame for
6201 generic dummy frames.
6202
6203 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6204
6205 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6206 size computation for alloca.
6207 (sh_fp_frame_init_saved_regs): Likewise.
6208
6209 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6210
6211 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6212 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6213 * arm-tdep.c (arm_store_return_value): Use them.
6214 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6215 * remote-rdp.c (remote_rdp_fetch_register): Use
6216 ARM_MAX_REGISTER_RAW_SIZE.
6217 (remote_rdp_store_register): Likewise.
6218
6219 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6220
6221 * dwarf2cfi.c: Code cleanup, removed unused variables,
6222 added default labels to switch {} statements.
6223 * x86-64-tdep.c: Ditto.
6224 * x86-64-linux-nat.c: Ditto.
6225
6226 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6227
6228 * solib.h: Protect against multiple inclusion.
6229
6230 2002-05-06 Jim Blandy <jimb@redhat.com>
6231
6232 Add first preprocessor macro-expansion files.
6233 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6234 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6235 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6236 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6237 (COMMON_OBS): Add macrotab.o, macroexp.o.
6238 (macroexp.o, macrotab.o): New rules.
6239
6240 Separate the job of reading the line number info statement program
6241 header (...expialidocious) out into its own function.
6242 * dwarf2read.c (struct line_head, struct filenames, struct
6243 directories): Replace with...
6244 (struct line_header): New structure, containing the full
6245 contents of the statement program header, including the
6246 include directory and file name tables.
6247 (read_file_scope): If we have line number info, instead of just
6248 calling dwarf_decode_lines to do all the work, call
6249 dwarf_decode_line_header first to get a `struct line_header'
6250 containing the data in the statement program header, and then
6251 pass that to dwarf_decode_lines, which will pick up where that
6252 left off. Be sure to clean up the `struct line_header' object.
6253 (dwarf_decode_line_header, free_line_header, add_include_dir,
6254 add_file_name): New functions.
6255 (dwarf_decode_lines): Move all the code to read the statement
6256 program header into dwarf_decode_line_header. Take the line
6257 header it built as the first argument, instead of the offset to
6258 the compilation unit's line number info. Use the new `struct
6259 line_header' type instead of the old structures. No need to do
6260 cleanups here now, since we don't allocate anything.
6261 (dwarf2_statement_list_fits_in_line_number_section,
6262 dwarf2_line_header_too_long): New complaints.
6263
6264 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6265
6266 * gdbtypes.c (init_vector_type): New function.
6267 (build_builtin_type_vec128): Simplify the representation of SIMD
6268 registers.
6269 (build_gdbtypes): Initialize new builtin vector types.
6270 (_initialize_gdbtypes): Register new vector types with gdbarch.
6271 (builtin_type_v4_float, builtin_type_v4_int32,
6272 builtin_type_v8_int16, builtin_type_v16_int8,
6273 builtin_type_v2_int32, builtin_type_v4_int16,
6274 builtin_type_v8_int8): New (renamed) SIMD types.
6275
6276 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6277
6278 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6279 (i387_fill_fxsave): Likewise.
6280
6281 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6282
6283 * alpha-tdep.c (alpha_extract_return_value): Don't use
6284 non-constant array size in prototype.
6285
6286 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6287
6288 From Brian Taylor <briant at model dot com>:
6289 * ui-out.c (ui_out_field_core_addr): Use the function
6290 longest_local_hex_string_custom'to format addresses > 32 bits
6291 wide.
6292
6293 * ui-out.c (ui_out_field_core_addr): Update comment.
6294
6295 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6296
6297 * stack.c (select_and_print_frame): Make static. Delete the
6298 parameter `level'.
6299 (func_command): Update call.
6300 (select_frame_command): Delete code computing the frame level.
6301 * frame.h (select_and_print_frame): Delete declaration.
6302
6303 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6304
6305 * sparc-tdep.c (sparc_get_saved_register): Comment why
6306 get_prev_frame call is safe.
6307
6308 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6309
6310 * frame.h (select_frame): Delete level parameter.
6311 * stack.c (select_frame): Update. Use frame_relative_level to
6312 obtain the frame's level.
6313 (select_and_print_frame): Update call.
6314 (select_frame_command): Ditto.
6315 (up_silently_base): Ditto.
6316 (down_silently_base): Ditto.
6317 * ocd.c (ocd_start_remote): Ditto.
6318 * remote-rdp.c (remote_rdp_open): Ditto.
6319 * remote-mips.c (mips_initialize): Ditto.
6320 (common_open): Ditto.
6321 * remote-e7000.c (e7000_start_remote): Ditto.
6322 * m3-nat.c (select_thread): Ditto.
6323 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6324 (child_get_current_exception_event): Ditto.
6325 * varobj.c (varobj_create): Ditto.
6326 (varobj_update): Ditto.
6327 (c_value_of_root): Ditto.
6328 * tracepoint.c (finish_tfind_command): Ditto.
6329 * corelow.c (core_open): Ditto.
6330 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6331 * thread.c (info_threads_command): Ditto.
6332 (switch_to_thread): Ditto.
6333 * infrun.c (normal_stop): Ditto.
6334 (restore_selected_frame): Ditto.
6335 (restore_inferior_status): Ditto.
6336 * breakpoint.c (insert_breakpoints): Ditto.
6337 (watchpoint_check): Ditto.
6338 (bpstat_stop_status): Ditto.
6339 (do_enable_breakpoint): Ditto.
6340 * blockframe.c (flush_cached_frames): Ditto.
6341 (reinit_frame_cache): Ditto.
6342
6343 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6344
6345 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6346 maintainer.
6347
6348 2002-05-04 Jim Blandy <jimb@redhat.com>
6349
6350 * gdbtypes.c (replace_type): Doc fix.
6351
6352 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6353
6354 * valprint.c (strcat_longest): Delete commented out function.
6355 Update copyright.
6356
6357 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6358
6359 * MAINTAINERS: Mark a29k as deleted.
6360 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6361 Move new configurations to the top.
6362 * configure.tgt: Remove a29k.
6363 * config/a29k/tm-vx29k.h: Delete.
6364 * config/a29k/vx29k.mt: Delete.
6365 * config/a29k/tm-a29k.h: Delete.
6366 * config/a29k/a29k-udi.mt: Delete.
6367 * config/a29k/a29k.mt: Delete.
6368 * a29k-tdep.c: Delete.
6369 * remote-udi.c: Delete.
6370 * remote-mm.c: Delete.
6371 * remote-eb.c: Delete.
6372 * remote-adapt.c: Delete.
6373 * Makefile.in: Remove obsolete code.
6374 * config/s390/s390x.mt: Ditto.
6375 * config/s390/s390.mt: Ditto.
6376 * config/sparc/sparclynx.mh: Ditto.
6377 * config/sparc/linux.mh: Ditto.
6378 * config/pa/hppaosf.mh: Ditto.
6379 * config/pa/hppabsd.mh: Ditto.
6380 * config/ns32k/nbsd.mt: Ditto.
6381 * config/mips/vr5000.mt: Ditto.
6382 * config/m68k/sun3os4.mh: Ditto.
6383 * config/m68k/nbsd.mt: Ditto.
6384 * config/m68k/m68klynx.mh: Ditto.
6385 * config/m32r/m32r.mt: Ditto.
6386 * config/i386/x86-64linux.mt: Ditto.
6387 * config/i386/nbsdelf.mt: Ditto.
6388 * config/i386/nbsd.mt: Ditto.
6389 * config/i386/i386lynx.mh: Ditto.
6390
6391 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6392
6393 * target.c (debug_print_register): New function. Handle oversize
6394 registers.
6395 (debug_to_fetch_registers): Call.
6396 (debug_to_store_registers): Call.
6397
6398 2002-05-03 Jim Blandy <jimb@redhat.com>
6399
6400 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6401 (read_type): Doc fix.
6402 * gdbtypes.c (replace_type): Doc fix.
6403
6404 * stabsread.c (multiply_defined_struct): New complaint.
6405 (read_struct_type): If the type we were passed isn't empty, or
6406 incomplete, don't read the new struct type into it; complain,
6407 and return the original type unchanged. Take a new `type_code'
6408 argument, which is the type code for the new type.
6409 (read_type): Rather than storing the type's type code here, pass
6410 it as an argument to read_struct_type, and let that take care of
6411 storing it. That way, we don't overwrite the original type code,
6412 so read_struct_type can use it to decide whether we're overwriting
6413 something we shouldn't.
6414 (complain_about_struct_wipeout): New function.
6415
6416 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6417
6418 * gdbarch.sh: Assert that gdbarch is non-NULL.
6419 * gdbarch.c: Regenerate.
6420
6421 2002-05-03 Jason Merrill <jason@redhat.com>
6422
6423 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6424 and return NULL.
6425
6426 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6427
6428 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6429 (x86_64_dwarf2gdb_regno_map_length),
6430 (x86_64_dwarf2_reg_to_regnum): Added.
6431 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6432 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6433 (_initialize_x86_64_tdep): Synced with the change above.
6434 (x86_64_skip_prologue): Reformulated message.
6435
6436 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6437
6438 * f-exp.y: Also use new prev_lexptr variable
6439 to improve error reporting. Based on Michael Snyder
6440 2002-04-24 dated patch to c-exp.y.
6441 * jv-exp.y: Likewise.
6442 * m2-exp.y: Likewise.
6443
6444 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6445
6446 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6447 we are dealing with vectors.
6448
6449 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * config/m68k/tm-nbsd.h: Obvious fix,
6452 correct machine name.
6453
6454 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6455
6456 * p-typeprint.c (pascal_type_print_base): Add support
6457 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6458
6459 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6460
6461 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6462 for fondamental pascal 'char' type.
6463
6464 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6465
6466 * p-lang.h (is_pascal_string_type): Declaration changed,
6467 new sixth argument of type char ** added.
6468 * p-lang.c (is_pascal_string_type): Implementation
6469 changed. Args length_pos, length_size, string_pos, char_size
6470 can now be NULL. New argument arrayname set to the field
6471 name of the char array. Return value set to char array
6472 field index plus one.
6473 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6474 is_pascal_string_type function.
6475
6476 2002-05-02 Andrew Cagney <cagney@redhat.com>
6477
6478 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6479 <cagney@redhat.com> change.
6480 * gdbarch.c: Regenerate.
6481
6482 2002-05-02 Andrew Cagney <cagney@redhat.com>
6483
6484 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6485 before probing for a new one. Detect errorenous gdbarch_init
6486 functions.
6487 * gdbarch.c: Regenerate.
6488
6489 2002-05-01 Andrew Cagney <cagney@redhat.com>
6490
6491 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6492 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6493 * config/v850/tm-v850.h: Ditto. Update copyright.
6494
6495 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6496
6497 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6498 current_gdbarch.
6499
6500 2002-04-30 Michael Snyder <msnyder@redhat.com>
6501
6502 * arm-tdep.c: Whitespace clean-ups.
6503 (arm_skip_prologue): Fix thinko; two lines
6504 should have been removed as part of 4/24 change.
6505
6506 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6507
6508 * rs6000-tdep.c: Added comment describing how fpscr register
6509 numbers were chosen.
6510
6511 2002-04-30 Michael Snyder <msnyder@redhat.com>
6512
6513 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6514
6515 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6516
6517 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6518 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6519 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6520
6521 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6522
6523 From Louis Hamilton <hamilton@redhat.com>:
6524 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6525 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6526 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6527 not bfd-private xcoff data, to determine wordsize.
6528 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6529
6530 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6531
6532 GDB 5.2 released from 5.2 branch.
6533
6534 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6535
6536 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6537 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6538 (x86_64_register_info_table): Added comments with register numbers.
6539
6540 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6541
6542 * rs6000-tdep.c (rs6000_extract_return_value,
6543 rs6000_store_return_value): Handle returning vectors.
6544 (rs6000_gdbarch_init): Use
6545 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6546 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6547 New function.
6548 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6549 vectors.
6550 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6551 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6552
6553 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6554
6555 * hpread.c (hpread_psymtab_to_symtab_1,
6556 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6557 with fprintf_unfiltered (gdb_stderr,...).
6558
6559 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6560
6561 * remote-array.c (printf_monitor, write_monitor,
6562 array_insert_breakpoint, array_remove_breakpoint ):
6563 Replace fprintf (stderr,...
6564 with fprintf_unfiltered (gdb_stderr,....
6565 * remote-es.c: Likewise.
6566 * remote-os9k.c: Likewise.
6567 * remote-st.c: Likewise.
6568
6569 2002-04-28 Andreas Schwab <schwab@suse.de>
6570
6571 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6572 linux-proc.o and gcore.o.
6573
6574 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6575
6576 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6577 code without frame pointers.
6578
6579 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6580
6581 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6582 ON_STACK is needed.
6583
6584 2002-04-26 Ben Elliston <bje@redhat.com>
6585
6586 * target.c (do_xfer_memory): Correct reference to the new option
6587 "trust-readonly-sections".
6588
6589 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6590
6591 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6592 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6593 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6594 vectors.
6595 (read_array_type): Record the fact that this array type is really a
6596 vector (i.e. are passed in by value).
6597
6598 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6599
6600 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6601 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6602 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6603 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6604 * alpha-linux-tdep.c: Include frame.h.
6605 (alpha_linux_sigcontext_addr): New function.
6606 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6607 alpha_linux_sigcontext_addr.
6608 * alpha-osf1-tdep.c: Include gdbcore.h.
6609 (alpha_osf1_sigcontext_addr): New function.
6610 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6611 alpha_osf1_sigcontext_addr.
6612 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6613 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6614
6615 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6616
6617 * stack.c (selected_frame_level):
6618 (select_frame): Do not set selected_frame_level.
6619 * frame.h (selected_frame_level): Delete declaration.
6620
6621 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6622
6623 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6624 convert_from_func_ptr-addr when AIX / PowerOpen.
6625
6626 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6627
6628 * valops.c (hand_function_call): Call
6629 generic_save_call_dummy_addr.
6630 * frame.h (generic_save_call_dummy_addr): Declare.
6631 * blockframe.c (struct dummy_frame): Add fields call_lo and
6632 call_hi.
6633 (generic_find_dummy_frame): Check for PC in range call_lo to
6634 call_hi instead of entry_point_address.
6635 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6636 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6637 (generic_save_call_dummy_addr): New function.
6638
6639 2002-04-24 David S. Miller <davem@redhat.com>
6640
6641 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6642 sparc_skip_prologue.
6643 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6644 information to find prologue when possible.
6645 (sparc_prologue_frameless_p): Call examine_prologue directly.
6646 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6647 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6648 second argument.
6649 (SKIP_PROLOGUE): Likewise.
6650
6651 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6652
6653 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6654 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6655 indicate that the condition it was testing is always true.
6656 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6657 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6658 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6659
6660 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6661
6662 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6663 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6664 tdep->jb_pc and tdep->jb_elt_size.
6665 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6666 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6667 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6668 * alpha-nat.c (get_longjmp_target): Remove.
6669 (JB_ELEMENT_SIZE): Ditto.
6670 (JB_PC): Ditto.
6671 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6672 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6673 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6674 to alpha_get_longjmp_target.
6675 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6676 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6677 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6678
6679 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6680
6681 * README: Update to GDB 5.2.
6682
6683 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6684
6685 * gdbarch.sh (LC_ALL): Set to `c'.
6686
6687 2002-04-25 Theodore A. Roth <troth@verinet.com>
6688
6689 * avr-tdep.c: Ran through gdb_indent.sh.
6690
6691 2002-04-25 Theodore A. Roth <troth@verinet.com>
6692
6693 * MAINTAINERS: Add myself as AVR maintainer.
6694 * NEWS: Note new target avr.
6695
6696 2002-04-25 Theodore A. Roth <troth@verinet.com>
6697
6698 * Makefile.in: Add support for AVR target.
6699 * configure.tgt: Add support for AVR target.
6700 * avr-tdep.c: New file
6701 * config/avr/avr.mt: New file.
6702
6703 2002-04-25 Theodore A. Roth <troth@verinet.com>
6704
6705 * MAINTAINERS: Add myself to write-after-approval.
6706
6707 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6708
6709 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6710 with fprintf_unfiltered (gdb_stderr,....
6711
6712 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6713
6714 Fix PR gdb/508.
6715 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6716
6717 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6718
6719 * p-exp.y: Also use new prev_lexptr variable
6720 to improve error reporting. Based on Michael Snyder
6721 2002-04-24 dated patch to c-exp.y.
6722
6723 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6724
6725 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6726 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6727 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6728 to 0.
6729 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6730 and struct value.
6731 (FUNCTION_START_OFFSET): Remove.
6732 (BREAKPOINT): Ditto.
6733
6734 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6735
6736 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6737 * NEWS: Ditto.
6738
6739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6740
6741 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6742 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6743 alpha_linux_pc_in_sigtramp.
6744 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6745 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6746 alpha_osf1_pc_in_sigtramp.
6747 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6748 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6749 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6750 alphafbsd_pc_in_sigtramp.
6751 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6752 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6753 alphanbsd_pc_in_sigtramp.
6754 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6755 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6756
6757 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6758
6759 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6760
6761 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6762
6763 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6764 alphanbsd-tdep.c.
6765 (alphanbsd-nat.o): New dependency list.
6766 (alphanbsd-tdep.o): Ditto.
6767 * NEWS: Note new native NetBSD/alpha configuration.
6768 * alphanbsd-nat.c: New file.
6769 * alphanbsd-tdep.c: Ditto.
6770 * configure.host (alpha*-*-netbsd*): New host.
6771 * configure.tgt (alpha*-*-netbsd*): New target.
6772 * config/alpha/nbsd.mh: New file.
6773 * config/alpha/nbsd.mt: Ditto.
6774 * config/alpha/nm-nbsd.h: Ditto.
6775 * config/alpha/tm-nbsd.h: Ditto.
6776
6777 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6778
6779 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6780 (alpha-osf1-tdep.o): New dependency list.
6781 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6782 and skip_sigtramp_frame members.
6783 * alpha-linux-tdep.c: Include gdbcore.h.
6784 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6785 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6786 * alpha-osf1-tdep.c: New file.
6787 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6788 alpha-osf1-dep.c.
6789 (alpha_frame_past_sigtramp_frame): New function.
6790 (alpha_dynamic_sigtramp_offset): Ditto.
6791 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6792 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6793 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6794 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6795 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6796 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6797 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6798 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6799 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6800 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6801 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6802 to find_solib_trampoline_target.
6803 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6804 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6805 (SKIP_TRAMPOLINE_CODE): Remove.
6806 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6807 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6808 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6809 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6810 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6811 (PROC_SIGTRAMP_MAGIC): Ditto.
6812 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6813 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6814 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6815 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6816 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6817
6818 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6819
6820 * NEWS: Note that Alpha targets are now multi-arch.
6821
6822 2002-04-24 Michael Snyder <msnyder@redhat.com>
6823
6824 * parser-defs.h (prev_lexptr): New external variable.
6825 * parse.c (parse_exp_1): Set prev_lexptr to null before
6826 calling the language-specific parser.
6827 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6828 (yyerror): Use prev_lexptr in error reporting.
6829
6830 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6831
6832 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6833 * gregset.h: If FILL_FPXREGSET is defined, provide
6834 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6835 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6836 is defined, call fill_fpxregset.
6837
6838 2002-04-24 Roland McGrath <roland@frob.com>
6839
6840 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6841 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6842 (supply_gregset, supply_fpregset): New functions.
6843
6844 * gnu-nat.c (gnu_find_memory_regions): New function.
6845 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6846 (gnu_xfer_memory): Add a cast.
6847
6848 2002-04-24 Michael Snyder <msnyder@redhat.com>
6849
6850 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6851 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6852 of argument regs ("str r(0123), [r11, #-nn"]).
6853 (arm_skip_prologue): Better handling for frameless functions.
6854 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6855 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6856
6857 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6858
6859 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6860 NUM_PSEUDO_REGS can be used.
6861
6862 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6863
6864 * arch-utils.h: Update copyright.
6865
6866 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6867 * gdbarch.h, gdbarch.c: Re-generate.
6868
6869 * inferior.h (IN_SIGTRAMP): Delete definition.
6870 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6871 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6872
6873 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6874 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6875 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6876 (find_proc_framesize): Ditto.
6877 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6878 (alpha_init_extra_frame_info): Ditto.
6879 * infrun.c (handle_inferior_event): Ditto.
6880 (handle_inferior_event): Ditto.
6881 (check_sigtramp2): Ditto.
6882 * blockframe.c (create_new_frame): Ditto.
6883 (get_prev_frame): Ditto.
6884 * ppc-linux-tdep.c: Update comments.
6885 * i386-linux-tdep.c: Update comments.
6886 * breakpoint.c (bpstat_what): Update comment.
6887
6888 2002-04-24 David S. Miller <davem@redhat.com>
6889
6890 * i960-tdep.c (register_in_window_p): New function.
6891 (i960_find_saved_register): Use it instead of
6892 REGISTER_IN_WINDOW_P.
6893 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6894
6895 * symtab.h (find_stab_function_addr): Kill extern.
6896 * minsyms.c (find_stab_function_addr): Remove from here...
6897 * dbxread.c: ... to here, and mark it static.
6898
6899 2002-04-20 David S. Miller <davem@redhat.com>
6900
6901 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6902 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6903
6904 2002-04-21 David S. Miller <davem@redhat.com>
6905
6906 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6907 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6908 (vx_write_register): Likewise.
6909
6910 2002-04-23 J. Brobecker <brobecker@gnat.com>
6911
6912 * source.c (is_regular_file): New function.
6913 (openp): Check wether file to open is a regular file
6914 to avoid opening directories.
6915
6916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6917
6918 * findvar.c (extract_signed_integer): Cast printf argument
6919 to suppress format warning.
6920 (extract_unsigned_integer): Likewise.
6921 * infcmd.c (registers_info): Likewise.
6922 * top.c (get_prompt_1): Likewise.
6923 * valops.c (value_assign): Likewise.
6924 * valprint.c (print_decimal): Likewise.
6925
6926 2002-04-22 H.J. Lu (hjl@gnu.org)
6927
6928 * c-exp.y (typebase): Support
6929
6930 [long|long long|short] [signed|unsigned] [int|]
6931
6932 and
6933
6934 signed [long|long long|short] int
6935
6936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6937
6938 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6939 and vax-tdep.h.
6940 * vax-tdep.h: New file.
6941 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6942 Make several routines static.
6943 (vax_get_saved_register): New function.
6944 (vax_gdbarch_init): New function.
6945 (_initialize_vax_tdep): Register vax_gdbarch_init.
6946 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6947 Remove macros now under the control of gdbarch.
6948
6949 2002-04-22 Michael Snyder <msnyder@redhat.com>
6950
6951 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6952 Some whitespace and coding standards tweaks.
6953
6954 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6955
6956 * vax-tdep.c: Include regcache.h.
6957 (vax_call_dummy_words): New.
6958 (sizeof_vax_call_dummy_words): New.
6959 (vax_fix_call_dummy): New function.
6960 (vax_saved_pc_after_call): Ditto.
6961 * config/vax/tm-vax.h: Don't include regcache.h.
6962 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6963 (CALL_DUMMY): Remove.
6964 (CALL_DUMMY_WORDS): Define.
6965 (SIZEOF_CALL_DUMMY_WORDS): Define.
6966 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6967
6968 2002-04-18 Michael Snyder <msnyder@redhat.com>
6969
6970 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6971
6972 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6973
6974 * vax-tdep.c (vax_frame_chain): New function.
6975 (vax_push_dummy_frame): Ditto.
6976 (vax_pop_frame): Ditto.
6977 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6978 (FRAMELESS_FUNCTION_INVOCATION): Use
6979 generic_frameless_function_invocation_not.
6980 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6981 (POP_FRAME): Use vax_pop_frame.
6982
6983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6984
6985 * vax-tdep.c (vax_store_struct_return): New function.
6986 (vax_extract_return_value): Ditto.
6987 (vax_store_return_value): Ditto.
6988 (vax_extract_struct_value_address): Ditto.
6989 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6990 vax_store_struct_return.
6991 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6992 (STORE_RETURN_VALUE): Use vax_store_return_value.
6993 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6994
6995 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6996
6997 * vax-tdep.c (vax_frame_saved_pc): New function.
6998 (vax_frame_args_address_correct): Ditto.
6999 (vax_frame_args_address): Ditto.
7000 (vax_frame_locals_address): Ditto.
7001 (vax_frame_num_args): Move code to be in proximity to
7002 other frame-related functions.
7003 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7004 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7005 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7006 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7007 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7008
7009 2002-04-22 H.J. Lu (hjl@gnu.org)
7010
7011 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7012 includedir.
7013
7014 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7015
7016 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7017 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7018 (FRAME_INIT_SAVED_REGS): New macro.
7019
7020 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7021
7022 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7023
7024 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7025
7026 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7027 where needed.
7028 (fetch_osf_core_registers): Likewise.
7029 (supply_gregset): Likewise.
7030
7031 2002-04-22 J. Brobecker <brobecker@gnat.com>
7032
7033 * symfile.h (get_section_index): Define.
7034 * symfile.c (get_section_index): New function.
7035 * mdebugread.c (SC_IS_SBSS): New macro.
7036 (SC_IS_BSS): Return true for the scBss storage class only, as
7037 the scSBss storage class refers to the .sbss section.
7038 (parse_partial_symbols): Discard the symbols which associated
7039 section does not exist.
7040 Make sure to use the .sbss section index for symbols which
7041 storage class is scBss, rather than using the .bss section index.
7042
7043 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7044
7045 * vax-tdep.c: Update copyright years.
7046 (vax_register_name): New function.
7047 (vax_register_byte): Ditto.
7048 (vax_register_raw_size): Ditto.
7049 (vax_register_virtual_size): Ditto.
7050 (vax_register_virtual_type): Ditto.
7051 * config/vax/tm-vax.h: Update copyright years.
7052 (REGISTER_NAMES): Remove.
7053 (REGISTER_NAME): Define.
7054 (REGISTER_BYTE): Use vax_register_byte.
7055 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7056 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7057 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7058
7059 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7060
7061 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7062 declaration
7063 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7064
7065 2002-04-21 David S. Miller <davem@redhat.com>
7066
7067 * arch-utils.c (generic_prologue_frameless_p): Kill
7068 SKIP_PROLOGUE_FRAMELESS_P code.
7069 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7070 references.
7071 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7072 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7073 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7074 references.
7075 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7076 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7077 (sparc_gdbarch_init): Pass it to
7078 set_gdbarch_prologue_frameless_p.
7079
7080 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7081
7082 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7083 (alphabsd-nat.o): New dependency list.
7084
7085 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7086
7087 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7088 alphafbsd-tdep.c.
7089 (alpha-linux-tdep.o): New dependency list.
7090 (alphafbsd-tdep.o): Likewise.
7091
7092 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7093
7094 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7095 to here...
7096 * alpha-tdep.c: ...from here.
7097 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7098
7099 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7102 prototype from here...
7103 * alpha-tdep.h: ...to here.
7104
7105 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7106
7107 * frame.h (selected_frame_level): Document as deprecated.
7108 (frame_relative_level): Declare.
7109 * stack.c (frame_relative_level): New function.
7110 (selected_frame_level): Document as deprecated.
7111 (select_frame): Do not set the selected_frame_level.
7112
7113 * stack.c (frame_info, record_selected_frame): Update.
7114 (frame_command, current_frame_command): Update.
7115 (up_silently_base, up_command, down_silently_base): Update.
7116 (down_command): Update.
7117 * inflow.c (kill_command): Update.
7118 * tracepoint.c (finish_tfind_command): Update.
7119 * corelow.c (core_open): Update.
7120 * thread.c (info_threads_command): Update.
7121 (do_captured_thread_select): Update.
7122 * infcmd.c (finish_command): Update.
7123 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7124
7125 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7126
7127 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7128
7129 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7130
7131 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7132 type const.
7133
7134 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7135
7136 * alphafbsd-tdep.c: Update copyright years. Include
7137 alpha-tdep.h.
7138 (alphafbsd_use_struct_convention): Make static.
7139 (alphafbsd_init_abi): New function.
7140 (_initialize_alphafbsd_tdep): New function.
7141 * config/alpha/tm-fbsd.h: Update copyright years.
7142 (USE_STRUCT_CONVENTION): Remove.
7143
7144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7145
7146 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7147 an Alpha ABI variant.
7148 (alpha_abi_handler_list): Declare.
7149 (alpha_gdbarch_register_os_abi): New function.
7150 (alpha_gdbarch_init): Give registered ABI variant handlers a
7151 chance to tweak the gdbarch once we have set up defaults.
7152 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7153
7154 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7155
7156 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7157 to standard_coerce_float_to_double.
7158 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7159
7160 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7161
7162 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7163 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7164 from gdbarch_tdep rather than a constant.
7165 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7166 the default text address for all Alpha Unix ABIs.
7167 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7168 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7169
7170 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7171
7172 * alpha-tdep.h: New file. Includes several Alpha target constants
7173 taken from...
7174 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7175 let gdbarch deal with.
7176 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7177 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7178 to dependency list.
7179 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7180 Alpha target register names.
7181 * alphabsd-nat.c: Likewise.
7182 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7183 Alpha target register names. Make serveral routines static.
7184 (alpha_get_saved_register): New function.
7185 (alpha_abi_names): New.
7186 (process_note_abi_tag_sections): New function.
7187 (get_elfosabi): New function.
7188 (alpha_gdbarch_init): New function.
7189 (alpha_dump_tdep): New function.
7190 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7191
7192 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7193
7194 * frame.c (find_saved_register): Delete #ifdef
7195 HAVE_REGISTER_WINDOWS code.
7196 * config/sparc/tm-sparc.h: Update comments.
7197 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7198
7199 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7200
7201 * i960-tdep.c (i960_find_saved_register): New function.
7202 (i960_get_saved_register): New function.
7203 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7204 (i960_get_saved_register): Declare.
7205 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7206
7207 2002-04-20 David S. Miller <davem@redhat.com>
7208
7209 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7210
7211 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7212
7213 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7214 instead of NUM_PSEUDO_REGS.
7215
7216 2002-04-20 David S. Miller <davem@redhat.com>
7217
7218 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7219 GDB_MULTI_ARCH_PARTIAL
7220 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7221 define, let tm-sp64.h do it.
7222
7223 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7224
7225 * frame.c (find_saved_register): Avoid a NULL pointer
7226 dereference and actually walk the frame list.
7227
7228 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7229
7230 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7231 sorted in most most-recent-used order. Document.
7232 * gdbarch.h, gdbarch.c: Regenerate.
7233
7234 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7235
7236 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7237 instead of ->prev.
7238 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7239 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7240 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7241 instead of ->prev.
7242
7243 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7244
7245 Fix PR gdb/471.
7246 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7247 (build_builtin_type_vec128): Ditto.
7248 (append_composite_type_field): Fix calculation of type length in
7249 union case.
7250
7251 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7252
7253 * config/djgpp/README: Update.
7254
7255 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7256 compiler warnings.
7257
7258 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7259
7260 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7261 (alpha_setup_arbitrary_frame): ...to this.
7262 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7263 for alpha_setup_arbitrary_frame.
7264
7265 2002-04-18 Andrew Cagney <cagney@redhat.com>
7266
7267 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7268 * gdbarch.h, gdbarch.c: Regenerate.
7269
7270 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7271 * target.h (memory_breakpoint_from_pc): Update declaration.
7272 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7273
7274 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7275 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7276 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7277 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7278 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7279 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7280 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7281 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7282 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7283 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7284 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7285 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7286
7287 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7288 const pointer.
7289 * monitor.c (monitor_insert_breakpoint): Ditto.
7290 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7291
7292 * config/mcore/tm-mcore.h: Update copyright.
7293 * mem-break.c: Ditto.
7294 * xstormy16-tdep.c: Ditto.
7295
7296 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7297
7298 * p-exp.y: Add precedence rule for '^' token.
7299 This removes the shift/reduce conflicts.
7300 Remove the comment concerning these shift/reduce conflicts.
7301
7302 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7303
7304 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7305 (registers_powerpc_nofp): New register set for processors
7306 without floating point unit.
7307
7308 2002-04-18 David S. Miller <davem@redhat.com>
7309
7310 * MAINTAINERS: Add myself to write-after-approval.
7311
7312 2002-04-17 Michael Snyder <msnyder@redhat.com>
7313
7314 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7315
7316 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7317
7318 * rs6000-tdep.c (frame_initial_stack_address): Use
7319 frame_register_read to read the alloca_reg.
7320
7321 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7322
7323 * frame.c (find_saved_register): Find saved registers in the next
7324 not prev frame.
7325 Fix PR gdb/365.
7326
7327 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7328
7329 * gdbarch.sh (LANG): Set to ``c''.
7330
7331 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7332
7333 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7334
7335 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7336
7337 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7338 Update copyright.
7339
7340 * hpread.c (hpread_get_lntt): Add declaration.
7341 Also fix PR gdb/391.
7342
7343 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7344
7345 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7346 * aclocal.m4, configure: Re-generate.
7347 Fix PR gdb/391.
7348
7349 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7350
7351 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7352 instead of tm_print_insn.
7353
7354 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7355
7356 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7357
7358 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7359
7360 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7361 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7362 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7363
7364 2002-04-12 Don Howard <dhoward@redhat.com>
7365
7366 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7367 max_user_call_depth.
7368 (init_cmd_lists): Initialize the new value;
7369 * cli/cli-script.c (execute_user_command): Limit the call depth of
7370 user defined commands. This avoids a core-dump when user commands
7371 are infinitly recursive.
7372
7373 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7374
7375 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7376 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7377 from tdep struct instead of DEFAULT_LR_SAVE.
7378 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7379 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7380 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7381
7382 2002-04-12 Michael Snyder <msnyder@redhat.com>
7383
7384 * Remote.c: Spelling fix.
7385 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7386 If no symbol found for "sbrk", try "_sbrk".
7387 (make_output_phdrs): Use bfd_section_name.
7388 (gcore_copy_callback): Use bfd_section_name.
7389 * eval.c: Indentation fix-ups.
7390 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7391 in case it gets applied to an address that is already
7392 in the instruction space.
7393 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7394 * symfile.c: Fix indentation, long lines.
7395 * source.c: White space fix-up.
7396
7397 2002-04-12 Andrew Cagney <cagney@redhat.com>
7398
7399 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7400 * frame.c (frame_register_read): New function. Return non-zero on
7401 success.
7402 (read_relative_register_raw_bytes_for_frame): Delete.
7403 (read_relative_register_raw_bytes): Delete.
7404 * frame.h (frame_register_read): Declare.
7405 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7406 * sh-tdep.c: Ditto.
7407 * infcmd.c (do_registers_info): Ditto.
7408 * hppa-tdep.c: Ditto.
7409 * rs6000-tdep.c: Ditto.
7410 * h8500-tdep.c: Ditto.
7411 * mips-tdep.c: Ditto.
7412 * h8300-tdep.c: Ditto.
7413 * z8k-tdep.c: Ditto.
7414
7415 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7416
7417 From Jimi X <jimix@watson.ibm.com>:
7418 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7419 64-bit SysV ABI.
7420
7421 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7422
7423 From Jimi X <jimix@watson.ibm.com>:
7424 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7425 bfd info.
7426
7427 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7428
7429 From Jimi X <jimix@watson.ibm.com>:
7430 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7431 register sets for these processor variants.
7432
7433 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7434
7435 * regformats/reg-ppc.dat: Support FPSCR.
7436
7437 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7438
7439 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7440 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7441 Add fpscr as an invalid/unfetchable register.
7442 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7443 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7444 (fill_fpregset): Add support for register fpscr.
7445 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7446 (fill_gregset): Account for the fact that register ``mq'' might
7447 not exist.
7448 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7449 (registers_power): Add fpscr to register set at slot 71.
7450 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7451 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7452
7453 2002-04-11 Michael Snyder <msnyder@redhat.com>
7454
7455 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7456 * configure: Regenerate.
7457 * config.in: Regenerate.
7458 * acconfig.h: Add define for _SYSCALL32.
7459 * core-sol2.c: Remove #define _SYSCALL32.
7460 * solib-legacy.c: Remove #define _SYSCALL32.
7461
7462 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7463
7464 * stack.c (select_frame): Cleanup internal error message, do not
7465 use %p.
7466
7467 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7468
7469 * stack.c (select_frame): Check that selected_frame and the
7470 specified level are as expected.
7471 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7472 Update copyright.
7473 * frame.h (struct frame_info): Add field `level'. Update
7474 copyright.
7475 Work-in-progress PR gdb/464.
7476
7477 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7478
7479 * maint.c (maint_print_section_info): Rename print_section_info.
7480 (print_bfd_section_info, print_objfile_section_info): Update.
7481 * inferior.h (struct gdbarch): Add opaque declaration.
7482 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7483 * gdbarch.h: Regenerate.
7484
7485 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7486
7487 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7488 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7489 (kernel_u_size): Added.
7490 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7491 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7492
7493 2002-04-04 Jim Ingham <jingham@apple.com>
7494
7495 * valarith.c (find_size_for_pointer_math): New function, either returns
7496 the size for a pointer's target, returns 1 for void *, or errors for
7497 incomplete types.
7498 (value_add, value_sub): use find_size_for_pointer_math.
7499
7500 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7501
7502 * linux-low.c (linux_look_up_symbols): New hook.
7503 (linux_target_ops): Add linux_look_up_symbols.
7504 * remote-utils.c (decode_address): New function.
7505 (look_up_one_symbol): New function.
7506 * server.c (handle_query): Call target look_up_symbols hook.
7507 * server.h (look_up_one_symbol): Add prototype.
7508 * target.h (struct target_ops): Add look_up_symbols hook.
7509
7510 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7511
7512 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7513 override FP_REGNUM with frame->fp. Update copyright.
7514 * parse.c (num_std_regs, std_regs): Delete.
7515 (target_map_name_to_register): Do not search std_regs. Update
7516 function description.
7517 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7518 declarations. Update copyright.
7519 Fix PR gdb/251.
7520
7521 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7522
7523 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7524 after the last symbol in a block.
7525
7526 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7527
7528 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7529 is non zero as a found symbol.
7530
7531 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7532
7533 * findvar.c: Include "builtin-regs.h".
7534 (value_of_register): Call value_of_builtin_reg when applicable.
7535 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7536 (target_map_name_to_register): Call
7537 builtin_reg_map_name_to_regnum.
7538 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7539 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7540 (builtin_regs_h): Define.
7541 (builtin-regs.o): New target.
7542 (findvar.o): Add $(builtin_regs_h).
7543 * builtin-regs.c, builtin-regs.h: New files.
7544 * std-regs.c: New file.
7545 Partial fix for PR gdb/251.
7546
7547 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7548
7549 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7550 it's no longer required.
7551
7552 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7553
7554 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7555
7556 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7557
7558 From Jimi X <jimix@watson.ibm.com>:
7559 * rs6000-tdep.c (rs6000_software_single_step): Use
7560 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7561 and size. Use target_insert_breakpoint() and
7562 target_remove_breakpoint() to insert and remove breakpoints
7563 instead of explicit memory reads and writes.
7564
7565 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7566
7567 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7568 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7569 ELF_OBJECT_FORMAT ifdef.
7570
7571 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7572
7573 From Jimi X <jimix@watson.ibm.com>:
7574 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7575
7576 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7577
7578 From Jimi X <jimix@watson.ibm.com>:
7579 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7580 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7581
7582 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7583
7584 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7585 s/asprintf/xasprintf/.
7586 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7587
7588 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7589
7590 I believe Jeff Law denies responsability for this one:
7591 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7592 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7593 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7594 Work-around for PR gdb/366.
7595
7596 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7597
7598 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7599 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7600 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7601
7602 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7603
7604 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7605 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7606 information.
7607
7608 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7609
7610 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7611 maintainer.
7612
7613 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7614
7615 * README (Reporting Bugs in GDB): Document the bug web page as the
7616 prefered way of submitting bugs.
7617 Fix PR gdb/402.
7618
7619 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7620
7621 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7622 -1. Update comment.
7623 * gdbarch.h, gdbarch.c: Re-generate.
7624
7625 2002-04-07 Andreas Schwab <schwab@suse.de>
7626
7627 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7628 buffer to regcache_collect.
7629
7630 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7631
7632 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7633 * gdbarch.c, gdbarch.h: Re-generate.
7634
7635 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7636
7637 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7638 declaration. Fix -Werror.
7639
7640 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7641
7642 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7643 * gdbarch.c: Regenerate.
7644
7645 2002-04-05 Michael Snyder <msnyder@redhat.com>
7646
7647 * breakpoint.c (clear_command): Rewrite middle section to
7648 combine two loops with identical control conditions.
7649 Add a cleanup to eliminate a memory leak.
7650 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7651
7652 2002-04-05 H.J. Lu (hjl@gnu.org)
7653
7654 * solib-svr4.c (bkpt_names): Add "__start".
7655
7656 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7657
7658 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7659 as test for 64 bit target.
7660
7661 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7662
7663 * h8500-tdep.c (h8500_write_fp): Delete function.
7664 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7665 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7666 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7667 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7668 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7669 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7670 (s390_write_fp):
7671 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7672 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7673 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7674 (d10v_write_fp): Delete function.
7675 * inferior.h (write_fp, generic_target_write_fp): Delete
7676 declarations.
7677 * regcache.c (generic_target_write_fp): Delete function.
7678 (write_fp): Delete function.
7679 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7680 * gdbarch.h, gdbarch.c: Regenerate.
7681 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7682 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7683 (sparc64_write_fp): Delete declaration.
7684 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7685 (h8500_write_fp): Delete declaration.
7686
7687 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7688
7689 * sparc-tdep.c (sparc64_write_fp): Delete.
7690 (sparc_push_dummy_frame): Replace write_fp call with code to store
7691 the FP directly.
7692 (sparc_gdbarch_init): Do not initialize write_fp.
7693
7694 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7695
7696 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7697 clause.
7698
7699 2002-03-29 Jim Blandy <jimb@redhat.com>
7700
7701 * stack.c (get_selected_block): Add new argument `addr_in_block',
7702 used to return the exact code address we used to select the block,
7703 not just the block.
7704 * blockframe.c (get_frame_block, get_current_block): Same.
7705 * frame.h (get_frame_block, get_current_block,
7706 get_selected_block): Update declarations.
7707 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7708 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7709
7710 2002-04-05 Michael Snyder <msnyder@redhat.com>
7711
7712 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7713 warning message.
7714
7715 2002-04-05 J. Brobecker <brobecker@gnat.com>
7716
7717 * utils.c (xfullpath): New function.
7718 * defs.h (xfullpath): Add declaration.
7719 * source.c (openp): Use xfullpath in place of gdb_realpath to
7720 avoid resolving the basename part of filenames when the
7721 associated file is a symbolic link. This fixes a potential
7722 inconsistency between the filenames known to GDB and the
7723 filenames it prints in the annotations.
7724 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7725 to be able to match a filename with either the real filename, or
7726 the name of any symbolic link to this file.
7727 (lookup_partial_symtab): Ditto.
7728
7729 2002-04-04 Michael Snyder <msnyder@redhat.com>
7730
7731 * breakpoint.c: Add support for hardware breakpoints in overlays.
7732 (overlay_events_enabled): New state variable.
7733 (insert_breakpoints): Use overlay_events_enabled to decide
7734 whether to attempt to set a breakpoint at the overlay load addr.
7735 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7736 (remove_breakpoint): Use overlay_events_enabled to decide
7737 whether breakpoints need to be removed from overlay load addr.
7738 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7739 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7740 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7741 disable_overlay_breakpoints): Update overlay_events_enabled.
7742
7743 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7744
7745 * dwarf2read.c (struct function_range): New.
7746 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7747 (check_cu_functions): New.
7748 (read_file_scope): Initialize global function lists.
7749 Call dwarf_decode_line after processing children.
7750 (read_func_scope): Add to global function list.
7751 (dwarf_decode_lines): Call check_cu_functions everywhere
7752 record_line is called. Call record_line with a linenumber
7753 of 0 to mark sequence ends.
7754
7755 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7756
7757 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7758 change sync with glibc.
7759
7760 2002-04-03 Jim Blandy <jimb@redhat.com>
7761
7762 * configure.in: Call AC_C_INLINE.
7763 * configure: Regenerated.
7764
7765 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7768 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7769
7770 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7771
7772 * NEWS: Mention gcore support on FreeBSD/i386.
7773
7774 * fbsd-proc.c: New file.
7775 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7776 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7777
7778 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7779 while statement.
7780
7781 2002-03-29 Jim Blandy <jimb@redhat.com>
7782
7783 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7784 unescaped newlines in string literals, but newer ones don't. So
7785 escape them.
7786
7787 2002-03-26 Michael Snyder <msnyder@redhat.com>
7788 Andrew Cagney <cagney@redhat.com>
7789
7790 * cli/cli-dump.c: New file. Dump memory to file,
7791 restore file to memory.
7792 * cli/cli-dump.h: New file.
7793 * Makefile.in: Add rules, dependencies for cli-dump.o.
7794 * NEWS: Mention new commands.
7795
7796 2002-03-28 Michael Snyder <msnyder@redhat.com>
7797
7798 * symfile.c (symbol_file_add): Move test for null symbols to later.
7799
7800 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7801
7802 From veksler at il.ibm.com:
7803 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7804 the xstrduped original path.
7805 Fix PR gdb/417.
7806
7807 2002-03-27 Michael Snyder <msnyder@redhat.com>
7808
7809 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7810 * infcmd.c (_initialize_infcmd): Ditto.
7811 * language.c (_initialize_language): Ditto.
7812 * symfile.c (_initialize_symfile): Ditto.
7813 * top.c (_init_main): Ditto.
7814 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7815
7816 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7817
7818 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7819 vector registers handling.
7820 (skip_prologue): Handle new AltiVec instructions. Fill in new
7821 fields of frame data.
7822 (frame_get_saved_regs): Fill in information for AltiVec registers.
7823
7824 2002-03-27 Jim Blandy <jimb@redhat.com>
7825
7826 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7827 a function; leave this macro here to invoke that function.
7828 (symbol_init_mangled_name): Declaration for that function.
7829 * symtab.c (symbol_init_mangled_name): New function.
7830
7831 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7832
7833 * valarith.c: Replace strerror with safe_strerror.
7834 * tracepoint.c: Ditto.
7835 * lin-lwp.c: Ditto.
7836 * go32-nat.c: Ditto.
7837 * inflow.c: Ditto.
7838 * gnu-nat.c: Ditto.
7839
7840 2002-03-27 Andreas Schwab <schwab@suse.de>
7841
7842 * event-top.c (command_line_handler): Remove useless if.
7843
7844 2002-03-27 Andreas Jaeger <aj@suse.de>
7845
7846 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7847 comment.
7848
7849 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7850
7851 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7852 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7853 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7854 (x86_64_linux_dr_get_status, supply_gregset),
7855 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7856 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7857 (x86_64_register_info_table): Add.
7858 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7859 (x86_64_register_raw_size, x86_64_register_virtual_type),
7860 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7861 general x86_64_register_info_table.
7862 (i386_gdbarch_init): gdbarch_register_bytes is now set
7863 dynamicaly during initialization.
7864 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7865 * gdbserver/linux-x86-64-low.c: Ditto.
7866
7867 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7868
7869 * gdbserver/server.c (main): Call target_signal_to_host_p
7870 and target_signal_to_host on signals received from the remote.
7871 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7872 target_signal_from_host on signals sent to the remote.
7873 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7874 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7875
7876 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7877
7878 * signals/signals.c: Include "server.h" in gdbserver build.
7879 (target_signal_from_name): Don't use STREQ.
7880 (_initialize_signals): Likewise. Don't include function in
7881 gdbserver build.
7882
7883 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7884
7885 * signals.c: Moved to...
7886 * signals/signals.c: Here.
7887 * Makefile (signals.o): Update.
7888
7889 2002-03-26 Jeff Law (law@redhat.com)
7890
7891 * somread.c (som_symtab_read): Remove some commented out code and
7892 updated related comments. Do not set the minimal symbol table to
7893 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7894 in a dynamic executable.
7895 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7896 where we are unable to find the minimal symbol for the given
7897 PC value.
7898
7899 2002-03-25 Jeff Law (law@redhat.com)
7900
7901 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7902
7903 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7904
7905 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7906
7907 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7908
7909 * command.h: Update copyright.
7910 (struct cmd_list_element): Replace definition with opaque
7911 declaration.
7912 (enum cmd_types): Document that it will eventually be moved to
7913 cli/cli-decode.h
7914 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7915 (MALLOCED_REPLACEMENT): Delete macro.
7916 * Makefile.in (cli_decode_h): Add $(command_h).
7917 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7918 * top.c: Include "cli/cli-decode.h".
7919 * completer.c: Include "cli/cli-decode.h".
7920 * maint.c: Include "cli/cli-decode.h".
7921 * cli/cli-decode.h: Include "command.h".
7922 (enum command_class): Delete.
7923 (enum cmd_types): Comment out.
7924 (enum cmd_auto_boolean): Delete.
7925 (enum var_types): Delete.
7926
7927 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7928
7929 * cli/cli-decode.c: Include "gdb_assert.h".
7930 (add_set_or_show_cmd): New static function.
7931 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7932 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7933 all fields, such as func, from the set command.
7934
7935 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7936
7937 * MAINTAINERS (sh-elf): Change warning flag to -w.
7938
7939 2002-03-23 Andrew Cagney <cagney@redhat.com>
7940
7941 * defs.h (error): Add printf format attribute.
7942 * thread-db.c (thread_from_lwp): Fix error format string.
7943 * stack.c (parse_frame_specification): Ditto.
7944 * cli/cli-decode.c (undef_cmd_error): Ditto.
7945 * scm-lang.c (scm_lookup_name): Ditto.
7946 * tracepoint.c (trace_error): Ditto.
7947 * remote-utils.c (usage): Ditto.
7948 * remote.c (compare_sections_command): Ditto.
7949 Fix PR gdb/328.
7950
7951 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7952
7953 * gdbtypes.c (append_composite_type_field): New function.
7954 (init_composite_type): New function.
7955 * gdbtypes.h (append_composite_type_field): Declare.
7956 (init_composite_type): Ditto.
7957
7958 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7959
7960 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7961 function.
7962 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7963 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7964 structure returning convention for SYSV ABI case, but not
7965 for GNU/Linux, FreeBSD, or NetBSD.
7966
7967 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7968
7969 * symtab.h (lookup_block_symbol): Add mangled_name argument
7970 to prototype.
7971
7972 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7973 with new mangled_name argument.
7974 * linespec.c (decode_line_1): Likewise.
7975 * valops (value_of_this): Likewise.
7976 * symtab.c (lookup_transparent_type): Likewise.
7977 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7978 (lookup_symbol): If we are given a mangled name, pass it down
7979 to lookup_symbol_aux.
7980 (lookup_block_symbol): If we are given a mangled name to check
7981 against, only return symbols which match it.
7982
7983 2002-03-22 Christopher Faylor <cgf@redhat.com>
7984
7985 * win32-nat.c (child_create_inferior): Check for proper shell to use
7986 here, in case the user changes it on the fly.
7987 (_initialize_inftarg): Remove shell path considerations.
7988
7989 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7990
7991 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7992 for gdbarch_max_register_raw_size and max_register_virtual_size.
7993 Adjust copyright year.
7994
7995 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7996
7997 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7998 in a function to cover the entire beginning of the function
7999 as well if it does not already.
8000
8001 2002-03-21 Tom Rix <trix@redhat.com>
8002
8003 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8004 (rs6000_ptrace64): Renamed from ptrace64.
8005
8006 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8007
8008 * gdbserver/remote-utils.c (remote_open): Don't call
8009 getprotobyname, we're all using TCP here so just use
8010 IPPROTO_TCP.
8011 * gdbserver/gdbreplay.c (remote_open): Ditto.
8012
8013 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8014
8015 * regcache.c (_initialize_regcache): No need to call
8016 build_regcache() at this time; it gets called whenever
8017 the gdbarch changes.
8018
8019 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8020
8021 * sparc-nat.c: Include sys/param.h where possible.
8022
8023 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8024
8025 Fix PR gdb/422.
8026 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8027 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8028 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8029 complex types.
8030 * stabsread.c (rs6000_builtin_type): Likewise.
8031 (read_sun_floating_type): Likewise.
8032
8033 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8034
8035 * stabsread.c (read_member_functions): Remove skip code for duplicate
8036 constructor/destructor methods. Use standard parsing for these
8037 methods and just do not chain them to the list of methods after
8038 parsing.
8039
8040 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8041
8042 * coffread.c: Remove redundant static declarations. Replace
8043 occurrences of `PTR' with `void *'.
8044 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8045 * top.h (quit_cover): Likewise.
8046 * defs.h (catch_errors): Likewise.
8047
8048 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8049
8050 * defs.h (XMALLOC): Define.
8051 * gdb-events.sh (XMALLOC): Delete macro.
8052 * gdb-events.c, gdb-events.h: Regenerate.
8053 * gdbarch.sh (XMALLOC): Delete macro.
8054 * gdbarch.c: Regenerate.
8055 * serial.c (XMALLOC): Delete macro.
8056 * ui-file.c (XMALLOC): Ditto.
8057 * ser-unix.h (XMALLOC): Ditto.
8058 * sh-tdep.c (XMALLOC): Ditto.
8059 * ui-out.c (XMALLOC): Ditto.
8060 * utils.c (XMALLOC): Ditto.
8061 * i386-tdep.c (XMALLOC): Ditto.
8062 * gdb-events.c (XMALLOC): Ditto.
8063 * d10v-tdep.c (XMALLOC): Ditto.
8064 * cli-out.c (XMALLOC): Ditto.
8065
8066 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8067 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8068 * ui-file.c, ui-out.c: Ditto.
8069
8070 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8071
8072 * command.h (struct cmd_list_element): Add field context.
8073 (set_cmd_context, get_cmd_context): Declare.
8074 * cli/cli-decode.h: Ditto.
8075 * cli/cli-decode.c (get_cmd_context): New function.
8076 (set_cmd_context): New function.
8077 (add_cmd): Initialize context.
8078 Part of fixing PR gdb/145 and PR gdb/146.
8079
8080 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8081
8082 * cli/cli-decode.c (cmd_type): New function.
8083 * command.h (cmd_type): Declare.
8084 * infrun.c (set_schedlock_func): Call function cmd_type.
8085 * kod.c (kod_set_os): Call cmd_type.
8086 * cris-tdep.c (cris_version_update): Use function cmd_type.
8087 (cris_mode_update, cris_abi_update): Ditto.
8088
8089 * command.h: (execute_cmd_post_hook): Declare.
8090 (execute_cmd_pre_hook): Declare.
8091 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8092 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8093 functions. Execute pre/post hook while ensuring that afterwords
8094 hook_in is cleared.
8095 * top.c (execute_command): Use execute_cmd_post_hook, and
8096 execute_cmd_pre_hook to execute pre/post commands.
8097 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8098 hook_stop_stub.
8099 (hook_stop_stub): Call execute_cmd_pre_hook.
8100
8101 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8102
8103 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8104 set'' and this leads to a core dump. Move xstrdup of
8105 operating_system to after check that it is not NULL.
8106
8107 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8108
8109 * kod.c (kod_set_os): Remove unnecessary check that
8110 ``command->type'' is set_cmd.
8111
8112 * valprint.c (set_input_radix): Use input_radix.
8113 (set_output_radix): Use output_radix.
8114 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8115 isn't reverted.
8116
8117 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8118
8119 * value.h (struct value): Delete field ``substring_addr''. Change
8120 aligner fields to force_doublest_align, force_longest_align,
8121 force_core_addr_align and force_pointer_aligh.
8122
8123 * value.h (struct value): Fix typo in above change.
8124
8125 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8126
8127 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8128 to fix internal_error from ``maintenance print architecture''.
8129
8130 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8131
8132 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8133 for gcc versions after gcc-2.8.1.
8134
8135 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8136
8137 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8138 for method resolution. Restore adjustment of ``this'' pointer after
8139 calling value_struct_elt, which was accidentally removed during the
8140 HP merge.
8141
8142 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8143
8144 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8145 value_of_register.
8146 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8147 get_saved_register.
8148 * value.h (value_of_register): Update.
8149
8150 2002-03-14 Richard Henderson <rth@redhat.com>
8151
8152 * configure.in: Detect declaration for canonicalize_file_name.
8153 * utils.c (canonicalize_file_name): Declare, if needed.
8154 (gdb_realpath): Prefer realpath if available and usable.
8155 * config.in, configure: Rebuild.
8156
8157 2002-03-14 Richard Henderson <rth@redhat.com>
8158
8159 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8160 a constant array bound.
8161
8162 * MAINTAINERS: Add myself to write-after-approval.
8163
8164 2002-03-14 Michael Snyder <msnyder@redhat.com>
8165
8166 * symfile.c (syms_from_objfile): Return immediately if no syms.
8167 (symbol_file_add): Return immediately if no syms.
8168 (find_sym_fns): Return immediately if no syms.
8169
8170 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8171
8172 * gdbserver/remote-util.c (remote_open): Print remote-side's
8173 IP address when remote debugging over the network.
8174
8175 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8176
8177 * config/sparc/fbsd.mh: Fix copyright.
8178 * config/sparc/fbsd.mt: Likewise.
8179
8180 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8181
8182 * MAINTAINERS: Fix typo in name of gdb warnings option.
8183 (x86-64): Fix formating so that this can be parsed by awk.
8184
8185 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8186
8187 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8188 * defs.h: Include "gdb/signals.h".
8189 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8190
8191 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8192
8193 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8194 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8195 from x86-64-tdep.h
8196
8197 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8198 Don Howard <dhoward@redhat.com>
8199
8200 * mips-tdep.c (ST0_FR): Define.
8201 (mips2_fp_compat): New function, temporarily disabled.
8202 (mips_read_fp_register_single): New function.
8203 (mips_read_fp_register_double): New function.
8204 (mips_print_register): Use them.
8205 (do_fp_register_row): Likewise.
8206
8207 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8208
8209 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8210 approval''.
8211
8212 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8213
8214 * stabsread.c (read_member_functions): Fix is_stub test for
8215 static member functions, improve comment.
8216
8217 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8218
8219 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8220 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8221 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8222 commands that set boolean values.
8223 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8224 (arm_rdi_resume): Always initialize PC.
8225 (arm_rdi_open): Don't use rslt as a boolean.
8226 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8227 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8228 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8229 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8230
8231 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8232
8233 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8234 * configure: Rebuilt.
8235
8236 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8237
8238 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8239 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8240
8241 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8242
8243 * cli/cli-decode.c (set_cmd_completer): New function.
8244 * command.h (set_cmd_completer): Declare.
8245 * cli/cli-decode.h (set_cmd_completer): Ditto.
8246
8247 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8248 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8249 * win32-nat.c (_initialize_inftarg): Ditto.
8250 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8251 * proc-api.c (_initialize_proc_api): Ditto.
8252 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8253 * source.c (_initialize_source): Ditto.
8254 * exec.c (_initialize_exec): Ditto.
8255 * solib.c (_initialize_solib): Ditto.
8256 * top.c (init_main): Ditto.
8257 * tracepoint.c (_initialize_tracepoint): Ditto.
8258 * symfile.c (_initialize_symfile): Ditto.
8259 * printcmd.c (_initialize_printcmd): Ditto.
8260 * infcmd.c (_initialize_infcmd): Ditto.
8261 * corefile.c (_initialize_core): Ditto.
8262
8263 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8264
8265 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8266
8267 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8268
8269 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8270
8271 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8272
8273 * NEWS: Update headings, 5.2 has branched.
8274
8275 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8276
8277 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8278 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8279 (register_addr, REGISTER_RAW_SIZE): Likewise.
8280 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8281 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8282
8283 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8284
8285 * MAINTAINERS (x86-64): Add myself.
8286 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8287 changed value_ptr -> struct value *
8288
8289 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8290
8291 * configure.host (sparc64-*-freebsd): Add.
8292 * configure.tgt: Likewise.
8293 * config/sparc/fbsd.mh: New file.
8294 * config/sparc/fbsd.mt: Likewise.
8295 * config/sparc/nm-fbsd.h: Likewise.
8296 * config/sparc/tm-fbsd.h: Likewise.
8297
8298 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8299
8300 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8301 regformats/reg-s390x.dat.
8302
8303 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8304
8305 * utils.c: Add FIXME explaining true/false problem.
8306
8307 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8308
8309 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8310
8311 2002-02-28 Michael Chastain <mec@shout.net>
8312
8313 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8314
8315 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8316
8317 * gdbserver/linux-s390-low.c: New file.
8318 * regformats/reg-s390.dat: New file.
8319 * regformats/reg-s390x.dat: New file.
8320 * gdbserver/configure.srv: Add S/390.
8321 * gdbserver/Makefile.in: Add S/390.
8322 * configure.tgt: Enable gdbserver for S/390.
8323
8324 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8325
8326 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8327 first line of the doc string for "info dos", except at the end of
8328 the sentence, since the short help stops at the first period.
8329
8330 2002-02-28 Jason Merrill <jason@redhat.com>
8331
8332 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8333
8334 2002-02-27 Fred Fish <fnf@redhat.com>
8335
8336 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8337 comment (dumy -> dummy).
8338
8339 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8340
8341 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8342
8343 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8344
8345 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8346
8347 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8348
8349 * gdbserver/acconfig.h: New file.
8350 * gdbserver/i387-fp.c: New file.
8351 * gdbserver/i387-fp.h: New file.
8352 * gdbserver/linux-x86-64.c: New file.
8353 * regformats/reg-x86-64.dat: New file.
8354 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8355 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8356 * gdbserver/configure.in: Add support for regsets.
8357 * gdbserver/config.in: Regenerate.
8358 * gdbserver/configure: Regenerate.
8359 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8360 * gdbserver/linux-low.h: New file.
8361 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8362 for regsets.
8363 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8364 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8365 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8366 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8367 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8368 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8369 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8370 "i387-fp.h". Add PTRACE_GETREGS and friends.
8371 * gdbserver/regcache.c (supply_register): New function.
8372 (supply_register_by_name): New function.
8373 (collect_register): New function.
8374 (collect_register_by_name): New function.
8375
8376 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8377
8378 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8379 (config.status): Add configure.srv dependency.
8380 (server_h): Add config.h dependency.
8381
8382 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8383
8384 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8385 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8386 * gdbserver/configure.srv: Change i386-*-linux* to use
8387 reg-i386-linux.o.
8388
8389 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8390
8391 * x86-64-tdep.c: Re-indent. Update copyright date.
8392
8393 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8394
8395 From Michal Ludvig <mludvig@suse.cz>:
8396 * x86-64-tdep.c (value.h): Delete.
8397 (gdb_assert.h): Include.
8398 (x86_64_register_convert_to_virtual,
8399 x86_64_register_convert_to_raw ): Add check which lets only
8400 floating-point values to be converted.
8401 (value_push): Delete.
8402 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8403 (i386_gdbarch_init): Number of register_bytes fixed.
8404
8405 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8406
8407 * MAINTAINERS: Add x86-64 target.
8408
8409 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8410
8411 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8412 * osfsolib.c (solib_map_sections): Ditto.
8413 * irix5-nat.c (solib_map_sections): Ditto.
8414 * corelow.c (gdb_check_format): Ditto.
8415 * symfile.c (symfile_bfd_open): Ditto.
8416 * solib.c (solib_map_sections): Ditto.
8417 Fix PR gdb/354.
8418
8419 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8420
8421 * remote.c (_initialize_remote): By default, disable ``e'' and
8422 ``E'' step out-of-range packets.
8423
8424 2002-02-26 Andreas Schwab <schwab@suse.de>
8425
8426 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8427 m68k_linux_frame_saved_pc.
8428 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8429 in_sigtramp.
8430 (SIGCONTEXT_PC_OFFSET): Remove.
8431 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8432 m68k_linux_sigtramp_saved_pc): New functions.
8433 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8434 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8435 (UCONTEXT_PC_OFFSET): Define.
8436 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8437 non-RT and RT signal trampolines.
8438
8439 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8440
8441 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8442 (TARGET_NBPG, STACK_END_ADDR): Delete
8443 (VARIABLES_INSIDE_BLOCK): Delete.
8444
8445 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8446
8447 * utils.c (perror_with_name): Make string parameter constant.
8448 (print_sys_errmsg): Ditto.
8449 (query): Ditto.
8450 * defs.h (perror_with_name): Update.
8451 (print_sys_errmsg): Update.
8452 (query): Update.
8453
8454 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8455
8456 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8457 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8458
8459 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8460
8461 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8462 if it already matches the current architecture from the exec file.
8463 Include arch-utils.h for gdbarch_info_init prototype.
8464 * Makefile.in (rs6000-nat.o): Update dependencies.
8465
8466 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8467
8468 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8469 list of exported variables.
8470
8471 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8472
8473 * gdbserver/configure.srv: New file.
8474 * gdbserver/configure.in: Use configure.srv instead
8475 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8476 from it.
8477 * gdbserver/configure: Regenerated.
8478 * gdbserver/terminal.h: New file.
8479 * gdbserver/Makefile.in: Update for configure changes. Remove
8480 more unneeded include paths.
8481
8482 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8483
8484 From wiz at danbala:
8485 * config/sparc/tm-sp64.h: Fix grammar and typos.
8486 Fix PR gdb/287.
8487
8488 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8489
8490 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8491 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8492 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8493 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8494 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8495 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8496 * s390-tdep.c: Ditto.
8497 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8498 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8499 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8500 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8501 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8502 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8503 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8504 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8505 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8506 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8507 Fix PR gdb/378.
8508
8509 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8510
8511 * lin-thread.c: Delete file.
8512 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8513 to gdb_proc_service.h.
8514 * configure: Re-generate.
8515
8516 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8517 * serial.c (serial_open): Delete check for "ocd".
8518 Fix PR gdb/349.
8519
8520 * Makefile.in (linux-thread.o): Delete target.
8521 * linux-thread.c: Delete file.
8522
8523 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8524 renamed SH files to be consistent.
8525
8526 * symtab.c (sort_search_symbols): Use xfree.
8527
8528 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8529
8530 * arm-linux-tdep.c (arm_linux_init_abi): Register
8531 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8532 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8533 definition with undef, since we don't want the sysvr4 definition.
8534 (SKIP_TRAMPOLINE_CODE): Likewise.
8535
8536 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8537
8538 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8539
8540 * configure.in: (AC_CHECK_FUNCS) Added test for
8541 canonicalize_file_name Regenerated.
8542 * config.in, configure: Regenerated.
8543 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8544 defined use canonicalize_file_name.
8545
8546 2002-02-23 Michael Chastain <mec@shout.net>
8547
8548 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8549
8550 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8551
8552 * README: Remove references to cygnus.com.
8553 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8554 dot com'' form. Remove references to cygnus.com and sourceware.
8555
8556 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8557
8558 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8559 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8560 1003.1-2001 no longer allows "head -1".
8561 * gdb/Makefile.in (version.c): Likewise.
8562 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8563 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8564 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8565
8566 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8567
8568 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8569 * command.h (cmd_cfunc_eq): Declare.
8570 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8571
8572 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8573 ``struct cmd_list_element *''.
8574 * cli/cli-cmds.c (is_complete_command): Update. Use
8575 cmd_cfunc_eq.
8576 * top.c (execute_command): Pass the command to
8577 is_complete_command.
8578 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8579
8580 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8581
8582 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8583 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8584 architecture defines.
8585 * s390-tdep.c (s390_gdbarch_init): Likewise.
8586
8587 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8588
8589 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8590 (arm_linux_push_arguments): Likewise.
8591 (arm_linux_init_abi): Register them. Also register linux-specific
8592 call_dummy_words.
8593 (find_minsym_and_objfile): Use strcmp, not STREQ.
8594 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8595 (arm_linux_call_dummy_words): Delete declaration.
8596 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8597 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8598 declarations.
8599 (LOWEST_PC): Delete.
8600
8601 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8602
8603 * maint.c (print_section_info): Do not prepend `0x' to filepos
8604 output, it will be handled by local_hex_string_custom.
8605
8606 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8609 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8610 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8611
8612 2002-02-22 Jim Blandy <jimb@redhat.com>
8613
8614 Indicate that the bcache functions don't change the strings
8615 they're passed.
8616 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8617 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8618
8619 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8620
8621 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8622
8623 2002-02-21 Christopher Faylor <cgf@redhat.com>
8624
8625 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8626 find the complete path to a loaded DLL.
8627
8628 2002-02-21 Fred Fish <fnf@redhat.com>
8629
8630 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8631 that marks the end of the range of a function, enter a line number
8632 entry that has a line number of zero and a PC offset that matches
8633 the end of the function. This starts a range of PC's for which no
8634 line number information is known.
8635 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8636 PC's for which no line number info is found (line number is zero)
8637 then we didn't find any valid line information.
8638 * symtab.h: Document use of zero line number entry.
8639
8640 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8641
8642 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8643 (have_ptrace_getvrregs): Define for run time checks.
8644 (gdb_vrregset_t): New type for Altivec register handling.
8645 (fetch_register, store_register): Fetch/store altivec register
8646 when needed.
8647 (fetch_altivec_register, store_altivec_register): New functions.
8648 (supply_vrregset, fill_vrregset): New functions.
8649 (fetch_altivec_registers, store_altivec_registers): New functions.
8650 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8651 registers as well.
8652
8653 2002-02-21 Jiri Smid <smid@suse.cz>
8654
8655 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8656
8657 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8658
8659 * Makefile.in (armnbsd-nat.o): Update dependencies.
8660 * armnbsd-nat.c (supply_gregset): New function. Common code to
8661 supply the integer register set.
8662 (supply_fparegset): New function. Similar for FPA registers.
8663 (fetch_regs, fetch_fp_regs): Use them.
8664 (fetch_core_registers): Likewise.
8665 (fetch_elfcore_registers): New function.
8666 (arm_netbsd_elfcore_fns): New core-file type specification.
8667 (_initialize_arm_netbsd_nat): Register it.
8668
8669 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8670
8671 * armnbsd-nat.c: Include gdbcore.h.
8672 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8673 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8674 'void' to declaration, to shut up ARI.
8675 (fetch_core_registers): Make static. Rewrite using supply_register.
8676 (arm_netbsd_core_fns): New core-file type specification.
8677 (_initialize_arm_netbsd_nat): New function.
8678
8679 2002-02-21 Christopher Faylor <cgf@redhat.com>
8680
8681 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8682 value.
8683
8684 2002-02-20 Christopher Faylor <cgf@redhat.com>
8685
8686 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8687 fails.
8688
8689 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8690
8691 * jv-exp.y (parse_number): Change type of implicit longs
8692 to builtin_type_uint64.
8693
8694 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8695
8696 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8697 to be an integer instead of a `union wait'.
8698
8699 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8700
8701 * mips-linux-nat.c: Call the operating system GNU/Linux.
8702 * mips-linux-tdep.c: Likewise.
8703 * mips-tdep.c: Likewise.
8704
8705 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8706
8707 Fix PR gdb/265.
8708 * jv-exp.y (parse_number): Handle 64-bit integers.
8709
8710 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8713 AC_STDC_HEADERS to AC_HEADER_STDC.
8714 * gdbserver/configure: Regenerated.
8715
8716 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8717
8718 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8719 is defined.
8720 * sparc-tdep.c (get_longjmp_target): Likewise.
8721
8722 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8723
8724 * News: Add news about ARM and Multi-arch. Mention the new target
8725 arm*-*-netbsd*.
8726
8727 2002-02-19 Jim Blandy <jimb@redhat.com>
8728
8729 * stabsread.c (error_type_complaint): Improve error message.
8730
8731 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * gdbserver/README: Update documentation.
8734 * gdbserver/configure.in: Update configury to match documentation.
8735 * gdbserver/Makefile.in: Likewise.
8736 * gdbserver/configure: Regenerated.
8737 * gdbserver/aclocal.m4: New file, generated by aclocal.
8738 * gdbserver/config.in: New file, generated by autoheader.
8739
8740 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8741
8742 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8743 armnbsd-nat.c.
8744
8745 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8746
8747 * arm-tdep.h (enum arm_float_model): New enum.
8748 (struct gdbarch_tdep): Add fp_model.
8749 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8750 up floating-point conversions until we know the floating-point model
8751 in use by the inferior. Don't complain about being unable to
8752 determine the ABI of the inferior when we don't have one.
8753 (arm_extract_return_value): Support different floating-point models.
8754 (arm_store_return_value): Likewise.
8755 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8756 ARM_FLOAT_SOFT.
8757 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8758
8759 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8760
8761 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8762 of ``current_gdbarch''.
8763
8764 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8765
8766 * armnbsd-nat.c : ANSIfy all function declarations.
8767 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8768 (fetch_inferior_registers): Re-implement in terms of above.
8769 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8770 (store_inferior_registers): Re-implement in terms of above.
8771
8772 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8773
8774 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8775 kernel.
8776 * arm-linux-tdep.c: Likewise.
8777 * config/arm/tm-linux.h: Likewise.
8778
8779 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8780
8781 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8782 * config/arm/nbsd.mt (TM_FILE): Delete.
8783 * config/arm/tm-nbsd.h: Delete.
8784
8785 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8786
8787 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8788 Initialize CALL_DUMMY_LENGTH.
8789
8790 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8791
8792 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8793 function.
8794 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8795 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8796 defines one thing and that is incorrect for this port.
8797 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8798
8799 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8800
8801 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8802
8803 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8804
8805 * win32-nat.c (display_selector): New function. Displays information
8806 about the information returned by GetThreadSelectorEntry API function.
8807 (display_selectors): New function. Displays the infomation of
8808 the selector given as argument, or of CS, DS ans FS selectors
8809 if no argument is given.
8810 ( _initialize_inftarg): Add "w32" as info prefix command.
8811 Add "info w32 selector" as command calling display_selectors.
8812
8813 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8814
8815 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8816 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8817 if not defined.
8818
8819 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8820
8821 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8822
8823 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8824
8825 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8826 (arm_fix_call_dummy): Call it.
8827 (arm_call_dummy_breakpoint_offset): Delete.
8828 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8829 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8830
8831 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8832
8833 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8834 Default to func_frame_chain_valid.
8835 * gdbarch.h, gdbarch.c: Re-generate.
8836 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8837
8838 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8839
8840 * ppc-linux-nat.c: Update copyright.
8841 (fetch_register, store_register): Add tid parameter, don't compute
8842 tid here.
8843 (fetch_ppc_registers, store_ppc_registers): Add tid
8844 parameter. Pass it along to callees.
8845 (fetch_inferior_registers, store_inferior_registers): Compute tid
8846 here, and pass it to calleed functions.
8847 (fill_gregset, supply_fpregset): Clean up formatting.
8848
8849 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8850
8851 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8852 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8853
8854 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8855
8856 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8857 * gdbarch.c gdbarch.h: Regenerate.
8858 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8859 function.
8860 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8861 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8862 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8863
8864 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8865 * arm-tdep.c (arm_get_longjmp_target): New function.
8866 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8867 this to a positive value register arm_get_longjmp_target as the
8868 longjmp handler.
8869 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8870 (arm_linux_init_abi): Set up longjmp description in tdep.
8871 * armnbsd-nat.c (get_longjmp_target): Delete.
8872 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8873 description in tdep.
8874 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8875 (get_longjmp_target): Delete declaration.
8876 (GET_LONGJMP_TARGET): Delete.
8877 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8878 (GET_LONGJMP_TARGET): Delete.
8879
8880 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8881
8882 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8883 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8884 of ``current_gdbarch''.
8885
8886 2002-02-17 Tom Tromey <tromey@redhat.com>
8887
8888 * cli/cli-cmds.c (compare_strings): New function.
8889 (complete_command): Only print each unique item once.
8890 * completer.h (complete_line): Declare.
8891 * completer.c (complete_line): New function.
8892 (line_completion_function): Use it.
8893
8894 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8895
8896 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8897 * gdbarch.h, gdbarch.c: Re-generate.
8898
8899 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8900
8901 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8902
8903 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8904
8905 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8906 * valops.c (value_arg_coerce): Don't take the address of a reference
8907 to convert an argument to a reference.
8908
8909 2002-02-15 Christopher Faylor <cgf@redhat.com>
8910
8911 * win32-nat.c (get_image_name): New function.
8912 (handle_load_dll): Use get_image_name function.
8913 (get_child_debug_event): Avoid registering debug events until possibly
8914 execed process is started.
8915 (child_create_inferior): Allow invocation via shell so that command
8916 line redirection, etc. works ok.
8917 (_initialize_inftarg): Add new command: "set shell" to control whether
8918 a shell is used to start a process.
8919
8920 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8921
8922 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8923 instead of find_register_by_number.
8924 (cannot_store_register): Likewise.
8925
8926 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8927
8928 * dwarf2read.c: Replace fprintf (stderr, ...) by
8929 fprintf_unfiltered (gdb_stderr, ...).
8930
8931 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * gdbserver/gdbserver.1: Document --attach.
8934
8935 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8936
8937 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8938 descriptions.
8939 * arm-tdep.c (arm_default_arm_le_breakpoint)
8940 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8941 (arm_default_thumb_be_breakpoint): New. Initialize them from
8942 traditional breakpoint defines.
8943 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8944 (arm_gdbarch_init): Initialize new breakpoint variables.
8945 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8946 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8947 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8948 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8949 code out to ...
8950 (arm_netbsd_init_abi_common): ... here; new function.
8951 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8952 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8953 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8954 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8955
8956 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8957
8958 * arm-tdep.h (enum arm_abi): New enum.
8959 (struct gdbarch_tdep): New structure.
8960 (LOWEST_PC): Provide a default.
8961 (arm_gdbarch_register_os_abi): Declare new function.
8962 * arm-tdep.c (arm_abi_names): New array.
8963 (process_note_abi_tag_sections): New function.
8964 (get_elfosabi): New function.
8965 (arm_gdbarch_register_os_abi): New function.
8966 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8967 support for that ABI has been built in, then call the appropriate
8968 configuration routine. Use gdbarch_num_regs() to get the number
8969 of registers.
8970 (arm_dump_tdep): New function.
8971 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8972 place-holder functions.
8973 (_initialize_arm_tdep): Register them.
8974 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8975
8976 * armnbsd-tdep.c: New file.
8977 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8978 * config/arm/nbsd.mt (TDEPFILES): Add it.
8979 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8980
8981 * armnbsd-nat.c: Include regcache.h.
8982 * Makefile.in (armnbsd-nat.o): Update dependency list.
8983
8984 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8985
8986 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8987
8988 * gdbserver/Makefile.in: Fix typos in target rules.
8989
8990 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8991
8992 Fix part of PR gdb/267.
8993 * linespec.c (find_methods): Handle constructors specially for now.
8994
8995 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8996
8997 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8998 handling.
8999 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9000 standard_coerce_float_to_double().
9001
9002 2002-02-14 Christopher Faylor <cgf@redhat.com>
9003
9004 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9005 GDBINIT_FILENAME.
9006
9007 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9008
9009 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9010 find_variant_by_name, because it confuses the multiarch
9011 framework. Return NULL if there isn't an architecture with the
9012 user supplied name, instead of forcing a different one without
9013 recording the change with the multiarch machinery.
9014 (find_variant_by_name): Delete.
9015
9016 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9017
9018 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9019 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9020
9021 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9022
9023 * stack.c (print_frame_info_base): When calling
9024 print_frame_info_listing_hook, set current_source_symtab.
9025
9026 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9027
9028 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9029 and remove unused $(INCLUDE_DIR).
9030 Add regcache.c to OBS.
9031 Add generated register protocol files to clean target.
9032 Update dependencies for new objects, obsolete old target code.
9033
9034 * gdbserver/linux-low.c: Remove all platform-specific code to
9035 new files. Remove various dead code. Update to use regcache
9036 functionality.
9037 * gdbserver/remote-utils.c (fromhex): Add return statement
9038 to quiet warning.
9039 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9040 constant.
9041 (input_interrupt): Add integer parameter to match prototype
9042 of a signal handler.
9043 (outreg): Use register_data ().
9044 (prepare_resume_reply): Use gdbserver_expedite_regs.
9045 * gdbserver/server.c (main): Dynamically allocate own_buf because
9046 PBUFSIZ is no longer constant. Use registers_to_string () and
9047 registers_from_string ().
9048 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9049 for error (), fatal (), and warning (). Update definition of
9050 PBUFSIZ to use regcache functionality. Add include guard.
9051 * gdbserver/utils.c (fatal): Add missing ``const''.
9052 (warning): New function.
9053
9054 * regformats/regdat.sh: Include "regcache.h" in generated files.
9055 Provide init_registers () function.
9056 * regformats/regdef.h: Add prototype for set_register_cache ().
9057 Add include guard.
9058
9059 * gdbserver/linux-arm-low.c: New file.
9060 * gdbserver/linux-i386-low.c: New file.
9061 * gdbserver/linux-ia64-low.c: New file.
9062 * gdbserver/linux-m68k-low.c: New file.
9063 * gdbserver/linux-mips-low.c: New file.
9064 * gdbserver/linux-ppc-low.c: New file.
9065 * gdbserver/linux-sh-low.c: New file.
9066
9067 * gdbserver/regcache.c: New file.
9068 * gdbserver/regcache.h: New file.
9069
9070 * gdbserver/low-linux.c: Removed obsolete file.
9071
9072 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9073
9074 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9075 * config/i386/linux.mt: Likewise.
9076 * config/ia64/linux.mt: Likewise.
9077 * config/m68k/linux.mh: Likewise.
9078 * config/powerpc/linux.mh: Likewise.
9079 * config/mips/linux.mt: Likewise.
9080
9081 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9082
9083 * config/i386/i386lynx.mh: Mark gdbserver variables
9084 as (currently) obsolete for this target.
9085 * config/i386/nbsd.mt: Likewise.
9086 * config/i386/nbsdelf.mt: Likewise.
9087 * config/m32r/m32r.mt: Likewise.
9088 * config/m68k/m68klynx.mh: Likewise.
9089 * config/m68k/nbsd.mt: Likewise.
9090 * config/m68k/sun3os4.mh: Likewise.
9091 * config/mips/vr5000.mt: Likewise.
9092 * config/ns32k/nbsd.mt: Likewise.
9093 * config/pa/hppabsd.mh: Likewise.
9094 * config/pa/hppaosf.mh: Likewise.
9095 * config/powerpc/nbsd.mt: Likewise.
9096 * config/rs6000/rs6000lynx.mh: Likewise.
9097 * config/s390/s390.mt: Likewise.
9098 * config/s390/s390x.mt: Likewise.
9099 * config/sparc/sparclynx.mh: Likewise.
9100 * config/sparc/sun4os4.mh: Likewise.
9101 * config/i386/x86-64linux.mt: Likewise.
9102 * config/sparc/linux.mh: Likewise.
9103
9104 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9105
9106 * configure.tgt: Configure gdbserver only for known working
9107 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9108 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9109 SUBDIRS if it is configured. Update comment for ${nativefile}.
9110 * configure: Regenerated.
9111
9112 2002-02-13 Michael Snyder <msnyder@redhat.com>
9113
9114 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9115
9116 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9117 (default_gcore_mach): Just return 0, work around a problem in bfd.
9118 (default_gcore_target): OK to return NULL if exec_bfd is null.
9119 (make_mem_sec): Use a cast, avoid a warning.
9120
9121 * procfs.c (find_memory_regions_callback): Use a cast instead of
9122 calling host_pointer_to_address (which complains if
9123 sizeof (host pointer) != sizeof (target pointer)).
9124 (procfs_make_note_section): Avoid overflow in psargs string.
9125
9126 * procfs.c (procfs_make_note_section): Make the default
9127 implementation return an error.
9128
9129 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9130
9131 * procfs.c (procfs_make_note_section): Provide a default definition
9132 (for alpha-dec-osf4.0f). Fix typos.
9133
9134 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9135
9136 * linux-proc.c: Add include of regcache.h.
9137 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9138
9139 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9140
9141 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9142 * memattr.c (create_mem_region): Disallow useless empty region.
9143 Regions are half-open intervals, so allow [A..B) [B..C) as
9144 non-overlapping.
9145
9146 2002-02-13 Michael Chastain <mec@shout.net>
9147
9148 * defs.h: Kill CONST_PTR.
9149 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9150 * c-lang.c (c_builtin_types): Likewise.
9151 * ch-lang.c (ch_builtin_types): Likewise.
9152 * f-lang.c (f_builtin_types): Likewise.
9153 * language.c (unknown_builtin_types): Likewise.
9154 * m2-lang.c (m2_builtin_types): Likewise.
9155 * p-lang.c (pascal_builtin_types): Likewise.
9156 * scm-lang.c (c_builtin_types): Likewise.
9157
9158 2002-02-13 Keith Seitz <keiths@redhat.com>
9159
9160 * arm-tdep.h (arm_get_next_pc): Add declaration.
9161
9162 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9163
9164 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9165 with other related struct-returning functions.
9166 (arm_extract_struct_value_address): New function.
9167 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9168 initialize float_format, double_format and long_double_format as
9169 appropriate to the endianness of the target.
9170 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9171 (arm_use_struct_convention): Delete declaration.
9172 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9173
9174 2002-02-13 Keith Seitz <keiths@redhat.com>
9175
9176 * defs.h (core_addr_to_string_nz): New function.
9177
9178 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9179
9180 Apply missing bits of 2002-01-15 patch.
9181 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9182 (fill_fpregset): Use i387_fill_fsave.
9183
9184 2002-02-12 Keith Seitz <keiths@redhat.com>
9185
9186 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9187 (core_addr_to_string_nz): New function.
9188
9189 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * arm-linux-nat.c: Really include arm-tdep.h.
9192 * config/arm/tm-linux.h (struct type, struct value): Declare.
9193
9194 2002-02-11 Michael Snyder <msnyder@redhat.com>
9195
9196 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9197 (gcore section): Ifdef for Solaris and Unixware only.
9198 (procfs_do_thread_registers): Unixware needs one lwpstatus
9199 per thread (not one prstatus or pstatus).
9200 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9201 not over all gdb threads. For unixware, call elfcore_write_pstatus
9202 once before iterating over threads.
9203
9204 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9205
9206 * arm-tdep.h: New file.
9207 * arm-tdep.c: Include arm-tdep.h.
9208 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9209 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9210 (arm_print_float_info, arm_register_type, convert_to_extended)
9211 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9212 (arm_extract_return_value, arm_register_name): Make static.
9213 (arm_software_single_step): Similarly. Fix types in declaration.
9214 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9215 (arm_store_return_value, arm_store_struct_return): New functions.
9216 (arm_gdbarch_init): Register the above functions. Also register
9217 call_dummy_start_offset, sizeof_call_dummy_words,
9218 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9219 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9220 max_register_virtual_size, register_size. Set up
9221 prologue_cache.saved_regs here, rather than ...
9222 (_initialize_arm_tdep): ... here.
9223 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9224 declarations.
9225 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9226 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9227 (arm_print_float_info, arm_register_type, convert_to_extended)
9228 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9229 (arm_extract_return_value, arm_register_name): Delete declarations.
9230 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9231 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9232 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9233 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9234 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9235 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9236 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9237 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9238 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9239 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9240 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9241 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9242 interface.
9243 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9244 * remote-rdi.c remote-rdp.c: Likewise.
9245 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9246 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9247 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9248 definition.
9249
9250 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9251 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9252 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9253 from non-ARM_ prefixed definitions.
9254 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9255 all uses of above.
9256 * remote-rdi.c remote-rdp.c: Likewise.
9257 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9258
9259 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9260
9261 * arm-tdep.c (arm_frameless_function_invocation)
9262 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9263 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9264 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9265 (arm_pop_frame, arm_get_next_pc): Make static.
9266 (arm_gdbarch_init): Register above in gdbarch structure.
9267 (arm_read_fp): Renamed from arm_target_read_fp.
9268 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9269 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9270 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9271 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9272 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9273 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9274 (arm_pc_is_thumb_dummy): Delete declarations.
9275 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9276 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9277 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9278 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9279
9280 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * symtab.c (compare_search_syms): New function.
9283 (sort_search_symbols): New function.
9284 (search_symbols): Sort symbols after searching rather than
9285 before.
9286
9287 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9288
9289 * NEWS: Linux -> GNU/Linux.
9290
9291 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9292
9293 * gdbarch.sh: For for level one methods, disallow a definition
9294 when partially multi-arched. Add comments explaining rationale.
9295 * gdbarch.h: Re-generate.
9296
9297 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9298
9299 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9300 multi-arch partial.
9301
9302 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9303
9304 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9305 field. Use diff -u.
9306 * gdbarch.c: Re-generate.
9307
9308 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9309
9310 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9311 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9312 partial.
9313
9314 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9315
9316 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9317 multi-arch partial.
9318 (PUSH_ARGUMENTS): Switch to using predefault.
9319 * gdbarch.c: Regenerate.
9320
9321 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9322
9323 * valops.c (PUSH_ARGUMENTS): Delete definition.
9324 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9325 partial. Default to default_push_arguments.
9326 * gdbarch.h, gdbarch.c: Regenerate.
9327
9328 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9329
9330 * defs.h (throw_exception): Rename return_to_top_level. Update
9331 comments.
9332 * utils.c (error_stream, internal_verror, quit): Ditto.
9333 * top.c (throw_exception, catcher): Ditto.
9334 * sparclet-rom.c (sparclet_load): Ditto.
9335 * remote.c (interrupt_query, minitelnet): Ditto.
9336 * remote-sds.c (interrupt_query): Ditto.
9337 * remote-mips.c (mips_error, mips_kill): Ditto.
9338 * ocd.c (interrupt_query): Ditto.
9339 * monitor.c (monitor_interrupt_query): Ditto.
9340 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9341 * target.h: Update comment.
9342
9343 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9344
9345 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9346
9347 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9348 default_double_format.
9349 * gdbarch.h, gdbarch.c: Re-generate.
9350 * findvar.c (floatformat_unknown): Delete variable definition.
9351 * doublest.h (floatformat_unknown): Delete variable declaration.
9352
9353 2002-02-09 Jim Blandy <jimb@redhat.com>
9354
9355 * stabsread.c (read_type): Add code to parse Sun's syntax for
9356 prototyped function types.
9357
9358 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9359
9360 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9361 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9362
9363 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9364
9365 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9366 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9367 now _initialize_xcoffsolib gets called again and overrides the
9368 commands from solib.c in a native configuration.
9369
9370 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9371
9372 * doublest.c (store_typed_floating): Don't try to return a value.
9373 Fixes PR gdb/290.
9374
9375 2002-02-08 Jim Blandy <jimb@redhat.com>
9376
9377 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9378 is prototyped and has no arguments, print its argument list as
9379 `(void)'.
9380
9381 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9382
9383 * MAINTAINERS (write-after-approval): Add myself.
9384 (paper-trail): I've escaped!
9385
9386 2002-02-08 Christopher Faylor <cgf@redhat.com>
9387
9388 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9389 changes.
9390 (_initialize_check_for_gdb_ini): Ditto.
9391
9392 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9393
9394 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9395 xaprintf -> xasprintf.
9396
9397 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9398
9399 * win32-nat.c: Remove use of printf and sprintf functions.
9400
9401 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9402
9403 * arm-tdep.c (arm_frame_chain_valid): Make static.
9404 (arm_push_arguments): Likewise.
9405 (arm_gdbarch_init): New function.
9406 (_initialize_arm_tdep): Call it.
9407 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9408 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9409 (FRAME_CHAIN_VALID): Delete.
9410 (arm_frame_chain_valid): Delete declaration.
9411 (PUSH_ARGUMENTS): Delete.
9412 (arm_push_arguments): Delete declaration.
9413 (CALL_DUMMY_P): Delete.
9414
9415 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9416 Corinna Vinschen <vinschen@redhat.com>
9417
9418 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9419 on builtin float types.
9420
9421 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9422
9423 * utils.c: Include <curses.h> before "bfd.h".
9424 * tui/tui-hooks.c: Likewise.
9425 * tui/tui.c: Likewise.
9426 * tui/tuiCommand.c: Likewise.
9427 * tui/tuiData.c: Likewise.
9428 * tui/tuiDataWin.c: Likewise.
9429 * tui/tuiDisassem.c: Likewise.
9430 * tui/tuiGeneralWin.c: Likewise.
9431 * tui/tuiIO.c: Likewise.
9432 * tui/tuiLayout.c: Likewise.
9433 * tui/tuiRegs.c: Likewise.
9434 * tui/tuiSource.c: Likewise.
9435 * tui/tuiSourceWin.c: Likewise.
9436 * tui/tuiStack.c: Likewise.
9437 * tui/tuiWin.c: Likewise.
9438
9439 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9440
9441 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9442 to include space for pseudoregs as well. Update loops accordingly.
9443 (sh_fp_frame_init_saved_regs): Ditto.
9444 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9445
9446 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9447
9448 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9449 Add Richard Earnshaw to Arm maintainers.
9450
9451 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9452
9453 * defs.h (warning_begin): Delete declaration.
9454
9455 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9456 Delete macro.
9457
9458 2002-02-07 Michael Snyder <msnyder@redhat.com>
9459
9460 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9461 Logic bug, remove misplaced else.
9462
9463 2002-02-07 Klee Dienes <klee@apple.com>
9464
9465 * fork-inferior.c (fork_inferior): Add '!' to the list of
9466 characters that need to be quoted when building a string for the
9467 shell. Quote '!' specifically with a backslash, since CSH chokes
9468 when trying to evaluate "str!str".
9469
9470 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9471
9472 * rdi-share/host.h: Only provide a typedef for bool if it is not
9473 defined.
9474
9475 2002-02-04 Michael Snyder <msnyder@redhat.com>
9476
9477 * breakpoint.h (enum bptype): Add new overlay event bp type.
9478 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9479
9480 * breakpoint.c (create_internal_breakpoint): New function.
9481 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9482 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9483 (create_thread_event_breakpoint): Ditto.
9484 (create_solib_event_breakpoint): Ditto.
9485 (create_overlay_event_breakpoint): New function.
9486 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9487 (update_breakpoints_after_exec): Delete and re-initialize
9488 overlay event breakpoints after an exec. Add FIXME comment
9489 about longjmp breakpoint.
9490 (print_it_typical): Ignore overlay event breakpoints.
9491 (print_one_breakpoint): Ditto.
9492 (mention): Ditto.
9493 (bpstat_what): Do not stop for overlay event breakpoints.
9494 (delete_breakpoint): Don't delete overlay event breakpoints.
9495 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9496 (breakpoint_re_set): Re-create overlay event breakpoint.
9497
9498 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9499 (overlay_manual_command): Disable overlay breakpoints.
9500 (overlay_off_command): Disable overlay breakpoints.
9501
9502 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9503
9504 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9505 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9506 to here from config/tm-arm.h.
9507 (coff_sym_is_thumb): Make static.
9508 (arm_elf_make_msymbol_special): New function.
9509 (arm_coff_make_msymbol_special): New function.
9510 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9511 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9512 (coff_sym_is_thumb): Delete declaration.
9513 (arm_elf_make_msymbol_special): Declare.
9514 (arm_coff_make_msymbol_special): Declare.
9515 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9516 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9517
9518 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9519
9520 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9521
9522 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9525 * gdbarch.c gdbarch.h: Regenerate.
9526 * arch-utils.c (default_print_float_info): New function.
9527 * arch-utils.h (default_print_float_info): Prototype it.
9528 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9529 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9530 (PRINT_FLOAT_INFO): Document it.
9531
9532 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9533 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9534 (PRINT_FLOAT_INFO): Define.
9535
9536 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9537
9538 * win32-nat.c (_initialize_check_for_gdb_ini):
9539 Add typecast to sprintf argument to suppress a warning.
9540
9541 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9542
9543 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9544 to allow easier handling of pass state.
9545 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9546 that gives exception name and address.
9547 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9548 and set last_sig value to ourstatus->value.sig. Some missing
9549 exceptions added.
9550 (child_continue): Correctly report continue_status.
9551 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9552 TARGET_SIGNAL_0 (new default value).
9553 (child_resume): consider sig argument passed to decide if
9554 the exception should be passed to debuggee or not.
9555
9556 2002-02-05 Michael Snyder <msnyder@redhat.com>
9557
9558 * regcache.c (fetch_register): Call target_fetch_register
9559 only if we don't call FETCH_PSEUDO_REGISTER.
9560 (store_register): Call target_store_register only if we
9561 don't call STORE_PSEUDO_REGISTER.
9562
9563 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9564
9565 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9566 ELF_MAKE_MSYMBOL_SPECIAL.
9567 * gdbarch.c, gdbarch.h: Regenerate.
9568 * arch-utils.c (default_make_msymbol_special): New function.
9569 * arch-utils.h (default_make_msymbol_special): Export.
9570 * elfread.c (elf_symtab_read): Compile use of
9571 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9572 multiarched.
9573 * coffread.c (coff_symtab_read): Ditto, for
9574 COFF_MAKE_MSYMBOL_SPECIAL.
9575
9576 2002-02-05 Jim Blandy <jimb@redhat.com>
9577
9578 * solib-svr4.c (svr4_truncate_ptr): New function.
9579 (svr4_relocate_section_addresses): Do the address arithmetic with
9580 the appropriate truncation for target addresses, even when
9581 CORE_ADDR is larger than a target address.
9582
9583 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9584
9585 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9586 to (int *).
9587
9588 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9589
9590 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9591 code.
9592
9593 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9594
9595 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9596
9597 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9598
9599 * gdbserver/linux-low.c: Remove unused include files.
9600
9601 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9602
9603 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9604 (read_inferior_memory): Use it.
9605 (write_inferior_memory): Likewise.
9606
9607 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9608
9609 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9610 grubbing through sys_errlist.
9611
9612 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9613
9614 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9615
9616 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9617 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9618
9619 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9620
9621 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9622 (do_sfunc, set_cmd_sfunc): New functions.
9623
9624 * command.h (struct cmd_list_element): Add field func.
9625 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9626 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9627 * cli/cli-decode.h: Ditto.
9628
9629 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9630 (help_all, help_cmd_list): Ditto.
9631 (find_cmd, complete_on_cmdlist): Ditto.
9632 * top.c (execute_command): Ditto.
9633
9634 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9635 function.sfunc.
9636
9637 * infcmd.c (notice_args_read): Fix function signature.
9638
9639 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9640 * cli/cli-decode.c (add_set_cmd): Ditto.
9641 * utils.c (initialize_utils): Ditto.
9642 * maint.c (_initialize_maint_cmds): Ditto.
9643 * infrun.c (_initialize_infrun): Ditto.
9644 * demangle.c (_initialize_demangler): Ditto.
9645 * remote.c (add_packet_config_cmd): Ditto.
9646 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9647 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9648 * proc-api.c (_initialize_proc_api): Ditto.
9649 * kod.c (_initialize_kod): Ditto.
9650 * valprint.c (_initialize_valprint): Ditto.
9651 * top.c (init_main): Ditto.
9652 * infcmd.c (_initialize_infcmd): Ditto.
9653 * corefile.c (_initialize_core): Ditto.
9654 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9655 * arch-utils.c (initialize_current_architecture): Ditto.
9656 (_initialize_gdbarch_utils): Ditto.
9657 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9658
9659 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9660 * wince.c (_initialize_inftarg): Ditto.
9661 * symfile.c (_initialize_symfile): Ditto.
9662 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9663 * language.c (_initialize_language): Ditto.
9664 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9665
9666 2002-02-04 Michael Snyder <msnyder@redhat.com>
9667
9668 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9669
9670 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9671
9672 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9673 Add rules for building the register data files.
9674
9675 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9676
9677 * regformats/regdat.sh: Add braces to the definition of
9678 expedite_regs_${arch}.
9679
9680 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9681
9682 * regformats/regdef.h (struct reg): Add comment describing the
9683 requirements for offset and size fields.
9684
9685 2002-02-04 Andreas Schwab <schwab@suse.de>
9686
9687 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9688 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9689
9690 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9691
9692 * gdbarch.sh (copyright): Update years in generated header.
9693 (SMASH_TEXT_ADDRESS): Add rule.
9694 * gdbarch.h, gdbarch.c: Re-generate.
9695 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9696 * dbxread.c: Likewise.
9697 * dwarfread.c: Likewise.
9698 * elfread.c: Likewise.
9699 * somread.c: Likewise.
9700
9701 * arm-tdep.c (arm_smash_text_address): New function.
9702 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9703
9704 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9705
9706 Add support for hardware watchpoints on win32 native.
9707 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9708 CONTEXT_DEBUG_REGISTERS.
9709 (dr variable): New variable. Static array containing a local copy
9710 of debug registers.
9711 (debug_registers_changed): New variable. Reflects when debug registers
9712 are changed and need to be written to inferior.
9713 (debug_registers_used): New variable. Reflects when any debug register
9714 was set, used when new threads are created.
9715 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9716 i386-nat code.
9717 (thread_rec): Set dr array if id is the thread of current_event .
9718 (child_continue, child_resume): Change the debug registers for all
9719 threads if debug_registers_changed.
9720 (child_add_thread): Change the debug registers if debug_registers_used.
9721 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9722 Link nm.h to new nm-cygwin.h file.
9723 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9724 of hardware registers.
9725
9726 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9727
9728 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9729 Restore behavour broken by 2002-01-20 Andrew Cagney
9730 <ac131313@redhat.com> IEEE_FLOAT removal.
9731
9732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9733
9734 * c-valprint.c (c_val_print): Pass a proper valaddr to
9735 cp_print_class_method.
9736 * valops.c (search_struct_method): If there is only one method
9737 and args is NULL, return that method.
9738
9739 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9740
9741 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9742 accessing tag_name directly.
9743
9744 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9745
9746 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9747 of accessing tag_name directly.
9748
9749 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9750
9751 PR gdb/280
9752 * gdbtypes.c (replace_type): New function.
9753 * gdbtypes.h (replace_type): Add prototype.
9754 * stabsread.c (read_type): Use replace_type.
9755
9756 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9757
9758 * Makefile.in (memattr.o): Add missing dependencies rule.
9759
9760 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9761
9762 * breakpoint.c (break_at_finish_command): Really export.
9763 (break_at_finish_at_depth_command): Ditto.
9764 (tbreak_at_finish_command): Ditto.
9765 * hppa-tdep.c: Include completer.h.
9766 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9767 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9768
9769 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9770
9771 * utils.c (do_write): New function.
9772 (error_stream): Rewrite combining the code from error_begin and
9773 verror.
9774 (verror): Rewrite using error_stream.
9775 (error_begin): Delete function.
9776
9777 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9778
9779 * utils.c (error_begin): Make static.
9780 * defs.h (error_begin): Delete declaration.
9781
9782 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9783 (decode_line_1): Use cplusplus_error instead of error_begin,
9784 cplusplus_hint and return_to_top_level.
9785 * coffread.c (coff_symfile_read): Use error instead of error_begin
9786 and return_to_top_level.
9787 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9788
9789 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9790
9791 * language.h (type_error, range_error): Make string parameter
9792 constant.
9793 * language.c (warning_pre_print): Delete extern declaration.
9794 * dwarfread.c (warning_pre_print): Ditto.
9795 * language.c (type_error, range_error): Rewrite to use verror and
9796 vwarning instead of warning_begin.
9797
9798 2002-02-01 Michael Snyder <msnyder@redhat.com>
9799
9800 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9801 (set_ignore_count): Move misplaced comment back where it belongs.
9802
9803 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9804
9805 * command.h (NO_FUNCTION): Delete macro.
9806 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9807 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9808 * tracepoint.c (_initialize_tracepoint): Ditto.
9809 * cli/cli-decode.c (add_set_cmd): Ditto.
9810 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9811
9812 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9813
9814 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9815 Update ``this'' pointer when calling virtual functions.
9816
9817 2002-02-01 Michael Snyder <msnyder@redhat.com>
9818
9819 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9820 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9821
9822 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9823
9824 * regformats/reg-arm.dat: New file.
9825 * regformats/reg-i386.dat: New file.
9826 * regformats/reg-ia64.dat: New file.
9827 * regformats/reg-m68k.dat: New file.
9828 * regformats/reg-mips.dat: New file.
9829 * regformats/reg-ppc.dat: New file.
9830 * regformats/reg-sh.dat: New file.
9831 * regformats/regdef.h: New file.
9832 * regformats/regdat.sh: New file.
9833
9834 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9835
9836 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9837 (arm_frame_args_address, arm_frame_locals_address): New functions.
9838 (arm_frame_num_args): New function.
9839 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9840 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9841 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9842
9843 2002-01-31 Michael Snyder <msnyder@redhat.com>
9844
9845 * breakpoint.c (break_at_finish_command): Export.
9846 (break_at_finish_at_depth_command): Export.
9847 (tbreak_at_finish_command): Export.
9848 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9849 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9850 "tbreak" commands, which are HPPA specific.
9851
9852 * printcmd.c (disassemble_command): Remove an ancient
9853 artifact of an old merge.
9854
9855 * symfile.h (enum overlay_debugging_state):
9856 Define enum constant values for overlay mode.
9857 * symfile.c (overlay_debugging): Use enums instead of literals.
9858 (overlay_is_mapped, overlay_auto_command,
9859 overlay_manual_command): Ditto.
9860
9861 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9862 breakpoint_here_p, breakpoint_inserted_here_p,
9863 breakpoint_thread_match, bpstat_stop_status,
9864 describe_other_breakpoints, check_duplicates, clear_command):
9865 Coding standard fixes.
9866
9867 * target.c (target_xfer_memory): Add spaces, coding standard.
9868 (do_xfer_memory): Add missing line to trust-readonly
9869 code: check bfd SEC_READONLY flag for section.
9870
9871 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9872
9873 * PROBLEMS: Fix typo, 5.1->5.1.1.
9874
9875 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9876
9877 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9878 data symbols, since we search based on textlow and texthigh.
9879 (find_pc_sect_symtab): Likewise.
9880
9881 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9882
9883 * defs.h (vwarning): Declare.
9884 * utils.c (vwarning): New function.
9885 (warning): Call vwarning.
9886 (warning_begin): Delete function.
9887
9888 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9889 the warning message.
9890 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9891 warning_begin.
9892
9893 2002-01-30 Michael Snyder <msnyder@redhat.com>
9894
9895 * NEWS: Mention "set trust-readonly-sections" command.
9896 Mention generate-core-file command.
9897
9898 2002-01-15 Michael Snyder <msnyder@redhat.com>
9899
9900 * target.c: New command, "set trust-readonly-sections on".
9901 (do_xfer_memory): Honor the suggestion to trust readonly sections
9902 by reading them from the object file instead of from the target.
9903 (initialize_targets): Register command "set trust-readonly-sections".
9904
9905 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9906
9907 * parse.c (target_map_name_to_register): Simplify, search regs and
9908 pseudo-regs using a single loop.
9909
9910 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9911
9912 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9913
9914 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9915
9916 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9917 * config/i386/i386v42mp.mh: Add i387-nat.o .
9918 * i386v4-nat.c: Include i387-nat.h.
9919 (supply_fpregset): Use i387_supply_fsave.
9920 (fill_fpregset): Use i387_fill_fsave.
9921
9922 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9923
9924 * arm-tdep.c (arm_call_dummy_words): Define.
9925 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9926 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9927 (CALL_DUMMY_WORDS): Define.
9928 (arm_call_dummy_words): Declare.
9929 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9930 (arm_linux_call_dummy_words): Declare.
9931
9932 2002-01-30 Andreas Schwab <schwab@suse.de>
9933
9934 * m68klinux-nat.c: Fix last change to use regcache_collect
9935 instead of referencing registers[] directly.
9936
9937 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9938
9939 * parse.c (target_map_name_to_register): Delete code wrapped in
9940 #ifdef REGISTER_NAME_ALIAS_HOOK.
9941
9942 2002-01-28 Michael Snyder <msnyder@redhat.com>
9943
9944 * regcache.c (legacy_read_register_gen): Need to be able to
9945 read pseudo-register as well as real register.
9946 (legacy_write_register_gen): Ditto.
9947
9948 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9949
9950 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9951 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9952 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9953 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9954 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9955 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9956 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9957 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9958 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9959 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9960 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9961 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9962 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9963 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9964 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9965 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9966 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9967 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9968 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9969 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9970
9971 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9972
9973 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9974 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9975 (initialize_current_architecture): Update target_byte_order using
9976 information from BFD.
9977 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9978 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9979
9980 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9981
9982 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9983 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9984
9985 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9986 #ifdef INVALID_FLOAT.
9987 * infcmd.c (do_registers_info): Ditto.
9988 * values.c (unpack_double): Ditto. Add comment.
9989
9990 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9991 already commented out.
9992
9993 2002-01-26 Andreas Schwab <schwab@suse.de>
9994
9995 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9996 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9997 registers and add support for PTRACE_GETREGS.
9998
9999 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10000
10001 GDB 5.1.1 released from 5.1 branch.
10002 * NEWS: Add 5.1.1 news.
10003 * README: Sync with 5.1 branch.
10004
10005 2002-01-23 Fred Fish <fnf@redhat.com>
10006
10007 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10008 stabstring on initial malloc. Reallocing will copy it for us,
10009 if necessary.
10010
10011 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10012
10013 * Makefile.in (hpread_h): Delete.
10014 (HFILES_NO_SRCDIR): Remove hpread.h.
10015 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10016 (hpread.o): Update dependencies.
10017 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10018
10019 * hp-psymtab-read.c: Remove file.
10020 * hp-symtab-read.c: Remove file.
10021 * hpread.h: Remove file.
10022
10023 * hpread.c: Merge all contents of hp-psymtab-read.c,
10024 hp-symtab-read.c and hpread.h into this file, as it was prior to
10025 January 1999.
10026
10027 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10028 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10029 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10030 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10031
10032 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10033
10034 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10035 fill_gregset): Call gdbarch_tdep() just once, assign result to
10036 variable and use that, instead of calling the function several
10037 times.
10038
10039 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10040
10041 * configure.host: Accept sparcv9 as alias for sparc64.
10042 * configure.tgt: Likewise.
10043
10044 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10045
10046 * solib-aix5.c (build_so_list_from_mapfile)
10047 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10048 arguments is not reversed.
10049 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10050 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10051
10052 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10053
10054 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10055 modified version of obsolete sh_fetch_pseudo_register.
10056 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10057 (sh4_register_read): New function.
10058 (sh_pseudo_register_write): New function. Renamed and modified
10059 version of obsolete sh_store_pseudo_register.
10060 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10061 (sh4_register_write): New function.
10062 (sh_gdbarch_init): Remove setting of gdbarch function
10063 fetch_pseudo_register and store_pseudo_register. Remove setting of
10064 register_convert_to_raw, register_convert_to_virtual,
10065 register_convertible.
10066 (sh_sh4_register_convertible): Delete. No longer needed. All is
10067 taken care by architecture specific functions
10068 register_read/register_write.
10069 (sh_sh4_register_convert_to_virtual): Make static.
10070 (sh_sh4_register_convert_to_raw): Ditto.
10071
10072 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10073
10074 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10075 (floatformat_is_nan, floatformat_mantissa): Ditto.
10076
10077 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10078 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10079 builtin_type_ieee_double_little,
10080 builtin_type_ieee_double_littlebyte_bigword,
10081 builtin_type_m68881_ext, builtin_type_i960_ext,
10082 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10083 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10084 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10085 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10086
10087 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10088
10089 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10090 parameter. Set frameless flag if it exists and depended of
10091 whether the scanned function is frameless or not.
10092 (xstormy16_skip_prologue): If function is frameless, return
10093 result of xstormy16_scan_prologue().
10094 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10095 call.
10096
10097 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10098
10099 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10100 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10101 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10102 sh_sh4_register_byte, sh_sh4_register_raw_size,
10103 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10104 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10105 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10106 sh_store_pseudo_register, sh_do_pseudo_register): Call
10107 gdbarch_tdep() just once, assign result to variable and use that,
10108 instead of calling the function several times.
10109
10110 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10111
10112 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10113 macros instead of LAST_FPU_CTRL_REGNUM.
10114 (store_register): Likewise.
10115
10116 2002-01-21 Jim Blandy <jimb@redhat.com>
10117
10118 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10119 is up-to-date before running the program, not just when a program
10120 exits.
10121
10122 2002-01-21 Fred Fish <fnf@redhat.com>
10123
10124 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10125 when we have found all instructions we are looking for.
10126
10127 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10128
10129 * arm-tdep.c (arm_register_name): New function.
10130 (arm_registers_names): Make static.
10131 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10132 (arm_register_name): Declare.
10133 (REGISTER_NAME): Use it.
10134
10135 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10136 Kevin Buettner <kevinb@redhat.com>
10137
10138 Convert arm targets to new FRAME interface.
10139 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10140 (arm_frame_find_save_regs): Delete.
10141 (arm_frame_init_saved_regs): New.
10142 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10143 Allocate extra_info as required. Convert all uses of fsr.regs
10144 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10145 to use extra_info.
10146 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10147 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10148 (check_prologue_cache, save_prologue_cache): Likewise.
10149 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10150 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10151 (FRAME_FIND_SAVED_REGS): Delete.
10152 (arm_frame_find_saved_regs): Delete prototype.
10153 (arm_frame_init_saved_regs): New prototype.
10154 (FRAME_INIT_SAVED_REGS): Define.
10155
10156 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10157
10158 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10159
10160 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10161
10162 From Jeff Law <law@redhat.com>:
10163 * infttrace.c: Include <sys/pstat.h>.
10164 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10165 exec file if the ttrace equivalent fails.
10166
10167 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10168
10169 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10170 (closeLogFile): Ditto.
10171
10172 2002-01-20 Michael Chastain <mec@shout.net>
10173
10174 * top.c (print_gdb_version): Bump copyright year to 2002.
10175
10176 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10177
10178 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10179 Zannoni and Eli Zaretskii.
10180
10181 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10182
10183 * buildsym.c: Update copyright years.
10184 * c-typeprint.c: Likewise.
10185 * dwarf2read.c: Likewise.
10186 * f-typeprint.c: Likewise.
10187 * gdbtypes.c: Likewise.
10188 * gdbtypes.h: Likewise.
10189 * hp-symtab-read.c: Likewise.
10190 * hpread.c: Likewise.
10191 * mdebugread.c: Likewise.
10192 * p-typeprint.c: Likewise.
10193
10194 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10195
10196 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10197 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10198 byte-order selectable.
10199 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10200 * arch-utils.c: Ditto.
10201 (set_endian): Ditto.
10202 (set_endian_from_file): Ditto.
10203 * gdbserver/low-sim.c (create_inferior): Ditto.
10204 * gdbarch.sh: Ditto.
10205 * gdbarch.h: Re-generate.
10206 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10207 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10208 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10209 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10210 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10211 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10212 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10213 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10214 macro definition.
10215 * config/mips/tm-wince.h: Remove #undef of macro
10216 TARGET_BYTE_ORDER_SELECTABLE.
10217 * config/sh/tm-wince.h: Ditto.
10218
10219 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10220
10221 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10222 member function fields. Add accessor macro
10223 TYPE_FN_FIELD_ARTIFICIAL.
10224 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10225 * c-typeprint.c (c_type_print_base): Skip artificial member
10226 functions.
10227
10228 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10229
10230 * f-typeprint.c: Delete unused function f_type_print_args.
10231 * p-typeprint.c: Delete unused function pascal_type_print_args.
10232
10233 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10236 comment. Add ``artificial'' to ``union field_location''.
10237
10238 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10239
10240 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10241 * mdebugread.c (parse_symbol): Likewise.
10242 * stabsread.c (define_symbol): Likewise.
10243 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10244 initializing TYPE_FIELD_BITPOS to n (obsolete).
10245 (hpread_doc_function_type): Likewise.
10246 * hpread.c (hpread_function_type): Likewise.
10247
10248 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10249
10250 * configure.in (host_makefile_frag): Only require a host makefile
10251 fragment when a native build.
10252 * configure: Re-generate.
10253
10254 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10255
10256 * doublest.h (floatformat_from_type): Declare.
10257 * doublest.c (floatformat_from_type): New function.
10258 (convert_typed_floating): Use.
10259
10260 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10261 call to function floatformat_from_type.
10262
10263 * gdbarch.sh (IEEE_FLOAT): Delete.
10264 * gdbarch.h, gdbarch.c: Re-generate.
10265 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10266 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10267 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10268 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10269 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10270 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10271 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10272 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10273 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10274 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10275 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10276 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10277
10278 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10279 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10280 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10281 * sh-tdep.c (sh_gdbarch_init): Ditto.
10282 * mips-tdep.c (mips_gdbarch_init): Ditto.
10283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10284 * cris-tdep.c (cris_gdbarch_init): Ditto.
10285
10286 2002-01-20 Jiri Smid <smid@suse.cz>
10287
10288 * configure.host, configure.tgt: Support x86-64.
10289 * NEWS: Note new target x86-64.
10290
10291 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10292 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10293 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10294 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10295 x86-64-linux-nat.o): Fix dependencies.
10296
10297 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10298
10299 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10300 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10301 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10302 * config/sparc/xm-sun4os4.h: Delete file.
10303 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10304
10305 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10306
10307 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10308 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10309 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10310 * config/i386/i386lynx.mh (XM_FILE): Delete.
10311 * config/rs6000/xm-rs6000ly.h: Delete file.
10312 * config/sparc/xm-sparclynx.h: Delete file.
10313 * config/m68k/xm-m68klynx.h: Delete file.
10314 * config/i386/xm-i386lynx.h: Delete file.
10315 * config/xm-lynx.h: Delete file.
10316 * config/djgpp/fnchange.lst: Update.
10317
10318 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10319
10320 * alpha-tdep.c (alpha_register_byte): New function.
10321 (alpha_register_raw_size): Ditto.
10322 (alpha_register_virtual_size): Ditto.
10323 (alpha_skip_prologue_internal): Renamed from
10324 alpha_skip_prologue.
10325 (alpha_skip_prologue): New version that calls
10326 alpha_skip_prologue_internal.
10327 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10328 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10329 second argument from alpha_skip_prologue.
10330 (REGISTER_BYTE): Use alpha_register_byte.
10331 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10332 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10333 (FRAMELESS_FUNCTION_INVOCATION): Use
10334 generic_frameless_function_invocation_not.
10335 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10336 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10337
10338 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10339
10340 * config/mips/xm-news-mips.h: Delete file.
10341 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10342
10343 * config/m88k/xm-m88k.h: Delete file.
10344 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10345 * config/m88k/xm-delta88v4.h: Ditto.
10346 * config/m88k/xm-delta88.h: Ditto.
10347
10348 * config/alpha/xm-fbsd.h: Delete file.
10349 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10350
10351 * config/sparc/xm-sparc.h: Delete file.
10352 * Makefile.in (xm-sun4os4.h): Delete dependency.
10353 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10354 * config/sparc/xm-sun4os4.h: Ditto.
10355 * config/sparc/xm-linux.h: Ditto.
10356
10357 * config/i386/xm-windows.h: Delete file.
10358
10359 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10360
10361 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10362 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10363
10364 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10365
10366 * alpha-tdep.c (alpha_call_dummy_words): New.
10367 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10368 (CALL_DUMMY_P): Define.
10369 (CALL_DUMMY_WORDS): Define.
10370 (SIZEOF_CALL_DUMMY_WORDS): Define.
10371
10372 2002-01-19 Per Bothner <per@bothner.com>
10373
10374 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10375 isn't NULL, which can happen with some gcj-3.x-produced code.
10376
10377 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10378
10379 * alpha-tdep.c (alpha_register_virtual_type): New function.
10380 (alpha_init_frame_pc_first): Ditto.
10381 (alpha_fix_call_dummy): Ditto.
10382 (alpha_store_struct_return): Ditto.
10383 (alpha_extract_struct_value_address): Ditto.
10384 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10385 alpha_register_virtual_type.
10386 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10387 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10388 alpha_extract_struct_value_address.
10389 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10390 (INIT_FRAME_PC): Use init_frame_pc_noop.
10391 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10392
10393 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10394
10395 * i386gnu-nat.c: Include "i386-tdep.h".
10396 (fetch_fpregs): Simplify code dealing with uninitialized floating
10397 point states such that it doesn't require FP7_REGNUM.
10398
10399 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10400
10401 * alpha-tdep.c (frame_extra_info): New.
10402 (alpha_find_saved_regs): Make static. Use
10403 frame->extra_info.
10404 (alpha_frame_init_saved_regs): New function.
10405 (alpha_frame_saved_pc): Use frame->extra_info.
10406 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10407 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10408 (init_extra_frame_info): Rename to...
10409 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10410 (alpha_print_extra_frame_info): New function.
10411 (alpha_frame_locals_address): Ditto.
10412 (alpha_frame_args_address): Ditto.
10413 (alpha_pop_frame): Use frame->extra_info.
10414 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10415 alpha_frame_args_address.
10416 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10417 (alpha_find_saved_regs): Remove prototype.
10418 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10419 (EXTRA_FRAME_INFO): Remove.
10420 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10421 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10422
10423 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10424
10425 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10426 (alpha_cannot_fetch_register): Ditto.
10427 (alpha_cannot_store_register): Ditto.
10428 (alpha_register_convertible): Ditto.
10429 (alpha_use_struct_convention): Ditto.
10430 * config/alpha/tm-alpha.h: Update copyright years.
10431 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10432 (INNER_THAN): Use core_addr_lessthan.
10433 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10434 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10435 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10436 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10437 (FRAME_CHAIN): Remove unnecessary cast.
10438
10439 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10440
10441 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10442 obsolete.
10443
10444 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10445
10446 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10447 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10448 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10449 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10450 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10451 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10452 * x86-64-linux-nat.c: Ditto.
10453
10454 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10455
10456 * alpha-tdep.c (alpha_register_name): New function.
10457 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10458 (REGISTER_NAME): Define.
10459
10460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10461
10462 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10463
10464 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10465
10466 * alpha-tdep.c: Update copyright years.
10467 (alpha_next_pc): New function.
10468 (alpha_software_single_step): Ditto.
10469 * config/alpha/tm-alpha.h: Add prototype for
10470 alpha_software_single_step.
10471
10472 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10473
10474 * alphabsd-nat.c: Update copyright years.
10475 (fill_gregset): Use regcache_collect.
10476 (fill_fpregset): Likewise.
10477 (fetch_inferior_registers): Only fetch integer registers
10478 if requested to do so.
10479 (store_inferior_registers): Only store integer registers
10480 if requested to do so.
10481
10482 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10483
10484 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10485 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10486 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10487 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10488 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10489 * config/arm/linux.mh (XDEPFILES): Delete.
10490 * config/arm/nbsd.mh (XDEPFILES): Delete.
10491 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10492 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10493 * config/i386/i386m3.mh (XDEPFILES): Delete.
10494 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10495 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10496 * config/i386/fbsd.mh (XDEPFILES): Delete.
10497 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10498 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10499 * config/i386/i386v4.mh (XDEPFILES): Delete.
10500 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10501 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10502 * config/i386/i386aix.mh (XDEPFILES): Delete.
10503 * config/i386/go32.mh (XDEPFILES): Delete.
10504 * config/i386/cygwin.mh (XDEPFILES): Delete.
10505 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10506 * config/i386/i386mach.mh (XDEPFILES): Delete.
10507 * config/i386/i386v32.mh (XDEPFILES): Delete.
10508 * config/i386/linux.mh (XDEPFILES): Delete.
10509 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10510 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10511 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10512 * config/i386/i386sco.mh (XDEPFILES): Delete.
10513 * config/i386/i386v.mh (XDEPFILES): Delete.
10514 * config/i386/nbsd.mh (XDEPFILES): Delete.
10515 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10516 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10517 * config/i386/symmetry.mh (XDEPFILES): Delete.
10518 * config/i386/obsd.mh (XDEPFILES): Delete.
10519 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10520 * config/ia64/linux.mh (XDEPFILES): Delete.
10521 * config/ia64/aix.mh (XDEPFILES): Delete.
10522 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10523 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10524 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10525 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10526 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10527 * config/m68k/linux.mh (XDEPFILES): Delete.
10528 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10529 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10530 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10531 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10532 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10533 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10534 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10535 * config/m88k/delta88.mh (XDEPFILES): Delete.
10536 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10537 * config/m88k/m88k.mh (XDEPFILES): Delete.
10538 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10539 * config/mips/linux.mh (XDEPFILES): Delete.
10540 * config/mips/irix6.mh (XDEPFILES): Delete.
10541 * config/mips/irix5.mh (XDEPFILES): Delete.
10542 * config/mips/irix4.mh (XDEPFILES): Delete.
10543 * config/mips/irix3.mh (XDEPFILES): Delete.
10544 * config/mips/decstation.mh (XDEPFILES): Delete.
10545 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10546 (NATDEPFILES): Move core-aout.o to here.
10547 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10548 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10549 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10550 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10551 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10552 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10553 * config/pa/hpux11.mh (XDEPFILES): Delete.
10554 * config/powerpc/aix.mh (XDEPFILES): Delete.
10555 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10556 * config/powerpc/linux.mh (XDEPFILES): Delete.
10557 * config/romp/rtbsd.mh: Rename XDEPFILES.
10558 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10559 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10560 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10561 * config/s390/s390.mh (XDEPFILES): Delete.
10562 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10563 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10564 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10565 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10566 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10567 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10568 * config/sparc/linux.mh (XDEPFILES): Delete.
10569 * config/vax/vaxult.mh (XDEPFILES): Delete.
10570 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10571 * Makefile.in (DEPFILES): Remove XDEPFILES.
10572
10573 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10574
10575 * utils.c (internal_verror): Fix comments, default is yes not no.
10576 Update queries to match. Default to quit and dump core.
10577
10578 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10579
10580 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10581 copyright.
10582 * defs.h, event-top.c, gdbcmd.h: Ditto.
10583 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10584 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10585 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10586 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10587 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10588 * mi/mi-main.c:Ditto.
10589
10590 * stack.c, symfile.c: Update copyright.
10591
10592 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10593
10594 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10595 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10596 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10597 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10598
10599 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10600
10601 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10602 * gdbserver/low-lynx.c (myattach): Likewise.
10603 * gdbserver/low-nbsd.c (myattach): Likewise.
10604 * gdbserver/low-sim.c (myattach): Likewise.
10605 * gdbserver/low-sparc.c (myattach): Likewise.
10606 * gdbserver/low-sun3.c (myattach): Likewise.
10607
10608 * gdbserver/low-linux.c (myattach): New function.
10609
10610 * gdbserver/server.c (attach_inferior): New function.
10611 (main): Handle "--attach".
10612
10613 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10614
10615 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10616 maintainer.
10617
10618 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10619
10620 * c-typeprint.c (is_type_conversion_operator): Add additional
10621 check for non-conversion operators.
10622
10623 2002-01-15 Michael Snyder <msnyder@redhat.com>
10624
10625 * linux-proc.c: Add "info proc" command, a la procfs.c.
10626 (read_mapping): New function, abstract and re-use code.
10627 (linux_find_memory_regions): Use new func read_mapping.
10628 (linux_info_proc_cmd): New function, implement "info proc".
10629 (_initialize_linux_proc): Add new command "info proc".
10630
10631 2002-01-15 Michael Snyder <msnyder@redhat.com>
10632
10633 * symfile.c (generic_load): Use bfd_map_over_sections method
10634 instead of manipulating bfd structure members directly.
10635 (add_section_size_callback): New function, bfd sections callback
10636 used by generic_load.
10637 (load_sections_callback): New function, bfd sections callback
10638 used by generic_load.
10639
10640 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10641
10642 [Based on work by Jim Blandy]
10643 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10644 (builtin_type_vec128): Export.
10645 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10646 types.
10647 (builtin_type_vec128): New builtin type for 128 bit vector
10648 registers.
10649 (build_gdbtypes): Initialize builtin_type_v16qi and
10650 builtin_type_v8hi. Create the vec128 register builtin type
10651 structure.
10652 (build_builtin_type_vec128): New function.
10653 (_initialize_gdbtypes): Register builtin_type_v16qi and
10654 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10655 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10656 AltiVec register to new builtin type.
10657
10658 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10659
10660 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10661 to make_cv_type.
10662
10663 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10664
10665 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10666 CLEAN_UP_REGISTER_VALUE.
10667 * regcache.c (supply_register): Update only call.
10668
10669 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10670
10671 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10672 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10673 a29k-*-vxworks* targets as obsolete.
10674
10675 2002-01-14 Michael Snyder <msnyder@redhat.com>
10676
10677 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10678 until we can resolve portability issues.
10679 * gregset.h: Remove references to fpxregs.
10680 * gcore.c (gcore_command): Initialize note_sec to NULL.
10681
10682 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10683
10684 * signals.c (target_signal_to_name): Rewrite. Only use
10685 signals[].name when in bounds and non-NULL.
10686
10687 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10688
10689 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10690 * signals.c (target_signal_to_name): Verify that SIG is within the
10691 bounds of the signals array.
10692
10693 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10694
10695 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10696
10697 2002-01-13 Keith Seitz <keiths@redhat.com>
10698
10699 * stack.c (print_frame_info_base): Print the frame's pc
10700 only if when print_frame_info_listing_hook is not defined.
10701
10702 2002-01-13 Keith Seitz <keiths@redhat.com>
10703
10704 * varobj.c (varobj_set_value): Make sure that there were no
10705 errors evaluating the object before attempting to set its
10706 value.
10707 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10708 so this offset adjustment is no longer necessary.
10709 (create_child): Don't set the error flag if the child is
10710 a CPLUS_FAKE_CHILD.
10711 (value_of_child): If value_fetch_lazy fails, return NULL
10712 so that callers will be notified that an error occurred.
10713 (c_value_of_variable): Delay check of variable's validity
10714 until later. We actually want all structs and unions to have
10715 the value "{...}".
10716 Do not return "???" for variables which could not be evaluated.
10717 This error condition must be returned to the caller so that it
10718 can get the error condition from gdb.
10719 (cplus_name_of_child): Adjust index for vptr before figuring
10720 out the name of the child.
10721 (cplus_value_of_child): If a child's (real) parent is not valid,
10722 don't even bother trying to give a value for it. Just return
10723 an error. Change all instances in this function.
10724 (cplus_type_of_child): If our parent is one of the "fake"
10725 parents, we need to get at the type of the real parent, and
10726 derive the child's true type using this information.
10727
10728 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10729
10730 From 2002-01-09 John Marshall <johnm@falch.net>:
10731 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10732 sources.redhat.com, and tweak some related URLs which had
10733 suffered from linkrot.
10734
10735 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10736
10737 From Jeff law:
10738 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10739 structures passed in registers.
10740
10741 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10742
10743 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10744 white space which prevented compilation. Reported by DSK
10745 <dsk@student.unsw.edu.au>.
10746
10747 2002-01-11 Michael Snyder <msnyder@redhat.com>
10748
10749 * symfile.c (build_section_addr_info_from_section_tab):
10750 Use bfd access method instead of manipulating bfd directly.
10751 (syms_from_objfile): Ditto.
10752 (simple_overlay_update_1): Ditto.
10753 (simple_overlay_update): Ditto.
10754 (generic_load): Ditto.
10755 (overlay_unmapped_address): FIXME comment, bfd access methods.
10756 (sections_overlap): FIXME comment, bfd access methods.
10757 (pc_in_mapped_range): FIXME comment, bfd access methods.
10758 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10759 (section_is_mapped): FIXME comment, bfd access methods.
10760 (section_is_overlay): FIXME comment, bfd access methods.
10761
10762 * symfile.c (generic_load): Whitespace and long line cleanups.
10763 Remove duplicate variable, change several local variables to
10764 more appropriate data types.
10765 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10766
10767 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10768
10769 From Peter Schauer:
10770 * language.c (longest_local_hex_string_custom): Use phex_nz to
10771 convert NUM to a hex string.
10772
10773 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10774
10775 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10776 the function.
10777 Update Copyright year.
10778
10779 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10780
10781 * language.c (longest_raw_hex_string): Delete unused function.
10782
10783 2002-01-11 Petr Sorfa <petrs@caldera.com>
10784
10785 * MAINTAINERS (write-after-approval): Add myself.
10786 * dwarf2read.c (read_tag_string_type): Handling of
10787 DW_AT_byte_size.
10788 (read_tag_string_type): FORTRAN fix to prevent propagation of
10789 first string size.
10790 (set_cu_language): Handling of DW_LANG_Fortran95
10791
10792 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10793
10794 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10795 GETPID(inferior_ptid).
10796 (store_inferior_registers): Likewise.
10797
10798 2002-01-10 Jason Merrill <jason@redhat.com>
10799
10800 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10801 Fix DW_OP_minus.
10802
10803 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10804
10805 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10806 and bfd/elf32-sh-nbsd.c.
10807
10808 2002-01-10 Michael Snyder <msnyder@redhat.com>
10809
10810 * NEWS: Mention --pid and corefile/proc-id behavior change.
10811
10812 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10813 * gcore.c: Include cli/cli-decode.h instead of command.h.
10814
10815 * main.c (captured_main): Add new command line option "--pid".
10816 If the second command line argument (following the symbol-file)
10817 begins with a digit, try to attach to it before trying to open
10818 it as a corefile.
10819 (print_gdb_help): Document the "--pid" argument.
10820
10821 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10822
10823 * completer.c (command_completer): New function.
10824
10825 * completer.h <command_completer>: Add prototype.
10826
10827 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10828 completer for the "help" command.
10829
10830 2002-01-09 Jason Merrill <jason@redhat.com>
10831
10832 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10833
10834 2002-01-09 Michael Snyder <msnyder@redhat.com>
10835
10836 * i386-linux-nat.c (fill_fpxregset): Make global.
10837 (store_fpxregset): Ditto.
10838
10839 * gregset.h (gdb_fpxregset_t): Define.
10840 (supply_fpxregset): Prototype.
10841 (fill_fpxregset): Prototype.
10842
10843 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10844
10845 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10846
10847 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10848 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10849 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10850
10851 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10852
10853 * MAINTAINERS: Update target maintainer rules so that any
10854 Maintainer can approve a tested patch for a maintenance-only
10855 target.
10856
10857 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10858
10859 * MAINTAINERS (write-after-approval): Add myself.
10860
10861 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10862 IN_SIGTRAMP.
10863
10864 2002-01-08 Michael Snyder <msnyder@redhat.com>
10865
10866 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10867 real name of the executable, rather than the /proc name.
10868
10869 2002-01-03 Michael Snyder <msnyder@redhat.com>
10870
10871 Implement a "generate-core-file" command in gdb, save target state.
10872 * gcore.c: New file. Implement new command 'generate-core-file'.
10873 Save a corefile image of the current state of the inferior.
10874 * linux-proc.c: Add linux-specific code for saving corefiles.
10875 * target.h (struct target_ops): Add new target vectors for saving
10876 corefiles; to_find_memory_regions and to_make_corefile_notes.
10877 (target_find_memory_regions): New macro.
10878 (target_make_corefile_notes): New macro.
10879 * target.c (update_current_target): Inherit new target methods.
10880 (dummy_find_memory_regions): New place-holder method.
10881 (dummy_make_corefile_notes): New place-holder method.
10882 (init_dummy_target): Initialize new dummy target vectors.
10883 * exec.c (exec_set_find_memory_regions): New function.
10884 Allow the exec_ops vector for memory regions to be taken over.
10885 (exec_make_note_section): New function, target vector method.
10886 * defs.h (exec_set_find_memory_regions): Export prototype.
10887 * procfs.c (proc_find_memory_regions): New function, corefile method.
10888 (procfs_make_note_section): New function, corefile method.
10889 (init_procfs_ops): Set new target vector pointers.
10890 (find_memory_regions_callback): New function.
10891 (procfs_do_thread_registers): New function.
10892 (procfs_corefile_thread_callback): New function.
10893 * sol-thread.c (sol_find_memory_regions): New function.
10894 (sol_make_note_section): New function.
10895 (init_sol_thread_ops): Initialize new target vectors.
10896 * inftarg.c (inftarg_set_find_memory_regions): New function.
10897 Allow to_find_memory_regions vector to be taken over.
10898 (inftarg_set_make_corefile_notes): New function.
10899 Allow to_make_corefile_notes vector to be taken over.
10900 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10901 interface layer if not target_has_execution (may be a corefile).
10902 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10903 * config/sparc/sun4sol2.mh: Ditto.
10904 * config/alpha/alpha-linux.mh: Ditto.
10905 * config/arm/linux.mh: Ditto.
10906 * config/i386/x86-64linux.mh: Ditto.
10907 * config/ia64/linux.mh: Ditto.
10908 * config/m68k/linux.mh: Ditto.
10909 * config/mips/linux.mh: Ditto.
10910 * config/powerpc/linux.mh: Ditto.
10911 * config/sparc/linux.mh: Ditto.
10912
10913 2002-01-07 Michael Snyder <msnyder@redhat.com>
10914
10915 * arm-linux-nat.c: Remove references to regcache.c internal data
10916 (registers[] and register_valid[]).
10917
10918 2002-01-07 Michael Snyder <msnyder@redhat.com>
10919
10920 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10921 so that attaching to a pid will automatically read the process's
10922 symbol file and shlibs.
10923 * Makefile.in: Add rule for linux-proc.o.
10924 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10925 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10926 * config/arm/linux.mh: Ditto.
10927 * config/i386/linux.mh: Ditto.
10928 * config/i386/x86-64linux.mh: Ditto.
10929 * config/ia64/linux.mh: Ditto.
10930 * config/m68k/linux.mh: Ditto.
10931 * config/mips/linux.mh: Ditto.
10932 * config/powerpc/linux.mh: Ditto.
10933 * config/sparc/linux.mh: Ditto.
10934
10935 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10936
10937 * win32-nat.c: Add i386-tdep.h dependency.
10938
10939 2002-01-07 Michael Snyder <msnyder@redhat.com>
10940
10941 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10942 instead of bfd_get_arch_size. Don't bail out just because
10943 there's no exec_bfd.
10944
10945 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10946 * p-valprint.c (pascal_object_print_value): Ditto.
10947 * somread.c (som_symtab_read): Ditto.
10948 * symfile.c (simple_free_overlay_region_table): Ditto.
10949 * valops.c (value_assign): Ditto.
10950
10951 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10952 use tilde_expand and strerror for opening save-tracepoints file.
10953
10954 * thread-db.c (thread_db_new_objfile): Indendation fix.
10955
10956 * infptrace.c (GDB_MAX_ALLOCA): New define.
10957 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10958 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10959 can be overridden with whatever value is appropriate to the host).
10960 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10961 alloca to allocate potentially large buffer.
10962 * rs6000-nat.c (child_xfer_memory): Ditto.
10963 * symm-nat.c (child_xfer_memory): Ditto.
10964 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10965
10966 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10967
10968 From Nick Clifton <nickc@redhat.com>
10969 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10970
10971 2002-01-07 Michael Snyder <msnyder@redhat.com>
10972
10973 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10974 Don't use exec_bfd if it's NULL.
10975
10976 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10977
10978 * valops.c (value_arg_coerce): Fix formatting.
10979
10980 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10981
10982 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10983 * gnu-nat.c: Ditto.
10984
10985 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10986
10987 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10988 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10989 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10990 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10991 z8k-coff have not been multi-arched. Update z8k-coff build
10992 status.
10993
10994 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10995
10996 * MAINTAINERS: Mark a29k target as obsolete.
10997 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10998 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10999 comments.
11000 * NEWS: Note that a29k targets are obsolete.
11001 * a29k-tdep.c: Mark as obsolete.
11002 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11003 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11004 a29k-*-vxworks* targets as obsolete.
11005 * remote-adapt.c: Obsolete.
11006 * remote-eb.c: Obsolete.
11007 * remote-mm.c: Obsolete.
11008 * remote-udi.c: Obsolete.
11009 * config/a29k/a29k-udi.mt: Obsolete.
11010 * config/a29k/a29k.mt: Obsolete.
11011 * config/a29k/tm-a29k.h: Obsolete.
11012 * config/a29k/tm-vx29k.h: Obsolete.
11013 * config/a29k/vx29k.mt: Obsolete.
11014
11015 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11016
11017 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11018 with BFD_ENDIAN_BIG.
11019
11020 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11021
11022 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11023 * configure, config.in: Re-generate.
11024 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11025 * defs.h: Do not include <endian.h>.
11026
11027 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11028
11029 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11030 * config.in: Regenerate.
11031 * configure.in: Update copyright years.
11032 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11033 * configure: Regenerate.
11034 * i386bsd-nat.c: Update copyright years.
11035 (fill_gregset): Use regcache_collect.
11036 (fetch_inferior_registers): Only fetch integer registers
11037 if requested to do so. Add support for XMM registers
11038 using PT_GETXMMREGS.
11039 (store_inferior_registers): Only store integer registers
11040 if requested to do so. Add support for XMM registers
11041 using PT_SETXMMREGS.
11042 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11043 (store_inferior_registers): Remove.
11044 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11045 (fetch_elfcore_registers): New function.
11046 (i386nbsd_elfcore_fns): New.
11047 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11048 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11049 i386bsd-nat.o.
11050 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11051 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11052 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11053 * config/i386/tm-nbsd.h: Update copyright years.
11054 (HAVE_SSE_REGS): Define.
11055 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11056 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11057 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11058 (SIGCONTEXT_PC_OFFSET): Remove.
11059 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11060
11061 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11062
11063 * configure.tgt: Remove powerpc-*-macos* target.
11064 * config/m68k/xm-mpw.h: Delete file.
11065 * config/xm-mpw.h: Delete file.
11066 * ser-mac.c: Delete file.
11067 * mpw-make.sed: Delete file.
11068 * mpw-config.in: Delete file.
11069 * mac-xdep.c: Delete file.
11070 * mac-gdb.r: Delete file.
11071 * mac-defs.h: Delete file.
11072 * mac-nat.c: Delete file.
11073 * config/powerpc/macos.mh: Delete file.
11074 * config/powerpc/macos.mt: Delete file.
11075 * config/powerpc/nm-macos.h: Delete file.
11076 * config/powerpc/tm-macos.h: Delete file.
11077 * source.c (openp, open_source_file): Remove obsolete code.
11078 * top.c (gdb_readline): Ditto.
11079 * utils.c (query): Ditto.
11080 * event-top.c (display_gdb_prompt): Ditto.
11081 * Makefile.in (ser-mac.o): Delete obsolete target.
11082 * NEWS: Update.
11083
11084 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11085
11086 * defs.h (BIG_ENDIAN): Delete macro definition.
11087 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11088 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11089 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11090 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11091 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11092 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11093 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11094 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11095 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11096 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11097 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11098 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11099 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11100 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11101 * gdbarch.c: Re-generate.
11102
11103 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11106 for core files.
11107
11108 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11109
11110 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11111
11112 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11113
11114 * value.h (value_ptr): Delete typedef.
11115
11116 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11117
11118 * i386nbsd-nat.c: Update copyright years.
11119 Include i386-tdep.h.
11120
11121 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11122
11123 * stabsread.c: Update copyright years.
11124
11125 From Debashis Mahata <debashis.mahata@wipro.com>:
11126 (read_struct_fields): Deal with Sun C compiler erroneous stab
11127 output for structs and unions.
11128 Fix PR gdb/269.
11129
11130 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11131
11132 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11133 prototype.
11134
11135 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11136
11137 * cp-abi.c: Fix whitespace.
11138 (baseclass_offset): New wrapper function.
11139 * cp-abi.h (baseclass_offset): Add prototype.
11140 (struct cp_abi_ops): Add baseclass_offset pointer.
11141
11142 * valops.c (vb_match): Move to...
11143 * gnu-v2-abi.c (vb_match): here.
11144 * valops.c (baseclass_offset): Move to...
11145 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11146
11147 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11148
11149 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11150 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11151 * hpacc-abi.c (init_hpacc_ops): Likewise.
11152
11153 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11154
11155 * valops.c (find_overload_match): Accept obj as a
11156 reference parameter. Update it before returning.
11157 * value.h (find_overload_match): Update prototype.
11158 * eval.c (evaluate_subexp_standard): Pass object to
11159 find_overload_match by reference.
11160
11161 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11162
11163 * valarith.c: Replace value_ptr with struct value pointer. Remove
11164 register attribute from value declarations.
11165 * valops.c: Ditto.
11166 * value.h: Ditto.
11167 * scm-lang.c (scm_lookup_name): Ditto.
11168
11169 2002-01-03 Michael Snyder <msnyder@redhat.com>
11170
11171 Abstract the functionality of iterating over mapped memory
11172 regions into a general purpose iterator function.
11173 * procfs.c (iterate_over_mappings): New function, general purpose
11174 iterator for memory sections.
11175 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11176 (solib_mappings_callback): New function, callback for above.
11177 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11178 (info_mappings_callback): New function, callback for above.
11179
11180 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11181
11182 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11183
11184 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11185 * i386-tdep.c: Include "elf-bfd.h".
11186 (process_note_abi_tag_sections): New function.
11187 (i386_gdbarch_init): Add code to recognize various OS/ABI
11188 combinations.
11189
11190 * maint.c (_initialize_maint_cmds): Add missing \ in
11191 string-literal.
11192
11193 For older changes see ChangeLog-2001
11194 \f
11195 Local Variables:
11196 mode: change-log
11197 left-margin: 8
11198 fill-column: 74
11199 version-control: never
11200 End:
This page took 0.248878 seconds and 5 git commands to generate.