2002-09-18 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-18 Michael Snyder <msnyder@redhat.com>
2
3 Preliminary support for Objective-C:
4 * defs.h (language_objc): New enum value.
5 (puts_filtered_tabular): Declaration only, exported from utils.c.
6 (skip_quoted): Delete, declared in completer.h.
7 * c-exp.y: Include completer.h.
8 * p-exp.y: Ditto.
9 * jv-exp.y: Ditto.
10 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
11 New operator enum values.
12 * language.h (CAST_IS_CONVERSION): Test for language_objc.
13 * language.c (binop_result_type): Handle language_objc case.
14 (integral_type, character_type, string_type, boolean_type,
15 structured_type, binop_type_check): Ditto.
16 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
17 (struct objc_specific): Add to general_symbol_info.
18 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
19 (SYMBOL_DEMANGLED_NAME): Handle objc case.
20 * parser-defs.h (struct objc_class_str): New struct type.
21 (start_msglist, end_msglist, add_msglist): Declaration only,
22 exported from objc-lang.c.
23 * value.h (value_of_local, value_nsstring,
24 call_function_by_hand_expecting_type): Exported from valops.c.
25 * valops.c (find_function_addr): Export.
26 (call_function_by_hand_expecting_type): New function.
27 (value_of_local): New function.
28 * symfile.c (init_filename_language_table): Add ".m" extension
29 for Objective-C.
30 * utils.c (puts_filtered_tabular): New function.
31 (fprintf_symbol_filtered): Add objc demangling support (disabled).
32 (set/show demangle): Extend help-string to refer to ObjC.
33 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
34 * stabsread.c (symbol_reference_defined): Objective-C symbols
35 may contain colons: make allowances when scanning stabs strings
36 for colons.
37 (objc_find_colon): New function.
38 * printcmd.c (address_info): If language == objc then print
39 "self" instead of "this".
40 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
41 OP_NSSTRING, and OP_SELF.
42 (prefixify_subexp): Ditto.
43 * source.c (print_source_lines): Mention objc in comment.
44 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
45 method names.
46
47 2002-09-18 Andrew Cagney <ac131313@redhat.com>
48
49 * complaints.h: Update copyright.
50 (struct complaints): Declare.
51 (struct complaint): Make `message' constant.
52 (internal_complaint): Declare.
53 (complaint): Declare.
54 (complaint_root): Delete declaration.
55 (symfile_complaints): Delete declaration.
56 (struct complaints): Add opaque declaration.
57 (clear_complaints): Add a complaints parameter.
58 * complaints.c: Update copyright.
59 (enum complaint_series): Define.
60 (complaint_root): Delete.
61 (struct complaints): Define.
62 (complaint_sentinel, symfile_complaint_book): New variables.
63 (symfile_explanations, symfile_complaints): New variables.
64 New variables.
65 (get_complaints): New function.
66 (vcomplaint): New function.
67 (complaint): New function.
68 (internal_complaint): New function.
69 (complain): Call vcomplain with symfile_complaint.
70 (clear_complaints): Rewrite.
71 (_initialize_complaints): Use add_setshow_command.
72 * Makefile.in (complaints.o): Update dependencies.
73 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
74 to call to clear_complaints.
75 (new_symfile_objfile, reread_symbols): Ditto.
76 (oldsyms_complaint): Delete.
77 (empty_symtab_complaint, unknown_option_complaint): Delete.
78 (free_named_symtabs): Use complaint instead of complain.
79
80 2002-09-18 Michael Snyder <msnyder@redhat.com>
81
82 * objc-lang.c: First clean-up round: comments, indentation.
83 * objc-lang.h: Ditto.
84 * objc-lang.y: Ditto.
85
86 2002-09-18 Andrew Cagney <ac131313@redhat.com>
87
88 * maint.c (maintenance_internal_error): Print the parameter as the
89 error message.
90 (maintenance_internal_warning): New function.
91 (_initialize_maint_cmds): Add command `maint internal-warning'.
92
93 * defs.h (internal_warning, internal_vwarning): Declare.
94 * utils.c (struct internal_problem): Define.
95 (internal_vproblem): New function.
96 (internal_warning): New function.
97 (internal_vwarning): New function.
98 (internal_warning_problem, internal_error_problem): New variables.
99 (internal_verror): Just call internal_vproblem.
100
101 2002-09-18 Michael Snyder <msnyder@redhat.com>
102
103 * objc-lang.c: New file, support for Objective-C.
104 Preliminary check-in, not yet integrated into gdb.
105 * objc-lang.h: New file.
106 * objc-exp.y: New file.
107
108 2002-09-18 Andrew Cagney <ac131313@redhat.com>
109
110 * infrun.c (signal_stop_update): Convert definition to ISO C.
111 (signal_print_update): Ditto.
112 (signal_pass_update): Ditto.
113 * inflow.c (terminal_save_ours): Ditto.
114
115 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
116 comments.
117
118 * config/djgpp/fnchange.lst: Handle name clashes between
119 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
120 bfd/coff-tic80.c.
121
122 * i386-linux-tdep.h: Fix tipo.
123
124 2002-09-18 Adam Fedor <fedor@gnu.org>
125
126 * MAINTAINERS: Add myself to the Write After Approval list.
127
128 2002-09-18 Jim Blandy <jimb@redhat.com>
129
130 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
131 texthigh and textlow to reader-specific structs caused
132 objfile_relocate to miss them. This is fixable, but the work that
133 the change was supposed to prepare GDB for never got done anyway.
134
135 2002-09-18 David Carlton <carlton@math.stanford.edu>
136
137 * MAINTAINERS: Alphabetize Write After Approval list.
138
139 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
140
141 Fix PR gdb/709
142 * values.c (value_static_field): Call read_var_value.
143
144 2002-09-18 Andrew Cagney <ac131313@redhat.com>
145
146 * valops.c (hand_function_call): Align the initial stack pointer
147 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
148 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
149 return value.
150 * mips-tdep.c (mips_frame_align): New function.
151 (mips_gdbarch_init): Set frame_align.
152 * gdbarch.sh (FRAME_ALIGN): New method.
153 * gdbarch.h, gdbarch.c: Re-generate.
154
155 2002-09-18 Michal Ludvig <mludvig@suse.cz>
156
157 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
158 registers.
159
160 2002-09-17 Andrew Cagney <ac131313@redhat.com>
161
162 * NEWS: Mention that MIPS $fp behavior changed.
163 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
164 reference to FP_REGNUM.
165 (mipsnbsd_cannot_store_register): Ditto.
166 * mips-linux-nat.c: Update copyright.
167 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
168 (mips_linux_cannot_store_register): Ditto.
169 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
170 * config/mips/tm-mips.h: Update copyright.
171 (FP_REGNUM): Delete macro.
172 (MIPS_REGISTER_NAMES): Replace "fp" with "".
173 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
174 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
175 (mips_r3041_reg_names, mips_r3051_reg_names)
176 (mips_r3081_reg_names): Replace "fp" with "".
177 Fix PR gdb/480.
178
179 2002-09-17 Theodore A. Roth <troth@verinet.com>
180
181 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
182 generic_read_register_dummy() (PR gdb/703).
183 (avr_push_return_address): #if 0 out unused vars.
184 (avr_gdbarch_init): Enable use of avr_push_return_address().
185
186 2002-09-17 Michael Snyder <msnyder@redhat.com>
187
188 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
189 RTE will take care of it.
190
191 2002-09-17 Andrew Cagney <ac131313@redhat.com>
192
193 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
194 invalid, return SP_REGNUM.
195
196 2002-09-17 Michael Snyder <msnyder@redhat.com>
197
198 * mips-tdep.c (mips_pop_frame): Read saved values of floating
199 point registers without sign extension.
200
201 2002-09-17 Andrew Cagney <cagney@redhat.com>
202
203 * blockframe.c (deprecated_read_register_dummy): Rename
204 generic_read_register_dummy.
205 * frame.c (frame_unwind_signed_register): New function.
206 (frame_unwind_unsigned_register): New function.
207 * frame.h (frame_unwind_signed_register): Declare.
208 (frame_unwind_unsigned_register): Declare.
209 (deprecated_read_register_dummy): Rename
210 generic_read_register_dummy.
211
212 * h8300-tdep.c (h8300_frame_chain): Update.
213 (h8300_frame_saved_pc): Update.
214 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
215 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
216 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
217 (s390_frame_chain): Update.
218 * v850-tdep.c (v850_find_callers_reg): Update.
219 (v850_frame_saved_pc): Update.
220 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
221 (m32r_find_callers_reg): Update.
222 (m32r_frame_saved_pc): Update.
223 * sh-tdep.c (sh_find_callers_reg): Update.
224 (sh64_get_saved_pr): Update.
225 (sh_init_extra_frame_info): Update.
226 (sh_init_extra_frame_info): Update.
227 (sh64_init_extra_frame_info): Update.
228 (sh64_init_extra_frame_info): Update.
229 * mcore-tdep.c (mcore_find_callers_reg): Update.
230 (mcore_frame_saved_pc): Update.
231 (mcore_init_extra_frame_info): Update.
232 * i386-tdep.c (i386_frame_saved_pc): Update.
233 * ia64-tdep.c (ia64_frame_saved_pc): Update.
234 (ia64_init_extra_frame_info): Update.
235 (ia64_init_extra_frame_info): Update.
236 * d10v-tdep.c (d10v_frame_saved_pc): Update.
237 * cris-tdep.c (cris_init_extra_frame_info): Update.
238 * avr-tdep.c (avr_frame_chain): Update.
239 (avr_init_extra_frame_info): Update.
240 (avr_frame_saved_pc): Update.
241 * arm-tdep.c (arm_find_callers_reg): Update.
242 (arm_init_extra_frame_info): Update.
243 (arm_frame_saved_pc): Update.
244
245 2002-09-17 Tom Tromey <tromey@redhat.com>
246
247 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
248 is "'".
249
250 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
251
252 * MAINTAINERS: Remove "non multi-arched" text from h8300.
253 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
254 NEXT_PROLOGUE_INSN.
255 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
256 NEXT_PROLOGUE_INSN.
257
258 2002-09-16 Joel Brobecker <brobecker@gnat.com>
259
260 * osfsolib.c: Remove file, replaced by solib-osf.c.
261 * Makefile.in: Remove compilation rules for osfsolib.c.
262
263 2002-09-16 David Carlton <carlton@math.stanford.edu>
264
265 * cp-valprint.c (cp_print_class_method): Correct args to
266 check_stub_method_group.
267
268 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
269
270 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
271 `set architecture'. Unify naming convention of functions.
272 (h8300_skip_prologue): Improve prologue analysis.
273 (h8300_push_arguments): Rewritten to more closely match GCC's
274 bizarre argument-passing behavior, along with the comment describing
275 said behavior.
276 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
277 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
278 sim, remote-e7000.c, remote-hms.c and remote.c
279
280 2002-09-15 Mark Kettenis <kettenis@gnu.org>
281
282 * i386-tdep.c (gdb_print_insn_i386): Removed.
283 (i386_print_insn): New function.
284 (i386_gdbarch_init): Set print_insn to i386_print_insns.
285 (_initialize_i386_tdep): Don't initialize tm_print_insn and
286 tm_print_insn_info.
287
288 2002-09-14 Mark Kettenis <kettenis@gnu.org>
289
290 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
291 zero.
292
293 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
294
295 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
296 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
297 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
298
299 2002-09-13 Christopher Faylor <cgf@redhat.com>
300
301 * win32-nat.c (child_create_inferior): Honor 'tty' command.
302
303 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
304
305 * gdbtypes.c (check_stub_method): Make static.
306 (check_stub_method_group): New function.
307 * gdbtypes.h: Update prototypes.
308 * cp-support.c: New file.
309 * cp-support.h: New file.
310
311 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
312 (update_method_name_from_physname): New function.
313 (read_member_functions): Correct method names for operators
314 and v3 constructors/destructors. Separate v2 constructors and
315 destructors.
316 * Makefile.in (stabsread.o): Update dependencies.
317 (SFILES): Add cp-support.c.
318 (COMMON_OBS): Add cp-support.o.
319 (cp_support_h, cp-support.o): Add.
320
321 * cp-valprint.c (cp_print_class_method): Call
322 check_stub_method_group instead of check_stub_method. Remove
323 extraneous QUITs.
324 * p-valprint.c (pascal_object_print_class_method): Likewise.
325 * valops.c (search_struct_method): Likewise.
326 (find_method_list, value_struct_elt_for_reference): Likewise.
327
328 2002-09-13 Andrew Cagney <cagney@redhat.com>
329
330 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
331 * gdbarch.h, gdbarch.c: Regenerate.
332
333 2002-09-13 Andrew Cagney <ac131313@redhat.com>
334
335 * frame.c (find_saved_register): Delete function.
336 * frame.h (find_saved_register): Delete declaration.
337 Fix PR gdb/631.
338
339 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
340
341 * mips-tdep.c (read_next_frame_reg): Re-hack using
342 frame_register_unwind.
343
344 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
345
346 * mips-tdep.c (mips_get_saved_register): Re-hack using
347 frame_register_unwind.
348
349 2002-09-12 Joel Brobecker <brobecker@gnat.com>
350
351 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
352 vector. Will be useful for Interix.
353 * gdbarch.h, gdbarch.c: Regenerate.
354
355 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
356 name of the malloc function by NAME_OF_MALLOC.
357
358 2002-09-12 Joel Brobecker <brobecker@gnat.com>
359
360 * value.h (find_function_in_inferior): Add const keyword to
361 one of the parameters. Allows us to invoke this function with
362 a const char *.
363 * valops.c (find_function_in_inferior): Likewise.
364
365 2002-09-12 Joel Brobecker <brobecker@gnat.com>
366
367 * exec.c (xfer_memory): Fix compilation warning with old versions
368 of GCC.
369 * tracepoint.c (trace_find_tracepoint_command): Likewise.
370
371 2002-09-12 David Carlton <carlton@math.stanford.edu>
372
373 * symtab.h: Run through gdb_indent.h.
374 Add 2002 to Copyright year list.
375
376 2002-09-12 Alan Modra <amodra@bigpond.net.au>
377
378 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
379 mach constants.
380 * MAINTAINERS: Add myself to write after approval list.
381
382 2002-09-11 J. Brobecker <brobecker@gnat.com>
383
384 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
385
386 2002-09-11 J. Brobecker <brobecker@gnat.com>
387
388 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
389 Interix.
390
391 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
392
393 * procfs.c (do_detach): Clear current signal, not just fault.
394 Corrects problem with breakpoint trap signal leaking to detached
395 process on Tru64.
396
397 2002-09-10 Michael Snyder <msnyder@redhat.com>
398
399 * buildsym.c (finish_block): Protect against null pointer.
400
401 2002-09-10 Andrew Cagney <cagney@redhat.com>
402
403 * infcmd.c (default_print_registers_info): Send all output to
404 ``file'' instead of ``gdb_stdout''.
405
406 2002-09-10 Michael Snyder <msnyder@redhat.com>
407
408 * mips-tdep.c (mips_extract_struct_value_address): Make val a
409 LONGEST, and use signed register read (addresses are sign-
410 extended for mips).
411
412 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
413
414 * event-loop.c (gdb_do_one_event): Make public.
415 * event-loop.h (gdb_do_one_event): Declare.
416
417 2002-09-10 Jeff Law <law@redhat.com>
418
419 * infttrace.c (child_resume): Simplify and rework to avoid
420 TT_PROC_CONTINUE.
421
422 2002-09-09 Fred Fish <fnf@intrinsity.com>
423
424 * printcmd.c (print_scalar_formatted): "len" is the number of
425 target bytes, NOT the number of target bits.
426
427 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
428
429 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
430 * top.c (init_main): Set rl_terminal_name.
431
432 2002-09-08 Aidan Skinner <aidan@velvet.net>
433
434 * ada-lang.c (ada_array_bound, ada_type_match,
435 _initialize_ada_language): Fix K&R definitions.
436 * ada-tasks.c (get_current_task): Fix K&R definitions.
437 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
438
439 2002-09-07 Christopher Faylor <cgf@redhat.com>
440
441 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
442 Add XP.
443
444 2002-09-06 Mark Kettenis <kettenis@gnu.org>
445
446 * i386-tdep.c (i386_register_virtual_type,
447 i386_register_convertible, i386_register_convert_to_virtual,
448 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
449 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
450 (i386_gdbarch_init): Fix comment. Add comments on calls that set
451 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
452 Don't set push_arguments twice.
453
454 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
455 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
456 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
457 sigtramp_end to NULL.
458 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
459 defines.
460 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
461
462 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
463 whitespace.
464
465 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
466 * gdbarch.h, gdbarch.c: Re-generate.
467 * blockframe.c (find_pc_sect_partial_function): Convert to use
468 SIGTRAMP_START_P predicate.
469
470 2002-09-05 Michael Snyder <msnyder@redhat.com>
471
472 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
473 generic_dummy_frame method and old method. Also distinguish
474 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
475 (arm_extract_return_value): Use new regcache method.
476
477 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
478 adjustment that doesn't conform to the ABI.
479 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
480 saved regcache, not from current regcache.
481
482 2002-09-05 Andrew Cagney <ac131313@redhat.com>
483
484 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
485 * README: Update.
486
487 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
488
489 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
490 if arm_apcs_32 is false.
491
492 2002-09-04 Andrew Cagney <ac131313@redhat.com>
493
494 GDB 5.3 branch created.
495
496 2002-09-03 Theodore A. Roth <troth@verinet.com>
497
498 * gdb/avr-tdep.c (avr_gdbarch_init): Use
499 generic_unwind_get_saved_register.
500
501 2002-09-03 David Carlton <carlton@math.stanford.edu>
502
503 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
504 argument (PR gdb/653). Update call to smash_to_method_type.
505 (read_structure_scope): Update call to dwarf2_add_member_fn.
506
507 2002-09-03 Michal Ludvig <mludvig@suse.cz>
508
509 * x86-64-linux-tdep.c: Include gdb_string.h
510 * x86-64-linux-nat.c: Ditto.
511
512 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
513
514 * ada-exp.y (yyname, yyrule): Remap global variables that appear
515 when YYDEBUG is set to 1.
516 * c-exp.y: Likewise.
517 * f-exp.y: Likewise.
518 * jv-exp.y: Likewise.
519 * m2-exp.y: Likewise.
520 * p-exp.y: Likewise.
521
522 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
523
524 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
525 dependency list.
526 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
527 solib_svr4_fetch_link_map_offsets to
528 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
529 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
530 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
531 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
532 solib-svr4.o, and solib-legacy.o.
533 * config/i386/tm-nbsd.h: Include solib.h.
534
535 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
536
537 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
538 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
539 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
540 comment noting that this needs its own target configuration.
541 * config/i386/nbsd.mt: New file.
542 * config/i386/nbsdaout.mt: Remove.
543 * config/i386/nbsdelf.mt: Ditto.
544 * config/i386/tm-nbsdaout.h: Ditto.
545
546 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
547
548 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
549 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
550 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
551 tdep->sigtramp_end.
552 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
553 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
554 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
555
556 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
557
558 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
559 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
560 * i386-tdep.h (i386bsd_init_abi): New prototype.
561 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
562 function declaration.
563 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
564 for NetBSD-a.out or NetBSD-ELF.
565 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
566 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
567 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
568 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
569 and nbsd-tdep.h.
570 (i386nbsd_pc_in_sigtramp): New function.
571 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
572 i386nbsd_pc_in_sigtramp.
573 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
574 and i386nbsdelf_init_abi OS ABI handlers.
575 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
576 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
577
578 2002-09-02 Mark Kettenis <kettenis@gnu.org>
579
580 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
581 registers if the target really has them.
582
583 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
584
585 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
586 than nbsd-tdep.h.
587
588 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
589
590 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
591 list.
592 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
593 (alphanbsd_skip_sigtramp_frame): New functions.
594 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
595 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
596 to alphanbsd_sigcontext_addr.
597
598 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
599
600 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
601 list.
602 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
603 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
604 nbsd_pc_in_sigtramp.
605 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
606 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
607 * nbsd-tdep.c: Include gdb_string.h.
608 (nbsd_pc_in_sigtramp): New function.
609 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
610 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
611 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
612 ppcnbsd_pc_in_sigtramp.
613 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
614 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
615 shnbsd_pc_in_sigtramp.
616 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
617 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
618 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
619
620 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
621
622 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
623 watchpoints to NULL.
624 (insert_breakpoints): set val field of watchpoints if NULL.
625
626
627 2002-08-29 Jim Blandy <jimb@redhat.com>
628
629 * symtab.c (lookup_symbol_aux): In the cases where we find a
630 minimal symbol of an appropriate name and use its address to
631 select a symtab to read and search, use `name' (as passed to us)
632 as the demangled name when searching the symtab's global and
633 static blocks, not the minsym's name.
634
635 2002-08-29 Keith Seitz <keiths@redhat.com>
636
637 * stack.c (print_frame_info_base): Always set current_source_symtab
638 and current_source_line.
639
640 2002-08-29 Donn Terry <donnte@microsoft.com>
641
642 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
643
644 2002-08-28 Keith Seitz <keiths@redhat.com>
645
646 * stack.c (select_frame): Add FIXME concerning selected-frame
647 events.
648 (select_frame_command): Send selected-frame-level-changed
649 event notification, but only if the level actually changed.
650 (up_silently_base): Add selected-frame-level-changed event
651 notification.
652 (down_silently_base): Likewise.
653
654 2002-08-28 Andrew Cagney <ac131313@redhat.com>
655
656 * Makefile.in: Update dependencies for all gdb/*.c files.
657
658 2002-08-27 Tom Tromey <tromey@redhat.com>
659
660 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
661 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
662 Update dependencies.
663 * i387-tdep.c: Include gdb_string.h.
664 * osabi.c: Likewise.
665 * i386-linux-nat.c: Likewise.
666 * lin-lwp.c: Likewise.
667 * ax-gdb.c: Likewise.
668 * signals/signals.c: Likewise.
669 * jv-valprint.c: Likewise.
670 * p-lang.c: Likewise.
671 * c-valprint.c: Likewise.
672 * cp-abi.c: Likewise.
673
674 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
675
676 * cli/cli-script.h (copy_command_lines): Export.
677 * breakpoint.c: Include cli/cli-script.h.
678 * Makefile.in (breakpoint.o): Update dependencies.
679
680 2002-08-26 Michael Snyder <msnyder@redhat.com>
681
682 * breakpoint.c (insert_breakpoints): Protect all references
683 to 'process_warning'. Shorten long lines.
684
685 2002-08-26 Joel Brobecker <brobecker@gnat.com>
686
687 * cli/cli-script.c (copy_command_lines): New function.
688 * defs.h (copy_command_lines): Export.
689 * testsuite/gdb.base/commands.exp: New tests for commands
690 attached to a temporary breakpoint, and for commands that
691 delete the breakpoint they are attached to.
692
693 2002-08-26 Michael Snyder <msnyder@redhat.com>
694
695 * breakpoint.c (bpstat_stop_status): Instead of copying the
696 pointer to the breakpoint commands struct, make a new copy
697 of the struct and point to that.
698 (bpstat_clear): Free the commands struct.
699 (bpstat_clear_actions): Free the commands struct.
700 (bpstat_do_actions): Free the command actions. Also execute
701 the local cleanups, instead of deleting them.
702 (delete_breakpoint): Leave the commands field of the bpstat
703 chain alone -- it will be freed later.
704
705 2002-08-26 Kevin Buettner <kevinb@redhat.com>
706
707 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
708 deleted in 2002-08-20 commit. This function is still used by
709 ppc-linux-nat.c.
710
711 2002-08-26 Keith Seitz <keiths@redhat.com>
712
713 * gdb-events.sh: Add selected-frame-level-changed event.
714 * gdb-events.c: Regenerated.
715 * gdb-events.h: Regenerated.
716
717 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
718
719 Fix PR gdb/393:
720 * inflow.c (terminal_save_ours): New function to save terminal
721 settings.
722 * inferior.h (terminal_save_ours): Declare.
723 * target.c (debug_to_terminal_save_ours): New function.
724 (cleanup_target): Defaults to_terminal_save_ours.
725 (update_current_target): Inherit to_terminal_save_ours.
726 (setup_target_debug): Set to_terminal_save_ours.
727 * target.h (target_terminal_save_ours): New to save terminal settings.
728 (target_ops): New member to_terminal_save_ours.
729 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
730 * hpux-thread.c (init_hpux_thread_ops): Likewise.
731 * inftarg.c (init_child_ops): Likewise.
732 * m3-nat.c (init_m3_ops): Likewise.
733 * procfs.c (init_procfs_ops): Likewise.
734 * wince.c (init_child_ops): Likewise.
735 * win32-nat.c (init_child_ops): Likewise.
736 * sol-thread.c (init_sol_thread_ops): Likewise.
737
738 2002-08-26 Mark Kettenis <kettenis@gnu.org>
739
740 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
741 use regcache_* functions.
742 (i386_gdbarch_init): Set store_return_value instead of
743 deprecated_store_return_value.
744
745 * regcache.c (regcache_raw_write_signed,
746 regcache_raw_write_unsigned): New functions.
747 * regcache.h (regcache_raw_write_signed,
748 regcache_raw_write_unsigned): New prototypes.
749
750 2002-08-25 Andrew Cagney <ac131313@redhat.com>
751
752 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
753 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
754 source file dependencies. Cleanup corresponding generator rules.
755
756 2002-08-25 Andrew Cagney <ac131313@redhat.com>
757
758 * regcache.h (register_offset_hack): Declare.
759 (regcache_cooked_read_using_offset_hack): Declare.
760 (regcache_cooked_write_using_offset_hack): Declare.
761
762 * regcache.c (register_offset_hack): New function.
763 (regcache_cooked_read_using_offset_hack): New function.
764 (regcache_cooked_write_using_offset_hack): New function.
765 (regcache_dump): Check that the registers, according to their
766 offset, are packed hard against each other.
767 (cooked_xfer_using_offset_hack): New function.
768
769 2002-08-25 Andrew Cagney <ac131313@redhat.com>
770
771 * regcache.c (struct regcache_descr): Add field register_type.
772 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
773 in as a parameter
774 (init_regcache_descr): Initialize register_type. Pass the descr
775 to init_legacy_regcache_descr. Use register_type instead of
776 REGISTER_VIRTUAL_TYPE.
777 (register_type): New function.
778 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
779 * regcache.h (register_type): Declare.
780
781 2002-08-25 Andrew Cagney <ac131313@redhat.com>
782
783 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
784 instead of deprecated_store_return_value. Fix fallout from
785 2002-08-23 Andrew Cagney <cagney@redhat.com>.
786
787 2002-08-25 Andrew Cagney <ac131313@redhat.com>
788
789 * regcache.c (max_register_size): New function.
790 (init_legacy_regcache_descr): Ensure that max_register_size is
791 large enough for REGISTER_VIRTUAL_SIZE.
792 * regcache.h (max_register_size): Declare.
793
794 2002-08-24 Andrew Cagney <ac131313@redhat.com>
795
796 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
797 store_return_value.
798 (e500_extract_return_value): Change type of valbuf pointer to
799 void.
800
801 2002-08-24 Mark Kettenis <kettenis@gnu.org>
802
803 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
804 workaround.
805
806 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
807 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
808 long long) to prevent compiler warning on 64-bit systems.
809
810 2002-08-23 Andrew Cagney <cagney@redhat.com>
811
812 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
813 (DEPRECATED_STORE_RETURN_VALUE): New method.
814 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
815 * gdbarch.h, gdbarch.c: Re-generate.
816
817 * values.c (set_return_value): Pass current_regcache to
818 STORE_RETURN_VALUE.
819 * arch-utils.h (legacy_store_return_value): Declare.
820 * arch-utils.c (legacy_store_return_value): New function.
821 (legacy_extract_return_value): Update parameters.
822
823 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
824 STORE_RETURN_VALUE.
825 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
826 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
827 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
828 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
829 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
830 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
831 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
832 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
833 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
834 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
835
836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
837 * i386-tdep.c (i386_extract_return_value): Update.
838 * arch-utils.c (legacy_extract_return_value): Update.
839 * frv-tdep.c (frv_gdbarch_init): Update.
840 * cris-tdep.c (cris_gdbarch_init): Update.
841 * d10v-tdep.c (d10v_gdbarch_init): Update.
842 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
843 * m68k-tdep.c (m68k_gdbarch_init): Update.
844 * mcore-tdep.c (mcore_gdbarch_init): Update.
845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
846 * s390-tdep.c (s390_gdbarch_init): Update.
847 * sparc-tdep.c (sparc_gdbarch_init): Update.
848 * sh-tdep.c (sh_gdbarch_init): Update.
849 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
850 * v850-tdep.c (v850_gdbarch_init): Update.
851 * avr-tdep.c (avr_gdbarch_init): Update.
852 * ia64-tdep.c (ia64_gdbarch_init): Update.
853 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
854 * vax-tdep.c (vax_gdbarch_init): Update.
855 * alpha-tdep.c (alpha_gdbarch_init): Update.
856 * arm-tdep.c (arm_gdbarch_init): Update.
857 * mips-tdep.c (mips_gdbarch_init): Update.
858 * i386-tdep.c (i386_gdbarch_init): Update.
859
860 2002-08-23 Andrew Cagney <ac131313@redhat.com>
861
862 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
863 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
864
865 2002-08-24 Mark Kettenis <kettenis@gnu.org>
866
867 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
868 problems.
869
870 2002-08-23 Joel Brobecker <brobecker@gnat.com>
871
872 * infrun.c (handle_inferior_event): Move a comment outside of a
873 function call, in order to avoid indent reformatting this part
874 of the code in an unreadable way.
875
876 2002-08-23 Grace Sainsbury <graces@redhat.com>
877
878 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
879 when breakpoints fail. Move general breakpoint error messages to
880 insert_breakpoints.
881 * breakpoint.c (insert_breakpoints): Change warnings when
882 breakpoints are nto inserted to specify the type. Remove call to
883 memory_error when hardware breakpoints can't be inserted. Remove
884 multiple calls to warning so all messages are sent to the user at
885 once.
886 (delete_breakpoints): Make insert error messsages more explicit.
887
888 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
889
890 * ChangeLog: Move gdbserver entries after GDB 5.2 to
891 gdbserver/ChangeLog.
892
893 2002-08-23 Mark Kettenis <kettenis@gnu.org>
894
895 * i386-tdep.c: Include "objfiles.h".
896 (i386_svr4_init_abi): Set in_solib_call_trampoline and
897 skip_trampoline_code.
898 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
899 (CPLUS_MARKER): Define to '.'.
900
901 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
902 member.
903 (linux_corefile_thread_callback): Increase args->num_notes.
904 (linux_make_note_section): Initialize thread_args.num_notes, and
905 use it to determine whether notes for any threads were created.
906
907 2002-08-23 Donn Terry <donnte@microsoft.com>
908
909 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
910 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
911 and PCUNKILL.
912 (write_with_trace): Conditionalize out the switch branch handling
913 PCSHOLD if the corresponding macro is not defined. Likewise for
914 PRSABORT and PRSTOP.
915 This change will be needed by the Interix port.
916
917 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
918
919 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
920 write_register wherever possible instead of manipulating the
921 register bytes directly.
922 Assign VALUE_CONTENTS to a variable and use that.
923 The GPR numbers are now dependent on the architecture.
924
925 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
926
927 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
928 ev_offset fields.
929 (skip_prologue): Add support for BookE/e500 instructions.
930 (e500_extract_return_value): New function.
931 (frame_get_saved_regs): Add support for saving ev registers and
932 pseudo gpr's.
933 (e500_store_return_value): New function.
934 (rs6000_gdbarch_init): Move up default intializations of
935 deprecated_extract_return_value and store_return_value. Overwrite
936 init of store_return_value with e500 specific version.
937 Set extract_return_value for e500.
938
939 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
940
941 * blockframe.c (generic_call_dummy_register_unwind): Use
942 regcache_cooked_read to catch cases in which the variable is
943 stored in a pseudo register.
944
945 2002-08-22 Andrew Cagney <cagney@redhat.com>
946
947 * NEWS: Mention that the i960 has been made obsolete.
948 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
949 i960-tdep.c
950 (remote-nrom.o): Obsolete target.
951 (remote-nindy.o, i960-tdep.o): Ditto.
952 * remote-nrom.c: Make file obsolete.
953 * remote-nindy.c, remote-vx960.c: Ditto.
954 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
955 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
956 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
957 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
958 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
959 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
960 i960-*-vxworks* obsolete.
961 * MAINTAINERS: Note that the i960 is obsolete.
962
963 2002-08-21 Corinna Vinschen <vinschen@redhat.com
964
965 * aix-thread.c (aix_thread_detach): Disable thread debugging on
966 detach to allow reinitialization.
967
968 2002-08-22 Andrew Cagney <ac131313@redhat.com>
969
970 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
971 attempt).
972
973 2002-08-22 Jim Blandy <jimb@redhat.com>
974
975 * coffread.c (coff_symfile_read): Don't try to read the line
976 number table from disk if the image file doesn't have a symbol
977 table; we'll never actually look at the info anyway, and Windows
978 ships DLL's with bogus file offsets for the line number data.
979
980 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
981
982 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
983 an e500 executable.
984
985 2002-08-21 Michael Snyder <msnyder@redhat.com>
986
987 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
988 (MSYMBOL_SIZE): Replace macro with function.
989 (DEFAULT_MIPS_TYPE): Delete unused macro.
990 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
991 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
992
993 2002-08-21 Jim Blandy <jimb@redhat.com>
994
995 * valops.c (value_cast): Simplify and correct logic for doing a
996 static cast from a pointer to a base class to a pointer to a
997 derived class.
998
999 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1000
1001 * infcmd.c (default_print_registers_info): Replace
1002 do_registers_info.
1003 (registers_info): Use gdbarch_print_registers_info instead of
1004 DO_REGISTERS_INFO.
1005 * inferior.h (default_print_registers_info): Replace
1006 do_registers_info.
1007 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1008 (DO_REGISTERS_INFO): Change to a predicate function.
1009 * gdbarch.h, gdbarch.c: Regenerate.
1010
1011 2002-08-21 Keith Seitz <keiths@redhat.com>
1012
1013 * gdb-events.sh: Add target-changed event.
1014 * gdb-events.c: Regenerated.
1015 * gdb-events.c: Regenerated.
1016 * valops.c (value_assign): Add target-changed event notification
1017 to inlval_register, lval_memory, and lval_reg_frame_relative.
1018
1019 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1020
1021 * NEWS: Add an entry regarding the improvement of the next/step
1022 operation on Alpha Tru64 multi-processor machines.
1023
1024 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1025
1026 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1027 directores.
1028 * Makefile.in: Update all _h macro definitions.
1029 * Makefile.in (install-gdbtk): Move to install section.
1030 (rdi-share/libangsd.a): Move to end of file.
1031
1032 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1033
1034 * frame.c (frame_register_unwind): When a register, set addrp to
1035 the register's byte.
1036
1037 2002-08-20 Michael Snyder <msnyder@redhat.com>
1038
1039 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1040 used locally, so move them from the target machine header to here.
1041 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1042 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1043 Make static.
1044 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1045
1046 2002-08-20 Andrew Cagney <cagney@redhat.com>
1047
1048 * NEWS: Mention that the Apollo line was made obsolete.
1049 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1050 m68*-hp-hpux* obsolete.
1051 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1052 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1053 * buildsym.c (make_blockvector): Make static.
1054 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1055 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1056 (ALLDEPFILES): Remove dstread.c.
1057 (dstread.o): Obsolete make rule.
1058 * dstread.c: Makefile obsolete.
1059 * dst.h: Ditto.
1060 * config/m68k/hp300hpux.mt: Ditto.
1061 * config/m68k/hp300hpux.mh: Ditto.
1062 * config/m68k/hp300bsd.mt: Ditto.
1063 * config/m68k/hp300bsd.mh: Ditto.
1064 * config/m68k/apollo68b.mt: Ditto.
1065 * config/m68k/apollo68v.mh: Ditto.
1066 * config/m68k/apollo68b.mh: Ditto.
1067
1068 2002-08-20 Michael Snyder <msnyder@redhat.com>
1069
1070 * mips-tdep.c (mips_in_return_stub): Make static.
1071 (mips_gdbarch_init): Set in_solib_return_trampoline.
1072 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1073
1074 2002-08-20 Michael Snyder <msnyder@redhat.com>
1075
1076 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1077 * gdbarch.c, gdbarch.h: Regenerate.
1078 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1079 Add.
1080 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1081
1082 2002-08-20 Michael Snyder <msnyder@redhat.com>
1083
1084 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1085 (mips_gdbarch_init): Set skip_trampoline_code,
1086 in_solib_call_trampoline.
1087 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1088 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1089
1090 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1091
1092 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1093
1094 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1095 vector type for ev registers.
1096 (e500_pseudo_register_read): New function.
1097 (e500_pseudo_register_write): New function.
1098 (e500_dwarf2_reg_to_regnum): New function.
1099 (PPC_UISA_NOFP_SPRS): New macro.
1100 (PPC_EV_REGS): New macro.
1101 (PPC_GPRS_PSEUDO_REGS): New macro.
1102 (registers_e500): New register set for e500.
1103 (variants): Add e500 variant.
1104 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1105 before setting architectural dependent variations. Initialize ev
1106 registers numbers. Add case for e500 architecture. Set the
1107 number of pseudo registers.
1108
1109 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1110
1111 * rs6000-tdep.c: Clean up comments.
1112
1113 2002-08-20 Andrew Cagney <cagney@redhat.com>
1114
1115 * h8300-tdep.c: Re-indent file.
1116
1117 2002-08-20 Jim Blandy <jimb@redhat.com>
1118
1119 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1120 default for this.
1121
1122 2002-08-20 Keith Seitz <keiths@redhat.com>
1123
1124 * breakpoints.c (watch_command_1): Use internal breakpoint
1125 when setting a watchpoint_scope breakpoint.
1126
1127 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1128
1129 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1130 (build_builtin_type_vec64i): Ditto.
1131 (build_builtin_type_vec128): Ditto.
1132 (build_builtin_type_vec128i): Ditto.
1133
1134 2002-08-19 Michael Snyder <msnyder@redhat.com>
1135
1136 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1137 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1138 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1139 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1140 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1141 CALL_DUMMY_ADDRESS): Delete.
1142 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1143 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1144 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1145 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1146 push_return_address.
1147 (mips_register_raw_size, mips_eabi_use_struct_convention,
1148 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1149 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1150 mips_init_extra_frame_info, mips_eabi_push_arguments,
1151 mips_n32n64_push_arguments, mips_push_return_address,
1152 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1153 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1154
1155 2002-08-19 Michael Snyder <msnyder@redhat.com>
1156
1157 * mips-tdep.c (mips_frame_num_args): New function.
1158 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1159 frame_saved_pc, frame_args_address, frame_locals_address,
1160 frame_num_args, and frame_args_skip.
1161 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1162 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1163 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1164 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1165
1166 2002-08-20 Michael Snyder <msnyder@redhat.com>
1167
1168 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1169 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1170 * mips-tdep.c (mips_store_struct_return): New function.
1171 (mips_extract_struct_value_address): New function.
1172 (mips_gdbarch_init): Set store_struct_return and
1173 extract_struct_value_address.
1174
1175 2002-08-20 David Carlton <carlton@math.stanford.edu>
1176
1177 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1178 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1179 (read_file_scope): Check that line_header is nonzero before
1180 decoding macro information.
1181
1182 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1183
1184 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1185 flag the general-purpose registers as floating-point on targets
1186 that don't support the floating-point registers.
1187
1188 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1189
1190 * rs6000-tdep.c (altivec_register_p): Delete.
1191 (rs6000_do_altivec_registers): Delete.
1192 (rs6000_altivec_registers_info): Delete.
1193 (rs6000_do_registers_info): Delete.
1194 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1195 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1196
1197 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1198
1199 * infcmd.c (do_registers_info): Print vector registers in hex
1200 format only.
1201 (print_vector_info): Check that printing registers
1202 makes sense.
1203 (print_float_info): Ditto.
1204
1205 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1206
1207 * mips-tdep.c (mips_gdbarch_init): Update.
1208 (mips_o32_extract_return_value): Rewrite.
1209 (mips_o32_store_return_value): Rewrite.
1210 (mips_o32_xfer_return_value): New function.
1211 (mips_xfer_register): Tweak debug print message. Allow for
1212 buf_offset when dumping the value transfered.
1213
1214 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1215
1216 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1217 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1218 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1219 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1220 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1221
1222 2002-08-14 Michael Snyder <msnyder@redhat.com>
1223
1224 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1225
1226 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1227
1228 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1229 register.
1230 (P): New macro to define a register as a pseudo register.
1231 (R, R4, R8, R16, FR32, R64, R0): Updated.
1232 (struct variant): Add new fields for number of pseudo registers
1233 and number of total registers.
1234 (tot_num_registers): New macro replacing....
1235 (num_registers): ...deleted macro.
1236 (num_registers): New function.
1237 (num_pseudo_registers): New function.
1238 (variants): Update all variants to intialize new fields correctly.
1239 Postpone initialization of number of pseudo regs and real regs.
1240 (init_variants): New function.
1241 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1242 registers offsets.
1243
1244 2002-08-19 David Carlton <carlton@math.stanford.edu>
1245
1246 * valops.c (search_struct_field): Change error message to treat
1247 return value of 0 from value_static_field as meaning that field is
1248 optimized out.
1249 (value_struct_elt_for_reference): Ditto.
1250 * values.c (value_static_field): Treat an unresolved location the
1251 same as a nonexistent symbol. Fix PR gdb/635.
1252 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1253 enclosed. Fix PR gdb/574.
1254 * MAINTAINERS: Add self to Write After Approval list.
1255
1256 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1257
1258 * mips-tdep.c (mips_xfer_register): New function.
1259 (mips_n32n64_extract_return_value): Rewrite.
1260 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1261 instead of deprecated_extract_return_value.
1262
1263 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1264
1265 * rs6000-tdep.c (TDEP): Delete macro.
1266 (branch_dest): Replace use of TDEP macro with its body.
1267 (rs6000_pop_frame): Ditto.
1268 (rs6000_push_arguments): Ditto.
1269 (rs6000_skip_trampoline_code): Ditto.
1270 (rs6000_frame_saved_pc): Ditto.
1271 (rs6000_frame_chain): Ditto.
1272 (rs6000_register_name): Ditto.
1273 (rs6000_register_byte): Ditto.
1274 (rs6000_register_raw_size): Ditto.
1275 (rs6000_register_virtual_type): Ditto.
1276 (rs6000_register_convertible): Ditto.
1277 (rs6000_convert_from_func_ptr_addr): Ditto.
1278
1279 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1282 conditionally.
1283 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1284 MIPS_LINUX_JB_ELEMENT_SIZE.
1285 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1286 for MAX_REGISTER_RAW_SIZE arrays.
1287 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1288 MIPS_LINUX_JB_ELEMENT_SIZE.
1289
1290 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1291
1292 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1293
1294 2002-08-19 Aidan Skinner <aidan@velvet.net>
1295
1296 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1297 ada-valprint.c ada-tasks.c.
1298 (YYFILES): Add ada-exp.y.
1299 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1300 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1301 (ada-exp.tab.o): New target.
1302
1303 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1304
1305 * regcache.c (regcache_xfer_part): New function.
1306 (regcache_raw_read_part): New function.
1307 (regcache_raw_write_part): New function.
1308 (regcache_cooked_read_part): New function.
1309 (regcache_cooked_write_part): New function.
1310 * regcache.h (regcache_raw_read_part): Declare.
1311 (regcache_raw_write_part): Declare.
1312 (regcache_cooked_read_part): Declare.
1313 (regcache_cooked_write_part): Declare.
1314
1315 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1316
1317 * remote.c (remote_open_1): Add async_p.
1318 (remote_async_open_1): Delete.
1319 (open_remote_target): Delete.
1320 (remote_open, extended_remote_open): Update calls to remote_open_1.
1321 (remote_async_open, extended_remote_async_open): Call
1322 remote_open_1 instead of remote_async_open_1.
1323
1324 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1325
1326 * blockframe.c: Fix a few coding standard violations.
1327
1328 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1329
1330 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1331 here from ...
1332 * config/i386/tm-i386sco5.h: ... here. File removed.
1333 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1334
1335 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1336 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1337 (TM_FILE): Set to tm-i386.h.
1338 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1339 * config/i386/tm-i386v.h: Remove file.
1340 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1341 instead of "i386/tm-i386v.h".
1342 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1343 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1344 "i386/tm-i386v.h".
1345 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1346 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1347 "i386/tm-i386.h".
1348
1349 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1350
1351 * config/i386/nm-i386v.h: Add protection against
1352 multiple-inclusion.
1353 (i386_register_u_addr): Remove prototype.
1354 (register_u_addr): New prototype.
1355 (REGISTER_U_ADDR): Redefine accordingly.
1356 * i386v-nat.c: Improve several comments.
1357 (i386_register_u_addr): Change signature and rename to
1358 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1359 ubase variable.
1360
1361 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1362
1363 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1364 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1365 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1366 deprecated_extract_return_value.
1367 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1368 rename mips_o32o64_push_arguments.
1369 (mips_gdbarch_init): Update.
1370 (mips_extract_return_value): Delete.
1371 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1372 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1373 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1374 (mips_n32n64_extract_return_value): Clone
1375 mips_extract_return_value.
1376 (mips_store_return_value): Delete.
1377 (mips_o32_store_return_value): Clone mips_store_return_value.
1378 (mips_o64_store_return_value): Clone mips_store_return_value.
1379 (mips_eabi_store_return_value): Clone mips_store_return_value.
1380 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1381
1382 2002-08-18 Aidan Skinner <aidan@velvet.net>
1383
1384 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1385 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1386
1387 2002-08-18 Aidan Skinner <aidan@velvet.net>
1388
1389 * ada-lang.c: Run through gdb_indent.sh.
1390 * ada-lang.h: Run through gdb_indent.sh.
1391 * ada-tasks.c: Run through gdb_indent.sh.
1392 * ada-typeprint.c: Run through gdb_indent.sh.
1393 * ada-valprint.c: Run through gdb_indent.sh.
1394
1395 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1396
1397 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1398 ABI.
1399
1400 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1401
1402 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1403
1404 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1405 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1406
1407 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1408 write_register_gen instead of write_register_bytes.
1409
1410 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1411 i[3456]-*-osf1mk* configurations have been made obsolete.
1412 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1413 i[3456]86-*-osf1mk* hosts obsolete.
1414 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1415 targets obsolete.
1416 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1417 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1418 config/i386/i386m3.mt, config/i386/nm-m3.h,
1419 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1420 config/i386/i386mk.mh, config/i386/i386mk.mt,
1421 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1422 obsolete.
1423 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1424 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1425 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1426
1427 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1428
1429 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1430 (hppa_value_returned_from_stack): Declare.
1431 (hppa_extract_return_value): Declare.
1432 * config/pa/hppa.mt: New file.
1433 * configure.tgt: Recognize hppa*-*-*.
1434 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1435
1436 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1437
1438 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1439 comment.
1440
1441 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1442
1443 * top.c (gdb_rl_operate_and_get_next): Make sure
1444 operate-and-get-next functions correctly even when the history
1445 list is completely filled.
1446
1447 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1448
1449 * MAINTAINERS (Target Instruction Set Architectures): Rename
1450 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1451 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1452 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1453 already listed under Host/Native.
1454
1455 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1456 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1457 mips*-*-*.
1458
1459 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1460
1461 * config/ia64/ia64.mt: New file.
1462 * config/alpha/alpha.mt: New file.
1463 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1464 ia64-linux-gnu. Mention that ia64-elf is broken.
1465 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1466
1467 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1468
1469 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1470 generic_func_frame_valid instead of func_frame_valid.
1471
1472 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1473
1474 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1475 procfs appears to be broken when debugging on multi-processor
1476 machines. So enable software single stepping in order to avoid
1477 using the procfs interface to do next/step operations, using
1478 internal breakpoints instead.
1479
1480 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1481 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1482 make this pc address equal to the value it would have if the
1483 system stepping capability was used. Also set a new flag used
1484 to ensure that we don't readjust the PC one more time later.
1485
1486 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1487 address by DECR_PC_AFTER_BREAK when software single step is
1488 in use for this architecture, as this has already been taken
1489 care of in handle_inferior_event().
1490
1491 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1492
1493 * infrun.c (handle_inferior_event): Minor reformatting, to make
1494 a rather long condition expression easier to read.
1495
1496 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1497
1498 * Makefile.in (gdbtk.o): Move to end of file.
1499 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1500 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1501 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1502 (gdbtk-wrapper.o, gdbres.o): Ditto.
1503
1504 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1505
1506 * Makefile.in (copying.o): Separate out compile rule.
1507 (hpux-thread.o, procfs.o, signals.o): Ditto.
1508 (v850ice.o, z8k-tdep.o): Ditto.
1509 (tui-file.o): Move to TUI section.
1510 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1511 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1512
1513 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1514
1515 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1516 skip_trampoline_code, for better namespace-proofing.
1517
1518 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1519
1520 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1521
1522 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1523
1524 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1525
1526 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1527 signal, check whether we hit a breakpoint before checking for a
1528 single step breakpoint. Otherwise, GDB fails to notice that a
1529 breakpoint has been hit when stepping onto a breakpoint.
1530
1531 2002-08-16 Keith Seitz <keiths@redhat.com>
1532
1533 * gdb-events.sh (clear_gdb_event_hooks): New function.
1534 * gdb-events.c: Regenerate.
1535 * gdb-events.h: Regenerate.
1536
1537 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1538
1539 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1540 not_a_sw_breakpoint.
1541 * breakpoint.h (bpstat_stop_status): Add parameter names.
1542
1543 2002-08-16 Grace Sainsbury <graces@redhat.com>
1544
1545 * remote.c (remote_insert_hw_breakpoint)
1546 (remote_remove_hw_breakpoint): Fix calculation of length field
1547 for Z-packet.
1548
1549 2002-08-15 Michael Snyder <msnyder@redhat.com>
1550
1551 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1552 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1553 (supply_fpregset): Ditto.
1554
1555 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1556 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1557 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1558 (TARGET_READ_SP): Delete.
1559 (DO_REGISTERS_INFO): Delete.
1560 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1561 Delete.
1562 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1563 from macros to functions.
1564
1565 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1566 (mips_register_convertible, mips_register_convert_to_virtual,
1567 mips_register_convert_to_raw): Make static.
1568 (mips_read_sp): New function.
1569 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1570 (mips_do_registers_info): Make static.
1571 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1572 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1573 (mips_register_convert_from_type, mips_register_convert_to_type):
1574 New functions.
1575 (mips_gdbarch_init): Set up function_start_offset,
1576 register_virtual_size, pc_in_sigtramp.
1577
1578 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1579
1580 * infcmd.c (vector_info): New function.
1581 (_initialize_infcmd): Add command "info vector".
1582 (print_vector_info): New function.
1583
1584 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1585 * gdbarch.h, gdbarch.c: Regenerate.
1586
1587 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1588
1589 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1590 ``print_all''. Only print vector registers when ``print_all''.
1591
1592 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1593
1594 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1595 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1596
1597 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1598 Add `args' parameter.
1599 * gdbarch.h, gdbarch.c: Regenerate.
1600
1601 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1602
1603 * infcmd.c (float_info): Call print_float_info.
1604 (print_float_info): New function. By default, print the
1605 floating-point registers.
1606
1607 * arch-utils.h (default_print_float_info): Delete declaration.
1608 * arch-utils.c (default_print_float_info): Delete function.
1609
1610 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1611
1612 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1613 out define.
1614
1615 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1616 FRAME.
1617
1618 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1619 * configure.host: Make i[3456]86-*-aix host obsolete.
1620 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1621 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1622 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1623 config/i386/xm-i386aix.h: Make files obsolete.
1624 * i386aix-nat.c: Make file obsolete.
1625 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1626 (i386aix-nat.o): Make target obsolete.
1627
1628 * config/i386/nm-gnu.h: Removed.
1629 * config/i386/nm-i386gnu.h: New file.
1630 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1631 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1632 Moved here from ...
1633 * config/i386/tm-i386gnu.h: ... here. Removed.
1634 * config/i386/xm-i386gnu.h: Removed.
1635 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1636 (NAT_FILE): Set to nm-i386gnu.h.
1637 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1638 * i386-tdep.c: New file.
1639 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1640 (i386gnu-tdep.o): Specify dependencies.
1641
1642 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1643
1644 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1645 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1646 Adjust a few comments to reflect reality a bit closer.
1647 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1648 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1649 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1650 target_insert_watchpoint, target_remove_watchpoint):
1651 Move defines to ...
1652 * config/i386/nm-i386sco5.h: ... here.
1653 (kernel_u_size): Add prototype. Improve a few comments and add
1654 protection against multiple inclusion.
1655
1656 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1657 out define.
1658
1659 * uw-thread.c (SP_ARG0): Define if not already defined.
1660 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1661
1662 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1663
1664 * config/i386/tm-i386.h: Don't include "regcache.h".
1665
1666 * i387-tdep.h (i387_print_float_info): New prototype.
1667 * i387-tdep.c (print_i387_value, print_i387_ext,
1668 print_i387_status_word, print_i387_control_word): Add `struct
1669 ui_file *' argument and use it for output.
1670 (i387_print_float_info): Renamed from i387_float_info. Add
1671 `struct gdbarch *' and `struct ui_file *' arguments and use the
1672 latter for output.
1673 * i386-tdep.c: Include "i387-tdep.h".
1674 (i386_gdbarch_init): Set print_float_info.
1675 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1676 (FLOAT_INFO): Remove define.
1677
1678 2002-08-13 Michael Snyder <msnyder@redhat.com>
1679
1680 * mips-tdep.c (mips_push_arguments): Rename to
1681 mips_eabi_push_arguments, and tune for EABI.
1682 (MIPS_REGS_HAVE_HOME_P): Delete.
1683 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1684 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1685 Delete references to mips_regs_have_home_p.
1686
1687 2002-08-14 Keith Seitz <keiths@redhat.com>
1688
1689 * Makefile.in (install-gdbtk): Create insight plugin directory.
1690 Install plugins.tcl file.
1691
1692 2002-08-14 Keith Seitz <keiths@redhat.com>
1693
1694 * configure.in: Move SUBDIRS to near top of the file so that
1695 --enable options may add things to it.
1696 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1697 * configure: Regenerate.
1698
1699 2002-08-13 Michael Snyder <msnyder@redhat.com>
1700
1701 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1702 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1703 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1704
1705 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1706
1707 * vax-tdep.c (vax_get_saved_register): Delete function.
1708 (vax_gdbarch_init): Update.
1709 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1710 (ns32k_gdbarch_init): Update.
1711 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1712 (alpha_gdbarch_init): Update.
1713
1714 2002-08-13 Andrew Cagney <cagney@redhat.com>
1715
1716 * regcache.c (init_regcache_descr): Overallocate the
1717 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1718 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1719 nr_raw_registers.
1720 (set_register_cached): Add range checking assertions. Use
1721 current_regcache.
1722
1723 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1724
1725 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1726 numbers for MMX registers.
1727
1728 2002-08-13 Andrew Cagney <cagney@redhat.com>
1729
1730 * i386-tdep.c (i386_gdbarch_init): Use
1731 generic_unwind_get_saved_register.
1732
1733 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1734
1735 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1736 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1737 target vector.
1738 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1739 Delete. Add comment regarding this now-deleted target method.
1740
1741 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1742
1743 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1744 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1745 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1746 real PC and the page number (if it's within the memory bank window).
1747 (m68hc11_pseudo_register_write): Likewise when saving.
1748 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1749 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1750 (m68hc11_register_raw_size): And use 32-bit for it.
1751 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1752 16K memory bank is used by the prog; also use the virtual pc.
1753
1754 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1755
1756 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1757 (m68hc11_gdbarch_init): Install it in gdbarch.
1758 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1759 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1760 (MSYMBOL_SIZE): New for documentation.
1761 (insn_return_kind): Enum to specify how a function returns.
1762 (frame_extra_info): Cleanup and record the return mode.
1763 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1764 register in address computation.
1765 (m68hc11_get_return_insn): New to obtain the return instruction used
1766 by the function.
1767 (m68hc11_frame_init_saved_regs): Take into account the return
1768 instruction used by the function for far and interrupt functions.
1769 (m68hc11_init_extra_frame_info): Take into account page register.
1770 (m68hc11_frame_args_address): Adjust according to the return mode.
1771 (show_regs): Print page register only when it's used.
1772
1773 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1774
1775 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1776 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1777 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1778 registers.
1779 (m68hc11_register_raw_size): Likewise.
1780
1781 2002-08-13 Andrew Cagney <cagney@redhat.com>
1782
1783 * i386-tdep.c (i386_register_name): Handle mmx registers.
1784 (mmx_regnum_p): New function.
1785 (i386_mmx_names): New array.
1786 (mmx_num_regs): New variable.
1787 (i386_pseudo_register_read): New function.
1788 (i386_pseudo_register_write): New function.
1789 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1790
1791 * regcache.c (regcache_raw_read_unsigned): New function.
1792 (regcache_raw_read_signed): New function.
1793 * regcache.h (regcache_raw_read_unsigned): Declare.
1794 (regcache_raw_read_signed): Declare.
1795
1796 2002-08-13 Andrew Cagney <cagney@redhat.com>
1797
1798 * regcache.c (regcache_raw_read_as_address): Delete function.
1799 (regcache_cooked_read_signed): New function.
1800 (regcache_cooked_read_unsigned): New function.
1801 * regcache.h (regcache_cooked_read_signed): Declare.
1802 (regcache_cooked_read_unsigned): Declare.
1803 (regcache_raw_read_as_address): Delete declaration.
1804
1805 * blockframe.c (generic_read_register_dummy): Use
1806 regcache_cooked_read_unsigned.
1807 * i386-tdep.c (i386_extract_struct_value_address): Use
1808 regcache_cooked_read_unsigned.
1809
1810 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1811
1812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1813 double sizes according to ELF ABI flags.
1814 (gdbarch_tdep): Record elf_flags.
1815
1816 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1817
1818 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1819 (m6812_prolog): They can appear in 68HC12 function prologue.
1820 (m68hc11_frame_chain): Cleanup.
1821
1822 2002-08-12 Andrew Cagney <cagney@redhat.com>
1823
1824 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1825 declarations.
1826 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1827 (i386_linux_register_raw_size): Delete function.
1828 (i386_linux_init_abi): Update.
1829 * i386-tdep.c (i386_register_raw_size): Delete function.
1830 (i386_register_byte): Delete function.
1831 (i386_gdbarch_init): Update.
1832 (i386_register_size): Delete array.
1833 (i386_register_offset): Delete array.
1834
1835 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1836 (REGISTER_RAW_SIZE): Delete macro.
1837 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1838 (REGISTER_BYTE): Delete macro.
1839
1840 2002-08-11 Aidan Skinner <aidan@velvet.net>
1841
1842 * ada-lang.c (ada_lookup_partial_symbol)
1843 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1844 prototype names so that grep ^func works properly.
1845
1846 * ada-lang.c (ada_array_element_type)
1847 (ada_lookup_partial_symbol): Fix typos in parameter list.
1848
1849 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1850 Fix prototype names so that grep ^func works properly.
1851
1852 2002-08-10 Andrew Cagney <cagney@redhat.com>
1853 Elena Zannoni <ezannoni@redhat.com>
1854 Martin M. Hunt <hunt@redhat.com>
1855
1856 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1857 (build_builtin_type_vec128i): Set the vector bit.
1858 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1859 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1860 (build_builtin_type_vec64): New function.
1861 (build_builtin_type_vec64i): New function.
1862 (build_gdbtypes): Initialize builtin_type_vec64 and
1863 builtin_type_vec64i.
1864
1865 2002-08-09 Andrew Cagney <cagney@redhat.com>
1866
1867 * regcache.c (regcache_dump): Compare the register offset
1868 with REGISTER_BYTE.
1869 * arch-utils.c (generic_register_byte): New function.
1870 * arch-utils.h (generic_register_byte): Declare.
1871 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1872 * gdbarch.h, gdbarch.c: Regenerate.
1873
1874 2002-08-09 Andrew Cagney <cagney@redhat.com>
1875
1876 * regcache.c: Include "gdbcmd.h"
1877 (_initialize_regcache): Add commands "maintenance print
1878 registers", "maintenance print raw-registers" and "maintenance
1879 print cooked-registers".
1880 (enum regcache_dump_what): Define.
1881 (dump_endian_bytes): New function.
1882 (regcache_dump): New function.
1883 (regcache_print): New function.
1884 (maintenance_print_registers): New function.
1885 (maintenance_print_raw_registers): New function.
1886 (maintenance_print_cooked_registers): New function.
1887 * Makefile.in (regcache.o): Update dependencies.
1888
1889 2002-08-09 Michael Snyder <msnyder@redhat.com>
1890
1891 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1892 (mips_push_arguments): Correct some comments. Use paddr_nz
1893 for printing addresses in debug output. Replace static
1894 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1895 (mips_n32n64_push_arguments): New function, cloned from
1896 mips_push_arguments and tuned for the n32/n64 ABI.
1897 (mips_push_register): Buffer needs dynamic allocation.
1898 (mips_print_register): Ditto.
1899 (do_gp_register_row): Ditto.
1900 (mips_store_return_value): Ditto.
1901 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1902
1903 2002-08-09 Don Howard <dhoward@redhat.com>
1904
1905 * memattr.c (mem_info_command): Print special case of upper bound
1906 as max CORE_ADDR + 1.
1907
1908 2002-08-08 Michael Snyder <msnyder@redhat.com>
1909
1910 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1911 returns structs by ref if they're too big to fit in two registers.
1912
1913 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1914
1915 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1916 saved regs value.
1917 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1918 mips_find_saved_regs().
1919 (mips_pop_frame): Likewise.
1920
1921 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1922
1923 * blockframe.c (frame_saved_regs_register_unwind): Revise
1924 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1925 frames are in use.
1926
1927 2002-08-09 Grace Sainsbury <graces@redhat.com>
1928
1929 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1930 T-packets; the 'a' is not taken as a register number.
1931 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1932 (remote_stopped_data_address): New functions; add to target
1933 vector.
1934 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1935 prototypes to match other implementations of this
1936 function. replace integer argument with pointer -- the length
1937 field in the Z-packet is the length of what is pointed to or 1 if
1938 pointer is null. Add to target vector.
1939 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1940 target vector.
1941
1942 From Mark Salter:
1943 * remote.c (remote_wait): Add support to extract optional
1944 watchpoint information from T-packet. Ignore unrecognized
1945 optional info in T-packet.
1946 (remote_async_wait): Ditto.
1947
1948 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1949
1950 * cli/cli-dump.c: Change fopen modes to use binary open modes
1951 as defined in include/fopen-bin.h throughout.
1952
1953 2002-08-08 Michael Snyder <msnyder@redhat.com>
1954
1955 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1956
1957 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1958
1959 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1960 assertion failure by returning early after a warning.
1961
1962 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1963
1964 * mips-tdep.c (mips_find_saved_regs): Make static.
1965 (mips_frame_init_saved_regs): New function.
1966 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1967 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1968 (mips_find_saved_regs): Delete declaration.
1969
1970 2002-08-08 Grace Sainsbury <graces@redhat.com>
1971
1972 * remote.c (remote_wait, remote_async_wait): Change
1973 thread_num from int to ULONGEST.
1974 (unpack_varlen_hex): Change result parameter from
1975 int * to ULONGEST *.
1976
1977 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1978
1979 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1980 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1981 powerpc*-*-*.
1982 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1983
1984 2002-08-08 Andrew Cagney <cagney@redhat.com>
1985
1986 * gcore.c (override_derive_stack_segment): Delete variable.
1987 (preempt_derive_stack_segment): Delete function.
1988 (derive_stack_segment): Delete function.
1989 (default_derive_stack_segment): Renamed to derive_stack_segment.
1990 (override_derive_heap_segment): Delete variable.
1991 (preempt_derive_heap_segment): Delete function.
1992 (derive_heap_segment): Delete function.
1993 (default_derive_heap_segment): Rename to derive_heap_segment.
1994
1995 2002-08-06 Michael Snyder <msnyder@redhat.com>
1996
1997 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1998 * mips-tdep.c (mips_EABI_use_struct_convention,
1999 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2000 New functions. (mips_use_struct_convention): Delete.
2001 (mips_gdbarch_init): set use_gdbarch_convention.
2002
2003 2002-08-06 Michael Snyder <msnyder@redhat.com>
2004
2005 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2006 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2007 mips_o32_reg_struct_has_addr): New functions.
2008 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2009
2010 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2011
2012 * regcache.c (pseudo_register): Delete function.
2013 (fetch_register): Delete function.
2014 (store_register): Delete function.
2015 (regcache_raw_read, legacy_read_register_gen): Use
2016 target_fetch_registers instead of fetch_register.
2017 (legacy_write_register_gen, regcache_raw_write): Use
2018 target_store_register instead of store_register.
2019 (write_register_bytes): Ditto.
2020
2021 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2022 (STORE_PSEUDO_REGISTER): Delete.
2023 * gdbarch.h, gdbarch.c: Regenerate.
2024
2025 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2026
2027 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2028 write dump file binary.
2029
2030 2002-08-05 Michael Snyder <msnyder@redhat.com>
2031
2032 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2033 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2034 (mips_gdbarch_init): Set N32 target to be mips64.
2035
2036 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2037
2038 * frame.c (find_saved_register): Break out of loop once saved
2039 register address is found. Don't mention sparc in loop comment
2040 anymore.
2041
2042 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2043
2044 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2045 mips_default_saved_regsize to 8.
2046
2047 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2048
2049 * gcore.c: Do not include <sys/procfs.h>.
2050 * Makefile.in (gcore.o): Update dependencies.
2051
2052 2002-08-06 Andrew Cagney <cagney@redhat.com>
2053
2054 * configure.tgt: Make arc-*-* obsolete.
2055 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2056 * MAINTAINERS: Make arc-elf obsolete.
2057 * arc-tdep.c: Make file obsolete.
2058 * config/arc/arc.mt: Ditto.
2059 * config/arc/tm-arc.h: Ditto.
2060
2061 2002-08-05 Theodore A. Roth <troth@verinet.com>
2062
2063 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2064
2065 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2066
2067 * mcore-tdep.c (mcore_gdbarch_init): Use
2068 generic_unwind_get_saved_register instead of
2069 generic_get_saved_register.
2070 * v850-tdep.c (v850_gdbarch_init): Ditto.
2071 * frv-tdep.c (frv_gdbarch_init): Ditto.
2072 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2073 * s390-tdep.c (s390_gdbarch_init): Ditto.
2074 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2075 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2076 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2077
2078 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2079
2080 * objfiles.h: Add missing #include "symfile.h"
2081
2082 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2083
2084 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2085
2086 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2087 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2088 of FIELD_BITSIZE.
2089
2090 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2091
2092 * NEWS: Cleanup and nitpick.
2093
2094 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2095
2096 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2097
2098 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2099
2100 * Makefile.in (gdbtk-bp.o): Update dependencies.
2101 (gdbtk-register.o): Ditto.
2102 (gdbtk-varobj.o): Ditto.
2103
2104 2002-08-03 Andrew Cagney <cagney@redhat.com>
2105
2106 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2107 m68hc11_fetch_pseudo_register.
2108 (m68hc11_pseudo_register_write): Replace
2109 m68hc11_store_pseudo_register.
2110 (m68hc11_gdbarch_init): Update.
2111
2112 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2113
2114 * gdbarch.sh: Include "gdb_string.h".
2115 * gdbarch.c: Regenerate.
2116
2117 * regcache.c: Include "gdb_string.h".
2118 * ax-general.c: Ditto.
2119 * varobj.c: Ditto.
2120 * std-regs.c: Ditto.
2121 * fbsd-proc.c: Ditto.
2122 * thread.c: Ditto.
2123
2124 * Makefile.in (regcache.o): Update dependencies.
2125 (thread.o, gdbarch.o): Ditto.
2126 (ax-general.o, gdbarch.o): Ditto.
2127 (varobj.o, std-regs.o): Ditto.
2128 (fbsd-proc.o): Specify dependencies.
2129
2130 2002-08-02 Andrew Cagney <cagney@redhat.com>
2131
2132 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2133 regnum.
2134 (regcache_cooked_write): Ditto.
2135
2136 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2137
2138 * regcache.c (regcache_cooked_read): New function.
2139 (regcache_cooked_write): New function.
2140 (read_register_gen): Rewrite using regcache_cooked_read.
2141 (write_register_gen): Rewrite using regcache_cooked_write.
2142
2143 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2144 Declare.
2145
2146 2002-08-02 Andrew Cagney <cagney@redhat.com>
2147
2148 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2149 Replace the architecture methods register_read and register_write.
2150 * gdbarch.h, gdbarch.c: Regenerate.
2151 * regcache.c (init_regcache_descr): Update.
2152 (read_register_gen): Update.
2153 (write_register_gen): Update.
2154 (supply_register): Update comment.
2155
2156 * sh-tdep.c (sh_gdbarch_init): Update.
2157 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2158 `regcache' and `gdbarch' parameters. Make `buffer' a void
2159 pointer. Update code.
2160 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2161 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2162 void pointer. Update code.
2163 (sh64_register_write): Delete.
2164 (sh4_register_read): Delete.
2165 (sh64_register_read): Delete.
2166 (sh4_register_write): Delete.
2167 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2168 void pointer, `to' parameter a void pointer.
2169 (sh_sh64_register_convert_to_raw): Ditto.
2170
2171 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2172
2173 * mips-tdep.c (mips_register_virtual_type): Use architecture
2174 invariant return values.
2175
2176 2002-08-01 Andrew Cagney <cagney@redhat.com>
2177
2178 * linux-proc.c: Include "gdb_string.h".
2179 * Makefile.in (linux-proc.o): Update dependency list.
2180
2181 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2182
2183 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2184 comment.
2185
2186 2002-08-01 Grace Sainsbury <graces@redhat.com>
2187
2188 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2189 to_insert_watchpoint, to_remove_watchpoint,
2190 to_stopped_by_watchpoint, to_stopped_data_address,
2191 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2192 target vecctor. Define their corresponding macros so they call
2193 them.
2194
2195 * target.c: Add default and debug versions of for
2196 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2197 to_insert_watchpoint, to_remove_watchpoint,
2198 to_stopped_by_watchpoint, to_stopped_data_address,
2199 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2200
2201 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2202
2203 * mips-tdep.c (mips_register_virtual_type): New function.
2204 (mips_gdbarch_init): Register mips_register_virtual_type()
2205 with gdbarch machinery.
2206 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2207 this file instead of tm-bigmips.h.
2208 (MIPS_REGSIZE): Delete this macro.
2209 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2210 multiarch version in mips-tdep.c will be found.
2211
2212 2002-08-01 Andrew Cagney <cagney@redhat.com>
2213
2214 * NEWS: Menion that CHILL has been made obsolete.
2215
2216 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2217 * stabsread.c (read_range_type): Ditto.
2218 * gdbtypes.h: Ditto.
2219 * language.c (binop_type_check): Ditto.
2220 (binop_result_type): Ditto.
2221 (integral_type): Ditto.
2222 (character_type): Ditto.
2223 (string_type): Ditto.
2224 (boolean_type): Ditto.
2225 (structured_type): Ditto.
2226 (lang_bool_type): Ditto.
2227 (binop_type_check): Ditto.
2228 * language.h (_LANG_chill): Ditto.
2229 * dwarfread.c (set_cu_language): Ditto.
2230 * dwarfread.c (CHILL_PRODUCER): Ditto.
2231 * dwarfread.c (handle_producer): Ditto.
2232 * expression.h (enum exp_opcode): Ditto.
2233 * eval.c: Ditto for comments.
2234 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2235 * expprint.c (print_subexp): Ditto.
2236 (print_subexp): Ditto.
2237 * valops.c (value_cast): Ditto.
2238 (search_struct_field): Ditto.
2239 * value.h (COERCE_VARYING_ARRAY): Ditto.
2240 * symfile.c (init_filename_language_table): Ditto.
2241 (add_psymbol_with_dem_name_to_list): Ditto.
2242 * valarith.c (value_binop): Ditto.
2243 (value_neg): Ditto.
2244 * valops.c (value_slice): Ditto.
2245 * symtab.h (union language_specific): Ditto.
2246 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2247 (SYMBOL_DEMANGLED_NAME): Ditto.
2248 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2249 * defs.h (enum language): Ditto.
2250 * symtab.c (got_symtab): Ditto.
2251 * utils.c (fprintf_symbol_filtered): Ditto.
2252
2253 * ch-typeprint.c: Make file obsolete.
2254 * ch-valprint.c: Make file obsolete.
2255 * ch-lang.h: Make file obsolete.
2256 * ch-exp.c: Make file obsolete.
2257 * ch-lang.c: Make file obsolete.
2258
2259 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2260 CHILL_LIB.
2261 (TARGET_FLAGS_TO_PASS): Ditto.
2262 (CHILLFLAGS): Obsolete.
2263 (CHILL): Obsolete.
2264 (CHILL_FOR_TARGET): Obsolete.
2265 (CHILL_LIB): Obsolete.
2266 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2267 ch-valprint.c.
2268 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2269 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2270 ch-lang.o.
2271 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2272 targets.
2273
2274 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2275
2276 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2277 This does not change anything at the moment, but will be helpful
2278 later when full Ada support is integrated.
2279
2280 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2281
2282 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2283 help message.
2284
2285 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2286
2287 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2288 and save it in a local variable. Use variable in later test.
2289
2290 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2291
2292 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2293 test. (Thanks to Daniel Jacobowitz.)
2294
2295 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2296
2297 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2298 (mips_abi_strings): Add "n64".
2299 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2300
2301 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2302
2303 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2304 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2305
2306 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2307
2308 * utils.c (host_pointer_to_address, address_to_host_pointer):
2309 Use gdb_assert() instead of explicit call to internal_error().
2310
2311 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2312
2313 * Makefile.in (rs6000-nat.o): Update dependencies.
2314
2315 From Nicholas Duffek:
2316 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2317 (aix-thread.o): New rule.
2318 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2319 * config/powerpc/aix432.mh: New file.
2320
2321 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2322
2323 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2324 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2325 (fetch_core_registers, ppc_linux_supply_gregset)
2326 (ppc_linux_supply_fpregset): New functions.
2327 (ppc_linux_regset_core_fns): New.
2328 (_initialize_ppc_linux_tdep): Call add_core_fns.
2329 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2330 and ppc_linux_supply_gregset.
2331 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2332 (supply_fpregset): Call ppc_linux_supply_fpregset.
2333 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2334 corelow.o.
2335 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2336
2337 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2338
2339 * symtab.c (lookup_symbol): Demangle before lowercasing.
2340
2341 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2342
2343 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2344 declaration.
2345 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2346 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2347 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2348 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2349 "gdb_string.h".
2350 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2351 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2352 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2353 (avr-tdep.o, mon960-rom.o): Ditto.
2354 (aout_stabs_gnu_h): Define.
2355 (symtab_h): Remove $(gdb_obstack_h).
2356
2357 2002-07-30 Jim Blandy <jimb@redhat.com>
2358
2359 Patch from David Carlton <carlton@math.stanford.edu>:
2360 * gdbinit.in: Move the `dir' commands that add GDB's own source
2361 directory to the search path to the end, so that the `gdb' source
2362 directory will be searched first.
2363
2364 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2365
2366 * gdb_obstack.h: New file.
2367 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2368 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2369 * objfiles.h: Include "gdb_obstack.h".
2370 * Makefile.in (gdb_obstack_h): Define.
2371 (symtab_h): Add $(gdb_obstack_h).
2372 (objfiles_h): Add $(gdb_obstack_h).
2373
2374 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2375 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2376 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2377 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2378 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2379 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2380 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2381 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2382
2383 * Makefile.in (bcache.o): Update dependencies.
2384 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2385 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2386 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2387 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2388 (stabsread.o, symfile.o, symmisc.o): Ditto.
2389 (symtab.o, typeprint.o, macroexp.o): Ditto.
2390 (macrotab.o, mdebugread.o): Ditto.
2391 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2392 (coff_ecoff_h, aout_aout64_h): Define.
2393 (aout_stabs_gnu_h, libaout_h): Define.
2394
2395 2002-07-29 Andrew Cagney <cagney@redhat.com>
2396
2397 * regcache.c (struct regcache_descr): Rename nr_registers to
2398 nr_cooked_registers. Revise comments describing the structure
2399 member fields.
2400 (init_regcache_descr): Update.
2401 (init_legacy_regcache_descr): Update.
2402 (read_register_gen, write_register_gen): When a cooked register in
2403 the raw register range, directly access the value from the raw
2404 register cache.
2405
2406 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2407
2408 * z8k-tdep.c: Do not include "obstack.h".
2409 * h8300-tdep.c, h8500-tdep.c: Ditto.
2410 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2411 * valprint.c, v850-tdep.c: Ditto.
2412 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2413 * mn10200-tdep.c: Ditto.
2414
2415 * Makefile.in (z8k-tdep.o): Update dependencies.
2416 (m68hc11-tdep.o, valprint.o): Ditto.
2417 (v850-tdep.o, d10v-tdep.o): Ditto.
2418 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2419 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2420 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2421 (sh_opc_h, gdb_sim_sh_h): Define.
2422 (elf_sh_h, elf_bfd_h): Define.
2423 (opcode_m68hc11_h): Define.
2424 (OPCODES_SRC, OPCODES_DIR): define.
2425 (OPCODES): Use $(OPCODES_DIR).
2426 (gdb_sim_d10v_h): Rename sim_d10v_h.
2427 (gdb_sim_arm_h): Rename sim_arm_h.
2428
2429 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2430
2431 * utils.c (host_pointer_to_address, address_to_host_pointer):
2432 Change internal_error() message to indicate function responsible
2433 for the error.
2434
2435 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2436
2437 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2438 calls to local_hex_string_custom().
2439
2440 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2441
2442 * irix5-nat.c: Move IRIX shared library support from here...
2443 * solib-irix.c: ...to here. Revised substantially to work with
2444 generic solib framework.
2445
2446 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2447 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2448 * mips-irix-tdep.c: New file.
2449
2450 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2451 (mips-irix-tdep.o, solib-irix.o): New rules.
2452 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2453 solib-irix.o.
2454 * config/mips/irix6.mt (TDEPFILES): Likewise.
2455 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2456
2457 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2458
2459 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2460 disabled (via ``#if 0'') includes.
2461
2462 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2463
2464 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2465 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2466 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2467 Add support for the fpscr register.
2468 * rs6000-nat.c (regmap, fetch_inferior_registers)
2469 (store_inferior_registers, fetch_core_registers): Likewise.
2470
2471 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2472
2473 * rs6000-nat.c (language.h): Include.
2474 (special_regs): Delete this array.
2475 (regmap): New function.
2476 (fetch_register, store_register): Use regmap() to map gdb
2477 register numbers to ptrace register numbers. Also, use
2478 outputs from regmap() to make decisions regarding type of
2479 ptrace() call to make. In particular, don't compare against
2480 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2481 (fetch_inferior_registers, store_inferior_registers): Where
2482 possible, obtain register numbers from tdep struct. Don't
2483 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2484 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2485 (LAST_UISA_SP_REGNUM): Delete.
2486
2487 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2488
2489 * rs6000-nat.c (ppc-tdep.h): Include.
2490 (fetch_registers, store_register, fetch_core_registers): Don't
2491 access registers[] directly. Instead, use supply_register() or
2492 regcache_collect() as appropriate.
2493 (find_toc_address): Format hex address with local_hex_string().
2494
2495 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2496
2497 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2498 bfd/elf32-frv.c.
2499
2500 2002-07-24 Tom Tromey <tromey@redhat.com>
2501
2502 * jv-exp.y: Marked all strings with _().
2503 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2504 internal_error.
2505 (MethodInvocation, CastExpression, parse_number, yyerror,
2506 java_type_from_name, push_expression_name, yylex): Typo fixes.
2507
2508 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2509
2510 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2511 (tee_file_flush, tee_file_write, tee_file_fputs)
2512 (tee_file_isatty): New.
2513 * ui-file.h (tee_file_new): Add prototype.
2514
2515 2002-07-24 Aidan Skinner <aidan@velvet.net>
2516
2517 * ada-lang.c: Change k&r style function definitions to prototyped
2518 form.
2519 * ada-typeprint.c: Change k&r style function definitions to prototyped
2520 form.
2521 * ada-valprint.c: Change k&r style function definitions to prototyped
2522 form.
2523
2524 2002-07-24 Andrew Cagney <cagney@redhat.com>
2525
2526 * README: Remove reference to remote-bug.
2527 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2528 remote-bug.c.
2529 (m88k-nat.o): Delete rule.
2530 (m88k-tdep.o): Delete rule.
2531 (remote-bug.o): Delete rule.
2532 * MAINTAINERS: Mark as obsolete.
2533 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2534 * m88k-tdep.c: Make file obsolete.
2535 * config/m88k/m88k.mh: Ditto.
2536 * config/m88k/delta88v4.mh: Ditto.
2537 * config/m88k/delta88v4.mt: Ditto.
2538 * config/m88k/delta88.mt: Ditto.
2539 * config/m88k/delta88.mh: Ditto.
2540 * remote-bug.c: Ditto.
2541 * config/m88k/tm-delta88.h: Ditto.
2542 * config/m88k/nm-delta88v4.h: Ditto.
2543 * config/m88k/xm-delta88.h: Ditto.
2544 * config/m88k/xm-dgux.h: Ditto.
2545 * config/m88k/tm-m88k.h: Ditto.
2546 * config/m88k/nm-m88k.h: Ditto.
2547 * config/m88k/tm-delta88v4.h: Ditto.
2548 * m88k-nat.c: Ditto.
2549 * cxux-nat.c: Ditto.
2550 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2551 and m88*-*-* obsolete.
2552 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2553 m88*-*-* obsolete.
2554
2555 2002-07-24 Andrew Cagney <cagney@redhat.com>
2556
2557 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2558 constant. Same for local pointer variables.
2559 (extract_signed_integer): Ditto.
2560 * defs.h (extract_unsigned_integer): Update.
2561 (extract_signed_integer): Update.
2562
2563 2002-07-24 Andrew Cagney <cagney@redhat.com>
2564
2565 * regcache.c (regcache_raw_write): Change buf parameter to a
2566 constant void pointer.
2567 (regcache_raw_read): Change buf parameter to a void pointer.
2568 (legacy_write_register_gen): Change myaddr parameter a constant
2569 void pointer.
2570 (supply_register): Change val parameter to a const void pointer.
2571 * regcache.h (regcache_raw_write): Update declaration.
2572 (regcache_raw_read): Update declaration.
2573 (supply_register): Update declaration.
2574
2575 2002-07-24 Tom Tromey <tromey@redhat.com>
2576
2577 * defs.h (gdb_readline_wrapper): Declare.
2578 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2579 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2580 * top.c (gdb_readline_wrapper): New function.
2581 (command_line_input): Use it.
2582
2583 2002-07-24 Andrew Cagney <cagney@redhat.com>
2584
2585 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2586 regcache_read and regcache_write.
2587 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2588 * regcache.c: Update.
2589 * sh-tdep.c (sh64_push_arguments): Update comment.
2590 (sh_pseudo_register_read): Update.
2591 (sh_pseudo_register_write): Update.
2592 (sh4_register_read): Update.
2593 (sh4_register_write): Update.
2594 (sh64_pseudo_register_read): Update.
2595 (sh64_pseudo_register_write): Update.
2596 (sh64_register_read): Update.
2597 (sh64_register_write): Update.
2598 * i386-tdep.c (i386_extract_return_value): Update.
2599 (i386_extract_struct_value_address): Update.
2600 (i386_extract_return_value): Update.
2601 * blockframe.c (generic_read_register_dummy): Update.
2602 (generic_call_dummy_register_unwind): Update
2603 * infrun.c (write_inferior_status_register): Update.
2604
2605 2002-07-23 Jim Blandy <jimb@redhat.com>
2606
2607 * parser-defs.h (expression_context_pc): Make this extern.
2608 (Thanks to Michael Snyder.)
2609
2610 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2611
2612 GDB 5.2.1 released from 5.2 branch.
2613 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2614 * README: Update to mention 5.2.1.
2615
2616 2002-07-23 Mark Salter <msalter@redhat.com>
2617
2618 * remote.c (remote_read_bytes): Fix check for error.
2619
2620 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2621
2622 * aix-thread.c (language.h): Include.
2623 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2624 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2625 Print newlines at end of debug messages.
2626 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2627 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2628
2629 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2630
2631 * aix-thread.c (ppc-tdep.h): Include.
2632 (special_register_p): New function.
2633 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2634 (store_regs_user_thread): Use register number information from
2635 gdbarch_tdep struct instead of hardcoded offsets relative to
2636 FIRST_UISA_SP_REGNUM.
2637 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2638 special_register_p() instead of using FPLAST_REGNUM and
2639 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2640 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2641 will be MQ's register number.
2642
2643 2002-07-22 Michael Snyder <msnyder@redhat.com>
2644
2645 * aix-thread.c (ops): Rename to aix_thread_ops.
2646 (base_ops): Rename to base_target.
2647 (ops_attach): Rename to aix_thread_attach.
2648 (ops_detach): Rename to aix_thread_detach.
2649 (ops_resume): Rename to aix_thread_detach.
2650 (ops_wait): Rename to aix_thread_wait.
2651 (ops_kill): Rename to aix_thread_kill.
2652 (init_ops): Rename to init_aix_thread_ops.
2653 (ops_fetch_register): Rename to aix_thread_fetch_register.
2654 (ops_store_register): Rename to aix_thread_store_register.
2655 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2656 (ops_thread_alive): Rename to aix_thread_thread_alive.
2657 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2658 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2659 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2660 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2661 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2662 (store_regs_lib): Rename to store_regs_user_thread.
2663 (store_regs_kern): Rename to store_regs_kernel_thread.
2664
2665 2002-07-22 Michael Snyder <msnyder@redhat.com>
2666
2667 * aix-thread.c (ops_prepare_to_store): Eliminate.
2668 (init_ops): Don't initialize ops.prepare_to_store.
2669 (store_regs_kern): Pre-fetch register buffers from child,
2670 because some registers may not be in the cache. Copy
2671 regs from register cache only if they are cached.
2672 (store_regs_lib): Copy regs from register cache only
2673 if they are cached.
2674 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2675 fill_gprs64): Ditto.
2676
2677 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2678
2679 * aix-thread.c (gdb_assert.h): Include.
2680 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2681 register sizes (from register cache) match size of buffer holding
2682 register data.
2683 (fill_sprs32): Change parameter types to match those in the ptrace()
2684 buffer.
2685 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2686 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2687
2688 2002-07-22 Michael Snyder <msnyder@redhat.com>
2689
2690 * aix-thread.c (supply_sprs64): Cosmetic change.
2691 (supply_sprs32): Cosmetic change.
2692 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2693 (fill_sprs64): Use regcache_collect instead of read_register.
2694 (store_regs_lib): Use regcache_collect instead of
2695 read_register. Use fill_sprs32 instead of fill_sprs64,
2696 if debugging a 32-bit architecture.
2697 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2698 out of the register cache, instead of passing a pointer into
2699 the register cache directly to ptrace. Use regcache_collect
2700 insteaad of read_register.
2701 (ops_prepare_to_store): Use target_read_registers instead
2702 of read_register_bytes.
2703
2704 2002-07-20 Aidan Skinner <aidan@velvet.net>
2705
2706 * MAINTAINERS: Add self under write after approval.
2707
2708 2002-07-20 Aidan Skinner <aidan@velvet.net>
2709
2710 * ada-tasks.c: Change k&r style function definitions to prototyped
2711 form.
2712
2713 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2714
2715 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2716 * x86-64-tdep.c: Include "objfiles.h".
2717 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2718 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2719
2720 2002-07-17 Michal Ludvig <michal@suse.cz>
2721
2722 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2723 (update_context): Initialise cfa variable.
2724
2725 2002-07-17 Michael Snyder <msnyder@redhat.com>
2726
2727 * aix-thread.c: Shorten some long lines.
2728 Bring comments into line with code spec.
2729
2730 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2731
2732 * infrun.c: Re-indent using gdb_indent.sh.
2733
2734 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2735
2736 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2737 Leave the indentation temporarily untouched, to minimize the diffs.
2738
2739 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2740
2741 * stabsread.c: Make os9k sections of the code obsolete,
2742 for real this time.
2743 * stabsread.h: Make os9k sections of the code obsolete.
2744
2745 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2746
2747 * linux-low.c (regsets_store_inferior_registers): Add free()
2748 at the end of a loop to prevent memory leak.
2749 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2750 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2751 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2752 line a comment.
2753 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2754
2755 2002-07-17 Jim Blandy <jimb@redhat.com>
2756
2757 * macrocmd.c (info_macro_command): Remove newline from error
2758 message.
2759
2760 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2761
2762 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2763 (sh_gdbarch_init): Use it for sh-dsp.
2764
2765 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2766
2767 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2768 64-bit DWARF2 format.
2769
2770 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2771
2772 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2773 <sys/proc.h> when not available.
2774
2775 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2776
2777 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2778 * stabsread.c: Make os9k sections of the code obsolete.
2779 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2780 * config/i386/i386os9k.mt: Make file obsolete.
2781 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2782 (COMMON_OBS): Remove os9kread.o
2783 (SFILES): Remove os9kread.c.
2784 (os9kread.o, remote-os9k.o): Make target obsolete.
2785 * remote-os9k.c: Make file obsolete.
2786 * os9kread.c: Make file obsolete.
2787 * Makefile.in
2788
2789 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2790
2791 * NEWS: Mention that the FR30 has been made obsolete.
2792 * fr30-tdep.c: Make file obsolete.
2793 * config/fr30/tm-fr30.h: Ditto.
2794 * config/fr30/fr30.mt: Ditto.
2795 * configure.tgt: Make fr30-*-elf obsolete.
2796 * MAINTAINERS: Make fr30-elf obsolete.
2797
2798 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2799
2800 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2801 found is not inside a section.
2802
2803 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2804
2805 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2806 strerror().
2807 (pdc_realloc): Use xrealloc() instead of realloc().
2808
2809 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2810
2811 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2812 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2813 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2814 macros.
2815
2816 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2817
2818 * aix-thread.c (ptrace_check): Eliminate goto.
2819 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2820 problem.
2821
2822 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2823
2824 * aix-thread.c (gdbcmd.h): Include.
2825 (DEBUG, DBG, DBG2, dbg): Eliminate.
2826 (debug_aix_thread): New static global.
2827 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2828 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2829 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2830 invocations to DBG and DBG2 macros to test against
2831 ``debug_aix_thread'' and call fprintf_unfiltered().
2832 (_initialize_aix_thread): Add new command "set debug aix-thread".
2833
2834 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2835
2836 From Gerhard Tonn <TON@de.ibm.com>:
2837 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2838 instead of supply_register.
2839
2840 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2841
2842 * dwarf2cfi.c: Include "gdb_assert.h".
2843 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2844 non-NULL.
2845 (update_context): Do not use __func__. Add missing ``break''.
2846 (update_context): Do not use __func__.
2847
2848 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2849
2850 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2851 and its setting. Set gdbarch instruction printing functions
2852 directly. For non-rs6000 case use new function
2853 gdb_print_insn_powerpc.
2854 (gdb_print_insn_powerpc): New function.
2855
2856 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2857
2858 * NEWS: Mention that the d30v has been marked obsolete.
2859 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2860 * configure.tgt: Mark d30v-*-* as obsolete.
2861 * d30v-tdep.c: Mark file as obsolete.
2862 * config/d30v/d30v.mt: Ditto.
2863 * config/d30v/tm-d30v.h: Ditto.
2864
2865 2002-07-13 Aidan Skinner <aidan@velvet.net>
2866
2867 * ada-tasks.c (add_task_entry): replace calls to
2868 malloc() with xmalloc
2869 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2870
2871 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2872 ada_finish_decode_line_1, all_sals_for_line
2873 ada_breakpoint_rewrite): replace calls to free() with xfree()
2874
2875 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2876
2877 From Nicholas Duffek (with minor changes by Martin Hunt,
2878 Louis Hamilton, and Kevin Buettner):
2879 * aix-thread.c: New file.
2880
2881 2002-07-12 Petr Sorfa <petrs@caldera.com>
2882
2883 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2884 complaint for invalid attribute class or form.
2885 (read_func_scope): DW_AT_frame_base
2886 better handling of DW_AT_block*.
2887 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2888 better handling of DW_AT_block*.
2889 (read_common_block): DW_AT_location
2890 better handling of DW_AT_block*.
2891 (read_partial_die): DW_AT_location better handling
2892 of DW_AT_block*.
2893 (new_symbol): DW_AT_external better handling of
2894 DW_AT_block*. Proper initialization of variable
2895 "addr".
2896 (attr_form_is_block): New function that returns true
2897 if the attribute's form is of DW_FORM_block*.
2898
2899 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2900
2901 * valops.c (find_method_list): Remove comment about
2902 removed STATIC_MEMFUNCP argument.
2903 (value_find_oload_method_list): Likewise.
2904
2905 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2906
2907 From Nicholas Duffek:
2908 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2909 target_new_objfile_hook.
2910
2911 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2912
2913 From Nicholas Duffek:
2914 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2915 csect.
2916
2917 2002-07-12 Andrew Cagney <cagney@redhat.com>
2918
2919 * MAINTAINERS: Mention --enable-sim-build-warnings.
2920 (m68hc11-elf): Disable sim build warnings.
2921 (m32r-elf): Mark as broken obsolete candidate.
2922 (x86_64-linux-gnu): Mark as buildable with -Werror.
2923 (arm-elf): Change -w to ``,'' which enables warnings but not
2924 -Werror.
2925
2926 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2927
2928 * bcache.h: Update copyright.
2929 (struct bstring, struct bcache): Move definition to "bcache.c".
2930 Replaced by opaque declaration.
2931 (bcache_xfree): Replace free_bcache.
2932 (bcache_xmalloc, bcache_memory_used): Declare.
2933
2934 * bcache.c: Update copyright.
2935 (struct bstring, struct bcache): Moved to here from "bcache.h".
2936 Update comments.
2937 (bcache_xmalloc, bcache_memory_used): New functions.
2938 (bcache_xfree): Replace function free_bcache.
2939
2940 * Makefile.in (objfiles.o): Add $(bcache_h).
2941 (objfiles_h): Remove $(bcache_h).
2942 (symfile.o): Add $(bcache_h).
2943
2944 * symmisc.c: Update copyright.
2945 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2946 (print_objfile_statistics): Use bcache_memory_used.
2947
2948 * symfile.c: Include "bcache.h".
2949 (reread_symbols): Use bcache_xfree.
2950 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2951 (add_psymbol_to_list): Pass psymbol_cache by value.
2952 (add_psymbol_with_dem_name_to_list): Ditto.
2953
2954 * objfiles.h: Update copyright.
2955 (struct bcache): Declare opaque. Do not include "bcache.h".
2956 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2957 bcache'' pointers.
2958 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2959
2960 * objfiles.c: Include "bcache.h". Update copyright.
2961 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2962 macro_cache.
2963 (free_objfile): Use bcache_xfree.
2964
2965 2002-07-11 Grace Sainsbury <graces@redhat.com>
2966
2967 * monitor.c (monitor_fetch_register): Make name a constant.
2968 (monitor_store_register): Same.
2969
2970 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2971
2972 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2973 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2974 (finish_block) For non-function blocks, hash the symbol table. For
2975 function blocks, mark the symbol table as unhashed.
2976 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2977 (msymbol_hash_iw): Likewise.
2978 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2979 value.
2980 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2981 (lookup_minimal_symbol): Likewise for both.
2982 * symtab.h (struct block): Add `hashtable' flag. Comment the
2983 hashtable.
2984 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2985 (ALL_BLOCK_SYMBOLS): Update.
2986 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2987 (struct symbol): Add `hash_next' pointer.
2988 * symtab.c (lookup_block_symbol): Search using the hash table when
2989 possible.
2990 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2991 (search_symbols, find_addr_symbol): Likewise.
2992
2993 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2994 (read_dst_symtab): Likewise.
2995 * jv-lang.c (get_java_class_symtab): Likewise.
2996 * mdebugread.c: Include "gdb_assert.h".
2997 (shrink_block): Assert that the block being modified is not hashed.
2998 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2999 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3000 symbols.
3001 (dump_symtab): Recognize hashed blocks.
3002 * printcmd.c (print_frame_args): Assert that function blocks do not
3003 have hashed symbol tables.
3004 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3005 (fill_in_ada_prototype, debug_print_block): Likewise.
3006 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3007
3008 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3009
3010 * stack.c (print_frame): Use result of frame_address_in_block()
3011 instead of fi->pc when evaluating symbols.
3012 (backtrace_command_1): Ditto.
3013
3014 2002-07-11 Andrew Cagney <cagney@redhat.com>
3015
3016 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3017 Make static.
3018
3019 * arm-tdep.c (arm_register_name): Make return type constant.
3020
3021 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3022
3023 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3024 prototype.
3025 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3026 * s390-tdep.c (s390_fp_regnum): Ditto.
3027 (s390_read_fp): Ditto.
3028 (s390_pop_frame): Ditto.
3029 (_initialize_s390_tdep): Ditto.
3030 * remote.c (get_remote_state): Ditto.
3031 * procfs.c (mappingflags): Ditto.
3032 * memattr.c (_initialize_mem): Ditto.
3033 * mcore-tdep.c (mcore_pop_frame): Ditto.
3034 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3035 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3036 * language.c (set_case_str): Ditto.
3037 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3038 * frv-tdep.c (new_variant): Ditto.
3039 (frv_stopped_data_address): Ditto.
3040 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3041 (context_alloc): Ditto.
3042 (frame_state_alloc): Ditto.
3043 (unwind_tmp_obstack_init): Ditto.
3044 (unwind_tmp_obstack_free): Ditto.
3045 (cfi_read_fp): Ditto.
3046 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3047 (cris_pop_frame): Ditto.
3048 * c-lang.c (scanning_macro_expansion): Ditto.
3049 (finished_macro_expansion): Ditto.
3050 (c_preprocess_and_parse): Ditto.
3051 * gdbarch.sh: Ditto.
3052 * gdbarch.h, gdbarch.c: Regenerate.
3053 * config/mn10200/tm-mn10200.h: Adjust indentation.
3054 * target.c: Adjust indentation.
3055 * symtab.h: Adjust indentation.
3056 * stabsread.h: Adjust indentation.
3057 * remote-es.c: Adjust indentation.
3058 * os9kread.c: Adjust indentation.
3059
3060 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3061
3062 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3063 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3064
3065 2002-07-10 Grace Sainsbury <graces@redhat.com>
3066
3067 * NEWS: Mention m68k, mcore multi-arching.
3068 * MAINTAINERS: Change status of m68k, mcore to reflect
3069 multi-arching.
3070
3071 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3072
3073 * valops.c (find_overload_match): Free oload_syms.
3074
3075 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3076
3077 Define HAVE_SYS_PROC_H if sys/proc.h exists
3078 * configure.in: Add check for sys/proc.h
3079 * config.in: Regenerate.
3080 * configure: Regenerate.
3081
3082 2002-07-09 Grace Sainsbury <graces@redhat.com>
3083
3084 * config/m68k/tm-m68k.h: Remove macros wrapped in
3085 #if !GDB_MULTI_ARCH.
3086
3087 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3088
3089 * config.in, configure: Regenerate.
3090
3091 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3092
3093 * dwarf2cfi.c: Include "gcore.h".
3094 (execute_stack_op): Fix implementation of the
3095 DW_OP_deref and DW_OP_deref_size operators by letting do their
3096 lookup in the target.
3097
3098 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3099
3100 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3101 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3102 tdep->sc_sp_offset.
3103
3104 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3105
3106 Fix PR gdb/595, gdb/602
3107 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3108 Don't call value_cast, just read the vtable pointer; update comments
3109 to match.
3110
3111 2002-07-05 Grace Sainsbury <graces@redhat.com>
3112
3113 * config/mcore/tm-mcore.h: Remove file.
3114 * config/mcore/mcore.mt: Remove definition of TM_FILE
3115 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3116
3117 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3118
3119 * i386bsd-tdep.c: Include "gdb_string.h".
3120
3121 2002-07-04 Grace Sainsbury <graces@redhat.com>
3122
3123 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3124 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3125 mcore-tdep.
3126 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3127 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3128 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3129 (RETVAL_REGNUM): Move macros from tm-mcore.h
3130 (mcore_reg_struct_has_addr): New function.
3131 (mcore_gdbarch_init): Added initializations for the macros removed
3132 from tm-mcore.h.
3133
3134 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3135
3136 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3137 traditonal string branding within the ELF header.
3138
3139 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3140
3141 * symtab.c (remove_params): New function.
3142 (make_symbol_overload_list): Use it instead of cplus_demangle.
3143 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3144
3145 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3146
3147 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3148
3149 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3150 New variables.
3151 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3152 and tdep->sigtramp_end.
3153 * i386obsd-nat.c: New file.
3154 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3155
3156 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3157 Don't call get_current_frame().
3158
3159 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3160
3161 * i386-nat.c (child_post_startup_inferior): New function
3162 calling i386_cleanup_dregs if
3163 I386_USE_GENERIC_WATCHPOINTS is defined.
3164 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3165 conditional to acknowledge that i386-nat.c has its
3166 own child_post_startup_inferior function.
3167
3168 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3169
3170 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3171 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3172 instead of MAX_REGISTER_RAW_SIZE.
3173 (i386_extract_return_value, i386_extract_struct_value_address):
3174 Convert to use regcache.
3175 (i386_gdbarch_init): Set max_register_raw_size and
3176 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3177 Set extract_return_value and extract_struct_value_address instead
3178 of their deprecated variants.
3179
3180 Convert i386 target to generic dummy frames.
3181 * i386-tdep.c: Include "symfile.h".
3182 (i386_frameless_signal_p): Consider a function to be frameless if
3183 the pc points at the first instruction of the function.
3184 (i386_frame_chain): Handle (generic) call dummies.
3185 (i386_frame_saved_pc): Likewise.
3186 (i386_frame_init_saved_regs): Remove code dealing with call
3187 dummies on the stack.
3188 (i386_push_dummy_frame): Removed.
3189 (i386_call_dummy_words): Removed.
3190 (i386_fix_call_dummy): Removed.
3191 (i386_push_return_address): New function.
3192 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3193 parameter, and don't call get_current_frame.
3194 (i386_pop_frame): New function.
3195 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3196 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3197 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3198 call_dummy_length to 0, set call_dummy_words to NULL, set
3199 sizeof_call_dummy_words to 0, set fix_call_dummy to
3200 generic_fix_call_dummy, set pc_in_call_dummy to
3201 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3202 generic_push_dummy_frame, set push_return_address to
3203 i386_push_return_address and set frame_chain_valid to
3204 generic_file_frame_chain_valid.
3205
3206 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3207
3208 * gdbarch.sh (struct regcache): Add opaque declaration.
3209 (EXTRACT_RETURN_VALUE): New architecture method.
3210 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3211 * gdbarch.h, gdbarch.c: Regenerate.
3212 * arch-utils.c (legacy_extract_return_value): New function.
3213 * arch-utils.h (legacy_extract_return_value): Declare.
3214 * values.c (value_being_returned): Re-enable code handling
3215 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3216 deprecated_grub_regcache_for_registers call to block handling
3217 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3218 (EXTRACT_RETURN_VALUE): Do not define.
3219
3220 2002-07-03 Grace Sainsbury <graces@redhat.com>
3221
3222 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3223 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3224 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3225 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3226 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3227 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3228 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3229 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3230 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3231 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3232 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3233 argument so the function fits the prototype in the architecture
3234 vector.
3235 (mcore_pop_frame): Remove argument so the function fits the
3236 prototype. Use get_current_frame instead of the argument.
3237 (mcore_push_arguments): Change type of struct_return so the
3238 function can be used in the architecture vector.
3239 (mcore_store_struct_return): Add.
3240 (mcore_frame_init_saved_regs): Add.
3241 (mcore_gdbarch_init): Add function calls to replace the macros
3242 removed from tm-mcore.h
3243
3244 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3245
3246 * infcmd.c (print_return_value): Remove compatibility code calling
3247 deprecated_grub_regcache_for_registers.
3248
3249 * values.c: Include "regcache.h".
3250 (value_being_returned): Update. Use
3251 deprecated_grub_regcache_for_registers to extract the register
3252 buffer address.
3253 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3254 ``struct regcache''.
3255 * Makefile.in (values.o): Add dependency on $(regcache_h).
3256
3257 * inferior.h (run_stack_dummy): Change type of second parameter to
3258 a ``struct regcache''.
3259 * valops.c (hand_function_call): Change type of retbuf to ``struct
3260 regcache''. Allocate using regcache_xmalloc, clean using
3261 make_cleanup_regcache_xfree.
3262 * infcmd.c (run_stack_dummy): Update. Use
3263 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3264
3265 * regcache.c (do_regcache_xfree): New function.
3266 (make_cleanup_regcache_xfree): New function.
3267 * regcache.h (make_cleanup_regcache_xfree): Declare.
3268
3269 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3270
3271 * event-top.c (command_line_handler): Don't read past
3272 beginning of buffer.
3273
3274 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3275
3276 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3277 struct frame_id.
3278 (varobj_create): Store frame_id for root.
3279 (varobj_gen_name): Use xasprintf.
3280 (varobj_update): Save and restore frame using get_frame_id() and
3281 frame_find_by_id().
3282 (create_child): Use xasprintf.
3283 (new_root_variable): Initialize frame_id.
3284 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3285 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3286 to prevent memory leak.
3287
3288 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3289
3290 * valops.c (hand_function_call): Move declaration of retbuf to
3291 start of function, allocate using malloc, add a cleanup but before
3292 the inf_status cleanup, cleanup the buffer. Rename local variable
3293 old_chain to inf_status_cleanup.
3294
3295 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3296
3297 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3298
3299 * cli/cli-decode.c (cmd_func_p): New function.
3300 (cmd_func): New function.
3301
3302 * command.h: Add cmd_func() and cmd_func_p().
3303
3304 2002-07-03 Grace Sainsbury <graces@redhat.com>
3305
3306 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3307 (REGISTER_SIZE): Remove.
3308 (MAX_REGISTER_RAW_SIZE): Remove.
3309 (REGISTER_VIRTUAL_TYPE): Remove.
3310 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3311 (REGISTER_NAME): Remove.
3312 (USE_GENERIC_DUMMY_FRAMES): Remove.
3313 (CALL_DUMMY): Remove.
3314 (CALL_DUMMY_START_OFFSET): Remove.
3315 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3316 (CALL_DUMMY_LOCATION): Remove.
3317 (FIX_CALL_DUMMY): Remove.
3318 (CALL_DUMMY_ADDRESS): Remove.
3319 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3320 (SAVE_DUMMY_FRAME_TOS): Remove.
3321 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3322 (mcore_register_virtual_type): New function.
3323 (mcore_register_byte): New function.
3324 (mcore_register_size): New function.
3325 (mcore_register_name): New function.
3326 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3327 macros removed from tm-mcore.h.
3328 (mcore_dump_tdep): Add.
3329 (_initialize_mcore_tdep): Add gdbarch_register call.
3330
3331 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3332
3333 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3334 frameless_look_for_prologue, such that we actually call this
3335 function.
3336
3337 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3338
3339 * frame.h (frame_address_in_block): New function.
3340
3341 * blockframe.c (frame_address_in_block): New function extracted
3342 from get_frame_block().
3343 (get_frame_block): Use frame_address_in_block().
3344 (block_innermost_frame): Use frame_address_in_block() to match
3345 the frame pc address against the block boundaries rather than
3346 the frame pc directly. This prevents a failure when a frame pc
3347 is actually a return-address pointing immediately after the end
3348 of the given block.
3349
3350 2002-07-02 Grace Sainsbury <graces@redhat.com>
3351
3352 * MAINTAINERS: Add self under write after approval.
3353
3354 2002-07-02 Grace Sainsbury <graces@redhat.com>
3355
3356 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3357 used in architecture vector. The default is
3358 m68k_local_breakpoint_from_pc.
3359 (m68k_local_breakpoint_from_pc): Add.
3360 (enum): Add register numbers from tm-m68k.h.
3361 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3362 vector.
3363 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3364 GDB_MULTI_ARCH_PARTIAL.
3365 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3366 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3367 m68k-tdep.c.
3368 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3369 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3370 to enum in m68k-tdep.c
3371
3372 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3373
3374 * solib-osf.c (open_map): Compute the list of shared libraries
3375 loaded by the inferior, rather than the list of libraries loaded
3376 by GDB itself. Otherwise, GDB ends up reading the symbols from
3377 the wrong shared libraries...
3378
3379 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3380
3381 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3382 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3383 macros.
3384 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3385 Remove functions.
3386 (FRAMELESS_SIGNAL): Remove function.
3387 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3388 i386_linux_saved_pc_after_call): Removed.
3389 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3390 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3391 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3392
3393 * i386-tdep.c (i386_frameless_signal_p): New function.
3394 (i386_frame_chain): Deal with frameless signals.
3395 (i386_sigtramp_saved_sp): New function.
3396 (i386_frame_saved_pc): Deal with frameless signals.
3397 (i386_saved_pc_after_call): Make sure the correct value is
3398 returned just after entry into a sigtramp.
3399 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3400 i386fbsd4_sc_sp_offset): New variables.
3401 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3402 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3403 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3404 similiar to what we already did for sc_pc_offset.
3405 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3406 tdep->sc_sp_offset.
3407
3408 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3409
3410 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3411
3412 * config/i386/tm-x86-64linux.h: New.
3413 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3414 definitions.
3415 * config/i386/nm-x86-64.h: Rename to ...
3416 * config/i386/nm-x86-64linux.h: ... this one.
3417 * config/i386/x86-64linux.mh: Reflect the above change.
3418
3419 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3420
3421 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3422 with sigcontext_addr. Add sc_sp_offset.
3423 (i386bsd_sigtramp_saved_pc): Remove prototype.
3424 (i386bsd_sicontext_addr): Add prototype.
3425 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3426 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3427 (i386_svr4_sigtramp_saved_pc): Removed.
3428 (i386_svr4_sigcontext_addr): New function.
3429 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3430 Initialize tdep->sigcontext_addr instead. Initialize
3431 tdep->sc_pc_offset and tdep->sc_sp_offset.
3432 (i386_gdbarch_init): Likewise.
3433 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3434 any more.
3435 (i386bsd_sigtramp_saved_pc): Remove function.
3436 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3437 Initialize tdep->sigcontext_addr instead. Initialize
3438 tdep->sc_pc_offset.
3439 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3440 of tdep->sigtramp_saved_pc.
3441 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3442 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3443 instead.
3444
3445 * i386-tdep.c (i386_frameless_function_invocation,
3446 i386_frame_num_args, i386_frame_init_saved_regs,
3447 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3448 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3449 i386_extract_return_value, i386_store_return_value,
3450 i386_extract_struct_value_address, i386_register_virtual_type,
3451 i386_register_convertible, i386_register_convert_to_virtual,
3452 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3453 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3454 static.
3455
3456 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3457
3458 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3459
3460 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3461 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3462 this macro. Include "value.h".
3463
3464 2002-06-30 Aidan Skinner <aidan@velvet.net>
3465
3466 * ada-exp.tab.c: remove as it's a generated file
3467 * ada-lex.c: remove as it's a generated file
3468
3469 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3470
3471 * config/i386/tm-i386.h (struct frame_info, struct
3472 frame_saved_regs, struct value, struct type): Remove forward
3473 declarations.
3474
3475 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3476 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3477 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3478 (FILL_FPXREGSET): Define.
3479
3480 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3481
3482 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3483 i[3456]86-*-netbsd* case.
3484 * config/i386/tm-obsd.h: Removed.
3485 * config/i386/obsd.mt: Removed.
3486 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3487 core-aout.o.
3488 (MH_CFLAGS): Add -DYYDEBUG=0.
3489
3490 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3491 i386nbsd_sc_pc_offset on OpenBSD too.
3492
3493 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3494 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3495 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3496 define.
3497 * i386bsd-tdep.c: Include "arch-utils.h".
3498 (i386bsd_aout_in_solib_call_trampoline): New function.
3499 (i386bsd_init_abi): Set in_solib_call_trampoline to
3500 i386bsd_aout_in_solib_call_trampoline.
3501 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3502 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3503
3504 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3505
3506 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3507 (struct obstack, struct bcache): Add opaque declarations.
3508 * Makefile.in (macrotab_h): Update
3509
3510 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3511
3512 * blockframe.c (generic_find_dummy_frame): Change return type to
3513 ``struct regcache''.
3514 (struct dummy_frame): Replace field ``registers'' with regcache, a
3515 struct regcache object.
3516 (generic_find_dummy_frame): Update.
3517 (generic_push_dummy_frame): Update. Use regcache_xfree,
3518 regcache_xmalloc and regcache_cpy.
3519 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3520 regcache_xfree.
3521 (deprecated_generic_find_dummy_frame): Update.
3522 (generic_read_register_dummy): Update. Use
3523 regcache_read_as_address.
3524 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3525 (generic_get_saved_register): Update. Use regcache_read.
3526
3527 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3528
3529 * Makefile.in (objfiles_h): Add $(bcache_h).
3530 * objfiles.h: Include "bcache.h".
3531
3532 * Makefile.in (symtab_h): Remove $(bcache_h).
3533 * symtab.h: Do not include "bcache.h".
3534
3535 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3536
3537 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3538 generic_func_frame_chain_valid.
3539
3540 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3541
3542 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3543 * config/i386/tm-fbsd.h: Likewise.
3544
3545 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3546
3547 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3548 generic_unwind_get_saved_register.
3549
3550 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3551
3552 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3553 * regcache.c (supply_register): Add missing argument to
3554 register_buffer call.
3555
3556 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3557
3558 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3559 Solaris /bin/grep does not not like it. From Peter Schauer.
3560
3561 2002-06-26 Tom Tromey <tromey@redhat.com>
3562
3563 * command.h (add_setshow_cmd): Declare.
3564 (add_setshow_cmd_full): Declare.
3565 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3566 returns void. Use add_setshow_cmd_full.
3567 (add_setshow_cmd_full): New function.
3568 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3569 (add_setshow_boolean_cmd): Likewise.
3570
3571 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3572
3573 * config/vax/tm-vax.h: Protect from multiple inclusion.
3574 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3575 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3576 * config/vax/tm-vaxbsd.h: ...here. New file.
3577 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3578
3579 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3580
3581 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3582 (BELIEVE_PCC_PROMOTION): Remove.
3583 (AP_REGNUM): Move to...
3584 * config/vax/nm-vax.h: ...here.
3585 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3586 (vax_breakpoint_from_pc): New function.
3587 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3588 and gdbarch_believe_pcc_promotion.
3589
3590 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3591
3592 * Makefile.in (vax_tdep_h): Define.
3593 (vax-tdep.o): Use $(vax_tdep_h).
3594 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3595 (vax_dump_tdep): New function.
3596 (_initialize_vax_tdep): Register vax_dump_tdep.
3597 * vax-tdep.h: Include osabi.h.
3598 (struct gdbarch_tdep): New.
3599
3600 2002-06-26 Andrew Cagney <cagney@redhat.com>
3601
3602 * frame.h (deprecated_generic_find_dummy_frame): Rename
3603 generic_find_dummy_frame.
3604 * blockframe.c (generic_find_dummy_frame): Make static.
3605 (deprecated_generic_find_dummy_frame): New function.
3606 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3607 generic_find_dummy_frame with deprecated_find_dummy_frame.
3608 (sh64_nofp_frame_init_saved_regs): Ditto.
3609 (sh_fp_frame_init_saved_regs): Ditto.
3610 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3611 (s390_frame_chain): Ditto.
3612 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3613
3614 2002-06-26 Grace Sainsbury <graces@redhat.com>
3615
3616 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3617 gdbarch vector are at the top.
3618 (NUM_REGS): Remove.
3619 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3620 (FRAME_ARGS_ADDRESS): Remove.
3621 (FRAME_LOCALS_ADDRESS): Remove.
3622 (FRAME_NUM_ARGS): Remove.
3623 (FRAME_ARGS_SKIP): Remove.
3624 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3625 (m68k_gdbarch_init): Add gdbarch initializations for macros
3626 undefined in tm-m68k.h
3627
3628 2002-06-26 Grace Sainsbury <graces@redhat.com>
3629
3630 * monitor.h: Add the function regname to monitor_ops
3631 structure. This way NUM_REGS does not have to be a constant.
3632 * monitor.c (monitor_fetch_register): Added support for regname
3633 function. The function is called if the array regnames is NULL.
3634 (monitor_store_register): Same.
3635 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3636 regnames array.
3637 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3638 cpu32bug_cmds.regname to point to new function.
3639 * abug-rom.c (abug_regname): Same as above.
3640 (init_abug_cmds): Same.
3641 * dbug-rom.c (dbug_regname): Same as above.
3642 (init_dbug_cmds): Same.
3643 * remote-est.c (est_regname): Same.
3644 (init_est_cmds): Same.
3645 * rom68k-rom.c (rom68k_regname): Same.
3646 (init_rom68k_cmds): Same.
3647
3648 2002-06-25 Tom Tromey <tromey@redhat.com>
3649
3650 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3651
3652 2002-06-25 Andrew Cagney <cagney@redhat.com>
3653
3654 * infrun.c (stop_registers): Change variable's type to ``struct
3655 regcache'''.
3656 (xmalloc_inferior_status): Delete function.
3657 (free_inferior_status): Delete function.
3658 (normal_stop): Use regcache_cpy.
3659 (struct inferior_status): Change type of fields ``stop_registers''
3660 and ``registers'' to ``struct regcache''.
3661 (write_inferior_status_register): Use regcache_write.
3662 (save_inferior_status): Instead of calling
3663 xmalloc_inferior_status, allocate the inf_status buffer directly.
3664 Use regcache_dup_no_passthrough and regcache_dup to save the
3665 buffers.
3666 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3667 Replace the stop_registers regcache instead of overriding it. Use
3668 regcache_xfree. Instead of calling free_inferior_status, xfree
3669 the buffer directly.
3670 (discard_inferior_status): Use regcache_xfree. Instead of calling
3671 free_inferior_status, xfree the buffer directly.
3672 (build_infrun): Use regcache_xmalloc.
3673 (_initialize_infrun): Delete redundant call to build_infrun.
3674
3675 * Makefile.in (infcmd.o): Add $(regcache_h).
3676
3677 * infcmd.c: Include "regcache.h".
3678 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3679 obtain the address of `stop_registers' register buffer.
3680 (print_return_value): Ditto.
3681
3682 * inferior.h (struct regcache): Add opaque declaration.
3683 (stop_registers): Change variable's declared type to ``struct
3684 regcache''.
3685
3686 2002-06-24 Tom Tromey <tromey@redhat.com>
3687
3688 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3689 * target.c (initialize_targets): Fixed typo in
3690 trust-readonly-sections `show' documentation.
3691
3692 * main.c: Marked all strings with _().
3693
3694 2002-06-24 Don Howard <dhoward@redhat.com>
3695
3696 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3697 that means max CORE_ADDR+1.
3698 (lookup_mem_region): Ditto.
3699 (mem_info_command): Ditto.
3700
3701 2002-06-24 Grace Sainsbury <graces@redhat.com>
3702
3703 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3704 (REGISTER_BYTES_OK): Remove.
3705 (REGISTER_BYTES): Remove.
3706 (STORE_STRUCT_RETURN): Remove.
3707 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3708 (STORE_RETURN_VALUE): Remove.
3709 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3710 (FRAME_CHAIN): Remove.
3711 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3712 (FRAME_SAVED_PC): Remove.
3713 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3714 (m68k_store_struct_return): Add.
3715 (m68k_deprecated_extract_return_value): Add.
3716 (m68k_deprecated_extract_struct_value_address): Add.
3717 (m68k_store_return_value): Add.
3718 (m68k_frame_chain): Add.
3719 (m68k_frameless_function_invocation): Add.
3720 (m68k_frame_saved_pc): Add.
3721 (m68k_gdbarch_init): added set_gdbarch calls for new
3722 functions and deleted macros.
3723
3724 2002-06-23 Tom Tromey <tromey@redhat.com>
3725
3726 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3727 (ALLDEPFILES): Likewise.
3728 (udiheaders): Removed.
3729 (udip2soc.o): Likewise.
3730 (udi2go32.o): Likewise.
3731 (udr.o): Likewise.
3732 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3733
3734 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3735
3736 * infrun.c (_initialize_infrun): Delete unnecessary call to
3737 build_infrun.
3738
3739 * regcache.h: Update comments describing the regcache_cpy family
3740 of functions.
3741 (regcache_save, regcache_restore): Delete declaration.
3742 (regcache_save_no_passthrough): Delete declaration.
3743 (regcache_restore_no_passthrough): Delete declaration.
3744 * regcache.c (regcache_save): Delete function.
3745 (regcache_save_no_passthrough): Delete function.
3746 (regcache_restore): Delete function.
3747 (regcache_restore_no_passthrough): Delete function.
3748
3749 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3750
3751 * config/m68k/tm-m68k.h: Fix typo.
3752 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3753 (m68k_frame_init_saved_regs): Declare.
3754
3755 2002-06-21 Jim Blandy <jimb@redhat.com>
3756
3757 Remove some vestiges of Harris 88k support.
3758 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3759 register numbering quirk.
3760 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3761 odd symbols occurring in Harris 88k ELF targets.
3762
3763 2002-06-21 Tom Tromey <tromey@redhat.com>
3764
3765 * gdb_locale.h: New file.
3766 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3767 (defs_h): Added gdb_locale.h.
3768 * configure, config.in: Rebuilt.
3769 * configure.in (PACKAGE): Define.
3770 * defs.h: Include gdb_locale.h.
3771 * main.c (captured_main): Call setlocale, bindtextdomain,
3772 textdomain.
3773
3774 2002-06-21 Dave Brolley <brolley@redhat.com>
3775
3776 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3777 * config/frv/frv.mt: New file.
3778 * config/frv/tm-frv.h: New file.
3779 * configure.tgt: Support frv-*-*.
3780 * Makefile.in (frv-tdep.o): New target.
3781 * frv-tdep.c: New file.
3782 * NEWS: Mention frv.
3783
3784 2002-06-21 Dave Brolley <brolley@redhat.com>
3785
3786 * MAINTAINERS: Add self to "Write After Approval" list.
3787
3788 2002-06-21 Grace Sainsbury <graces@redhat.com>
3789
3790 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3791 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3792 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3793 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3794 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3795
3796 * m68k-tdep.c: Include arch-utils.h
3797 (m68k_register_raw_size): Add.
3798 (m68k_register_virtual_size): Add.
3799 (m68k_register_virtual_type): Add.
3800 (m68k_register_name): Add.
3801 (m68k_stack_align): Add.
3802 (m68k_register_byte): Add.
3803 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3804 tm-m68k.h.
3805
3806 2002-06-21 Grace Sainsbury <graces@redhat.com>
3807
3808 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3809 m68k_find_saved_regs.
3810 (m68k_pop_frame): Removed saved_regs structure, and replaced
3811 references to it with frame->saved_regs.
3812 (m68k_gdbarch_init): Added function calls to initialize the
3813 gdbarch structure.
3814 (m68k_fix_call_dummy): Add.
3815 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3816 (CALL_DUMMY): Remove.
3817 (CALL_DUMMY_LENGTH): Remove.
3818 (CALL_DUMMY_START_OFFSET): Remove.
3819 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3820 (FIX_CALL_DUMMY): Remove.
3821 (PUSH_DUMMY_FRAME): Remove.
3822 (POP_FRAME): Remove.
3823
3824 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3825
3826 * parse.c (parse_fprintf): New function used to avoid calls to
3827 fprintf in bison parser generated debug code.
3828 * parser-defs.h: Declaration of new parse_fprintf function.
3829 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3830 Set YYDEBUG to 1 by default.
3831 Set YYFPRINTF as parse_fprintf.
3832
3833 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3834
3835 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3836 encoding anymore.
3837 (pointer_encoding, enum ptr_encoding): New.
3838 (execute_cfa_program): Take care about pointer encoding.
3839 (dwarf2_build_frame_info): Only call parse_frame_info for
3840 .debug_frame and .eh_frame.
3841 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3842 fixed augmentation handling, added relative addressing,
3843 ignore duplicate FDEs. Added comments.
3844 * dwarf2cfi.c: Reindented.
3845
3846 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3847
3848 * event-top.c (command_handler): Don't use space_at_cmd_start
3849 unless there is sbrk() on the host. Assign time and space data
3850 to union fields of the appropriate length.
3851
3852 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3853
3854 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3855 x86_64_register_name. Return type changed to 'const char *'.
3856 (x86_64_register_name2nr): Rename to x86_64_register_number.
3857 (x86_64_gdbarch_init): Update to reflect the change.
3858 * x86-64-tdep.h: Ditto.
3859 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3860 (supply_fpregset): Ditto.
3861
3862 2002-06-19 Andrew Cagney <cagney@redhat.com>
3863
3864 * regcache.h: Update copyright.
3865 (struct regcache, struct gdbarch): Add opaque declarations.
3866 (current_regcache): Declare global variable.
3867 (regcache_read, regcache_write): Add gdbarch parameter.
3868 (regcache_save, regcache_save_no_passthrough)
3869 (regcache_restore, regcache_restore_no_passthrough)
3870 (regcache_dup, regcache_dup_no_passthrough)
3871 (regcache_cpy, regcache_cpy_no_passthrough)
3872 (deprecated_grub_regcache_for_registers)
3873 (deprecated_grub_regcache_for_register_valid)
3874 (regcache_valid_p): Add function declarations.
3875
3876 * regcache.c: Update copyright.
3877 (regcache_descr_handle): New global variable.
3878 (struct regcache_descr): Define.
3879 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3880 (regcache_descr, xfree_regcache_descr): New functions.
3881 (struct regcache): Define.
3882 (regcache_xmalloc, regcache_xfree): New functions.
3883 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3884 (regcache_dup, regcache_dup_no_passthrough): New functions.
3885 (regcache_valid_p, regcache_read_as_address): New functions.
3886 (deprecated_grub_regcache_for_registers): New function.
3887 (deprecated_grub_regcache_for_register_valid): New function.
3888 (current_regcache): New global variable.
3889 (register_buffer): Add regcache parameter. Update calls.
3890 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3891 (read_register_gen, write_register_gen): Update register_buffer
3892 call. Test for legacy_p instead of gdbarch_register_read_p or
3893 gdbarch_register_write_p.
3894 (regcache_collect): Update register_buffer call.
3895 (build_regcache): Rewrite. Use deprecated grub functions.
3896 (regcache_save, regcache_save_no_passthrough): New functions.
3897 (regcache_restore, regcache_restore_no_passthrough): New
3898 functions.
3899 (_initialize_regcache): Create the regcache_data_handle. Swap
3900 current_regcache global variable.
3901
3902 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3903 parameter to regcache_read and regcache_write calls.
3904 (sh4_register_read): Ditto.
3905 (sh64_pseudo_register_read): Ditto.
3906 (sh64_register_read): Ditto.
3907 (sh_pseudo_register_write): Ditto.
3908 (sh4_register_write): Ditto.
3909 (sh64_pseudo_register_write): Ditto.
3910 (sh64_register_write): Ditto.
3911
3912 * defs.h (XCALLOC): Define.
3913
3914 2002-06-19 Grace Sainsbury <graces@redhat.com>
3915
3916 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3917 * m68k-tdep.c (m68k_gdbarch_init): Added.
3918 (m68k_dump_tdep): Added.
3919
3920 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3921
3922 * ada-lang.c (fill_in_ada_prototype): Update comment.
3923
3924 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3925
3926 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3927 MIPS_ABI_LAST.
3928 (mips_abi_string, mips_abi_strings): New.
3929 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3930 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3931 tdep->mips_abi_string. Honor mips_abi_string. Default to
3932 O32 if no ABI is found.
3933 (mips_dump_tdep): Use mips_abi_strings.
3934 (mips_abi_update): New function.
3935 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3936 ``set mips abi'' and ``show mips abi''. Check the size of
3937 mips_abi_strings.
3938
3939 2002-06-19 Andrew Cagney <cagney@redhat.com>
3940
3941 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3942 constant.
3943
3944 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3945
3946 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3947 current frame using only the first stack size adjustment. All
3948 subsequent size adjustments are not considered to be part of
3949 the "static" part of the current frame.
3950 Compute the address of the saved registers relative to the
3951 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3952 in use in this frame.
3953
3954 2002-06-18 Don Howard <dhoward@redhat.com>
3955
3956 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3957 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3958 suggesting this solution.
3959
3960 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3961
3962 * config/romp/xm-rtbsd.h: Delete file.
3963 * config/romp/rtbsd.mh: Delete file.
3964
3965 2002-06-18 Keith Seitz <keiths@redhat.com>
3966
3967 * breakpoint.c (condition_command): Post breakpoint_modify
3968 when a condition is added to an existing breakpoint.
3969 (commands_command): Likewise for commands.
3970 (set_ignore_count): Likewise for ignore counts.
3971 If no tty, do not simply return, still need to send event
3972 notification.
3973 (ignore_command): Only print a newline if the command came
3974 from a tty.
3975 Don't call breakpoints_changed, since this is now properly
3976 handled by set_ignore_count.
3977
3978 2002-06-18 Andrew Cagney <cagney@redhat.com>
3979
3980 * MAINTAINERS: Note that cris-elf target can be compiled with
3981 -Werror.
3982 * cris-tdep.c (cris_register_name): Make return type constant.
3983 (cris_breakpoint_from_pc): Ditto.
3984
3985 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3986
3987 * frame.h (struct frame_info): Change type of context to
3988 'struct context'.
3989
3990 2002-06-17 Andrew Cagney <cagney@redhat.com>
3991
3992 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3993 pointer.
3994 * gdbarch.h, gdbarch.c: Regenerate.
3995 * config/mips/tm-mips.h (mips_register_name): Update.
3996 * i386-tdep.h (i386_register_name): Update.
3997 * mips-tdep.c (mips_register_name): Update
3998 * alpha-tdep.c (alpha_register_name): Update.
3999 * arch-utils.c (legacy_register_name): Update.
4000 * arch-utils.h (legacy_register_name): Update.
4001 * avr-tdep.c (avr_register_name): Update.
4002 * ia64-tdep.c (ia64_register_name): Update.
4003 * i386-tdep.c (i386_register_name): Update.
4004 * sparc-tdep.c (sparc32_register_name): Update.
4005 (sparc64_register_name): Update.
4006 (sparclite_register_name): Update.
4007 (sparclet_register_name): Update.
4008 * sh-tdep.c (sh_generic_register_name): Update.
4009 (sh_sh_register_name): Update.
4010 (sh_sh3_register_name): Update.
4011 (sh_sh3e_register_name): Update.
4012 (sh_sh_dsp_register_name): Update.
4013 (sh_sh3_dsp_register_name): Update.
4014 (sh_sh4_register_name): Update.
4015 (sh_sh64_register_name): Update.
4016 * s390-tdep.c (s390_register_name): Update.
4017 * rs6000-tdep.c (rs6000_register_name): Update.
4018 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4019 (ns32k_register_name_32382): Update.
4020 * d10v-tdep.c (d10v_ts2_register_name): Update.
4021 (d10v_ts3_register_name): Update.
4022 * xstormy16-tdep.c (xstormy16_register_name): Update.
4023 * vax-tdep.c (vax_register_name): Update.
4024 * v850-tdep.c (v850_register_name): Update.
4025 * m68hc11-tdep.c (m68hc11_register_name): Update.
4026 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4027 (am33_register_name): Update.
4028
4029 2002-06-17 Grace Sainsbury <graces@redhat.com>
4030
4031 * m68k-tdep.c: Reindented.
4032
4033 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4034
4035 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4036 list of predefined types.
4037
4038 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4039
4040 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4041 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4042 REGISTER_CONVERT_TO_RAW): Remove defines.
4043 (i386_register_virtual_type, i386_register_convertible,
4044 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4045 Remove prototypes.
4046 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4047 macros mentioned above.
4048
4049 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4050 (i386lynx_saved_pc_after_call): Remove prototype.
4051 * i386ly-tdep.c: Include "i386-tdep.h".
4052 (i386lynx_saved_pc_after_call): Make static. Use
4053 read_memory_nobpt instead of read_memory. Use
4054 read_memory_unsigned_integer instead of read_memory_integer.
4055 (i386lynx_init_abi): New function.
4056 (i386lynx_coff_osabi_sniffer): New function.
4057 (_initialize_i386bsd_tdep): New function.
4058
4059 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4060 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4061 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4062 (i386_fix_call_dummy): Remove prototype.
4063 * i386-tdep.c (i386_call_dummy_words): New variable.
4064 (i386_gdbarch_init): Adjust for removal of the
4065 macros mentioned above.
4066
4067 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4068
4069 * command.h (add_setshow_auto_boolean_cmd): Replace
4070 add_set_auto_boolean_cmd.
4071 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4072 add_set_auto_boolean_cmd.
4073 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4074 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4075 mask-address'' command.
4076 (show_mask_address): Add cmd parameter.
4077 * remote.c (add_packet_config_cmd): Update. Change type of
4078 set_func and show_func to cmd_sfunc_ftype.
4079 (_initialize_remote): Update `set remote Z-packet'
4080 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4081 (show_remote_protocol_e_packet_cmd): Ditto.
4082 (show_remote_protocol_E_packet_cmd): Ditto.
4083 (show_remote_protocol_P_packet_cmd): Ditto.
4084 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4085 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4086 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4087 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4088 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4089 (show_remote_protocol_Z_packet_cmd): Ditto.
4090 (show_remote_protocol_binary_download_cmd): Ditto.
4091 (show_remote_cmd): Pass NULL to all of above.
4092
4093 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4094
4095 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4096 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4097 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4098 POP_FRAME): Remove defines.
4099 (i386_push_arguments, i386_store_struct_return,
4100 i386_extract_return_value, i386_store_return_value,
4101 i386_extract_struct_value_address, i386_push_dummy_frame,
4102 i386_pop_frame): Renove prototypes.
4103 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4104 macros mentioned above.
4105
4106 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4107
4108 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4109 add_set_boolean_cmd.
4110 (add_setshow_cmd): New function.
4111 * command.h (add_setshow_boolean_cmd): Replace
4112 add_set_boolean_cmd.
4113 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4114 and ``set rdiromatzero''.
4115 * maint.c (_initialize_maint_cmds): Update commented out code.
4116 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4117 * target.c (initialize_targets): Update `set
4118 trust-readonly-sections'.
4119 * remote.c (_initialize_remote): Update `set remotebreak'.
4120
4121 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4122
4123 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4124 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4125 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4126 fit into multi-arch framework.
4127 (i386_breakpoint_from_pc): New function.
4128 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4129 above.
4130
4131 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4132 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4133 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4134 (i386_frameless_function_invocation, i386_frame_num_args,
4135 i386_frame_init_saved_regs): Remove prototypes.
4136 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4137 macros mentioned above.
4138
4139 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4140
4141 * cli/cli-decode.c (set_cmd_cfunc): Update.
4142 (set_cmd_sfunc): Update.
4143 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4144 (set_cmd_sfunc, set_cmd_cfunc): Update.
4145 * cli/cli-decode.h: Update.
4146
4147 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4148
4149 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4150 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4151
4152 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4153
4154 * defs.h (auto_boolean): Declare enum.
4155 * command.h (cmd_auto_boolean): Delete enum.
4156 * mips-tdep.c (mask_address_var): Update.
4157 (mips_mask_address_p): Update.
4158 (show_mask_address): Update.
4159 * remote.c (struct packet_config): Update.
4160 (update_packet_config): Update.
4161 (show_packet_config_cmd): Update.
4162 (packet_ok): Update.
4163 (add_packet_config_cmd): Update.
4164 (_initialize_remote):
4165 * command.h: Update.
4166 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4167 (do_setshow_command): Update.
4168 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4169 * cli/cli-decode.h: Update.
4170
4171 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4172
4173 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4174 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4175 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4176 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4177 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4178 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4179
4180 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4181 list of DJGPP COFF targets.
4182
4183 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4184 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4185 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4186 (FP0_REGNUM): Remove define.
4187 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4188 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4189 (i386_register_virtual_size): Remove protoype.
4190 * i386-tdep.c (i386_register_virtual_size): Removed.
4191 (i386_extract_return_value, i386_store_return_value): Use
4192 FP0_REGNUM instead of NUM_FREGS to determine whether the
4193 floating-point registers are available.
4194 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4195 Adjust for removal of macros mentioned above.
4196
4197 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4198
4199 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4200 comments.
4201 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4202 Remove prototypes.
4203 (supply_gregset, fill_gregset): Remove use of register keyword and
4204 remove declaration for regmap. Use I386_NUM_GREGS instead of
4205 NUM_REGS and NUM_FREGS.
4206 (FPREGSET_FSAVE_OFFSET): Remove.
4207 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4208 NUM_FREGS to determine whether the floating-point registers are
4209 available.
4210
4211 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4212 gnu_store_registers): Replace usage of NUM_GREGS with
4213 I386_NUM_GREGS.
4214
4215 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4216 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4217 usage of NUM_GREGS with I386_NUM_GREGS.
4218
4219 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4220
4221 * i386bsd-nat.c: Include "i386-tdep.h".
4222 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4223 I386_NUM_GREGS.
4224
4225 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4226 and associated comment. They no longer make any sense, since we
4227 don't use this file anymore on Linux.
4228
4229 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4230 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4231 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4232 elements in these arrays.
4233 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4234 MAX_NUM_REGS.
4235
4236 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4237
4238 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4239 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4240
4241 2002-06-14 Andrew Cagney <cagney@redhat.com>
4242
4243 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4244 EXTRACT_RETURN_VALUE.
4245 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4246 EXTRACT_STRUCT_VALUE_ADDRESS.
4247 * gdbarch.h, gdbarch.c: Regenerate.
4248
4249 * values.c (value_being_returned): Handle
4250 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4251 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4252
4253 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4254 * arm-tdep.c (arm_gdbarch_init): Update.
4255 * avr-tdep.c (avr_gdbarch_init): Update.
4256 * cris-tdep.c (cris_gdbarch_init): Update.
4257 * d10v-tdep.c (d10v_gdbarch_init): Update.
4258 * ia64-tdep.c (ia64_gdbarch_init): Update.
4259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4260 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4261 * s390-tdep.c (s390_gdbarch_init): Update.
4262 * sh-tdep.c (sh_gdbarch_init): Update.
4263 * s390-tdep.c (s390_gdbarch_init): Update.
4264 * sparc-tdep.c (sparc_gdbarch_init): Update.
4265 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4266 * v850-tdep.c (v850_gdbarch_init): Update.
4267 * vax-tdep.c (vax_gdbarch_init): Update.
4268 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4270
4271 * config/arc/tm-arc.h: Update.
4272 * config/d30v/tm-d30v.h: Update.
4273 * config/fr30/tm-fr30.h: Update.
4274 * config/h8300/tm-h8300.h: Update.
4275 * config/h8500/tm-h8500.h: Update.
4276 * config/i386/tm-i386.h: Update.
4277 * config/i386/tm-ptx.h: Update.
4278 * config/i386/tm-symmetry.h: Update.
4279 * config/i960/tm-i960.h: Update.
4280 * config/m32r/tm-m32r.h: Update.
4281 * config/m68k/tm-delta68.h: Update.
4282 * config/m68k/tm-linux.h: Update.
4283 * config/m68k/tm-m68k.h: Update.
4284 * config/m88k/tm-m88k.h: Update.
4285 * config/mcore/tm-mcore.h: Update.
4286 * config/mips/tm-mips.h: Update.
4287 * config/mn10200/tm-mn10200.h: Update.
4288 * config/pa/tm-hppa.h: Update.
4289 * config/pa/tm-hppa64.h: Update.
4290 * config/sparc/tm-sp64.h: Update.
4291 * config/sparc/tm-sparc.h: Update.
4292 * config/sparc/tm-sparclet.h: Update.
4293 * config/z8k/tm-z8k.h: Update.
4294
4295 2002-06-14 Andrew Cagney <cagney@redhat.com>
4296
4297 * Makefile.in (i386_linux_tdep_h): Define.
4298 (i386_tdep_h, i387_tdep_h): Define.
4299 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4300 $(i386_tdep_h) and $(i387_tdep_h).
4301 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4302
4303 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4304
4305 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4306 Already covered by the default.
4307
4308 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4309 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4310 (i386_gdbarch_init): Initialize long_double_format and long_double
4311 bit.
4312
4313 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4314 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4315 Move these to ...
4316 * config/i386/i386sol2.mh: ... here.
4317 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4318 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4319 (SIGCONTEXT_PC_OFFSET): Remove define.
4320 (IN_SIGTRAMP): Remove define.
4321 * i386-sol2-tdep.c: New file.
4322
4323 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4324 * config/i386/tm-i386nw.h: Removed.
4325
4326 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4327 USE_STRUCT_CONVENTION): Remove defines.
4328 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4329 (get_longjmp_target): Remove prototype.
4330 (IN_SIGTRAMP): Remove define.
4331 (i386bsd_in_sigtramp): Remove prototype.
4332 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4333 function. Update comment accordingly
4334 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4335 (FRAME_SAVED_PC): Remove define.
4336 (i386bsd_frame_saved_pc): Remove prototype.
4337 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4338 GET_LONGJMP_TARGET): Remove defines.
4339 (get_longjmp_target): Remove prototype.
4340 (IN_SIGTRAMP): Remove define.
4341 (i386bsd_in_sigtramp): Remove prototype.
4342 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4343 function. Update comment accordingly
4344 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4345 (FRAME_SAVED_PC): Remove define.
4346 (i386bsd_frame_saved_pc): Remove prototype.
4347 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4348 Remove prototype.
4349 (USE_STRUCT_CONVENTION): Remove prototype.
4350 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4351 declaration.
4352 (_initialize_i386bsd_nat): Revise logic to determine some
4353 constants at compile time when compiling a native GDB. Warn if
4354 things don't match up with what we expect.
4355 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4356 Remove variables.
4357 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4358 to use date stored in `struct gdbarch_tdep'.
4359 (i386bsd_sigcontext_offset): Remove varaible.
4360 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4361 stored in `struct gdbarch_tdep'.
4362 (i386bsd_frame_saved_pc): Make static.
4363 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4364 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4365 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4366 i386fbsd4_sc_pc_offset): New variables.
4367 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4368 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4369 functions.
4370 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4371 functions.
4372 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4373 Modify the value of i386fbsd_sigtramp_start and
4374 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4375 i386fbsd_sigtramp_end.
4376 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4377 function.
4378
4379 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4380 define to i386-linux-tdep.h.
4381 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4382 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4383 defines.
4384 (i386_linux_register_name, i386_linux_register_byte,
4385 i386_linux_register_raw_size): Remove prototypes.
4386 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4387 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4388 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4389 TARGET_WRITE_PC): Remove defines.
4390 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4391 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4392 i386_linux_write_pc): Remove prototypes.
4393 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4394 (get_longjmp_target): Remove prototype.
4395 * i386-linux-tdep.h: New file.
4396 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4397 * i386-linux-tdep.c: Include "i386-tdep.h" and
4398 "i386-linux-tdep.h".
4399 (i386_linux_register_name, i386_linux_register_byte,
4400 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4401 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4402 Make static.
4403 (i386_linux_init_abi): New function.
4404 (_initialize_i386_linux_tdep): New function.
4405
4406 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4407 (i386_saved_pc_after_call): Remove prototype.
4408 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4409 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4410 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4411 (i386_register_name, i386_stab_reg_to_regnum,
4412 i386_dwarf_reg_to_regnum): Remove prototypes.
4413 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4414 SIZEOF_SSE_REGS): Remove defines.
4415 (REGISTER_BYTES): Remove define.
4416 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4417 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4418 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4419 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4420 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4421 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4422 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4423 (get_longjmp_target): Remove prototype.
4424 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4425 (sigtramp_saved_pc): Remove define.
4426 (i386v4_sigtramp_saved_pc): Remove prototype.
4427 * config/i386/tm-go32.h (FRAME_CHAIN,
4428 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4429 (i386go32_frame_saved_pc): Remove prototype.
4430 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4431 (get_longjmp_target): Remove prototype.
4432 * i386-tdep.h: Include "osabi.h".
4433 (enum i386_abi): Removed.
4434 (enum struct_return): New enum.
4435 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4436 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4437 sc_pc_offset members.
4438 (i386_gdbarch_register_os_abi): Remove prototype.
4439 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4440 I386_SSE_NUM_REGS): New defines.
4441 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4442 I386_SSE_SIZEOF_REGS): New defines.
4443 (i386_register_name, i386_register_byte, i386_register_raw_size):
4444 New prototypes.
4445 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4446 (i386bsd_sigtramp_saved_pc): New prototype.
4447 * i386-tdep.c: Don't include "elf-bfd.h".
4448 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4449 i386_frame_chain, i386_saved_pc_after_call): Make static.
4450 (i386_frame_saved_pc): Rewrite to call architecture dependent
4451 function to deal with signal handlers. Make static.
4452 (i386go32_frame_saved_pc): Removed.
4453 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4454 Removed.
4455 (i386_get_longjmp_target): New function.
4456 (default_struct_convention, pcc_struct_convention,
4457 reg_struct_convention, valid_conventions, struct_convention): New
4458 variables.
4459 (i386_use_struct_convention): New function.
4460 (i386v4_sigtramp_saved_pc): Renamed to
4461 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4462 (i386_pc_in_sigtramp): New function.
4463 (i386_abi_names): Removed.
4464 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4465 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4466 Removed.
4467 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4468 i386_gdbarch_register_os_abi): Removed.
4469 (struct i386_abi_handler): Removed.
4470 (i386_abi_handler_list): Removed.
4471 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4472 functions.
4473 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4474 i386_nw_init_abi): New functions.
4475 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4476 Use set_gdbarch_xxx() calls instead of relying on macros for a
4477 number of calls.
4478 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4479 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4480 Register the various architecture variants defined in this file.
4481
4482 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4483
4484 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4485 (struct main_type): Remove arg_types member. Update comments for
4486 struct field.
4487 (TYPE_ARG_TYPES): Remove.
4488 (TYPE_FN_FIELD_ARGS): Update.
4489 (smash_to_method_type): Update prototype.
4490
4491 * c-typeprint.c (cp_type_print_method_args): Take method type
4492 instead of argument list. Use new argument layout. Simplify.
4493 (c_type_print_args): Use new argument layout. Simplify.
4494 (c_type_print_base): Update call to cp_type_print_method_args.
4495 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4496 argument; use die->type instead. Update call to
4497 smash_to_method_type.
4498 (read_structure_scope): Update call to dwarf2_add_member_fn.
4499 * gdbtypes.c (allocate_stub_method): Update comment.
4500 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4501 Use new argument layout.
4502 (check_stub_method): Use new argument layout. Don't count
4503 void as an argument.
4504 (print_arg_types): Update comments. Use new argument layout.
4505 (recursive_dump_type): Don't print arg_types member.
4506 * hpread.c (hpread_read_struct_type): Use new argument layout.
4507 (fixup_class_method_type): Likewise.
4508 (hpread_type_lookup): Likewise.
4509 * stabsread.c (read_type): Update calls to read_args and
4510 smash_to_method_type.
4511 (read_args): Use new argument layout. Simplify.
4512 * valops.c (typecmp): Use new argument layout. Update parameters
4513 and comments. Simplify.
4514 (hand_function_call): Use new argument layout.
4515 (search_struct_method): Update call to typecmp.
4516 (find_overload_match): Use new argument layout.
4517
4518 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4519
4520 * NEWS: Mention multithreaded debug support for gdbserver.
4521
4522 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4523
4524 * MAINTAINERS: Mention NEWS.
4525
4526 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4527
4528 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4529 (struct mips_objfile_private, compare_pdr_entries): New.
4530 (non_heuristic_proc_desc): Read the ".pdr" section if it
4531 is present.
4532
4533 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4534
4535 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4536 (arm_debug): New static variable.
4537 (_initialize_arm_tdep): Add ``set debug arm'' command.
4538
4539 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4540
4541 * Makefile.in (sim_arm_h): Define.
4542 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4543 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4544 (arm_register_sim_regno): New function, map an internal REGNUM
4545 onto a simulator register number.
4546 (arm_gdbarch_init): Set register_sim_regno.
4547
4548 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4549
4550 * MAINTAINERS: Add self.
4551
4552 2002-06-11 Jim Blandy <jimb@redhat.com>
4553
4554 * source.c (source_info): Mention whether the symtab has
4555 information about preprocessor macros.
4556
4557 Call the command `info macro', not `show macro'.
4558 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4559 Fix error message.
4560 (_initialize_macrocmd): Register `info_macro_command' in
4561 `infolist', not `showlist'.
4562
4563 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4564
4565 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4566 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4567 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4568 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4569 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4570 unconditionally.
4571 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4572 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4573 (_initialize_mips_tdep): Remove dead code.
4574 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4575 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4576 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4577 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4578 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4579 MIPS_LAST_FP_ARG_REGNUM): Remove.
4580
4581 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4582
4583 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4584 (unwind_tmp_obstack_free, parse_frame_info)
4585 (update_context, cfi_read_fp, cfi_write_fp)
4586 (cfi_frame_chain, cfi_init_extra_frame_info)
4587 (cfi_virtual_frame_pointer): Use the above function.
4588 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4589
4590 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4591
4592 * v850-tdep.c (v850_type_is_scalar): New function.
4593 (v850_use_struct_convention): Match current gcc implementation
4594 as close as possible.
4595 (v850_push_arguments): Fix stack_offset handling. Don't write
4596 struct_addr into register. This is done by v850_store_struct_return.
4597 (v850_extract_return_value): Care for structs.
4598 (v850_store_return_value): Ditto.
4599 (v850_store_struct_return): Actually write address.
4600
4601 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4602
4603 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4604 without debug information too.
4605
4606 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4607
4608 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4609 Make multi-arch pure.
4610 * gdbarch.h, gdbarch.c: Re-generate.
4611 * arm-tdep.c (arm_print_float_info): Update.
4612 * arch-utils.h (default_print_float_info): Update.
4613 * arch-utils.c (default_print_float_info): Update.
4614 * infcmd.c (float_info): Update call.
4615
4616 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4617
4618 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4619 the front of the initialize list.
4620
4621 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4622
4623 * infrun.c (struct inferior_status): Replace fields
4624 selected_frame_address and selected_level with field
4625 selected_frame_id.
4626 (save_inferior_status): Update. Use get_frame_id.
4627 (struct restore_selected_frame_args): Delete.
4628 (restore_selected_frame): Update. Use frame_find_by_id.
4629 (restore_inferior_status): Update.
4630
4631 * breakpoint.h (struct breakpoint): Change type of
4632 watchpoint_frame to frame_id.
4633 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4634 call to get_current_frame.
4635 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4636 get_current_frame.
4637 (watchpoint_check): Use frame_find_by_id.
4638
4639 * frame.h (record_selected_frame): Delete declaration.
4640 * stack.c (record_selected_frame): Delete function.
4641
4642 * frame.h (struct frame_id): Define.
4643 (get_frame_id): Declare.
4644 (frame_find_by_id): Declare.
4645 * frame.c (frame_find_by_id): New function.
4646 (get_frame_id): New function.
4647
4648 2002-06-10 Andrey Volkov <avolkov@transas.com>
4649
4650 * ser-e7kpc.c: Fix duplicated define and call of
4651 _initialize_ser_e7000pc
4652
4653 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4654
4655 * signals/signals.c (target_signal_from_host): Fix #ifdef
4656 SIGRTMIN case.
4657 (do_target_signal_to_host): Likewise.
4658
4659 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4660
4661 * mips-tdep.c (mips_find_abi_section): New function.
4662 (mips_gdbarch_init): Call it.
4663
4664 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4665
4666 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4667 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4668 after Andrew's 2002-06-08 gdbarch change.
4669
4670 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4671
4672 * i386-linux-nat.c (suppy_gregset): Don't supply
4673 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4674 register cache.
4675 (fill_gregset): Don't fetch it under the same circumstances.
4676
4677 2002-06-09 Andrew Cagney <cagney@redhat.com>
4678
4679 * Makefile.in (callback_h): Define.
4680 (remote_sim_h): Update path to remote-sim.h.
4681 (remote-rdp.o): Add $(callback_h).
4682 (remote-sim.o): Use $(callback_h).
4683 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4684 * remote-rdp.c: Include "gdb/callback.h".
4685
4686 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4687
4688 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4689 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4690
4691 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4692
4693 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4694 * rdi-share/serpardr.c: Ditto.
4695 * rdi-share/unixcomm.c: Ditto.
4696 * rdi-share/serdrv.c: Ditto.
4697 * rdi-share/hostchan.h: Ditto.
4698 * rdi-share/hostchan.c: Ditto.
4699 * rdi-share/host.h: Ditto.
4700 * rdi-share/devsw.c: Ditto.
4701
4702 * objfiles.h: Change type of obj_private to void pointer.
4703 * pa64solib.c: Update copyright. Don't include "assert.h", use
4704 strcmp instead of STREQ, use LONGEST, do not use PTR
4705 * somsolib.c: Ditto.
4706
4707 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4708 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4709 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4710
4711 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4712
4713 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4714 (default_get_saved_register): Delete function.
4715 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4716 generic_unwind_get_saved_register.
4717 * gdbarch.h, gdbarch.c: Re-generate.
4718
4719 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4720
4721 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4722 generic_func_frame_chain_valid.
4723 * gdbarch.h, gdbarch.c: Re-generate.
4724 * blockframe.c (generic_func_frame_chain_valid): Only check
4725 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4726 passing FP to PC_IN_CALL_DUMMY.
4727 Fix PR gdb/360.
4728
4729 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4730
4731 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4732 (register_gdbarch_data): Initialize init_p.
4733 (gdbarch_data): Initialize data pointer using the init function.
4734 (init_gdbarch_data): Delete function.
4735 (gdbarch_update_p): Update.
4736 (initialize_non_multiarch): Update.
4737 (struct gdbarch): Add field initialized_p.
4738 * gdbarch.h, gdbarch.c: Re-generate.
4739
4740 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4741
4742 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4743 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4744 better do the things actually here.
4745 * x86-64-tdep.c (x86_64_register_name2nr): New.
4746 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4747 (x86_64_gdbarch_init): Respect the above change.
4748 * x86-64-tdep.h (x86_64_register_name2nr)
4749 (x86_64_register_nr2name): Add prototypes.
4750 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4751
4752 2002-06-06 Michael Snyder <msnyder@redhat.com>
4753
4754 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4755 Delete extra braces and re-indent.
4756 (d10v_store_return_value): Char return values
4757 must be shifted over by one byte in R0.
4758 (d10v_extract_return_value): Delete extra braces, re-indent.
4759
4760 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4761
4762 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4763 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4764 (d10v_integer_to_address): Rewrite.
4765 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4766 the d10v specific functions which take care of converting to the
4767 correct space.
4768
4769 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4770
4771 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4772 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4773
4774 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4775
4776 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4777 includes.
4778 * config/tm-linux.h: Ditto.
4779 * config/alpha/tm-alphalinux.h: Ditto.
4780 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4781 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4782 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4783 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4784 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4785 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4786 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4787 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4788 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4789 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4790 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4791 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4792 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4793 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4794 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4795 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4796 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4797 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4798 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4799 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4800 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4801 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4802 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4803 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4804 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4805 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4806 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4807 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4808 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4809 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4810 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4811 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4812 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4813 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4814 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4815 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4816 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4817
4818 2002-05-04 Aidan Skinner <aidan@velvet.net>
4819
4820 * ada-exp.tab.c: New file
4821 * ada-exp.y: New file
4822 * ada-lang.c: New file
4823 * ada-lang.h: New file
4824 * ada-lex.c: New file
4825 * ada-lex.l: New file
4826 * ada-tasks.c: New file
4827 * ada-typeprint.c: New file
4828 * ada-valprint.c: New file
4829
4830 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4831
4832 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4833 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4834
4835 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4836
4837 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4838 insetead of ppc-linux-tdep.o.
4839 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4840 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4841
4842 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4843
4844 2002-05-07 Christian Groessler <chris@groessler.org>
4845 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4846 bit register contents for little endian hosts.
4847
4848 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4849
4850 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4851 any maintainer.
4852
4853 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4854
4855 * gdbarch.h: Regenerate.
4856
4857 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4858
4859 * MAINTAINERS: Add everyone to write-after-approval list.
4860
4861 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4862
4863 * stack.c (frame_info): Use frame_register_unwind instead of
4864 saved_regs. Mention when the SP is on the stack or in a register.
4865
4866 * frame.h (frame_register_unwind_ftype): Define. Document.
4867 (struct frame_info): Add field register_unwind and
4868 register_unwind_cache.
4869 (frame_register_unwind): Declare.
4870 (generic_unwind_get_saved_register): Declare.
4871
4872 * frame.c (frame_register_unwind): New function.
4873 (generic_unwind_get_saved_register): New function.
4874
4875 * blockframe.c (generic_call_dummy_register_unwind): New function.
4876 (frame_saved_regs_register_unwind): New function.
4877 (set_unwind_by_pc): New function.
4878 (create_new_frame): New function.
4879 (get_prev_frame): New function.
4880
4881 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4882
4883 * a29k-share/: Delete directory.
4884 * remote-vx29k.c: Delete file.
4885
4886 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4887
4888 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4889 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4890
4891 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4892
4893 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4894 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4895 (sparc64nbsd-nat.o)
4896 (sparcnbsd-nat.o)
4897 (sparcnbsd-tdep.o): New dependency lists.
4898 * NEWS: Note new UltraSPARC NetBSD native configuration.
4899 * configure.host (sparc64-*-netbsd*): New host.
4900 * configure.tgt (sparc-*-netbsdelf*)
4901 (sparc-*-netbsd*): Set gdb_target to nbsd.
4902 (sparc64-*-netbsd*): New target.
4903 * sparc64nbsd-nat.c: New file.
4904 * sparcnbsd-nat.c: New file.
4905 * sparcnbsd-tdep.c: New file.
4906 * sparcnbsd-tdep.h: New file.
4907 * config/sparc/nbsd.mt: New file.
4908 * config/sparc/nbsd64.mh: New file.
4909 * config/sparc/nbsd64.mt: New file.
4910 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4911 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4912 (HOST_IPC): Remove.
4913 * config/sparc/nbsdaout.mt: Remove.
4914 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4915 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4916 (HOST_IPC): Remove.
4917 * config/sparc/nbsdelf.mt: Remove.
4918 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4919 sparc-nat.c compatiblity defines.
4920 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4921 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4922 * config/sparc/tm-nbsd64.h: New file.
4923 * config/sparc/tm-nbsdaout.h: Remove.
4924 * config/sparc/xm-nbsd.h: Remove.
4925
4926 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4927
4928 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4929 * sparc-tdep.c: Include osabi.h.
4930 (gdbarch_tdep): Add osabi member.
4931 (_initialize_sparc_tdep): Use gdbarch_register.
4932 (sparc_gdbarch_init): Use generic OS ABI framework.
4933 (sparc_dump_tdep): New function.
4934
4935 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4936
4937 * corefile.c (do_captured_read_memory_integer): Return non-zero
4938 result.
4939 (safe_read_memory_integer): Copy result of memory read when
4940 status is non-zero. Also, add comments.
4941
4942 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4943
4944 * Makefile.in (ppc_tdep_h): Define.
4945 (ppc-linux-nat.o)
4946 (ppc-linux-tdep.o)
4947 (rs6000-tdep.o): Use $(ppc_tdep_h).
4948 (ppc-sysv-tdep.o)
4949 (ppcnbsd-nat.o)
4950 (ppcnbsd-tdep.o): New dependency lists.
4951 * ppc-tdep.h: Use generic OS ABI framework.
4952 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4953 (ppc_linux_init_abi): New functions.
4954 (ppc_sysv_abi_broken_use_struct_convention)
4955 (ppc_sysv_abi_use_struct_convention)
4956 (ppc_sysv_abi_push_arguments): Move to...
4957 * ppc-sysv-tdep.c: ...here.
4958 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4959 * rs6000-tdep.c (process_note_abi_tag_sections)
4960 (get_elfosabi): Remove.
4961 (rs6000_gdbarch_init): Use generic OS ABI framework.
4962 (rs6000_dump_tdep): New function.
4963 (_initialize_rs6000_tdep): Use gdbarch_register.
4964 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4965 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4966 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4967 of ppc-linux-tdep.o.
4968 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4969 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4970 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4971 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4972 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4973 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4974
4975 2002-05-29 Jim Blandy <jimb@redhat.com>
4976
4977 * macroscope.c (default_macro_scope): Put `void' in empty argument
4978 list.
4979
4980 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4981
4982 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4983 * arch-utils.c: Include "sim-regno.h".
4984 * gdbarch.sh: Don't include "sim-regno.h".
4985 * gdbarch.h, gdbarch.c: Regenerate.
4986 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4987 here.
4988 * arch-utils.h (legacy_register_sim_regno): To here.
4989 * remote-sim.c (legacy_register_sim_regno): Move function from
4990 here.
4991 * arch-utils.c (legacy_register_sim_regno): To here.
4992
4993 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4994
4995 * sim-regno.h: New file.
4996 * Makefile.in (sim_regno_h): Define.
4997 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4998 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4999 (legacy_register_sim_regno): New function.
5000 (one2one_register_sim_regno): New function.
5001 (gdbsim_fetch_register): Rewrite.
5002 (gdbsim_store_register): Only store a register when
5003 REGISTER_SIM_REGNO is valid.
5004 * d10v-tdep.c: Include "sim-regno.h".
5005 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5006 (d10v_ts3_register_sim_regno): Ditto.
5007 * gdbarch.sh: Include "sim-regno.h".
5008 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5009 * gdbarch.h, gdbarch.c: Regenerate.
5010 * arch-utils.h (default_register_sim_regno): Delete declaration.
5011 * arch-utils.c (default_register_sim_regno): Delete function.
5012
5013 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5014
5015 * ppcnbsd-nat.c: Rewrite.
5016 * ppcnbsd-tdep.c: New file.
5017 * ppcnbsd-tdep.h: New file.
5018 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5019 solib.o, and solib-svr4.o.
5020 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5021 nbsd-tdep.o, and corelow.o.
5022
5023 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5024
5025 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5026 `tr' and `sed'. Mention that `broken' targets are not expected to
5027 build.
5028
5029 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5030
5031 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5032 Let PC point right after the prologue before looking up symbols.
5033
5034 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5035
5036 * i386-tdep.c (i386_register_virtual_type): Return
5037 builtin_type_vec128i for SSE registers.
5038
5039 * gdbtypes.h (builtin_type_vec128i): Declare.
5040
5041 * gdbtypes.c (build_builtin_type_vec128i): New function.
5042 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5043 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5044 (build_gdbtypes): Initialize new builtin vector types.
5045 (_initialize_gdbtypes): Register new vector types with gdbarch.
5046
5047 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5048
5049 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5050 since it has been multi-arch'd.
5051 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5052 Move Alpha and VAX multi-arch news entries to same section
5053 as other multi-arch news.
5054
5055 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5056
5057 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5058 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5059 static. Rename some register numbers to put them in ns32k-tdep
5060 private namespace.
5061 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5062 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5063 functions.
5064 (_initialize_ns32k_tdep): Use gdbarch_register.
5065 * ns32k-tdep.h: New file.
5066 * ns32knbsd-tdep.c: New file.
5067 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5068 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5069 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5070 REGISTER_BYTES, REGISTER_BYTE): Remove.
5071 * config/ns32k/tm-ns32k.h: New file.
5072 * config/ns32k/tm-umax.h: Remove.
5073
5074 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5075
5076 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5077 ns32k_store_struct_return, ns32k_extract_return_value,
5078 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5079 functions.
5080 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5081 ns32k_saved_pc_after_call.
5082 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5083 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5084 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5085 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5086 ns32k_extract_struct_value_address.
5087
5088 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5089
5090 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5091 ns32k_fix_call_dummy): New.
5092 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5093 ns32k_call_dummy_words.
5094 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5095 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5096 CALL_DUMMY_NARGS): Remove.
5097 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5098
5099 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5100
5101 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5102 ns32k_frame_saved_pc, ns32k_frame_args_address,
5103 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5104 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5105 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5106 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5107 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5108 (BREAKPOINT): Remove..
5109 (FRAME_CHAIN): Define as ns32k_frame_chain.
5110 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5111 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5112 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5113 (FRAME_FIND_SAVED_REGS): Remove.
5114 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5115 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5116 (POP_FRAME): Define as ns32k_pop_frame.
5117
5118 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5119
5120 * ns32k-tdep.c (ns32k_register_byte_32082,
5121 ns32k_register_byte_32382, ns32k_register_raw_size,
5122 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5123 functions.
5124 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5125 ns32k_register_byte_32382.
5126 * config/ns32k/tm-umax.h: Update copyright years.
5127 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5128 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5129 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5130 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5131 (ns32k_get_enter_addr): Fix prototype.
5132
5133 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5134
5135 * ns32k-tdep.c: Update copyright years.
5136 (ns32k_register_name_32082): New function.
5137 (ns32k_register_name_32382): Ditto.
5138 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5139 (REGISTER_NAME): Define as ns32k_register_name_32382.
5140 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5141 (REGISTER_NAME): Define as ns32k_register_name_32082.
5142
5143 2002-05-24 Jim Blandy <jimb@redhat.com>
5144
5145 * dwarf2read.c (free_line_header): Use xfree, not free.
5146
5147 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5148
5149 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5150 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5151
5152 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5153
5154 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5155
5156 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5157
5158 From Ross Alexander at NEC Europe:
5159 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5160
5161 2002-05-23 Michael Snyder <msnyder@redhat.com>
5162
5163 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5164 for input, rather than parse_and_eval_address.
5165
5166 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5167
5168 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5169 * Makefile.in (sim_d10v_h): Update definition.
5170
5171 2002-05-24 Andrew Cagney <cagney@redhat.com>
5172
5173 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5174 change `2002-05-22 Michael Snyder' below.
5175 (d10v_push_arguments): Ditto.
5176 (d10v_extract_return_value): Ditto.
5177
5178 2002-05-23 Jim Blandy <jimb@redhat.com>
5179
5180 * macrotab.c (check_for_redefinition): Don't complain if the new
5181 definition is the same as the previous one. Take more arguments
5182 to allow the comparison.
5183 (macro_define_object, macro_define_function): Pass more arguments
5184 to check_for_redefinition.
5185
5186 2002-05-22 Michael Snyder <msnyder@redhat.com>
5187
5188 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5189 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5190 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5191 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5192 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5193 Add a temp variable to save a call (and a memory read).
5194 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5195 if possible (so that PC_IN_CALL_DUMMY will work).
5196
5197 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5198
5199 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5200
5201 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5202
5203 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5204 fde->cie_ptr.
5205 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5206 (dwarf2_build_frame_info): Add offset to fde->initial_location
5207 so that frames of shared libraries are mapped correctly.
5208 (execute_stack_op): Change type of 'result' from ULONGEST to
5209 CORE_ADDR.
5210
5211 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5212
5213 * config/alpha/tm-nbsd.h: Include solib.h.
5214
5215 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5216
5217 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5218 assumptions about the host's byte order.
5219
5220 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5221
5222 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5223 to dependency list.
5224 * alphanbsd-tdep.c: Include solib-svr4.h.
5225 * shnbsd-tdep.c: Ditto.
5226
5227 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5228
5229 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5230 nbsd-tdep.h to dependency list.
5231 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5232 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5233 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5234 nbsdaout.mh and nbsdelf.mh consistently.
5235 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5236 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5237 nbsdaout.mt and nbsdelf.mh consistently.
5238 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5239 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5240 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5241 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5242 a.out shared library stuff from here...
5243 * config/nm-nbsdaout.h: ...to here.
5244 * config/tm-nbsd.h: Remove.
5245 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5246 * config/arm/nbsd.mh: Remove.
5247 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5248 nbsd-tdep.o.
5249 * config/arm/nbsdaout.mh: New file.
5250 * config/arm/nbsdelf.mh: New file.
5251 * config/arm/nm-nbsdaout.h: New file.
5252 * config/i386/nbsd.mh: Remove.
5253 * config/i386/nbsd.mt: Remove.
5254 * config/i386/nbsdaout.mh: New file.
5255 * config/i386/nbsdaout.mt: New file.
5256 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5257 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5258 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5259 i386_register_u_addr): Remove.
5260 * config/i386/nm-nbsdaout.h: New file.
5261 * config/i386/nm-nbsdelf.h: Remove.
5262 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5263 (USE_STRUCT_CONVENTION): Remove.
5264 * config/i386/tm-nbsdaout.h: New file.
5265 * config/i386/tm-nbsdelf.h: Remove.
5266 * config/m68k/nbsd.mh: Remove.
5267 * config/m68k/nbsd.mt: Remove.
5268 * config/m68k/nbsdaout.mh: New file.
5269 * config/m68k/nbsdaout.mt: New file.
5270 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5271 * config/m68k/nm-nbsdaout.h: New file.
5272 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5273 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5274 * config/ns32k/nbsd.mh: Remove.
5275 * config/ns32k/nbsd.mt: Remove.
5276 * config/ns32k/nbsdaout.mh: New file.
5277 * config/ns32k/nbsdaout.mt: New file.
5278 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5279 * config/ns32k/nm-nbsdaout.h: New file.
5280 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5281 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5282 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5283 (SVR4_SHARED_LIBS): Remove.
5284 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5285 * config/sparc/nbsd.mh: Remove.
5286 * config/sparc/nbsd.mt: Remove.
5287 * config/sparc/nbsdaout.mh: New file.
5288 * config/sparc/nbsdaout.mt: New file.
5289 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5290 * config/sparc/nbsdelf.mt: New file.
5291 * config/sparc/nm-nbsdaout.h: New file.
5292 * config/sparc/nm-nbsdelf.h: Remove.
5293 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5294 * config/sparc/tm-nbsdaout.h: New file.
5295
5296 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5297
5298 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5299 mipsnbsd-tdep.c
5300 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5301
5302 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5303
5304 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5305 shnbsd-nat.c.
5306 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5307
5308 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5309
5310 * NEWS: Note new MIPS NetBSD native configuration.
5311 * configure.host (mips*-*-netbsd*): New host.
5312 * configure.tgt (mips*-*-netbsd*): New target.
5313 * mipsnbsd-nat.c: New file.
5314 * mipsnbsd-tdep.c: New file.
5315 * mipsnbsd-tdep.h: New file.
5316 * config/mips/nbsd.mh: New file.
5317 * config/mips/nbsd.mt: New file.
5318 * config/mips/nm-nbsd.h: New file.
5319 * config/mips/tm-nbsd.h: New file.
5320
5321 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5322
5323 * Makefile.in (SFILES): Add osabi.c.
5324 (COMMON_OBS): Add osabi.o.
5325 (osabi.o): New dependency list.
5326 * osabi.c: New file.
5327 * osabi.h: New file.
5328 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5329
5330 * Makefile.in (alpha_tdep_h): Define and use instead of
5331 alpha-tdep.h.
5332 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5333 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5334 Remove.
5335 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5336 * alpha-tdep.h: Include osabi.h.
5337 (alpha_abi): Remove.
5338 (gdbarch_tdep): Use generic OS ABI framework.
5339 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5340 gdbarch_register_osabi.
5341 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5342 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5343 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5344
5345 * Makefile.in (sh_tdep_h): Add osabi.h.
5346 * sh-tdep.h (sh_osabi): Remove.
5347 (gdbarch_tdep): Use generic OS ABI framework.
5348 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5349 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5350 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5351 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5352
5353 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5354 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5355 gdbarch_register_osabi.
5356 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5357 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5358 (get_elfosabi): Rename to...
5359 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5360 ABI framework support routines.
5361 (arm_gdbarch_init): Use generic OS ABI framework.
5362 (arm_dump_tdep): Likewise.
5363 (_initialize_arm_tdep): Likewise.
5364 * arm-tdep.h: Include osabi.h.
5365 (arm_abi): Remove.
5366 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5367 osabi member.
5368 (arm_gdbarch_register_os_abi): Remove prototype.
5369 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5370 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5371
5372 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5373 * mips-tdep.c: Include osabi.h.
5374 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5375 OS ABI framework.
5376
5377 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5378
5379 * h8300-tdep.c: Fix formatting.
5380
5381 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5382
5383 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5384 printing vector registers.
5385
5386 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5387
5388 From Fernando Nasser:
5389 * remote.c (remote_async_open_1): Re-throw the exception when the
5390 connection fails.
5391 (remote_cisco_open): Ditto.
5392 (remote_open_1): Ditto.
5393
5394 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5395
5396 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5397 (remote_start_remote): Add uiout parameter. Pass through to
5398 remote_start_remote_dummy.
5399 (remote_open_1): Use catch_exception instead of catch_errors.
5400 (remote_async_open_1): Ditto.
5401 (remote_cisco_open): Ditto.
5402
5403 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5404
5405 * remote.c (remote_start_remote): Replace PTR with void pointer.
5406 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5407 static.
5408
5409 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5410
5411 * gdb_indent.sh: Allow the script to be run in the sim directory.
5412
5413 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5414
5415 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5416 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5417
5418 * corelow.c (core_open): Only call set_gdbarch_from_file if
5419 exec_bfd is NULL.
5420
5421 2002-05-17 Andrey Volkov <avolkov@transas.com>
5422
5423 * h8300-tdep.c: Add support of EXR register
5424 * config/h8300/tm-h8300.h: Ditto.
5425
5426 2002-05-17 Andrey Volkov <avolkov@transas.com>
5427
5428 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5429
5430 2002-05-17 Andrey Volkov <avolkov@transas.com>
5431
5432 * h8300-tdep.c: Change literal regnums to REGNO.
5433
5434 2002-05-17 Jim Blandy <jimb@redhat.com>
5435
5436 * NEWS: Note addition of macro support.
5437
5438 Expand preprocessor macros in C expressions.
5439 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5440 (scan_macro_expansion, scanning_macro_expansion,
5441 finished_macro_expansion): New function declarations.
5442 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5443 variable declarations.
5444 * parser-defs.h (expression_context_pc): New declaration.
5445 * parse.c (expression_context_pc): New variable.
5446 (parse_exp_1): Set expression_context_pc, as well as
5447 expression_context_block.
5448 * c-exp.y (yylex): If we're not already reading the result of a
5449 macro expansion, try to macro-expand the next token. When we're
5450 done scanning a macro expansion, switch back to the mainline text.
5451 Commas and `if's in a macro's expansion don't terminate the input.
5452 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5453 (macro_original_text, macro_expanded_text,
5454 expression_macro_lookup_func, expression_macro_lookup_baton): New
5455 variables.
5456 (scan_macro_expansion, scanning_macro_expansion,
5457 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5458 c_preprocess_and_parse): New functions.
5459 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5460 c_preprocess_and_parse, instead of c_parse.
5461 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5462 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5463
5464 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5465
5466 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5467 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5468 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5469
5470 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5471
5472 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5473
5474 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5475
5476 * Makefile.in (sh_tdep_h): Define and use.
5477 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5478 register enum): Move to...
5479 * * sh-tdep.h: ...here.
5480 * sh-tdep.c: Include sh-tdep.h.
5481 * sh3-rom.c: Likewise.
5482 * shnbsd-tdep.c: Likewise.
5483
5484 2002-05-16 Michael Snyder <msnyder@redhat.com>
5485
5486 * arm-tdep.c: Spelling fix in comment.
5487
5488 2002-05-16 Jim Blandy <jimb@redhat.com>
5489
5490 Add commands for manually expanding macros and showing their
5491 definitions.
5492 * macrocmd.c, macroscope.c, macroscope.h: New files.
5493 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5494 (macroscope_h): New variable.
5495 (HFILES_NO_SRCDIR): Add macroscope.h.
5496 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5497 (macroscope.o, macrocmd.o): New rules.
5498
5499 Teach the Dwarf 2 reader to read macro information.
5500 * dwarf2read.c: #include "macrotab.h".
5501 (dwarf_macinfo_buffer): New variable.
5502 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5503 dwarf_macinfo_size.
5504 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5505 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5506 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5507 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5508 dwarf2_macro_spaces_in_definition): New complaints.
5509 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5510 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5511 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5512 the partial symbol table.
5513 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5514 from what's recorded in the partial symbol table.
5515 (read_file_scope): If the compilation unit has a
5516 `DW_AT_macro_info' attribute, read its macro information.
5517 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5518
5519 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5520
5521 Fix PR gdb/546
5522 * ser-tcp.c: Don't include <netinet/udp.h>.
5523
5524 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5525
5526 * MAINTAINERS: Update my email address.
5527
5528 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5529
5530 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5531 include file of the same name.
5532
5533 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5534
5535 * configure.tgt: Mark v850 as multi-arched.
5536 * config/v850/tm-v850.h: Remove file.
5537 * config/v850/v850.mt: Eliminate TM_FILE.
5538
5539 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5540
5541 * v850-tdep.c: Full multi-arch.
5542 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5543 Define GDB_MULTI_ARCH to 2.
5544
5545 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5546
5547 * p-exp.y (current_type): New static variable.
5548 Carries the type of the expression at the position that is parsed.
5549 (push_current_type, pop_current_type): Two new functions. Used
5550 to store/restore current_type in expression on specific tokens.
5551 (search_field): New static variable. Set to one after parsing a point
5552 as at that point only a FIELDNAME token should be searched.
5553 (FIELDNAME): New token. After a point only a token belonging to
5554 current_type type definition is allowed.
5555 (all over token rules): reset and change current_type according
5556 to rules.
5557 (exp '[' rule): insert implicit array index field if
5558 exp is a pascal string type.
5559
5560 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5561
5562 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5563 frame info. Use frame_info's saved_regs instead of matching member
5564 in extra_frame_info throughout.
5565 (v850_frame_init_saved_regs): New function.
5566 (v850_init_extra_frame_info): Move most functionality into
5567 v850_frame_init_saved_regs().
5568 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5569 (v850_frame_find_saved_regs): Remove declaration.
5570 (FRAME_FIND_SAVED_REGS): Remove definition.
5571 (v850_frame_init_saved_regs): Add declaration.
5572 (FRAME_INIT_SAVED_REGS): Add definition.
5573
5574 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5575
5576 * v850-tdep.c: Begin multi-arch'ing v850.
5577 (v850_target_architecture_hook): Remove function.
5578 (v850_gdbarch_init): New function. Add code previously in
5579 v850_target_architecture_hook().
5580 (_initialize_v850_tdep): Don't set target_architecture_hook.
5581 Call register_gdbarch_init() instead.
5582
5583 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5584
5585 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5586 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5587 (fixup_class_method_type): Likewise.
5588
5589 2002-05-15 Jim Blandy <jimb@redhat.com>
5590
5591 Add macro structures to GDB's symbol tables. Nobody puts anything
5592 in them yet.
5593 * symtab.h (struct symtab): New member: `macro_table'.
5594 * buildsym.h (pending_macros): New global variable.
5595 * buildsym.c: #include "macrotab.h".
5596 (buildsym_init): Initialize `pending_macros'.
5597 (end_symtab): If we found macro information while reading a CU's
5598 debugging info, do build a symtab structure for it. Make the
5599 symtab point to the macro information, and clear the
5600 `pending_macros' pointer which held it while we were reading the
5601 debug info.
5602 (really_free_pendings): Free any pending macro table.
5603 * objfiles.h (struct objfile): New member: `macro_cache'.
5604 * objfiles.c (allocate_objfile): Set allocate and free functions
5605 for the macro cache's objstack.
5606 (free_objfile): Empty the macro cache's obstack.
5607 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5608 set new allocate and free functions for it.
5609 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5610 free functions for the macro cache's objstack. (Why is this
5611 function building its own objfile?)
5612 * symmisc.c (print_objfile_statistics): Print statistics on the
5613 macro bcache.
5614 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5615
5616 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5617
5618 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5619 (REGISTER_U_ADDR): Delete definition.
5620 (arm_register_u_addr): Delete declaration.
5621
5622 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5623
5624 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5625 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5626
5627 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5628
5629 * regcache.c (register_valid): Revise comments refering to "Not
5630 available" and "unavailable".
5631 * frame.c (frame_register_read): Ditto.
5632 * findvar.c (value_of_register): Ditto.
5633
5634 2002-05-15 Andrew Cagney <cagney@redhat.com>
5635
5636 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5637 (remote-sim.o): Update dependencies.
5638 (d10v-tdep.o): Specify dependencies.
5639 (sim_d10v_h): Define.
5640
5641 2002-05-14 Jim Blandy <jimb@redhat.com>
5642
5643 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5644 * macrotab.c (macro_lookup_inclusion, find_definition,
5645 new_macro_table): Same.
5646
5647 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5648 not `! strcmp ()'. This is a dubious improvement.
5649 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5650
5651 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5652 although it's not necessary, to avoid a warning.
5653
5654 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5655
5656 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5657 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5658 TYPE_INSTANCE_FLAGS.
5659 (struct main_type): New.
5660 (struct type): Move most members to struct main_type. Change
5661 cv_type and as_type to new type_chain member. Add instance_flags.
5662 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5663 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5664 (finish_cv_type): Remove prototype.
5665 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5666 Set TYPE_CHAIN.
5667 (alloc_type_instance): New function.
5668 (smash_type): New function.
5669 (make_pointer_type, make_reference_type, make_function_type)
5670 (smash_to_member_type, smash_to_method_type): Call smash_type.
5671 (make_qualified_type): New function.
5672 (make_type_with_address_space): Call make_qualified_type.
5673 (make_cv_type): Likewise.
5674 (finish_cv_type): Remove unnecessary function.
5675 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5676 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5677 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5678 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5679 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5680 * hpread.c (hpread_read_struct_type): Likewise.
5681 * stabsread.c (read_struct_type): Likewise.
5682
5683 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5684
5685 * configure.tgt: Add a catch all sh* target, for cases like
5686 sh[2,3,4]-elf and sh-hms.
5687
5688 2002-05-14 Keith Seitz <keiths@redhat.com>
5689
5690 * event-loop.c (create_file_handler): Don't do anything but
5691 update data when we are given a fd which we are already
5692 monitoring.
5693
5694 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5695
5696 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5697 (update_context): Use __func__ in warnings.
5698
5699 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5700
5701 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5702 and tcp_close to net_open and net_close.
5703 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5704 using UDP if requested. Don't try to disable Nagle on UDP
5705 sockets.
5706 * remote.c (remote_serial_open): New function. Warn about UDP.
5707 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5708
5709 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5710
5711 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5712
5713 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5714
5715 * configure.tgt: Remove sh-hms target.
5716 * MAINTAINERS: Don't list sh-hms as a separate target.
5717
5718 2002-05-13 Jim Blandy <jimb@redhat.com>
5719
5720 Add first preprocessor macro-expansion files.
5721 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5722 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5723 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5724 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5725 (COMMON_OBS): Add macrotab.o, macroexp.o.
5726 (macroexp.o, macrotab.o): New rules.
5727
5728 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5729
5730 * config/m88k/tm-m88k.h: Update copyright.
5731 (m88k_target_write_pc): Declare
5732 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5733 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5734 (SHIFT_INST_REGS): Update definition.
5735 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5736 using old definition of TARGET_WRITE_PC.
5737 * regcache.c (generic_target_write_pc): Delete code handling
5738 NNPC_REGNUM.
5739 * gdbarch.sh (NNPC_REGNUM): Delete.
5740 * gdbarch.h, gdbarch.c: Regenerate.
5741
5742 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5743
5744 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5745 builtin reg number.
5746
5747 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5748
5749 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5750 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5751 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5752 access macros.
5753 * c-typeprint.c (cp_type_print_method_args): Likewise.
5754 (c_type_print_args): Likewise.
5755 * d10v-tdep.c (d10v_push_arguments): Likewise.
5756 (d10v_extract_return_value): Likewise.
5757 * expprint.c (print_subexp): Likewise.
5758 * gdbtypes.c (lookup_primitive_typename): Likewise.
5759 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5760 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5761 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5762 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5763 (TYPE_VECTOR): Likewise.
5764 * hpread.c (hpread_read_struct_type)
5765 (fix_static_member_physnames, fixup_class_method_type)
5766 (hpread_type_lookup): Likewise.
5767 * mdebugread.c (parse_symbol, parse_type): Likewise.
5768 * p-lang.c (is_pascal_string_type): Likewise.
5769 * valops.c (hand_function_call): Likewise.
5770 * x86-64-tdep.c (classify_argument): Likewise.
5771
5772 * hpread.c (hpread_read_function_type)
5773 (hpread_read_doc_function_type): Call replace_type.
5774 * dstread.c (create_new_type): Delete.
5775 (decode_dst_structure, process_dst_function): Call alloc_type.
5776 Use type access macros.
5777
5778 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5779
5780 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5781 the're not supported by the current architecture.
5782 (i387_fill_fxsave): Likewise.
5783
5784 2002-05-12 Fred Fish <fnf@redhat.com>
5785
5786 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5787 sect_index_xxx members to index the first slot in section_offsets
5788 if all of the section_offsets are zero.
5789
5790 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5791
5792 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5793 checked in with last change.
5794
5795 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5796
5797 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5798 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5799 config.sub.
5800
5801 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5802
5803 * Makefile.in: Update dependencies.
5804
5805 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5806
5807 * language.c (local_hex_string_custom): Simplify. Do not depend
5808 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5809
5810 * memattr.c (mem_info_command): Replace calls to
5811 longest_local_hex_string and longest_local_hex_string_custom.
5812 * buildsym.c (make_blockvector): Ditto.
5813 * solib.c (info_sharedlibrary_command): Ditto.
5814 * tracepoint.c (tracepoints_info): Ditto.
5815 * symtab.c (print_msymbol_info): Ditto.
5816
5817 * language.c (local_hex_string): Delete.
5818 (local_hex_string_custom): Delete.
5819 (longest_local_hex_string): Rename to local_hex_string.
5820 (longest_local_hex_string_custom): Rename to
5821 local_hex_string_custom.
5822 * language.h (local_hex_string): Change parameter type to LONGEST.
5823 (local_hex_string_custom): Ditto.
5824 (longest_local_hex_string): Delete declaration.
5825 (longest_local_hex_string_custom): Ditto.
5826
5827 * solib.c: Update copyright.
5828 * memattr.c: Update copyright.
5829
5830 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5831
5832 * arch-utils.h (legacy_register_to_value): Declare.
5833 (legacy_value_to_register): Declare.
5834 (legacy_convert_register_p): Declare.
5835 * arch-utils.c (legacy_register_to_value): New function.
5836 (legacy_value_to_register): New function.
5837 (legacy_convert_register_p): New function.
5838
5839 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5840 (VALUE_TO_REGISTER): Define.
5841 (CONVERT_REGISTER_P): Define.
5842 * gdbarch.h, gdbarch.c: Regenerate.
5843
5844 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5845 VALUE_TO_REGISTER.
5846 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5847 CONVERT_REGISTER_P.
5848
5849 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5850 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5851
5852 * Makefile.in: Update dependencies for valops.c.
5853 * valops.c: Include "gdb_assert.h".
5854 (typecmp): Skip THIS parameter to methods.
5855 (find_method_list): Remove static_memfuncp argument,
5856 update callers. Check for stub methods.
5857 (find_value_oload_method_list): Don't set *static_memfuncp.
5858 (find_overload_match): Don't check for stub methods. Assert
5859 that methods are not stubbed. Handle static methods.
5860 (value_find_oload_method_list): Remove static_memfuncp argument.
5861 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5862 to the argument list for static stub methods.
5863 * value.h (value_find_oload_method_list): Update prototype.
5864
5865 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5866
5867 * arch-utils.h (generic_register_size): Declare.
5868 (generic_register_raw_size, generic_register_virtual_size): Delete
5869 declarations.
5870 * arch-utils.c (generic_register_raw_size): Delete.
5871 (generic_register_size): New function.
5872 (generic_register_virtual_size): Delete.
5873
5874 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5875 default generic_register_size.
5876 * gdbarch.h, gdbarch.c: Re-generate.
5877
5878 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5879 register_virtual_size.
5880 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5881 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5882
5883 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5884
5885 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5886 * gdbarch.h, gdbarch.c: Regenerate.
5887 * gnu-v3-abi.c: Update copyright.
5888 (vtable_address_point_offset): Update.
5889 (gnuv3_rtti_type): Update.
5890 (gnuv3_baseclass_offset): Update.
5891 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5892 (init_fetch_link_map_offsets): Update.
5893 * remote.c (get_remote_state): Update.
5894
5895 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5896
5897 * TODO: Remove value_headof/value_from_vtable_info comment.
5898 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5899 * values.c (value_headof, value_from_vtable_info): Delete.
5900 * value.h (value_from_vtable_info): Delete prototype.
5901
5902 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5903
5904 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5905 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5906 $(gdb_regex_h).
5907 (gdb_assert_h): Define.
5908 (gdb_wait_h): Define.
5909 (gdb_regex_h): Define.
5910
5911 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5912
5913 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5914 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5915
5916 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5917
5918 * nbsd-tdep.c: Fix comment.
5919
5920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5921
5922 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5923 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5924 (nbsd-tdep.o): New dependency list.
5925 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5926 nbsd-tdep.h.
5927 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5928 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5929 * nbsd-tdep.c: New file.
5930 * nbsd-tdep.h: New file.
5931 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5932 nbsd-tdep.h.
5933 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5934 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5935 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5936 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5937
5938 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5939
5940 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5941 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5942 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5943 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5944 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5945 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5946
5947 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5948
5949 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5950 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5951 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5952 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5953 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5954 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5955 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5956
5957 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5958
5959 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5960 fetch_elfcore_registers to...
5961 * i386nbsd-tdep.c: ...here.
5962 (i386nbsd_use_struct_convention): Rename to...
5963 (i386nbsd_aout_use_struct_convention): ...this.
5964 (i386nbsd_supply_reg): New function.
5965 (i386nbsd_fill_reg): New function.
5966 (fetch_core_registers): Use i386nbsd_supply_reg.
5967 (fetch_elfcore_registers): Likewise.
5968 (_initialize_i386nbsd_tdep): New function.
5969 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5971 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5972 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5973 (i386nbsd_aout_use_struct_convention): ...this.
5974
5975 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5976
5977 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5978 (store_inferior_registers): Use shnbsd_fill_reg.
5979 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5980 sh_nbsd_supply_register): Collapse into...
5981 (shnbsd_supply_reg): ...this.
5982 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5983 (shnbsd_fill_reg): ...this.
5984 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5985 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5986 (fetch_core_registers): Use shnbsd_supply_reg.
5987 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5988 (sh_nbsd_core_fns): Rename to...
5989 (shnbsd_core_fns): ...this.
5990 (sh_nbsd_elfcore_fns): Rename to...
5991 (shnbsd_elfcore_fns): ...this.
5992 (sh_nbsd_init_abi): Rename to...
5993 (shnbsd_init_abi): ...this.
5994 (_initialize_sh_nbsd_tdep): Rename to...
5995 (_initialize_shnbsd_tdep): ...this.
5996 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5997 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5998 sh_nbsd_fill_register): Remove prototypes.
5999 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6000
6001 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6002
6003 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6004 (i387-nat.o): Delete dependency list.
6005 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6006 (x86-64-linux-nat.o): Likewise.
6007 * i387-nat.c: Delete file, moving contents to...
6008 * i387-tdep.c: ...here.
6009 * i387-nat.h: Rename...
6010 * i387-tdep.h: ...to this.
6011 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6012 * i386-linux-nat.c: Likewise.
6013 * i386bsd-nat.c: Likewise.
6014 * i386gnu-nat.c: Likewise.
6015 * i386nbsd-nat.c: Likewise.
6016 * i386v4-nat.c: Likewise.
6017 * x86-64-linux-nat.c: Likewise.
6018 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6019 * config/i386/go32.mh (NATDEPFILES): Likewise.
6020 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6021 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6022 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6023 * config/i386/linux.mh (NATDEPFILES): Likewise.
6024 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6025 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6026 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6027 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6028
6029 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6030
6031 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6032 (alphanbsd-nat.o): Remove dependency list.
6033 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6034 * alphanbsd-nat.c: Delete. Contents moved to...
6035 * alphanbsd-tdep.c: ...here.
6036 (_initialize_alphanbsd_tdep): Register core functions.
6037 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6038
6039 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6040
6041 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6042 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6043 (alphanbsd-nat.o): Likewise.
6044 (alphabsd-tdep.o): New dependency list.
6045 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6046 (fill_gregset): Use alphabsd_fill_reg.
6047 (supply_fpregset): Use alphabsd_supply_fpreg.
6048 (fill_fpregset): Use alphabsd_fill_fpreg.
6049 (fetch_inferior_registers): Use struct reg and struct fpreg
6050 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6051 and alphabsd_supply_fpreg.
6052 (store_inferior_registers): Use struct reg and struct fpreg
6053 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6054 and alphabsd_fill_fpreg.
6055 * alphabsd-tdep.c: New file.
6056 * alphabsd-tdep.h: New file.
6057 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6058 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6059 alphabsd_supply_fpreg.
6060 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6061 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6062
6063 2002-05-11 Eric Christopher <echristo@redhat.com>
6064
6065 * mips-tdep.c (mips_double_register_type): Fix thinko.
6066 (mips_single_register_type): Ditto.
6067 * MAINTAINERS: Add self.
6068
6069 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6070
6071 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6072 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6073 right thing on architectures with different endianness and/or
6074 integer sizes.
6075
6076 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 From Christian Limpach <chris@Pin.LU>
6079 * configure.in: Change sed expression which comments out
6080 NATDEPFILES to also comment out continuation lines.
6081 * configure: Regenerate.
6082
6083 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6084
6085 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6086 big patch.
6087
6088 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6089
6090 * sh-tdep.c: Include correct file.
6091
6092 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6093
6094 New support for sh64-elf (sh5) target.
6095
6096 * configure.tgt: For sh64-elf target, default to sh-elf.
6097
6098 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6099 (struct gdbarch_tdep): Add new fields for new registers and ABI
6100 info.
6101
6102 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6103 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6104 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6105 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6106 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6107 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6108 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6109 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6110 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6111 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6112 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6113 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6114 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6115 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6116 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6117 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6118 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6119 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6120 sign_extend, sh64_nofp_frame_init_saved_regs,
6121 sh64_init_extra_frame_info, sh64_get_saved_register,
6122 sh64_extract_struct_value_address, sh64_pop_frame,
6123 sh64_push_arguments, sh64_extract_return_value,
6124 sh64_store_return_value, sh64_show_media_regs,
6125 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6126 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6127 sh_sh64_register_virtual_type,
6128 sh_sh64_register_convert_to_virtual,
6129 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6130 sh64_register_read, sh64_pseudo_register_write,
6131 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6132 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6133 sh64_do_pseudo_register, sh_compact_do_registers_info,
6134 sh64_do_registers_info, sh_gdbarch_init): New functions.
6135
6136 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6137
6138 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6139
6140 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6141
6142 * linespec.c (decode_line_1): Check for a double quote after
6143 a filename correctly.
6144
6145 2002-05-10 Jim Blandy <jimb@redhat.com>
6146
6147 Properly track the size of the current objfile's .debug_line section.
6148 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6149 (DWARF_LINE_SIZE): New macro.
6150 (dwarf2_build_psymtabs_hard): Record the line section's size in
6151 the partial symbol table.
6152 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6153 symbol table.
6154
6155 2002-05-10 Petr Sorfa <petrs@caldera.com>
6156
6157 * ia64-tdep.c: Handle breakpoints on L instruction type
6158 in MLX instruction bundle by moving the breakpoint to
6159 the third slot (X instruction type) as L holds only data.
6160
6161 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6162
6163 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6164 (process_one_symbol): Complain about discarding local symbols
6165 due to a misplaced N_LBRAC entry.
6166
6167 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6168
6169 From Daniel Berlin <dan@cgsoftware.com>
6170 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6171 decrease the depth we are at, in the case of templates.
6172
6173 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6174
6175 * mips-tdep.c (mips_float_register_type): New function.
6176 (mips_double_register_type): New function.
6177 (mips_print_register): Use them.
6178 (do_fp_register_row): Likewise.
6179
6180 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6181
6182 * signals/signals.c (signals): Remove conditional compilation around
6183 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6184 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6185
6186 2002-05-09 Michael Snyder <msnyder@redhat.com>
6187
6188 * remote-rdp.c (remote_rdp_can_run): Remove.
6189
6190 2002-05-09 Tom Tromey <tromey@redhat.com>
6191
6192 * jv-valprint.c (java_val_print): Handle `char' as a special case
6193 of TYPE_CODE_INT.
6194
6195 2002-05-09 Michael Snyder <msnyder@redhat.com>
6196
6197 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6198 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6199 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6200 str r(0123),[sp,#nn].
6201 (arm_skip_prologue): Ditto. Also make disassembly
6202 order-independent by placing it in a loop.
6203
6204 2002-05-06 Michael Snyder <msnyder@redhat.com>
6205
6206 * stabsread.c (read_type): Add recognition for new attribute:
6207 "@V;" means that an array type is actually a vector.
6208 This is analogous to the vector flag that's been added to dwarf2.
6209
6210 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6211
6212 * i386-tdep.h (i386_abi): New enum.
6213 (struct gdbarch_tdep): Replace os_ident member with abi.
6214 (i386_gdbarch_register_os_abi): New prototype.
6215 * i386-tdep.c (i386_abi_names): New array.
6216 (process_note_abi_tag_sections): Removed.
6217 (process_note_sections): New function.
6218 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6219 (struct i386_abi_handler): New struct.
6220 (i386_abi_handler_list): New variable.
6221 (i386_gdbarch_register_os_abi): New function.
6222 (i386_gdbarch_init): Adapt for the changes given above.
6223
6224 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6225
6226 * gregset.h: Say "GNU/Linux".
6227
6228 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6229
6230 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6231 (build_gdbtypes): Build builtin_type_v2_float.
6232 (_initialize_gdbtypes): Register new builtin type.
6233
6234 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6235
6236 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6237 (clear_gdbarch_swap): New function.
6238 (initialize_non_multiarch): Call.
6239 (gdbarch_update_p): Before calling init(), swap out and clear the
6240 existing architecture.
6241 * gdbarch.c: Regenerate.
6242
6243 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6244
6245 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6246 alphanbsd-tdep.c.
6247
6248 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6249
6250 * sh-nbsd-nat.c: Rename to...
6251 * shnbsd-nat.c: ...this.
6252 * sh-nbsd-tdep.c: Rename to...
6253 * shnbsd-tdep.c: ...this.
6254 * sh-nbsd-tdep.h: Rename to...
6255 * shnbsd-tdep.h: ...this.
6256 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6257 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6258
6259 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6260
6261 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6262 concatenation for command help messages.
6263
6264 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6265
6266 * NEWS: Note new sh*-*-netbsdelf* configuration.
6267 * configure.host: Set gdb_host_cpu to sh for all sh*.
6268 (sh*-*-netbsdelf*): New host.
6269 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6270 (sh*-*-netbsdelf*): New target.
6271 * sh-nbsd-nat.c: New file.
6272 * sh-nbsd-tdep.c: New file.
6273 * sh-nbsd-tdep.h: New file.
6274 * config/sh/nbsd.mh: New file.
6275 * config/sh/nbsd.mt: New file.
6276 * config/sh/nm-nbsd.h: New file.
6277 * config/sh/tm-nbsd.h: New file.
6278
6279 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6280
6281 * sh-tdep.c (sh_osabi_names): Declare.
6282 (process_note_abi_tag_sections): New function.
6283 (get_elfosabi): Ditto.
6284 (sh_gdbarch_register_os_abi): Ditto.
6285 (sh_dump_tdep): Ditto.
6286 _initialize_sh_tdep): Use gdbarch_register to register
6287 sh_gdbarch_init and sh_dump_tdep.
6288 * config/sh/tm-sh.h (sh_osabi): Declare.
6289 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6290
6291 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6292
6293 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6294 (thumb_scan_prologue): Ditto.
6295 (arm_find_callers_reg): Ditto.
6296 (arm_frame_chain): Ditto.
6297 (arm_init_extra_frame_info): Ditto.
6298 (arm_frame_saved_pc): Ditto.
6299 (arm_pop_frame): Ditto.
6300 (arm_push_return_address): New function.
6301 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6302 call_dummy_location, call_dummy_breakpoint_offset_p,
6303 call_dummy_breakpoint_offset, call_dummy_p,
6304 call_dummy_stack_adjust_p, call_dummy_words,
6305 sizeof_call_dummy_words, call_dummy_start_offset,
6306 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6307 call_dummy_address, push_return_address and push_dummy_frame for
6308 generic dummy frames.
6309
6310 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6311
6312 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6313 size computation for alloca.
6314 (sh_fp_frame_init_saved_regs): Likewise.
6315
6316 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6317
6318 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6319 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6320 * arm-tdep.c (arm_store_return_value): Use them.
6321 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6322 * remote-rdp.c (remote_rdp_fetch_register): Use
6323 ARM_MAX_REGISTER_RAW_SIZE.
6324 (remote_rdp_store_register): Likewise.
6325
6326 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6327
6328 * dwarf2cfi.c: Code cleanup, removed unused variables,
6329 added default labels to switch {} statements.
6330 * x86-64-tdep.c: Ditto.
6331 * x86-64-linux-nat.c: Ditto.
6332
6333 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6334
6335 * solib.h: Protect against multiple inclusion.
6336
6337 2002-05-06 Jim Blandy <jimb@redhat.com>
6338
6339 Add first preprocessor macro-expansion files.
6340 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6341 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6342 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6343 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6344 (COMMON_OBS): Add macrotab.o, macroexp.o.
6345 (macroexp.o, macrotab.o): New rules.
6346
6347 Separate the job of reading the line number info statement program
6348 header (...expialidocious) out into its own function.
6349 * dwarf2read.c (struct line_head, struct filenames, struct
6350 directories): Replace with...
6351 (struct line_header): New structure, containing the full
6352 contents of the statement program header, including the
6353 include directory and file name tables.
6354 (read_file_scope): If we have line number info, instead of just
6355 calling dwarf_decode_lines to do all the work, call
6356 dwarf_decode_line_header first to get a `struct line_header'
6357 containing the data in the statement program header, and then
6358 pass that to dwarf_decode_lines, which will pick up where that
6359 left off. Be sure to clean up the `struct line_header' object.
6360 (dwarf_decode_line_header, free_line_header, add_include_dir,
6361 add_file_name): New functions.
6362 (dwarf_decode_lines): Move all the code to read the statement
6363 program header into dwarf_decode_line_header. Take the line
6364 header it built as the first argument, instead of the offset to
6365 the compilation unit's line number info. Use the new `struct
6366 line_header' type instead of the old structures. No need to do
6367 cleanups here now, since we don't allocate anything.
6368 (dwarf2_statement_list_fits_in_line_number_section,
6369 dwarf2_line_header_too_long): New complaints.
6370
6371 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6372
6373 * gdbtypes.c (init_vector_type): New function.
6374 (build_builtin_type_vec128): Simplify the representation of SIMD
6375 registers.
6376 (build_gdbtypes): Initialize new builtin vector types.
6377 (_initialize_gdbtypes): Register new vector types with gdbarch.
6378 (builtin_type_v4_float, builtin_type_v4_int32,
6379 builtin_type_v8_int16, builtin_type_v16_int8,
6380 builtin_type_v2_int32, builtin_type_v4_int16,
6381 builtin_type_v8_int8): New (renamed) SIMD types.
6382
6383 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6384
6385 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6386 (i387_fill_fxsave): Likewise.
6387
6388 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6389
6390 * alpha-tdep.c (alpha_extract_return_value): Don't use
6391 non-constant array size in prototype.
6392
6393 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6394
6395 From Brian Taylor <briant at model dot com>:
6396 * ui-out.c (ui_out_field_core_addr): Use the function
6397 longest_local_hex_string_custom'to format addresses > 32 bits
6398 wide.
6399
6400 * ui-out.c (ui_out_field_core_addr): Update comment.
6401
6402 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6403
6404 * stack.c (select_and_print_frame): Make static. Delete the
6405 parameter `level'.
6406 (func_command): Update call.
6407 (select_frame_command): Delete code computing the frame level.
6408 * frame.h (select_and_print_frame): Delete declaration.
6409
6410 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6411
6412 * sparc-tdep.c (sparc_get_saved_register): Comment why
6413 get_prev_frame call is safe.
6414
6415 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6416
6417 * frame.h (select_frame): Delete level parameter.
6418 * stack.c (select_frame): Update. Use frame_relative_level to
6419 obtain the frame's level.
6420 (select_and_print_frame): Update call.
6421 (select_frame_command): Ditto.
6422 (up_silently_base): Ditto.
6423 (down_silently_base): Ditto.
6424 * ocd.c (ocd_start_remote): Ditto.
6425 * remote-rdp.c (remote_rdp_open): Ditto.
6426 * remote-mips.c (mips_initialize): Ditto.
6427 (common_open): Ditto.
6428 * remote-e7000.c (e7000_start_remote): Ditto.
6429 * m3-nat.c (select_thread): Ditto.
6430 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6431 (child_get_current_exception_event): Ditto.
6432 * varobj.c (varobj_create): Ditto.
6433 (varobj_update): Ditto.
6434 (c_value_of_root): Ditto.
6435 * tracepoint.c (finish_tfind_command): Ditto.
6436 * corelow.c (core_open): Ditto.
6437 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6438 * thread.c (info_threads_command): Ditto.
6439 (switch_to_thread): Ditto.
6440 * infrun.c (normal_stop): Ditto.
6441 (restore_selected_frame): Ditto.
6442 (restore_inferior_status): Ditto.
6443 * breakpoint.c (insert_breakpoints): Ditto.
6444 (watchpoint_check): Ditto.
6445 (bpstat_stop_status): Ditto.
6446 (do_enable_breakpoint): Ditto.
6447 * blockframe.c (flush_cached_frames): Ditto.
6448 (reinit_frame_cache): Ditto.
6449
6450 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6451
6452 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6453 maintainer.
6454
6455 2002-05-04 Jim Blandy <jimb@redhat.com>
6456
6457 * gdbtypes.c (replace_type): Doc fix.
6458
6459 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6460
6461 * valprint.c (strcat_longest): Delete commented out function.
6462 Update copyright.
6463
6464 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6465
6466 * MAINTAINERS: Mark a29k as deleted.
6467 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6468 Move new configurations to the top.
6469 * configure.tgt: Remove a29k.
6470 * config/a29k/tm-vx29k.h: Delete.
6471 * config/a29k/vx29k.mt: Delete.
6472 * config/a29k/tm-a29k.h: Delete.
6473 * config/a29k/a29k-udi.mt: Delete.
6474 * config/a29k/a29k.mt: Delete.
6475 * a29k-tdep.c: Delete.
6476 * remote-udi.c: Delete.
6477 * remote-mm.c: Delete.
6478 * remote-eb.c: Delete.
6479 * remote-adapt.c: Delete.
6480 * Makefile.in: Remove obsolete code.
6481 * config/s390/s390x.mt: Ditto.
6482 * config/s390/s390.mt: Ditto.
6483 * config/sparc/sparclynx.mh: Ditto.
6484 * config/sparc/linux.mh: Ditto.
6485 * config/pa/hppaosf.mh: Ditto.
6486 * config/pa/hppabsd.mh: Ditto.
6487 * config/ns32k/nbsd.mt: Ditto.
6488 * config/mips/vr5000.mt: Ditto.
6489 * config/m68k/sun3os4.mh: Ditto.
6490 * config/m68k/nbsd.mt: Ditto.
6491 * config/m68k/m68klynx.mh: Ditto.
6492 * config/m32r/m32r.mt: Ditto.
6493 * config/i386/x86-64linux.mt: Ditto.
6494 * config/i386/nbsdelf.mt: Ditto.
6495 * config/i386/nbsd.mt: Ditto.
6496 * config/i386/i386lynx.mh: Ditto.
6497
6498 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6499
6500 * target.c (debug_print_register): New function. Handle oversize
6501 registers.
6502 (debug_to_fetch_registers): Call.
6503 (debug_to_store_registers): Call.
6504
6505 2002-05-03 Jim Blandy <jimb@redhat.com>
6506
6507 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6508 (read_type): Doc fix.
6509 * gdbtypes.c (replace_type): Doc fix.
6510
6511 * stabsread.c (multiply_defined_struct): New complaint.
6512 (read_struct_type): If the type we were passed isn't empty, or
6513 incomplete, don't read the new struct type into it; complain,
6514 and return the original type unchanged. Take a new `type_code'
6515 argument, which is the type code for the new type.
6516 (read_type): Rather than storing the type's type code here, pass
6517 it as an argument to read_struct_type, and let that take care of
6518 storing it. That way, we don't overwrite the original type code,
6519 so read_struct_type can use it to decide whether we're overwriting
6520 something we shouldn't.
6521 (complain_about_struct_wipeout): New function.
6522
6523 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6524
6525 * gdbarch.sh: Assert that gdbarch is non-NULL.
6526 * gdbarch.c: Regenerate.
6527
6528 2002-05-03 Jason Merrill <jason@redhat.com>
6529
6530 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6531 and return NULL.
6532
6533 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6534
6535 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6536 (x86_64_dwarf2gdb_regno_map_length),
6537 (x86_64_dwarf2_reg_to_regnum): Added.
6538 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6539 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6540 (_initialize_x86_64_tdep): Synced with the change above.
6541 (x86_64_skip_prologue): Reformulated message.
6542
6543 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6544
6545 * f-exp.y: Also use new prev_lexptr variable
6546 to improve error reporting. Based on Michael Snyder
6547 2002-04-24 dated patch to c-exp.y.
6548 * jv-exp.y: Likewise.
6549 * m2-exp.y: Likewise.
6550
6551 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6552
6553 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6554 we are dealing with vectors.
6555
6556 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6557
6558 * config/m68k/tm-nbsd.h: Obvious fix,
6559 correct machine name.
6560
6561 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6562
6563 * p-typeprint.c (pascal_type_print_base): Add support
6564 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6565
6566 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6567
6568 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6569 for fondamental pascal 'char' type.
6570
6571 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6572
6573 * p-lang.h (is_pascal_string_type): Declaration changed,
6574 new sixth argument of type char ** added.
6575 * p-lang.c (is_pascal_string_type): Implementation
6576 changed. Args length_pos, length_size, string_pos, char_size
6577 can now be NULL. New argument arrayname set to the field
6578 name of the char array. Return value set to char array
6579 field index plus one.
6580 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6581 is_pascal_string_type function.
6582
6583 2002-05-02 Andrew Cagney <cagney@redhat.com>
6584
6585 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6586 <cagney@redhat.com> change.
6587 * gdbarch.c: Regenerate.
6588
6589 2002-05-02 Andrew Cagney <cagney@redhat.com>
6590
6591 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6592 before probing for a new one. Detect errorenous gdbarch_init
6593 functions.
6594 * gdbarch.c: Regenerate.
6595
6596 2002-05-01 Andrew Cagney <cagney@redhat.com>
6597
6598 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6599 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6600 * config/v850/tm-v850.h: Ditto. Update copyright.
6601
6602 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6603
6604 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6605 current_gdbarch.
6606
6607 2002-04-30 Michael Snyder <msnyder@redhat.com>
6608
6609 * arm-tdep.c: Whitespace clean-ups.
6610 (arm_skip_prologue): Fix thinko; two lines
6611 should have been removed as part of 4/24 change.
6612
6613 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6614
6615 * rs6000-tdep.c: Added comment describing how fpscr register
6616 numbers were chosen.
6617
6618 2002-04-30 Michael Snyder <msnyder@redhat.com>
6619
6620 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6621
6622 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6623
6624 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6625 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6626 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6627
6628 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6629
6630 From Louis Hamilton <hamilton@redhat.com>:
6631 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6632 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6633 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6634 not bfd-private xcoff data, to determine wordsize.
6635 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6636
6637 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6638
6639 GDB 5.2 released from 5.2 branch.
6640
6641 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6642
6643 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6644 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6645 (x86_64_register_info_table): Added comments with register numbers.
6646
6647 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6648
6649 * rs6000-tdep.c (rs6000_extract_return_value,
6650 rs6000_store_return_value): Handle returning vectors.
6651 (rs6000_gdbarch_init): Use
6652 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6653 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6654 New function.
6655 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6656 vectors.
6657 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6658 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6659
6660 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6661
6662 * hpread.c (hpread_psymtab_to_symtab_1,
6663 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6664 with fprintf_unfiltered (gdb_stderr,...).
6665
6666 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6667
6668 * remote-array.c (printf_monitor, write_monitor,
6669 array_insert_breakpoint, array_remove_breakpoint ):
6670 Replace fprintf (stderr,...
6671 with fprintf_unfiltered (gdb_stderr,....
6672 * remote-es.c: Likewise.
6673 * remote-os9k.c: Likewise.
6674 * remote-st.c: Likewise.
6675
6676 2002-04-28 Andreas Schwab <schwab@suse.de>
6677
6678 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6679 linux-proc.o and gcore.o.
6680
6681 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6682
6683 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6684 code without frame pointers.
6685
6686 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6687
6688 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6689 ON_STACK is needed.
6690
6691 2002-04-26 Ben Elliston <bje@redhat.com>
6692
6693 * target.c (do_xfer_memory): Correct reference to the new option
6694 "trust-readonly-sections".
6695
6696 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6697
6698 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6699 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6700 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6701 vectors.
6702 (read_array_type): Record the fact that this array type is really a
6703 vector (i.e. are passed in by value).
6704
6705 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6706
6707 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6708 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6709 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6710 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6711 * alpha-linux-tdep.c: Include frame.h.
6712 (alpha_linux_sigcontext_addr): New function.
6713 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6714 alpha_linux_sigcontext_addr.
6715 * alpha-osf1-tdep.c: Include gdbcore.h.
6716 (alpha_osf1_sigcontext_addr): New function.
6717 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6718 alpha_osf1_sigcontext_addr.
6719 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6720 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6721
6722 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6723
6724 * stack.c (selected_frame_level):
6725 (select_frame): Do not set selected_frame_level.
6726 * frame.h (selected_frame_level): Delete declaration.
6727
6728 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6729
6730 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6731 convert_from_func_ptr-addr when AIX / PowerOpen.
6732
6733 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6734
6735 * valops.c (hand_function_call): Call
6736 generic_save_call_dummy_addr.
6737 * frame.h (generic_save_call_dummy_addr): Declare.
6738 * blockframe.c (struct dummy_frame): Add fields call_lo and
6739 call_hi.
6740 (generic_find_dummy_frame): Check for PC in range call_lo to
6741 call_hi instead of entry_point_address.
6742 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6743 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6744 (generic_save_call_dummy_addr): New function.
6745
6746 2002-04-24 David S. Miller <davem@redhat.com>
6747
6748 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6749 sparc_skip_prologue.
6750 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6751 information to find prologue when possible.
6752 (sparc_prologue_frameless_p): Call examine_prologue directly.
6753 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6754 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6755 second argument.
6756 (SKIP_PROLOGUE): Likewise.
6757
6758 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6759
6760 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6761 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6762 indicate that the condition it was testing is always true.
6763 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6764 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6765 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6766
6767 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6768
6769 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6770 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6771 tdep->jb_pc and tdep->jb_elt_size.
6772 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6773 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6774 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6775 * alpha-nat.c (get_longjmp_target): Remove.
6776 (JB_ELEMENT_SIZE): Ditto.
6777 (JB_PC): Ditto.
6778 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6779 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6780 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6781 to alpha_get_longjmp_target.
6782 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6783 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6784 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6785
6786 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6787
6788 * README: Update to GDB 5.2.
6789
6790 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6791
6792 * gdbarch.sh (LC_ALL): Set to `c'.
6793
6794 2002-04-25 Theodore A. Roth <troth@verinet.com>
6795
6796 * avr-tdep.c: Ran through gdb_indent.sh.
6797
6798 2002-04-25 Theodore A. Roth <troth@verinet.com>
6799
6800 * MAINTAINERS: Add myself as AVR maintainer.
6801 * NEWS: Note new target avr.
6802
6803 2002-04-25 Theodore A. Roth <troth@verinet.com>
6804
6805 * Makefile.in: Add support for AVR target.
6806 * configure.tgt: Add support for AVR target.
6807 * avr-tdep.c: New file
6808 * config/avr/avr.mt: New file.
6809
6810 2002-04-25 Theodore A. Roth <troth@verinet.com>
6811
6812 * MAINTAINERS: Add myself to write-after-approval.
6813
6814 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6815
6816 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6817 with fprintf_unfiltered (gdb_stderr,....
6818
6819 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6820
6821 Fix PR gdb/508.
6822 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6823
6824 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6825
6826 * p-exp.y: Also use new prev_lexptr variable
6827 to improve error reporting. Based on Michael Snyder
6828 2002-04-24 dated patch to c-exp.y.
6829
6830 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6831
6832 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6833 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6834 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6835 to 0.
6836 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6837 and struct value.
6838 (FUNCTION_START_OFFSET): Remove.
6839 (BREAKPOINT): Ditto.
6840
6841 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6842
6843 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6844 * NEWS: Ditto.
6845
6846 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6847
6848 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6849 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6850 alpha_linux_pc_in_sigtramp.
6851 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6852 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6853 alpha_osf1_pc_in_sigtramp.
6854 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6855 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6856 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6857 alphafbsd_pc_in_sigtramp.
6858 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6859 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6860 alphanbsd_pc_in_sigtramp.
6861 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6862 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6863
6864 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6865
6866 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6867
6868 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6869
6870 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6871 alphanbsd-tdep.c.
6872 (alphanbsd-nat.o): New dependency list.
6873 (alphanbsd-tdep.o): Ditto.
6874 * NEWS: Note new native NetBSD/alpha configuration.
6875 * alphanbsd-nat.c: New file.
6876 * alphanbsd-tdep.c: Ditto.
6877 * configure.host (alpha*-*-netbsd*): New host.
6878 * configure.tgt (alpha*-*-netbsd*): New target.
6879 * config/alpha/nbsd.mh: New file.
6880 * config/alpha/nbsd.mt: Ditto.
6881 * config/alpha/nm-nbsd.h: Ditto.
6882 * config/alpha/tm-nbsd.h: Ditto.
6883
6884 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6885
6886 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6887 (alpha-osf1-tdep.o): New dependency list.
6888 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6889 and skip_sigtramp_frame members.
6890 * alpha-linux-tdep.c: Include gdbcore.h.
6891 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6892 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6893 * alpha-osf1-tdep.c: New file.
6894 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6895 alpha-osf1-dep.c.
6896 (alpha_frame_past_sigtramp_frame): New function.
6897 (alpha_dynamic_sigtramp_offset): Ditto.
6898 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6899 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6900 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6901 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6902 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6903 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6904 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6905 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6906 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6907 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6908 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6909 to find_solib_trampoline_target.
6910 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6911 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6912 (SKIP_TRAMPOLINE_CODE): Remove.
6913 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6914 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6915 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6916 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6917 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6918 (PROC_SIGTRAMP_MAGIC): Ditto.
6919 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6920 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6921 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6922 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6923 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6924
6925 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6926
6927 * NEWS: Note that Alpha targets are now multi-arch.
6928
6929 2002-04-24 Michael Snyder <msnyder@redhat.com>
6930
6931 * parser-defs.h (prev_lexptr): New external variable.
6932 * parse.c (parse_exp_1): Set prev_lexptr to null before
6933 calling the language-specific parser.
6934 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6935 (yyerror): Use prev_lexptr in error reporting.
6936
6937 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6938
6939 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6940 * gregset.h: If FILL_FPXREGSET is defined, provide
6941 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6942 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6943 is defined, call fill_fpxregset.
6944
6945 2002-04-24 Roland McGrath <roland@frob.com>
6946
6947 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6948 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6949 (supply_gregset, supply_fpregset): New functions.
6950
6951 * gnu-nat.c (gnu_find_memory_regions): New function.
6952 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6953 (gnu_xfer_memory): Add a cast.
6954
6955 2002-04-24 Michael Snyder <msnyder@redhat.com>
6956
6957 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6958 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6959 of argument regs ("str r(0123), [r11, #-nn"]).
6960 (arm_skip_prologue): Better handling for frameless functions.
6961 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6962 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6963
6964 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6965
6966 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6967 NUM_PSEUDO_REGS can be used.
6968
6969 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6970
6971 * arch-utils.h: Update copyright.
6972
6973 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6974 * gdbarch.h, gdbarch.c: Re-generate.
6975
6976 * inferior.h (IN_SIGTRAMP): Delete definition.
6977 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6978 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6979
6980 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6981 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6982 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6983 (find_proc_framesize): Ditto.
6984 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6985 (alpha_init_extra_frame_info): Ditto.
6986 * infrun.c (handle_inferior_event): Ditto.
6987 (handle_inferior_event): Ditto.
6988 (check_sigtramp2): Ditto.
6989 * blockframe.c (create_new_frame): Ditto.
6990 (get_prev_frame): Ditto.
6991 * ppc-linux-tdep.c: Update comments.
6992 * i386-linux-tdep.c: Update comments.
6993 * breakpoint.c (bpstat_what): Update comment.
6994
6995 2002-04-24 David S. Miller <davem@redhat.com>
6996
6997 * i960-tdep.c (register_in_window_p): New function.
6998 (i960_find_saved_register): Use it instead of
6999 REGISTER_IN_WINDOW_P.
7000 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7001
7002 * symtab.h (find_stab_function_addr): Kill extern.
7003 * minsyms.c (find_stab_function_addr): Remove from here...
7004 * dbxread.c: ... to here, and mark it static.
7005
7006 2002-04-20 David S. Miller <davem@redhat.com>
7007
7008 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7009 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7010
7011 2002-04-21 David S. Miller <davem@redhat.com>
7012
7013 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7014 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7015 (vx_write_register): Likewise.
7016
7017 2002-04-23 J. Brobecker <brobecker@gnat.com>
7018
7019 * source.c (is_regular_file): New function.
7020 (openp): Check wether file to open is a regular file
7021 to avoid opening directories.
7022
7023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7024
7025 * findvar.c (extract_signed_integer): Cast printf argument
7026 to suppress format warning.
7027 (extract_unsigned_integer): Likewise.
7028 * infcmd.c (registers_info): Likewise.
7029 * top.c (get_prompt_1): Likewise.
7030 * valops.c (value_assign): Likewise.
7031 * valprint.c (print_decimal): Likewise.
7032
7033 2002-04-22 H.J. Lu (hjl@gnu.org)
7034
7035 * c-exp.y (typebase): Support
7036
7037 [long|long long|short] [signed|unsigned] [int|]
7038
7039 and
7040
7041 signed [long|long long|short] int
7042
7043 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7044
7045 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7046 and vax-tdep.h.
7047 * vax-tdep.h: New file.
7048 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7049 Make several routines static.
7050 (vax_get_saved_register): New function.
7051 (vax_gdbarch_init): New function.
7052 (_initialize_vax_tdep): Register vax_gdbarch_init.
7053 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7054 Remove macros now under the control of gdbarch.
7055
7056 2002-04-22 Michael Snyder <msnyder@redhat.com>
7057
7058 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7059 Some whitespace and coding standards tweaks.
7060
7061 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7062
7063 * vax-tdep.c: Include regcache.h.
7064 (vax_call_dummy_words): New.
7065 (sizeof_vax_call_dummy_words): New.
7066 (vax_fix_call_dummy): New function.
7067 (vax_saved_pc_after_call): Ditto.
7068 * config/vax/tm-vax.h: Don't include regcache.h.
7069 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7070 (CALL_DUMMY): Remove.
7071 (CALL_DUMMY_WORDS): Define.
7072 (SIZEOF_CALL_DUMMY_WORDS): Define.
7073 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7074
7075 2002-04-18 Michael Snyder <msnyder@redhat.com>
7076
7077 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7078
7079 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7080
7081 * vax-tdep.c (vax_frame_chain): New function.
7082 (vax_push_dummy_frame): Ditto.
7083 (vax_pop_frame): Ditto.
7084 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7085 (FRAMELESS_FUNCTION_INVOCATION): Use
7086 generic_frameless_function_invocation_not.
7087 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7088 (POP_FRAME): Use vax_pop_frame.
7089
7090 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7091
7092 * vax-tdep.c (vax_store_struct_return): New function.
7093 (vax_extract_return_value): Ditto.
7094 (vax_store_return_value): Ditto.
7095 (vax_extract_struct_value_address): Ditto.
7096 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7097 vax_store_struct_return.
7098 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7099 (STORE_RETURN_VALUE): Use vax_store_return_value.
7100 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7101
7102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7103
7104 * vax-tdep.c (vax_frame_saved_pc): New function.
7105 (vax_frame_args_address_correct): Ditto.
7106 (vax_frame_args_address): Ditto.
7107 (vax_frame_locals_address): Ditto.
7108 (vax_frame_num_args): Move code to be in proximity to
7109 other frame-related functions.
7110 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7111 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7112 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7113 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7114 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7115
7116 2002-04-22 H.J. Lu (hjl@gnu.org)
7117
7118 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7119 includedir.
7120
7121 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7122
7123 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7124 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7125 (FRAME_INIT_SAVED_REGS): New macro.
7126
7127 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7128
7129 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7130
7131 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7132
7133 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7134 where needed.
7135 (fetch_osf_core_registers): Likewise.
7136 (supply_gregset): Likewise.
7137
7138 2002-04-22 J. Brobecker <brobecker@gnat.com>
7139
7140 * symfile.h (get_section_index): Define.
7141 * symfile.c (get_section_index): New function.
7142 * mdebugread.c (SC_IS_SBSS): New macro.
7143 (SC_IS_BSS): Return true for the scBss storage class only, as
7144 the scSBss storage class refers to the .sbss section.
7145 (parse_partial_symbols): Discard the symbols which associated
7146 section does not exist.
7147 Make sure to use the .sbss section index for symbols which
7148 storage class is scBss, rather than using the .bss section index.
7149
7150 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7151
7152 * vax-tdep.c: Update copyright years.
7153 (vax_register_name): New function.
7154 (vax_register_byte): Ditto.
7155 (vax_register_raw_size): Ditto.
7156 (vax_register_virtual_size): Ditto.
7157 (vax_register_virtual_type): Ditto.
7158 * config/vax/tm-vax.h: Update copyright years.
7159 (REGISTER_NAMES): Remove.
7160 (REGISTER_NAME): Define.
7161 (REGISTER_BYTE): Use vax_register_byte.
7162 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7163 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7164 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7165
7166 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7167
7168 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7169 declaration
7170 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7171
7172 2002-04-21 David S. Miller <davem@redhat.com>
7173
7174 * arch-utils.c (generic_prologue_frameless_p): Kill
7175 SKIP_PROLOGUE_FRAMELESS_P code.
7176 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7177 references.
7178 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7179 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7180 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7181 references.
7182 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7183 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7184 (sparc_gdbarch_init): Pass it to
7185 set_gdbarch_prologue_frameless_p.
7186
7187 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7188
7189 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7190 (alphabsd-nat.o): New dependency list.
7191
7192 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7193
7194 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7195 alphafbsd-tdep.c.
7196 (alpha-linux-tdep.o): New dependency list.
7197 (alphafbsd-tdep.o): Likewise.
7198
7199 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7200
7201 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7202 to here...
7203 * alpha-tdep.c: ...from here.
7204 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7205
7206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7207
7208 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7209 prototype from here...
7210 * alpha-tdep.h: ...to here.
7211
7212 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7213
7214 * frame.h (selected_frame_level): Document as deprecated.
7215 (frame_relative_level): Declare.
7216 * stack.c (frame_relative_level): New function.
7217 (selected_frame_level): Document as deprecated.
7218 (select_frame): Do not set the selected_frame_level.
7219
7220 * stack.c (frame_info, record_selected_frame): Update.
7221 (frame_command, current_frame_command): Update.
7222 (up_silently_base, up_command, down_silently_base): Update.
7223 (down_command): Update.
7224 * inflow.c (kill_command): Update.
7225 * tracepoint.c (finish_tfind_command): Update.
7226 * corelow.c (core_open): Update.
7227 * thread.c (info_threads_command): Update.
7228 (do_captured_thread_select): Update.
7229 * infcmd.c (finish_command): Update.
7230 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7231
7232 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7233
7234 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7235
7236 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7237
7238 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7239 type const.
7240
7241 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7242
7243 * alphafbsd-tdep.c: Update copyright years. Include
7244 alpha-tdep.h.
7245 (alphafbsd_use_struct_convention): Make static.
7246 (alphafbsd_init_abi): New function.
7247 (_initialize_alphafbsd_tdep): New function.
7248 * config/alpha/tm-fbsd.h: Update copyright years.
7249 (USE_STRUCT_CONVENTION): Remove.
7250
7251 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7252
7253 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7254 an Alpha ABI variant.
7255 (alpha_abi_handler_list): Declare.
7256 (alpha_gdbarch_register_os_abi): New function.
7257 (alpha_gdbarch_init): Give registered ABI variant handlers a
7258 chance to tweak the gdbarch once we have set up defaults.
7259 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7260
7261 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7262
7263 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7264 to standard_coerce_float_to_double.
7265 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7266
7267 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7270 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7271 from gdbarch_tdep rather than a constant.
7272 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7273 the default text address for all Alpha Unix ABIs.
7274 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7275 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7276
7277 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7278
7279 * alpha-tdep.h: New file. Includes several Alpha target constants
7280 taken from...
7281 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7282 let gdbarch deal with.
7283 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7284 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7285 to dependency list.
7286 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7287 Alpha target register names.
7288 * alphabsd-nat.c: Likewise.
7289 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7290 Alpha target register names. Make serveral routines static.
7291 (alpha_get_saved_register): New function.
7292 (alpha_abi_names): New.
7293 (process_note_abi_tag_sections): New function.
7294 (get_elfosabi): New function.
7295 (alpha_gdbarch_init): New function.
7296 (alpha_dump_tdep): New function.
7297 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7298
7299 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7300
7301 * frame.c (find_saved_register): Delete #ifdef
7302 HAVE_REGISTER_WINDOWS code.
7303 * config/sparc/tm-sparc.h: Update comments.
7304 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7305
7306 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7307
7308 * i960-tdep.c (i960_find_saved_register): New function.
7309 (i960_get_saved_register): New function.
7310 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7311 (i960_get_saved_register): Declare.
7312 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7313
7314 2002-04-20 David S. Miller <davem@redhat.com>
7315
7316 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7317
7318 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7319
7320 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7321 instead of NUM_PSEUDO_REGS.
7322
7323 2002-04-20 David S. Miller <davem@redhat.com>
7324
7325 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7326 GDB_MULTI_ARCH_PARTIAL
7327 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7328 define, let tm-sp64.h do it.
7329
7330 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7331
7332 * frame.c (find_saved_register): Avoid a NULL pointer
7333 dereference and actually walk the frame list.
7334
7335 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7336
7337 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7338 sorted in most most-recent-used order. Document.
7339 * gdbarch.h, gdbarch.c: Regenerate.
7340
7341 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7342
7343 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7344 instead of ->prev.
7345 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7346 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7347 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7348 instead of ->prev.
7349
7350 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7351
7352 Fix PR gdb/471.
7353 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7354 (build_builtin_type_vec128): Ditto.
7355 (append_composite_type_field): Fix calculation of type length in
7356 union case.
7357
7358 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7359
7360 * config/djgpp/README: Update.
7361
7362 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7363 compiler warnings.
7364
7365 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7366
7367 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7368 (alpha_setup_arbitrary_frame): ...to this.
7369 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7370 for alpha_setup_arbitrary_frame.
7371
7372 2002-04-18 Andrew Cagney <cagney@redhat.com>
7373
7374 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7375 * gdbarch.h, gdbarch.c: Regenerate.
7376
7377 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7378 * target.h (memory_breakpoint_from_pc): Update declaration.
7379 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7380
7381 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7382 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7383 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7384 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7385 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7386 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7387 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7388 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7389 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7390 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7391 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7392 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7393
7394 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7395 const pointer.
7396 * monitor.c (monitor_insert_breakpoint): Ditto.
7397 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7398
7399 * config/mcore/tm-mcore.h: Update copyright.
7400 * mem-break.c: Ditto.
7401 * xstormy16-tdep.c: Ditto.
7402
7403 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7404
7405 * p-exp.y: Add precedence rule for '^' token.
7406 This removes the shift/reduce conflicts.
7407 Remove the comment concerning these shift/reduce conflicts.
7408
7409 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7410
7411 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7412 (registers_powerpc_nofp): New register set for processors
7413 without floating point unit.
7414
7415 2002-04-18 David S. Miller <davem@redhat.com>
7416
7417 * MAINTAINERS: Add myself to write-after-approval.
7418
7419 2002-04-17 Michael Snyder <msnyder@redhat.com>
7420
7421 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7422
7423 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7424
7425 * rs6000-tdep.c (frame_initial_stack_address): Use
7426 frame_register_read to read the alloca_reg.
7427
7428 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7429
7430 * frame.c (find_saved_register): Find saved registers in the next
7431 not prev frame.
7432 Fix PR gdb/365.
7433
7434 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7435
7436 * gdbarch.sh (LANG): Set to ``c''.
7437
7438 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7439
7440 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7441
7442 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7443
7444 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7445 Update copyright.
7446
7447 * hpread.c (hpread_get_lntt): Add declaration.
7448 Also fix PR gdb/391.
7449
7450 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7451
7452 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7453 * aclocal.m4, configure: Re-generate.
7454 Fix PR gdb/391.
7455
7456 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7457
7458 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7459 instead of tm_print_insn.
7460
7461 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7462
7463 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7464
7465 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7466
7467 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7468 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7469 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7470
7471 2002-04-12 Don Howard <dhoward@redhat.com>
7472
7473 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7474 max_user_call_depth.
7475 (init_cmd_lists): Initialize the new value;
7476 * cli/cli-script.c (execute_user_command): Limit the call depth of
7477 user defined commands. This avoids a core-dump when user commands
7478 are infinitly recursive.
7479
7480 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7481
7482 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7483 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7484 from tdep struct instead of DEFAULT_LR_SAVE.
7485 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7486 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7487 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7488
7489 2002-04-12 Michael Snyder <msnyder@redhat.com>
7490
7491 * Remote.c: Spelling fix.
7492 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7493 If no symbol found for "sbrk", try "_sbrk".
7494 (make_output_phdrs): Use bfd_section_name.
7495 (gcore_copy_callback): Use bfd_section_name.
7496 * eval.c: Indentation fix-ups.
7497 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7498 in case it gets applied to an address that is already
7499 in the instruction space.
7500 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7501 * symfile.c: Fix indentation, long lines.
7502 * source.c: White space fix-up.
7503
7504 2002-04-12 Andrew Cagney <cagney@redhat.com>
7505
7506 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7507 * frame.c (frame_register_read): New function. Return non-zero on
7508 success.
7509 (read_relative_register_raw_bytes_for_frame): Delete.
7510 (read_relative_register_raw_bytes): Delete.
7511 * frame.h (frame_register_read): Declare.
7512 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7513 * sh-tdep.c: Ditto.
7514 * infcmd.c (do_registers_info): Ditto.
7515 * hppa-tdep.c: Ditto.
7516 * rs6000-tdep.c: Ditto.
7517 * h8500-tdep.c: Ditto.
7518 * mips-tdep.c: Ditto.
7519 * h8300-tdep.c: Ditto.
7520 * z8k-tdep.c: Ditto.
7521
7522 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7523
7524 From Jimi X <jimix@watson.ibm.com>:
7525 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7526 64-bit SysV ABI.
7527
7528 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7529
7530 From Jimi X <jimix@watson.ibm.com>:
7531 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7532 bfd info.
7533
7534 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7535
7536 From Jimi X <jimix@watson.ibm.com>:
7537 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7538 register sets for these processor variants.
7539
7540 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7541
7542 * regformats/reg-ppc.dat: Support FPSCR.
7543
7544 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7545
7546 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7547 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7548 Add fpscr as an invalid/unfetchable register.
7549 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7550 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7551 (fill_fpregset): Add support for register fpscr.
7552 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7553 (fill_gregset): Account for the fact that register ``mq'' might
7554 not exist.
7555 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7556 (registers_power): Add fpscr to register set at slot 71.
7557 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7558 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7559
7560 2002-04-11 Michael Snyder <msnyder@redhat.com>
7561
7562 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7563 * configure: Regenerate.
7564 * config.in: Regenerate.
7565 * acconfig.h: Add define for _SYSCALL32.
7566 * core-sol2.c: Remove #define _SYSCALL32.
7567 * solib-legacy.c: Remove #define _SYSCALL32.
7568
7569 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7570
7571 * stack.c (select_frame): Cleanup internal error message, do not
7572 use %p.
7573
7574 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7575
7576 * stack.c (select_frame): Check that selected_frame and the
7577 specified level are as expected.
7578 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7579 Update copyright.
7580 * frame.h (struct frame_info): Add field `level'. Update
7581 copyright.
7582 Work-in-progress PR gdb/464.
7583
7584 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7585
7586 * maint.c (maint_print_section_info): Rename print_section_info.
7587 (print_bfd_section_info, print_objfile_section_info): Update.
7588 * inferior.h (struct gdbarch): Add opaque declaration.
7589 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7590 * gdbarch.h: Regenerate.
7591
7592 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7593
7594 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7595 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7596 (kernel_u_size): Added.
7597 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7598 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7599
7600 2002-04-04 Jim Ingham <jingham@apple.com>
7601
7602 * valarith.c (find_size_for_pointer_math): New function, either returns
7603 the size for a pointer's target, returns 1 for void *, or errors for
7604 incomplete types.
7605 (value_add, value_sub): use find_size_for_pointer_math.
7606
7607 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7608
7609 * linux-low.c (linux_look_up_symbols): New hook.
7610 (linux_target_ops): Add linux_look_up_symbols.
7611 * remote-utils.c (decode_address): New function.
7612 (look_up_one_symbol): New function.
7613 * server.c (handle_query): Call target look_up_symbols hook.
7614 * server.h (look_up_one_symbol): Add prototype.
7615 * target.h (struct target_ops): Add look_up_symbols hook.
7616
7617 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7618
7619 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7620 override FP_REGNUM with frame->fp. Update copyright.
7621 * parse.c (num_std_regs, std_regs): Delete.
7622 (target_map_name_to_register): Do not search std_regs. Update
7623 function description.
7624 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7625 declarations. Update copyright.
7626 Fix PR gdb/251.
7627
7628 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7629
7630 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7631 after the last symbol in a block.
7632
7633 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7634
7635 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7636 is non zero as a found symbol.
7637
7638 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7639
7640 * findvar.c: Include "builtin-regs.h".
7641 (value_of_register): Call value_of_builtin_reg when applicable.
7642 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7643 (target_map_name_to_register): Call
7644 builtin_reg_map_name_to_regnum.
7645 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7646 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7647 (builtin_regs_h): Define.
7648 (builtin-regs.o): New target.
7649 (findvar.o): Add $(builtin_regs_h).
7650 * builtin-regs.c, builtin-regs.h: New files.
7651 * std-regs.c: New file.
7652 Partial fix for PR gdb/251.
7653
7654 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7655
7656 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7657 it's no longer required.
7658
7659 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7660
7661 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7662
7663 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7664
7665 From Jimi X <jimix@watson.ibm.com>:
7666 * rs6000-tdep.c (rs6000_software_single_step): Use
7667 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7668 and size. Use target_insert_breakpoint() and
7669 target_remove_breakpoint() to insert and remove breakpoints
7670 instead of explicit memory reads and writes.
7671
7672 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7673
7674 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7675 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7676 ELF_OBJECT_FORMAT ifdef.
7677
7678 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7679
7680 From Jimi X <jimix@watson.ibm.com>:
7681 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7682
7683 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7684
7685 From Jimi X <jimix@watson.ibm.com>:
7686 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7687 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7688
7689 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7690
7691 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7692 s/asprintf/xasprintf/.
7693 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7694
7695 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7696
7697 I believe Jeff Law denies responsability for this one:
7698 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7699 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7700 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7701 Work-around for PR gdb/366.
7702
7703 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7704
7705 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7706 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7707 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7708
7709 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7710
7711 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7712 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7713 information.
7714
7715 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7716
7717 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7718 maintainer.
7719
7720 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7721
7722 * README (Reporting Bugs in GDB): Document the bug web page as the
7723 prefered way of submitting bugs.
7724 Fix PR gdb/402.
7725
7726 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7727
7728 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7729 -1. Update comment.
7730 * gdbarch.h, gdbarch.c: Re-generate.
7731
7732 2002-04-07 Andreas Schwab <schwab@suse.de>
7733
7734 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7735 buffer to regcache_collect.
7736
7737 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7738
7739 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7740 * gdbarch.c, gdbarch.h: Re-generate.
7741
7742 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7743
7744 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7745 declaration. Fix -Werror.
7746
7747 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7748
7749 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7750 * gdbarch.c: Regenerate.
7751
7752 2002-04-05 Michael Snyder <msnyder@redhat.com>
7753
7754 * breakpoint.c (clear_command): Rewrite middle section to
7755 combine two loops with identical control conditions.
7756 Add a cleanup to eliminate a memory leak.
7757 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7758
7759 2002-04-05 H.J. Lu (hjl@gnu.org)
7760
7761 * solib-svr4.c (bkpt_names): Add "__start".
7762
7763 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7764
7765 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7766 as test for 64 bit target.
7767
7768 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7769
7770 * h8500-tdep.c (h8500_write_fp): Delete function.
7771 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7772 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7773 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7775 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7776 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7777 (s390_write_fp):
7778 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7779 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7780 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7781 (d10v_write_fp): Delete function.
7782 * inferior.h (write_fp, generic_target_write_fp): Delete
7783 declarations.
7784 * regcache.c (generic_target_write_fp): Delete function.
7785 (write_fp): Delete function.
7786 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7787 * gdbarch.h, gdbarch.c: Regenerate.
7788 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7789 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7790 (sparc64_write_fp): Delete declaration.
7791 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7792 (h8500_write_fp): Delete declaration.
7793
7794 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7795
7796 * sparc-tdep.c (sparc64_write_fp): Delete.
7797 (sparc_push_dummy_frame): Replace write_fp call with code to store
7798 the FP directly.
7799 (sparc_gdbarch_init): Do not initialize write_fp.
7800
7801 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7802
7803 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7804 clause.
7805
7806 2002-03-29 Jim Blandy <jimb@redhat.com>
7807
7808 * stack.c (get_selected_block): Add new argument `addr_in_block',
7809 used to return the exact code address we used to select the block,
7810 not just the block.
7811 * blockframe.c (get_frame_block, get_current_block): Same.
7812 * frame.h (get_frame_block, get_current_block,
7813 get_selected_block): Update declarations.
7814 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7815 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7816
7817 2002-04-05 Michael Snyder <msnyder@redhat.com>
7818
7819 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7820 warning message.
7821
7822 2002-04-05 J. Brobecker <brobecker@gnat.com>
7823
7824 * utils.c (xfullpath): New function.
7825 * defs.h (xfullpath): Add declaration.
7826 * source.c (openp): Use xfullpath in place of gdb_realpath to
7827 avoid resolving the basename part of filenames when the
7828 associated file is a symbolic link. This fixes a potential
7829 inconsistency between the filenames known to GDB and the
7830 filenames it prints in the annotations.
7831 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7832 to be able to match a filename with either the real filename, or
7833 the name of any symbolic link to this file.
7834 (lookup_partial_symtab): Ditto.
7835
7836 2002-04-04 Michael Snyder <msnyder@redhat.com>
7837
7838 * breakpoint.c: Add support for hardware breakpoints in overlays.
7839 (overlay_events_enabled): New state variable.
7840 (insert_breakpoints): Use overlay_events_enabled to decide
7841 whether to attempt to set a breakpoint at the overlay load addr.
7842 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7843 (remove_breakpoint): Use overlay_events_enabled to decide
7844 whether breakpoints need to be removed from overlay load addr.
7845 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7846 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7847 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7848 disable_overlay_breakpoints): Update overlay_events_enabled.
7849
7850 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7851
7852 * dwarf2read.c (struct function_range): New.
7853 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7854 (check_cu_functions): New.
7855 (read_file_scope): Initialize global function lists.
7856 Call dwarf_decode_line after processing children.
7857 (read_func_scope): Add to global function list.
7858 (dwarf_decode_lines): Call check_cu_functions everywhere
7859 record_line is called. Call record_line with a linenumber
7860 of 0 to mark sequence ends.
7861
7862 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7863
7864 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7865 change sync with glibc.
7866
7867 2002-04-03 Jim Blandy <jimb@redhat.com>
7868
7869 * configure.in: Call AC_C_INLINE.
7870 * configure: Regenerated.
7871
7872 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7873
7874 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7875 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7876
7877 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7878
7879 * NEWS: Mention gcore support on FreeBSD/i386.
7880
7881 * fbsd-proc.c: New file.
7882 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7883 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7884
7885 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7886 while statement.
7887
7888 2002-03-29 Jim Blandy <jimb@redhat.com>
7889
7890 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7891 unescaped newlines in string literals, but newer ones don't. So
7892 escape them.
7893
7894 2002-03-26 Michael Snyder <msnyder@redhat.com>
7895 Andrew Cagney <cagney@redhat.com>
7896
7897 * cli/cli-dump.c: New file. Dump memory to file,
7898 restore file to memory.
7899 * cli/cli-dump.h: New file.
7900 * Makefile.in: Add rules, dependencies for cli-dump.o.
7901 * NEWS: Mention new commands.
7902
7903 2002-03-28 Michael Snyder <msnyder@redhat.com>
7904
7905 * symfile.c (symbol_file_add): Move test for null symbols to later.
7906
7907 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7908
7909 From veksler at il.ibm.com:
7910 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7911 the xstrduped original path.
7912 Fix PR gdb/417.
7913
7914 2002-03-27 Michael Snyder <msnyder@redhat.com>
7915
7916 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7917 * infcmd.c (_initialize_infcmd): Ditto.
7918 * language.c (_initialize_language): Ditto.
7919 * symfile.c (_initialize_symfile): Ditto.
7920 * top.c (_init_main): Ditto.
7921 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7922
7923 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7924
7925 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7926 vector registers handling.
7927 (skip_prologue): Handle new AltiVec instructions. Fill in new
7928 fields of frame data.
7929 (frame_get_saved_regs): Fill in information for AltiVec registers.
7930
7931 2002-03-27 Jim Blandy <jimb@redhat.com>
7932
7933 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7934 a function; leave this macro here to invoke that function.
7935 (symbol_init_mangled_name): Declaration for that function.
7936 * symtab.c (symbol_init_mangled_name): New function.
7937
7938 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7939
7940 * valarith.c: Replace strerror with safe_strerror.
7941 * tracepoint.c: Ditto.
7942 * lin-lwp.c: Ditto.
7943 * go32-nat.c: Ditto.
7944 * inflow.c: Ditto.
7945 * gnu-nat.c: Ditto.
7946
7947 2002-03-27 Andreas Schwab <schwab@suse.de>
7948
7949 * event-top.c (command_line_handler): Remove useless if.
7950
7951 2002-03-27 Andreas Jaeger <aj@suse.de>
7952
7953 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7954 comment.
7955
7956 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7957
7958 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7959 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7960 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7961 (x86_64_linux_dr_get_status, supply_gregset),
7962 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7963 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7964 (x86_64_register_info_table): Add.
7965 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7966 (x86_64_register_raw_size, x86_64_register_virtual_type),
7967 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7968 general x86_64_register_info_table.
7969 (i386_gdbarch_init): gdbarch_register_bytes is now set
7970 dynamicaly during initialization.
7971 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7972 * gdbserver/linux-x86-64-low.c: Ditto.
7973
7974 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7975
7976 * gdbserver/server.c (main): Call target_signal_to_host_p
7977 and target_signal_to_host on signals received from the remote.
7978 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7979 target_signal_from_host on signals sent to the remote.
7980 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7981 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7982
7983 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7984
7985 * signals/signals.c: Include "server.h" in gdbserver build.
7986 (target_signal_from_name): Don't use STREQ.
7987 (_initialize_signals): Likewise. Don't include function in
7988 gdbserver build.
7989
7990 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7991
7992 * signals.c: Moved to...
7993 * signals/signals.c: Here.
7994 * Makefile (signals.o): Update.
7995
7996 2002-03-26 Jeff Law (law@redhat.com)
7997
7998 * somread.c (som_symtab_read): Remove some commented out code and
7999 updated related comments. Do not set the minimal symbol table to
8000 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8001 in a dynamic executable.
8002 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8003 where we are unable to find the minimal symbol for the given
8004 PC value.
8005
8006 2002-03-25 Jeff Law (law@redhat.com)
8007
8008 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8009
8010 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8011
8012 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8013
8014 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8015
8016 * command.h: Update copyright.
8017 (struct cmd_list_element): Replace definition with opaque
8018 declaration.
8019 (enum cmd_types): Document that it will eventually be moved to
8020 cli/cli-decode.h
8021 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8022 (MALLOCED_REPLACEMENT): Delete macro.
8023 * Makefile.in (cli_decode_h): Add $(command_h).
8024 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8025 * top.c: Include "cli/cli-decode.h".
8026 * completer.c: Include "cli/cli-decode.h".
8027 * maint.c: Include "cli/cli-decode.h".
8028 * cli/cli-decode.h: Include "command.h".
8029 (enum command_class): Delete.
8030 (enum cmd_types): Comment out.
8031 (enum cmd_auto_boolean): Delete.
8032 (enum var_types): Delete.
8033
8034 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8035
8036 * cli/cli-decode.c: Include "gdb_assert.h".
8037 (add_set_or_show_cmd): New static function.
8038 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8039 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8040 all fields, such as func, from the set command.
8041
8042 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8043
8044 * MAINTAINERS (sh-elf): Change warning flag to -w.
8045
8046 2002-03-23 Andrew Cagney <cagney@redhat.com>
8047
8048 * defs.h (error): Add printf format attribute.
8049 * thread-db.c (thread_from_lwp): Fix error format string.
8050 * stack.c (parse_frame_specification): Ditto.
8051 * cli/cli-decode.c (undef_cmd_error): Ditto.
8052 * scm-lang.c (scm_lookup_name): Ditto.
8053 * tracepoint.c (trace_error): Ditto.
8054 * remote-utils.c (usage): Ditto.
8055 * remote.c (compare_sections_command): Ditto.
8056 Fix PR gdb/328.
8057
8058 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8059
8060 * gdbtypes.c (append_composite_type_field): New function.
8061 (init_composite_type): New function.
8062 * gdbtypes.h (append_composite_type_field): Declare.
8063 (init_composite_type): Ditto.
8064
8065 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8066
8067 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8068 function.
8069 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8070 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8071 structure returning convention for SYSV ABI case, but not
8072 for GNU/Linux, FreeBSD, or NetBSD.
8073
8074 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8075
8076 * symtab.h (lookup_block_symbol): Add mangled_name argument
8077 to prototype.
8078
8079 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8080 with new mangled_name argument.
8081 * linespec.c (decode_line_1): Likewise.
8082 * valops (value_of_this): Likewise.
8083 * symtab.c (lookup_transparent_type): Likewise.
8084 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8085 (lookup_symbol): If we are given a mangled name, pass it down
8086 to lookup_symbol_aux.
8087 (lookup_block_symbol): If we are given a mangled name to check
8088 against, only return symbols which match it.
8089
8090 2002-03-22 Christopher Faylor <cgf@redhat.com>
8091
8092 * win32-nat.c (child_create_inferior): Check for proper shell to use
8093 here, in case the user changes it on the fly.
8094 (_initialize_inftarg): Remove shell path considerations.
8095
8096 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8097
8098 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8099 for gdbarch_max_register_raw_size and max_register_virtual_size.
8100 Adjust copyright year.
8101
8102 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8103
8104 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8105 in a function to cover the entire beginning of the function
8106 as well if it does not already.
8107
8108 2002-03-21 Tom Rix <trix@redhat.com>
8109
8110 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8111 (rs6000_ptrace64): Renamed from ptrace64.
8112
8113 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8114
8115 * gdbserver/remote-utils.c (remote_open): Don't call
8116 getprotobyname, we're all using TCP here so just use
8117 IPPROTO_TCP.
8118 * gdbserver/gdbreplay.c (remote_open): Ditto.
8119
8120 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8121
8122 * regcache.c (_initialize_regcache): No need to call
8123 build_regcache() at this time; it gets called whenever
8124 the gdbarch changes.
8125
8126 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8127
8128 * sparc-nat.c: Include sys/param.h where possible.
8129
8130 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8131
8132 Fix PR gdb/422.
8133 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8134 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8135 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8136 complex types.
8137 * stabsread.c (rs6000_builtin_type): Likewise.
8138 (read_sun_floating_type): Likewise.
8139
8140 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8141
8142 * stabsread.c (read_member_functions): Remove skip code for duplicate
8143 constructor/destructor methods. Use standard parsing for these
8144 methods and just do not chain them to the list of methods after
8145 parsing.
8146
8147 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8148
8149 * coffread.c: Remove redundant static declarations. Replace
8150 occurrences of `PTR' with `void *'.
8151 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8152 * top.h (quit_cover): Likewise.
8153 * defs.h (catch_errors): Likewise.
8154
8155 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8156
8157 * defs.h (XMALLOC): Define.
8158 * gdb-events.sh (XMALLOC): Delete macro.
8159 * gdb-events.c, gdb-events.h: Regenerate.
8160 * gdbarch.sh (XMALLOC): Delete macro.
8161 * gdbarch.c: Regenerate.
8162 * serial.c (XMALLOC): Delete macro.
8163 * ui-file.c (XMALLOC): Ditto.
8164 * ser-unix.h (XMALLOC): Ditto.
8165 * sh-tdep.c (XMALLOC): Ditto.
8166 * ui-out.c (XMALLOC): Ditto.
8167 * utils.c (XMALLOC): Ditto.
8168 * i386-tdep.c (XMALLOC): Ditto.
8169 * gdb-events.c (XMALLOC): Ditto.
8170 * d10v-tdep.c (XMALLOC): Ditto.
8171 * cli-out.c (XMALLOC): Ditto.
8172
8173 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8174 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8175 * ui-file.c, ui-out.c: Ditto.
8176
8177 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8178
8179 * command.h (struct cmd_list_element): Add field context.
8180 (set_cmd_context, get_cmd_context): Declare.
8181 * cli/cli-decode.h: Ditto.
8182 * cli/cli-decode.c (get_cmd_context): New function.
8183 (set_cmd_context): New function.
8184 (add_cmd): Initialize context.
8185 Part of fixing PR gdb/145 and PR gdb/146.
8186
8187 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8188
8189 * cli/cli-decode.c (cmd_type): New function.
8190 * command.h (cmd_type): Declare.
8191 * infrun.c (set_schedlock_func): Call function cmd_type.
8192 * kod.c (kod_set_os): Call cmd_type.
8193 * cris-tdep.c (cris_version_update): Use function cmd_type.
8194 (cris_mode_update, cris_abi_update): Ditto.
8195
8196 * command.h: (execute_cmd_post_hook): Declare.
8197 (execute_cmd_pre_hook): Declare.
8198 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8199 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8200 functions. Execute pre/post hook while ensuring that afterwords
8201 hook_in is cleared.
8202 * top.c (execute_command): Use execute_cmd_post_hook, and
8203 execute_cmd_pre_hook to execute pre/post commands.
8204 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8205 hook_stop_stub.
8206 (hook_stop_stub): Call execute_cmd_pre_hook.
8207
8208 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8209
8210 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8211 set'' and this leads to a core dump. Move xstrdup of
8212 operating_system to after check that it is not NULL.
8213
8214 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8215
8216 * kod.c (kod_set_os): Remove unnecessary check that
8217 ``command->type'' is set_cmd.
8218
8219 * valprint.c (set_input_radix): Use input_radix.
8220 (set_output_radix): Use output_radix.
8221 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8222 isn't reverted.
8223
8224 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8225
8226 * value.h (struct value): Delete field ``substring_addr''. Change
8227 aligner fields to force_doublest_align, force_longest_align,
8228 force_core_addr_align and force_pointer_aligh.
8229
8230 * value.h (struct value): Fix typo in above change.
8231
8232 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8233
8234 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8235 to fix internal_error from ``maintenance print architecture''.
8236
8237 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8238
8239 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8240 for gcc versions after gcc-2.8.1.
8241
8242 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8243
8244 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8245 for method resolution. Restore adjustment of ``this'' pointer after
8246 calling value_struct_elt, which was accidentally removed during the
8247 HP merge.
8248
8249 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8250
8251 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8252 value_of_register.
8253 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8254 get_saved_register.
8255 * value.h (value_of_register): Update.
8256
8257 2002-03-14 Richard Henderson <rth@redhat.com>
8258
8259 * configure.in: Detect declaration for canonicalize_file_name.
8260 * utils.c (canonicalize_file_name): Declare, if needed.
8261 (gdb_realpath): Prefer realpath if available and usable.
8262 * config.in, configure: Rebuild.
8263
8264 2002-03-14 Richard Henderson <rth@redhat.com>
8265
8266 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8267 a constant array bound.
8268
8269 * MAINTAINERS: Add myself to write-after-approval.
8270
8271 2002-03-14 Michael Snyder <msnyder@redhat.com>
8272
8273 * symfile.c (syms_from_objfile): Return immediately if no syms.
8274 (symbol_file_add): Return immediately if no syms.
8275 (find_sym_fns): Return immediately if no syms.
8276
8277 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8278
8279 * gdbserver/remote-util.c (remote_open): Print remote-side's
8280 IP address when remote debugging over the network.
8281
8282 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8283
8284 * config/sparc/fbsd.mh: Fix copyright.
8285 * config/sparc/fbsd.mt: Likewise.
8286
8287 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8288
8289 * MAINTAINERS: Fix typo in name of gdb warnings option.
8290 (x86-64): Fix formating so that this can be parsed by awk.
8291
8292 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8293
8294 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8295 * defs.h: Include "gdb/signals.h".
8296 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8297
8298 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8299
8300 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8301 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8302 from x86-64-tdep.h
8303
8304 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8305 Don Howard <dhoward@redhat.com>
8306
8307 * mips-tdep.c (ST0_FR): Define.
8308 (mips2_fp_compat): New function, temporarily disabled.
8309 (mips_read_fp_register_single): New function.
8310 (mips_read_fp_register_double): New function.
8311 (mips_print_register): Use them.
8312 (do_fp_register_row): Likewise.
8313
8314 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8315
8316 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8317 approval''.
8318
8319 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8320
8321 * stabsread.c (read_member_functions): Fix is_stub test for
8322 static member functions, improve comment.
8323
8324 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8325
8326 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8327 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8328 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8329 commands that set boolean values.
8330 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8331 (arm_rdi_resume): Always initialize PC.
8332 (arm_rdi_open): Don't use rslt as a boolean.
8333 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8334 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8335 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8336 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8337
8338 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8339
8340 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8341 * configure: Rebuilt.
8342
8343 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8344
8345 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8346 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8347
8348 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8349
8350 * cli/cli-decode.c (set_cmd_completer): New function.
8351 * command.h (set_cmd_completer): Declare.
8352 * cli/cli-decode.h (set_cmd_completer): Ditto.
8353
8354 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8355 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8356 * win32-nat.c (_initialize_inftarg): Ditto.
8357 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8358 * proc-api.c (_initialize_proc_api): Ditto.
8359 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8360 * source.c (_initialize_source): Ditto.
8361 * exec.c (_initialize_exec): Ditto.
8362 * solib.c (_initialize_solib): Ditto.
8363 * top.c (init_main): Ditto.
8364 * tracepoint.c (_initialize_tracepoint): Ditto.
8365 * symfile.c (_initialize_symfile): Ditto.
8366 * printcmd.c (_initialize_printcmd): Ditto.
8367 * infcmd.c (_initialize_infcmd): Ditto.
8368 * corefile.c (_initialize_core): Ditto.
8369
8370 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8371
8372 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8373
8374 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8375
8376 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8377
8378 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8379
8380 * NEWS: Update headings, 5.2 has branched.
8381
8382 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8383
8384 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8385 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8386 (register_addr, REGISTER_RAW_SIZE): Likewise.
8387 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8388 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8389
8390 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8391
8392 * MAINTAINERS (x86-64): Add myself.
8393 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8394 changed value_ptr -> struct value *
8395
8396 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8397
8398 * configure.host (sparc64-*-freebsd): Add.
8399 * configure.tgt: Likewise.
8400 * config/sparc/fbsd.mh: New file.
8401 * config/sparc/fbsd.mt: Likewise.
8402 * config/sparc/nm-fbsd.h: Likewise.
8403 * config/sparc/tm-fbsd.h: Likewise.
8404
8405 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8406
8407 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8408 regformats/reg-s390x.dat.
8409
8410 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8411
8412 * utils.c: Add FIXME explaining true/false problem.
8413
8414 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8415
8416 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8417
8418 2002-02-28 Michael Chastain <mec@shout.net>
8419
8420 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8421
8422 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8423
8424 * gdbserver/linux-s390-low.c: New file.
8425 * regformats/reg-s390.dat: New file.
8426 * regformats/reg-s390x.dat: New file.
8427 * gdbserver/configure.srv: Add S/390.
8428 * gdbserver/Makefile.in: Add S/390.
8429 * configure.tgt: Enable gdbserver for S/390.
8430
8431 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8432
8433 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8434 first line of the doc string for "info dos", except at the end of
8435 the sentence, since the short help stops at the first period.
8436
8437 2002-02-28 Jason Merrill <jason@redhat.com>
8438
8439 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8440
8441 2002-02-27 Fred Fish <fnf@redhat.com>
8442
8443 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8444 comment (dumy -> dummy).
8445
8446 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8447
8448 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8449
8450 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8451
8452 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8453
8454 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8455
8456 * gdbserver/acconfig.h: New file.
8457 * gdbserver/i387-fp.c: New file.
8458 * gdbserver/i387-fp.h: New file.
8459 * gdbserver/linux-x86-64.c: New file.
8460 * regformats/reg-x86-64.dat: New file.
8461 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8462 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8463 * gdbserver/configure.in: Add support for regsets.
8464 * gdbserver/config.in: Regenerate.
8465 * gdbserver/configure: Regenerate.
8466 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8467 * gdbserver/linux-low.h: New file.
8468 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8469 for regsets.
8470 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8471 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8472 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8473 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8474 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8475 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8476 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8477 "i387-fp.h". Add PTRACE_GETREGS and friends.
8478 * gdbserver/regcache.c (supply_register): New function.
8479 (supply_register_by_name): New function.
8480 (collect_register): New function.
8481 (collect_register_by_name): New function.
8482
8483 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8484
8485 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8486 (config.status): Add configure.srv dependency.
8487 (server_h): Add config.h dependency.
8488
8489 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8490
8491 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8492 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8493 * gdbserver/configure.srv: Change i386-*-linux* to use
8494 reg-i386-linux.o.
8495
8496 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8497
8498 * x86-64-tdep.c: Re-indent. Update copyright date.
8499
8500 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8501
8502 From Michal Ludvig <mludvig@suse.cz>:
8503 * x86-64-tdep.c (value.h): Delete.
8504 (gdb_assert.h): Include.
8505 (x86_64_register_convert_to_virtual,
8506 x86_64_register_convert_to_raw ): Add check which lets only
8507 floating-point values to be converted.
8508 (value_push): Delete.
8509 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8510 (i386_gdbarch_init): Number of register_bytes fixed.
8511
8512 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8513
8514 * MAINTAINERS: Add x86-64 target.
8515
8516 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8517
8518 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8519 * osfsolib.c (solib_map_sections): Ditto.
8520 * irix5-nat.c (solib_map_sections): Ditto.
8521 * corelow.c (gdb_check_format): Ditto.
8522 * symfile.c (symfile_bfd_open): Ditto.
8523 * solib.c (solib_map_sections): Ditto.
8524 Fix PR gdb/354.
8525
8526 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8527
8528 * remote.c (_initialize_remote): By default, disable ``e'' and
8529 ``E'' step out-of-range packets.
8530
8531 2002-02-26 Andreas Schwab <schwab@suse.de>
8532
8533 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8534 m68k_linux_frame_saved_pc.
8535 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8536 in_sigtramp.
8537 (SIGCONTEXT_PC_OFFSET): Remove.
8538 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8539 m68k_linux_sigtramp_saved_pc): New functions.
8540 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8541 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8542 (UCONTEXT_PC_OFFSET): Define.
8543 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8544 non-RT and RT signal trampolines.
8545
8546 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8547
8548 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8549 (TARGET_NBPG, STACK_END_ADDR): Delete
8550 (VARIABLES_INSIDE_BLOCK): Delete.
8551
8552 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8553
8554 * utils.c (perror_with_name): Make string parameter constant.
8555 (print_sys_errmsg): Ditto.
8556 (query): Ditto.
8557 * defs.h (perror_with_name): Update.
8558 (print_sys_errmsg): Update.
8559 (query): Update.
8560
8561 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8562
8563 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8564 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8565
8566 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8567
8568 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8569 if it already matches the current architecture from the exec file.
8570 Include arch-utils.h for gdbarch_info_init prototype.
8571 * Makefile.in (rs6000-nat.o): Update dependencies.
8572
8573 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8574
8575 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8576 list of exported variables.
8577
8578 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8579
8580 * gdbserver/configure.srv: New file.
8581 * gdbserver/configure.in: Use configure.srv instead
8582 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8583 from it.
8584 * gdbserver/configure: Regenerated.
8585 * gdbserver/terminal.h: New file.
8586 * gdbserver/Makefile.in: Update for configure changes. Remove
8587 more unneeded include paths.
8588
8589 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8590
8591 From wiz at danbala:
8592 * config/sparc/tm-sp64.h: Fix grammar and typos.
8593 Fix PR gdb/287.
8594
8595 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8596
8597 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8598 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8599 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8600 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8601 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8602 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8603 * s390-tdep.c: Ditto.
8604 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8605 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8606 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8607 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8608 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8609 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8610 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8611 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8612 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8613 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8614 Fix PR gdb/378.
8615
8616 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8617
8618 * lin-thread.c: Delete file.
8619 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8620 to gdb_proc_service.h.
8621 * configure: Re-generate.
8622
8623 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8624 * serial.c (serial_open): Delete check for "ocd".
8625 Fix PR gdb/349.
8626
8627 * Makefile.in (linux-thread.o): Delete target.
8628 * linux-thread.c: Delete file.
8629
8630 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8631 renamed SH files to be consistent.
8632
8633 * symtab.c (sort_search_symbols): Use xfree.
8634
8635 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8636
8637 * arm-linux-tdep.c (arm_linux_init_abi): Register
8638 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8639 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8640 definition with undef, since we don't want the sysvr4 definition.
8641 (SKIP_TRAMPOLINE_CODE): Likewise.
8642
8643 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8644
8645 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8646
8647 * configure.in: (AC_CHECK_FUNCS) Added test for
8648 canonicalize_file_name Regenerated.
8649 * config.in, configure: Regenerated.
8650 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8651 defined use canonicalize_file_name.
8652
8653 2002-02-23 Michael Chastain <mec@shout.net>
8654
8655 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8656
8657 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8658
8659 * README: Remove references to cygnus.com.
8660 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8661 dot com'' form. Remove references to cygnus.com and sourceware.
8662
8663 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8664
8665 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8666 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8667 1003.1-2001 no longer allows "head -1".
8668 * gdb/Makefile.in (version.c): Likewise.
8669 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8670 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8671 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8672
8673 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8674
8675 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8676 * command.h (cmd_cfunc_eq): Declare.
8677 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8678
8679 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8680 ``struct cmd_list_element *''.
8681 * cli/cli-cmds.c (is_complete_command): Update. Use
8682 cmd_cfunc_eq.
8683 * top.c (execute_command): Pass the command to
8684 is_complete_command.
8685 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8686
8687 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8688
8689 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8690 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8691 architecture defines.
8692 * s390-tdep.c (s390_gdbarch_init): Likewise.
8693
8694 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8695
8696 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8697 (arm_linux_push_arguments): Likewise.
8698 (arm_linux_init_abi): Register them. Also register linux-specific
8699 call_dummy_words.
8700 (find_minsym_and_objfile): Use strcmp, not STREQ.
8701 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8702 (arm_linux_call_dummy_words): Delete declaration.
8703 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8704 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8705 declarations.
8706 (LOWEST_PC): Delete.
8707
8708 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8709
8710 * maint.c (print_section_info): Do not prepend `0x' to filepos
8711 output, it will be handled by local_hex_string_custom.
8712
8713 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8714
8715 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8716 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8717 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8718
8719 2002-02-22 Jim Blandy <jimb@redhat.com>
8720
8721 Indicate that the bcache functions don't change the strings
8722 they're passed.
8723 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8724 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8725
8726 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8727
8728 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8729
8730 2002-02-21 Christopher Faylor <cgf@redhat.com>
8731
8732 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8733 find the complete path to a loaded DLL.
8734
8735 2002-02-21 Fred Fish <fnf@redhat.com>
8736
8737 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8738 that marks the end of the range of a function, enter a line number
8739 entry that has a line number of zero and a PC offset that matches
8740 the end of the function. This starts a range of PC's for which no
8741 line number information is known.
8742 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8743 PC's for which no line number info is found (line number is zero)
8744 then we didn't find any valid line information.
8745 * symtab.h: Document use of zero line number entry.
8746
8747 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8748
8749 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8750 (have_ptrace_getvrregs): Define for run time checks.
8751 (gdb_vrregset_t): New type for Altivec register handling.
8752 (fetch_register, store_register): Fetch/store altivec register
8753 when needed.
8754 (fetch_altivec_register, store_altivec_register): New functions.
8755 (supply_vrregset, fill_vrregset): New functions.
8756 (fetch_altivec_registers, store_altivec_registers): New functions.
8757 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8758 registers as well.
8759
8760 2002-02-21 Jiri Smid <smid@suse.cz>
8761
8762 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8763
8764 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8765
8766 * Makefile.in (armnbsd-nat.o): Update dependencies.
8767 * armnbsd-nat.c (supply_gregset): New function. Common code to
8768 supply the integer register set.
8769 (supply_fparegset): New function. Similar for FPA registers.
8770 (fetch_regs, fetch_fp_regs): Use them.
8771 (fetch_core_registers): Likewise.
8772 (fetch_elfcore_registers): New function.
8773 (arm_netbsd_elfcore_fns): New core-file type specification.
8774 (_initialize_arm_netbsd_nat): Register it.
8775
8776 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8777
8778 * armnbsd-nat.c: Include gdbcore.h.
8779 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8780 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8781 'void' to declaration, to shut up ARI.
8782 (fetch_core_registers): Make static. Rewrite using supply_register.
8783 (arm_netbsd_core_fns): New core-file type specification.
8784 (_initialize_arm_netbsd_nat): New function.
8785
8786 2002-02-21 Christopher Faylor <cgf@redhat.com>
8787
8788 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8789 value.
8790
8791 2002-02-20 Christopher Faylor <cgf@redhat.com>
8792
8793 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8794 fails.
8795
8796 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8797
8798 * jv-exp.y (parse_number): Change type of implicit longs
8799 to builtin_type_uint64.
8800
8801 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8802
8803 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8804 to be an integer instead of a `union wait'.
8805
8806 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8807
8808 * mips-linux-nat.c: Call the operating system GNU/Linux.
8809 * mips-linux-tdep.c: Likewise.
8810 * mips-tdep.c: Likewise.
8811
8812 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8813
8814 Fix PR gdb/265.
8815 * jv-exp.y (parse_number): Handle 64-bit integers.
8816
8817 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8818
8819 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8820 AC_STDC_HEADERS to AC_HEADER_STDC.
8821 * gdbserver/configure: Regenerated.
8822
8823 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8824
8825 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8826 is defined.
8827 * sparc-tdep.c (get_longjmp_target): Likewise.
8828
8829 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8830
8831 * News: Add news about ARM and Multi-arch. Mention the new target
8832 arm*-*-netbsd*.
8833
8834 2002-02-19 Jim Blandy <jimb@redhat.com>
8835
8836 * stabsread.c (error_type_complaint): Improve error message.
8837
8838 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8839
8840 * gdbserver/README: Update documentation.
8841 * gdbserver/configure.in: Update configury to match documentation.
8842 * gdbserver/Makefile.in: Likewise.
8843 * gdbserver/configure: Regenerated.
8844 * gdbserver/aclocal.m4: New file, generated by aclocal.
8845 * gdbserver/config.in: New file, generated by autoheader.
8846
8847 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8848
8849 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8850 armnbsd-nat.c.
8851
8852 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8853
8854 * arm-tdep.h (enum arm_float_model): New enum.
8855 (struct gdbarch_tdep): Add fp_model.
8856 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8857 up floating-point conversions until we know the floating-point model
8858 in use by the inferior. Don't complain about being unable to
8859 determine the ABI of the inferior when we don't have one.
8860 (arm_extract_return_value): Support different floating-point models.
8861 (arm_store_return_value): Likewise.
8862 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8863 ARM_FLOAT_SOFT.
8864 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8865
8866 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8867
8868 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8869 of ``current_gdbarch''.
8870
8871 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8872
8873 * armnbsd-nat.c : ANSIfy all function declarations.
8874 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8875 (fetch_inferior_registers): Re-implement in terms of above.
8876 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8877 (store_inferior_registers): Re-implement in terms of above.
8878
8879 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8880
8881 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8882 kernel.
8883 * arm-linux-tdep.c: Likewise.
8884 * config/arm/tm-linux.h: Likewise.
8885
8886 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8887
8888 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8889 * config/arm/nbsd.mt (TM_FILE): Delete.
8890 * config/arm/tm-nbsd.h: Delete.
8891
8892 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8893
8894 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8895 Initialize CALL_DUMMY_LENGTH.
8896
8897 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8898
8899 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8900 function.
8901 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8902 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8903 defines one thing and that is incorrect for this port.
8904 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8905
8906 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8907
8908 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8909
8910 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8911
8912 * win32-nat.c (display_selector): New function. Displays information
8913 about the information returned by GetThreadSelectorEntry API function.
8914 (display_selectors): New function. Displays the infomation of
8915 the selector given as argument, or of CS, DS ans FS selectors
8916 if no argument is given.
8917 ( _initialize_inftarg): Add "w32" as info prefix command.
8918 Add "info w32 selector" as command calling display_selectors.
8919
8920 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8921
8922 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8923 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8924 if not defined.
8925
8926 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8927
8928 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8929
8930 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8931
8932 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8933 (arm_fix_call_dummy): Call it.
8934 (arm_call_dummy_breakpoint_offset): Delete.
8935 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8936 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8937
8938 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8939
8940 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8941 Default to func_frame_chain_valid.
8942 * gdbarch.h, gdbarch.c: Re-generate.
8943 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8944
8945 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8946
8947 * ppc-linux-nat.c: Update copyright.
8948 (fetch_register, store_register): Add tid parameter, don't compute
8949 tid here.
8950 (fetch_ppc_registers, store_ppc_registers): Add tid
8951 parameter. Pass it along to callees.
8952 (fetch_inferior_registers, store_inferior_registers): Compute tid
8953 here, and pass it to calleed functions.
8954 (fill_gregset, supply_fpregset): Clean up formatting.
8955
8956 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8957
8958 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8959 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8960
8961 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8962
8963 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8964 * gdbarch.c gdbarch.h: Regenerate.
8965 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8966 function.
8967 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8968 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8969 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8970
8971 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8972 * arm-tdep.c (arm_get_longjmp_target): New function.
8973 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8974 this to a positive value register arm_get_longjmp_target as the
8975 longjmp handler.
8976 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8977 (arm_linux_init_abi): Set up longjmp description in tdep.
8978 * armnbsd-nat.c (get_longjmp_target): Delete.
8979 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8980 description in tdep.
8981 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8982 (get_longjmp_target): Delete declaration.
8983 (GET_LONGJMP_TARGET): Delete.
8984 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8985 (GET_LONGJMP_TARGET): Delete.
8986
8987 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8988
8989 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8990 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8991 of ``current_gdbarch''.
8992
8993 2002-02-17 Tom Tromey <tromey@redhat.com>
8994
8995 * cli/cli-cmds.c (compare_strings): New function.
8996 (complete_command): Only print each unique item once.
8997 * completer.h (complete_line): Declare.
8998 * completer.c (complete_line): New function.
8999 (line_completion_function): Use it.
9000
9001 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9002
9003 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9004 * gdbarch.h, gdbarch.c: Re-generate.
9005
9006 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9007
9008 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9009
9010 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9011
9012 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9013 * valops.c (value_arg_coerce): Don't take the address of a reference
9014 to convert an argument to a reference.
9015
9016 2002-02-15 Christopher Faylor <cgf@redhat.com>
9017
9018 * win32-nat.c (get_image_name): New function.
9019 (handle_load_dll): Use get_image_name function.
9020 (get_child_debug_event): Avoid registering debug events until possibly
9021 execed process is started.
9022 (child_create_inferior): Allow invocation via shell so that command
9023 line redirection, etc. works ok.
9024 (_initialize_inftarg): Add new command: "set shell" to control whether
9025 a shell is used to start a process.
9026
9027 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9028
9029 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9030 instead of find_register_by_number.
9031 (cannot_store_register): Likewise.
9032
9033 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9034
9035 * dwarf2read.c: Replace fprintf (stderr, ...) by
9036 fprintf_unfiltered (gdb_stderr, ...).
9037
9038 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * gdbserver/gdbserver.1: Document --attach.
9041
9042 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9045 descriptions.
9046 * arm-tdep.c (arm_default_arm_le_breakpoint)
9047 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9048 (arm_default_thumb_be_breakpoint): New. Initialize them from
9049 traditional breakpoint defines.
9050 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9051 (arm_gdbarch_init): Initialize new breakpoint variables.
9052 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9053 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9054 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9055 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9056 code out to ...
9057 (arm_netbsd_init_abi_common): ... here; new function.
9058 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9059 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9060 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9061 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9062
9063 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9064
9065 * arm-tdep.h (enum arm_abi): New enum.
9066 (struct gdbarch_tdep): New structure.
9067 (LOWEST_PC): Provide a default.
9068 (arm_gdbarch_register_os_abi): Declare new function.
9069 * arm-tdep.c (arm_abi_names): New array.
9070 (process_note_abi_tag_sections): New function.
9071 (get_elfosabi): New function.
9072 (arm_gdbarch_register_os_abi): New function.
9073 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9074 support for that ABI has been built in, then call the appropriate
9075 configuration routine. Use gdbarch_num_regs() to get the number
9076 of registers.
9077 (arm_dump_tdep): New function.
9078 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9079 place-holder functions.
9080 (_initialize_arm_tdep): Register them.
9081 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9082
9083 * armnbsd-tdep.c: New file.
9084 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9085 * config/arm/nbsd.mt (TDEPFILES): Add it.
9086 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9087
9088 * armnbsd-nat.c: Include regcache.h.
9089 * Makefile.in (armnbsd-nat.o): Update dependency list.
9090
9091 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9092
9093 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9094
9095 * gdbserver/Makefile.in: Fix typos in target rules.
9096
9097 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9098
9099 Fix part of PR gdb/267.
9100 * linespec.c (find_methods): Handle constructors specially for now.
9101
9102 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9103
9104 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9105 handling.
9106 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9107 standard_coerce_float_to_double().
9108
9109 2002-02-14 Christopher Faylor <cgf@redhat.com>
9110
9111 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9112 GDBINIT_FILENAME.
9113
9114 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9115
9116 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9117 find_variant_by_name, because it confuses the multiarch
9118 framework. Return NULL if there isn't an architecture with the
9119 user supplied name, instead of forcing a different one without
9120 recording the change with the multiarch machinery.
9121 (find_variant_by_name): Delete.
9122
9123 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9124
9125 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9126 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9127
9128 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9129
9130 * stack.c (print_frame_info_base): When calling
9131 print_frame_info_listing_hook, set current_source_symtab.
9132
9133 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9134
9135 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9136 and remove unused $(INCLUDE_DIR).
9137 Add regcache.c to OBS.
9138 Add generated register protocol files to clean target.
9139 Update dependencies for new objects, obsolete old target code.
9140
9141 * gdbserver/linux-low.c: Remove all platform-specific code to
9142 new files. Remove various dead code. Update to use regcache
9143 functionality.
9144 * gdbserver/remote-utils.c (fromhex): Add return statement
9145 to quiet warning.
9146 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9147 constant.
9148 (input_interrupt): Add integer parameter to match prototype
9149 of a signal handler.
9150 (outreg): Use register_data ().
9151 (prepare_resume_reply): Use gdbserver_expedite_regs.
9152 * gdbserver/server.c (main): Dynamically allocate own_buf because
9153 PBUFSIZ is no longer constant. Use registers_to_string () and
9154 registers_from_string ().
9155 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9156 for error (), fatal (), and warning (). Update definition of
9157 PBUFSIZ to use regcache functionality. Add include guard.
9158 * gdbserver/utils.c (fatal): Add missing ``const''.
9159 (warning): New function.
9160
9161 * regformats/regdat.sh: Include "regcache.h" in generated files.
9162 Provide init_registers () function.
9163 * regformats/regdef.h: Add prototype for set_register_cache ().
9164 Add include guard.
9165
9166 * gdbserver/linux-arm-low.c: New file.
9167 * gdbserver/linux-i386-low.c: New file.
9168 * gdbserver/linux-ia64-low.c: New file.
9169 * gdbserver/linux-m68k-low.c: New file.
9170 * gdbserver/linux-mips-low.c: New file.
9171 * gdbserver/linux-ppc-low.c: New file.
9172 * gdbserver/linux-sh-low.c: New file.
9173
9174 * gdbserver/regcache.c: New file.
9175 * gdbserver/regcache.h: New file.
9176
9177 * gdbserver/low-linux.c: Removed obsolete file.
9178
9179 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9182 * config/i386/linux.mt: Likewise.
9183 * config/ia64/linux.mt: Likewise.
9184 * config/m68k/linux.mh: Likewise.
9185 * config/powerpc/linux.mh: Likewise.
9186 * config/mips/linux.mt: Likewise.
9187
9188 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9189
9190 * config/i386/i386lynx.mh: Mark gdbserver variables
9191 as (currently) obsolete for this target.
9192 * config/i386/nbsd.mt: Likewise.
9193 * config/i386/nbsdelf.mt: Likewise.
9194 * config/m32r/m32r.mt: Likewise.
9195 * config/m68k/m68klynx.mh: Likewise.
9196 * config/m68k/nbsd.mt: Likewise.
9197 * config/m68k/sun3os4.mh: Likewise.
9198 * config/mips/vr5000.mt: Likewise.
9199 * config/ns32k/nbsd.mt: Likewise.
9200 * config/pa/hppabsd.mh: Likewise.
9201 * config/pa/hppaosf.mh: Likewise.
9202 * config/powerpc/nbsd.mt: Likewise.
9203 * config/rs6000/rs6000lynx.mh: Likewise.
9204 * config/s390/s390.mt: Likewise.
9205 * config/s390/s390x.mt: Likewise.
9206 * config/sparc/sparclynx.mh: Likewise.
9207 * config/sparc/sun4os4.mh: Likewise.
9208 * config/i386/x86-64linux.mt: Likewise.
9209 * config/sparc/linux.mh: Likewise.
9210
9211 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9212
9213 * configure.tgt: Configure gdbserver only for known working
9214 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9215 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9216 SUBDIRS if it is configured. Update comment for ${nativefile}.
9217 * configure: Regenerated.
9218
9219 2002-02-13 Michael Snyder <msnyder@redhat.com>
9220
9221 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9222
9223 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9224 (default_gcore_mach): Just return 0, work around a problem in bfd.
9225 (default_gcore_target): OK to return NULL if exec_bfd is null.
9226 (make_mem_sec): Use a cast, avoid a warning.
9227
9228 * procfs.c (find_memory_regions_callback): Use a cast instead of
9229 calling host_pointer_to_address (which complains if
9230 sizeof (host pointer) != sizeof (target pointer)).
9231 (procfs_make_note_section): Avoid overflow in psargs string.
9232
9233 * procfs.c (procfs_make_note_section): Make the default
9234 implementation return an error.
9235
9236 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9237
9238 * procfs.c (procfs_make_note_section): Provide a default definition
9239 (for alpha-dec-osf4.0f). Fix typos.
9240
9241 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9242
9243 * linux-proc.c: Add include of regcache.h.
9244 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9245
9246 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9247
9248 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9249 * memattr.c (create_mem_region): Disallow useless empty region.
9250 Regions are half-open intervals, so allow [A..B) [B..C) as
9251 non-overlapping.
9252
9253 2002-02-13 Michael Chastain <mec@shout.net>
9254
9255 * defs.h: Kill CONST_PTR.
9256 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9257 * c-lang.c (c_builtin_types): Likewise.
9258 * ch-lang.c (ch_builtin_types): Likewise.
9259 * f-lang.c (f_builtin_types): Likewise.
9260 * language.c (unknown_builtin_types): Likewise.
9261 * m2-lang.c (m2_builtin_types): Likewise.
9262 * p-lang.c (pascal_builtin_types): Likewise.
9263 * scm-lang.c (c_builtin_types): Likewise.
9264
9265 2002-02-13 Keith Seitz <keiths@redhat.com>
9266
9267 * arm-tdep.h (arm_get_next_pc): Add declaration.
9268
9269 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9272 with other related struct-returning functions.
9273 (arm_extract_struct_value_address): New function.
9274 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9275 initialize float_format, double_format and long_double_format as
9276 appropriate to the endianness of the target.
9277 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9278 (arm_use_struct_convention): Delete declaration.
9279 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9280
9281 2002-02-13 Keith Seitz <keiths@redhat.com>
9282
9283 * defs.h (core_addr_to_string_nz): New function.
9284
9285 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9286
9287 Apply missing bits of 2002-01-15 patch.
9288 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9289 (fill_fpregset): Use i387_fill_fsave.
9290
9291 2002-02-12 Keith Seitz <keiths@redhat.com>
9292
9293 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9294 (core_addr_to_string_nz): New function.
9295
9296 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9297
9298 * arm-linux-nat.c: Really include arm-tdep.h.
9299 * config/arm/tm-linux.h (struct type, struct value): Declare.
9300
9301 2002-02-11 Michael Snyder <msnyder@redhat.com>
9302
9303 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9304 (gcore section): Ifdef for Solaris and Unixware only.
9305 (procfs_do_thread_registers): Unixware needs one lwpstatus
9306 per thread (not one prstatus or pstatus).
9307 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9308 not over all gdb threads. For unixware, call elfcore_write_pstatus
9309 once before iterating over threads.
9310
9311 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9312
9313 * arm-tdep.h: New file.
9314 * arm-tdep.c: Include arm-tdep.h.
9315 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9316 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9317 (arm_print_float_info, arm_register_type, convert_to_extended)
9318 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9319 (arm_extract_return_value, arm_register_name): Make static.
9320 (arm_software_single_step): Similarly. Fix types in declaration.
9321 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9322 (arm_store_return_value, arm_store_struct_return): New functions.
9323 (arm_gdbarch_init): Register the above functions. Also register
9324 call_dummy_start_offset, sizeof_call_dummy_words,
9325 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9326 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9327 max_register_virtual_size, register_size. Set up
9328 prologue_cache.saved_regs here, rather than ...
9329 (_initialize_arm_tdep): ... here.
9330 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9331 declarations.
9332 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9333 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9334 (arm_print_float_info, arm_register_type, convert_to_extended)
9335 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9336 (arm_extract_return_value, arm_register_name): Delete declarations.
9337 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9338 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9339 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9340 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9341 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9342 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9343 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9344 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9345 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9346 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9347 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9348 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9349 interface.
9350 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9351 * remote-rdi.c remote-rdp.c: Likewise.
9352 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9353 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9354 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9355 definition.
9356
9357 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9358 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9359 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9360 from non-ARM_ prefixed definitions.
9361 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9362 all uses of above.
9363 * remote-rdi.c remote-rdp.c: Likewise.
9364 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9365
9366 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9367
9368 * arm-tdep.c (arm_frameless_function_invocation)
9369 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9370 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9371 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9372 (arm_pop_frame, arm_get_next_pc): Make static.
9373 (arm_gdbarch_init): Register above in gdbarch structure.
9374 (arm_read_fp): Renamed from arm_target_read_fp.
9375 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9376 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9377 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9378 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9379 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9380 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9381 (arm_pc_is_thumb_dummy): Delete declarations.
9382 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9383 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9384 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9385 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9386
9387 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9388
9389 * symtab.c (compare_search_syms): New function.
9390 (sort_search_symbols): New function.
9391 (search_symbols): Sort symbols after searching rather than
9392 before.
9393
9394 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9395
9396 * NEWS: Linux -> GNU/Linux.
9397
9398 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9399
9400 * gdbarch.sh: For for level one methods, disallow a definition
9401 when partially multi-arched. Add comments explaining rationale.
9402 * gdbarch.h: Re-generate.
9403
9404 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9405
9406 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9407 multi-arch partial.
9408
9409 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9410
9411 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9412 field. Use diff -u.
9413 * gdbarch.c: Re-generate.
9414
9415 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9416
9417 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9418 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9419 partial.
9420
9421 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9422
9423 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9424 multi-arch partial.
9425 (PUSH_ARGUMENTS): Switch to using predefault.
9426 * gdbarch.c: Regenerate.
9427
9428 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9429
9430 * valops.c (PUSH_ARGUMENTS): Delete definition.
9431 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9432 partial. Default to default_push_arguments.
9433 * gdbarch.h, gdbarch.c: Regenerate.
9434
9435 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9436
9437 * defs.h (throw_exception): Rename return_to_top_level. Update
9438 comments.
9439 * utils.c (error_stream, internal_verror, quit): Ditto.
9440 * top.c (throw_exception, catcher): Ditto.
9441 * sparclet-rom.c (sparclet_load): Ditto.
9442 * remote.c (interrupt_query, minitelnet): Ditto.
9443 * remote-sds.c (interrupt_query): Ditto.
9444 * remote-mips.c (mips_error, mips_kill): Ditto.
9445 * ocd.c (interrupt_query): Ditto.
9446 * monitor.c (monitor_interrupt_query): Ditto.
9447 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9448 * target.h: Update comment.
9449
9450 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9451
9452 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9453
9454 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9455 default_double_format.
9456 * gdbarch.h, gdbarch.c: Re-generate.
9457 * findvar.c (floatformat_unknown): Delete variable definition.
9458 * doublest.h (floatformat_unknown): Delete variable declaration.
9459
9460 2002-02-09 Jim Blandy <jimb@redhat.com>
9461
9462 * stabsread.c (read_type): Add code to parse Sun's syntax for
9463 prototyped function types.
9464
9465 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9466
9467 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9468 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9469
9470 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9471
9472 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9473 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9474 now _initialize_xcoffsolib gets called again and overrides the
9475 commands from solib.c in a native configuration.
9476
9477 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9478
9479 * doublest.c (store_typed_floating): Don't try to return a value.
9480 Fixes PR gdb/290.
9481
9482 2002-02-08 Jim Blandy <jimb@redhat.com>
9483
9484 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9485 is prototyped and has no arguments, print its argument list as
9486 `(void)'.
9487
9488 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9489
9490 * MAINTAINERS (write-after-approval): Add myself.
9491 (paper-trail): I've escaped!
9492
9493 2002-02-08 Christopher Faylor <cgf@redhat.com>
9494
9495 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9496 changes.
9497 (_initialize_check_for_gdb_ini): Ditto.
9498
9499 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9500
9501 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9502 xaprintf -> xasprintf.
9503
9504 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9505
9506 * win32-nat.c: Remove use of printf and sprintf functions.
9507
9508 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9509
9510 * arm-tdep.c (arm_frame_chain_valid): Make static.
9511 (arm_push_arguments): Likewise.
9512 (arm_gdbarch_init): New function.
9513 (_initialize_arm_tdep): Call it.
9514 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9515 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9516 (FRAME_CHAIN_VALID): Delete.
9517 (arm_frame_chain_valid): Delete declaration.
9518 (PUSH_ARGUMENTS): Delete.
9519 (arm_push_arguments): Delete declaration.
9520 (CALL_DUMMY_P): Delete.
9521
9522 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9523 Corinna Vinschen <vinschen@redhat.com>
9524
9525 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9526 on builtin float types.
9527
9528 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9529
9530 * utils.c: Include <curses.h> before "bfd.h".
9531 * tui/tui-hooks.c: Likewise.
9532 * tui/tui.c: Likewise.
9533 * tui/tuiCommand.c: Likewise.
9534 * tui/tuiData.c: Likewise.
9535 * tui/tuiDataWin.c: Likewise.
9536 * tui/tuiDisassem.c: Likewise.
9537 * tui/tuiGeneralWin.c: Likewise.
9538 * tui/tuiIO.c: Likewise.
9539 * tui/tuiLayout.c: Likewise.
9540 * tui/tuiRegs.c: Likewise.
9541 * tui/tuiSource.c: Likewise.
9542 * tui/tuiSourceWin.c: Likewise.
9543 * tui/tuiStack.c: Likewise.
9544 * tui/tuiWin.c: Likewise.
9545
9546 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9547
9548 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9549 to include space for pseudoregs as well. Update loops accordingly.
9550 (sh_fp_frame_init_saved_regs): Ditto.
9551 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9552
9553 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9554
9555 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9556 Add Richard Earnshaw to Arm maintainers.
9557
9558 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9559
9560 * defs.h (warning_begin): Delete declaration.
9561
9562 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9563 Delete macro.
9564
9565 2002-02-07 Michael Snyder <msnyder@redhat.com>
9566
9567 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9568 Logic bug, remove misplaced else.
9569
9570 2002-02-07 Klee Dienes <klee@apple.com>
9571
9572 * fork-inferior.c (fork_inferior): Add '!' to the list of
9573 characters that need to be quoted when building a string for the
9574 shell. Quote '!' specifically with a backslash, since CSH chokes
9575 when trying to evaluate "str!str".
9576
9577 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9578
9579 * rdi-share/host.h: Only provide a typedef for bool if it is not
9580 defined.
9581
9582 2002-02-04 Michael Snyder <msnyder@redhat.com>
9583
9584 * breakpoint.h (enum bptype): Add new overlay event bp type.
9585 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9586
9587 * breakpoint.c (create_internal_breakpoint): New function.
9588 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9589 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9590 (create_thread_event_breakpoint): Ditto.
9591 (create_solib_event_breakpoint): Ditto.
9592 (create_overlay_event_breakpoint): New function.
9593 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9594 (update_breakpoints_after_exec): Delete and re-initialize
9595 overlay event breakpoints after an exec. Add FIXME comment
9596 about longjmp breakpoint.
9597 (print_it_typical): Ignore overlay event breakpoints.
9598 (print_one_breakpoint): Ditto.
9599 (mention): Ditto.
9600 (bpstat_what): Do not stop for overlay event breakpoints.
9601 (delete_breakpoint): Don't delete overlay event breakpoints.
9602 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9603 (breakpoint_re_set): Re-create overlay event breakpoint.
9604
9605 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9606 (overlay_manual_command): Disable overlay breakpoints.
9607 (overlay_off_command): Disable overlay breakpoints.
9608
9609 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9610
9611 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9612 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9613 to here from config/tm-arm.h.
9614 (coff_sym_is_thumb): Make static.
9615 (arm_elf_make_msymbol_special): New function.
9616 (arm_coff_make_msymbol_special): New function.
9617 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9618 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9619 (coff_sym_is_thumb): Delete declaration.
9620 (arm_elf_make_msymbol_special): Declare.
9621 (arm_coff_make_msymbol_special): Declare.
9622 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9623 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9624
9625 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9626
9627 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9628
9629 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9630
9631 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9632 * gdbarch.c gdbarch.h: Regenerate.
9633 * arch-utils.c (default_print_float_info): New function.
9634 * arch-utils.h (default_print_float_info): Prototype it.
9635 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9636 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9637 (PRINT_FLOAT_INFO): Document it.
9638
9639 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9640 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9641 (PRINT_FLOAT_INFO): Define.
9642
9643 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9644
9645 * win32-nat.c (_initialize_check_for_gdb_ini):
9646 Add typecast to sprintf argument to suppress a warning.
9647
9648 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9649
9650 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9651 to allow easier handling of pass state.
9652 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9653 that gives exception name and address.
9654 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9655 and set last_sig value to ourstatus->value.sig. Some missing
9656 exceptions added.
9657 (child_continue): Correctly report continue_status.
9658 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9659 TARGET_SIGNAL_0 (new default value).
9660 (child_resume): consider sig argument passed to decide if
9661 the exception should be passed to debuggee or not.
9662
9663 2002-02-05 Michael Snyder <msnyder@redhat.com>
9664
9665 * regcache.c (fetch_register): Call target_fetch_register
9666 only if we don't call FETCH_PSEUDO_REGISTER.
9667 (store_register): Call target_store_register only if we
9668 don't call STORE_PSEUDO_REGISTER.
9669
9670 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9671
9672 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9673 ELF_MAKE_MSYMBOL_SPECIAL.
9674 * gdbarch.c, gdbarch.h: Regenerate.
9675 * arch-utils.c (default_make_msymbol_special): New function.
9676 * arch-utils.h (default_make_msymbol_special): Export.
9677 * elfread.c (elf_symtab_read): Compile use of
9678 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9679 multiarched.
9680 * coffread.c (coff_symtab_read): Ditto, for
9681 COFF_MAKE_MSYMBOL_SPECIAL.
9682
9683 2002-02-05 Jim Blandy <jimb@redhat.com>
9684
9685 * solib-svr4.c (svr4_truncate_ptr): New function.
9686 (svr4_relocate_section_addresses): Do the address arithmetic with
9687 the appropriate truncation for target addresses, even when
9688 CORE_ADDR is larger than a target address.
9689
9690 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9691
9692 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9693 to (int *).
9694
9695 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9696
9697 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9698 code.
9699
9700 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9701
9702 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9703
9704 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9705
9706 * gdbserver/linux-low.c: Remove unused include files.
9707
9708 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9709
9710 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9711 (read_inferior_memory): Use it.
9712 (write_inferior_memory): Likewise.
9713
9714 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9715
9716 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9717 grubbing through sys_errlist.
9718
9719 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9722
9723 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9724 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9725
9726 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9727
9728 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9729 (do_sfunc, set_cmd_sfunc): New functions.
9730
9731 * command.h (struct cmd_list_element): Add field func.
9732 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9733 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9734 * cli/cli-decode.h: Ditto.
9735
9736 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9737 (help_all, help_cmd_list): Ditto.
9738 (find_cmd, complete_on_cmdlist): Ditto.
9739 * top.c (execute_command): Ditto.
9740
9741 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9742 function.sfunc.
9743
9744 * infcmd.c (notice_args_read): Fix function signature.
9745
9746 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9747 * cli/cli-decode.c (add_set_cmd): Ditto.
9748 * utils.c (initialize_utils): Ditto.
9749 * maint.c (_initialize_maint_cmds): Ditto.
9750 * infrun.c (_initialize_infrun): Ditto.
9751 * demangle.c (_initialize_demangler): Ditto.
9752 * remote.c (add_packet_config_cmd): Ditto.
9753 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9754 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9755 * proc-api.c (_initialize_proc_api): Ditto.
9756 * kod.c (_initialize_kod): Ditto.
9757 * valprint.c (_initialize_valprint): Ditto.
9758 * top.c (init_main): Ditto.
9759 * infcmd.c (_initialize_infcmd): Ditto.
9760 * corefile.c (_initialize_core): Ditto.
9761 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9762 * arch-utils.c (initialize_current_architecture): Ditto.
9763 (_initialize_gdbarch_utils): Ditto.
9764 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9765
9766 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9767 * wince.c (_initialize_inftarg): Ditto.
9768 * symfile.c (_initialize_symfile): Ditto.
9769 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9770 * language.c (_initialize_language): Ditto.
9771 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9772
9773 2002-02-04 Michael Snyder <msnyder@redhat.com>
9774
9775 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9776
9777 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9778
9779 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9780 Add rules for building the register data files.
9781
9782 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9783
9784 * regformats/regdat.sh: Add braces to the definition of
9785 expedite_regs_${arch}.
9786
9787 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9788
9789 * regformats/regdef.h (struct reg): Add comment describing the
9790 requirements for offset and size fields.
9791
9792 2002-02-04 Andreas Schwab <schwab@suse.de>
9793
9794 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9795 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9796
9797 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9798
9799 * gdbarch.sh (copyright): Update years in generated header.
9800 (SMASH_TEXT_ADDRESS): Add rule.
9801 * gdbarch.h, gdbarch.c: Re-generate.
9802 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9803 * dbxread.c: Likewise.
9804 * dwarfread.c: Likewise.
9805 * elfread.c: Likewise.
9806 * somread.c: Likewise.
9807
9808 * arm-tdep.c (arm_smash_text_address): New function.
9809 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9810
9811 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9812
9813 Add support for hardware watchpoints on win32 native.
9814 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9815 CONTEXT_DEBUG_REGISTERS.
9816 (dr variable): New variable. Static array containing a local copy
9817 of debug registers.
9818 (debug_registers_changed): New variable. Reflects when debug registers
9819 are changed and need to be written to inferior.
9820 (debug_registers_used): New variable. Reflects when any debug register
9821 was set, used when new threads are created.
9822 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9823 i386-nat code.
9824 (thread_rec): Set dr array if id is the thread of current_event .
9825 (child_continue, child_resume): Change the debug registers for all
9826 threads if debug_registers_changed.
9827 (child_add_thread): Change the debug registers if debug_registers_used.
9828 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9829 Link nm.h to new nm-cygwin.h file.
9830 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9831 of hardware registers.
9832
9833 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9834
9835 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9836 Restore behavour broken by 2002-01-20 Andrew Cagney
9837 <ac131313@redhat.com> IEEE_FLOAT removal.
9838
9839 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9840
9841 * c-valprint.c (c_val_print): Pass a proper valaddr to
9842 cp_print_class_method.
9843 * valops.c (search_struct_method): If there is only one method
9844 and args is NULL, return that method.
9845
9846 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9847
9848 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9849 accessing tag_name directly.
9850
9851 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9852
9853 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9854 of accessing tag_name directly.
9855
9856 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9857
9858 PR gdb/280
9859 * gdbtypes.c (replace_type): New function.
9860 * gdbtypes.h (replace_type): Add prototype.
9861 * stabsread.c (read_type): Use replace_type.
9862
9863 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9864
9865 * Makefile.in (memattr.o): Add missing dependencies rule.
9866
9867 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9868
9869 * breakpoint.c (break_at_finish_command): Really export.
9870 (break_at_finish_at_depth_command): Ditto.
9871 (tbreak_at_finish_command): Ditto.
9872 * hppa-tdep.c: Include completer.h.
9873 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9874 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9875
9876 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9877
9878 * utils.c (do_write): New function.
9879 (error_stream): Rewrite combining the code from error_begin and
9880 verror.
9881 (verror): Rewrite using error_stream.
9882 (error_begin): Delete function.
9883
9884 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9885
9886 * utils.c (error_begin): Make static.
9887 * defs.h (error_begin): Delete declaration.
9888
9889 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9890 (decode_line_1): Use cplusplus_error instead of error_begin,
9891 cplusplus_hint and return_to_top_level.
9892 * coffread.c (coff_symfile_read): Use error instead of error_begin
9893 and return_to_top_level.
9894 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9895
9896 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9897
9898 * language.h (type_error, range_error): Make string parameter
9899 constant.
9900 * language.c (warning_pre_print): Delete extern declaration.
9901 * dwarfread.c (warning_pre_print): Ditto.
9902 * language.c (type_error, range_error): Rewrite to use verror and
9903 vwarning instead of warning_begin.
9904
9905 2002-02-01 Michael Snyder <msnyder@redhat.com>
9906
9907 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9908 (set_ignore_count): Move misplaced comment back where it belongs.
9909
9910 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9911
9912 * command.h (NO_FUNCTION): Delete macro.
9913 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9914 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9915 * tracepoint.c (_initialize_tracepoint): Ditto.
9916 * cli/cli-decode.c (add_set_cmd): Ditto.
9917 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9918
9919 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9922 Update ``this'' pointer when calling virtual functions.
9923
9924 2002-02-01 Michael Snyder <msnyder@redhat.com>
9925
9926 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9927 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9928
9929 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * regformats/reg-arm.dat: New file.
9932 * regformats/reg-i386.dat: New file.
9933 * regformats/reg-ia64.dat: New file.
9934 * regformats/reg-m68k.dat: New file.
9935 * regformats/reg-mips.dat: New file.
9936 * regformats/reg-ppc.dat: New file.
9937 * regformats/reg-sh.dat: New file.
9938 * regformats/regdef.h: New file.
9939 * regformats/regdat.sh: New file.
9940
9941 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9942
9943 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9944 (arm_frame_args_address, arm_frame_locals_address): New functions.
9945 (arm_frame_num_args): New function.
9946 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9947 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9948 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9949
9950 2002-01-31 Michael Snyder <msnyder@redhat.com>
9951
9952 * breakpoint.c (break_at_finish_command): Export.
9953 (break_at_finish_at_depth_command): Export.
9954 (tbreak_at_finish_command): Export.
9955 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9956 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9957 "tbreak" commands, which are HPPA specific.
9958
9959 * printcmd.c (disassemble_command): Remove an ancient
9960 artifact of an old merge.
9961
9962 * symfile.h (enum overlay_debugging_state):
9963 Define enum constant values for overlay mode.
9964 * symfile.c (overlay_debugging): Use enums instead of literals.
9965 (overlay_is_mapped, overlay_auto_command,
9966 overlay_manual_command): Ditto.
9967
9968 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9969 breakpoint_here_p, breakpoint_inserted_here_p,
9970 breakpoint_thread_match, bpstat_stop_status,
9971 describe_other_breakpoints, check_duplicates, clear_command):
9972 Coding standard fixes.
9973
9974 * target.c (target_xfer_memory): Add spaces, coding standard.
9975 (do_xfer_memory): Add missing line to trust-readonly
9976 code: check bfd SEC_READONLY flag for section.
9977
9978 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9979
9980 * PROBLEMS: Fix typo, 5.1->5.1.1.
9981
9982 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9983
9984 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9985 data symbols, since we search based on textlow and texthigh.
9986 (find_pc_sect_symtab): Likewise.
9987
9988 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9989
9990 * defs.h (vwarning): Declare.
9991 * utils.c (vwarning): New function.
9992 (warning): Call vwarning.
9993 (warning_begin): Delete function.
9994
9995 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9996 the warning message.
9997 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9998 warning_begin.
9999
10000 2002-01-30 Michael Snyder <msnyder@redhat.com>
10001
10002 * NEWS: Mention "set trust-readonly-sections" command.
10003 Mention generate-core-file command.
10004
10005 2002-01-15 Michael Snyder <msnyder@redhat.com>
10006
10007 * target.c: New command, "set trust-readonly-sections on".
10008 (do_xfer_memory): Honor the suggestion to trust readonly sections
10009 by reading them from the object file instead of from the target.
10010 (initialize_targets): Register command "set trust-readonly-sections".
10011
10012 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10013
10014 * parse.c (target_map_name_to_register): Simplify, search regs and
10015 pseudo-regs using a single loop.
10016
10017 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10018
10019 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10020
10021 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10022
10023 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10024 * config/i386/i386v42mp.mh: Add i387-nat.o .
10025 * i386v4-nat.c: Include i387-nat.h.
10026 (supply_fpregset): Use i387_supply_fsave.
10027 (fill_fpregset): Use i387_fill_fsave.
10028
10029 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10030
10031 * arm-tdep.c (arm_call_dummy_words): Define.
10032 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10033 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10034 (CALL_DUMMY_WORDS): Define.
10035 (arm_call_dummy_words): Declare.
10036 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10037 (arm_linux_call_dummy_words): Declare.
10038
10039 2002-01-30 Andreas Schwab <schwab@suse.de>
10040
10041 * m68klinux-nat.c: Fix last change to use regcache_collect
10042 instead of referencing registers[] directly.
10043
10044 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10045
10046 * parse.c (target_map_name_to_register): Delete code wrapped in
10047 #ifdef REGISTER_NAME_ALIAS_HOOK.
10048
10049 2002-01-28 Michael Snyder <msnyder@redhat.com>
10050
10051 * regcache.c (legacy_read_register_gen): Need to be able to
10052 read pseudo-register as well as real register.
10053 (legacy_write_register_gen): Ditto.
10054
10055 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10056
10057 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10058 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10059 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10060 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10061 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10062 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10063 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10064 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10065 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10066 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10067 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10068 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10069 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10070 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10071 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10072 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10073 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10074 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10075 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10076 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10077
10078 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10079
10080 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10081 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10082 (initialize_current_architecture): Update target_byte_order using
10083 information from BFD.
10084 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10085 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10086
10087 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10088
10089 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10090 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10091
10092 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10093 #ifdef INVALID_FLOAT.
10094 * infcmd.c (do_registers_info): Ditto.
10095 * values.c (unpack_double): Ditto. Add comment.
10096
10097 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10098 already commented out.
10099
10100 2002-01-26 Andreas Schwab <schwab@suse.de>
10101
10102 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10103 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10104 registers and add support for PTRACE_GETREGS.
10105
10106 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10107
10108 GDB 5.1.1 released from 5.1 branch.
10109 * NEWS: Add 5.1.1 news.
10110 * README: Sync with 5.1 branch.
10111
10112 2002-01-23 Fred Fish <fnf@redhat.com>
10113
10114 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10115 stabstring on initial malloc. Reallocing will copy it for us,
10116 if necessary.
10117
10118 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10119
10120 * Makefile.in (hpread_h): Delete.
10121 (HFILES_NO_SRCDIR): Remove hpread.h.
10122 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10123 (hpread.o): Update dependencies.
10124 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10125
10126 * hp-psymtab-read.c: Remove file.
10127 * hp-symtab-read.c: Remove file.
10128 * hpread.h: Remove file.
10129
10130 * hpread.c: Merge all contents of hp-psymtab-read.c,
10131 hp-symtab-read.c and hpread.h into this file, as it was prior to
10132 January 1999.
10133
10134 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10135 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10136 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10137 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10138
10139 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10140
10141 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10142 fill_gregset): Call gdbarch_tdep() just once, assign result to
10143 variable and use that, instead of calling the function several
10144 times.
10145
10146 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10147
10148 * configure.host: Accept sparcv9 as alias for sparc64.
10149 * configure.tgt: Likewise.
10150
10151 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10152
10153 * solib-aix5.c (build_so_list_from_mapfile)
10154 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10155 arguments is not reversed.
10156 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10157 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10158
10159 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10160
10161 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10162 modified version of obsolete sh_fetch_pseudo_register.
10163 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10164 (sh4_register_read): New function.
10165 (sh_pseudo_register_write): New function. Renamed and modified
10166 version of obsolete sh_store_pseudo_register.
10167 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10168 (sh4_register_write): New function.
10169 (sh_gdbarch_init): Remove setting of gdbarch function
10170 fetch_pseudo_register and store_pseudo_register. Remove setting of
10171 register_convert_to_raw, register_convert_to_virtual,
10172 register_convertible.
10173 (sh_sh4_register_convertible): Delete. No longer needed. All is
10174 taken care by architecture specific functions
10175 register_read/register_write.
10176 (sh_sh4_register_convert_to_virtual): Make static.
10177 (sh_sh4_register_convert_to_raw): Ditto.
10178
10179 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10180
10181 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10182 (floatformat_is_nan, floatformat_mantissa): Ditto.
10183
10184 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10185 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10186 builtin_type_ieee_double_little,
10187 builtin_type_ieee_double_littlebyte_bigword,
10188 builtin_type_m68881_ext, builtin_type_i960_ext,
10189 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10190 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10191 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10192 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10193
10194 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10195
10196 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10197 parameter. Set frameless flag if it exists and depended of
10198 whether the scanned function is frameless or not.
10199 (xstormy16_skip_prologue): If function is frameless, return
10200 result of xstormy16_scan_prologue().
10201 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10202 call.
10203
10204 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10205
10206 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10207 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10208 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10209 sh_sh4_register_byte, sh_sh4_register_raw_size,
10210 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10211 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10212 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10213 sh_store_pseudo_register, sh_do_pseudo_register): Call
10214 gdbarch_tdep() just once, assign result to variable and use that,
10215 instead of calling the function several times.
10216
10217 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10218
10219 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10220 macros instead of LAST_FPU_CTRL_REGNUM.
10221 (store_register): Likewise.
10222
10223 2002-01-21 Jim Blandy <jimb@redhat.com>
10224
10225 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10226 is up-to-date before running the program, not just when a program
10227 exits.
10228
10229 2002-01-21 Fred Fish <fnf@redhat.com>
10230
10231 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10232 when we have found all instructions we are looking for.
10233
10234 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10235
10236 * arm-tdep.c (arm_register_name): New function.
10237 (arm_registers_names): Make static.
10238 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10239 (arm_register_name): Declare.
10240 (REGISTER_NAME): Use it.
10241
10242 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10243 Kevin Buettner <kevinb@redhat.com>
10244
10245 Convert arm targets to new FRAME interface.
10246 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10247 (arm_frame_find_save_regs): Delete.
10248 (arm_frame_init_saved_regs): New.
10249 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10250 Allocate extra_info as required. Convert all uses of fsr.regs
10251 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10252 to use extra_info.
10253 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10254 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10255 (check_prologue_cache, save_prologue_cache): Likewise.
10256 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10257 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10258 (FRAME_FIND_SAVED_REGS): Delete.
10259 (arm_frame_find_saved_regs): Delete prototype.
10260 (arm_frame_init_saved_regs): New prototype.
10261 (FRAME_INIT_SAVED_REGS): Define.
10262
10263 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10264
10265 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10266
10267 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10268
10269 From Jeff Law <law@redhat.com>:
10270 * infttrace.c: Include <sys/pstat.h>.
10271 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10272 exec file if the ttrace equivalent fails.
10273
10274 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10275
10276 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10277 (closeLogFile): Ditto.
10278
10279 2002-01-20 Michael Chastain <mec@shout.net>
10280
10281 * top.c (print_gdb_version): Bump copyright year to 2002.
10282
10283 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10284
10285 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10286 Zannoni and Eli Zaretskii.
10287
10288 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10289
10290 * buildsym.c: Update copyright years.
10291 * c-typeprint.c: Likewise.
10292 * dwarf2read.c: Likewise.
10293 * f-typeprint.c: Likewise.
10294 * gdbtypes.c: Likewise.
10295 * gdbtypes.h: Likewise.
10296 * hp-symtab-read.c: Likewise.
10297 * hpread.c: Likewise.
10298 * mdebugread.c: Likewise.
10299 * p-typeprint.c: Likewise.
10300
10301 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10302
10303 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10304 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10305 byte-order selectable.
10306 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10307 * arch-utils.c: Ditto.
10308 (set_endian): Ditto.
10309 (set_endian_from_file): Ditto.
10310 * gdbserver/low-sim.c (create_inferior): Ditto.
10311 * gdbarch.sh: Ditto.
10312 * gdbarch.h: Re-generate.
10313 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10314 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10315 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10316 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10317 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10318 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10319 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10320 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10321 macro definition.
10322 * config/mips/tm-wince.h: Remove #undef of macro
10323 TARGET_BYTE_ORDER_SELECTABLE.
10324 * config/sh/tm-wince.h: Ditto.
10325
10326 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10327
10328 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10329 member function fields. Add accessor macro
10330 TYPE_FN_FIELD_ARTIFICIAL.
10331 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10332 * c-typeprint.c (c_type_print_base): Skip artificial member
10333 functions.
10334
10335 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10336
10337 * f-typeprint.c: Delete unused function f_type_print_args.
10338 * p-typeprint.c: Delete unused function pascal_type_print_args.
10339
10340 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10341
10342 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10343 comment. Add ``artificial'' to ``union field_location''.
10344
10345 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10346
10347 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10348 * mdebugread.c (parse_symbol): Likewise.
10349 * stabsread.c (define_symbol): Likewise.
10350 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10351 initializing TYPE_FIELD_BITPOS to n (obsolete).
10352 (hpread_doc_function_type): Likewise.
10353 * hpread.c (hpread_function_type): Likewise.
10354
10355 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10356
10357 * configure.in (host_makefile_frag): Only require a host makefile
10358 fragment when a native build.
10359 * configure: Re-generate.
10360
10361 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10362
10363 * doublest.h (floatformat_from_type): Declare.
10364 * doublest.c (floatformat_from_type): New function.
10365 (convert_typed_floating): Use.
10366
10367 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10368 call to function floatformat_from_type.
10369
10370 * gdbarch.sh (IEEE_FLOAT): Delete.
10371 * gdbarch.h, gdbarch.c: Re-generate.
10372 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10373 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10374 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10375 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10376 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10377 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10378 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10379 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10380 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10381 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10382 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10383 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10384
10385 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10386 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10387 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10388 * sh-tdep.c (sh_gdbarch_init): Ditto.
10389 * mips-tdep.c (mips_gdbarch_init): Ditto.
10390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10391 * cris-tdep.c (cris_gdbarch_init): Ditto.
10392
10393 2002-01-20 Jiri Smid <smid@suse.cz>
10394
10395 * configure.host, configure.tgt: Support x86-64.
10396 * NEWS: Note new target x86-64.
10397
10398 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10399 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10400 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10401 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10402 x86-64-linux-nat.o): Fix dependencies.
10403
10404 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10405
10406 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10407 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10408 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10409 * config/sparc/xm-sun4os4.h: Delete file.
10410 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10411
10412 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10413
10414 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10415 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10416 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10417 * config/i386/i386lynx.mh (XM_FILE): Delete.
10418 * config/rs6000/xm-rs6000ly.h: Delete file.
10419 * config/sparc/xm-sparclynx.h: Delete file.
10420 * config/m68k/xm-m68klynx.h: Delete file.
10421 * config/i386/xm-i386lynx.h: Delete file.
10422 * config/xm-lynx.h: Delete file.
10423 * config/djgpp/fnchange.lst: Update.
10424
10425 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10426
10427 * alpha-tdep.c (alpha_register_byte): New function.
10428 (alpha_register_raw_size): Ditto.
10429 (alpha_register_virtual_size): Ditto.
10430 (alpha_skip_prologue_internal): Renamed from
10431 alpha_skip_prologue.
10432 (alpha_skip_prologue): New version that calls
10433 alpha_skip_prologue_internal.
10434 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10435 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10436 second argument from alpha_skip_prologue.
10437 (REGISTER_BYTE): Use alpha_register_byte.
10438 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10439 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10440 (FRAMELESS_FUNCTION_INVOCATION): Use
10441 generic_frameless_function_invocation_not.
10442 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10443 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10444
10445 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10446
10447 * config/mips/xm-news-mips.h: Delete file.
10448 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10449
10450 * config/m88k/xm-m88k.h: Delete file.
10451 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10452 * config/m88k/xm-delta88v4.h: Ditto.
10453 * config/m88k/xm-delta88.h: Ditto.
10454
10455 * config/alpha/xm-fbsd.h: Delete file.
10456 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10457
10458 * config/sparc/xm-sparc.h: Delete file.
10459 * Makefile.in (xm-sun4os4.h): Delete dependency.
10460 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10461 * config/sparc/xm-sun4os4.h: Ditto.
10462 * config/sparc/xm-linux.h: Ditto.
10463
10464 * config/i386/xm-windows.h: Delete file.
10465
10466 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10467
10468 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10469 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10470
10471 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10472
10473 * alpha-tdep.c (alpha_call_dummy_words): New.
10474 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10475 (CALL_DUMMY_P): Define.
10476 (CALL_DUMMY_WORDS): Define.
10477 (SIZEOF_CALL_DUMMY_WORDS): Define.
10478
10479 2002-01-19 Per Bothner <per@bothner.com>
10480
10481 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10482 isn't NULL, which can happen with some gcj-3.x-produced code.
10483
10484 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10485
10486 * alpha-tdep.c (alpha_register_virtual_type): New function.
10487 (alpha_init_frame_pc_first): Ditto.
10488 (alpha_fix_call_dummy): Ditto.
10489 (alpha_store_struct_return): Ditto.
10490 (alpha_extract_struct_value_address): Ditto.
10491 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10492 alpha_register_virtual_type.
10493 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10494 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10495 alpha_extract_struct_value_address.
10496 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10497 (INIT_FRAME_PC): Use init_frame_pc_noop.
10498 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10499
10500 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10501
10502 * i386gnu-nat.c: Include "i386-tdep.h".
10503 (fetch_fpregs): Simplify code dealing with uninitialized floating
10504 point states such that it doesn't require FP7_REGNUM.
10505
10506 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10507
10508 * alpha-tdep.c (frame_extra_info): New.
10509 (alpha_find_saved_regs): Make static. Use
10510 frame->extra_info.
10511 (alpha_frame_init_saved_regs): New function.
10512 (alpha_frame_saved_pc): Use frame->extra_info.
10513 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10514 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10515 (init_extra_frame_info): Rename to...
10516 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10517 (alpha_print_extra_frame_info): New function.
10518 (alpha_frame_locals_address): Ditto.
10519 (alpha_frame_args_address): Ditto.
10520 (alpha_pop_frame): Use frame->extra_info.
10521 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10522 alpha_frame_args_address.
10523 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10524 (alpha_find_saved_regs): Remove prototype.
10525 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10526 (EXTRA_FRAME_INFO): Remove.
10527 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10528 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10529
10530 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10531
10532 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10533 (alpha_cannot_fetch_register): Ditto.
10534 (alpha_cannot_store_register): Ditto.
10535 (alpha_register_convertible): Ditto.
10536 (alpha_use_struct_convention): Ditto.
10537 * config/alpha/tm-alpha.h: Update copyright years.
10538 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10539 (INNER_THAN): Use core_addr_lessthan.
10540 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10541 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10542 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10543 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10544 (FRAME_CHAIN): Remove unnecessary cast.
10545
10546 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10547
10548 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10549 obsolete.
10550
10551 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10552
10553 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10554 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10555 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10556 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10557 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10558 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10559 * x86-64-linux-nat.c: Ditto.
10560
10561 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10562
10563 * alpha-tdep.c (alpha_register_name): New function.
10564 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10565 (REGISTER_NAME): Define.
10566
10567 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10568
10569 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10570
10571 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10572
10573 * alpha-tdep.c: Update copyright years.
10574 (alpha_next_pc): New function.
10575 (alpha_software_single_step): Ditto.
10576 * config/alpha/tm-alpha.h: Add prototype for
10577 alpha_software_single_step.
10578
10579 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10580
10581 * alphabsd-nat.c: Update copyright years.
10582 (fill_gregset): Use regcache_collect.
10583 (fill_fpregset): Likewise.
10584 (fetch_inferior_registers): Only fetch integer registers
10585 if requested to do so.
10586 (store_inferior_registers): Only store integer registers
10587 if requested to do so.
10588
10589 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10590
10591 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10592 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10593 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10594 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10595 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10596 * config/arm/linux.mh (XDEPFILES): Delete.
10597 * config/arm/nbsd.mh (XDEPFILES): Delete.
10598 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10599 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10600 * config/i386/i386m3.mh (XDEPFILES): Delete.
10601 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10602 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10603 * config/i386/fbsd.mh (XDEPFILES): Delete.
10604 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10605 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10606 * config/i386/i386v4.mh (XDEPFILES): Delete.
10607 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10608 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10609 * config/i386/i386aix.mh (XDEPFILES): Delete.
10610 * config/i386/go32.mh (XDEPFILES): Delete.
10611 * config/i386/cygwin.mh (XDEPFILES): Delete.
10612 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10613 * config/i386/i386mach.mh (XDEPFILES): Delete.
10614 * config/i386/i386v32.mh (XDEPFILES): Delete.
10615 * config/i386/linux.mh (XDEPFILES): Delete.
10616 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10617 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10618 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10619 * config/i386/i386sco.mh (XDEPFILES): Delete.
10620 * config/i386/i386v.mh (XDEPFILES): Delete.
10621 * config/i386/nbsd.mh (XDEPFILES): Delete.
10622 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10623 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10624 * config/i386/symmetry.mh (XDEPFILES): Delete.
10625 * config/i386/obsd.mh (XDEPFILES): Delete.
10626 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10627 * config/ia64/linux.mh (XDEPFILES): Delete.
10628 * config/ia64/aix.mh (XDEPFILES): Delete.
10629 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10630 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10631 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10632 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10633 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10634 * config/m68k/linux.mh (XDEPFILES): Delete.
10635 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10636 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10637 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10638 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10639 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10640 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10641 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10642 * config/m88k/delta88.mh (XDEPFILES): Delete.
10643 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10644 * config/m88k/m88k.mh (XDEPFILES): Delete.
10645 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10646 * config/mips/linux.mh (XDEPFILES): Delete.
10647 * config/mips/irix6.mh (XDEPFILES): Delete.
10648 * config/mips/irix5.mh (XDEPFILES): Delete.
10649 * config/mips/irix4.mh (XDEPFILES): Delete.
10650 * config/mips/irix3.mh (XDEPFILES): Delete.
10651 * config/mips/decstation.mh (XDEPFILES): Delete.
10652 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10653 (NATDEPFILES): Move core-aout.o to here.
10654 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10655 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10656 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10657 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10658 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10659 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10660 * config/pa/hpux11.mh (XDEPFILES): Delete.
10661 * config/powerpc/aix.mh (XDEPFILES): Delete.
10662 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10663 * config/powerpc/linux.mh (XDEPFILES): Delete.
10664 * config/romp/rtbsd.mh: Rename XDEPFILES.
10665 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10666 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10667 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10668 * config/s390/s390.mh (XDEPFILES): Delete.
10669 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10670 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10671 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10672 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10673 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10674 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10675 * config/sparc/linux.mh (XDEPFILES): Delete.
10676 * config/vax/vaxult.mh (XDEPFILES): Delete.
10677 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10678 * Makefile.in (DEPFILES): Remove XDEPFILES.
10679
10680 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10681
10682 * utils.c (internal_verror): Fix comments, default is yes not no.
10683 Update queries to match. Default to quit and dump core.
10684
10685 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10686
10687 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10688 copyright.
10689 * defs.h, event-top.c, gdbcmd.h: Ditto.
10690 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10691 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10692 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10693 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10694 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10695 * mi/mi-main.c:Ditto.
10696
10697 * stack.c, symfile.c: Update copyright.
10698
10699 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10702 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10703 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10704 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10705
10706 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10709 * gdbserver/low-lynx.c (myattach): Likewise.
10710 * gdbserver/low-nbsd.c (myattach): Likewise.
10711 * gdbserver/low-sim.c (myattach): Likewise.
10712 * gdbserver/low-sparc.c (myattach): Likewise.
10713 * gdbserver/low-sun3.c (myattach): Likewise.
10714
10715 * gdbserver/low-linux.c (myattach): New function.
10716
10717 * gdbserver/server.c (attach_inferior): New function.
10718 (main): Handle "--attach".
10719
10720 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10721
10722 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10723 maintainer.
10724
10725 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10726
10727 * c-typeprint.c (is_type_conversion_operator): Add additional
10728 check for non-conversion operators.
10729
10730 2002-01-15 Michael Snyder <msnyder@redhat.com>
10731
10732 * linux-proc.c: Add "info proc" command, a la procfs.c.
10733 (read_mapping): New function, abstract and re-use code.
10734 (linux_find_memory_regions): Use new func read_mapping.
10735 (linux_info_proc_cmd): New function, implement "info proc".
10736 (_initialize_linux_proc): Add new command "info proc".
10737
10738 2002-01-15 Michael Snyder <msnyder@redhat.com>
10739
10740 * symfile.c (generic_load): Use bfd_map_over_sections method
10741 instead of manipulating bfd structure members directly.
10742 (add_section_size_callback): New function, bfd sections callback
10743 used by generic_load.
10744 (load_sections_callback): New function, bfd sections callback
10745 used by generic_load.
10746
10747 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10748
10749 [Based on work by Jim Blandy]
10750 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10751 (builtin_type_vec128): Export.
10752 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10753 types.
10754 (builtin_type_vec128): New builtin type for 128 bit vector
10755 registers.
10756 (build_gdbtypes): Initialize builtin_type_v16qi and
10757 builtin_type_v8hi. Create the vec128 register builtin type
10758 structure.
10759 (build_builtin_type_vec128): New function.
10760 (_initialize_gdbtypes): Register builtin_type_v16qi and
10761 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10762 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10763 AltiVec register to new builtin type.
10764
10765 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10766
10767 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10768 to make_cv_type.
10769
10770 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10771
10772 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10773 CLEAN_UP_REGISTER_VALUE.
10774 * regcache.c (supply_register): Update only call.
10775
10776 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10777
10778 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10779 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10780 a29k-*-vxworks* targets as obsolete.
10781
10782 2002-01-14 Michael Snyder <msnyder@redhat.com>
10783
10784 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10785 until we can resolve portability issues.
10786 * gregset.h: Remove references to fpxregs.
10787 * gcore.c (gcore_command): Initialize note_sec to NULL.
10788
10789 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10790
10791 * signals.c (target_signal_to_name): Rewrite. Only use
10792 signals[].name when in bounds and non-NULL.
10793
10794 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10795
10796 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10797 * signals.c (target_signal_to_name): Verify that SIG is within the
10798 bounds of the signals array.
10799
10800 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10801
10802 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10803
10804 2002-01-13 Keith Seitz <keiths@redhat.com>
10805
10806 * stack.c (print_frame_info_base): Print the frame's pc
10807 only if when print_frame_info_listing_hook is not defined.
10808
10809 2002-01-13 Keith Seitz <keiths@redhat.com>
10810
10811 * varobj.c (varobj_set_value): Make sure that there were no
10812 errors evaluating the object before attempting to set its
10813 value.
10814 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10815 so this offset adjustment is no longer necessary.
10816 (create_child): Don't set the error flag if the child is
10817 a CPLUS_FAKE_CHILD.
10818 (value_of_child): If value_fetch_lazy fails, return NULL
10819 so that callers will be notified that an error occurred.
10820 (c_value_of_variable): Delay check of variable's validity
10821 until later. We actually want all structs and unions to have
10822 the value "{...}".
10823 Do not return "???" for variables which could not be evaluated.
10824 This error condition must be returned to the caller so that it
10825 can get the error condition from gdb.
10826 (cplus_name_of_child): Adjust index for vptr before figuring
10827 out the name of the child.
10828 (cplus_value_of_child): If a child's (real) parent is not valid,
10829 don't even bother trying to give a value for it. Just return
10830 an error. Change all instances in this function.
10831 (cplus_type_of_child): If our parent is one of the "fake"
10832 parents, we need to get at the type of the real parent, and
10833 derive the child's true type using this information.
10834
10835 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10836
10837 From 2002-01-09 John Marshall <johnm@falch.net>:
10838 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10839 sources.redhat.com, and tweak some related URLs which had
10840 suffered from linkrot.
10841
10842 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10843
10844 From Jeff law:
10845 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10846 structures passed in registers.
10847
10848 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10849
10850 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10851 white space which prevented compilation. Reported by DSK
10852 <dsk@student.unsw.edu.au>.
10853
10854 2002-01-11 Michael Snyder <msnyder@redhat.com>
10855
10856 * symfile.c (build_section_addr_info_from_section_tab):
10857 Use bfd access method instead of manipulating bfd directly.
10858 (syms_from_objfile): Ditto.
10859 (simple_overlay_update_1): Ditto.
10860 (simple_overlay_update): Ditto.
10861 (generic_load): Ditto.
10862 (overlay_unmapped_address): FIXME comment, bfd access methods.
10863 (sections_overlap): FIXME comment, bfd access methods.
10864 (pc_in_mapped_range): FIXME comment, bfd access methods.
10865 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10866 (section_is_mapped): FIXME comment, bfd access methods.
10867 (section_is_overlay): FIXME comment, bfd access methods.
10868
10869 * symfile.c (generic_load): Whitespace and long line cleanups.
10870 Remove duplicate variable, change several local variables to
10871 more appropriate data types.
10872 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10873
10874 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10875
10876 From Peter Schauer:
10877 * language.c (longest_local_hex_string_custom): Use phex_nz to
10878 convert NUM to a hex string.
10879
10880 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10881
10882 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10883 the function.
10884 Update Copyright year.
10885
10886 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10887
10888 * language.c (longest_raw_hex_string): Delete unused function.
10889
10890 2002-01-11 Petr Sorfa <petrs@caldera.com>
10891
10892 * MAINTAINERS (write-after-approval): Add myself.
10893 * dwarf2read.c (read_tag_string_type): Handling of
10894 DW_AT_byte_size.
10895 (read_tag_string_type): FORTRAN fix to prevent propagation of
10896 first string size.
10897 (set_cu_language): Handling of DW_LANG_Fortran95
10898
10899 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10900
10901 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10902 GETPID(inferior_ptid).
10903 (store_inferior_registers): Likewise.
10904
10905 2002-01-10 Jason Merrill <jason@redhat.com>
10906
10907 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10908 Fix DW_OP_minus.
10909
10910 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10911
10912 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10913 and bfd/elf32-sh-nbsd.c.
10914
10915 2002-01-10 Michael Snyder <msnyder@redhat.com>
10916
10917 * NEWS: Mention --pid and corefile/proc-id behavior change.
10918
10919 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10920 * gcore.c: Include cli/cli-decode.h instead of command.h.
10921
10922 * main.c (captured_main): Add new command line option "--pid".
10923 If the second command line argument (following the symbol-file)
10924 begins with a digit, try to attach to it before trying to open
10925 it as a corefile.
10926 (print_gdb_help): Document the "--pid" argument.
10927
10928 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10929
10930 * completer.c (command_completer): New function.
10931
10932 * completer.h <command_completer>: Add prototype.
10933
10934 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10935 completer for the "help" command.
10936
10937 2002-01-09 Jason Merrill <jason@redhat.com>
10938
10939 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10940
10941 2002-01-09 Michael Snyder <msnyder@redhat.com>
10942
10943 * i386-linux-nat.c (fill_fpxregset): Make global.
10944 (store_fpxregset): Ditto.
10945
10946 * gregset.h (gdb_fpxregset_t): Define.
10947 (supply_fpxregset): Prototype.
10948 (fill_fpxregset): Prototype.
10949
10950 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10951
10952 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10953
10954 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10955 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10956 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10957
10958 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10959
10960 * MAINTAINERS: Update target maintainer rules so that any
10961 Maintainer can approve a tested patch for a maintenance-only
10962 target.
10963
10964 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10965
10966 * MAINTAINERS (write-after-approval): Add myself.
10967
10968 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10969 IN_SIGTRAMP.
10970
10971 2002-01-08 Michael Snyder <msnyder@redhat.com>
10972
10973 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10974 real name of the executable, rather than the /proc name.
10975
10976 2002-01-03 Michael Snyder <msnyder@redhat.com>
10977
10978 Implement a "generate-core-file" command in gdb, save target state.
10979 * gcore.c: New file. Implement new command 'generate-core-file'.
10980 Save a corefile image of the current state of the inferior.
10981 * linux-proc.c: Add linux-specific code for saving corefiles.
10982 * target.h (struct target_ops): Add new target vectors for saving
10983 corefiles; to_find_memory_regions and to_make_corefile_notes.
10984 (target_find_memory_regions): New macro.
10985 (target_make_corefile_notes): New macro.
10986 * target.c (update_current_target): Inherit new target methods.
10987 (dummy_find_memory_regions): New place-holder method.
10988 (dummy_make_corefile_notes): New place-holder method.
10989 (init_dummy_target): Initialize new dummy target vectors.
10990 * exec.c (exec_set_find_memory_regions): New function.
10991 Allow the exec_ops vector for memory regions to be taken over.
10992 (exec_make_note_section): New function, target vector method.
10993 * defs.h (exec_set_find_memory_regions): Export prototype.
10994 * procfs.c (proc_find_memory_regions): New function, corefile method.
10995 (procfs_make_note_section): New function, corefile method.
10996 (init_procfs_ops): Set new target vector pointers.
10997 (find_memory_regions_callback): New function.
10998 (procfs_do_thread_registers): New function.
10999 (procfs_corefile_thread_callback): New function.
11000 * sol-thread.c (sol_find_memory_regions): New function.
11001 (sol_make_note_section): New function.
11002 (init_sol_thread_ops): Initialize new target vectors.
11003 * inftarg.c (inftarg_set_find_memory_regions): New function.
11004 Allow to_find_memory_regions vector to be taken over.
11005 (inftarg_set_make_corefile_notes): New function.
11006 Allow to_make_corefile_notes vector to be taken over.
11007 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11008 interface layer if not target_has_execution (may be a corefile).
11009 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11010 * config/sparc/sun4sol2.mh: Ditto.
11011 * config/alpha/alpha-linux.mh: Ditto.
11012 * config/arm/linux.mh: Ditto.
11013 * config/i386/x86-64linux.mh: Ditto.
11014 * config/ia64/linux.mh: Ditto.
11015 * config/m68k/linux.mh: Ditto.
11016 * config/mips/linux.mh: Ditto.
11017 * config/powerpc/linux.mh: Ditto.
11018 * config/sparc/linux.mh: Ditto.
11019
11020 2002-01-07 Michael Snyder <msnyder@redhat.com>
11021
11022 * arm-linux-nat.c: Remove references to regcache.c internal data
11023 (registers[] and register_valid[]).
11024
11025 2002-01-07 Michael Snyder <msnyder@redhat.com>
11026
11027 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11028 so that attaching to a pid will automatically read the process's
11029 symbol file and shlibs.
11030 * Makefile.in: Add rule for linux-proc.o.
11031 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11032 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11033 * config/arm/linux.mh: Ditto.
11034 * config/i386/linux.mh: Ditto.
11035 * config/i386/x86-64linux.mh: Ditto.
11036 * config/ia64/linux.mh: Ditto.
11037 * config/m68k/linux.mh: Ditto.
11038 * config/mips/linux.mh: Ditto.
11039 * config/powerpc/linux.mh: Ditto.
11040 * config/sparc/linux.mh: Ditto.
11041
11042 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11043
11044 * win32-nat.c: Add i386-tdep.h dependency.
11045
11046 2002-01-07 Michael Snyder <msnyder@redhat.com>
11047
11048 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11049 instead of bfd_get_arch_size. Don't bail out just because
11050 there's no exec_bfd.
11051
11052 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11053 * p-valprint.c (pascal_object_print_value): Ditto.
11054 * somread.c (som_symtab_read): Ditto.
11055 * symfile.c (simple_free_overlay_region_table): Ditto.
11056 * valops.c (value_assign): Ditto.
11057
11058 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11059 use tilde_expand and strerror for opening save-tracepoints file.
11060
11061 * thread-db.c (thread_db_new_objfile): Indendation fix.
11062
11063 * infptrace.c (GDB_MAX_ALLOCA): New define.
11064 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11065 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11066 can be overridden with whatever value is appropriate to the host).
11067 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11068 alloca to allocate potentially large buffer.
11069 * rs6000-nat.c (child_xfer_memory): Ditto.
11070 * symm-nat.c (child_xfer_memory): Ditto.
11071 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11072
11073 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11074
11075 From Nick Clifton <nickc@redhat.com>
11076 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11077
11078 2002-01-07 Michael Snyder <msnyder@redhat.com>
11079
11080 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11081 Don't use exec_bfd if it's NULL.
11082
11083 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11084
11085 * valops.c (value_arg_coerce): Fix formatting.
11086
11087 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11088
11089 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11090 * gnu-nat.c: Ditto.
11091
11092 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11093
11094 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11095 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11096 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11097 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11098 z8k-coff have not been multi-arched. Update z8k-coff build
11099 status.
11100
11101 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11102
11103 * MAINTAINERS: Mark a29k target as obsolete.
11104 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11105 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11106 comments.
11107 * NEWS: Note that a29k targets are obsolete.
11108 * a29k-tdep.c: Mark as obsolete.
11109 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11110 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11111 a29k-*-vxworks* targets as obsolete.
11112 * remote-adapt.c: Obsolete.
11113 * remote-eb.c: Obsolete.
11114 * remote-mm.c: Obsolete.
11115 * remote-udi.c: Obsolete.
11116 * config/a29k/a29k-udi.mt: Obsolete.
11117 * config/a29k/a29k.mt: Obsolete.
11118 * config/a29k/tm-a29k.h: Obsolete.
11119 * config/a29k/tm-vx29k.h: Obsolete.
11120 * config/a29k/vx29k.mt: Obsolete.
11121
11122 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11123
11124 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11125 with BFD_ENDIAN_BIG.
11126
11127 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11128
11129 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11130 * configure, config.in: Re-generate.
11131 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11132 * defs.h: Do not include <endian.h>.
11133
11134 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11135
11136 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11137 * config.in: Regenerate.
11138 * configure.in: Update copyright years.
11139 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11140 * configure: Regenerate.
11141 * i386bsd-nat.c: Update copyright years.
11142 (fill_gregset): Use regcache_collect.
11143 (fetch_inferior_registers): Only fetch integer registers
11144 if requested to do so. Add support for XMM registers
11145 using PT_GETXMMREGS.
11146 (store_inferior_registers): Only store integer registers
11147 if requested to do so. Add support for XMM registers
11148 using PT_SETXMMREGS.
11149 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11150 (store_inferior_registers): Remove.
11151 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11152 (fetch_elfcore_registers): New function.
11153 (i386nbsd_elfcore_fns): New.
11154 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11155 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11156 i386bsd-nat.o.
11157 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11158 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11159 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11160 * config/i386/tm-nbsd.h: Update copyright years.
11161 (HAVE_SSE_REGS): Define.
11162 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11163 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11164 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11165 (SIGCONTEXT_PC_OFFSET): Remove.
11166 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11167
11168 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11169
11170 * configure.tgt: Remove powerpc-*-macos* target.
11171 * config/m68k/xm-mpw.h: Delete file.
11172 * config/xm-mpw.h: Delete file.
11173 * ser-mac.c: Delete file.
11174 * mpw-make.sed: Delete file.
11175 * mpw-config.in: Delete file.
11176 * mac-xdep.c: Delete file.
11177 * mac-gdb.r: Delete file.
11178 * mac-defs.h: Delete file.
11179 * mac-nat.c: Delete file.
11180 * config/powerpc/macos.mh: Delete file.
11181 * config/powerpc/macos.mt: Delete file.
11182 * config/powerpc/nm-macos.h: Delete file.
11183 * config/powerpc/tm-macos.h: Delete file.
11184 * source.c (openp, open_source_file): Remove obsolete code.
11185 * top.c (gdb_readline): Ditto.
11186 * utils.c (query): Ditto.
11187 * event-top.c (display_gdb_prompt): Ditto.
11188 * Makefile.in (ser-mac.o): Delete obsolete target.
11189 * NEWS: Update.
11190
11191 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11192
11193 * defs.h (BIG_ENDIAN): Delete macro definition.
11194 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11195 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11196 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11197 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11198 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11199 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11200 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11201 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11202 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11203 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11204 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11205 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11206 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11207 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11208 * gdbarch.c: Re-generate.
11209
11210 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11211
11212 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11213 for core files.
11214
11215 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11216
11217 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11218
11219 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11220
11221 * value.h (value_ptr): Delete typedef.
11222
11223 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11224
11225 * i386nbsd-nat.c: Update copyright years.
11226 Include i386-tdep.h.
11227
11228 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11229
11230 * stabsread.c: Update copyright years.
11231
11232 From Debashis Mahata <debashis.mahata@wipro.com>:
11233 (read_struct_fields): Deal with Sun C compiler erroneous stab
11234 output for structs and unions.
11235 Fix PR gdb/269.
11236
11237 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11238
11239 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11240 prototype.
11241
11242 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11243
11244 * cp-abi.c: Fix whitespace.
11245 (baseclass_offset): New wrapper function.
11246 * cp-abi.h (baseclass_offset): Add prototype.
11247 (struct cp_abi_ops): Add baseclass_offset pointer.
11248
11249 * valops.c (vb_match): Move to...
11250 * gnu-v2-abi.c (vb_match): here.
11251 * valops.c (baseclass_offset): Move to...
11252 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11253
11254 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11255
11256 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11257 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11258 * hpacc-abi.c (init_hpacc_ops): Likewise.
11259
11260 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11261
11262 * valops.c (find_overload_match): Accept obj as a
11263 reference parameter. Update it before returning.
11264 * value.h (find_overload_match): Update prototype.
11265 * eval.c (evaluate_subexp_standard): Pass object to
11266 find_overload_match by reference.
11267
11268 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11269
11270 * valarith.c: Replace value_ptr with struct value pointer. Remove
11271 register attribute from value declarations.
11272 * valops.c: Ditto.
11273 * value.h: Ditto.
11274 * scm-lang.c (scm_lookup_name): Ditto.
11275
11276 2002-01-03 Michael Snyder <msnyder@redhat.com>
11277
11278 Abstract the functionality of iterating over mapped memory
11279 regions into a general purpose iterator function.
11280 * procfs.c (iterate_over_mappings): New function, general purpose
11281 iterator for memory sections.
11282 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11283 (solib_mappings_callback): New function, callback for above.
11284 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11285 (info_mappings_callback): New function, callback for above.
11286
11287 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11288
11289 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11290
11291 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11292 * i386-tdep.c: Include "elf-bfd.h".
11293 (process_note_abi_tag_sections): New function.
11294 (i386_gdbarch_init): Add code to recognize various OS/ABI
11295 combinations.
11296
11297 * maint.c (_initialize_maint_cmds): Add missing \ in
11298 string-literal.
11299
11300 For older changes see ChangeLog-2001
11301 \f
11302 Local Variables:
11303 mode: change-log
11304 left-margin: 8
11305 fill-column: 74
11306 version-control: never
11307 End:
This page took 0.248305 seconds and 5 git commands to generate.