* gdb_mbuild.sh: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2
3 * gdb_mbuild.sh: New file.
4
5 2002-09-19 Andrew Cagney <ac131313@redhat.com>
6
7 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
8
9 2002-09-18 Andrew Cagney <ac131313@redhat.com>
10
11 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
12 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
13 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
14 valops.c, value.h: Revert previous change.
15
16 2002-09-18 Michael Snyder <msnyder@redhat.com>
17
18 Preliminary support for Objective-C:
19 * defs.h (language_objc): New enum value.
20 (puts_filtered_tabular): Declaration only, exported from utils.c.
21 (skip_quoted): Delete, declared in completer.h.
22 * c-exp.y: Include completer.h.
23 * p-exp.y: Ditto.
24 * jv-exp.y: Ditto.
25 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
26 New operator enum values.
27 * language.h (CAST_IS_CONVERSION): Test for language_objc.
28 * language.c (binop_result_type): Handle language_objc case.
29 (integral_type, character_type, string_type, boolean_type,
30 structured_type, binop_type_check): Ditto.
31 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
32 (struct objc_specific): Add to general_symbol_info.
33 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
34 (SYMBOL_DEMANGLED_NAME): Handle objc case.
35 * parser-defs.h (struct objc_class_str): New struct type.
36 (start_msglist, end_msglist, add_msglist): Declaration only,
37 exported from objc-lang.c.
38 * value.h (value_of_local, value_nsstring,
39 call_function_by_hand_expecting_type): Exported from valops.c.
40 * valops.c (find_function_addr): Export.
41 (call_function_by_hand_expecting_type): New function.
42 (value_of_local): New function.
43 * symfile.c (init_filename_language_table): Add ".m" extension
44 for Objective-C.
45 * utils.c (puts_filtered_tabular): New function.
46 (fprintf_symbol_filtered): Add objc demangling support (disabled).
47 (set/show demangle): Extend help-string to refer to ObjC.
48 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
49 * stabsread.c (symbol_reference_defined): Objective-C symbols
50 may contain colons: make allowances when scanning stabs strings
51 for colons.
52 (objc_find_colon): New function.
53 * printcmd.c (address_info): If language == objc then print
54 "self" instead of "this".
55 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
56 OP_NSSTRING, and OP_SELF.
57 (prefixify_subexp): Ditto.
58 * source.c (print_source_lines): Mention objc in comment.
59 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
60 method names.
61
62 2002-09-18 Andrew Cagney <ac131313@redhat.com>
63
64 * complaints.h: Update copyright.
65 (struct complaints): Declare.
66 (struct complaint): Make `message' constant.
67 (internal_complaint): Declare.
68 (complaint): Declare.
69 (complaint_root): Delete declaration.
70 (symfile_complaints): Delete declaration.
71 (struct complaints): Add opaque declaration.
72 (clear_complaints): Add a complaints parameter.
73 * complaints.c: Update copyright.
74 (enum complaint_series): Define.
75 (complaint_root): Delete.
76 (struct complaints): Define.
77 (complaint_sentinel, symfile_complaint_book): New variables.
78 (symfile_explanations, symfile_complaints): New variables.
79 New variables.
80 (get_complaints): New function.
81 (vcomplaint): New function.
82 (complaint): New function.
83 (internal_complaint): New function.
84 (complain): Call vcomplain with symfile_complaint.
85 (clear_complaints): Rewrite.
86 (_initialize_complaints): Use add_setshow_command.
87 * Makefile.in (complaints.o): Update dependencies.
88 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
89 to call to clear_complaints.
90 (new_symfile_objfile, reread_symbols): Ditto.
91 (oldsyms_complaint): Delete.
92 (empty_symtab_complaint, unknown_option_complaint): Delete.
93 (free_named_symtabs): Use complaint instead of complain.
94
95 2002-09-18 Michael Snyder <msnyder@redhat.com>
96
97 Contributed by Apple Computer, Inc. Merged with current sources
98 by Adam Fedor <fedor@doc.com> [cagney].
99
100 * objc-lang.c: First clean-up round: comments, indentation.
101 * objc-lang.h: Ditto.
102 * objc-lang.y: Ditto.
103
104 2002-09-18 Andrew Cagney <ac131313@redhat.com>
105
106 * maint.c (maintenance_internal_error): Print the parameter as the
107 error message.
108 (maintenance_internal_warning): New function.
109 (_initialize_maint_cmds): Add command `maint internal-warning'.
110
111 * defs.h (internal_warning, internal_vwarning): Declare.
112 * utils.c (struct internal_problem): Define.
113 (internal_vproblem): New function.
114 (internal_warning): New function.
115 (internal_vwarning): New function.
116 (internal_warning_problem, internal_error_problem): New variables.
117 (internal_verror): Just call internal_vproblem.
118
119 2002-09-18 Michael Snyder <msnyder@redhat.com>
120
121 * objc-lang.c: New file, support for Objective-C.
122 Preliminary check-in, not yet integrated into gdb.
123 * objc-lang.h: New file.
124 * objc-exp.y: New file.
125
126 2002-09-18 Andrew Cagney <ac131313@redhat.com>
127
128 * infrun.c (signal_stop_update): Convert definition to ISO C.
129 (signal_print_update): Ditto.
130 (signal_pass_update): Ditto.
131 * inflow.c (terminal_save_ours): Ditto.
132
133 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
134 comments.
135
136 * config/djgpp/fnchange.lst: Handle name clashes between
137 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
138 bfd/coff-tic80.c.
139
140 * i386-linux-tdep.h: Fix tipo.
141
142 2002-09-18 Adam Fedor <fedor@gnu.org>
143
144 * MAINTAINERS: Add myself to the Write After Approval list.
145
146 2002-09-18 Jim Blandy <jimb@redhat.com>
147
148 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
149 texthigh and textlow to reader-specific structs caused
150 objfile_relocate to miss them. This is fixable, but the work that
151 the change was supposed to prepare GDB for never got done anyway.
152
153 2002-09-18 David Carlton <carlton@math.stanford.edu>
154
155 * MAINTAINERS: Alphabetize Write After Approval list.
156
157 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
158
159 Fix PR gdb/709
160 * values.c (value_static_field): Call read_var_value.
161
162 2002-09-18 Andrew Cagney <ac131313@redhat.com>
163
164 * valops.c (hand_function_call): Align the initial stack pointer
165 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
166 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
167 return value.
168 * mips-tdep.c (mips_frame_align): New function.
169 (mips_gdbarch_init): Set frame_align.
170 * gdbarch.sh (FRAME_ALIGN): New method.
171 * gdbarch.h, gdbarch.c: Re-generate.
172
173 2002-09-18 Michal Ludvig <mludvig@suse.cz>
174
175 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
176 registers.
177
178 2002-09-17 Andrew Cagney <ac131313@redhat.com>
179
180 * NEWS: Mention that MIPS $fp behavior changed.
181 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
182 reference to FP_REGNUM.
183 (mipsnbsd_cannot_store_register): Ditto.
184 * mips-linux-nat.c: Update copyright.
185 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
186 (mips_linux_cannot_store_register): Ditto.
187 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
188 * config/mips/tm-mips.h: Update copyright.
189 (FP_REGNUM): Delete macro.
190 (MIPS_REGISTER_NAMES): Replace "fp" with "".
191 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
192 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
193 (mips_r3041_reg_names, mips_r3051_reg_names)
194 (mips_r3081_reg_names): Replace "fp" with "".
195 Fix PR gdb/480.
196
197 2002-09-17 Theodore A. Roth <troth@verinet.com>
198
199 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
200 generic_read_register_dummy() (PR gdb/703).
201 (avr_push_return_address): #if 0 out unused vars.
202 (avr_gdbarch_init): Enable use of avr_push_return_address().
203
204 2002-09-17 Michael Snyder <msnyder@redhat.com>
205
206 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
207 RTE will take care of it.
208
209 2002-09-17 Andrew Cagney <ac131313@redhat.com>
210
211 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
212 invalid, return SP_REGNUM.
213
214 2002-09-17 Michael Snyder <msnyder@redhat.com>
215
216 * mips-tdep.c (mips_pop_frame): Read saved values of floating
217 point registers without sign extension.
218
219 2002-09-17 Andrew Cagney <cagney@redhat.com>
220
221 * blockframe.c (deprecated_read_register_dummy): Rename
222 generic_read_register_dummy.
223 * frame.c (frame_unwind_signed_register): New function.
224 (frame_unwind_unsigned_register): New function.
225 * frame.h (frame_unwind_signed_register): Declare.
226 (frame_unwind_unsigned_register): Declare.
227 (deprecated_read_register_dummy): Rename
228 generic_read_register_dummy.
229
230 * h8300-tdep.c (h8300_frame_chain): Update.
231 (h8300_frame_saved_pc): Update.
232 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
233 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
234 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
235 (s390_frame_chain): Update.
236 * v850-tdep.c (v850_find_callers_reg): Update.
237 (v850_frame_saved_pc): Update.
238 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
239 (m32r_find_callers_reg): Update.
240 (m32r_frame_saved_pc): Update.
241 * sh-tdep.c (sh_find_callers_reg): Update.
242 (sh64_get_saved_pr): Update.
243 (sh_init_extra_frame_info): Update.
244 (sh_init_extra_frame_info): Update.
245 (sh64_init_extra_frame_info): Update.
246 (sh64_init_extra_frame_info): Update.
247 * mcore-tdep.c (mcore_find_callers_reg): Update.
248 (mcore_frame_saved_pc): Update.
249 (mcore_init_extra_frame_info): Update.
250 * i386-tdep.c (i386_frame_saved_pc): Update.
251 * ia64-tdep.c (ia64_frame_saved_pc): Update.
252 (ia64_init_extra_frame_info): Update.
253 (ia64_init_extra_frame_info): Update.
254 * d10v-tdep.c (d10v_frame_saved_pc): Update.
255 * cris-tdep.c (cris_init_extra_frame_info): Update.
256 * avr-tdep.c (avr_frame_chain): Update.
257 (avr_init_extra_frame_info): Update.
258 (avr_frame_saved_pc): Update.
259 * arm-tdep.c (arm_find_callers_reg): Update.
260 (arm_init_extra_frame_info): Update.
261 (arm_frame_saved_pc): Update.
262
263 2002-09-17 Tom Tromey <tromey@redhat.com>
264
265 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
266 is "'".
267
268 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
269
270 * MAINTAINERS: Remove "non multi-arched" text from h8300.
271 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
272 NEXT_PROLOGUE_INSN.
273 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
274 NEXT_PROLOGUE_INSN.
275
276 2002-09-16 Joel Brobecker <brobecker@gnat.com>
277
278 * osfsolib.c: Remove file, replaced by solib-osf.c.
279 * Makefile.in: Remove compilation rules for osfsolib.c.
280
281 2002-09-16 David Carlton <carlton@math.stanford.edu>
282
283 * cp-valprint.c (cp_print_class_method): Correct args to
284 check_stub_method_group.
285
286 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
287
288 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
289 `set architecture'. Unify naming convention of functions.
290 (h8300_skip_prologue): Improve prologue analysis.
291 (h8300_push_arguments): Rewritten to more closely match GCC's
292 bizarre argument-passing behavior, along with the comment describing
293 said behavior.
294 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
295 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
296 sim, remote-e7000.c, remote-hms.c and remote.c
297
298 2002-09-15 Mark Kettenis <kettenis@gnu.org>
299
300 * i386-tdep.c (gdb_print_insn_i386): Removed.
301 (i386_print_insn): New function.
302 (i386_gdbarch_init): Set print_insn to i386_print_insns.
303 (_initialize_i386_tdep): Don't initialize tm_print_insn and
304 tm_print_insn_info.
305
306 2002-09-14 Mark Kettenis <kettenis@gnu.org>
307
308 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
309 zero.
310
311 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
312
313 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
314 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
315 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
316
317 2002-09-13 Christopher Faylor <cgf@redhat.com>
318
319 * win32-nat.c (child_create_inferior): Honor 'tty' command.
320
321 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
322
323 * gdbtypes.c (check_stub_method): Make static.
324 (check_stub_method_group): New function.
325 * gdbtypes.h: Update prototypes.
326 * cp-support.c: New file.
327 * cp-support.h: New file.
328
329 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
330 (update_method_name_from_physname): New function.
331 (read_member_functions): Correct method names for operators
332 and v3 constructors/destructors. Separate v2 constructors and
333 destructors.
334 * Makefile.in (stabsread.o): Update dependencies.
335 (SFILES): Add cp-support.c.
336 (COMMON_OBS): Add cp-support.o.
337 (cp_support_h, cp-support.o): Add.
338
339 * cp-valprint.c (cp_print_class_method): Call
340 check_stub_method_group instead of check_stub_method. Remove
341 extraneous QUITs.
342 * p-valprint.c (pascal_object_print_class_method): Likewise.
343 * valops.c (search_struct_method): Likewise.
344 (find_method_list, value_struct_elt_for_reference): Likewise.
345
346 2002-09-13 Andrew Cagney <cagney@redhat.com>
347
348 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
349 * gdbarch.h, gdbarch.c: Regenerate.
350
351 2002-09-13 Andrew Cagney <ac131313@redhat.com>
352
353 * frame.c (find_saved_register): Delete function.
354 * frame.h (find_saved_register): Delete declaration.
355 Fix PR gdb/631.
356
357 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
358
359 * mips-tdep.c (read_next_frame_reg): Re-hack using
360 frame_register_unwind.
361
362 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
363
364 * mips-tdep.c (mips_get_saved_register): Re-hack using
365 frame_register_unwind.
366
367 2002-09-12 Joel Brobecker <brobecker@gnat.com>
368
369 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
370 vector. Will be useful for Interix.
371 * gdbarch.h, gdbarch.c: Regenerate.
372
373 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
374 name of the malloc function by NAME_OF_MALLOC.
375
376 2002-09-12 Joel Brobecker <brobecker@gnat.com>
377
378 * value.h (find_function_in_inferior): Add const keyword to
379 one of the parameters. Allows us to invoke this function with
380 a const char *.
381 * valops.c (find_function_in_inferior): Likewise.
382
383 2002-09-12 Joel Brobecker <brobecker@gnat.com>
384
385 * exec.c (xfer_memory): Fix compilation warning with old versions
386 of GCC.
387 * tracepoint.c (trace_find_tracepoint_command): Likewise.
388
389 2002-09-12 David Carlton <carlton@math.stanford.edu>
390
391 * symtab.h: Run through gdb_indent.h.
392 Add 2002 to Copyright year list.
393
394 2002-09-12 Alan Modra <amodra@bigpond.net.au>
395
396 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
397 mach constants.
398 * MAINTAINERS: Add myself to write after approval list.
399
400 2002-09-11 J. Brobecker <brobecker@gnat.com>
401
402 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
403
404 2002-09-11 J. Brobecker <brobecker@gnat.com>
405
406 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
407 Interix.
408
409 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
410
411 * procfs.c (do_detach): Clear current signal, not just fault.
412 Corrects problem with breakpoint trap signal leaking to detached
413 process on Tru64.
414
415 2002-09-10 Michael Snyder <msnyder@redhat.com>
416
417 * buildsym.c (finish_block): Protect against null pointer.
418
419 2002-09-10 Andrew Cagney <cagney@redhat.com>
420
421 * infcmd.c (default_print_registers_info): Send all output to
422 ``file'' instead of ``gdb_stdout''.
423
424 2002-09-10 Michael Snyder <msnyder@redhat.com>
425
426 * mips-tdep.c (mips_extract_struct_value_address): Make val a
427 LONGEST, and use signed register read (addresses are sign-
428 extended for mips).
429
430 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
431
432 * event-loop.c (gdb_do_one_event): Make public.
433 * event-loop.h (gdb_do_one_event): Declare.
434
435 2002-09-10 Jeff Law <law@redhat.com>
436
437 * infttrace.c (child_resume): Simplify and rework to avoid
438 TT_PROC_CONTINUE.
439
440 2002-09-09 Fred Fish <fnf@intrinsity.com>
441
442 * printcmd.c (print_scalar_formatted): "len" is the number of
443 target bytes, NOT the number of target bits.
444
445 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
446
447 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
448 * top.c (init_main): Set rl_terminal_name.
449
450 2002-09-08 Aidan Skinner <aidan@velvet.net>
451
452 * ada-lang.c (ada_array_bound, ada_type_match,
453 _initialize_ada_language): Fix K&R definitions.
454 * ada-tasks.c (get_current_task): Fix K&R definitions.
455 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
456
457 2002-09-07 Christopher Faylor <cgf@redhat.com>
458
459 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
460 Add XP.
461
462 2002-09-06 Mark Kettenis <kettenis@gnu.org>
463
464 * i386-tdep.c (i386_register_virtual_type,
465 i386_register_convertible, i386_register_convert_to_virtual,
466 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
467 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
468 (i386_gdbarch_init): Fix comment. Add comments on calls that set
469 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
470 Don't set push_arguments twice.
471
472 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
473 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
474 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
475 sigtramp_end to NULL.
476 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
477 defines.
478 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
479
480 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
481 whitespace.
482
483 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
484 * gdbarch.h, gdbarch.c: Re-generate.
485 * blockframe.c (find_pc_sect_partial_function): Convert to use
486 SIGTRAMP_START_P predicate.
487
488 2002-09-05 Michael Snyder <msnyder@redhat.com>
489
490 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
491 generic_dummy_frame method and old method. Also distinguish
492 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
493 (arm_extract_return_value): Use new regcache method.
494
495 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
496 adjustment that doesn't conform to the ABI.
497 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
498 saved regcache, not from current regcache.
499
500 2002-09-05 Andrew Cagney <ac131313@redhat.com>
501
502 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
503 * README: Update.
504
505 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
506
507 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
508 if arm_apcs_32 is false.
509
510 2002-09-04 Andrew Cagney <ac131313@redhat.com>
511
512 GDB 5.3 branch created.
513
514 2002-09-03 Theodore A. Roth <troth@verinet.com>
515
516 * gdb/avr-tdep.c (avr_gdbarch_init): Use
517 generic_unwind_get_saved_register.
518
519 2002-09-03 David Carlton <carlton@math.stanford.edu>
520
521 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
522 argument (PR gdb/653). Update call to smash_to_method_type.
523 (read_structure_scope): Update call to dwarf2_add_member_fn.
524
525 2002-09-03 Michal Ludvig <mludvig@suse.cz>
526
527 * x86-64-linux-tdep.c: Include gdb_string.h
528 * x86-64-linux-nat.c: Ditto.
529
530 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
531
532 * ada-exp.y (yyname, yyrule): Remap global variables that appear
533 when YYDEBUG is set to 1.
534 * c-exp.y: Likewise.
535 * f-exp.y: Likewise.
536 * jv-exp.y: Likewise.
537 * m2-exp.y: Likewise.
538 * p-exp.y: Likewise.
539
540 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
541
542 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
543 dependency list.
544 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
545 solib_svr4_fetch_link_map_offsets to
546 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
547 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
548 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
549 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
550 solib-svr4.o, and solib-legacy.o.
551 * config/i386/tm-nbsd.h: Include solib.h.
552
553 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
554
555 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
556 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
557 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
558 comment noting that this needs its own target configuration.
559 * config/i386/nbsd.mt: New file.
560 * config/i386/nbsdaout.mt: Remove.
561 * config/i386/nbsdelf.mt: Ditto.
562 * config/i386/tm-nbsdaout.h: Ditto.
563
564 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
565
566 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
567 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
568 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
569 tdep->sigtramp_end.
570 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
571 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
572 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
573
574 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
575
576 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
577 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
578 * i386-tdep.h (i386bsd_init_abi): New prototype.
579 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
580 function declaration.
581 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
582 for NetBSD-a.out or NetBSD-ELF.
583 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
584 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
585 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
586 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
587 and nbsd-tdep.h.
588 (i386nbsd_pc_in_sigtramp): New function.
589 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
590 i386nbsd_pc_in_sigtramp.
591 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
592 and i386nbsdelf_init_abi OS ABI handlers.
593 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
594 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
595
596 2002-09-02 Mark Kettenis <kettenis@gnu.org>
597
598 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
599 registers if the target really has them.
600
601 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
602
603 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
604 than nbsd-tdep.h.
605
606 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
607
608 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
609 list.
610 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
611 (alphanbsd_skip_sigtramp_frame): New functions.
612 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
613 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
614 to alphanbsd_sigcontext_addr.
615
616 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
617
618 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
619 list.
620 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
621 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
622 nbsd_pc_in_sigtramp.
623 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
624 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
625 * nbsd-tdep.c: Include gdb_string.h.
626 (nbsd_pc_in_sigtramp): New function.
627 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
628 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
629 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
630 ppcnbsd_pc_in_sigtramp.
631 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
632 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
633 shnbsd_pc_in_sigtramp.
634 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
635 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
636 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
637
638 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
639
640 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
641 watchpoints to NULL.
642 (insert_breakpoints): set val field of watchpoints if NULL.
643
644
645 2002-08-29 Jim Blandy <jimb@redhat.com>
646
647 * symtab.c (lookup_symbol_aux): In the cases where we find a
648 minimal symbol of an appropriate name and use its address to
649 select a symtab to read and search, use `name' (as passed to us)
650 as the demangled name when searching the symtab's global and
651 static blocks, not the minsym's name.
652
653 2002-08-29 Keith Seitz <keiths@redhat.com>
654
655 * stack.c (print_frame_info_base): Always set current_source_symtab
656 and current_source_line.
657
658 2002-08-29 Donn Terry <donnte@microsoft.com>
659
660 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
661
662 2002-08-28 Keith Seitz <keiths@redhat.com>
663
664 * stack.c (select_frame): Add FIXME concerning selected-frame
665 events.
666 (select_frame_command): Send selected-frame-level-changed
667 event notification, but only if the level actually changed.
668 (up_silently_base): Add selected-frame-level-changed event
669 notification.
670 (down_silently_base): Likewise.
671
672 2002-08-28 Andrew Cagney <ac131313@redhat.com>
673
674 * Makefile.in: Update dependencies for all gdb/*.c files.
675
676 2002-08-27 Tom Tromey <tromey@redhat.com>
677
678 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
679 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
680 Update dependencies.
681 * i387-tdep.c: Include gdb_string.h.
682 * osabi.c: Likewise.
683 * i386-linux-nat.c: Likewise.
684 * lin-lwp.c: Likewise.
685 * ax-gdb.c: Likewise.
686 * signals/signals.c: Likewise.
687 * jv-valprint.c: Likewise.
688 * p-lang.c: Likewise.
689 * c-valprint.c: Likewise.
690 * cp-abi.c: Likewise.
691
692 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
693
694 * cli/cli-script.h (copy_command_lines): Export.
695 * breakpoint.c: Include cli/cli-script.h.
696 * Makefile.in (breakpoint.o): Update dependencies.
697
698 2002-08-26 Michael Snyder <msnyder@redhat.com>
699
700 * breakpoint.c (insert_breakpoints): Protect all references
701 to 'process_warning'. Shorten long lines.
702
703 2002-08-26 Joel Brobecker <brobecker@gnat.com>
704
705 * cli/cli-script.c (copy_command_lines): New function.
706 * defs.h (copy_command_lines): Export.
707 * testsuite/gdb.base/commands.exp: New tests for commands
708 attached to a temporary breakpoint, and for commands that
709 delete the breakpoint they are attached to.
710
711 2002-08-26 Michael Snyder <msnyder@redhat.com>
712
713 * breakpoint.c (bpstat_stop_status): Instead of copying the
714 pointer to the breakpoint commands struct, make a new copy
715 of the struct and point to that.
716 (bpstat_clear): Free the commands struct.
717 (bpstat_clear_actions): Free the commands struct.
718 (bpstat_do_actions): Free the command actions. Also execute
719 the local cleanups, instead of deleting them.
720 (delete_breakpoint): Leave the commands field of the bpstat
721 chain alone -- it will be freed later.
722
723 2002-08-26 Kevin Buettner <kevinb@redhat.com>
724
725 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
726 deleted in 2002-08-20 commit. This function is still used by
727 ppc-linux-nat.c.
728
729 2002-08-26 Keith Seitz <keiths@redhat.com>
730
731 * gdb-events.sh: Add selected-frame-level-changed event.
732 * gdb-events.c: Regenerated.
733 * gdb-events.h: Regenerated.
734
735 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
736
737 Fix PR gdb/393:
738 * inflow.c (terminal_save_ours): New function to save terminal
739 settings.
740 * inferior.h (terminal_save_ours): Declare.
741 * target.c (debug_to_terminal_save_ours): New function.
742 (cleanup_target): Defaults to_terminal_save_ours.
743 (update_current_target): Inherit to_terminal_save_ours.
744 (setup_target_debug): Set to_terminal_save_ours.
745 * target.h (target_terminal_save_ours): New to save terminal settings.
746 (target_ops): New member to_terminal_save_ours.
747 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
748 * hpux-thread.c (init_hpux_thread_ops): Likewise.
749 * inftarg.c (init_child_ops): Likewise.
750 * m3-nat.c (init_m3_ops): Likewise.
751 * procfs.c (init_procfs_ops): Likewise.
752 * wince.c (init_child_ops): Likewise.
753 * win32-nat.c (init_child_ops): Likewise.
754 * sol-thread.c (init_sol_thread_ops): Likewise.
755
756 2002-08-26 Mark Kettenis <kettenis@gnu.org>
757
758 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
759 use regcache_* functions.
760 (i386_gdbarch_init): Set store_return_value instead of
761 deprecated_store_return_value.
762
763 * regcache.c (regcache_raw_write_signed,
764 regcache_raw_write_unsigned): New functions.
765 * regcache.h (regcache_raw_write_signed,
766 regcache_raw_write_unsigned): New prototypes.
767
768 2002-08-25 Andrew Cagney <ac131313@redhat.com>
769
770 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
771 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
772 source file dependencies. Cleanup corresponding generator rules.
773
774 2002-08-25 Andrew Cagney <ac131313@redhat.com>
775
776 * regcache.h (register_offset_hack): Declare.
777 (regcache_cooked_read_using_offset_hack): Declare.
778 (regcache_cooked_write_using_offset_hack): Declare.
779
780 * regcache.c (register_offset_hack): New function.
781 (regcache_cooked_read_using_offset_hack): New function.
782 (regcache_cooked_write_using_offset_hack): New function.
783 (regcache_dump): Check that the registers, according to their
784 offset, are packed hard against each other.
785 (cooked_xfer_using_offset_hack): New function.
786
787 2002-08-25 Andrew Cagney <ac131313@redhat.com>
788
789 * regcache.c (struct regcache_descr): Add field register_type.
790 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
791 in as a parameter
792 (init_regcache_descr): Initialize register_type. Pass the descr
793 to init_legacy_regcache_descr. Use register_type instead of
794 REGISTER_VIRTUAL_TYPE.
795 (register_type): New function.
796 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
797 * regcache.h (register_type): Declare.
798
799 2002-08-25 Andrew Cagney <ac131313@redhat.com>
800
801 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
802 instead of deprecated_store_return_value. Fix fallout from
803 2002-08-23 Andrew Cagney <cagney@redhat.com>.
804
805 2002-08-25 Andrew Cagney <ac131313@redhat.com>
806
807 * regcache.c (max_register_size): New function.
808 (init_legacy_regcache_descr): Ensure that max_register_size is
809 large enough for REGISTER_VIRTUAL_SIZE.
810 * regcache.h (max_register_size): Declare.
811
812 2002-08-24 Andrew Cagney <ac131313@redhat.com>
813
814 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
815 store_return_value.
816 (e500_extract_return_value): Change type of valbuf pointer to
817 void.
818
819 2002-08-24 Mark Kettenis <kettenis@gnu.org>
820
821 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
822 workaround.
823
824 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
825 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
826 long long) to prevent compiler warning on 64-bit systems.
827
828 2002-08-23 Andrew Cagney <cagney@redhat.com>
829
830 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
831 (DEPRECATED_STORE_RETURN_VALUE): New method.
832 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
833 * gdbarch.h, gdbarch.c: Re-generate.
834
835 * values.c (set_return_value): Pass current_regcache to
836 STORE_RETURN_VALUE.
837 * arch-utils.h (legacy_store_return_value): Declare.
838 * arch-utils.c (legacy_store_return_value): New function.
839 (legacy_extract_return_value): Update parameters.
840
841 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
842 STORE_RETURN_VALUE.
843 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
844 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
845 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
846 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
847 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
848 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
849 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
850 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
851 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
852 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
853
854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
855 * i386-tdep.c (i386_extract_return_value): Update.
856 * arch-utils.c (legacy_extract_return_value): Update.
857 * frv-tdep.c (frv_gdbarch_init): Update.
858 * cris-tdep.c (cris_gdbarch_init): Update.
859 * d10v-tdep.c (d10v_gdbarch_init): Update.
860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
861 * m68k-tdep.c (m68k_gdbarch_init): Update.
862 * mcore-tdep.c (mcore_gdbarch_init): Update.
863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
864 * s390-tdep.c (s390_gdbarch_init): Update.
865 * sparc-tdep.c (sparc_gdbarch_init): Update.
866 * sh-tdep.c (sh_gdbarch_init): Update.
867 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
868 * v850-tdep.c (v850_gdbarch_init): Update.
869 * avr-tdep.c (avr_gdbarch_init): Update.
870 * ia64-tdep.c (ia64_gdbarch_init): Update.
871 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
872 * vax-tdep.c (vax_gdbarch_init): Update.
873 * alpha-tdep.c (alpha_gdbarch_init): Update.
874 * arm-tdep.c (arm_gdbarch_init): Update.
875 * mips-tdep.c (mips_gdbarch_init): Update.
876 * i386-tdep.c (i386_gdbarch_init): Update.
877
878 2002-08-23 Andrew Cagney <ac131313@redhat.com>
879
880 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
881 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
882
883 2002-08-24 Mark Kettenis <kettenis@gnu.org>
884
885 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
886 problems.
887
888 2002-08-23 Joel Brobecker <brobecker@gnat.com>
889
890 * infrun.c (handle_inferior_event): Move a comment outside of a
891 function call, in order to avoid indent reformatting this part
892 of the code in an unreadable way.
893
894 2002-08-23 Grace Sainsbury <graces@redhat.com>
895
896 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
897 when breakpoints fail. Move general breakpoint error messages to
898 insert_breakpoints.
899 * breakpoint.c (insert_breakpoints): Change warnings when
900 breakpoints are nto inserted to specify the type. Remove call to
901 memory_error when hardware breakpoints can't be inserted. Remove
902 multiple calls to warning so all messages are sent to the user at
903 once.
904 (delete_breakpoints): Make insert error messsages more explicit.
905
906 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
907
908 * ChangeLog: Move gdbserver entries after GDB 5.2 to
909 gdbserver/ChangeLog.
910
911 2002-08-23 Mark Kettenis <kettenis@gnu.org>
912
913 * i386-tdep.c: Include "objfiles.h".
914 (i386_svr4_init_abi): Set in_solib_call_trampoline and
915 skip_trampoline_code.
916 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
917 (CPLUS_MARKER): Define to '.'.
918
919 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
920 member.
921 (linux_corefile_thread_callback): Increase args->num_notes.
922 (linux_make_note_section): Initialize thread_args.num_notes, and
923 use it to determine whether notes for any threads were created.
924
925 2002-08-23 Donn Terry <donnte@microsoft.com>
926
927 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
928 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
929 and PCUNKILL.
930 (write_with_trace): Conditionalize out the switch branch handling
931 PCSHOLD if the corresponding macro is not defined. Likewise for
932 PRSABORT and PRSTOP.
933 This change will be needed by the Interix port.
934
935 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
936
937 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
938 write_register wherever possible instead of manipulating the
939 register bytes directly.
940 Assign VALUE_CONTENTS to a variable and use that.
941 The GPR numbers are now dependent on the architecture.
942
943 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
944
945 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
946 ev_offset fields.
947 (skip_prologue): Add support for BookE/e500 instructions.
948 (e500_extract_return_value): New function.
949 (frame_get_saved_regs): Add support for saving ev registers and
950 pseudo gpr's.
951 (e500_store_return_value): New function.
952 (rs6000_gdbarch_init): Move up default intializations of
953 deprecated_extract_return_value and store_return_value. Overwrite
954 init of store_return_value with e500 specific version.
955 Set extract_return_value for e500.
956
957 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
958
959 * blockframe.c (generic_call_dummy_register_unwind): Use
960 regcache_cooked_read to catch cases in which the variable is
961 stored in a pseudo register.
962
963 2002-08-22 Andrew Cagney <cagney@redhat.com>
964
965 * NEWS: Mention that the i960 has been made obsolete.
966 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
967 i960-tdep.c
968 (remote-nrom.o): Obsolete target.
969 (remote-nindy.o, i960-tdep.o): Ditto.
970 * remote-nrom.c: Make file obsolete.
971 * remote-nindy.c, remote-vx960.c: Ditto.
972 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
973 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
974 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
975 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
976 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
977 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
978 i960-*-vxworks* obsolete.
979 * MAINTAINERS: Note that the i960 is obsolete.
980
981 2002-08-21 Corinna Vinschen <vinschen@redhat.com
982
983 * aix-thread.c (aix_thread_detach): Disable thread debugging on
984 detach to allow reinitialization.
985
986 2002-08-22 Andrew Cagney <ac131313@redhat.com>
987
988 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
989 attempt).
990
991 2002-08-22 Jim Blandy <jimb@redhat.com>
992
993 * coffread.c (coff_symfile_read): Don't try to read the line
994 number table from disk if the image file doesn't have a symbol
995 table; we'll never actually look at the info anyway, and Windows
996 ships DLL's with bogus file offsets for the line number data.
997
998 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
999
1000 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1001 an e500 executable.
1002
1003 2002-08-21 Michael Snyder <msnyder@redhat.com>
1004
1005 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1006 (MSYMBOL_SIZE): Replace macro with function.
1007 (DEFAULT_MIPS_TYPE): Delete unused macro.
1008 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1009 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1010
1011 2002-08-21 Jim Blandy <jimb@redhat.com>
1012
1013 * valops.c (value_cast): Simplify and correct logic for doing a
1014 static cast from a pointer to a base class to a pointer to a
1015 derived class.
1016
1017 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1018
1019 * infcmd.c (default_print_registers_info): Replace
1020 do_registers_info.
1021 (registers_info): Use gdbarch_print_registers_info instead of
1022 DO_REGISTERS_INFO.
1023 * inferior.h (default_print_registers_info): Replace
1024 do_registers_info.
1025 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1026 (DO_REGISTERS_INFO): Change to a predicate function.
1027 * gdbarch.h, gdbarch.c: Regenerate.
1028
1029 2002-08-21 Keith Seitz <keiths@redhat.com>
1030
1031 * gdb-events.sh: Add target-changed event.
1032 * gdb-events.c: Regenerated.
1033 * gdb-events.c: Regenerated.
1034 * valops.c (value_assign): Add target-changed event notification
1035 to inlval_register, lval_memory, and lval_reg_frame_relative.
1036
1037 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1038
1039 * NEWS: Add an entry regarding the improvement of the next/step
1040 operation on Alpha Tru64 multi-processor machines.
1041
1042 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1043
1044 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1045 directores.
1046 * Makefile.in: Update all _h macro definitions.
1047 * Makefile.in (install-gdbtk): Move to install section.
1048 (rdi-share/libangsd.a): Move to end of file.
1049
1050 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1051
1052 * frame.c (frame_register_unwind): When a register, set addrp to
1053 the register's byte.
1054
1055 2002-08-20 Michael Snyder <msnyder@redhat.com>
1056
1057 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1058 used locally, so move them from the target machine header to here.
1059 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1060 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1061 Make static.
1062 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1063
1064 2002-08-20 Andrew Cagney <cagney@redhat.com>
1065
1066 * NEWS: Mention that the Apollo line was made obsolete.
1067 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1068 m68*-hp-hpux* obsolete.
1069 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1070 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1071 * buildsym.c (make_blockvector): Make static.
1072 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1073 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1074 (ALLDEPFILES): Remove dstread.c.
1075 (dstread.o): Obsolete make rule.
1076 * dstread.c: Makefile obsolete.
1077 * dst.h: Ditto.
1078 * config/m68k/hp300hpux.mt: Ditto.
1079 * config/m68k/hp300hpux.mh: Ditto.
1080 * config/m68k/hp300bsd.mt: Ditto.
1081 * config/m68k/hp300bsd.mh: Ditto.
1082 * config/m68k/apollo68b.mt: Ditto.
1083 * config/m68k/apollo68v.mh: Ditto.
1084 * config/m68k/apollo68b.mh: Ditto.
1085
1086 2002-08-20 Michael Snyder <msnyder@redhat.com>
1087
1088 * mips-tdep.c (mips_in_return_stub): Make static.
1089 (mips_gdbarch_init): Set in_solib_return_trampoline.
1090 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1091
1092 2002-08-20 Michael Snyder <msnyder@redhat.com>
1093
1094 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1095 * gdbarch.c, gdbarch.h: Regenerate.
1096 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1097 Add.
1098 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1099
1100 2002-08-20 Michael Snyder <msnyder@redhat.com>
1101
1102 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1103 (mips_gdbarch_init): Set skip_trampoline_code,
1104 in_solib_call_trampoline.
1105 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1106 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1107
1108 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1109
1110 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1111
1112 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1113 vector type for ev registers.
1114 (e500_pseudo_register_read): New function.
1115 (e500_pseudo_register_write): New function.
1116 (e500_dwarf2_reg_to_regnum): New function.
1117 (PPC_UISA_NOFP_SPRS): New macro.
1118 (PPC_EV_REGS): New macro.
1119 (PPC_GPRS_PSEUDO_REGS): New macro.
1120 (registers_e500): New register set for e500.
1121 (variants): Add e500 variant.
1122 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1123 before setting architectural dependent variations. Initialize ev
1124 registers numbers. Add case for e500 architecture. Set the
1125 number of pseudo registers.
1126
1127 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1128
1129 * rs6000-tdep.c: Clean up comments.
1130
1131 2002-08-20 Andrew Cagney <cagney@redhat.com>
1132
1133 * h8300-tdep.c: Re-indent file.
1134
1135 2002-08-20 Jim Blandy <jimb@redhat.com>
1136
1137 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1138 default for this.
1139
1140 2002-08-20 Keith Seitz <keiths@redhat.com>
1141
1142 * breakpoints.c (watch_command_1): Use internal breakpoint
1143 when setting a watchpoint_scope breakpoint.
1144
1145 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1146
1147 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1148 (build_builtin_type_vec64i): Ditto.
1149 (build_builtin_type_vec128): Ditto.
1150 (build_builtin_type_vec128i): Ditto.
1151
1152 2002-08-19 Michael Snyder <msnyder@redhat.com>
1153
1154 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1155 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1156 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1157 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1158 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1159 CALL_DUMMY_ADDRESS): Delete.
1160 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1161 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1162 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1163 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1164 push_return_address.
1165 (mips_register_raw_size, mips_eabi_use_struct_convention,
1166 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1167 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1168 mips_init_extra_frame_info, mips_eabi_push_arguments,
1169 mips_n32n64_push_arguments, mips_push_return_address,
1170 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1171 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1172
1173 2002-08-19 Michael Snyder <msnyder@redhat.com>
1174
1175 * mips-tdep.c (mips_frame_num_args): New function.
1176 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1177 frame_saved_pc, frame_args_address, frame_locals_address,
1178 frame_num_args, and frame_args_skip.
1179 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1180 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1181 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1182 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1183
1184 2002-08-20 Michael Snyder <msnyder@redhat.com>
1185
1186 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1187 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1188 * mips-tdep.c (mips_store_struct_return): New function.
1189 (mips_extract_struct_value_address): New function.
1190 (mips_gdbarch_init): Set store_struct_return and
1191 extract_struct_value_address.
1192
1193 2002-08-20 David Carlton <carlton@math.stanford.edu>
1194
1195 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1196 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1197 (read_file_scope): Check that line_header is nonzero before
1198 decoding macro information.
1199
1200 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1201
1202 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1203 flag the general-purpose registers as floating-point on targets
1204 that don't support the floating-point registers.
1205
1206 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1207
1208 * rs6000-tdep.c (altivec_register_p): Delete.
1209 (rs6000_do_altivec_registers): Delete.
1210 (rs6000_altivec_registers_info): Delete.
1211 (rs6000_do_registers_info): Delete.
1212 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1213 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1214
1215 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1216
1217 * infcmd.c (do_registers_info): Print vector registers in hex
1218 format only.
1219 (print_vector_info): Check that printing registers
1220 makes sense.
1221 (print_float_info): Ditto.
1222
1223 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1224
1225 * mips-tdep.c (mips_gdbarch_init): Update.
1226 (mips_o32_extract_return_value): Rewrite.
1227 (mips_o32_store_return_value): Rewrite.
1228 (mips_o32_xfer_return_value): New function.
1229 (mips_xfer_register): Tweak debug print message. Allow for
1230 buf_offset when dumping the value transfered.
1231
1232 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1233
1234 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1235 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1236 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1237 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1238 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1239
1240 2002-08-14 Michael Snyder <msnyder@redhat.com>
1241
1242 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1243
1244 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1245
1246 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1247 register.
1248 (P): New macro to define a register as a pseudo register.
1249 (R, R4, R8, R16, FR32, R64, R0): Updated.
1250 (struct variant): Add new fields for number of pseudo registers
1251 and number of total registers.
1252 (tot_num_registers): New macro replacing....
1253 (num_registers): ...deleted macro.
1254 (num_registers): New function.
1255 (num_pseudo_registers): New function.
1256 (variants): Update all variants to intialize new fields correctly.
1257 Postpone initialization of number of pseudo regs and real regs.
1258 (init_variants): New function.
1259 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1260 registers offsets.
1261
1262 2002-08-19 David Carlton <carlton@math.stanford.edu>
1263
1264 * valops.c (search_struct_field): Change error message to treat
1265 return value of 0 from value_static_field as meaning that field is
1266 optimized out.
1267 (value_struct_elt_for_reference): Ditto.
1268 * values.c (value_static_field): Treat an unresolved location the
1269 same as a nonexistent symbol. Fix PR gdb/635.
1270 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1271 enclosed. Fix PR gdb/574.
1272 * MAINTAINERS: Add self to Write After Approval list.
1273
1274 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1275
1276 * mips-tdep.c (mips_xfer_register): New function.
1277 (mips_n32n64_extract_return_value): Rewrite.
1278 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1279 instead of deprecated_extract_return_value.
1280
1281 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1282
1283 * rs6000-tdep.c (TDEP): Delete macro.
1284 (branch_dest): Replace use of TDEP macro with its body.
1285 (rs6000_pop_frame): Ditto.
1286 (rs6000_push_arguments): Ditto.
1287 (rs6000_skip_trampoline_code): Ditto.
1288 (rs6000_frame_saved_pc): Ditto.
1289 (rs6000_frame_chain): Ditto.
1290 (rs6000_register_name): Ditto.
1291 (rs6000_register_byte): Ditto.
1292 (rs6000_register_raw_size): Ditto.
1293 (rs6000_register_virtual_type): Ditto.
1294 (rs6000_register_convertible): Ditto.
1295 (rs6000_convert_from_func_ptr_addr): Ditto.
1296
1297 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1300 conditionally.
1301 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1302 MIPS_LINUX_JB_ELEMENT_SIZE.
1303 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1304 for MAX_REGISTER_RAW_SIZE arrays.
1305 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1306 MIPS_LINUX_JB_ELEMENT_SIZE.
1307
1308 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1309
1310 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1311
1312 2002-08-19 Aidan Skinner <aidan@velvet.net>
1313
1314 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1315 ada-valprint.c ada-tasks.c.
1316 (YYFILES): Add ada-exp.y.
1317 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1318 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1319 (ada-exp.tab.o): New target.
1320
1321 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1322
1323 * regcache.c (regcache_xfer_part): New function.
1324 (regcache_raw_read_part): New function.
1325 (regcache_raw_write_part): New function.
1326 (regcache_cooked_read_part): New function.
1327 (regcache_cooked_write_part): New function.
1328 * regcache.h (regcache_raw_read_part): Declare.
1329 (regcache_raw_write_part): Declare.
1330 (regcache_cooked_read_part): Declare.
1331 (regcache_cooked_write_part): Declare.
1332
1333 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * remote.c (remote_open_1): Add async_p.
1336 (remote_async_open_1): Delete.
1337 (open_remote_target): Delete.
1338 (remote_open, extended_remote_open): Update calls to remote_open_1.
1339 (remote_async_open, extended_remote_async_open): Call
1340 remote_open_1 instead of remote_async_open_1.
1341
1342 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1343
1344 * blockframe.c: Fix a few coding standard violations.
1345
1346 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1347
1348 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1349 here from ...
1350 * config/i386/tm-i386sco5.h: ... here. File removed.
1351 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1352
1353 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1354 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1355 (TM_FILE): Set to tm-i386.h.
1356 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1357 * config/i386/tm-i386v.h: Remove file.
1358 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1359 instead of "i386/tm-i386v.h".
1360 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1361 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1362 "i386/tm-i386v.h".
1363 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1364 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1365 "i386/tm-i386.h".
1366
1367 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1368
1369 * config/i386/nm-i386v.h: Add protection against
1370 multiple-inclusion.
1371 (i386_register_u_addr): Remove prototype.
1372 (register_u_addr): New prototype.
1373 (REGISTER_U_ADDR): Redefine accordingly.
1374 * i386v-nat.c: Improve several comments.
1375 (i386_register_u_addr): Change signature and rename to
1376 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1377 ubase variable.
1378
1379 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1380
1381 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1382 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1383 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1384 deprecated_extract_return_value.
1385 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1386 rename mips_o32o64_push_arguments.
1387 (mips_gdbarch_init): Update.
1388 (mips_extract_return_value): Delete.
1389 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1390 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1391 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1392 (mips_n32n64_extract_return_value): Clone
1393 mips_extract_return_value.
1394 (mips_store_return_value): Delete.
1395 (mips_o32_store_return_value): Clone mips_store_return_value.
1396 (mips_o64_store_return_value): Clone mips_store_return_value.
1397 (mips_eabi_store_return_value): Clone mips_store_return_value.
1398 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1399
1400 2002-08-18 Aidan Skinner <aidan@velvet.net>
1401
1402 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1403 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1404
1405 2002-08-18 Aidan Skinner <aidan@velvet.net>
1406
1407 * ada-lang.c: Run through gdb_indent.sh.
1408 * ada-lang.h: Run through gdb_indent.sh.
1409 * ada-tasks.c: Run through gdb_indent.sh.
1410 * ada-typeprint.c: Run through gdb_indent.sh.
1411 * ada-valprint.c: Run through gdb_indent.sh.
1412
1413 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1414
1415 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1416 ABI.
1417
1418 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1419
1420 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1421
1422 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1423 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1424
1425 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1426 write_register_gen instead of write_register_bytes.
1427
1428 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1429 i[3456]-*-osf1mk* configurations have been made obsolete.
1430 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1431 i[3456]86-*-osf1mk* hosts obsolete.
1432 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1433 targets obsolete.
1434 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1435 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1436 config/i386/i386m3.mt, config/i386/nm-m3.h,
1437 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1438 config/i386/i386mk.mh, config/i386/i386mk.mt,
1439 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1440 obsolete.
1441 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1442 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1443 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1444
1445 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1446
1447 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1448 (hppa_value_returned_from_stack): Declare.
1449 (hppa_extract_return_value): Declare.
1450 * config/pa/hppa.mt: New file.
1451 * configure.tgt: Recognize hppa*-*-*.
1452 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1453
1454 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1455
1456 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1457 comment.
1458
1459 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1460
1461 * top.c (gdb_rl_operate_and_get_next): Make sure
1462 operate-and-get-next functions correctly even when the history
1463 list is completely filled.
1464
1465 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1466
1467 * MAINTAINERS (Target Instruction Set Architectures): Rename
1468 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1469 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1470 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1471 already listed under Host/Native.
1472
1473 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1474 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1475 mips*-*-*.
1476
1477 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1478
1479 * config/ia64/ia64.mt: New file.
1480 * config/alpha/alpha.mt: New file.
1481 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1482 ia64-linux-gnu. Mention that ia64-elf is broken.
1483 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1484
1485 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1486
1487 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1488 generic_func_frame_valid instead of func_frame_valid.
1489
1490 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1491
1492 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1493 procfs appears to be broken when debugging on multi-processor
1494 machines. So enable software single stepping in order to avoid
1495 using the procfs interface to do next/step operations, using
1496 internal breakpoints instead.
1497
1498 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1499 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1500 make this pc address equal to the value it would have if the
1501 system stepping capability was used. Also set a new flag used
1502 to ensure that we don't readjust the PC one more time later.
1503
1504 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1505 address by DECR_PC_AFTER_BREAK when software single step is
1506 in use for this architecture, as this has already been taken
1507 care of in handle_inferior_event().
1508
1509 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1510
1511 * infrun.c (handle_inferior_event): Minor reformatting, to make
1512 a rather long condition expression easier to read.
1513
1514 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1515
1516 * Makefile.in (gdbtk.o): Move to end of file.
1517 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1518 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1519 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1520 (gdbtk-wrapper.o, gdbres.o): Ditto.
1521
1522 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1523
1524 * Makefile.in (copying.o): Separate out compile rule.
1525 (hpux-thread.o, procfs.o, signals.o): Ditto.
1526 (v850ice.o, z8k-tdep.o): Ditto.
1527 (tui-file.o): Move to TUI section.
1528 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1529 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1530
1531 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1532
1533 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1534 skip_trampoline_code, for better namespace-proofing.
1535
1536 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1537
1538 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1539
1540 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1541
1542 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1543
1544 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1545 signal, check whether we hit a breakpoint before checking for a
1546 single step breakpoint. Otherwise, GDB fails to notice that a
1547 breakpoint has been hit when stepping onto a breakpoint.
1548
1549 2002-08-16 Keith Seitz <keiths@redhat.com>
1550
1551 * gdb-events.sh (clear_gdb_event_hooks): New function.
1552 * gdb-events.c: Regenerate.
1553 * gdb-events.h: Regenerate.
1554
1555 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1556
1557 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1558 not_a_sw_breakpoint.
1559 * breakpoint.h (bpstat_stop_status): Add parameter names.
1560
1561 2002-08-16 Grace Sainsbury <graces@redhat.com>
1562
1563 * remote.c (remote_insert_hw_breakpoint)
1564 (remote_remove_hw_breakpoint): Fix calculation of length field
1565 for Z-packet.
1566
1567 2002-08-15 Michael Snyder <msnyder@redhat.com>
1568
1569 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1570 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1571 (supply_fpregset): Ditto.
1572
1573 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1574 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1575 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1576 (TARGET_READ_SP): Delete.
1577 (DO_REGISTERS_INFO): Delete.
1578 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1579 Delete.
1580 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1581 from macros to functions.
1582
1583 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1584 (mips_register_convertible, mips_register_convert_to_virtual,
1585 mips_register_convert_to_raw): Make static.
1586 (mips_read_sp): New function.
1587 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1588 (mips_do_registers_info): Make static.
1589 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1590 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1591 (mips_register_convert_from_type, mips_register_convert_to_type):
1592 New functions.
1593 (mips_gdbarch_init): Set up function_start_offset,
1594 register_virtual_size, pc_in_sigtramp.
1595
1596 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1597
1598 * infcmd.c (vector_info): New function.
1599 (_initialize_infcmd): Add command "info vector".
1600 (print_vector_info): New function.
1601
1602 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1603 * gdbarch.h, gdbarch.c: Regenerate.
1604
1605 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1606
1607 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1608 ``print_all''. Only print vector registers when ``print_all''.
1609
1610 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1611
1612 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1613 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1614
1615 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1616 Add `args' parameter.
1617 * gdbarch.h, gdbarch.c: Regenerate.
1618
1619 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1620
1621 * infcmd.c (float_info): Call print_float_info.
1622 (print_float_info): New function. By default, print the
1623 floating-point registers.
1624
1625 * arch-utils.h (default_print_float_info): Delete declaration.
1626 * arch-utils.c (default_print_float_info): Delete function.
1627
1628 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1629
1630 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1631 out define.
1632
1633 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1634 FRAME.
1635
1636 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1637 * configure.host: Make i[3456]86-*-aix host obsolete.
1638 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1639 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1640 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1641 config/i386/xm-i386aix.h: Make files obsolete.
1642 * i386aix-nat.c: Make file obsolete.
1643 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1644 (i386aix-nat.o): Make target obsolete.
1645
1646 * config/i386/nm-gnu.h: Removed.
1647 * config/i386/nm-i386gnu.h: New file.
1648 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1649 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1650 Moved here from ...
1651 * config/i386/tm-i386gnu.h: ... here. Removed.
1652 * config/i386/xm-i386gnu.h: Removed.
1653 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1654 (NAT_FILE): Set to nm-i386gnu.h.
1655 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1656 * i386-tdep.c: New file.
1657 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1658 (i386gnu-tdep.o): Specify dependencies.
1659
1660 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1661
1662 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1663 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1664 Adjust a few comments to reflect reality a bit closer.
1665 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1666 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1667 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1668 target_insert_watchpoint, target_remove_watchpoint):
1669 Move defines to ...
1670 * config/i386/nm-i386sco5.h: ... here.
1671 (kernel_u_size): Add prototype. Improve a few comments and add
1672 protection against multiple inclusion.
1673
1674 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1675 out define.
1676
1677 * uw-thread.c (SP_ARG0): Define if not already defined.
1678 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1679
1680 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1681
1682 * config/i386/tm-i386.h: Don't include "regcache.h".
1683
1684 * i387-tdep.h (i387_print_float_info): New prototype.
1685 * i387-tdep.c (print_i387_value, print_i387_ext,
1686 print_i387_status_word, print_i387_control_word): Add `struct
1687 ui_file *' argument and use it for output.
1688 (i387_print_float_info): Renamed from i387_float_info. Add
1689 `struct gdbarch *' and `struct ui_file *' arguments and use the
1690 latter for output.
1691 * i386-tdep.c: Include "i387-tdep.h".
1692 (i386_gdbarch_init): Set print_float_info.
1693 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1694 (FLOAT_INFO): Remove define.
1695
1696 2002-08-13 Michael Snyder <msnyder@redhat.com>
1697
1698 * mips-tdep.c (mips_push_arguments): Rename to
1699 mips_eabi_push_arguments, and tune for EABI.
1700 (MIPS_REGS_HAVE_HOME_P): Delete.
1701 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1702 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1703 Delete references to mips_regs_have_home_p.
1704
1705 2002-08-14 Keith Seitz <keiths@redhat.com>
1706
1707 * Makefile.in (install-gdbtk): Create insight plugin directory.
1708 Install plugins.tcl file.
1709
1710 2002-08-14 Keith Seitz <keiths@redhat.com>
1711
1712 * configure.in: Move SUBDIRS to near top of the file so that
1713 --enable options may add things to it.
1714 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1715 * configure: Regenerate.
1716
1717 2002-08-13 Michael Snyder <msnyder@redhat.com>
1718
1719 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1720 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1721 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1722
1723 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1724
1725 * vax-tdep.c (vax_get_saved_register): Delete function.
1726 (vax_gdbarch_init): Update.
1727 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1728 (ns32k_gdbarch_init): Update.
1729 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1730 (alpha_gdbarch_init): Update.
1731
1732 2002-08-13 Andrew Cagney <cagney@redhat.com>
1733
1734 * regcache.c (init_regcache_descr): Overallocate the
1735 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1736 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1737 nr_raw_registers.
1738 (set_register_cached): Add range checking assertions. Use
1739 current_regcache.
1740
1741 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1742
1743 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1744 numbers for MMX registers.
1745
1746 2002-08-13 Andrew Cagney <cagney@redhat.com>
1747
1748 * i386-tdep.c (i386_gdbarch_init): Use
1749 generic_unwind_get_saved_register.
1750
1751 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1752
1753 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1754 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1755 target vector.
1756 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1757 Delete. Add comment regarding this now-deleted target method.
1758
1759 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1760
1761 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1762 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1763 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1764 real PC and the page number (if it's within the memory bank window).
1765 (m68hc11_pseudo_register_write): Likewise when saving.
1766 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1767 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1768 (m68hc11_register_raw_size): And use 32-bit for it.
1769 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1770 16K memory bank is used by the prog; also use the virtual pc.
1771
1772 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1773
1774 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1775 (m68hc11_gdbarch_init): Install it in gdbarch.
1776 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1777 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1778 (MSYMBOL_SIZE): New for documentation.
1779 (insn_return_kind): Enum to specify how a function returns.
1780 (frame_extra_info): Cleanup and record the return mode.
1781 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1782 register in address computation.
1783 (m68hc11_get_return_insn): New to obtain the return instruction used
1784 by the function.
1785 (m68hc11_frame_init_saved_regs): Take into account the return
1786 instruction used by the function for far and interrupt functions.
1787 (m68hc11_init_extra_frame_info): Take into account page register.
1788 (m68hc11_frame_args_address): Adjust according to the return mode.
1789 (show_regs): Print page register only when it's used.
1790
1791 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1792
1793 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1794 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1795 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1796 registers.
1797 (m68hc11_register_raw_size): Likewise.
1798
1799 2002-08-13 Andrew Cagney <cagney@redhat.com>
1800
1801 * i386-tdep.c (i386_register_name): Handle mmx registers.
1802 (mmx_regnum_p): New function.
1803 (i386_mmx_names): New array.
1804 (mmx_num_regs): New variable.
1805 (i386_pseudo_register_read): New function.
1806 (i386_pseudo_register_write): New function.
1807 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1808
1809 * regcache.c (regcache_raw_read_unsigned): New function.
1810 (regcache_raw_read_signed): New function.
1811 * regcache.h (regcache_raw_read_unsigned): Declare.
1812 (regcache_raw_read_signed): Declare.
1813
1814 2002-08-13 Andrew Cagney <cagney@redhat.com>
1815
1816 * regcache.c (regcache_raw_read_as_address): Delete function.
1817 (regcache_cooked_read_signed): New function.
1818 (regcache_cooked_read_unsigned): New function.
1819 * regcache.h (regcache_cooked_read_signed): Declare.
1820 (regcache_cooked_read_unsigned): Declare.
1821 (regcache_raw_read_as_address): Delete declaration.
1822
1823 * blockframe.c (generic_read_register_dummy): Use
1824 regcache_cooked_read_unsigned.
1825 * i386-tdep.c (i386_extract_struct_value_address): Use
1826 regcache_cooked_read_unsigned.
1827
1828 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1829
1830 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1831 double sizes according to ELF ABI flags.
1832 (gdbarch_tdep): Record elf_flags.
1833
1834 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1835
1836 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1837 (m6812_prolog): They can appear in 68HC12 function prologue.
1838 (m68hc11_frame_chain): Cleanup.
1839
1840 2002-08-12 Andrew Cagney <cagney@redhat.com>
1841
1842 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1843 declarations.
1844 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1845 (i386_linux_register_raw_size): Delete function.
1846 (i386_linux_init_abi): Update.
1847 * i386-tdep.c (i386_register_raw_size): Delete function.
1848 (i386_register_byte): Delete function.
1849 (i386_gdbarch_init): Update.
1850 (i386_register_size): Delete array.
1851 (i386_register_offset): Delete array.
1852
1853 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1854 (REGISTER_RAW_SIZE): Delete macro.
1855 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1856 (REGISTER_BYTE): Delete macro.
1857
1858 2002-08-11 Aidan Skinner <aidan@velvet.net>
1859
1860 * ada-lang.c (ada_lookup_partial_symbol)
1861 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1862 prototype names so that grep ^func works properly.
1863
1864 * ada-lang.c (ada_array_element_type)
1865 (ada_lookup_partial_symbol): Fix typos in parameter list.
1866
1867 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1868 Fix prototype names so that grep ^func works properly.
1869
1870 2002-08-10 Andrew Cagney <cagney@redhat.com>
1871 Elena Zannoni <ezannoni@redhat.com>
1872 Martin M. Hunt <hunt@redhat.com>
1873
1874 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1875 (build_builtin_type_vec128i): Set the vector bit.
1876 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1877 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1878 (build_builtin_type_vec64): New function.
1879 (build_builtin_type_vec64i): New function.
1880 (build_gdbtypes): Initialize builtin_type_vec64 and
1881 builtin_type_vec64i.
1882
1883 2002-08-09 Andrew Cagney <cagney@redhat.com>
1884
1885 * regcache.c (regcache_dump): Compare the register offset
1886 with REGISTER_BYTE.
1887 * arch-utils.c (generic_register_byte): New function.
1888 * arch-utils.h (generic_register_byte): Declare.
1889 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1890 * gdbarch.h, gdbarch.c: Regenerate.
1891
1892 2002-08-09 Andrew Cagney <cagney@redhat.com>
1893
1894 * regcache.c: Include "gdbcmd.h"
1895 (_initialize_regcache): Add commands "maintenance print
1896 registers", "maintenance print raw-registers" and "maintenance
1897 print cooked-registers".
1898 (enum regcache_dump_what): Define.
1899 (dump_endian_bytes): New function.
1900 (regcache_dump): New function.
1901 (regcache_print): New function.
1902 (maintenance_print_registers): New function.
1903 (maintenance_print_raw_registers): New function.
1904 (maintenance_print_cooked_registers): New function.
1905 * Makefile.in (regcache.o): Update dependencies.
1906
1907 2002-08-09 Michael Snyder <msnyder@redhat.com>
1908
1909 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1910 (mips_push_arguments): Correct some comments. Use paddr_nz
1911 for printing addresses in debug output. Replace static
1912 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1913 (mips_n32n64_push_arguments): New function, cloned from
1914 mips_push_arguments and tuned for the n32/n64 ABI.
1915 (mips_push_register): Buffer needs dynamic allocation.
1916 (mips_print_register): Ditto.
1917 (do_gp_register_row): Ditto.
1918 (mips_store_return_value): Ditto.
1919 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1920
1921 2002-08-09 Don Howard <dhoward@redhat.com>
1922
1923 * memattr.c (mem_info_command): Print special case of upper bound
1924 as max CORE_ADDR + 1.
1925
1926 2002-08-08 Michael Snyder <msnyder@redhat.com>
1927
1928 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1929 returns structs by ref if they're too big to fit in two registers.
1930
1931 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1932
1933 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1934 saved regs value.
1935 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1936 mips_find_saved_regs().
1937 (mips_pop_frame): Likewise.
1938
1939 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1940
1941 * blockframe.c (frame_saved_regs_register_unwind): Revise
1942 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1943 frames are in use.
1944
1945 2002-08-09 Grace Sainsbury <graces@redhat.com>
1946
1947 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1948 T-packets; the 'a' is not taken as a register number.
1949 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1950 (remote_stopped_data_address): New functions; add to target
1951 vector.
1952 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1953 prototypes to match other implementations of this
1954 function. replace integer argument with pointer -- the length
1955 field in the Z-packet is the length of what is pointed to or 1 if
1956 pointer is null. Add to target vector.
1957 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1958 target vector.
1959
1960 From Mark Salter:
1961 * remote.c (remote_wait): Add support to extract optional
1962 watchpoint information from T-packet. Ignore unrecognized
1963 optional info in T-packet.
1964 (remote_async_wait): Ditto.
1965
1966 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1967
1968 * cli/cli-dump.c: Change fopen modes to use binary open modes
1969 as defined in include/fopen-bin.h throughout.
1970
1971 2002-08-08 Michael Snyder <msnyder@redhat.com>
1972
1973 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1974
1975 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1976
1977 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1978 assertion failure by returning early after a warning.
1979
1980 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1981
1982 * mips-tdep.c (mips_find_saved_regs): Make static.
1983 (mips_frame_init_saved_regs): New function.
1984 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1985 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1986 (mips_find_saved_regs): Delete declaration.
1987
1988 2002-08-08 Grace Sainsbury <graces@redhat.com>
1989
1990 * remote.c (remote_wait, remote_async_wait): Change
1991 thread_num from int to ULONGEST.
1992 (unpack_varlen_hex): Change result parameter from
1993 int * to ULONGEST *.
1994
1995 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1996
1997 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1998 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1999 powerpc*-*-*.
2000 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2001
2002 2002-08-08 Andrew Cagney <cagney@redhat.com>
2003
2004 * gcore.c (override_derive_stack_segment): Delete variable.
2005 (preempt_derive_stack_segment): Delete function.
2006 (derive_stack_segment): Delete function.
2007 (default_derive_stack_segment): Renamed to derive_stack_segment.
2008 (override_derive_heap_segment): Delete variable.
2009 (preempt_derive_heap_segment): Delete function.
2010 (derive_heap_segment): Delete function.
2011 (default_derive_heap_segment): Rename to derive_heap_segment.
2012
2013 2002-08-06 Michael Snyder <msnyder@redhat.com>
2014
2015 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2016 * mips-tdep.c (mips_EABI_use_struct_convention,
2017 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2018 New functions. (mips_use_struct_convention): Delete.
2019 (mips_gdbarch_init): set use_gdbarch_convention.
2020
2021 2002-08-06 Michael Snyder <msnyder@redhat.com>
2022
2023 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2024 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2025 mips_o32_reg_struct_has_addr): New functions.
2026 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2027
2028 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2029
2030 * regcache.c (pseudo_register): Delete function.
2031 (fetch_register): Delete function.
2032 (store_register): Delete function.
2033 (regcache_raw_read, legacy_read_register_gen): Use
2034 target_fetch_registers instead of fetch_register.
2035 (legacy_write_register_gen, regcache_raw_write): Use
2036 target_store_register instead of store_register.
2037 (write_register_bytes): Ditto.
2038
2039 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2040 (STORE_PSEUDO_REGISTER): Delete.
2041 * gdbarch.h, gdbarch.c: Regenerate.
2042
2043 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2044
2045 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2046 write dump file binary.
2047
2048 2002-08-05 Michael Snyder <msnyder@redhat.com>
2049
2050 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2051 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2052 (mips_gdbarch_init): Set N32 target to be mips64.
2053
2054 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2055
2056 * frame.c (find_saved_register): Break out of loop once saved
2057 register address is found. Don't mention sparc in loop comment
2058 anymore.
2059
2060 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2061
2062 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2063 mips_default_saved_regsize to 8.
2064
2065 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2066
2067 * gcore.c: Do not include <sys/procfs.h>.
2068 * Makefile.in (gcore.o): Update dependencies.
2069
2070 2002-08-06 Andrew Cagney <cagney@redhat.com>
2071
2072 * configure.tgt: Make arc-*-* obsolete.
2073 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2074 * MAINTAINERS: Make arc-elf obsolete.
2075 * arc-tdep.c: Make file obsolete.
2076 * config/arc/arc.mt: Ditto.
2077 * config/arc/tm-arc.h: Ditto.
2078
2079 2002-08-05 Theodore A. Roth <troth@verinet.com>
2080
2081 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2082
2083 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2084
2085 * mcore-tdep.c (mcore_gdbarch_init): Use
2086 generic_unwind_get_saved_register instead of
2087 generic_get_saved_register.
2088 * v850-tdep.c (v850_gdbarch_init): Ditto.
2089 * frv-tdep.c (frv_gdbarch_init): Ditto.
2090 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2091 * s390-tdep.c (s390_gdbarch_init): Ditto.
2092 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2093 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2094 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2095
2096 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2097
2098 * objfiles.h: Add missing #include "symfile.h"
2099
2100 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2101
2102 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2103
2104 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2105 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2106 of FIELD_BITSIZE.
2107
2108 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2109
2110 * NEWS: Cleanup and nitpick.
2111
2112 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2113
2114 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2115
2116 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2117
2118 * Makefile.in (gdbtk-bp.o): Update dependencies.
2119 (gdbtk-register.o): Ditto.
2120 (gdbtk-varobj.o): Ditto.
2121
2122 2002-08-03 Andrew Cagney <cagney@redhat.com>
2123
2124 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2125 m68hc11_fetch_pseudo_register.
2126 (m68hc11_pseudo_register_write): Replace
2127 m68hc11_store_pseudo_register.
2128 (m68hc11_gdbarch_init): Update.
2129
2130 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2131
2132 * gdbarch.sh: Include "gdb_string.h".
2133 * gdbarch.c: Regenerate.
2134
2135 * regcache.c: Include "gdb_string.h".
2136 * ax-general.c: Ditto.
2137 * varobj.c: Ditto.
2138 * std-regs.c: Ditto.
2139 * fbsd-proc.c: Ditto.
2140 * thread.c: Ditto.
2141
2142 * Makefile.in (regcache.o): Update dependencies.
2143 (thread.o, gdbarch.o): Ditto.
2144 (ax-general.o, gdbarch.o): Ditto.
2145 (varobj.o, std-regs.o): Ditto.
2146 (fbsd-proc.o): Specify dependencies.
2147
2148 2002-08-02 Andrew Cagney <cagney@redhat.com>
2149
2150 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2151 regnum.
2152 (regcache_cooked_write): Ditto.
2153
2154 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2155
2156 * regcache.c (regcache_cooked_read): New function.
2157 (regcache_cooked_write): New function.
2158 (read_register_gen): Rewrite using regcache_cooked_read.
2159 (write_register_gen): Rewrite using regcache_cooked_write.
2160
2161 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2162 Declare.
2163
2164 2002-08-02 Andrew Cagney <cagney@redhat.com>
2165
2166 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2167 Replace the architecture methods register_read and register_write.
2168 * gdbarch.h, gdbarch.c: Regenerate.
2169 * regcache.c (init_regcache_descr): Update.
2170 (read_register_gen): Update.
2171 (write_register_gen): Update.
2172 (supply_register): Update comment.
2173
2174 * sh-tdep.c (sh_gdbarch_init): Update.
2175 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2176 `regcache' and `gdbarch' parameters. Make `buffer' a void
2177 pointer. Update code.
2178 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2179 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2180 void pointer. Update code.
2181 (sh64_register_write): Delete.
2182 (sh4_register_read): Delete.
2183 (sh64_register_read): Delete.
2184 (sh4_register_write): Delete.
2185 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2186 void pointer, `to' parameter a void pointer.
2187 (sh_sh64_register_convert_to_raw): Ditto.
2188
2189 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2190
2191 * mips-tdep.c (mips_register_virtual_type): Use architecture
2192 invariant return values.
2193
2194 2002-08-01 Andrew Cagney <cagney@redhat.com>
2195
2196 * linux-proc.c: Include "gdb_string.h".
2197 * Makefile.in (linux-proc.o): Update dependency list.
2198
2199 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2200
2201 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2202 comment.
2203
2204 2002-08-01 Grace Sainsbury <graces@redhat.com>
2205
2206 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2207 to_insert_watchpoint, to_remove_watchpoint,
2208 to_stopped_by_watchpoint, to_stopped_data_address,
2209 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2210 target vecctor. Define their corresponding macros so they call
2211 them.
2212
2213 * target.c: Add default and debug versions of for
2214 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2215 to_insert_watchpoint, to_remove_watchpoint,
2216 to_stopped_by_watchpoint, to_stopped_data_address,
2217 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2218
2219 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2220
2221 * mips-tdep.c (mips_register_virtual_type): New function.
2222 (mips_gdbarch_init): Register mips_register_virtual_type()
2223 with gdbarch machinery.
2224 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2225 this file instead of tm-bigmips.h.
2226 (MIPS_REGSIZE): Delete this macro.
2227 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2228 multiarch version in mips-tdep.c will be found.
2229
2230 2002-08-01 Andrew Cagney <cagney@redhat.com>
2231
2232 * NEWS: Menion that CHILL has been made obsolete.
2233
2234 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2235 * stabsread.c (read_range_type): Ditto.
2236 * gdbtypes.h: Ditto.
2237 * language.c (binop_type_check): Ditto.
2238 (binop_result_type): Ditto.
2239 (integral_type): Ditto.
2240 (character_type): Ditto.
2241 (string_type): Ditto.
2242 (boolean_type): Ditto.
2243 (structured_type): Ditto.
2244 (lang_bool_type): Ditto.
2245 (binop_type_check): Ditto.
2246 * language.h (_LANG_chill): Ditto.
2247 * dwarfread.c (set_cu_language): Ditto.
2248 * dwarfread.c (CHILL_PRODUCER): Ditto.
2249 * dwarfread.c (handle_producer): Ditto.
2250 * expression.h (enum exp_opcode): Ditto.
2251 * eval.c: Ditto for comments.
2252 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2253 * expprint.c (print_subexp): Ditto.
2254 (print_subexp): Ditto.
2255 * valops.c (value_cast): Ditto.
2256 (search_struct_field): Ditto.
2257 * value.h (COERCE_VARYING_ARRAY): Ditto.
2258 * symfile.c (init_filename_language_table): Ditto.
2259 (add_psymbol_with_dem_name_to_list): Ditto.
2260 * valarith.c (value_binop): Ditto.
2261 (value_neg): Ditto.
2262 * valops.c (value_slice): Ditto.
2263 * symtab.h (union language_specific): Ditto.
2264 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2265 (SYMBOL_DEMANGLED_NAME): Ditto.
2266 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2267 * defs.h (enum language): Ditto.
2268 * symtab.c (got_symtab): Ditto.
2269 * utils.c (fprintf_symbol_filtered): Ditto.
2270
2271 * ch-typeprint.c: Make file obsolete.
2272 * ch-valprint.c: Make file obsolete.
2273 * ch-lang.h: Make file obsolete.
2274 * ch-exp.c: Make file obsolete.
2275 * ch-lang.c: Make file obsolete.
2276
2277 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2278 CHILL_LIB.
2279 (TARGET_FLAGS_TO_PASS): Ditto.
2280 (CHILLFLAGS): Obsolete.
2281 (CHILL): Obsolete.
2282 (CHILL_FOR_TARGET): Obsolete.
2283 (CHILL_LIB): Obsolete.
2284 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2285 ch-valprint.c.
2286 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2287 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2288 ch-lang.o.
2289 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2290 targets.
2291
2292 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2293
2294 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2295 This does not change anything at the moment, but will be helpful
2296 later when full Ada support is integrated.
2297
2298 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2299
2300 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2301 help message.
2302
2303 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2304
2305 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2306 and save it in a local variable. Use variable in later test.
2307
2308 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2309
2310 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2311 test. (Thanks to Daniel Jacobowitz.)
2312
2313 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2314
2315 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2316 (mips_abi_strings): Add "n64".
2317 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2318
2319 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2320
2321 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2322 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2323
2324 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2325
2326 * utils.c (host_pointer_to_address, address_to_host_pointer):
2327 Use gdb_assert() instead of explicit call to internal_error().
2328
2329 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2330
2331 * Makefile.in (rs6000-nat.o): Update dependencies.
2332
2333 From Nicholas Duffek:
2334 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2335 (aix-thread.o): New rule.
2336 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2337 * config/powerpc/aix432.mh: New file.
2338
2339 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2340
2341 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2342 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2343 (fetch_core_registers, ppc_linux_supply_gregset)
2344 (ppc_linux_supply_fpregset): New functions.
2345 (ppc_linux_regset_core_fns): New.
2346 (_initialize_ppc_linux_tdep): Call add_core_fns.
2347 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2348 and ppc_linux_supply_gregset.
2349 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2350 (supply_fpregset): Call ppc_linux_supply_fpregset.
2351 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2352 corelow.o.
2353 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2354
2355 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2356
2357 * symtab.c (lookup_symbol): Demangle before lowercasing.
2358
2359 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2360
2361 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2362 declaration.
2363 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2364 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2365 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2366 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2367 "gdb_string.h".
2368 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2369 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2370 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2371 (avr-tdep.o, mon960-rom.o): Ditto.
2372 (aout_stabs_gnu_h): Define.
2373 (symtab_h): Remove $(gdb_obstack_h).
2374
2375 2002-07-30 Jim Blandy <jimb@redhat.com>
2376
2377 Patch from David Carlton <carlton@math.stanford.edu>:
2378 * gdbinit.in: Move the `dir' commands that add GDB's own source
2379 directory to the search path to the end, so that the `gdb' source
2380 directory will be searched first.
2381
2382 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2383
2384 * gdb_obstack.h: New file.
2385 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2386 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2387 * objfiles.h: Include "gdb_obstack.h".
2388 * Makefile.in (gdb_obstack_h): Define.
2389 (symtab_h): Add $(gdb_obstack_h).
2390 (objfiles_h): Add $(gdb_obstack_h).
2391
2392 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2393 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2394 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2395 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2396 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2397 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2398 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2399 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2400
2401 * Makefile.in (bcache.o): Update dependencies.
2402 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2403 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2404 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2405 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2406 (stabsread.o, symfile.o, symmisc.o): Ditto.
2407 (symtab.o, typeprint.o, macroexp.o): Ditto.
2408 (macrotab.o, mdebugread.o): Ditto.
2409 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2410 (coff_ecoff_h, aout_aout64_h): Define.
2411 (aout_stabs_gnu_h, libaout_h): Define.
2412
2413 2002-07-29 Andrew Cagney <cagney@redhat.com>
2414
2415 * regcache.c (struct regcache_descr): Rename nr_registers to
2416 nr_cooked_registers. Revise comments describing the structure
2417 member fields.
2418 (init_regcache_descr): Update.
2419 (init_legacy_regcache_descr): Update.
2420 (read_register_gen, write_register_gen): When a cooked register in
2421 the raw register range, directly access the value from the raw
2422 register cache.
2423
2424 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2425
2426 * z8k-tdep.c: Do not include "obstack.h".
2427 * h8300-tdep.c, h8500-tdep.c: Ditto.
2428 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2429 * valprint.c, v850-tdep.c: Ditto.
2430 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2431 * mn10200-tdep.c: Ditto.
2432
2433 * Makefile.in (z8k-tdep.o): Update dependencies.
2434 (m68hc11-tdep.o, valprint.o): Ditto.
2435 (v850-tdep.o, d10v-tdep.o): Ditto.
2436 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2437 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2438 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2439 (sh_opc_h, gdb_sim_sh_h): Define.
2440 (elf_sh_h, elf_bfd_h): Define.
2441 (opcode_m68hc11_h): Define.
2442 (OPCODES_SRC, OPCODES_DIR): define.
2443 (OPCODES): Use $(OPCODES_DIR).
2444 (gdb_sim_d10v_h): Rename sim_d10v_h.
2445 (gdb_sim_arm_h): Rename sim_arm_h.
2446
2447 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2448
2449 * utils.c (host_pointer_to_address, address_to_host_pointer):
2450 Change internal_error() message to indicate function responsible
2451 for the error.
2452
2453 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2454
2455 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2456 calls to local_hex_string_custom().
2457
2458 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2459
2460 * irix5-nat.c: Move IRIX shared library support from here...
2461 * solib-irix.c: ...to here. Revised substantially to work with
2462 generic solib framework.
2463
2464 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2465 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2466 * mips-irix-tdep.c: New file.
2467
2468 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2469 (mips-irix-tdep.o, solib-irix.o): New rules.
2470 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2471 solib-irix.o.
2472 * config/mips/irix6.mt (TDEPFILES): Likewise.
2473 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2474
2475 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2476
2477 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2478 disabled (via ``#if 0'') includes.
2479
2480 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2481
2482 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2483 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2484 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2485 Add support for the fpscr register.
2486 * rs6000-nat.c (regmap, fetch_inferior_registers)
2487 (store_inferior_registers, fetch_core_registers): Likewise.
2488
2489 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2490
2491 * rs6000-nat.c (language.h): Include.
2492 (special_regs): Delete this array.
2493 (regmap): New function.
2494 (fetch_register, store_register): Use regmap() to map gdb
2495 register numbers to ptrace register numbers. Also, use
2496 outputs from regmap() to make decisions regarding type of
2497 ptrace() call to make. In particular, don't compare against
2498 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2499 (fetch_inferior_registers, store_inferior_registers): Where
2500 possible, obtain register numbers from tdep struct. Don't
2501 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2502 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2503 (LAST_UISA_SP_REGNUM): Delete.
2504
2505 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2506
2507 * rs6000-nat.c (ppc-tdep.h): Include.
2508 (fetch_registers, store_register, fetch_core_registers): Don't
2509 access registers[] directly. Instead, use supply_register() or
2510 regcache_collect() as appropriate.
2511 (find_toc_address): Format hex address with local_hex_string().
2512
2513 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2514
2515 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2516 bfd/elf32-frv.c.
2517
2518 2002-07-24 Tom Tromey <tromey@redhat.com>
2519
2520 * jv-exp.y: Marked all strings with _().
2521 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2522 internal_error.
2523 (MethodInvocation, CastExpression, parse_number, yyerror,
2524 java_type_from_name, push_expression_name, yylex): Typo fixes.
2525
2526 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2527
2528 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2529 (tee_file_flush, tee_file_write, tee_file_fputs)
2530 (tee_file_isatty): New.
2531 * ui-file.h (tee_file_new): Add prototype.
2532
2533 2002-07-24 Aidan Skinner <aidan@velvet.net>
2534
2535 * ada-lang.c: Change k&r style function definitions to prototyped
2536 form.
2537 * ada-typeprint.c: Change k&r style function definitions to prototyped
2538 form.
2539 * ada-valprint.c: Change k&r style function definitions to prototyped
2540 form.
2541
2542 2002-07-24 Andrew Cagney <cagney@redhat.com>
2543
2544 * README: Remove reference to remote-bug.
2545 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2546 remote-bug.c.
2547 (m88k-nat.o): Delete rule.
2548 (m88k-tdep.o): Delete rule.
2549 (remote-bug.o): Delete rule.
2550 * MAINTAINERS: Mark as obsolete.
2551 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2552 * m88k-tdep.c: Make file obsolete.
2553 * config/m88k/m88k.mh: Ditto.
2554 * config/m88k/delta88v4.mh: Ditto.
2555 * config/m88k/delta88v4.mt: Ditto.
2556 * config/m88k/delta88.mt: Ditto.
2557 * config/m88k/delta88.mh: Ditto.
2558 * remote-bug.c: Ditto.
2559 * config/m88k/tm-delta88.h: Ditto.
2560 * config/m88k/nm-delta88v4.h: Ditto.
2561 * config/m88k/xm-delta88.h: Ditto.
2562 * config/m88k/xm-dgux.h: Ditto.
2563 * config/m88k/tm-m88k.h: Ditto.
2564 * config/m88k/nm-m88k.h: Ditto.
2565 * config/m88k/tm-delta88v4.h: Ditto.
2566 * m88k-nat.c: Ditto.
2567 * cxux-nat.c: Ditto.
2568 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2569 and m88*-*-* obsolete.
2570 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2571 m88*-*-* obsolete.
2572
2573 2002-07-24 Andrew Cagney <cagney@redhat.com>
2574
2575 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2576 constant. Same for local pointer variables.
2577 (extract_signed_integer): Ditto.
2578 * defs.h (extract_unsigned_integer): Update.
2579 (extract_signed_integer): Update.
2580
2581 2002-07-24 Andrew Cagney <cagney@redhat.com>
2582
2583 * regcache.c (regcache_raw_write): Change buf parameter to a
2584 constant void pointer.
2585 (regcache_raw_read): Change buf parameter to a void pointer.
2586 (legacy_write_register_gen): Change myaddr parameter a constant
2587 void pointer.
2588 (supply_register): Change val parameter to a const void pointer.
2589 * regcache.h (regcache_raw_write): Update declaration.
2590 (regcache_raw_read): Update declaration.
2591 (supply_register): Update declaration.
2592
2593 2002-07-24 Tom Tromey <tromey@redhat.com>
2594
2595 * defs.h (gdb_readline_wrapper): Declare.
2596 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2597 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2598 * top.c (gdb_readline_wrapper): New function.
2599 (command_line_input): Use it.
2600
2601 2002-07-24 Andrew Cagney <cagney@redhat.com>
2602
2603 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2604 regcache_read and regcache_write.
2605 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2606 * regcache.c: Update.
2607 * sh-tdep.c (sh64_push_arguments): Update comment.
2608 (sh_pseudo_register_read): Update.
2609 (sh_pseudo_register_write): Update.
2610 (sh4_register_read): Update.
2611 (sh4_register_write): Update.
2612 (sh64_pseudo_register_read): Update.
2613 (sh64_pseudo_register_write): Update.
2614 (sh64_register_read): Update.
2615 (sh64_register_write): Update.
2616 * i386-tdep.c (i386_extract_return_value): Update.
2617 (i386_extract_struct_value_address): Update.
2618 (i386_extract_return_value): Update.
2619 * blockframe.c (generic_read_register_dummy): Update.
2620 (generic_call_dummy_register_unwind): Update
2621 * infrun.c (write_inferior_status_register): Update.
2622
2623 2002-07-23 Jim Blandy <jimb@redhat.com>
2624
2625 * parser-defs.h (expression_context_pc): Make this extern.
2626 (Thanks to Michael Snyder.)
2627
2628 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2629
2630 GDB 5.2.1 released from 5.2 branch.
2631 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2632 * README: Update to mention 5.2.1.
2633
2634 2002-07-23 Mark Salter <msalter@redhat.com>
2635
2636 * remote.c (remote_read_bytes): Fix check for error.
2637
2638 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2639
2640 * aix-thread.c (language.h): Include.
2641 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2642 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2643 Print newlines at end of debug messages.
2644 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2645 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2646
2647 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2648
2649 * aix-thread.c (ppc-tdep.h): Include.
2650 (special_register_p): New function.
2651 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2652 (store_regs_user_thread): Use register number information from
2653 gdbarch_tdep struct instead of hardcoded offsets relative to
2654 FIRST_UISA_SP_REGNUM.
2655 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2656 special_register_p() instead of using FPLAST_REGNUM and
2657 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2658 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2659 will be MQ's register number.
2660
2661 2002-07-22 Michael Snyder <msnyder@redhat.com>
2662
2663 * aix-thread.c (ops): Rename to aix_thread_ops.
2664 (base_ops): Rename to base_target.
2665 (ops_attach): Rename to aix_thread_attach.
2666 (ops_detach): Rename to aix_thread_detach.
2667 (ops_resume): Rename to aix_thread_detach.
2668 (ops_wait): Rename to aix_thread_wait.
2669 (ops_kill): Rename to aix_thread_kill.
2670 (init_ops): Rename to init_aix_thread_ops.
2671 (ops_fetch_register): Rename to aix_thread_fetch_register.
2672 (ops_store_register): Rename to aix_thread_store_register.
2673 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2674 (ops_thread_alive): Rename to aix_thread_thread_alive.
2675 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2676 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2677 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2678 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2679 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2680 (store_regs_lib): Rename to store_regs_user_thread.
2681 (store_regs_kern): Rename to store_regs_kernel_thread.
2682
2683 2002-07-22 Michael Snyder <msnyder@redhat.com>
2684
2685 * aix-thread.c (ops_prepare_to_store): Eliminate.
2686 (init_ops): Don't initialize ops.prepare_to_store.
2687 (store_regs_kern): Pre-fetch register buffers from child,
2688 because some registers may not be in the cache. Copy
2689 regs from register cache only if they are cached.
2690 (store_regs_lib): Copy regs from register cache only
2691 if they are cached.
2692 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2693 fill_gprs64): Ditto.
2694
2695 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2696
2697 * aix-thread.c (gdb_assert.h): Include.
2698 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2699 register sizes (from register cache) match size of buffer holding
2700 register data.
2701 (fill_sprs32): Change parameter types to match those in the ptrace()
2702 buffer.
2703 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2704 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2705
2706 2002-07-22 Michael Snyder <msnyder@redhat.com>
2707
2708 * aix-thread.c (supply_sprs64): Cosmetic change.
2709 (supply_sprs32): Cosmetic change.
2710 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2711 (fill_sprs64): Use regcache_collect instead of read_register.
2712 (store_regs_lib): Use regcache_collect instead of
2713 read_register. Use fill_sprs32 instead of fill_sprs64,
2714 if debugging a 32-bit architecture.
2715 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2716 out of the register cache, instead of passing a pointer into
2717 the register cache directly to ptrace. Use regcache_collect
2718 insteaad of read_register.
2719 (ops_prepare_to_store): Use target_read_registers instead
2720 of read_register_bytes.
2721
2722 2002-07-20 Aidan Skinner <aidan@velvet.net>
2723
2724 * MAINTAINERS: Add self under write after approval.
2725
2726 2002-07-20 Aidan Skinner <aidan@velvet.net>
2727
2728 * ada-tasks.c: Change k&r style function definitions to prototyped
2729 form.
2730
2731 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2732
2733 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2734 * x86-64-tdep.c: Include "objfiles.h".
2735 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2736 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2737
2738 2002-07-17 Michal Ludvig <michal@suse.cz>
2739
2740 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2741 (update_context): Initialise cfa variable.
2742
2743 2002-07-17 Michael Snyder <msnyder@redhat.com>
2744
2745 * aix-thread.c: Shorten some long lines.
2746 Bring comments into line with code spec.
2747
2748 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2749
2750 * infrun.c: Re-indent using gdb_indent.sh.
2751
2752 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2753
2754 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2755 Leave the indentation temporarily untouched, to minimize the diffs.
2756
2757 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2758
2759 * stabsread.c: Make os9k sections of the code obsolete,
2760 for real this time.
2761 * stabsread.h: Make os9k sections of the code obsolete.
2762
2763 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2764
2765 * linux-low.c (regsets_store_inferior_registers): Add free()
2766 at the end of a loop to prevent memory leak.
2767 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2768 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2769 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2770 line a comment.
2771 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2772
2773 2002-07-17 Jim Blandy <jimb@redhat.com>
2774
2775 * macrocmd.c (info_macro_command): Remove newline from error
2776 message.
2777
2778 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2779
2780 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2781 (sh_gdbarch_init): Use it for sh-dsp.
2782
2783 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2784
2785 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2786 64-bit DWARF2 format.
2787
2788 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2789
2790 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2791 <sys/proc.h> when not available.
2792
2793 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2794
2795 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2796 * stabsread.c: Make os9k sections of the code obsolete.
2797 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2798 * config/i386/i386os9k.mt: Make file obsolete.
2799 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2800 (COMMON_OBS): Remove os9kread.o
2801 (SFILES): Remove os9kread.c.
2802 (os9kread.o, remote-os9k.o): Make target obsolete.
2803 * remote-os9k.c: Make file obsolete.
2804 * os9kread.c: Make file obsolete.
2805 * Makefile.in
2806
2807 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2808
2809 * NEWS: Mention that the FR30 has been made obsolete.
2810 * fr30-tdep.c: Make file obsolete.
2811 * config/fr30/tm-fr30.h: Ditto.
2812 * config/fr30/fr30.mt: Ditto.
2813 * configure.tgt: Make fr30-*-elf obsolete.
2814 * MAINTAINERS: Make fr30-elf obsolete.
2815
2816 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2817
2818 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2819 found is not inside a section.
2820
2821 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2822
2823 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2824 strerror().
2825 (pdc_realloc): Use xrealloc() instead of realloc().
2826
2827 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2828
2829 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2830 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2831 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2832 macros.
2833
2834 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2835
2836 * aix-thread.c (ptrace_check): Eliminate goto.
2837 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2838 problem.
2839
2840 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2841
2842 * aix-thread.c (gdbcmd.h): Include.
2843 (DEBUG, DBG, DBG2, dbg): Eliminate.
2844 (debug_aix_thread): New static global.
2845 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2846 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2847 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2848 invocations to DBG and DBG2 macros to test against
2849 ``debug_aix_thread'' and call fprintf_unfiltered().
2850 (_initialize_aix_thread): Add new command "set debug aix-thread".
2851
2852 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2853
2854 From Gerhard Tonn <TON@de.ibm.com>:
2855 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2856 instead of supply_register.
2857
2858 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2859
2860 * dwarf2cfi.c: Include "gdb_assert.h".
2861 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2862 non-NULL.
2863 (update_context): Do not use __func__. Add missing ``break''.
2864 (update_context): Do not use __func__.
2865
2866 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2867
2868 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2869 and its setting. Set gdbarch instruction printing functions
2870 directly. For non-rs6000 case use new function
2871 gdb_print_insn_powerpc.
2872 (gdb_print_insn_powerpc): New function.
2873
2874 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2875
2876 * NEWS: Mention that the d30v has been marked obsolete.
2877 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2878 * configure.tgt: Mark d30v-*-* as obsolete.
2879 * d30v-tdep.c: Mark file as obsolete.
2880 * config/d30v/d30v.mt: Ditto.
2881 * config/d30v/tm-d30v.h: Ditto.
2882
2883 2002-07-13 Aidan Skinner <aidan@velvet.net>
2884
2885 * ada-tasks.c (add_task_entry): replace calls to
2886 malloc() with xmalloc
2887 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2888
2889 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2890 ada_finish_decode_line_1, all_sals_for_line
2891 ada_breakpoint_rewrite): replace calls to free() with xfree()
2892
2893 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2894
2895 From Nicholas Duffek (with minor changes by Martin Hunt,
2896 Louis Hamilton, and Kevin Buettner):
2897 * aix-thread.c: New file.
2898
2899 2002-07-12 Petr Sorfa <petrs@caldera.com>
2900
2901 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2902 complaint for invalid attribute class or form.
2903 (read_func_scope): DW_AT_frame_base
2904 better handling of DW_AT_block*.
2905 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2906 better handling of DW_AT_block*.
2907 (read_common_block): DW_AT_location
2908 better handling of DW_AT_block*.
2909 (read_partial_die): DW_AT_location better handling
2910 of DW_AT_block*.
2911 (new_symbol): DW_AT_external better handling of
2912 DW_AT_block*. Proper initialization of variable
2913 "addr".
2914 (attr_form_is_block): New function that returns true
2915 if the attribute's form is of DW_FORM_block*.
2916
2917 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2918
2919 * valops.c (find_method_list): Remove comment about
2920 removed STATIC_MEMFUNCP argument.
2921 (value_find_oload_method_list): Likewise.
2922
2923 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2924
2925 From Nicholas Duffek:
2926 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2927 target_new_objfile_hook.
2928
2929 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2930
2931 From Nicholas Duffek:
2932 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2933 csect.
2934
2935 2002-07-12 Andrew Cagney <cagney@redhat.com>
2936
2937 * MAINTAINERS: Mention --enable-sim-build-warnings.
2938 (m68hc11-elf): Disable sim build warnings.
2939 (m32r-elf): Mark as broken obsolete candidate.
2940 (x86_64-linux-gnu): Mark as buildable with -Werror.
2941 (arm-elf): Change -w to ``,'' which enables warnings but not
2942 -Werror.
2943
2944 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2945
2946 * bcache.h: Update copyright.
2947 (struct bstring, struct bcache): Move definition to "bcache.c".
2948 Replaced by opaque declaration.
2949 (bcache_xfree): Replace free_bcache.
2950 (bcache_xmalloc, bcache_memory_used): Declare.
2951
2952 * bcache.c: Update copyright.
2953 (struct bstring, struct bcache): Moved to here from "bcache.h".
2954 Update comments.
2955 (bcache_xmalloc, bcache_memory_used): New functions.
2956 (bcache_xfree): Replace function free_bcache.
2957
2958 * Makefile.in (objfiles.o): Add $(bcache_h).
2959 (objfiles_h): Remove $(bcache_h).
2960 (symfile.o): Add $(bcache_h).
2961
2962 * symmisc.c: Update copyright.
2963 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2964 (print_objfile_statistics): Use bcache_memory_used.
2965
2966 * symfile.c: Include "bcache.h".
2967 (reread_symbols): Use bcache_xfree.
2968 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2969 (add_psymbol_to_list): Pass psymbol_cache by value.
2970 (add_psymbol_with_dem_name_to_list): Ditto.
2971
2972 * objfiles.h: Update copyright.
2973 (struct bcache): Declare opaque. Do not include "bcache.h".
2974 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2975 bcache'' pointers.
2976 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2977
2978 * objfiles.c: Include "bcache.h". Update copyright.
2979 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2980 macro_cache.
2981 (free_objfile): Use bcache_xfree.
2982
2983 2002-07-11 Grace Sainsbury <graces@redhat.com>
2984
2985 * monitor.c (monitor_fetch_register): Make name a constant.
2986 (monitor_store_register): Same.
2987
2988 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2989
2990 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2991 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2992 (finish_block) For non-function blocks, hash the symbol table. For
2993 function blocks, mark the symbol table as unhashed.
2994 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2995 (msymbol_hash_iw): Likewise.
2996 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2997 value.
2998 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2999 (lookup_minimal_symbol): Likewise for both.
3000 * symtab.h (struct block): Add `hashtable' flag. Comment the
3001 hashtable.
3002 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3003 (ALL_BLOCK_SYMBOLS): Update.
3004 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3005 (struct symbol): Add `hash_next' pointer.
3006 * symtab.c (lookup_block_symbol): Search using the hash table when
3007 possible.
3008 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3009 (search_symbols, find_addr_symbol): Likewise.
3010
3011 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3012 (read_dst_symtab): Likewise.
3013 * jv-lang.c (get_java_class_symtab): Likewise.
3014 * mdebugread.c: Include "gdb_assert.h".
3015 (shrink_block): Assert that the block being modified is not hashed.
3016 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3017 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3018 symbols.
3019 (dump_symtab): Recognize hashed blocks.
3020 * printcmd.c (print_frame_args): Assert that function blocks do not
3021 have hashed symbol tables.
3022 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3023 (fill_in_ada_prototype, debug_print_block): Likewise.
3024 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3025
3026 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3027
3028 * stack.c (print_frame): Use result of frame_address_in_block()
3029 instead of fi->pc when evaluating symbols.
3030 (backtrace_command_1): Ditto.
3031
3032 2002-07-11 Andrew Cagney <cagney@redhat.com>
3033
3034 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3035 Make static.
3036
3037 * arm-tdep.c (arm_register_name): Make return type constant.
3038
3039 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3040
3041 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3042 prototype.
3043 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3044 * s390-tdep.c (s390_fp_regnum): Ditto.
3045 (s390_read_fp): Ditto.
3046 (s390_pop_frame): Ditto.
3047 (_initialize_s390_tdep): Ditto.
3048 * remote.c (get_remote_state): Ditto.
3049 * procfs.c (mappingflags): Ditto.
3050 * memattr.c (_initialize_mem): Ditto.
3051 * mcore-tdep.c (mcore_pop_frame): Ditto.
3052 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3053 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3054 * language.c (set_case_str): Ditto.
3055 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3056 * frv-tdep.c (new_variant): Ditto.
3057 (frv_stopped_data_address): Ditto.
3058 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3059 (context_alloc): Ditto.
3060 (frame_state_alloc): Ditto.
3061 (unwind_tmp_obstack_init): Ditto.
3062 (unwind_tmp_obstack_free): Ditto.
3063 (cfi_read_fp): Ditto.
3064 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3065 (cris_pop_frame): Ditto.
3066 * c-lang.c (scanning_macro_expansion): Ditto.
3067 (finished_macro_expansion): Ditto.
3068 (c_preprocess_and_parse): Ditto.
3069 * gdbarch.sh: Ditto.
3070 * gdbarch.h, gdbarch.c: Regenerate.
3071 * config/mn10200/tm-mn10200.h: Adjust indentation.
3072 * target.c: Adjust indentation.
3073 * symtab.h: Adjust indentation.
3074 * stabsread.h: Adjust indentation.
3075 * remote-es.c: Adjust indentation.
3076 * os9kread.c: Adjust indentation.
3077
3078 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3079
3080 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3081 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3082
3083 2002-07-10 Grace Sainsbury <graces@redhat.com>
3084
3085 * NEWS: Mention m68k, mcore multi-arching.
3086 * MAINTAINERS: Change status of m68k, mcore to reflect
3087 multi-arching.
3088
3089 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * valops.c (find_overload_match): Free oload_syms.
3092
3093 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3094
3095 Define HAVE_SYS_PROC_H if sys/proc.h exists
3096 * configure.in: Add check for sys/proc.h
3097 * config.in: Regenerate.
3098 * configure: Regenerate.
3099
3100 2002-07-09 Grace Sainsbury <graces@redhat.com>
3101
3102 * config/m68k/tm-m68k.h: Remove macros wrapped in
3103 #if !GDB_MULTI_ARCH.
3104
3105 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3106
3107 * config.in, configure: Regenerate.
3108
3109 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3110
3111 * dwarf2cfi.c: Include "gcore.h".
3112 (execute_stack_op): Fix implementation of the
3113 DW_OP_deref and DW_OP_deref_size operators by letting do their
3114 lookup in the target.
3115
3116 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3117
3118 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3119 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3120 tdep->sc_sp_offset.
3121
3122 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3123
3124 Fix PR gdb/595, gdb/602
3125 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3126 Don't call value_cast, just read the vtable pointer; update comments
3127 to match.
3128
3129 2002-07-05 Grace Sainsbury <graces@redhat.com>
3130
3131 * config/mcore/tm-mcore.h: Remove file.
3132 * config/mcore/mcore.mt: Remove definition of TM_FILE
3133 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3134
3135 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3136
3137 * i386bsd-tdep.c: Include "gdb_string.h".
3138
3139 2002-07-04 Grace Sainsbury <graces@redhat.com>
3140
3141 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3142 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3143 mcore-tdep.
3144 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3145 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3146 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3147 (RETVAL_REGNUM): Move macros from tm-mcore.h
3148 (mcore_reg_struct_has_addr): New function.
3149 (mcore_gdbarch_init): Added initializations for the macros removed
3150 from tm-mcore.h.
3151
3152 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3153
3154 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3155 traditonal string branding within the ELF header.
3156
3157 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3158
3159 * symtab.c (remove_params): New function.
3160 (make_symbol_overload_list): Use it instead of cplus_demangle.
3161 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3162
3163 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3164
3165 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3166
3167 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3168 New variables.
3169 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3170 and tdep->sigtramp_end.
3171 * i386obsd-nat.c: New file.
3172 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3173
3174 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3175 Don't call get_current_frame().
3176
3177 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3178
3179 * i386-nat.c (child_post_startup_inferior): New function
3180 calling i386_cleanup_dregs if
3181 I386_USE_GENERIC_WATCHPOINTS is defined.
3182 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3183 conditional to acknowledge that i386-nat.c has its
3184 own child_post_startup_inferior function.
3185
3186 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3187
3188 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3189 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3190 instead of MAX_REGISTER_RAW_SIZE.
3191 (i386_extract_return_value, i386_extract_struct_value_address):
3192 Convert to use regcache.
3193 (i386_gdbarch_init): Set max_register_raw_size and
3194 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3195 Set extract_return_value and extract_struct_value_address instead
3196 of their deprecated variants.
3197
3198 Convert i386 target to generic dummy frames.
3199 * i386-tdep.c: Include "symfile.h".
3200 (i386_frameless_signal_p): Consider a function to be frameless if
3201 the pc points at the first instruction of the function.
3202 (i386_frame_chain): Handle (generic) call dummies.
3203 (i386_frame_saved_pc): Likewise.
3204 (i386_frame_init_saved_regs): Remove code dealing with call
3205 dummies on the stack.
3206 (i386_push_dummy_frame): Removed.
3207 (i386_call_dummy_words): Removed.
3208 (i386_fix_call_dummy): Removed.
3209 (i386_push_return_address): New function.
3210 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3211 parameter, and don't call get_current_frame.
3212 (i386_pop_frame): New function.
3213 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3214 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3215 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3216 call_dummy_length to 0, set call_dummy_words to NULL, set
3217 sizeof_call_dummy_words to 0, set fix_call_dummy to
3218 generic_fix_call_dummy, set pc_in_call_dummy to
3219 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3220 generic_push_dummy_frame, set push_return_address to
3221 i386_push_return_address and set frame_chain_valid to
3222 generic_file_frame_chain_valid.
3223
3224 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3225
3226 * gdbarch.sh (struct regcache): Add opaque declaration.
3227 (EXTRACT_RETURN_VALUE): New architecture method.
3228 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3229 * gdbarch.h, gdbarch.c: Regenerate.
3230 * arch-utils.c (legacy_extract_return_value): New function.
3231 * arch-utils.h (legacy_extract_return_value): Declare.
3232 * values.c (value_being_returned): Re-enable code handling
3233 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3234 deprecated_grub_regcache_for_registers call to block handling
3235 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3236 (EXTRACT_RETURN_VALUE): Do not define.
3237
3238 2002-07-03 Grace Sainsbury <graces@redhat.com>
3239
3240 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3241 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3242 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3243 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3244 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3245 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3246 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3247 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3248 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3249 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3250 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3251 argument so the function fits the prototype in the architecture
3252 vector.
3253 (mcore_pop_frame): Remove argument so the function fits the
3254 prototype. Use get_current_frame instead of the argument.
3255 (mcore_push_arguments): Change type of struct_return so the
3256 function can be used in the architecture vector.
3257 (mcore_store_struct_return): Add.
3258 (mcore_frame_init_saved_regs): Add.
3259 (mcore_gdbarch_init): Add function calls to replace the macros
3260 removed from tm-mcore.h
3261
3262 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3263
3264 * infcmd.c (print_return_value): Remove compatibility code calling
3265 deprecated_grub_regcache_for_registers.
3266
3267 * values.c: Include "regcache.h".
3268 (value_being_returned): Update. Use
3269 deprecated_grub_regcache_for_registers to extract the register
3270 buffer address.
3271 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3272 ``struct regcache''.
3273 * Makefile.in (values.o): Add dependency on $(regcache_h).
3274
3275 * inferior.h (run_stack_dummy): Change type of second parameter to
3276 a ``struct regcache''.
3277 * valops.c (hand_function_call): Change type of retbuf to ``struct
3278 regcache''. Allocate using regcache_xmalloc, clean using
3279 make_cleanup_regcache_xfree.
3280 * infcmd.c (run_stack_dummy): Update. Use
3281 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3282
3283 * regcache.c (do_regcache_xfree): New function.
3284 (make_cleanup_regcache_xfree): New function.
3285 * regcache.h (make_cleanup_regcache_xfree): Declare.
3286
3287 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3288
3289 * event-top.c (command_line_handler): Don't read past
3290 beginning of buffer.
3291
3292 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3293
3294 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3295 struct frame_id.
3296 (varobj_create): Store frame_id for root.
3297 (varobj_gen_name): Use xasprintf.
3298 (varobj_update): Save and restore frame using get_frame_id() and
3299 frame_find_by_id().
3300 (create_child): Use xasprintf.
3301 (new_root_variable): Initialize frame_id.
3302 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3303 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3304 to prevent memory leak.
3305
3306 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3307
3308 * valops.c (hand_function_call): Move declaration of retbuf to
3309 start of function, allocate using malloc, add a cleanup but before
3310 the inf_status cleanup, cleanup the buffer. Rename local variable
3311 old_chain to inf_status_cleanup.
3312
3313 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3314
3315 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3316
3317 * cli/cli-decode.c (cmd_func_p): New function.
3318 (cmd_func): New function.
3319
3320 * command.h: Add cmd_func() and cmd_func_p().
3321
3322 2002-07-03 Grace Sainsbury <graces@redhat.com>
3323
3324 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3325 (REGISTER_SIZE): Remove.
3326 (MAX_REGISTER_RAW_SIZE): Remove.
3327 (REGISTER_VIRTUAL_TYPE): Remove.
3328 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3329 (REGISTER_NAME): Remove.
3330 (USE_GENERIC_DUMMY_FRAMES): Remove.
3331 (CALL_DUMMY): Remove.
3332 (CALL_DUMMY_START_OFFSET): Remove.
3333 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3334 (CALL_DUMMY_LOCATION): Remove.
3335 (FIX_CALL_DUMMY): Remove.
3336 (CALL_DUMMY_ADDRESS): Remove.
3337 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3338 (SAVE_DUMMY_FRAME_TOS): Remove.
3339 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3340 (mcore_register_virtual_type): New function.
3341 (mcore_register_byte): New function.
3342 (mcore_register_size): New function.
3343 (mcore_register_name): New function.
3344 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3345 macros removed from tm-mcore.h.
3346 (mcore_dump_tdep): Add.
3347 (_initialize_mcore_tdep): Add gdbarch_register call.
3348
3349 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3350
3351 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3352 frameless_look_for_prologue, such that we actually call this
3353 function.
3354
3355 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3356
3357 * frame.h (frame_address_in_block): New function.
3358
3359 * blockframe.c (frame_address_in_block): New function extracted
3360 from get_frame_block().
3361 (get_frame_block): Use frame_address_in_block().
3362 (block_innermost_frame): Use frame_address_in_block() to match
3363 the frame pc address against the block boundaries rather than
3364 the frame pc directly. This prevents a failure when a frame pc
3365 is actually a return-address pointing immediately after the end
3366 of the given block.
3367
3368 2002-07-02 Grace Sainsbury <graces@redhat.com>
3369
3370 * MAINTAINERS: Add self under write after approval.
3371
3372 2002-07-02 Grace Sainsbury <graces@redhat.com>
3373
3374 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3375 used in architecture vector. The default is
3376 m68k_local_breakpoint_from_pc.
3377 (m68k_local_breakpoint_from_pc): Add.
3378 (enum): Add register numbers from tm-m68k.h.
3379 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3380 vector.
3381 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3382 GDB_MULTI_ARCH_PARTIAL.
3383 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3384 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3385 m68k-tdep.c.
3386 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3387 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3388 to enum in m68k-tdep.c
3389
3390 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3391
3392 * solib-osf.c (open_map): Compute the list of shared libraries
3393 loaded by the inferior, rather than the list of libraries loaded
3394 by GDB itself. Otherwise, GDB ends up reading the symbols from
3395 the wrong shared libraries...
3396
3397 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3398
3399 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3400 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3401 macros.
3402 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3403 Remove functions.
3404 (FRAMELESS_SIGNAL): Remove function.
3405 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3406 i386_linux_saved_pc_after_call): Removed.
3407 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3408 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3409 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3410
3411 * i386-tdep.c (i386_frameless_signal_p): New function.
3412 (i386_frame_chain): Deal with frameless signals.
3413 (i386_sigtramp_saved_sp): New function.
3414 (i386_frame_saved_pc): Deal with frameless signals.
3415 (i386_saved_pc_after_call): Make sure the correct value is
3416 returned just after entry into a sigtramp.
3417 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3418 i386fbsd4_sc_sp_offset): New variables.
3419 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3420 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3421 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3422 similiar to what we already did for sc_pc_offset.
3423 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3424 tdep->sc_sp_offset.
3425
3426 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3427
3428 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3429
3430 * config/i386/tm-x86-64linux.h: New.
3431 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3432 definitions.
3433 * config/i386/nm-x86-64.h: Rename to ...
3434 * config/i386/nm-x86-64linux.h: ... this one.
3435 * config/i386/x86-64linux.mh: Reflect the above change.
3436
3437 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3438
3439 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3440 with sigcontext_addr. Add sc_sp_offset.
3441 (i386bsd_sigtramp_saved_pc): Remove prototype.
3442 (i386bsd_sicontext_addr): Add prototype.
3443 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3444 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3445 (i386_svr4_sigtramp_saved_pc): Removed.
3446 (i386_svr4_sigcontext_addr): New function.
3447 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3448 Initialize tdep->sigcontext_addr instead. Initialize
3449 tdep->sc_pc_offset and tdep->sc_sp_offset.
3450 (i386_gdbarch_init): Likewise.
3451 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3452 any more.
3453 (i386bsd_sigtramp_saved_pc): Remove function.
3454 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3455 Initialize tdep->sigcontext_addr instead. Initialize
3456 tdep->sc_pc_offset.
3457 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3458 of tdep->sigtramp_saved_pc.
3459 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3460 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3461 instead.
3462
3463 * i386-tdep.c (i386_frameless_function_invocation,
3464 i386_frame_num_args, i386_frame_init_saved_regs,
3465 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3466 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3467 i386_extract_return_value, i386_store_return_value,
3468 i386_extract_struct_value_address, i386_register_virtual_type,
3469 i386_register_convertible, i386_register_convert_to_virtual,
3470 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3471 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3472 static.
3473
3474 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3475
3476 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3477
3478 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3479 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3480 this macro. Include "value.h".
3481
3482 2002-06-30 Aidan Skinner <aidan@velvet.net>
3483
3484 * ada-exp.tab.c: remove as it's a generated file
3485 * ada-lex.c: remove as it's a generated file
3486
3487 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3488
3489 * config/i386/tm-i386.h (struct frame_info, struct
3490 frame_saved_regs, struct value, struct type): Remove forward
3491 declarations.
3492
3493 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3494 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3495 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3496 (FILL_FPXREGSET): Define.
3497
3498 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3499
3500 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3501 i[3456]86-*-netbsd* case.
3502 * config/i386/tm-obsd.h: Removed.
3503 * config/i386/obsd.mt: Removed.
3504 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3505 core-aout.o.
3506 (MH_CFLAGS): Add -DYYDEBUG=0.
3507
3508 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3509 i386nbsd_sc_pc_offset on OpenBSD too.
3510
3511 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3512 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3513 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3514 define.
3515 * i386bsd-tdep.c: Include "arch-utils.h".
3516 (i386bsd_aout_in_solib_call_trampoline): New function.
3517 (i386bsd_init_abi): Set in_solib_call_trampoline to
3518 i386bsd_aout_in_solib_call_trampoline.
3519 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3520 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3521
3522 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3523
3524 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3525 (struct obstack, struct bcache): Add opaque declarations.
3526 * Makefile.in (macrotab_h): Update
3527
3528 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3529
3530 * blockframe.c (generic_find_dummy_frame): Change return type to
3531 ``struct regcache''.
3532 (struct dummy_frame): Replace field ``registers'' with regcache, a
3533 struct regcache object.
3534 (generic_find_dummy_frame): Update.
3535 (generic_push_dummy_frame): Update. Use regcache_xfree,
3536 regcache_xmalloc and regcache_cpy.
3537 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3538 regcache_xfree.
3539 (deprecated_generic_find_dummy_frame): Update.
3540 (generic_read_register_dummy): Update. Use
3541 regcache_read_as_address.
3542 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3543 (generic_get_saved_register): Update. Use regcache_read.
3544
3545 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3546
3547 * Makefile.in (objfiles_h): Add $(bcache_h).
3548 * objfiles.h: Include "bcache.h".
3549
3550 * Makefile.in (symtab_h): Remove $(bcache_h).
3551 * symtab.h: Do not include "bcache.h".
3552
3553 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3554
3555 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3556 generic_func_frame_chain_valid.
3557
3558 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3559
3560 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3561 * config/i386/tm-fbsd.h: Likewise.
3562
3563 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3564
3565 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3566 generic_unwind_get_saved_register.
3567
3568 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3569
3570 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3571 * regcache.c (supply_register): Add missing argument to
3572 register_buffer call.
3573
3574 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3575
3576 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3577 Solaris /bin/grep does not not like it. From Peter Schauer.
3578
3579 2002-06-26 Tom Tromey <tromey@redhat.com>
3580
3581 * command.h (add_setshow_cmd): Declare.
3582 (add_setshow_cmd_full): Declare.
3583 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3584 returns void. Use add_setshow_cmd_full.
3585 (add_setshow_cmd_full): New function.
3586 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3587 (add_setshow_boolean_cmd): Likewise.
3588
3589 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3590
3591 * config/vax/tm-vax.h: Protect from multiple inclusion.
3592 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3593 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3594 * config/vax/tm-vaxbsd.h: ...here. New file.
3595 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3596
3597 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3598
3599 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3600 (BELIEVE_PCC_PROMOTION): Remove.
3601 (AP_REGNUM): Move to...
3602 * config/vax/nm-vax.h: ...here.
3603 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3604 (vax_breakpoint_from_pc): New function.
3605 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3606 and gdbarch_believe_pcc_promotion.
3607
3608 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3609
3610 * Makefile.in (vax_tdep_h): Define.
3611 (vax-tdep.o): Use $(vax_tdep_h).
3612 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3613 (vax_dump_tdep): New function.
3614 (_initialize_vax_tdep): Register vax_dump_tdep.
3615 * vax-tdep.h: Include osabi.h.
3616 (struct gdbarch_tdep): New.
3617
3618 2002-06-26 Andrew Cagney <cagney@redhat.com>
3619
3620 * frame.h (deprecated_generic_find_dummy_frame): Rename
3621 generic_find_dummy_frame.
3622 * blockframe.c (generic_find_dummy_frame): Make static.
3623 (deprecated_generic_find_dummy_frame): New function.
3624 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3625 generic_find_dummy_frame with deprecated_find_dummy_frame.
3626 (sh64_nofp_frame_init_saved_regs): Ditto.
3627 (sh_fp_frame_init_saved_regs): Ditto.
3628 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3629 (s390_frame_chain): Ditto.
3630 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3631
3632 2002-06-26 Grace Sainsbury <graces@redhat.com>
3633
3634 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3635 gdbarch vector are at the top.
3636 (NUM_REGS): Remove.
3637 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3638 (FRAME_ARGS_ADDRESS): Remove.
3639 (FRAME_LOCALS_ADDRESS): Remove.
3640 (FRAME_NUM_ARGS): Remove.
3641 (FRAME_ARGS_SKIP): Remove.
3642 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3643 (m68k_gdbarch_init): Add gdbarch initializations for macros
3644 undefined in tm-m68k.h
3645
3646 2002-06-26 Grace Sainsbury <graces@redhat.com>
3647
3648 * monitor.h: Add the function regname to monitor_ops
3649 structure. This way NUM_REGS does not have to be a constant.
3650 * monitor.c (monitor_fetch_register): Added support for regname
3651 function. The function is called if the array regnames is NULL.
3652 (monitor_store_register): Same.
3653 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3654 regnames array.
3655 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3656 cpu32bug_cmds.regname to point to new function.
3657 * abug-rom.c (abug_regname): Same as above.
3658 (init_abug_cmds): Same.
3659 * dbug-rom.c (dbug_regname): Same as above.
3660 (init_dbug_cmds): Same.
3661 * remote-est.c (est_regname): Same.
3662 (init_est_cmds): Same.
3663 * rom68k-rom.c (rom68k_regname): Same.
3664 (init_rom68k_cmds): Same.
3665
3666 2002-06-25 Tom Tromey <tromey@redhat.com>
3667
3668 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3669
3670 2002-06-25 Andrew Cagney <cagney@redhat.com>
3671
3672 * infrun.c (stop_registers): Change variable's type to ``struct
3673 regcache'''.
3674 (xmalloc_inferior_status): Delete function.
3675 (free_inferior_status): Delete function.
3676 (normal_stop): Use regcache_cpy.
3677 (struct inferior_status): Change type of fields ``stop_registers''
3678 and ``registers'' to ``struct regcache''.
3679 (write_inferior_status_register): Use regcache_write.
3680 (save_inferior_status): Instead of calling
3681 xmalloc_inferior_status, allocate the inf_status buffer directly.
3682 Use regcache_dup_no_passthrough and regcache_dup to save the
3683 buffers.
3684 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3685 Replace the stop_registers regcache instead of overriding it. Use
3686 regcache_xfree. Instead of calling free_inferior_status, xfree
3687 the buffer directly.
3688 (discard_inferior_status): Use regcache_xfree. Instead of calling
3689 free_inferior_status, xfree the buffer directly.
3690 (build_infrun): Use regcache_xmalloc.
3691 (_initialize_infrun): Delete redundant call to build_infrun.
3692
3693 * Makefile.in (infcmd.o): Add $(regcache_h).
3694
3695 * infcmd.c: Include "regcache.h".
3696 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3697 obtain the address of `stop_registers' register buffer.
3698 (print_return_value): Ditto.
3699
3700 * inferior.h (struct regcache): Add opaque declaration.
3701 (stop_registers): Change variable's declared type to ``struct
3702 regcache''.
3703
3704 2002-06-24 Tom Tromey <tromey@redhat.com>
3705
3706 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3707 * target.c (initialize_targets): Fixed typo in
3708 trust-readonly-sections `show' documentation.
3709
3710 * main.c: Marked all strings with _().
3711
3712 2002-06-24 Don Howard <dhoward@redhat.com>
3713
3714 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3715 that means max CORE_ADDR+1.
3716 (lookup_mem_region): Ditto.
3717 (mem_info_command): Ditto.
3718
3719 2002-06-24 Grace Sainsbury <graces@redhat.com>
3720
3721 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3722 (REGISTER_BYTES_OK): Remove.
3723 (REGISTER_BYTES): Remove.
3724 (STORE_STRUCT_RETURN): Remove.
3725 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3726 (STORE_RETURN_VALUE): Remove.
3727 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3728 (FRAME_CHAIN): Remove.
3729 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3730 (FRAME_SAVED_PC): Remove.
3731 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3732 (m68k_store_struct_return): Add.
3733 (m68k_deprecated_extract_return_value): Add.
3734 (m68k_deprecated_extract_struct_value_address): Add.
3735 (m68k_store_return_value): Add.
3736 (m68k_frame_chain): Add.
3737 (m68k_frameless_function_invocation): Add.
3738 (m68k_frame_saved_pc): Add.
3739 (m68k_gdbarch_init): added set_gdbarch calls for new
3740 functions and deleted macros.
3741
3742 2002-06-23 Tom Tromey <tromey@redhat.com>
3743
3744 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3745 (ALLDEPFILES): Likewise.
3746 (udiheaders): Removed.
3747 (udip2soc.o): Likewise.
3748 (udi2go32.o): Likewise.
3749 (udr.o): Likewise.
3750 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3751
3752 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3753
3754 * infrun.c (_initialize_infrun): Delete unnecessary call to
3755 build_infrun.
3756
3757 * regcache.h: Update comments describing the regcache_cpy family
3758 of functions.
3759 (regcache_save, regcache_restore): Delete declaration.
3760 (regcache_save_no_passthrough): Delete declaration.
3761 (regcache_restore_no_passthrough): Delete declaration.
3762 * regcache.c (regcache_save): Delete function.
3763 (regcache_save_no_passthrough): Delete function.
3764 (regcache_restore): Delete function.
3765 (regcache_restore_no_passthrough): Delete function.
3766
3767 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3768
3769 * config/m68k/tm-m68k.h: Fix typo.
3770 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3771 (m68k_frame_init_saved_regs): Declare.
3772
3773 2002-06-21 Jim Blandy <jimb@redhat.com>
3774
3775 Remove some vestiges of Harris 88k support.
3776 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3777 register numbering quirk.
3778 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3779 odd symbols occurring in Harris 88k ELF targets.
3780
3781 2002-06-21 Tom Tromey <tromey@redhat.com>
3782
3783 * gdb_locale.h: New file.
3784 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3785 (defs_h): Added gdb_locale.h.
3786 * configure, config.in: Rebuilt.
3787 * configure.in (PACKAGE): Define.
3788 * defs.h: Include gdb_locale.h.
3789 * main.c (captured_main): Call setlocale, bindtextdomain,
3790 textdomain.
3791
3792 2002-06-21 Dave Brolley <brolley@redhat.com>
3793
3794 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3795 * config/frv/frv.mt: New file.
3796 * config/frv/tm-frv.h: New file.
3797 * configure.tgt: Support frv-*-*.
3798 * Makefile.in (frv-tdep.o): New target.
3799 * frv-tdep.c: New file.
3800 * NEWS: Mention frv.
3801
3802 2002-06-21 Dave Brolley <brolley@redhat.com>
3803
3804 * MAINTAINERS: Add self to "Write After Approval" list.
3805
3806 2002-06-21 Grace Sainsbury <graces@redhat.com>
3807
3808 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3809 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3810 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3811 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3812 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3813
3814 * m68k-tdep.c: Include arch-utils.h
3815 (m68k_register_raw_size): Add.
3816 (m68k_register_virtual_size): Add.
3817 (m68k_register_virtual_type): Add.
3818 (m68k_register_name): Add.
3819 (m68k_stack_align): Add.
3820 (m68k_register_byte): Add.
3821 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3822 tm-m68k.h.
3823
3824 2002-06-21 Grace Sainsbury <graces@redhat.com>
3825
3826 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3827 m68k_find_saved_regs.
3828 (m68k_pop_frame): Removed saved_regs structure, and replaced
3829 references to it with frame->saved_regs.
3830 (m68k_gdbarch_init): Added function calls to initialize the
3831 gdbarch structure.
3832 (m68k_fix_call_dummy): Add.
3833 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3834 (CALL_DUMMY): Remove.
3835 (CALL_DUMMY_LENGTH): Remove.
3836 (CALL_DUMMY_START_OFFSET): Remove.
3837 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3838 (FIX_CALL_DUMMY): Remove.
3839 (PUSH_DUMMY_FRAME): Remove.
3840 (POP_FRAME): Remove.
3841
3842 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3843
3844 * parse.c (parse_fprintf): New function used to avoid calls to
3845 fprintf in bison parser generated debug code.
3846 * parser-defs.h: Declaration of new parse_fprintf function.
3847 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3848 Set YYDEBUG to 1 by default.
3849 Set YYFPRINTF as parse_fprintf.
3850
3851 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3852
3853 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3854 encoding anymore.
3855 (pointer_encoding, enum ptr_encoding): New.
3856 (execute_cfa_program): Take care about pointer encoding.
3857 (dwarf2_build_frame_info): Only call parse_frame_info for
3858 .debug_frame and .eh_frame.
3859 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3860 fixed augmentation handling, added relative addressing,
3861 ignore duplicate FDEs. Added comments.
3862 * dwarf2cfi.c: Reindented.
3863
3864 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3865
3866 * event-top.c (command_handler): Don't use space_at_cmd_start
3867 unless there is sbrk() on the host. Assign time and space data
3868 to union fields of the appropriate length.
3869
3870 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3871
3872 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3873 x86_64_register_name. Return type changed to 'const char *'.
3874 (x86_64_register_name2nr): Rename to x86_64_register_number.
3875 (x86_64_gdbarch_init): Update to reflect the change.
3876 * x86-64-tdep.h: Ditto.
3877 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3878 (supply_fpregset): Ditto.
3879
3880 2002-06-19 Andrew Cagney <cagney@redhat.com>
3881
3882 * regcache.h: Update copyright.
3883 (struct regcache, struct gdbarch): Add opaque declarations.
3884 (current_regcache): Declare global variable.
3885 (regcache_read, regcache_write): Add gdbarch parameter.
3886 (regcache_save, regcache_save_no_passthrough)
3887 (regcache_restore, regcache_restore_no_passthrough)
3888 (regcache_dup, regcache_dup_no_passthrough)
3889 (regcache_cpy, regcache_cpy_no_passthrough)
3890 (deprecated_grub_regcache_for_registers)
3891 (deprecated_grub_regcache_for_register_valid)
3892 (regcache_valid_p): Add function declarations.
3893
3894 * regcache.c: Update copyright.
3895 (regcache_descr_handle): New global variable.
3896 (struct regcache_descr): Define.
3897 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3898 (regcache_descr, xfree_regcache_descr): New functions.
3899 (struct regcache): Define.
3900 (regcache_xmalloc, regcache_xfree): New functions.
3901 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3902 (regcache_dup, regcache_dup_no_passthrough): New functions.
3903 (regcache_valid_p, regcache_read_as_address): New functions.
3904 (deprecated_grub_regcache_for_registers): New function.
3905 (deprecated_grub_regcache_for_register_valid): New function.
3906 (current_regcache): New global variable.
3907 (register_buffer): Add regcache parameter. Update calls.
3908 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3909 (read_register_gen, write_register_gen): Update register_buffer
3910 call. Test for legacy_p instead of gdbarch_register_read_p or
3911 gdbarch_register_write_p.
3912 (regcache_collect): Update register_buffer call.
3913 (build_regcache): Rewrite. Use deprecated grub functions.
3914 (regcache_save, regcache_save_no_passthrough): New functions.
3915 (regcache_restore, regcache_restore_no_passthrough): New
3916 functions.
3917 (_initialize_regcache): Create the regcache_data_handle. Swap
3918 current_regcache global variable.
3919
3920 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3921 parameter to regcache_read and regcache_write calls.
3922 (sh4_register_read): Ditto.
3923 (sh64_pseudo_register_read): Ditto.
3924 (sh64_register_read): Ditto.
3925 (sh_pseudo_register_write): Ditto.
3926 (sh4_register_write): Ditto.
3927 (sh64_pseudo_register_write): Ditto.
3928 (sh64_register_write): Ditto.
3929
3930 * defs.h (XCALLOC): Define.
3931
3932 2002-06-19 Grace Sainsbury <graces@redhat.com>
3933
3934 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3935 * m68k-tdep.c (m68k_gdbarch_init): Added.
3936 (m68k_dump_tdep): Added.
3937
3938 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3939
3940 * ada-lang.c (fill_in_ada_prototype): Update comment.
3941
3942 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3943
3944 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3945 MIPS_ABI_LAST.
3946 (mips_abi_string, mips_abi_strings): New.
3947 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3948 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3949 tdep->mips_abi_string. Honor mips_abi_string. Default to
3950 O32 if no ABI is found.
3951 (mips_dump_tdep): Use mips_abi_strings.
3952 (mips_abi_update): New function.
3953 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3954 ``set mips abi'' and ``show mips abi''. Check the size of
3955 mips_abi_strings.
3956
3957 2002-06-19 Andrew Cagney <cagney@redhat.com>
3958
3959 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3960 constant.
3961
3962 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3963
3964 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3965 current frame using only the first stack size adjustment. All
3966 subsequent size adjustments are not considered to be part of
3967 the "static" part of the current frame.
3968 Compute the address of the saved registers relative to the
3969 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3970 in use in this frame.
3971
3972 2002-06-18 Don Howard <dhoward@redhat.com>
3973
3974 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3975 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3976 suggesting this solution.
3977
3978 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3979
3980 * config/romp/xm-rtbsd.h: Delete file.
3981 * config/romp/rtbsd.mh: Delete file.
3982
3983 2002-06-18 Keith Seitz <keiths@redhat.com>
3984
3985 * breakpoint.c (condition_command): Post breakpoint_modify
3986 when a condition is added to an existing breakpoint.
3987 (commands_command): Likewise for commands.
3988 (set_ignore_count): Likewise for ignore counts.
3989 If no tty, do not simply return, still need to send event
3990 notification.
3991 (ignore_command): Only print a newline if the command came
3992 from a tty.
3993 Don't call breakpoints_changed, since this is now properly
3994 handled by set_ignore_count.
3995
3996 2002-06-18 Andrew Cagney <cagney@redhat.com>
3997
3998 * MAINTAINERS: Note that cris-elf target can be compiled with
3999 -Werror.
4000 * cris-tdep.c (cris_register_name): Make return type constant.
4001 (cris_breakpoint_from_pc): Ditto.
4002
4003 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4004
4005 * frame.h (struct frame_info): Change type of context to
4006 'struct context'.
4007
4008 2002-06-17 Andrew Cagney <cagney@redhat.com>
4009
4010 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4011 pointer.
4012 * gdbarch.h, gdbarch.c: Regenerate.
4013 * config/mips/tm-mips.h (mips_register_name): Update.
4014 * i386-tdep.h (i386_register_name): Update.
4015 * mips-tdep.c (mips_register_name): Update
4016 * alpha-tdep.c (alpha_register_name): Update.
4017 * arch-utils.c (legacy_register_name): Update.
4018 * arch-utils.h (legacy_register_name): Update.
4019 * avr-tdep.c (avr_register_name): Update.
4020 * ia64-tdep.c (ia64_register_name): Update.
4021 * i386-tdep.c (i386_register_name): Update.
4022 * sparc-tdep.c (sparc32_register_name): Update.
4023 (sparc64_register_name): Update.
4024 (sparclite_register_name): Update.
4025 (sparclet_register_name): Update.
4026 * sh-tdep.c (sh_generic_register_name): Update.
4027 (sh_sh_register_name): Update.
4028 (sh_sh3_register_name): Update.
4029 (sh_sh3e_register_name): Update.
4030 (sh_sh_dsp_register_name): Update.
4031 (sh_sh3_dsp_register_name): Update.
4032 (sh_sh4_register_name): Update.
4033 (sh_sh64_register_name): Update.
4034 * s390-tdep.c (s390_register_name): Update.
4035 * rs6000-tdep.c (rs6000_register_name): Update.
4036 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4037 (ns32k_register_name_32382): Update.
4038 * d10v-tdep.c (d10v_ts2_register_name): Update.
4039 (d10v_ts3_register_name): Update.
4040 * xstormy16-tdep.c (xstormy16_register_name): Update.
4041 * vax-tdep.c (vax_register_name): Update.
4042 * v850-tdep.c (v850_register_name): Update.
4043 * m68hc11-tdep.c (m68hc11_register_name): Update.
4044 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4045 (am33_register_name): Update.
4046
4047 2002-06-17 Grace Sainsbury <graces@redhat.com>
4048
4049 * m68k-tdep.c: Reindented.
4050
4051 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4052
4053 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4054 list of predefined types.
4055
4056 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4057
4058 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4059 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4060 REGISTER_CONVERT_TO_RAW): Remove defines.
4061 (i386_register_virtual_type, i386_register_convertible,
4062 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4063 Remove prototypes.
4064 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4065 macros mentioned above.
4066
4067 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4068 (i386lynx_saved_pc_after_call): Remove prototype.
4069 * i386ly-tdep.c: Include "i386-tdep.h".
4070 (i386lynx_saved_pc_after_call): Make static. Use
4071 read_memory_nobpt instead of read_memory. Use
4072 read_memory_unsigned_integer instead of read_memory_integer.
4073 (i386lynx_init_abi): New function.
4074 (i386lynx_coff_osabi_sniffer): New function.
4075 (_initialize_i386bsd_tdep): New function.
4076
4077 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4078 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4079 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4080 (i386_fix_call_dummy): Remove prototype.
4081 * i386-tdep.c (i386_call_dummy_words): New variable.
4082 (i386_gdbarch_init): Adjust for removal of the
4083 macros mentioned above.
4084
4085 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4086
4087 * command.h (add_setshow_auto_boolean_cmd): Replace
4088 add_set_auto_boolean_cmd.
4089 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4090 add_set_auto_boolean_cmd.
4091 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4092 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4093 mask-address'' command.
4094 (show_mask_address): Add cmd parameter.
4095 * remote.c (add_packet_config_cmd): Update. Change type of
4096 set_func and show_func to cmd_sfunc_ftype.
4097 (_initialize_remote): Update `set remote Z-packet'
4098 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4099 (show_remote_protocol_e_packet_cmd): Ditto.
4100 (show_remote_protocol_E_packet_cmd): Ditto.
4101 (show_remote_protocol_P_packet_cmd): Ditto.
4102 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4103 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4104 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4105 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4106 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4107 (show_remote_protocol_Z_packet_cmd): Ditto.
4108 (show_remote_protocol_binary_download_cmd): Ditto.
4109 (show_remote_cmd): Pass NULL to all of above.
4110
4111 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4112
4113 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4114 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4115 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4116 POP_FRAME): Remove defines.
4117 (i386_push_arguments, i386_store_struct_return,
4118 i386_extract_return_value, i386_store_return_value,
4119 i386_extract_struct_value_address, i386_push_dummy_frame,
4120 i386_pop_frame): Renove prototypes.
4121 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4122 macros mentioned above.
4123
4124 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4125
4126 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4127 add_set_boolean_cmd.
4128 (add_setshow_cmd): New function.
4129 * command.h (add_setshow_boolean_cmd): Replace
4130 add_set_boolean_cmd.
4131 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4132 and ``set rdiromatzero''.
4133 * maint.c (_initialize_maint_cmds): Update commented out code.
4134 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4135 * target.c (initialize_targets): Update `set
4136 trust-readonly-sections'.
4137 * remote.c (_initialize_remote): Update `set remotebreak'.
4138
4139 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4140
4141 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4142 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4143 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4144 fit into multi-arch framework.
4145 (i386_breakpoint_from_pc): New function.
4146 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4147 above.
4148
4149 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4150 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4151 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4152 (i386_frameless_function_invocation, i386_frame_num_args,
4153 i386_frame_init_saved_regs): Remove prototypes.
4154 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4155 macros mentioned above.
4156
4157 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4158
4159 * cli/cli-decode.c (set_cmd_cfunc): Update.
4160 (set_cmd_sfunc): Update.
4161 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4162 (set_cmd_sfunc, set_cmd_cfunc): Update.
4163 * cli/cli-decode.h: Update.
4164
4165 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4166
4167 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4168 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4169
4170 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4171
4172 * defs.h (auto_boolean): Declare enum.
4173 * command.h (cmd_auto_boolean): Delete enum.
4174 * mips-tdep.c (mask_address_var): Update.
4175 (mips_mask_address_p): Update.
4176 (show_mask_address): Update.
4177 * remote.c (struct packet_config): Update.
4178 (update_packet_config): Update.
4179 (show_packet_config_cmd): Update.
4180 (packet_ok): Update.
4181 (add_packet_config_cmd): Update.
4182 (_initialize_remote):
4183 * command.h: Update.
4184 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4185 (do_setshow_command): Update.
4186 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4187 * cli/cli-decode.h: Update.
4188
4189 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4190
4191 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4192 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4193 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4194 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4195 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4196 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4197
4198 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4199 list of DJGPP COFF targets.
4200
4201 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4202 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4203 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4204 (FP0_REGNUM): Remove define.
4205 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4206 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4207 (i386_register_virtual_size): Remove protoype.
4208 * i386-tdep.c (i386_register_virtual_size): Removed.
4209 (i386_extract_return_value, i386_store_return_value): Use
4210 FP0_REGNUM instead of NUM_FREGS to determine whether the
4211 floating-point registers are available.
4212 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4213 Adjust for removal of macros mentioned above.
4214
4215 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4216
4217 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4218 comments.
4219 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4220 Remove prototypes.
4221 (supply_gregset, fill_gregset): Remove use of register keyword and
4222 remove declaration for regmap. Use I386_NUM_GREGS instead of
4223 NUM_REGS and NUM_FREGS.
4224 (FPREGSET_FSAVE_OFFSET): Remove.
4225 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4226 NUM_FREGS to determine whether the floating-point registers are
4227 available.
4228
4229 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4230 gnu_store_registers): Replace usage of NUM_GREGS with
4231 I386_NUM_GREGS.
4232
4233 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4234 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4235 usage of NUM_GREGS with I386_NUM_GREGS.
4236
4237 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4238
4239 * i386bsd-nat.c: Include "i386-tdep.h".
4240 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4241 I386_NUM_GREGS.
4242
4243 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4244 and associated comment. They no longer make any sense, since we
4245 don't use this file anymore on Linux.
4246
4247 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4248 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4249 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4250 elements in these arrays.
4251 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4252 MAX_NUM_REGS.
4253
4254 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4255
4256 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4257 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4258
4259 2002-06-14 Andrew Cagney <cagney@redhat.com>
4260
4261 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4262 EXTRACT_RETURN_VALUE.
4263 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4264 EXTRACT_STRUCT_VALUE_ADDRESS.
4265 * gdbarch.h, gdbarch.c: Regenerate.
4266
4267 * values.c (value_being_returned): Handle
4268 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4269 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4270
4271 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4272 * arm-tdep.c (arm_gdbarch_init): Update.
4273 * avr-tdep.c (avr_gdbarch_init): Update.
4274 * cris-tdep.c (cris_gdbarch_init): Update.
4275 * d10v-tdep.c (d10v_gdbarch_init): Update.
4276 * ia64-tdep.c (ia64_gdbarch_init): Update.
4277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4278 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4279 * s390-tdep.c (s390_gdbarch_init): Update.
4280 * sh-tdep.c (sh_gdbarch_init): Update.
4281 * s390-tdep.c (s390_gdbarch_init): Update.
4282 * sparc-tdep.c (sparc_gdbarch_init): Update.
4283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4284 * v850-tdep.c (v850_gdbarch_init): Update.
4285 * vax-tdep.c (vax_gdbarch_init): Update.
4286 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4288
4289 * config/arc/tm-arc.h: Update.
4290 * config/d30v/tm-d30v.h: Update.
4291 * config/fr30/tm-fr30.h: Update.
4292 * config/h8300/tm-h8300.h: Update.
4293 * config/h8500/tm-h8500.h: Update.
4294 * config/i386/tm-i386.h: Update.
4295 * config/i386/tm-ptx.h: Update.
4296 * config/i386/tm-symmetry.h: Update.
4297 * config/i960/tm-i960.h: Update.
4298 * config/m32r/tm-m32r.h: Update.
4299 * config/m68k/tm-delta68.h: Update.
4300 * config/m68k/tm-linux.h: Update.
4301 * config/m68k/tm-m68k.h: Update.
4302 * config/m88k/tm-m88k.h: Update.
4303 * config/mcore/tm-mcore.h: Update.
4304 * config/mips/tm-mips.h: Update.
4305 * config/mn10200/tm-mn10200.h: Update.
4306 * config/pa/tm-hppa.h: Update.
4307 * config/pa/tm-hppa64.h: Update.
4308 * config/sparc/tm-sp64.h: Update.
4309 * config/sparc/tm-sparc.h: Update.
4310 * config/sparc/tm-sparclet.h: Update.
4311 * config/z8k/tm-z8k.h: Update.
4312
4313 2002-06-14 Andrew Cagney <cagney@redhat.com>
4314
4315 * Makefile.in (i386_linux_tdep_h): Define.
4316 (i386_tdep_h, i387_tdep_h): Define.
4317 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4318 $(i386_tdep_h) and $(i387_tdep_h).
4319 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4320
4321 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4322
4323 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4324 Already covered by the default.
4325
4326 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4327 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4328 (i386_gdbarch_init): Initialize long_double_format and long_double
4329 bit.
4330
4331 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4332 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4333 Move these to ...
4334 * config/i386/i386sol2.mh: ... here.
4335 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4336 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4337 (SIGCONTEXT_PC_OFFSET): Remove define.
4338 (IN_SIGTRAMP): Remove define.
4339 * i386-sol2-tdep.c: New file.
4340
4341 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4342 * config/i386/tm-i386nw.h: Removed.
4343
4344 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4345 USE_STRUCT_CONVENTION): Remove defines.
4346 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4347 (get_longjmp_target): Remove prototype.
4348 (IN_SIGTRAMP): Remove define.
4349 (i386bsd_in_sigtramp): Remove prototype.
4350 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4351 function. Update comment accordingly
4352 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4353 (FRAME_SAVED_PC): Remove define.
4354 (i386bsd_frame_saved_pc): Remove prototype.
4355 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4356 GET_LONGJMP_TARGET): Remove defines.
4357 (get_longjmp_target): Remove prototype.
4358 (IN_SIGTRAMP): Remove define.
4359 (i386bsd_in_sigtramp): Remove prototype.
4360 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4361 function. Update comment accordingly
4362 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4363 (FRAME_SAVED_PC): Remove define.
4364 (i386bsd_frame_saved_pc): Remove prototype.
4365 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4366 Remove prototype.
4367 (USE_STRUCT_CONVENTION): Remove prototype.
4368 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4369 declaration.
4370 (_initialize_i386bsd_nat): Revise logic to determine some
4371 constants at compile time when compiling a native GDB. Warn if
4372 things don't match up with what we expect.
4373 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4374 Remove variables.
4375 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4376 to use date stored in `struct gdbarch_tdep'.
4377 (i386bsd_sigcontext_offset): Remove varaible.
4378 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4379 stored in `struct gdbarch_tdep'.
4380 (i386bsd_frame_saved_pc): Make static.
4381 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4382 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4383 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4384 i386fbsd4_sc_pc_offset): New variables.
4385 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4386 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4387 functions.
4388 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4389 functions.
4390 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4391 Modify the value of i386fbsd_sigtramp_start and
4392 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4393 i386fbsd_sigtramp_end.
4394 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4395 function.
4396
4397 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4398 define to i386-linux-tdep.h.
4399 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4400 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4401 defines.
4402 (i386_linux_register_name, i386_linux_register_byte,
4403 i386_linux_register_raw_size): Remove prototypes.
4404 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4405 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4406 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4407 TARGET_WRITE_PC): Remove defines.
4408 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4409 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4410 i386_linux_write_pc): Remove prototypes.
4411 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4412 (get_longjmp_target): Remove prototype.
4413 * i386-linux-tdep.h: New file.
4414 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4415 * i386-linux-tdep.c: Include "i386-tdep.h" and
4416 "i386-linux-tdep.h".
4417 (i386_linux_register_name, i386_linux_register_byte,
4418 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4419 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4420 Make static.
4421 (i386_linux_init_abi): New function.
4422 (_initialize_i386_linux_tdep): New function.
4423
4424 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4425 (i386_saved_pc_after_call): Remove prototype.
4426 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4427 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4428 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4429 (i386_register_name, i386_stab_reg_to_regnum,
4430 i386_dwarf_reg_to_regnum): Remove prototypes.
4431 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4432 SIZEOF_SSE_REGS): Remove defines.
4433 (REGISTER_BYTES): Remove define.
4434 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4435 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4436 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4437 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4438 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4439 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4440 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4441 (get_longjmp_target): Remove prototype.
4442 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4443 (sigtramp_saved_pc): Remove define.
4444 (i386v4_sigtramp_saved_pc): Remove prototype.
4445 * config/i386/tm-go32.h (FRAME_CHAIN,
4446 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4447 (i386go32_frame_saved_pc): Remove prototype.
4448 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4449 (get_longjmp_target): Remove prototype.
4450 * i386-tdep.h: Include "osabi.h".
4451 (enum i386_abi): Removed.
4452 (enum struct_return): New enum.
4453 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4454 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4455 sc_pc_offset members.
4456 (i386_gdbarch_register_os_abi): Remove prototype.
4457 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4458 I386_SSE_NUM_REGS): New defines.
4459 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4460 I386_SSE_SIZEOF_REGS): New defines.
4461 (i386_register_name, i386_register_byte, i386_register_raw_size):
4462 New prototypes.
4463 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4464 (i386bsd_sigtramp_saved_pc): New prototype.
4465 * i386-tdep.c: Don't include "elf-bfd.h".
4466 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4467 i386_frame_chain, i386_saved_pc_after_call): Make static.
4468 (i386_frame_saved_pc): Rewrite to call architecture dependent
4469 function to deal with signal handlers. Make static.
4470 (i386go32_frame_saved_pc): Removed.
4471 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4472 Removed.
4473 (i386_get_longjmp_target): New function.
4474 (default_struct_convention, pcc_struct_convention,
4475 reg_struct_convention, valid_conventions, struct_convention): New
4476 variables.
4477 (i386_use_struct_convention): New function.
4478 (i386v4_sigtramp_saved_pc): Renamed to
4479 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4480 (i386_pc_in_sigtramp): New function.
4481 (i386_abi_names): Removed.
4482 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4483 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4484 Removed.
4485 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4486 i386_gdbarch_register_os_abi): Removed.
4487 (struct i386_abi_handler): Removed.
4488 (i386_abi_handler_list): Removed.
4489 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4490 functions.
4491 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4492 i386_nw_init_abi): New functions.
4493 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4494 Use set_gdbarch_xxx() calls instead of relying on macros for a
4495 number of calls.
4496 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4497 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4498 Register the various architecture variants defined in this file.
4499
4500 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4501
4502 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4503 (struct main_type): Remove arg_types member. Update comments for
4504 struct field.
4505 (TYPE_ARG_TYPES): Remove.
4506 (TYPE_FN_FIELD_ARGS): Update.
4507 (smash_to_method_type): Update prototype.
4508
4509 * c-typeprint.c (cp_type_print_method_args): Take method type
4510 instead of argument list. Use new argument layout. Simplify.
4511 (c_type_print_args): Use new argument layout. Simplify.
4512 (c_type_print_base): Update call to cp_type_print_method_args.
4513 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4514 argument; use die->type instead. Update call to
4515 smash_to_method_type.
4516 (read_structure_scope): Update call to dwarf2_add_member_fn.
4517 * gdbtypes.c (allocate_stub_method): Update comment.
4518 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4519 Use new argument layout.
4520 (check_stub_method): Use new argument layout. Don't count
4521 void as an argument.
4522 (print_arg_types): Update comments. Use new argument layout.
4523 (recursive_dump_type): Don't print arg_types member.
4524 * hpread.c (hpread_read_struct_type): Use new argument layout.
4525 (fixup_class_method_type): Likewise.
4526 (hpread_type_lookup): Likewise.
4527 * stabsread.c (read_type): Update calls to read_args and
4528 smash_to_method_type.
4529 (read_args): Use new argument layout. Simplify.
4530 * valops.c (typecmp): Use new argument layout. Update parameters
4531 and comments. Simplify.
4532 (hand_function_call): Use new argument layout.
4533 (search_struct_method): Update call to typecmp.
4534 (find_overload_match): Use new argument layout.
4535
4536 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4537
4538 * NEWS: Mention multithreaded debug support for gdbserver.
4539
4540 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4541
4542 * MAINTAINERS: Mention NEWS.
4543
4544 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4545
4546 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4547 (struct mips_objfile_private, compare_pdr_entries): New.
4548 (non_heuristic_proc_desc): Read the ".pdr" section if it
4549 is present.
4550
4551 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4552
4553 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4554 (arm_debug): New static variable.
4555 (_initialize_arm_tdep): Add ``set debug arm'' command.
4556
4557 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4558
4559 * Makefile.in (sim_arm_h): Define.
4560 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4561 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4562 (arm_register_sim_regno): New function, map an internal REGNUM
4563 onto a simulator register number.
4564 (arm_gdbarch_init): Set register_sim_regno.
4565
4566 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4567
4568 * MAINTAINERS: Add self.
4569
4570 2002-06-11 Jim Blandy <jimb@redhat.com>
4571
4572 * source.c (source_info): Mention whether the symtab has
4573 information about preprocessor macros.
4574
4575 Call the command `info macro', not `show macro'.
4576 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4577 Fix error message.
4578 (_initialize_macrocmd): Register `info_macro_command' in
4579 `infolist', not `showlist'.
4580
4581 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4582
4583 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4584 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4585 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4586 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4587 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4588 unconditionally.
4589 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4590 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4591 (_initialize_mips_tdep): Remove dead code.
4592 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4593 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4594 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4595 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4596 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4597 MIPS_LAST_FP_ARG_REGNUM): Remove.
4598
4599 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4600
4601 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4602 (unwind_tmp_obstack_free, parse_frame_info)
4603 (update_context, cfi_read_fp, cfi_write_fp)
4604 (cfi_frame_chain, cfi_init_extra_frame_info)
4605 (cfi_virtual_frame_pointer): Use the above function.
4606 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4607
4608 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4609
4610 * v850-tdep.c (v850_type_is_scalar): New function.
4611 (v850_use_struct_convention): Match current gcc implementation
4612 as close as possible.
4613 (v850_push_arguments): Fix stack_offset handling. Don't write
4614 struct_addr into register. This is done by v850_store_struct_return.
4615 (v850_extract_return_value): Care for structs.
4616 (v850_store_return_value): Ditto.
4617 (v850_store_struct_return): Actually write address.
4618
4619 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4620
4621 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4622 without debug information too.
4623
4624 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4625
4626 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4627 Make multi-arch pure.
4628 * gdbarch.h, gdbarch.c: Re-generate.
4629 * arm-tdep.c (arm_print_float_info): Update.
4630 * arch-utils.h (default_print_float_info): Update.
4631 * arch-utils.c (default_print_float_info): Update.
4632 * infcmd.c (float_info): Update call.
4633
4634 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4635
4636 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4637 the front of the initialize list.
4638
4639 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4640
4641 * infrun.c (struct inferior_status): Replace fields
4642 selected_frame_address and selected_level with field
4643 selected_frame_id.
4644 (save_inferior_status): Update. Use get_frame_id.
4645 (struct restore_selected_frame_args): Delete.
4646 (restore_selected_frame): Update. Use frame_find_by_id.
4647 (restore_inferior_status): Update.
4648
4649 * breakpoint.h (struct breakpoint): Change type of
4650 watchpoint_frame to frame_id.
4651 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4652 call to get_current_frame.
4653 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4654 get_current_frame.
4655 (watchpoint_check): Use frame_find_by_id.
4656
4657 * frame.h (record_selected_frame): Delete declaration.
4658 * stack.c (record_selected_frame): Delete function.
4659
4660 * frame.h (struct frame_id): Define.
4661 (get_frame_id): Declare.
4662 (frame_find_by_id): Declare.
4663 * frame.c (frame_find_by_id): New function.
4664 (get_frame_id): New function.
4665
4666 2002-06-10 Andrey Volkov <avolkov@transas.com>
4667
4668 * ser-e7kpc.c: Fix duplicated define and call of
4669 _initialize_ser_e7000pc
4670
4671 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4672
4673 * signals/signals.c (target_signal_from_host): Fix #ifdef
4674 SIGRTMIN case.
4675 (do_target_signal_to_host): Likewise.
4676
4677 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4678
4679 * mips-tdep.c (mips_find_abi_section): New function.
4680 (mips_gdbarch_init): Call it.
4681
4682 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4683
4684 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4685 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4686 after Andrew's 2002-06-08 gdbarch change.
4687
4688 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4689
4690 * i386-linux-nat.c (suppy_gregset): Don't supply
4691 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4692 register cache.
4693 (fill_gregset): Don't fetch it under the same circumstances.
4694
4695 2002-06-09 Andrew Cagney <cagney@redhat.com>
4696
4697 * Makefile.in (callback_h): Define.
4698 (remote_sim_h): Update path to remote-sim.h.
4699 (remote-rdp.o): Add $(callback_h).
4700 (remote-sim.o): Use $(callback_h).
4701 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4702 * remote-rdp.c: Include "gdb/callback.h".
4703
4704 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4705
4706 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4707 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4708
4709 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4710
4711 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4712 * rdi-share/serpardr.c: Ditto.
4713 * rdi-share/unixcomm.c: Ditto.
4714 * rdi-share/serdrv.c: Ditto.
4715 * rdi-share/hostchan.h: Ditto.
4716 * rdi-share/hostchan.c: Ditto.
4717 * rdi-share/host.h: Ditto.
4718 * rdi-share/devsw.c: Ditto.
4719
4720 * objfiles.h: Change type of obj_private to void pointer.
4721 * pa64solib.c: Update copyright. Don't include "assert.h", use
4722 strcmp instead of STREQ, use LONGEST, do not use PTR
4723 * somsolib.c: Ditto.
4724
4725 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4726 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4727 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4728
4729 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4730
4731 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4732 (default_get_saved_register): Delete function.
4733 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4734 generic_unwind_get_saved_register.
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736
4737 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4738
4739 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4740 generic_func_frame_chain_valid.
4741 * gdbarch.h, gdbarch.c: Re-generate.
4742 * blockframe.c (generic_func_frame_chain_valid): Only check
4743 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4744 passing FP to PC_IN_CALL_DUMMY.
4745 Fix PR gdb/360.
4746
4747 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4748
4749 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4750 (register_gdbarch_data): Initialize init_p.
4751 (gdbarch_data): Initialize data pointer using the init function.
4752 (init_gdbarch_data): Delete function.
4753 (gdbarch_update_p): Update.
4754 (initialize_non_multiarch): Update.
4755 (struct gdbarch): Add field initialized_p.
4756 * gdbarch.h, gdbarch.c: Re-generate.
4757
4758 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4759
4760 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4761 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4762 better do the things actually here.
4763 * x86-64-tdep.c (x86_64_register_name2nr): New.
4764 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4765 (x86_64_gdbarch_init): Respect the above change.
4766 * x86-64-tdep.h (x86_64_register_name2nr)
4767 (x86_64_register_nr2name): Add prototypes.
4768 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4769
4770 2002-06-06 Michael Snyder <msnyder@redhat.com>
4771
4772 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4773 Delete extra braces and re-indent.
4774 (d10v_store_return_value): Char return values
4775 must be shifted over by one byte in R0.
4776 (d10v_extract_return_value): Delete extra braces, re-indent.
4777
4778 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4779
4780 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4781 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4782 (d10v_integer_to_address): Rewrite.
4783 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4784 the d10v specific functions which take care of converting to the
4785 correct space.
4786
4787 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4788
4789 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4790 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4791
4792 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4793
4794 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4795 includes.
4796 * config/tm-linux.h: Ditto.
4797 * config/alpha/tm-alphalinux.h: Ditto.
4798 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4799 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4800 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4801 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4802 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4803 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4804 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4805 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4806 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4807 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4808 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4809 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4810 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4811 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4812 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4813 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4814 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4815 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4816 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4817 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4818 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4819 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4820 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4821 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4822 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4823 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4824 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4825 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4826 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4827 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4828 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4829 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4830 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4831 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4832 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4833 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4834 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4835
4836 2002-05-04 Aidan Skinner <aidan@velvet.net>
4837
4838 * ada-exp.tab.c: New file
4839 * ada-exp.y: New file
4840 * ada-lang.c: New file
4841 * ada-lang.h: New file
4842 * ada-lex.c: New file
4843 * ada-lex.l: New file
4844 * ada-tasks.c: New file
4845 * ada-typeprint.c: New file
4846 * ada-valprint.c: New file
4847
4848 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4849
4850 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4851 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4852
4853 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4854
4855 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4856 insetead of ppc-linux-tdep.o.
4857 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4858 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4859
4860 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4861
4862 2002-05-07 Christian Groessler <chris@groessler.org>
4863 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4864 bit register contents for little endian hosts.
4865
4866 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4867
4868 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4869 any maintainer.
4870
4871 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4872
4873 * gdbarch.h: Regenerate.
4874
4875 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4876
4877 * MAINTAINERS: Add everyone to write-after-approval list.
4878
4879 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4880
4881 * stack.c (frame_info): Use frame_register_unwind instead of
4882 saved_regs. Mention when the SP is on the stack or in a register.
4883
4884 * frame.h (frame_register_unwind_ftype): Define. Document.
4885 (struct frame_info): Add field register_unwind and
4886 register_unwind_cache.
4887 (frame_register_unwind): Declare.
4888 (generic_unwind_get_saved_register): Declare.
4889
4890 * frame.c (frame_register_unwind): New function.
4891 (generic_unwind_get_saved_register): New function.
4892
4893 * blockframe.c (generic_call_dummy_register_unwind): New function.
4894 (frame_saved_regs_register_unwind): New function.
4895 (set_unwind_by_pc): New function.
4896 (create_new_frame): New function.
4897 (get_prev_frame): New function.
4898
4899 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4900
4901 * a29k-share/: Delete directory.
4902 * remote-vx29k.c: Delete file.
4903
4904 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4905
4906 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4907 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4908
4909 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4910
4911 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4912 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4913 (sparc64nbsd-nat.o)
4914 (sparcnbsd-nat.o)
4915 (sparcnbsd-tdep.o): New dependency lists.
4916 * NEWS: Note new UltraSPARC NetBSD native configuration.
4917 * configure.host (sparc64-*-netbsd*): New host.
4918 * configure.tgt (sparc-*-netbsdelf*)
4919 (sparc-*-netbsd*): Set gdb_target to nbsd.
4920 (sparc64-*-netbsd*): New target.
4921 * sparc64nbsd-nat.c: New file.
4922 * sparcnbsd-nat.c: New file.
4923 * sparcnbsd-tdep.c: New file.
4924 * sparcnbsd-tdep.h: New file.
4925 * config/sparc/nbsd.mt: New file.
4926 * config/sparc/nbsd64.mh: New file.
4927 * config/sparc/nbsd64.mt: New file.
4928 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4929 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4930 (HOST_IPC): Remove.
4931 * config/sparc/nbsdaout.mt: Remove.
4932 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4933 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4934 (HOST_IPC): Remove.
4935 * config/sparc/nbsdelf.mt: Remove.
4936 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4937 sparc-nat.c compatiblity defines.
4938 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4939 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4940 * config/sparc/tm-nbsd64.h: New file.
4941 * config/sparc/tm-nbsdaout.h: Remove.
4942 * config/sparc/xm-nbsd.h: Remove.
4943
4944 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4945
4946 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4947 * sparc-tdep.c: Include osabi.h.
4948 (gdbarch_tdep): Add osabi member.
4949 (_initialize_sparc_tdep): Use gdbarch_register.
4950 (sparc_gdbarch_init): Use generic OS ABI framework.
4951 (sparc_dump_tdep): New function.
4952
4953 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4954
4955 * corefile.c (do_captured_read_memory_integer): Return non-zero
4956 result.
4957 (safe_read_memory_integer): Copy result of memory read when
4958 status is non-zero. Also, add comments.
4959
4960 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4961
4962 * Makefile.in (ppc_tdep_h): Define.
4963 (ppc-linux-nat.o)
4964 (ppc-linux-tdep.o)
4965 (rs6000-tdep.o): Use $(ppc_tdep_h).
4966 (ppc-sysv-tdep.o)
4967 (ppcnbsd-nat.o)
4968 (ppcnbsd-tdep.o): New dependency lists.
4969 * ppc-tdep.h: Use generic OS ABI framework.
4970 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4971 (ppc_linux_init_abi): New functions.
4972 (ppc_sysv_abi_broken_use_struct_convention)
4973 (ppc_sysv_abi_use_struct_convention)
4974 (ppc_sysv_abi_push_arguments): Move to...
4975 * ppc-sysv-tdep.c: ...here.
4976 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4977 * rs6000-tdep.c (process_note_abi_tag_sections)
4978 (get_elfosabi): Remove.
4979 (rs6000_gdbarch_init): Use generic OS ABI framework.
4980 (rs6000_dump_tdep): New function.
4981 (_initialize_rs6000_tdep): Use gdbarch_register.
4982 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4983 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4984 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4985 of ppc-linux-tdep.o.
4986 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4987 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4988 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4989 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4990 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4991 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4992
4993 2002-05-29 Jim Blandy <jimb@redhat.com>
4994
4995 * macroscope.c (default_macro_scope): Put `void' in empty argument
4996 list.
4997
4998 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4999
5000 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5001 * arch-utils.c: Include "sim-regno.h".
5002 * gdbarch.sh: Don't include "sim-regno.h".
5003 * gdbarch.h, gdbarch.c: Regenerate.
5004 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5005 here.
5006 * arch-utils.h (legacy_register_sim_regno): To here.
5007 * remote-sim.c (legacy_register_sim_regno): Move function from
5008 here.
5009 * arch-utils.c (legacy_register_sim_regno): To here.
5010
5011 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5012
5013 * sim-regno.h: New file.
5014 * Makefile.in (sim_regno_h): Define.
5015 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5016 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5017 (legacy_register_sim_regno): New function.
5018 (one2one_register_sim_regno): New function.
5019 (gdbsim_fetch_register): Rewrite.
5020 (gdbsim_store_register): Only store a register when
5021 REGISTER_SIM_REGNO is valid.
5022 * d10v-tdep.c: Include "sim-regno.h".
5023 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5024 (d10v_ts3_register_sim_regno): Ditto.
5025 * gdbarch.sh: Include "sim-regno.h".
5026 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5027 * gdbarch.h, gdbarch.c: Regenerate.
5028 * arch-utils.h (default_register_sim_regno): Delete declaration.
5029 * arch-utils.c (default_register_sim_regno): Delete function.
5030
5031 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5032
5033 * ppcnbsd-nat.c: Rewrite.
5034 * ppcnbsd-tdep.c: New file.
5035 * ppcnbsd-tdep.h: New file.
5036 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5037 solib.o, and solib-svr4.o.
5038 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5039 nbsd-tdep.o, and corelow.o.
5040
5041 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5042
5043 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5044 `tr' and `sed'. Mention that `broken' targets are not expected to
5045 build.
5046
5047 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5048
5049 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5050 Let PC point right after the prologue before looking up symbols.
5051
5052 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5053
5054 * i386-tdep.c (i386_register_virtual_type): Return
5055 builtin_type_vec128i for SSE registers.
5056
5057 * gdbtypes.h (builtin_type_vec128i): Declare.
5058
5059 * gdbtypes.c (build_builtin_type_vec128i): New function.
5060 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5061 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5062 (build_gdbtypes): Initialize new builtin vector types.
5063 (_initialize_gdbtypes): Register new vector types with gdbarch.
5064
5065 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5066
5067 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5068 since it has been multi-arch'd.
5069 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5070 Move Alpha and VAX multi-arch news entries to same section
5071 as other multi-arch news.
5072
5073 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5074
5075 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5076 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5077 static. Rename some register numbers to put them in ns32k-tdep
5078 private namespace.
5079 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5080 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5081 functions.
5082 (_initialize_ns32k_tdep): Use gdbarch_register.
5083 * ns32k-tdep.h: New file.
5084 * ns32knbsd-tdep.c: New file.
5085 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5086 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5087 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5088 REGISTER_BYTES, REGISTER_BYTE): Remove.
5089 * config/ns32k/tm-ns32k.h: New file.
5090 * config/ns32k/tm-umax.h: Remove.
5091
5092 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5093
5094 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5095 ns32k_store_struct_return, ns32k_extract_return_value,
5096 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5097 functions.
5098 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5099 ns32k_saved_pc_after_call.
5100 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5101 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5102 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5103 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5104 ns32k_extract_struct_value_address.
5105
5106 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5107
5108 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5109 ns32k_fix_call_dummy): New.
5110 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5111 ns32k_call_dummy_words.
5112 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5113 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5114 CALL_DUMMY_NARGS): Remove.
5115 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5116
5117 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5118
5119 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5120 ns32k_frame_saved_pc, ns32k_frame_args_address,
5121 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5122 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5123 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5124 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5125 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5126 (BREAKPOINT): Remove..
5127 (FRAME_CHAIN): Define as ns32k_frame_chain.
5128 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5129 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5130 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5131 (FRAME_FIND_SAVED_REGS): Remove.
5132 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5133 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5134 (POP_FRAME): Define as ns32k_pop_frame.
5135
5136 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5137
5138 * ns32k-tdep.c (ns32k_register_byte_32082,
5139 ns32k_register_byte_32382, ns32k_register_raw_size,
5140 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5141 functions.
5142 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5143 ns32k_register_byte_32382.
5144 * config/ns32k/tm-umax.h: Update copyright years.
5145 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5146 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5147 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5148 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5149 (ns32k_get_enter_addr): Fix prototype.
5150
5151 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5152
5153 * ns32k-tdep.c: Update copyright years.
5154 (ns32k_register_name_32082): New function.
5155 (ns32k_register_name_32382): Ditto.
5156 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5157 (REGISTER_NAME): Define as ns32k_register_name_32382.
5158 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5159 (REGISTER_NAME): Define as ns32k_register_name_32082.
5160
5161 2002-05-24 Jim Blandy <jimb@redhat.com>
5162
5163 * dwarf2read.c (free_line_header): Use xfree, not free.
5164
5165 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5166
5167 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5168 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5169
5170 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5171
5172 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5173
5174 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5175
5176 From Ross Alexander at NEC Europe:
5177 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5178
5179 2002-05-23 Michael Snyder <msnyder@redhat.com>
5180
5181 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5182 for input, rather than parse_and_eval_address.
5183
5184 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5185
5186 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5187 * Makefile.in (sim_d10v_h): Update definition.
5188
5189 2002-05-24 Andrew Cagney <cagney@redhat.com>
5190
5191 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5192 change `2002-05-22 Michael Snyder' below.
5193 (d10v_push_arguments): Ditto.
5194 (d10v_extract_return_value): Ditto.
5195
5196 2002-05-23 Jim Blandy <jimb@redhat.com>
5197
5198 * macrotab.c (check_for_redefinition): Don't complain if the new
5199 definition is the same as the previous one. Take more arguments
5200 to allow the comparison.
5201 (macro_define_object, macro_define_function): Pass more arguments
5202 to check_for_redefinition.
5203
5204 2002-05-22 Michael Snyder <msnyder@redhat.com>
5205
5206 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5207 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5208 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5209 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5210 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5211 Add a temp variable to save a call (and a memory read).
5212 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5213 if possible (so that PC_IN_CALL_DUMMY will work).
5214
5215 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5216
5217 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5218
5219 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5220
5221 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5222 fde->cie_ptr.
5223 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5224 (dwarf2_build_frame_info): Add offset to fde->initial_location
5225 so that frames of shared libraries are mapped correctly.
5226 (execute_stack_op): Change type of 'result' from ULONGEST to
5227 CORE_ADDR.
5228
5229 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5230
5231 * config/alpha/tm-nbsd.h: Include solib.h.
5232
5233 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5234
5235 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5236 assumptions about the host's byte order.
5237
5238 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5239
5240 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5241 to dependency list.
5242 * alphanbsd-tdep.c: Include solib-svr4.h.
5243 * shnbsd-tdep.c: Ditto.
5244
5245 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5246
5247 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5248 nbsd-tdep.h to dependency list.
5249 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5250 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5251 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5252 nbsdaout.mh and nbsdelf.mh consistently.
5253 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5254 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5255 nbsdaout.mt and nbsdelf.mh consistently.
5256 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5257 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5258 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5259 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5260 a.out shared library stuff from here...
5261 * config/nm-nbsdaout.h: ...to here.
5262 * config/tm-nbsd.h: Remove.
5263 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5264 * config/arm/nbsd.mh: Remove.
5265 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5266 nbsd-tdep.o.
5267 * config/arm/nbsdaout.mh: New file.
5268 * config/arm/nbsdelf.mh: New file.
5269 * config/arm/nm-nbsdaout.h: New file.
5270 * config/i386/nbsd.mh: Remove.
5271 * config/i386/nbsd.mt: Remove.
5272 * config/i386/nbsdaout.mh: New file.
5273 * config/i386/nbsdaout.mt: New file.
5274 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5275 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5276 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5277 i386_register_u_addr): Remove.
5278 * config/i386/nm-nbsdaout.h: New file.
5279 * config/i386/nm-nbsdelf.h: Remove.
5280 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5281 (USE_STRUCT_CONVENTION): Remove.
5282 * config/i386/tm-nbsdaout.h: New file.
5283 * config/i386/tm-nbsdelf.h: Remove.
5284 * config/m68k/nbsd.mh: Remove.
5285 * config/m68k/nbsd.mt: Remove.
5286 * config/m68k/nbsdaout.mh: New file.
5287 * config/m68k/nbsdaout.mt: New file.
5288 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5289 * config/m68k/nm-nbsdaout.h: New file.
5290 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5291 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5292 * config/ns32k/nbsd.mh: Remove.
5293 * config/ns32k/nbsd.mt: Remove.
5294 * config/ns32k/nbsdaout.mh: New file.
5295 * config/ns32k/nbsdaout.mt: New file.
5296 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5297 * config/ns32k/nm-nbsdaout.h: New file.
5298 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5299 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5300 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5301 (SVR4_SHARED_LIBS): Remove.
5302 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5303 * config/sparc/nbsd.mh: Remove.
5304 * config/sparc/nbsd.mt: Remove.
5305 * config/sparc/nbsdaout.mh: New file.
5306 * config/sparc/nbsdaout.mt: New file.
5307 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5308 * config/sparc/nbsdelf.mt: New file.
5309 * config/sparc/nm-nbsdaout.h: New file.
5310 * config/sparc/nm-nbsdelf.h: Remove.
5311 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5312 * config/sparc/tm-nbsdaout.h: New file.
5313
5314 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5315
5316 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5317 mipsnbsd-tdep.c
5318 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5319
5320 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5321
5322 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5323 shnbsd-nat.c.
5324 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5325
5326 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5327
5328 * NEWS: Note new MIPS NetBSD native configuration.
5329 * configure.host (mips*-*-netbsd*): New host.
5330 * configure.tgt (mips*-*-netbsd*): New target.
5331 * mipsnbsd-nat.c: New file.
5332 * mipsnbsd-tdep.c: New file.
5333 * mipsnbsd-tdep.h: New file.
5334 * config/mips/nbsd.mh: New file.
5335 * config/mips/nbsd.mt: New file.
5336 * config/mips/nm-nbsd.h: New file.
5337 * config/mips/tm-nbsd.h: New file.
5338
5339 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5340
5341 * Makefile.in (SFILES): Add osabi.c.
5342 (COMMON_OBS): Add osabi.o.
5343 (osabi.o): New dependency list.
5344 * osabi.c: New file.
5345 * osabi.h: New file.
5346 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5347
5348 * Makefile.in (alpha_tdep_h): Define and use instead of
5349 alpha-tdep.h.
5350 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5351 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5352 Remove.
5353 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5354 * alpha-tdep.h: Include osabi.h.
5355 (alpha_abi): Remove.
5356 (gdbarch_tdep): Use generic OS ABI framework.
5357 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5358 gdbarch_register_osabi.
5359 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5360 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5361 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5362
5363 * Makefile.in (sh_tdep_h): Add osabi.h.
5364 * sh-tdep.h (sh_osabi): Remove.
5365 (gdbarch_tdep): Use generic OS ABI framework.
5366 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5367 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5368 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5369 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5370
5371 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5372 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5373 gdbarch_register_osabi.
5374 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5375 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5376 (get_elfosabi): Rename to...
5377 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5378 ABI framework support routines.
5379 (arm_gdbarch_init): Use generic OS ABI framework.
5380 (arm_dump_tdep): Likewise.
5381 (_initialize_arm_tdep): Likewise.
5382 * arm-tdep.h: Include osabi.h.
5383 (arm_abi): Remove.
5384 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5385 osabi member.
5386 (arm_gdbarch_register_os_abi): Remove prototype.
5387 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5388 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5389
5390 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5391 * mips-tdep.c: Include osabi.h.
5392 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5393 OS ABI framework.
5394
5395 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5396
5397 * h8300-tdep.c: Fix formatting.
5398
5399 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5400
5401 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5402 printing vector registers.
5403
5404 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5405
5406 From Fernando Nasser:
5407 * remote.c (remote_async_open_1): Re-throw the exception when the
5408 connection fails.
5409 (remote_cisco_open): Ditto.
5410 (remote_open_1): Ditto.
5411
5412 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5413
5414 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5415 (remote_start_remote): Add uiout parameter. Pass through to
5416 remote_start_remote_dummy.
5417 (remote_open_1): Use catch_exception instead of catch_errors.
5418 (remote_async_open_1): Ditto.
5419 (remote_cisco_open): Ditto.
5420
5421 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5422
5423 * remote.c (remote_start_remote): Replace PTR with void pointer.
5424 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5425 static.
5426
5427 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5428
5429 * gdb_indent.sh: Allow the script to be run in the sim directory.
5430
5431 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5432
5433 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5434 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5435
5436 * corelow.c (core_open): Only call set_gdbarch_from_file if
5437 exec_bfd is NULL.
5438
5439 2002-05-17 Andrey Volkov <avolkov@transas.com>
5440
5441 * h8300-tdep.c: Add support of EXR register
5442 * config/h8300/tm-h8300.h: Ditto.
5443
5444 2002-05-17 Andrey Volkov <avolkov@transas.com>
5445
5446 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5447
5448 2002-05-17 Andrey Volkov <avolkov@transas.com>
5449
5450 * h8300-tdep.c: Change literal regnums to REGNO.
5451
5452 2002-05-17 Jim Blandy <jimb@redhat.com>
5453
5454 * NEWS: Note addition of macro support.
5455
5456 Expand preprocessor macros in C expressions.
5457 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5458 (scan_macro_expansion, scanning_macro_expansion,
5459 finished_macro_expansion): New function declarations.
5460 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5461 variable declarations.
5462 * parser-defs.h (expression_context_pc): New declaration.
5463 * parse.c (expression_context_pc): New variable.
5464 (parse_exp_1): Set expression_context_pc, as well as
5465 expression_context_block.
5466 * c-exp.y (yylex): If we're not already reading the result of a
5467 macro expansion, try to macro-expand the next token. When we're
5468 done scanning a macro expansion, switch back to the mainline text.
5469 Commas and `if's in a macro's expansion don't terminate the input.
5470 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5471 (macro_original_text, macro_expanded_text,
5472 expression_macro_lookup_func, expression_macro_lookup_baton): New
5473 variables.
5474 (scan_macro_expansion, scanning_macro_expansion,
5475 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5476 c_preprocess_and_parse): New functions.
5477 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5478 c_preprocess_and_parse, instead of c_parse.
5479 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5480 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5481
5482 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5483
5484 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5485 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5486 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5487
5488 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5489
5490 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5491
5492 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5493
5494 * Makefile.in (sh_tdep_h): Define and use.
5495 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5496 register enum): Move to...
5497 * * sh-tdep.h: ...here.
5498 * sh-tdep.c: Include sh-tdep.h.
5499 * sh3-rom.c: Likewise.
5500 * shnbsd-tdep.c: Likewise.
5501
5502 2002-05-16 Michael Snyder <msnyder@redhat.com>
5503
5504 * arm-tdep.c: Spelling fix in comment.
5505
5506 2002-05-16 Jim Blandy <jimb@redhat.com>
5507
5508 Add commands for manually expanding macros and showing their
5509 definitions.
5510 * macrocmd.c, macroscope.c, macroscope.h: New files.
5511 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5512 (macroscope_h): New variable.
5513 (HFILES_NO_SRCDIR): Add macroscope.h.
5514 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5515 (macroscope.o, macrocmd.o): New rules.
5516
5517 Teach the Dwarf 2 reader to read macro information.
5518 * dwarf2read.c: #include "macrotab.h".
5519 (dwarf_macinfo_buffer): New variable.
5520 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5521 dwarf_macinfo_size.
5522 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5523 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5524 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5525 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5526 dwarf2_macro_spaces_in_definition): New complaints.
5527 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5528 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5529 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5530 the partial symbol table.
5531 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5532 from what's recorded in the partial symbol table.
5533 (read_file_scope): If the compilation unit has a
5534 `DW_AT_macro_info' attribute, read its macro information.
5535 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5536
5537 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5538
5539 Fix PR gdb/546
5540 * ser-tcp.c: Don't include <netinet/udp.h>.
5541
5542 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5543
5544 * MAINTAINERS: Update my email address.
5545
5546 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5547
5548 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5549 include file of the same name.
5550
5551 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5552
5553 * configure.tgt: Mark v850 as multi-arched.
5554 * config/v850/tm-v850.h: Remove file.
5555 * config/v850/v850.mt: Eliminate TM_FILE.
5556
5557 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5558
5559 * v850-tdep.c: Full multi-arch.
5560 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5561 Define GDB_MULTI_ARCH to 2.
5562
5563 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5564
5565 * p-exp.y (current_type): New static variable.
5566 Carries the type of the expression at the position that is parsed.
5567 (push_current_type, pop_current_type): Two new functions. Used
5568 to store/restore current_type in expression on specific tokens.
5569 (search_field): New static variable. Set to one after parsing a point
5570 as at that point only a FIELDNAME token should be searched.
5571 (FIELDNAME): New token. After a point only a token belonging to
5572 current_type type definition is allowed.
5573 (all over token rules): reset and change current_type according
5574 to rules.
5575 (exp '[' rule): insert implicit array index field if
5576 exp is a pascal string type.
5577
5578 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5579
5580 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5581 frame info. Use frame_info's saved_regs instead of matching member
5582 in extra_frame_info throughout.
5583 (v850_frame_init_saved_regs): New function.
5584 (v850_init_extra_frame_info): Move most functionality into
5585 v850_frame_init_saved_regs().
5586 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5587 (v850_frame_find_saved_regs): Remove declaration.
5588 (FRAME_FIND_SAVED_REGS): Remove definition.
5589 (v850_frame_init_saved_regs): Add declaration.
5590 (FRAME_INIT_SAVED_REGS): Add definition.
5591
5592 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5593
5594 * v850-tdep.c: Begin multi-arch'ing v850.
5595 (v850_target_architecture_hook): Remove function.
5596 (v850_gdbarch_init): New function. Add code previously in
5597 v850_target_architecture_hook().
5598 (_initialize_v850_tdep): Don't set target_architecture_hook.
5599 Call register_gdbarch_init() instead.
5600
5601 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5602
5603 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5604 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5605 (fixup_class_method_type): Likewise.
5606
5607 2002-05-15 Jim Blandy <jimb@redhat.com>
5608
5609 Add macro structures to GDB's symbol tables. Nobody puts anything
5610 in them yet.
5611 * symtab.h (struct symtab): New member: `macro_table'.
5612 * buildsym.h (pending_macros): New global variable.
5613 * buildsym.c: #include "macrotab.h".
5614 (buildsym_init): Initialize `pending_macros'.
5615 (end_symtab): If we found macro information while reading a CU's
5616 debugging info, do build a symtab structure for it. Make the
5617 symtab point to the macro information, and clear the
5618 `pending_macros' pointer which held it while we were reading the
5619 debug info.
5620 (really_free_pendings): Free any pending macro table.
5621 * objfiles.h (struct objfile): New member: `macro_cache'.
5622 * objfiles.c (allocate_objfile): Set allocate and free functions
5623 for the macro cache's objstack.
5624 (free_objfile): Empty the macro cache's obstack.
5625 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5626 set new allocate and free functions for it.
5627 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5628 free functions for the macro cache's objstack. (Why is this
5629 function building its own objfile?)
5630 * symmisc.c (print_objfile_statistics): Print statistics on the
5631 macro bcache.
5632 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5633
5634 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5635
5636 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5637 (REGISTER_U_ADDR): Delete definition.
5638 (arm_register_u_addr): Delete declaration.
5639
5640 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5641
5642 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5643 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5644
5645 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5646
5647 * regcache.c (register_valid): Revise comments refering to "Not
5648 available" and "unavailable".
5649 * frame.c (frame_register_read): Ditto.
5650 * findvar.c (value_of_register): Ditto.
5651
5652 2002-05-15 Andrew Cagney <cagney@redhat.com>
5653
5654 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5655 (remote-sim.o): Update dependencies.
5656 (d10v-tdep.o): Specify dependencies.
5657 (sim_d10v_h): Define.
5658
5659 2002-05-14 Jim Blandy <jimb@redhat.com>
5660
5661 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5662 * macrotab.c (macro_lookup_inclusion, find_definition,
5663 new_macro_table): Same.
5664
5665 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5666 not `! strcmp ()'. This is a dubious improvement.
5667 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5668
5669 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5670 although it's not necessary, to avoid a warning.
5671
5672 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5673
5674 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5675 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5676 TYPE_INSTANCE_FLAGS.
5677 (struct main_type): New.
5678 (struct type): Move most members to struct main_type. Change
5679 cv_type and as_type to new type_chain member. Add instance_flags.
5680 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5681 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5682 (finish_cv_type): Remove prototype.
5683 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5684 Set TYPE_CHAIN.
5685 (alloc_type_instance): New function.
5686 (smash_type): New function.
5687 (make_pointer_type, make_reference_type, make_function_type)
5688 (smash_to_member_type, smash_to_method_type): Call smash_type.
5689 (make_qualified_type): New function.
5690 (make_type_with_address_space): Call make_qualified_type.
5691 (make_cv_type): Likewise.
5692 (finish_cv_type): Remove unnecessary function.
5693 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5694 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5695 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5696 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5697 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5698 * hpread.c (hpread_read_struct_type): Likewise.
5699 * stabsread.c (read_struct_type): Likewise.
5700
5701 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5702
5703 * configure.tgt: Add a catch all sh* target, for cases like
5704 sh[2,3,4]-elf and sh-hms.
5705
5706 2002-05-14 Keith Seitz <keiths@redhat.com>
5707
5708 * event-loop.c (create_file_handler): Don't do anything but
5709 update data when we are given a fd which we are already
5710 monitoring.
5711
5712 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5713
5714 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5715 (update_context): Use __func__ in warnings.
5716
5717 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5718
5719 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5720 and tcp_close to net_open and net_close.
5721 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5722 using UDP if requested. Don't try to disable Nagle on UDP
5723 sockets.
5724 * remote.c (remote_serial_open): New function. Warn about UDP.
5725 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5726
5727 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5728
5729 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5730
5731 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5732
5733 * configure.tgt: Remove sh-hms target.
5734 * MAINTAINERS: Don't list sh-hms as a separate target.
5735
5736 2002-05-13 Jim Blandy <jimb@redhat.com>
5737
5738 Add first preprocessor macro-expansion files.
5739 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5740 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5741 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5742 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5743 (COMMON_OBS): Add macrotab.o, macroexp.o.
5744 (macroexp.o, macrotab.o): New rules.
5745
5746 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5747
5748 * config/m88k/tm-m88k.h: Update copyright.
5749 (m88k_target_write_pc): Declare
5750 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5751 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5752 (SHIFT_INST_REGS): Update definition.
5753 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5754 using old definition of TARGET_WRITE_PC.
5755 * regcache.c (generic_target_write_pc): Delete code handling
5756 NNPC_REGNUM.
5757 * gdbarch.sh (NNPC_REGNUM): Delete.
5758 * gdbarch.h, gdbarch.c: Regenerate.
5759
5760 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5761
5762 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5763 builtin reg number.
5764
5765 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5766
5767 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5768 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5769 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5770 access macros.
5771 * c-typeprint.c (cp_type_print_method_args): Likewise.
5772 (c_type_print_args): Likewise.
5773 * d10v-tdep.c (d10v_push_arguments): Likewise.
5774 (d10v_extract_return_value): Likewise.
5775 * expprint.c (print_subexp): Likewise.
5776 * gdbtypes.c (lookup_primitive_typename): Likewise.
5777 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5778 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5779 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5780 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5781 (TYPE_VECTOR): Likewise.
5782 * hpread.c (hpread_read_struct_type)
5783 (fix_static_member_physnames, fixup_class_method_type)
5784 (hpread_type_lookup): Likewise.
5785 * mdebugread.c (parse_symbol, parse_type): Likewise.
5786 * p-lang.c (is_pascal_string_type): Likewise.
5787 * valops.c (hand_function_call): Likewise.
5788 * x86-64-tdep.c (classify_argument): Likewise.
5789
5790 * hpread.c (hpread_read_function_type)
5791 (hpread_read_doc_function_type): Call replace_type.
5792 * dstread.c (create_new_type): Delete.
5793 (decode_dst_structure, process_dst_function): Call alloc_type.
5794 Use type access macros.
5795
5796 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5797
5798 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5799 the're not supported by the current architecture.
5800 (i387_fill_fxsave): Likewise.
5801
5802 2002-05-12 Fred Fish <fnf@redhat.com>
5803
5804 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5805 sect_index_xxx members to index the first slot in section_offsets
5806 if all of the section_offsets are zero.
5807
5808 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5809
5810 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5811 checked in with last change.
5812
5813 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5814
5815 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5816 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5817 config.sub.
5818
5819 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5820
5821 * Makefile.in: Update dependencies.
5822
5823 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5824
5825 * language.c (local_hex_string_custom): Simplify. Do not depend
5826 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5827
5828 * memattr.c (mem_info_command): Replace calls to
5829 longest_local_hex_string and longest_local_hex_string_custom.
5830 * buildsym.c (make_blockvector): Ditto.
5831 * solib.c (info_sharedlibrary_command): Ditto.
5832 * tracepoint.c (tracepoints_info): Ditto.
5833 * symtab.c (print_msymbol_info): Ditto.
5834
5835 * language.c (local_hex_string): Delete.
5836 (local_hex_string_custom): Delete.
5837 (longest_local_hex_string): Rename to local_hex_string.
5838 (longest_local_hex_string_custom): Rename to
5839 local_hex_string_custom.
5840 * language.h (local_hex_string): Change parameter type to LONGEST.
5841 (local_hex_string_custom): Ditto.
5842 (longest_local_hex_string): Delete declaration.
5843 (longest_local_hex_string_custom): Ditto.
5844
5845 * solib.c: Update copyright.
5846 * memattr.c: Update copyright.
5847
5848 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5849
5850 * arch-utils.h (legacy_register_to_value): Declare.
5851 (legacy_value_to_register): Declare.
5852 (legacy_convert_register_p): Declare.
5853 * arch-utils.c (legacy_register_to_value): New function.
5854 (legacy_value_to_register): New function.
5855 (legacy_convert_register_p): New function.
5856
5857 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5858 (VALUE_TO_REGISTER): Define.
5859 (CONVERT_REGISTER_P): Define.
5860 * gdbarch.h, gdbarch.c: Regenerate.
5861
5862 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5863 VALUE_TO_REGISTER.
5864 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5865 CONVERT_REGISTER_P.
5866
5867 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5868 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5869
5870 * Makefile.in: Update dependencies for valops.c.
5871 * valops.c: Include "gdb_assert.h".
5872 (typecmp): Skip THIS parameter to methods.
5873 (find_method_list): Remove static_memfuncp argument,
5874 update callers. Check for stub methods.
5875 (find_value_oload_method_list): Don't set *static_memfuncp.
5876 (find_overload_match): Don't check for stub methods. Assert
5877 that methods are not stubbed. Handle static methods.
5878 (value_find_oload_method_list): Remove static_memfuncp argument.
5879 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5880 to the argument list for static stub methods.
5881 * value.h (value_find_oload_method_list): Update prototype.
5882
5883 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5884
5885 * arch-utils.h (generic_register_size): Declare.
5886 (generic_register_raw_size, generic_register_virtual_size): Delete
5887 declarations.
5888 * arch-utils.c (generic_register_raw_size): Delete.
5889 (generic_register_size): New function.
5890 (generic_register_virtual_size): Delete.
5891
5892 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5893 default generic_register_size.
5894 * gdbarch.h, gdbarch.c: Re-generate.
5895
5896 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5897 register_virtual_size.
5898 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5899 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5900
5901 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5902
5903 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5904 * gdbarch.h, gdbarch.c: Regenerate.
5905 * gnu-v3-abi.c: Update copyright.
5906 (vtable_address_point_offset): Update.
5907 (gnuv3_rtti_type): Update.
5908 (gnuv3_baseclass_offset): Update.
5909 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5910 (init_fetch_link_map_offsets): Update.
5911 * remote.c (get_remote_state): Update.
5912
5913 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5914
5915 * TODO: Remove value_headof/value_from_vtable_info comment.
5916 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5917 * values.c (value_headof, value_from_vtable_info): Delete.
5918 * value.h (value_from_vtable_info): Delete prototype.
5919
5920 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5921
5922 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5923 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5924 $(gdb_regex_h).
5925 (gdb_assert_h): Define.
5926 (gdb_wait_h): Define.
5927 (gdb_regex_h): Define.
5928
5929 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5930
5931 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5932 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5933
5934 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5935
5936 * nbsd-tdep.c: Fix comment.
5937
5938 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5941 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5942 (nbsd-tdep.o): New dependency list.
5943 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5944 nbsd-tdep.h.
5945 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5946 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5947 * nbsd-tdep.c: New file.
5948 * nbsd-tdep.h: New file.
5949 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5950 nbsd-tdep.h.
5951 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5952 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5953 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5954 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5955
5956 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5957
5958 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5959 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5960 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5961 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5962 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5963 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5964
5965 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5966
5967 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5968 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5969 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5970 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5971 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5972 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5973 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5974
5975 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5978 fetch_elfcore_registers to...
5979 * i386nbsd-tdep.c: ...here.
5980 (i386nbsd_use_struct_convention): Rename to...
5981 (i386nbsd_aout_use_struct_convention): ...this.
5982 (i386nbsd_supply_reg): New function.
5983 (i386nbsd_fill_reg): New function.
5984 (fetch_core_registers): Use i386nbsd_supply_reg.
5985 (fetch_elfcore_registers): Likewise.
5986 (_initialize_i386nbsd_tdep): New function.
5987 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5988 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5989 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5990 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5991 (i386nbsd_aout_use_struct_convention): ...this.
5992
5993 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5994
5995 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5996 (store_inferior_registers): Use shnbsd_fill_reg.
5997 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5998 sh_nbsd_supply_register): Collapse into...
5999 (shnbsd_supply_reg): ...this.
6000 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6001 (shnbsd_fill_reg): ...this.
6002 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6003 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6004 (fetch_core_registers): Use shnbsd_supply_reg.
6005 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6006 (sh_nbsd_core_fns): Rename to...
6007 (shnbsd_core_fns): ...this.
6008 (sh_nbsd_elfcore_fns): Rename to...
6009 (shnbsd_elfcore_fns): ...this.
6010 (sh_nbsd_init_abi): Rename to...
6011 (shnbsd_init_abi): ...this.
6012 (_initialize_sh_nbsd_tdep): Rename to...
6013 (_initialize_shnbsd_tdep): ...this.
6014 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6015 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6016 sh_nbsd_fill_register): Remove prototypes.
6017 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6018
6019 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6020
6021 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6022 (i387-nat.o): Delete dependency list.
6023 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6024 (x86-64-linux-nat.o): Likewise.
6025 * i387-nat.c: Delete file, moving contents to...
6026 * i387-tdep.c: ...here.
6027 * i387-nat.h: Rename...
6028 * i387-tdep.h: ...to this.
6029 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6030 * i386-linux-nat.c: Likewise.
6031 * i386bsd-nat.c: Likewise.
6032 * i386gnu-nat.c: Likewise.
6033 * i386nbsd-nat.c: Likewise.
6034 * i386v4-nat.c: Likewise.
6035 * x86-64-linux-nat.c: Likewise.
6036 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6037 * config/i386/go32.mh (NATDEPFILES): Likewise.
6038 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6039 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6040 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6041 * config/i386/linux.mh (NATDEPFILES): Likewise.
6042 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6043 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6044 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6045 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6046
6047 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6048
6049 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6050 (alphanbsd-nat.o): Remove dependency list.
6051 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6052 * alphanbsd-nat.c: Delete. Contents moved to...
6053 * alphanbsd-tdep.c: ...here.
6054 (_initialize_alphanbsd_tdep): Register core functions.
6055 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6056
6057 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6058
6059 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6060 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6061 (alphanbsd-nat.o): Likewise.
6062 (alphabsd-tdep.o): New dependency list.
6063 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6064 (fill_gregset): Use alphabsd_fill_reg.
6065 (supply_fpregset): Use alphabsd_supply_fpreg.
6066 (fill_fpregset): Use alphabsd_fill_fpreg.
6067 (fetch_inferior_registers): Use struct reg and struct fpreg
6068 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6069 and alphabsd_supply_fpreg.
6070 (store_inferior_registers): Use struct reg and struct fpreg
6071 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6072 and alphabsd_fill_fpreg.
6073 * alphabsd-tdep.c: New file.
6074 * alphabsd-tdep.h: New file.
6075 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6076 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6077 alphabsd_supply_fpreg.
6078 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6079 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6080
6081 2002-05-11 Eric Christopher <echristo@redhat.com>
6082
6083 * mips-tdep.c (mips_double_register_type): Fix thinko.
6084 (mips_single_register_type): Ditto.
6085 * MAINTAINERS: Add self.
6086
6087 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6088
6089 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6090 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6091 right thing on architectures with different endianness and/or
6092 integer sizes.
6093
6094 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6095
6096 From Christian Limpach <chris@Pin.LU>
6097 * configure.in: Change sed expression which comments out
6098 NATDEPFILES to also comment out continuation lines.
6099 * configure: Regenerate.
6100
6101 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6102
6103 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6104 big patch.
6105
6106 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6107
6108 * sh-tdep.c: Include correct file.
6109
6110 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6111
6112 New support for sh64-elf (sh5) target.
6113
6114 * configure.tgt: For sh64-elf target, default to sh-elf.
6115
6116 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6117 (struct gdbarch_tdep): Add new fields for new registers and ABI
6118 info.
6119
6120 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6121 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6122 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6123 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6124 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6125 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6126 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6127 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6128 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6129 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6130 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6131 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6132 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6133 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6134 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6135 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6136 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6137 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6138 sign_extend, sh64_nofp_frame_init_saved_regs,
6139 sh64_init_extra_frame_info, sh64_get_saved_register,
6140 sh64_extract_struct_value_address, sh64_pop_frame,
6141 sh64_push_arguments, sh64_extract_return_value,
6142 sh64_store_return_value, sh64_show_media_regs,
6143 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6144 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6145 sh_sh64_register_virtual_type,
6146 sh_sh64_register_convert_to_virtual,
6147 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6148 sh64_register_read, sh64_pseudo_register_write,
6149 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6150 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6151 sh64_do_pseudo_register, sh_compact_do_registers_info,
6152 sh64_do_registers_info, sh_gdbarch_init): New functions.
6153
6154 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6155
6156 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6157
6158 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6159
6160 * linespec.c (decode_line_1): Check for a double quote after
6161 a filename correctly.
6162
6163 2002-05-10 Jim Blandy <jimb@redhat.com>
6164
6165 Properly track the size of the current objfile's .debug_line section.
6166 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6167 (DWARF_LINE_SIZE): New macro.
6168 (dwarf2_build_psymtabs_hard): Record the line section's size in
6169 the partial symbol table.
6170 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6171 symbol table.
6172
6173 2002-05-10 Petr Sorfa <petrs@caldera.com>
6174
6175 * ia64-tdep.c: Handle breakpoints on L instruction type
6176 in MLX instruction bundle by moving the breakpoint to
6177 the third slot (X instruction type) as L holds only data.
6178
6179 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6180
6181 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6182 (process_one_symbol): Complain about discarding local symbols
6183 due to a misplaced N_LBRAC entry.
6184
6185 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6186
6187 From Daniel Berlin <dan@cgsoftware.com>
6188 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6189 decrease the depth we are at, in the case of templates.
6190
6191 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6192
6193 * mips-tdep.c (mips_float_register_type): New function.
6194 (mips_double_register_type): New function.
6195 (mips_print_register): Use them.
6196 (do_fp_register_row): Likewise.
6197
6198 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6199
6200 * signals/signals.c (signals): Remove conditional compilation around
6201 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6202 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6203
6204 2002-05-09 Michael Snyder <msnyder@redhat.com>
6205
6206 * remote-rdp.c (remote_rdp_can_run): Remove.
6207
6208 2002-05-09 Tom Tromey <tromey@redhat.com>
6209
6210 * jv-valprint.c (java_val_print): Handle `char' as a special case
6211 of TYPE_CODE_INT.
6212
6213 2002-05-09 Michael Snyder <msnyder@redhat.com>
6214
6215 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6216 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6217 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6218 str r(0123),[sp,#nn].
6219 (arm_skip_prologue): Ditto. Also make disassembly
6220 order-independent by placing it in a loop.
6221
6222 2002-05-06 Michael Snyder <msnyder@redhat.com>
6223
6224 * stabsread.c (read_type): Add recognition for new attribute:
6225 "@V;" means that an array type is actually a vector.
6226 This is analogous to the vector flag that's been added to dwarf2.
6227
6228 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6229
6230 * i386-tdep.h (i386_abi): New enum.
6231 (struct gdbarch_tdep): Replace os_ident member with abi.
6232 (i386_gdbarch_register_os_abi): New prototype.
6233 * i386-tdep.c (i386_abi_names): New array.
6234 (process_note_abi_tag_sections): Removed.
6235 (process_note_sections): New function.
6236 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6237 (struct i386_abi_handler): New struct.
6238 (i386_abi_handler_list): New variable.
6239 (i386_gdbarch_register_os_abi): New function.
6240 (i386_gdbarch_init): Adapt for the changes given above.
6241
6242 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6243
6244 * gregset.h: Say "GNU/Linux".
6245
6246 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6247
6248 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6249 (build_gdbtypes): Build builtin_type_v2_float.
6250 (_initialize_gdbtypes): Register new builtin type.
6251
6252 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6253
6254 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6255 (clear_gdbarch_swap): New function.
6256 (initialize_non_multiarch): Call.
6257 (gdbarch_update_p): Before calling init(), swap out and clear the
6258 existing architecture.
6259 * gdbarch.c: Regenerate.
6260
6261 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6262
6263 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6264 alphanbsd-tdep.c.
6265
6266 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6267
6268 * sh-nbsd-nat.c: Rename to...
6269 * shnbsd-nat.c: ...this.
6270 * sh-nbsd-tdep.c: Rename to...
6271 * shnbsd-tdep.c: ...this.
6272 * sh-nbsd-tdep.h: Rename to...
6273 * shnbsd-tdep.h: ...this.
6274 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6275 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6276
6277 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6278
6279 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6280 concatenation for command help messages.
6281
6282 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * NEWS: Note new sh*-*-netbsdelf* configuration.
6285 * configure.host: Set gdb_host_cpu to sh for all sh*.
6286 (sh*-*-netbsdelf*): New host.
6287 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6288 (sh*-*-netbsdelf*): New target.
6289 * sh-nbsd-nat.c: New file.
6290 * sh-nbsd-tdep.c: New file.
6291 * sh-nbsd-tdep.h: New file.
6292 * config/sh/nbsd.mh: New file.
6293 * config/sh/nbsd.mt: New file.
6294 * config/sh/nm-nbsd.h: New file.
6295 * config/sh/tm-nbsd.h: New file.
6296
6297 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6298
6299 * sh-tdep.c (sh_osabi_names): Declare.
6300 (process_note_abi_tag_sections): New function.
6301 (get_elfosabi): Ditto.
6302 (sh_gdbarch_register_os_abi): Ditto.
6303 (sh_dump_tdep): Ditto.
6304 _initialize_sh_tdep): Use gdbarch_register to register
6305 sh_gdbarch_init and sh_dump_tdep.
6306 * config/sh/tm-sh.h (sh_osabi): Declare.
6307 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6308
6309 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6310
6311 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6312 (thumb_scan_prologue): Ditto.
6313 (arm_find_callers_reg): Ditto.
6314 (arm_frame_chain): Ditto.
6315 (arm_init_extra_frame_info): Ditto.
6316 (arm_frame_saved_pc): Ditto.
6317 (arm_pop_frame): Ditto.
6318 (arm_push_return_address): New function.
6319 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6320 call_dummy_location, call_dummy_breakpoint_offset_p,
6321 call_dummy_breakpoint_offset, call_dummy_p,
6322 call_dummy_stack_adjust_p, call_dummy_words,
6323 sizeof_call_dummy_words, call_dummy_start_offset,
6324 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6325 call_dummy_address, push_return_address and push_dummy_frame for
6326 generic dummy frames.
6327
6328 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6329
6330 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6331 size computation for alloca.
6332 (sh_fp_frame_init_saved_regs): Likewise.
6333
6334 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6335
6336 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6337 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6338 * arm-tdep.c (arm_store_return_value): Use them.
6339 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6340 * remote-rdp.c (remote_rdp_fetch_register): Use
6341 ARM_MAX_REGISTER_RAW_SIZE.
6342 (remote_rdp_store_register): Likewise.
6343
6344 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6345
6346 * dwarf2cfi.c: Code cleanup, removed unused variables,
6347 added default labels to switch {} statements.
6348 * x86-64-tdep.c: Ditto.
6349 * x86-64-linux-nat.c: Ditto.
6350
6351 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6352
6353 * solib.h: Protect against multiple inclusion.
6354
6355 2002-05-06 Jim Blandy <jimb@redhat.com>
6356
6357 Add first preprocessor macro-expansion files.
6358 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6359 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6360 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6361 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6362 (COMMON_OBS): Add macrotab.o, macroexp.o.
6363 (macroexp.o, macrotab.o): New rules.
6364
6365 Separate the job of reading the line number info statement program
6366 header (...expialidocious) out into its own function.
6367 * dwarf2read.c (struct line_head, struct filenames, struct
6368 directories): Replace with...
6369 (struct line_header): New structure, containing the full
6370 contents of the statement program header, including the
6371 include directory and file name tables.
6372 (read_file_scope): If we have line number info, instead of just
6373 calling dwarf_decode_lines to do all the work, call
6374 dwarf_decode_line_header first to get a `struct line_header'
6375 containing the data in the statement program header, and then
6376 pass that to dwarf_decode_lines, which will pick up where that
6377 left off. Be sure to clean up the `struct line_header' object.
6378 (dwarf_decode_line_header, free_line_header, add_include_dir,
6379 add_file_name): New functions.
6380 (dwarf_decode_lines): Move all the code to read the statement
6381 program header into dwarf_decode_line_header. Take the line
6382 header it built as the first argument, instead of the offset to
6383 the compilation unit's line number info. Use the new `struct
6384 line_header' type instead of the old structures. No need to do
6385 cleanups here now, since we don't allocate anything.
6386 (dwarf2_statement_list_fits_in_line_number_section,
6387 dwarf2_line_header_too_long): New complaints.
6388
6389 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6390
6391 * gdbtypes.c (init_vector_type): New function.
6392 (build_builtin_type_vec128): Simplify the representation of SIMD
6393 registers.
6394 (build_gdbtypes): Initialize new builtin vector types.
6395 (_initialize_gdbtypes): Register new vector types with gdbarch.
6396 (builtin_type_v4_float, builtin_type_v4_int32,
6397 builtin_type_v8_int16, builtin_type_v16_int8,
6398 builtin_type_v2_int32, builtin_type_v4_int16,
6399 builtin_type_v8_int8): New (renamed) SIMD types.
6400
6401 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6402
6403 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6404 (i387_fill_fxsave): Likewise.
6405
6406 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6407
6408 * alpha-tdep.c (alpha_extract_return_value): Don't use
6409 non-constant array size in prototype.
6410
6411 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6412
6413 From Brian Taylor <briant at model dot com>:
6414 * ui-out.c (ui_out_field_core_addr): Use the function
6415 longest_local_hex_string_custom'to format addresses > 32 bits
6416 wide.
6417
6418 * ui-out.c (ui_out_field_core_addr): Update comment.
6419
6420 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6421
6422 * stack.c (select_and_print_frame): Make static. Delete the
6423 parameter `level'.
6424 (func_command): Update call.
6425 (select_frame_command): Delete code computing the frame level.
6426 * frame.h (select_and_print_frame): Delete declaration.
6427
6428 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6429
6430 * sparc-tdep.c (sparc_get_saved_register): Comment why
6431 get_prev_frame call is safe.
6432
6433 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6434
6435 * frame.h (select_frame): Delete level parameter.
6436 * stack.c (select_frame): Update. Use frame_relative_level to
6437 obtain the frame's level.
6438 (select_and_print_frame): Update call.
6439 (select_frame_command): Ditto.
6440 (up_silently_base): Ditto.
6441 (down_silently_base): Ditto.
6442 * ocd.c (ocd_start_remote): Ditto.
6443 * remote-rdp.c (remote_rdp_open): Ditto.
6444 * remote-mips.c (mips_initialize): Ditto.
6445 (common_open): Ditto.
6446 * remote-e7000.c (e7000_start_remote): Ditto.
6447 * m3-nat.c (select_thread): Ditto.
6448 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6449 (child_get_current_exception_event): Ditto.
6450 * varobj.c (varobj_create): Ditto.
6451 (varobj_update): Ditto.
6452 (c_value_of_root): Ditto.
6453 * tracepoint.c (finish_tfind_command): Ditto.
6454 * corelow.c (core_open): Ditto.
6455 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6456 * thread.c (info_threads_command): Ditto.
6457 (switch_to_thread): Ditto.
6458 * infrun.c (normal_stop): Ditto.
6459 (restore_selected_frame): Ditto.
6460 (restore_inferior_status): Ditto.
6461 * breakpoint.c (insert_breakpoints): Ditto.
6462 (watchpoint_check): Ditto.
6463 (bpstat_stop_status): Ditto.
6464 (do_enable_breakpoint): Ditto.
6465 * blockframe.c (flush_cached_frames): Ditto.
6466 (reinit_frame_cache): Ditto.
6467
6468 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6469
6470 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6471 maintainer.
6472
6473 2002-05-04 Jim Blandy <jimb@redhat.com>
6474
6475 * gdbtypes.c (replace_type): Doc fix.
6476
6477 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6478
6479 * valprint.c (strcat_longest): Delete commented out function.
6480 Update copyright.
6481
6482 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6483
6484 * MAINTAINERS: Mark a29k as deleted.
6485 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6486 Move new configurations to the top.
6487 * configure.tgt: Remove a29k.
6488 * config/a29k/tm-vx29k.h: Delete.
6489 * config/a29k/vx29k.mt: Delete.
6490 * config/a29k/tm-a29k.h: Delete.
6491 * config/a29k/a29k-udi.mt: Delete.
6492 * config/a29k/a29k.mt: Delete.
6493 * a29k-tdep.c: Delete.
6494 * remote-udi.c: Delete.
6495 * remote-mm.c: Delete.
6496 * remote-eb.c: Delete.
6497 * remote-adapt.c: Delete.
6498 * Makefile.in: Remove obsolete code.
6499 * config/s390/s390x.mt: Ditto.
6500 * config/s390/s390.mt: Ditto.
6501 * config/sparc/sparclynx.mh: Ditto.
6502 * config/sparc/linux.mh: Ditto.
6503 * config/pa/hppaosf.mh: Ditto.
6504 * config/pa/hppabsd.mh: Ditto.
6505 * config/ns32k/nbsd.mt: Ditto.
6506 * config/mips/vr5000.mt: Ditto.
6507 * config/m68k/sun3os4.mh: Ditto.
6508 * config/m68k/nbsd.mt: Ditto.
6509 * config/m68k/m68klynx.mh: Ditto.
6510 * config/m32r/m32r.mt: Ditto.
6511 * config/i386/x86-64linux.mt: Ditto.
6512 * config/i386/nbsdelf.mt: Ditto.
6513 * config/i386/nbsd.mt: Ditto.
6514 * config/i386/i386lynx.mh: Ditto.
6515
6516 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6517
6518 * target.c (debug_print_register): New function. Handle oversize
6519 registers.
6520 (debug_to_fetch_registers): Call.
6521 (debug_to_store_registers): Call.
6522
6523 2002-05-03 Jim Blandy <jimb@redhat.com>
6524
6525 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6526 (read_type): Doc fix.
6527 * gdbtypes.c (replace_type): Doc fix.
6528
6529 * stabsread.c (multiply_defined_struct): New complaint.
6530 (read_struct_type): If the type we were passed isn't empty, or
6531 incomplete, don't read the new struct type into it; complain,
6532 and return the original type unchanged. Take a new `type_code'
6533 argument, which is the type code for the new type.
6534 (read_type): Rather than storing the type's type code here, pass
6535 it as an argument to read_struct_type, and let that take care of
6536 storing it. That way, we don't overwrite the original type code,
6537 so read_struct_type can use it to decide whether we're overwriting
6538 something we shouldn't.
6539 (complain_about_struct_wipeout): New function.
6540
6541 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6542
6543 * gdbarch.sh: Assert that gdbarch is non-NULL.
6544 * gdbarch.c: Regenerate.
6545
6546 2002-05-03 Jason Merrill <jason@redhat.com>
6547
6548 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6549 and return NULL.
6550
6551 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6552
6553 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6554 (x86_64_dwarf2gdb_regno_map_length),
6555 (x86_64_dwarf2_reg_to_regnum): Added.
6556 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6557 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6558 (_initialize_x86_64_tdep): Synced with the change above.
6559 (x86_64_skip_prologue): Reformulated message.
6560
6561 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6562
6563 * f-exp.y: Also use new prev_lexptr variable
6564 to improve error reporting. Based on Michael Snyder
6565 2002-04-24 dated patch to c-exp.y.
6566 * jv-exp.y: Likewise.
6567 * m2-exp.y: Likewise.
6568
6569 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6570
6571 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6572 we are dealing with vectors.
6573
6574 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6575
6576 * config/m68k/tm-nbsd.h: Obvious fix,
6577 correct machine name.
6578
6579 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6580
6581 * p-typeprint.c (pascal_type_print_base): Add support
6582 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6583
6584 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6585
6586 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6587 for fondamental pascal 'char' type.
6588
6589 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6590
6591 * p-lang.h (is_pascal_string_type): Declaration changed,
6592 new sixth argument of type char ** added.
6593 * p-lang.c (is_pascal_string_type): Implementation
6594 changed. Args length_pos, length_size, string_pos, char_size
6595 can now be NULL. New argument arrayname set to the field
6596 name of the char array. Return value set to char array
6597 field index plus one.
6598 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6599 is_pascal_string_type function.
6600
6601 2002-05-02 Andrew Cagney <cagney@redhat.com>
6602
6603 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6604 <cagney@redhat.com> change.
6605 * gdbarch.c: Regenerate.
6606
6607 2002-05-02 Andrew Cagney <cagney@redhat.com>
6608
6609 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6610 before probing for a new one. Detect errorenous gdbarch_init
6611 functions.
6612 * gdbarch.c: Regenerate.
6613
6614 2002-05-01 Andrew Cagney <cagney@redhat.com>
6615
6616 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6617 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6618 * config/v850/tm-v850.h: Ditto. Update copyright.
6619
6620 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6621
6622 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6623 current_gdbarch.
6624
6625 2002-04-30 Michael Snyder <msnyder@redhat.com>
6626
6627 * arm-tdep.c: Whitespace clean-ups.
6628 (arm_skip_prologue): Fix thinko; two lines
6629 should have been removed as part of 4/24 change.
6630
6631 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6632
6633 * rs6000-tdep.c: Added comment describing how fpscr register
6634 numbers were chosen.
6635
6636 2002-04-30 Michael Snyder <msnyder@redhat.com>
6637
6638 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6639
6640 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6641
6642 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6643 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6644 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6645
6646 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6647
6648 From Louis Hamilton <hamilton@redhat.com>:
6649 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6650 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6651 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6652 not bfd-private xcoff data, to determine wordsize.
6653 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6654
6655 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6656
6657 GDB 5.2 released from 5.2 branch.
6658
6659 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6660
6661 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6662 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6663 (x86_64_register_info_table): Added comments with register numbers.
6664
6665 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6666
6667 * rs6000-tdep.c (rs6000_extract_return_value,
6668 rs6000_store_return_value): Handle returning vectors.
6669 (rs6000_gdbarch_init): Use
6670 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6671 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6672 New function.
6673 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6674 vectors.
6675 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6676 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6677
6678 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6679
6680 * hpread.c (hpread_psymtab_to_symtab_1,
6681 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6682 with fprintf_unfiltered (gdb_stderr,...).
6683
6684 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6685
6686 * remote-array.c (printf_monitor, write_monitor,
6687 array_insert_breakpoint, array_remove_breakpoint ):
6688 Replace fprintf (stderr,...
6689 with fprintf_unfiltered (gdb_stderr,....
6690 * remote-es.c: Likewise.
6691 * remote-os9k.c: Likewise.
6692 * remote-st.c: Likewise.
6693
6694 2002-04-28 Andreas Schwab <schwab@suse.de>
6695
6696 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6697 linux-proc.o and gcore.o.
6698
6699 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6700
6701 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6702 code without frame pointers.
6703
6704 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6705
6706 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6707 ON_STACK is needed.
6708
6709 2002-04-26 Ben Elliston <bje@redhat.com>
6710
6711 * target.c (do_xfer_memory): Correct reference to the new option
6712 "trust-readonly-sections".
6713
6714 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6715
6716 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6717 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6718 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6719 vectors.
6720 (read_array_type): Record the fact that this array type is really a
6721 vector (i.e. are passed in by value).
6722
6723 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6724
6725 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6726 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6727 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6728 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6729 * alpha-linux-tdep.c: Include frame.h.
6730 (alpha_linux_sigcontext_addr): New function.
6731 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6732 alpha_linux_sigcontext_addr.
6733 * alpha-osf1-tdep.c: Include gdbcore.h.
6734 (alpha_osf1_sigcontext_addr): New function.
6735 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6736 alpha_osf1_sigcontext_addr.
6737 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6738 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6739
6740 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6741
6742 * stack.c (selected_frame_level):
6743 (select_frame): Do not set selected_frame_level.
6744 * frame.h (selected_frame_level): Delete declaration.
6745
6746 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6747
6748 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6749 convert_from_func_ptr-addr when AIX / PowerOpen.
6750
6751 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6752
6753 * valops.c (hand_function_call): Call
6754 generic_save_call_dummy_addr.
6755 * frame.h (generic_save_call_dummy_addr): Declare.
6756 * blockframe.c (struct dummy_frame): Add fields call_lo and
6757 call_hi.
6758 (generic_find_dummy_frame): Check for PC in range call_lo to
6759 call_hi instead of entry_point_address.
6760 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6761 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6762 (generic_save_call_dummy_addr): New function.
6763
6764 2002-04-24 David S. Miller <davem@redhat.com>
6765
6766 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6767 sparc_skip_prologue.
6768 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6769 information to find prologue when possible.
6770 (sparc_prologue_frameless_p): Call examine_prologue directly.
6771 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6772 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6773 second argument.
6774 (SKIP_PROLOGUE): Likewise.
6775
6776 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6777
6778 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6779 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6780 indicate that the condition it was testing is always true.
6781 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6782 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6783 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6784
6785 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6786
6787 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6788 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6789 tdep->jb_pc and tdep->jb_elt_size.
6790 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6791 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6792 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6793 * alpha-nat.c (get_longjmp_target): Remove.
6794 (JB_ELEMENT_SIZE): Ditto.
6795 (JB_PC): Ditto.
6796 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6797 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6798 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6799 to alpha_get_longjmp_target.
6800 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6801 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6802 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6803
6804 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6805
6806 * README: Update to GDB 5.2.
6807
6808 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6809
6810 * gdbarch.sh (LC_ALL): Set to `c'.
6811
6812 2002-04-25 Theodore A. Roth <troth@verinet.com>
6813
6814 * avr-tdep.c: Ran through gdb_indent.sh.
6815
6816 2002-04-25 Theodore A. Roth <troth@verinet.com>
6817
6818 * MAINTAINERS: Add myself as AVR maintainer.
6819 * NEWS: Note new target avr.
6820
6821 2002-04-25 Theodore A. Roth <troth@verinet.com>
6822
6823 * Makefile.in: Add support for AVR target.
6824 * configure.tgt: Add support for AVR target.
6825 * avr-tdep.c: New file
6826 * config/avr/avr.mt: New file.
6827
6828 2002-04-25 Theodore A. Roth <troth@verinet.com>
6829
6830 * MAINTAINERS: Add myself to write-after-approval.
6831
6832 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6833
6834 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6835 with fprintf_unfiltered (gdb_stderr,....
6836
6837 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6838
6839 Fix PR gdb/508.
6840 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6841
6842 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6843
6844 * p-exp.y: Also use new prev_lexptr variable
6845 to improve error reporting. Based on Michael Snyder
6846 2002-04-24 dated patch to c-exp.y.
6847
6848 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6849
6850 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6851 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6852 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6853 to 0.
6854 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6855 and struct value.
6856 (FUNCTION_START_OFFSET): Remove.
6857 (BREAKPOINT): Ditto.
6858
6859 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6860
6861 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6862 * NEWS: Ditto.
6863
6864 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6867 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6868 alpha_linux_pc_in_sigtramp.
6869 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6870 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6871 alpha_osf1_pc_in_sigtramp.
6872 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6873 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6874 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6875 alphafbsd_pc_in_sigtramp.
6876 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6877 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6878 alphanbsd_pc_in_sigtramp.
6879 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6880 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6881
6882 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6883
6884 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6885
6886 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6887
6888 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6889 alphanbsd-tdep.c.
6890 (alphanbsd-nat.o): New dependency list.
6891 (alphanbsd-tdep.o): Ditto.
6892 * NEWS: Note new native NetBSD/alpha configuration.
6893 * alphanbsd-nat.c: New file.
6894 * alphanbsd-tdep.c: Ditto.
6895 * configure.host (alpha*-*-netbsd*): New host.
6896 * configure.tgt (alpha*-*-netbsd*): New target.
6897 * config/alpha/nbsd.mh: New file.
6898 * config/alpha/nbsd.mt: Ditto.
6899 * config/alpha/nm-nbsd.h: Ditto.
6900 * config/alpha/tm-nbsd.h: Ditto.
6901
6902 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6903
6904 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6905 (alpha-osf1-tdep.o): New dependency list.
6906 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6907 and skip_sigtramp_frame members.
6908 * alpha-linux-tdep.c: Include gdbcore.h.
6909 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6910 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6911 * alpha-osf1-tdep.c: New file.
6912 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6913 alpha-osf1-dep.c.
6914 (alpha_frame_past_sigtramp_frame): New function.
6915 (alpha_dynamic_sigtramp_offset): Ditto.
6916 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6917 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6918 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6919 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6920 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6921 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6922 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6923 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6924 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6925 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6926 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6927 to find_solib_trampoline_target.
6928 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6929 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6930 (SKIP_TRAMPOLINE_CODE): Remove.
6931 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6932 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6933 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6934 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6935 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6936 (PROC_SIGTRAMP_MAGIC): Ditto.
6937 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6938 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6939 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6940 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6941 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6942
6943 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6944
6945 * NEWS: Note that Alpha targets are now multi-arch.
6946
6947 2002-04-24 Michael Snyder <msnyder@redhat.com>
6948
6949 * parser-defs.h (prev_lexptr): New external variable.
6950 * parse.c (parse_exp_1): Set prev_lexptr to null before
6951 calling the language-specific parser.
6952 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6953 (yyerror): Use prev_lexptr in error reporting.
6954
6955 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6958 * gregset.h: If FILL_FPXREGSET is defined, provide
6959 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6960 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6961 is defined, call fill_fpxregset.
6962
6963 2002-04-24 Roland McGrath <roland@frob.com>
6964
6965 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6966 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6967 (supply_gregset, supply_fpregset): New functions.
6968
6969 * gnu-nat.c (gnu_find_memory_regions): New function.
6970 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6971 (gnu_xfer_memory): Add a cast.
6972
6973 2002-04-24 Michael Snyder <msnyder@redhat.com>
6974
6975 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6976 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6977 of argument regs ("str r(0123), [r11, #-nn"]).
6978 (arm_skip_prologue): Better handling for frameless functions.
6979 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6980 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6981
6982 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6983
6984 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6985 NUM_PSEUDO_REGS can be used.
6986
6987 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6988
6989 * arch-utils.h: Update copyright.
6990
6991 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6992 * gdbarch.h, gdbarch.c: Re-generate.
6993
6994 * inferior.h (IN_SIGTRAMP): Delete definition.
6995 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6996 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6997
6998 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6999 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7000 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7001 (find_proc_framesize): Ditto.
7002 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7003 (alpha_init_extra_frame_info): Ditto.
7004 * infrun.c (handle_inferior_event): Ditto.
7005 (handle_inferior_event): Ditto.
7006 (check_sigtramp2): Ditto.
7007 * blockframe.c (create_new_frame): Ditto.
7008 (get_prev_frame): Ditto.
7009 * ppc-linux-tdep.c: Update comments.
7010 * i386-linux-tdep.c: Update comments.
7011 * breakpoint.c (bpstat_what): Update comment.
7012
7013 2002-04-24 David S. Miller <davem@redhat.com>
7014
7015 * i960-tdep.c (register_in_window_p): New function.
7016 (i960_find_saved_register): Use it instead of
7017 REGISTER_IN_WINDOW_P.
7018 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7019
7020 * symtab.h (find_stab_function_addr): Kill extern.
7021 * minsyms.c (find_stab_function_addr): Remove from here...
7022 * dbxread.c: ... to here, and mark it static.
7023
7024 2002-04-20 David S. Miller <davem@redhat.com>
7025
7026 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7027 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7028
7029 2002-04-21 David S. Miller <davem@redhat.com>
7030
7031 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7032 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7033 (vx_write_register): Likewise.
7034
7035 2002-04-23 J. Brobecker <brobecker@gnat.com>
7036
7037 * source.c (is_regular_file): New function.
7038 (openp): Check wether file to open is a regular file
7039 to avoid opening directories.
7040
7041 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7042
7043 * findvar.c (extract_signed_integer): Cast printf argument
7044 to suppress format warning.
7045 (extract_unsigned_integer): Likewise.
7046 * infcmd.c (registers_info): Likewise.
7047 * top.c (get_prompt_1): Likewise.
7048 * valops.c (value_assign): Likewise.
7049 * valprint.c (print_decimal): Likewise.
7050
7051 2002-04-22 H.J. Lu (hjl@gnu.org)
7052
7053 * c-exp.y (typebase): Support
7054
7055 [long|long long|short] [signed|unsigned] [int|]
7056
7057 and
7058
7059 signed [long|long long|short] int
7060
7061 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7062
7063 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7064 and vax-tdep.h.
7065 * vax-tdep.h: New file.
7066 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7067 Make several routines static.
7068 (vax_get_saved_register): New function.
7069 (vax_gdbarch_init): New function.
7070 (_initialize_vax_tdep): Register vax_gdbarch_init.
7071 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7072 Remove macros now under the control of gdbarch.
7073
7074 2002-04-22 Michael Snyder <msnyder@redhat.com>
7075
7076 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7077 Some whitespace and coding standards tweaks.
7078
7079 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * vax-tdep.c: Include regcache.h.
7082 (vax_call_dummy_words): New.
7083 (sizeof_vax_call_dummy_words): New.
7084 (vax_fix_call_dummy): New function.
7085 (vax_saved_pc_after_call): Ditto.
7086 * config/vax/tm-vax.h: Don't include regcache.h.
7087 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7088 (CALL_DUMMY): Remove.
7089 (CALL_DUMMY_WORDS): Define.
7090 (SIZEOF_CALL_DUMMY_WORDS): Define.
7091 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7092
7093 2002-04-18 Michael Snyder <msnyder@redhat.com>
7094
7095 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7096
7097 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * vax-tdep.c (vax_frame_chain): New function.
7100 (vax_push_dummy_frame): Ditto.
7101 (vax_pop_frame): Ditto.
7102 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7103 (FRAMELESS_FUNCTION_INVOCATION): Use
7104 generic_frameless_function_invocation_not.
7105 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7106 (POP_FRAME): Use vax_pop_frame.
7107
7108 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * vax-tdep.c (vax_store_struct_return): New function.
7111 (vax_extract_return_value): Ditto.
7112 (vax_store_return_value): Ditto.
7113 (vax_extract_struct_value_address): Ditto.
7114 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7115 vax_store_struct_return.
7116 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7117 (STORE_RETURN_VALUE): Use vax_store_return_value.
7118 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7119
7120 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7121
7122 * vax-tdep.c (vax_frame_saved_pc): New function.
7123 (vax_frame_args_address_correct): Ditto.
7124 (vax_frame_args_address): Ditto.
7125 (vax_frame_locals_address): Ditto.
7126 (vax_frame_num_args): Move code to be in proximity to
7127 other frame-related functions.
7128 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7129 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7130 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7131 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7132 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7133
7134 2002-04-22 H.J. Lu (hjl@gnu.org)
7135
7136 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7137 includedir.
7138
7139 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7140
7141 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7142 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7143 (FRAME_INIT_SAVED_REGS): New macro.
7144
7145 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7146
7147 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7148
7149 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7150
7151 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7152 where needed.
7153 (fetch_osf_core_registers): Likewise.
7154 (supply_gregset): Likewise.
7155
7156 2002-04-22 J. Brobecker <brobecker@gnat.com>
7157
7158 * symfile.h (get_section_index): Define.
7159 * symfile.c (get_section_index): New function.
7160 * mdebugread.c (SC_IS_SBSS): New macro.
7161 (SC_IS_BSS): Return true for the scBss storage class only, as
7162 the scSBss storage class refers to the .sbss section.
7163 (parse_partial_symbols): Discard the symbols which associated
7164 section does not exist.
7165 Make sure to use the .sbss section index for symbols which
7166 storage class is scBss, rather than using the .bss section index.
7167
7168 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7169
7170 * vax-tdep.c: Update copyright years.
7171 (vax_register_name): New function.
7172 (vax_register_byte): Ditto.
7173 (vax_register_raw_size): Ditto.
7174 (vax_register_virtual_size): Ditto.
7175 (vax_register_virtual_type): Ditto.
7176 * config/vax/tm-vax.h: Update copyright years.
7177 (REGISTER_NAMES): Remove.
7178 (REGISTER_NAME): Define.
7179 (REGISTER_BYTE): Use vax_register_byte.
7180 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7181 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7182 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7183
7184 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7185
7186 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7187 declaration
7188 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7189
7190 2002-04-21 David S. Miller <davem@redhat.com>
7191
7192 * arch-utils.c (generic_prologue_frameless_p): Kill
7193 SKIP_PROLOGUE_FRAMELESS_P code.
7194 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7195 references.
7196 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7197 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7198 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7199 references.
7200 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7201 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7202 (sparc_gdbarch_init): Pass it to
7203 set_gdbarch_prologue_frameless_p.
7204
7205 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7206
7207 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7208 (alphabsd-nat.o): New dependency list.
7209
7210 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7211
7212 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7213 alphafbsd-tdep.c.
7214 (alpha-linux-tdep.o): New dependency list.
7215 (alphafbsd-tdep.o): Likewise.
7216
7217 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7218
7219 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7220 to here...
7221 * alpha-tdep.c: ...from here.
7222 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7223
7224 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7227 prototype from here...
7228 * alpha-tdep.h: ...to here.
7229
7230 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7231
7232 * frame.h (selected_frame_level): Document as deprecated.
7233 (frame_relative_level): Declare.
7234 * stack.c (frame_relative_level): New function.
7235 (selected_frame_level): Document as deprecated.
7236 (select_frame): Do not set the selected_frame_level.
7237
7238 * stack.c (frame_info, record_selected_frame): Update.
7239 (frame_command, current_frame_command): Update.
7240 (up_silently_base, up_command, down_silently_base): Update.
7241 (down_command): Update.
7242 * inflow.c (kill_command): Update.
7243 * tracepoint.c (finish_tfind_command): Update.
7244 * corelow.c (core_open): Update.
7245 * thread.c (info_threads_command): Update.
7246 (do_captured_thread_select): Update.
7247 * infcmd.c (finish_command): Update.
7248 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7249
7250 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7251
7252 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7253
7254 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7255
7256 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7257 type const.
7258
7259 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7260
7261 * alphafbsd-tdep.c: Update copyright years. Include
7262 alpha-tdep.h.
7263 (alphafbsd_use_struct_convention): Make static.
7264 (alphafbsd_init_abi): New function.
7265 (_initialize_alphafbsd_tdep): New function.
7266 * config/alpha/tm-fbsd.h: Update copyright years.
7267 (USE_STRUCT_CONVENTION): Remove.
7268
7269 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7270
7271 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7272 an Alpha ABI variant.
7273 (alpha_abi_handler_list): Declare.
7274 (alpha_gdbarch_register_os_abi): New function.
7275 (alpha_gdbarch_init): Give registered ABI variant handlers a
7276 chance to tweak the gdbarch once we have set up defaults.
7277 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7278
7279 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7280
7281 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7282 to standard_coerce_float_to_double.
7283 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7284
7285 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7286
7287 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7288 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7289 from gdbarch_tdep rather than a constant.
7290 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7291 the default text address for all Alpha Unix ABIs.
7292 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7293 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7294
7295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7296
7297 * alpha-tdep.h: New file. Includes several Alpha target constants
7298 taken from...
7299 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7300 let gdbarch deal with.
7301 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7302 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7303 to dependency list.
7304 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7305 Alpha target register names.
7306 * alphabsd-nat.c: Likewise.
7307 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7308 Alpha target register names. Make serveral routines static.
7309 (alpha_get_saved_register): New function.
7310 (alpha_abi_names): New.
7311 (process_note_abi_tag_sections): New function.
7312 (get_elfosabi): New function.
7313 (alpha_gdbarch_init): New function.
7314 (alpha_dump_tdep): New function.
7315 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7316
7317 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7318
7319 * frame.c (find_saved_register): Delete #ifdef
7320 HAVE_REGISTER_WINDOWS code.
7321 * config/sparc/tm-sparc.h: Update comments.
7322 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7323
7324 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7325
7326 * i960-tdep.c (i960_find_saved_register): New function.
7327 (i960_get_saved_register): New function.
7328 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7329 (i960_get_saved_register): Declare.
7330 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7331
7332 2002-04-20 David S. Miller <davem@redhat.com>
7333
7334 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7335
7336 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7337
7338 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7339 instead of NUM_PSEUDO_REGS.
7340
7341 2002-04-20 David S. Miller <davem@redhat.com>
7342
7343 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7344 GDB_MULTI_ARCH_PARTIAL
7345 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7346 define, let tm-sp64.h do it.
7347
7348 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7349
7350 * frame.c (find_saved_register): Avoid a NULL pointer
7351 dereference and actually walk the frame list.
7352
7353 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7354
7355 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7356 sorted in most most-recent-used order. Document.
7357 * gdbarch.h, gdbarch.c: Regenerate.
7358
7359 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7360
7361 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7362 instead of ->prev.
7363 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7364 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7365 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7366 instead of ->prev.
7367
7368 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7369
7370 Fix PR gdb/471.
7371 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7372 (build_builtin_type_vec128): Ditto.
7373 (append_composite_type_field): Fix calculation of type length in
7374 union case.
7375
7376 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7377
7378 * config/djgpp/README: Update.
7379
7380 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7381 compiler warnings.
7382
7383 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7384
7385 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7386 (alpha_setup_arbitrary_frame): ...to this.
7387 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7388 for alpha_setup_arbitrary_frame.
7389
7390 2002-04-18 Andrew Cagney <cagney@redhat.com>
7391
7392 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7393 * gdbarch.h, gdbarch.c: Regenerate.
7394
7395 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7396 * target.h (memory_breakpoint_from_pc): Update declaration.
7397 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7398
7399 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7400 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7401 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7402 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7403 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7404 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7405 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7406 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7407 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7408 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7409 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7410 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7411
7412 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7413 const pointer.
7414 * monitor.c (monitor_insert_breakpoint): Ditto.
7415 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7416
7417 * config/mcore/tm-mcore.h: Update copyright.
7418 * mem-break.c: Ditto.
7419 * xstormy16-tdep.c: Ditto.
7420
7421 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7422
7423 * p-exp.y: Add precedence rule for '^' token.
7424 This removes the shift/reduce conflicts.
7425 Remove the comment concerning these shift/reduce conflicts.
7426
7427 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7428
7429 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7430 (registers_powerpc_nofp): New register set for processors
7431 without floating point unit.
7432
7433 2002-04-18 David S. Miller <davem@redhat.com>
7434
7435 * MAINTAINERS: Add myself to write-after-approval.
7436
7437 2002-04-17 Michael Snyder <msnyder@redhat.com>
7438
7439 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7440
7441 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7442
7443 * rs6000-tdep.c (frame_initial_stack_address): Use
7444 frame_register_read to read the alloca_reg.
7445
7446 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7447
7448 * frame.c (find_saved_register): Find saved registers in the next
7449 not prev frame.
7450 Fix PR gdb/365.
7451
7452 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7453
7454 * gdbarch.sh (LANG): Set to ``c''.
7455
7456 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7457
7458 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7459
7460 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7461
7462 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7463 Update copyright.
7464
7465 * hpread.c (hpread_get_lntt): Add declaration.
7466 Also fix PR gdb/391.
7467
7468 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7469
7470 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7471 * aclocal.m4, configure: Re-generate.
7472 Fix PR gdb/391.
7473
7474 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7475
7476 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7477 instead of tm_print_insn.
7478
7479 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7480
7481 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7482
7483 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7484
7485 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7486 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7487 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7488
7489 2002-04-12 Don Howard <dhoward@redhat.com>
7490
7491 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7492 max_user_call_depth.
7493 (init_cmd_lists): Initialize the new value;
7494 * cli/cli-script.c (execute_user_command): Limit the call depth of
7495 user defined commands. This avoids a core-dump when user commands
7496 are infinitly recursive.
7497
7498 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7499
7500 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7501 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7502 from tdep struct instead of DEFAULT_LR_SAVE.
7503 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7504 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7505 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7506
7507 2002-04-12 Michael Snyder <msnyder@redhat.com>
7508
7509 * Remote.c: Spelling fix.
7510 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7511 If no symbol found for "sbrk", try "_sbrk".
7512 (make_output_phdrs): Use bfd_section_name.
7513 (gcore_copy_callback): Use bfd_section_name.
7514 * eval.c: Indentation fix-ups.
7515 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7516 in case it gets applied to an address that is already
7517 in the instruction space.
7518 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7519 * symfile.c: Fix indentation, long lines.
7520 * source.c: White space fix-up.
7521
7522 2002-04-12 Andrew Cagney <cagney@redhat.com>
7523
7524 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7525 * frame.c (frame_register_read): New function. Return non-zero on
7526 success.
7527 (read_relative_register_raw_bytes_for_frame): Delete.
7528 (read_relative_register_raw_bytes): Delete.
7529 * frame.h (frame_register_read): Declare.
7530 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7531 * sh-tdep.c: Ditto.
7532 * infcmd.c (do_registers_info): Ditto.
7533 * hppa-tdep.c: Ditto.
7534 * rs6000-tdep.c: Ditto.
7535 * h8500-tdep.c: Ditto.
7536 * mips-tdep.c: Ditto.
7537 * h8300-tdep.c: Ditto.
7538 * z8k-tdep.c: Ditto.
7539
7540 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7541
7542 From Jimi X <jimix@watson.ibm.com>:
7543 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7544 64-bit SysV ABI.
7545
7546 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7547
7548 From Jimi X <jimix@watson.ibm.com>:
7549 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7550 bfd info.
7551
7552 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7553
7554 From Jimi X <jimix@watson.ibm.com>:
7555 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7556 register sets for these processor variants.
7557
7558 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7559
7560 * regformats/reg-ppc.dat: Support FPSCR.
7561
7562 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7563
7564 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7565 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7566 Add fpscr as an invalid/unfetchable register.
7567 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7568 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7569 (fill_fpregset): Add support for register fpscr.
7570 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7571 (fill_gregset): Account for the fact that register ``mq'' might
7572 not exist.
7573 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7574 (registers_power): Add fpscr to register set at slot 71.
7575 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7576 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7577
7578 2002-04-11 Michael Snyder <msnyder@redhat.com>
7579
7580 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7581 * configure: Regenerate.
7582 * config.in: Regenerate.
7583 * acconfig.h: Add define for _SYSCALL32.
7584 * core-sol2.c: Remove #define _SYSCALL32.
7585 * solib-legacy.c: Remove #define _SYSCALL32.
7586
7587 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7588
7589 * stack.c (select_frame): Cleanup internal error message, do not
7590 use %p.
7591
7592 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7593
7594 * stack.c (select_frame): Check that selected_frame and the
7595 specified level are as expected.
7596 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7597 Update copyright.
7598 * frame.h (struct frame_info): Add field `level'. Update
7599 copyright.
7600 Work-in-progress PR gdb/464.
7601
7602 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7603
7604 * maint.c (maint_print_section_info): Rename print_section_info.
7605 (print_bfd_section_info, print_objfile_section_info): Update.
7606 * inferior.h (struct gdbarch): Add opaque declaration.
7607 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7608 * gdbarch.h: Regenerate.
7609
7610 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7611
7612 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7613 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7614 (kernel_u_size): Added.
7615 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7616 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7617
7618 2002-04-04 Jim Ingham <jingham@apple.com>
7619
7620 * valarith.c (find_size_for_pointer_math): New function, either returns
7621 the size for a pointer's target, returns 1 for void *, or errors for
7622 incomplete types.
7623 (value_add, value_sub): use find_size_for_pointer_math.
7624
7625 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7626
7627 * linux-low.c (linux_look_up_symbols): New hook.
7628 (linux_target_ops): Add linux_look_up_symbols.
7629 * remote-utils.c (decode_address): New function.
7630 (look_up_one_symbol): New function.
7631 * server.c (handle_query): Call target look_up_symbols hook.
7632 * server.h (look_up_one_symbol): Add prototype.
7633 * target.h (struct target_ops): Add look_up_symbols hook.
7634
7635 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7636
7637 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7638 override FP_REGNUM with frame->fp. Update copyright.
7639 * parse.c (num_std_regs, std_regs): Delete.
7640 (target_map_name_to_register): Do not search std_regs. Update
7641 function description.
7642 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7643 declarations. Update copyright.
7644 Fix PR gdb/251.
7645
7646 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7647
7648 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7649 after the last symbol in a block.
7650
7651 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7652
7653 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7654 is non zero as a found symbol.
7655
7656 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7657
7658 * findvar.c: Include "builtin-regs.h".
7659 (value_of_register): Call value_of_builtin_reg when applicable.
7660 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7661 (target_map_name_to_register): Call
7662 builtin_reg_map_name_to_regnum.
7663 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7664 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7665 (builtin_regs_h): Define.
7666 (builtin-regs.o): New target.
7667 (findvar.o): Add $(builtin_regs_h).
7668 * builtin-regs.c, builtin-regs.h: New files.
7669 * std-regs.c: New file.
7670 Partial fix for PR gdb/251.
7671
7672 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7673
7674 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7675 it's no longer required.
7676
7677 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7678
7679 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7680
7681 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7682
7683 From Jimi X <jimix@watson.ibm.com>:
7684 * rs6000-tdep.c (rs6000_software_single_step): Use
7685 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7686 and size. Use target_insert_breakpoint() and
7687 target_remove_breakpoint() to insert and remove breakpoints
7688 instead of explicit memory reads and writes.
7689
7690 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7691
7692 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7693 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7694 ELF_OBJECT_FORMAT ifdef.
7695
7696 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7697
7698 From Jimi X <jimix@watson.ibm.com>:
7699 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7700
7701 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7702
7703 From Jimi X <jimix@watson.ibm.com>:
7704 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7705 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7706
7707 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7708
7709 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7710 s/asprintf/xasprintf/.
7711 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7712
7713 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7714
7715 I believe Jeff Law denies responsability for this one:
7716 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7717 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7718 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7719 Work-around for PR gdb/366.
7720
7721 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7722
7723 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7724 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7725 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7726
7727 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7728
7729 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7730 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7731 information.
7732
7733 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7734
7735 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7736 maintainer.
7737
7738 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7739
7740 * README (Reporting Bugs in GDB): Document the bug web page as the
7741 prefered way of submitting bugs.
7742 Fix PR gdb/402.
7743
7744 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7745
7746 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7747 -1. Update comment.
7748 * gdbarch.h, gdbarch.c: Re-generate.
7749
7750 2002-04-07 Andreas Schwab <schwab@suse.de>
7751
7752 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7753 buffer to regcache_collect.
7754
7755 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7756
7757 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7758 * gdbarch.c, gdbarch.h: Re-generate.
7759
7760 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7761
7762 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7763 declaration. Fix -Werror.
7764
7765 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7766
7767 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7768 * gdbarch.c: Regenerate.
7769
7770 2002-04-05 Michael Snyder <msnyder@redhat.com>
7771
7772 * breakpoint.c (clear_command): Rewrite middle section to
7773 combine two loops with identical control conditions.
7774 Add a cleanup to eliminate a memory leak.
7775 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7776
7777 2002-04-05 H.J. Lu (hjl@gnu.org)
7778
7779 * solib-svr4.c (bkpt_names): Add "__start".
7780
7781 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7782
7783 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7784 as test for 64 bit target.
7785
7786 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7787
7788 * h8500-tdep.c (h8500_write_fp): Delete function.
7789 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7790 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7791 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7793 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7794 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7795 (s390_write_fp):
7796 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7797 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7798 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7799 (d10v_write_fp): Delete function.
7800 * inferior.h (write_fp, generic_target_write_fp): Delete
7801 declarations.
7802 * regcache.c (generic_target_write_fp): Delete function.
7803 (write_fp): Delete function.
7804 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7805 * gdbarch.h, gdbarch.c: Regenerate.
7806 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7807 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7808 (sparc64_write_fp): Delete declaration.
7809 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7810 (h8500_write_fp): Delete declaration.
7811
7812 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7813
7814 * sparc-tdep.c (sparc64_write_fp): Delete.
7815 (sparc_push_dummy_frame): Replace write_fp call with code to store
7816 the FP directly.
7817 (sparc_gdbarch_init): Do not initialize write_fp.
7818
7819 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7820
7821 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7822 clause.
7823
7824 2002-03-29 Jim Blandy <jimb@redhat.com>
7825
7826 * stack.c (get_selected_block): Add new argument `addr_in_block',
7827 used to return the exact code address we used to select the block,
7828 not just the block.
7829 * blockframe.c (get_frame_block, get_current_block): Same.
7830 * frame.h (get_frame_block, get_current_block,
7831 get_selected_block): Update declarations.
7832 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7833 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7834
7835 2002-04-05 Michael Snyder <msnyder@redhat.com>
7836
7837 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7838 warning message.
7839
7840 2002-04-05 J. Brobecker <brobecker@gnat.com>
7841
7842 * utils.c (xfullpath): New function.
7843 * defs.h (xfullpath): Add declaration.
7844 * source.c (openp): Use xfullpath in place of gdb_realpath to
7845 avoid resolving the basename part of filenames when the
7846 associated file is a symbolic link. This fixes a potential
7847 inconsistency between the filenames known to GDB and the
7848 filenames it prints in the annotations.
7849 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7850 to be able to match a filename with either the real filename, or
7851 the name of any symbolic link to this file.
7852 (lookup_partial_symtab): Ditto.
7853
7854 2002-04-04 Michael Snyder <msnyder@redhat.com>
7855
7856 * breakpoint.c: Add support for hardware breakpoints in overlays.
7857 (overlay_events_enabled): New state variable.
7858 (insert_breakpoints): Use overlay_events_enabled to decide
7859 whether to attempt to set a breakpoint at the overlay load addr.
7860 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7861 (remove_breakpoint): Use overlay_events_enabled to decide
7862 whether breakpoints need to be removed from overlay load addr.
7863 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7864 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7865 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7866 disable_overlay_breakpoints): Update overlay_events_enabled.
7867
7868 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7869
7870 * dwarf2read.c (struct function_range): New.
7871 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7872 (check_cu_functions): New.
7873 (read_file_scope): Initialize global function lists.
7874 Call dwarf_decode_line after processing children.
7875 (read_func_scope): Add to global function list.
7876 (dwarf_decode_lines): Call check_cu_functions everywhere
7877 record_line is called. Call record_line with a linenumber
7878 of 0 to mark sequence ends.
7879
7880 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7881
7882 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7883 change sync with glibc.
7884
7885 2002-04-03 Jim Blandy <jimb@redhat.com>
7886
7887 * configure.in: Call AC_C_INLINE.
7888 * configure: Regenerated.
7889
7890 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7891
7892 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7893 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7894
7895 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7896
7897 * NEWS: Mention gcore support on FreeBSD/i386.
7898
7899 * fbsd-proc.c: New file.
7900 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7901 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7902
7903 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7904 while statement.
7905
7906 2002-03-29 Jim Blandy <jimb@redhat.com>
7907
7908 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7909 unescaped newlines in string literals, but newer ones don't. So
7910 escape them.
7911
7912 2002-03-26 Michael Snyder <msnyder@redhat.com>
7913 Andrew Cagney <cagney@redhat.com>
7914
7915 * cli/cli-dump.c: New file. Dump memory to file,
7916 restore file to memory.
7917 * cli/cli-dump.h: New file.
7918 * Makefile.in: Add rules, dependencies for cli-dump.o.
7919 * NEWS: Mention new commands.
7920
7921 2002-03-28 Michael Snyder <msnyder@redhat.com>
7922
7923 * symfile.c (symbol_file_add): Move test for null symbols to later.
7924
7925 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7926
7927 From veksler at il.ibm.com:
7928 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7929 the xstrduped original path.
7930 Fix PR gdb/417.
7931
7932 2002-03-27 Michael Snyder <msnyder@redhat.com>
7933
7934 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7935 * infcmd.c (_initialize_infcmd): Ditto.
7936 * language.c (_initialize_language): Ditto.
7937 * symfile.c (_initialize_symfile): Ditto.
7938 * top.c (_init_main): Ditto.
7939 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7940
7941 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7942
7943 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7944 vector registers handling.
7945 (skip_prologue): Handle new AltiVec instructions. Fill in new
7946 fields of frame data.
7947 (frame_get_saved_regs): Fill in information for AltiVec registers.
7948
7949 2002-03-27 Jim Blandy <jimb@redhat.com>
7950
7951 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7952 a function; leave this macro here to invoke that function.
7953 (symbol_init_mangled_name): Declaration for that function.
7954 * symtab.c (symbol_init_mangled_name): New function.
7955
7956 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7957
7958 * valarith.c: Replace strerror with safe_strerror.
7959 * tracepoint.c: Ditto.
7960 * lin-lwp.c: Ditto.
7961 * go32-nat.c: Ditto.
7962 * inflow.c: Ditto.
7963 * gnu-nat.c: Ditto.
7964
7965 2002-03-27 Andreas Schwab <schwab@suse.de>
7966
7967 * event-top.c (command_line_handler): Remove useless if.
7968
7969 2002-03-27 Andreas Jaeger <aj@suse.de>
7970
7971 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7972 comment.
7973
7974 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7975
7976 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7977 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7978 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7979 (x86_64_linux_dr_get_status, supply_gregset),
7980 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7981 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7982 (x86_64_register_info_table): Add.
7983 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7984 (x86_64_register_raw_size, x86_64_register_virtual_type),
7985 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7986 general x86_64_register_info_table.
7987 (i386_gdbarch_init): gdbarch_register_bytes is now set
7988 dynamicaly during initialization.
7989 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7990 * gdbserver/linux-x86-64-low.c: Ditto.
7991
7992 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7993
7994 * gdbserver/server.c (main): Call target_signal_to_host_p
7995 and target_signal_to_host on signals received from the remote.
7996 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7997 target_signal_from_host on signals sent to the remote.
7998 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7999 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8000
8001 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8002
8003 * signals/signals.c: Include "server.h" in gdbserver build.
8004 (target_signal_from_name): Don't use STREQ.
8005 (_initialize_signals): Likewise. Don't include function in
8006 gdbserver build.
8007
8008 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8009
8010 * signals.c: Moved to...
8011 * signals/signals.c: Here.
8012 * Makefile (signals.o): Update.
8013
8014 2002-03-26 Jeff Law (law@redhat.com)
8015
8016 * somread.c (som_symtab_read): Remove some commented out code and
8017 updated related comments. Do not set the minimal symbol table to
8018 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8019 in a dynamic executable.
8020 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8021 where we are unable to find the minimal symbol for the given
8022 PC value.
8023
8024 2002-03-25 Jeff Law (law@redhat.com)
8025
8026 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8027
8028 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8029
8030 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8031
8032 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8033
8034 * command.h: Update copyright.
8035 (struct cmd_list_element): Replace definition with opaque
8036 declaration.
8037 (enum cmd_types): Document that it will eventually be moved to
8038 cli/cli-decode.h
8039 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8040 (MALLOCED_REPLACEMENT): Delete macro.
8041 * Makefile.in (cli_decode_h): Add $(command_h).
8042 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8043 * top.c: Include "cli/cli-decode.h".
8044 * completer.c: Include "cli/cli-decode.h".
8045 * maint.c: Include "cli/cli-decode.h".
8046 * cli/cli-decode.h: Include "command.h".
8047 (enum command_class): Delete.
8048 (enum cmd_types): Comment out.
8049 (enum cmd_auto_boolean): Delete.
8050 (enum var_types): Delete.
8051
8052 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8053
8054 * cli/cli-decode.c: Include "gdb_assert.h".
8055 (add_set_or_show_cmd): New static function.
8056 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8057 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8058 all fields, such as func, from the set command.
8059
8060 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8061
8062 * MAINTAINERS (sh-elf): Change warning flag to -w.
8063
8064 2002-03-23 Andrew Cagney <cagney@redhat.com>
8065
8066 * defs.h (error): Add printf format attribute.
8067 * thread-db.c (thread_from_lwp): Fix error format string.
8068 * stack.c (parse_frame_specification): Ditto.
8069 * cli/cli-decode.c (undef_cmd_error): Ditto.
8070 * scm-lang.c (scm_lookup_name): Ditto.
8071 * tracepoint.c (trace_error): Ditto.
8072 * remote-utils.c (usage): Ditto.
8073 * remote.c (compare_sections_command): Ditto.
8074 Fix PR gdb/328.
8075
8076 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8077
8078 * gdbtypes.c (append_composite_type_field): New function.
8079 (init_composite_type): New function.
8080 * gdbtypes.h (append_composite_type_field): Declare.
8081 (init_composite_type): Ditto.
8082
8083 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8084
8085 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8086 function.
8087 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8088 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8089 structure returning convention for SYSV ABI case, but not
8090 for GNU/Linux, FreeBSD, or NetBSD.
8091
8092 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8093
8094 * symtab.h (lookup_block_symbol): Add mangled_name argument
8095 to prototype.
8096
8097 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8098 with new mangled_name argument.
8099 * linespec.c (decode_line_1): Likewise.
8100 * valops (value_of_this): Likewise.
8101 * symtab.c (lookup_transparent_type): Likewise.
8102 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8103 (lookup_symbol): If we are given a mangled name, pass it down
8104 to lookup_symbol_aux.
8105 (lookup_block_symbol): If we are given a mangled name to check
8106 against, only return symbols which match it.
8107
8108 2002-03-22 Christopher Faylor <cgf@redhat.com>
8109
8110 * win32-nat.c (child_create_inferior): Check for proper shell to use
8111 here, in case the user changes it on the fly.
8112 (_initialize_inftarg): Remove shell path considerations.
8113
8114 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8115
8116 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8117 for gdbarch_max_register_raw_size and max_register_virtual_size.
8118 Adjust copyright year.
8119
8120 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8121
8122 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8123 in a function to cover the entire beginning of the function
8124 as well if it does not already.
8125
8126 2002-03-21 Tom Rix <trix@redhat.com>
8127
8128 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8129 (rs6000_ptrace64): Renamed from ptrace64.
8130
8131 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8132
8133 * gdbserver/remote-utils.c (remote_open): Don't call
8134 getprotobyname, we're all using TCP here so just use
8135 IPPROTO_TCP.
8136 * gdbserver/gdbreplay.c (remote_open): Ditto.
8137
8138 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8139
8140 * regcache.c (_initialize_regcache): No need to call
8141 build_regcache() at this time; it gets called whenever
8142 the gdbarch changes.
8143
8144 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8145
8146 * sparc-nat.c: Include sys/param.h where possible.
8147
8148 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8149
8150 Fix PR gdb/422.
8151 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8152 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8153 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8154 complex types.
8155 * stabsread.c (rs6000_builtin_type): Likewise.
8156 (read_sun_floating_type): Likewise.
8157
8158 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8159
8160 * stabsread.c (read_member_functions): Remove skip code for duplicate
8161 constructor/destructor methods. Use standard parsing for these
8162 methods and just do not chain them to the list of methods after
8163 parsing.
8164
8165 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8166
8167 * coffread.c: Remove redundant static declarations. Replace
8168 occurrences of `PTR' with `void *'.
8169 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8170 * top.h (quit_cover): Likewise.
8171 * defs.h (catch_errors): Likewise.
8172
8173 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8174
8175 * defs.h (XMALLOC): Define.
8176 * gdb-events.sh (XMALLOC): Delete macro.
8177 * gdb-events.c, gdb-events.h: Regenerate.
8178 * gdbarch.sh (XMALLOC): Delete macro.
8179 * gdbarch.c: Regenerate.
8180 * serial.c (XMALLOC): Delete macro.
8181 * ui-file.c (XMALLOC): Ditto.
8182 * ser-unix.h (XMALLOC): Ditto.
8183 * sh-tdep.c (XMALLOC): Ditto.
8184 * ui-out.c (XMALLOC): Ditto.
8185 * utils.c (XMALLOC): Ditto.
8186 * i386-tdep.c (XMALLOC): Ditto.
8187 * gdb-events.c (XMALLOC): Ditto.
8188 * d10v-tdep.c (XMALLOC): Ditto.
8189 * cli-out.c (XMALLOC): Ditto.
8190
8191 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8192 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8193 * ui-file.c, ui-out.c: Ditto.
8194
8195 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8196
8197 * command.h (struct cmd_list_element): Add field context.
8198 (set_cmd_context, get_cmd_context): Declare.
8199 * cli/cli-decode.h: Ditto.
8200 * cli/cli-decode.c (get_cmd_context): New function.
8201 (set_cmd_context): New function.
8202 (add_cmd): Initialize context.
8203 Part of fixing PR gdb/145 and PR gdb/146.
8204
8205 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8206
8207 * cli/cli-decode.c (cmd_type): New function.
8208 * command.h (cmd_type): Declare.
8209 * infrun.c (set_schedlock_func): Call function cmd_type.
8210 * kod.c (kod_set_os): Call cmd_type.
8211 * cris-tdep.c (cris_version_update): Use function cmd_type.
8212 (cris_mode_update, cris_abi_update): Ditto.
8213
8214 * command.h: (execute_cmd_post_hook): Declare.
8215 (execute_cmd_pre_hook): Declare.
8216 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8217 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8218 functions. Execute pre/post hook while ensuring that afterwords
8219 hook_in is cleared.
8220 * top.c (execute_command): Use execute_cmd_post_hook, and
8221 execute_cmd_pre_hook to execute pre/post commands.
8222 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8223 hook_stop_stub.
8224 (hook_stop_stub): Call execute_cmd_pre_hook.
8225
8226 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8227
8228 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8229 set'' and this leads to a core dump. Move xstrdup of
8230 operating_system to after check that it is not NULL.
8231
8232 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8233
8234 * kod.c (kod_set_os): Remove unnecessary check that
8235 ``command->type'' is set_cmd.
8236
8237 * valprint.c (set_input_radix): Use input_radix.
8238 (set_output_radix): Use output_radix.
8239 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8240 isn't reverted.
8241
8242 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8243
8244 * value.h (struct value): Delete field ``substring_addr''. Change
8245 aligner fields to force_doublest_align, force_longest_align,
8246 force_core_addr_align and force_pointer_aligh.
8247
8248 * value.h (struct value): Fix typo in above change.
8249
8250 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8251
8252 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8253 to fix internal_error from ``maintenance print architecture''.
8254
8255 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8256
8257 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8258 for gcc versions after gcc-2.8.1.
8259
8260 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8261
8262 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8263 for method resolution. Restore adjustment of ``this'' pointer after
8264 calling value_struct_elt, which was accidentally removed during the
8265 HP merge.
8266
8267 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8268
8269 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8270 value_of_register.
8271 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8272 get_saved_register.
8273 * value.h (value_of_register): Update.
8274
8275 2002-03-14 Richard Henderson <rth@redhat.com>
8276
8277 * configure.in: Detect declaration for canonicalize_file_name.
8278 * utils.c (canonicalize_file_name): Declare, if needed.
8279 (gdb_realpath): Prefer realpath if available and usable.
8280 * config.in, configure: Rebuild.
8281
8282 2002-03-14 Richard Henderson <rth@redhat.com>
8283
8284 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8285 a constant array bound.
8286
8287 * MAINTAINERS: Add myself to write-after-approval.
8288
8289 2002-03-14 Michael Snyder <msnyder@redhat.com>
8290
8291 * symfile.c (syms_from_objfile): Return immediately if no syms.
8292 (symbol_file_add): Return immediately if no syms.
8293 (find_sym_fns): Return immediately if no syms.
8294
8295 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8296
8297 * gdbserver/remote-util.c (remote_open): Print remote-side's
8298 IP address when remote debugging over the network.
8299
8300 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8301
8302 * config/sparc/fbsd.mh: Fix copyright.
8303 * config/sparc/fbsd.mt: Likewise.
8304
8305 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8306
8307 * MAINTAINERS: Fix typo in name of gdb warnings option.
8308 (x86-64): Fix formating so that this can be parsed by awk.
8309
8310 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8311
8312 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8313 * defs.h: Include "gdb/signals.h".
8314 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8315
8316 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8317
8318 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8319 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8320 from x86-64-tdep.h
8321
8322 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8323 Don Howard <dhoward@redhat.com>
8324
8325 * mips-tdep.c (ST0_FR): Define.
8326 (mips2_fp_compat): New function, temporarily disabled.
8327 (mips_read_fp_register_single): New function.
8328 (mips_read_fp_register_double): New function.
8329 (mips_print_register): Use them.
8330 (do_fp_register_row): Likewise.
8331
8332 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8333
8334 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8335 approval''.
8336
8337 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8338
8339 * stabsread.c (read_member_functions): Fix is_stub test for
8340 static member functions, improve comment.
8341
8342 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8345 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8346 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8347 commands that set boolean values.
8348 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8349 (arm_rdi_resume): Always initialize PC.
8350 (arm_rdi_open): Don't use rslt as a boolean.
8351 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8352 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8353 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8354 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8355
8356 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8357
8358 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8359 * configure: Rebuilt.
8360
8361 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8362
8363 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8364 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8365
8366 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8367
8368 * cli/cli-decode.c (set_cmd_completer): New function.
8369 * command.h (set_cmd_completer): Declare.
8370 * cli/cli-decode.h (set_cmd_completer): Ditto.
8371
8372 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8373 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8374 * win32-nat.c (_initialize_inftarg): Ditto.
8375 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8376 * proc-api.c (_initialize_proc_api): Ditto.
8377 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8378 * source.c (_initialize_source): Ditto.
8379 * exec.c (_initialize_exec): Ditto.
8380 * solib.c (_initialize_solib): Ditto.
8381 * top.c (init_main): Ditto.
8382 * tracepoint.c (_initialize_tracepoint): Ditto.
8383 * symfile.c (_initialize_symfile): Ditto.
8384 * printcmd.c (_initialize_printcmd): Ditto.
8385 * infcmd.c (_initialize_infcmd): Ditto.
8386 * corefile.c (_initialize_core): Ditto.
8387
8388 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8389
8390 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8391
8392 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8393
8394 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8395
8396 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8397
8398 * NEWS: Update headings, 5.2 has branched.
8399
8400 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8401
8402 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8403 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8404 (register_addr, REGISTER_RAW_SIZE): Likewise.
8405 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8406 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8407
8408 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8409
8410 * MAINTAINERS (x86-64): Add myself.
8411 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8412 changed value_ptr -> struct value *
8413
8414 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8415
8416 * configure.host (sparc64-*-freebsd): Add.
8417 * configure.tgt: Likewise.
8418 * config/sparc/fbsd.mh: New file.
8419 * config/sparc/fbsd.mt: Likewise.
8420 * config/sparc/nm-fbsd.h: Likewise.
8421 * config/sparc/tm-fbsd.h: Likewise.
8422
8423 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8426 regformats/reg-s390x.dat.
8427
8428 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8429
8430 * utils.c: Add FIXME explaining true/false problem.
8431
8432 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8433
8434 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8435
8436 2002-02-28 Michael Chastain <mec@shout.net>
8437
8438 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8439
8440 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8441
8442 * gdbserver/linux-s390-low.c: New file.
8443 * regformats/reg-s390.dat: New file.
8444 * regformats/reg-s390x.dat: New file.
8445 * gdbserver/configure.srv: Add S/390.
8446 * gdbserver/Makefile.in: Add S/390.
8447 * configure.tgt: Enable gdbserver for S/390.
8448
8449 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8450
8451 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8452 first line of the doc string for "info dos", except at the end of
8453 the sentence, since the short help stops at the first period.
8454
8455 2002-02-28 Jason Merrill <jason@redhat.com>
8456
8457 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8458
8459 2002-02-27 Fred Fish <fnf@redhat.com>
8460
8461 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8462 comment (dumy -> dummy).
8463
8464 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8465
8466 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8467
8468 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8469
8470 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8471
8472 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8473
8474 * gdbserver/acconfig.h: New file.
8475 * gdbserver/i387-fp.c: New file.
8476 * gdbserver/i387-fp.h: New file.
8477 * gdbserver/linux-x86-64.c: New file.
8478 * regformats/reg-x86-64.dat: New file.
8479 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8480 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8481 * gdbserver/configure.in: Add support for regsets.
8482 * gdbserver/config.in: Regenerate.
8483 * gdbserver/configure: Regenerate.
8484 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8485 * gdbserver/linux-low.h: New file.
8486 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8487 for regsets.
8488 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8489 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8490 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8491 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8492 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8493 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8494 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8495 "i387-fp.h". Add PTRACE_GETREGS and friends.
8496 * gdbserver/regcache.c (supply_register): New function.
8497 (supply_register_by_name): New function.
8498 (collect_register): New function.
8499 (collect_register_by_name): New function.
8500
8501 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8502
8503 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8504 (config.status): Add configure.srv dependency.
8505 (server_h): Add config.h dependency.
8506
8507 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8508
8509 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8510 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8511 * gdbserver/configure.srv: Change i386-*-linux* to use
8512 reg-i386-linux.o.
8513
8514 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8515
8516 * x86-64-tdep.c: Re-indent. Update copyright date.
8517
8518 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8519
8520 From Michal Ludvig <mludvig@suse.cz>:
8521 * x86-64-tdep.c (value.h): Delete.
8522 (gdb_assert.h): Include.
8523 (x86_64_register_convert_to_virtual,
8524 x86_64_register_convert_to_raw ): Add check which lets only
8525 floating-point values to be converted.
8526 (value_push): Delete.
8527 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8528 (i386_gdbarch_init): Number of register_bytes fixed.
8529
8530 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8531
8532 * MAINTAINERS: Add x86-64 target.
8533
8534 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8535
8536 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8537 * osfsolib.c (solib_map_sections): Ditto.
8538 * irix5-nat.c (solib_map_sections): Ditto.
8539 * corelow.c (gdb_check_format): Ditto.
8540 * symfile.c (symfile_bfd_open): Ditto.
8541 * solib.c (solib_map_sections): Ditto.
8542 Fix PR gdb/354.
8543
8544 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8545
8546 * remote.c (_initialize_remote): By default, disable ``e'' and
8547 ``E'' step out-of-range packets.
8548
8549 2002-02-26 Andreas Schwab <schwab@suse.de>
8550
8551 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8552 m68k_linux_frame_saved_pc.
8553 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8554 in_sigtramp.
8555 (SIGCONTEXT_PC_OFFSET): Remove.
8556 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8557 m68k_linux_sigtramp_saved_pc): New functions.
8558 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8559 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8560 (UCONTEXT_PC_OFFSET): Define.
8561 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8562 non-RT and RT signal trampolines.
8563
8564 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8565
8566 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8567 (TARGET_NBPG, STACK_END_ADDR): Delete
8568 (VARIABLES_INSIDE_BLOCK): Delete.
8569
8570 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8571
8572 * utils.c (perror_with_name): Make string parameter constant.
8573 (print_sys_errmsg): Ditto.
8574 (query): Ditto.
8575 * defs.h (perror_with_name): Update.
8576 (print_sys_errmsg): Update.
8577 (query): Update.
8578
8579 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8580
8581 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8582 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8583
8584 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8585
8586 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8587 if it already matches the current architecture from the exec file.
8588 Include arch-utils.h for gdbarch_info_init prototype.
8589 * Makefile.in (rs6000-nat.o): Update dependencies.
8590
8591 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8592
8593 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8594 list of exported variables.
8595
8596 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8597
8598 * gdbserver/configure.srv: New file.
8599 * gdbserver/configure.in: Use configure.srv instead
8600 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8601 from it.
8602 * gdbserver/configure: Regenerated.
8603 * gdbserver/terminal.h: New file.
8604 * gdbserver/Makefile.in: Update for configure changes. Remove
8605 more unneeded include paths.
8606
8607 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8608
8609 From wiz at danbala:
8610 * config/sparc/tm-sp64.h: Fix grammar and typos.
8611 Fix PR gdb/287.
8612
8613 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8614
8615 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8616 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8617 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8618 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8619 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8620 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8621 * s390-tdep.c: Ditto.
8622 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8623 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8624 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8625 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8626 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8627 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8628 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8629 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8630 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8631 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8632 Fix PR gdb/378.
8633
8634 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8635
8636 * lin-thread.c: Delete file.
8637 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8638 to gdb_proc_service.h.
8639 * configure: Re-generate.
8640
8641 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8642 * serial.c (serial_open): Delete check for "ocd".
8643 Fix PR gdb/349.
8644
8645 * Makefile.in (linux-thread.o): Delete target.
8646 * linux-thread.c: Delete file.
8647
8648 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8649 renamed SH files to be consistent.
8650
8651 * symtab.c (sort_search_symbols): Use xfree.
8652
8653 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8654
8655 * arm-linux-tdep.c (arm_linux_init_abi): Register
8656 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8657 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8658 definition with undef, since we don't want the sysvr4 definition.
8659 (SKIP_TRAMPOLINE_CODE): Likewise.
8660
8661 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8662
8663 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8664
8665 * configure.in: (AC_CHECK_FUNCS) Added test for
8666 canonicalize_file_name Regenerated.
8667 * config.in, configure: Regenerated.
8668 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8669 defined use canonicalize_file_name.
8670
8671 2002-02-23 Michael Chastain <mec@shout.net>
8672
8673 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8674
8675 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8676
8677 * README: Remove references to cygnus.com.
8678 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8679 dot com'' form. Remove references to cygnus.com and sourceware.
8680
8681 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8682
8683 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8684 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8685 1003.1-2001 no longer allows "head -1".
8686 * gdb/Makefile.in (version.c): Likewise.
8687 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8688 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8689 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8690
8691 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8692
8693 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8694 * command.h (cmd_cfunc_eq): Declare.
8695 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8696
8697 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8698 ``struct cmd_list_element *''.
8699 * cli/cli-cmds.c (is_complete_command): Update. Use
8700 cmd_cfunc_eq.
8701 * top.c (execute_command): Pass the command to
8702 is_complete_command.
8703 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8704
8705 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8706
8707 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8708 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8709 architecture defines.
8710 * s390-tdep.c (s390_gdbarch_init): Likewise.
8711
8712 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8713
8714 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8715 (arm_linux_push_arguments): Likewise.
8716 (arm_linux_init_abi): Register them. Also register linux-specific
8717 call_dummy_words.
8718 (find_minsym_and_objfile): Use strcmp, not STREQ.
8719 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8720 (arm_linux_call_dummy_words): Delete declaration.
8721 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8722 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8723 declarations.
8724 (LOWEST_PC): Delete.
8725
8726 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8727
8728 * maint.c (print_section_info): Do not prepend `0x' to filepos
8729 output, it will be handled by local_hex_string_custom.
8730
8731 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8732
8733 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8734 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8735 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8736
8737 2002-02-22 Jim Blandy <jimb@redhat.com>
8738
8739 Indicate that the bcache functions don't change the strings
8740 they're passed.
8741 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8742 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8743
8744 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8745
8746 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8747
8748 2002-02-21 Christopher Faylor <cgf@redhat.com>
8749
8750 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8751 find the complete path to a loaded DLL.
8752
8753 2002-02-21 Fred Fish <fnf@redhat.com>
8754
8755 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8756 that marks the end of the range of a function, enter a line number
8757 entry that has a line number of zero and a PC offset that matches
8758 the end of the function. This starts a range of PC's for which no
8759 line number information is known.
8760 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8761 PC's for which no line number info is found (line number is zero)
8762 then we didn't find any valid line information.
8763 * symtab.h: Document use of zero line number entry.
8764
8765 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8766
8767 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8768 (have_ptrace_getvrregs): Define for run time checks.
8769 (gdb_vrregset_t): New type for Altivec register handling.
8770 (fetch_register, store_register): Fetch/store altivec register
8771 when needed.
8772 (fetch_altivec_register, store_altivec_register): New functions.
8773 (supply_vrregset, fill_vrregset): New functions.
8774 (fetch_altivec_registers, store_altivec_registers): New functions.
8775 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8776 registers as well.
8777
8778 2002-02-21 Jiri Smid <smid@suse.cz>
8779
8780 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8781
8782 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8783
8784 * Makefile.in (armnbsd-nat.o): Update dependencies.
8785 * armnbsd-nat.c (supply_gregset): New function. Common code to
8786 supply the integer register set.
8787 (supply_fparegset): New function. Similar for FPA registers.
8788 (fetch_regs, fetch_fp_regs): Use them.
8789 (fetch_core_registers): Likewise.
8790 (fetch_elfcore_registers): New function.
8791 (arm_netbsd_elfcore_fns): New core-file type specification.
8792 (_initialize_arm_netbsd_nat): Register it.
8793
8794 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8795
8796 * armnbsd-nat.c: Include gdbcore.h.
8797 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8798 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8799 'void' to declaration, to shut up ARI.
8800 (fetch_core_registers): Make static. Rewrite using supply_register.
8801 (arm_netbsd_core_fns): New core-file type specification.
8802 (_initialize_arm_netbsd_nat): New function.
8803
8804 2002-02-21 Christopher Faylor <cgf@redhat.com>
8805
8806 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8807 value.
8808
8809 2002-02-20 Christopher Faylor <cgf@redhat.com>
8810
8811 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8812 fails.
8813
8814 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8815
8816 * jv-exp.y (parse_number): Change type of implicit longs
8817 to builtin_type_uint64.
8818
8819 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8820
8821 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8822 to be an integer instead of a `union wait'.
8823
8824 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8825
8826 * mips-linux-nat.c: Call the operating system GNU/Linux.
8827 * mips-linux-tdep.c: Likewise.
8828 * mips-tdep.c: Likewise.
8829
8830 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8831
8832 Fix PR gdb/265.
8833 * jv-exp.y (parse_number): Handle 64-bit integers.
8834
8835 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8836
8837 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8838 AC_STDC_HEADERS to AC_HEADER_STDC.
8839 * gdbserver/configure: Regenerated.
8840
8841 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8842
8843 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8844 is defined.
8845 * sparc-tdep.c (get_longjmp_target): Likewise.
8846
8847 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8848
8849 * News: Add news about ARM and Multi-arch. Mention the new target
8850 arm*-*-netbsd*.
8851
8852 2002-02-19 Jim Blandy <jimb@redhat.com>
8853
8854 * stabsread.c (error_type_complaint): Improve error message.
8855
8856 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8857
8858 * gdbserver/README: Update documentation.
8859 * gdbserver/configure.in: Update configury to match documentation.
8860 * gdbserver/Makefile.in: Likewise.
8861 * gdbserver/configure: Regenerated.
8862 * gdbserver/aclocal.m4: New file, generated by aclocal.
8863 * gdbserver/config.in: New file, generated by autoheader.
8864
8865 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8866
8867 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8868 armnbsd-nat.c.
8869
8870 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8871
8872 * arm-tdep.h (enum arm_float_model): New enum.
8873 (struct gdbarch_tdep): Add fp_model.
8874 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8875 up floating-point conversions until we know the floating-point model
8876 in use by the inferior. Don't complain about being unable to
8877 determine the ABI of the inferior when we don't have one.
8878 (arm_extract_return_value): Support different floating-point models.
8879 (arm_store_return_value): Likewise.
8880 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8881 ARM_FLOAT_SOFT.
8882 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8883
8884 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8885
8886 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8887 of ``current_gdbarch''.
8888
8889 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8890
8891 * armnbsd-nat.c : ANSIfy all function declarations.
8892 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8893 (fetch_inferior_registers): Re-implement in terms of above.
8894 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8895 (store_inferior_registers): Re-implement in terms of above.
8896
8897 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8898
8899 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8900 kernel.
8901 * arm-linux-tdep.c: Likewise.
8902 * config/arm/tm-linux.h: Likewise.
8903
8904 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8905
8906 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8907 * config/arm/nbsd.mt (TM_FILE): Delete.
8908 * config/arm/tm-nbsd.h: Delete.
8909
8910 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8911
8912 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8913 Initialize CALL_DUMMY_LENGTH.
8914
8915 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8916
8917 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8918 function.
8919 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8920 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8921 defines one thing and that is incorrect for this port.
8922 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8923
8924 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8925
8926 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8927
8928 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8929
8930 * win32-nat.c (display_selector): New function. Displays information
8931 about the information returned by GetThreadSelectorEntry API function.
8932 (display_selectors): New function. Displays the infomation of
8933 the selector given as argument, or of CS, DS ans FS selectors
8934 if no argument is given.
8935 ( _initialize_inftarg): Add "w32" as info prefix command.
8936 Add "info w32 selector" as command calling display_selectors.
8937
8938 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8939
8940 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8941 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8942 if not defined.
8943
8944 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8945
8946 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8947
8948 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8949
8950 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8951 (arm_fix_call_dummy): Call it.
8952 (arm_call_dummy_breakpoint_offset): Delete.
8953 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8954 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8955
8956 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8957
8958 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8959 Default to func_frame_chain_valid.
8960 * gdbarch.h, gdbarch.c: Re-generate.
8961 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8962
8963 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8964
8965 * ppc-linux-nat.c: Update copyright.
8966 (fetch_register, store_register): Add tid parameter, don't compute
8967 tid here.
8968 (fetch_ppc_registers, store_ppc_registers): Add tid
8969 parameter. Pass it along to callees.
8970 (fetch_inferior_registers, store_inferior_registers): Compute tid
8971 here, and pass it to calleed functions.
8972 (fill_gregset, supply_fpregset): Clean up formatting.
8973
8974 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8975
8976 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8977 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8978
8979 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8980
8981 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8982 * gdbarch.c gdbarch.h: Regenerate.
8983 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8984 function.
8985 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8986 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8987 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8988
8989 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8990 * arm-tdep.c (arm_get_longjmp_target): New function.
8991 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8992 this to a positive value register arm_get_longjmp_target as the
8993 longjmp handler.
8994 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8995 (arm_linux_init_abi): Set up longjmp description in tdep.
8996 * armnbsd-nat.c (get_longjmp_target): Delete.
8997 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8998 description in tdep.
8999 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9000 (get_longjmp_target): Delete declaration.
9001 (GET_LONGJMP_TARGET): Delete.
9002 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9003 (GET_LONGJMP_TARGET): Delete.
9004
9005 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9006
9007 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9008 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9009 of ``current_gdbarch''.
9010
9011 2002-02-17 Tom Tromey <tromey@redhat.com>
9012
9013 * cli/cli-cmds.c (compare_strings): New function.
9014 (complete_command): Only print each unique item once.
9015 * completer.h (complete_line): Declare.
9016 * completer.c (complete_line): New function.
9017 (line_completion_function): Use it.
9018
9019 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9020
9021 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9022 * gdbarch.h, gdbarch.c: Re-generate.
9023
9024 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9025
9026 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9027
9028 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9029
9030 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9031 * valops.c (value_arg_coerce): Don't take the address of a reference
9032 to convert an argument to a reference.
9033
9034 2002-02-15 Christopher Faylor <cgf@redhat.com>
9035
9036 * win32-nat.c (get_image_name): New function.
9037 (handle_load_dll): Use get_image_name function.
9038 (get_child_debug_event): Avoid registering debug events until possibly
9039 execed process is started.
9040 (child_create_inferior): Allow invocation via shell so that command
9041 line redirection, etc. works ok.
9042 (_initialize_inftarg): Add new command: "set shell" to control whether
9043 a shell is used to start a process.
9044
9045 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9046
9047 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9048 instead of find_register_by_number.
9049 (cannot_store_register): Likewise.
9050
9051 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9052
9053 * dwarf2read.c: Replace fprintf (stderr, ...) by
9054 fprintf_unfiltered (gdb_stderr, ...).
9055
9056 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9057
9058 * gdbserver/gdbserver.1: Document --attach.
9059
9060 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9061
9062 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9063 descriptions.
9064 * arm-tdep.c (arm_default_arm_le_breakpoint)
9065 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9066 (arm_default_thumb_be_breakpoint): New. Initialize them from
9067 traditional breakpoint defines.
9068 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9069 (arm_gdbarch_init): Initialize new breakpoint variables.
9070 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9071 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9072 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9073 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9074 code out to ...
9075 (arm_netbsd_init_abi_common): ... here; new function.
9076 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9077 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9078 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9079 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9080
9081 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * arm-tdep.h (enum arm_abi): New enum.
9084 (struct gdbarch_tdep): New structure.
9085 (LOWEST_PC): Provide a default.
9086 (arm_gdbarch_register_os_abi): Declare new function.
9087 * arm-tdep.c (arm_abi_names): New array.
9088 (process_note_abi_tag_sections): New function.
9089 (get_elfosabi): New function.
9090 (arm_gdbarch_register_os_abi): New function.
9091 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9092 support for that ABI has been built in, then call the appropriate
9093 configuration routine. Use gdbarch_num_regs() to get the number
9094 of registers.
9095 (arm_dump_tdep): New function.
9096 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9097 place-holder functions.
9098 (_initialize_arm_tdep): Register them.
9099 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9100
9101 * armnbsd-tdep.c: New file.
9102 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9103 * config/arm/nbsd.mt (TDEPFILES): Add it.
9104 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9105
9106 * armnbsd-nat.c: Include regcache.h.
9107 * Makefile.in (armnbsd-nat.o): Update dependency list.
9108
9109 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9110
9111 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9112
9113 * gdbserver/Makefile.in: Fix typos in target rules.
9114
9115 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9116
9117 Fix part of PR gdb/267.
9118 * linespec.c (find_methods): Handle constructors specially for now.
9119
9120 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9121
9122 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9123 handling.
9124 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9125 standard_coerce_float_to_double().
9126
9127 2002-02-14 Christopher Faylor <cgf@redhat.com>
9128
9129 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9130 GDBINIT_FILENAME.
9131
9132 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9133
9134 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9135 find_variant_by_name, because it confuses the multiarch
9136 framework. Return NULL if there isn't an architecture with the
9137 user supplied name, instead of forcing a different one without
9138 recording the change with the multiarch machinery.
9139 (find_variant_by_name): Delete.
9140
9141 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9142
9143 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9144 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9145
9146 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9147
9148 * stack.c (print_frame_info_base): When calling
9149 print_frame_info_listing_hook, set current_source_symtab.
9150
9151 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9152
9153 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9154 and remove unused $(INCLUDE_DIR).
9155 Add regcache.c to OBS.
9156 Add generated register protocol files to clean target.
9157 Update dependencies for new objects, obsolete old target code.
9158
9159 * gdbserver/linux-low.c: Remove all platform-specific code to
9160 new files. Remove various dead code. Update to use regcache
9161 functionality.
9162 * gdbserver/remote-utils.c (fromhex): Add return statement
9163 to quiet warning.
9164 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9165 constant.
9166 (input_interrupt): Add integer parameter to match prototype
9167 of a signal handler.
9168 (outreg): Use register_data ().
9169 (prepare_resume_reply): Use gdbserver_expedite_regs.
9170 * gdbserver/server.c (main): Dynamically allocate own_buf because
9171 PBUFSIZ is no longer constant. Use registers_to_string () and
9172 registers_from_string ().
9173 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9174 for error (), fatal (), and warning (). Update definition of
9175 PBUFSIZ to use regcache functionality. Add include guard.
9176 * gdbserver/utils.c (fatal): Add missing ``const''.
9177 (warning): New function.
9178
9179 * regformats/regdat.sh: Include "regcache.h" in generated files.
9180 Provide init_registers () function.
9181 * regformats/regdef.h: Add prototype for set_register_cache ().
9182 Add include guard.
9183
9184 * gdbserver/linux-arm-low.c: New file.
9185 * gdbserver/linux-i386-low.c: New file.
9186 * gdbserver/linux-ia64-low.c: New file.
9187 * gdbserver/linux-m68k-low.c: New file.
9188 * gdbserver/linux-mips-low.c: New file.
9189 * gdbserver/linux-ppc-low.c: New file.
9190 * gdbserver/linux-sh-low.c: New file.
9191
9192 * gdbserver/regcache.c: New file.
9193 * gdbserver/regcache.h: New file.
9194
9195 * gdbserver/low-linux.c: Removed obsolete file.
9196
9197 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9198
9199 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9200 * config/i386/linux.mt: Likewise.
9201 * config/ia64/linux.mt: Likewise.
9202 * config/m68k/linux.mh: Likewise.
9203 * config/powerpc/linux.mh: Likewise.
9204 * config/mips/linux.mt: Likewise.
9205
9206 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9207
9208 * config/i386/i386lynx.mh: Mark gdbserver variables
9209 as (currently) obsolete for this target.
9210 * config/i386/nbsd.mt: Likewise.
9211 * config/i386/nbsdelf.mt: Likewise.
9212 * config/m32r/m32r.mt: Likewise.
9213 * config/m68k/m68klynx.mh: Likewise.
9214 * config/m68k/nbsd.mt: Likewise.
9215 * config/m68k/sun3os4.mh: Likewise.
9216 * config/mips/vr5000.mt: Likewise.
9217 * config/ns32k/nbsd.mt: Likewise.
9218 * config/pa/hppabsd.mh: Likewise.
9219 * config/pa/hppaosf.mh: Likewise.
9220 * config/powerpc/nbsd.mt: Likewise.
9221 * config/rs6000/rs6000lynx.mh: Likewise.
9222 * config/s390/s390.mt: Likewise.
9223 * config/s390/s390x.mt: Likewise.
9224 * config/sparc/sparclynx.mh: Likewise.
9225 * config/sparc/sun4os4.mh: Likewise.
9226 * config/i386/x86-64linux.mt: Likewise.
9227 * config/sparc/linux.mh: Likewise.
9228
9229 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * configure.tgt: Configure gdbserver only for known working
9232 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9233 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9234 SUBDIRS if it is configured. Update comment for ${nativefile}.
9235 * configure: Regenerated.
9236
9237 2002-02-13 Michael Snyder <msnyder@redhat.com>
9238
9239 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9240
9241 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9242 (default_gcore_mach): Just return 0, work around a problem in bfd.
9243 (default_gcore_target): OK to return NULL if exec_bfd is null.
9244 (make_mem_sec): Use a cast, avoid a warning.
9245
9246 * procfs.c (find_memory_regions_callback): Use a cast instead of
9247 calling host_pointer_to_address (which complains if
9248 sizeof (host pointer) != sizeof (target pointer)).
9249 (procfs_make_note_section): Avoid overflow in psargs string.
9250
9251 * procfs.c (procfs_make_note_section): Make the default
9252 implementation return an error.
9253
9254 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9255
9256 * procfs.c (procfs_make_note_section): Provide a default definition
9257 (for alpha-dec-osf4.0f). Fix typos.
9258
9259 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9260
9261 * linux-proc.c: Add include of regcache.h.
9262 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9263
9264 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9265
9266 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9267 * memattr.c (create_mem_region): Disallow useless empty region.
9268 Regions are half-open intervals, so allow [A..B) [B..C) as
9269 non-overlapping.
9270
9271 2002-02-13 Michael Chastain <mec@shout.net>
9272
9273 * defs.h: Kill CONST_PTR.
9274 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9275 * c-lang.c (c_builtin_types): Likewise.
9276 * ch-lang.c (ch_builtin_types): Likewise.
9277 * f-lang.c (f_builtin_types): Likewise.
9278 * language.c (unknown_builtin_types): Likewise.
9279 * m2-lang.c (m2_builtin_types): Likewise.
9280 * p-lang.c (pascal_builtin_types): Likewise.
9281 * scm-lang.c (c_builtin_types): Likewise.
9282
9283 2002-02-13 Keith Seitz <keiths@redhat.com>
9284
9285 * arm-tdep.h (arm_get_next_pc): Add declaration.
9286
9287 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9290 with other related struct-returning functions.
9291 (arm_extract_struct_value_address): New function.
9292 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9293 initialize float_format, double_format and long_double_format as
9294 appropriate to the endianness of the target.
9295 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9296 (arm_use_struct_convention): Delete declaration.
9297 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9298
9299 2002-02-13 Keith Seitz <keiths@redhat.com>
9300
9301 * defs.h (core_addr_to_string_nz): New function.
9302
9303 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9304
9305 Apply missing bits of 2002-01-15 patch.
9306 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9307 (fill_fpregset): Use i387_fill_fsave.
9308
9309 2002-02-12 Keith Seitz <keiths@redhat.com>
9310
9311 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9312 (core_addr_to_string_nz): New function.
9313
9314 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9315
9316 * arm-linux-nat.c: Really include arm-tdep.h.
9317 * config/arm/tm-linux.h (struct type, struct value): Declare.
9318
9319 2002-02-11 Michael Snyder <msnyder@redhat.com>
9320
9321 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9322 (gcore section): Ifdef for Solaris and Unixware only.
9323 (procfs_do_thread_registers): Unixware needs one lwpstatus
9324 per thread (not one prstatus or pstatus).
9325 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9326 not over all gdb threads. For unixware, call elfcore_write_pstatus
9327 once before iterating over threads.
9328
9329 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9330
9331 * arm-tdep.h: New file.
9332 * arm-tdep.c: Include arm-tdep.h.
9333 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9334 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9335 (arm_print_float_info, arm_register_type, convert_to_extended)
9336 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9337 (arm_extract_return_value, arm_register_name): Make static.
9338 (arm_software_single_step): Similarly. Fix types in declaration.
9339 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9340 (arm_store_return_value, arm_store_struct_return): New functions.
9341 (arm_gdbarch_init): Register the above functions. Also register
9342 call_dummy_start_offset, sizeof_call_dummy_words,
9343 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9344 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9345 max_register_virtual_size, register_size. Set up
9346 prologue_cache.saved_regs here, rather than ...
9347 (_initialize_arm_tdep): ... here.
9348 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9349 declarations.
9350 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9351 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9352 (arm_print_float_info, arm_register_type, convert_to_extended)
9353 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9354 (arm_extract_return_value, arm_register_name): Delete declarations.
9355 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9356 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9357 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9358 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9359 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9360 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9361 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9362 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9363 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9364 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9365 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9366 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9367 interface.
9368 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9369 * remote-rdi.c remote-rdp.c: Likewise.
9370 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9371 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9372 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9373 definition.
9374
9375 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9376 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9377 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9378 from non-ARM_ prefixed definitions.
9379 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9380 all uses of above.
9381 * remote-rdi.c remote-rdp.c: Likewise.
9382 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9383
9384 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9385
9386 * arm-tdep.c (arm_frameless_function_invocation)
9387 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9388 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9389 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9390 (arm_pop_frame, arm_get_next_pc): Make static.
9391 (arm_gdbarch_init): Register above in gdbarch structure.
9392 (arm_read_fp): Renamed from arm_target_read_fp.
9393 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9394 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9395 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9396 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9397 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9398 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9399 (arm_pc_is_thumb_dummy): Delete declarations.
9400 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9401 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9402 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9403 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9404
9405 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9406
9407 * symtab.c (compare_search_syms): New function.
9408 (sort_search_symbols): New function.
9409 (search_symbols): Sort symbols after searching rather than
9410 before.
9411
9412 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9413
9414 * NEWS: Linux -> GNU/Linux.
9415
9416 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9417
9418 * gdbarch.sh: For for level one methods, disallow a definition
9419 when partially multi-arched. Add comments explaining rationale.
9420 * gdbarch.h: Re-generate.
9421
9422 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9423
9424 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9425 multi-arch partial.
9426
9427 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9428
9429 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9430 field. Use diff -u.
9431 * gdbarch.c: Re-generate.
9432
9433 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9434
9435 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9436 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9437 partial.
9438
9439 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9440
9441 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9442 multi-arch partial.
9443 (PUSH_ARGUMENTS): Switch to using predefault.
9444 * gdbarch.c: Regenerate.
9445
9446 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9447
9448 * valops.c (PUSH_ARGUMENTS): Delete definition.
9449 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9450 partial. Default to default_push_arguments.
9451 * gdbarch.h, gdbarch.c: Regenerate.
9452
9453 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9454
9455 * defs.h (throw_exception): Rename return_to_top_level. Update
9456 comments.
9457 * utils.c (error_stream, internal_verror, quit): Ditto.
9458 * top.c (throw_exception, catcher): Ditto.
9459 * sparclet-rom.c (sparclet_load): Ditto.
9460 * remote.c (interrupt_query, minitelnet): Ditto.
9461 * remote-sds.c (interrupt_query): Ditto.
9462 * remote-mips.c (mips_error, mips_kill): Ditto.
9463 * ocd.c (interrupt_query): Ditto.
9464 * monitor.c (monitor_interrupt_query): Ditto.
9465 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9466 * target.h: Update comment.
9467
9468 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9469
9470 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9471
9472 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9473 default_double_format.
9474 * gdbarch.h, gdbarch.c: Re-generate.
9475 * findvar.c (floatformat_unknown): Delete variable definition.
9476 * doublest.h (floatformat_unknown): Delete variable declaration.
9477
9478 2002-02-09 Jim Blandy <jimb@redhat.com>
9479
9480 * stabsread.c (read_type): Add code to parse Sun's syntax for
9481 prototyped function types.
9482
9483 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9484
9485 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9486 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9487
9488 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9489
9490 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9491 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9492 now _initialize_xcoffsolib gets called again and overrides the
9493 commands from solib.c in a native configuration.
9494
9495 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9496
9497 * doublest.c (store_typed_floating): Don't try to return a value.
9498 Fixes PR gdb/290.
9499
9500 2002-02-08 Jim Blandy <jimb@redhat.com>
9501
9502 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9503 is prototyped and has no arguments, print its argument list as
9504 `(void)'.
9505
9506 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9507
9508 * MAINTAINERS (write-after-approval): Add myself.
9509 (paper-trail): I've escaped!
9510
9511 2002-02-08 Christopher Faylor <cgf@redhat.com>
9512
9513 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9514 changes.
9515 (_initialize_check_for_gdb_ini): Ditto.
9516
9517 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9518
9519 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9520 xaprintf -> xasprintf.
9521
9522 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9523
9524 * win32-nat.c: Remove use of printf and sprintf functions.
9525
9526 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9527
9528 * arm-tdep.c (arm_frame_chain_valid): Make static.
9529 (arm_push_arguments): Likewise.
9530 (arm_gdbarch_init): New function.
9531 (_initialize_arm_tdep): Call it.
9532 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9533 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9534 (FRAME_CHAIN_VALID): Delete.
9535 (arm_frame_chain_valid): Delete declaration.
9536 (PUSH_ARGUMENTS): Delete.
9537 (arm_push_arguments): Delete declaration.
9538 (CALL_DUMMY_P): Delete.
9539
9540 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9541 Corinna Vinschen <vinschen@redhat.com>
9542
9543 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9544 on builtin float types.
9545
9546 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9547
9548 * utils.c: Include <curses.h> before "bfd.h".
9549 * tui/tui-hooks.c: Likewise.
9550 * tui/tui.c: Likewise.
9551 * tui/tuiCommand.c: Likewise.
9552 * tui/tuiData.c: Likewise.
9553 * tui/tuiDataWin.c: Likewise.
9554 * tui/tuiDisassem.c: Likewise.
9555 * tui/tuiGeneralWin.c: Likewise.
9556 * tui/tuiIO.c: Likewise.
9557 * tui/tuiLayout.c: Likewise.
9558 * tui/tuiRegs.c: Likewise.
9559 * tui/tuiSource.c: Likewise.
9560 * tui/tuiSourceWin.c: Likewise.
9561 * tui/tuiStack.c: Likewise.
9562 * tui/tuiWin.c: Likewise.
9563
9564 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9565
9566 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9567 to include space for pseudoregs as well. Update loops accordingly.
9568 (sh_fp_frame_init_saved_regs): Ditto.
9569 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9570
9571 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9572
9573 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9574 Add Richard Earnshaw to Arm maintainers.
9575
9576 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9577
9578 * defs.h (warning_begin): Delete declaration.
9579
9580 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9581 Delete macro.
9582
9583 2002-02-07 Michael Snyder <msnyder@redhat.com>
9584
9585 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9586 Logic bug, remove misplaced else.
9587
9588 2002-02-07 Klee Dienes <klee@apple.com>
9589
9590 * fork-inferior.c (fork_inferior): Add '!' to the list of
9591 characters that need to be quoted when building a string for the
9592 shell. Quote '!' specifically with a backslash, since CSH chokes
9593 when trying to evaluate "str!str".
9594
9595 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9596
9597 * rdi-share/host.h: Only provide a typedef for bool if it is not
9598 defined.
9599
9600 2002-02-04 Michael Snyder <msnyder@redhat.com>
9601
9602 * breakpoint.h (enum bptype): Add new overlay event bp type.
9603 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9604
9605 * breakpoint.c (create_internal_breakpoint): New function.
9606 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9607 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9608 (create_thread_event_breakpoint): Ditto.
9609 (create_solib_event_breakpoint): Ditto.
9610 (create_overlay_event_breakpoint): New function.
9611 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9612 (update_breakpoints_after_exec): Delete and re-initialize
9613 overlay event breakpoints after an exec. Add FIXME comment
9614 about longjmp breakpoint.
9615 (print_it_typical): Ignore overlay event breakpoints.
9616 (print_one_breakpoint): Ditto.
9617 (mention): Ditto.
9618 (bpstat_what): Do not stop for overlay event breakpoints.
9619 (delete_breakpoint): Don't delete overlay event breakpoints.
9620 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9621 (breakpoint_re_set): Re-create overlay event breakpoint.
9622
9623 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9624 (overlay_manual_command): Disable overlay breakpoints.
9625 (overlay_off_command): Disable overlay breakpoints.
9626
9627 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9628
9629 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9630 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9631 to here from config/tm-arm.h.
9632 (coff_sym_is_thumb): Make static.
9633 (arm_elf_make_msymbol_special): New function.
9634 (arm_coff_make_msymbol_special): New function.
9635 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9636 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9637 (coff_sym_is_thumb): Delete declaration.
9638 (arm_elf_make_msymbol_special): Declare.
9639 (arm_coff_make_msymbol_special): Declare.
9640 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9641 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9642
9643 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9644
9645 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9646
9647 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9648
9649 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9650 * gdbarch.c gdbarch.h: Regenerate.
9651 * arch-utils.c (default_print_float_info): New function.
9652 * arch-utils.h (default_print_float_info): Prototype it.
9653 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9654 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9655 (PRINT_FLOAT_INFO): Document it.
9656
9657 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9658 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9659 (PRINT_FLOAT_INFO): Define.
9660
9661 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9662
9663 * win32-nat.c (_initialize_check_for_gdb_ini):
9664 Add typecast to sprintf argument to suppress a warning.
9665
9666 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9667
9668 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9669 to allow easier handling of pass state.
9670 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9671 that gives exception name and address.
9672 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9673 and set last_sig value to ourstatus->value.sig. Some missing
9674 exceptions added.
9675 (child_continue): Correctly report continue_status.
9676 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9677 TARGET_SIGNAL_0 (new default value).
9678 (child_resume): consider sig argument passed to decide if
9679 the exception should be passed to debuggee or not.
9680
9681 2002-02-05 Michael Snyder <msnyder@redhat.com>
9682
9683 * regcache.c (fetch_register): Call target_fetch_register
9684 only if we don't call FETCH_PSEUDO_REGISTER.
9685 (store_register): Call target_store_register only if we
9686 don't call STORE_PSEUDO_REGISTER.
9687
9688 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9689
9690 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9691 ELF_MAKE_MSYMBOL_SPECIAL.
9692 * gdbarch.c, gdbarch.h: Regenerate.
9693 * arch-utils.c (default_make_msymbol_special): New function.
9694 * arch-utils.h (default_make_msymbol_special): Export.
9695 * elfread.c (elf_symtab_read): Compile use of
9696 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9697 multiarched.
9698 * coffread.c (coff_symtab_read): Ditto, for
9699 COFF_MAKE_MSYMBOL_SPECIAL.
9700
9701 2002-02-05 Jim Blandy <jimb@redhat.com>
9702
9703 * solib-svr4.c (svr4_truncate_ptr): New function.
9704 (svr4_relocate_section_addresses): Do the address arithmetic with
9705 the appropriate truncation for target addresses, even when
9706 CORE_ADDR is larger than a target address.
9707
9708 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9711 to (int *).
9712
9713 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9714
9715 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9716 code.
9717
9718 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9719
9720 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9721
9722 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9723
9724 * gdbserver/linux-low.c: Remove unused include files.
9725
9726 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9727
9728 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9729 (read_inferior_memory): Use it.
9730 (write_inferior_memory): Likewise.
9731
9732 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9733
9734 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9735 grubbing through sys_errlist.
9736
9737 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9740
9741 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9742 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9743
9744 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9745
9746 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9747 (do_sfunc, set_cmd_sfunc): New functions.
9748
9749 * command.h (struct cmd_list_element): Add field func.
9750 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9751 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9752 * cli/cli-decode.h: Ditto.
9753
9754 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9755 (help_all, help_cmd_list): Ditto.
9756 (find_cmd, complete_on_cmdlist): Ditto.
9757 * top.c (execute_command): Ditto.
9758
9759 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9760 function.sfunc.
9761
9762 * infcmd.c (notice_args_read): Fix function signature.
9763
9764 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9765 * cli/cli-decode.c (add_set_cmd): Ditto.
9766 * utils.c (initialize_utils): Ditto.
9767 * maint.c (_initialize_maint_cmds): Ditto.
9768 * infrun.c (_initialize_infrun): Ditto.
9769 * demangle.c (_initialize_demangler): Ditto.
9770 * remote.c (add_packet_config_cmd): Ditto.
9771 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9772 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9773 * proc-api.c (_initialize_proc_api): Ditto.
9774 * kod.c (_initialize_kod): Ditto.
9775 * valprint.c (_initialize_valprint): Ditto.
9776 * top.c (init_main): Ditto.
9777 * infcmd.c (_initialize_infcmd): Ditto.
9778 * corefile.c (_initialize_core): Ditto.
9779 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9780 * arch-utils.c (initialize_current_architecture): Ditto.
9781 (_initialize_gdbarch_utils): Ditto.
9782 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9783
9784 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9785 * wince.c (_initialize_inftarg): Ditto.
9786 * symfile.c (_initialize_symfile): Ditto.
9787 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9788 * language.c (_initialize_language): Ditto.
9789 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9790
9791 2002-02-04 Michael Snyder <msnyder@redhat.com>
9792
9793 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9794
9795 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9796
9797 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9798 Add rules for building the register data files.
9799
9800 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9801
9802 * regformats/regdat.sh: Add braces to the definition of
9803 expedite_regs_${arch}.
9804
9805 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9806
9807 * regformats/regdef.h (struct reg): Add comment describing the
9808 requirements for offset and size fields.
9809
9810 2002-02-04 Andreas Schwab <schwab@suse.de>
9811
9812 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9813 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9814
9815 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9816
9817 * gdbarch.sh (copyright): Update years in generated header.
9818 (SMASH_TEXT_ADDRESS): Add rule.
9819 * gdbarch.h, gdbarch.c: Re-generate.
9820 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9821 * dbxread.c: Likewise.
9822 * dwarfread.c: Likewise.
9823 * elfread.c: Likewise.
9824 * somread.c: Likewise.
9825
9826 * arm-tdep.c (arm_smash_text_address): New function.
9827 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9828
9829 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9830
9831 Add support for hardware watchpoints on win32 native.
9832 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9833 CONTEXT_DEBUG_REGISTERS.
9834 (dr variable): New variable. Static array containing a local copy
9835 of debug registers.
9836 (debug_registers_changed): New variable. Reflects when debug registers
9837 are changed and need to be written to inferior.
9838 (debug_registers_used): New variable. Reflects when any debug register
9839 was set, used when new threads are created.
9840 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9841 i386-nat code.
9842 (thread_rec): Set dr array if id is the thread of current_event .
9843 (child_continue, child_resume): Change the debug registers for all
9844 threads if debug_registers_changed.
9845 (child_add_thread): Change the debug registers if debug_registers_used.
9846 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9847 Link nm.h to new nm-cygwin.h file.
9848 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9849 of hardware registers.
9850
9851 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9852
9853 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9854 Restore behavour broken by 2002-01-20 Andrew Cagney
9855 <ac131313@redhat.com> IEEE_FLOAT removal.
9856
9857 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9858
9859 * c-valprint.c (c_val_print): Pass a proper valaddr to
9860 cp_print_class_method.
9861 * valops.c (search_struct_method): If there is only one method
9862 and args is NULL, return that method.
9863
9864 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9867 accessing tag_name directly.
9868
9869 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9870
9871 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9872 of accessing tag_name directly.
9873
9874 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9875
9876 PR gdb/280
9877 * gdbtypes.c (replace_type): New function.
9878 * gdbtypes.h (replace_type): Add prototype.
9879 * stabsread.c (read_type): Use replace_type.
9880
9881 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9882
9883 * Makefile.in (memattr.o): Add missing dependencies rule.
9884
9885 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9886
9887 * breakpoint.c (break_at_finish_command): Really export.
9888 (break_at_finish_at_depth_command): Ditto.
9889 (tbreak_at_finish_command): Ditto.
9890 * hppa-tdep.c: Include completer.h.
9891 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9892 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9893
9894 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9895
9896 * utils.c (do_write): New function.
9897 (error_stream): Rewrite combining the code from error_begin and
9898 verror.
9899 (verror): Rewrite using error_stream.
9900 (error_begin): Delete function.
9901
9902 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9903
9904 * utils.c (error_begin): Make static.
9905 * defs.h (error_begin): Delete declaration.
9906
9907 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9908 (decode_line_1): Use cplusplus_error instead of error_begin,
9909 cplusplus_hint and return_to_top_level.
9910 * coffread.c (coff_symfile_read): Use error instead of error_begin
9911 and return_to_top_level.
9912 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9913
9914 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9915
9916 * language.h (type_error, range_error): Make string parameter
9917 constant.
9918 * language.c (warning_pre_print): Delete extern declaration.
9919 * dwarfread.c (warning_pre_print): Ditto.
9920 * language.c (type_error, range_error): Rewrite to use verror and
9921 vwarning instead of warning_begin.
9922
9923 2002-02-01 Michael Snyder <msnyder@redhat.com>
9924
9925 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9926 (set_ignore_count): Move misplaced comment back where it belongs.
9927
9928 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9929
9930 * command.h (NO_FUNCTION): Delete macro.
9931 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9932 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9933 * tracepoint.c (_initialize_tracepoint): Ditto.
9934 * cli/cli-decode.c (add_set_cmd): Ditto.
9935 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9936
9937 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9940 Update ``this'' pointer when calling virtual functions.
9941
9942 2002-02-01 Michael Snyder <msnyder@redhat.com>
9943
9944 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9945 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9946
9947 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9948
9949 * regformats/reg-arm.dat: New file.
9950 * regformats/reg-i386.dat: New file.
9951 * regformats/reg-ia64.dat: New file.
9952 * regformats/reg-m68k.dat: New file.
9953 * regformats/reg-mips.dat: New file.
9954 * regformats/reg-ppc.dat: New file.
9955 * regformats/reg-sh.dat: New file.
9956 * regformats/regdef.h: New file.
9957 * regformats/regdat.sh: New file.
9958
9959 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9960
9961 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9962 (arm_frame_args_address, arm_frame_locals_address): New functions.
9963 (arm_frame_num_args): New function.
9964 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9965 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9966 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9967
9968 2002-01-31 Michael Snyder <msnyder@redhat.com>
9969
9970 * breakpoint.c (break_at_finish_command): Export.
9971 (break_at_finish_at_depth_command): Export.
9972 (tbreak_at_finish_command): Export.
9973 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9974 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9975 "tbreak" commands, which are HPPA specific.
9976
9977 * printcmd.c (disassemble_command): Remove an ancient
9978 artifact of an old merge.
9979
9980 * symfile.h (enum overlay_debugging_state):
9981 Define enum constant values for overlay mode.
9982 * symfile.c (overlay_debugging): Use enums instead of literals.
9983 (overlay_is_mapped, overlay_auto_command,
9984 overlay_manual_command): Ditto.
9985
9986 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9987 breakpoint_here_p, breakpoint_inserted_here_p,
9988 breakpoint_thread_match, bpstat_stop_status,
9989 describe_other_breakpoints, check_duplicates, clear_command):
9990 Coding standard fixes.
9991
9992 * target.c (target_xfer_memory): Add spaces, coding standard.
9993 (do_xfer_memory): Add missing line to trust-readonly
9994 code: check bfd SEC_READONLY flag for section.
9995
9996 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9997
9998 * PROBLEMS: Fix typo, 5.1->5.1.1.
9999
10000 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10001
10002 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10003 data symbols, since we search based on textlow and texthigh.
10004 (find_pc_sect_symtab): Likewise.
10005
10006 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10007
10008 * defs.h (vwarning): Declare.
10009 * utils.c (vwarning): New function.
10010 (warning): Call vwarning.
10011 (warning_begin): Delete function.
10012
10013 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10014 the warning message.
10015 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10016 warning_begin.
10017
10018 2002-01-30 Michael Snyder <msnyder@redhat.com>
10019
10020 * NEWS: Mention "set trust-readonly-sections" command.
10021 Mention generate-core-file command.
10022
10023 2002-01-15 Michael Snyder <msnyder@redhat.com>
10024
10025 * target.c: New command, "set trust-readonly-sections on".
10026 (do_xfer_memory): Honor the suggestion to trust readonly sections
10027 by reading them from the object file instead of from the target.
10028 (initialize_targets): Register command "set trust-readonly-sections".
10029
10030 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10031
10032 * parse.c (target_map_name_to_register): Simplify, search regs and
10033 pseudo-regs using a single loop.
10034
10035 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10036
10037 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10038
10039 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10040
10041 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10042 * config/i386/i386v42mp.mh: Add i387-nat.o .
10043 * i386v4-nat.c: Include i387-nat.h.
10044 (supply_fpregset): Use i387_supply_fsave.
10045 (fill_fpregset): Use i387_fill_fsave.
10046
10047 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10048
10049 * arm-tdep.c (arm_call_dummy_words): Define.
10050 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10051 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10052 (CALL_DUMMY_WORDS): Define.
10053 (arm_call_dummy_words): Declare.
10054 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10055 (arm_linux_call_dummy_words): Declare.
10056
10057 2002-01-30 Andreas Schwab <schwab@suse.de>
10058
10059 * m68klinux-nat.c: Fix last change to use regcache_collect
10060 instead of referencing registers[] directly.
10061
10062 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10063
10064 * parse.c (target_map_name_to_register): Delete code wrapped in
10065 #ifdef REGISTER_NAME_ALIAS_HOOK.
10066
10067 2002-01-28 Michael Snyder <msnyder@redhat.com>
10068
10069 * regcache.c (legacy_read_register_gen): Need to be able to
10070 read pseudo-register as well as real register.
10071 (legacy_write_register_gen): Ditto.
10072
10073 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10074
10075 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10076 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10077 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10078 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10079 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10080 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10081 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10082 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10083 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10084 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10085 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10086 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10087 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10088 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10089 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10090 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10091 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10092 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10093 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10094 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10095
10096 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10097
10098 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10099 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10100 (initialize_current_architecture): Update target_byte_order using
10101 information from BFD.
10102 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10103 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10104
10105 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10106
10107 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10108 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10109
10110 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10111 #ifdef INVALID_FLOAT.
10112 * infcmd.c (do_registers_info): Ditto.
10113 * values.c (unpack_double): Ditto. Add comment.
10114
10115 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10116 already commented out.
10117
10118 2002-01-26 Andreas Schwab <schwab@suse.de>
10119
10120 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10121 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10122 registers and add support for PTRACE_GETREGS.
10123
10124 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10125
10126 GDB 5.1.1 released from 5.1 branch.
10127 * NEWS: Add 5.1.1 news.
10128 * README: Sync with 5.1 branch.
10129
10130 2002-01-23 Fred Fish <fnf@redhat.com>
10131
10132 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10133 stabstring on initial malloc. Reallocing will copy it for us,
10134 if necessary.
10135
10136 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10137
10138 * Makefile.in (hpread_h): Delete.
10139 (HFILES_NO_SRCDIR): Remove hpread.h.
10140 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10141 (hpread.o): Update dependencies.
10142 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10143
10144 * hp-psymtab-read.c: Remove file.
10145 * hp-symtab-read.c: Remove file.
10146 * hpread.h: Remove file.
10147
10148 * hpread.c: Merge all contents of hp-psymtab-read.c,
10149 hp-symtab-read.c and hpread.h into this file, as it was prior to
10150 January 1999.
10151
10152 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10153 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10154 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10155 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10156
10157 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10158
10159 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10160 fill_gregset): Call gdbarch_tdep() just once, assign result to
10161 variable and use that, instead of calling the function several
10162 times.
10163
10164 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10165
10166 * configure.host: Accept sparcv9 as alias for sparc64.
10167 * configure.tgt: Likewise.
10168
10169 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10170
10171 * solib-aix5.c (build_so_list_from_mapfile)
10172 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10173 arguments is not reversed.
10174 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10175 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10176
10177 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10180 modified version of obsolete sh_fetch_pseudo_register.
10181 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10182 (sh4_register_read): New function.
10183 (sh_pseudo_register_write): New function. Renamed and modified
10184 version of obsolete sh_store_pseudo_register.
10185 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10186 (sh4_register_write): New function.
10187 (sh_gdbarch_init): Remove setting of gdbarch function
10188 fetch_pseudo_register and store_pseudo_register. Remove setting of
10189 register_convert_to_raw, register_convert_to_virtual,
10190 register_convertible.
10191 (sh_sh4_register_convertible): Delete. No longer needed. All is
10192 taken care by architecture specific functions
10193 register_read/register_write.
10194 (sh_sh4_register_convert_to_virtual): Make static.
10195 (sh_sh4_register_convert_to_raw): Ditto.
10196
10197 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10198
10199 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10200 (floatformat_is_nan, floatformat_mantissa): Ditto.
10201
10202 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10203 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10204 builtin_type_ieee_double_little,
10205 builtin_type_ieee_double_littlebyte_bigword,
10206 builtin_type_m68881_ext, builtin_type_i960_ext,
10207 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10208 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10209 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10210 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10211
10212 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10213
10214 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10215 parameter. Set frameless flag if it exists and depended of
10216 whether the scanned function is frameless or not.
10217 (xstormy16_skip_prologue): If function is frameless, return
10218 result of xstormy16_scan_prologue().
10219 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10220 call.
10221
10222 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10223
10224 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10225 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10226 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10227 sh_sh4_register_byte, sh_sh4_register_raw_size,
10228 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10229 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10230 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10231 sh_store_pseudo_register, sh_do_pseudo_register): Call
10232 gdbarch_tdep() just once, assign result to variable and use that,
10233 instead of calling the function several times.
10234
10235 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10236
10237 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10238 macros instead of LAST_FPU_CTRL_REGNUM.
10239 (store_register): Likewise.
10240
10241 2002-01-21 Jim Blandy <jimb@redhat.com>
10242
10243 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10244 is up-to-date before running the program, not just when a program
10245 exits.
10246
10247 2002-01-21 Fred Fish <fnf@redhat.com>
10248
10249 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10250 when we have found all instructions we are looking for.
10251
10252 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10253
10254 * arm-tdep.c (arm_register_name): New function.
10255 (arm_registers_names): Make static.
10256 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10257 (arm_register_name): Declare.
10258 (REGISTER_NAME): Use it.
10259
10260 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10261 Kevin Buettner <kevinb@redhat.com>
10262
10263 Convert arm targets to new FRAME interface.
10264 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10265 (arm_frame_find_save_regs): Delete.
10266 (arm_frame_init_saved_regs): New.
10267 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10268 Allocate extra_info as required. Convert all uses of fsr.regs
10269 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10270 to use extra_info.
10271 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10272 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10273 (check_prologue_cache, save_prologue_cache): Likewise.
10274 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10275 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10276 (FRAME_FIND_SAVED_REGS): Delete.
10277 (arm_frame_find_saved_regs): Delete prototype.
10278 (arm_frame_init_saved_regs): New prototype.
10279 (FRAME_INIT_SAVED_REGS): Define.
10280
10281 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10282
10283 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10284
10285 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10286
10287 From Jeff Law <law@redhat.com>:
10288 * infttrace.c: Include <sys/pstat.h>.
10289 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10290 exec file if the ttrace equivalent fails.
10291
10292 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10293
10294 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10295 (closeLogFile): Ditto.
10296
10297 2002-01-20 Michael Chastain <mec@shout.net>
10298
10299 * top.c (print_gdb_version): Bump copyright year to 2002.
10300
10301 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10302
10303 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10304 Zannoni and Eli Zaretskii.
10305
10306 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10307
10308 * buildsym.c: Update copyright years.
10309 * c-typeprint.c: Likewise.
10310 * dwarf2read.c: Likewise.
10311 * f-typeprint.c: Likewise.
10312 * gdbtypes.c: Likewise.
10313 * gdbtypes.h: Likewise.
10314 * hp-symtab-read.c: Likewise.
10315 * hpread.c: Likewise.
10316 * mdebugread.c: Likewise.
10317 * p-typeprint.c: Likewise.
10318
10319 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10320
10321 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10322 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10323 byte-order selectable.
10324 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10325 * arch-utils.c: Ditto.
10326 (set_endian): Ditto.
10327 (set_endian_from_file): Ditto.
10328 * gdbserver/low-sim.c (create_inferior): Ditto.
10329 * gdbarch.sh: Ditto.
10330 * gdbarch.h: Re-generate.
10331 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10332 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10333 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10334 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10335 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10336 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10337 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10338 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10339 macro definition.
10340 * config/mips/tm-wince.h: Remove #undef of macro
10341 TARGET_BYTE_ORDER_SELECTABLE.
10342 * config/sh/tm-wince.h: Ditto.
10343
10344 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10347 member function fields. Add accessor macro
10348 TYPE_FN_FIELD_ARTIFICIAL.
10349 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10350 * c-typeprint.c (c_type_print_base): Skip artificial member
10351 functions.
10352
10353 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * f-typeprint.c: Delete unused function f_type_print_args.
10356 * p-typeprint.c: Delete unused function pascal_type_print_args.
10357
10358 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10361 comment. Add ``artificial'' to ``union field_location''.
10362
10363 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10364
10365 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10366 * mdebugread.c (parse_symbol): Likewise.
10367 * stabsread.c (define_symbol): Likewise.
10368 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10369 initializing TYPE_FIELD_BITPOS to n (obsolete).
10370 (hpread_doc_function_type): Likewise.
10371 * hpread.c (hpread_function_type): Likewise.
10372
10373 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10374
10375 * configure.in (host_makefile_frag): Only require a host makefile
10376 fragment when a native build.
10377 * configure: Re-generate.
10378
10379 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10380
10381 * doublest.h (floatformat_from_type): Declare.
10382 * doublest.c (floatformat_from_type): New function.
10383 (convert_typed_floating): Use.
10384
10385 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10386 call to function floatformat_from_type.
10387
10388 * gdbarch.sh (IEEE_FLOAT): Delete.
10389 * gdbarch.h, gdbarch.c: Re-generate.
10390 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10391 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10392 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10393 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10394 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10395 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10396 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10397 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10398 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10399 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10400 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10401 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10402
10403 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10404 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10405 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10406 * sh-tdep.c (sh_gdbarch_init): Ditto.
10407 * mips-tdep.c (mips_gdbarch_init): Ditto.
10408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10409 * cris-tdep.c (cris_gdbarch_init): Ditto.
10410
10411 2002-01-20 Jiri Smid <smid@suse.cz>
10412
10413 * configure.host, configure.tgt: Support x86-64.
10414 * NEWS: Note new target x86-64.
10415
10416 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10417 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10418 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10419 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10420 x86-64-linux-nat.o): Fix dependencies.
10421
10422 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10423
10424 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10425 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10426 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10427 * config/sparc/xm-sun4os4.h: Delete file.
10428 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10429
10430 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10431
10432 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10433 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10434 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10435 * config/i386/i386lynx.mh (XM_FILE): Delete.
10436 * config/rs6000/xm-rs6000ly.h: Delete file.
10437 * config/sparc/xm-sparclynx.h: Delete file.
10438 * config/m68k/xm-m68klynx.h: Delete file.
10439 * config/i386/xm-i386lynx.h: Delete file.
10440 * config/xm-lynx.h: Delete file.
10441 * config/djgpp/fnchange.lst: Update.
10442
10443 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10444
10445 * alpha-tdep.c (alpha_register_byte): New function.
10446 (alpha_register_raw_size): Ditto.
10447 (alpha_register_virtual_size): Ditto.
10448 (alpha_skip_prologue_internal): Renamed from
10449 alpha_skip_prologue.
10450 (alpha_skip_prologue): New version that calls
10451 alpha_skip_prologue_internal.
10452 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10453 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10454 second argument from alpha_skip_prologue.
10455 (REGISTER_BYTE): Use alpha_register_byte.
10456 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10457 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10458 (FRAMELESS_FUNCTION_INVOCATION): Use
10459 generic_frameless_function_invocation_not.
10460 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10461 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10462
10463 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10464
10465 * config/mips/xm-news-mips.h: Delete file.
10466 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10467
10468 * config/m88k/xm-m88k.h: Delete file.
10469 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10470 * config/m88k/xm-delta88v4.h: Ditto.
10471 * config/m88k/xm-delta88.h: Ditto.
10472
10473 * config/alpha/xm-fbsd.h: Delete file.
10474 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10475
10476 * config/sparc/xm-sparc.h: Delete file.
10477 * Makefile.in (xm-sun4os4.h): Delete dependency.
10478 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10479 * config/sparc/xm-sun4os4.h: Ditto.
10480 * config/sparc/xm-linux.h: Ditto.
10481
10482 * config/i386/xm-windows.h: Delete file.
10483
10484 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10485
10486 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10487 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10488
10489 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10490
10491 * alpha-tdep.c (alpha_call_dummy_words): New.
10492 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10493 (CALL_DUMMY_P): Define.
10494 (CALL_DUMMY_WORDS): Define.
10495 (SIZEOF_CALL_DUMMY_WORDS): Define.
10496
10497 2002-01-19 Per Bothner <per@bothner.com>
10498
10499 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10500 isn't NULL, which can happen with some gcj-3.x-produced code.
10501
10502 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10503
10504 * alpha-tdep.c (alpha_register_virtual_type): New function.
10505 (alpha_init_frame_pc_first): Ditto.
10506 (alpha_fix_call_dummy): Ditto.
10507 (alpha_store_struct_return): Ditto.
10508 (alpha_extract_struct_value_address): Ditto.
10509 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10510 alpha_register_virtual_type.
10511 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10512 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10513 alpha_extract_struct_value_address.
10514 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10515 (INIT_FRAME_PC): Use init_frame_pc_noop.
10516 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10517
10518 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10519
10520 * i386gnu-nat.c: Include "i386-tdep.h".
10521 (fetch_fpregs): Simplify code dealing with uninitialized floating
10522 point states such that it doesn't require FP7_REGNUM.
10523
10524 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10525
10526 * alpha-tdep.c (frame_extra_info): New.
10527 (alpha_find_saved_regs): Make static. Use
10528 frame->extra_info.
10529 (alpha_frame_init_saved_regs): New function.
10530 (alpha_frame_saved_pc): Use frame->extra_info.
10531 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10532 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10533 (init_extra_frame_info): Rename to...
10534 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10535 (alpha_print_extra_frame_info): New function.
10536 (alpha_frame_locals_address): Ditto.
10537 (alpha_frame_args_address): Ditto.
10538 (alpha_pop_frame): Use frame->extra_info.
10539 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10540 alpha_frame_args_address.
10541 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10542 (alpha_find_saved_regs): Remove prototype.
10543 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10544 (EXTRA_FRAME_INFO): Remove.
10545 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10546 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10547
10548 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10549
10550 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10551 (alpha_cannot_fetch_register): Ditto.
10552 (alpha_cannot_store_register): Ditto.
10553 (alpha_register_convertible): Ditto.
10554 (alpha_use_struct_convention): Ditto.
10555 * config/alpha/tm-alpha.h: Update copyright years.
10556 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10557 (INNER_THAN): Use core_addr_lessthan.
10558 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10559 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10560 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10561 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10562 (FRAME_CHAIN): Remove unnecessary cast.
10563
10564 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10565
10566 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10567 obsolete.
10568
10569 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10570
10571 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10572 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10573 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10574 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10575 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10576 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10577 * x86-64-linux-nat.c: Ditto.
10578
10579 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10580
10581 * alpha-tdep.c (alpha_register_name): New function.
10582 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10583 (REGISTER_NAME): Define.
10584
10585 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10586
10587 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10588
10589 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10590
10591 * alpha-tdep.c: Update copyright years.
10592 (alpha_next_pc): New function.
10593 (alpha_software_single_step): Ditto.
10594 * config/alpha/tm-alpha.h: Add prototype for
10595 alpha_software_single_step.
10596
10597 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10598
10599 * alphabsd-nat.c: Update copyright years.
10600 (fill_gregset): Use regcache_collect.
10601 (fill_fpregset): Likewise.
10602 (fetch_inferior_registers): Only fetch integer registers
10603 if requested to do so.
10604 (store_inferior_registers): Only store integer registers
10605 if requested to do so.
10606
10607 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10608
10609 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10610 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10611 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10612 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10613 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10614 * config/arm/linux.mh (XDEPFILES): Delete.
10615 * config/arm/nbsd.mh (XDEPFILES): Delete.
10616 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10617 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10618 * config/i386/i386m3.mh (XDEPFILES): Delete.
10619 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10620 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10621 * config/i386/fbsd.mh (XDEPFILES): Delete.
10622 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10623 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10624 * config/i386/i386v4.mh (XDEPFILES): Delete.
10625 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10626 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10627 * config/i386/i386aix.mh (XDEPFILES): Delete.
10628 * config/i386/go32.mh (XDEPFILES): Delete.
10629 * config/i386/cygwin.mh (XDEPFILES): Delete.
10630 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10631 * config/i386/i386mach.mh (XDEPFILES): Delete.
10632 * config/i386/i386v32.mh (XDEPFILES): Delete.
10633 * config/i386/linux.mh (XDEPFILES): Delete.
10634 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10635 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10636 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10637 * config/i386/i386sco.mh (XDEPFILES): Delete.
10638 * config/i386/i386v.mh (XDEPFILES): Delete.
10639 * config/i386/nbsd.mh (XDEPFILES): Delete.
10640 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10641 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10642 * config/i386/symmetry.mh (XDEPFILES): Delete.
10643 * config/i386/obsd.mh (XDEPFILES): Delete.
10644 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10645 * config/ia64/linux.mh (XDEPFILES): Delete.
10646 * config/ia64/aix.mh (XDEPFILES): Delete.
10647 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10648 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10649 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10650 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10651 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10652 * config/m68k/linux.mh (XDEPFILES): Delete.
10653 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10654 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10655 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10656 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10657 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10658 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10659 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10660 * config/m88k/delta88.mh (XDEPFILES): Delete.
10661 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10662 * config/m88k/m88k.mh (XDEPFILES): Delete.
10663 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10664 * config/mips/linux.mh (XDEPFILES): Delete.
10665 * config/mips/irix6.mh (XDEPFILES): Delete.
10666 * config/mips/irix5.mh (XDEPFILES): Delete.
10667 * config/mips/irix4.mh (XDEPFILES): Delete.
10668 * config/mips/irix3.mh (XDEPFILES): Delete.
10669 * config/mips/decstation.mh (XDEPFILES): Delete.
10670 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10671 (NATDEPFILES): Move core-aout.o to here.
10672 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10673 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10674 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10675 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10676 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10677 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10678 * config/pa/hpux11.mh (XDEPFILES): Delete.
10679 * config/powerpc/aix.mh (XDEPFILES): Delete.
10680 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10681 * config/powerpc/linux.mh (XDEPFILES): Delete.
10682 * config/romp/rtbsd.mh: Rename XDEPFILES.
10683 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10684 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10685 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10686 * config/s390/s390.mh (XDEPFILES): Delete.
10687 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10688 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10689 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10690 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10691 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10692 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10693 * config/sparc/linux.mh (XDEPFILES): Delete.
10694 * config/vax/vaxult.mh (XDEPFILES): Delete.
10695 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10696 * Makefile.in (DEPFILES): Remove XDEPFILES.
10697
10698 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10699
10700 * utils.c (internal_verror): Fix comments, default is yes not no.
10701 Update queries to match. Default to quit and dump core.
10702
10703 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10704
10705 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10706 copyright.
10707 * defs.h, event-top.c, gdbcmd.h: Ditto.
10708 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10709 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10710 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10711 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10712 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10713 * mi/mi-main.c:Ditto.
10714
10715 * stack.c, symfile.c: Update copyright.
10716
10717 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10720 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10721 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10722 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10723
10724 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10725
10726 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10727 * gdbserver/low-lynx.c (myattach): Likewise.
10728 * gdbserver/low-nbsd.c (myattach): Likewise.
10729 * gdbserver/low-sim.c (myattach): Likewise.
10730 * gdbserver/low-sparc.c (myattach): Likewise.
10731 * gdbserver/low-sun3.c (myattach): Likewise.
10732
10733 * gdbserver/low-linux.c (myattach): New function.
10734
10735 * gdbserver/server.c (attach_inferior): New function.
10736 (main): Handle "--attach".
10737
10738 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10739
10740 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10741 maintainer.
10742
10743 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * c-typeprint.c (is_type_conversion_operator): Add additional
10746 check for non-conversion operators.
10747
10748 2002-01-15 Michael Snyder <msnyder@redhat.com>
10749
10750 * linux-proc.c: Add "info proc" command, a la procfs.c.
10751 (read_mapping): New function, abstract and re-use code.
10752 (linux_find_memory_regions): Use new func read_mapping.
10753 (linux_info_proc_cmd): New function, implement "info proc".
10754 (_initialize_linux_proc): Add new command "info proc".
10755
10756 2002-01-15 Michael Snyder <msnyder@redhat.com>
10757
10758 * symfile.c (generic_load): Use bfd_map_over_sections method
10759 instead of manipulating bfd structure members directly.
10760 (add_section_size_callback): New function, bfd sections callback
10761 used by generic_load.
10762 (load_sections_callback): New function, bfd sections callback
10763 used by generic_load.
10764
10765 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10766
10767 [Based on work by Jim Blandy]
10768 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10769 (builtin_type_vec128): Export.
10770 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10771 types.
10772 (builtin_type_vec128): New builtin type for 128 bit vector
10773 registers.
10774 (build_gdbtypes): Initialize builtin_type_v16qi and
10775 builtin_type_v8hi. Create the vec128 register builtin type
10776 structure.
10777 (build_builtin_type_vec128): New function.
10778 (_initialize_gdbtypes): Register builtin_type_v16qi and
10779 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10780 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10781 AltiVec register to new builtin type.
10782
10783 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10784
10785 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10786 to make_cv_type.
10787
10788 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10789
10790 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10791 CLEAN_UP_REGISTER_VALUE.
10792 * regcache.c (supply_register): Update only call.
10793
10794 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10795
10796 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10797 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10798 a29k-*-vxworks* targets as obsolete.
10799
10800 2002-01-14 Michael Snyder <msnyder@redhat.com>
10801
10802 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10803 until we can resolve portability issues.
10804 * gregset.h: Remove references to fpxregs.
10805 * gcore.c (gcore_command): Initialize note_sec to NULL.
10806
10807 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10808
10809 * signals.c (target_signal_to_name): Rewrite. Only use
10810 signals[].name when in bounds and non-NULL.
10811
10812 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10813
10814 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10815 * signals.c (target_signal_to_name): Verify that SIG is within the
10816 bounds of the signals array.
10817
10818 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10819
10820 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10821
10822 2002-01-13 Keith Seitz <keiths@redhat.com>
10823
10824 * stack.c (print_frame_info_base): Print the frame's pc
10825 only if when print_frame_info_listing_hook is not defined.
10826
10827 2002-01-13 Keith Seitz <keiths@redhat.com>
10828
10829 * varobj.c (varobj_set_value): Make sure that there were no
10830 errors evaluating the object before attempting to set its
10831 value.
10832 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10833 so this offset adjustment is no longer necessary.
10834 (create_child): Don't set the error flag if the child is
10835 a CPLUS_FAKE_CHILD.
10836 (value_of_child): If value_fetch_lazy fails, return NULL
10837 so that callers will be notified that an error occurred.
10838 (c_value_of_variable): Delay check of variable's validity
10839 until later. We actually want all structs and unions to have
10840 the value "{...}".
10841 Do not return "???" for variables which could not be evaluated.
10842 This error condition must be returned to the caller so that it
10843 can get the error condition from gdb.
10844 (cplus_name_of_child): Adjust index for vptr before figuring
10845 out the name of the child.
10846 (cplus_value_of_child): If a child's (real) parent is not valid,
10847 don't even bother trying to give a value for it. Just return
10848 an error. Change all instances in this function.
10849 (cplus_type_of_child): If our parent is one of the "fake"
10850 parents, we need to get at the type of the real parent, and
10851 derive the child's true type using this information.
10852
10853 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10854
10855 From 2002-01-09 John Marshall <johnm@falch.net>:
10856 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10857 sources.redhat.com, and tweak some related URLs which had
10858 suffered from linkrot.
10859
10860 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10861
10862 From Jeff law:
10863 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10864 structures passed in registers.
10865
10866 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10867
10868 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10869 white space which prevented compilation. Reported by DSK
10870 <dsk@student.unsw.edu.au>.
10871
10872 2002-01-11 Michael Snyder <msnyder@redhat.com>
10873
10874 * symfile.c (build_section_addr_info_from_section_tab):
10875 Use bfd access method instead of manipulating bfd directly.
10876 (syms_from_objfile): Ditto.
10877 (simple_overlay_update_1): Ditto.
10878 (simple_overlay_update): Ditto.
10879 (generic_load): Ditto.
10880 (overlay_unmapped_address): FIXME comment, bfd access methods.
10881 (sections_overlap): FIXME comment, bfd access methods.
10882 (pc_in_mapped_range): FIXME comment, bfd access methods.
10883 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10884 (section_is_mapped): FIXME comment, bfd access methods.
10885 (section_is_overlay): FIXME comment, bfd access methods.
10886
10887 * symfile.c (generic_load): Whitespace and long line cleanups.
10888 Remove duplicate variable, change several local variables to
10889 more appropriate data types.
10890 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10891
10892 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10893
10894 From Peter Schauer:
10895 * language.c (longest_local_hex_string_custom): Use phex_nz to
10896 convert NUM to a hex string.
10897
10898 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10899
10900 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10901 the function.
10902 Update Copyright year.
10903
10904 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10905
10906 * language.c (longest_raw_hex_string): Delete unused function.
10907
10908 2002-01-11 Petr Sorfa <petrs@caldera.com>
10909
10910 * MAINTAINERS (write-after-approval): Add myself.
10911 * dwarf2read.c (read_tag_string_type): Handling of
10912 DW_AT_byte_size.
10913 (read_tag_string_type): FORTRAN fix to prevent propagation of
10914 first string size.
10915 (set_cu_language): Handling of DW_LANG_Fortran95
10916
10917 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10918
10919 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10920 GETPID(inferior_ptid).
10921 (store_inferior_registers): Likewise.
10922
10923 2002-01-10 Jason Merrill <jason@redhat.com>
10924
10925 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10926 Fix DW_OP_minus.
10927
10928 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10929
10930 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10931 and bfd/elf32-sh-nbsd.c.
10932
10933 2002-01-10 Michael Snyder <msnyder@redhat.com>
10934
10935 * NEWS: Mention --pid and corefile/proc-id behavior change.
10936
10937 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10938 * gcore.c: Include cli/cli-decode.h instead of command.h.
10939
10940 * main.c (captured_main): Add new command line option "--pid".
10941 If the second command line argument (following the symbol-file)
10942 begins with a digit, try to attach to it before trying to open
10943 it as a corefile.
10944 (print_gdb_help): Document the "--pid" argument.
10945
10946 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10947
10948 * completer.c (command_completer): New function.
10949
10950 * completer.h <command_completer>: Add prototype.
10951
10952 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10953 completer for the "help" command.
10954
10955 2002-01-09 Jason Merrill <jason@redhat.com>
10956
10957 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10958
10959 2002-01-09 Michael Snyder <msnyder@redhat.com>
10960
10961 * i386-linux-nat.c (fill_fpxregset): Make global.
10962 (store_fpxregset): Ditto.
10963
10964 * gregset.h (gdb_fpxregset_t): Define.
10965 (supply_fpxregset): Prototype.
10966 (fill_fpxregset): Prototype.
10967
10968 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10969
10970 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10971
10972 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10973 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10974 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10975
10976 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10977
10978 * MAINTAINERS: Update target maintainer rules so that any
10979 Maintainer can approve a tested patch for a maintenance-only
10980 target.
10981
10982 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10983
10984 * MAINTAINERS (write-after-approval): Add myself.
10985
10986 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10987 IN_SIGTRAMP.
10988
10989 2002-01-08 Michael Snyder <msnyder@redhat.com>
10990
10991 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10992 real name of the executable, rather than the /proc name.
10993
10994 2002-01-03 Michael Snyder <msnyder@redhat.com>
10995
10996 Implement a "generate-core-file" command in gdb, save target state.
10997 * gcore.c: New file. Implement new command 'generate-core-file'.
10998 Save a corefile image of the current state of the inferior.
10999 * linux-proc.c: Add linux-specific code for saving corefiles.
11000 * target.h (struct target_ops): Add new target vectors for saving
11001 corefiles; to_find_memory_regions and to_make_corefile_notes.
11002 (target_find_memory_regions): New macro.
11003 (target_make_corefile_notes): New macro.
11004 * target.c (update_current_target): Inherit new target methods.
11005 (dummy_find_memory_regions): New place-holder method.
11006 (dummy_make_corefile_notes): New place-holder method.
11007 (init_dummy_target): Initialize new dummy target vectors.
11008 * exec.c (exec_set_find_memory_regions): New function.
11009 Allow the exec_ops vector for memory regions to be taken over.
11010 (exec_make_note_section): New function, target vector method.
11011 * defs.h (exec_set_find_memory_regions): Export prototype.
11012 * procfs.c (proc_find_memory_regions): New function, corefile method.
11013 (procfs_make_note_section): New function, corefile method.
11014 (init_procfs_ops): Set new target vector pointers.
11015 (find_memory_regions_callback): New function.
11016 (procfs_do_thread_registers): New function.
11017 (procfs_corefile_thread_callback): New function.
11018 * sol-thread.c (sol_find_memory_regions): New function.
11019 (sol_make_note_section): New function.
11020 (init_sol_thread_ops): Initialize new target vectors.
11021 * inftarg.c (inftarg_set_find_memory_regions): New function.
11022 Allow to_find_memory_regions vector to be taken over.
11023 (inftarg_set_make_corefile_notes): New function.
11024 Allow to_make_corefile_notes vector to be taken over.
11025 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11026 interface layer if not target_has_execution (may be a corefile).
11027 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11028 * config/sparc/sun4sol2.mh: Ditto.
11029 * config/alpha/alpha-linux.mh: Ditto.
11030 * config/arm/linux.mh: Ditto.
11031 * config/i386/x86-64linux.mh: Ditto.
11032 * config/ia64/linux.mh: Ditto.
11033 * config/m68k/linux.mh: Ditto.
11034 * config/mips/linux.mh: Ditto.
11035 * config/powerpc/linux.mh: Ditto.
11036 * config/sparc/linux.mh: Ditto.
11037
11038 2002-01-07 Michael Snyder <msnyder@redhat.com>
11039
11040 * arm-linux-nat.c: Remove references to regcache.c internal data
11041 (registers[] and register_valid[]).
11042
11043 2002-01-07 Michael Snyder <msnyder@redhat.com>
11044
11045 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11046 so that attaching to a pid will automatically read the process's
11047 symbol file and shlibs.
11048 * Makefile.in: Add rule for linux-proc.o.
11049 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11050 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11051 * config/arm/linux.mh: Ditto.
11052 * config/i386/linux.mh: Ditto.
11053 * config/i386/x86-64linux.mh: Ditto.
11054 * config/ia64/linux.mh: Ditto.
11055 * config/m68k/linux.mh: Ditto.
11056 * config/mips/linux.mh: Ditto.
11057 * config/powerpc/linux.mh: Ditto.
11058 * config/sparc/linux.mh: Ditto.
11059
11060 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11061
11062 * win32-nat.c: Add i386-tdep.h dependency.
11063
11064 2002-01-07 Michael Snyder <msnyder@redhat.com>
11065
11066 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11067 instead of bfd_get_arch_size. Don't bail out just because
11068 there's no exec_bfd.
11069
11070 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11071 * p-valprint.c (pascal_object_print_value): Ditto.
11072 * somread.c (som_symtab_read): Ditto.
11073 * symfile.c (simple_free_overlay_region_table): Ditto.
11074 * valops.c (value_assign): Ditto.
11075
11076 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11077 use tilde_expand and strerror for opening save-tracepoints file.
11078
11079 * thread-db.c (thread_db_new_objfile): Indendation fix.
11080
11081 * infptrace.c (GDB_MAX_ALLOCA): New define.
11082 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11083 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11084 can be overridden with whatever value is appropriate to the host).
11085 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11086 alloca to allocate potentially large buffer.
11087 * rs6000-nat.c (child_xfer_memory): Ditto.
11088 * symm-nat.c (child_xfer_memory): Ditto.
11089 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11090
11091 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11092
11093 From Nick Clifton <nickc@redhat.com>
11094 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11095
11096 2002-01-07 Michael Snyder <msnyder@redhat.com>
11097
11098 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11099 Don't use exec_bfd if it's NULL.
11100
11101 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11102
11103 * valops.c (value_arg_coerce): Fix formatting.
11104
11105 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11106
11107 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11108 * gnu-nat.c: Ditto.
11109
11110 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11111
11112 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11113 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11114 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11115 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11116 z8k-coff have not been multi-arched. Update z8k-coff build
11117 status.
11118
11119 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11120
11121 * MAINTAINERS: Mark a29k target as obsolete.
11122 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11123 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11124 comments.
11125 * NEWS: Note that a29k targets are obsolete.
11126 * a29k-tdep.c: Mark as obsolete.
11127 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11128 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11129 a29k-*-vxworks* targets as obsolete.
11130 * remote-adapt.c: Obsolete.
11131 * remote-eb.c: Obsolete.
11132 * remote-mm.c: Obsolete.
11133 * remote-udi.c: Obsolete.
11134 * config/a29k/a29k-udi.mt: Obsolete.
11135 * config/a29k/a29k.mt: Obsolete.
11136 * config/a29k/tm-a29k.h: Obsolete.
11137 * config/a29k/tm-vx29k.h: Obsolete.
11138 * config/a29k/vx29k.mt: Obsolete.
11139
11140 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11141
11142 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11143 with BFD_ENDIAN_BIG.
11144
11145 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11146
11147 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11148 * configure, config.in: Re-generate.
11149 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11150 * defs.h: Do not include <endian.h>.
11151
11152 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11153
11154 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11155 * config.in: Regenerate.
11156 * configure.in: Update copyright years.
11157 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11158 * configure: Regenerate.
11159 * i386bsd-nat.c: Update copyright years.
11160 (fill_gregset): Use regcache_collect.
11161 (fetch_inferior_registers): Only fetch integer registers
11162 if requested to do so. Add support for XMM registers
11163 using PT_GETXMMREGS.
11164 (store_inferior_registers): Only store integer registers
11165 if requested to do so. Add support for XMM registers
11166 using PT_SETXMMREGS.
11167 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11168 (store_inferior_registers): Remove.
11169 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11170 (fetch_elfcore_registers): New function.
11171 (i386nbsd_elfcore_fns): New.
11172 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11173 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11174 i386bsd-nat.o.
11175 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11176 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11177 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11178 * config/i386/tm-nbsd.h: Update copyright years.
11179 (HAVE_SSE_REGS): Define.
11180 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11181 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11182 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11183 (SIGCONTEXT_PC_OFFSET): Remove.
11184 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11185
11186 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11187
11188 * configure.tgt: Remove powerpc-*-macos* target.
11189 * config/m68k/xm-mpw.h: Delete file.
11190 * config/xm-mpw.h: Delete file.
11191 * ser-mac.c: Delete file.
11192 * mpw-make.sed: Delete file.
11193 * mpw-config.in: Delete file.
11194 * mac-xdep.c: Delete file.
11195 * mac-gdb.r: Delete file.
11196 * mac-defs.h: Delete file.
11197 * mac-nat.c: Delete file.
11198 * config/powerpc/macos.mh: Delete file.
11199 * config/powerpc/macos.mt: Delete file.
11200 * config/powerpc/nm-macos.h: Delete file.
11201 * config/powerpc/tm-macos.h: Delete file.
11202 * source.c (openp, open_source_file): Remove obsolete code.
11203 * top.c (gdb_readline): Ditto.
11204 * utils.c (query): Ditto.
11205 * event-top.c (display_gdb_prompt): Ditto.
11206 * Makefile.in (ser-mac.o): Delete obsolete target.
11207 * NEWS: Update.
11208
11209 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11210
11211 * defs.h (BIG_ENDIAN): Delete macro definition.
11212 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11213 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11214 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11215 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11216 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11217 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11218 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11219 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11220 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11221 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11222 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11223 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11224 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11225 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11226 * gdbarch.c: Re-generate.
11227
11228 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11229
11230 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11231 for core files.
11232
11233 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11234
11235 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11236
11237 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11238
11239 * value.h (value_ptr): Delete typedef.
11240
11241 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11242
11243 * i386nbsd-nat.c: Update copyright years.
11244 Include i386-tdep.h.
11245
11246 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11247
11248 * stabsread.c: Update copyright years.
11249
11250 From Debashis Mahata <debashis.mahata@wipro.com>:
11251 (read_struct_fields): Deal with Sun C compiler erroneous stab
11252 output for structs and unions.
11253 Fix PR gdb/269.
11254
11255 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11258 prototype.
11259
11260 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11261
11262 * cp-abi.c: Fix whitespace.
11263 (baseclass_offset): New wrapper function.
11264 * cp-abi.h (baseclass_offset): Add prototype.
11265 (struct cp_abi_ops): Add baseclass_offset pointer.
11266
11267 * valops.c (vb_match): Move to...
11268 * gnu-v2-abi.c (vb_match): here.
11269 * valops.c (baseclass_offset): Move to...
11270 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11271
11272 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11273
11274 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11275 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11276 * hpacc-abi.c (init_hpacc_ops): Likewise.
11277
11278 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11279
11280 * valops.c (find_overload_match): Accept obj as a
11281 reference parameter. Update it before returning.
11282 * value.h (find_overload_match): Update prototype.
11283 * eval.c (evaluate_subexp_standard): Pass object to
11284 find_overload_match by reference.
11285
11286 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11287
11288 * valarith.c: Replace value_ptr with struct value pointer. Remove
11289 register attribute from value declarations.
11290 * valops.c: Ditto.
11291 * value.h: Ditto.
11292 * scm-lang.c (scm_lookup_name): Ditto.
11293
11294 2002-01-03 Michael Snyder <msnyder@redhat.com>
11295
11296 Abstract the functionality of iterating over mapped memory
11297 regions into a general purpose iterator function.
11298 * procfs.c (iterate_over_mappings): New function, general purpose
11299 iterator for memory sections.
11300 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11301 (solib_mappings_callback): New function, callback for above.
11302 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11303 (info_mappings_callback): New function, callback for above.
11304
11305 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11306
11307 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11308
11309 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11310 * i386-tdep.c: Include "elf-bfd.h".
11311 (process_note_abi_tag_sections): New function.
11312 (i386_gdbarch_init): Add code to recognize various OS/ABI
11313 combinations.
11314
11315 * maint.c (_initialize_maint_cmds): Add missing \ in
11316 string-literal.
11317
11318 For older changes see ChangeLog-2001
11319 \f
11320 Local Variables:
11321 mode: change-log
11322 left-margin: 8
11323 fill-column: 74
11324 version-control: never
11325 End:
This page took 0.275899 seconds and 5 git commands to generate.