daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12002-09-26 Andrew Cagney <ac131313@redhat.com>
2
3 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4 frame.
5
62002-09-26 Andrew Cagney <ac131313@redhat.com>
7
8 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
9 (rs6000_struct_return_address): Delete variable.
10 (rs6000_store_struct_return): Update.
11 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
12 deprecated_extract_struct_value_address.
13 (rs6000_frame_align): New function.
14 (rs6000_gdbarch_init): Set frame_align.
15
162002-09-26 Andrew Cagney <ac131313@redhat.com>
17
18 From Grace Sainsbury <graces@redhat.com>:
19 * Makefile.in (gdbtk-main.o): New target.
20 (gdb.o): New target.
21 (main_h): Define.
22 (main.o): Update dependencies.
23 (gdb$(EXEEXT)): Add gdb.o.
24 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
25 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
26 (SUBDIR_GDBTK_CLEAN): Set.
27 (install-gdbtk): Install the insight binary.
28 (uninstall-gdbtk): New target.
29 (all-gdbtk, clean-gdbtk): New rule.
30 * top.c (use_windows): Default to zero.
31 * main.c: Include "main.h".
32 (main): Delete.
33 (struct captured_main_args): Delete.
34 (gdb_main): New function.
35 * main.h: New file.
36 * gdb.c: New File.
37
382002-09-25 Andrew Cagney <cagney@redhat.com>
39
40 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
41 (frame_map_regnum_to_name): New function.
42 (frame_map_name_to_regnum): New function.
43 * frame.h (frame_map_name_to_regnum): Declare.
44 (frame_map_regnum_to_name): Declare.
45 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
46 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
47 * parse.c: Do not include "builtin-regs.h".
48 (target_map_name_to_register): Delete function.
49 (write_dollar_variable): Use frame_map_name_to_regnum.
50 * parser-defs.h (target_map_name_to_register): Delete declaration.
51 * expprint.c: Include "frame.h".
52 (print_subexp): Use frame_map_regnum_to_name.
53 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
54 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
55
562002-09-25 Andrew Cagney <ac131313@redhat.com>
57
58 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
59 wasn't saved, and the next innermost frame is a dummy, return the
60 dummy frame's link register.
61
622002-09-24 Jim Blandy <jimb@redhat.com>
63
64 Fix from Paul Breed:
65 * main.c (captured_main): Add a `break' after the case for 'b'.
66
672002-09-24 Keith Seitz <keiths@redhat.com>
68
69 * varobj.c (c_type_of_child): Use get_target_type instead
70 of TYPE_TARGET_TYPE.
71
722002-09-22 Fernando Nasser <fnasser@redhat.com>
73
74 * source.c (get_current_or_default_source_symtab_and_line): Remove
75 function.
76 (set_default_source_symtab_and_line): New function. Attempts to
77 determine a source file to list lines from if one is not currently
78 defined.
79 (get_current_source_symtab_and_line): Initialize sal.pc and
80 sal.end fields.
81 (set_current_source_symtab_and_line): Mark argument as const.
82 * source.h: Update declarations and comments.
83 * linespec.c (decode_line_1): Replace call to removed routine above.
84 * stack.c (print_frame_info_base): Ditto.
85 * cli/cli-cmds.c (edit_command): Ditto.
86 (list_command): Ditto.
87
882002-09-22 Fernando Nasser <fnasser@redhat.com>
89
90 * source.c (get_current__or_default_source_symtab_and_line): Initialize
91 sal.pc and sal.end fields.
92 (get_current_or_default_source_symtab_and_line): Ditto.
93 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
94 so we do not cause a new source symtab to be searched for (reverting an
95 unintentional change from the 2002-09-20 patch).
96 * scm-lang.c (scm_unpac): Ditto.
97
982002-09-21 Andrew Cagney <cagney@redhat.com>
99
100 * complaints.c (symfile_explanations): Remove new-line from
101 ``isolated_message''.
102 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
103 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
104
1052002-09-20 Nick Clifton <nickc@redhat.com>
106
107 * NEWS: Announce that V850EA ISA is no longer supported.
108 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
109
1102002-09-20 David Carlton <carlton@math.stanford.edu>
111
112 * Makefile.in (c-lang.o): Correct dependencies.
113 (utils.o): Gather dependencies.
114 (charset.o): Move.
115 * c-lang.c: #include "gdb_string.h"
116
1172002-09-20 Fernando Nasser <fnasser@redhat.com>
118
119 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
120 * cli/cli-cmds.c (list_command): New function. Implements the new
121 cli edit command.
122 (_init_cli_cmds): Add new command definition.
123 * gdb.1: Document edit command.
124 * doc/gdb.texinfo: Document edit command.
125
1262002-09-20 Fernando Nasser <fnasser@redhat.com>
127
128 * source.c: Make global variables current_source_symtab and
129 current_source_line static.
130 (list_command): Moved to cli/cli-cmds.c.
131 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
132 (get_first_line_listed): New accessor function.
133 (get_lines_to_list): New accessor function.
134 (get_current_source_symtab_and_line): New function. Retrieves the
135 position in the source code that we consider current.
136 (get_current_or_default_source_symtab_and_line): New function.
137 Like the above but attempts to determine a default position if one
138 is not currently defined.
139 (set_current_source_symtab_and_line): New function. Sets the source
140 code position considered current and returns the previously set one.
141 (clear_current_source_symtab_and_line): Reset stored information about
142 a current source line.
143 (_initialize_source): Remove registration for the "list" command and
144 its alias.
145 * source.h: Add declarations for the new functions above.
146 * symtab.h: Remove declarations for the global variables mentioned
147 above.
148 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
149 obtain current source line.
150 * linespec.c (decode_line_1): Ditto.
151 * macroscope.c (default_macro_scope): Ditto.
152 * scm-lang.c (scm_unpac): Ditto.
153 * stack.c (print_frame_info_base): Ditto.
154 * symfile.c (clear_symtab_users): Ditto.
155 * symtab.c (decode_line_spec): Ditto.
156 * cli/cli-cmds.c (list_command): Moved here from source.c.
157 (ambiguous_line_spec): Moved here from source.c.
158 (_init_cli_cmds): Add definition for "list" and its alias.
159 * Makefile.in: Update dependencies.
160
1612002-09-20 Corinna Vinschen <vinschen@redhat.com>
162
163 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
164 with what gcc thinks is correct.
165
1662002-09-20 Corinna Vinschen <vinschen@redhat.com>
167
168 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
169 multiple register push instruction.
170
1712002-09-19 Jim Blandy <jimb@redhat.com>
172
173 Add support for distinct host and target character sets.
174 * charset.c, charset.h: New files.
175 * c-exp.y: #include "charset.h".
176 (yylex): Convert character and string literals to the target
177 character set, before returning them as the semantic value of the
178 token.
179 * c-lang.c: #include "charset.h".
180 (c_emit_char): Use charset-specific methods to recognize
181 characters with backslash escape forms, to decide which characters
182 to print literally and which to print using numeric escape
183 sequences, and to convert target characters to host characters
184 before printing.
185 * utils.c: #include "charset.h".
186 (no_control_char_error): New function.
187 (parse_escape): Use charset-specific methods to recognize
188 backslash escapes, parse `control character' notation, and convert
189 characters from the host character set to the target character set.
190 * configure.in: Set the default host character set.
191 Check where to find iconv, and what its argument types might be.
192 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
193 * Makefile.in (SFILES): List charset.c.
194 (COMMON_OBS): List charset.o.
195 (charset.o): New rule.
196 (charset_h): New header dependency variable.
197 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
198 (LIBICONV): New variable, set by configure.
199 (CLIBS): Include $(LIBICONV) here.
200 * aclocal.m4, config.in, configure: Regenerated.
201
2022002-09-19 Joel Brobecker <brobecker@gnat.com>
203
204 * ada-exp.y: Add missing semicolons to end rules. Fixes a
205 bison 1.35 warning.
206
2072002-09-19 Richard Earnshaw <rearnsha@arm.com>
208
209 * gdb_mbuild.sh: New file.
210
2112002-09-19 Andrew Cagney <ac131313@redhat.com>
212
213 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
214
2152002-09-18 Andrew Cagney <ac131313@redhat.com>
216
217 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
218 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
219 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
220 valops.c, value.h: Revert previous change.
221
2222002-09-18 Michael Snyder <msnyder@redhat.com>
223
224 Preliminary support for Objective-C:
225 * defs.h (language_objc): New enum value.
226 (puts_filtered_tabular): Declaration only, exported from utils.c.
227 (skip_quoted): Delete, declared in completer.h.
228 * c-exp.y: Include completer.h.
229 * p-exp.y: Ditto.
230 * jv-exp.y: Ditto.
231 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
232 New operator enum values.
233 * language.h (CAST_IS_CONVERSION): Test for language_objc.
234 * language.c (binop_result_type): Handle language_objc case.
235 (integral_type, character_type, string_type, boolean_type,
236 structured_type, binop_type_check): Ditto.
237 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
238 (struct objc_specific): Add to general_symbol_info.
239 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
240 (SYMBOL_DEMANGLED_NAME): Handle objc case.
241 * parser-defs.h (struct objc_class_str): New struct type.
242 (start_msglist, end_msglist, add_msglist): Declaration only,
243 exported from objc-lang.c.
244 * value.h (value_of_local, value_nsstring,
245 call_function_by_hand_expecting_type): Exported from valops.c.
246 * valops.c (find_function_addr): Export.
247 (call_function_by_hand_expecting_type): New function.
248 (value_of_local): New function.
249 * symfile.c (init_filename_language_table): Add ".m" extension
250 for Objective-C.
251 * utils.c (puts_filtered_tabular): New function.
252 (fprintf_symbol_filtered): Add objc demangling support (disabled).
253 (set/show demangle): Extend help-string to refer to ObjC.
254 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
255 * stabsread.c (symbol_reference_defined): Objective-C symbols
256 may contain colons: make allowances when scanning stabs strings
257 for colons.
258 (objc_find_colon): New function.
259 * printcmd.c (address_info): If language == objc then print
260 "self" instead of "this".
261 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
262 OP_NSSTRING, and OP_SELF.
263 (prefixify_subexp): Ditto.
264 * source.c (print_source_lines): Mention objc in comment.
265 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
266 method names.
267
2682002-09-18 Andrew Cagney <ac131313@redhat.com>
269
270 * complaints.h: Update copyright.
271 (struct complaints): Declare.
272 (struct complaint): Make `message' constant.
273 (internal_complaint): Declare.
274 (complaint): Declare.
275 (complaint_root): Delete declaration.
276 (symfile_complaints): Delete declaration.
277 (struct complaints): Add opaque declaration.
278 (clear_complaints): Add a complaints parameter.
279 * complaints.c: Update copyright.
280 (enum complaint_series): Define.
281 (complaint_root): Delete.
282 (struct complaints): Define.
283 (complaint_sentinel, symfile_complaint_book): New variables.
284 (symfile_explanations, symfile_complaints): New variables.
285 New variables.
286 (get_complaints): New function.
287 (vcomplaint): New function.
288 (complaint): New function.
289 (internal_complaint): New function.
290 (complain): Call vcomplain with symfile_complaint.
291 (clear_complaints): Rewrite.
292 (_initialize_complaints): Use add_setshow_command.
293 * Makefile.in (complaints.o): Update dependencies.
294 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
295 to call to clear_complaints.
296 (new_symfile_objfile, reread_symbols): Ditto.
297 (oldsyms_complaint): Delete.
298 (empty_symtab_complaint, unknown_option_complaint): Delete.
299 (free_named_symtabs): Use complaint instead of complain.
300
3012002-09-18 Michael Snyder <msnyder@redhat.com>
302
303 Contributed by Apple Computer, Inc. Merged with current sources
304 by Adam Fedor <fedor@doc.com> [cagney].
305
306 * objc-lang.c: First clean-up round: comments, indentation.
307 * objc-lang.h: Ditto.
308 * objc-lang.y: Ditto.
309
3102002-09-18 Andrew Cagney <ac131313@redhat.com>
311
312 * maint.c (maintenance_internal_error): Print the parameter as the
313 error message.
314 (maintenance_internal_warning): New function.
315 (_initialize_maint_cmds): Add command `maint internal-warning'.
316
317 * defs.h (internal_warning, internal_vwarning): Declare.
318 * utils.c (struct internal_problem): Define.
319 (internal_vproblem): New function.
320 (internal_warning): New function.
321 (internal_vwarning): New function.
322 (internal_warning_problem, internal_error_problem): New variables.
323 (internal_verror): Just call internal_vproblem.
324
3252002-09-18 Michael Snyder <msnyder@redhat.com>
326
327 * objc-lang.c: New file, support for Objective-C.
328 Preliminary check-in, not yet integrated into gdb.
329 * objc-lang.h: New file.
330 * objc-exp.y: New file.
331
3322002-09-18 Andrew Cagney <ac131313@redhat.com>
333
334 * infrun.c (signal_stop_update): Convert definition to ISO C.
335 (signal_print_update): Ditto.
336 (signal_pass_update): Ditto.
337 * inflow.c (terminal_save_ours): Ditto.
338
339 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
340 comments.
341
342 * config/djgpp/fnchange.lst: Handle name clashes between
343 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
344 bfd/coff-tic80.c.
345
346 * i386-linux-tdep.h: Fix tipo.
347
3482002-09-18 Adam Fedor <fedor@gnu.org>
349
350 * MAINTAINERS: Add myself to the Write After Approval list.
351
3522002-09-18 Jim Blandy <jimb@redhat.com>
353
354 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
355 texthigh and textlow to reader-specific structs caused
356 objfile_relocate to miss them. This is fixable, but the work that
357 the change was supposed to prepare GDB for never got done anyway.
358
3592002-09-18 David Carlton <carlton@math.stanford.edu>
360
361 * MAINTAINERS: Alphabetize Write After Approval list.
362
3632002-09-18 Daniel Jacobowitz <drow@mvista.com>
364
365 Fix PR gdb/709
366 * values.c (value_static_field): Call read_var_value.
367
3682002-09-18 Andrew Cagney <ac131313@redhat.com>
369
370 * valops.c (hand_function_call): Align the initial stack pointer
371 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
372 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
373 return value.
374 * mips-tdep.c (mips_frame_align): New function.
375 (mips_gdbarch_init): Set frame_align.
376 * gdbarch.sh (FRAME_ALIGN): New method.
377 * gdbarch.h, gdbarch.c: Re-generate.
378
3792002-09-18 Michal Ludvig <mludvig@suse.cz>
380
381 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
382 registers.
383
3842002-09-17 Andrew Cagney <ac131313@redhat.com>
385
386 * NEWS: Mention that MIPS $fp behavior changed.
387 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
388 reference to FP_REGNUM.
389 (mipsnbsd_cannot_store_register): Ditto.
390 * mips-linux-nat.c: Update copyright.
391 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
392 (mips_linux_cannot_store_register): Ditto.
393 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
394 * config/mips/tm-mips.h: Update copyright.
395 (FP_REGNUM): Delete macro.
396 (MIPS_REGISTER_NAMES): Replace "fp" with "".
397 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
398 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
399 (mips_r3041_reg_names, mips_r3051_reg_names)
400 (mips_r3081_reg_names): Replace "fp" with "".
401 Fix PR gdb/480.
402
4032002-09-17 Theodore A. Roth <troth@verinet.com>
404
405 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
406 generic_read_register_dummy() (PR gdb/703).
407 (avr_push_return_address): #if 0 out unused vars.
408 (avr_gdbarch_init): Enable use of avr_push_return_address().
409
4102002-09-17 Michael Snyder <msnyder@redhat.com>
411
412 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
413 RTE will take care of it.
414
4152002-09-17 Andrew Cagney <ac131313@redhat.com>
416
417 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
418 invalid, return SP_REGNUM.
419
4202002-09-17 Michael Snyder <msnyder@redhat.com>
421
422 * mips-tdep.c (mips_pop_frame): Read saved values of floating
423 point registers without sign extension.
424
4252002-09-17 Andrew Cagney <cagney@redhat.com>
426
427 * blockframe.c (deprecated_read_register_dummy): Rename
428 generic_read_register_dummy.
429 * frame.c (frame_unwind_signed_register): New function.
430 (frame_unwind_unsigned_register): New function.
431 * frame.h (frame_unwind_signed_register): Declare.
432 (frame_unwind_unsigned_register): Declare.
433 (deprecated_read_register_dummy): Rename
434 generic_read_register_dummy.
435
436 * h8300-tdep.c (h8300_frame_chain): Update.
437 (h8300_frame_saved_pc): Update.
438 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
439 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
440 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
441 (s390_frame_chain): Update.
442 * v850-tdep.c (v850_find_callers_reg): Update.
443 (v850_frame_saved_pc): Update.
444 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
445 (m32r_find_callers_reg): Update.
446 (m32r_frame_saved_pc): Update.
447 * sh-tdep.c (sh_find_callers_reg): Update.
448 (sh64_get_saved_pr): Update.
449 (sh_init_extra_frame_info): Update.
450 (sh_init_extra_frame_info): Update.
451 (sh64_init_extra_frame_info): Update.
452 (sh64_init_extra_frame_info): Update.
453 * mcore-tdep.c (mcore_find_callers_reg): Update.
454 (mcore_frame_saved_pc): Update.
455 (mcore_init_extra_frame_info): Update.
456 * i386-tdep.c (i386_frame_saved_pc): Update.
457 * ia64-tdep.c (ia64_frame_saved_pc): Update.
458 (ia64_init_extra_frame_info): Update.
459 (ia64_init_extra_frame_info): Update.
460 * d10v-tdep.c (d10v_frame_saved_pc): Update.
461 * cris-tdep.c (cris_init_extra_frame_info): Update.
462 * avr-tdep.c (avr_frame_chain): Update.
463 (avr_init_extra_frame_info): Update.
464 (avr_frame_saved_pc): Update.
465 * arm-tdep.c (arm_find_callers_reg): Update.
466 (arm_init_extra_frame_info): Update.
467 (arm_frame_saved_pc): Update.
468
4692002-09-17 Tom Tromey <tromey@redhat.com>
470
471 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
472 is "'".
473
4742002-09-17 Corinna Vinschen <vinschen@redhat.com>
475
476 * MAINTAINERS: Remove "non multi-arched" text from h8300.
477 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
478 NEXT_PROLOGUE_INSN.
479 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
480 NEXT_PROLOGUE_INSN.
481
4822002-09-16 Joel Brobecker <brobecker@gnat.com>
483
484 * osfsolib.c: Remove file, replaced by solib-osf.c.
485 * Makefile.in: Remove compilation rules for osfsolib.c.
486
4872002-09-16 David Carlton <carlton@math.stanford.edu>
488
489 * cp-valprint.c (cp_print_class_method): Correct args to
490 check_stub_method_group.
491
4922002-09-16 Corinna Vinschen <vinschen@redhat.com>
493
494 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
495 `set architecture'. Unify naming convention of functions.
496 (h8300_skip_prologue): Improve prologue analysis.
497 (h8300_push_arguments): Rewritten to more closely match GCC's
498 bizarre argument-passing behavior, along with the comment describing
499 said behavior.
500 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
501 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
502 sim, remote-e7000.c, remote-hms.c and remote.c
503
5042002-09-15 Mark Kettenis <kettenis@gnu.org>
505
506 * i386-tdep.c (gdb_print_insn_i386): Removed.
507 (i386_print_insn): New function.
508 (i386_gdbarch_init): Set print_insn to i386_print_insns.
509 (_initialize_i386_tdep): Don't initialize tm_print_insn and
510 tm_print_insn_info.
511
5122002-09-14 Mark Kettenis <kettenis@gnu.org>
513
514 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
515 zero.
516
5172002-09-14 Corinna Vinschen <vinschen@redhat.com>
518
519 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
520 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
521 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
522
5232002-09-13 Christopher Faylor <cgf@redhat.com>
524
525 * win32-nat.c (child_create_inferior): Honor 'tty' command.
526
5272002-09-13 Daniel Jacobowitz <drow@mvista.com>
528
529 * gdbtypes.c (check_stub_method): Make static.
530 (check_stub_method_group): New function.
531 * gdbtypes.h: Update prototypes.
532 * cp-support.c: New file.
533 * cp-support.h: New file.
534
535 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
536 (update_method_name_from_physname): New function.
537 (read_member_functions): Correct method names for operators
538 and v3 constructors/destructors. Separate v2 constructors and
539 destructors.
540 * Makefile.in (stabsread.o): Update dependencies.
541 (SFILES): Add cp-support.c.
542 (COMMON_OBS): Add cp-support.o.
543 (cp_support_h, cp-support.o): Add.
544
545 * cp-valprint.c (cp_print_class_method): Call
546 check_stub_method_group instead of check_stub_method. Remove
547 extraneous QUITs.
548 * p-valprint.c (pascal_object_print_class_method): Likewise.
549 * valops.c (search_struct_method): Likewise.
550 (find_method_list, value_struct_elt_for_reference): Likewise.
551
5522002-09-13 Andrew Cagney <cagney@redhat.com>
553
554 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
555 * gdbarch.h, gdbarch.c: Regenerate.
556
5572002-09-13 Andrew Cagney <ac131313@redhat.com>
558
559 * frame.c (find_saved_register): Delete function.
560 * frame.h (find_saved_register): Delete declaration.
561 Fix PR gdb/631.
562
563Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
564
565 * mips-tdep.c (read_next_frame_reg): Re-hack using
566 frame_register_unwind.
567
568Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
569
570 * mips-tdep.c (mips_get_saved_register): Re-hack using
571 frame_register_unwind.
572
5732002-09-12 Joel Brobecker <brobecker@gnat.com>
574
575 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
576 vector. Will be useful for Interix.
577 * gdbarch.h, gdbarch.c: Regenerate.
578
579 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
580 name of the malloc function by NAME_OF_MALLOC.
581
5822002-09-12 Joel Brobecker <brobecker@gnat.com>
583
584 * value.h (find_function_in_inferior): Add const keyword to
585 one of the parameters. Allows us to invoke this function with
586 a const char *.
587 * valops.c (find_function_in_inferior): Likewise.
588
5892002-09-12 Joel Brobecker <brobecker@gnat.com>
590
591 * exec.c (xfer_memory): Fix compilation warning with old versions
592 of GCC.
593 * tracepoint.c (trace_find_tracepoint_command): Likewise.
594
5952002-09-12 David Carlton <carlton@math.stanford.edu>
596
597 * symtab.h: Run through gdb_indent.h.
598 Add 2002 to Copyright year list.
599
6002002-09-12 Alan Modra <amodra@bigpond.net.au>
601
602 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
603 mach constants.
604 * MAINTAINERS: Add myself to write after approval list.
605
6062002-09-11 J. Brobecker <brobecker@gnat.com>
607
608 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
609
6102002-09-11 J. Brobecker <brobecker@gnat.com>
611
612 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
613 Interix.
614
6152002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
616
617 * procfs.c (do_detach): Clear current signal, not just fault.
618 Corrects problem with breakpoint trap signal leaking to detached
619 process on Tru64.
620
6212002-09-10 Michael Snyder <msnyder@redhat.com>
622
623 * buildsym.c (finish_block): Protect against null pointer.
624
6252002-09-10 Andrew Cagney <cagney@redhat.com>
626
627 * infcmd.c (default_print_registers_info): Send all output to
628 ``file'' instead of ``gdb_stdout''.
629
6302002-09-10 Michael Snyder <msnyder@redhat.com>
631
632 * mips-tdep.c (mips_extract_struct_value_address): Make val a
633 LONGEST, and use signed register read (addresses are sign-
634 extended for mips).
635
6362002-09-10 Stephane Carrez <stcarrez@nerim.fr>
637
638 * event-loop.c (gdb_do_one_event): Make public.
639 * event-loop.h (gdb_do_one_event): Declare.
640
6412002-09-10 Jeff Law <law@redhat.com>
642
643 * infttrace.c (child_resume): Simplify and rework to avoid
644 TT_PROC_CONTINUE.
645
6462002-09-09 Fred Fish <fnf@intrinsity.com>
647
648 * printcmd.c (print_scalar_formatted): "len" is the number of
649 target bytes, NOT the number of target bits.
650
6512002-09-09 Elena Zannoni <ezannoni@redhat.com>
652
653 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
654 * top.c (init_main): Set rl_terminal_name.
655
6562002-09-08 Aidan Skinner <aidan@velvet.net>
657
658 * ada-lang.c (ada_array_bound, ada_type_match,
659 _initialize_ada_language): Fix K&R definitions.
660 * ada-tasks.c (get_current_task): Fix K&R definitions.
661 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
662
6632002-09-07 Christopher Faylor <cgf@redhat.com>
664
665 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
666 Add XP.
667
6682002-09-06 Mark Kettenis <kettenis@gnu.org>
669
670 * i386-tdep.c (i386_register_virtual_type,
671 i386_register_convertible, i386_register_convert_to_virtual,
672 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
673 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
674 (i386_gdbarch_init): Fix comment. Add comments on calls that set
675 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
676 Don't set push_arguments twice.
677
678 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
679 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
680 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
681 sigtramp_end to NULL.
682 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
683 defines.
684 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
685
686 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
687 whitespace.
688
689 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
690 * gdbarch.h, gdbarch.c: Re-generate.
691 * blockframe.c (find_pc_sect_partial_function): Convert to use
692 SIGTRAMP_START_P predicate.
693
6942002-09-05 Michael Snyder <msnyder@redhat.com>
695
696 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
697 generic_dummy_frame method and old method. Also distinguish
698 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
699 (arm_extract_return_value): Use new regcache method.
700
701 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
702 adjustment that doesn't conform to the ABI.
703 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
704 saved regcache, not from current regcache.
705
7062002-09-05 Andrew Cagney <ac131313@redhat.com>
707
708 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
709 * README: Update.
710
7112002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
712
713 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
714 if arm_apcs_32 is false.
715
7162002-09-04 Andrew Cagney <ac131313@redhat.com>
717
718 GDB 5.3 branch created.
719
7202002-09-03 Theodore A. Roth <troth@verinet.com>
721
722 * gdb/avr-tdep.c (avr_gdbarch_init): Use
723 generic_unwind_get_saved_register.
724
7252002-09-03 David Carlton <carlton@math.stanford.edu>
726
727 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
728 argument (PR gdb/653). Update call to smash_to_method_type.
729 (read_structure_scope): Update call to dwarf2_add_member_fn.
730
7312002-09-03 Michal Ludvig <mludvig@suse.cz>
732
733 * x86-64-linux-tdep.c: Include gdb_string.h
734 * x86-64-linux-nat.c: Ditto.
735
7362002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
737
738 * ada-exp.y (yyname, yyrule): Remap global variables that appear
739 when YYDEBUG is set to 1.
740 * c-exp.y: Likewise.
741 * f-exp.y: Likewise.
742 * jv-exp.y: Likewise.
743 * m2-exp.y: Likewise.
744 * p-exp.y: Likewise.
745
7462002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
747
748 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
749 dependency list.
750 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
751 solib_svr4_fetch_link_map_offsets to
752 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
753 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
754 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
755 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
756 solib-svr4.o, and solib-legacy.o.
757 * config/i386/tm-nbsd.h: Include solib.h.
758
7592002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
760
761 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
762 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
763 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
764 comment noting that this needs its own target configuration.
765 * config/i386/nbsd.mt: New file.
766 * config/i386/nbsdaout.mt: Remove.
767 * config/i386/nbsdelf.mt: Ditto.
768 * config/i386/tm-nbsdaout.h: Ditto.
769
7702002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
771
772 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
773 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
774 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
775 tdep->sigtramp_end.
776 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
777 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
778 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
779
7802002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
781
782 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
783 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
784 * i386-tdep.h (i386bsd_init_abi): New prototype.
785 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
786 function declaration.
787 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
788 for NetBSD-a.out or NetBSD-ELF.
789 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
790 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
791 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
792 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
793 and nbsd-tdep.h.
794 (i386nbsd_pc_in_sigtramp): New function.
795 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
796 i386nbsd_pc_in_sigtramp.
797 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
798 and i386nbsdelf_init_abi OS ABI handlers.
799 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
800 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
801
8022002-09-02 Mark Kettenis <kettenis@gnu.org>
803
804 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
805 registers if the target really has them.
806
8072002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
808
809 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
810 than nbsd-tdep.h.
811
8122002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
813
814 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
815 list.
816 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
817 (alphanbsd_skip_sigtramp_frame): New functions.
818 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
819 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
820 to alphanbsd_sigcontext_addr.
821
8222002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
823
824 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
825 list.
826 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
827 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
828 nbsd_pc_in_sigtramp.
829 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
830 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
831 * nbsd-tdep.c: Include gdb_string.h.
832 (nbsd_pc_in_sigtramp): New function.
833 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
834 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
835 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
836 ppcnbsd_pc_in_sigtramp.
837 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
838 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
839 shnbsd_pc_in_sigtramp.
840 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
841 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
842 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
843
8442002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
845
846 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
847 watchpoints to NULL.
848 (insert_breakpoints): set val field of watchpoints if NULL.
849
850
8512002-08-29 Jim Blandy <jimb@redhat.com>
852
853 * symtab.c (lookup_symbol_aux): In the cases where we find a
854 minimal symbol of an appropriate name and use its address to
855 select a symtab to read and search, use `name' (as passed to us)
856 as the demangled name when searching the symtab's global and
857 static blocks, not the minsym's name.
858
8592002-08-29 Keith Seitz <keiths@redhat.com>
860
861 * stack.c (print_frame_info_base): Always set current_source_symtab
862 and current_source_line.
863
8642002-08-29 Donn Terry <donnte@microsoft.com>
865
866 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
867
8682002-08-28 Keith Seitz <keiths@redhat.com>
869
870 * stack.c (select_frame): Add FIXME concerning selected-frame
871 events.
872 (select_frame_command): Send selected-frame-level-changed
873 event notification, but only if the level actually changed.
874 (up_silently_base): Add selected-frame-level-changed event
875 notification.
876 (down_silently_base): Likewise.
877
8782002-08-28 Andrew Cagney <ac131313@redhat.com>
879
880 * Makefile.in: Update dependencies for all gdb/*.c files.
881
8822002-08-27 Tom Tromey <tromey@redhat.com>
883
884 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
885 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
886 Update dependencies.
887 * i387-tdep.c: Include gdb_string.h.
888 * osabi.c: Likewise.
889 * i386-linux-nat.c: Likewise.
890 * lin-lwp.c: Likewise.
891 * ax-gdb.c: Likewise.
892 * signals/signals.c: Likewise.
893 * jv-valprint.c: Likewise.
894 * p-lang.c: Likewise.
895 * c-valprint.c: Likewise.
896 * cp-abi.c: Likewise.
897
8982002-08-27 Elena Zannoni <ezannoni@redhat.com>
899
900 * cli/cli-script.h (copy_command_lines): Export.
901 * breakpoint.c: Include cli/cli-script.h.
902 * Makefile.in (breakpoint.o): Update dependencies.
903
9042002-08-26 Michael Snyder <msnyder@redhat.com>
905
906 * breakpoint.c (insert_breakpoints): Protect all references
907 to 'process_warning'. Shorten long lines.
908
9092002-08-26 Joel Brobecker <brobecker@gnat.com>
910
911 * cli/cli-script.c (copy_command_lines): New function.
912 * defs.h (copy_command_lines): Export.
913 * testsuite/gdb.base/commands.exp: New tests for commands
914 attached to a temporary breakpoint, and for commands that
915 delete the breakpoint they are attached to.
916
9172002-08-26 Michael Snyder <msnyder@redhat.com>
918
919 * breakpoint.c (bpstat_stop_status): Instead of copying the
920 pointer to the breakpoint commands struct, make a new copy
921 of the struct and point to that.
922 (bpstat_clear): Free the commands struct.
923 (bpstat_clear_actions): Free the commands struct.
924 (bpstat_do_actions): Free the command actions. Also execute
925 the local cleanups, instead of deleting them.
926 (delete_breakpoint): Leave the commands field of the bpstat
927 chain alone -- it will be freed later.
928
9292002-08-26 Kevin Buettner <kevinb@redhat.com>
930
931 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
932 deleted in 2002-08-20 commit. This function is still used by
933 ppc-linux-nat.c.
934
9352002-08-26 Keith Seitz <keiths@redhat.com>
936
937 * gdb-events.sh: Add selected-frame-level-changed event.
938 * gdb-events.c: Regenerated.
939 * gdb-events.h: Regenerated.
940
9412002-08-26 Stephane Carrez <stcarrez@nerim.fr>
942
943 Fix PR gdb/393:
944 * inflow.c (terminal_save_ours): New function to save terminal
945 settings.
946 * inferior.h (terminal_save_ours): Declare.
947 * target.c (debug_to_terminal_save_ours): New function.
948 (cleanup_target): Defaults to_terminal_save_ours.
949 (update_current_target): Inherit to_terminal_save_ours.
950 (setup_target_debug): Set to_terminal_save_ours.
951 * target.h (target_terminal_save_ours): New to save terminal settings.
952 (target_ops): New member to_terminal_save_ours.
953 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
954 * hpux-thread.c (init_hpux_thread_ops): Likewise.
955 * inftarg.c (init_child_ops): Likewise.
956 * m3-nat.c (init_m3_ops): Likewise.
957 * procfs.c (init_procfs_ops): Likewise.
958 * wince.c (init_child_ops): Likewise.
959 * win32-nat.c (init_child_ops): Likewise.
960 * sol-thread.c (init_sol_thread_ops): Likewise.
961
9622002-08-26 Mark Kettenis <kettenis@gnu.org>
963
964 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
965 use regcache_* functions.
966 (i386_gdbarch_init): Set store_return_value instead of
967 deprecated_store_return_value.
968
969 * regcache.c (regcache_raw_write_signed,
970 regcache_raw_write_unsigned): New functions.
971 * regcache.h (regcache_raw_write_signed,
972 regcache_raw_write_unsigned): New prototypes.
973
9742002-08-25 Andrew Cagney <ac131313@redhat.com>
975
976 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
977 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
978 source file dependencies. Cleanup corresponding generator rules.
979
9802002-08-25 Andrew Cagney <ac131313@redhat.com>
981
982 * regcache.h (register_offset_hack): Declare.
983 (regcache_cooked_read_using_offset_hack): Declare.
984 (regcache_cooked_write_using_offset_hack): Declare.
985
986 * regcache.c (register_offset_hack): New function.
987 (regcache_cooked_read_using_offset_hack): New function.
988 (regcache_cooked_write_using_offset_hack): New function.
989 (regcache_dump): Check that the registers, according to their
990 offset, are packed hard against each other.
991 (cooked_xfer_using_offset_hack): New function.
992
9932002-08-25 Andrew Cagney <ac131313@redhat.com>
994
995 * regcache.c (struct regcache_descr): Add field register_type.
996 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
997 in as a parameter
998 (init_regcache_descr): Initialize register_type. Pass the descr
999 to init_legacy_regcache_descr. Use register_type instead of
1000 REGISTER_VIRTUAL_TYPE.
1001 (register_type): New function.
1002 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1003 * regcache.h (register_type): Declare.
1004
10052002-08-25 Andrew Cagney <ac131313@redhat.com>
1006
1007 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1008 instead of deprecated_store_return_value. Fix fallout from
1009 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1010
10112002-08-25 Andrew Cagney <ac131313@redhat.com>
1012
1013 * regcache.c (max_register_size): New function.
1014 (init_legacy_regcache_descr): Ensure that max_register_size is
1015 large enough for REGISTER_VIRTUAL_SIZE.
1016 * regcache.h (max_register_size): Declare.
1017
10182002-08-24 Andrew Cagney <ac131313@redhat.com>
1019
1020 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1021 store_return_value.
1022 (e500_extract_return_value): Change type of valbuf pointer to
1023 void.
1024
10252002-08-24 Mark Kettenis <kettenis@gnu.org>
1026
1027 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1028 workaround.
1029
1030 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1031 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1032 long long) to prevent compiler warning on 64-bit systems.
1033
10342002-08-23 Andrew Cagney <cagney@redhat.com>
1035
1036 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1037 (DEPRECATED_STORE_RETURN_VALUE): New method.
1038 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1039 * gdbarch.h, gdbarch.c: Re-generate.
1040
1041 * values.c (set_return_value): Pass current_regcache to
1042 STORE_RETURN_VALUE.
1043 * arch-utils.h (legacy_store_return_value): Declare.
1044 * arch-utils.c (legacy_store_return_value): New function.
1045 (legacy_extract_return_value): Update parameters.
1046
1047 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1048 STORE_RETURN_VALUE.
1049 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1050 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1051 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1052 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1053 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1054 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1055 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1056 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1057 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1058 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1059
1060 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1061 * i386-tdep.c (i386_extract_return_value): Update.
1062 * arch-utils.c (legacy_extract_return_value): Update.
1063 * frv-tdep.c (frv_gdbarch_init): Update.
1064 * cris-tdep.c (cris_gdbarch_init): Update.
1065 * d10v-tdep.c (d10v_gdbarch_init): Update.
1066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1067 * m68k-tdep.c (m68k_gdbarch_init): Update.
1068 * mcore-tdep.c (mcore_gdbarch_init): Update.
1069 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1070 * s390-tdep.c (s390_gdbarch_init): Update.
1071 * sparc-tdep.c (sparc_gdbarch_init): Update.
1072 * sh-tdep.c (sh_gdbarch_init): Update.
1073 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1074 * v850-tdep.c (v850_gdbarch_init): Update.
1075 * avr-tdep.c (avr_gdbarch_init): Update.
1076 * ia64-tdep.c (ia64_gdbarch_init): Update.
1077 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1078 * vax-tdep.c (vax_gdbarch_init): Update.
1079 * alpha-tdep.c (alpha_gdbarch_init): Update.
1080 * arm-tdep.c (arm_gdbarch_init): Update.
1081 * mips-tdep.c (mips_gdbarch_init): Update.
1082 * i386-tdep.c (i386_gdbarch_init): Update.
1083
10842002-08-23 Andrew Cagney <ac131313@redhat.com>
1085
1086 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1087 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1088
10892002-08-24 Mark Kettenis <kettenis@gnu.org>
1090
1091 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1092 problems.
1093
10942002-08-23 Joel Brobecker <brobecker@gnat.com>
1095
1096 * infrun.c (handle_inferior_event): Move a comment outside of a
1097 function call, in order to avoid indent reformatting this part
1098 of the code in an unreadable way.
1099
11002002-08-23 Grace Sainsbury <graces@redhat.com>
1101
1102 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1103 when breakpoints fail. Move general breakpoint error messages to
1104 insert_breakpoints.
1105 * breakpoint.c (insert_breakpoints): Change warnings when
1106 breakpoints are nto inserted to specify the type. Remove call to
1107 memory_error when hardware breakpoints can't be inserted. Remove
1108 multiple calls to warning so all messages are sent to the user at
1109 once.
1110 (delete_breakpoints): Make insert error messsages more explicit.
1111
11122002-08-23 Daniel Jacobowitz <drow@mvista.com>
1113
1114 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1115 gdbserver/ChangeLog.
1116
11172002-08-23 Mark Kettenis <kettenis@gnu.org>
1118
1119 * i386-tdep.c: Include "objfiles.h".
1120 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1121 skip_trampoline_code.
1122 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1123 (CPLUS_MARKER): Define to '.'.
1124
1125 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1126 member.
1127 (linux_corefile_thread_callback): Increase args->num_notes.
1128 (linux_make_note_section): Initialize thread_args.num_notes, and
1129 use it to determine whether notes for any threads were created.
1130
11312002-08-23 Donn Terry <donnte@microsoft.com>
1132
1133 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1134 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1135 and PCUNKILL.
1136 (write_with_trace): Conditionalize out the switch branch handling
1137 PCSHOLD if the corresponding macro is not defined. Likewise for
1138 PRSABORT and PRSTOP.
1139 This change will be needed by the Interix port.
1140
11412002-08-22 Elena Zannoni <ezannoni@redhat.com>
1142
1143 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1144 write_register wherever possible instead of manipulating the
1145 register bytes directly.
1146 Assign VALUE_CONTENTS to a variable and use that.
1147 The GPR numbers are now dependent on the architecture.
1148
11492002-08-22 Elena Zannoni <ezannoni@redhat.com>
1150
1151 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1152 ev_offset fields.
1153 (skip_prologue): Add support for BookE/e500 instructions.
1154 (e500_extract_return_value): New function.
1155 (frame_get_saved_regs): Add support for saving ev registers and
1156 pseudo gpr's.
1157 (e500_store_return_value): New function.
1158 (rs6000_gdbarch_init): Move up default intializations of
1159 deprecated_extract_return_value and store_return_value. Overwrite
1160 init of store_return_value with e500 specific version.
1161 Set extract_return_value for e500.
1162
11632002-08-22 Elena Zannoni <ezannoni@redhat.com>
1164
1165 * blockframe.c (generic_call_dummy_register_unwind): Use
1166 regcache_cooked_read to catch cases in which the variable is
1167 stored in a pseudo register.
1168
11692002-08-22 Andrew Cagney <cagney@redhat.com>
1170
1171 * NEWS: Mention that the i960 has been made obsolete.
1172 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1173 i960-tdep.c
1174 (remote-nrom.o): Obsolete target.
1175 (remote-nindy.o, i960-tdep.o): Ditto.
1176 * remote-nrom.c: Make file obsolete.
1177 * remote-nindy.c, remote-vx960.c: Ditto.
1178 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1179 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1180 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1181 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1182 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1183 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1184 i960-*-vxworks* obsolete.
1185 * MAINTAINERS: Note that the i960 is obsolete.
1186
11872002-08-21 Corinna Vinschen <vinschen@redhat.com
1188
1189 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1190 detach to allow reinitialization.
1191
11922002-08-22 Andrew Cagney <ac131313@redhat.com>
1193
1194 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1195 attempt).
1196
11972002-08-22 Jim Blandy <jimb@redhat.com>
1198
1199 * coffread.c (coff_symfile_read): Don't try to read the line
1200 number table from disk if the image file doesn't have a symbol
1201 table; we'll never actually look at the info anyway, and Windows
1202 ships DLL's with bogus file offsets for the line number data.
1203
12042002-08-21 Elena Zannoni <ezannoni@redhat.com>
1205
1206 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1207 an e500 executable.
1208
12092002-08-21 Michael Snyder <msnyder@redhat.com>
1210
1211 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1212 (MSYMBOL_SIZE): Replace macro with function.
1213 (DEFAULT_MIPS_TYPE): Delete unused macro.
1214 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1215 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1216
12172002-08-21 Jim Blandy <jimb@redhat.com>
1218
1219 * valops.c (value_cast): Simplify and correct logic for doing a
1220 static cast from a pointer to a base class to a pointer to a
1221 derived class.
1222
12232002-08-21 Andrew Cagney <ac131313@redhat.com>
1224
1225 * infcmd.c (default_print_registers_info): Replace
1226 do_registers_info.
1227 (registers_info): Use gdbarch_print_registers_info instead of
1228 DO_REGISTERS_INFO.
1229 * inferior.h (default_print_registers_info): Replace
1230 do_registers_info.
1231 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1232 (DO_REGISTERS_INFO): Change to a predicate function.
1233 * gdbarch.h, gdbarch.c: Regenerate.
1234
12352002-08-21 Keith Seitz <keiths@redhat.com>
1236
1237 * gdb-events.sh: Add target-changed event.
1238 * gdb-events.c: Regenerated.
1239 * gdb-events.c: Regenerated.
1240 * valops.c (value_assign): Add target-changed event notification
1241 to inlval_register, lval_memory, and lval_reg_frame_relative.
1242
12432002-08-21 Joel Brobecker <brobecker@gnat.com>
1244
1245 * NEWS: Add an entry regarding the improvement of the next/step
1246 operation on Alpha Tru64 multi-processor machines.
1247
12482002-08-21 Andrew Cagney <ac131313@redhat.com>
1249
1250 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1251 directores.
1252 * Makefile.in: Update all _h macro definitions.
1253 * Makefile.in (install-gdbtk): Move to install section.
1254 (rdi-share/libangsd.a): Move to end of file.
1255
12562002-08-19 Andrew Cagney <ac131313@redhat.com>
1257
1258 * frame.c (frame_register_unwind): When a register, set addrp to
1259 the register's byte.
1260
12612002-08-20 Michael Snyder <msnyder@redhat.com>
1262
1263 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1264 used locally, so move them from the target machine header to here.
1265 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1266 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1267 Make static.
1268 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1269
12702002-08-20 Andrew Cagney <cagney@redhat.com>
1271
1272 * NEWS: Mention that the Apollo line was made obsolete.
1273 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1274 m68*-hp-hpux* obsolete.
1275 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1276 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1277 * buildsym.c (make_blockvector): Make static.
1278 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1279 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1280 (ALLDEPFILES): Remove dstread.c.
1281 (dstread.o): Obsolete make rule.
1282 * dstread.c: Makefile obsolete.
1283 * dst.h: Ditto.
1284 * config/m68k/hp300hpux.mt: Ditto.
1285 * config/m68k/hp300hpux.mh: Ditto.
1286 * config/m68k/hp300bsd.mt: Ditto.
1287 * config/m68k/hp300bsd.mh: Ditto.
1288 * config/m68k/apollo68b.mt: Ditto.
1289 * config/m68k/apollo68v.mh: Ditto.
1290 * config/m68k/apollo68b.mh: Ditto.
1291
12922002-08-20 Michael Snyder <msnyder@redhat.com>
1293
1294 * mips-tdep.c (mips_in_return_stub): Make static.
1295 (mips_gdbarch_init): Set in_solib_return_trampoline.
1296 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1297
12982002-08-20 Michael Snyder <msnyder@redhat.com>
1299
1300 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1301 * gdbarch.c, gdbarch.h: Regenerate.
1302 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1303 Add.
1304 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1305
13062002-08-20 Michael Snyder <msnyder@redhat.com>
1307
1308 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1309 (mips_gdbarch_init): Set skip_trampoline_code,
1310 in_solib_call_trampoline.
1311 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1312 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1313
13142002-08-20 Elena Zannoni <ezannoni@redhat.com>
1315
1316 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1317
1318 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1319 vector type for ev registers.
1320 (e500_pseudo_register_read): New function.
1321 (e500_pseudo_register_write): New function.
1322 (e500_dwarf2_reg_to_regnum): New function.
1323 (PPC_UISA_NOFP_SPRS): New macro.
1324 (PPC_EV_REGS): New macro.
1325 (PPC_GPRS_PSEUDO_REGS): New macro.
1326 (registers_e500): New register set for e500.
1327 (variants): Add e500 variant.
1328 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1329 before setting architectural dependent variations. Initialize ev
1330 registers numbers. Add case for e500 architecture. Set the
1331 number of pseudo registers.
1332
13332002-08-20 Elena Zannoni <ezannoni@redhat.com>
1334
1335 * rs6000-tdep.c: Clean up comments.
1336
13372002-08-20 Andrew Cagney <cagney@redhat.com>
1338
1339 * h8300-tdep.c: Re-indent file.
1340
13412002-08-20 Jim Blandy <jimb@redhat.com>
1342
1343 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1344 default for this.
1345
13462002-08-20 Keith Seitz <keiths@redhat.com>
1347
1348 * breakpoints.c (watch_command_1): Use internal breakpoint
1349 when setting a watchpoint_scope breakpoint.
1350
13512002-08-20 Elena Zannoni <ezannoni@redhat.com>
1352
1353 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1354 (build_builtin_type_vec64i): Ditto.
1355 (build_builtin_type_vec128): Ditto.
1356 (build_builtin_type_vec128i): Ditto.
1357
13582002-08-19 Michael Snyder <msnyder@redhat.com>
1359
1360 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1361 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1362 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1363 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1364 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1365 CALL_DUMMY_ADDRESS): Delete.
1366 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1367 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1368 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1369 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1370 push_return_address.
1371 (mips_register_raw_size, mips_eabi_use_struct_convention,
1372 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1373 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1374 mips_init_extra_frame_info, mips_eabi_push_arguments,
1375 mips_n32n64_push_arguments, mips_push_return_address,
1376 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1377 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1378
13792002-08-19 Michael Snyder <msnyder@redhat.com>
1380
1381 * mips-tdep.c (mips_frame_num_args): New function.
1382 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1383 frame_saved_pc, frame_args_address, frame_locals_address,
1384 frame_num_args, and frame_args_skip.
1385 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1386 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1387 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1388 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1389
13902002-08-20 Michael Snyder <msnyder@redhat.com>
1391
1392 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1393 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1394 * mips-tdep.c (mips_store_struct_return): New function.
1395 (mips_extract_struct_value_address): New function.
1396 (mips_gdbarch_init): Set store_struct_return and
1397 extract_struct_value_address.
1398
13992002-08-20 David Carlton <carlton@math.stanford.edu>
1400
1401 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1402 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1403 (read_file_scope): Check that line_header is nonzero before
1404 decoding macro information.
1405
14062002-08-20 Mark Kettenis <kettenis@gnu.org>
1407
1408 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1409 flag the general-purpose registers as floating-point on targets
1410 that don't support the floating-point registers.
1411
14122002-08-20 Elena Zannoni <ezannoni@redhat.com>
1413
1414 * rs6000-tdep.c (altivec_register_p): Delete.
1415 (rs6000_do_altivec_registers): Delete.
1416 (rs6000_altivec_registers_info): Delete.
1417 (rs6000_do_registers_info): Delete.
1418 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1419 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1420
14212002-08-20 Elena Zannoni <ezannoni@redhat.com>
1422
1423 * infcmd.c (do_registers_info): Print vector registers in hex
1424 format only.
1425 (print_vector_info): Check that printing registers
1426 makes sense.
1427 (print_float_info): Ditto.
1428
14292002-08-20 Andrew Cagney <ac131313@redhat.com>
1430
1431 * mips-tdep.c (mips_gdbarch_init): Update.
1432 (mips_o32_extract_return_value): Rewrite.
1433 (mips_o32_store_return_value): Rewrite.
1434 (mips_o32_xfer_return_value): New function.
1435 (mips_xfer_register): Tweak debug print message. Allow for
1436 buf_offset when dumping the value transfered.
1437
14382002-08-20 Andrew Cagney <ac131313@redhat.com>
1439
1440 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1441 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1442 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1443 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1444 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1445
14462002-08-14 Michael Snyder <msnyder@redhat.com>
1447
1448 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1449
14502002-08-19 Elena Zannoni <ezannoni@redhat.com>
1451
1452 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1453 register.
1454 (P): New macro to define a register as a pseudo register.
1455 (R, R4, R8, R16, FR32, R64, R0): Updated.
1456 (struct variant): Add new fields for number of pseudo registers
1457 and number of total registers.
1458 (tot_num_registers): New macro replacing....
1459 (num_registers): ...deleted macro.
1460 (num_registers): New function.
1461 (num_pseudo_registers): New function.
1462 (variants): Update all variants to intialize new fields correctly.
1463 Postpone initialization of number of pseudo regs and real regs.
1464 (init_variants): New function.
1465 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1466 registers offsets.
1467
14682002-08-19 David Carlton <carlton@math.stanford.edu>
1469
1470 * valops.c (search_struct_field): Change error message to treat
1471 return value of 0 from value_static_field as meaning that field is
1472 optimized out.
1473 (value_struct_elt_for_reference): Ditto.
1474 * values.c (value_static_field): Treat an unresolved location the
1475 same as a nonexistent symbol. Fix PR gdb/635.
1476 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1477 enclosed. Fix PR gdb/574.
1478 * MAINTAINERS: Add self to Write After Approval list.
1479
14802002-08-19 Andrew Cagney <ac131313@redhat.com>
1481
1482 * mips-tdep.c (mips_xfer_register): New function.
1483 (mips_n32n64_extract_return_value): Rewrite.
1484 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1485 instead of deprecated_extract_return_value.
1486
14872002-08-19 Elena Zannoni <ezannoni@redhat.com>
1488
1489 * rs6000-tdep.c (TDEP): Delete macro.
1490 (branch_dest): Replace use of TDEP macro with its body.
1491 (rs6000_pop_frame): Ditto.
1492 (rs6000_push_arguments): Ditto.
1493 (rs6000_skip_trampoline_code): Ditto.
1494 (rs6000_frame_saved_pc): Ditto.
1495 (rs6000_frame_chain): Ditto.
1496 (rs6000_register_name): Ditto.
1497 (rs6000_register_byte): Ditto.
1498 (rs6000_register_raw_size): Ditto.
1499 (rs6000_register_virtual_type): Ditto.
1500 (rs6000_register_convertible): Ditto.
1501 (rs6000_convert_from_func_ptr_addr): Ditto.
1502
15032002-08-19 Daniel Jacobowitz <drow@mvista.com>
1504
1505 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1506 conditionally.
1507 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1508 MIPS_LINUX_JB_ELEMENT_SIZE.
1509 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1510 for MAX_REGISTER_RAW_SIZE arrays.
1511 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1512 MIPS_LINUX_JB_ELEMENT_SIZE.
1513
15142002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1515
1516 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1517
15182002-08-19 Aidan Skinner <aidan@velvet.net>
1519
1520 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1521 ada-valprint.c ada-tasks.c.
1522 (YYFILES): Add ada-exp.y.
1523 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1524 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1525 (ada-exp.tab.o): New target.
1526
15272002-08-18 Andrew Cagney <ac131313@redhat.com>
1528
1529 * regcache.c (regcache_xfer_part): New function.
1530 (regcache_raw_read_part): New function.
1531 (regcache_raw_write_part): New function.
1532 (regcache_cooked_read_part): New function.
1533 (regcache_cooked_write_part): New function.
1534 * regcache.h (regcache_raw_read_part): Declare.
1535 (regcache_raw_write_part): Declare.
1536 (regcache_cooked_read_part): Declare.
1537 (regcache_cooked_write_part): Declare.
1538
15392002-08-18 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * remote.c (remote_open_1): Add async_p.
1542 (remote_async_open_1): Delete.
1543 (open_remote_target): Delete.
1544 (remote_open, extended_remote_open): Update calls to remote_open_1.
1545 (remote_async_open, extended_remote_async_open): Call
1546 remote_open_1 instead of remote_async_open_1.
1547
15482002-08-19 Mark Kettenis <kettenis@gnu.org>
1549
1550 * blockframe.c: Fix a few coding standard violations.
1551
15522002-08-19 Mark Kettenis <kettenis@gnu.org>
1553
1554 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1555 here from ...
1556 * config/i386/tm-i386sco5.h: ... here. File removed.
1557 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1558
1559 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1560 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1561 (TM_FILE): Set to tm-i386.h.
1562 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1563 * config/i386/tm-i386v.h: Remove file.
1564 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1565 instead of "i386/tm-i386v.h".
1566 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1567 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1568 "i386/tm-i386v.h".
1569 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1570 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1571 "i386/tm-i386.h".
1572
15732002-08-18 Mark Kettenis <kettenis@gnu.org>
1574
1575 * config/i386/nm-i386v.h: Add protection against
1576 multiple-inclusion.
1577 (i386_register_u_addr): Remove prototype.
1578 (register_u_addr): New prototype.
1579 (REGISTER_U_ADDR): Redefine accordingly.
1580 * i386v-nat.c: Improve several comments.
1581 (i386_register_u_addr): Change signature and rename to
1582 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1583 ubase variable.
1584
15852002-08-18 Andrew Cagney <ac131313@redhat.com>
1586
1587 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1588 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1589 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1590 deprecated_extract_return_value.
1591 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1592 rename mips_o32o64_push_arguments.
1593 (mips_gdbarch_init): Update.
1594 (mips_extract_return_value): Delete.
1595 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1596 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1597 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1598 (mips_n32n64_extract_return_value): Clone
1599 mips_extract_return_value.
1600 (mips_store_return_value): Delete.
1601 (mips_o32_store_return_value): Clone mips_store_return_value.
1602 (mips_o64_store_return_value): Clone mips_store_return_value.
1603 (mips_eabi_store_return_value): Clone mips_store_return_value.
1604 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1605
16062002-08-18 Aidan Skinner <aidan@velvet.net>
1607
1608 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1609 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1610
16112002-08-18 Aidan Skinner <aidan@velvet.net>
1612
1613 * ada-lang.c: Run through gdb_indent.sh.
1614 * ada-lang.h: Run through gdb_indent.sh.
1615 * ada-tasks.c: Run through gdb_indent.sh.
1616 * ada-typeprint.c: Run through gdb_indent.sh.
1617 * ada-valprint.c: Run through gdb_indent.sh.
1618
16192002-08-18 Andrew Cagney <ac131313@redhat.com>
1620
1621 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1622 ABI.
1623
16242002-08-18 Mark Kettenis <kettenis@gnu.org>
1625
1626 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1627
1628 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1629 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1630
1631 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1632 write_register_gen instead of write_register_bytes.
1633
1634 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1635 i[3456]-*-osf1mk* configurations have been made obsolete.
1636 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1637 i[3456]86-*-osf1mk* hosts obsolete.
1638 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1639 targets obsolete.
1640 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1641 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1642 config/i386/i386m3.mt, config/i386/nm-m3.h,
1643 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1644 config/i386/i386mk.mh, config/i386/i386mk.mt,
1645 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1646 obsolete.
1647 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1648 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1649 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1650
16512002-08-18 Andrew Cagney <ac131313@redhat.com>
1652
1653 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1654 (hppa_value_returned_from_stack): Declare.
1655 (hppa_extract_return_value): Declare.
1656 * config/pa/hppa.mt: New file.
1657 * configure.tgt: Recognize hppa*-*-*.
1658 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1659
16602002-08-18 Mark Kettenis <kettenis@gnu.org>
1661
1662 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1663 comment.
1664
16652002-08-17 Mark Kettenis <kettenis@gnu.org>
1666
1667 * top.c (gdb_rl_operate_and_get_next): Make sure
1668 operate-and-get-next functions correctly even when the history
1669 list is completely filled.
1670
16712002-08-18 Andrew Cagney <ac131313@redhat.com>
1672
1673 * MAINTAINERS (Target Instruction Set Architectures): Rename
1674 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1675 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1676 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1677 already listed under Host/Native.
1678
1679 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1680 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1681 mips*-*-*.
1682
16832002-08-17 Andrew Cagney <ac131313@redhat.com>
1684
1685 * config/ia64/ia64.mt: New file.
1686 * config/alpha/alpha.mt: New file.
1687 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1688 ia64-linux-gnu. Mention that ia64-elf is broken.
1689 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1690
16912002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1692
1693 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1694 generic_func_frame_valid instead of func_frame_valid.
1695
16962002-08-16 Joel Brobecker <brobecker@gnat.com>
1697
1698 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1699 procfs appears to be broken when debugging on multi-processor
1700 machines. So enable software single stepping in order to avoid
1701 using the procfs interface to do next/step operations, using
1702 internal breakpoints instead.
1703
1704 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1705 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1706 make this pc address equal to the value it would have if the
1707 system stepping capability was used. Also set a new flag used
1708 to ensure that we don't readjust the PC one more time later.
1709
1710 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1711 address by DECR_PC_AFTER_BREAK when software single step is
1712 in use for this architecture, as this has already been taken
1713 care of in handle_inferior_event().
1714
17152002-08-16 Joel Brobecker <brobecker@gnat.com>
1716
1717 * infrun.c (handle_inferior_event): Minor reformatting, to make
1718 a rather long condition expression easier to read.
1719
17202002-08-16 Andrew Cagney <ac131313@redhat.com>
1721
1722 * Makefile.in (gdbtk.o): Move to end of file.
1723 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1724 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1725 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1726 (gdbtk-wrapper.o, gdbres.o): Ditto.
1727
17282002-08-16 Andrew Cagney <ac131313@redhat.com>
1729
1730 * Makefile.in (copying.o): Separate out compile rule.
1731 (hpux-thread.o, procfs.o, signals.o): Ditto.
1732 (v850ice.o, z8k-tdep.o): Ditto.
1733 (tui-file.o): Move to TUI section.
1734 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1735 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1736
17372002-08-16 Joel Brobecker <brobecker@gnat.com>
1738
1739 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1740 skip_trampoline_code, for better namespace-proofing.
1741
1742 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1743
17442002-08-16 Joel Brobecker <brobecker@gnat.com>
1745
1746 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1747
17482002-08-16 Joel Brobecker <brobecker@gnat.com>
1749
1750 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1751 signal, check whether we hit a breakpoint before checking for a
1752 single step breakpoint. Otherwise, GDB fails to notice that a
1753 breakpoint has been hit when stepping onto a breakpoint.
1754
17552002-08-16 Keith Seitz <keiths@redhat.com>
1756
1757 * gdb-events.sh (clear_gdb_event_hooks): New function.
1758 * gdb-events.c: Regenerate.
1759 * gdb-events.h: Regenerate.
1760
17612002-08-16 Andrew Cagney <ac131313@redhat.com>
1762
1763 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1764 not_a_sw_breakpoint.
1765 * breakpoint.h (bpstat_stop_status): Add parameter names.
1766
17672002-08-16 Grace Sainsbury <graces@redhat.com>
1768
1769 * remote.c (remote_insert_hw_breakpoint)
1770 (remote_remove_hw_breakpoint): Fix calculation of length field
1771 for Z-packet.
1772
17732002-08-15 Michael Snyder <msnyder@redhat.com>
1774
1775 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1776 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1777 (supply_fpregset): Ditto.
1778
1779 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1780 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1781 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1782 (TARGET_READ_SP): Delete.
1783 (DO_REGISTERS_INFO): Delete.
1784 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1785 Delete.
1786 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1787 from macros to functions.
1788
1789 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1790 (mips_register_convertible, mips_register_convert_to_virtual,
1791 mips_register_convert_to_raw): Make static.
1792 (mips_read_sp): New function.
1793 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1794 (mips_do_registers_info): Make static.
1795 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1796 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1797 (mips_register_convert_from_type, mips_register_convert_to_type):
1798 New functions.
1799 (mips_gdbarch_init): Set up function_start_offset,
1800 register_virtual_size, pc_in_sigtramp.
1801
18022002-08-15 Andrew Cagney <ac131313@redhat.com>
1803
1804 * infcmd.c (vector_info): New function.
1805 (_initialize_infcmd): Add command "info vector".
1806 (print_vector_info): New function.
1807
1808 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1809 * gdbarch.h, gdbarch.c: Regenerate.
1810
18112002-08-15 Andrew Cagney <ac131313@redhat.com>
1812
1813 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1814 ``print_all''. Only print vector registers when ``print_all''.
1815
18162002-08-15 Andrew Cagney <ac131313@redhat.com>
1817
1818 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1819 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1820
1821 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1822 Add `args' parameter.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824
1825 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1826
1827 * infcmd.c (float_info): Call print_float_info.
1828 (print_float_info): New function. By default, print the
1829 floating-point registers.
1830
1831 * arch-utils.h (default_print_float_info): Delete declaration.
1832 * arch-utils.c (default_print_float_info): Delete function.
1833
18342002-08-16 Mark Kettenis <kettenis@gnu.org>
1835
1836 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1837 out define.
1838
1839 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1840 FRAME.
1841
1842 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1843 * configure.host: Make i[3456]86-*-aix host obsolete.
1844 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1845 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1846 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1847 config/i386/xm-i386aix.h: Make files obsolete.
1848 * i386aix-nat.c: Make file obsolete.
1849 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1850 (i386aix-nat.o): Make target obsolete.
1851
1852 * config/i386/nm-gnu.h: Removed.
1853 * config/i386/nm-i386gnu.h: New file.
1854 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1855 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1856 Moved here from ...
1857 * config/i386/tm-i386gnu.h: ... here. Removed.
1858 * config/i386/xm-i386gnu.h: Removed.
1859 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1860 (NAT_FILE): Set to nm-i386gnu.h.
1861 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1862 * i386-tdep.c: New file.
1863 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1864 (i386gnu-tdep.o): Specify dependencies.
1865
18662002-08-15 Mark Kettenis <kettenis@gnu.org>
1867
1868 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1869 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1870 Adjust a few comments to reflect reality a bit closer.
1871 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1872 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1873 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1874 target_insert_watchpoint, target_remove_watchpoint):
1875 Move defines to ...
1876 * config/i386/nm-i386sco5.h: ... here.
1877 (kernel_u_size): Add prototype. Improve a few comments and add
1878 protection against multiple inclusion.
1879
1880 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1881 out define.
1882
1883 * uw-thread.c (SP_ARG0): Define if not already defined.
1884 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1885
1886 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1887
1888 * config/i386/tm-i386.h: Don't include "regcache.h".
1889
1890 * i387-tdep.h (i387_print_float_info): New prototype.
1891 * i387-tdep.c (print_i387_value, print_i387_ext,
1892 print_i387_status_word, print_i387_control_word): Add `struct
1893 ui_file *' argument and use it for output.
1894 (i387_print_float_info): Renamed from i387_float_info. Add
1895 `struct gdbarch *' and `struct ui_file *' arguments and use the
1896 latter for output.
1897 * i386-tdep.c: Include "i387-tdep.h".
1898 (i386_gdbarch_init): Set print_float_info.
1899 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1900 (FLOAT_INFO): Remove define.
1901
19022002-08-13 Michael Snyder <msnyder@redhat.com>
1903
1904 * mips-tdep.c (mips_push_arguments): Rename to
1905 mips_eabi_push_arguments, and tune for EABI.
1906 (MIPS_REGS_HAVE_HOME_P): Delete.
1907 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1908 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1909 Delete references to mips_regs_have_home_p.
1910
19112002-08-14 Keith Seitz <keiths@redhat.com>
1912
1913 * Makefile.in (install-gdbtk): Create insight plugin directory.
1914 Install plugins.tcl file.
1915
19162002-08-14 Keith Seitz <keiths@redhat.com>
1917
1918 * configure.in: Move SUBDIRS to near top of the file so that
1919 --enable options may add things to it.
1920 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1921 * configure: Regenerate.
1922
19232002-08-13 Michael Snyder <msnyder@redhat.com>
1924
1925 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1926 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1927 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1928
19292002-08-13 Andrew Cagney <ac131313@redhat.com>
1930
1931 * vax-tdep.c (vax_get_saved_register): Delete function.
1932 (vax_gdbarch_init): Update.
1933 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1934 (ns32k_gdbarch_init): Update.
1935 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1936 (alpha_gdbarch_init): Update.
1937
19382002-08-13 Andrew Cagney <cagney@redhat.com>
1939
1940 * regcache.c (init_regcache_descr): Overallocate the
1941 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1942 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1943 nr_raw_registers.
1944 (set_register_cached): Add range checking assertions. Use
1945 current_regcache.
1946
19472002-08-13 Mark Kettenis <kettenis@gnu.org>
1948
1949 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1950 numbers for MMX registers.
1951
19522002-08-13 Andrew Cagney <cagney@redhat.com>
1953
1954 * i386-tdep.c (i386_gdbarch_init): Use
1955 generic_unwind_get_saved_register.
1956
19572002-08-13 Kevin Buettner <kevinb@redhat.com>
1958
1959 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1960 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1961 target vector.
1962 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1963 Delete. Add comment regarding this now-deleted target method.
1964
19652002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1966
1967 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1968 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1969 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1970 real PC and the page number (if it's within the memory bank window).
1971 (m68hc11_pseudo_register_write): Likewise when saving.
1972 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1973 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1974 (m68hc11_register_raw_size): And use 32-bit for it.
1975 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1976 16K memory bank is used by the prog; also use the virtual pc.
1977
19782002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1979
1980 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1981 (m68hc11_gdbarch_init): Install it in gdbarch.
1982 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1983 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1984 (MSYMBOL_SIZE): New for documentation.
1985 (insn_return_kind): Enum to specify how a function returns.
1986 (frame_extra_info): Cleanup and record the return mode.
1987 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1988 register in address computation.
1989 (m68hc11_get_return_insn): New to obtain the return instruction used
1990 by the function.
1991 (m68hc11_frame_init_saved_regs): Take into account the return
1992 instruction used by the function for far and interrupt functions.
1993 (m68hc11_init_extra_frame_info): Take into account page register.
1994 (m68hc11_frame_args_address): Adjust according to the return mode.
1995 (show_regs): Print page register only when it's used.
1996
19972002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1998
1999 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2000 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2001 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2002 registers.
2003 (m68hc11_register_raw_size): Likewise.
2004
20052002-08-13 Andrew Cagney <cagney@redhat.com>
2006
2007 * i386-tdep.c (i386_register_name): Handle mmx registers.
2008 (mmx_regnum_p): New function.
2009 (i386_mmx_names): New array.
2010 (mmx_num_regs): New variable.
2011 (i386_pseudo_register_read): New function.
2012 (i386_pseudo_register_write): New function.
2013 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2014
2015 * regcache.c (regcache_raw_read_unsigned): New function.
2016 (regcache_raw_read_signed): New function.
2017 * regcache.h (regcache_raw_read_unsigned): Declare.
2018 (regcache_raw_read_signed): Declare.
2019
20202002-08-13 Andrew Cagney <cagney@redhat.com>
2021
2022 * regcache.c (regcache_raw_read_as_address): Delete function.
2023 (regcache_cooked_read_signed): New function.
2024 (regcache_cooked_read_unsigned): New function.
2025 * regcache.h (regcache_cooked_read_signed): Declare.
2026 (regcache_cooked_read_unsigned): Declare.
2027 (regcache_raw_read_as_address): Delete declaration.
2028
2029 * blockframe.c (generic_read_register_dummy): Use
2030 regcache_cooked_read_unsigned.
2031 * i386-tdep.c (i386_extract_struct_value_address): Use
2032 regcache_cooked_read_unsigned.
2033
20342002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2035
2036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2037 double sizes according to ELF ABI flags.
2038 (gdbarch_tdep): Record elf_flags.
2039
20402002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2041
2042 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2043 (m6812_prolog): They can appear in 68HC12 function prologue.
2044 (m68hc11_frame_chain): Cleanup.
2045
20462002-08-12 Andrew Cagney <cagney@redhat.com>
2047
2048 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2049 declarations.
2050 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2051 (i386_linux_register_raw_size): Delete function.
2052 (i386_linux_init_abi): Update.
2053 * i386-tdep.c (i386_register_raw_size): Delete function.
2054 (i386_register_byte): Delete function.
2055 (i386_gdbarch_init): Update.
2056 (i386_register_size): Delete array.
2057 (i386_register_offset): Delete array.
2058
2059 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2060 (REGISTER_RAW_SIZE): Delete macro.
2061 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2062 (REGISTER_BYTE): Delete macro.
2063
20642002-08-11 Aidan Skinner <aidan@velvet.net>
2065
2066 * ada-lang.c (ada_lookup_partial_symbol)
2067 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2068 prototype names so that grep ^func works properly.
2069
2070 * ada-lang.c (ada_array_element_type)
2071 (ada_lookup_partial_symbol): Fix typos in parameter list.
2072
2073 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2074 Fix prototype names so that grep ^func works properly.
2075
20762002-08-10 Andrew Cagney <cagney@redhat.com>
2077 Elena Zannoni <ezannoni@redhat.com>
2078 Martin M. Hunt <hunt@redhat.com>
2079
2080 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2081 (build_builtin_type_vec128i): Set the vector bit.
2082 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2083 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2084 (build_builtin_type_vec64): New function.
2085 (build_builtin_type_vec64i): New function.
2086 (build_gdbtypes): Initialize builtin_type_vec64 and
2087 builtin_type_vec64i.
2088
20892002-08-09 Andrew Cagney <cagney@redhat.com>
2090
2091 * regcache.c (regcache_dump): Compare the register offset
2092 with REGISTER_BYTE.
2093 * arch-utils.c (generic_register_byte): New function.
2094 * arch-utils.h (generic_register_byte): Declare.
2095 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2096 * gdbarch.h, gdbarch.c: Regenerate.
2097
20982002-08-09 Andrew Cagney <cagney@redhat.com>
2099
2100 * regcache.c: Include "gdbcmd.h"
2101 (_initialize_regcache): Add commands "maintenance print
2102 registers", "maintenance print raw-registers" and "maintenance
2103 print cooked-registers".
2104 (enum regcache_dump_what): Define.
2105 (dump_endian_bytes): New function.
2106 (regcache_dump): New function.
2107 (regcache_print): New function.
2108 (maintenance_print_registers): New function.
2109 (maintenance_print_raw_registers): New function.
2110 (maintenance_print_cooked_registers): New function.
2111 * Makefile.in (regcache.o): Update dependencies.
2112
21132002-08-09 Michael Snyder <msnyder@redhat.com>
2114
2115 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2116 (mips_push_arguments): Correct some comments. Use paddr_nz
2117 for printing addresses in debug output. Replace static
2118 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2119 (mips_n32n64_push_arguments): New function, cloned from
2120 mips_push_arguments and tuned for the n32/n64 ABI.
2121 (mips_push_register): Buffer needs dynamic allocation.
2122 (mips_print_register): Ditto.
2123 (do_gp_register_row): Ditto.
2124 (mips_store_return_value): Ditto.
2125 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2126
21272002-08-09 Don Howard <dhoward@redhat.com>
2128
2129 * memattr.c (mem_info_command): Print special case of upper bound
2130 as max CORE_ADDR + 1.
2131
21322002-08-08 Michael Snyder <msnyder@redhat.com>
2133
2134 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2135 returns structs by ref if they're too big to fit in two registers.
2136
21372002-08-09 Kevin Buettner <kevinb@redhat.com>
2138
2139 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2140 saved regs value.
2141 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2142 mips_find_saved_regs().
2143 (mips_pop_frame): Likewise.
2144
21452002-08-09 Kevin Buettner <kevinb@redhat.com>
2146
2147 * blockframe.c (frame_saved_regs_register_unwind): Revise
2148 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2149 frames are in use.
2150
21512002-08-09 Grace Sainsbury <graces@redhat.com>
2152
2153 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2154 T-packets; the 'a' is not taken as a register number.
2155 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2156 (remote_stopped_data_address): New functions; add to target
2157 vector.
2158 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2159 prototypes to match other implementations of this
2160 function. replace integer argument with pointer -- the length
2161 field in the Z-packet is the length of what is pointed to or 1 if
2162 pointer is null. Add to target vector.
2163 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2164 target vector.
2165
2166 From Mark Salter:
2167 * remote.c (remote_wait): Add support to extract optional
2168 watchpoint information from T-packet. Ignore unrecognized
2169 optional info in T-packet.
2170 (remote_async_wait): Ditto.
2171
21722002-08-09 Corinna Vinschen <vinschen@redhat.com>
2173
2174 * cli/cli-dump.c: Change fopen modes to use binary open modes
2175 as defined in include/fopen-bin.h throughout.
2176
21772002-08-08 Michael Snyder <msnyder@redhat.com>
2178
2179 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2180
21812002-08-08 Kevin Buettner <kevinb@redhat.com>
2182
2183 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2184 assertion failure by returning early after a warning.
2185
21862002-08-08 Kevin Buettner <kevinb@redhat.com>
2187
2188 * mips-tdep.c (mips_find_saved_regs): Make static.
2189 (mips_frame_init_saved_regs): New function.
2190 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2191 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2192 (mips_find_saved_regs): Delete declaration.
2193
21942002-08-08 Grace Sainsbury <graces@redhat.com>
2195
2196 * remote.c (remote_wait, remote_async_wait): Change
2197 thread_num from int to ULONGEST.
2198 (unpack_varlen_hex): Change result parameter from
2199 int * to ULONGEST *.
2200
22012002-08-08 Andrew Cagney <ac131313@redhat.com>
2202
2203 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2204 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2205 powerpc*-*-*.
2206 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2207
22082002-08-08 Andrew Cagney <cagney@redhat.com>
2209
2210 * gcore.c (override_derive_stack_segment): Delete variable.
2211 (preempt_derive_stack_segment): Delete function.
2212 (derive_stack_segment): Delete function.
2213 (default_derive_stack_segment): Renamed to derive_stack_segment.
2214 (override_derive_heap_segment): Delete variable.
2215 (preempt_derive_heap_segment): Delete function.
2216 (derive_heap_segment): Delete function.
2217 (default_derive_heap_segment): Rename to derive_heap_segment.
2218
22192002-08-06 Michael Snyder <msnyder@redhat.com>
2220
2221 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2222 * mips-tdep.c (mips_EABI_use_struct_convention,
2223 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2224 New functions. (mips_use_struct_convention): Delete.
2225 (mips_gdbarch_init): set use_gdbarch_convention.
2226
22272002-08-06 Michael Snyder <msnyder@redhat.com>
2228
2229 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2230 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2231 mips_o32_reg_struct_has_addr): New functions.
2232 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2233
22342002-08-07 Andrew Cagney <ac131313@redhat.com>
2235
2236 * regcache.c (pseudo_register): Delete function.
2237 (fetch_register): Delete function.
2238 (store_register): Delete function.
2239 (regcache_raw_read, legacy_read_register_gen): Use
2240 target_fetch_registers instead of fetch_register.
2241 (legacy_write_register_gen, regcache_raw_write): Use
2242 target_store_register instead of store_register.
2243 (write_register_bytes): Ditto.
2244
2245 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2246 (STORE_PSEUDO_REGISTER): Delete.
2247 * gdbarch.h, gdbarch.c: Regenerate.
2248
22492002-08-06 Corinna Vinschen <vinschen@redhat.com>
2250
2251 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2252 write dump file binary.
2253
22542002-08-05 Michael Snyder <msnyder@redhat.com>
2255
2256 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2257 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2258 (mips_gdbarch_init): Set N32 target to be mips64.
2259
22602002-08-06 Kevin Buettner <kevinb@redhat.com>
2261
2262 * frame.c (find_saved_register): Break out of loop once saved
2263 register address is found. Don't mention sparc in loop comment
2264 anymore.
2265
22662002-08-06 Kevin Buettner <kevinb@redhat.com>
2267
2268 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2269 mips_default_saved_regsize to 8.
2270
22712002-08-06 Andrew Cagney <ac131313@redhat.com>
2272
2273 * gcore.c: Do not include <sys/procfs.h>.
2274 * Makefile.in (gcore.o): Update dependencies.
2275
22762002-08-06 Andrew Cagney <cagney@redhat.com>
2277
2278 * configure.tgt: Make arc-*-* obsolete.
2279 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2280 * MAINTAINERS: Make arc-elf obsolete.
2281 * arc-tdep.c: Make file obsolete.
2282 * config/arc/arc.mt: Ditto.
2283 * config/arc/tm-arc.h: Ditto.
2284
22852002-08-05 Theodore A. Roth <troth@verinet.com>
2286
2287 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2288
22892002-08-05 Andrew Cagney <ac131313@redhat.com>
2290
2291 * mcore-tdep.c (mcore_gdbarch_init): Use
2292 generic_unwind_get_saved_register instead of
2293 generic_get_saved_register.
2294 * v850-tdep.c (v850_gdbarch_init): Ditto.
2295 * frv-tdep.c (frv_gdbarch_init): Ditto.
2296 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2297 * s390-tdep.c (s390_gdbarch_init): Ditto.
2298 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2299 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2300 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2301
23022002-08-05 Joel Brobecker <brobecker@gnat.com>
2303
2304 * objfiles.h: Add missing #include "symfile.h"
2305
2306 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2307
23082002-08-04 Andrew Cagney <ac131313@redhat.com>
2309
2310 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2311 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2312 of FIELD_BITSIZE.
2313
23142002-08-04 Daniel Jacobowitz <drow@mvista.com>
2315
2316 * NEWS: Cleanup and nitpick.
2317
23182002-08-03 Andrew Cagney <ac131313@redhat.com>
2319
2320 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2321
23222002-08-03 Andrew Cagney <ac131313@redhat.com>
2323
2324 * Makefile.in (gdbtk-bp.o): Update dependencies.
2325 (gdbtk-register.o): Ditto.
2326 (gdbtk-varobj.o): Ditto.
2327
23282002-08-03 Andrew Cagney <cagney@redhat.com>
2329
2330 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2331 m68hc11_fetch_pseudo_register.
2332 (m68hc11_pseudo_register_write): Replace
2333 m68hc11_store_pseudo_register.
2334 (m68hc11_gdbarch_init): Update.
2335
2336Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2337
2338 * gdbarch.sh: Include "gdb_string.h".
2339 * gdbarch.c: Regenerate.
2340
2341 * regcache.c: Include "gdb_string.h".
2342 * ax-general.c: Ditto.
2343 * varobj.c: Ditto.
2344 * std-regs.c: Ditto.
2345 * fbsd-proc.c: Ditto.
2346 * thread.c: Ditto.
2347
2348 * Makefile.in (regcache.o): Update dependencies.
2349 (thread.o, gdbarch.o): Ditto.
2350 (ax-general.o, gdbarch.o): Ditto.
2351 (varobj.o, std-regs.o): Ditto.
2352 (fbsd-proc.o): Specify dependencies.
2353
23542002-08-02 Andrew Cagney <cagney@redhat.com>
2355
2356 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2357 regnum.
2358 (regcache_cooked_write): Ditto.
2359
23602002-08-02 Andrew Cagney <ac131313@redhat.com>
2361
2362 * regcache.c (regcache_cooked_read): New function.
2363 (regcache_cooked_write): New function.
2364 (read_register_gen): Rewrite using regcache_cooked_read.
2365 (write_register_gen): Rewrite using regcache_cooked_write.
2366
2367 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2368 Declare.
2369
23702002-08-02 Andrew Cagney <cagney@redhat.com>
2371
2372 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2373 Replace the architecture methods register_read and register_write.
2374 * gdbarch.h, gdbarch.c: Regenerate.
2375 * regcache.c (init_regcache_descr): Update.
2376 (read_register_gen): Update.
2377 (write_register_gen): Update.
2378 (supply_register): Update comment.
2379
2380 * sh-tdep.c (sh_gdbarch_init): Update.
2381 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2382 `regcache' and `gdbarch' parameters. Make `buffer' a void
2383 pointer. Update code.
2384 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2385 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2386 void pointer. Update code.
2387 (sh64_register_write): Delete.
2388 (sh4_register_read): Delete.
2389 (sh64_register_read): Delete.
2390 (sh4_register_write): Delete.
2391 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2392 void pointer, `to' parameter a void pointer.
2393 (sh_sh64_register_convert_to_raw): Ditto.
2394
23952002-08-01 Kevin Buettner <kevinb@redhat.com>
2396
2397 * mips-tdep.c (mips_register_virtual_type): Use architecture
2398 invariant return values.
2399
24002002-08-01 Andrew Cagney <cagney@redhat.com>
2401
2402 * linux-proc.c: Include "gdb_string.h".
2403 * Makefile.in (linux-proc.o): Update dependency list.
2404
24052002-08-01 Kevin Buettner <kevinb@redhat.com>
2406
2407 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2408 comment.
2409
24102002-08-01 Grace Sainsbury <graces@redhat.com>
2411
2412 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2413 to_insert_watchpoint, to_remove_watchpoint,
2414 to_stopped_by_watchpoint, to_stopped_data_address,
2415 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2416 target vecctor. Define their corresponding macros so they call
2417 them.
2418
2419 * target.c: Add default and debug versions of for
2420 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2421 to_insert_watchpoint, to_remove_watchpoint,
2422 to_stopped_by_watchpoint, to_stopped_data_address,
2423 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2424
24252002-08-01 Kevin Buettner <kevinb@redhat.com>
2426
2427 * mips-tdep.c (mips_register_virtual_type): New function.
2428 (mips_gdbarch_init): Register mips_register_virtual_type()
2429 with gdbarch machinery.
2430 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2431 this file instead of tm-bigmips.h.
2432 (MIPS_REGSIZE): Delete this macro.
2433 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2434 multiarch version in mips-tdep.c will be found.
2435
24362002-08-01 Andrew Cagney <cagney@redhat.com>
2437
2438 * NEWS: Menion that CHILL has been made obsolete.
2439
2440 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2441 * stabsread.c (read_range_type): Ditto.
2442 * gdbtypes.h: Ditto.
2443 * language.c (binop_type_check): Ditto.
2444 (binop_result_type): Ditto.
2445 (integral_type): Ditto.
2446 (character_type): Ditto.
2447 (string_type): Ditto.
2448 (boolean_type): Ditto.
2449 (structured_type): Ditto.
2450 (lang_bool_type): Ditto.
2451 (binop_type_check): Ditto.
2452 * language.h (_LANG_chill): Ditto.
2453 * dwarfread.c (set_cu_language): Ditto.
2454 * dwarfread.c (CHILL_PRODUCER): Ditto.
2455 * dwarfread.c (handle_producer): Ditto.
2456 * expression.h (enum exp_opcode): Ditto.
2457 * eval.c: Ditto for comments.
2458 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2459 * expprint.c (print_subexp): Ditto.
2460 (print_subexp): Ditto.
2461 * valops.c (value_cast): Ditto.
2462 (search_struct_field): Ditto.
2463 * value.h (COERCE_VARYING_ARRAY): Ditto.
2464 * symfile.c (init_filename_language_table): Ditto.
2465 (add_psymbol_with_dem_name_to_list): Ditto.
2466 * valarith.c (value_binop): Ditto.
2467 (value_neg): Ditto.
2468 * valops.c (value_slice): Ditto.
2469 * symtab.h (union language_specific): Ditto.
2470 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2471 (SYMBOL_DEMANGLED_NAME): Ditto.
2472 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2473 * defs.h (enum language): Ditto.
2474 * symtab.c (got_symtab): Ditto.
2475 * utils.c (fprintf_symbol_filtered): Ditto.
2476
2477 * ch-typeprint.c: Make file obsolete.
2478 * ch-valprint.c: Make file obsolete.
2479 * ch-lang.h: Make file obsolete.
2480 * ch-exp.c: Make file obsolete.
2481 * ch-lang.c: Make file obsolete.
2482
2483 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2484 CHILL_LIB.
2485 (TARGET_FLAGS_TO_PASS): Ditto.
2486 (CHILLFLAGS): Obsolete.
2487 (CHILL): Obsolete.
2488 (CHILL_FOR_TARGET): Obsolete.
2489 (CHILL_LIB): Obsolete.
2490 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2491 ch-valprint.c.
2492 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2493 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2494 ch-lang.o.
2495 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2496 targets.
2497
24982002-07-31 Joel Brobecker <brobecker@gnat.com>
2499
2500 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2501 This does not change anything at the moment, but will be helpful
2502 later when full Ada support is integrated.
2503
25042002-07-31 Kevin Buettner <kevinb@redhat.com>
2505
2506 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2507 help message.
2508
25092002-07-31 Kevin Buettner <kevinb@redhat.com>
2510
2511 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2512 and save it in a local variable. Use variable in later test.
2513
25142002-07-31 Kevin Buettner <kevinb@redhat.com>
2515
2516 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2517 test. (Thanks to Daniel Jacobowitz.)
2518
25192002-07-31 Kevin Buettner <kevinb@redhat.com>
2520
2521 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2522 (mips_abi_strings): Add "n64".
2523 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2524
25252002-07-31 Kevin Buettner <kevinb@redhat.com>
2526
2527 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2528 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2529
25302002-07-31 Kevin Buettner <kevinb@redhat.com>
2531
2532 * utils.c (host_pointer_to_address, address_to_host_pointer):
2533 Use gdb_assert() instead of explicit call to internal_error().
2534
25352002-07-30 Kevin Buettner <kevinb@redhat.com>
2536
2537 * Makefile.in (rs6000-nat.o): Update dependencies.
2538
2539 From Nicholas Duffek:
2540 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2541 (aix-thread.o): New rule.
2542 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2543 * config/powerpc/aix432.mh: New file.
2544
25452002-07-30 Daniel Jacobowitz <drow@mvista.com>
2546
2547 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2548 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2549 (fetch_core_registers, ppc_linux_supply_gregset)
2550 (ppc_linux_supply_fpregset): New functions.
2551 (ppc_linux_regset_core_fns): New.
2552 (_initialize_ppc_linux_tdep): Call add_core_fns.
2553 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2554 and ppc_linux_supply_gregset.
2555 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2556 (supply_fpregset): Call ppc_linux_supply_fpregset.
2557 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2558 corelow.o.
2559 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2560
25612002-07-30 Daniel Jacobowitz <drow@mvista.com>
2562
2563 * symtab.c (lookup_symbol): Demangle before lowercasing.
2564
25652002-07-30 Andrew Cagney <ac131313@redhat.com>
2566
2567 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2568 declaration.
2569 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2570 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2571 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2572 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2573 "gdb_string.h".
2574 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2575 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2576 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2577 (avr-tdep.o, mon960-rom.o): Ditto.
2578 (aout_stabs_gnu_h): Define.
2579 (symtab_h): Remove $(gdb_obstack_h).
2580
25812002-07-30 Jim Blandy <jimb@redhat.com>
2582
2583 Patch from David Carlton <carlton@math.stanford.edu>:
2584 * gdbinit.in: Move the `dir' commands that add GDB's own source
2585 directory to the search path to the end, so that the `gdb' source
2586 directory will be searched first.
2587
25882002-07-29 Andrew Cagney <ac131313@redhat.com>
2589
2590 * gdb_obstack.h: New file.
2591 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2592 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2593 * objfiles.h: Include "gdb_obstack.h".
2594 * Makefile.in (gdb_obstack_h): Define.
2595 (symtab_h): Add $(gdb_obstack_h).
2596 (objfiles_h): Add $(gdb_obstack_h).
2597
2598 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2599 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2600 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2601 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2602 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2603 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2604 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2605 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2606
2607 * Makefile.in (bcache.o): Update dependencies.
2608 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2609 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2610 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2611 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2612 (stabsread.o, symfile.o, symmisc.o): Ditto.
2613 (symtab.o, typeprint.o, macroexp.o): Ditto.
2614 (macrotab.o, mdebugread.o): Ditto.
2615 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2616 (coff_ecoff_h, aout_aout64_h): Define.
2617 (aout_stabs_gnu_h, libaout_h): Define.
2618
26192002-07-29 Andrew Cagney <cagney@redhat.com>
2620
2621 * regcache.c (struct regcache_descr): Rename nr_registers to
2622 nr_cooked_registers. Revise comments describing the structure
2623 member fields.
2624 (init_regcache_descr): Update.
2625 (init_legacy_regcache_descr): Update.
2626 (read_register_gen, write_register_gen): When a cooked register in
2627 the raw register range, directly access the value from the raw
2628 register cache.
2629
26302002-07-29 Andrew Cagney <ac131313@redhat.com>
2631
2632 * z8k-tdep.c: Do not include "obstack.h".
2633 * h8300-tdep.c, h8500-tdep.c: Ditto.
2634 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2635 * valprint.c, v850-tdep.c: Ditto.
2636 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2637 * mn10200-tdep.c: Ditto.
2638
2639 * Makefile.in (z8k-tdep.o): Update dependencies.
2640 (m68hc11-tdep.o, valprint.o): Ditto.
2641 (v850-tdep.o, d10v-tdep.o): Ditto.
2642 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2643 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2644 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2645 (sh_opc_h, gdb_sim_sh_h): Define.
2646 (elf_sh_h, elf_bfd_h): Define.
2647 (opcode_m68hc11_h): Define.
2648 (OPCODES_SRC, OPCODES_DIR): define.
2649 (OPCODES): Use $(OPCODES_DIR).
2650 (gdb_sim_d10v_h): Rename sim_d10v_h.
2651 (gdb_sim_arm_h): Rename sim_arm_h.
2652
26532002-07-26 Kevin Buettner <kevinb@redhat.com>
2654
2655 * utils.c (host_pointer_to_address, address_to_host_pointer):
2656 Change internal_error() message to indicate function responsible
2657 for the error.
2658
26592002-07-26 Kevin Buettner <kevinb@redhat.com>
2660
2661 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2662 calls to local_hex_string_custom().
2663
26642002-07-26 Kevin Buettner <kevinb@redhat.com>
2665
2666 * irix5-nat.c: Move IRIX shared library support from here...
2667 * solib-irix.c: ...to here. Revised substantially to work with
2668 generic solib framework.
2669
2670 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2671 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2672 * mips-irix-tdep.c: New file.
2673
2674 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2675 (mips-irix-tdep.o, solib-irix.o): New rules.
2676 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2677 solib-irix.o.
2678 * config/mips/irix6.mt (TDEPFILES): Likewise.
2679 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2680
26812002-07-26 Kevin Buettner <kevinb@redhat.com>
2682
2683 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2684 disabled (via ``#if 0'') includes.
2685
26862002-07-26 Kevin Buettner <kevinb@redhat.com>
2687
2688 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2689 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2690 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2691 Add support for the fpscr register.
2692 * rs6000-nat.c (regmap, fetch_inferior_registers)
2693 (store_inferior_registers, fetch_core_registers): Likewise.
2694
26952002-07-26 Kevin Buettner <kevinb@redhat.com>
2696
2697 * rs6000-nat.c (language.h): Include.
2698 (special_regs): Delete this array.
2699 (regmap): New function.
2700 (fetch_register, store_register): Use regmap() to map gdb
2701 register numbers to ptrace register numbers. Also, use
2702 outputs from regmap() to make decisions regarding type of
2703 ptrace() call to make. In particular, don't compare against
2704 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2705 (fetch_inferior_registers, store_inferior_registers): Where
2706 possible, obtain register numbers from tdep struct. Don't
2707 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2708 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2709 (LAST_UISA_SP_REGNUM): Delete.
2710
27112002-07-25 Kevin Buettner <kevinb@redhat.com>
2712
2713 * rs6000-nat.c (ppc-tdep.h): Include.
2714 (fetch_registers, store_register, fetch_core_registers): Don't
2715 access registers[] directly. Instead, use supply_register() or
2716 regcache_collect() as appropriate.
2717 (find_toc_address): Format hex address with local_hex_string().
2718
27192002-07-25 Andrew Cagney <ac131313@redhat.com>
2720
2721 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2722 bfd/elf32-frv.c.
2723
27242002-07-24 Tom Tromey <tromey@redhat.com>
2725
2726 * jv-exp.y: Marked all strings with _().
2727 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2728 internal_error.
2729 (MethodInvocation, CastExpression, parse_number, yyerror,
2730 java_type_from_name, push_expression_name, yylex): Typo fixes.
2731
27322002-07-24 Daniel Jacobowitz <drow@mvista.com>
2733
2734 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2735 (tee_file_flush, tee_file_write, tee_file_fputs)
2736 (tee_file_isatty): New.
2737 * ui-file.h (tee_file_new): Add prototype.
2738
27392002-07-24 Aidan Skinner <aidan@velvet.net>
2740
2741 * ada-lang.c: Change k&r style function definitions to prototyped
2742 form.
2743 * ada-typeprint.c: Change k&r style function definitions to prototyped
2744 form.
2745 * ada-valprint.c: Change k&r style function definitions to prototyped
2746 form.
2747
27482002-07-24 Andrew Cagney <cagney@redhat.com>
2749
2750 * README: Remove reference to remote-bug.
2751 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2752 remote-bug.c.
2753 (m88k-nat.o): Delete rule.
2754 (m88k-tdep.o): Delete rule.
2755 (remote-bug.o): Delete rule.
2756 * MAINTAINERS: Mark as obsolete.
2757 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2758 * m88k-tdep.c: Make file obsolete.
2759 * config/m88k/m88k.mh: Ditto.
2760 * config/m88k/delta88v4.mh: Ditto.
2761 * config/m88k/delta88v4.mt: Ditto.
2762 * config/m88k/delta88.mt: Ditto.
2763 * config/m88k/delta88.mh: Ditto.
2764 * remote-bug.c: Ditto.
2765 * config/m88k/tm-delta88.h: Ditto.
2766 * config/m88k/nm-delta88v4.h: Ditto.
2767 * config/m88k/xm-delta88.h: Ditto.
2768 * config/m88k/xm-dgux.h: Ditto.
2769 * config/m88k/tm-m88k.h: Ditto.
2770 * config/m88k/nm-m88k.h: Ditto.
2771 * config/m88k/tm-delta88v4.h: Ditto.
2772 * m88k-nat.c: Ditto.
2773 * cxux-nat.c: Ditto.
2774 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2775 and m88*-*-* obsolete.
2776 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2777 m88*-*-* obsolete.
2778
27792002-07-24 Andrew Cagney <cagney@redhat.com>
2780
2781 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2782 constant. Same for local pointer variables.
2783 (extract_signed_integer): Ditto.
2784 * defs.h (extract_unsigned_integer): Update.
2785 (extract_signed_integer): Update.
2786
27872002-07-24 Andrew Cagney <cagney@redhat.com>
2788
2789 * regcache.c (regcache_raw_write): Change buf parameter to a
2790 constant void pointer.
2791 (regcache_raw_read): Change buf parameter to a void pointer.
2792 (legacy_write_register_gen): Change myaddr parameter a constant
2793 void pointer.
2794 (supply_register): Change val parameter to a const void pointer.
2795 * regcache.h (regcache_raw_write): Update declaration.
2796 (regcache_raw_read): Update declaration.
2797 (supply_register): Update declaration.
2798
27992002-07-24 Tom Tromey <tromey@redhat.com>
2800
2801 * defs.h (gdb_readline_wrapper): Declare.
2802 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2803 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2804 * top.c (gdb_readline_wrapper): New function.
2805 (command_line_input): Use it.
2806
28072002-07-24 Andrew Cagney <cagney@redhat.com>
2808
2809 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2810 regcache_read and regcache_write.
2811 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2812 * regcache.c: Update.
2813 * sh-tdep.c (sh64_push_arguments): Update comment.
2814 (sh_pseudo_register_read): Update.
2815 (sh_pseudo_register_write): Update.
2816 (sh4_register_read): Update.
2817 (sh4_register_write): Update.
2818 (sh64_pseudo_register_read): Update.
2819 (sh64_pseudo_register_write): Update.
2820 (sh64_register_read): Update.
2821 (sh64_register_write): Update.
2822 * i386-tdep.c (i386_extract_return_value): Update.
2823 (i386_extract_struct_value_address): Update.
2824 (i386_extract_return_value): Update.
2825 * blockframe.c (generic_read_register_dummy): Update.
2826 (generic_call_dummy_register_unwind): Update
2827 * infrun.c (write_inferior_status_register): Update.
2828
28292002-07-23 Jim Blandy <jimb@redhat.com>
2830
2831 * parser-defs.h (expression_context_pc): Make this extern.
2832 (Thanks to Michael Snyder.)
2833
28342002-07-23 Andrew Cagney <ac131313@redhat.com>
2835
2836 GDB 5.2.1 released from 5.2 branch.
2837 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2838 * README: Update to mention 5.2.1.
2839
28402002-07-23 Mark Salter <msalter@redhat.com>
2841
2842 * remote.c (remote_read_bytes): Fix check for error.
2843
28442002-07-22 Kevin Buettner <kevinb@redhat.com>
2845
2846 * aix-thread.c (language.h): Include.
2847 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2848 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2849 Print newlines at end of debug messages.
2850 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2851 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2852
28532002-07-22 Kevin Buettner <kevinb@redhat.com>
2854
2855 * aix-thread.c (ppc-tdep.h): Include.
2856 (special_register_p): New function.
2857 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2858 (store_regs_user_thread): Use register number information from
2859 gdbarch_tdep struct instead of hardcoded offsets relative to
2860 FIRST_UISA_SP_REGNUM.
2861 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2862 special_register_p() instead of using FPLAST_REGNUM and
2863 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2864 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2865 will be MQ's register number.
2866
28672002-07-22 Michael Snyder <msnyder@redhat.com>
2868
2869 * aix-thread.c (ops): Rename to aix_thread_ops.
2870 (base_ops): Rename to base_target.
2871 (ops_attach): Rename to aix_thread_attach.
2872 (ops_detach): Rename to aix_thread_detach.
2873 (ops_resume): Rename to aix_thread_detach.
2874 (ops_wait): Rename to aix_thread_wait.
2875 (ops_kill): Rename to aix_thread_kill.
2876 (init_ops): Rename to init_aix_thread_ops.
2877 (ops_fetch_register): Rename to aix_thread_fetch_register.
2878 (ops_store_register): Rename to aix_thread_store_register.
2879 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2880 (ops_thread_alive): Rename to aix_thread_thread_alive.
2881 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2882 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2883 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2884 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2885 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2886 (store_regs_lib): Rename to store_regs_user_thread.
2887 (store_regs_kern): Rename to store_regs_kernel_thread.
2888
28892002-07-22 Michael Snyder <msnyder@redhat.com>
2890
2891 * aix-thread.c (ops_prepare_to_store): Eliminate.
2892 (init_ops): Don't initialize ops.prepare_to_store.
2893 (store_regs_kern): Pre-fetch register buffers from child,
2894 because some registers may not be in the cache. Copy
2895 regs from register cache only if they are cached.
2896 (store_regs_lib): Copy regs from register cache only
2897 if they are cached.
2898 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2899 fill_gprs64): Ditto.
2900
29012002-07-22 Kevin Buettner <kevinb@redhat.com>
2902
2903 * aix-thread.c (gdb_assert.h): Include.
2904 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2905 register sizes (from register cache) match size of buffer holding
2906 register data.
2907 (fill_sprs32): Change parameter types to match those in the ptrace()
2908 buffer.
2909 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2910 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2911
29122002-07-22 Michael Snyder <msnyder@redhat.com>
2913
2914 * aix-thread.c (supply_sprs64): Cosmetic change.
2915 (supply_sprs32): Cosmetic change.
2916 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2917 (fill_sprs64): Use regcache_collect instead of read_register.
2918 (store_regs_lib): Use regcache_collect instead of
2919 read_register. Use fill_sprs32 instead of fill_sprs64,
2920 if debugging a 32-bit architecture.
2921 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2922 out of the register cache, instead of passing a pointer into
2923 the register cache directly to ptrace. Use regcache_collect
2924 insteaad of read_register.
2925 (ops_prepare_to_store): Use target_read_registers instead
2926 of read_register_bytes.
2927
29282002-07-20 Aidan Skinner <aidan@velvet.net>
2929
2930 * MAINTAINERS: Add self under write after approval.
2931
29322002-07-20 Aidan Skinner <aidan@velvet.net>
2933
2934 * ada-tasks.c: Change k&r style function definitions to prototyped
2935 form.
2936
29372002-07-19 Andrew Cagney <ac131313@redhat.com>
2938
2939 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2940 * x86-64-tdep.c: Include "objfiles.h".
2941 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2942 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2943
29442002-07-17 Michal Ludvig <michal@suse.cz>
2945
2946 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2947 (update_context): Initialise cfa variable.
2948
29492002-07-17 Michael Snyder <msnyder@redhat.com>
2950
2951 * aix-thread.c: Shorten some long lines.
2952 Bring comments into line with code spec.
2953
29542002-07-18 Joel Brobecker <brobecker@gnat.com>
2955
2956 * infrun.c: Re-indent using gdb_indent.sh.
2957
29582002-07-18 Joel Brobecker <brobecker@gnat.com>
2959
2960 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2961 Leave the indentation temporarily untouched, to minimize the diffs.
2962
29632002-07-18 Elena Zannoni <ezannoni@redhat.com>
2964
2965 * stabsread.c: Make os9k sections of the code obsolete,
2966 for real this time.
2967 * stabsread.h: Make os9k sections of the code obsolete.
2968
29692002-07-18 Michal Ludvig <mludvig@suse.cz>
2970
2971 * linux-low.c (regsets_store_inferior_registers): Add free()
2972 at the end of a loop to prevent memory leak.
2973 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2974 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2975 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2976 line a comment.
2977 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2978
29792002-07-17 Jim Blandy <jimb@redhat.com>
2980
2981 * macrocmd.c (info_macro_command): Remove newline from error
2982 message.
2983
29842002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2985
2986 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2987 (sh_gdbarch_init): Use it for sh-dsp.
2988
29892002-07-16 Kevin Buettner <kevinb@redhat.com>
2990
2991 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2992 64-bit DWARF2 format.
2993
29942002-07-16 Joel Brobecker <brobecker@gnat.com>
2995
2996 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2997 <sys/proc.h> when not available.
2998
29992002-07-16 Andrew Cagney <ac131313@redhat.com>
3000
3001 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3002 * stabsread.c: Make os9k sections of the code obsolete.
3003 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3004 * config/i386/i386os9k.mt: Make file obsolete.
3005 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3006 (COMMON_OBS): Remove os9kread.o
3007 (SFILES): Remove os9kread.c.
3008 (os9kread.o, remote-os9k.o): Make target obsolete.
3009 * remote-os9k.c: Make file obsolete.
3010 * os9kread.c: Make file obsolete.
3011 * Makefile.in
3012
30132002-07-16 Andrew Cagney <ac131313@redhat.com>
3014
3015 * NEWS: Mention that the FR30 has been made obsolete.
3016 * fr30-tdep.c: Make file obsolete.
3017 * config/fr30/tm-fr30.h: Ditto.
3018 * config/fr30/fr30.mt: Ditto.
3019 * configure.tgt: Make fr30-*-elf obsolete.
3020 * MAINTAINERS: Make fr30-elf obsolete.
3021
30222002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3023
3024 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3025 found is not inside a section.
3026
30272002-07-15 Kevin Buettner <kevinb@redhat.com>
3028
3029 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3030 strerror().
3031 (pdc_realloc): Use xrealloc() instead of realloc().
3032
30332002-07-15 Kevin Buettner <kevinb@redhat.com>
3034
3035 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3036 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3037 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3038 macros.
3039
30402002-07-15 Kevin Buettner <kevinb@redhat.com>
3041
3042 * aix-thread.c (ptrace_check): Eliminate goto.
3043 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3044 problem.
3045
30462002-07-15 Kevin Buettner <kevinb@redhat.com>
3047
3048 * aix-thread.c (gdbcmd.h): Include.
3049 (DEBUG, DBG, DBG2, dbg): Eliminate.
3050 (debug_aix_thread): New static global.
3051 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3052 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3053 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3054 invocations to DBG and DBG2 macros to test against
3055 ``debug_aix_thread'' and call fprintf_unfiltered().
3056 (_initialize_aix_thread): Add new command "set debug aix-thread".
3057
30582002-07-15 Andrew Cagney <ac131313@redhat.com>
3059
3060 From Gerhard Tonn <TON@de.ibm.com>:
3061 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3062 instead of supply_register.
3063
30642002-07-15 Andrew Cagney <ac131313@redhat.com>
3065
3066 * dwarf2cfi.c: Include "gdb_assert.h".
3067 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3068 non-NULL.
3069 (update_context): Do not use __func__. Add missing ``break''.
3070 (update_context): Do not use __func__.
3071
30722002-07-15 Elena Zannoni <ezannoni@redhat.com>
3073
3074 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3075 and its setting. Set gdbarch instruction printing functions
3076 directly. For non-rs6000 case use new function
3077 gdb_print_insn_powerpc.
3078 (gdb_print_insn_powerpc): New function.
3079
30802002-07-13 Andrew Cagney <ac131313@redhat.com>
3081
3082 * NEWS: Mention that the d30v has been marked obsolete.
3083 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3084 * configure.tgt: Mark d30v-*-* as obsolete.
3085 * d30v-tdep.c: Mark file as obsolete.
3086 * config/d30v/d30v.mt: Ditto.
3087 * config/d30v/tm-d30v.h: Ditto.
3088
30892002-07-13 Aidan Skinner <aidan@velvet.net>
3090
3091 * ada-tasks.c (add_task_entry): replace calls to
3092 malloc() with xmalloc
3093 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3094
3095 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3096 ada_finish_decode_line_1, all_sals_for_line
3097 ada_breakpoint_rewrite): replace calls to free() with xfree()
3098
30992002-07-12 Kevin Buettner <kevinb@redhat.com>
3100
3101 From Nicholas Duffek (with minor changes by Martin Hunt,
3102 Louis Hamilton, and Kevin Buettner):
3103 * aix-thread.c: New file.
3104
31052002-07-12 Petr Sorfa <petrs@caldera.com>
3106
3107 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3108 complaint for invalid attribute class or form.
3109 (read_func_scope): DW_AT_frame_base
3110 better handling of DW_AT_block*.
3111 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3112 better handling of DW_AT_block*.
3113 (read_common_block): DW_AT_location
3114 better handling of DW_AT_block*.
3115 (read_partial_die): DW_AT_location better handling
3116 of DW_AT_block*.
3117 (new_symbol): DW_AT_external better handling of
3118 DW_AT_block*. Proper initialization of variable
3119 "addr".
3120 (attr_form_is_block): New function that returns true
3121 if the attribute's form is of DW_FORM_block*.
3122
31232002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3124
3125 * valops.c (find_method_list): Remove comment about
3126 removed STATIC_MEMFUNCP argument.
3127 (value_find_oload_method_list): Likewise.
3128
31292002-07-12 Kevin Buettner <kevinb@redhat.com>
3130
3131 From Nicholas Duffek:
3132 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3133 target_new_objfile_hook.
3134
31352002-07-12 Kevin Buettner <kevinb@redhat.com>
3136
3137 From Nicholas Duffek:
3138 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3139 csect.
3140
31412002-07-12 Andrew Cagney <cagney@redhat.com>
3142
3143 * MAINTAINERS: Mention --enable-sim-build-warnings.
3144 (m68hc11-elf): Disable sim build warnings.
3145 (m32r-elf): Mark as broken obsolete candidate.
3146 (x86_64-linux-gnu): Mark as buildable with -Werror.
3147 (arm-elf): Change -w to ``,'' which enables warnings but not
3148 -Werror.
3149
31502002-07-12 Andrew Cagney <ac131313@redhat.com>
3151
3152 * bcache.h: Update copyright.
3153 (struct bstring, struct bcache): Move definition to "bcache.c".
3154 Replaced by opaque declaration.
3155 (bcache_xfree): Replace free_bcache.
3156 (bcache_xmalloc, bcache_memory_used): Declare.
3157
3158 * bcache.c: Update copyright.
3159 (struct bstring, struct bcache): Moved to here from "bcache.h".
3160 Update comments.
3161 (bcache_xmalloc, bcache_memory_used): New functions.
3162 (bcache_xfree): Replace function free_bcache.
3163
3164 * Makefile.in (objfiles.o): Add $(bcache_h).
3165 (objfiles_h): Remove $(bcache_h).
3166 (symfile.o): Add $(bcache_h).
3167
3168 * symmisc.c: Update copyright.
3169 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3170 (print_objfile_statistics): Use bcache_memory_used.
3171
3172 * symfile.c: Include "bcache.h".
3173 (reread_symbols): Use bcache_xfree.
3174 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3175 (add_psymbol_to_list): Pass psymbol_cache by value.
3176 (add_psymbol_with_dem_name_to_list): Ditto.
3177
3178 * objfiles.h: Update copyright.
3179 (struct bcache): Declare opaque. Do not include "bcache.h".
3180 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3181 bcache'' pointers.
3182 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3183
3184 * objfiles.c: Include "bcache.h". Update copyright.
3185 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3186 macro_cache.
3187 (free_objfile): Use bcache_xfree.
3188
31892002-07-11 Grace Sainsbury <graces@redhat.com>
3190
3191 * monitor.c (monitor_fetch_register): Make name a constant.
3192 (monitor_store_register): Same.
3193
31942002-07-11 Daniel Jacobowitz <drow@mvista.com>
3195
3196 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3197 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3198 (finish_block) For non-function blocks, hash the symbol table. For
3199 function blocks, mark the symbol table as unhashed.
3200 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3201 (msymbol_hash_iw): Likewise.
3202 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3203 value.
3204 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3205 (lookup_minimal_symbol): Likewise for both.
3206 * symtab.h (struct block): Add `hashtable' flag. Comment the
3207 hashtable.
3208 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3209 (ALL_BLOCK_SYMBOLS): Update.
3210 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3211 (struct symbol): Add `hash_next' pointer.
3212 * symtab.c (lookup_block_symbol): Search using the hash table when
3213 possible.
3214 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3215 (search_symbols, find_addr_symbol): Likewise.
3216
3217 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3218 (read_dst_symtab): Likewise.
3219 * jv-lang.c (get_java_class_symtab): Likewise.
3220 * mdebugread.c: Include "gdb_assert.h".
3221 (shrink_block): Assert that the block being modified is not hashed.
3222 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3223 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3224 symbols.
3225 (dump_symtab): Recognize hashed blocks.
3226 * printcmd.c (print_frame_args): Assert that function blocks do not
3227 have hashed symbol tables.
3228 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3229 (fill_in_ada_prototype, debug_print_block): Likewise.
3230 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3231
32322002-07-11 Corinna Vinschen <vinschen@redhat.com>
3233
3234 * stack.c (print_frame): Use result of frame_address_in_block()
3235 instead of fi->pc when evaluating symbols.
3236 (backtrace_command_1): Ditto.
3237
32382002-07-11 Andrew Cagney <cagney@redhat.com>
3239
3240 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3241 Make static.
3242
3243 * arm-tdep.c (arm_register_name): Make return type constant.
3244
32452002-07-10 Andrew Cagney <ac131313@redhat.com>
3246
3247 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3248 prototype.
3249 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3250 * s390-tdep.c (s390_fp_regnum): Ditto.
3251 (s390_read_fp): Ditto.
3252 (s390_pop_frame): Ditto.
3253 (_initialize_s390_tdep): Ditto.
3254 * remote.c (get_remote_state): Ditto.
3255 * procfs.c (mappingflags): Ditto.
3256 * memattr.c (_initialize_mem): Ditto.
3257 * mcore-tdep.c (mcore_pop_frame): Ditto.
3258 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3259 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3260 * language.c (set_case_str): Ditto.
3261 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3262 * frv-tdep.c (new_variant): Ditto.
3263 (frv_stopped_data_address): Ditto.
3264 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3265 (context_alloc): Ditto.
3266 (frame_state_alloc): Ditto.
3267 (unwind_tmp_obstack_init): Ditto.
3268 (unwind_tmp_obstack_free): Ditto.
3269 (cfi_read_fp): Ditto.
3270 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3271 (cris_pop_frame): Ditto.
3272 * c-lang.c (scanning_macro_expansion): Ditto.
3273 (finished_macro_expansion): Ditto.
3274 (c_preprocess_and_parse): Ditto.
3275 * gdbarch.sh: Ditto.
3276 * gdbarch.h, gdbarch.c: Regenerate.
3277 * config/mn10200/tm-mn10200.h: Adjust indentation.
3278 * target.c: Adjust indentation.
3279 * symtab.h: Adjust indentation.
3280 * stabsread.h: Adjust indentation.
3281 * remote-es.c: Adjust indentation.
3282 * os9kread.c: Adjust indentation.
3283
32842002-07-10 Andrew Cagney <ac131313@redhat.com>
3285
3286 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3287 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3288
32892002-07-10 Grace Sainsbury <graces@redhat.com>
3290
3291 * NEWS: Mention m68k, mcore multi-arching.
3292 * MAINTAINERS: Change status of m68k, mcore to reflect
3293 multi-arching.
3294
32952002-07-10 Daniel Jacobowitz <drow@mvista.com>
3296
3297 * valops.c (find_overload_match): Free oload_syms.
3298
32992002-07-09 Joel Brobecker <brobecker@gnat.com>
3300
3301 Define HAVE_SYS_PROC_H if sys/proc.h exists
3302 * configure.in: Add check for sys/proc.h
3303 * config.in: Regenerate.
3304 * configure: Regenerate.
3305
33062002-07-09 Grace Sainsbury <graces@redhat.com>
3307
3308 * config/m68k/tm-m68k.h: Remove macros wrapped in
3309 #if !GDB_MULTI_ARCH.
3310
33112002-07-08 Andrew Cagney <ac131313@redhat.com>
3312
3313 * config.in, configure: Regenerate.
3314
33152002-07-08 Mark Kettenis <kettenis@gnu.org>
3316
3317 * dwarf2cfi.c: Include "gcore.h".
3318 (execute_stack_op): Fix implementation of the
3319 DW_OP_deref and DW_OP_deref_size operators by letting do their
3320 lookup in the target.
3321
33222002-07-07 Mark Kettenis <kettenis@gnu.org>
3323
3324 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3325 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3326 tdep->sc_sp_offset.
3327
33282002-07-05 Daniel Jacobowitz <drow@mvista.com>
3329
3330 Fix PR gdb/595, gdb/602
3331 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3332 Don't call value_cast, just read the vtable pointer; update comments
3333 to match.
3334
33352002-07-05 Grace Sainsbury <graces@redhat.com>
3336
3337 * config/mcore/tm-mcore.h: Remove file.
3338 * config/mcore/mcore.mt: Remove definition of TM_FILE
3339 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3340
33412002-07-05 Mark Kettenis <kettenis@gnu.org>
3342
3343 * i386bsd-tdep.c: Include "gdb_string.h".
3344
33452002-07-04 Grace Sainsbury <graces@redhat.com>
3346
3347 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3348 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3349 mcore-tdep.
3350 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3351 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3352 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3353 (RETVAL_REGNUM): Move macros from tm-mcore.h
3354 (mcore_reg_struct_has_addr): New function.
3355 (mcore_gdbarch_init): Added initializations for the macros removed
3356 from tm-mcore.h.
3357
33582002-07-04 Mark Kettenis <kettenis@gnu.org>
3359
3360 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3361 traditonal string branding within the ELF header.
3362
33632002-07-04 Daniel Jacobowitz <drow@mvista.com>
3364
3365 * symtab.c (remove_params): New function.
3366 (make_symbol_overload_list): Use it instead of cplus_demangle.
3367 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3368
33692002-07-04 Mark Kettenis <kettenis@gnu.org>
3370
3371 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3372
3373 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3374 New variables.
3375 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3376 and tdep->sigtramp_end.
3377 * i386obsd-nat.c: New file.
3378 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3379
3380 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3381 Don't call get_current_frame().
3382
33832002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3384
3385 * i386-nat.c (child_post_startup_inferior): New function
3386 calling i386_cleanup_dregs if
3387 I386_USE_GENERIC_WATCHPOINTS is defined.
3388 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3389 conditional to acknowledge that i386-nat.c has its
3390 own child_post_startup_inferior function.
3391
33922002-07-04 Mark Kettenis <kettenis@gnu.org>
3393
3394 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3395 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3396 instead of MAX_REGISTER_RAW_SIZE.
3397 (i386_extract_return_value, i386_extract_struct_value_address):
3398 Convert to use regcache.
3399 (i386_gdbarch_init): Set max_register_raw_size and
3400 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3401 Set extract_return_value and extract_struct_value_address instead
3402 of their deprecated variants.
3403
3404 Convert i386 target to generic dummy frames.
3405 * i386-tdep.c: Include "symfile.h".
3406 (i386_frameless_signal_p): Consider a function to be frameless if
3407 the pc points at the first instruction of the function.
3408 (i386_frame_chain): Handle (generic) call dummies.
3409 (i386_frame_saved_pc): Likewise.
3410 (i386_frame_init_saved_regs): Remove code dealing with call
3411 dummies on the stack.
3412 (i386_push_dummy_frame): Removed.
3413 (i386_call_dummy_words): Removed.
3414 (i386_fix_call_dummy): Removed.
3415 (i386_push_return_address): New function.
3416 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3417 parameter, and don't call get_current_frame.
3418 (i386_pop_frame): New function.
3419 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3420 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3421 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3422 call_dummy_length to 0, set call_dummy_words to NULL, set
3423 sizeof_call_dummy_words to 0, set fix_call_dummy to
3424 generic_fix_call_dummy, set pc_in_call_dummy to
3425 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3426 generic_push_dummy_frame, set push_return_address to
3427 i386_push_return_address and set frame_chain_valid to
3428 generic_file_frame_chain_valid.
3429
34302002-07-03 Andrew Cagney <ac131313@redhat.com>
3431
3432 * gdbarch.sh (struct regcache): Add opaque declaration.
3433 (EXTRACT_RETURN_VALUE): New architecture method.
3434 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3435 * gdbarch.h, gdbarch.c: Regenerate.
3436 * arch-utils.c (legacy_extract_return_value): New function.
3437 * arch-utils.h (legacy_extract_return_value): Declare.
3438 * values.c (value_being_returned): Re-enable code handling
3439 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3440 deprecated_grub_regcache_for_registers call to block handling
3441 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3442 (EXTRACT_RETURN_VALUE): Do not define.
3443
34442002-07-03 Grace Sainsbury <graces@redhat.com>
3445
3446 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3447 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3448 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3449 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3450 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3451 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3452 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3453 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3454 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3455 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3456 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3457 argument so the function fits the prototype in the architecture
3458 vector.
3459 (mcore_pop_frame): Remove argument so the function fits the
3460 prototype. Use get_current_frame instead of the argument.
3461 (mcore_push_arguments): Change type of struct_return so the
3462 function can be used in the architecture vector.
3463 (mcore_store_struct_return): Add.
3464 (mcore_frame_init_saved_regs): Add.
3465 (mcore_gdbarch_init): Add function calls to replace the macros
3466 removed from tm-mcore.h
3467
34682002-07-03 Andrew Cagney <ac131313@redhat.com>
3469
3470 * infcmd.c (print_return_value): Remove compatibility code calling
3471 deprecated_grub_regcache_for_registers.
3472
3473 * values.c: Include "regcache.h".
3474 (value_being_returned): Update. Use
3475 deprecated_grub_regcache_for_registers to extract the register
3476 buffer address.
3477 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3478 ``struct regcache''.
3479 * Makefile.in (values.o): Add dependency on $(regcache_h).
3480
3481 * inferior.h (run_stack_dummy): Change type of second parameter to
3482 a ``struct regcache''.
3483 * valops.c (hand_function_call): Change type of retbuf to ``struct
3484 regcache''. Allocate using regcache_xmalloc, clean using
3485 make_cleanup_regcache_xfree.
3486 * infcmd.c (run_stack_dummy): Update. Use
3487 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3488
3489 * regcache.c (do_regcache_xfree): New function.
3490 (make_cleanup_regcache_xfree): New function.
3491 * regcache.h (make_cleanup_regcache_xfree): Declare.
3492
34932002-07-03 Martin M. Hunt <hunt@redhat.com>
3494
3495 * event-top.c (command_line_handler): Don't read past
3496 beginning of buffer.
3497
34982002-07-03 Martin M. Hunt <hunt@redhat.com>
3499
3500 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3501 struct frame_id.
3502 (varobj_create): Store frame_id for root.
3503 (varobj_gen_name): Use xasprintf.
3504 (varobj_update): Save and restore frame using get_frame_id() and
3505 frame_find_by_id().
3506 (create_child): Use xasprintf.
3507 (new_root_variable): Initialize frame_id.
3508 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3509 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3510 to prevent memory leak.
3511
35122002-07-03 Andrew Cagney <ac131313@redhat.com>
3513
3514 * valops.c (hand_function_call): Move declaration of retbuf to
3515 start of function, allocate using malloc, add a cleanup but before
3516 the inf_status cleanup, cleanup the buffer. Rename local variable
3517 old_chain to inf_status_cleanup.
3518
35192002-07-03 Martin M. Hunt <hunt@redhat.com>
3520
3521 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3522
3523 * cli/cli-decode.c (cmd_func_p): New function.
3524 (cmd_func): New function.
3525
3526 * command.h: Add cmd_func() and cmd_func_p().
3527
35282002-07-03 Grace Sainsbury <graces@redhat.com>
3529
3530 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3531 (REGISTER_SIZE): Remove.
3532 (MAX_REGISTER_RAW_SIZE): Remove.
3533 (REGISTER_VIRTUAL_TYPE): Remove.
3534 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3535 (REGISTER_NAME): Remove.
3536 (USE_GENERIC_DUMMY_FRAMES): Remove.
3537 (CALL_DUMMY): Remove.
3538 (CALL_DUMMY_START_OFFSET): Remove.
3539 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3540 (CALL_DUMMY_LOCATION): Remove.
3541 (FIX_CALL_DUMMY): Remove.
3542 (CALL_DUMMY_ADDRESS): Remove.
3543 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3544 (SAVE_DUMMY_FRAME_TOS): Remove.
3545 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3546 (mcore_register_virtual_type): New function.
3547 (mcore_register_byte): New function.
3548 (mcore_register_size): New function.
3549 (mcore_register_name): New function.
3550 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3551 macros removed from tm-mcore.h.
3552 (mcore_dump_tdep): Add.
3553 (_initialize_mcore_tdep): Add gdbarch_register call.
3554
35552002-07-03 Mark Kettenis <kettenis@gnu.org>
3556
3557 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3558 frameless_look_for_prologue, such that we actually call this
3559 function.
3560
35612002-07-02 Joel Brobecker <brobecker@gnat.com>
3562
3563 * frame.h (frame_address_in_block): New function.
3564
3565 * blockframe.c (frame_address_in_block): New function extracted
3566 from get_frame_block().
3567 (get_frame_block): Use frame_address_in_block().
3568 (block_innermost_frame): Use frame_address_in_block() to match
3569 the frame pc address against the block boundaries rather than
3570 the frame pc directly. This prevents a failure when a frame pc
3571 is actually a return-address pointing immediately after the end
3572 of the given block.
3573
35742002-07-02 Grace Sainsbury <graces@redhat.com>
3575
3576 * MAINTAINERS: Add self under write after approval.
3577
35782002-07-02 Grace Sainsbury <graces@redhat.com>
3579
3580 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3581 used in architecture vector. The default is
3582 m68k_local_breakpoint_from_pc.
3583 (m68k_local_breakpoint_from_pc): Add.
3584 (enum): Add register numbers from tm-m68k.h.
3585 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3586 vector.
3587 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3588 GDB_MULTI_ARCH_PARTIAL.
3589 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3590 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3591 m68k-tdep.c.
3592 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3593 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3594 to enum in m68k-tdep.c
3595
35962002-07-02 Joel Brobecker <brobecker@gnat.com>
3597
3598 * solib-osf.c (open_map): Compute the list of shared libraries
3599 loaded by the inferior, rather than the list of libraries loaded
3600 by GDB itself. Otherwise, GDB ends up reading the symbols from
3601 the wrong shared libraries...
3602
36032002-07-02 Mark Kettenis <kettenis@gnu.org>
3604
3605 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3606 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3607 macros.
3608 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3609 Remove functions.
3610 (FRAMELESS_SIGNAL): Remove function.
3611 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3612 i386_linux_saved_pc_after_call): Removed.
3613 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3614 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3615 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3616
3617 * i386-tdep.c (i386_frameless_signal_p): New function.
3618 (i386_frame_chain): Deal with frameless signals.
3619 (i386_sigtramp_saved_sp): New function.
3620 (i386_frame_saved_pc): Deal with frameless signals.
3621 (i386_saved_pc_after_call): Make sure the correct value is
3622 returned just after entry into a sigtramp.
3623 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3624 i386fbsd4_sc_sp_offset): New variables.
3625 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3626 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3627 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3628 similiar to what we already did for sc_pc_offset.
3629 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3630 tdep->sc_sp_offset.
3631
3632 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3633
36342002-07-02 Michal Ludvig <mludvig@suse.cz>
3635
3636 * config/i386/tm-x86-64linux.h: New.
3637 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3638 definitions.
3639 * config/i386/nm-x86-64.h: Rename to ...
3640 * config/i386/nm-x86-64linux.h: ... this one.
3641 * config/i386/x86-64linux.mh: Reflect the above change.
3642
36432002-07-01 Mark Kettenis <kettenis@gnu.org>
3644
3645 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3646 with sigcontext_addr. Add sc_sp_offset.
3647 (i386bsd_sigtramp_saved_pc): Remove prototype.
3648 (i386bsd_sicontext_addr): Add prototype.
3649 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3650 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3651 (i386_svr4_sigtramp_saved_pc): Removed.
3652 (i386_svr4_sigcontext_addr): New function.
3653 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3654 Initialize tdep->sigcontext_addr instead. Initialize
3655 tdep->sc_pc_offset and tdep->sc_sp_offset.
3656 (i386_gdbarch_init): Likewise.
3657 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3658 any more.
3659 (i386bsd_sigtramp_saved_pc): Remove function.
3660 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3661 Initialize tdep->sigcontext_addr instead. Initialize
3662 tdep->sc_pc_offset.
3663 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3664 of tdep->sigtramp_saved_pc.
3665 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3666 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3667 instead.
3668
3669 * i386-tdep.c (i386_frameless_function_invocation,
3670 i386_frame_num_args, i386_frame_init_saved_regs,
3671 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3672 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3673 i386_extract_return_value, i386_store_return_value,
3674 i386_extract_struct_value_address, i386_register_virtual_type,
3675 i386_register_convertible, i386_register_convert_to_virtual,
3676 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3677 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3678 static.
3679
36802002-07-01 Mark Kettenis <kettenis@gnu.org>
3681
3682 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3683
3684 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3685 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3686 this macro. Include "value.h".
3687
36882002-06-30 Aidan Skinner <aidan@velvet.net>
3689
3690 * ada-exp.tab.c: remove as it's a generated file
3691 * ada-lex.c: remove as it's a generated file
3692
36932002-06-30 Mark Kettenis <kettenis@gnu.org>
3694
3695 * config/i386/tm-i386.h (struct frame_info, struct
3696 frame_saved_regs, struct value, struct type): Remove forward
3697 declarations.
3698
3699 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3700 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3701 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3702 (FILL_FPXREGSET): Define.
3703
3704 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3705
3706 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3707 i[3456]86-*-netbsd* case.
3708 * config/i386/tm-obsd.h: Removed.
3709 * config/i386/obsd.mt: Removed.
3710 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3711 core-aout.o.
3712 (MH_CFLAGS): Add -DYYDEBUG=0.
3713
3714 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3715 i386nbsd_sc_pc_offset on OpenBSD too.
3716
3717 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3718 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3719 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3720 define.
3721 * i386bsd-tdep.c: Include "arch-utils.h".
3722 (i386bsd_aout_in_solib_call_trampoline): New function.
3723 (i386bsd_init_abi): Set in_solib_call_trampoline to
3724 i386bsd_aout_in_solib_call_trampoline.
3725 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3726 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3727
37282002-06-28 Andrew Cagney <ac131313@redhat.com>
3729
3730 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3731 (struct obstack, struct bcache): Add opaque declarations.
3732 * Makefile.in (macrotab_h): Update
3733
37342002-06-28 Andrew Cagney <ac131313@redhat.com>
3735
3736 * blockframe.c (generic_find_dummy_frame): Change return type to
3737 ``struct regcache''.
3738 (struct dummy_frame): Replace field ``registers'' with regcache, a
3739 struct regcache object.
3740 (generic_find_dummy_frame): Update.
3741 (generic_push_dummy_frame): Update. Use regcache_xfree,
3742 regcache_xmalloc and regcache_cpy.
3743 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3744 regcache_xfree.
3745 (deprecated_generic_find_dummy_frame): Update.
3746 (generic_read_register_dummy): Update. Use
3747 regcache_read_as_address.
3748 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3749 (generic_get_saved_register): Update. Use regcache_read.
3750
37512002-06-28 Andrew Cagney <ac131313@redhat.com>
3752
3753 * Makefile.in (objfiles_h): Add $(bcache_h).
3754 * objfiles.h: Include "bcache.h".
3755
3756 * Makefile.in (symtab_h): Remove $(bcache_h).
3757 * symtab.h: Do not include "bcache.h".
3758
37592002-06-28 Andrew Cagney <ac131313@redhat.com>
3760
3761 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3762 generic_func_frame_chain_valid.
3763
37642002-06-28 David O'Brien <obrien@FreeBSD.org>
3765
3766 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3767 * config/i386/tm-fbsd.h: Likewise.
3768
37692002-06-28 Andrew Cagney <ac131313@redhat.com>
3770
3771 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3772 generic_unwind_get_saved_register.
3773
37742002-06-27 Andrew Cagney <ac131313@redhat.com>
3775
3776 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3777 * regcache.c (supply_register): Add missing argument to
3778 register_buffer call.
3779
37802002-06-27 Andrew Cagney <ac131313@redhat.com>
3781
3782 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3783 Solaris /bin/grep does not not like it. From Peter Schauer.
3784
37852002-06-26 Tom Tromey <tromey@redhat.com>
3786
3787 * command.h (add_setshow_cmd): Declare.
3788 (add_setshow_cmd_full): Declare.
3789 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3790 returns void. Use add_setshow_cmd_full.
3791 (add_setshow_cmd_full): New function.
3792 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3793 (add_setshow_boolean_cmd): Likewise.
3794
37952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3796
3797 * config/vax/tm-vax.h: Protect from multiple inclusion.
3798 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3799 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3800 * config/vax/tm-vaxbsd.h: ...here. New file.
3801 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3802
38032002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3804
3805 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3806 (BELIEVE_PCC_PROMOTION): Remove.
3807 (AP_REGNUM): Move to...
3808 * config/vax/nm-vax.h: ...here.
3809 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3810 (vax_breakpoint_from_pc): New function.
3811 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3812 and gdbarch_believe_pcc_promotion.
3813
38142002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3815
3816 * Makefile.in (vax_tdep_h): Define.
3817 (vax-tdep.o): Use $(vax_tdep_h).
3818 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3819 (vax_dump_tdep): New function.
3820 (_initialize_vax_tdep): Register vax_dump_tdep.
3821 * vax-tdep.h: Include osabi.h.
3822 (struct gdbarch_tdep): New.
3823
38242002-06-26 Andrew Cagney <cagney@redhat.com>
3825
3826 * frame.h (deprecated_generic_find_dummy_frame): Rename
3827 generic_find_dummy_frame.
3828 * blockframe.c (generic_find_dummy_frame): Make static.
3829 (deprecated_generic_find_dummy_frame): New function.
3830 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3831 generic_find_dummy_frame with deprecated_find_dummy_frame.
3832 (sh64_nofp_frame_init_saved_regs): Ditto.
3833 (sh_fp_frame_init_saved_regs): Ditto.
3834 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3835 (s390_frame_chain): Ditto.
3836 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3837
38382002-06-26 Grace Sainsbury <graces@redhat.com>
3839
3840 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3841 gdbarch vector are at the top.
3842 (NUM_REGS): Remove.
3843 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3844 (FRAME_ARGS_ADDRESS): Remove.
3845 (FRAME_LOCALS_ADDRESS): Remove.
3846 (FRAME_NUM_ARGS): Remove.
3847 (FRAME_ARGS_SKIP): Remove.
3848 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3849 (m68k_gdbarch_init): Add gdbarch initializations for macros
3850 undefined in tm-m68k.h
3851
38522002-06-26 Grace Sainsbury <graces@redhat.com>
3853
3854 * monitor.h: Add the function regname to monitor_ops
3855 structure. This way NUM_REGS does not have to be a constant.
3856 * monitor.c (monitor_fetch_register): Added support for regname
3857 function. The function is called if the array regnames is NULL.
3858 (monitor_store_register): Same.
3859 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3860 regnames array.
3861 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3862 cpu32bug_cmds.regname to point to new function.
3863 * abug-rom.c (abug_regname): Same as above.
3864 (init_abug_cmds): Same.
3865 * dbug-rom.c (dbug_regname): Same as above.
3866 (init_dbug_cmds): Same.
3867 * remote-est.c (est_regname): Same.
3868 (init_est_cmds): Same.
3869 * rom68k-rom.c (rom68k_regname): Same.
3870 (init_rom68k_cmds): Same.
3871
38722002-06-25 Tom Tromey <tromey@redhat.com>
3873
3874 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3875
38762002-06-25 Andrew Cagney <cagney@redhat.com>
3877
3878 * infrun.c (stop_registers): Change variable's type to ``struct
3879 regcache'''.
3880 (xmalloc_inferior_status): Delete function.
3881 (free_inferior_status): Delete function.
3882 (normal_stop): Use regcache_cpy.
3883 (struct inferior_status): Change type of fields ``stop_registers''
3884 and ``registers'' to ``struct regcache''.
3885 (write_inferior_status_register): Use regcache_write.
3886 (save_inferior_status): Instead of calling
3887 xmalloc_inferior_status, allocate the inf_status buffer directly.
3888 Use regcache_dup_no_passthrough and regcache_dup to save the
3889 buffers.
3890 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3891 Replace the stop_registers regcache instead of overriding it. Use
3892 regcache_xfree. Instead of calling free_inferior_status, xfree
3893 the buffer directly.
3894 (discard_inferior_status): Use regcache_xfree. Instead of calling
3895 free_inferior_status, xfree the buffer directly.
3896 (build_infrun): Use regcache_xmalloc.
3897 (_initialize_infrun): Delete redundant call to build_infrun.
3898
3899 * Makefile.in (infcmd.o): Add $(regcache_h).
3900
3901 * infcmd.c: Include "regcache.h".
3902 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3903 obtain the address of `stop_registers' register buffer.
3904 (print_return_value): Ditto.
3905
3906 * inferior.h (struct regcache): Add opaque declaration.
3907 (stop_registers): Change variable's declared type to ``struct
3908 regcache''.
3909
39102002-06-24 Tom Tromey <tromey@redhat.com>
3911
3912 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3913 * target.c (initialize_targets): Fixed typo in
3914 trust-readonly-sections `show' documentation.
3915
3916 * main.c: Marked all strings with _().
3917
39182002-06-24 Don Howard <dhoward@redhat.com>
3919
3920 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3921 that means max CORE_ADDR+1.
3922 (lookup_mem_region): Ditto.
3923 (mem_info_command): Ditto.
3924
39252002-06-24 Grace Sainsbury <graces@redhat.com>
3926
3927 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3928 (REGISTER_BYTES_OK): Remove.
3929 (REGISTER_BYTES): Remove.
3930 (STORE_STRUCT_RETURN): Remove.
3931 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3932 (STORE_RETURN_VALUE): Remove.
3933 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3934 (FRAME_CHAIN): Remove.
3935 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3936 (FRAME_SAVED_PC): Remove.
3937 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3938 (m68k_store_struct_return): Add.
3939 (m68k_deprecated_extract_return_value): Add.
3940 (m68k_deprecated_extract_struct_value_address): Add.
3941 (m68k_store_return_value): Add.
3942 (m68k_frame_chain): Add.
3943 (m68k_frameless_function_invocation): Add.
3944 (m68k_frame_saved_pc): Add.
3945 (m68k_gdbarch_init): added set_gdbarch calls for new
3946 functions and deleted macros.
3947
39482002-06-23 Tom Tromey <tromey@redhat.com>
3949
3950 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3951 (ALLDEPFILES): Likewise.
3952 (udiheaders): Removed.
3953 (udip2soc.o): Likewise.
3954 (udi2go32.o): Likewise.
3955 (udr.o): Likewise.
3956 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3957
39582002-06-22 Andrew Cagney <ac131313@redhat.com>
3959
3960 * infrun.c (_initialize_infrun): Delete unnecessary call to
3961 build_infrun.
3962
3963 * regcache.h: Update comments describing the regcache_cpy family
3964 of functions.
3965 (regcache_save, regcache_restore): Delete declaration.
3966 (regcache_save_no_passthrough): Delete declaration.
3967 (regcache_restore_no_passthrough): Delete declaration.
3968 * regcache.c (regcache_save): Delete function.
3969 (regcache_save_no_passthrough): Delete function.
3970 (regcache_restore): Delete function.
3971 (regcache_restore_no_passthrough): Delete function.
3972
39732002-06-21 Andrew Cagney <ac131313@redhat.com>
3974
3975 * config/m68k/tm-m68k.h: Fix typo.
3976 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3977 (m68k_frame_init_saved_regs): Declare.
3978
39792002-06-21 Jim Blandy <jimb@redhat.com>
3980
3981 Remove some vestiges of Harris 88k support.
3982 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3983 register numbering quirk.
3984 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3985 odd symbols occurring in Harris 88k ELF targets.
3986
39872002-06-21 Tom Tromey <tromey@redhat.com>
3988
3989 * gdb_locale.h: New file.
3990 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3991 (defs_h): Added gdb_locale.h.
3992 * configure, config.in: Rebuilt.
3993 * configure.in (PACKAGE): Define.
3994 * defs.h: Include gdb_locale.h.
3995 * main.c (captured_main): Call setlocale, bindtextdomain,
3996 textdomain.
3997
39982002-06-21 Dave Brolley <brolley@redhat.com>
3999
4000 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4001 * config/frv/frv.mt: New file.
4002 * config/frv/tm-frv.h: New file.
4003 * configure.tgt: Support frv-*-*.
4004 * Makefile.in (frv-tdep.o): New target.
4005 * frv-tdep.c: New file.
4006 * NEWS: Mention frv.
4007
40082002-06-21 Dave Brolley <brolley@redhat.com>
4009
4010 * MAINTAINERS: Add self to "Write After Approval" list.
4011
40122002-06-21 Grace Sainsbury <graces@redhat.com>
4013
4014 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4015 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4016 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4017 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4018 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4019
4020 * m68k-tdep.c: Include arch-utils.h
4021 (m68k_register_raw_size): Add.
4022 (m68k_register_virtual_size): Add.
4023 (m68k_register_virtual_type): Add.
4024 (m68k_register_name): Add.
4025 (m68k_stack_align): Add.
4026 (m68k_register_byte): Add.
4027 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4028 tm-m68k.h.
4029
40302002-06-21 Grace Sainsbury <graces@redhat.com>
4031
4032 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
4033 m68k_find_saved_regs.
4034 (m68k_pop_frame): Removed saved_regs structure, and replaced
4035 references to it with frame->saved_regs.
4036 (m68k_gdbarch_init): Added function calls to initialize the
4037 gdbarch structure.
4038 (m68k_fix_call_dummy): Add.
4039 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4040 (CALL_DUMMY): Remove.
4041 (CALL_DUMMY_LENGTH): Remove.
4042 (CALL_DUMMY_START_OFFSET): Remove.
4043 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4044 (FIX_CALL_DUMMY): Remove.
4045 (PUSH_DUMMY_FRAME): Remove.
4046 (POP_FRAME): Remove.
4047
40482002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4049
4050 * parse.c (parse_fprintf): New function used to avoid calls to
4051 fprintf in bison parser generated debug code.
4052 * parser-defs.h: Declaration of new parse_fprintf function.
4053 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4054 Set YYDEBUG to 1 by default.
4055 Set YYFPRINTF as parse_fprintf.
4056
40572002-06-21 Michal Ludvig <mludvig@suse.cz>
4058
4059 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4060 encoding anymore.
4061 (pointer_encoding, enum ptr_encoding): New.
4062 (execute_cfa_program): Take care about pointer encoding.
4063 (dwarf2_build_frame_info): Only call parse_frame_info for
4064 .debug_frame and .eh_frame.
4065 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4066 fixed augmentation handling, added relative addressing,
4067 ignore duplicate FDEs. Added comments.
4068 * dwarf2cfi.c: Reindented.
4069
40702002-06-20 Elena Zannoni <ezannoni@redhat.com>
4071
4072 * event-top.c (command_handler): Don't use space_at_cmd_start
4073 unless there is sbrk() on the host. Assign time and space data
4074 to union fields of the appropriate length.
4075
40762002-06-20 Michal Ludvig <mludvig@suse.cz>
4077
4078 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4079 x86_64_register_name. Return type changed to 'const char *'.
4080 (x86_64_register_name2nr): Rename to x86_64_register_number.
4081 (x86_64_gdbarch_init): Update to reflect the change.
4082 * x86-64-tdep.h: Ditto.
4083 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4084 (supply_fpregset): Ditto.
4085
40862002-06-19 Andrew Cagney <cagney@redhat.com>
4087
4088 * regcache.h: Update copyright.
4089 (struct regcache, struct gdbarch): Add opaque declarations.
4090 (current_regcache): Declare global variable.
4091 (regcache_read, regcache_write): Add gdbarch parameter.
4092 (regcache_save, regcache_save_no_passthrough)
4093 (regcache_restore, regcache_restore_no_passthrough)
4094 (regcache_dup, regcache_dup_no_passthrough)
4095 (regcache_cpy, regcache_cpy_no_passthrough)
4096 (deprecated_grub_regcache_for_registers)
4097 (deprecated_grub_regcache_for_register_valid)
4098 (regcache_valid_p): Add function declarations.
4099
4100 * regcache.c: Update copyright.
4101 (regcache_descr_handle): New global variable.
4102 (struct regcache_descr): Define.
4103 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4104 (regcache_descr, xfree_regcache_descr): New functions.
4105 (struct regcache): Define.
4106 (regcache_xmalloc, regcache_xfree): New functions.
4107 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4108 (regcache_dup, regcache_dup_no_passthrough): New functions.
4109 (regcache_valid_p, regcache_read_as_address): New functions.
4110 (deprecated_grub_regcache_for_registers): New function.
4111 (deprecated_grub_regcache_for_register_valid): New function.
4112 (current_regcache): New global variable.
4113 (register_buffer): Add regcache parameter. Update calls.
4114 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4115 (read_register_gen, write_register_gen): Update register_buffer
4116 call. Test for legacy_p instead of gdbarch_register_read_p or
4117 gdbarch_register_write_p.
4118 (regcache_collect): Update register_buffer call.
4119 (build_regcache): Rewrite. Use deprecated grub functions.
4120 (regcache_save, regcache_save_no_passthrough): New functions.
4121 (regcache_restore, regcache_restore_no_passthrough): New
4122 functions.
4123 (_initialize_regcache): Create the regcache_data_handle. Swap
4124 current_regcache global variable.
4125
4126 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4127 parameter to regcache_read and regcache_write calls.
4128 (sh4_register_read): Ditto.
4129 (sh64_pseudo_register_read): Ditto.
4130 (sh64_register_read): Ditto.
4131 (sh_pseudo_register_write): Ditto.
4132 (sh4_register_write): Ditto.
4133 (sh64_pseudo_register_write): Ditto.
4134 (sh64_register_write): Ditto.
4135
4136 * defs.h (XCALLOC): Define.
4137
41382002-06-19 Grace Sainsbury <graces@redhat.com>
4139
4140 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4141 * m68k-tdep.c (m68k_gdbarch_init): Added.
4142 (m68k_dump_tdep): Added.
4143
41442002-06-19 Daniel Jacobowitz <drow@mvista.com>
4145
4146 * ada-lang.c (fill_in_ada_prototype): Update comment.
4147
41482002-06-19 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4151 MIPS_ABI_LAST.
4152 (mips_abi_string, mips_abi_strings): New.
4153 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4154 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4155 tdep->mips_abi_string. Honor mips_abi_string. Default to
4156 O32 if no ABI is found.
4157 (mips_dump_tdep): Use mips_abi_strings.
4158 (mips_abi_update): New function.
4159 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4160 ``set mips abi'' and ``show mips abi''. Check the size of
4161 mips_abi_strings.
4162
41632002-06-19 Andrew Cagney <cagney@redhat.com>
4164
4165 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4166 constant.
4167
41682002-06-18 Joel Brobecker <brobecker@gnat.com>
4169
4170 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4171 current frame using only the first stack size adjustment. All
4172 subsequent size adjustments are not considered to be part of
4173 the "static" part of the current frame.
4174 Compute the address of the saved registers relative to the
4175 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4176 in use in this frame.
4177
41782002-06-18 Don Howard <dhoward@redhat.com>
4179
4180 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4181 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4182 suggesting this solution.
4183
41842002-06-18 Andrew Cagney <ac131313@redhat.com>
4185
4186 * config/romp/xm-rtbsd.h: Delete file.
4187 * config/romp/rtbsd.mh: Delete file.
4188
41892002-06-18 Keith Seitz <keiths@redhat.com>
4190
4191 * breakpoint.c (condition_command): Post breakpoint_modify
4192 when a condition is added to an existing breakpoint.
4193 (commands_command): Likewise for commands.
4194 (set_ignore_count): Likewise for ignore counts.
4195 If no tty, do not simply return, still need to send event
4196 notification.
4197 (ignore_command): Only print a newline if the command came
4198 from a tty.
4199 Don't call breakpoints_changed, since this is now properly
4200 handled by set_ignore_count.
4201
42022002-06-18 Andrew Cagney <cagney@redhat.com>
4203
4204 * MAINTAINERS: Note that cris-elf target can be compiled with
4205 -Werror.
4206 * cris-tdep.c (cris_register_name): Make return type constant.
4207 (cris_breakpoint_from_pc): Ditto.
4208
42092002-06-18 Michal Ludvig <mludvig@suse.cz>
4210
4211 * frame.h (struct frame_info): Change type of context to
4212 'struct context'.
4213
42142002-06-17 Andrew Cagney <cagney@redhat.com>
4215
4216 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4217 pointer.
4218 * gdbarch.h, gdbarch.c: Regenerate.
4219 * config/mips/tm-mips.h (mips_register_name): Update.
4220 * i386-tdep.h (i386_register_name): Update.
4221 * mips-tdep.c (mips_register_name): Update
4222 * alpha-tdep.c (alpha_register_name): Update.
4223 * arch-utils.c (legacy_register_name): Update.
4224 * arch-utils.h (legacy_register_name): Update.
4225 * avr-tdep.c (avr_register_name): Update.
4226 * ia64-tdep.c (ia64_register_name): Update.
4227 * i386-tdep.c (i386_register_name): Update.
4228 * sparc-tdep.c (sparc32_register_name): Update.
4229 (sparc64_register_name): Update.
4230 (sparclite_register_name): Update.
4231 (sparclet_register_name): Update.
4232 * sh-tdep.c (sh_generic_register_name): Update.
4233 (sh_sh_register_name): Update.
4234 (sh_sh3_register_name): Update.
4235 (sh_sh3e_register_name): Update.
4236 (sh_sh_dsp_register_name): Update.
4237 (sh_sh3_dsp_register_name): Update.
4238 (sh_sh4_register_name): Update.
4239 (sh_sh64_register_name): Update.
4240 * s390-tdep.c (s390_register_name): Update.
4241 * rs6000-tdep.c (rs6000_register_name): Update.
4242 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4243 (ns32k_register_name_32382): Update.
4244 * d10v-tdep.c (d10v_ts2_register_name): Update.
4245 (d10v_ts3_register_name): Update.
4246 * xstormy16-tdep.c (xstormy16_register_name): Update.
4247 * vax-tdep.c (vax_register_name): Update.
4248 * v850-tdep.c (v850_register_name): Update.
4249 * m68hc11-tdep.c (m68hc11_register_name): Update.
4250 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4251 (am33_register_name): Update.
4252
42532002-06-17 Grace Sainsbury <graces@redhat.com>
4254
4255 * m68k-tdep.c: Reindented.
4256
42572002-06-17 Andrew Cagney <ac131313@redhat.com>
4258
4259 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4260 list of predefined types.
4261
42622002-06-16 Mark Kettenis <kettenis@gnu.org>
4263
4264 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4265 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4266 REGISTER_CONVERT_TO_RAW): Remove defines.
4267 (i386_register_virtual_type, i386_register_convertible,
4268 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4269 Remove prototypes.
4270 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4271 macros mentioned above.
4272
4273 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4274 (i386lynx_saved_pc_after_call): Remove prototype.
4275 * i386ly-tdep.c: Include "i386-tdep.h".
4276 (i386lynx_saved_pc_after_call): Make static. Use
4277 read_memory_nobpt instead of read_memory. Use
4278 read_memory_unsigned_integer instead of read_memory_integer.
4279 (i386lynx_init_abi): New function.
4280 (i386lynx_coff_osabi_sniffer): New function.
4281 (_initialize_i386bsd_tdep): New function.
4282
4283 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4284 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4285 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4286 (i386_fix_call_dummy): Remove prototype.
4287 * i386-tdep.c (i386_call_dummy_words): New variable.
4288 (i386_gdbarch_init): Adjust for removal of the
4289 macros mentioned above.
4290
42912002-06-15 Andrew Cagney <ac131313@redhat.com>
4292
4293 * command.h (add_setshow_auto_boolean_cmd): Replace
4294 add_set_auto_boolean_cmd.
4295 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4296 add_set_auto_boolean_cmd.
4297 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4298 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4299 mask-address'' command.
4300 (show_mask_address): Add cmd parameter.
4301 * remote.c (add_packet_config_cmd): Update. Change type of
4302 set_func and show_func to cmd_sfunc_ftype.
4303 (_initialize_remote): Update `set remote Z-packet'
4304 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4305 (show_remote_protocol_e_packet_cmd): Ditto.
4306 (show_remote_protocol_E_packet_cmd): Ditto.
4307 (show_remote_protocol_P_packet_cmd): Ditto.
4308 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4309 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4310 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4311 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4312 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4313 (show_remote_protocol_Z_packet_cmd): Ditto.
4314 (show_remote_protocol_binary_download_cmd): Ditto.
4315 (show_remote_cmd): Pass NULL to all of above.
4316
43172002-06-15 Mark Kettenis <kettenis@gnu.org>
4318
4319 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4320 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4321 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4322 POP_FRAME): Remove defines.
4323 (i386_push_arguments, i386_store_struct_return,
4324 i386_extract_return_value, i386_store_return_value,
4325 i386_extract_struct_value_address, i386_push_dummy_frame,
4326 i386_pop_frame): Renove prototypes.
4327 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4328 macros mentioned above.
4329
43302002-06-15 Andrew Cagney <ac131313@redhat.com>
4331
4332 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4333 add_set_boolean_cmd.
4334 (add_setshow_cmd): New function.
4335 * command.h (add_setshow_boolean_cmd): Replace
4336 add_set_boolean_cmd.
4337 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4338 and ``set rdiromatzero''.
4339 * maint.c (_initialize_maint_cmds): Update commented out code.
4340 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4341 * target.c (initialize_targets): Update `set
4342 trust-readonly-sections'.
4343 * remote.c (_initialize_remote): Update `set remotebreak'.
4344
43452002-06-15 Mark Kettenis <kettenis@gnu.org>
4346
4347 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4348 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4349 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4350 fit into multi-arch framework.
4351 (i386_breakpoint_from_pc): New function.
4352 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4353 above.
4354
4355 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4356 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4357 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4358 (i386_frameless_function_invocation, i386_frame_num_args,
4359 i386_frame_init_saved_regs): Remove prototypes.
4360 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4361 macros mentioned above.
4362
43632002-06-15 Andrew Cagney <ac131313@redhat.com>
4364
4365 * cli/cli-decode.c (set_cmd_cfunc): Update.
4366 (set_cmd_sfunc): Update.
4367 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4368 (set_cmd_sfunc, set_cmd_cfunc): Update.
4369 * cli/cli-decode.h: Update.
4370
43712002-06-15 Mark Kettenis <kettenis@gnu.org>
4372
4373 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4374 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4375
43762002-06-15 Andrew Cagney <ac131313@redhat.com>
4377
4378 * defs.h (auto_boolean): Declare enum.
4379 * command.h (cmd_auto_boolean): Delete enum.
4380 * mips-tdep.c (mask_address_var): Update.
4381 (mips_mask_address_p): Update.
4382 (show_mask_address): Update.
4383 * remote.c (struct packet_config): Update.
4384 (update_packet_config): Update.
4385 (show_packet_config_cmd): Update.
4386 (packet_ok): Update.
4387 (add_packet_config_cmd): Update.
4388 (_initialize_remote):
4389 * command.h: Update.
4390 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4391 (do_setshow_command): Update.
4392 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4393 * cli/cli-decode.h: Update.
4394
43952002-06-15 Mark Kettenis <kettenis@gnu.org>
4396
4397 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4398 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4399 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4400 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4401 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4402 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4403
4404 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4405 list of DJGPP COFF targets.
4406
4407 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4408 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4409 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4410 (FP0_REGNUM): Remove define.
4411 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4412 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4413 (i386_register_virtual_size): Remove protoype.
4414 * i386-tdep.c (i386_register_virtual_size): Removed.
4415 (i386_extract_return_value, i386_store_return_value): Use
4416 FP0_REGNUM instead of NUM_FREGS to determine whether the
4417 floating-point registers are available.
4418 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4419 Adjust for removal of macros mentioned above.
4420
44212002-06-15 Mark Kettenis <kettenis@gnu.org>
4422
4423 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4424 comments.
4425 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4426 Remove prototypes.
4427 (supply_gregset, fill_gregset): Remove use of register keyword and
4428 remove declaration for regmap. Use I386_NUM_GREGS instead of
4429 NUM_REGS and NUM_FREGS.
4430 (FPREGSET_FSAVE_OFFSET): Remove.
4431 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4432 NUM_FREGS to determine whether the floating-point registers are
4433 available.
4434
4435 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4436 gnu_store_registers): Replace usage of NUM_GREGS with
4437 I386_NUM_GREGS.
4438
4439 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4440 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4441 usage of NUM_GREGS with I386_NUM_GREGS.
4442
4443 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4444
4445 * i386bsd-nat.c: Include "i386-tdep.h".
4446 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4447 I386_NUM_GREGS.
4448
4449 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4450 and associated comment. They no longer make any sense, since we
4451 don't use this file anymore on Linux.
4452
4453 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4454 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4455 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4456 elements in these arrays.
4457 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4458 MAX_NUM_REGS.
4459
44602002-06-15 Mark Kettenis <kettenis@gnu.org>
4461
4462 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4463 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4464
44652002-06-14 Andrew Cagney <cagney@redhat.com>
4466
4467 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4468 EXTRACT_RETURN_VALUE.
4469 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4470 EXTRACT_STRUCT_VALUE_ADDRESS.
4471 * gdbarch.h, gdbarch.c: Regenerate.
4472
4473 * values.c (value_being_returned): Handle
4474 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4475 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4476
4477 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4478 * arm-tdep.c (arm_gdbarch_init): Update.
4479 * avr-tdep.c (avr_gdbarch_init): Update.
4480 * cris-tdep.c (cris_gdbarch_init): Update.
4481 * d10v-tdep.c (d10v_gdbarch_init): Update.
4482 * ia64-tdep.c (ia64_gdbarch_init): Update.
4483 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4484 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4485 * s390-tdep.c (s390_gdbarch_init): Update.
4486 * sh-tdep.c (sh_gdbarch_init): Update.
4487 * s390-tdep.c (s390_gdbarch_init): Update.
4488 * sparc-tdep.c (sparc_gdbarch_init): Update.
4489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4490 * v850-tdep.c (v850_gdbarch_init): Update.
4491 * vax-tdep.c (vax_gdbarch_init): Update.
4492 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4494
4495 * config/arc/tm-arc.h: Update.
4496 * config/d30v/tm-d30v.h: Update.
4497 * config/fr30/tm-fr30.h: Update.
4498 * config/h8300/tm-h8300.h: Update.
4499 * config/h8500/tm-h8500.h: Update.
4500 * config/i386/tm-i386.h: Update.
4501 * config/i386/tm-ptx.h: Update.
4502 * config/i386/tm-symmetry.h: Update.
4503 * config/i960/tm-i960.h: Update.
4504 * config/m32r/tm-m32r.h: Update.
4505 * config/m68k/tm-delta68.h: Update.
4506 * config/m68k/tm-linux.h: Update.
4507 * config/m68k/tm-m68k.h: Update.
4508 * config/m88k/tm-m88k.h: Update.
4509 * config/mcore/tm-mcore.h: Update.
4510 * config/mips/tm-mips.h: Update.
4511 * config/mn10200/tm-mn10200.h: Update.
4512 * config/pa/tm-hppa.h: Update.
4513 * config/pa/tm-hppa64.h: Update.
4514 * config/sparc/tm-sp64.h: Update.
4515 * config/sparc/tm-sparc.h: Update.
4516 * config/sparc/tm-sparclet.h: Update.
4517 * config/z8k/tm-z8k.h: Update.
4518
45192002-06-14 Andrew Cagney <cagney@redhat.com>
4520
4521 * Makefile.in (i386_linux_tdep_h): Define.
4522 (i386_tdep_h, i387_tdep_h): Define.
4523 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4524 $(i386_tdep_h) and $(i387_tdep_h).
4525 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4526
45272002-06-14 Mark Kettenis <kettenis@gnu.org>
4528
4529 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4530 Already covered by the default.
4531
4532 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4533 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4534 (i386_gdbarch_init): Initialize long_double_format and long_double
4535 bit.
4536
4537 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4538 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4539 Move these to ...
4540 * config/i386/i386sol2.mh: ... here.
4541 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4542 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4543 (SIGCONTEXT_PC_OFFSET): Remove define.
4544 (IN_SIGTRAMP): Remove define.
4545 * i386-sol2-tdep.c: New file.
4546
4547 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4548 * config/i386/tm-i386nw.h: Removed.
4549
4550 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4551 USE_STRUCT_CONVENTION): Remove defines.
4552 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4553 (get_longjmp_target): Remove prototype.
4554 (IN_SIGTRAMP): Remove define.
4555 (i386bsd_in_sigtramp): Remove prototype.
4556 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4557 function. Update comment accordingly
4558 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4559 (FRAME_SAVED_PC): Remove define.
4560 (i386bsd_frame_saved_pc): Remove prototype.
4561 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4562 GET_LONGJMP_TARGET): Remove defines.
4563 (get_longjmp_target): Remove prototype.
4564 (IN_SIGTRAMP): Remove define.
4565 (i386bsd_in_sigtramp): Remove prototype.
4566 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4567 function. Update comment accordingly
4568 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4569 (FRAME_SAVED_PC): Remove define.
4570 (i386bsd_frame_saved_pc): Remove prototype.
4571 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4572 Remove prototype.
4573 (USE_STRUCT_CONVENTION): Remove prototype.
4574 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4575 declaration.
4576 (_initialize_i386bsd_nat): Revise logic to determine some
4577 constants at compile time when compiling a native GDB. Warn if
4578 things don't match up with what we expect.
4579 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4580 Remove variables.
4581 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4582 to use date stored in `struct gdbarch_tdep'.
4583 (i386bsd_sigcontext_offset): Remove varaible.
4584 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4585 stored in `struct gdbarch_tdep'.
4586 (i386bsd_frame_saved_pc): Make static.
4587 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4588 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4589 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4590 i386fbsd4_sc_pc_offset): New variables.
4591 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4592 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4593 functions.
4594 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4595 functions.
4596 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4597 Modify the value of i386fbsd_sigtramp_start and
4598 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4599 i386fbsd_sigtramp_end.
4600 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4601 function.
4602
4603 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4604 define to i386-linux-tdep.h.
4605 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4606 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4607 defines.
4608 (i386_linux_register_name, i386_linux_register_byte,
4609 i386_linux_register_raw_size): Remove prototypes.
4610 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4611 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4612 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4613 TARGET_WRITE_PC): Remove defines.
4614 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4615 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4616 i386_linux_write_pc): Remove prototypes.
4617 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4618 (get_longjmp_target): Remove prototype.
4619 * i386-linux-tdep.h: New file.
4620 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4621 * i386-linux-tdep.c: Include "i386-tdep.h" and
4622 "i386-linux-tdep.h".
4623 (i386_linux_register_name, i386_linux_register_byte,
4624 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4625 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4626 Make static.
4627 (i386_linux_init_abi): New function.
4628 (_initialize_i386_linux_tdep): New function.
4629
4630 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4631 (i386_saved_pc_after_call): Remove prototype.
4632 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4633 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4634 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4635 (i386_register_name, i386_stab_reg_to_regnum,
4636 i386_dwarf_reg_to_regnum): Remove prototypes.
4637 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4638 SIZEOF_SSE_REGS): Remove defines.
4639 (REGISTER_BYTES): Remove define.
4640 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4641 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4642 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4643 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4644 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4645 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4646 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4647 (get_longjmp_target): Remove prototype.
4648 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4649 (sigtramp_saved_pc): Remove define.
4650 (i386v4_sigtramp_saved_pc): Remove prototype.
4651 * config/i386/tm-go32.h (FRAME_CHAIN,
4652 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4653 (i386go32_frame_saved_pc): Remove prototype.
4654 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4655 (get_longjmp_target): Remove prototype.
4656 * i386-tdep.h: Include "osabi.h".
4657 (enum i386_abi): Removed.
4658 (enum struct_return): New enum.
4659 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4660 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4661 sc_pc_offset members.
4662 (i386_gdbarch_register_os_abi): Remove prototype.
4663 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4664 I386_SSE_NUM_REGS): New defines.
4665 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4666 I386_SSE_SIZEOF_REGS): New defines.
4667 (i386_register_name, i386_register_byte, i386_register_raw_size):
4668 New prototypes.
4669 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4670 (i386bsd_sigtramp_saved_pc): New prototype.
4671 * i386-tdep.c: Don't include "elf-bfd.h".
4672 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4673 i386_frame_chain, i386_saved_pc_after_call): Make static.
4674 (i386_frame_saved_pc): Rewrite to call architecture dependent
4675 function to deal with signal handlers. Make static.
4676 (i386go32_frame_saved_pc): Removed.
4677 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4678 Removed.
4679 (i386_get_longjmp_target): New function.
4680 (default_struct_convention, pcc_struct_convention,
4681 reg_struct_convention, valid_conventions, struct_convention): New
4682 variables.
4683 (i386_use_struct_convention): New function.
4684 (i386v4_sigtramp_saved_pc): Renamed to
4685 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4686 (i386_pc_in_sigtramp): New function.
4687 (i386_abi_names): Removed.
4688 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4689 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4690 Removed.
4691 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4692 i386_gdbarch_register_os_abi): Removed.
4693 (struct i386_abi_handler): Removed.
4694 (i386_abi_handler_list): Removed.
4695 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4696 functions.
4697 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4698 i386_nw_init_abi): New functions.
4699 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4700 Use set_gdbarch_xxx() calls instead of relying on macros for a
4701 number of calls.
4702 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4703 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4704 Register the various architecture variants defined in this file.
4705
47062002-06-14 Daniel Jacobowitz <drow@mvista.com>
4707
4708 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4709 (struct main_type): Remove arg_types member. Update comments for
4710 struct field.
4711 (TYPE_ARG_TYPES): Remove.
4712 (TYPE_FN_FIELD_ARGS): Update.
4713 (smash_to_method_type): Update prototype.
4714
4715 * c-typeprint.c (cp_type_print_method_args): Take method type
4716 instead of argument list. Use new argument layout. Simplify.
4717 (c_type_print_args): Use new argument layout. Simplify.
4718 (c_type_print_base): Update call to cp_type_print_method_args.
4719 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4720 argument; use die->type instead. Update call to
4721 smash_to_method_type.
4722 (read_structure_scope): Update call to dwarf2_add_member_fn.
4723 * gdbtypes.c (allocate_stub_method): Update comment.
4724 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4725 Use new argument layout.
4726 (check_stub_method): Use new argument layout. Don't count
4727 void as an argument.
4728 (print_arg_types): Update comments. Use new argument layout.
4729 (recursive_dump_type): Don't print arg_types member.
4730 * hpread.c (hpread_read_struct_type): Use new argument layout.
4731 (fixup_class_method_type): Likewise.
4732 (hpread_type_lookup): Likewise.
4733 * stabsread.c (read_type): Update calls to read_args and
4734 smash_to_method_type.
4735 (read_args): Use new argument layout. Simplify.
4736 * valops.c (typecmp): Use new argument layout. Update parameters
4737 and comments. Simplify.
4738 (hand_function_call): Use new argument layout.
4739 (search_struct_method): Update call to typecmp.
4740 (find_overload_match): Use new argument layout.
4741
47422002-06-13 Daniel Jacobowitz <drow@mvista.com>
4743
4744 * NEWS: Mention multithreaded debug support for gdbserver.
4745
47462002-06-13 Daniel Jacobowitz <drow@mvista.com>
4747
4748 * MAINTAINERS: Mention NEWS.
4749
47502002-06-13 Daniel Jacobowitz <drow@mvista.com>
4751
4752 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4753 (struct mips_objfile_private, compare_pdr_entries): New.
4754 (non_heuristic_proc_desc): Read the ".pdr" section if it
4755 is present.
4756
47572002-06-12 Andrew Cagney <ac131313@redhat.com>
4758
4759 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4760 (arm_debug): New static variable.
4761 (_initialize_arm_tdep): Add ``set debug arm'' command.
4762
47632002-06-12 Andrew Cagney <ac131313@redhat.com>
4764
4765 * Makefile.in (sim_arm_h): Define.
4766 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4767 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4768 (arm_register_sim_regno): New function, map an internal REGNUM
4769 onto a simulator register number.
4770 (arm_gdbarch_init): Set register_sim_regno.
4771
47722002-06-09 Aldy Hernandez <aldyh@redhat.com>
4773
4774 * MAINTAINERS: Add self.
4775
47762002-06-11 Jim Blandy <jimb@redhat.com>
4777
4778 * source.c (source_info): Mention whether the symtab has
4779 information about preprocessor macros.
4780
4781 Call the command `info macro', not `show macro'.
4782 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4783 Fix error message.
4784 (_initialize_macrocmd): Register `info_macro_command' in
4785 `infolist', not `showlist'.
4786
47872002-06-11 Daniel Jacobowitz <drow@mvista.com>
4788
4789 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4790 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4791 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4792 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4793 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4794 unconditionally.
4795 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4796 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4797 (_initialize_mips_tdep): Remove dead code.
4798 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4799 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4800 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4801 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4802 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4803 MIPS_LAST_FP_ARG_REGNUM): Remove.
4804
48052002-06-11 Michal Ludvig <mludvig@suse.cz>
4806
4807 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4808 (unwind_tmp_obstack_free, parse_frame_info)
4809 (update_context, cfi_read_fp, cfi_write_fp)
4810 (cfi_frame_chain, cfi_init_extra_frame_info)
4811 (cfi_virtual_frame_pointer): Use the above function.
4812 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4813
48142002-06-11 Corinna Vinschen <vinschen@redhat.com>
4815
4816 * v850-tdep.c (v850_type_is_scalar): New function.
4817 (v850_use_struct_convention): Match current gcc implementation
4818 as close as possible.
4819 (v850_push_arguments): Fix stack_offset handling. Don't write
4820 struct_addr into register. This is done by v850_store_struct_return.
4821 (v850_extract_return_value): Care for structs.
4822 (v850_store_return_value): Ditto.
4823 (v850_store_struct_return): Actually write address.
4824
48252002-06-11 Michal Ludvig <mludvig@suse.cz>
4826
4827 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4828 without debug information too.
4829
48302002-06-10 Andrew Cagney <ac131313@redhat.com>
4831
4832 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4833 Make multi-arch pure.
4834 * gdbarch.h, gdbarch.c: Re-generate.
4835 * arm-tdep.c (arm_print_float_info): Update.
4836 * arch-utils.h (default_print_float_info): Update.
4837 * arch-utils.c (default_print_float_info): Update.
4838 * infcmd.c (float_info): Update call.
4839
48402002-06-10 Andrew Cagney <ac131313@redhat.com>
4841
4842 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4843 the front of the initialize list.
4844
48452002-06-10 Andrew Cagney <ac131313@redhat.com>
4846
4847 * infrun.c (struct inferior_status): Replace fields
4848 selected_frame_address and selected_level with field
4849 selected_frame_id.
4850 (save_inferior_status): Update. Use get_frame_id.
4851 (struct restore_selected_frame_args): Delete.
4852 (restore_selected_frame): Update. Use frame_find_by_id.
4853 (restore_inferior_status): Update.
4854
4855 * breakpoint.h (struct breakpoint): Change type of
4856 watchpoint_frame to frame_id.
4857 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4858 call to get_current_frame.
4859 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4860 get_current_frame.
4861 (watchpoint_check): Use frame_find_by_id.
4862
4863 * frame.h (record_selected_frame): Delete declaration.
4864 * stack.c (record_selected_frame): Delete function.
4865
4866 * frame.h (struct frame_id): Define.
4867 (get_frame_id): Declare.
4868 (frame_find_by_id): Declare.
4869 * frame.c (frame_find_by_id): New function.
4870 (get_frame_id): New function.
4871
48722002-06-10 Andrey Volkov <avolkov@transas.com>
4873
4874 * ser-e7kpc.c: Fix duplicated define and call of
4875 _initialize_ser_e7000pc
4876
48772002-06-09 Daniel Jacobowitz <drow@mvista.com>
4878
4879 * signals/signals.c (target_signal_from_host): Fix #ifdef
4880 SIGRTMIN case.
4881 (do_target_signal_to_host): Likewise.
4882
48832002-06-09 Daniel Jacobowitz <drow@mvista.com>
4884
4885 * mips-tdep.c (mips_find_abi_section): New function.
4886 (mips_gdbarch_init): Call it.
4887
48882002-06-09 Mark Kettenis <kettenis@gnu.org>
4889
4890 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4891 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4892 after Andrew's 2002-06-08 gdbarch change.
4893
48942002-06-09 Mark Kettenis <kettenis@gnu.org>
4895
4896 * i386-linux-nat.c (suppy_gregset): Don't supply
4897 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4898 register cache.
4899 (fill_gregset): Don't fetch it under the same circumstances.
4900
49012002-06-09 Andrew Cagney <cagney@redhat.com>
4902
4903 * Makefile.in (callback_h): Define.
4904 (remote_sim_h): Update path to remote-sim.h.
4905 (remote-rdp.o): Add $(callback_h).
4906 (remote-sim.o): Use $(callback_h).
4907 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4908 * remote-rdp.c: Include "gdb/callback.h".
4909
49102002-06-09 Mark Kettenis <kettenis@gnu.org>
4911
4912 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4913 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4914
49152002-06-08 Andrew Cagney <ac131313@redhat.com>
4916
4917 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4918 * rdi-share/serpardr.c: Ditto.
4919 * rdi-share/unixcomm.c: Ditto.
4920 * rdi-share/serdrv.c: Ditto.
4921 * rdi-share/hostchan.h: Ditto.
4922 * rdi-share/hostchan.c: Ditto.
4923 * rdi-share/host.h: Ditto.
4924 * rdi-share/devsw.c: Ditto.
4925
4926 * objfiles.h: Change type of obj_private to void pointer.
4927 * pa64solib.c: Update copyright. Don't include "assert.h", use
4928 strcmp instead of STREQ, use LONGEST, do not use PTR
4929 * somsolib.c: Ditto.
4930
4931 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4932 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4933 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4934
49352002-06-08 Andrew Cagney <ac131313@redhat.com>
4936
4937 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4938 (default_get_saved_register): Delete function.
4939 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4940 generic_unwind_get_saved_register.
4941 * gdbarch.h, gdbarch.c: Re-generate.
4942
49432002-06-08 Andrew Cagney <ac131313@redhat.com>
4944
4945 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4946 generic_func_frame_chain_valid.
4947 * gdbarch.h, gdbarch.c: Re-generate.
4948 * blockframe.c (generic_func_frame_chain_valid): Only check
4949 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4950 passing FP to PC_IN_CALL_DUMMY.
4951 Fix PR gdb/360.
4952
49532002-06-08 Andrew Cagney <ac131313@redhat.com>
4954
4955 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4956 (register_gdbarch_data): Initialize init_p.
4957 (gdbarch_data): Initialize data pointer using the init function.
4958 (init_gdbarch_data): Delete function.
4959 (gdbarch_update_p): Update.
4960 (initialize_non_multiarch): Update.
4961 (struct gdbarch): Add field initialized_p.
4962 * gdbarch.h, gdbarch.c: Re-generate.
4963
49642002-06-07 Michal Ludvig <mludvig@suse.cz>
4965
4966 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4967 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4968 better do the things actually here.
4969 * x86-64-tdep.c (x86_64_register_name2nr): New.
4970 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4971 (x86_64_gdbarch_init): Respect the above change.
4972 * x86-64-tdep.h (x86_64_register_name2nr)
4973 (x86_64_register_nr2name): Add prototypes.
4974 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4975
49762002-06-06 Michael Snyder <msnyder@redhat.com>
4977
4978 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4979 Delete extra braces and re-indent.
4980 (d10v_store_return_value): Char return values
4981 must be shifted over by one byte in R0.
4982 (d10v_extract_return_value): Delete extra braces, re-indent.
4983
49842002-06-06 Elena Zannoni <ezannoni@redhat.com>
4985
4986 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4987 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4988 (d10v_integer_to_address): Rewrite.
4989 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4990 the d10v specific functions which take care of converting to the
4991 correct space.
4992
49932002-06-06 Elena Zannoni <ezannoni@redhat.com>
4994
4995 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4996 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4997
49982002-06-02 Andrew Cagney <ac131313@redhat.com>
4999
5000 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5001 includes.
5002 * config/tm-linux.h: Ditto.
5003 * config/alpha/tm-alphalinux.h: Ditto.
5004 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5005 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5006 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5007 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5008 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5009 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5010 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5011 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5012 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5013 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5014 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5015 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5016 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5017 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5018 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5019 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5020 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5021 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5022 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5023 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5024 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5025 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5026 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5027 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5028 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5029 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5030 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5031 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5032 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5033 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5034 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5035 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5036 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5037 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5038 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5039 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5040 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5041
50422002-05-04 Aidan Skinner <aidan@velvet.net>
5043
5044 * ada-exp.tab.c: New file
5045 * ada-exp.y: New file
5046 * ada-lang.c: New file
5047 * ada-lang.h: New file
5048 * ada-lex.c: New file
5049 * ada-lex.l: New file
5050 * ada-tasks.c: New file
5051 * ada-typeprint.c: New file
5052 * ada-valprint.c: New file
5053
50542002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5055
5056 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5057 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5058
50592002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5060
5061 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5062 insetead of ppc-linux-tdep.o.
5063 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5064 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5065
50662002-06-02 Andrew Cagney <ac131313@redhat.com>
5067
5068 2002-05-07 Christian Groessler <chris@groessler.org>
5069 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5070 bit register contents for little endian hosts.
5071
50722002-06-01 Andrew Cagney <ac131313@redhat.com>
5073
5074 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5075 any maintainer.
5076
50772002-06-01 Andrew Cagney <ac131313@redhat.com>
5078
5079 * gdbarch.h: Regenerate.
5080
50812002-06-01 Andrew Cagney <ac131313@redhat.com>
5082
5083 * MAINTAINERS: Add everyone to write-after-approval list.
5084
50852002-06-01 Andrew Cagney <ac131313@redhat.com>
5086
5087 * stack.c (frame_info): Use frame_register_unwind instead of
5088 saved_regs. Mention when the SP is on the stack or in a register.
5089
5090 * frame.h (frame_register_unwind_ftype): Define. Document.
5091 (struct frame_info): Add field register_unwind and
5092 register_unwind_cache.
5093 (frame_register_unwind): Declare.
5094 (generic_unwind_get_saved_register): Declare.
5095
5096 * frame.c (frame_register_unwind): New function.
5097 (generic_unwind_get_saved_register): New function.
5098
5099 * blockframe.c (generic_call_dummy_register_unwind): New function.
5100 (frame_saved_regs_register_unwind): New function.
5101 (set_unwind_by_pc): New function.
5102 (create_new_frame): New function.
5103 (get_prev_frame): New function.
5104
51052002-05-30 Andrew Cagney <ac131313@redhat.com>
5106
5107 * a29k-share/: Delete directory.
5108 * remote-vx29k.c: Delete file.
5109
51102002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5111
5112 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5113 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5114
51152002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5116
5117 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5118 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5119 (sparc64nbsd-nat.o)
5120 (sparcnbsd-nat.o)
5121 (sparcnbsd-tdep.o): New dependency lists.
5122 * NEWS: Note new UltraSPARC NetBSD native configuration.
5123 * configure.host (sparc64-*-netbsd*): New host.
5124 * configure.tgt (sparc-*-netbsdelf*)
5125 (sparc-*-netbsd*): Set gdb_target to nbsd.
5126 (sparc64-*-netbsd*): New target.
5127 * sparc64nbsd-nat.c: New file.
5128 * sparcnbsd-nat.c: New file.
5129 * sparcnbsd-tdep.c: New file.
5130 * sparcnbsd-tdep.h: New file.
5131 * config/sparc/nbsd.mt: New file.
5132 * config/sparc/nbsd64.mh: New file.
5133 * config/sparc/nbsd64.mt: New file.
5134 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5135 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5136 (HOST_IPC): Remove.
5137 * config/sparc/nbsdaout.mt: Remove.
5138 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5139 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5140 (HOST_IPC): Remove.
5141 * config/sparc/nbsdelf.mt: Remove.
5142 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5143 sparc-nat.c compatiblity defines.
5144 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5145 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5146 * config/sparc/tm-nbsd64.h: New file.
5147 * config/sparc/tm-nbsdaout.h: Remove.
5148 * config/sparc/xm-nbsd.h: Remove.
5149
51502002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5151
5152 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5153 * sparc-tdep.c: Include osabi.h.
5154 (gdbarch_tdep): Add osabi member.
5155 (_initialize_sparc_tdep): Use gdbarch_register.
5156 (sparc_gdbarch_init): Use generic OS ABI framework.
5157 (sparc_dump_tdep): New function.
5158
51592002-05-30 Kevin Buettner <kevinb@redhat.com>
5160
5161 * corefile.c (do_captured_read_memory_integer): Return non-zero
5162 result.
5163 (safe_read_memory_integer): Copy result of memory read when
5164 status is non-zero. Also, add comments.
5165
51662002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5167
5168 * Makefile.in (ppc_tdep_h): Define.
5169 (ppc-linux-nat.o)
5170 (ppc-linux-tdep.o)
5171 (rs6000-tdep.o): Use $(ppc_tdep_h).
5172 (ppc-sysv-tdep.o)
5173 (ppcnbsd-nat.o)
5174 (ppcnbsd-tdep.o): New dependency lists.
5175 * ppc-tdep.h: Use generic OS ABI framework.
5176 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5177 (ppc_linux_init_abi): New functions.
5178 (ppc_sysv_abi_broken_use_struct_convention)
5179 (ppc_sysv_abi_use_struct_convention)
5180 (ppc_sysv_abi_push_arguments): Move to...
5181 * ppc-sysv-tdep.c: ...here.
5182 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5183 * rs6000-tdep.c (process_note_abi_tag_sections)
5184 (get_elfosabi): Remove.
5185 (rs6000_gdbarch_init): Use generic OS ABI framework.
5186 (rs6000_dump_tdep): New function.
5187 (_initialize_rs6000_tdep): Use gdbarch_register.
5188 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5189 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5190 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5191 of ppc-linux-tdep.o.
5192 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5193 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5194 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5195 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5196 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5197 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5198
51992002-05-29 Jim Blandy <jimb@redhat.com>
5200
5201 * macroscope.c (default_macro_scope): Put `void' in empty argument
5202 list.
5203
52042002-05-29 Andrew Cagney <ac131313@redhat.com>
5205
5206 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5207 * arch-utils.c: Include "sim-regno.h".
5208 * gdbarch.sh: Don't include "sim-regno.h".
5209 * gdbarch.h, gdbarch.c: Regenerate.
5210 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5211 here.
5212 * arch-utils.h (legacy_register_sim_regno): To here.
5213 * remote-sim.c (legacy_register_sim_regno): Move function from
5214 here.
5215 * arch-utils.c (legacy_register_sim_regno): To here.
5216
52172002-05-28 Andrew Cagney <ac131313@redhat.com>
5218
5219 * sim-regno.h: New file.
5220 * Makefile.in (sim_regno_h): Define.
5221 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5222 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5223 (legacy_register_sim_regno): New function.
5224 (one2one_register_sim_regno): New function.
5225 (gdbsim_fetch_register): Rewrite.
5226 (gdbsim_store_register): Only store a register when
5227 REGISTER_SIM_REGNO is valid.
5228 * d10v-tdep.c: Include "sim-regno.h".
5229 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5230 (d10v_ts3_register_sim_regno): Ditto.
5231 * gdbarch.sh: Include "sim-regno.h".
5232 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5233 * gdbarch.h, gdbarch.c: Regenerate.
5234 * arch-utils.h (default_register_sim_regno): Delete declaration.
5235 * arch-utils.c (default_register_sim_regno): Delete function.
5236
52372002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5238
5239 * ppcnbsd-nat.c: Rewrite.
5240 * ppcnbsd-tdep.c: New file.
5241 * ppcnbsd-tdep.h: New file.
5242 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5243 solib.o, and solib-svr4.o.
5244 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5245 nbsd-tdep.o, and corelow.o.
5246
52472002-05-28 Andrew Cagney <ac131313@redhat.com>
5248
5249 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5250 `tr' and `sed'. Mention that `broken' targets are not expected to
5251 build.
5252
52532002-05-27 Michal Ludvig <mludvig@suse.cz>
5254
5255 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5256 Let PC point right after the prologue before looking up symbols.
5257
52582002-05-27 Martin M. Hunt <hunt@redhat.com>
5259
5260 * i386-tdep.c (i386_register_virtual_type): Return
5261 builtin_type_vec128i for SSE registers.
5262
5263 * gdbtypes.h (builtin_type_vec128i): Declare.
5264
5265 * gdbtypes.c (build_builtin_type_vec128i): New function.
5266 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5267 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5268 (build_gdbtypes): Initialize new builtin vector types.
5269 (_initialize_gdbtypes): Register new vector types with gdbarch.
5270
52712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5272
5273 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5274 since it has been multi-arch'd.
5275 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5276 Move Alpha and VAX multi-arch news entries to same section
5277 as other multi-arch news.
5278
52792002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5280
5281 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5282 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5283 static. Rename some register numbers to put them in ns32k-tdep
5284 private namespace.
5285 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5286 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5287 functions.
5288 (_initialize_ns32k_tdep): Use gdbarch_register.
5289 * ns32k-tdep.h: New file.
5290 * ns32knbsd-tdep.c: New file.
5291 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5292 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5293 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5294 REGISTER_BYTES, REGISTER_BYTE): Remove.
5295 * config/ns32k/tm-ns32k.h: New file.
5296 * config/ns32k/tm-umax.h: Remove.
5297
52982002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5299
5300 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5301 ns32k_store_struct_return, ns32k_extract_return_value,
5302 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5303 functions.
5304 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5305 ns32k_saved_pc_after_call.
5306 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5307 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5308 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5309 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5310 ns32k_extract_struct_value_address.
5311
53122002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5313
5314 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5315 ns32k_fix_call_dummy): New.
5316 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5317 ns32k_call_dummy_words.
5318 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5319 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5320 CALL_DUMMY_NARGS): Remove.
5321 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5322
53232002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5324
5325 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5326 ns32k_frame_saved_pc, ns32k_frame_args_address,
5327 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5328 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5329 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5330 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5331 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5332 (BREAKPOINT): Remove..
5333 (FRAME_CHAIN): Define as ns32k_frame_chain.
5334 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5335 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5336 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5337 (FRAME_FIND_SAVED_REGS): Remove.
5338 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5339 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5340 (POP_FRAME): Define as ns32k_pop_frame.
5341
53422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5343
5344 * ns32k-tdep.c (ns32k_register_byte_32082,
5345 ns32k_register_byte_32382, ns32k_register_raw_size,
5346 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5347 functions.
5348 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5349 ns32k_register_byte_32382.
5350 * config/ns32k/tm-umax.h: Update copyright years.
5351 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5352 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5353 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5354 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5355 (ns32k_get_enter_addr): Fix prototype.
5356
53572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5358
5359 * ns32k-tdep.c: Update copyright years.
5360 (ns32k_register_name_32082): New function.
5361 (ns32k_register_name_32382): Ditto.
5362 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5363 (REGISTER_NAME): Define as ns32k_register_name_32382.
5364 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5365 (REGISTER_NAME): Define as ns32k_register_name_32082.
5366
53672002-05-24 Jim Blandy <jimb@redhat.com>
5368
5369 * dwarf2read.c (free_line_header): Use xfree, not free.
5370
53712002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5372
5373 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5374 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5375
53762002-05-23 Andrew Cagney <ac131313@redhat.com>
5377
5378 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5379
53802002-05-23 Andrew Cagney <ac131313@redhat.com>
5381
5382 From Ross Alexander at NEC Europe:
5383 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5384
53852002-05-23 Michael Snyder <msnyder@redhat.com>
5386
5387 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5388 for input, rather than parse_and_eval_address.
5389
53902002-05-23 Andrew Cagney <ac131313@redhat.com>
5391
5392 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5393 * Makefile.in (sim_d10v_h): Update definition.
5394
53952002-05-24 Andrew Cagney <cagney@redhat.com>
5396
5397 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5398 change `2002-05-22 Michael Snyder' below.
5399 (d10v_push_arguments): Ditto.
5400 (d10v_extract_return_value): Ditto.
5401
54022002-05-23 Jim Blandy <jimb@redhat.com>
5403
5404 * macrotab.c (check_for_redefinition): Don't complain if the new
5405 definition is the same as the previous one. Take more arguments
5406 to allow the comparison.
5407 (macro_define_object, macro_define_function): Pass more arguments
5408 to check_for_redefinition.
5409
54102002-05-22 Michael Snyder <msnyder@redhat.com>
5411
5412 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5413 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5414 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5415 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5416 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5417 Add a temp variable to save a call (and a memory read).
5418 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5419 if possible (so that PC_IN_CALL_DUMMY will work).
5420
54212002-05-22 Corinna Vinschen <vinschen@redhat.com>
5422
5423 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5424
54252002-05-22 Michal Ludvig <mludvig@suse.cz>
5426
5427 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5428 fde->cie_ptr.
5429 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5430 (dwarf2_build_frame_info): Add offset to fde->initial_location
5431 so that frames of shared libraries are mapped correctly.
5432 (execute_stack_op): Change type of 'result' from ULONGEST to
5433 CORE_ADDR.
5434
54352002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5436
5437 * config/alpha/tm-nbsd.h: Include solib.h.
5438
54392002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5440
5441 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5442 assumptions about the host's byte order.
5443
54442002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5445
5446 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5447 to dependency list.
5448 * alphanbsd-tdep.c: Include solib-svr4.h.
5449 * shnbsd-tdep.c: Ditto.
5450
54512002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5452
5453 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5454 nbsd-tdep.h to dependency list.
5455 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5456 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5457 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5458 nbsdaout.mh and nbsdelf.mh consistently.
5459 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5460 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5461 nbsdaout.mt and nbsdelf.mh consistently.
5462 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5463 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5464 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5465 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5466 a.out shared library stuff from here...
5467 * config/nm-nbsdaout.h: ...to here.
5468 * config/tm-nbsd.h: Remove.
5469 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5470 * config/arm/nbsd.mh: Remove.
5471 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5472 nbsd-tdep.o.
5473 * config/arm/nbsdaout.mh: New file.
5474 * config/arm/nbsdelf.mh: New file.
5475 * config/arm/nm-nbsdaout.h: New file.
5476 * config/i386/nbsd.mh: Remove.
5477 * config/i386/nbsd.mt: Remove.
5478 * config/i386/nbsdaout.mh: New file.
5479 * config/i386/nbsdaout.mt: New file.
5480 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5481 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5482 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5483 i386_register_u_addr): Remove.
5484 * config/i386/nm-nbsdaout.h: New file.
5485 * config/i386/nm-nbsdelf.h: Remove.
5486 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5487 (USE_STRUCT_CONVENTION): Remove.
5488 * config/i386/tm-nbsdaout.h: New file.
5489 * config/i386/tm-nbsdelf.h: Remove.
5490 * config/m68k/nbsd.mh: Remove.
5491 * config/m68k/nbsd.mt: Remove.
5492 * config/m68k/nbsdaout.mh: New file.
5493 * config/m68k/nbsdaout.mt: New file.
5494 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5495 * config/m68k/nm-nbsdaout.h: New file.
5496 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5497 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5498 * config/ns32k/nbsd.mh: Remove.
5499 * config/ns32k/nbsd.mt: Remove.
5500 * config/ns32k/nbsdaout.mh: New file.
5501 * config/ns32k/nbsdaout.mt: New file.
5502 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5503 * config/ns32k/nm-nbsdaout.h: New file.
5504 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5505 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5506 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5507 (SVR4_SHARED_LIBS): Remove.
5508 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5509 * config/sparc/nbsd.mh: Remove.
5510 * config/sparc/nbsd.mt: Remove.
5511 * config/sparc/nbsdaout.mh: New file.
5512 * config/sparc/nbsdaout.mt: New file.
5513 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5514 * config/sparc/nbsdelf.mt: New file.
5515 * config/sparc/nm-nbsdaout.h: New file.
5516 * config/sparc/nm-nbsdelf.h: Remove.
5517 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5518 * config/sparc/tm-nbsdaout.h: New file.
5519
55202002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5521
5522 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5523 mipsnbsd-tdep.c
5524 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5525
55262002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5527
5528 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5529 shnbsd-nat.c.
5530 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5531
55322002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5533
5534 * NEWS: Note new MIPS NetBSD native configuration.
5535 * configure.host (mips*-*-netbsd*): New host.
5536 * configure.tgt (mips*-*-netbsd*): New target.
5537 * mipsnbsd-nat.c: New file.
5538 * mipsnbsd-tdep.c: New file.
5539 * mipsnbsd-tdep.h: New file.
5540 * config/mips/nbsd.mh: New file.
5541 * config/mips/nbsd.mt: New file.
5542 * config/mips/nm-nbsd.h: New file.
5543 * config/mips/tm-nbsd.h: New file.
5544
55452002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5546
5547 * Makefile.in (SFILES): Add osabi.c.
5548 (COMMON_OBS): Add osabi.o.
5549 (osabi.o): New dependency list.
5550 * osabi.c: New file.
5551 * osabi.h: New file.
5552 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5553
5554 * Makefile.in (alpha_tdep_h): Define and use instead of
5555 alpha-tdep.h.
5556 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5557 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5558 Remove.
5559 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5560 * alpha-tdep.h: Include osabi.h.
5561 (alpha_abi): Remove.
5562 (gdbarch_tdep): Use generic OS ABI framework.
5563 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5564 gdbarch_register_osabi.
5565 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5566 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5567 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5568
5569 * Makefile.in (sh_tdep_h): Add osabi.h.
5570 * sh-tdep.h (sh_osabi): Remove.
5571 (gdbarch_tdep): Use generic OS ABI framework.
5572 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5573 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5574 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5575 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5576
5577 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5578 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5579 gdbarch_register_osabi.
5580 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5581 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5582 (get_elfosabi): Rename to...
5583 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5584 ABI framework support routines.
5585 (arm_gdbarch_init): Use generic OS ABI framework.
5586 (arm_dump_tdep): Likewise.
5587 (_initialize_arm_tdep): Likewise.
5588 * arm-tdep.h: Include osabi.h.
5589 (arm_abi): Remove.
5590 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5591 osabi member.
5592 (arm_gdbarch_register_os_abi): Remove prototype.
5593 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5594 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5595
5596 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5597 * mips-tdep.c: Include osabi.h.
5598 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5599 OS ABI framework.
5600
56012002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5602
5603 * h8300-tdep.c: Fix formatting.
5604
56052002-05-20 Elena Zannoni <ezannoni@redhat.com>
5606
5607 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5608 printing vector registers.
5609
56102002-05-19 Andrew Cagney <ac131313@redhat.com>
5611
5612 From Fernando Nasser:
5613 * remote.c (remote_async_open_1): Re-throw the exception when the
5614 connection fails.
5615 (remote_cisco_open): Ditto.
5616 (remote_open_1): Ditto.
5617
56182002-05-19 Andrew Cagney <ac131313@redhat.com>
5619
5620 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5621 (remote_start_remote): Add uiout parameter. Pass through to
5622 remote_start_remote_dummy.
5623 (remote_open_1): Use catch_exception instead of catch_errors.
5624 (remote_async_open_1): Ditto.
5625 (remote_cisco_open): Ditto.
5626
56272002-05-19 Andrew Cagney <ac131313@redhat.com>
5628
5629 * remote.c (remote_start_remote): Replace PTR with void pointer.
5630 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5631 static.
5632
56332002-05-18 Andrew Cagney <ac131313@redhat.com>
5634
5635 * gdb_indent.sh: Allow the script to be run in the sim directory.
5636
56372002-05-18 Mark Kettenis <kettenis@gnu.org>
5638
5639 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5640 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5641
5642 * corelow.c (core_open): Only call set_gdbarch_from_file if
5643 exec_bfd is NULL.
5644
56452002-05-17 Andrey Volkov <avolkov@transas.com>
5646
5647 * h8300-tdep.c: Add support of EXR register
5648 * config/h8300/tm-h8300.h: Ditto.
5649
56502002-05-17 Andrey Volkov <avolkov@transas.com>
5651
5652 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5653
56542002-05-17 Andrey Volkov <avolkov@transas.com>
5655
5656 * h8300-tdep.c: Change literal regnums to REGNO.
5657
56582002-05-17 Jim Blandy <jimb@redhat.com>
5659
5660 * NEWS: Note addition of macro support.
5661
5662 Expand preprocessor macros in C expressions.
5663 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5664 (scan_macro_expansion, scanning_macro_expansion,
5665 finished_macro_expansion): New function declarations.
5666 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5667 variable declarations.
5668 * parser-defs.h (expression_context_pc): New declaration.
5669 * parse.c (expression_context_pc): New variable.
5670 (parse_exp_1): Set expression_context_pc, as well as
5671 expression_context_block.
5672 * c-exp.y (yylex): If we're not already reading the result of a
5673 macro expansion, try to macro-expand the next token. When we're
5674 done scanning a macro expansion, switch back to the mainline text.
5675 Commas and `if's in a macro's expansion don't terminate the input.
5676 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5677 (macro_original_text, macro_expanded_text,
5678 expression_macro_lookup_func, expression_macro_lookup_baton): New
5679 variables.
5680 (scan_macro_expansion, scanning_macro_expansion,
5681 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5682 c_preprocess_and_parse): New functions.
5683 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5684 c_preprocess_and_parse, instead of c_parse.
5685 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5686 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5687
5688Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5689
5690 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5691 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5692 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5693
56942002-05-17 Corinna Vinschen <vinschen@redhat.com>
5695
5696 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5697
56982002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5699
5700 * Makefile.in (sh_tdep_h): Define and use.
5701 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5702 register enum): Move to...
5703 * * sh-tdep.h: ...here.
5704 * sh-tdep.c: Include sh-tdep.h.
5705 * sh3-rom.c: Likewise.
5706 * shnbsd-tdep.c: Likewise.
5707
57082002-05-16 Michael Snyder <msnyder@redhat.com>
5709
5710 * arm-tdep.c: Spelling fix in comment.
5711
57122002-05-16 Jim Blandy <jimb@redhat.com>
5713
5714 Add commands for manually expanding macros and showing their
5715 definitions.
5716 * macrocmd.c, macroscope.c, macroscope.h: New files.
5717 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5718 (macroscope_h): New variable.
5719 (HFILES_NO_SRCDIR): Add macroscope.h.
5720 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5721 (macroscope.o, macrocmd.o): New rules.
5722
5723 Teach the Dwarf 2 reader to read macro information.
5724 * dwarf2read.c: #include "macrotab.h".
5725 (dwarf_macinfo_buffer): New variable.
5726 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5727 dwarf_macinfo_size.
5728 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5729 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5730 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5731 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5732 dwarf2_macro_spaces_in_definition): New complaints.
5733 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5734 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5735 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5736 the partial symbol table.
5737 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5738 from what's recorded in the partial symbol table.
5739 (read_file_scope): If the compilation unit has a
5740 `DW_AT_macro_info' attribute, read its macro information.
5741 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5742
57432002-05-16 Daniel Jacobowitz <drow@mvista.com>
5744
5745 Fix PR gdb/546
5746 * ser-tcp.c: Don't include <netinet/udp.h>.
5747
57482002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5749
5750 * MAINTAINERS: Update my email address.
5751
57522002-05-16 Richard Earnshaw <rearnsha@arm.com>
5753
5754 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5755 include file of the same name.
5756
57572002-05-16 Corinna Vinschen <vinschen@redhat.com>
5758
5759 * configure.tgt: Mark v850 as multi-arched.
5760 * config/v850/tm-v850.h: Remove file.
5761 * config/v850/v850.mt: Eliminate TM_FILE.
5762
57632002-05-16 Corinna Vinschen <vinschen@redhat.com>
5764
5765 * v850-tdep.c: Full multi-arch.
5766 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5767 Define GDB_MULTI_ARCH to 2.
5768
57692002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5770
5771 * p-exp.y (current_type): New static variable.
5772 Carries the type of the expression at the position that is parsed.
5773 (push_current_type, pop_current_type): Two new functions. Used
5774 to store/restore current_type in expression on specific tokens.
5775 (search_field): New static variable. Set to one after parsing a point
5776 as at that point only a FIELDNAME token should be searched.
5777 (FIELDNAME): New token. After a point only a token belonging to
5778 current_type type definition is allowed.
5779 (all over token rules): reset and change current_type according
5780 to rules.
5781 (exp '[' rule): insert implicit array index field if
5782 exp is a pascal string type.
5783
57842002-05-16 Corinna Vinschen <vinschen@redhat.com>
5785
5786 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5787 frame info. Use frame_info's saved_regs instead of matching member
5788 in extra_frame_info throughout.
5789 (v850_frame_init_saved_regs): New function.
5790 (v850_init_extra_frame_info): Move most functionality into
5791 v850_frame_init_saved_regs().
5792 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5793 (v850_frame_find_saved_regs): Remove declaration.
5794 (FRAME_FIND_SAVED_REGS): Remove definition.
5795 (v850_frame_init_saved_regs): Add declaration.
5796 (FRAME_INIT_SAVED_REGS): Add definition.
5797
57982002-05-16 Corinna Vinschen <vinschen@redhat.com>
5799
5800 * v850-tdep.c: Begin multi-arch'ing v850.
5801 (v850_target_architecture_hook): Remove function.
5802 (v850_gdbarch_init): New function. Add code previously in
5803 v850_target_architecture_hook().
5804 (_initialize_v850_tdep): Don't set target_architecture_hook.
5805 Call register_gdbarch_init() instead.
5806
58072002-05-16 Daniel Jacobowitz <drow@mvista.com>
5808
5809 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5810 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5811 (fixup_class_method_type): Likewise.
5812
58132002-05-15 Jim Blandy <jimb@redhat.com>
5814
5815 Add macro structures to GDB's symbol tables. Nobody puts anything
5816 in them yet.
5817 * symtab.h (struct symtab): New member: `macro_table'.
5818 * buildsym.h (pending_macros): New global variable.
5819 * buildsym.c: #include "macrotab.h".
5820 (buildsym_init): Initialize `pending_macros'.
5821 (end_symtab): If we found macro information while reading a CU's
5822 debugging info, do build a symtab structure for it. Make the
5823 symtab point to the macro information, and clear the
5824 `pending_macros' pointer which held it while we were reading the
5825 debug info.
5826 (really_free_pendings): Free any pending macro table.
5827 * objfiles.h (struct objfile): New member: `macro_cache'.
5828 * objfiles.c (allocate_objfile): Set allocate and free functions
5829 for the macro cache's objstack.
5830 (free_objfile): Empty the macro cache's obstack.
5831 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5832 set new allocate and free functions for it.
5833 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5834 free functions for the macro cache's objstack. (Why is this
5835 function building its own objfile?)
5836 * symmisc.c (print_objfile_statistics): Print statistics on the
5837 macro bcache.
5838 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5839
58402002-05-15 Richard Earnshaw <rearnsha@arm.com>
5841
5842 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5843 (REGISTER_U_ADDR): Delete definition.
5844 (arm_register_u_addr): Delete declaration.
5845
58462002-05-15 Richard Earnshaw <rearnsha@arm.com>
5847
5848 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5849 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5850
58512002-05-14 Andrew Cagney <ac131313@redhat.com>
5852
5853 * regcache.c (register_valid): Revise comments refering to "Not
5854 available" and "unavailable".
5855 * frame.c (frame_register_read): Ditto.
5856 * findvar.c (value_of_register): Ditto.
5857
58582002-05-15 Andrew Cagney <cagney@redhat.com>
5859
5860 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5861 (remote-sim.o): Update dependencies.
5862 (d10v-tdep.o): Specify dependencies.
5863 (sim_d10v_h): Define.
5864
58652002-05-14 Jim Blandy <jimb@redhat.com>
5866
5867 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5868 * macrotab.c (macro_lookup_inclusion, find_definition,
5869 new_macro_table): Same.
5870
5871 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5872 not `! strcmp ()'. This is a dubious improvement.
5873 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5874
5875 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5876 although it's not necessary, to avoid a warning.
5877
58782002-05-14 Daniel Jacobowitz <drow@mvista.com>
5879
5880 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5881 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5882 TYPE_INSTANCE_FLAGS.
5883 (struct main_type): New.
5884 (struct type): Move most members to struct main_type. Change
5885 cv_type and as_type to new type_chain member. Add instance_flags.
5886 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5887 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5888 (finish_cv_type): Remove prototype.
5889 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5890 Set TYPE_CHAIN.
5891 (alloc_type_instance): New function.
5892 (smash_type): New function.
5893 (make_pointer_type, make_reference_type, make_function_type)
5894 (smash_to_member_type, smash_to_method_type): Call smash_type.
5895 (make_qualified_type): New function.
5896 (make_type_with_address_space): Call make_qualified_type.
5897 (make_cv_type): Likewise.
5898 (finish_cv_type): Remove unnecessary function.
5899 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5900 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5901 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5902 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5903 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5904 * hpread.c (hpread_read_struct_type): Likewise.
5905 * stabsread.c (read_struct_type): Likewise.
5906
59072002-05-14 Elena Zannoni <ezannoni@redhat.com>
5908
5909 * configure.tgt: Add a catch all sh* target, for cases like
5910 sh[2,3,4]-elf and sh-hms.
5911
59122002-05-14 Keith Seitz <keiths@redhat.com>
5913
5914 * event-loop.c (create_file_handler): Don't do anything but
5915 update data when we are given a fd which we are already
5916 monitoring.
5917
59182002-05-14 Michal Ludvig <mludvig@suse.cz>
5919
5920 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5921 (update_context): Use __func__ in warnings.
5922
59232002-05-14 Daniel Jacobowitz <drow@mvista.com>
5924
5925 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5926 and tcp_close to net_open and net_close.
5927 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5928 using UDP if requested. Don't try to disable Nagle on UDP
5929 sockets.
5930 * remote.c (remote_serial_open): New function. Warn about UDP.
5931 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5932
59332002-05-13 Elena Zannoni <ezannoni@redhat.com>
5934
5935 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5936
59372002-05-13 Elena Zannoni <ezannoni@redhat.com>
5938
5939 * configure.tgt: Remove sh-hms target.
5940 * MAINTAINERS: Don't list sh-hms as a separate target.
5941
59422002-05-13 Jim Blandy <jimb@redhat.com>
5943
5944 Add first preprocessor macro-expansion files.
5945 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5946 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5947 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5948 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5949 (COMMON_OBS): Add macrotab.o, macroexp.o.
5950 (macroexp.o, macrotab.o): New rules.
5951
59522002-05-13 Andrew Cagney <ac131313@redhat.com>
5953
5954 * config/m88k/tm-m88k.h: Update copyright.
5955 (m88k_target_write_pc): Declare
5956 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5957 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5958 (SHIFT_INST_REGS): Update definition.
5959 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5960 using old definition of TARGET_WRITE_PC.
5961 * regcache.c (generic_target_write_pc): Delete code handling
5962 NNPC_REGNUM.
5963 * gdbarch.sh (NNPC_REGNUM): Delete.
5964 * gdbarch.h, gdbarch.c: Regenerate.
5965
59662002-05-13 Richard Earnshaw <rearnsha@arm.com>
5967
5968 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5969 builtin reg number.
5970
59712002-05-13 Daniel Jacobowitz <drow@mvista.com>
5972
5973 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5974 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5975 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5976 access macros.
5977 * c-typeprint.c (cp_type_print_method_args): Likewise.
5978 (c_type_print_args): Likewise.
5979 * d10v-tdep.c (d10v_push_arguments): Likewise.
5980 (d10v_extract_return_value): Likewise.
5981 * expprint.c (print_subexp): Likewise.
5982 * gdbtypes.c (lookup_primitive_typename): Likewise.
5983 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5984 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5985 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5986 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5987 (TYPE_VECTOR): Likewise.
5988 * hpread.c (hpread_read_struct_type)
5989 (fix_static_member_physnames, fixup_class_method_type)
5990 (hpread_type_lookup): Likewise.
5991 * mdebugread.c (parse_symbol, parse_type): Likewise.
5992 * p-lang.c (is_pascal_string_type): Likewise.
5993 * valops.c (hand_function_call): Likewise.
5994 * x86-64-tdep.c (classify_argument): Likewise.
5995
5996 * hpread.c (hpread_read_function_type)
5997 (hpread_read_doc_function_type): Call replace_type.
5998 * dstread.c (create_new_type): Delete.
5999 (decode_dst_structure, process_dst_function): Call alloc_type.
6000 Use type access macros.
6001
60022002-05-12 Mark Kettenis <kettenis@gnu.org>
6003
6004 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6005 the're not supported by the current architecture.
6006 (i387_fill_fxsave): Likewise.
6007
60082002-05-12 Fred Fish <fnf@redhat.com>
6009
6010 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6011 sect_index_xxx members to index the first slot in section_offsets
6012 if all of the section_offsets are zero.
6013
60142002-05-12 Mark Kettenis <kettenis@gnu.org>
6015
6016 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6017 checked in with last change.
6018
60192002-05-12 Mark Kettenis <kettenis@gnu.org>
6020
6021 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6022 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6023 config.sub.
6024
60252002-05-12 Daniel Jacobowitz <drow@mvista.com>
6026
6027 * Makefile.in: Update dependencies.
6028
60292002-05-11 Andrew Cagney <ac131313@redhat.com>
6030
6031 * language.c (local_hex_string_custom): Simplify. Do not depend
6032 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6033
6034 * memattr.c (mem_info_command): Replace calls to
6035 longest_local_hex_string and longest_local_hex_string_custom.
6036 * buildsym.c (make_blockvector): Ditto.
6037 * solib.c (info_sharedlibrary_command): Ditto.
6038 * tracepoint.c (tracepoints_info): Ditto.
6039 * symtab.c (print_msymbol_info): Ditto.
6040
6041 * language.c (local_hex_string): Delete.
6042 (local_hex_string_custom): Delete.
6043 (longest_local_hex_string): Rename to local_hex_string.
6044 (longest_local_hex_string_custom): Rename to
6045 local_hex_string_custom.
6046 * language.h (local_hex_string): Change parameter type to LONGEST.
6047 (local_hex_string_custom): Ditto.
6048 (longest_local_hex_string): Delete declaration.
6049 (longest_local_hex_string_custom): Ditto.
6050
6051 * solib.c: Update copyright.
6052 * memattr.c: Update copyright.
6053
60542002-05-11 Andrew Cagney <ac131313@redhat.com>
6055
6056 * arch-utils.h (legacy_register_to_value): Declare.
6057 (legacy_value_to_register): Declare.
6058 (legacy_convert_register_p): Declare.
6059 * arch-utils.c (legacy_register_to_value): New function.
6060 (legacy_value_to_register): New function.
6061 (legacy_convert_register_p): New function.
6062
6063 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6064 (VALUE_TO_REGISTER): Define.
6065 (CONVERT_REGISTER_P): Define.
6066 * gdbarch.h, gdbarch.c: Regenerate.
6067
6068 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6069 VALUE_TO_REGISTER.
6070 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6071 CONVERT_REGISTER_P.
6072
60732005-05-11 Daniel Jacobowitz <drow@mvista.com>
6074 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6075
6076 * Makefile.in: Update dependencies for valops.c.
6077 * valops.c: Include "gdb_assert.h".
6078 (typecmp): Skip THIS parameter to methods.
6079 (find_method_list): Remove static_memfuncp argument,
6080 update callers. Check for stub methods.
6081 (find_value_oload_method_list): Don't set *static_memfuncp.
6082 (find_overload_match): Don't check for stub methods. Assert
6083 that methods are not stubbed. Handle static methods.
6084 (value_find_oload_method_list): Remove static_memfuncp argument.
6085 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6086 to the argument list for static stub methods.
6087 * value.h (value_find_oload_method_list): Update prototype.
6088
60892002-05-11 Andrew Cagney <ac131313@redhat.com>
6090
6091 * arch-utils.h (generic_register_size): Declare.
6092 (generic_register_raw_size, generic_register_virtual_size): Delete
6093 declarations.
6094 * arch-utils.c (generic_register_raw_size): Delete.
6095 (generic_register_size): New function.
6096 (generic_register_virtual_size): Delete.
6097
6098 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6099 default generic_register_size.
6100 * gdbarch.h, gdbarch.c: Re-generate.
6101
6102 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6103 register_virtual_size.
6104 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6105 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6106
61072002-05-11 Andrew Cagney <ac131313@redhat.com>
6108
6109 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6110 * gdbarch.h, gdbarch.c: Regenerate.
6111 * gnu-v3-abi.c: Update copyright.
6112 (vtable_address_point_offset): Update.
6113 (gnuv3_rtti_type): Update.
6114 (gnuv3_baseclass_offset): Update.
6115 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6116 (init_fetch_link_map_offsets): Update.
6117 * remote.c (get_remote_state): Update.
6118
61192002-05-11 Daniel Jacobowitz <drow@mvista.com>
6120
6121 * TODO: Remove value_headof/value_from_vtable_info comment.
6122 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6123 * values.c (value_headof, value_from_vtable_info): Delete.
6124 * value.h (value_from_vtable_info): Delete prototype.
6125
61262002-05-11 Andrew Cagney <ac131313@redhat.com>
6127
6128 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6129 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6130 $(gdb_regex_h).
6131 (gdb_assert_h): Define.
6132 (gdb_wait_h): Define.
6133 (gdb_regex_h): Define.
6134
61352002-05-11 Daniel Jacobowitz <drow@mvista.com>
6136
6137 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6138 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6139
61402002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6141
6142 * nbsd-tdep.c: Fix comment.
6143
61442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6145
6146 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6147 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6148 (nbsd-tdep.o): New dependency list.
6149 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6150 nbsd-tdep.h.
6151 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6152 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6153 * nbsd-tdep.c: New file.
6154 * nbsd-tdep.h: New file.
6155 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6156 nbsd-tdep.h.
6157 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6158 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6159 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6160 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6161
61622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6163
6164 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6165 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6166 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6167 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6168 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6169 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6170
61712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6172
6173 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6174 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6175 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6176 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6177 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6178 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6179 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6180
61812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6182
6183 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6184 fetch_elfcore_registers to...
6185 * i386nbsd-tdep.c: ...here.
6186 (i386nbsd_use_struct_convention): Rename to...
6187 (i386nbsd_aout_use_struct_convention): ...this.
6188 (i386nbsd_supply_reg): New function.
6189 (i386nbsd_fill_reg): New function.
6190 (fetch_core_registers): Use i386nbsd_supply_reg.
6191 (fetch_elfcore_registers): Likewise.
6192 (_initialize_i386nbsd_tdep): New function.
6193 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6195 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6196 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6197 (i386nbsd_aout_use_struct_convention): ...this.
6198
61992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6200
6201 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6202 (store_inferior_registers): Use shnbsd_fill_reg.
6203 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6204 sh_nbsd_supply_register): Collapse into...
6205 (shnbsd_supply_reg): ...this.
6206 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6207 (shnbsd_fill_reg): ...this.
6208 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6209 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6210 (fetch_core_registers): Use shnbsd_supply_reg.
6211 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6212 (sh_nbsd_core_fns): Rename to...
6213 (shnbsd_core_fns): ...this.
6214 (sh_nbsd_elfcore_fns): Rename to...
6215 (shnbsd_elfcore_fns): ...this.
6216 (sh_nbsd_init_abi): Rename to...
6217 (shnbsd_init_abi): ...this.
6218 (_initialize_sh_nbsd_tdep): Rename to...
6219 (_initialize_shnbsd_tdep): ...this.
6220 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6221 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6222 sh_nbsd_fill_register): Remove prototypes.
6223 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6224
62252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6226
6227 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6228 (i387-nat.o): Delete dependency list.
6229 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6230 (x86-64-linux-nat.o): Likewise.
6231 * i387-nat.c: Delete file, moving contents to...
6232 * i387-tdep.c: ...here.
6233 * i387-nat.h: Rename...
6234 * i387-tdep.h: ...to this.
6235 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6236 * i386-linux-nat.c: Likewise.
6237 * i386bsd-nat.c: Likewise.
6238 * i386gnu-nat.c: Likewise.
6239 * i386nbsd-nat.c: Likewise.
6240 * i386v4-nat.c: Likewise.
6241 * x86-64-linux-nat.c: Likewise.
6242 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6243 * config/i386/go32.mh (NATDEPFILES): Likewise.
6244 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6245 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6246 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6247 * config/i386/linux.mh (NATDEPFILES): Likewise.
6248 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6249 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6250 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6251 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6252
62532002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6254
6255 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6256 (alphanbsd-nat.o): Remove dependency list.
6257 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6258 * alphanbsd-nat.c: Delete. Contents moved to...
6259 * alphanbsd-tdep.c: ...here.
6260 (_initialize_alphanbsd_tdep): Register core functions.
6261 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6262
62632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6264
6265 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6266 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6267 (alphanbsd-nat.o): Likewise.
6268 (alphabsd-tdep.o): New dependency list.
6269 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6270 (fill_gregset): Use alphabsd_fill_reg.
6271 (supply_fpregset): Use alphabsd_supply_fpreg.
6272 (fill_fpregset): Use alphabsd_fill_fpreg.
6273 (fetch_inferior_registers): Use struct reg and struct fpreg
6274 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6275 and alphabsd_supply_fpreg.
6276 (store_inferior_registers): Use struct reg and struct fpreg
6277 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6278 and alphabsd_fill_fpreg.
6279 * alphabsd-tdep.c: New file.
6280 * alphabsd-tdep.h: New file.
6281 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6282 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6283 alphabsd_supply_fpreg.
6284 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6285 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6286
62872002-05-11 Eric Christopher <echristo@redhat.com>
6288
6289 * mips-tdep.c (mips_double_register_type): Fix thinko.
6290 (mips_single_register_type): Ditto.
6291 * MAINTAINERS: Add self.
6292
62932002-05-11 Mark Kettenis <kettenis@gnu.org>
6294
6295 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6296 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6297 right thing on architectures with different endianness and/or
6298 integer sizes.
6299
63002002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6301
6302 From Christian Limpach <chris@Pin.LU>
6303 * configure.in: Change sed expression which comments out
6304 NATDEPFILES to also comment out continuation lines.
6305 * configure: Regenerate.
6306
63072002-05-10 Elena Zannoni <ezannoni@redhat.com>
6308
6309 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6310 big patch.
6311
63122002-05-10 Elena Zannoni <ezannoni@redhat.com>
6313
6314 * sh-tdep.c: Include correct file.
6315
63162002-05-10 Elena Zannoni <ezannoni@redhat.com>
6317
6318 New support for sh64-elf (sh5) target.
6319
6320 * configure.tgt: For sh64-elf target, default to sh-elf.
6321
6322 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6323 (struct gdbarch_tdep): Add new fields for new registers and ABI
6324 info.
6325
6326 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6327 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6328 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6329 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6330 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6331 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6332 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6333 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6334 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6335 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6336 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6337 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6338 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6339 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6340 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6341 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6342 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6343 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6344 sign_extend, sh64_nofp_frame_init_saved_regs,
6345 sh64_init_extra_frame_info, sh64_get_saved_register,
6346 sh64_extract_struct_value_address, sh64_pop_frame,
6347 sh64_push_arguments, sh64_extract_return_value,
6348 sh64_store_return_value, sh64_show_media_regs,
6349 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6350 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6351 sh_sh64_register_virtual_type,
6352 sh_sh64_register_convert_to_virtual,
6353 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6354 sh64_register_read, sh64_pseudo_register_write,
6355 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6356 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6357 sh64_do_pseudo_register, sh_compact_do_registers_info,
6358 sh64_do_registers_info, sh_gdbarch_init): New functions.
6359
63602002-05-10 Elena Zannoni <ezannoni@redhat.com>
6361
6362 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6363
63642002-05-10 Daniel Jacobowitz <drow@mvista.com>
6365
6366 * linespec.c (decode_line_1): Check for a double quote after
6367 a filename correctly.
6368
63692002-05-10 Jim Blandy <jimb@redhat.com>
6370
6371 Properly track the size of the current objfile's .debug_line section.
6372 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6373 (DWARF_LINE_SIZE): New macro.
6374 (dwarf2_build_psymtabs_hard): Record the line section's size in
6375 the partial symbol table.
6376 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6377 symbol table.
6378
63792002-05-10 Petr Sorfa <petrs@caldera.com>
6380
6381 * ia64-tdep.c: Handle breakpoints on L instruction type
6382 in MLX instruction bundle by moving the breakpoint to
6383 the third slot (X instruction type) as L holds only data.
6384
63852002-05-10 Kevin Buettner <kevinb@redhat.com>
6386
6387 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6388 (process_one_symbol): Complain about discarding local symbols
6389 due to a misplaced N_LBRAC entry.
6390
63912002-05-09 Elena Zannoni <ezannoni@redhat.com>
6392
6393 From Daniel Berlin <dan@cgsoftware.com>
6394 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6395 decrease the depth we are at, in the case of templates.
6396
63972002-05-09 Daniel Jacobowitz <drow@mvista.com>
6398
6399 * mips-tdep.c (mips_float_register_type): New function.
6400 (mips_double_register_type): New function.
6401 (mips_print_register): Use them.
6402 (do_fp_register_row): Likewise.
6403
64042002-05-09 Daniel Jacobowitz <drow@mvista.com>
6405
6406 * signals/signals.c (signals): Remove conditional compilation around
6407 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6408 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6409
64102002-05-09 Michael Snyder <msnyder@redhat.com>
6411
6412 * remote-rdp.c (remote_rdp_can_run): Remove.
6413
64142002-05-09 Tom Tromey <tromey@redhat.com>
6415
6416 * jv-valprint.c (java_val_print): Handle `char' as a special case
6417 of TYPE_CODE_INT.
6418
64192002-05-09 Michael Snyder <msnyder@redhat.com>
6420
6421 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6422 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6423 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6424 str r(0123),[sp,#nn].
6425 (arm_skip_prologue): Ditto. Also make disassembly
6426 order-independent by placing it in a loop.
6427
64282002-05-06 Michael Snyder <msnyder@redhat.com>
6429
6430 * stabsread.c (read_type): Add recognition for new attribute:
6431 "@V;" means that an array type is actually a vector.
6432 This is analogous to the vector flag that's been added to dwarf2.
6433
64342002-05-09 Mark Kettenis <kettenis@gnu.org>
6435
6436 * i386-tdep.h (i386_abi): New enum.
6437 (struct gdbarch_tdep): Replace os_ident member with abi.
6438 (i386_gdbarch_register_os_abi): New prototype.
6439 * i386-tdep.c (i386_abi_names): New array.
6440 (process_note_abi_tag_sections): Removed.
6441 (process_note_sections): New function.
6442 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6443 (struct i386_abi_handler): New struct.
6444 (i386_abi_handler_list): New variable.
6445 (i386_gdbarch_register_os_abi): New function.
6446 (i386_gdbarch_init): Adapt for the changes given above.
6447
64482002-05-08 Daniel Jacobowitz <drow@mvista.com>
6449
6450 * gregset.h: Say "GNU/Linux".
6451
64522002-05-08 Elena Zannoni <ezannoni@redhat.com>
6453
6454 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6455 (build_gdbtypes): Build builtin_type_v2_float.
6456 (_initialize_gdbtypes): Register new builtin type.
6457
64582002-05-08 Andrew Cagney <ac131313@redhat.com>
6459
6460 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6461 (clear_gdbarch_swap): New function.
6462 (initialize_non_multiarch): Call.
6463 (gdbarch_update_p): Before calling init(), swap out and clear the
6464 existing architecture.
6465 * gdbarch.c: Regenerate.
6466
64672002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6468
6469 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6470 alphanbsd-tdep.c.
6471
64722002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6473
6474 * sh-nbsd-nat.c: Rename to...
6475 * shnbsd-nat.c: ...this.
6476 * sh-nbsd-tdep.c: Rename to...
6477 * shnbsd-tdep.c: ...this.
6478 * sh-nbsd-tdep.h: Rename to...
6479 * shnbsd-tdep.h: ...this.
6480 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6481 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6482
64832002-05-08 Richard Earnshaw <rearnsha@arm.com>
6484
6485 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6486 concatenation for command help messages.
6487
64882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * NEWS: Note new sh*-*-netbsdelf* configuration.
6491 * configure.host: Set gdb_host_cpu to sh for all sh*.
6492 (sh*-*-netbsdelf*): New host.
6493 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6494 (sh*-*-netbsdelf*): New target.
6495 * sh-nbsd-nat.c: New file.
6496 * sh-nbsd-tdep.c: New file.
6497 * sh-nbsd-tdep.h: New file.
6498 * config/sh/nbsd.mh: New file.
6499 * config/sh/nbsd.mt: New file.
6500 * config/sh/nm-nbsd.h: New file.
6501 * config/sh/tm-nbsd.h: New file.
6502
65032002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6504
6505 * sh-tdep.c (sh_osabi_names): Declare.
6506 (process_note_abi_tag_sections): New function.
6507 (get_elfosabi): Ditto.
6508 (sh_gdbarch_register_os_abi): Ditto.
6509 (sh_dump_tdep): Ditto.
6510 _initialize_sh_tdep): Use gdbarch_register to register
6511 sh_gdbarch_init and sh_dump_tdep.
6512 * config/sh/tm-sh.h (sh_osabi): Declare.
6513 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6514
65152002-05-07 Andrew Cagney <ac131313@redhat.com>
6516
6517 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6518 (thumb_scan_prologue): Ditto.
6519 (arm_find_callers_reg): Ditto.
6520 (arm_frame_chain): Ditto.
6521 (arm_init_extra_frame_info): Ditto.
6522 (arm_frame_saved_pc): Ditto.
6523 (arm_pop_frame): Ditto.
6524 (arm_push_return_address): New function.
6525 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6526 call_dummy_location, call_dummy_breakpoint_offset_p,
6527 call_dummy_breakpoint_offset, call_dummy_p,
6528 call_dummy_stack_adjust_p, call_dummy_words,
6529 sizeof_call_dummy_words, call_dummy_start_offset,
6530 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6531 call_dummy_address, push_return_address and push_dummy_frame for
6532 generic dummy frames.
6533
65342002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6535
6536 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6537 size computation for alloca.
6538 (sh_fp_frame_init_saved_regs): Likewise.
6539
65402002-05-07 Richard Earnshaw <rearnsha@arm.com>
6541
6542 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6543 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6544 * arm-tdep.c (arm_store_return_value): Use them.
6545 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6546 * remote-rdp.c (remote_rdp_fetch_register): Use
6547 ARM_MAX_REGISTER_RAW_SIZE.
6548 (remote_rdp_store_register): Likewise.
6549
65502002-05-07 Michal Ludvig <mludvig@suse.cz>
6551
6552 * dwarf2cfi.c: Code cleanup, removed unused variables,
6553 added default labels to switch {} statements.
6554 * x86-64-tdep.c: Ditto.
6555 * x86-64-linux-nat.c: Ditto.
6556
65572002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6558
6559 * solib.h: Protect against multiple inclusion.
6560
65612002-05-06 Jim Blandy <jimb@redhat.com>
6562
6563 Add first preprocessor macro-expansion files.
6564 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6565 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6566 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6567 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6568 (COMMON_OBS): Add macrotab.o, macroexp.o.
6569 (macroexp.o, macrotab.o): New rules.
6570
6571 Separate the job of reading the line number info statement program
6572 header (...expialidocious) out into its own function.
6573 * dwarf2read.c (struct line_head, struct filenames, struct
6574 directories): Replace with...
6575 (struct line_header): New structure, containing the full
6576 contents of the statement program header, including the
6577 include directory and file name tables.
6578 (read_file_scope): If we have line number info, instead of just
6579 calling dwarf_decode_lines to do all the work, call
6580 dwarf_decode_line_header first to get a `struct line_header'
6581 containing the data in the statement program header, and then
6582 pass that to dwarf_decode_lines, which will pick up where that
6583 left off. Be sure to clean up the `struct line_header' object.
6584 (dwarf_decode_line_header, free_line_header, add_include_dir,
6585 add_file_name): New functions.
6586 (dwarf_decode_lines): Move all the code to read the statement
6587 program header into dwarf_decode_line_header. Take the line
6588 header it built as the first argument, instead of the offset to
6589 the compilation unit's line number info. Use the new `struct
6590 line_header' type instead of the old structures. No need to do
6591 cleanups here now, since we don't allocate anything.
6592 (dwarf2_statement_list_fits_in_line_number_section,
6593 dwarf2_line_header_too_long): New complaints.
6594
65952002-05-06 Elena Zannoni <ezannoni@redhat.com>
6596
6597 * gdbtypes.c (init_vector_type): New function.
6598 (build_builtin_type_vec128): Simplify the representation of SIMD
6599 registers.
6600 (build_gdbtypes): Initialize new builtin vector types.
6601 (_initialize_gdbtypes): Register new vector types with gdbarch.
6602 (builtin_type_v4_float, builtin_type_v4_int32,
6603 builtin_type_v8_int16, builtin_type_v16_int8,
6604 builtin_type_v2_int32, builtin_type_v4_int16,
6605 builtin_type_v8_int8): New (renamed) SIMD types.
6606
66072002-05-06 Mark Kettenis <kettenis@gnu.org>
6608
6609 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6610 (i387_fill_fxsave): Likewise.
6611
66122002-05-05 Alexandre Oliva <aoliva@redhat.com>
6613
6614 * alpha-tdep.c (alpha_extract_return_value): Don't use
6615 non-constant array size in prototype.
6616
66172002-05-04 Andrew Cagney <ac131313@redhat.com>
6618
6619 From Brian Taylor <briant at model dot com>:
6620 * ui-out.c (ui_out_field_core_addr): Use the function
6621 longest_local_hex_string_custom'to format addresses > 32 bits
6622 wide.
6623
6624 * ui-out.c (ui_out_field_core_addr): Update comment.
6625
66262002-05-04 Andrew Cagney <ac131313@redhat.com>
6627
6628 * stack.c (select_and_print_frame): Make static. Delete the
6629 parameter `level'.
6630 (func_command): Update call.
6631 (select_frame_command): Delete code computing the frame level.
6632 * frame.h (select_and_print_frame): Delete declaration.
6633
66342002-05-04 Andrew Cagney <ac131313@redhat.com>
6635
6636 * sparc-tdep.c (sparc_get_saved_register): Comment why
6637 get_prev_frame call is safe.
6638
66392002-05-04 Andrew Cagney <ac131313@redhat.com>
6640
6641 * frame.h (select_frame): Delete level parameter.
6642 * stack.c (select_frame): Update. Use frame_relative_level to
6643 obtain the frame's level.
6644 (select_and_print_frame): Update call.
6645 (select_frame_command): Ditto.
6646 (up_silently_base): Ditto.
6647 (down_silently_base): Ditto.
6648 * ocd.c (ocd_start_remote): Ditto.
6649 * remote-rdp.c (remote_rdp_open): Ditto.
6650 * remote-mips.c (mips_initialize): Ditto.
6651 (common_open): Ditto.
6652 * remote-e7000.c (e7000_start_remote): Ditto.
6653 * m3-nat.c (select_thread): Ditto.
6654 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6655 (child_get_current_exception_event): Ditto.
6656 * varobj.c (varobj_create): Ditto.
6657 (varobj_update): Ditto.
6658 (c_value_of_root): Ditto.
6659 * tracepoint.c (finish_tfind_command): Ditto.
6660 * corelow.c (core_open): Ditto.
6661 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6662 * thread.c (info_threads_command): Ditto.
6663 (switch_to_thread): Ditto.
6664 * infrun.c (normal_stop): Ditto.
6665 (restore_selected_frame): Ditto.
6666 (restore_inferior_status): Ditto.
6667 * breakpoint.c (insert_breakpoints): Ditto.
6668 (watchpoint_check): Ditto.
6669 (bpstat_stop_status): Ditto.
6670 (do_enable_breakpoint): Ditto.
6671 * blockframe.c (flush_cached_frames): Ditto.
6672 (reinit_frame_cache): Ditto.
6673
66742002-05-04 Andrew Cagney <ac131313@redhat.com>
6675
6676 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6677 maintainer.
6678
66792002-05-04 Jim Blandy <jimb@redhat.com>
6680
6681 * gdbtypes.c (replace_type): Doc fix.
6682
66832002-05-04 Andrew Cagney <ac131313@redhat.com>
6684
6685 * valprint.c (strcat_longest): Delete commented out function.
6686 Update copyright.
6687
66882002-05-04 Andrew Cagney <ac131313@redhat.com>
6689
6690 * MAINTAINERS: Mark a29k as deleted.
6691 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6692 Move new configurations to the top.
6693 * configure.tgt: Remove a29k.
6694 * config/a29k/tm-vx29k.h: Delete.
6695 * config/a29k/vx29k.mt: Delete.
6696 * config/a29k/tm-a29k.h: Delete.
6697 * config/a29k/a29k-udi.mt: Delete.
6698 * config/a29k/a29k.mt: Delete.
6699 * a29k-tdep.c: Delete.
6700 * remote-udi.c: Delete.
6701 * remote-mm.c: Delete.
6702 * remote-eb.c: Delete.
6703 * remote-adapt.c: Delete.
6704 * Makefile.in: Remove obsolete code.
6705 * config/s390/s390x.mt: Ditto.
6706 * config/s390/s390.mt: Ditto.
6707 * config/sparc/sparclynx.mh: Ditto.
6708 * config/sparc/linux.mh: Ditto.
6709 * config/pa/hppaosf.mh: Ditto.
6710 * config/pa/hppabsd.mh: Ditto.
6711 * config/ns32k/nbsd.mt: Ditto.
6712 * config/mips/vr5000.mt: Ditto.
6713 * config/m68k/sun3os4.mh: Ditto.
6714 * config/m68k/nbsd.mt: Ditto.
6715 * config/m68k/m68klynx.mh: Ditto.
6716 * config/m32r/m32r.mt: Ditto.
6717 * config/i386/x86-64linux.mt: Ditto.
6718 * config/i386/nbsdelf.mt: Ditto.
6719 * config/i386/nbsd.mt: Ditto.
6720 * config/i386/i386lynx.mh: Ditto.
6721
67222002-05-04 Andrew Cagney <ac131313@redhat.com>
6723
6724 * target.c (debug_print_register): New function. Handle oversize
6725 registers.
6726 (debug_to_fetch_registers): Call.
6727 (debug_to_store_registers): Call.
6728
67292002-05-03 Jim Blandy <jimb@redhat.com>
6730
6731 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6732 (read_type): Doc fix.
6733 * gdbtypes.c (replace_type): Doc fix.
6734
6735 * stabsread.c (multiply_defined_struct): New complaint.
6736 (read_struct_type): If the type we were passed isn't empty, or
6737 incomplete, don't read the new struct type into it; complain,
6738 and return the original type unchanged. Take a new `type_code'
6739 argument, which is the type code for the new type.
6740 (read_type): Rather than storing the type's type code here, pass
6741 it as an argument to read_struct_type, and let that take care of
6742 storing it. That way, we don't overwrite the original type code,
6743 so read_struct_type can use it to decide whether we're overwriting
6744 something we shouldn't.
6745 (complain_about_struct_wipeout): New function.
6746
67472002-05-03 Andrew Cagney <ac131313@redhat.com>
6748
6749 * gdbarch.sh: Assert that gdbarch is non-NULL.
6750 * gdbarch.c: Regenerate.
6751
67522002-05-03 Jason Merrill <jason@redhat.com>
6753
6754 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6755 and return NULL.
6756
67572002-05-03 Michal Ludvig <mludvig@suse.cz>
6758
6759 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6760 (x86_64_dwarf2gdb_regno_map_length),
6761 (x86_64_dwarf2_reg_to_regnum): Added.
6762 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6763 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6764 (_initialize_x86_64_tdep): Synced with the change above.
6765 (x86_64_skip_prologue): Reformulated message.
6766
67672002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6768
6769 * f-exp.y: Also use new prev_lexptr variable
6770 to improve error reporting. Based on Michael Snyder
6771 2002-04-24 dated patch to c-exp.y.
6772 * jv-exp.y: Likewise.
6773 * m2-exp.y: Likewise.
6774
67752002-05-02 Elena Zannoni <ezannoni@redhat.com>
6776
6777 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6778 we are dealing with vectors.
6779
67802002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6781
6782 * config/m68k/tm-nbsd.h: Obvious fix,
6783 correct machine name.
6784
67852002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6786
6787 * p-typeprint.c (pascal_type_print_base): Add support
6788 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6789
67902002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6791
6792 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6793 for fondamental pascal 'char' type.
6794
67952002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6796
6797 * p-lang.h (is_pascal_string_type): Declaration changed,
6798 new sixth argument of type char ** added.
6799 * p-lang.c (is_pascal_string_type): Implementation
6800 changed. Args length_pos, length_size, string_pos, char_size
6801 can now be NULL. New argument arrayname set to the field
6802 name of the char array. Return value set to char array
6803 field index plus one.
6804 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6805 is_pascal_string_type function.
6806
68072002-05-02 Andrew Cagney <cagney@redhat.com>
6808
6809 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6810 <cagney@redhat.com> change.
6811 * gdbarch.c: Regenerate.
6812
68132002-05-02 Andrew Cagney <cagney@redhat.com>
6814
6815 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6816 before probing for a new one. Detect errorenous gdbarch_init
6817 functions.
6818 * gdbarch.c: Regenerate.
6819
68202002-05-01 Andrew Cagney <cagney@redhat.com>
6821
6822 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6823 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6824 * config/v850/tm-v850.h: Ditto. Update copyright.
6825
68262002-04-30 Andrew Cagney <ac131313@redhat.com>
6827
6828 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6829 current_gdbarch.
6830
68312002-04-30 Michael Snyder <msnyder@redhat.com>
6832
6833 * arm-tdep.c: Whitespace clean-ups.
6834 (arm_skip_prologue): Fix thinko; two lines
6835 should have been removed as part of 4/24 change.
6836
68372002-04-30 Kevin Buettner <kevinb@redhat.com>
6838
6839 * rs6000-tdep.c: Added comment describing how fpscr register
6840 numbers were chosen.
6841
68422002-04-30 Michael Snyder <msnyder@redhat.com>
6843
6844 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6845
68462002-04-29 Elena Zannoni <ezannoni@redhat.com>
6847
6848 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6849 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6850 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6851
68522002-04-29 Kevin Buettner <kevinb@redhat.com>
6853
6854 From Louis Hamilton <hamilton@redhat.com>:
6855 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6856 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6857 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6858 not bfd-private xcoff data, to determine wordsize.
6859 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6860
68612002-04-29 Andrew Cagney <ac131313@redhat.com>
6862
6863 GDB 5.2 released from 5.2 branch.
6864
68652002-04-29 Michal Ludvig <mludvig@suse.cz>
6866
6867 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6868 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6869 (x86_64_register_info_table): Added comments with register numbers.
6870
68712002-04-29 Elena Zannoni <ezannoni@redhat.com>
6872
6873 * rs6000-tdep.c (rs6000_extract_return_value,
6874 rs6000_store_return_value): Handle returning vectors.
6875 (rs6000_gdbarch_init): Use
6876 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6877 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6878 New function.
6879 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6880 vectors.
6881 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6882 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6883
68842002-04-24 Pierre Muller <ics.u-strasbg.fr>
6885
6886 * hpread.c (hpread_psymtab_to_symtab_1,
6887 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6888 with fprintf_unfiltered (gdb_stderr,...).
6889
68902002-04-24 Pierre Muller <ics.u-strasbg.fr>
6891
6892 * remote-array.c (printf_monitor, write_monitor,
6893 array_insert_breakpoint, array_remove_breakpoint ):
6894 Replace fprintf (stderr,...
6895 with fprintf_unfiltered (gdb_stderr,....
6896 * remote-es.c: Likewise.
6897 * remote-os9k.c: Likewise.
6898 * remote-st.c: Likewise.
6899
69002002-04-28 Andreas Schwab <schwab@suse.de>
6901
6902 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6903 linux-proc.o and gcore.o.
6904
69052002-04-26 Michal Ludvig <mludvig@suse.cz>
6906
6907 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6908 code without frame pointers.
6909
69102002-04-26 Andrew Cagney <ac131313@redhat.com>
6911
6912 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6913 ON_STACK is needed.
6914
69152002-04-26 Ben Elliston <bje@redhat.com>
6916
6917 * target.c (do_xfer_memory): Correct reference to the new option
6918 "trust-readonly-sections".
6919
69202002-04-26 Elena Zannoni <ezannoni@redhat.com>
6921
6922 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6923 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6924 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6925 vectors.
6926 (read_array_type): Record the fact that this array type is really a
6927 vector (i.e. are passed in by value).
6928
69292002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6930
6931 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6932 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6933 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6934 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6935 * alpha-linux-tdep.c: Include frame.h.
6936 (alpha_linux_sigcontext_addr): New function.
6937 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6938 alpha_linux_sigcontext_addr.
6939 * alpha-osf1-tdep.c: Include gdbcore.h.
6940 (alpha_osf1_sigcontext_addr): New function.
6941 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6942 alpha_osf1_sigcontext_addr.
6943 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6944 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6945
69462002-04-26 Andrew Cagney <ac131313@redhat.com>
6947
6948 * stack.c (selected_frame_level):
6949 (select_frame): Do not set selected_frame_level.
6950 * frame.h (selected_frame_level): Delete declaration.
6951
69522002-04-26 Andrew Cagney <ac131313@redhat.com>
6953
6954 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6955 convert_from_func_ptr-addr when AIX / PowerOpen.
6956
69572002-04-25 Andrew Cagney <ac131313@redhat.com>
6958
6959 * valops.c (hand_function_call): Call
6960 generic_save_call_dummy_addr.
6961 * frame.h (generic_save_call_dummy_addr): Declare.
6962 * blockframe.c (struct dummy_frame): Add fields call_lo and
6963 call_hi.
6964 (generic_find_dummy_frame): Check for PC in range call_lo to
6965 call_hi instead of entry_point_address.
6966 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6967 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6968 (generic_save_call_dummy_addr): New function.
6969
69702002-04-24 David S. Miller <davem@redhat.com>
6971
6972 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6973 sparc_skip_prologue.
6974 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6975 information to find prologue when possible.
6976 (sparc_prologue_frameless_p): Call examine_prologue directly.
6977 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6978 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6979 second argument.
6980 (SKIP_PROLOGUE): Likewise.
6981
69822002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6983
6984 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6985 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6986 indicate that the condition it was testing is always true.
6987 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6988 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6989 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6990
69912002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6992
6993 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6994 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6995 tdep->jb_pc and tdep->jb_elt_size.
6996 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6997 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6998 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6999 * alpha-nat.c (get_longjmp_target): Remove.
7000 (JB_ELEMENT_SIZE): Ditto.
7001 (JB_PC): Ditto.
7002 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7003 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7004 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7005 to alpha_get_longjmp_target.
7006 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7007 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7008 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7009
70102002-04-25 Andrew Cagney <ac131313@redhat.com>
7011
7012 * README: Update to GDB 5.2.
7013
70142002-04-25 Andrew Cagney <ac131313@redhat.com>
7015
7016 * gdbarch.sh (LC_ALL): Set to `c'.
7017
70182002-04-25 Theodore A. Roth <troth@verinet.com>
7019
7020 * avr-tdep.c: Ran through gdb_indent.sh.
7021
70222002-04-25 Theodore A. Roth <troth@verinet.com>
7023
7024 * MAINTAINERS: Add myself as AVR maintainer.
7025 * NEWS: Note new target avr.
7026
70272002-04-25 Theodore A. Roth <troth@verinet.com>
7028
7029 * Makefile.in: Add support for AVR target.
7030 * configure.tgt: Add support for AVR target.
7031 * avr-tdep.c: New file
7032 * config/avr/avr.mt: New file.
7033
70342002-04-25 Theodore A. Roth <troth@verinet.com>
7035
7036 * MAINTAINERS: Add myself to write-after-approval.
7037
70382002-04-24 Pierre Muller <ics.u-strasbg.fr>
7039
7040 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7041 with fprintf_unfiltered (gdb_stderr,....
7042
70432002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7044
7045 Fix PR gdb/508.
7046 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7047
70482002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7049
7050 * p-exp.y: Also use new prev_lexptr variable
7051 to improve error reporting. Based on Michael Snyder
7052 2002-04-24 dated patch to c-exp.y.
7053
70542002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7055
7056 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7057 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7058 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7059 to 0.
7060 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7061 and struct value.
7062 (FUNCTION_START_OFFSET): Remove.
7063 (BREAKPOINT): Ditto.
7064
70652002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7066
7067 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7068 * NEWS: Ditto.
7069
70702002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7071
7072 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7073 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7074 alpha_linux_pc_in_sigtramp.
7075 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7076 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7077 alpha_osf1_pc_in_sigtramp.
7078 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7079 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7080 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7081 alphafbsd_pc_in_sigtramp.
7082 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7083 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7084 alphanbsd_pc_in_sigtramp.
7085 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7086 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7087
70882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7089
7090 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7091
70922002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7093
7094 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7095 alphanbsd-tdep.c.
7096 (alphanbsd-nat.o): New dependency list.
7097 (alphanbsd-tdep.o): Ditto.
7098 * NEWS: Note new native NetBSD/alpha configuration.
7099 * alphanbsd-nat.c: New file.
7100 * alphanbsd-tdep.c: Ditto.
7101 * configure.host (alpha*-*-netbsd*): New host.
7102 * configure.tgt (alpha*-*-netbsd*): New target.
7103 * config/alpha/nbsd.mh: New file.
7104 * config/alpha/nbsd.mt: Ditto.
7105 * config/alpha/nm-nbsd.h: Ditto.
7106 * config/alpha/tm-nbsd.h: Ditto.
7107
71082002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7109
7110 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7111 (alpha-osf1-tdep.o): New dependency list.
7112 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7113 and skip_sigtramp_frame members.
7114 * alpha-linux-tdep.c: Include gdbcore.h.
7115 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7116 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7117 * alpha-osf1-tdep.c: New file.
7118 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7119 alpha-osf1-dep.c.
7120 (alpha_frame_past_sigtramp_frame): New function.
7121 (alpha_dynamic_sigtramp_offset): Ditto.
7122 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7123 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7124 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7125 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7126 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7127 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7128 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7129 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7130 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7131 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7132 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7133 to find_solib_trampoline_target.
7134 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7135 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7136 (SKIP_TRAMPOLINE_CODE): Remove.
7137 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7138 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7139 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7140 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7141 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7142 (PROC_SIGTRAMP_MAGIC): Ditto.
7143 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7144 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7145 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7146 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7147 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7148
71492002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7150
7151 * NEWS: Note that Alpha targets are now multi-arch.
7152
71532002-04-24 Michael Snyder <msnyder@redhat.com>
7154
7155 * parser-defs.h (prev_lexptr): New external variable.
7156 * parse.c (parse_exp_1): Set prev_lexptr to null before
7157 calling the language-specific parser.
7158 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7159 (yyerror): Use prev_lexptr in error reporting.
7160
71612002-04-24 Daniel Jacobowitz <drow@mvista.com>
7162
7163 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7164 * gregset.h: If FILL_FPXREGSET is defined, provide
7165 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7166 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7167 is defined, call fill_fpxregset.
7168
71692002-04-24 Roland McGrath <roland@frob.com>
7170
7171 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7172 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7173 (supply_gregset, supply_fpregset): New functions.
7174
7175 * gnu-nat.c (gnu_find_memory_regions): New function.
7176 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7177 (gnu_xfer_memory): Add a cast.
7178
71792002-04-24 Michael Snyder <msnyder@redhat.com>
7180
7181 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7182 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7183 of argument regs ("str r(0123), [r11, #-nn"]).
7184 (arm_skip_prologue): Better handling for frameless functions.
7185 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7186 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7187
7188Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7189
7190 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7191 NUM_PSEUDO_REGS can be used.
7192
71932002-04-24 Andrew Cagney <ac131313@redhat.com>
7194
7195 * arch-utils.h: Update copyright.
7196
7197 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7198 * gdbarch.h, gdbarch.c: Re-generate.
7199
7200 * inferior.h (IN_SIGTRAMP): Delete definition.
7201 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7202 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7203
7204 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7205 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7206 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7207 (find_proc_framesize): Ditto.
7208 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7209 (alpha_init_extra_frame_info): Ditto.
7210 * infrun.c (handle_inferior_event): Ditto.
7211 (handle_inferior_event): Ditto.
7212 (check_sigtramp2): Ditto.
7213 * blockframe.c (create_new_frame): Ditto.
7214 (get_prev_frame): Ditto.
7215 * ppc-linux-tdep.c: Update comments.
7216 * i386-linux-tdep.c: Update comments.
7217 * breakpoint.c (bpstat_what): Update comment.
7218
72192002-04-24 David S. Miller <davem@redhat.com>
7220
7221 * i960-tdep.c (register_in_window_p): New function.
7222 (i960_find_saved_register): Use it instead of
7223 REGISTER_IN_WINDOW_P.
7224 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7225
7226 * symtab.h (find_stab_function_addr): Kill extern.
7227 * minsyms.c (find_stab_function_addr): Remove from here...
7228 * dbxread.c: ... to here, and mark it static.
7229
72302002-04-20 David S. Miller <davem@redhat.com>
7231
7232 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7233 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7234
72352002-04-21 David S. Miller <davem@redhat.com>
7236
7237 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7238 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7239 (vx_write_register): Likewise.
7240
72412002-04-23 J. Brobecker <brobecker@gnat.com>
7242
7243 * source.c (is_regular_file): New function.
7244 (openp): Check wether file to open is a regular file
7245 to avoid opening directories.
7246
72472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7248
7249 * findvar.c (extract_signed_integer): Cast printf argument
7250 to suppress format warning.
7251 (extract_unsigned_integer): Likewise.
7252 * infcmd.c (registers_info): Likewise.
7253 * top.c (get_prompt_1): Likewise.
7254 * valops.c (value_assign): Likewise.
7255 * valprint.c (print_decimal): Likewise.
7256
72572002-04-22 H.J. Lu (hjl@gnu.org)
7258
7259 * c-exp.y (typebase): Support
7260
7261 [long|long long|short] [signed|unsigned] [int|]
7262
7263 and
7264
7265 signed [long|long long|short] int
7266
72672002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7268
7269 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7270 and vax-tdep.h.
7271 * vax-tdep.h: New file.
7272 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7273 Make several routines static.
7274 (vax_get_saved_register): New function.
7275 (vax_gdbarch_init): New function.
7276 (_initialize_vax_tdep): Register vax_gdbarch_init.
7277 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7278 Remove macros now under the control of gdbarch.
7279
72802002-04-22 Michael Snyder <msnyder@redhat.com>
7281
7282 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7283 Some whitespace and coding standards tweaks.
7284
72852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7286
7287 * vax-tdep.c: Include regcache.h.
7288 (vax_call_dummy_words): New.
7289 (sizeof_vax_call_dummy_words): New.
7290 (vax_fix_call_dummy): New function.
7291 (vax_saved_pc_after_call): Ditto.
7292 * config/vax/tm-vax.h: Don't include regcache.h.
7293 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7294 (CALL_DUMMY): Remove.
7295 (CALL_DUMMY_WORDS): Define.
7296 (SIZEOF_CALL_DUMMY_WORDS): Define.
7297 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7298
72992002-04-18 Michael Snyder <msnyder@redhat.com>
7300
7301 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7302
73032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7304
7305 * vax-tdep.c (vax_frame_chain): New function.
7306 (vax_push_dummy_frame): Ditto.
7307 (vax_pop_frame): Ditto.
7308 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7309 (FRAMELESS_FUNCTION_INVOCATION): Use
7310 generic_frameless_function_invocation_not.
7311 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7312 (POP_FRAME): Use vax_pop_frame.
7313
73142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * vax-tdep.c (vax_store_struct_return): New function.
7317 (vax_extract_return_value): Ditto.
7318 (vax_store_return_value): Ditto.
7319 (vax_extract_struct_value_address): Ditto.
7320 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7321 vax_store_struct_return.
7322 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7323 (STORE_RETURN_VALUE): Use vax_store_return_value.
7324 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7325
73262002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7327
7328 * vax-tdep.c (vax_frame_saved_pc): New function.
7329 (vax_frame_args_address_correct): Ditto.
7330 (vax_frame_args_address): Ditto.
7331 (vax_frame_locals_address): Ditto.
7332 (vax_frame_num_args): Move code to be in proximity to
7333 other frame-related functions.
7334 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7335 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7336 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7337 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7338 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7339
73402002-04-22 H.J. Lu (hjl@gnu.org)
7341
7342 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7343 includedir.
7344
73452002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7346
7347 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7348 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7349 (FRAME_INIT_SAVED_REGS): New macro.
7350
73512002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7352
7353 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7354
73552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7356
7357 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7358 where needed.
7359 (fetch_osf_core_registers): Likewise.
7360 (supply_gregset): Likewise.
7361
73622002-04-22 J. Brobecker <brobecker@gnat.com>
7363
7364 * symfile.h (get_section_index): Define.
7365 * symfile.c (get_section_index): New function.
7366 * mdebugread.c (SC_IS_SBSS): New macro.
7367 (SC_IS_BSS): Return true for the scBss storage class only, as
7368 the scSBss storage class refers to the .sbss section.
7369 (parse_partial_symbols): Discard the symbols which associated
7370 section does not exist.
7371 Make sure to use the .sbss section index for symbols which
7372 storage class is scBss, rather than using the .bss section index.
7373
73742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7375
7376 * vax-tdep.c: Update copyright years.
7377 (vax_register_name): New function.
7378 (vax_register_byte): Ditto.
7379 (vax_register_raw_size): Ditto.
7380 (vax_register_virtual_size): Ditto.
7381 (vax_register_virtual_type): Ditto.
7382 * config/vax/tm-vax.h: Update copyright years.
7383 (REGISTER_NAMES): Remove.
7384 (REGISTER_NAME): Define.
7385 (REGISTER_BYTE): Use vax_register_byte.
7386 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7387 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7388 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7389
73902002-04-21 Andrew Cagney <ac131313@redhat.com>
7391
7392 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7393 declaration
7394 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7395
73962002-04-21 David S. Miller <davem@redhat.com>
7397
7398 * arch-utils.c (generic_prologue_frameless_p): Kill
7399 SKIP_PROLOGUE_FRAMELESS_P code.
7400 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7401 references.
7402 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7403 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7404 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7405 references.
7406 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7407 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7408 (sparc_gdbarch_init): Pass it to
7409 set_gdbarch_prologue_frameless_p.
7410
74112002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7412
7413 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7414 (alphabsd-nat.o): New dependency list.
7415
74162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7417
7418 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7419 alphafbsd-tdep.c.
7420 (alpha-linux-tdep.o): New dependency list.
7421 (alphafbsd-tdep.o): Likewise.
7422
74232002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7424
7425 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7426 to here...
7427 * alpha-tdep.c: ...from here.
7428 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7429
74302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7433 prototype from here...
7434 * alpha-tdep.h: ...to here.
7435
74362002-04-21 Andrew Cagney <ac131313@redhat.com>
7437
7438 * frame.h (selected_frame_level): Document as deprecated.
7439 (frame_relative_level): Declare.
7440 * stack.c (frame_relative_level): New function.
7441 (selected_frame_level): Document as deprecated.
7442 (select_frame): Do not set the selected_frame_level.
7443
7444 * stack.c (frame_info, record_selected_frame): Update.
7445 (frame_command, current_frame_command): Update.
7446 (up_silently_base, up_command, down_silently_base): Update.
7447 (down_command): Update.
7448 * inflow.c (kill_command): Update.
7449 * tracepoint.c (finish_tfind_command): Update.
7450 * corelow.c (core_open): Update.
7451 * thread.c (info_threads_command): Update.
7452 (do_captured_thread_select): Update.
7453 * infcmd.c (finish_command): Update.
7454 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7455
74562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7457
7458 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7459
74602002-04-21 Andrew Cagney <ac131313@redhat.com>
7461
7462 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7463 type const.
7464
74652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7466
7467 * alphafbsd-tdep.c: Update copyright years. Include
7468 alpha-tdep.h.
7469 (alphafbsd_use_struct_convention): Make static.
7470 (alphafbsd_init_abi): New function.
7471 (_initialize_alphafbsd_tdep): New function.
7472 * config/alpha/tm-fbsd.h: Update copyright years.
7473 (USE_STRUCT_CONVENTION): Remove.
7474
74752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7476
7477 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7478 an Alpha ABI variant.
7479 (alpha_abi_handler_list): Declare.
7480 (alpha_gdbarch_register_os_abi): New function.
7481 (alpha_gdbarch_init): Give registered ABI variant handlers a
7482 chance to tweak the gdbarch once we have set up defaults.
7483 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7484
74852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7486
7487 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7488 to standard_coerce_float_to_double.
7489 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7490
74912002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7492
7493 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7494 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7495 from gdbarch_tdep rather than a constant.
7496 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7497 the default text address for all Alpha Unix ABIs.
7498 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7499 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7500
75012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7502
7503 * alpha-tdep.h: New file. Includes several Alpha target constants
7504 taken from...
7505 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7506 let gdbarch deal with.
7507 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7508 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7509 to dependency list.
7510 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7511 Alpha target register names.
7512 * alphabsd-nat.c: Likewise.
7513 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7514 Alpha target register names. Make serveral routines static.
7515 (alpha_get_saved_register): New function.
7516 (alpha_abi_names): New.
7517 (process_note_abi_tag_sections): New function.
7518 (get_elfosabi): New function.
7519 (alpha_gdbarch_init): New function.
7520 (alpha_dump_tdep): New function.
7521 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7522
75232002-04-21 Andrew Cagney <ac131313@redhat.com>
7524
7525 * frame.c (find_saved_register): Delete #ifdef
7526 HAVE_REGISTER_WINDOWS code.
7527 * config/sparc/tm-sparc.h: Update comments.
7528 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7529
75302002-04-21 Andrew Cagney <ac131313@redhat.com>
7531
7532 * i960-tdep.c (i960_find_saved_register): New function.
7533 (i960_get_saved_register): New function.
7534 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7535 (i960_get_saved_register): Declare.
7536 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7537
75382002-04-20 David S. Miller <davem@redhat.com>
7539
7540 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7541
75422002-04-20 Andrew Cagney <ac131313@redhat.com>
7543
7544 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7545 instead of NUM_PSEUDO_REGS.
7546
75472002-04-20 David S. Miller <davem@redhat.com>
7548
7549 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7550 GDB_MULTI_ARCH_PARTIAL
7551 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7552 define, let tm-sp64.h do it.
7553
75542002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7555
7556 * frame.c (find_saved_register): Avoid a NULL pointer
7557 dereference and actually walk the frame list.
7558
75592002-04-20 Andrew Cagney <ac131313@redhat.com>
7560
7561 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7562 sorted in most most-recent-used order. Document.
7563 * gdbarch.h, gdbarch.c: Regenerate.
7564
75652002-04-19 Andrew Cagney <ac131313@redhat.com>
7566
7567 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7568 instead of ->prev.
7569 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7570 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7571 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7572 instead of ->prev.
7573
75742002-04-19 Elena Zannoni <ezannoni@redhat.com>
7575
7576 Fix PR gdb/471.
7577 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7578 (build_builtin_type_vec128): Ditto.
7579 (append_composite_type_field): Fix calculation of type length in
7580 union case.
7581
75822002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7583
7584 * config/djgpp/README: Update.
7585
7586 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7587 compiler warnings.
7588
75892002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7590
7591 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7592 (alpha_setup_arbitrary_frame): ...to this.
7593 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7594 for alpha_setup_arbitrary_frame.
7595
75962002-04-18 Andrew Cagney <cagney@redhat.com>
7597
7598 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7599 * gdbarch.h, gdbarch.c: Regenerate.
7600
7601 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7602 * target.h (memory_breakpoint_from_pc): Update declaration.
7603 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7604
7605 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7606 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7607 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7608 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7609 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7610 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7611 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7612 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7613 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7614 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7615 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7616 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7617
7618 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7619 const pointer.
7620 * monitor.c (monitor_insert_breakpoint): Ditto.
7621 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7622
7623 * config/mcore/tm-mcore.h: Update copyright.
7624 * mem-break.c: Ditto.
7625 * xstormy16-tdep.c: Ditto.
7626
76272002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7628
7629 * p-exp.y: Add precedence rule for '^' token.
7630 This removes the shift/reduce conflicts.
7631 Remove the comment concerning these shift/reduce conflicts.
7632
76332002-04-18 Elena Zannoni <ezannoni@redhat.com>
7634
7635 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7636 (registers_powerpc_nofp): New register set for processors
7637 without floating point unit.
7638
76392002-04-18 David S. Miller <davem@redhat.com>
7640
7641 * MAINTAINERS: Add myself to write-after-approval.
7642
76432002-04-17 Michael Snyder <msnyder@redhat.com>
7644
7645 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7646
76472002-04-17 Andrew Cagney <ac131313@redhat.com>
7648
7649 * rs6000-tdep.c (frame_initial_stack_address): Use
7650 frame_register_read to read the alloca_reg.
7651
76522002-04-17 Andrew Cagney <ac131313@redhat.com>
7653
7654 * frame.c (find_saved_register): Find saved registers in the next
7655 not prev frame.
7656 Fix PR gdb/365.
7657
76582002-04-17 Andrew Cagney <ac131313@redhat.com>
7659
7660 * gdbarch.sh (LANG): Set to ``c''.
7661
76622002-04-15 Andrew Cagney <ac131313@redhat.com>
7663
7664 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7665
76662002-04-15 Andrew Cagney <ac131313@redhat.com>
7667
7668 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7669 Update copyright.
7670
7671 * hpread.c (hpread_get_lntt): Add declaration.
7672 Also fix PR gdb/391.
7673
76742002-04-14 Andrew Cagney <ac131313@redhat.com>
7675
7676 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7677 * aclocal.m4, configure: Re-generate.
7678 Fix PR gdb/391.
7679
76802002-04-14 Elena Zannoni <ezannoni@redhat.com>
7681
7682 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7683 instead of tm_print_insn.
7684
76852002-04-14 Elena Zannoni <ezannoni@redhat.com>
7686
7687 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7688
76892002-04-14 Andrew Cagney <ac131313@redhat.com>
7690
7691 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7692 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7693 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7694
76952002-04-12 Don Howard <dhoward@redhat.com>
7696
7697 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7698 max_user_call_depth.
7699 (init_cmd_lists): Initialize the new value;
7700 * cli/cli-script.c (execute_user_command): Limit the call depth of
7701 user defined commands. This avoids a core-dump when user commands
7702 are infinitly recursive.
7703
77042002-04-12 Kevin Buettner <kevinb@redhat.com>
7705
7706 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7707 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7708 from tdep struct instead of DEFAULT_LR_SAVE.
7709 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7710 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7711 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7712
77132002-04-12 Michael Snyder <msnyder@redhat.com>
7714
7715 * Remote.c: Spelling fix.
7716 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7717 If no symbol found for "sbrk", try "_sbrk".
7718 (make_output_phdrs): Use bfd_section_name.
7719 (gcore_copy_callback): Use bfd_section_name.
7720 * eval.c: Indentation fix-ups.
7721 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7722 in case it gets applied to an address that is already
7723 in the instruction space.
7724 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7725 * symfile.c: Fix indentation, long lines.
7726 * source.c: White space fix-up.
7727
77282002-04-12 Andrew Cagney <cagney@redhat.com>
7729
7730 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7731 * frame.c (frame_register_read): New function. Return non-zero on
7732 success.
7733 (read_relative_register_raw_bytes_for_frame): Delete.
7734 (read_relative_register_raw_bytes): Delete.
7735 * frame.h (frame_register_read): Declare.
7736 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7737 * sh-tdep.c: Ditto.
7738 * infcmd.c (do_registers_info): Ditto.
7739 * hppa-tdep.c: Ditto.
7740 * rs6000-tdep.c: Ditto.
7741 * h8500-tdep.c: Ditto.
7742 * mips-tdep.c: Ditto.
7743 * h8300-tdep.c: Ditto.
7744 * z8k-tdep.c: Ditto.
7745
77462002-04-12 Kevin Buettner <kevinb@redhat.com>
7747
7748 From Jimi X <jimix@watson.ibm.com>:
7749 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7750 64-bit SysV ABI.
7751
77522002-04-12 Kevin Buettner <kevinb@redhat.com>
7753
7754 From Jimi X <jimix@watson.ibm.com>:
7755 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7756 bfd info.
7757
77582002-04-12 Kevin Buettner <kevinb@redhat.com>
7759
7760 From Jimi X <jimix@watson.ibm.com>:
7761 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7762 register sets for these processor variants.
7763
77642002-04-11 Daniel Jacobowitz <drow@mvista.com>
7765
7766 * regformats/reg-ppc.dat: Support FPSCR.
7767
77682002-04-11 Kevin Buettner <kevinb@redhat.com>
7769
7770 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7771 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7772 Add fpscr as an invalid/unfetchable register.
7773 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7774 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7775 (fill_fpregset): Add support for register fpscr.
7776 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7777 (fill_gregset): Account for the fact that register ``mq'' might
7778 not exist.
7779 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7780 (registers_power): Add fpscr to register set at slot 71.
7781 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7782 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7783
77842002-04-11 Michael Snyder <msnyder@redhat.com>
7785
7786 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7787 * configure: Regenerate.
7788 * config.in: Regenerate.
7789 * acconfig.h: Add define for _SYSCALL32.
7790 * core-sol2.c: Remove #define _SYSCALL32.
7791 * solib-legacy.c: Remove #define _SYSCALL32.
7792
77932002-04-10 Andrew Cagney <ac131313@redhat.com>
7794
7795 * stack.c (select_frame): Cleanup internal error message, do not
7796 use %p.
7797
77982002-04-10 Andrew Cagney <ac131313@redhat.com>
7799
7800 * stack.c (select_frame): Check that selected_frame and the
7801 specified level are as expected.
7802 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7803 Update copyright.
7804 * frame.h (struct frame_info): Add field `level'. Update
7805 copyright.
7806 Work-in-progress PR gdb/464.
7807
78082002-04-10 Andrew Cagney <ac131313@redhat.com>
7809
7810 * maint.c (maint_print_section_info): Rename print_section_info.
7811 (print_bfd_section_info, print_objfile_section_info): Update.
7812 * inferior.h (struct gdbarch): Add opaque declaration.
7813 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7814 * gdbarch.h: Regenerate.
7815
78162002-04-10 Michal Ludvig <mludvig@suse.cz>
7817
7818 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7819 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7820 (kernel_u_size): Added.
7821 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7822 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7823
78242002-04-04 Jim Ingham <jingham@apple.com>
7825
7826 * valarith.c (find_size_for_pointer_math): New function, either returns
7827 the size for a pointer's target, returns 1 for void *, or errors for
7828 incomplete types.
7829 (value_add, value_sub): use find_size_for_pointer_math.
7830
78312002-04-09 Daniel Jacobowitz <drow@mvista.com>
7832
7833 * linux-low.c (linux_look_up_symbols): New hook.
7834 (linux_target_ops): Add linux_look_up_symbols.
7835 * remote-utils.c (decode_address): New function.
7836 (look_up_one_symbol): New function.
7837 * server.c (handle_query): Call target look_up_symbols hook.
7838 * server.h (look_up_one_symbol): Add prototype.
7839 * target.h (struct target_ops): Add look_up_symbols hook.
7840
78412002-04-09 Andrew Cagney <ac131313@redhat.com>
7842
7843 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7844 override FP_REGNUM with frame->fp. Update copyright.
7845 * parse.c (num_std_regs, std_regs): Delete.
7846 (target_map_name_to_register): Do not search std_regs. Update
7847 function description.
7848 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7849 declarations. Update copyright.
7850 Fix PR gdb/251.
7851
78522002-04-09 Daniel Jacobowitz <drow@mvista.com>
7853
7854 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7855 after the last symbol in a block.
7856
78572002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7858
7859 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7860 is non zero as a found symbol.
7861
78622002-04-08 Andrew Cagney <ac131313@redhat.com>
7863
7864 * findvar.c: Include "builtin-regs.h".
7865 (value_of_register): Call value_of_builtin_reg when applicable.
7866 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7867 (target_map_name_to_register): Call
7868 builtin_reg_map_name_to_regnum.
7869 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7870 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7871 (builtin_regs_h): Define.
7872 (builtin-regs.o): New target.
7873 (findvar.o): Add $(builtin_regs_h).
7874 * builtin-regs.c, builtin-regs.h: New files.
7875 * std-regs.c: New file.
7876 Partial fix for PR gdb/251.
7877
78782002-04-08 Kevin Buettner <kevinb@redhat.com>
7879
7880 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7881 it's no longer required.
7882
78832002-04-08 Andrew Cagney <ac131313@redhat.com>
7884
7885 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7886
78872002-04-08 Kevin Buettner <kevinb@redhat.com>
7888
7889 From Jimi X <jimix@watson.ibm.com>:
7890 * rs6000-tdep.c (rs6000_software_single_step): Use
7891 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7892 and size. Use target_insert_breakpoint() and
7893 target_remove_breakpoint() to insert and remove breakpoints
7894 instead of explicit memory reads and writes.
7895
78962002-04-08 Kevin Buettner <kevinb@redhat.com>
7897
7898 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7899 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7900 ELF_OBJECT_FORMAT ifdef.
7901
79022002-04-08 Kevin Buettner <kevinb@redhat.com>
7903
7904 From Jimi X <jimix@watson.ibm.com>:
7905 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7906
79072002-04-08 Kevin Buettner <kevinb@redhat.com>
7908
7909 From Jimi X <jimix@watson.ibm.com>:
7910 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7911 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7912
79132002-04-07 Mark Kettenis <kettenis@gnu.org>
7914
7915 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7916 s/asprintf/xasprintf/.
7917 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7918
79192002-04-07 Andrew Cagney <ac131313@redhat.com>
7920
7921 I believe Jeff Law denies responsability for this one:
7922 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7923 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7924 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7925 Work-around for PR gdb/366.
7926
79272002-04-07 Elena Zannoni <ezannoni@redhat.com>
7928
7929 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7930 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7931 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7932
79332002-04-07 Elena Zannoni <ezannoni@redhat.com>
7934
7935 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7936 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7937 information.
7938
79392002-04-07 Andrew Cagney <ac131313@redhat.com>
7940
7941 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7942 maintainer.
7943
79442002-04-07 Andrew Cagney <ac131313@redhat.com>
7945
7946 * README (Reporting Bugs in GDB): Document the bug web page as the
7947 prefered way of submitting bugs.
7948 Fix PR gdb/402.
7949
79502002-04-06 Andrew Cagney <ac131313@redhat.com>
7951
7952 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7953 -1. Update comment.
7954 * gdbarch.h, gdbarch.c: Re-generate.
7955
79562002-04-07 Andreas Schwab <schwab@suse.de>
7957
7958 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7959 buffer to regcache_collect.
7960
79612002-04-06 Andrew Cagney <ac131313@redhat.com>
7962
7963 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7964 * gdbarch.c, gdbarch.h: Re-generate.
7965
79662002-04-06 Andrew Cagney <ac131313@redhat.com>
7967
7968 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7969 declaration. Fix -Werror.
7970
79712002-04-05 Daniel Jacobowitz <drow@mvista.com>
7972
7973 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7974 * gdbarch.c: Regenerate.
7975
79762002-04-05 Michael Snyder <msnyder@redhat.com>
7977
7978 * breakpoint.c (clear_command): Rewrite middle section to
7979 combine two loops with identical control conditions.
7980 Add a cleanup to eliminate a memory leak.
7981 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7982
79832002-04-05 H.J. Lu (hjl@gnu.org)
7984
7985 * solib-svr4.c (bkpt_names): Add "__start".
7986
79872002-04-04 Andrew Cagney <ac131313@redhat.com>
7988
7989 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7990 as test for 64 bit target.
7991
79922002-04-05 Andrew Cagney <ac131313@redhat.com>
7993
7994 * h8500-tdep.c (h8500_write_fp): Delete function.
7995 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7996 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7997 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7998 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7999 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8000 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8001 (s390_write_fp):
8002 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8003 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8004 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8005 (d10v_write_fp): Delete function.
8006 * inferior.h (write_fp, generic_target_write_fp): Delete
8007 declarations.
8008 * regcache.c (generic_target_write_fp): Delete function.
8009 (write_fp): Delete function.
8010 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8011 * gdbarch.h, gdbarch.c: Regenerate.
8012 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8013 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8014 (sparc64_write_fp): Delete declaration.
8015 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8016 (h8500_write_fp): Delete declaration.
8017
80182002-04-04 Andrew Cagney <ac131313@redhat.com>
8019
8020 * sparc-tdep.c (sparc64_write_fp): Delete.
8021 (sparc_push_dummy_frame): Replace write_fp call with code to store
8022 the FP directly.
8023 (sparc_gdbarch_init): Do not initialize write_fp.
8024
80252002-04-05 Kevin Buettner <kevinb@redhat.com>
8026
8027 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8028 clause.
8029
80302002-03-29 Jim Blandy <jimb@redhat.com>
8031
8032 * stack.c (get_selected_block): Add new argument `addr_in_block',
8033 used to return the exact code address we used to select the block,
8034 not just the block.
8035 * blockframe.c (get_frame_block, get_current_block): Same.
8036 * frame.h (get_frame_block, get_current_block,
8037 get_selected_block): Update declarations.
8038 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8039 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8040
80412002-04-05 Michael Snyder <msnyder@redhat.com>
8042
8043 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8044 warning message.
8045
80462002-04-05 J. Brobecker <brobecker@gnat.com>
8047
8048 * utils.c (xfullpath): New function.
8049 * defs.h (xfullpath): Add declaration.
8050 * source.c (openp): Use xfullpath in place of gdb_realpath to
8051 avoid resolving the basename part of filenames when the
8052 associated file is a symbolic link. This fixes a potential
8053 inconsistency between the filenames known to GDB and the
8054 filenames it prints in the annotations.
8055 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8056 to be able to match a filename with either the real filename, or
8057 the name of any symbolic link to this file.
8058 (lookup_partial_symtab): Ditto.
8059
80602002-04-04 Michael Snyder <msnyder@redhat.com>
8061
8062 * breakpoint.c: Add support for hardware breakpoints in overlays.
8063 (overlay_events_enabled): New state variable.
8064 (insert_breakpoints): Use overlay_events_enabled to decide
8065 whether to attempt to set a breakpoint at the overlay load addr.
8066 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8067 (remove_breakpoint): Use overlay_events_enabled to decide
8068 whether breakpoints need to be removed from overlay load addr.
8069 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8070 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8071 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8072 disable_overlay_breakpoints): Update overlay_events_enabled.
8073
80742002-04-04 Daniel Jacobowitz <drow@mvista.com>
8075
8076 * dwarf2read.c (struct function_range): New.
8077 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8078 (check_cu_functions): New.
8079 (read_file_scope): Initialize global function lists.
8080 Call dwarf_decode_line after processing children.
8081 (read_func_scope): Add to global function list.
8082 (dwarf_decode_lines): Call check_cu_functions everywhere
8083 record_line is called. Call record_line with a linenumber
8084 of 0 to mark sequence ends.
8085
80862002-04-04 Michal Ludvig <mludvig@suse.cz>
8087
8088 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8089 change sync with glibc.
8090
80912002-04-03 Jim Blandy <jimb@redhat.com>
8092
8093 * configure.in: Call AC_C_INLINE.
8094 * configure: Regenerated.
8095
80962002-04-01 Daniel Jacobowitz <drow@mvista.com>
8097
8098 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8099 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8100
81012002-03-31 Mark Kettenis <kettenis@gnu.org>
8102
8103 * NEWS: Mention gcore support on FreeBSD/i386.
8104
8105 * fbsd-proc.c: New file.
8106 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8107 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8108
8109 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8110 while statement.
8111
81122002-03-29 Jim Blandy <jimb@redhat.com>
8113
8114 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8115 unescaped newlines in string literals, but newer ones don't. So
8116 escape them.
8117
81182002-03-26 Michael Snyder <msnyder@redhat.com>
8119 Andrew Cagney <cagney@redhat.com>
8120
8121 * cli/cli-dump.c: New file. Dump memory to file,
8122 restore file to memory.
8123 * cli/cli-dump.h: New file.
8124 * Makefile.in: Add rules, dependencies for cli-dump.o.
8125 * NEWS: Mention new commands.
8126
81272002-03-28 Michael Snyder <msnyder@redhat.com>
8128
8129 * symfile.c (symbol_file_add): Move test for null symbols to later.
8130
81312002-03-27 Andrew Cagney <ac131313@redhat.com>
8132
8133 From veksler at il.ibm.com:
8134 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8135 the xstrduped original path.
8136 Fix PR gdb/417.
8137
81382002-03-27 Michael Snyder <msnyder@redhat.com>
8139
8140 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8141 * infcmd.c (_initialize_infcmd): Ditto.
8142 * language.c (_initialize_language): Ditto.
8143 * symfile.c (_initialize_symfile): Ditto.
8144 * top.c (_init_main): Ditto.
8145 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8146
81472002-03-27 Elena Zannoni <ezannoni@redhat.com>
8148
8149 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8150 vector registers handling.
8151 (skip_prologue): Handle new AltiVec instructions. Fill in new
8152 fields of frame data.
8153 (frame_get_saved_regs): Fill in information for AltiVec registers.
8154
81552002-03-27 Jim Blandy <jimb@redhat.com>
8156
8157 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8158 a function; leave this macro here to invoke that function.
8159 (symbol_init_mangled_name): Declaration for that function.
8160 * symtab.c (symbol_init_mangled_name): New function.
8161
81622002-03-27 Andrew Cagney <ac131313@redhat.com>
8163
8164 * valarith.c: Replace strerror with safe_strerror.
8165 * tracepoint.c: Ditto.
8166 * lin-lwp.c: Ditto.
8167 * go32-nat.c: Ditto.
8168 * inflow.c: Ditto.
8169 * gnu-nat.c: Ditto.
8170
81712002-03-27 Andreas Schwab <schwab@suse.de>
8172
8173 * event-top.c (command_line_handler): Remove useless if.
8174
81752002-03-27 Andreas Jaeger <aj@suse.de>
8176
8177 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8178 comment.
8179
81802002-03-27 Michal Ludvig <mludvig@suse.cz>
8181
8182 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8183 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8184 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8185 (x86_64_linux_dr_get_status, supply_gregset),
8186 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8187 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8188 (x86_64_register_info_table): Add.
8189 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8190 (x86_64_register_raw_size, x86_64_register_virtual_type),
8191 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8192 general x86_64_register_info_table.
8193 (i386_gdbarch_init): gdbarch_register_bytes is now set
8194 dynamicaly during initialization.
8195 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8196 * gdbserver/linux-x86-64-low.c: Ditto.
8197
81982002-03-27 Daniel Jacobowitz <drow@mvista.com>
8199
8200 * gdbserver/server.c (main): Call target_signal_to_host_p
8201 and target_signal_to_host on signals received from the remote.
8202 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8203 target_signal_from_host on signals sent to the remote.
8204 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8205 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8206
82072002-03-27 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * signals/signals.c: Include "server.h" in gdbserver build.
8210 (target_signal_from_name): Don't use STREQ.
8211 (_initialize_signals): Likewise. Don't include function in
8212 gdbserver build.
8213
82142002-03-27 Daniel Jacobowitz <drow@mvista.com>
8215
8216 * signals.c: Moved to...
8217 * signals/signals.c: Here.
8218 * Makefile (signals.o): Update.
8219
82202002-03-26 Jeff Law (law@redhat.com)
8221
8222 * somread.c (som_symtab_read): Remove some commented out code and
8223 updated related comments. Do not set the minimal symbol table to
8224 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8225 in a dynamic executable.
8226 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8227 where we are unable to find the minimal symbol for the given
8228 PC value.
8229
82302002-03-25 Jeff Law (law@redhat.com)
8231
8232 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8233
82342002-03-25 Michal Ludvig <mludvig@suse.cz>
8235
8236 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8237
82382002-03-23 Andrew Cagney <ac131313@redhat.com>
8239
8240 * command.h: Update copyright.
8241 (struct cmd_list_element): Replace definition with opaque
8242 declaration.
8243 (enum cmd_types): Document that it will eventually be moved to
8244 cli/cli-decode.h
8245 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8246 (MALLOCED_REPLACEMENT): Delete macro.
8247 * Makefile.in (cli_decode_h): Add $(command_h).
8248 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8249 * top.c: Include "cli/cli-decode.h".
8250 * completer.c: Include "cli/cli-decode.h".
8251 * maint.c: Include "cli/cli-decode.h".
8252 * cli/cli-decode.h: Include "command.h".
8253 (enum command_class): Delete.
8254 (enum cmd_types): Comment out.
8255 (enum cmd_auto_boolean): Delete.
8256 (enum var_types): Delete.
8257
82582002-03-23 Andrew Cagney <ac131313@redhat.com>
8259
8260 * cli/cli-decode.c: Include "gdb_assert.h".
8261 (add_set_or_show_cmd): New static function.
8262 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8263 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8264 all fields, such as func, from the set command.
8265
82662002-03-23 Andrew Cagney <ac131313@redhat.com>
8267
8268 * MAINTAINERS (sh-elf): Change warning flag to -w.
8269
82702002-03-23 Andrew Cagney <cagney@redhat.com>
8271
8272 * defs.h (error): Add printf format attribute.
8273 * thread-db.c (thread_from_lwp): Fix error format string.
8274 * stack.c (parse_frame_specification): Ditto.
8275 * cli/cli-decode.c (undef_cmd_error): Ditto.
8276 * scm-lang.c (scm_lookup_name): Ditto.
8277 * tracepoint.c (trace_error): Ditto.
8278 * remote-utils.c (usage): Ditto.
8279 * remote.c (compare_sections_command): Ditto.
8280 Fix PR gdb/328.
8281
82822002-03-22 Andrew Cagney <ac131313@redhat.com>
8283
8284 * gdbtypes.c (append_composite_type_field): New function.
8285 (init_composite_type): New function.
8286 * gdbtypes.h (append_composite_type_field): Declare.
8287 (init_composite_type): Ditto.
8288
82892002-03-22 Elena Zannoni <ezannoni@redhat.com>
8290
8291 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8292 function.
8293 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8294 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8295 structure returning convention for SYSV ABI case, but not
8296 for GNU/Linux, FreeBSD, or NetBSD.
8297
82982002-03-22 Daniel Jacobowitz <drow@mvista.com>
8299
8300 * symtab.h (lookup_block_symbol): Add mangled_name argument
8301 to prototype.
8302
8303 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8304 with new mangled_name argument.
8305 * linespec.c (decode_line_1): Likewise.
8306 * valops (value_of_this): Likewise.
8307 * symtab.c (lookup_transparent_type): Likewise.
8308 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8309 (lookup_symbol): If we are given a mangled name, pass it down
8310 to lookup_symbol_aux.
8311 (lookup_block_symbol): If we are given a mangled name to check
8312 against, only return symbols which match it.
8313
83142002-03-22 Christopher Faylor <cgf@redhat.com>
8315
8316 * win32-nat.c (child_create_inferior): Check for proper shell to use
8317 here, in case the user changes it on the fly.
8318 (_initialize_inftarg): Remove shell path considerations.
8319
83202002-03-21 Elena Zannoni <ezannoni@redhat.com>
8321
8322 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8323 for gdbarch_max_register_raw_size and max_register_virtual_size.
8324 Adjust copyright year.
8325
83262002-03-21 Daniel Jacobowitz <drow@mvista.com>
8327
8328 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8329 in a function to cover the entire beginning of the function
8330 as well if it does not already.
8331
83322002-03-21 Tom Rix <trix@redhat.com>
8333
8334 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8335 (rs6000_ptrace64): Renamed from ptrace64.
8336
83372002-03-20 Martin M. Hunt <hunt@redhat.com>
8338
8339 * gdbserver/remote-utils.c (remote_open): Don't call
8340 getprotobyname, we're all using TCP here so just use
8341 IPPROTO_TCP.
8342 * gdbserver/gdbreplay.c (remote_open): Ditto.
8343
83442002-03-20 Martin M. Hunt <hunt@redhat.com>
8345
8346 * regcache.c (_initialize_regcache): No need to call
8347 build_regcache() at this time; it gets called whenever
8348 the gdbarch changes.
8349
83502002-03-20 David O'Brien <obrien@FreeBSD.org>
8351
8352 * sparc-nat.c: Include sys/param.h where possible.
8353
83542002-03-20 Daniel Jacobowitz <drow@mvista.com>
8355
8356 Fix PR gdb/422.
8357 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8358 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8359 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8360 complex types.
8361 * stabsread.c (rs6000_builtin_type): Likewise.
8362 (read_sun_floating_type): Likewise.
8363
83642002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8365
8366 * stabsread.c (read_member_functions): Remove skip code for duplicate
8367 constructor/destructor methods. Use standard parsing for these
8368 methods and just do not chain them to the list of methods after
8369 parsing.
8370
83712002-03-19 Alexandre Oliva <aoliva@redhat.com>
8372
8373 * coffread.c: Remove redundant static declarations. Replace
8374 occurrences of `PTR' with `void *'.
8375 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8376 * top.h (quit_cover): Likewise.
8377 * defs.h (catch_errors): Likewise.
8378
83792002-03-18 Andrew Cagney <ac131313@redhat.com>
8380
8381 * defs.h (XMALLOC): Define.
8382 * gdb-events.sh (XMALLOC): Delete macro.
8383 * gdb-events.c, gdb-events.h: Regenerate.
8384 * gdbarch.sh (XMALLOC): Delete macro.
8385 * gdbarch.c: Regenerate.
8386 * serial.c (XMALLOC): Delete macro.
8387 * ui-file.c (XMALLOC): Ditto.
8388 * ser-unix.h (XMALLOC): Ditto.
8389 * sh-tdep.c (XMALLOC): Ditto.
8390 * ui-out.c (XMALLOC): Ditto.
8391 * utils.c (XMALLOC): Ditto.
8392 * i386-tdep.c (XMALLOC): Ditto.
8393 * gdb-events.c (XMALLOC): Ditto.
8394 * d10v-tdep.c (XMALLOC): Ditto.
8395 * cli-out.c (XMALLOC): Ditto.
8396
8397 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8398 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8399 * ui-file.c, ui-out.c: Ditto.
8400
84012002-03-18 Andrew Cagney <ac131313@redhat.com>
8402
8403 * command.h (struct cmd_list_element): Add field context.
8404 (set_cmd_context, get_cmd_context): Declare.
8405 * cli/cli-decode.h: Ditto.
8406 * cli/cli-decode.c (get_cmd_context): New function.
8407 (set_cmd_context): New function.
8408 (add_cmd): Initialize context.
8409 Part of fixing PR gdb/145 and PR gdb/146.
8410
84112002-03-17 Andrew Cagney <ac131313@redhat.com>
8412
8413 * cli/cli-decode.c (cmd_type): New function.
8414 * command.h (cmd_type): Declare.
8415 * infrun.c (set_schedlock_func): Call function cmd_type.
8416 * kod.c (kod_set_os): Call cmd_type.
8417 * cris-tdep.c (cris_version_update): Use function cmd_type.
8418 (cris_mode_update, cris_abi_update): Ditto.
8419
8420 * command.h: (execute_cmd_post_hook): Declare.
8421 (execute_cmd_pre_hook): Declare.
8422 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8423 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8424 functions. Execute pre/post hook while ensuring that afterwords
8425 hook_in is cleared.
8426 * top.c (execute_command): Use execute_cmd_post_hook, and
8427 execute_cmd_pre_hook to execute pre/post commands.
8428 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8429 hook_stop_stub.
8430 (hook_stop_stub): Call execute_cmd_pre_hook.
8431
84322002-03-17 Andrew Cagney <ac131313@redhat.com>
8433
8434 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8435 set'' and this leads to a core dump. Move xstrdup of
8436 operating_system to after check that it is not NULL.
8437
84382002-03-17 Andrew Cagney <ac131313@redhat.com>
8439
8440 * kod.c (kod_set_os): Remove unnecessary check that
8441 ``command->type'' is set_cmd.
8442
8443 * valprint.c (set_input_radix): Use input_radix.
8444 (set_output_radix): Use output_radix.
8445 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8446 isn't reverted.
8447
84482002-03-16 Andrew Cagney <ac131313@redhat.com>
8449
8450 * value.h (struct value): Delete field ``substring_addr''. Change
8451 aligner fields to force_doublest_align, force_longest_align,
8452 force_core_addr_align and force_pointer_aligh.
8453
8454 * value.h (struct value): Fix typo in above change.
8455
84562002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8457
8458 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8459 to fix internal_error from ``maintenance print architecture''.
8460
84612002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8462
8463 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8464 for gcc versions after gcc-2.8.1.
8465
84662002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8467
8468 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8469 for method resolution. Restore adjustment of ``this'' pointer after
8470 calling value_struct_elt, which was accidentally removed during the
8471 HP merge.
8472
84732002-03-15 Andrew Cagney <ac131313@redhat.com>
8474
8475 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8476 value_of_register.
8477 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8478 get_saved_register.
8479 * value.h (value_of_register): Update.
8480
84812002-03-14 Richard Henderson <rth@redhat.com>
8482
8483 * configure.in: Detect declaration for canonicalize_file_name.
8484 * utils.c (canonicalize_file_name): Declare, if needed.
8485 (gdb_realpath): Prefer realpath if available and usable.
8486 * config.in, configure: Rebuild.
8487
84882002-03-14 Richard Henderson <rth@redhat.com>
8489
8490 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8491 a constant array bound.
8492
8493 * MAINTAINERS: Add myself to write-after-approval.
8494
84952002-03-14 Michael Snyder <msnyder@redhat.com>
8496
8497 * symfile.c (syms_from_objfile): Return immediately if no syms.
8498 (symbol_file_add): Return immediately if no syms.
8499 (find_sym_fns): Return immediately if no syms.
8500
85012002-03-13 Michal Ludvig <mludvig@suse.cz>
8502
8503 * gdbserver/remote-util.c (remote_open): Print remote-side's
8504 IP address when remote debugging over the network.
8505
85062002-03-12 David O'Brien <obrien@FreeBSD.org>
8507
8508 * config/sparc/fbsd.mh: Fix copyright.
8509 * config/sparc/fbsd.mt: Likewise.
8510
85112002-03-11 Richard Earnshaw <rearnsha@arm.com>
8512
8513 * MAINTAINERS: Fix typo in name of gdb warnings option.
8514 (x86-64): Fix formating so that this can be parsed by awk.
8515
85162002-03-10 Daniel Jacobowitz <drow@mvista.com>
8517
8518 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8519 * defs.h: Include "gdb/signals.h".
8520 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8521
85222002-03-10 Michal Ludvig <mludvig@suse.cz>
8523
8524 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8525 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8526 from x86-64-tdep.h
8527
85282002-03-10 Daniel Jacobowitz <drow@mvista.com>
8529 Don Howard <dhoward@redhat.com>
8530
8531 * mips-tdep.c (ST0_FR): Define.
8532 (mips2_fp_compat): New function, temporarily disabled.
8533 (mips_read_fp_register_single): New function.
8534 (mips_read_fp_register_double): New function.
8535 (mips_print_register): Use them.
8536 (do_fp_register_row): Likewise.
8537
85382002-03-09 Andrew Cagney <ac131313@redhat.com>
8539
8540 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8541 approval''.
8542
85432002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8544
8545 * stabsread.c (read_member_functions): Fix is_stub test for
8546 static member functions, improve comment.
8547
85482002-03-07 Richard Earnshaw <rearnsha@arm.com>
8549
8550 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8551 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8552 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8553 commands that set boolean values.
8554 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8555 (arm_rdi_resume): Always initialize PC.
8556 (arm_rdi_open): Don't use rslt as a boolean.
8557 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8558 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8559 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8560 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8561
85622002-03-06 Alexandre Oliva <aoliva@redhat.com>
8563
8564 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8565 * configure: Rebuilt.
8566
85672002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8568
8569 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8570 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8571
85722002-03-06 Andrew Cagney <ac131313@redhat.com>
8573
8574 * cli/cli-decode.c (set_cmd_completer): New function.
8575 * command.h (set_cmd_completer): Declare.
8576 * cli/cli-decode.h (set_cmd_completer): Ditto.
8577
8578 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8579 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8580 * win32-nat.c (_initialize_inftarg): Ditto.
8581 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8582 * proc-api.c (_initialize_proc_api): Ditto.
8583 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8584 * source.c (_initialize_source): Ditto.
8585 * exec.c (_initialize_exec): Ditto.
8586 * solib.c (_initialize_solib): Ditto.
8587 * top.c (init_main): Ditto.
8588 * tracepoint.c (_initialize_tracepoint): Ditto.
8589 * symfile.c (_initialize_symfile): Ditto.
8590 * printcmd.c (_initialize_printcmd): Ditto.
8591 * infcmd.c (_initialize_infcmd): Ditto.
8592 * corefile.c (_initialize_core): Ditto.
8593
85942002-03-05 Andrew Cagney <ac131313@redhat.com>
8595
8596 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8597
85982002-03-05 Andrew Cagney <ac131313@redhat.com>
8599
8600 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8601
86022002-03-05 Andrew Cagney <ac131313@redhat.com>
8603
8604 * NEWS: Update headings, 5.2 has branched.
8605
86062002-03-04 Daniel Jacobowitz <drow@mvista.com>
8607
8608 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8609 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8610 (register_addr, REGISTER_RAW_SIZE): Likewise.
8611 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8612 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8613
86142002-03-03 Michal Ludvig <mludvig@suse.cz>
8615
8616 * MAINTAINERS (x86-64): Add myself.
8617 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8618 changed value_ptr -> struct value *
8619
86202002-03-01 David O'Brien <obrien@FreeBSD.org>
8621
8622 * configure.host (sparc64-*-freebsd): Add.
8623 * configure.tgt: Likewise.
8624 * config/sparc/fbsd.mh: New file.
8625 * config/sparc/fbsd.mt: Likewise.
8626 * config/sparc/nm-fbsd.h: Likewise.
8627 * config/sparc/tm-fbsd.h: Likewise.
8628
86292002-03-01 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8632 regformats/reg-s390x.dat.
8633
86342002-03-01 Andrew Cagney <ac131313@redhat.com>
8635
8636 * utils.c: Add FIXME explaining true/false problem.
8637
86382002-02-28 Andrew Cagney <ac131313@redhat.com>
8639
8640 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8641
86422002-02-28 Michael Chastain <mec@shout.net>
8643
8644 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8645
86462002-02-28 Daniel Jacobowitz <drow@mvista.com>
8647
8648 * gdbserver/linux-s390-low.c: New file.
8649 * regformats/reg-s390.dat: New file.
8650 * regformats/reg-s390x.dat: New file.
8651 * gdbserver/configure.srv: Add S/390.
8652 * gdbserver/Makefile.in: Add S/390.
8653 * configure.tgt: Enable gdbserver for S/390.
8654
86552002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8656
8657 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8658 first line of the doc string for "info dos", except at the end of
8659 the sentence, since the short help stops at the first period.
8660
86612002-02-28 Jason Merrill <jason@redhat.com>
8662
8663 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8664
86652002-02-27 Fred Fish <fnf@redhat.com>
8666
8667 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8668 comment (dumy -> dummy).
8669
86702002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8671
8672 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8673
86742002-02-27 Rodney Brown <rbrown64@csc.com.au>
8675
8676 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8677
86782002-02-27 Daniel Jacobowitz <drow@mvista.com>
8679
8680 * gdbserver/acconfig.h: New file.
8681 * gdbserver/i387-fp.c: New file.
8682 * gdbserver/i387-fp.h: New file.
8683 * gdbserver/linux-x86-64.c: New file.
8684 * regformats/reg-x86-64.dat: New file.
8685 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8686 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8687 * gdbserver/configure.in: Add support for regsets.
8688 * gdbserver/config.in: Regenerate.
8689 * gdbserver/configure: Regenerate.
8690 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8691 * gdbserver/linux-low.h: New file.
8692 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8693 for regsets.
8694 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8695 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8696 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8697 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8698 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8699 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8700 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8701 "i387-fp.h". Add PTRACE_GETREGS and friends.
8702 * gdbserver/regcache.c (supply_register): New function.
8703 (supply_register_by_name): New function.
8704 (collect_register): New function.
8705 (collect_register_by_name): New function.
8706
87072002-02-27 Daniel Jacobowitz <drow@mvista.com>
8708
8709 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8710 (config.status): Add configure.srv dependency.
8711 (server_h): Add config.h dependency.
8712
87132002-02-27 Daniel Jacobowitz <drow@mvista.com>
8714
8715 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8716 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8717 * gdbserver/configure.srv: Change i386-*-linux* to use
8718 reg-i386-linux.o.
8719
87202002-02-26 Andrew Cagney <ac131313@redhat.com>
8721
8722 * x86-64-tdep.c: Re-indent. Update copyright date.
8723
87242002-02-26 Andrew Cagney <ac131313@redhat.com>
8725
8726 From Michal Ludvig <mludvig@suse.cz>:
8727 * x86-64-tdep.c (value.h): Delete.
8728 (gdb_assert.h): Include.
8729 (x86_64_register_convert_to_virtual,
8730 x86_64_register_convert_to_raw ): Add check which lets only
8731 floating-point values to be converted.
8732 (value_push): Delete.
8733 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8734 (i386_gdbarch_init): Number of register_bytes fixed.
8735
87362002-02-26 Andrew Cagney <ac131313@redhat.com>
8737
8738 * MAINTAINERS: Add x86-64 target.
8739
87402002-02-26 Andrew Cagney <ac131313@redhat.com>
8741
8742 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8743 * osfsolib.c (solib_map_sections): Ditto.
8744 * irix5-nat.c (solib_map_sections): Ditto.
8745 * corelow.c (gdb_check_format): Ditto.
8746 * symfile.c (symfile_bfd_open): Ditto.
8747 * solib.c (solib_map_sections): Ditto.
8748 Fix PR gdb/354.
8749
87502002-02-26 Andrew Cagney <ac131313@redhat.com>
8751
8752 * remote.c (_initialize_remote): By default, disable ``e'' and
8753 ``E'' step out-of-range packets.
8754
87552002-02-26 Andreas Schwab <schwab@suse.de>
8756
8757 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8758 m68k_linux_frame_saved_pc.
8759 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8760 in_sigtramp.
8761 (SIGCONTEXT_PC_OFFSET): Remove.
8762 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8763 m68k_linux_sigtramp_saved_pc): New functions.
8764 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8765 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8766 (UCONTEXT_PC_OFFSET): Define.
8767 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8768 non-RT and RT signal trampolines.
8769
87702002-02-26 Richard Earnshaw <rearnsha@arm.com>
8771
8772 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8773 (TARGET_NBPG, STACK_END_ADDR): Delete
8774 (VARIABLES_INSIDE_BLOCK): Delete.
8775
87762002-02-25 Andrew Cagney <ac131313@redhat.com>
8777
8778 * utils.c (perror_with_name): Make string parameter constant.
8779 (print_sys_errmsg): Ditto.
8780 (query): Ditto.
8781 * defs.h (perror_with_name): Update.
8782 (print_sys_errmsg): Update.
8783 (query): Update.
8784
87852002-02-25 Daniel Jacobowitz <drow@mvista.com>
8786
8787 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8788 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8789
87902002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8791
8792 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8793 if it already matches the current architecture from the exec file.
8794 Include arch-utils.h for gdbarch_info_init prototype.
8795 * Makefile.in (rs6000-nat.o): Update dependencies.
8796
87972002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8798
8799 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8800 list of exported variables.
8801
88022002-02-24 Daniel Jacobowitz <drow@mvista.com>
8803
8804 * gdbserver/configure.srv: New file.
8805 * gdbserver/configure.in: Use configure.srv instead
8806 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8807 from it.
8808 * gdbserver/configure: Regenerated.
8809 * gdbserver/terminal.h: New file.
8810 * gdbserver/Makefile.in: Update for configure changes. Remove
8811 more unneeded include paths.
8812
88132002-02-24 Andrew Cagney <ac131313@redhat.com>
8814
8815 From wiz at danbala:
8816 * config/sparc/tm-sp64.h: Fix grammar and typos.
8817 Fix PR gdb/287.
8818
88192002-02-24 Andrew Cagney <ac131313@redhat.com>
8820
8821 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8822 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8823 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8824 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8825 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8826 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8827 * s390-tdep.c: Ditto.
8828 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8829 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8830 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8831 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8832 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8833 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8834 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8835 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8836 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8837 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8838 Fix PR gdb/378.
8839
88402002-02-23 Andrew Cagney <ac131313@redhat.com>
8841
8842 * lin-thread.c: Delete file.
8843 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8844 to gdb_proc_service.h.
8845 * configure: Re-generate.
8846
8847 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8848 * serial.c (serial_open): Delete check for "ocd".
8849 Fix PR gdb/349.
8850
8851 * Makefile.in (linux-thread.o): Delete target.
8852 * linux-thread.c: Delete file.
8853
8854 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8855 renamed SH files to be consistent.
8856
8857 * symtab.c (sort_search_symbols): Use xfree.
8858
88592002-02-23 Richard Earnshaw <rearnsha@arm.com>
8860
8861 * arm-linux-tdep.c (arm_linux_init_abi): Register
8862 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8863 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8864 definition with undef, since we don't want the sysvr4 definition.
8865 (SKIP_TRAMPOLINE_CODE): Likewise.
8866
88672002-02-23 Andrew Cagney <ac131313@redhat.com>
8868
8869 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8870
8871 * configure.in: (AC_CHECK_FUNCS) Added test for
8872 canonicalize_file_name Regenerated.
8873 * config.in, configure: Regenerated.
8874 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8875 defined use canonicalize_file_name.
8876
88772002-02-23 Michael Chastain <mec@shout.net>
8878
8879 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8880
88812002-02-23 Andrew Cagney <ac131313@redhat.com>
8882
8883 * README: Remove references to cygnus.com.
8884 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8885 dot com'' form. Remove references to cygnus.com and sourceware.
8886
88872002-02-23 Andrew Cagney <ac131313@redhat.com>
8888
8889 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8890 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8891 1003.1-2001 no longer allows "head -1".
8892 * gdb/Makefile.in (version.c): Likewise.
8893 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8894 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8895 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8896
88972002-02-23 Andrew Cagney <ac131313@redhat.com>
8898
8899 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8900 * command.h (cmd_cfunc_eq): Declare.
8901 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8902
8903 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8904 ``struct cmd_list_element *''.
8905 * cli/cli-cmds.c (is_complete_command): Update. Use
8906 cmd_cfunc_eq.
8907 * top.c (execute_command): Pass the command to
8908 is_complete_command.
8909 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8910
89112002-02-23 Andrew Cagney <ac131313@redhat.com>
8912
8913 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8914 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8915 architecture defines.
8916 * s390-tdep.c (s390_gdbarch_init): Likewise.
8917
89182002-02-23 Richard Earnshaw <rearnsha@arm.com>
8919
8920 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8921 (arm_linux_push_arguments): Likewise.
8922 (arm_linux_init_abi): Register them. Also register linux-specific
8923 call_dummy_words.
8924 (find_minsym_and_objfile): Use strcmp, not STREQ.
8925 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8926 (arm_linux_call_dummy_words): Delete declaration.
8927 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8928 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8929 declarations.
8930 (LOWEST_PC): Delete.
8931
89322002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8933
8934 * maint.c (print_section_info): Do not prepend `0x' to filepos
8935 output, it will be handled by local_hex_string_custom.
8936
89372002-02-23 Richard Earnshaw <rearnsha@arm.com>
8938
8939 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8940 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8941 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8942
89432002-02-22 Jim Blandy <jimb@redhat.com>
8944
8945 Indicate that the bcache functions don't change the strings
8946 they're passed.
8947 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8948 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8949
89502002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8951
8952 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8953
89542002-02-21 Christopher Faylor <cgf@redhat.com>
8955
8956 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8957 find the complete path to a loaded DLL.
8958
89592002-02-21 Fred Fish <fnf@redhat.com>
8960
8961 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8962 that marks the end of the range of a function, enter a line number
8963 entry that has a line number of zero and a PC offset that matches
8964 the end of the function. This starts a range of PC's for which no
8965 line number information is known.
8966 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8967 PC's for which no line number info is found (line number is zero)
8968 then we didn't find any valid line information.
8969 * symtab.h: Document use of zero line number entry.
8970
89712002-02-21 Elena Zannoni <ezannoni@redhat.com>
8972
8973 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8974 (have_ptrace_getvrregs): Define for run time checks.
8975 (gdb_vrregset_t): New type for Altivec register handling.
8976 (fetch_register, store_register): Fetch/store altivec register
8977 when needed.
8978 (fetch_altivec_register, store_altivec_register): New functions.
8979 (supply_vrregset, fill_vrregset): New functions.
8980 (fetch_altivec_registers, store_altivec_registers): New functions.
8981 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8982 registers as well.
8983
89842002-02-21 Jiri Smid <smid@suse.cz>
8985
8986 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8987
89882002-02-21 Richard Earnshaw <rearnsha@arm.com>
8989
8990 * Makefile.in (armnbsd-nat.o): Update dependencies.
8991 * armnbsd-nat.c (supply_gregset): New function. Common code to
8992 supply the integer register set.
8993 (supply_fparegset): New function. Similar for FPA registers.
8994 (fetch_regs, fetch_fp_regs): Use them.
8995 (fetch_core_registers): Likewise.
8996 (fetch_elfcore_registers): New function.
8997 (arm_netbsd_elfcore_fns): New core-file type specification.
8998 (_initialize_arm_netbsd_nat): Register it.
8999
90002002-02-21 Richard Earnshaw <rearnsha@arm.com>
9001
9002 * armnbsd-nat.c: Include gdbcore.h.
9003 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9004 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9005 'void' to declaration, to shut up ARI.
9006 (fetch_core_registers): Make static. Rewrite using supply_register.
9007 (arm_netbsd_core_fns): New core-file type specification.
9008 (_initialize_arm_netbsd_nat): New function.
9009
90102002-02-21 Christopher Faylor <cgf@redhat.com>
9011
9012 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9013 value.
9014
90152002-02-20 Christopher Faylor <cgf@redhat.com>
9016
9017 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9018 fails.
9019
90202002-02-20 Daniel Jacobowitz <drow@mvista.com>
9021
9022 * jv-exp.y (parse_number): Change type of implicit longs
9023 to builtin_type_uint64.
9024
90252002-02-20 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9028 to be an integer instead of a `union wait'.
9029
90302002-02-20 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * mips-linux-nat.c: Call the operating system GNU/Linux.
9033 * mips-linux-tdep.c: Likewise.
9034 * mips-tdep.c: Likewise.
9035
90362002-02-20 Daniel Jacobowitz <drow@mvista.com>
9037
9038 Fix PR gdb/265.
9039 * jv-exp.y (parse_number): Handle 64-bit integers.
9040
90412002-02-20 Daniel Jacobowitz <drow@mvista.com>
9042
9043 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9044 AC_STDC_HEADERS to AC_HEADER_STDC.
9045 * gdbserver/configure: Regenerated.
9046
90472002-02-20 Richard Earnshaw <rearnsha@arm.com>
9048
9049 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9050 is defined.
9051 * sparc-tdep.c (get_longjmp_target): Likewise.
9052
90532002-02-20 Richard Earnshaw <rearnsha@arm.com>
9054
9055 * News: Add news about ARM and Multi-arch. Mention the new target
9056 arm*-*-netbsd*.
9057
90582002-02-19 Jim Blandy <jimb@redhat.com>
9059
9060 * stabsread.c (error_type_complaint): Improve error message.
9061
90622002-02-19 Daniel Jacobowitz <drow@mvista.com>
9063
9064 * gdbserver/README: Update documentation.
9065 * gdbserver/configure.in: Update configury to match documentation.
9066 * gdbserver/Makefile.in: Likewise.
9067 * gdbserver/configure: Regenerated.
9068 * gdbserver/aclocal.m4: New file, generated by aclocal.
9069 * gdbserver/config.in: New file, generated by autoheader.
9070
90712002-02-19 Richard Earnshaw <rearnsha@arm.com>
9072
9073 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9074 armnbsd-nat.c.
9075
90762002-02-19 Richard Earnshaw <rearnsha@arm.com>
9077
9078 * arm-tdep.h (enum arm_float_model): New enum.
9079 (struct gdbarch_tdep): Add fp_model.
9080 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9081 up floating-point conversions until we know the floating-point model
9082 in use by the inferior. Don't complain about being unable to
9083 determine the ABI of the inferior when we don't have one.
9084 (arm_extract_return_value): Support different floating-point models.
9085 (arm_store_return_value): Likewise.
9086 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9087 ARM_FLOAT_SOFT.
9088 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9089
90902002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9091
9092 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9093 of ``current_gdbarch''.
9094
90952002-02-19 Richard Earnshaw <rearnsha@arm.com>
9096
9097 * armnbsd-nat.c : ANSIfy all function declarations.
9098 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9099 (fetch_inferior_registers): Re-implement in terms of above.
9100 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9101 (store_inferior_registers): Re-implement in terms of above.
9102
91032002-02-19 Richard Earnshaw <rearnsha@arm.com>
9104
9105 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9106 kernel.
9107 * arm-linux-tdep.c: Likewise.
9108 * config/arm/tm-linux.h: Likewise.
9109
91102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9111
9112 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9113 * config/arm/nbsd.mt (TM_FILE): Delete.
9114 * config/arm/tm-nbsd.h: Delete.
9115
91162002-02-19 Richard Earnshaw <rearnsha@arm.com>
9117
9118 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9119 Initialize CALL_DUMMY_LENGTH.
9120
91212002-02-19 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9124 function.
9125 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9126 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9127 defines one thing and that is incorrect for this port.
9128 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9129
91302002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9131
9132 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9133
91342002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9135
9136 * win32-nat.c (display_selector): New function. Displays information
9137 about the information returned by GetThreadSelectorEntry API function.
9138 (display_selectors): New function. Displays the infomation of
9139 the selector given as argument, or of CS, DS ans FS selectors
9140 if no argument is given.
9141 ( _initialize_inftarg): Add "w32" as info prefix command.
9142 Add "info w32 selector" as command calling display_selectors.
9143
91442002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9145
9146 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9147 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9148 if not defined.
9149
91502002-02-18 Richard Earnshaw <rearnsha@arm.com>
9151
9152 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9153
91542002-02-18 Richard Earnshaw <rearnsha@arm.com>
9155
9156 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9157 (arm_fix_call_dummy): Call it.
9158 (arm_call_dummy_breakpoint_offset): Delete.
9159 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9160 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9161
91622002-02-18 Andrew Cagney <ac131313@redhat.com>
9163
9164 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9165 Default to func_frame_chain_valid.
9166 * gdbarch.h, gdbarch.c: Re-generate.
9167 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9168
91692002-02-18 Elena Zannoni <ezannoni@redhat.com>
9170
9171 * ppc-linux-nat.c: Update copyright.
9172 (fetch_register, store_register): Add tid parameter, don't compute
9173 tid here.
9174 (fetch_ppc_registers, store_ppc_registers): Add tid
9175 parameter. Pass it along to callees.
9176 (fetch_inferior_registers, store_inferior_registers): Compute tid
9177 here, and pass it to calleed functions.
9178 (fill_gregset, supply_fpregset): Clean up formatting.
9179
91802002-02-18 Richard Earnshaw <rearnsha@arm.com>
9181
9182 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9183 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9184
91852002-02-18 Richard Earnshaw <rearnsha@arm.com>
9186
9187 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9188 * gdbarch.c gdbarch.h: Regenerate.
9189 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9190 function.
9191 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9192 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9193 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9194
9195 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9196 * arm-tdep.c (arm_get_longjmp_target): New function.
9197 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9198 this to a positive value register arm_get_longjmp_target as the
9199 longjmp handler.
9200 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9201 (arm_linux_init_abi): Set up longjmp description in tdep.
9202 * armnbsd-nat.c (get_longjmp_target): Delete.
9203 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9204 description in tdep.
9205 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9206 (get_longjmp_target): Delete declaration.
9207 (GET_LONGJMP_TARGET): Delete.
9208 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9209 (GET_LONGJMP_TARGET): Delete.
9210
92112002-02-17 Kevin Buettner <kevinb@redhat.com>
9212
9213 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9214 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9215 of ``current_gdbarch''.
9216
92172002-02-17 Tom Tromey <tromey@redhat.com>
9218
9219 * cli/cli-cmds.c (compare_strings): New function.
9220 (complete_command): Only print each unique item once.
9221 * completer.h (complete_line): Declare.
9222 * completer.c (complete_line): New function.
9223 (line_completion_function): Use it.
9224
92252002-02-16 Andrew Cagney <ac131313@redhat.com>
9226
9227 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9228 * gdbarch.h, gdbarch.c: Re-generate.
9229
92302002-02-16 Daniel Jacobowitz <drow@mvista.com>
9231
9232 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9233
92342002-02-16 Daniel Jacobowitz <drow@mvista.com>
9235
9236 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9237 * valops.c (value_arg_coerce): Don't take the address of a reference
9238 to convert an argument to a reference.
9239
92402002-02-15 Christopher Faylor <cgf@redhat.com>
9241
9242 * win32-nat.c (get_image_name): New function.
9243 (handle_load_dll): Use get_image_name function.
9244 (get_child_debug_event): Avoid registering debug events until possibly
9245 execed process is started.
9246 (child_create_inferior): Allow invocation via shell so that command
9247 line redirection, etc. works ok.
9248 (_initialize_inftarg): Add new command: "set shell" to control whether
9249 a shell is used to start a process.
9250
92512002-02-15 Daniel Jacobowitz <drow@mvista.com>
9252
9253 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9254 instead of find_register_by_number.
9255 (cannot_store_register): Likewise.
9256
92572002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9258
9259 * dwarf2read.c: Replace fprintf (stderr, ...) by
9260 fprintf_unfiltered (gdb_stderr, ...).
9261
92622002-02-15 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * gdbserver/gdbserver.1: Document --attach.
9265
92662002-02-15 Richard Earnshaw <rearnsha@arm.com>
9267
9268 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9269 descriptions.
9270 * arm-tdep.c (arm_default_arm_le_breakpoint)
9271 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9272 (arm_default_thumb_be_breakpoint): New. Initialize them from
9273 traditional breakpoint defines.
9274 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9275 (arm_gdbarch_init): Initialize new breakpoint variables.
9276 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9277 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9278 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9279 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9280 code out to ...
9281 (arm_netbsd_init_abi_common): ... here; new function.
9282 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9283 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9284 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9285 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9286
92872002-02-15 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * arm-tdep.h (enum arm_abi): New enum.
9290 (struct gdbarch_tdep): New structure.
9291 (LOWEST_PC): Provide a default.
9292 (arm_gdbarch_register_os_abi): Declare new function.
9293 * arm-tdep.c (arm_abi_names): New array.
9294 (process_note_abi_tag_sections): New function.
9295 (get_elfosabi): New function.
9296 (arm_gdbarch_register_os_abi): New function.
9297 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9298 support for that ABI has been built in, then call the appropriate
9299 configuration routine. Use gdbarch_num_regs() to get the number
9300 of registers.
9301 (arm_dump_tdep): New function.
9302 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9303 place-holder functions.
9304 (_initialize_arm_tdep): Register them.
9305 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9306
9307 * armnbsd-tdep.c: New file.
9308 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9309 * config/arm/nbsd.mt (TDEPFILES): Add it.
9310 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9311
9312 * armnbsd-nat.c: Include regcache.h.
9313 * Makefile.in (armnbsd-nat.o): Update dependency list.
9314
9315 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9316
93172002-02-14 Daniel Jacobowitz <drow@mvista.com>
9318
9319 * gdbserver/Makefile.in: Fix typos in target rules.
9320
93212002-02-14 Daniel Jacobowitz <drow@mvista.com>
9322
9323 Fix part of PR gdb/267.
9324 * linespec.c (find_methods): Handle constructors specially for now.
9325
93262002-02-14 Corinna Vinschen <vinschen@redhat.com>
9327
9328 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9329 handling.
9330 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9331 standard_coerce_float_to_double().
9332
93332002-02-14 Christopher Faylor <cgf@redhat.com>
9334
9335 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9336 GDBINIT_FILENAME.
9337
93382002-02-14 Elena Zannoni <ezannoni@redhat.com>
9339
9340 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9341 find_variant_by_name, because it confuses the multiarch
9342 framework. Return NULL if there isn't an architecture with the
9343 user supplied name, instead of forcing a different one without
9344 recording the change with the multiarch machinery.
9345 (find_variant_by_name): Delete.
9346
93472002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9348
9349 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9350 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9351
93522002-02-13 Martin M. Hunt <hunt@redhat.com>
9353
9354 * stack.c (print_frame_info_base): When calling
9355 print_frame_info_listing_hook, set current_source_symtab.
9356
93572002-02-14 Daniel Jacobowitz <drow@mvista.com>
9358
9359 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9360 and remove unused $(INCLUDE_DIR).
9361 Add regcache.c to OBS.
9362 Add generated register protocol files to clean target.
9363 Update dependencies for new objects, obsolete old target code.
9364
9365 * gdbserver/linux-low.c: Remove all platform-specific code to
9366 new files. Remove various dead code. Update to use regcache
9367 functionality.
9368 * gdbserver/remote-utils.c (fromhex): Add return statement
9369 to quiet warning.
9370 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9371 constant.
9372 (input_interrupt): Add integer parameter to match prototype
9373 of a signal handler.
9374 (outreg): Use register_data ().
9375 (prepare_resume_reply): Use gdbserver_expedite_regs.
9376 * gdbserver/server.c (main): Dynamically allocate own_buf because
9377 PBUFSIZ is no longer constant. Use registers_to_string () and
9378 registers_from_string ().
9379 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9380 for error (), fatal (), and warning (). Update definition of
9381 PBUFSIZ to use regcache functionality. Add include guard.
9382 * gdbserver/utils.c (fatal): Add missing ``const''.
9383 (warning): New function.
9384
9385 * regformats/regdat.sh: Include "regcache.h" in generated files.
9386 Provide init_registers () function.
9387 * regformats/regdef.h: Add prototype for set_register_cache ().
9388 Add include guard.
9389
9390 * gdbserver/linux-arm-low.c: New file.
9391 * gdbserver/linux-i386-low.c: New file.
9392 * gdbserver/linux-ia64-low.c: New file.
9393 * gdbserver/linux-m68k-low.c: New file.
9394 * gdbserver/linux-mips-low.c: New file.
9395 * gdbserver/linux-ppc-low.c: New file.
9396 * gdbserver/linux-sh-low.c: New file.
9397
9398 * gdbserver/regcache.c: New file.
9399 * gdbserver/regcache.h: New file.
9400
9401 * gdbserver/low-linux.c: Removed obsolete file.
9402
94032002-02-14 Daniel Jacobowitz <drow@mvista.com>
9404
9405 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9406 * config/i386/linux.mt: Likewise.
9407 * config/ia64/linux.mt: Likewise.
9408 * config/m68k/linux.mh: Likewise.
9409 * config/powerpc/linux.mh: Likewise.
9410 * config/mips/linux.mt: Likewise.
9411
9412 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9413
9414 * config/i386/i386lynx.mh: Mark gdbserver variables
9415 as (currently) obsolete for this target.
9416 * config/i386/nbsd.mt: Likewise.
9417 * config/i386/nbsdelf.mt: Likewise.
9418 * config/m32r/m32r.mt: Likewise.
9419 * config/m68k/m68klynx.mh: Likewise.
9420 * config/m68k/nbsd.mt: Likewise.
9421 * config/m68k/sun3os4.mh: Likewise.
9422 * config/mips/vr5000.mt: Likewise.
9423 * config/ns32k/nbsd.mt: Likewise.
9424 * config/pa/hppabsd.mh: Likewise.
9425 * config/pa/hppaosf.mh: Likewise.
9426 * config/powerpc/nbsd.mt: Likewise.
9427 * config/rs6000/rs6000lynx.mh: Likewise.
9428 * config/s390/s390.mt: Likewise.
9429 * config/s390/s390x.mt: Likewise.
9430 * config/sparc/sparclynx.mh: Likewise.
9431 * config/sparc/sun4os4.mh: Likewise.
9432 * config/i386/x86-64linux.mt: Likewise.
9433 * config/sparc/linux.mh: Likewise.
9434
94352002-02-14 Daniel Jacobowitz <drow@mvista.com>
9436
9437 * configure.tgt: Configure gdbserver only for known working
9438 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9439 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9440 SUBDIRS if it is configured. Update comment for ${nativefile}.
9441 * configure: Regenerated.
9442
94432002-02-13 Michael Snyder <msnyder@redhat.com>
9444
9445 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9446
9447 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9448 (default_gcore_mach): Just return 0, work around a problem in bfd.
9449 (default_gcore_target): OK to return NULL if exec_bfd is null.
9450 (make_mem_sec): Use a cast, avoid a warning.
9451
9452 * procfs.c (find_memory_regions_callback): Use a cast instead of
9453 calling host_pointer_to_address (which complains if
9454 sizeof (host pointer) != sizeof (target pointer)).
9455 (procfs_make_note_section): Avoid overflow in psargs string.
9456
9457 * procfs.c (procfs_make_note_section): Make the default
9458 implementation return an error.
9459
94602002-02-13 Rodney Brown <rbrown64@csc.com.au>
9461
9462 * procfs.c (procfs_make_note_section): Provide a default definition
9463 (for alpha-dec-osf4.0f). Fix typos.
9464
94652002-02-13 Elena Zannoni <ezannoni@redhat.com>
9466
9467 * linux-proc.c: Add include of regcache.h.
9468 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9469
94702002-02-13 Andrew Cagney <ac131313@redhat.com>
9471
9472 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9473 * memattr.c (create_mem_region): Disallow useless empty region.
9474 Regions are half-open intervals, so allow [A..B) [B..C) as
9475 non-overlapping.
9476
94772002-02-13 Michael Chastain <mec@shout.net>
9478
9479 * defs.h: Kill CONST_PTR.
9480 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9481 * c-lang.c (c_builtin_types): Likewise.
9482 * ch-lang.c (ch_builtin_types): Likewise.
9483 * f-lang.c (f_builtin_types): Likewise.
9484 * language.c (unknown_builtin_types): Likewise.
9485 * m2-lang.c (m2_builtin_types): Likewise.
9486 * p-lang.c (pascal_builtin_types): Likewise.
9487 * scm-lang.c (c_builtin_types): Likewise.
9488
94892002-02-13 Keith Seitz <keiths@redhat.com>
9490
9491 * arm-tdep.h (arm_get_next_pc): Add declaration.
9492
94932002-02-13 Richard Earnshaw <rearnsha@arm.com>
9494
9495 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9496 with other related struct-returning functions.
9497 (arm_extract_struct_value_address): New function.
9498 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9499 initialize float_format, double_format and long_double_format as
9500 appropriate to the endianness of the target.
9501 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9502 (arm_use_struct_convention): Delete declaration.
9503 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9504
95052002-02-13 Keith Seitz <keiths@redhat.com>
9506
9507 * defs.h (core_addr_to_string_nz): New function.
9508
95092002-02-13 Mark Kettenis <kettenis@gnu.org>
9510
9511 Apply missing bits of 2002-01-15 patch.
9512 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9513 (fill_fpregset): Use i387_fill_fsave.
9514
95152002-02-12 Keith Seitz <keiths@redhat.com>
9516
9517 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9518 (core_addr_to_string_nz): New function.
9519
95202002-02-11 Richard Earnshaw <rearnsha@arm.com>
9521
9522 * arm-linux-nat.c: Really include arm-tdep.h.
9523 * config/arm/tm-linux.h (struct type, struct value): Declare.
9524
95252002-02-11 Michael Snyder <msnyder@redhat.com>
9526
9527 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9528 (gcore section): Ifdef for Solaris and Unixware only.
9529 (procfs_do_thread_registers): Unixware needs one lwpstatus
9530 per thread (not one prstatus or pstatus).
9531 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9532 not over all gdb threads. For unixware, call elfcore_write_pstatus
9533 once before iterating over threads.
9534
95352002-02-11 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * arm-tdep.h: New file.
9538 * arm-tdep.c: Include arm-tdep.h.
9539 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9540 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9541 (arm_print_float_info, arm_register_type, convert_to_extended)
9542 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9543 (arm_extract_return_value, arm_register_name): Make static.
9544 (arm_software_single_step): Similarly. Fix types in declaration.
9545 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9546 (arm_store_return_value, arm_store_struct_return): New functions.
9547 (arm_gdbarch_init): Register the above functions. Also register
9548 call_dummy_start_offset, sizeof_call_dummy_words,
9549 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9550 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9551 max_register_virtual_size, register_size. Set up
9552 prologue_cache.saved_regs here, rather than ...
9553 (_initialize_arm_tdep): ... here.
9554 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9555 declarations.
9556 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9557 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9558 (arm_print_float_info, arm_register_type, convert_to_extended)
9559 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9560 (arm_extract_return_value, arm_register_name): Delete declarations.
9561 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9562 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9563 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9564 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9565 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9566 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9567 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9568 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9569 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9570 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9571 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9572 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9573 interface.
9574 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9575 * remote-rdi.c remote-rdp.c: Likewise.
9576 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9577 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9578 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9579 definition.
9580
9581 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9582 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9583 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9584 from non-ARM_ prefixed definitions.
9585 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9586 all uses of above.
9587 * remote-rdi.c remote-rdp.c: Likewise.
9588 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9589
95902002-02-11 Richard Earnshaw <rearnsha@arm.com>
9591
9592 * arm-tdep.c (arm_frameless_function_invocation)
9593 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9594 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9595 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9596 (arm_pop_frame, arm_get_next_pc): Make static.
9597 (arm_gdbarch_init): Register above in gdbarch structure.
9598 (arm_read_fp): Renamed from arm_target_read_fp.
9599 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9600 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9601 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9602 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9603 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9604 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9605 (arm_pc_is_thumb_dummy): Delete declarations.
9606 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9607 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9608 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9609 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9610
96112002-02-10 Daniel Jacobowitz <drow@mvista.com>
9612
9613 * symtab.c (compare_search_syms): New function.
9614 (sort_search_symbols): New function.
9615 (search_symbols): Sort symbols after searching rather than
9616 before.
9617
96182002-02-10 Andrew Cagney <ac131313@redhat.com>
9619
9620 * NEWS: Linux -> GNU/Linux.
9621
96222002-02-10 Andrew Cagney <ac131313@redhat.com>
9623
9624 * gdbarch.sh: For for level one methods, disallow a definition
9625 when partially multi-arched. Add comments explaining rationale.
9626 * gdbarch.h: Re-generate.
9627
96282002-02-10 Andrew Cagney <ac131313@redhat.com>
9629
9630 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9631 multi-arch partial.
9632
96332002-02-10 Andrew Cagney <ac131313@redhat.com>
9634
9635 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9636 field. Use diff -u.
9637 * gdbarch.c: Re-generate.
9638
96392002-02-10 Andrew Cagney <ac131313@redhat.com>
9640
9641 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9642 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9643 partial.
9644
96452002-02-10 Andrew Cagney <ac131313@redhat.com>
9646
9647 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9648 multi-arch partial.
9649 (PUSH_ARGUMENTS): Switch to using predefault.
9650 * gdbarch.c: Regenerate.
9651
96522002-02-10 Andrew Cagney <ac131313@redhat.com>
9653
9654 * valops.c (PUSH_ARGUMENTS): Delete definition.
9655 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9656 partial. Default to default_push_arguments.
9657 * gdbarch.h, gdbarch.c: Regenerate.
9658
96592002-02-09 Andrew Cagney <ac131313@redhat.com>
9660
9661 * defs.h (throw_exception): Rename return_to_top_level. Update
9662 comments.
9663 * utils.c (error_stream, internal_verror, quit): Ditto.
9664 * top.c (throw_exception, catcher): Ditto.
9665 * sparclet-rom.c (sparclet_load): Ditto.
9666 * remote.c (interrupt_query, minitelnet): Ditto.
9667 * remote-sds.c (interrupt_query): Ditto.
9668 * remote-mips.c (mips_error, mips_kill): Ditto.
9669 * ocd.c (interrupt_query): Ditto.
9670 * monitor.c (monitor_interrupt_query): Ditto.
9671 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9672 * target.h: Update comment.
9673
9674 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9675
96762002-02-09 Andrew Cagney <ac131313@redhat.com>
9677
9678 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9679 default_double_format.
9680 * gdbarch.h, gdbarch.c: Re-generate.
9681 * findvar.c (floatformat_unknown): Delete variable definition.
9682 * doublest.h (floatformat_unknown): Delete variable declaration.
9683
96842002-02-09 Jim Blandy <jimb@redhat.com>
9685
9686 * stabsread.c (read_type): Add code to parse Sun's syntax for
9687 prototyped function types.
9688
96892002-02-09 Andrew Cagney <ac131313@redhat.com>
9690
9691 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9692 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9693
96942002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9695
9696 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9697 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9698 now _initialize_xcoffsolib gets called again and overrides the
9699 commands from solib.c in a native configuration.
9700
97012002-02-09 Mark Kettenis <kettenis@gnu.org>
9702
9703 * doublest.c (store_typed_floating): Don't try to return a value.
9704 Fixes PR gdb/290.
9705
97062002-02-08 Jim Blandy <jimb@redhat.com>
9707
9708 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9709 is prototyped and has no arguments, print its argument list as
9710 `(void)'.
9711
97122002-02-08 Chris Demetriou <cgd@broadcom.com>
9713
9714 * MAINTAINERS (write-after-approval): Add myself.
9715 (paper-trail): I've escaped!
9716
97172002-02-08 Christopher Faylor <cgf@redhat.com>
9718
9719 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9720 changes.
9721 (_initialize_check_for_gdb_ini): Ditto.
9722
97232002-02-08 Martin M. Hunt <hunt@redhat.com>
9724
9725 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9726 xaprintf -> xasprintf.
9727
97282002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9729
9730 * win32-nat.c: Remove use of printf and sprintf functions.
9731
97322002-02-08 Richard Earnshaw <rearnsha@arm.com>
9733
9734 * arm-tdep.c (arm_frame_chain_valid): Make static.
9735 (arm_push_arguments): Likewise.
9736 (arm_gdbarch_init): New function.
9737 (_initialize_arm_tdep): Call it.
9738 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9739 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9740 (FRAME_CHAIN_VALID): Delete.
9741 (arm_frame_chain_valid): Delete declaration.
9742 (PUSH_ARGUMENTS): Delete.
9743 (arm_push_arguments): Delete declaration.
9744 (CALL_DUMMY_P): Delete.
9745
97462002-02-08 Andrew Cagney <ac131313@redhat.com>
9747 Corinna Vinschen <vinschen@redhat.com>
9748
9749 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9750 on builtin float types.
9751
97522002-02-08 Daniel Jacobowitz <drow@mvista.com>
9753
9754 * utils.c: Include <curses.h> before "bfd.h".
9755 * tui/tui-hooks.c: Likewise.
9756 * tui/tui.c: Likewise.
9757 * tui/tuiCommand.c: Likewise.
9758 * tui/tuiData.c: Likewise.
9759 * tui/tuiDataWin.c: Likewise.
9760 * tui/tuiDisassem.c: Likewise.
9761 * tui/tuiGeneralWin.c: Likewise.
9762 * tui/tuiIO.c: Likewise.
9763 * tui/tuiLayout.c: Likewise.
9764 * tui/tuiRegs.c: Likewise.
9765 * tui/tuiSource.c: Likewise.
9766 * tui/tuiSourceWin.c: Likewise.
9767 * tui/tuiStack.c: Likewise.
9768 * tui/tuiWin.c: Likewise.
9769
97702002-02-07 Elena Zannoni <ezannoni@redhat.com>
9771
9772 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9773 to include space for pseudoregs as well. Update loops accordingly.
9774 (sh_fp_frame_init_saved_regs): Ditto.
9775 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9776
97772002-02-07 Andrew Cagney <ac131313@redhat.com>
9778
9779 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9780 Add Richard Earnshaw to Arm maintainers.
9781
97822002-02-07 Andrew Cagney <ac131313@redhat.com>
9783
9784 * defs.h (warning_begin): Delete declaration.
9785
9786 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9787 Delete macro.
9788
97892002-02-07 Michael Snyder <msnyder@redhat.com>
9790
9791 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9792 Logic bug, remove misplaced else.
9793
97942002-02-07 Klee Dienes <klee@apple.com>
9795
9796 * fork-inferior.c (fork_inferior): Add '!' to the list of
9797 characters that need to be quoted when building a string for the
9798 shell. Quote '!' specifically with a backslash, since CSH chokes
9799 when trying to evaluate "str!str".
9800
98012002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9802
9803 * rdi-share/host.h: Only provide a typedef for bool if it is not
9804 defined.
9805
98062002-02-04 Michael Snyder <msnyder@redhat.com>
9807
9808 * breakpoint.h (enum bptype): Add new overlay event bp type.
9809 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9810
9811 * breakpoint.c (create_internal_breakpoint): New function.
9812 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9813 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9814 (create_thread_event_breakpoint): Ditto.
9815 (create_solib_event_breakpoint): Ditto.
9816 (create_overlay_event_breakpoint): New function.
9817 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9818 (update_breakpoints_after_exec): Delete and re-initialize
9819 overlay event breakpoints after an exec. Add FIXME comment
9820 about longjmp breakpoint.
9821 (print_it_typical): Ignore overlay event breakpoints.
9822 (print_one_breakpoint): Ditto.
9823 (mention): Ditto.
9824 (bpstat_what): Do not stop for overlay event breakpoints.
9825 (delete_breakpoint): Don't delete overlay event breakpoints.
9826 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9827 (breakpoint_re_set): Re-create overlay event breakpoint.
9828
9829 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9830 (overlay_manual_command): Disable overlay breakpoints.
9831 (overlay_off_command): Disable overlay breakpoints.
9832
98332002-02-06 Richard Earnshaw <rearnsha@arm.com>
9834
9835 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9836 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9837 to here from config/tm-arm.h.
9838 (coff_sym_is_thumb): Make static.
9839 (arm_elf_make_msymbol_special): New function.
9840 (arm_coff_make_msymbol_special): New function.
9841 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9842 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9843 (coff_sym_is_thumb): Delete declaration.
9844 (arm_elf_make_msymbol_special): Declare.
9845 (arm_coff_make_msymbol_special): Declare.
9846 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9847 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9848
98492002-02-06 Richard Earnshaw <rearnsha@arm.com>
9850
9851 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9852
98532002-02-06 Richard Earnshaw <rearnsha@arm.com>
9854
9855 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9856 * gdbarch.c gdbarch.h: Regenerate.
9857 * arch-utils.c (default_print_float_info): New function.
9858 * arch-utils.h (default_print_float_info): Prototype it.
9859 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9860 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9861 (PRINT_FLOAT_INFO): Document it.
9862
9863 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9864 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9865 (PRINT_FLOAT_INFO): Define.
9866
98672002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9868
9869 * win32-nat.c (_initialize_check_for_gdb_ini):
9870 Add typecast to sprintf argument to suppress a warning.
9871
98722002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9873
9874 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9875 to allow easier handling of pass state.
9876 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9877 that gives exception name and address.
9878 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9879 and set last_sig value to ourstatus->value.sig. Some missing
9880 exceptions added.
9881 (child_continue): Correctly report continue_status.
9882 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9883 TARGET_SIGNAL_0 (new default value).
9884 (child_resume): consider sig argument passed to decide if
9885 the exception should be passed to debuggee or not.
9886
98872002-02-05 Michael Snyder <msnyder@redhat.com>
9888
9889 * regcache.c (fetch_register): Call target_fetch_register
9890 only if we don't call FETCH_PSEUDO_REGISTER.
9891 (store_register): Call target_store_register only if we
9892 don't call STORE_PSEUDO_REGISTER.
9893
98942002-02-05 Elena Zannoni <ezannoni@redhat.com>
9895
9896 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9897 ELF_MAKE_MSYMBOL_SPECIAL.
9898 * gdbarch.c, gdbarch.h: Regenerate.
9899 * arch-utils.c (default_make_msymbol_special): New function.
9900 * arch-utils.h (default_make_msymbol_special): Export.
9901 * elfread.c (elf_symtab_read): Compile use of
9902 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9903 multiarched.
9904 * coffread.c (coff_symtab_read): Ditto, for
9905 COFF_MAKE_MSYMBOL_SPECIAL.
9906
99072002-02-05 Jim Blandy <jimb@redhat.com>
9908
9909 * solib-svr4.c (svr4_truncate_ptr): New function.
9910 (svr4_relocate_section_addresses): Do the address arithmetic with
9911 the appropriate truncation for target addresses, even when
9912 CORE_ADDR is larger than a target address.
9913
99142002-02-05 Daniel Jacobowitz <drow@mvista.com>
9915
9916 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9917 to (int *).
9918
99192002-02-05 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9922 code.
9923
99242002-02-05 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9927
99282002-02-05 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/linux-low.c: Remove unused include files.
9931
99322002-02-05 Daniel Jacobowitz <drow@mvista.com>
9933
9934 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9935 (read_inferior_memory): Use it.
9936 (write_inferior_memory): Likewise.
9937
99382002-02-05 Daniel Jacobowitz <drow@mvista.com>
9939
9940 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9941 grubbing through sys_errlist.
9942
99432002-02-05 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9946
99472002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9948 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9949
99502002-02-04 Andrew Cagney <ac131313@redhat.com>
9951
9952 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9953 (do_sfunc, set_cmd_sfunc): New functions.
9954
9955 * command.h (struct cmd_list_element): Add field func.
9956 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9957 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9958 * cli/cli-decode.h: Ditto.
9959
9960 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9961 (help_all, help_cmd_list): Ditto.
9962 (find_cmd, complete_on_cmdlist): Ditto.
9963 * top.c (execute_command): Ditto.
9964
9965 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9966 function.sfunc.
9967
9968 * infcmd.c (notice_args_read): Fix function signature.
9969
9970 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9971 * cli/cli-decode.c (add_set_cmd): Ditto.
9972 * utils.c (initialize_utils): Ditto.
9973 * maint.c (_initialize_maint_cmds): Ditto.
9974 * infrun.c (_initialize_infrun): Ditto.
9975 * demangle.c (_initialize_demangler): Ditto.
9976 * remote.c (add_packet_config_cmd): Ditto.
9977 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9978 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9979 * proc-api.c (_initialize_proc_api): Ditto.
9980 * kod.c (_initialize_kod): Ditto.
9981 * valprint.c (_initialize_valprint): Ditto.
9982 * top.c (init_main): Ditto.
9983 * infcmd.c (_initialize_infcmd): Ditto.
9984 * corefile.c (_initialize_core): Ditto.
9985 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9986 * arch-utils.c (initialize_current_architecture): Ditto.
9987 (_initialize_gdbarch_utils): Ditto.
9988 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9989
9990 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9991 * wince.c (_initialize_inftarg): Ditto.
9992 * symfile.c (_initialize_symfile): Ditto.
9993 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9994 * language.c (_initialize_language): Ditto.
9995 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9996
99972002-02-04 Michael Snyder <msnyder@redhat.com>
9998
9999 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10000
100012002-02-04 Daniel Jacobowitz <drow@mvista.com>
10002
10003 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10004 Add rules for building the register data files.
10005
100062002-02-04 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * regformats/regdat.sh: Add braces to the definition of
10009 expedite_regs_${arch}.
10010
100112002-02-04 Daniel Jacobowitz <drow@mvista.com>
10012
10013 * regformats/regdef.h (struct reg): Add comment describing the
10014 requirements for offset and size fields.
10015
100162002-02-04 Andreas Schwab <schwab@suse.de>
10017
10018 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10019 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10020
100212002-02-04 Richard Earnshaw <rearnsha@arm.com>
10022
10023 * gdbarch.sh (copyright): Update years in generated header.
10024 (SMASH_TEXT_ADDRESS): Add rule.
10025 * gdbarch.h, gdbarch.c: Re-generate.
10026 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10027 * dbxread.c: Likewise.
10028 * dwarfread.c: Likewise.
10029 * elfread.c: Likewise.
10030 * somread.c: Likewise.
10031
10032 * arm-tdep.c (arm_smash_text_address): New function.
10033 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10034
100352002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10036
10037 Add support for hardware watchpoints on win32 native.
10038 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
10039 CONTEXT_DEBUG_REGISTERS.
10040 (dr variable): New variable. Static array containing a local copy
10041 of debug registers.
10042 (debug_registers_changed): New variable. Reflects when debug registers
10043 are changed and need to be written to inferior.
10044 (debug_registers_used): New variable. Reflects when any debug register
10045 was set, used when new threads are created.
10046 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10047 i386-nat code.
10048 (thread_rec): Set dr array if id is the thread of current_event .
10049 (child_continue, child_resume): Change the debug registers for all
10050 threads if debug_registers_changed.
10051 (child_add_thread): Change the debug registers if debug_registers_used.
10052 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10053 Link nm.h to new nm-cygwin.h file.
10054 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10055 of hardware registers.
10056
100572002-02-03 Andrew Cagney <ac131313@redhat.com>
10058
10059 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10060 Restore behavour broken by 2002-01-20 Andrew Cagney
10061 <ac131313@redhat.com> IEEE_FLOAT removal.
10062
100632002-02-03 Daniel Jacobowitz <drow@mvista.com>
10064
10065 * c-valprint.c (c_val_print): Pass a proper valaddr to
10066 cp_print_class_method.
10067 * valops.c (search_struct_method): If there is only one method
10068 and args is NULL, return that method.
10069
100702002-02-03 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10073 accessing tag_name directly.
10074
100752002-02-03 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10078 of accessing tag_name directly.
10079
100802002-02-03 Daniel Jacobowitz <drow@mvista.com>
10081
10082 PR gdb/280
10083 * gdbtypes.c (replace_type): New function.
10084 * gdbtypes.h (replace_type): Add prototype.
10085 * stabsread.c (read_type): Use replace_type.
10086
100872002-02-03 Richard Earnshaw <rearnsha@arm.com>
10088
10089 * Makefile.in (memattr.o): Add missing dependencies rule.
10090
100912002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10092
10093 * breakpoint.c (break_at_finish_command): Really export.
10094 (break_at_finish_at_depth_command): Ditto.
10095 (tbreak_at_finish_command): Ditto.
10096 * hppa-tdep.c: Include completer.h.
10097 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10098 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10099
101002002-02-01 Andrew Cagney <ac131313@redhat.com>
10101
10102 * utils.c (do_write): New function.
10103 (error_stream): Rewrite combining the code from error_begin and
10104 verror.
10105 (verror): Rewrite using error_stream.
10106 (error_begin): Delete function.
10107
101082002-02-01 Andrew Cagney <ac131313@redhat.com>
10109
10110 * utils.c (error_begin): Make static.
10111 * defs.h (error_begin): Delete declaration.
10112
10113 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10114 (decode_line_1): Use cplusplus_error instead of error_begin,
10115 cplusplus_hint and return_to_top_level.
10116 * coffread.c (coff_symfile_read): Use error instead of error_begin
10117 and return_to_top_level.
10118 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10119
101202002-02-01 Andrew Cagney <ac131313@redhat.com>
10121
10122 * language.h (type_error, range_error): Make string parameter
10123 constant.
10124 * language.c (warning_pre_print): Delete extern declaration.
10125 * dwarfread.c (warning_pre_print): Ditto.
10126 * language.c (type_error, range_error): Rewrite to use verror and
10127 vwarning instead of warning_begin.
10128
101292002-02-01 Michael Snyder <msnyder@redhat.com>
10130
10131 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10132 (set_ignore_count): Move misplaced comment back where it belongs.
10133
101342002-02-01 Andrew Cagney <ac131313@redhat.com>
10135
10136 * command.h (NO_FUNCTION): Delete macro.
10137 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10138 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10139 * tracepoint.c (_initialize_tracepoint): Ditto.
10140 * cli/cli-decode.c (add_set_cmd): Ditto.
10141 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10142
101432002-02-01 Daniel Jacobowitz <drow@mvista.com>
10144
10145 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10146 Update ``this'' pointer when calling virtual functions.
10147
101482002-02-01 Michael Snyder <msnyder@redhat.com>
10149
10150 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10151 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10152
101532002-02-01 Daniel Jacobowitz <drow@mvista.com>
10154
10155 * regformats/reg-arm.dat: New file.
10156 * regformats/reg-i386.dat: New file.
10157 * regformats/reg-ia64.dat: New file.
10158 * regformats/reg-m68k.dat: New file.
10159 * regformats/reg-mips.dat: New file.
10160 * regformats/reg-ppc.dat: New file.
10161 * regformats/reg-sh.dat: New file.
10162 * regformats/regdef.h: New file.
10163 * regformats/regdat.sh: New file.
10164
101652002-02-01 Richard Earnshaw <reanrsha@arm.com>
10166
10167 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10168 (arm_frame_args_address, arm_frame_locals_address): New functions.
10169 (arm_frame_num_args): New function.
10170 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10171 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10172 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10173
101742002-01-31 Michael Snyder <msnyder@redhat.com>
10175
10176 * breakpoint.c (break_at_finish_command): Export.
10177 (break_at_finish_at_depth_command): Export.
10178 (tbreak_at_finish_command): Export.
10179 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10180 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10181 "tbreak" commands, which are HPPA specific.
10182
10183 * printcmd.c (disassemble_command): Remove an ancient
10184 artifact of an old merge.
10185
10186 * symfile.h (enum overlay_debugging_state):
10187 Define enum constant values for overlay mode.
10188 * symfile.c (overlay_debugging): Use enums instead of literals.
10189 (overlay_is_mapped, overlay_auto_command,
10190 overlay_manual_command): Ditto.
10191
10192 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10193 breakpoint_here_p, breakpoint_inserted_here_p,
10194 breakpoint_thread_match, bpstat_stop_status,
10195 describe_other_breakpoints, check_duplicates, clear_command):
10196 Coding standard fixes.
10197
10198 * target.c (target_xfer_memory): Add spaces, coding standard.
10199 (do_xfer_memory): Add missing line to trust-readonly
10200 code: check bfd SEC_READONLY flag for section.
10201
102022002-01-31 Andrew Cagney <ac131313@redhat.com>
10203
10204 * PROBLEMS: Fix typo, 5.1->5.1.1.
10205
102062002-01-30 Daniel Jacobowitz <drow@mvista.com>
10207
10208 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10209 data symbols, since we search based on textlow and texthigh.
10210 (find_pc_sect_symtab): Likewise.
10211
102122002-01-30 Andrew Cagney <ac131313@redhat.com>
10213
10214 * defs.h (vwarning): Declare.
10215 * utils.c (vwarning): New function.
10216 (warning): Call vwarning.
10217 (warning_begin): Delete function.
10218
10219 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10220 the warning message.
10221 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10222 warning_begin.
10223
102242002-01-30 Michael Snyder <msnyder@redhat.com>
10225
10226 * NEWS: Mention "set trust-readonly-sections" command.
10227 Mention generate-core-file command.
10228
102292002-01-15 Michael Snyder <msnyder@redhat.com>
10230
10231 * target.c: New command, "set trust-readonly-sections on".
10232 (do_xfer_memory): Honor the suggestion to trust readonly sections
10233 by reading them from the object file instead of from the target.
10234 (initialize_targets): Register command "set trust-readonly-sections".
10235
102362002-01-29 Andrew Cagney <ac131313@redhat.com>
10237
10238 * parse.c (target_map_name_to_register): Simplify, search regs and
10239 pseudo-regs using a single loop.
10240
102412002-01-30 Andrew Cagney <ac131313@redhat.com>
10242
10243 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10244
102452002-01-15 Rodney Brown <rbrown64@csc.com.au>
10246
10247 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10248 * config/i386/i386v42mp.mh: Add i387-nat.o .
10249 * i386v4-nat.c: Include i387-nat.h.
10250 (supply_fpregset): Use i387_supply_fsave.
10251 (fill_fpregset): Use i387_fill_fsave.
10252
102532002-01-30 Richard Earnshaw <rearnsha@arm.com>
10254
10255 * arm-tdep.c (arm_call_dummy_words): Define.
10256 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10257 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10258 (CALL_DUMMY_WORDS): Define.
10259 (arm_call_dummy_words): Declare.
10260 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10261 (arm_linux_call_dummy_words): Declare.
10262
102632002-01-30 Andreas Schwab <schwab@suse.de>
10264
10265 * m68klinux-nat.c: Fix last change to use regcache_collect
10266 instead of referencing registers[] directly.
10267
102682002-01-29 Andrew Cagney <ac131313@redhat.com>
10269
10270 * parse.c (target_map_name_to_register): Delete code wrapped in
10271 #ifdef REGISTER_NAME_ALIAS_HOOK.
10272
102732002-01-28 Michael Snyder <msnyder@redhat.com>
10274
10275 * regcache.c (legacy_read_register_gen): Need to be able to
10276 read pseudo-register as well as real register.
10277 (legacy_write_register_gen): Ditto.
10278
102792002-01-28 Andrew Cagney <ac131313@redhat.com>
10280
10281 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10282 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10283 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10284 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10285 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10286 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10287 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10288 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10289 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10290 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10291 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10292 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10293 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10294 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10295 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10296 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10297 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10298 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10299 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10300 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10301
103022002-01-28 Andrew Cagney <ac131313@redhat.com>
10303
10304 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10305 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10306 (initialize_current_architecture): Update target_byte_order using
10307 information from BFD.
10308 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10309 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10310
103112002-01-28 Andrew Cagney <ac131313@redhat.com>
10312
10313 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10314 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10315
10316 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10317 #ifdef INVALID_FLOAT.
10318 * infcmd.c (do_registers_info): Ditto.
10319 * values.c (unpack_double): Ditto. Add comment.
10320
10321 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10322 already commented out.
10323
103242002-01-26 Andreas Schwab <schwab@suse.de>
10325
10326 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10327 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10328 registers and add support for PTRACE_GETREGS.
10329
103302002-01-24 Andrew Cagney <ac131313@redhat.com>
10331
10332 GDB 5.1.1 released from 5.1 branch.
10333 * NEWS: Add 5.1.1 news.
10334 * README: Sync with 5.1 branch.
10335
103362002-01-23 Fred Fish <fnf@redhat.com>
10337
10338 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10339 stabstring on initial malloc. Reallocing will copy it for us,
10340 if necessary.
10341
103422002-01-23 Elena Zannoni <ezannoni@redhat.com>
10343
10344 * Makefile.in (hpread_h): Delete.
10345 (HFILES_NO_SRCDIR): Remove hpread.h.
10346 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10347 (hpread.o): Update dependencies.
10348 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10349
10350 * hp-psymtab-read.c: Remove file.
10351 * hp-symtab-read.c: Remove file.
10352 * hpread.h: Remove file.
10353
10354 * hpread.c: Merge all contents of hp-psymtab-read.c,
10355 hp-symtab-read.c and hpread.h into this file, as it was prior to
10356 January 1999.
10357
10358 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10359 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10360 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10361 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10362
103632002-01-23 Elena Zannoni <ezannoni@redhat.com>
10364
10365 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10366 fill_gregset): Call gdbarch_tdep() just once, assign result to
10367 variable and use that, instead of calling the function several
10368 times.
10369
103702002-01-24 Alexandre Oliva <aoliva@redhat.com>
10371
10372 * configure.host: Accept sparcv9 as alias for sparc64.
10373 * configure.tgt: Likewise.
10374
103752002-01-22 Kevin Buettner <kevinb@redhat.com>
10376
10377 * solib-aix5.c (build_so_list_from_mapfile)
10378 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10379 arguments is not reversed.
10380 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10381 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10382
103832002-01-22 Elena Zannoni <ezannoni@redhat.com>
10384
10385 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10386 modified version of obsolete sh_fetch_pseudo_register.
10387 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10388 (sh4_register_read): New function.
10389 (sh_pseudo_register_write): New function. Renamed and modified
10390 version of obsolete sh_store_pseudo_register.
10391 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10392 (sh4_register_write): New function.
10393 (sh_gdbarch_init): Remove setting of gdbarch function
10394 fetch_pseudo_register and store_pseudo_register. Remove setting of
10395 register_convert_to_raw, register_convert_to_virtual,
10396 register_convertible.
10397 (sh_sh4_register_convertible): Delete. No longer needed. All is
10398 taken care by architecture specific functions
10399 register_read/register_write.
10400 (sh_sh4_register_convert_to_virtual): Make static.
10401 (sh_sh4_register_convert_to_raw): Ditto.
10402
104032002-01-22 Andrew Cagney <ac131313@redhat.com>
10404
10405 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10406 (floatformat_is_nan, floatformat_mantissa): Ditto.
10407
10408 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10409 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10410 builtin_type_ieee_double_little,
10411 builtin_type_ieee_double_littlebyte_bigword,
10412 builtin_type_m68881_ext, builtin_type_i960_ext,
10413 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10414 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10415 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10416 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10417
104182002-01-22 Corinna Vinschen <vinschen@redhat.com>
10419
10420 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10421 parameter. Set frameless flag if it exists and depended of
10422 whether the scanned function is frameless or not.
10423 (xstormy16_skip_prologue): If function is frameless, return
10424 result of xstormy16_scan_prologue().
10425 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10426 call.
10427
104282002-01-21 Elena Zannoni <ezannoni@redhat.com>
10429
10430 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10431 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10432 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10433 sh_sh4_register_byte, sh_sh4_register_raw_size,
10434 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10435 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10436 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10437 sh_store_pseudo_register, sh_do_pseudo_register): Call
10438 gdbarch_tdep() just once, assign result to variable and use that,
10439 instead of calling the function several times.
10440
104412002-01-20 Mark Kettenis <kettenis@gnu.org>
10442
10443 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10444 macros instead of LAST_FPU_CTRL_REGNUM.
10445 (store_register): Likewise.
10446
104472002-01-21 Jim Blandy <jimb@redhat.com>
10448
10449 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10450 is up-to-date before running the program, not just when a program
10451 exits.
10452
104532002-01-21 Fred Fish <fnf@redhat.com>
10454
10455 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10456 when we have found all instructions we are looking for.
10457
104582002-01-21 Richard Earnshaw <rearnsha@arm.com>
10459
10460 * arm-tdep.c (arm_register_name): New function.
10461 (arm_registers_names): Make static.
10462 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10463 (arm_register_name): Declare.
10464 (REGISTER_NAME): Use it.
10465
104662002-01-21 Richard Earnshaw <rearnsha@arm.com>
10467 Kevin Buettner <kevinb@redhat.com>
10468
10469 Convert arm targets to new FRAME interface.
10470 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10471 (arm_frame_find_save_regs): Delete.
10472 (arm_frame_init_saved_regs): New.
10473 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10474 Allocate extra_info as required. Convert all uses of fsr.regs
10475 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10476 to use extra_info.
10477 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10478 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10479 (check_prologue_cache, save_prologue_cache): Likewise.
10480 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10481 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10482 (FRAME_FIND_SAVED_REGS): Delete.
10483 (arm_frame_find_saved_regs): Delete prototype.
10484 (arm_frame_init_saved_regs): New prototype.
10485 (FRAME_INIT_SAVED_REGS): Define.
10486
104872002-01-20 Andrew Cagney <ac131313@redhat.com>
10488
10489 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10490
104912002-01-20 Andrew Cagney <ac131313@redhat.com>
10492
10493 From Jeff Law <law@redhat.com>:
10494 * infttrace.c: Include <sys/pstat.h>.
10495 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10496 exec file if the ttrace equivalent fails.
10497
104982002-01-20 Andrew Cagney <ac131313@redhat.com>
10499
10500 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10501 (closeLogFile): Ditto.
10502
105032002-01-20 Michael Chastain <mec@shout.net>
10504
10505 * top.c (print_gdb_version): Bump copyright year to 2002.
10506
105072002-01-20 Andrew Cagney <ac131313@redhat.com>
10508
10509 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10510 Zannoni and Eli Zaretskii.
10511
105122002-01-20 Daniel Jacobowitz <drow@mvista.com>
10513
10514 * buildsym.c: Update copyright years.
10515 * c-typeprint.c: Likewise.
10516 * dwarf2read.c: Likewise.
10517 * f-typeprint.c: Likewise.
10518 * gdbtypes.c: Likewise.
10519 * gdbtypes.h: Likewise.
10520 * hp-symtab-read.c: Likewise.
10521 * hpread.c: Likewise.
10522 * mdebugread.c: Likewise.
10523 * p-typeprint.c: Likewise.
10524
105252002-01-20 Andrew Cagney <ac131313@redhat.com>
10526
10527 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10528 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10529 byte-order selectable.
10530 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10531 * arch-utils.c: Ditto.
10532 (set_endian): Ditto.
10533 (set_endian_from_file): Ditto.
10534 * gdbserver/low-sim.c (create_inferior): Ditto.
10535 * gdbarch.sh: Ditto.
10536 * gdbarch.h: Re-generate.
10537 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10538 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10539 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10540 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10541 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10542 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10543 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10544 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10545 macro definition.
10546 * config/mips/tm-wince.h: Remove #undef of macro
10547 TARGET_BYTE_ORDER_SELECTABLE.
10548 * config/sh/tm-wince.h: Ditto.
10549
105502002-01-20 Daniel Jacobowitz <drow@mvista.com>
10551
10552 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10553 member function fields. Add accessor macro
10554 TYPE_FN_FIELD_ARTIFICIAL.
10555 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10556 * c-typeprint.c (c_type_print_base): Skip artificial member
10557 functions.
10558
105592002-01-20 Daniel Jacobowitz <drow@mvista.com>
10560
10561 * f-typeprint.c: Delete unused function f_type_print_args.
10562 * p-typeprint.c: Delete unused function pascal_type_print_args.
10563
105642002-01-20 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10567 comment. Add ``artificial'' to ``union field_location''.
10568
10569 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10570
10571 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10572 * mdebugread.c (parse_symbol): Likewise.
10573 * stabsread.c (define_symbol): Likewise.
10574 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10575 initializing TYPE_FIELD_BITPOS to n (obsolete).
10576 (hpread_doc_function_type): Likewise.
10577 * hpread.c (hpread_function_type): Likewise.
10578
105792002-01-20 Andrew Cagney <ac131313@redhat.com>
10580
10581 * configure.in (host_makefile_frag): Only require a host makefile
10582 fragment when a native build.
10583 * configure: Re-generate.
10584
105852002-01-20 Andrew Cagney <ac131313@redhat.com>
10586
10587 * doublest.h (floatformat_from_type): Declare.
10588 * doublest.c (floatformat_from_type): New function.
10589 (convert_typed_floating): Use.
10590
10591 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10592 call to function floatformat_from_type.
10593
10594 * gdbarch.sh (IEEE_FLOAT): Delete.
10595 * gdbarch.h, gdbarch.c: Re-generate.
10596 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10597 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10598 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10599 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10600 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10601 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10602 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10603 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10604 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10605 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10606 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10607 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10608
10609 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10610 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10611 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10612 * sh-tdep.c (sh_gdbarch_init): Ditto.
10613 * mips-tdep.c (mips_gdbarch_init): Ditto.
10614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10615 * cris-tdep.c (cris_gdbarch_init): Ditto.
10616
106172002-01-20 Jiri Smid <smid@suse.cz>
10618
10619 * configure.host, configure.tgt: Support x86-64.
10620 * NEWS: Note new target x86-64.
10621
10622 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10623 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10624 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10625 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10626 x86-64-linux-nat.o): Fix dependencies.
10627
106282002-01-19 Andrew Cagney <ac131313@redhat.com>
10629
10630 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10631 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10632 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10633 * config/sparc/xm-sun4os4.h: Delete file.
10634 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10635
106362002-01-19 Andrew Cagney <ac131313@redhat.com>
10637
10638 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10639 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10640 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10641 * config/i386/i386lynx.mh (XM_FILE): Delete.
10642 * config/rs6000/xm-rs6000ly.h: Delete file.
10643 * config/sparc/xm-sparclynx.h: Delete file.
10644 * config/m68k/xm-m68klynx.h: Delete file.
10645 * config/i386/xm-i386lynx.h: Delete file.
10646 * config/xm-lynx.h: Delete file.
10647 * config/djgpp/fnchange.lst: Update.
10648
106492002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10650
10651 * alpha-tdep.c (alpha_register_byte): New function.
10652 (alpha_register_raw_size): Ditto.
10653 (alpha_register_virtual_size): Ditto.
10654 (alpha_skip_prologue_internal): Renamed from
10655 alpha_skip_prologue.
10656 (alpha_skip_prologue): New version that calls
10657 alpha_skip_prologue_internal.
10658 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10659 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10660 second argument from alpha_skip_prologue.
10661 (REGISTER_BYTE): Use alpha_register_byte.
10662 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10663 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10664 (FRAMELESS_FUNCTION_INVOCATION): Use
10665 generic_frameless_function_invocation_not.
10666 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10667 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10668
106692002-01-19 Andrew Cagney <ac131313@redhat.com>
10670
10671 * config/mips/xm-news-mips.h: Delete file.
10672 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10673
10674 * config/m88k/xm-m88k.h: Delete file.
10675 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10676 * config/m88k/xm-delta88v4.h: Ditto.
10677 * config/m88k/xm-delta88.h: Ditto.
10678
10679 * config/alpha/xm-fbsd.h: Delete file.
10680 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10681
10682 * config/sparc/xm-sparc.h: Delete file.
10683 * Makefile.in (xm-sun4os4.h): Delete dependency.
10684 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10685 * config/sparc/xm-sun4os4.h: Ditto.
10686 * config/sparc/xm-linux.h: Ditto.
10687
10688 * config/i386/xm-windows.h: Delete file.
10689
106902002-01-19 Andrew Cagney <ac131313@redhat.com>
10691
10692 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10693 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10694
106952002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10696
10697 * alpha-tdep.c (alpha_call_dummy_words): New.
10698 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10699 (CALL_DUMMY_P): Define.
10700 (CALL_DUMMY_WORDS): Define.
10701 (SIZEOF_CALL_DUMMY_WORDS): Define.
10702
107032002-01-19 Per Bothner <per@bothner.com>
10704
10705 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10706 isn't NULL, which can happen with some gcj-3.x-produced code.
10707
107082002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10709
10710 * alpha-tdep.c (alpha_register_virtual_type): New function.
10711 (alpha_init_frame_pc_first): Ditto.
10712 (alpha_fix_call_dummy): Ditto.
10713 (alpha_store_struct_return): Ditto.
10714 (alpha_extract_struct_value_address): Ditto.
10715 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10716 alpha_register_virtual_type.
10717 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10718 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10719 alpha_extract_struct_value_address.
10720 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10721 (INIT_FRAME_PC): Use init_frame_pc_noop.
10722 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10723
107242002-01-19 Mark Kettenis <kettenis@gnu.org>
10725
10726 * i386gnu-nat.c: Include "i386-tdep.h".
10727 (fetch_fpregs): Simplify code dealing with uninitialized floating
10728 point states such that it doesn't require FP7_REGNUM.
10729
107302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10731
10732 * alpha-tdep.c (frame_extra_info): New.
10733 (alpha_find_saved_regs): Make static. Use
10734 frame->extra_info.
10735 (alpha_frame_init_saved_regs): New function.
10736 (alpha_frame_saved_pc): Use frame->extra_info.
10737 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10738 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10739 (init_extra_frame_info): Rename to...
10740 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10741 (alpha_print_extra_frame_info): New function.
10742 (alpha_frame_locals_address): Ditto.
10743 (alpha_frame_args_address): Ditto.
10744 (alpha_pop_frame): Use frame->extra_info.
10745 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10746 alpha_frame_args_address.
10747 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10748 (alpha_find_saved_regs): Remove prototype.
10749 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10750 (EXTRA_FRAME_INFO): Remove.
10751 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10752 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10753
107542002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10755
10756 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10757 (alpha_cannot_fetch_register): Ditto.
10758 (alpha_cannot_store_register): Ditto.
10759 (alpha_register_convertible): Ditto.
10760 (alpha_use_struct_convention): Ditto.
10761 * config/alpha/tm-alpha.h: Update copyright years.
10762 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10763 (INNER_THAN): Use core_addr_lessthan.
10764 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10765 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10766 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10767 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10768 (FRAME_CHAIN): Remove unnecessary cast.
10769
107702002-01-18 Andrew Cagney <ac131313@redhat.com>
10771
10772 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10773 obsolete.
10774
107752002-01-18 Andrew Cagney <ac131313@redhat.com>
10776
10777 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10778 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10779 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10780 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10781 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10782 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10783 * x86-64-linux-nat.c: Ditto.
10784
107852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10786
10787 * alpha-tdep.c (alpha_register_name): New function.
10788 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10789 (REGISTER_NAME): Define.
10790
107912002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10792
10793 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10794
107952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10796
10797 * alpha-tdep.c: Update copyright years.
10798 (alpha_next_pc): New function.
10799 (alpha_software_single_step): Ditto.
10800 * config/alpha/tm-alpha.h: Add prototype for
10801 alpha_software_single_step.
10802
108032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10804
10805 * alphabsd-nat.c: Update copyright years.
10806 (fill_gregset): Use regcache_collect.
10807 (fill_fpregset): Likewise.
10808 (fetch_inferior_registers): Only fetch integer registers
10809 if requested to do so.
10810 (store_inferior_registers): Only store integer registers
10811 if requested to do so.
10812
108132002-01-17 Andrew Cagney <ac131313@redhat.com>
10814
10815 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10816 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10817 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10818 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10819 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10820 * config/arm/linux.mh (XDEPFILES): Delete.
10821 * config/arm/nbsd.mh (XDEPFILES): Delete.
10822 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10823 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10824 * config/i386/i386m3.mh (XDEPFILES): Delete.
10825 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10826 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10827 * config/i386/fbsd.mh (XDEPFILES): Delete.
10828 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10829 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10830 * config/i386/i386v4.mh (XDEPFILES): Delete.
10831 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10832 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10833 * config/i386/i386aix.mh (XDEPFILES): Delete.
10834 * config/i386/go32.mh (XDEPFILES): Delete.
10835 * config/i386/cygwin.mh (XDEPFILES): Delete.
10836 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10837 * config/i386/i386mach.mh (XDEPFILES): Delete.
10838 * config/i386/i386v32.mh (XDEPFILES): Delete.
10839 * config/i386/linux.mh (XDEPFILES): Delete.
10840 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10841 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10842 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10843 * config/i386/i386sco.mh (XDEPFILES): Delete.
10844 * config/i386/i386v.mh (XDEPFILES): Delete.
10845 * config/i386/nbsd.mh (XDEPFILES): Delete.
10846 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10847 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10848 * config/i386/symmetry.mh (XDEPFILES): Delete.
10849 * config/i386/obsd.mh (XDEPFILES): Delete.
10850 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10851 * config/ia64/linux.mh (XDEPFILES): Delete.
10852 * config/ia64/aix.mh (XDEPFILES): Delete.
10853 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10854 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10855 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10856 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10857 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10858 * config/m68k/linux.mh (XDEPFILES): Delete.
10859 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10860 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10861 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10862 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10863 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10864 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10865 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10866 * config/m88k/delta88.mh (XDEPFILES): Delete.
10867 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10868 * config/m88k/m88k.mh (XDEPFILES): Delete.
10869 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10870 * config/mips/linux.mh (XDEPFILES): Delete.
10871 * config/mips/irix6.mh (XDEPFILES): Delete.
10872 * config/mips/irix5.mh (XDEPFILES): Delete.
10873 * config/mips/irix4.mh (XDEPFILES): Delete.
10874 * config/mips/irix3.mh (XDEPFILES): Delete.
10875 * config/mips/decstation.mh (XDEPFILES): Delete.
10876 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10877 (NATDEPFILES): Move core-aout.o to here.
10878 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10879 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10880 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10881 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10882 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10883 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10884 * config/pa/hpux11.mh (XDEPFILES): Delete.
10885 * config/powerpc/aix.mh (XDEPFILES): Delete.
10886 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10887 * config/powerpc/linux.mh (XDEPFILES): Delete.
10888 * config/romp/rtbsd.mh: Rename XDEPFILES.
10889 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10890 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10891 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10892 * config/s390/s390.mh (XDEPFILES): Delete.
10893 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10894 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10895 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10896 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10897 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10898 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10899 * config/sparc/linux.mh (XDEPFILES): Delete.
10900 * config/vax/vaxult.mh (XDEPFILES): Delete.
10901 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10902 * Makefile.in (DEPFILES): Remove XDEPFILES.
10903
109042002-01-17 Andrew Cagney <ac131313@redhat.com>
10905
10906 * utils.c (internal_verror): Fix comments, default is yes not no.
10907 Update queries to match. Default to quit and dump core.
10908
109092002-01-17 Andrew Cagney <ac131313@redhat.com>
10910
10911 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10912 copyright.
10913 * defs.h, event-top.c, gdbcmd.h: Ditto.
10914 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10915 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10916 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10917 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10918 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10919 * mi/mi-main.c:Ditto.
10920
10921 * stack.c, symfile.c: Update copyright.
10922
109232002-01-17 Daniel Jacobowitz <drow@mvista.com>
10924
10925 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10926 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10927 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10928 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10929
109302002-01-17 Daniel Jacobowitz <drow@mvista.com>
10931
10932 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10933 * gdbserver/low-lynx.c (myattach): Likewise.
10934 * gdbserver/low-nbsd.c (myattach): Likewise.
10935 * gdbserver/low-sim.c (myattach): Likewise.
10936 * gdbserver/low-sparc.c (myattach): Likewise.
10937 * gdbserver/low-sun3.c (myattach): Likewise.
10938
10939 * gdbserver/low-linux.c (myattach): New function.
10940
10941 * gdbserver/server.c (attach_inferior): New function.
10942 (main): Handle "--attach".
10943
109442002-01-16 Andrew Cagney <ac131313@redhat.com>
10945
10946 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10947 maintainer.
10948
109492002-01-15 Daniel Jacobowitz <drow@mvista.com>
10950
10951 * c-typeprint.c (is_type_conversion_operator): Add additional
10952 check for non-conversion operators.
10953
109542002-01-15 Michael Snyder <msnyder@redhat.com>
10955
10956 * linux-proc.c: Add "info proc" command, a la procfs.c.
10957 (read_mapping): New function, abstract and re-use code.
10958 (linux_find_memory_regions): Use new func read_mapping.
10959 (linux_info_proc_cmd): New function, implement "info proc".
10960 (_initialize_linux_proc): Add new command "info proc".
10961
109622002-01-15 Michael Snyder <msnyder@redhat.com>
10963
10964 * symfile.c (generic_load): Use bfd_map_over_sections method
10965 instead of manipulating bfd structure members directly.
10966 (add_section_size_callback): New function, bfd sections callback
10967 used by generic_load.
10968 (load_sections_callback): New function, bfd sections callback
10969 used by generic_load.
10970
109712002-01-15 Elena Zannoni <ezannoni@redhat.com>
10972
10973 [Based on work by Jim Blandy]
10974 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10975 (builtin_type_vec128): Export.
10976 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10977 types.
10978 (builtin_type_vec128): New builtin type for 128 bit vector
10979 registers.
10980 (build_gdbtypes): Initialize builtin_type_v16qi and
10981 builtin_type_v8hi. Create the vec128 register builtin type
10982 structure.
10983 (build_builtin_type_vec128): New function.
10984 (_initialize_gdbtypes): Register builtin_type_v16qi and
10985 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10986 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10987 AltiVec register to new builtin type.
10988
109892001-01-15 Daniel Jacobowitz <drow@mvista.com>
10990
10991 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10992 to make_cv_type.
10993
109942002-01-14 Andrew Cagney <ac131313@redhat.com>
10995
10996 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10997 CLEAN_UP_REGISTER_VALUE.
10998 * regcache.c (supply_register): Update only call.
10999
110002002-01-14 Andrew Cagney <ac131313@redhat.com>
11001
11002 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11003 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11004 a29k-*-vxworks* targets as obsolete.
11005
110062002-01-14 Michael Snyder <msnyder@redhat.com>
11007
11008 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11009 until we can resolve portability issues.
11010 * gregset.h: Remove references to fpxregs.
11011 * gcore.c (gcore_command): Initialize note_sec to NULL.
11012
110132002-01-13 Andrew Cagney <ac131313@redhat.com>
11014
11015 * signals.c (target_signal_to_name): Rewrite. Only use
11016 signals[].name when in bounds and non-NULL.
11017
110182002-01-13 Andrew Cagney <ac131313@redhat.com>
11019
11020 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11021 * signals.c (target_signal_to_name): Verify that SIG is within the
11022 bounds of the signals array.
11023
110242002-01-13 Andrew Cagney <ac131313@redhat.com>
11025
11026 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11027
110282002-01-13 Keith Seitz <keiths@redhat.com>
11029
11030 * stack.c (print_frame_info_base): Print the frame's pc
11031 only if when print_frame_info_listing_hook is not defined.
11032
110332002-01-13 Keith Seitz <keiths@redhat.com>
11034
11035 * varobj.c (varobj_set_value): Make sure that there were no
11036 errors evaluating the object before attempting to set its
11037 value.
11038 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11039 so this offset adjustment is no longer necessary.
11040 (create_child): Don't set the error flag if the child is
11041 a CPLUS_FAKE_CHILD.
11042 (value_of_child): If value_fetch_lazy fails, return NULL
11043 so that callers will be notified that an error occurred.
11044 (c_value_of_variable): Delay check of variable's validity
11045 until later. We actually want all structs and unions to have
11046 the value "{...}".
11047 Do not return "???" for variables which could not be evaluated.
11048 This error condition must be returned to the caller so that it
11049 can get the error condition from gdb.
11050 (cplus_name_of_child): Adjust index for vptr before figuring
11051 out the name of the child.
11052 (cplus_value_of_child): If a child's (real) parent is not valid,
11053 don't even bother trying to give a value for it. Just return
11054 an error. Change all instances in this function.
11055 (cplus_type_of_child): If our parent is one of the "fake"
11056 parents, we need to get at the type of the real parent, and
11057 derive the child's true type using this information.
11058
110592002-01-13 Andrew Cagney <ac131313@redhat.com>
11060
11061 From 2002-01-09 John Marshall <johnm@falch.net>:
11062 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11063 sources.redhat.com, and tweak some related URLs which had
11064 suffered from linkrot.
11065
110662002-01-13 Andrew Cagney <ac131313@redhat.com>
11067
11068 From Jeff law:
11069 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11070 structures passed in registers.
11071
110722002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11073
11074 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11075 white space which prevented compilation. Reported by DSK
11076 <dsk@student.unsw.edu.au>.
11077
110782002-01-11 Michael Snyder <msnyder@redhat.com>
11079
11080 * symfile.c (build_section_addr_info_from_section_tab):
11081 Use bfd access method instead of manipulating bfd directly.
11082 (syms_from_objfile): Ditto.
11083 (simple_overlay_update_1): Ditto.
11084 (simple_overlay_update): Ditto.
11085 (generic_load): Ditto.
11086 (overlay_unmapped_address): FIXME comment, bfd access methods.
11087 (sections_overlap): FIXME comment, bfd access methods.
11088 (pc_in_mapped_range): FIXME comment, bfd access methods.
11089 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11090 (section_is_mapped): FIXME comment, bfd access methods.
11091 (section_is_overlay): FIXME comment, bfd access methods.
11092
11093 * symfile.c (generic_load): Whitespace and long line cleanups.
11094 Remove duplicate variable, change several local variables to
11095 more appropriate data types.
11096 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11097
110982002-01-12 Andrew Cagney <ac131313@redhat.com>
11099
11100 From Peter Schauer:
11101 * language.c (longest_local_hex_string_custom): Use phex_nz to
11102 convert NUM to a hex string.
11103
111042002-01-12 Elena Zannoni <ezannoni@redhat.com>
11105
11106 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11107 the function.
11108 Update Copyright year.
11109
111102002-01-12 Andrew Cagney <ac131313@redhat.com>
11111
11112 * language.c (longest_raw_hex_string): Delete unused function.
11113
111142002-01-11 Petr Sorfa <petrs@caldera.com>
11115
11116 * MAINTAINERS (write-after-approval): Add myself.
11117 * dwarf2read.c (read_tag_string_type): Handling of
11118 DW_AT_byte_size.
11119 (read_tag_string_type): FORTRAN fix to prevent propagation of
11120 first string size.
11121 (set_cu_language): Handling of DW_LANG_Fortran95
11122
111232002-01-11 Richard Earnshaw <rearnsha@arm.com>
11124
11125 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11126 GETPID(inferior_ptid).
11127 (store_inferior_registers): Likewise.
11128
111292002-01-10 Jason Merrill <jason@redhat.com>
11130
11131 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11132 Fix DW_OP_minus.
11133
111342002-01-10 Andrew Cagney <ac131313@redhat.com>
11135
11136 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11137 and bfd/elf32-sh-nbsd.c.
11138
111392002-01-10 Michael Snyder <msnyder@redhat.com>
11140
11141 * NEWS: Mention --pid and corefile/proc-id behavior change.
11142
11143 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11144 * gcore.c: Include cli/cli-decode.h instead of command.h.
11145
11146 * main.c (captured_main): Add new command line option "--pid".
11147 If the second command line argument (following the symbol-file)
11148 begins with a digit, try to attach to it before trying to open
11149 it as a corefile.
11150 (print_gdb_help): Document the "--pid" argument.
11151
111522002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11153
11154 * completer.c (command_completer): New function.
11155
11156 * completer.h <command_completer>: Add prototype.
11157
11158 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11159 completer for the "help" command.
11160
111612002-01-09 Jason Merrill <jason@redhat.com>
11162
11163 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11164
111652002-01-09 Michael Snyder <msnyder@redhat.com>
11166
11167 * i386-linux-nat.c (fill_fpxregset): Make global.
11168 (store_fpxregset): Ditto.
11169
11170 * gregset.h (gdb_fpxregset_t): Define.
11171 (supply_fpxregset): Prototype.
11172 (fill_fpxregset): Prototype.
11173
11174 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11175
111762002-01-09 Richard Earnshaw <rearnsha@arm.com>
11177
11178 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11179 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11180 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11181
111822002-01-09 Andrew Cagney <ac131313@redhat.com>
11183
11184 * MAINTAINERS: Update target maintainer rules so that any
11185 Maintainer can approve a tested patch for a maintenance-only
11186 target.
11187
111882002-01-09 Richard Earnshaw <rearnsha@arm.com>
11189
11190 * MAINTAINERS (write-after-approval): Add myself.
11191
11192 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11193 IN_SIGTRAMP.
11194
111952002-01-08 Michael Snyder <msnyder@redhat.com>
11196
11197 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11198 real name of the executable, rather than the /proc name.
11199
112002002-01-03 Michael Snyder <msnyder@redhat.com>
11201
11202 Implement a "generate-core-file" command in gdb, save target state.
11203 * gcore.c: New file. Implement new command 'generate-core-file'.
11204 Save a corefile image of the current state of the inferior.
11205 * linux-proc.c: Add linux-specific code for saving corefiles.
11206 * target.h (struct target_ops): Add new target vectors for saving
11207 corefiles; to_find_memory_regions and to_make_corefile_notes.
11208 (target_find_memory_regions): New macro.
11209 (target_make_corefile_notes): New macro.
11210 * target.c (update_current_target): Inherit new target methods.
11211 (dummy_find_memory_regions): New place-holder method.
11212 (dummy_make_corefile_notes): New place-holder method.
11213 (init_dummy_target): Initialize new dummy target vectors.
11214 * exec.c (exec_set_find_memory_regions): New function.
11215 Allow the exec_ops vector for memory regions to be taken over.
11216 (exec_make_note_section): New function, target vector method.
11217 * defs.h (exec_set_find_memory_regions): Export prototype.
11218 * procfs.c (proc_find_memory_regions): New function, corefile method.
11219 (procfs_make_note_section): New function, corefile method.
11220 (init_procfs_ops): Set new target vector pointers.
11221 (find_memory_regions_callback): New function.
11222 (procfs_do_thread_registers): New function.
11223 (procfs_corefile_thread_callback): New function.
11224 * sol-thread.c (sol_find_memory_regions): New function.
11225 (sol_make_note_section): New function.
11226 (init_sol_thread_ops): Initialize new target vectors.
11227 * inftarg.c (inftarg_set_find_memory_regions): New function.
11228 Allow to_find_memory_regions vector to be taken over.
11229 (inftarg_set_make_corefile_notes): New function.
11230 Allow to_make_corefile_notes vector to be taken over.
11231 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11232 interface layer if not target_has_execution (may be a corefile).
11233 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11234 * config/sparc/sun4sol2.mh: Ditto.
11235 * config/alpha/alpha-linux.mh: Ditto.
11236 * config/arm/linux.mh: Ditto.
11237 * config/i386/x86-64linux.mh: Ditto.
11238 * config/ia64/linux.mh: Ditto.
11239 * config/m68k/linux.mh: Ditto.
11240 * config/mips/linux.mh: Ditto.
11241 * config/powerpc/linux.mh: Ditto.
11242 * config/sparc/linux.mh: Ditto.
11243
112442002-01-07 Michael Snyder <msnyder@redhat.com>
11245
11246 * arm-linux-nat.c: Remove references to regcache.c internal data
11247 (registers[] and register_valid[]).
11248
112492002-01-07 Michael Snyder <msnyder@redhat.com>
11250
11251 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11252 so that attaching to a pid will automatically read the process's
11253 symbol file and shlibs.
11254 * Makefile.in: Add rule for linux-proc.o.
11255 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11256 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11257 * config/arm/linux.mh: Ditto.
11258 * config/i386/linux.mh: Ditto.
11259 * config/i386/x86-64linux.mh: Ditto.
11260 * config/ia64/linux.mh: Ditto.
11261 * config/m68k/linux.mh: Ditto.
11262 * config/mips/linux.mh: Ditto.
11263 * config/powerpc/linux.mh: Ditto.
11264 * config/sparc/linux.mh: Ditto.
11265
112662002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11267
11268 * win32-nat.c: Add i386-tdep.h dependency.
11269
112702002-01-07 Michael Snyder <msnyder@redhat.com>
11271
11272 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11273 instead of bfd_get_arch_size. Don't bail out just because
11274 there's no exec_bfd.
11275
11276 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11277 * p-valprint.c (pascal_object_print_value): Ditto.
11278 * somread.c (som_symtab_read): Ditto.
11279 * symfile.c (simple_free_overlay_region_table): Ditto.
11280 * valops.c (value_assign): Ditto.
11281
11282 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11283 use tilde_expand and strerror for opening save-tracepoints file.
11284
11285 * thread-db.c (thread_db_new_objfile): Indendation fix.
11286
11287 * infptrace.c (GDB_MAX_ALLOCA): New define.
11288 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11289 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11290 can be overridden with whatever value is appropriate to the host).
11291 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11292 alloca to allocate potentially large buffer.
11293 * rs6000-nat.c (child_xfer_memory): Ditto.
11294 * symm-nat.c (child_xfer_memory): Ditto.
11295 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11296
112972002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11298
11299 From Nick Clifton <nickc@redhat.com>
11300 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11301
113022002-01-07 Michael Snyder <msnyder@redhat.com>
11303
11304 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11305 Don't use exec_bfd if it's NULL.
11306
113072002-01-06 Mark Kettenis <kettenis@gnu.org>
11308
11309 * valops.c (value_arg_coerce): Fix formatting.
11310
113112002-01-06 Andrew Cagney <ac131313@redhat.com>
11312
11313 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11314 * gnu-nat.c: Ditto.
11315
113162002-01-06 Andrew Cagney <ac131313@redhat.com>
11317
11318 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11319 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11320 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11321 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11322 z8k-coff have not been multi-arched. Update z8k-coff build
11323 status.
11324
113252002-01-06 Andrew Cagney <ac131313@redhat.com>
11326
11327 * MAINTAINERS: Mark a29k target as obsolete.
11328 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11329 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11330 comments.
11331 * NEWS: Note that a29k targets are obsolete.
11332 * a29k-tdep.c: Mark as obsolete.
11333 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11334 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11335 a29k-*-vxworks* targets as obsolete.
11336 * remote-adapt.c: Obsolete.
11337 * remote-eb.c: Obsolete.
11338 * remote-mm.c: Obsolete.
11339 * remote-udi.c: Obsolete.
11340 * config/a29k/a29k-udi.mt: Obsolete.
11341 * config/a29k/a29k.mt: Obsolete.
11342 * config/a29k/tm-a29k.h: Obsolete.
11343 * config/a29k/tm-vx29k.h: Obsolete.
11344 * config/a29k/vx29k.mt: Obsolete.
11345
113462002-01-05 Andrew Cagney <ac131313@redhat.com>
11347
11348 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11349 with BFD_ENDIAN_BIG.
11350
113512002-01-05 Andrew Cagney <ac131313@redhat.com>
11352
11353 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11354 * configure, config.in: Re-generate.
11355 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11356 * defs.h: Do not include <endian.h>.
11357
113582002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11359
11360 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11361 * config.in: Regenerate.
11362 * configure.in: Update copyright years.
11363 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11364 * configure: Regenerate.
11365 * i386bsd-nat.c: Update copyright years.
11366 (fill_gregset): Use regcache_collect.
11367 (fetch_inferior_registers): Only fetch integer registers
11368 if requested to do so. Add support for XMM registers
11369 using PT_GETXMMREGS.
11370 (store_inferior_registers): Only store integer registers
11371 if requested to do so. Add support for XMM registers
11372 using PT_SETXMMREGS.
11373 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11374 (store_inferior_registers): Remove.
11375 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11376 (fetch_elfcore_registers): New function.
11377 (i386nbsd_elfcore_fns): New.
11378 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11379 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11380 i386bsd-nat.o.
11381 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11382 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11383 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11384 * config/i386/tm-nbsd.h: Update copyright years.
11385 (HAVE_SSE_REGS): Define.
11386 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11387 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11388 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11389 (SIGCONTEXT_PC_OFFSET): Remove.
11390 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11391
113922002-01-05 Andrew Cagney <ac131313@redhat.com>
11393
11394 * configure.tgt: Remove powerpc-*-macos* target.
11395 * config/m68k/xm-mpw.h: Delete file.
11396 * config/xm-mpw.h: Delete file.
11397 * ser-mac.c: Delete file.
11398 * mpw-make.sed: Delete file.
11399 * mpw-config.in: Delete file.
11400 * mac-xdep.c: Delete file.
11401 * mac-gdb.r: Delete file.
11402 * mac-defs.h: Delete file.
11403 * mac-nat.c: Delete file.
11404 * config/powerpc/macos.mh: Delete file.
11405 * config/powerpc/macos.mt: Delete file.
11406 * config/powerpc/nm-macos.h: Delete file.
11407 * config/powerpc/tm-macos.h: Delete file.
11408 * source.c (openp, open_source_file): Remove obsolete code.
11409 * top.c (gdb_readline): Ditto.
11410 * utils.c (query): Ditto.
11411 * event-top.c (display_gdb_prompt): Ditto.
11412 * Makefile.in (ser-mac.o): Delete obsolete target.
11413 * NEWS: Update.
11414
114152002-01-04 Andrew Cagney <ac131313@redhat.com>
11416
11417 * defs.h (BIG_ENDIAN): Delete macro definition.
11418 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11419 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11420 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11421 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11422 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11423 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11424 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11425 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11426 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11427 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11428 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11429 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11430 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11431 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11432 * gdbarch.c: Re-generate.
11433
114342002-01-04 Daniel Jacobowitz <drow@mvista.com>
11435
11436 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11437 for core files.
11438
114392002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11440
11441 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11442
114432002-01-04 Andrew Cagney <ac131313@redhat.com>
11444
11445 * value.h (value_ptr): Delete typedef.
11446
114472002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11448
11449 * i386nbsd-nat.c: Update copyright years.
11450 Include i386-tdep.h.
11451
114522002-01-04 Elena Zannoni <ezannoni@redhat.com>
11453
11454 * stabsread.c: Update copyright years.
11455
11456 From Debashis Mahata <debashis.mahata@wipro.com>:
11457 (read_struct_fields): Deal with Sun C compiler erroneous stab
11458 output for structs and unions.
11459 Fix PR gdb/269.
11460
114612002-01-04 Daniel Jacobowitz <drow@mvista.com>
11462
11463 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11464 prototype.
11465
114662002-01-04 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * cp-abi.c: Fix whitespace.
11469 (baseclass_offset): New wrapper function.
11470 * cp-abi.h (baseclass_offset): Add prototype.
11471 (struct cp_abi_ops): Add baseclass_offset pointer.
11472
11473 * valops.c (vb_match): Move to...
11474 * gnu-v2-abi.c (vb_match): here.
11475 * valops.c (baseclass_offset): Move to...
11476 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11477
11478 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11479
11480 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11481 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11482 * hpacc-abi.c (init_hpacc_ops): Likewise.
11483
114842002-01-04 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * valops.c (find_overload_match): Accept obj as a
11487 reference parameter. Update it before returning.
11488 * value.h (find_overload_match): Update prototype.
11489 * eval.c (evaluate_subexp_standard): Pass object to
11490 find_overload_match by reference.
11491
114922002-01-03 Andrew Cagney <ac131313@redhat.com>
11493
11494 * valarith.c: Replace value_ptr with struct value pointer. Remove
11495 register attribute from value declarations.
11496 * valops.c: Ditto.
11497 * value.h: Ditto.
11498 * scm-lang.c (scm_lookup_name): Ditto.
11499
115002002-01-03 Michael Snyder <msnyder@redhat.com>
11501
11502 Abstract the functionality of iterating over mapped memory
11503 regions into a general purpose iterator function.
11504 * procfs.c (iterate_over_mappings): New function, general purpose
11505 iterator for memory sections.
11506 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11507 (solib_mappings_callback): New function, callback for above.
11508 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11509 (info_mappings_callback): New function, callback for above.
11510
11511 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11512
115132002-01-01 Mark Kettenis <kettenis@gnu.org>
11514
11515 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11516 * i386-tdep.c: Include "elf-bfd.h".
11517 (process_note_abi_tag_sections): New function.
11518 (i386_gdbarch_init): Add code to recognize various OS/ABI
11519 combinations.
11520
11521 * maint.c (_initialize_maint_cmds): Add missing \ in
11522 string-literal.
11523
11524For older changes see ChangeLog-2001
11525\f
11526Local Variables:
11527mode: change-log
11528left-margin: 8
11529fill-column: 74
11530version-control: never
11531End:
This page took 0.061129 seconds and 4 git commands to generate.