2002-09-25 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2
3 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4 wasn't saved, and the next innermost frame is a dummy, return the
5 dummy frame's link register.
6
7 2002-09-24 Jim Blandy <jimb@redhat.com>
8
9 Fix from Paul Breed:
10 * main.c (captured_main): Add a `break' after the case for 'b'.
11
12 2002-09-24 Keith Seitz <keiths@redhat.com>
13
14 * varobj.c (c_type_of_child): Use get_target_type instead
15 of TYPE_TARGET_TYPE.
16
17 2002-09-22 Fernando Nasser <fnasser@redhat.com>
18
19 * source.c (get_current_or_default_source_symtab_and_line): Remove
20 function.
21 (set_default_source_symtab_and_line): New function. Attempts to
22 determine a source file to list lines from if one is not currently
23 defined.
24 (get_current_source_symtab_and_line): Initialize sal.pc and
25 sal.end fields.
26 (set_current_source_symtab_and_line): Mark argument as const.
27 * source.h: Update declarations and comments.
28 * linespec.c (decode_line_1): Replace call to removed routine above.
29 * stack.c (print_frame_info_base): Ditto.
30 * cli/cli-cmds.c (edit_command): Ditto.
31 (list_command): Ditto.
32
33 2002-09-22 Fernando Nasser <fnasser@redhat.com>
34
35 * source.c (get_current__or_default_source_symtab_and_line): Initialize
36 sal.pc and sal.end fields.
37 (get_current_or_default_source_symtab_and_line): Ditto.
38 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
39 so we do not cause a new source symtab to be searched for (reverting an
40 unintentional change from the 2002-09-20 patch).
41 * scm-lang.c (scm_unpac): Ditto.
42
43 2002-09-21 Andrew Cagney <cagney@redhat.com>
44
45 * complaints.c (symfile_explanations): Remove new-line from
46 ``isolated_message''.
47 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
48 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
49
50 2002-09-20 Nick Clifton <nickc@redhat.com>
51
52 * NEWS: Announce that V850EA ISA is no longer supported.
53 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
54
55 2002-09-20 David Carlton <carlton@math.stanford.edu>
56
57 * Makefile.in (c-lang.o): Correct dependencies.
58 (utils.o): Gather dependencies.
59 (charset.o): Move.
60 * c-lang.c: #include "gdb_string.h"
61
62 2002-09-20 Fernando Nasser <fnasser@redhat.com>
63
64 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
65 * cli/cli-cmds.c (list_command): New function. Implements the new
66 cli edit command.
67 (_init_cli_cmds): Add new command definition.
68 * gdb.1: Document edit command.
69 * doc/gdb.texinfo: Document edit command.
70
71 2002-09-20 Fernando Nasser <fnasser@redhat.com>
72
73 * source.c: Make global variables current_source_symtab and
74 current_source_line static.
75 (list_command): Moved to cli/cli-cmds.c.
76 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
77 (get_first_line_listed): New accessor function.
78 (get_lines_to_list): New accessor function.
79 (get_current_source_symtab_and_line): New function. Retrieves the
80 position in the source code that we consider current.
81 (get_current_or_default_source_symtab_and_line): New function.
82 Like the above but attempts to determine a default position if one
83 is not currently defined.
84 (set_current_source_symtab_and_line): New function. Sets the source
85 code position considered current and returns the previously set one.
86 (clear_current_source_symtab_and_line): Reset stored information about
87 a current source line.
88 (_initialize_source): Remove registration for the "list" command and
89 its alias.
90 * source.h: Add declarations for the new functions above.
91 * symtab.h: Remove declarations for the global variables mentioned
92 above.
93 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
94 obtain current source line.
95 * linespec.c (decode_line_1): Ditto.
96 * macroscope.c (default_macro_scope): Ditto.
97 * scm-lang.c (scm_unpac): Ditto.
98 * stack.c (print_frame_info_base): Ditto.
99 * symfile.c (clear_symtab_users): Ditto.
100 * symtab.c (decode_line_spec): Ditto.
101 * cli/cli-cmds.c (list_command): Moved here from source.c.
102 (ambiguous_line_spec): Moved here from source.c.
103 (_init_cli_cmds): Add definition for "list" and its alias.
104 * Makefile.in: Update dependencies.
105
106 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
107
108 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
109 with what gcc thinks is correct.
110
111 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
112
113 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
114 multiple register push instruction.
115
116 2002-09-19 Jim Blandy <jimb@redhat.com>
117
118 Add support for distinct host and target character sets.
119 * charset.c, charset.h: New files.
120 * c-exp.y: #include "charset.h".
121 (yylex): Convert character and string literals to the target
122 character set, before returning them as the semantic value of the
123 token.
124 * c-lang.c: #include "charset.h".
125 (c_emit_char): Use charset-specific methods to recognize
126 characters with backslash escape forms, to decide which characters
127 to print literally and which to print using numeric escape
128 sequences, and to convert target characters to host characters
129 before printing.
130 * utils.c: #include "charset.h".
131 (no_control_char_error): New function.
132 (parse_escape): Use charset-specific methods to recognize
133 backslash escapes, parse `control character' notation, and convert
134 characters from the host character set to the target character set.
135 * configure.in: Set the default host character set.
136 Check where to find iconv, and what its argument types might be.
137 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
138 * Makefile.in (SFILES): List charset.c.
139 (COMMON_OBS): List charset.o.
140 (charset.o): New rule.
141 (charset_h): New header dependency variable.
142 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
143 (LIBICONV): New variable, set by configure.
144 (CLIBS): Include $(LIBICONV) here.
145 * aclocal.m4, config.in, configure: Regenerated.
146
147 2002-09-19 Joel Brobecker <brobecker@gnat.com>
148
149 * ada-exp.y: Add missing semicolons to end rules. Fixes a
150 bison 1.35 warning.
151
152 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
153
154 * gdb_mbuild.sh: New file.
155
156 2002-09-19 Andrew Cagney <ac131313@redhat.com>
157
158 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
159
160 2002-09-18 Andrew Cagney <ac131313@redhat.com>
161
162 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
163 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
164 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
165 valops.c, value.h: Revert previous change.
166
167 2002-09-18 Michael Snyder <msnyder@redhat.com>
168
169 Preliminary support for Objective-C:
170 * defs.h (language_objc): New enum value.
171 (puts_filtered_tabular): Declaration only, exported from utils.c.
172 (skip_quoted): Delete, declared in completer.h.
173 * c-exp.y: Include completer.h.
174 * p-exp.y: Ditto.
175 * jv-exp.y: Ditto.
176 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
177 New operator enum values.
178 * language.h (CAST_IS_CONVERSION): Test for language_objc.
179 * language.c (binop_result_type): Handle language_objc case.
180 (integral_type, character_type, string_type, boolean_type,
181 structured_type, binop_type_check): Ditto.
182 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
183 (struct objc_specific): Add to general_symbol_info.
184 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
185 (SYMBOL_DEMANGLED_NAME): Handle objc case.
186 * parser-defs.h (struct objc_class_str): New struct type.
187 (start_msglist, end_msglist, add_msglist): Declaration only,
188 exported from objc-lang.c.
189 * value.h (value_of_local, value_nsstring,
190 call_function_by_hand_expecting_type): Exported from valops.c.
191 * valops.c (find_function_addr): Export.
192 (call_function_by_hand_expecting_type): New function.
193 (value_of_local): New function.
194 * symfile.c (init_filename_language_table): Add ".m" extension
195 for Objective-C.
196 * utils.c (puts_filtered_tabular): New function.
197 (fprintf_symbol_filtered): Add objc demangling support (disabled).
198 (set/show demangle): Extend help-string to refer to ObjC.
199 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
200 * stabsread.c (symbol_reference_defined): Objective-C symbols
201 may contain colons: make allowances when scanning stabs strings
202 for colons.
203 (objc_find_colon): New function.
204 * printcmd.c (address_info): If language == objc then print
205 "self" instead of "this".
206 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
207 OP_NSSTRING, and OP_SELF.
208 (prefixify_subexp): Ditto.
209 * source.c (print_source_lines): Mention objc in comment.
210 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
211 method names.
212
213 2002-09-18 Andrew Cagney <ac131313@redhat.com>
214
215 * complaints.h: Update copyright.
216 (struct complaints): Declare.
217 (struct complaint): Make `message' constant.
218 (internal_complaint): Declare.
219 (complaint): Declare.
220 (complaint_root): Delete declaration.
221 (symfile_complaints): Delete declaration.
222 (struct complaints): Add opaque declaration.
223 (clear_complaints): Add a complaints parameter.
224 * complaints.c: Update copyright.
225 (enum complaint_series): Define.
226 (complaint_root): Delete.
227 (struct complaints): Define.
228 (complaint_sentinel, symfile_complaint_book): New variables.
229 (symfile_explanations, symfile_complaints): New variables.
230 New variables.
231 (get_complaints): New function.
232 (vcomplaint): New function.
233 (complaint): New function.
234 (internal_complaint): New function.
235 (complain): Call vcomplain with symfile_complaint.
236 (clear_complaints): Rewrite.
237 (_initialize_complaints): Use add_setshow_command.
238 * Makefile.in (complaints.o): Update dependencies.
239 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
240 to call to clear_complaints.
241 (new_symfile_objfile, reread_symbols): Ditto.
242 (oldsyms_complaint): Delete.
243 (empty_symtab_complaint, unknown_option_complaint): Delete.
244 (free_named_symtabs): Use complaint instead of complain.
245
246 2002-09-18 Michael Snyder <msnyder@redhat.com>
247
248 Contributed by Apple Computer, Inc. Merged with current sources
249 by Adam Fedor <fedor@doc.com> [cagney].
250
251 * objc-lang.c: First clean-up round: comments, indentation.
252 * objc-lang.h: Ditto.
253 * objc-lang.y: Ditto.
254
255 2002-09-18 Andrew Cagney <ac131313@redhat.com>
256
257 * maint.c (maintenance_internal_error): Print the parameter as the
258 error message.
259 (maintenance_internal_warning): New function.
260 (_initialize_maint_cmds): Add command `maint internal-warning'.
261
262 * defs.h (internal_warning, internal_vwarning): Declare.
263 * utils.c (struct internal_problem): Define.
264 (internal_vproblem): New function.
265 (internal_warning): New function.
266 (internal_vwarning): New function.
267 (internal_warning_problem, internal_error_problem): New variables.
268 (internal_verror): Just call internal_vproblem.
269
270 2002-09-18 Michael Snyder <msnyder@redhat.com>
271
272 * objc-lang.c: New file, support for Objective-C.
273 Preliminary check-in, not yet integrated into gdb.
274 * objc-lang.h: New file.
275 * objc-exp.y: New file.
276
277 2002-09-18 Andrew Cagney <ac131313@redhat.com>
278
279 * infrun.c (signal_stop_update): Convert definition to ISO C.
280 (signal_print_update): Ditto.
281 (signal_pass_update): Ditto.
282 * inflow.c (terminal_save_ours): Ditto.
283
284 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
285 comments.
286
287 * config/djgpp/fnchange.lst: Handle name clashes between
288 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
289 bfd/coff-tic80.c.
290
291 * i386-linux-tdep.h: Fix tipo.
292
293 2002-09-18 Adam Fedor <fedor@gnu.org>
294
295 * MAINTAINERS: Add myself to the Write After Approval list.
296
297 2002-09-18 Jim Blandy <jimb@redhat.com>
298
299 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
300 texthigh and textlow to reader-specific structs caused
301 objfile_relocate to miss them. This is fixable, but the work that
302 the change was supposed to prepare GDB for never got done anyway.
303
304 2002-09-18 David Carlton <carlton@math.stanford.edu>
305
306 * MAINTAINERS: Alphabetize Write After Approval list.
307
308 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
309
310 Fix PR gdb/709
311 * values.c (value_static_field): Call read_var_value.
312
313 2002-09-18 Andrew Cagney <ac131313@redhat.com>
314
315 * valops.c (hand_function_call): Align the initial stack pointer
316 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
317 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
318 return value.
319 * mips-tdep.c (mips_frame_align): New function.
320 (mips_gdbarch_init): Set frame_align.
321 * gdbarch.sh (FRAME_ALIGN): New method.
322 * gdbarch.h, gdbarch.c: Re-generate.
323
324 2002-09-18 Michal Ludvig <mludvig@suse.cz>
325
326 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
327 registers.
328
329 2002-09-17 Andrew Cagney <ac131313@redhat.com>
330
331 * NEWS: Mention that MIPS $fp behavior changed.
332 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
333 reference to FP_REGNUM.
334 (mipsnbsd_cannot_store_register): Ditto.
335 * mips-linux-nat.c: Update copyright.
336 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
337 (mips_linux_cannot_store_register): Ditto.
338 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
339 * config/mips/tm-mips.h: Update copyright.
340 (FP_REGNUM): Delete macro.
341 (MIPS_REGISTER_NAMES): Replace "fp" with "".
342 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
343 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
344 (mips_r3041_reg_names, mips_r3051_reg_names)
345 (mips_r3081_reg_names): Replace "fp" with "".
346 Fix PR gdb/480.
347
348 2002-09-17 Theodore A. Roth <troth@verinet.com>
349
350 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
351 generic_read_register_dummy() (PR gdb/703).
352 (avr_push_return_address): #if 0 out unused vars.
353 (avr_gdbarch_init): Enable use of avr_push_return_address().
354
355 2002-09-17 Michael Snyder <msnyder@redhat.com>
356
357 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
358 RTE will take care of it.
359
360 2002-09-17 Andrew Cagney <ac131313@redhat.com>
361
362 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
363 invalid, return SP_REGNUM.
364
365 2002-09-17 Michael Snyder <msnyder@redhat.com>
366
367 * mips-tdep.c (mips_pop_frame): Read saved values of floating
368 point registers without sign extension.
369
370 2002-09-17 Andrew Cagney <cagney@redhat.com>
371
372 * blockframe.c (deprecated_read_register_dummy): Rename
373 generic_read_register_dummy.
374 * frame.c (frame_unwind_signed_register): New function.
375 (frame_unwind_unsigned_register): New function.
376 * frame.h (frame_unwind_signed_register): Declare.
377 (frame_unwind_unsigned_register): Declare.
378 (deprecated_read_register_dummy): Rename
379 generic_read_register_dummy.
380
381 * h8300-tdep.c (h8300_frame_chain): Update.
382 (h8300_frame_saved_pc): Update.
383 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
384 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
385 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
386 (s390_frame_chain): Update.
387 * v850-tdep.c (v850_find_callers_reg): Update.
388 (v850_frame_saved_pc): Update.
389 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
390 (m32r_find_callers_reg): Update.
391 (m32r_frame_saved_pc): Update.
392 * sh-tdep.c (sh_find_callers_reg): Update.
393 (sh64_get_saved_pr): Update.
394 (sh_init_extra_frame_info): Update.
395 (sh_init_extra_frame_info): Update.
396 (sh64_init_extra_frame_info): Update.
397 (sh64_init_extra_frame_info): Update.
398 * mcore-tdep.c (mcore_find_callers_reg): Update.
399 (mcore_frame_saved_pc): Update.
400 (mcore_init_extra_frame_info): Update.
401 * i386-tdep.c (i386_frame_saved_pc): Update.
402 * ia64-tdep.c (ia64_frame_saved_pc): Update.
403 (ia64_init_extra_frame_info): Update.
404 (ia64_init_extra_frame_info): Update.
405 * d10v-tdep.c (d10v_frame_saved_pc): Update.
406 * cris-tdep.c (cris_init_extra_frame_info): Update.
407 * avr-tdep.c (avr_frame_chain): Update.
408 (avr_init_extra_frame_info): Update.
409 (avr_frame_saved_pc): Update.
410 * arm-tdep.c (arm_find_callers_reg): Update.
411 (arm_init_extra_frame_info): Update.
412 (arm_frame_saved_pc): Update.
413
414 2002-09-17 Tom Tromey <tromey@redhat.com>
415
416 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
417 is "'".
418
419 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
420
421 * MAINTAINERS: Remove "non multi-arched" text from h8300.
422 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
423 NEXT_PROLOGUE_INSN.
424 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
425 NEXT_PROLOGUE_INSN.
426
427 2002-09-16 Joel Brobecker <brobecker@gnat.com>
428
429 * osfsolib.c: Remove file, replaced by solib-osf.c.
430 * Makefile.in: Remove compilation rules for osfsolib.c.
431
432 2002-09-16 David Carlton <carlton@math.stanford.edu>
433
434 * cp-valprint.c (cp_print_class_method): Correct args to
435 check_stub_method_group.
436
437 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
438
439 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
440 `set architecture'. Unify naming convention of functions.
441 (h8300_skip_prologue): Improve prologue analysis.
442 (h8300_push_arguments): Rewritten to more closely match GCC's
443 bizarre argument-passing behavior, along with the comment describing
444 said behavior.
445 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
446 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
447 sim, remote-e7000.c, remote-hms.c and remote.c
448
449 2002-09-15 Mark Kettenis <kettenis@gnu.org>
450
451 * i386-tdep.c (gdb_print_insn_i386): Removed.
452 (i386_print_insn): New function.
453 (i386_gdbarch_init): Set print_insn to i386_print_insns.
454 (_initialize_i386_tdep): Don't initialize tm_print_insn and
455 tm_print_insn_info.
456
457 2002-09-14 Mark Kettenis <kettenis@gnu.org>
458
459 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
460 zero.
461
462 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
463
464 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
465 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
466 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
467
468 2002-09-13 Christopher Faylor <cgf@redhat.com>
469
470 * win32-nat.c (child_create_inferior): Honor 'tty' command.
471
472 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
473
474 * gdbtypes.c (check_stub_method): Make static.
475 (check_stub_method_group): New function.
476 * gdbtypes.h: Update prototypes.
477 * cp-support.c: New file.
478 * cp-support.h: New file.
479
480 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
481 (update_method_name_from_physname): New function.
482 (read_member_functions): Correct method names for operators
483 and v3 constructors/destructors. Separate v2 constructors and
484 destructors.
485 * Makefile.in (stabsread.o): Update dependencies.
486 (SFILES): Add cp-support.c.
487 (COMMON_OBS): Add cp-support.o.
488 (cp_support_h, cp-support.o): Add.
489
490 * cp-valprint.c (cp_print_class_method): Call
491 check_stub_method_group instead of check_stub_method. Remove
492 extraneous QUITs.
493 * p-valprint.c (pascal_object_print_class_method): Likewise.
494 * valops.c (search_struct_method): Likewise.
495 (find_method_list, value_struct_elt_for_reference): Likewise.
496
497 2002-09-13 Andrew Cagney <cagney@redhat.com>
498
499 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
500 * gdbarch.h, gdbarch.c: Regenerate.
501
502 2002-09-13 Andrew Cagney <ac131313@redhat.com>
503
504 * frame.c (find_saved_register): Delete function.
505 * frame.h (find_saved_register): Delete declaration.
506 Fix PR gdb/631.
507
508 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
509
510 * mips-tdep.c (read_next_frame_reg): Re-hack using
511 frame_register_unwind.
512
513 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
514
515 * mips-tdep.c (mips_get_saved_register): Re-hack using
516 frame_register_unwind.
517
518 2002-09-12 Joel Brobecker <brobecker@gnat.com>
519
520 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
521 vector. Will be useful for Interix.
522 * gdbarch.h, gdbarch.c: Regenerate.
523
524 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
525 name of the malloc function by NAME_OF_MALLOC.
526
527 2002-09-12 Joel Brobecker <brobecker@gnat.com>
528
529 * value.h (find_function_in_inferior): Add const keyword to
530 one of the parameters. Allows us to invoke this function with
531 a const char *.
532 * valops.c (find_function_in_inferior): Likewise.
533
534 2002-09-12 Joel Brobecker <brobecker@gnat.com>
535
536 * exec.c (xfer_memory): Fix compilation warning with old versions
537 of GCC.
538 * tracepoint.c (trace_find_tracepoint_command): Likewise.
539
540 2002-09-12 David Carlton <carlton@math.stanford.edu>
541
542 * symtab.h: Run through gdb_indent.h.
543 Add 2002 to Copyright year list.
544
545 2002-09-12 Alan Modra <amodra@bigpond.net.au>
546
547 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
548 mach constants.
549 * MAINTAINERS: Add myself to write after approval list.
550
551 2002-09-11 J. Brobecker <brobecker@gnat.com>
552
553 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
554
555 2002-09-11 J. Brobecker <brobecker@gnat.com>
556
557 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
558 Interix.
559
560 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
561
562 * procfs.c (do_detach): Clear current signal, not just fault.
563 Corrects problem with breakpoint trap signal leaking to detached
564 process on Tru64.
565
566 2002-09-10 Michael Snyder <msnyder@redhat.com>
567
568 * buildsym.c (finish_block): Protect against null pointer.
569
570 2002-09-10 Andrew Cagney <cagney@redhat.com>
571
572 * infcmd.c (default_print_registers_info): Send all output to
573 ``file'' instead of ``gdb_stdout''.
574
575 2002-09-10 Michael Snyder <msnyder@redhat.com>
576
577 * mips-tdep.c (mips_extract_struct_value_address): Make val a
578 LONGEST, and use signed register read (addresses are sign-
579 extended for mips).
580
581 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
582
583 * event-loop.c (gdb_do_one_event): Make public.
584 * event-loop.h (gdb_do_one_event): Declare.
585
586 2002-09-10 Jeff Law <law@redhat.com>
587
588 * infttrace.c (child_resume): Simplify and rework to avoid
589 TT_PROC_CONTINUE.
590
591 2002-09-09 Fred Fish <fnf@intrinsity.com>
592
593 * printcmd.c (print_scalar_formatted): "len" is the number of
594 target bytes, NOT the number of target bits.
595
596 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
597
598 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
599 * top.c (init_main): Set rl_terminal_name.
600
601 2002-09-08 Aidan Skinner <aidan@velvet.net>
602
603 * ada-lang.c (ada_array_bound, ada_type_match,
604 _initialize_ada_language): Fix K&R definitions.
605 * ada-tasks.c (get_current_task): Fix K&R definitions.
606 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
607
608 2002-09-07 Christopher Faylor <cgf@redhat.com>
609
610 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
611 Add XP.
612
613 2002-09-06 Mark Kettenis <kettenis@gnu.org>
614
615 * i386-tdep.c (i386_register_virtual_type,
616 i386_register_convertible, i386_register_convert_to_virtual,
617 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
618 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
619 (i386_gdbarch_init): Fix comment. Add comments on calls that set
620 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
621 Don't set push_arguments twice.
622
623 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
624 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
625 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
626 sigtramp_end to NULL.
627 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
628 defines.
629 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
630
631 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
632 whitespace.
633
634 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
635 * gdbarch.h, gdbarch.c: Re-generate.
636 * blockframe.c (find_pc_sect_partial_function): Convert to use
637 SIGTRAMP_START_P predicate.
638
639 2002-09-05 Michael Snyder <msnyder@redhat.com>
640
641 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
642 generic_dummy_frame method and old method. Also distinguish
643 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
644 (arm_extract_return_value): Use new regcache method.
645
646 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
647 adjustment that doesn't conform to the ABI.
648 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
649 saved regcache, not from current regcache.
650
651 2002-09-05 Andrew Cagney <ac131313@redhat.com>
652
653 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
654 * README: Update.
655
656 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
657
658 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
659 if arm_apcs_32 is false.
660
661 2002-09-04 Andrew Cagney <ac131313@redhat.com>
662
663 GDB 5.3 branch created.
664
665 2002-09-03 Theodore A. Roth <troth@verinet.com>
666
667 * gdb/avr-tdep.c (avr_gdbarch_init): Use
668 generic_unwind_get_saved_register.
669
670 2002-09-03 David Carlton <carlton@math.stanford.edu>
671
672 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
673 argument (PR gdb/653). Update call to smash_to_method_type.
674 (read_structure_scope): Update call to dwarf2_add_member_fn.
675
676 2002-09-03 Michal Ludvig <mludvig@suse.cz>
677
678 * x86-64-linux-tdep.c: Include gdb_string.h
679 * x86-64-linux-nat.c: Ditto.
680
681 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
682
683 * ada-exp.y (yyname, yyrule): Remap global variables that appear
684 when YYDEBUG is set to 1.
685 * c-exp.y: Likewise.
686 * f-exp.y: Likewise.
687 * jv-exp.y: Likewise.
688 * m2-exp.y: Likewise.
689 * p-exp.y: Likewise.
690
691 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
692
693 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
694 dependency list.
695 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
696 solib_svr4_fetch_link_map_offsets to
697 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
698 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
699 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
700 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
701 solib-svr4.o, and solib-legacy.o.
702 * config/i386/tm-nbsd.h: Include solib.h.
703
704 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
705
706 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
707 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
708 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
709 comment noting that this needs its own target configuration.
710 * config/i386/nbsd.mt: New file.
711 * config/i386/nbsdaout.mt: Remove.
712 * config/i386/nbsdelf.mt: Ditto.
713 * config/i386/tm-nbsdaout.h: Ditto.
714
715 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
716
717 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
718 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
719 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
720 tdep->sigtramp_end.
721 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
722 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
723 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
724
725 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
726
727 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
728 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
729 * i386-tdep.h (i386bsd_init_abi): New prototype.
730 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
731 function declaration.
732 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
733 for NetBSD-a.out or NetBSD-ELF.
734 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
735 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
736 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
737 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
738 and nbsd-tdep.h.
739 (i386nbsd_pc_in_sigtramp): New function.
740 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
741 i386nbsd_pc_in_sigtramp.
742 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
743 and i386nbsdelf_init_abi OS ABI handlers.
744 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
745 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
746
747 2002-09-02 Mark Kettenis <kettenis@gnu.org>
748
749 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
750 registers if the target really has them.
751
752 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
753
754 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
755 than nbsd-tdep.h.
756
757 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
758
759 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
760 list.
761 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
762 (alphanbsd_skip_sigtramp_frame): New functions.
763 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
764 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
765 to alphanbsd_sigcontext_addr.
766
767 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
768
769 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
770 list.
771 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
772 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
773 nbsd_pc_in_sigtramp.
774 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
775 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
776 * nbsd-tdep.c: Include gdb_string.h.
777 (nbsd_pc_in_sigtramp): New function.
778 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
779 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
780 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
781 ppcnbsd_pc_in_sigtramp.
782 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
783 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
784 shnbsd_pc_in_sigtramp.
785 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
786 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
787 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
788
789 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
790
791 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
792 watchpoints to NULL.
793 (insert_breakpoints): set val field of watchpoints if NULL.
794
795
796 2002-08-29 Jim Blandy <jimb@redhat.com>
797
798 * symtab.c (lookup_symbol_aux): In the cases where we find a
799 minimal symbol of an appropriate name and use its address to
800 select a symtab to read and search, use `name' (as passed to us)
801 as the demangled name when searching the symtab's global and
802 static blocks, not the minsym's name.
803
804 2002-08-29 Keith Seitz <keiths@redhat.com>
805
806 * stack.c (print_frame_info_base): Always set current_source_symtab
807 and current_source_line.
808
809 2002-08-29 Donn Terry <donnte@microsoft.com>
810
811 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
812
813 2002-08-28 Keith Seitz <keiths@redhat.com>
814
815 * stack.c (select_frame): Add FIXME concerning selected-frame
816 events.
817 (select_frame_command): Send selected-frame-level-changed
818 event notification, but only if the level actually changed.
819 (up_silently_base): Add selected-frame-level-changed event
820 notification.
821 (down_silently_base): Likewise.
822
823 2002-08-28 Andrew Cagney <ac131313@redhat.com>
824
825 * Makefile.in: Update dependencies for all gdb/*.c files.
826
827 2002-08-27 Tom Tromey <tromey@redhat.com>
828
829 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
830 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
831 Update dependencies.
832 * i387-tdep.c: Include gdb_string.h.
833 * osabi.c: Likewise.
834 * i386-linux-nat.c: Likewise.
835 * lin-lwp.c: Likewise.
836 * ax-gdb.c: Likewise.
837 * signals/signals.c: Likewise.
838 * jv-valprint.c: Likewise.
839 * p-lang.c: Likewise.
840 * c-valprint.c: Likewise.
841 * cp-abi.c: Likewise.
842
843 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
844
845 * cli/cli-script.h (copy_command_lines): Export.
846 * breakpoint.c: Include cli/cli-script.h.
847 * Makefile.in (breakpoint.o): Update dependencies.
848
849 2002-08-26 Michael Snyder <msnyder@redhat.com>
850
851 * breakpoint.c (insert_breakpoints): Protect all references
852 to 'process_warning'. Shorten long lines.
853
854 2002-08-26 Joel Brobecker <brobecker@gnat.com>
855
856 * cli/cli-script.c (copy_command_lines): New function.
857 * defs.h (copy_command_lines): Export.
858 * testsuite/gdb.base/commands.exp: New tests for commands
859 attached to a temporary breakpoint, and for commands that
860 delete the breakpoint they are attached to.
861
862 2002-08-26 Michael Snyder <msnyder@redhat.com>
863
864 * breakpoint.c (bpstat_stop_status): Instead of copying the
865 pointer to the breakpoint commands struct, make a new copy
866 of the struct and point to that.
867 (bpstat_clear): Free the commands struct.
868 (bpstat_clear_actions): Free the commands struct.
869 (bpstat_do_actions): Free the command actions. Also execute
870 the local cleanups, instead of deleting them.
871 (delete_breakpoint): Leave the commands field of the bpstat
872 chain alone -- it will be freed later.
873
874 2002-08-26 Kevin Buettner <kevinb@redhat.com>
875
876 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
877 deleted in 2002-08-20 commit. This function is still used by
878 ppc-linux-nat.c.
879
880 2002-08-26 Keith Seitz <keiths@redhat.com>
881
882 * gdb-events.sh: Add selected-frame-level-changed event.
883 * gdb-events.c: Regenerated.
884 * gdb-events.h: Regenerated.
885
886 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
887
888 Fix PR gdb/393:
889 * inflow.c (terminal_save_ours): New function to save terminal
890 settings.
891 * inferior.h (terminal_save_ours): Declare.
892 * target.c (debug_to_terminal_save_ours): New function.
893 (cleanup_target): Defaults to_terminal_save_ours.
894 (update_current_target): Inherit to_terminal_save_ours.
895 (setup_target_debug): Set to_terminal_save_ours.
896 * target.h (target_terminal_save_ours): New to save terminal settings.
897 (target_ops): New member to_terminal_save_ours.
898 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
899 * hpux-thread.c (init_hpux_thread_ops): Likewise.
900 * inftarg.c (init_child_ops): Likewise.
901 * m3-nat.c (init_m3_ops): Likewise.
902 * procfs.c (init_procfs_ops): Likewise.
903 * wince.c (init_child_ops): Likewise.
904 * win32-nat.c (init_child_ops): Likewise.
905 * sol-thread.c (init_sol_thread_ops): Likewise.
906
907 2002-08-26 Mark Kettenis <kettenis@gnu.org>
908
909 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
910 use regcache_* functions.
911 (i386_gdbarch_init): Set store_return_value instead of
912 deprecated_store_return_value.
913
914 * regcache.c (regcache_raw_write_signed,
915 regcache_raw_write_unsigned): New functions.
916 * regcache.h (regcache_raw_write_signed,
917 regcache_raw_write_unsigned): New prototypes.
918
919 2002-08-25 Andrew Cagney <ac131313@redhat.com>
920
921 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
922 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
923 source file dependencies. Cleanup corresponding generator rules.
924
925 2002-08-25 Andrew Cagney <ac131313@redhat.com>
926
927 * regcache.h (register_offset_hack): Declare.
928 (regcache_cooked_read_using_offset_hack): Declare.
929 (regcache_cooked_write_using_offset_hack): Declare.
930
931 * regcache.c (register_offset_hack): New function.
932 (regcache_cooked_read_using_offset_hack): New function.
933 (regcache_cooked_write_using_offset_hack): New function.
934 (regcache_dump): Check that the registers, according to their
935 offset, are packed hard against each other.
936 (cooked_xfer_using_offset_hack): New function.
937
938 2002-08-25 Andrew Cagney <ac131313@redhat.com>
939
940 * regcache.c (struct regcache_descr): Add field register_type.
941 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
942 in as a parameter
943 (init_regcache_descr): Initialize register_type. Pass the descr
944 to init_legacy_regcache_descr. Use register_type instead of
945 REGISTER_VIRTUAL_TYPE.
946 (register_type): New function.
947 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
948 * regcache.h (register_type): Declare.
949
950 2002-08-25 Andrew Cagney <ac131313@redhat.com>
951
952 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
953 instead of deprecated_store_return_value. Fix fallout from
954 2002-08-23 Andrew Cagney <cagney@redhat.com>.
955
956 2002-08-25 Andrew Cagney <ac131313@redhat.com>
957
958 * regcache.c (max_register_size): New function.
959 (init_legacy_regcache_descr): Ensure that max_register_size is
960 large enough for REGISTER_VIRTUAL_SIZE.
961 * regcache.h (max_register_size): Declare.
962
963 2002-08-24 Andrew Cagney <ac131313@redhat.com>
964
965 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
966 store_return_value.
967 (e500_extract_return_value): Change type of valbuf pointer to
968 void.
969
970 2002-08-24 Mark Kettenis <kettenis@gnu.org>
971
972 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
973 workaround.
974
975 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
976 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
977 long long) to prevent compiler warning on 64-bit systems.
978
979 2002-08-23 Andrew Cagney <cagney@redhat.com>
980
981 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
982 (DEPRECATED_STORE_RETURN_VALUE): New method.
983 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
984 * gdbarch.h, gdbarch.c: Re-generate.
985
986 * values.c (set_return_value): Pass current_regcache to
987 STORE_RETURN_VALUE.
988 * arch-utils.h (legacy_store_return_value): Declare.
989 * arch-utils.c (legacy_store_return_value): New function.
990 (legacy_extract_return_value): Update parameters.
991
992 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
993 STORE_RETURN_VALUE.
994 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
995 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
996 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
997 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
998 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
999 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1000 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1001 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1002 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1003 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1004
1005 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1006 * i386-tdep.c (i386_extract_return_value): Update.
1007 * arch-utils.c (legacy_extract_return_value): Update.
1008 * frv-tdep.c (frv_gdbarch_init): Update.
1009 * cris-tdep.c (cris_gdbarch_init): Update.
1010 * d10v-tdep.c (d10v_gdbarch_init): Update.
1011 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1012 * m68k-tdep.c (m68k_gdbarch_init): Update.
1013 * mcore-tdep.c (mcore_gdbarch_init): Update.
1014 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1015 * s390-tdep.c (s390_gdbarch_init): Update.
1016 * sparc-tdep.c (sparc_gdbarch_init): Update.
1017 * sh-tdep.c (sh_gdbarch_init): Update.
1018 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1019 * v850-tdep.c (v850_gdbarch_init): Update.
1020 * avr-tdep.c (avr_gdbarch_init): Update.
1021 * ia64-tdep.c (ia64_gdbarch_init): Update.
1022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1023 * vax-tdep.c (vax_gdbarch_init): Update.
1024 * alpha-tdep.c (alpha_gdbarch_init): Update.
1025 * arm-tdep.c (arm_gdbarch_init): Update.
1026 * mips-tdep.c (mips_gdbarch_init): Update.
1027 * i386-tdep.c (i386_gdbarch_init): Update.
1028
1029 2002-08-23 Andrew Cagney <ac131313@redhat.com>
1030
1031 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1032 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1033
1034 2002-08-24 Mark Kettenis <kettenis@gnu.org>
1035
1036 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1037 problems.
1038
1039 2002-08-23 Joel Brobecker <brobecker@gnat.com>
1040
1041 * infrun.c (handle_inferior_event): Move a comment outside of a
1042 function call, in order to avoid indent reformatting this part
1043 of the code in an unreadable way.
1044
1045 2002-08-23 Grace Sainsbury <graces@redhat.com>
1046
1047 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1048 when breakpoints fail. Move general breakpoint error messages to
1049 insert_breakpoints.
1050 * breakpoint.c (insert_breakpoints): Change warnings when
1051 breakpoints are nto inserted to specify the type. Remove call to
1052 memory_error when hardware breakpoints can't be inserted. Remove
1053 multiple calls to warning so all messages are sent to the user at
1054 once.
1055 (delete_breakpoints): Make insert error messsages more explicit.
1056
1057 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
1058
1059 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1060 gdbserver/ChangeLog.
1061
1062 2002-08-23 Mark Kettenis <kettenis@gnu.org>
1063
1064 * i386-tdep.c: Include "objfiles.h".
1065 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1066 skip_trampoline_code.
1067 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1068 (CPLUS_MARKER): Define to '.'.
1069
1070 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1071 member.
1072 (linux_corefile_thread_callback): Increase args->num_notes.
1073 (linux_make_note_section): Initialize thread_args.num_notes, and
1074 use it to determine whether notes for any threads were created.
1075
1076 2002-08-23 Donn Terry <donnte@microsoft.com>
1077
1078 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1079 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1080 and PCUNKILL.
1081 (write_with_trace): Conditionalize out the switch branch handling
1082 PCSHOLD if the corresponding macro is not defined. Likewise for
1083 PRSABORT and PRSTOP.
1084 This change will be needed by the Interix port.
1085
1086 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1087
1088 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1089 write_register wherever possible instead of manipulating the
1090 register bytes directly.
1091 Assign VALUE_CONTENTS to a variable and use that.
1092 The GPR numbers are now dependent on the architecture.
1093
1094 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1095
1096 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1097 ev_offset fields.
1098 (skip_prologue): Add support for BookE/e500 instructions.
1099 (e500_extract_return_value): New function.
1100 (frame_get_saved_regs): Add support for saving ev registers and
1101 pseudo gpr's.
1102 (e500_store_return_value): New function.
1103 (rs6000_gdbarch_init): Move up default intializations of
1104 deprecated_extract_return_value and store_return_value. Overwrite
1105 init of store_return_value with e500 specific version.
1106 Set extract_return_value for e500.
1107
1108 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
1109
1110 * blockframe.c (generic_call_dummy_register_unwind): Use
1111 regcache_cooked_read to catch cases in which the variable is
1112 stored in a pseudo register.
1113
1114 2002-08-22 Andrew Cagney <cagney@redhat.com>
1115
1116 * NEWS: Mention that the i960 has been made obsolete.
1117 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1118 i960-tdep.c
1119 (remote-nrom.o): Obsolete target.
1120 (remote-nindy.o, i960-tdep.o): Ditto.
1121 * remote-nrom.c: Make file obsolete.
1122 * remote-nindy.c, remote-vx960.c: Ditto.
1123 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1124 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1125 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1126 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1127 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1128 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1129 i960-*-vxworks* obsolete.
1130 * MAINTAINERS: Note that the i960 is obsolete.
1131
1132 2002-08-21 Corinna Vinschen <vinschen@redhat.com
1133
1134 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1135 detach to allow reinitialization.
1136
1137 2002-08-22 Andrew Cagney <ac131313@redhat.com>
1138
1139 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1140 attempt).
1141
1142 2002-08-22 Jim Blandy <jimb@redhat.com>
1143
1144 * coffread.c (coff_symfile_read): Don't try to read the line
1145 number table from disk if the image file doesn't have a symbol
1146 table; we'll never actually look at the info anyway, and Windows
1147 ships DLL's with bogus file offsets for the line number data.
1148
1149 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
1150
1151 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1152 an e500 executable.
1153
1154 2002-08-21 Michael Snyder <msnyder@redhat.com>
1155
1156 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1157 (MSYMBOL_SIZE): Replace macro with function.
1158 (DEFAULT_MIPS_TYPE): Delete unused macro.
1159 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1160 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1161
1162 2002-08-21 Jim Blandy <jimb@redhat.com>
1163
1164 * valops.c (value_cast): Simplify and correct logic for doing a
1165 static cast from a pointer to a base class to a pointer to a
1166 derived class.
1167
1168 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1169
1170 * infcmd.c (default_print_registers_info): Replace
1171 do_registers_info.
1172 (registers_info): Use gdbarch_print_registers_info instead of
1173 DO_REGISTERS_INFO.
1174 * inferior.h (default_print_registers_info): Replace
1175 do_registers_info.
1176 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1177 (DO_REGISTERS_INFO): Change to a predicate function.
1178 * gdbarch.h, gdbarch.c: Regenerate.
1179
1180 2002-08-21 Keith Seitz <keiths@redhat.com>
1181
1182 * gdb-events.sh: Add target-changed event.
1183 * gdb-events.c: Regenerated.
1184 * gdb-events.c: Regenerated.
1185 * valops.c (value_assign): Add target-changed event notification
1186 to inlval_register, lval_memory, and lval_reg_frame_relative.
1187
1188 2002-08-21 Joel Brobecker <brobecker@gnat.com>
1189
1190 * NEWS: Add an entry regarding the improvement of the next/step
1191 operation on Alpha Tru64 multi-processor machines.
1192
1193 2002-08-21 Andrew Cagney <ac131313@redhat.com>
1194
1195 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1196 directores.
1197 * Makefile.in: Update all _h macro definitions.
1198 * Makefile.in (install-gdbtk): Move to install section.
1199 (rdi-share/libangsd.a): Move to end of file.
1200
1201 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1202
1203 * frame.c (frame_register_unwind): When a register, set addrp to
1204 the register's byte.
1205
1206 2002-08-20 Michael Snyder <msnyder@redhat.com>
1207
1208 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1209 used locally, so move them from the target machine header to here.
1210 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1211 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1212 Make static.
1213 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1214
1215 2002-08-20 Andrew Cagney <cagney@redhat.com>
1216
1217 * NEWS: Mention that the Apollo line was made obsolete.
1218 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1219 m68*-hp-hpux* obsolete.
1220 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1221 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1222 * buildsym.c (make_blockvector): Make static.
1223 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1224 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1225 (ALLDEPFILES): Remove dstread.c.
1226 (dstread.o): Obsolete make rule.
1227 * dstread.c: Makefile obsolete.
1228 * dst.h: Ditto.
1229 * config/m68k/hp300hpux.mt: Ditto.
1230 * config/m68k/hp300hpux.mh: Ditto.
1231 * config/m68k/hp300bsd.mt: Ditto.
1232 * config/m68k/hp300bsd.mh: Ditto.
1233 * config/m68k/apollo68b.mt: Ditto.
1234 * config/m68k/apollo68v.mh: Ditto.
1235 * config/m68k/apollo68b.mh: Ditto.
1236
1237 2002-08-20 Michael Snyder <msnyder@redhat.com>
1238
1239 * mips-tdep.c (mips_in_return_stub): Make static.
1240 (mips_gdbarch_init): Set in_solib_return_trampoline.
1241 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1242
1243 2002-08-20 Michael Snyder <msnyder@redhat.com>
1244
1245 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1246 * gdbarch.c, gdbarch.h: Regenerate.
1247 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1248 Add.
1249 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1250
1251 2002-08-20 Michael Snyder <msnyder@redhat.com>
1252
1253 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1254 (mips_gdbarch_init): Set skip_trampoline_code,
1255 in_solib_call_trampoline.
1256 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1257 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1258
1259 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1260
1261 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1262
1263 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1264 vector type for ev registers.
1265 (e500_pseudo_register_read): New function.
1266 (e500_pseudo_register_write): New function.
1267 (e500_dwarf2_reg_to_regnum): New function.
1268 (PPC_UISA_NOFP_SPRS): New macro.
1269 (PPC_EV_REGS): New macro.
1270 (PPC_GPRS_PSEUDO_REGS): New macro.
1271 (registers_e500): New register set for e500.
1272 (variants): Add e500 variant.
1273 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1274 before setting architectural dependent variations. Initialize ev
1275 registers numbers. Add case for e500 architecture. Set the
1276 number of pseudo registers.
1277
1278 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1279
1280 * rs6000-tdep.c: Clean up comments.
1281
1282 2002-08-20 Andrew Cagney <cagney@redhat.com>
1283
1284 * h8300-tdep.c: Re-indent file.
1285
1286 2002-08-20 Jim Blandy <jimb@redhat.com>
1287
1288 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1289 default for this.
1290
1291 2002-08-20 Keith Seitz <keiths@redhat.com>
1292
1293 * breakpoints.c (watch_command_1): Use internal breakpoint
1294 when setting a watchpoint_scope breakpoint.
1295
1296 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1297
1298 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1299 (build_builtin_type_vec64i): Ditto.
1300 (build_builtin_type_vec128): Ditto.
1301 (build_builtin_type_vec128i): Ditto.
1302
1303 2002-08-19 Michael Snyder <msnyder@redhat.com>
1304
1305 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1306 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1307 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1308 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1309 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1310 CALL_DUMMY_ADDRESS): Delete.
1311 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1312 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1313 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1314 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1315 push_return_address.
1316 (mips_register_raw_size, mips_eabi_use_struct_convention,
1317 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1318 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1319 mips_init_extra_frame_info, mips_eabi_push_arguments,
1320 mips_n32n64_push_arguments, mips_push_return_address,
1321 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1322 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1323
1324 2002-08-19 Michael Snyder <msnyder@redhat.com>
1325
1326 * mips-tdep.c (mips_frame_num_args): New function.
1327 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1328 frame_saved_pc, frame_args_address, frame_locals_address,
1329 frame_num_args, and frame_args_skip.
1330 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1331 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1332 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1333 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1334
1335 2002-08-20 Michael Snyder <msnyder@redhat.com>
1336
1337 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1338 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1339 * mips-tdep.c (mips_store_struct_return): New function.
1340 (mips_extract_struct_value_address): New function.
1341 (mips_gdbarch_init): Set store_struct_return and
1342 extract_struct_value_address.
1343
1344 2002-08-20 David Carlton <carlton@math.stanford.edu>
1345
1346 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1347 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1348 (read_file_scope): Check that line_header is nonzero before
1349 decoding macro information.
1350
1351 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1352
1353 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1354 flag the general-purpose registers as floating-point on targets
1355 that don't support the floating-point registers.
1356
1357 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1358
1359 * rs6000-tdep.c (altivec_register_p): Delete.
1360 (rs6000_do_altivec_registers): Delete.
1361 (rs6000_altivec_registers_info): Delete.
1362 (rs6000_do_registers_info): Delete.
1363 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1364 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1365
1366 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1367
1368 * infcmd.c (do_registers_info): Print vector registers in hex
1369 format only.
1370 (print_vector_info): Check that printing registers
1371 makes sense.
1372 (print_float_info): Ditto.
1373
1374 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1375
1376 * mips-tdep.c (mips_gdbarch_init): Update.
1377 (mips_o32_extract_return_value): Rewrite.
1378 (mips_o32_store_return_value): Rewrite.
1379 (mips_o32_xfer_return_value): New function.
1380 (mips_xfer_register): Tweak debug print message. Allow for
1381 buf_offset when dumping the value transfered.
1382
1383 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1384
1385 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1386 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1387 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1388 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1389 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1390
1391 2002-08-14 Michael Snyder <msnyder@redhat.com>
1392
1393 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1394
1395 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1396
1397 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1398 register.
1399 (P): New macro to define a register as a pseudo register.
1400 (R, R4, R8, R16, FR32, R64, R0): Updated.
1401 (struct variant): Add new fields for number of pseudo registers
1402 and number of total registers.
1403 (tot_num_registers): New macro replacing....
1404 (num_registers): ...deleted macro.
1405 (num_registers): New function.
1406 (num_pseudo_registers): New function.
1407 (variants): Update all variants to intialize new fields correctly.
1408 Postpone initialization of number of pseudo regs and real regs.
1409 (init_variants): New function.
1410 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1411 registers offsets.
1412
1413 2002-08-19 David Carlton <carlton@math.stanford.edu>
1414
1415 * valops.c (search_struct_field): Change error message to treat
1416 return value of 0 from value_static_field as meaning that field is
1417 optimized out.
1418 (value_struct_elt_for_reference): Ditto.
1419 * values.c (value_static_field): Treat an unresolved location the
1420 same as a nonexistent symbol. Fix PR gdb/635.
1421 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1422 enclosed. Fix PR gdb/574.
1423 * MAINTAINERS: Add self to Write After Approval list.
1424
1425 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1426
1427 * mips-tdep.c (mips_xfer_register): New function.
1428 (mips_n32n64_extract_return_value): Rewrite.
1429 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1430 instead of deprecated_extract_return_value.
1431
1432 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1433
1434 * rs6000-tdep.c (TDEP): Delete macro.
1435 (branch_dest): Replace use of TDEP macro with its body.
1436 (rs6000_pop_frame): Ditto.
1437 (rs6000_push_arguments): Ditto.
1438 (rs6000_skip_trampoline_code): Ditto.
1439 (rs6000_frame_saved_pc): Ditto.
1440 (rs6000_frame_chain): Ditto.
1441 (rs6000_register_name): Ditto.
1442 (rs6000_register_byte): Ditto.
1443 (rs6000_register_raw_size): Ditto.
1444 (rs6000_register_virtual_type): Ditto.
1445 (rs6000_register_convertible): Ditto.
1446 (rs6000_convert_from_func_ptr_addr): Ditto.
1447
1448 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1451 conditionally.
1452 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1453 MIPS_LINUX_JB_ELEMENT_SIZE.
1454 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1455 for MAX_REGISTER_RAW_SIZE arrays.
1456 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1457 MIPS_LINUX_JB_ELEMENT_SIZE.
1458
1459 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1460
1461 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1462
1463 2002-08-19 Aidan Skinner <aidan@velvet.net>
1464
1465 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1466 ada-valprint.c ada-tasks.c.
1467 (YYFILES): Add ada-exp.y.
1468 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1469 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1470 (ada-exp.tab.o): New target.
1471
1472 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1473
1474 * regcache.c (regcache_xfer_part): New function.
1475 (regcache_raw_read_part): New function.
1476 (regcache_raw_write_part): New function.
1477 (regcache_cooked_read_part): New function.
1478 (regcache_cooked_write_part): New function.
1479 * regcache.h (regcache_raw_read_part): Declare.
1480 (regcache_raw_write_part): Declare.
1481 (regcache_cooked_read_part): Declare.
1482 (regcache_cooked_write_part): Declare.
1483
1484 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * remote.c (remote_open_1): Add async_p.
1487 (remote_async_open_1): Delete.
1488 (open_remote_target): Delete.
1489 (remote_open, extended_remote_open): Update calls to remote_open_1.
1490 (remote_async_open, extended_remote_async_open): Call
1491 remote_open_1 instead of remote_async_open_1.
1492
1493 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1494
1495 * blockframe.c: Fix a few coding standard violations.
1496
1497 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1498
1499 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1500 here from ...
1501 * config/i386/tm-i386sco5.h: ... here. File removed.
1502 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1503
1504 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1505 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1506 (TM_FILE): Set to tm-i386.h.
1507 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1508 * config/i386/tm-i386v.h: Remove file.
1509 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1510 instead of "i386/tm-i386v.h".
1511 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1512 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1513 "i386/tm-i386v.h".
1514 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1515 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1516 "i386/tm-i386.h".
1517
1518 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1519
1520 * config/i386/nm-i386v.h: Add protection against
1521 multiple-inclusion.
1522 (i386_register_u_addr): Remove prototype.
1523 (register_u_addr): New prototype.
1524 (REGISTER_U_ADDR): Redefine accordingly.
1525 * i386v-nat.c: Improve several comments.
1526 (i386_register_u_addr): Change signature and rename to
1527 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1528 ubase variable.
1529
1530 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1531
1532 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1533 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1534 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1535 deprecated_extract_return_value.
1536 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1537 rename mips_o32o64_push_arguments.
1538 (mips_gdbarch_init): Update.
1539 (mips_extract_return_value): Delete.
1540 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1541 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1542 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1543 (mips_n32n64_extract_return_value): Clone
1544 mips_extract_return_value.
1545 (mips_store_return_value): Delete.
1546 (mips_o32_store_return_value): Clone mips_store_return_value.
1547 (mips_o64_store_return_value): Clone mips_store_return_value.
1548 (mips_eabi_store_return_value): Clone mips_store_return_value.
1549 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1550
1551 2002-08-18 Aidan Skinner <aidan@velvet.net>
1552
1553 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1554 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1555
1556 2002-08-18 Aidan Skinner <aidan@velvet.net>
1557
1558 * ada-lang.c: Run through gdb_indent.sh.
1559 * ada-lang.h: Run through gdb_indent.sh.
1560 * ada-tasks.c: Run through gdb_indent.sh.
1561 * ada-typeprint.c: Run through gdb_indent.sh.
1562 * ada-valprint.c: Run through gdb_indent.sh.
1563
1564 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1565
1566 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1567 ABI.
1568
1569 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1570
1571 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1572
1573 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1574 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1575
1576 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1577 write_register_gen instead of write_register_bytes.
1578
1579 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1580 i[3456]-*-osf1mk* configurations have been made obsolete.
1581 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1582 i[3456]86-*-osf1mk* hosts obsolete.
1583 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1584 targets obsolete.
1585 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1586 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1587 config/i386/i386m3.mt, config/i386/nm-m3.h,
1588 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1589 config/i386/i386mk.mh, config/i386/i386mk.mt,
1590 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1591 obsolete.
1592 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1593 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1594 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1595
1596 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1597
1598 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1599 (hppa_value_returned_from_stack): Declare.
1600 (hppa_extract_return_value): Declare.
1601 * config/pa/hppa.mt: New file.
1602 * configure.tgt: Recognize hppa*-*-*.
1603 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1604
1605 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1606
1607 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1608 comment.
1609
1610 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1611
1612 * top.c (gdb_rl_operate_and_get_next): Make sure
1613 operate-and-get-next functions correctly even when the history
1614 list is completely filled.
1615
1616 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1617
1618 * MAINTAINERS (Target Instruction Set Architectures): Rename
1619 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1620 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1621 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1622 already listed under Host/Native.
1623
1624 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1625 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1626 mips*-*-*.
1627
1628 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1629
1630 * config/ia64/ia64.mt: New file.
1631 * config/alpha/alpha.mt: New file.
1632 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1633 ia64-linux-gnu. Mention that ia64-elf is broken.
1634 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1635
1636 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1637
1638 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1639 generic_func_frame_valid instead of func_frame_valid.
1640
1641 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1642
1643 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1644 procfs appears to be broken when debugging on multi-processor
1645 machines. So enable software single stepping in order to avoid
1646 using the procfs interface to do next/step operations, using
1647 internal breakpoints instead.
1648
1649 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1650 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1651 make this pc address equal to the value it would have if the
1652 system stepping capability was used. Also set a new flag used
1653 to ensure that we don't readjust the PC one more time later.
1654
1655 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1656 address by DECR_PC_AFTER_BREAK when software single step is
1657 in use for this architecture, as this has already been taken
1658 care of in handle_inferior_event().
1659
1660 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1661
1662 * infrun.c (handle_inferior_event): Minor reformatting, to make
1663 a rather long condition expression easier to read.
1664
1665 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1666
1667 * Makefile.in (gdbtk.o): Move to end of file.
1668 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1669 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1670 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1671 (gdbtk-wrapper.o, gdbres.o): Ditto.
1672
1673 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1674
1675 * Makefile.in (copying.o): Separate out compile rule.
1676 (hpux-thread.o, procfs.o, signals.o): Ditto.
1677 (v850ice.o, z8k-tdep.o): Ditto.
1678 (tui-file.o): Move to TUI section.
1679 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1680 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1681
1682 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1683
1684 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1685 skip_trampoline_code, for better namespace-proofing.
1686
1687 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1688
1689 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1690
1691 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1692
1693 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1694
1695 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1696 signal, check whether we hit a breakpoint before checking for a
1697 single step breakpoint. Otherwise, GDB fails to notice that a
1698 breakpoint has been hit when stepping onto a breakpoint.
1699
1700 2002-08-16 Keith Seitz <keiths@redhat.com>
1701
1702 * gdb-events.sh (clear_gdb_event_hooks): New function.
1703 * gdb-events.c: Regenerate.
1704 * gdb-events.h: Regenerate.
1705
1706 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1707
1708 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1709 not_a_sw_breakpoint.
1710 * breakpoint.h (bpstat_stop_status): Add parameter names.
1711
1712 2002-08-16 Grace Sainsbury <graces@redhat.com>
1713
1714 * remote.c (remote_insert_hw_breakpoint)
1715 (remote_remove_hw_breakpoint): Fix calculation of length field
1716 for Z-packet.
1717
1718 2002-08-15 Michael Snyder <msnyder@redhat.com>
1719
1720 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1721 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1722 (supply_fpregset): Ditto.
1723
1724 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1725 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1726 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1727 (TARGET_READ_SP): Delete.
1728 (DO_REGISTERS_INFO): Delete.
1729 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1730 Delete.
1731 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1732 from macros to functions.
1733
1734 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1735 (mips_register_convertible, mips_register_convert_to_virtual,
1736 mips_register_convert_to_raw): Make static.
1737 (mips_read_sp): New function.
1738 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1739 (mips_do_registers_info): Make static.
1740 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1741 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1742 (mips_register_convert_from_type, mips_register_convert_to_type):
1743 New functions.
1744 (mips_gdbarch_init): Set up function_start_offset,
1745 register_virtual_size, pc_in_sigtramp.
1746
1747 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1748
1749 * infcmd.c (vector_info): New function.
1750 (_initialize_infcmd): Add command "info vector".
1751 (print_vector_info): New function.
1752
1753 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1754 * gdbarch.h, gdbarch.c: Regenerate.
1755
1756 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1757
1758 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1759 ``print_all''. Only print vector registers when ``print_all''.
1760
1761 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1762
1763 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1764 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1765
1766 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1767 Add `args' parameter.
1768 * gdbarch.h, gdbarch.c: Regenerate.
1769
1770 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1771
1772 * infcmd.c (float_info): Call print_float_info.
1773 (print_float_info): New function. By default, print the
1774 floating-point registers.
1775
1776 * arch-utils.h (default_print_float_info): Delete declaration.
1777 * arch-utils.c (default_print_float_info): Delete function.
1778
1779 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1780
1781 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1782 out define.
1783
1784 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1785 FRAME.
1786
1787 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1788 * configure.host: Make i[3456]86-*-aix host obsolete.
1789 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1790 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1791 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1792 config/i386/xm-i386aix.h: Make files obsolete.
1793 * i386aix-nat.c: Make file obsolete.
1794 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1795 (i386aix-nat.o): Make target obsolete.
1796
1797 * config/i386/nm-gnu.h: Removed.
1798 * config/i386/nm-i386gnu.h: New file.
1799 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1800 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1801 Moved here from ...
1802 * config/i386/tm-i386gnu.h: ... here. Removed.
1803 * config/i386/xm-i386gnu.h: Removed.
1804 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1805 (NAT_FILE): Set to nm-i386gnu.h.
1806 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1807 * i386-tdep.c: New file.
1808 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1809 (i386gnu-tdep.o): Specify dependencies.
1810
1811 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1812
1813 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1814 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1815 Adjust a few comments to reflect reality a bit closer.
1816 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1817 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1818 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1819 target_insert_watchpoint, target_remove_watchpoint):
1820 Move defines to ...
1821 * config/i386/nm-i386sco5.h: ... here.
1822 (kernel_u_size): Add prototype. Improve a few comments and add
1823 protection against multiple inclusion.
1824
1825 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1826 out define.
1827
1828 * uw-thread.c (SP_ARG0): Define if not already defined.
1829 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1830
1831 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1832
1833 * config/i386/tm-i386.h: Don't include "regcache.h".
1834
1835 * i387-tdep.h (i387_print_float_info): New prototype.
1836 * i387-tdep.c (print_i387_value, print_i387_ext,
1837 print_i387_status_word, print_i387_control_word): Add `struct
1838 ui_file *' argument and use it for output.
1839 (i387_print_float_info): Renamed from i387_float_info. Add
1840 `struct gdbarch *' and `struct ui_file *' arguments and use the
1841 latter for output.
1842 * i386-tdep.c: Include "i387-tdep.h".
1843 (i386_gdbarch_init): Set print_float_info.
1844 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1845 (FLOAT_INFO): Remove define.
1846
1847 2002-08-13 Michael Snyder <msnyder@redhat.com>
1848
1849 * mips-tdep.c (mips_push_arguments): Rename to
1850 mips_eabi_push_arguments, and tune for EABI.
1851 (MIPS_REGS_HAVE_HOME_P): Delete.
1852 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1853 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1854 Delete references to mips_regs_have_home_p.
1855
1856 2002-08-14 Keith Seitz <keiths@redhat.com>
1857
1858 * Makefile.in (install-gdbtk): Create insight plugin directory.
1859 Install plugins.tcl file.
1860
1861 2002-08-14 Keith Seitz <keiths@redhat.com>
1862
1863 * configure.in: Move SUBDIRS to near top of the file so that
1864 --enable options may add things to it.
1865 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1866 * configure: Regenerate.
1867
1868 2002-08-13 Michael Snyder <msnyder@redhat.com>
1869
1870 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1871 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1872 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1873
1874 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1875
1876 * vax-tdep.c (vax_get_saved_register): Delete function.
1877 (vax_gdbarch_init): Update.
1878 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1879 (ns32k_gdbarch_init): Update.
1880 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1881 (alpha_gdbarch_init): Update.
1882
1883 2002-08-13 Andrew Cagney <cagney@redhat.com>
1884
1885 * regcache.c (init_regcache_descr): Overallocate the
1886 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1887 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1888 nr_raw_registers.
1889 (set_register_cached): Add range checking assertions. Use
1890 current_regcache.
1891
1892 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1893
1894 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1895 numbers for MMX registers.
1896
1897 2002-08-13 Andrew Cagney <cagney@redhat.com>
1898
1899 * i386-tdep.c (i386_gdbarch_init): Use
1900 generic_unwind_get_saved_register.
1901
1902 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1903
1904 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1905 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1906 target vector.
1907 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1908 Delete. Add comment regarding this now-deleted target method.
1909
1910 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1911
1912 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1913 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1914 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1915 real PC and the page number (if it's within the memory bank window).
1916 (m68hc11_pseudo_register_write): Likewise when saving.
1917 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1918 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1919 (m68hc11_register_raw_size): And use 32-bit for it.
1920 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1921 16K memory bank is used by the prog; also use the virtual pc.
1922
1923 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1924
1925 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1926 (m68hc11_gdbarch_init): Install it in gdbarch.
1927 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1928 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1929 (MSYMBOL_SIZE): New for documentation.
1930 (insn_return_kind): Enum to specify how a function returns.
1931 (frame_extra_info): Cleanup and record the return mode.
1932 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1933 register in address computation.
1934 (m68hc11_get_return_insn): New to obtain the return instruction used
1935 by the function.
1936 (m68hc11_frame_init_saved_regs): Take into account the return
1937 instruction used by the function for far and interrupt functions.
1938 (m68hc11_init_extra_frame_info): Take into account page register.
1939 (m68hc11_frame_args_address): Adjust according to the return mode.
1940 (show_regs): Print page register only when it's used.
1941
1942 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1943
1944 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1945 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1946 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1947 registers.
1948 (m68hc11_register_raw_size): Likewise.
1949
1950 2002-08-13 Andrew Cagney <cagney@redhat.com>
1951
1952 * i386-tdep.c (i386_register_name): Handle mmx registers.
1953 (mmx_regnum_p): New function.
1954 (i386_mmx_names): New array.
1955 (mmx_num_regs): New variable.
1956 (i386_pseudo_register_read): New function.
1957 (i386_pseudo_register_write): New function.
1958 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1959
1960 * regcache.c (regcache_raw_read_unsigned): New function.
1961 (regcache_raw_read_signed): New function.
1962 * regcache.h (regcache_raw_read_unsigned): Declare.
1963 (regcache_raw_read_signed): Declare.
1964
1965 2002-08-13 Andrew Cagney <cagney@redhat.com>
1966
1967 * regcache.c (regcache_raw_read_as_address): Delete function.
1968 (regcache_cooked_read_signed): New function.
1969 (regcache_cooked_read_unsigned): New function.
1970 * regcache.h (regcache_cooked_read_signed): Declare.
1971 (regcache_cooked_read_unsigned): Declare.
1972 (regcache_raw_read_as_address): Delete declaration.
1973
1974 * blockframe.c (generic_read_register_dummy): Use
1975 regcache_cooked_read_unsigned.
1976 * i386-tdep.c (i386_extract_struct_value_address): Use
1977 regcache_cooked_read_unsigned.
1978
1979 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1980
1981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1982 double sizes according to ELF ABI flags.
1983 (gdbarch_tdep): Record elf_flags.
1984
1985 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1986
1987 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1988 (m6812_prolog): They can appear in 68HC12 function prologue.
1989 (m68hc11_frame_chain): Cleanup.
1990
1991 2002-08-12 Andrew Cagney <cagney@redhat.com>
1992
1993 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1994 declarations.
1995 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1996 (i386_linux_register_raw_size): Delete function.
1997 (i386_linux_init_abi): Update.
1998 * i386-tdep.c (i386_register_raw_size): Delete function.
1999 (i386_register_byte): Delete function.
2000 (i386_gdbarch_init): Update.
2001 (i386_register_size): Delete array.
2002 (i386_register_offset): Delete array.
2003
2004 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2005 (REGISTER_RAW_SIZE): Delete macro.
2006 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2007 (REGISTER_BYTE): Delete macro.
2008
2009 2002-08-11 Aidan Skinner <aidan@velvet.net>
2010
2011 * ada-lang.c (ada_lookup_partial_symbol)
2012 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2013 prototype names so that grep ^func works properly.
2014
2015 * ada-lang.c (ada_array_element_type)
2016 (ada_lookup_partial_symbol): Fix typos in parameter list.
2017
2018 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2019 Fix prototype names so that grep ^func works properly.
2020
2021 2002-08-10 Andrew Cagney <cagney@redhat.com>
2022 Elena Zannoni <ezannoni@redhat.com>
2023 Martin M. Hunt <hunt@redhat.com>
2024
2025 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2026 (build_builtin_type_vec128i): Set the vector bit.
2027 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2028 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2029 (build_builtin_type_vec64): New function.
2030 (build_builtin_type_vec64i): New function.
2031 (build_gdbtypes): Initialize builtin_type_vec64 and
2032 builtin_type_vec64i.
2033
2034 2002-08-09 Andrew Cagney <cagney@redhat.com>
2035
2036 * regcache.c (regcache_dump): Compare the register offset
2037 with REGISTER_BYTE.
2038 * arch-utils.c (generic_register_byte): New function.
2039 * arch-utils.h (generic_register_byte): Declare.
2040 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2041 * gdbarch.h, gdbarch.c: Regenerate.
2042
2043 2002-08-09 Andrew Cagney <cagney@redhat.com>
2044
2045 * regcache.c: Include "gdbcmd.h"
2046 (_initialize_regcache): Add commands "maintenance print
2047 registers", "maintenance print raw-registers" and "maintenance
2048 print cooked-registers".
2049 (enum regcache_dump_what): Define.
2050 (dump_endian_bytes): New function.
2051 (regcache_dump): New function.
2052 (regcache_print): New function.
2053 (maintenance_print_registers): New function.
2054 (maintenance_print_raw_registers): New function.
2055 (maintenance_print_cooked_registers): New function.
2056 * Makefile.in (regcache.o): Update dependencies.
2057
2058 2002-08-09 Michael Snyder <msnyder@redhat.com>
2059
2060 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2061 (mips_push_arguments): Correct some comments. Use paddr_nz
2062 for printing addresses in debug output. Replace static
2063 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2064 (mips_n32n64_push_arguments): New function, cloned from
2065 mips_push_arguments and tuned for the n32/n64 ABI.
2066 (mips_push_register): Buffer needs dynamic allocation.
2067 (mips_print_register): Ditto.
2068 (do_gp_register_row): Ditto.
2069 (mips_store_return_value): Ditto.
2070 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2071
2072 2002-08-09 Don Howard <dhoward@redhat.com>
2073
2074 * memattr.c (mem_info_command): Print special case of upper bound
2075 as max CORE_ADDR + 1.
2076
2077 2002-08-08 Michael Snyder <msnyder@redhat.com>
2078
2079 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2080 returns structs by ref if they're too big to fit in two registers.
2081
2082 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2083
2084 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2085 saved regs value.
2086 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2087 mips_find_saved_regs().
2088 (mips_pop_frame): Likewise.
2089
2090 2002-08-09 Kevin Buettner <kevinb@redhat.com>
2091
2092 * blockframe.c (frame_saved_regs_register_unwind): Revise
2093 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2094 frames are in use.
2095
2096 2002-08-09 Grace Sainsbury <graces@redhat.com>
2097
2098 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2099 T-packets; the 'a' is not taken as a register number.
2100 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2101 (remote_stopped_data_address): New functions; add to target
2102 vector.
2103 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2104 prototypes to match other implementations of this
2105 function. replace integer argument with pointer -- the length
2106 field in the Z-packet is the length of what is pointed to or 1 if
2107 pointer is null. Add to target vector.
2108 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2109 target vector.
2110
2111 From Mark Salter:
2112 * remote.c (remote_wait): Add support to extract optional
2113 watchpoint information from T-packet. Ignore unrecognized
2114 optional info in T-packet.
2115 (remote_async_wait): Ditto.
2116
2117 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
2118
2119 * cli/cli-dump.c: Change fopen modes to use binary open modes
2120 as defined in include/fopen-bin.h throughout.
2121
2122 2002-08-08 Michael Snyder <msnyder@redhat.com>
2123
2124 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2125
2126 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2127
2128 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2129 assertion failure by returning early after a warning.
2130
2131 2002-08-08 Kevin Buettner <kevinb@redhat.com>
2132
2133 * mips-tdep.c (mips_find_saved_regs): Make static.
2134 (mips_frame_init_saved_regs): New function.
2135 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2136 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2137 (mips_find_saved_regs): Delete declaration.
2138
2139 2002-08-08 Grace Sainsbury <graces@redhat.com>
2140
2141 * remote.c (remote_wait, remote_async_wait): Change
2142 thread_num from int to ULONGEST.
2143 (unpack_varlen_hex): Change result parameter from
2144 int * to ULONGEST *.
2145
2146 2002-08-08 Andrew Cagney <ac131313@redhat.com>
2147
2148 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2149 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2150 powerpc*-*-*.
2151 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2152
2153 2002-08-08 Andrew Cagney <cagney@redhat.com>
2154
2155 * gcore.c (override_derive_stack_segment): Delete variable.
2156 (preempt_derive_stack_segment): Delete function.
2157 (derive_stack_segment): Delete function.
2158 (default_derive_stack_segment): Renamed to derive_stack_segment.
2159 (override_derive_heap_segment): Delete variable.
2160 (preempt_derive_heap_segment): Delete function.
2161 (derive_heap_segment): Delete function.
2162 (default_derive_heap_segment): Rename to derive_heap_segment.
2163
2164 2002-08-06 Michael Snyder <msnyder@redhat.com>
2165
2166 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2167 * mips-tdep.c (mips_EABI_use_struct_convention,
2168 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2169 New functions. (mips_use_struct_convention): Delete.
2170 (mips_gdbarch_init): set use_gdbarch_convention.
2171
2172 2002-08-06 Michael Snyder <msnyder@redhat.com>
2173
2174 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2175 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2176 mips_o32_reg_struct_has_addr): New functions.
2177 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2178
2179 2002-08-07 Andrew Cagney <ac131313@redhat.com>
2180
2181 * regcache.c (pseudo_register): Delete function.
2182 (fetch_register): Delete function.
2183 (store_register): Delete function.
2184 (regcache_raw_read, legacy_read_register_gen): Use
2185 target_fetch_registers instead of fetch_register.
2186 (legacy_write_register_gen, regcache_raw_write): Use
2187 target_store_register instead of store_register.
2188 (write_register_bytes): Ditto.
2189
2190 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2191 (STORE_PSEUDO_REGISTER): Delete.
2192 * gdbarch.h, gdbarch.c: Regenerate.
2193
2194 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
2195
2196 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2197 write dump file binary.
2198
2199 2002-08-05 Michael Snyder <msnyder@redhat.com>
2200
2201 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2202 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2203 (mips_gdbarch_init): Set N32 target to be mips64.
2204
2205 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2206
2207 * frame.c (find_saved_register): Break out of loop once saved
2208 register address is found. Don't mention sparc in loop comment
2209 anymore.
2210
2211 2002-08-06 Kevin Buettner <kevinb@redhat.com>
2212
2213 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2214 mips_default_saved_regsize to 8.
2215
2216 2002-08-06 Andrew Cagney <ac131313@redhat.com>
2217
2218 * gcore.c: Do not include <sys/procfs.h>.
2219 * Makefile.in (gcore.o): Update dependencies.
2220
2221 2002-08-06 Andrew Cagney <cagney@redhat.com>
2222
2223 * configure.tgt: Make arc-*-* obsolete.
2224 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2225 * MAINTAINERS: Make arc-elf obsolete.
2226 * arc-tdep.c: Make file obsolete.
2227 * config/arc/arc.mt: Ditto.
2228 * config/arc/tm-arc.h: Ditto.
2229
2230 2002-08-05 Theodore A. Roth <troth@verinet.com>
2231
2232 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
2233
2234 2002-08-05 Andrew Cagney <ac131313@redhat.com>
2235
2236 * mcore-tdep.c (mcore_gdbarch_init): Use
2237 generic_unwind_get_saved_register instead of
2238 generic_get_saved_register.
2239 * v850-tdep.c (v850_gdbarch_init): Ditto.
2240 * frv-tdep.c (frv_gdbarch_init): Ditto.
2241 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2242 * s390-tdep.c (s390_gdbarch_init): Ditto.
2243 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2244 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2245 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2246
2247 2002-08-05 Joel Brobecker <brobecker@gnat.com>
2248
2249 * objfiles.h: Add missing #include "symfile.h"
2250
2251 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2252
2253 2002-08-04 Andrew Cagney <ac131313@redhat.com>
2254
2255 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2256 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2257 of FIELD_BITSIZE.
2258
2259 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
2260
2261 * NEWS: Cleanup and nitpick.
2262
2263 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2264
2265 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2266
2267 2002-08-03 Andrew Cagney <ac131313@redhat.com>
2268
2269 * Makefile.in (gdbtk-bp.o): Update dependencies.
2270 (gdbtk-register.o): Ditto.
2271 (gdbtk-varobj.o): Ditto.
2272
2273 2002-08-03 Andrew Cagney <cagney@redhat.com>
2274
2275 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2276 m68hc11_fetch_pseudo_register.
2277 (m68hc11_pseudo_register_write): Replace
2278 m68hc11_store_pseudo_register.
2279 (m68hc11_gdbarch_init): Update.
2280
2281 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2282
2283 * gdbarch.sh: Include "gdb_string.h".
2284 * gdbarch.c: Regenerate.
2285
2286 * regcache.c: Include "gdb_string.h".
2287 * ax-general.c: Ditto.
2288 * varobj.c: Ditto.
2289 * std-regs.c: Ditto.
2290 * fbsd-proc.c: Ditto.
2291 * thread.c: Ditto.
2292
2293 * Makefile.in (regcache.o): Update dependencies.
2294 (thread.o, gdbarch.o): Ditto.
2295 (ax-general.o, gdbarch.o): Ditto.
2296 (varobj.o, std-regs.o): Ditto.
2297 (fbsd-proc.o): Specify dependencies.
2298
2299 2002-08-02 Andrew Cagney <cagney@redhat.com>
2300
2301 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2302 regnum.
2303 (regcache_cooked_write): Ditto.
2304
2305 2002-08-02 Andrew Cagney <ac131313@redhat.com>
2306
2307 * regcache.c (regcache_cooked_read): New function.
2308 (regcache_cooked_write): New function.
2309 (read_register_gen): Rewrite using regcache_cooked_read.
2310 (write_register_gen): Rewrite using regcache_cooked_write.
2311
2312 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2313 Declare.
2314
2315 2002-08-02 Andrew Cagney <cagney@redhat.com>
2316
2317 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2318 Replace the architecture methods register_read and register_write.
2319 * gdbarch.h, gdbarch.c: Regenerate.
2320 * regcache.c (init_regcache_descr): Update.
2321 (read_register_gen): Update.
2322 (write_register_gen): Update.
2323 (supply_register): Update comment.
2324
2325 * sh-tdep.c (sh_gdbarch_init): Update.
2326 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2327 `regcache' and `gdbarch' parameters. Make `buffer' a void
2328 pointer. Update code.
2329 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2330 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2331 void pointer. Update code.
2332 (sh64_register_write): Delete.
2333 (sh4_register_read): Delete.
2334 (sh64_register_read): Delete.
2335 (sh4_register_write): Delete.
2336 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2337 void pointer, `to' parameter a void pointer.
2338 (sh_sh64_register_convert_to_raw): Ditto.
2339
2340 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2341
2342 * mips-tdep.c (mips_register_virtual_type): Use architecture
2343 invariant return values.
2344
2345 2002-08-01 Andrew Cagney <cagney@redhat.com>
2346
2347 * linux-proc.c: Include "gdb_string.h".
2348 * Makefile.in (linux-proc.o): Update dependency list.
2349
2350 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2351
2352 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2353 comment.
2354
2355 2002-08-01 Grace Sainsbury <graces@redhat.com>
2356
2357 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2358 to_insert_watchpoint, to_remove_watchpoint,
2359 to_stopped_by_watchpoint, to_stopped_data_address,
2360 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2361 target vecctor. Define their corresponding macros so they call
2362 them.
2363
2364 * target.c: Add default and debug versions of for
2365 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2366 to_insert_watchpoint, to_remove_watchpoint,
2367 to_stopped_by_watchpoint, to_stopped_data_address,
2368 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2369
2370 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2371
2372 * mips-tdep.c (mips_register_virtual_type): New function.
2373 (mips_gdbarch_init): Register mips_register_virtual_type()
2374 with gdbarch machinery.
2375 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2376 this file instead of tm-bigmips.h.
2377 (MIPS_REGSIZE): Delete this macro.
2378 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2379 multiarch version in mips-tdep.c will be found.
2380
2381 2002-08-01 Andrew Cagney <cagney@redhat.com>
2382
2383 * NEWS: Menion that CHILL has been made obsolete.
2384
2385 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2386 * stabsread.c (read_range_type): Ditto.
2387 * gdbtypes.h: Ditto.
2388 * language.c (binop_type_check): Ditto.
2389 (binop_result_type): Ditto.
2390 (integral_type): Ditto.
2391 (character_type): Ditto.
2392 (string_type): Ditto.
2393 (boolean_type): Ditto.
2394 (structured_type): Ditto.
2395 (lang_bool_type): Ditto.
2396 (binop_type_check): Ditto.
2397 * language.h (_LANG_chill): Ditto.
2398 * dwarfread.c (set_cu_language): Ditto.
2399 * dwarfread.c (CHILL_PRODUCER): Ditto.
2400 * dwarfread.c (handle_producer): Ditto.
2401 * expression.h (enum exp_opcode): Ditto.
2402 * eval.c: Ditto for comments.
2403 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2404 * expprint.c (print_subexp): Ditto.
2405 (print_subexp): Ditto.
2406 * valops.c (value_cast): Ditto.
2407 (search_struct_field): Ditto.
2408 * value.h (COERCE_VARYING_ARRAY): Ditto.
2409 * symfile.c (init_filename_language_table): Ditto.
2410 (add_psymbol_with_dem_name_to_list): Ditto.
2411 * valarith.c (value_binop): Ditto.
2412 (value_neg): Ditto.
2413 * valops.c (value_slice): Ditto.
2414 * symtab.h (union language_specific): Ditto.
2415 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2416 (SYMBOL_DEMANGLED_NAME): Ditto.
2417 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2418 * defs.h (enum language): Ditto.
2419 * symtab.c (got_symtab): Ditto.
2420 * utils.c (fprintf_symbol_filtered): Ditto.
2421
2422 * ch-typeprint.c: Make file obsolete.
2423 * ch-valprint.c: Make file obsolete.
2424 * ch-lang.h: Make file obsolete.
2425 * ch-exp.c: Make file obsolete.
2426 * ch-lang.c: Make file obsolete.
2427
2428 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2429 CHILL_LIB.
2430 (TARGET_FLAGS_TO_PASS): Ditto.
2431 (CHILLFLAGS): Obsolete.
2432 (CHILL): Obsolete.
2433 (CHILL_FOR_TARGET): Obsolete.
2434 (CHILL_LIB): Obsolete.
2435 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2436 ch-valprint.c.
2437 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2438 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2439 ch-lang.o.
2440 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2441 targets.
2442
2443 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2444
2445 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2446 This does not change anything at the moment, but will be helpful
2447 later when full Ada support is integrated.
2448
2449 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2450
2451 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2452 help message.
2453
2454 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2455
2456 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2457 and save it in a local variable. Use variable in later test.
2458
2459 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2460
2461 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2462 test. (Thanks to Daniel Jacobowitz.)
2463
2464 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2465
2466 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2467 (mips_abi_strings): Add "n64".
2468 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2469
2470 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2471
2472 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2473 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2474
2475 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2476
2477 * utils.c (host_pointer_to_address, address_to_host_pointer):
2478 Use gdb_assert() instead of explicit call to internal_error().
2479
2480 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2481
2482 * Makefile.in (rs6000-nat.o): Update dependencies.
2483
2484 From Nicholas Duffek:
2485 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2486 (aix-thread.o): New rule.
2487 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2488 * config/powerpc/aix432.mh: New file.
2489
2490 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2491
2492 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2493 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2494 (fetch_core_registers, ppc_linux_supply_gregset)
2495 (ppc_linux_supply_fpregset): New functions.
2496 (ppc_linux_regset_core_fns): New.
2497 (_initialize_ppc_linux_tdep): Call add_core_fns.
2498 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2499 and ppc_linux_supply_gregset.
2500 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2501 (supply_fpregset): Call ppc_linux_supply_fpregset.
2502 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2503 corelow.o.
2504 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2505
2506 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2507
2508 * symtab.c (lookup_symbol): Demangle before lowercasing.
2509
2510 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2511
2512 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2513 declaration.
2514 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2515 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2516 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2517 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2518 "gdb_string.h".
2519 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2520 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2521 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2522 (avr-tdep.o, mon960-rom.o): Ditto.
2523 (aout_stabs_gnu_h): Define.
2524 (symtab_h): Remove $(gdb_obstack_h).
2525
2526 2002-07-30 Jim Blandy <jimb@redhat.com>
2527
2528 Patch from David Carlton <carlton@math.stanford.edu>:
2529 * gdbinit.in: Move the `dir' commands that add GDB's own source
2530 directory to the search path to the end, so that the `gdb' source
2531 directory will be searched first.
2532
2533 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2534
2535 * gdb_obstack.h: New file.
2536 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2537 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2538 * objfiles.h: Include "gdb_obstack.h".
2539 * Makefile.in (gdb_obstack_h): Define.
2540 (symtab_h): Add $(gdb_obstack_h).
2541 (objfiles_h): Add $(gdb_obstack_h).
2542
2543 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2544 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2545 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2546 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2547 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2548 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2549 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2550 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2551
2552 * Makefile.in (bcache.o): Update dependencies.
2553 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2554 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2555 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2556 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2557 (stabsread.o, symfile.o, symmisc.o): Ditto.
2558 (symtab.o, typeprint.o, macroexp.o): Ditto.
2559 (macrotab.o, mdebugread.o): Ditto.
2560 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2561 (coff_ecoff_h, aout_aout64_h): Define.
2562 (aout_stabs_gnu_h, libaout_h): Define.
2563
2564 2002-07-29 Andrew Cagney <cagney@redhat.com>
2565
2566 * regcache.c (struct regcache_descr): Rename nr_registers to
2567 nr_cooked_registers. Revise comments describing the structure
2568 member fields.
2569 (init_regcache_descr): Update.
2570 (init_legacy_regcache_descr): Update.
2571 (read_register_gen, write_register_gen): When a cooked register in
2572 the raw register range, directly access the value from the raw
2573 register cache.
2574
2575 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2576
2577 * z8k-tdep.c: Do not include "obstack.h".
2578 * h8300-tdep.c, h8500-tdep.c: Ditto.
2579 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2580 * valprint.c, v850-tdep.c: Ditto.
2581 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2582 * mn10200-tdep.c: Ditto.
2583
2584 * Makefile.in (z8k-tdep.o): Update dependencies.
2585 (m68hc11-tdep.o, valprint.o): Ditto.
2586 (v850-tdep.o, d10v-tdep.o): Ditto.
2587 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2588 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2589 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2590 (sh_opc_h, gdb_sim_sh_h): Define.
2591 (elf_sh_h, elf_bfd_h): Define.
2592 (opcode_m68hc11_h): Define.
2593 (OPCODES_SRC, OPCODES_DIR): define.
2594 (OPCODES): Use $(OPCODES_DIR).
2595 (gdb_sim_d10v_h): Rename sim_d10v_h.
2596 (gdb_sim_arm_h): Rename sim_arm_h.
2597
2598 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2599
2600 * utils.c (host_pointer_to_address, address_to_host_pointer):
2601 Change internal_error() message to indicate function responsible
2602 for the error.
2603
2604 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2605
2606 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2607 calls to local_hex_string_custom().
2608
2609 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2610
2611 * irix5-nat.c: Move IRIX shared library support from here...
2612 * solib-irix.c: ...to here. Revised substantially to work with
2613 generic solib framework.
2614
2615 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2616 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2617 * mips-irix-tdep.c: New file.
2618
2619 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2620 (mips-irix-tdep.o, solib-irix.o): New rules.
2621 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2622 solib-irix.o.
2623 * config/mips/irix6.mt (TDEPFILES): Likewise.
2624 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2625
2626 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2627
2628 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2629 disabled (via ``#if 0'') includes.
2630
2631 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2632
2633 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2634 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2635 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2636 Add support for the fpscr register.
2637 * rs6000-nat.c (regmap, fetch_inferior_registers)
2638 (store_inferior_registers, fetch_core_registers): Likewise.
2639
2640 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2641
2642 * rs6000-nat.c (language.h): Include.
2643 (special_regs): Delete this array.
2644 (regmap): New function.
2645 (fetch_register, store_register): Use regmap() to map gdb
2646 register numbers to ptrace register numbers. Also, use
2647 outputs from regmap() to make decisions regarding type of
2648 ptrace() call to make. In particular, don't compare against
2649 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2650 (fetch_inferior_registers, store_inferior_registers): Where
2651 possible, obtain register numbers from tdep struct. Don't
2652 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2653 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2654 (LAST_UISA_SP_REGNUM): Delete.
2655
2656 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2657
2658 * rs6000-nat.c (ppc-tdep.h): Include.
2659 (fetch_registers, store_register, fetch_core_registers): Don't
2660 access registers[] directly. Instead, use supply_register() or
2661 regcache_collect() as appropriate.
2662 (find_toc_address): Format hex address with local_hex_string().
2663
2664 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2665
2666 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2667 bfd/elf32-frv.c.
2668
2669 2002-07-24 Tom Tromey <tromey@redhat.com>
2670
2671 * jv-exp.y: Marked all strings with _().
2672 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2673 internal_error.
2674 (MethodInvocation, CastExpression, parse_number, yyerror,
2675 java_type_from_name, push_expression_name, yylex): Typo fixes.
2676
2677 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2678
2679 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2680 (tee_file_flush, tee_file_write, tee_file_fputs)
2681 (tee_file_isatty): New.
2682 * ui-file.h (tee_file_new): Add prototype.
2683
2684 2002-07-24 Aidan Skinner <aidan@velvet.net>
2685
2686 * ada-lang.c: Change k&r style function definitions to prototyped
2687 form.
2688 * ada-typeprint.c: Change k&r style function definitions to prototyped
2689 form.
2690 * ada-valprint.c: Change k&r style function definitions to prototyped
2691 form.
2692
2693 2002-07-24 Andrew Cagney <cagney@redhat.com>
2694
2695 * README: Remove reference to remote-bug.
2696 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2697 remote-bug.c.
2698 (m88k-nat.o): Delete rule.
2699 (m88k-tdep.o): Delete rule.
2700 (remote-bug.o): Delete rule.
2701 * MAINTAINERS: Mark as obsolete.
2702 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2703 * m88k-tdep.c: Make file obsolete.
2704 * config/m88k/m88k.mh: Ditto.
2705 * config/m88k/delta88v4.mh: Ditto.
2706 * config/m88k/delta88v4.mt: Ditto.
2707 * config/m88k/delta88.mt: Ditto.
2708 * config/m88k/delta88.mh: Ditto.
2709 * remote-bug.c: Ditto.
2710 * config/m88k/tm-delta88.h: Ditto.
2711 * config/m88k/nm-delta88v4.h: Ditto.
2712 * config/m88k/xm-delta88.h: Ditto.
2713 * config/m88k/xm-dgux.h: Ditto.
2714 * config/m88k/tm-m88k.h: Ditto.
2715 * config/m88k/nm-m88k.h: Ditto.
2716 * config/m88k/tm-delta88v4.h: Ditto.
2717 * m88k-nat.c: Ditto.
2718 * cxux-nat.c: Ditto.
2719 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2720 and m88*-*-* obsolete.
2721 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2722 m88*-*-* obsolete.
2723
2724 2002-07-24 Andrew Cagney <cagney@redhat.com>
2725
2726 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2727 constant. Same for local pointer variables.
2728 (extract_signed_integer): Ditto.
2729 * defs.h (extract_unsigned_integer): Update.
2730 (extract_signed_integer): Update.
2731
2732 2002-07-24 Andrew Cagney <cagney@redhat.com>
2733
2734 * regcache.c (regcache_raw_write): Change buf parameter to a
2735 constant void pointer.
2736 (regcache_raw_read): Change buf parameter to a void pointer.
2737 (legacy_write_register_gen): Change myaddr parameter a constant
2738 void pointer.
2739 (supply_register): Change val parameter to a const void pointer.
2740 * regcache.h (regcache_raw_write): Update declaration.
2741 (regcache_raw_read): Update declaration.
2742 (supply_register): Update declaration.
2743
2744 2002-07-24 Tom Tromey <tromey@redhat.com>
2745
2746 * defs.h (gdb_readline_wrapper): Declare.
2747 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2748 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2749 * top.c (gdb_readline_wrapper): New function.
2750 (command_line_input): Use it.
2751
2752 2002-07-24 Andrew Cagney <cagney@redhat.com>
2753
2754 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2755 regcache_read and regcache_write.
2756 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2757 * regcache.c: Update.
2758 * sh-tdep.c (sh64_push_arguments): Update comment.
2759 (sh_pseudo_register_read): Update.
2760 (sh_pseudo_register_write): Update.
2761 (sh4_register_read): Update.
2762 (sh4_register_write): Update.
2763 (sh64_pseudo_register_read): Update.
2764 (sh64_pseudo_register_write): Update.
2765 (sh64_register_read): Update.
2766 (sh64_register_write): Update.
2767 * i386-tdep.c (i386_extract_return_value): Update.
2768 (i386_extract_struct_value_address): Update.
2769 (i386_extract_return_value): Update.
2770 * blockframe.c (generic_read_register_dummy): Update.
2771 (generic_call_dummy_register_unwind): Update
2772 * infrun.c (write_inferior_status_register): Update.
2773
2774 2002-07-23 Jim Blandy <jimb@redhat.com>
2775
2776 * parser-defs.h (expression_context_pc): Make this extern.
2777 (Thanks to Michael Snyder.)
2778
2779 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2780
2781 GDB 5.2.1 released from 5.2 branch.
2782 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2783 * README: Update to mention 5.2.1.
2784
2785 2002-07-23 Mark Salter <msalter@redhat.com>
2786
2787 * remote.c (remote_read_bytes): Fix check for error.
2788
2789 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2790
2791 * aix-thread.c (language.h): Include.
2792 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2793 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2794 Print newlines at end of debug messages.
2795 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2796 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2797
2798 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2799
2800 * aix-thread.c (ppc-tdep.h): Include.
2801 (special_register_p): New function.
2802 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2803 (store_regs_user_thread): Use register number information from
2804 gdbarch_tdep struct instead of hardcoded offsets relative to
2805 FIRST_UISA_SP_REGNUM.
2806 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2807 special_register_p() instead of using FPLAST_REGNUM and
2808 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2809 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2810 will be MQ's register number.
2811
2812 2002-07-22 Michael Snyder <msnyder@redhat.com>
2813
2814 * aix-thread.c (ops): Rename to aix_thread_ops.
2815 (base_ops): Rename to base_target.
2816 (ops_attach): Rename to aix_thread_attach.
2817 (ops_detach): Rename to aix_thread_detach.
2818 (ops_resume): Rename to aix_thread_detach.
2819 (ops_wait): Rename to aix_thread_wait.
2820 (ops_kill): Rename to aix_thread_kill.
2821 (init_ops): Rename to init_aix_thread_ops.
2822 (ops_fetch_register): Rename to aix_thread_fetch_register.
2823 (ops_store_register): Rename to aix_thread_store_register.
2824 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2825 (ops_thread_alive): Rename to aix_thread_thread_alive.
2826 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2827 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2828 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2829 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2830 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2831 (store_regs_lib): Rename to store_regs_user_thread.
2832 (store_regs_kern): Rename to store_regs_kernel_thread.
2833
2834 2002-07-22 Michael Snyder <msnyder@redhat.com>
2835
2836 * aix-thread.c (ops_prepare_to_store): Eliminate.
2837 (init_ops): Don't initialize ops.prepare_to_store.
2838 (store_regs_kern): Pre-fetch register buffers from child,
2839 because some registers may not be in the cache. Copy
2840 regs from register cache only if they are cached.
2841 (store_regs_lib): Copy regs from register cache only
2842 if they are cached.
2843 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2844 fill_gprs64): Ditto.
2845
2846 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2847
2848 * aix-thread.c (gdb_assert.h): Include.
2849 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2850 register sizes (from register cache) match size of buffer holding
2851 register data.
2852 (fill_sprs32): Change parameter types to match those in the ptrace()
2853 buffer.
2854 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2855 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2856
2857 2002-07-22 Michael Snyder <msnyder@redhat.com>
2858
2859 * aix-thread.c (supply_sprs64): Cosmetic change.
2860 (supply_sprs32): Cosmetic change.
2861 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2862 (fill_sprs64): Use regcache_collect instead of read_register.
2863 (store_regs_lib): Use regcache_collect instead of
2864 read_register. Use fill_sprs32 instead of fill_sprs64,
2865 if debugging a 32-bit architecture.
2866 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2867 out of the register cache, instead of passing a pointer into
2868 the register cache directly to ptrace. Use regcache_collect
2869 insteaad of read_register.
2870 (ops_prepare_to_store): Use target_read_registers instead
2871 of read_register_bytes.
2872
2873 2002-07-20 Aidan Skinner <aidan@velvet.net>
2874
2875 * MAINTAINERS: Add self under write after approval.
2876
2877 2002-07-20 Aidan Skinner <aidan@velvet.net>
2878
2879 * ada-tasks.c: Change k&r style function definitions to prototyped
2880 form.
2881
2882 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2883
2884 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2885 * x86-64-tdep.c: Include "objfiles.h".
2886 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2887 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2888
2889 2002-07-17 Michal Ludvig <michal@suse.cz>
2890
2891 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2892 (update_context): Initialise cfa variable.
2893
2894 2002-07-17 Michael Snyder <msnyder@redhat.com>
2895
2896 * aix-thread.c: Shorten some long lines.
2897 Bring comments into line with code spec.
2898
2899 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2900
2901 * infrun.c: Re-indent using gdb_indent.sh.
2902
2903 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2904
2905 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2906 Leave the indentation temporarily untouched, to minimize the diffs.
2907
2908 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2909
2910 * stabsread.c: Make os9k sections of the code obsolete,
2911 for real this time.
2912 * stabsread.h: Make os9k sections of the code obsolete.
2913
2914 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2915
2916 * linux-low.c (regsets_store_inferior_registers): Add free()
2917 at the end of a loop to prevent memory leak.
2918 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2919 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2920 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2921 line a comment.
2922 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2923
2924 2002-07-17 Jim Blandy <jimb@redhat.com>
2925
2926 * macrocmd.c (info_macro_command): Remove newline from error
2927 message.
2928
2929 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2930
2931 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2932 (sh_gdbarch_init): Use it for sh-dsp.
2933
2934 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2935
2936 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2937 64-bit DWARF2 format.
2938
2939 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2940
2941 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2942 <sys/proc.h> when not available.
2943
2944 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2945
2946 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2947 * stabsread.c: Make os9k sections of the code obsolete.
2948 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2949 * config/i386/i386os9k.mt: Make file obsolete.
2950 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2951 (COMMON_OBS): Remove os9kread.o
2952 (SFILES): Remove os9kread.c.
2953 (os9kread.o, remote-os9k.o): Make target obsolete.
2954 * remote-os9k.c: Make file obsolete.
2955 * os9kread.c: Make file obsolete.
2956 * Makefile.in
2957
2958 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2959
2960 * NEWS: Mention that the FR30 has been made obsolete.
2961 * fr30-tdep.c: Make file obsolete.
2962 * config/fr30/tm-fr30.h: Ditto.
2963 * config/fr30/fr30.mt: Ditto.
2964 * configure.tgt: Make fr30-*-elf obsolete.
2965 * MAINTAINERS: Make fr30-elf obsolete.
2966
2967 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2968
2969 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2970 found is not inside a section.
2971
2972 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2973
2974 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2975 strerror().
2976 (pdc_realloc): Use xrealloc() instead of realloc().
2977
2978 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2979
2980 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2981 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2982 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2983 macros.
2984
2985 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2986
2987 * aix-thread.c (ptrace_check): Eliminate goto.
2988 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2989 problem.
2990
2991 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2992
2993 * aix-thread.c (gdbcmd.h): Include.
2994 (DEBUG, DBG, DBG2, dbg): Eliminate.
2995 (debug_aix_thread): New static global.
2996 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2997 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2998 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2999 invocations to DBG and DBG2 macros to test against
3000 ``debug_aix_thread'' and call fprintf_unfiltered().
3001 (_initialize_aix_thread): Add new command "set debug aix-thread".
3002
3003 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3004
3005 From Gerhard Tonn <TON@de.ibm.com>:
3006 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3007 instead of supply_register.
3008
3009 2002-07-15 Andrew Cagney <ac131313@redhat.com>
3010
3011 * dwarf2cfi.c: Include "gdb_assert.h".
3012 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3013 non-NULL.
3014 (update_context): Do not use __func__. Add missing ``break''.
3015 (update_context): Do not use __func__.
3016
3017 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
3018
3019 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3020 and its setting. Set gdbarch instruction printing functions
3021 directly. For non-rs6000 case use new function
3022 gdb_print_insn_powerpc.
3023 (gdb_print_insn_powerpc): New function.
3024
3025 2002-07-13 Andrew Cagney <ac131313@redhat.com>
3026
3027 * NEWS: Mention that the d30v has been marked obsolete.
3028 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3029 * configure.tgt: Mark d30v-*-* as obsolete.
3030 * d30v-tdep.c: Mark file as obsolete.
3031 * config/d30v/d30v.mt: Ditto.
3032 * config/d30v/tm-d30v.h: Ditto.
3033
3034 2002-07-13 Aidan Skinner <aidan@velvet.net>
3035
3036 * ada-tasks.c (add_task_entry): replace calls to
3037 malloc() with xmalloc
3038 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3039
3040 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3041 ada_finish_decode_line_1, all_sals_for_line
3042 ada_breakpoint_rewrite): replace calls to free() with xfree()
3043
3044 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3045
3046 From Nicholas Duffek (with minor changes by Martin Hunt,
3047 Louis Hamilton, and Kevin Buettner):
3048 * aix-thread.c: New file.
3049
3050 2002-07-12 Petr Sorfa <petrs@caldera.com>
3051
3052 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3053 complaint for invalid attribute class or form.
3054 (read_func_scope): DW_AT_frame_base
3055 better handling of DW_AT_block*.
3056 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3057 better handling of DW_AT_block*.
3058 (read_common_block): DW_AT_location
3059 better handling of DW_AT_block*.
3060 (read_partial_die): DW_AT_location better handling
3061 of DW_AT_block*.
3062 (new_symbol): DW_AT_external better handling of
3063 DW_AT_block*. Proper initialization of variable
3064 "addr".
3065 (attr_form_is_block): New function that returns true
3066 if the attribute's form is of DW_FORM_block*.
3067
3068 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3069
3070 * valops.c (find_method_list): Remove comment about
3071 removed STATIC_MEMFUNCP argument.
3072 (value_find_oload_method_list): Likewise.
3073
3074 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3075
3076 From Nicholas Duffek:
3077 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3078 target_new_objfile_hook.
3079
3080 2002-07-12 Kevin Buettner <kevinb@redhat.com>
3081
3082 From Nicholas Duffek:
3083 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3084 csect.
3085
3086 2002-07-12 Andrew Cagney <cagney@redhat.com>
3087
3088 * MAINTAINERS: Mention --enable-sim-build-warnings.
3089 (m68hc11-elf): Disable sim build warnings.
3090 (m32r-elf): Mark as broken obsolete candidate.
3091 (x86_64-linux-gnu): Mark as buildable with -Werror.
3092 (arm-elf): Change -w to ``,'' which enables warnings but not
3093 -Werror.
3094
3095 2002-07-12 Andrew Cagney <ac131313@redhat.com>
3096
3097 * bcache.h: Update copyright.
3098 (struct bstring, struct bcache): Move definition to "bcache.c".
3099 Replaced by opaque declaration.
3100 (bcache_xfree): Replace free_bcache.
3101 (bcache_xmalloc, bcache_memory_used): Declare.
3102
3103 * bcache.c: Update copyright.
3104 (struct bstring, struct bcache): Moved to here from "bcache.h".
3105 Update comments.
3106 (bcache_xmalloc, bcache_memory_used): New functions.
3107 (bcache_xfree): Replace function free_bcache.
3108
3109 * Makefile.in (objfiles.o): Add $(bcache_h).
3110 (objfiles_h): Remove $(bcache_h).
3111 (symfile.o): Add $(bcache_h).
3112
3113 * symmisc.c: Update copyright.
3114 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3115 (print_objfile_statistics): Use bcache_memory_used.
3116
3117 * symfile.c: Include "bcache.h".
3118 (reread_symbols): Use bcache_xfree.
3119 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3120 (add_psymbol_to_list): Pass psymbol_cache by value.
3121 (add_psymbol_with_dem_name_to_list): Ditto.
3122
3123 * objfiles.h: Update copyright.
3124 (struct bcache): Declare opaque. Do not include "bcache.h".
3125 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3126 bcache'' pointers.
3127 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3128
3129 * objfiles.c: Include "bcache.h". Update copyright.
3130 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3131 macro_cache.
3132 (free_objfile): Use bcache_xfree.
3133
3134 2002-07-11 Grace Sainsbury <graces@redhat.com>
3135
3136 * monitor.c (monitor_fetch_register): Make name a constant.
3137 (monitor_store_register): Same.
3138
3139 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
3140
3141 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3142 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3143 (finish_block) For non-function blocks, hash the symbol table. For
3144 function blocks, mark the symbol table as unhashed.
3145 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3146 (msymbol_hash_iw): Likewise.
3147 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3148 value.
3149 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3150 (lookup_minimal_symbol): Likewise for both.
3151 * symtab.h (struct block): Add `hashtable' flag. Comment the
3152 hashtable.
3153 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3154 (ALL_BLOCK_SYMBOLS): Update.
3155 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3156 (struct symbol): Add `hash_next' pointer.
3157 * symtab.c (lookup_block_symbol): Search using the hash table when
3158 possible.
3159 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3160 (search_symbols, find_addr_symbol): Likewise.
3161
3162 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3163 (read_dst_symtab): Likewise.
3164 * jv-lang.c (get_java_class_symtab): Likewise.
3165 * mdebugread.c: Include "gdb_assert.h".
3166 (shrink_block): Assert that the block being modified is not hashed.
3167 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3168 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3169 symbols.
3170 (dump_symtab): Recognize hashed blocks.
3171 * printcmd.c (print_frame_args): Assert that function blocks do not
3172 have hashed symbol tables.
3173 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3174 (fill_in_ada_prototype, debug_print_block): Likewise.
3175 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3176
3177 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
3178
3179 * stack.c (print_frame): Use result of frame_address_in_block()
3180 instead of fi->pc when evaluating symbols.
3181 (backtrace_command_1): Ditto.
3182
3183 2002-07-11 Andrew Cagney <cagney@redhat.com>
3184
3185 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3186 Make static.
3187
3188 * arm-tdep.c (arm_register_name): Make return type constant.
3189
3190 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3191
3192 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3193 prototype.
3194 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3195 * s390-tdep.c (s390_fp_regnum): Ditto.
3196 (s390_read_fp): Ditto.
3197 (s390_pop_frame): Ditto.
3198 (_initialize_s390_tdep): Ditto.
3199 * remote.c (get_remote_state): Ditto.
3200 * procfs.c (mappingflags): Ditto.
3201 * memattr.c (_initialize_mem): Ditto.
3202 * mcore-tdep.c (mcore_pop_frame): Ditto.
3203 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3204 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3205 * language.c (set_case_str): Ditto.
3206 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3207 * frv-tdep.c (new_variant): Ditto.
3208 (frv_stopped_data_address): Ditto.
3209 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3210 (context_alloc): Ditto.
3211 (frame_state_alloc): Ditto.
3212 (unwind_tmp_obstack_init): Ditto.
3213 (unwind_tmp_obstack_free): Ditto.
3214 (cfi_read_fp): Ditto.
3215 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3216 (cris_pop_frame): Ditto.
3217 * c-lang.c (scanning_macro_expansion): Ditto.
3218 (finished_macro_expansion): Ditto.
3219 (c_preprocess_and_parse): Ditto.
3220 * gdbarch.sh: Ditto.
3221 * gdbarch.h, gdbarch.c: Regenerate.
3222 * config/mn10200/tm-mn10200.h: Adjust indentation.
3223 * target.c: Adjust indentation.
3224 * symtab.h: Adjust indentation.
3225 * stabsread.h: Adjust indentation.
3226 * remote-es.c: Adjust indentation.
3227 * os9kread.c: Adjust indentation.
3228
3229 2002-07-10 Andrew Cagney <ac131313@redhat.com>
3230
3231 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3232 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3233
3234 2002-07-10 Grace Sainsbury <graces@redhat.com>
3235
3236 * NEWS: Mention m68k, mcore multi-arching.
3237 * MAINTAINERS: Change status of m68k, mcore to reflect
3238 multi-arching.
3239
3240 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * valops.c (find_overload_match): Free oload_syms.
3243
3244 2002-07-09 Joel Brobecker <brobecker@gnat.com>
3245
3246 Define HAVE_SYS_PROC_H if sys/proc.h exists
3247 * configure.in: Add check for sys/proc.h
3248 * config.in: Regenerate.
3249 * configure: Regenerate.
3250
3251 2002-07-09 Grace Sainsbury <graces@redhat.com>
3252
3253 * config/m68k/tm-m68k.h: Remove macros wrapped in
3254 #if !GDB_MULTI_ARCH.
3255
3256 2002-07-08 Andrew Cagney <ac131313@redhat.com>
3257
3258 * config.in, configure: Regenerate.
3259
3260 2002-07-08 Mark Kettenis <kettenis@gnu.org>
3261
3262 * dwarf2cfi.c: Include "gcore.h".
3263 (execute_stack_op): Fix implementation of the
3264 DW_OP_deref and DW_OP_deref_size operators by letting do their
3265 lookup in the target.
3266
3267 2002-07-07 Mark Kettenis <kettenis@gnu.org>
3268
3269 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3270 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3271 tdep->sc_sp_offset.
3272
3273 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
3274
3275 Fix PR gdb/595, gdb/602
3276 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3277 Don't call value_cast, just read the vtable pointer; update comments
3278 to match.
3279
3280 2002-07-05 Grace Sainsbury <graces@redhat.com>
3281
3282 * config/mcore/tm-mcore.h: Remove file.
3283 * config/mcore/mcore.mt: Remove definition of TM_FILE
3284 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3285
3286 2002-07-05 Mark Kettenis <kettenis@gnu.org>
3287
3288 * i386bsd-tdep.c: Include "gdb_string.h".
3289
3290 2002-07-04 Grace Sainsbury <graces@redhat.com>
3291
3292 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3293 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3294 mcore-tdep.
3295 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3296 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3297 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3298 (RETVAL_REGNUM): Move macros from tm-mcore.h
3299 (mcore_reg_struct_has_addr): New function.
3300 (mcore_gdbarch_init): Added initializations for the macros removed
3301 from tm-mcore.h.
3302
3303 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3304
3305 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3306 traditonal string branding within the ELF header.
3307
3308 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * symtab.c (remove_params): New function.
3311 (make_symbol_overload_list): Use it instead of cplus_demangle.
3312 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3313
3314 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3315
3316 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3317
3318 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3319 New variables.
3320 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3321 and tdep->sigtramp_end.
3322 * i386obsd-nat.c: New file.
3323 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3324
3325 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3326 Don't call get_current_frame().
3327
3328 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3329
3330 * i386-nat.c (child_post_startup_inferior): New function
3331 calling i386_cleanup_dregs if
3332 I386_USE_GENERIC_WATCHPOINTS is defined.
3333 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3334 conditional to acknowledge that i386-nat.c has its
3335 own child_post_startup_inferior function.
3336
3337 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3338
3339 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3340 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3341 instead of MAX_REGISTER_RAW_SIZE.
3342 (i386_extract_return_value, i386_extract_struct_value_address):
3343 Convert to use regcache.
3344 (i386_gdbarch_init): Set max_register_raw_size and
3345 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3346 Set extract_return_value and extract_struct_value_address instead
3347 of their deprecated variants.
3348
3349 Convert i386 target to generic dummy frames.
3350 * i386-tdep.c: Include "symfile.h".
3351 (i386_frameless_signal_p): Consider a function to be frameless if
3352 the pc points at the first instruction of the function.
3353 (i386_frame_chain): Handle (generic) call dummies.
3354 (i386_frame_saved_pc): Likewise.
3355 (i386_frame_init_saved_regs): Remove code dealing with call
3356 dummies on the stack.
3357 (i386_push_dummy_frame): Removed.
3358 (i386_call_dummy_words): Removed.
3359 (i386_fix_call_dummy): Removed.
3360 (i386_push_return_address): New function.
3361 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3362 parameter, and don't call get_current_frame.
3363 (i386_pop_frame): New function.
3364 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3365 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3366 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3367 call_dummy_length to 0, set call_dummy_words to NULL, set
3368 sizeof_call_dummy_words to 0, set fix_call_dummy to
3369 generic_fix_call_dummy, set pc_in_call_dummy to
3370 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3371 generic_push_dummy_frame, set push_return_address to
3372 i386_push_return_address and set frame_chain_valid to
3373 generic_file_frame_chain_valid.
3374
3375 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3376
3377 * gdbarch.sh (struct regcache): Add opaque declaration.
3378 (EXTRACT_RETURN_VALUE): New architecture method.
3379 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3380 * gdbarch.h, gdbarch.c: Regenerate.
3381 * arch-utils.c (legacy_extract_return_value): New function.
3382 * arch-utils.h (legacy_extract_return_value): Declare.
3383 * values.c (value_being_returned): Re-enable code handling
3384 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3385 deprecated_grub_regcache_for_registers call to block handling
3386 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3387 (EXTRACT_RETURN_VALUE): Do not define.
3388
3389 2002-07-03 Grace Sainsbury <graces@redhat.com>
3390
3391 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3392 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3393 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3394 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3395 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3396 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3397 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3398 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3399 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3400 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3401 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3402 argument so the function fits the prototype in the architecture
3403 vector.
3404 (mcore_pop_frame): Remove argument so the function fits the
3405 prototype. Use get_current_frame instead of the argument.
3406 (mcore_push_arguments): Change type of struct_return so the
3407 function can be used in the architecture vector.
3408 (mcore_store_struct_return): Add.
3409 (mcore_frame_init_saved_regs): Add.
3410 (mcore_gdbarch_init): Add function calls to replace the macros
3411 removed from tm-mcore.h
3412
3413 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3414
3415 * infcmd.c (print_return_value): Remove compatibility code calling
3416 deprecated_grub_regcache_for_registers.
3417
3418 * values.c: Include "regcache.h".
3419 (value_being_returned): Update. Use
3420 deprecated_grub_regcache_for_registers to extract the register
3421 buffer address.
3422 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3423 ``struct regcache''.
3424 * Makefile.in (values.o): Add dependency on $(regcache_h).
3425
3426 * inferior.h (run_stack_dummy): Change type of second parameter to
3427 a ``struct regcache''.
3428 * valops.c (hand_function_call): Change type of retbuf to ``struct
3429 regcache''. Allocate using regcache_xmalloc, clean using
3430 make_cleanup_regcache_xfree.
3431 * infcmd.c (run_stack_dummy): Update. Use
3432 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3433
3434 * regcache.c (do_regcache_xfree): New function.
3435 (make_cleanup_regcache_xfree): New function.
3436 * regcache.h (make_cleanup_regcache_xfree): Declare.
3437
3438 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3439
3440 * event-top.c (command_line_handler): Don't read past
3441 beginning of buffer.
3442
3443 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3444
3445 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3446 struct frame_id.
3447 (varobj_create): Store frame_id for root.
3448 (varobj_gen_name): Use xasprintf.
3449 (varobj_update): Save and restore frame using get_frame_id() and
3450 frame_find_by_id().
3451 (create_child): Use xasprintf.
3452 (new_root_variable): Initialize frame_id.
3453 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3454 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3455 to prevent memory leak.
3456
3457 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3458
3459 * valops.c (hand_function_call): Move declaration of retbuf to
3460 start of function, allocate using malloc, add a cleanup but before
3461 the inf_status cleanup, cleanup the buffer. Rename local variable
3462 old_chain to inf_status_cleanup.
3463
3464 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3465
3466 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3467
3468 * cli/cli-decode.c (cmd_func_p): New function.
3469 (cmd_func): New function.
3470
3471 * command.h: Add cmd_func() and cmd_func_p().
3472
3473 2002-07-03 Grace Sainsbury <graces@redhat.com>
3474
3475 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3476 (REGISTER_SIZE): Remove.
3477 (MAX_REGISTER_RAW_SIZE): Remove.
3478 (REGISTER_VIRTUAL_TYPE): Remove.
3479 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3480 (REGISTER_NAME): Remove.
3481 (USE_GENERIC_DUMMY_FRAMES): Remove.
3482 (CALL_DUMMY): Remove.
3483 (CALL_DUMMY_START_OFFSET): Remove.
3484 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3485 (CALL_DUMMY_LOCATION): Remove.
3486 (FIX_CALL_DUMMY): Remove.
3487 (CALL_DUMMY_ADDRESS): Remove.
3488 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3489 (SAVE_DUMMY_FRAME_TOS): Remove.
3490 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3491 (mcore_register_virtual_type): New function.
3492 (mcore_register_byte): New function.
3493 (mcore_register_size): New function.
3494 (mcore_register_name): New function.
3495 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3496 macros removed from tm-mcore.h.
3497 (mcore_dump_tdep): Add.
3498 (_initialize_mcore_tdep): Add gdbarch_register call.
3499
3500 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3501
3502 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3503 frameless_look_for_prologue, such that we actually call this
3504 function.
3505
3506 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3507
3508 * frame.h (frame_address_in_block): New function.
3509
3510 * blockframe.c (frame_address_in_block): New function extracted
3511 from get_frame_block().
3512 (get_frame_block): Use frame_address_in_block().
3513 (block_innermost_frame): Use frame_address_in_block() to match
3514 the frame pc address against the block boundaries rather than
3515 the frame pc directly. This prevents a failure when a frame pc
3516 is actually a return-address pointing immediately after the end
3517 of the given block.
3518
3519 2002-07-02 Grace Sainsbury <graces@redhat.com>
3520
3521 * MAINTAINERS: Add self under write after approval.
3522
3523 2002-07-02 Grace Sainsbury <graces@redhat.com>
3524
3525 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3526 used in architecture vector. The default is
3527 m68k_local_breakpoint_from_pc.
3528 (m68k_local_breakpoint_from_pc): Add.
3529 (enum): Add register numbers from tm-m68k.h.
3530 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3531 vector.
3532 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3533 GDB_MULTI_ARCH_PARTIAL.
3534 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3535 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3536 m68k-tdep.c.
3537 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3538 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3539 to enum in m68k-tdep.c
3540
3541 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3542
3543 * solib-osf.c (open_map): Compute the list of shared libraries
3544 loaded by the inferior, rather than the list of libraries loaded
3545 by GDB itself. Otherwise, GDB ends up reading the symbols from
3546 the wrong shared libraries...
3547
3548 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3549
3550 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3551 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3552 macros.
3553 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3554 Remove functions.
3555 (FRAMELESS_SIGNAL): Remove function.
3556 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3557 i386_linux_saved_pc_after_call): Removed.
3558 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3559 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3560 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3561
3562 * i386-tdep.c (i386_frameless_signal_p): New function.
3563 (i386_frame_chain): Deal with frameless signals.
3564 (i386_sigtramp_saved_sp): New function.
3565 (i386_frame_saved_pc): Deal with frameless signals.
3566 (i386_saved_pc_after_call): Make sure the correct value is
3567 returned just after entry into a sigtramp.
3568 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3569 i386fbsd4_sc_sp_offset): New variables.
3570 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3571 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3572 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3573 similiar to what we already did for sc_pc_offset.
3574 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3575 tdep->sc_sp_offset.
3576
3577 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3578
3579 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3580
3581 * config/i386/tm-x86-64linux.h: New.
3582 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3583 definitions.
3584 * config/i386/nm-x86-64.h: Rename to ...
3585 * config/i386/nm-x86-64linux.h: ... this one.
3586 * config/i386/x86-64linux.mh: Reflect the above change.
3587
3588 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3589
3590 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3591 with sigcontext_addr. Add sc_sp_offset.
3592 (i386bsd_sigtramp_saved_pc): Remove prototype.
3593 (i386bsd_sicontext_addr): Add prototype.
3594 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3595 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3596 (i386_svr4_sigtramp_saved_pc): Removed.
3597 (i386_svr4_sigcontext_addr): New function.
3598 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3599 Initialize tdep->sigcontext_addr instead. Initialize
3600 tdep->sc_pc_offset and tdep->sc_sp_offset.
3601 (i386_gdbarch_init): Likewise.
3602 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3603 any more.
3604 (i386bsd_sigtramp_saved_pc): Remove function.
3605 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3606 Initialize tdep->sigcontext_addr instead. Initialize
3607 tdep->sc_pc_offset.
3608 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3609 of tdep->sigtramp_saved_pc.
3610 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3611 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3612 instead.
3613
3614 * i386-tdep.c (i386_frameless_function_invocation,
3615 i386_frame_num_args, i386_frame_init_saved_regs,
3616 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3617 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3618 i386_extract_return_value, i386_store_return_value,
3619 i386_extract_struct_value_address, i386_register_virtual_type,
3620 i386_register_convertible, i386_register_convert_to_virtual,
3621 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3622 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3623 static.
3624
3625 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3626
3627 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3628
3629 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3630 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3631 this macro. Include "value.h".
3632
3633 2002-06-30 Aidan Skinner <aidan@velvet.net>
3634
3635 * ada-exp.tab.c: remove as it's a generated file
3636 * ada-lex.c: remove as it's a generated file
3637
3638 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3639
3640 * config/i386/tm-i386.h (struct frame_info, struct
3641 frame_saved_regs, struct value, struct type): Remove forward
3642 declarations.
3643
3644 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3645 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3646 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3647 (FILL_FPXREGSET): Define.
3648
3649 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3650
3651 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3652 i[3456]86-*-netbsd* case.
3653 * config/i386/tm-obsd.h: Removed.
3654 * config/i386/obsd.mt: Removed.
3655 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3656 core-aout.o.
3657 (MH_CFLAGS): Add -DYYDEBUG=0.
3658
3659 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3660 i386nbsd_sc_pc_offset on OpenBSD too.
3661
3662 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3663 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3664 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3665 define.
3666 * i386bsd-tdep.c: Include "arch-utils.h".
3667 (i386bsd_aout_in_solib_call_trampoline): New function.
3668 (i386bsd_init_abi): Set in_solib_call_trampoline to
3669 i386bsd_aout_in_solib_call_trampoline.
3670 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3671 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3672
3673 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3674
3675 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3676 (struct obstack, struct bcache): Add opaque declarations.
3677 * Makefile.in (macrotab_h): Update
3678
3679 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3680
3681 * blockframe.c (generic_find_dummy_frame): Change return type to
3682 ``struct regcache''.
3683 (struct dummy_frame): Replace field ``registers'' with regcache, a
3684 struct regcache object.
3685 (generic_find_dummy_frame): Update.
3686 (generic_push_dummy_frame): Update. Use regcache_xfree,
3687 regcache_xmalloc and regcache_cpy.
3688 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3689 regcache_xfree.
3690 (deprecated_generic_find_dummy_frame): Update.
3691 (generic_read_register_dummy): Update. Use
3692 regcache_read_as_address.
3693 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3694 (generic_get_saved_register): Update. Use regcache_read.
3695
3696 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3697
3698 * Makefile.in (objfiles_h): Add $(bcache_h).
3699 * objfiles.h: Include "bcache.h".
3700
3701 * Makefile.in (symtab_h): Remove $(bcache_h).
3702 * symtab.h: Do not include "bcache.h".
3703
3704 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3705
3706 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3707 generic_func_frame_chain_valid.
3708
3709 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3710
3711 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3712 * config/i386/tm-fbsd.h: Likewise.
3713
3714 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3715
3716 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3717 generic_unwind_get_saved_register.
3718
3719 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3720
3721 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3722 * regcache.c (supply_register): Add missing argument to
3723 register_buffer call.
3724
3725 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3726
3727 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3728 Solaris /bin/grep does not not like it. From Peter Schauer.
3729
3730 2002-06-26 Tom Tromey <tromey@redhat.com>
3731
3732 * command.h (add_setshow_cmd): Declare.
3733 (add_setshow_cmd_full): Declare.
3734 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3735 returns void. Use add_setshow_cmd_full.
3736 (add_setshow_cmd_full): New function.
3737 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3738 (add_setshow_boolean_cmd): Likewise.
3739
3740 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3741
3742 * config/vax/tm-vax.h: Protect from multiple inclusion.
3743 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3744 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3745 * config/vax/tm-vaxbsd.h: ...here. New file.
3746 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3747
3748 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3749
3750 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3751 (BELIEVE_PCC_PROMOTION): Remove.
3752 (AP_REGNUM): Move to...
3753 * config/vax/nm-vax.h: ...here.
3754 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3755 (vax_breakpoint_from_pc): New function.
3756 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3757 and gdbarch_believe_pcc_promotion.
3758
3759 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3760
3761 * Makefile.in (vax_tdep_h): Define.
3762 (vax-tdep.o): Use $(vax_tdep_h).
3763 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3764 (vax_dump_tdep): New function.
3765 (_initialize_vax_tdep): Register vax_dump_tdep.
3766 * vax-tdep.h: Include osabi.h.
3767 (struct gdbarch_tdep): New.
3768
3769 2002-06-26 Andrew Cagney <cagney@redhat.com>
3770
3771 * frame.h (deprecated_generic_find_dummy_frame): Rename
3772 generic_find_dummy_frame.
3773 * blockframe.c (generic_find_dummy_frame): Make static.
3774 (deprecated_generic_find_dummy_frame): New function.
3775 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3776 generic_find_dummy_frame with deprecated_find_dummy_frame.
3777 (sh64_nofp_frame_init_saved_regs): Ditto.
3778 (sh_fp_frame_init_saved_regs): Ditto.
3779 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3780 (s390_frame_chain): Ditto.
3781 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3782
3783 2002-06-26 Grace Sainsbury <graces@redhat.com>
3784
3785 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3786 gdbarch vector are at the top.
3787 (NUM_REGS): Remove.
3788 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3789 (FRAME_ARGS_ADDRESS): Remove.
3790 (FRAME_LOCALS_ADDRESS): Remove.
3791 (FRAME_NUM_ARGS): Remove.
3792 (FRAME_ARGS_SKIP): Remove.
3793 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3794 (m68k_gdbarch_init): Add gdbarch initializations for macros
3795 undefined in tm-m68k.h
3796
3797 2002-06-26 Grace Sainsbury <graces@redhat.com>
3798
3799 * monitor.h: Add the function regname to monitor_ops
3800 structure. This way NUM_REGS does not have to be a constant.
3801 * monitor.c (monitor_fetch_register): Added support for regname
3802 function. The function is called if the array regnames is NULL.
3803 (monitor_store_register): Same.
3804 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3805 regnames array.
3806 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3807 cpu32bug_cmds.regname to point to new function.
3808 * abug-rom.c (abug_regname): Same as above.
3809 (init_abug_cmds): Same.
3810 * dbug-rom.c (dbug_regname): Same as above.
3811 (init_dbug_cmds): Same.
3812 * remote-est.c (est_regname): Same.
3813 (init_est_cmds): Same.
3814 * rom68k-rom.c (rom68k_regname): Same.
3815 (init_rom68k_cmds): Same.
3816
3817 2002-06-25 Tom Tromey <tromey@redhat.com>
3818
3819 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3820
3821 2002-06-25 Andrew Cagney <cagney@redhat.com>
3822
3823 * infrun.c (stop_registers): Change variable's type to ``struct
3824 regcache'''.
3825 (xmalloc_inferior_status): Delete function.
3826 (free_inferior_status): Delete function.
3827 (normal_stop): Use regcache_cpy.
3828 (struct inferior_status): Change type of fields ``stop_registers''
3829 and ``registers'' to ``struct regcache''.
3830 (write_inferior_status_register): Use regcache_write.
3831 (save_inferior_status): Instead of calling
3832 xmalloc_inferior_status, allocate the inf_status buffer directly.
3833 Use regcache_dup_no_passthrough and regcache_dup to save the
3834 buffers.
3835 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3836 Replace the stop_registers regcache instead of overriding it. Use
3837 regcache_xfree. Instead of calling free_inferior_status, xfree
3838 the buffer directly.
3839 (discard_inferior_status): Use regcache_xfree. Instead of calling
3840 free_inferior_status, xfree the buffer directly.
3841 (build_infrun): Use regcache_xmalloc.
3842 (_initialize_infrun): Delete redundant call to build_infrun.
3843
3844 * Makefile.in (infcmd.o): Add $(regcache_h).
3845
3846 * infcmd.c: Include "regcache.h".
3847 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3848 obtain the address of `stop_registers' register buffer.
3849 (print_return_value): Ditto.
3850
3851 * inferior.h (struct regcache): Add opaque declaration.
3852 (stop_registers): Change variable's declared type to ``struct
3853 regcache''.
3854
3855 2002-06-24 Tom Tromey <tromey@redhat.com>
3856
3857 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3858 * target.c (initialize_targets): Fixed typo in
3859 trust-readonly-sections `show' documentation.
3860
3861 * main.c: Marked all strings with _().
3862
3863 2002-06-24 Don Howard <dhoward@redhat.com>
3864
3865 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3866 that means max CORE_ADDR+1.
3867 (lookup_mem_region): Ditto.
3868 (mem_info_command): Ditto.
3869
3870 2002-06-24 Grace Sainsbury <graces@redhat.com>
3871
3872 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3873 (REGISTER_BYTES_OK): Remove.
3874 (REGISTER_BYTES): Remove.
3875 (STORE_STRUCT_RETURN): Remove.
3876 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3877 (STORE_RETURN_VALUE): Remove.
3878 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3879 (FRAME_CHAIN): Remove.
3880 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3881 (FRAME_SAVED_PC): Remove.
3882 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3883 (m68k_store_struct_return): Add.
3884 (m68k_deprecated_extract_return_value): Add.
3885 (m68k_deprecated_extract_struct_value_address): Add.
3886 (m68k_store_return_value): Add.
3887 (m68k_frame_chain): Add.
3888 (m68k_frameless_function_invocation): Add.
3889 (m68k_frame_saved_pc): Add.
3890 (m68k_gdbarch_init): added set_gdbarch calls for new
3891 functions and deleted macros.
3892
3893 2002-06-23 Tom Tromey <tromey@redhat.com>
3894
3895 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3896 (ALLDEPFILES): Likewise.
3897 (udiheaders): Removed.
3898 (udip2soc.o): Likewise.
3899 (udi2go32.o): Likewise.
3900 (udr.o): Likewise.
3901 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3902
3903 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3904
3905 * infrun.c (_initialize_infrun): Delete unnecessary call to
3906 build_infrun.
3907
3908 * regcache.h: Update comments describing the regcache_cpy family
3909 of functions.
3910 (regcache_save, regcache_restore): Delete declaration.
3911 (regcache_save_no_passthrough): Delete declaration.
3912 (regcache_restore_no_passthrough): Delete declaration.
3913 * regcache.c (regcache_save): Delete function.
3914 (regcache_save_no_passthrough): Delete function.
3915 (regcache_restore): Delete function.
3916 (regcache_restore_no_passthrough): Delete function.
3917
3918 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3919
3920 * config/m68k/tm-m68k.h: Fix typo.
3921 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3922 (m68k_frame_init_saved_regs): Declare.
3923
3924 2002-06-21 Jim Blandy <jimb@redhat.com>
3925
3926 Remove some vestiges of Harris 88k support.
3927 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3928 register numbering quirk.
3929 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3930 odd symbols occurring in Harris 88k ELF targets.
3931
3932 2002-06-21 Tom Tromey <tromey@redhat.com>
3933
3934 * gdb_locale.h: New file.
3935 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3936 (defs_h): Added gdb_locale.h.
3937 * configure, config.in: Rebuilt.
3938 * configure.in (PACKAGE): Define.
3939 * defs.h: Include gdb_locale.h.
3940 * main.c (captured_main): Call setlocale, bindtextdomain,
3941 textdomain.
3942
3943 2002-06-21 Dave Brolley <brolley@redhat.com>
3944
3945 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3946 * config/frv/frv.mt: New file.
3947 * config/frv/tm-frv.h: New file.
3948 * configure.tgt: Support frv-*-*.
3949 * Makefile.in (frv-tdep.o): New target.
3950 * frv-tdep.c: New file.
3951 * NEWS: Mention frv.
3952
3953 2002-06-21 Dave Brolley <brolley@redhat.com>
3954
3955 * MAINTAINERS: Add self to "Write After Approval" list.
3956
3957 2002-06-21 Grace Sainsbury <graces@redhat.com>
3958
3959 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3960 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3961 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3962 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3963 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3964
3965 * m68k-tdep.c: Include arch-utils.h
3966 (m68k_register_raw_size): Add.
3967 (m68k_register_virtual_size): Add.
3968 (m68k_register_virtual_type): Add.
3969 (m68k_register_name): Add.
3970 (m68k_stack_align): Add.
3971 (m68k_register_byte): Add.
3972 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3973 tm-m68k.h.
3974
3975 2002-06-21 Grace Sainsbury <graces@redhat.com>
3976
3977 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3978 m68k_find_saved_regs.
3979 (m68k_pop_frame): Removed saved_regs structure, and replaced
3980 references to it with frame->saved_regs.
3981 (m68k_gdbarch_init): Added function calls to initialize the
3982 gdbarch structure.
3983 (m68k_fix_call_dummy): Add.
3984 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3985 (CALL_DUMMY): Remove.
3986 (CALL_DUMMY_LENGTH): Remove.
3987 (CALL_DUMMY_START_OFFSET): Remove.
3988 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3989 (FIX_CALL_DUMMY): Remove.
3990 (PUSH_DUMMY_FRAME): Remove.
3991 (POP_FRAME): Remove.
3992
3993 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3994
3995 * parse.c (parse_fprintf): New function used to avoid calls to
3996 fprintf in bison parser generated debug code.
3997 * parser-defs.h: Declaration of new parse_fprintf function.
3998 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3999 Set YYDEBUG to 1 by default.
4000 Set YYFPRINTF as parse_fprintf.
4001
4002 2002-06-21 Michal Ludvig <mludvig@suse.cz>
4003
4004 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4005 encoding anymore.
4006 (pointer_encoding, enum ptr_encoding): New.
4007 (execute_cfa_program): Take care about pointer encoding.
4008 (dwarf2_build_frame_info): Only call parse_frame_info for
4009 .debug_frame and .eh_frame.
4010 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4011 fixed augmentation handling, added relative addressing,
4012 ignore duplicate FDEs. Added comments.
4013 * dwarf2cfi.c: Reindented.
4014
4015 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
4016
4017 * event-top.c (command_handler): Don't use space_at_cmd_start
4018 unless there is sbrk() on the host. Assign time and space data
4019 to union fields of the appropriate length.
4020
4021 2002-06-20 Michal Ludvig <mludvig@suse.cz>
4022
4023 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4024 x86_64_register_name. Return type changed to 'const char *'.
4025 (x86_64_register_name2nr): Rename to x86_64_register_number.
4026 (x86_64_gdbarch_init): Update to reflect the change.
4027 * x86-64-tdep.h: Ditto.
4028 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4029 (supply_fpregset): Ditto.
4030
4031 2002-06-19 Andrew Cagney <cagney@redhat.com>
4032
4033 * regcache.h: Update copyright.
4034 (struct regcache, struct gdbarch): Add opaque declarations.
4035 (current_regcache): Declare global variable.
4036 (regcache_read, regcache_write): Add gdbarch parameter.
4037 (regcache_save, regcache_save_no_passthrough)
4038 (regcache_restore, regcache_restore_no_passthrough)
4039 (regcache_dup, regcache_dup_no_passthrough)
4040 (regcache_cpy, regcache_cpy_no_passthrough)
4041 (deprecated_grub_regcache_for_registers)
4042 (deprecated_grub_regcache_for_register_valid)
4043 (regcache_valid_p): Add function declarations.
4044
4045 * regcache.c: Update copyright.
4046 (regcache_descr_handle): New global variable.
4047 (struct regcache_descr): Define.
4048 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4049 (regcache_descr, xfree_regcache_descr): New functions.
4050 (struct regcache): Define.
4051 (regcache_xmalloc, regcache_xfree): New functions.
4052 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4053 (regcache_dup, regcache_dup_no_passthrough): New functions.
4054 (regcache_valid_p, regcache_read_as_address): New functions.
4055 (deprecated_grub_regcache_for_registers): New function.
4056 (deprecated_grub_regcache_for_register_valid): New function.
4057 (current_regcache): New global variable.
4058 (register_buffer): Add regcache parameter. Update calls.
4059 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4060 (read_register_gen, write_register_gen): Update register_buffer
4061 call. Test for legacy_p instead of gdbarch_register_read_p or
4062 gdbarch_register_write_p.
4063 (regcache_collect): Update register_buffer call.
4064 (build_regcache): Rewrite. Use deprecated grub functions.
4065 (regcache_save, regcache_save_no_passthrough): New functions.
4066 (regcache_restore, regcache_restore_no_passthrough): New
4067 functions.
4068 (_initialize_regcache): Create the regcache_data_handle. Swap
4069 current_regcache global variable.
4070
4071 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4072 parameter to regcache_read and regcache_write calls.
4073 (sh4_register_read): Ditto.
4074 (sh64_pseudo_register_read): Ditto.
4075 (sh64_register_read): Ditto.
4076 (sh_pseudo_register_write): Ditto.
4077 (sh4_register_write): Ditto.
4078 (sh64_pseudo_register_write): Ditto.
4079 (sh64_register_write): Ditto.
4080
4081 * defs.h (XCALLOC): Define.
4082
4083 2002-06-19 Grace Sainsbury <graces@redhat.com>
4084
4085 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4086 * m68k-tdep.c (m68k_gdbarch_init): Added.
4087 (m68k_dump_tdep): Added.
4088
4089 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4090
4091 * ada-lang.c (fill_in_ada_prototype): Update comment.
4092
4093 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
4094
4095 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4096 MIPS_ABI_LAST.
4097 (mips_abi_string, mips_abi_strings): New.
4098 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4099 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4100 tdep->mips_abi_string. Honor mips_abi_string. Default to
4101 O32 if no ABI is found.
4102 (mips_dump_tdep): Use mips_abi_strings.
4103 (mips_abi_update): New function.
4104 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4105 ``set mips abi'' and ``show mips abi''. Check the size of
4106 mips_abi_strings.
4107
4108 2002-06-19 Andrew Cagney <cagney@redhat.com>
4109
4110 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4111 constant.
4112
4113 2002-06-18 Joel Brobecker <brobecker@gnat.com>
4114
4115 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4116 current frame using only the first stack size adjustment. All
4117 subsequent size adjustments are not considered to be part of
4118 the "static" part of the current frame.
4119 Compute the address of the saved registers relative to the
4120 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4121 in use in this frame.
4122
4123 2002-06-18 Don Howard <dhoward@redhat.com>
4124
4125 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4126 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4127 suggesting this solution.
4128
4129 2002-06-18 Andrew Cagney <ac131313@redhat.com>
4130
4131 * config/romp/xm-rtbsd.h: Delete file.
4132 * config/romp/rtbsd.mh: Delete file.
4133
4134 2002-06-18 Keith Seitz <keiths@redhat.com>
4135
4136 * breakpoint.c (condition_command): Post breakpoint_modify
4137 when a condition is added to an existing breakpoint.
4138 (commands_command): Likewise for commands.
4139 (set_ignore_count): Likewise for ignore counts.
4140 If no tty, do not simply return, still need to send event
4141 notification.
4142 (ignore_command): Only print a newline if the command came
4143 from a tty.
4144 Don't call breakpoints_changed, since this is now properly
4145 handled by set_ignore_count.
4146
4147 2002-06-18 Andrew Cagney <cagney@redhat.com>
4148
4149 * MAINTAINERS: Note that cris-elf target can be compiled with
4150 -Werror.
4151 * cris-tdep.c (cris_register_name): Make return type constant.
4152 (cris_breakpoint_from_pc): Ditto.
4153
4154 2002-06-18 Michal Ludvig <mludvig@suse.cz>
4155
4156 * frame.h (struct frame_info): Change type of context to
4157 'struct context'.
4158
4159 2002-06-17 Andrew Cagney <cagney@redhat.com>
4160
4161 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4162 pointer.
4163 * gdbarch.h, gdbarch.c: Regenerate.
4164 * config/mips/tm-mips.h (mips_register_name): Update.
4165 * i386-tdep.h (i386_register_name): Update.
4166 * mips-tdep.c (mips_register_name): Update
4167 * alpha-tdep.c (alpha_register_name): Update.
4168 * arch-utils.c (legacy_register_name): Update.
4169 * arch-utils.h (legacy_register_name): Update.
4170 * avr-tdep.c (avr_register_name): Update.
4171 * ia64-tdep.c (ia64_register_name): Update.
4172 * i386-tdep.c (i386_register_name): Update.
4173 * sparc-tdep.c (sparc32_register_name): Update.
4174 (sparc64_register_name): Update.
4175 (sparclite_register_name): Update.
4176 (sparclet_register_name): Update.
4177 * sh-tdep.c (sh_generic_register_name): Update.
4178 (sh_sh_register_name): Update.
4179 (sh_sh3_register_name): Update.
4180 (sh_sh3e_register_name): Update.
4181 (sh_sh_dsp_register_name): Update.
4182 (sh_sh3_dsp_register_name): Update.
4183 (sh_sh4_register_name): Update.
4184 (sh_sh64_register_name): Update.
4185 * s390-tdep.c (s390_register_name): Update.
4186 * rs6000-tdep.c (rs6000_register_name): Update.
4187 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4188 (ns32k_register_name_32382): Update.
4189 * d10v-tdep.c (d10v_ts2_register_name): Update.
4190 (d10v_ts3_register_name): Update.
4191 * xstormy16-tdep.c (xstormy16_register_name): Update.
4192 * vax-tdep.c (vax_register_name): Update.
4193 * v850-tdep.c (v850_register_name): Update.
4194 * m68hc11-tdep.c (m68hc11_register_name): Update.
4195 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4196 (am33_register_name): Update.
4197
4198 2002-06-17 Grace Sainsbury <graces@redhat.com>
4199
4200 * m68k-tdep.c: Reindented.
4201
4202 2002-06-17 Andrew Cagney <ac131313@redhat.com>
4203
4204 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4205 list of predefined types.
4206
4207 2002-06-16 Mark Kettenis <kettenis@gnu.org>
4208
4209 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4210 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4211 REGISTER_CONVERT_TO_RAW): Remove defines.
4212 (i386_register_virtual_type, i386_register_convertible,
4213 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4214 Remove prototypes.
4215 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4216 macros mentioned above.
4217
4218 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4219 (i386lynx_saved_pc_after_call): Remove prototype.
4220 * i386ly-tdep.c: Include "i386-tdep.h".
4221 (i386lynx_saved_pc_after_call): Make static. Use
4222 read_memory_nobpt instead of read_memory. Use
4223 read_memory_unsigned_integer instead of read_memory_integer.
4224 (i386lynx_init_abi): New function.
4225 (i386lynx_coff_osabi_sniffer): New function.
4226 (_initialize_i386bsd_tdep): New function.
4227
4228 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4229 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4230 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4231 (i386_fix_call_dummy): Remove prototype.
4232 * i386-tdep.c (i386_call_dummy_words): New variable.
4233 (i386_gdbarch_init): Adjust for removal of the
4234 macros mentioned above.
4235
4236 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4237
4238 * command.h (add_setshow_auto_boolean_cmd): Replace
4239 add_set_auto_boolean_cmd.
4240 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4241 add_set_auto_boolean_cmd.
4242 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4243 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4244 mask-address'' command.
4245 (show_mask_address): Add cmd parameter.
4246 * remote.c (add_packet_config_cmd): Update. Change type of
4247 set_func and show_func to cmd_sfunc_ftype.
4248 (_initialize_remote): Update `set remote Z-packet'
4249 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4250 (show_remote_protocol_e_packet_cmd): Ditto.
4251 (show_remote_protocol_E_packet_cmd): Ditto.
4252 (show_remote_protocol_P_packet_cmd): Ditto.
4253 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4254 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4255 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4256 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4257 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4258 (show_remote_protocol_Z_packet_cmd): Ditto.
4259 (show_remote_protocol_binary_download_cmd): Ditto.
4260 (show_remote_cmd): Pass NULL to all of above.
4261
4262 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4263
4264 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4265 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4266 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4267 POP_FRAME): Remove defines.
4268 (i386_push_arguments, i386_store_struct_return,
4269 i386_extract_return_value, i386_store_return_value,
4270 i386_extract_struct_value_address, i386_push_dummy_frame,
4271 i386_pop_frame): Renove prototypes.
4272 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4273 macros mentioned above.
4274
4275 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4276
4277 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4278 add_set_boolean_cmd.
4279 (add_setshow_cmd): New function.
4280 * command.h (add_setshow_boolean_cmd): Replace
4281 add_set_boolean_cmd.
4282 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4283 and ``set rdiromatzero''.
4284 * maint.c (_initialize_maint_cmds): Update commented out code.
4285 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4286 * target.c (initialize_targets): Update `set
4287 trust-readonly-sections'.
4288 * remote.c (_initialize_remote): Update `set remotebreak'.
4289
4290 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4291
4292 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4293 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4294 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4295 fit into multi-arch framework.
4296 (i386_breakpoint_from_pc): New function.
4297 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4298 above.
4299
4300 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4301 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4302 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4303 (i386_frameless_function_invocation, i386_frame_num_args,
4304 i386_frame_init_saved_regs): Remove prototypes.
4305 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4306 macros mentioned above.
4307
4308 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4309
4310 * cli/cli-decode.c (set_cmd_cfunc): Update.
4311 (set_cmd_sfunc): Update.
4312 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4313 (set_cmd_sfunc, set_cmd_cfunc): Update.
4314 * cli/cli-decode.h: Update.
4315
4316 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4317
4318 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4319 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4320
4321 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4322
4323 * defs.h (auto_boolean): Declare enum.
4324 * command.h (cmd_auto_boolean): Delete enum.
4325 * mips-tdep.c (mask_address_var): Update.
4326 (mips_mask_address_p): Update.
4327 (show_mask_address): Update.
4328 * remote.c (struct packet_config): Update.
4329 (update_packet_config): Update.
4330 (show_packet_config_cmd): Update.
4331 (packet_ok): Update.
4332 (add_packet_config_cmd): Update.
4333 (_initialize_remote):
4334 * command.h: Update.
4335 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4336 (do_setshow_command): Update.
4337 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4338 * cli/cli-decode.h: Update.
4339
4340 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4341
4342 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4343 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4344 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4345 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4346 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4347 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4348
4349 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4350 list of DJGPP COFF targets.
4351
4352 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4353 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4354 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4355 (FP0_REGNUM): Remove define.
4356 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4357 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4358 (i386_register_virtual_size): Remove protoype.
4359 * i386-tdep.c (i386_register_virtual_size): Removed.
4360 (i386_extract_return_value, i386_store_return_value): Use
4361 FP0_REGNUM instead of NUM_FREGS to determine whether the
4362 floating-point registers are available.
4363 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4364 Adjust for removal of macros mentioned above.
4365
4366 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4367
4368 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4369 comments.
4370 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4371 Remove prototypes.
4372 (supply_gregset, fill_gregset): Remove use of register keyword and
4373 remove declaration for regmap. Use I386_NUM_GREGS instead of
4374 NUM_REGS and NUM_FREGS.
4375 (FPREGSET_FSAVE_OFFSET): Remove.
4376 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4377 NUM_FREGS to determine whether the floating-point registers are
4378 available.
4379
4380 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4381 gnu_store_registers): Replace usage of NUM_GREGS with
4382 I386_NUM_GREGS.
4383
4384 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4385 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4386 usage of NUM_GREGS with I386_NUM_GREGS.
4387
4388 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4389
4390 * i386bsd-nat.c: Include "i386-tdep.h".
4391 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4392 I386_NUM_GREGS.
4393
4394 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4395 and associated comment. They no longer make any sense, since we
4396 don't use this file anymore on Linux.
4397
4398 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4399 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4400 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4401 elements in these arrays.
4402 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4403 MAX_NUM_REGS.
4404
4405 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4406
4407 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4408 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4409
4410 2002-06-14 Andrew Cagney <cagney@redhat.com>
4411
4412 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4413 EXTRACT_RETURN_VALUE.
4414 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4415 EXTRACT_STRUCT_VALUE_ADDRESS.
4416 * gdbarch.h, gdbarch.c: Regenerate.
4417
4418 * values.c (value_being_returned): Handle
4419 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4420 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4421
4422 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4423 * arm-tdep.c (arm_gdbarch_init): Update.
4424 * avr-tdep.c (avr_gdbarch_init): Update.
4425 * cris-tdep.c (cris_gdbarch_init): Update.
4426 * d10v-tdep.c (d10v_gdbarch_init): Update.
4427 * ia64-tdep.c (ia64_gdbarch_init): Update.
4428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4429 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4430 * s390-tdep.c (s390_gdbarch_init): Update.
4431 * sh-tdep.c (sh_gdbarch_init): Update.
4432 * s390-tdep.c (s390_gdbarch_init): Update.
4433 * sparc-tdep.c (sparc_gdbarch_init): Update.
4434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4435 * v850-tdep.c (v850_gdbarch_init): Update.
4436 * vax-tdep.c (vax_gdbarch_init): Update.
4437 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4439
4440 * config/arc/tm-arc.h: Update.
4441 * config/d30v/tm-d30v.h: Update.
4442 * config/fr30/tm-fr30.h: Update.
4443 * config/h8300/tm-h8300.h: Update.
4444 * config/h8500/tm-h8500.h: Update.
4445 * config/i386/tm-i386.h: Update.
4446 * config/i386/tm-ptx.h: Update.
4447 * config/i386/tm-symmetry.h: Update.
4448 * config/i960/tm-i960.h: Update.
4449 * config/m32r/tm-m32r.h: Update.
4450 * config/m68k/tm-delta68.h: Update.
4451 * config/m68k/tm-linux.h: Update.
4452 * config/m68k/tm-m68k.h: Update.
4453 * config/m88k/tm-m88k.h: Update.
4454 * config/mcore/tm-mcore.h: Update.
4455 * config/mips/tm-mips.h: Update.
4456 * config/mn10200/tm-mn10200.h: Update.
4457 * config/pa/tm-hppa.h: Update.
4458 * config/pa/tm-hppa64.h: Update.
4459 * config/sparc/tm-sp64.h: Update.
4460 * config/sparc/tm-sparc.h: Update.
4461 * config/sparc/tm-sparclet.h: Update.
4462 * config/z8k/tm-z8k.h: Update.
4463
4464 2002-06-14 Andrew Cagney <cagney@redhat.com>
4465
4466 * Makefile.in (i386_linux_tdep_h): Define.
4467 (i386_tdep_h, i387_tdep_h): Define.
4468 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4469 $(i386_tdep_h) and $(i387_tdep_h).
4470 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4471
4472 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4473
4474 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4475 Already covered by the default.
4476
4477 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4478 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4479 (i386_gdbarch_init): Initialize long_double_format and long_double
4480 bit.
4481
4482 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4483 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4484 Move these to ...
4485 * config/i386/i386sol2.mh: ... here.
4486 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4487 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4488 (SIGCONTEXT_PC_OFFSET): Remove define.
4489 (IN_SIGTRAMP): Remove define.
4490 * i386-sol2-tdep.c: New file.
4491
4492 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4493 * config/i386/tm-i386nw.h: Removed.
4494
4495 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4496 USE_STRUCT_CONVENTION): Remove defines.
4497 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4498 (get_longjmp_target): Remove prototype.
4499 (IN_SIGTRAMP): Remove define.
4500 (i386bsd_in_sigtramp): Remove prototype.
4501 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4502 function. Update comment accordingly
4503 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4504 (FRAME_SAVED_PC): Remove define.
4505 (i386bsd_frame_saved_pc): Remove prototype.
4506 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4507 GET_LONGJMP_TARGET): Remove defines.
4508 (get_longjmp_target): Remove prototype.
4509 (IN_SIGTRAMP): Remove define.
4510 (i386bsd_in_sigtramp): Remove prototype.
4511 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4512 function. Update comment accordingly
4513 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4514 (FRAME_SAVED_PC): Remove define.
4515 (i386bsd_frame_saved_pc): Remove prototype.
4516 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4517 Remove prototype.
4518 (USE_STRUCT_CONVENTION): Remove prototype.
4519 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4520 declaration.
4521 (_initialize_i386bsd_nat): Revise logic to determine some
4522 constants at compile time when compiling a native GDB. Warn if
4523 things don't match up with what we expect.
4524 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4525 Remove variables.
4526 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4527 to use date stored in `struct gdbarch_tdep'.
4528 (i386bsd_sigcontext_offset): Remove varaible.
4529 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4530 stored in `struct gdbarch_tdep'.
4531 (i386bsd_frame_saved_pc): Make static.
4532 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4533 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4534 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4535 i386fbsd4_sc_pc_offset): New variables.
4536 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4537 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4538 functions.
4539 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4540 functions.
4541 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4542 Modify the value of i386fbsd_sigtramp_start and
4543 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4544 i386fbsd_sigtramp_end.
4545 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4546 function.
4547
4548 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4549 define to i386-linux-tdep.h.
4550 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4551 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4552 defines.
4553 (i386_linux_register_name, i386_linux_register_byte,
4554 i386_linux_register_raw_size): Remove prototypes.
4555 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4556 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4557 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4558 TARGET_WRITE_PC): Remove defines.
4559 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4560 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4561 i386_linux_write_pc): Remove prototypes.
4562 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4563 (get_longjmp_target): Remove prototype.
4564 * i386-linux-tdep.h: New file.
4565 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4566 * i386-linux-tdep.c: Include "i386-tdep.h" and
4567 "i386-linux-tdep.h".
4568 (i386_linux_register_name, i386_linux_register_byte,
4569 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4570 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4571 Make static.
4572 (i386_linux_init_abi): New function.
4573 (_initialize_i386_linux_tdep): New function.
4574
4575 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4576 (i386_saved_pc_after_call): Remove prototype.
4577 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4578 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4579 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4580 (i386_register_name, i386_stab_reg_to_regnum,
4581 i386_dwarf_reg_to_regnum): Remove prototypes.
4582 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4583 SIZEOF_SSE_REGS): Remove defines.
4584 (REGISTER_BYTES): Remove define.
4585 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4586 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4587 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4588 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4589 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4590 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4591 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4592 (get_longjmp_target): Remove prototype.
4593 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4594 (sigtramp_saved_pc): Remove define.
4595 (i386v4_sigtramp_saved_pc): Remove prototype.
4596 * config/i386/tm-go32.h (FRAME_CHAIN,
4597 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4598 (i386go32_frame_saved_pc): Remove prototype.
4599 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4600 (get_longjmp_target): Remove prototype.
4601 * i386-tdep.h: Include "osabi.h".
4602 (enum i386_abi): Removed.
4603 (enum struct_return): New enum.
4604 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4605 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4606 sc_pc_offset members.
4607 (i386_gdbarch_register_os_abi): Remove prototype.
4608 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4609 I386_SSE_NUM_REGS): New defines.
4610 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4611 I386_SSE_SIZEOF_REGS): New defines.
4612 (i386_register_name, i386_register_byte, i386_register_raw_size):
4613 New prototypes.
4614 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4615 (i386bsd_sigtramp_saved_pc): New prototype.
4616 * i386-tdep.c: Don't include "elf-bfd.h".
4617 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4618 i386_frame_chain, i386_saved_pc_after_call): Make static.
4619 (i386_frame_saved_pc): Rewrite to call architecture dependent
4620 function to deal with signal handlers. Make static.
4621 (i386go32_frame_saved_pc): Removed.
4622 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4623 Removed.
4624 (i386_get_longjmp_target): New function.
4625 (default_struct_convention, pcc_struct_convention,
4626 reg_struct_convention, valid_conventions, struct_convention): New
4627 variables.
4628 (i386_use_struct_convention): New function.
4629 (i386v4_sigtramp_saved_pc): Renamed to
4630 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4631 (i386_pc_in_sigtramp): New function.
4632 (i386_abi_names): Removed.
4633 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4634 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4635 Removed.
4636 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4637 i386_gdbarch_register_os_abi): Removed.
4638 (struct i386_abi_handler): Removed.
4639 (i386_abi_handler_list): Removed.
4640 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4641 functions.
4642 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4643 i386_nw_init_abi): New functions.
4644 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4645 Use set_gdbarch_xxx() calls instead of relying on macros for a
4646 number of calls.
4647 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4648 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4649 Register the various architecture variants defined in this file.
4650
4651 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4654 (struct main_type): Remove arg_types member. Update comments for
4655 struct field.
4656 (TYPE_ARG_TYPES): Remove.
4657 (TYPE_FN_FIELD_ARGS): Update.
4658 (smash_to_method_type): Update prototype.
4659
4660 * c-typeprint.c (cp_type_print_method_args): Take method type
4661 instead of argument list. Use new argument layout. Simplify.
4662 (c_type_print_args): Use new argument layout. Simplify.
4663 (c_type_print_base): Update call to cp_type_print_method_args.
4664 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4665 argument; use die->type instead. Update call to
4666 smash_to_method_type.
4667 (read_structure_scope): Update call to dwarf2_add_member_fn.
4668 * gdbtypes.c (allocate_stub_method): Update comment.
4669 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4670 Use new argument layout.
4671 (check_stub_method): Use new argument layout. Don't count
4672 void as an argument.
4673 (print_arg_types): Update comments. Use new argument layout.
4674 (recursive_dump_type): Don't print arg_types member.
4675 * hpread.c (hpread_read_struct_type): Use new argument layout.
4676 (fixup_class_method_type): Likewise.
4677 (hpread_type_lookup): Likewise.
4678 * stabsread.c (read_type): Update calls to read_args and
4679 smash_to_method_type.
4680 (read_args): Use new argument layout. Simplify.
4681 * valops.c (typecmp): Use new argument layout. Update parameters
4682 and comments. Simplify.
4683 (hand_function_call): Use new argument layout.
4684 (search_struct_method): Update call to typecmp.
4685 (find_overload_match): Use new argument layout.
4686
4687 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4688
4689 * NEWS: Mention multithreaded debug support for gdbserver.
4690
4691 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4692
4693 * MAINTAINERS: Mention NEWS.
4694
4695 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4696
4697 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4698 (struct mips_objfile_private, compare_pdr_entries): New.
4699 (non_heuristic_proc_desc): Read the ".pdr" section if it
4700 is present.
4701
4702 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4703
4704 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4705 (arm_debug): New static variable.
4706 (_initialize_arm_tdep): Add ``set debug arm'' command.
4707
4708 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4709
4710 * Makefile.in (sim_arm_h): Define.
4711 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4712 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4713 (arm_register_sim_regno): New function, map an internal REGNUM
4714 onto a simulator register number.
4715 (arm_gdbarch_init): Set register_sim_regno.
4716
4717 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4718
4719 * MAINTAINERS: Add self.
4720
4721 2002-06-11 Jim Blandy <jimb@redhat.com>
4722
4723 * source.c (source_info): Mention whether the symtab has
4724 information about preprocessor macros.
4725
4726 Call the command `info macro', not `show macro'.
4727 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4728 Fix error message.
4729 (_initialize_macrocmd): Register `info_macro_command' in
4730 `infolist', not `showlist'.
4731
4732 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4733
4734 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4735 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4736 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4737 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4738 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4739 unconditionally.
4740 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4741 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4742 (_initialize_mips_tdep): Remove dead code.
4743 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4744 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4745 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4746 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4747 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4748 MIPS_LAST_FP_ARG_REGNUM): Remove.
4749
4750 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4751
4752 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4753 (unwind_tmp_obstack_free, parse_frame_info)
4754 (update_context, cfi_read_fp, cfi_write_fp)
4755 (cfi_frame_chain, cfi_init_extra_frame_info)
4756 (cfi_virtual_frame_pointer): Use the above function.
4757 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4758
4759 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4760
4761 * v850-tdep.c (v850_type_is_scalar): New function.
4762 (v850_use_struct_convention): Match current gcc implementation
4763 as close as possible.
4764 (v850_push_arguments): Fix stack_offset handling. Don't write
4765 struct_addr into register. This is done by v850_store_struct_return.
4766 (v850_extract_return_value): Care for structs.
4767 (v850_store_return_value): Ditto.
4768 (v850_store_struct_return): Actually write address.
4769
4770 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4771
4772 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4773 without debug information too.
4774
4775 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4776
4777 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4778 Make multi-arch pure.
4779 * gdbarch.h, gdbarch.c: Re-generate.
4780 * arm-tdep.c (arm_print_float_info): Update.
4781 * arch-utils.h (default_print_float_info): Update.
4782 * arch-utils.c (default_print_float_info): Update.
4783 * infcmd.c (float_info): Update call.
4784
4785 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4786
4787 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4788 the front of the initialize list.
4789
4790 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4791
4792 * infrun.c (struct inferior_status): Replace fields
4793 selected_frame_address and selected_level with field
4794 selected_frame_id.
4795 (save_inferior_status): Update. Use get_frame_id.
4796 (struct restore_selected_frame_args): Delete.
4797 (restore_selected_frame): Update. Use frame_find_by_id.
4798 (restore_inferior_status): Update.
4799
4800 * breakpoint.h (struct breakpoint): Change type of
4801 watchpoint_frame to frame_id.
4802 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4803 call to get_current_frame.
4804 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4805 get_current_frame.
4806 (watchpoint_check): Use frame_find_by_id.
4807
4808 * frame.h (record_selected_frame): Delete declaration.
4809 * stack.c (record_selected_frame): Delete function.
4810
4811 * frame.h (struct frame_id): Define.
4812 (get_frame_id): Declare.
4813 (frame_find_by_id): Declare.
4814 * frame.c (frame_find_by_id): New function.
4815 (get_frame_id): New function.
4816
4817 2002-06-10 Andrey Volkov <avolkov@transas.com>
4818
4819 * ser-e7kpc.c: Fix duplicated define and call of
4820 _initialize_ser_e7000pc
4821
4822 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4823
4824 * signals/signals.c (target_signal_from_host): Fix #ifdef
4825 SIGRTMIN case.
4826 (do_target_signal_to_host): Likewise.
4827
4828 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4829
4830 * mips-tdep.c (mips_find_abi_section): New function.
4831 (mips_gdbarch_init): Call it.
4832
4833 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4834
4835 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4836 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4837 after Andrew's 2002-06-08 gdbarch change.
4838
4839 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4840
4841 * i386-linux-nat.c (suppy_gregset): Don't supply
4842 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4843 register cache.
4844 (fill_gregset): Don't fetch it under the same circumstances.
4845
4846 2002-06-09 Andrew Cagney <cagney@redhat.com>
4847
4848 * Makefile.in (callback_h): Define.
4849 (remote_sim_h): Update path to remote-sim.h.
4850 (remote-rdp.o): Add $(callback_h).
4851 (remote-sim.o): Use $(callback_h).
4852 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4853 * remote-rdp.c: Include "gdb/callback.h".
4854
4855 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4856
4857 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4858 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4859
4860 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4861
4862 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4863 * rdi-share/serpardr.c: Ditto.
4864 * rdi-share/unixcomm.c: Ditto.
4865 * rdi-share/serdrv.c: Ditto.
4866 * rdi-share/hostchan.h: Ditto.
4867 * rdi-share/hostchan.c: Ditto.
4868 * rdi-share/host.h: Ditto.
4869 * rdi-share/devsw.c: Ditto.
4870
4871 * objfiles.h: Change type of obj_private to void pointer.
4872 * pa64solib.c: Update copyright. Don't include "assert.h", use
4873 strcmp instead of STREQ, use LONGEST, do not use PTR
4874 * somsolib.c: Ditto.
4875
4876 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4877 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4878 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4879
4880 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4881
4882 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4883 (default_get_saved_register): Delete function.
4884 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4885 generic_unwind_get_saved_register.
4886 * gdbarch.h, gdbarch.c: Re-generate.
4887
4888 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4889
4890 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4891 generic_func_frame_chain_valid.
4892 * gdbarch.h, gdbarch.c: Re-generate.
4893 * blockframe.c (generic_func_frame_chain_valid): Only check
4894 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4895 passing FP to PC_IN_CALL_DUMMY.
4896 Fix PR gdb/360.
4897
4898 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4899
4900 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4901 (register_gdbarch_data): Initialize init_p.
4902 (gdbarch_data): Initialize data pointer using the init function.
4903 (init_gdbarch_data): Delete function.
4904 (gdbarch_update_p): Update.
4905 (initialize_non_multiarch): Update.
4906 (struct gdbarch): Add field initialized_p.
4907 * gdbarch.h, gdbarch.c: Re-generate.
4908
4909 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4910
4911 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4912 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4913 better do the things actually here.
4914 * x86-64-tdep.c (x86_64_register_name2nr): New.
4915 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4916 (x86_64_gdbarch_init): Respect the above change.
4917 * x86-64-tdep.h (x86_64_register_name2nr)
4918 (x86_64_register_nr2name): Add prototypes.
4919 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4920
4921 2002-06-06 Michael Snyder <msnyder@redhat.com>
4922
4923 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4924 Delete extra braces and re-indent.
4925 (d10v_store_return_value): Char return values
4926 must be shifted over by one byte in R0.
4927 (d10v_extract_return_value): Delete extra braces, re-indent.
4928
4929 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4930
4931 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4932 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4933 (d10v_integer_to_address): Rewrite.
4934 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4935 the d10v specific functions which take care of converting to the
4936 correct space.
4937
4938 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4939
4940 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4941 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4942
4943 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4944
4945 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4946 includes.
4947 * config/tm-linux.h: Ditto.
4948 * config/alpha/tm-alphalinux.h: Ditto.
4949 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4950 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4951 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4952 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4953 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4954 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4955 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4956 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4957 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4958 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4959 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4960 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4961 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4962 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4963 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4964 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4965 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4966 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4967 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4968 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4969 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4970 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4971 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4972 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4973 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4974 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4975 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4976 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4977 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4978 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4979 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4980 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4981 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4982 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4983 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4984 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4985 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4986
4987 2002-05-04 Aidan Skinner <aidan@velvet.net>
4988
4989 * ada-exp.tab.c: New file
4990 * ada-exp.y: New file
4991 * ada-lang.c: New file
4992 * ada-lang.h: New file
4993 * ada-lex.c: New file
4994 * ada-lex.l: New file
4995 * ada-tasks.c: New file
4996 * ada-typeprint.c: New file
4997 * ada-valprint.c: New file
4998
4999 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5000
5001 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5002 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5003
5004 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5005
5006 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5007 insetead of ppc-linux-tdep.o.
5008 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5009 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5010
5011 2002-06-02 Andrew Cagney <ac131313@redhat.com>
5012
5013 2002-05-07 Christian Groessler <chris@groessler.org>
5014 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5015 bit register contents for little endian hosts.
5016
5017 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5018
5019 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5020 any maintainer.
5021
5022 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5023
5024 * gdbarch.h: Regenerate.
5025
5026 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5027
5028 * MAINTAINERS: Add everyone to write-after-approval list.
5029
5030 2002-06-01 Andrew Cagney <ac131313@redhat.com>
5031
5032 * stack.c (frame_info): Use frame_register_unwind instead of
5033 saved_regs. Mention when the SP is on the stack or in a register.
5034
5035 * frame.h (frame_register_unwind_ftype): Define. Document.
5036 (struct frame_info): Add field register_unwind and
5037 register_unwind_cache.
5038 (frame_register_unwind): Declare.
5039 (generic_unwind_get_saved_register): Declare.
5040
5041 * frame.c (frame_register_unwind): New function.
5042 (generic_unwind_get_saved_register): New function.
5043
5044 * blockframe.c (generic_call_dummy_register_unwind): New function.
5045 (frame_saved_regs_register_unwind): New function.
5046 (set_unwind_by_pc): New function.
5047 (create_new_frame): New function.
5048 (get_prev_frame): New function.
5049
5050 2002-05-30 Andrew Cagney <ac131313@redhat.com>
5051
5052 * a29k-share/: Delete directory.
5053 * remote-vx29k.c: Delete file.
5054
5055 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5056
5057 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5058 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5059
5060 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5061
5062 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5063 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5064 (sparc64nbsd-nat.o)
5065 (sparcnbsd-nat.o)
5066 (sparcnbsd-tdep.o): New dependency lists.
5067 * NEWS: Note new UltraSPARC NetBSD native configuration.
5068 * configure.host (sparc64-*-netbsd*): New host.
5069 * configure.tgt (sparc-*-netbsdelf*)
5070 (sparc-*-netbsd*): Set gdb_target to nbsd.
5071 (sparc64-*-netbsd*): New target.
5072 * sparc64nbsd-nat.c: New file.
5073 * sparcnbsd-nat.c: New file.
5074 * sparcnbsd-tdep.c: New file.
5075 * sparcnbsd-tdep.h: New file.
5076 * config/sparc/nbsd.mt: New file.
5077 * config/sparc/nbsd64.mh: New file.
5078 * config/sparc/nbsd64.mt: New file.
5079 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5080 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5081 (HOST_IPC): Remove.
5082 * config/sparc/nbsdaout.mt: Remove.
5083 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5084 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5085 (HOST_IPC): Remove.
5086 * config/sparc/nbsdelf.mt: Remove.
5087 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5088 sparc-nat.c compatiblity defines.
5089 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5090 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5091 * config/sparc/tm-nbsd64.h: New file.
5092 * config/sparc/tm-nbsdaout.h: Remove.
5093 * config/sparc/xm-nbsd.h: Remove.
5094
5095 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5096
5097 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5098 * sparc-tdep.c: Include osabi.h.
5099 (gdbarch_tdep): Add osabi member.
5100 (_initialize_sparc_tdep): Use gdbarch_register.
5101 (sparc_gdbarch_init): Use generic OS ABI framework.
5102 (sparc_dump_tdep): New function.
5103
5104 2002-05-30 Kevin Buettner <kevinb@redhat.com>
5105
5106 * corefile.c (do_captured_read_memory_integer): Return non-zero
5107 result.
5108 (safe_read_memory_integer): Copy result of memory read when
5109 status is non-zero. Also, add comments.
5110
5111 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5112
5113 * Makefile.in (ppc_tdep_h): Define.
5114 (ppc-linux-nat.o)
5115 (ppc-linux-tdep.o)
5116 (rs6000-tdep.o): Use $(ppc_tdep_h).
5117 (ppc-sysv-tdep.o)
5118 (ppcnbsd-nat.o)
5119 (ppcnbsd-tdep.o): New dependency lists.
5120 * ppc-tdep.h: Use generic OS ABI framework.
5121 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5122 (ppc_linux_init_abi): New functions.
5123 (ppc_sysv_abi_broken_use_struct_convention)
5124 (ppc_sysv_abi_use_struct_convention)
5125 (ppc_sysv_abi_push_arguments): Move to...
5126 * ppc-sysv-tdep.c: ...here.
5127 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5128 * rs6000-tdep.c (process_note_abi_tag_sections)
5129 (get_elfosabi): Remove.
5130 (rs6000_gdbarch_init): Use generic OS ABI framework.
5131 (rs6000_dump_tdep): New function.
5132 (_initialize_rs6000_tdep): Use gdbarch_register.
5133 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5134 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5135 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5136 of ppc-linux-tdep.o.
5137 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5138 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5139 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5140 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5141 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5142 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5143
5144 2002-05-29 Jim Blandy <jimb@redhat.com>
5145
5146 * macroscope.c (default_macro_scope): Put `void' in empty argument
5147 list.
5148
5149 2002-05-29 Andrew Cagney <ac131313@redhat.com>
5150
5151 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5152 * arch-utils.c: Include "sim-regno.h".
5153 * gdbarch.sh: Don't include "sim-regno.h".
5154 * gdbarch.h, gdbarch.c: Regenerate.
5155 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5156 here.
5157 * arch-utils.h (legacy_register_sim_regno): To here.
5158 * remote-sim.c (legacy_register_sim_regno): Move function from
5159 here.
5160 * arch-utils.c (legacy_register_sim_regno): To here.
5161
5162 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5163
5164 * sim-regno.h: New file.
5165 * Makefile.in (sim_regno_h): Define.
5166 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5167 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5168 (legacy_register_sim_regno): New function.
5169 (one2one_register_sim_regno): New function.
5170 (gdbsim_fetch_register): Rewrite.
5171 (gdbsim_store_register): Only store a register when
5172 REGISTER_SIM_REGNO is valid.
5173 * d10v-tdep.c: Include "sim-regno.h".
5174 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5175 (d10v_ts3_register_sim_regno): Ditto.
5176 * gdbarch.sh: Include "sim-regno.h".
5177 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5178 * gdbarch.h, gdbarch.c: Regenerate.
5179 * arch-utils.h (default_register_sim_regno): Delete declaration.
5180 * arch-utils.c (default_register_sim_regno): Delete function.
5181
5182 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5183
5184 * ppcnbsd-nat.c: Rewrite.
5185 * ppcnbsd-tdep.c: New file.
5186 * ppcnbsd-tdep.h: New file.
5187 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5188 solib.o, and solib-svr4.o.
5189 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5190 nbsd-tdep.o, and corelow.o.
5191
5192 2002-05-28 Andrew Cagney <ac131313@redhat.com>
5193
5194 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5195 `tr' and `sed'. Mention that `broken' targets are not expected to
5196 build.
5197
5198 2002-05-27 Michal Ludvig <mludvig@suse.cz>
5199
5200 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5201 Let PC point right after the prologue before looking up symbols.
5202
5203 2002-05-27 Martin M. Hunt <hunt@redhat.com>
5204
5205 * i386-tdep.c (i386_register_virtual_type): Return
5206 builtin_type_vec128i for SSE registers.
5207
5208 * gdbtypes.h (builtin_type_vec128i): Declare.
5209
5210 * gdbtypes.c (build_builtin_type_vec128i): New function.
5211 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5212 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5213 (build_gdbtypes): Initialize new builtin vector types.
5214 (_initialize_gdbtypes): Register new vector types with gdbarch.
5215
5216 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5217
5218 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5219 since it has been multi-arch'd.
5220 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5221 Move Alpha and VAX multi-arch news entries to same section
5222 as other multi-arch news.
5223
5224 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5225
5226 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5227 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5228 static. Rename some register numbers to put them in ns32k-tdep
5229 private namespace.
5230 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5231 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5232 functions.
5233 (_initialize_ns32k_tdep): Use gdbarch_register.
5234 * ns32k-tdep.h: New file.
5235 * ns32knbsd-tdep.c: New file.
5236 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5237 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5238 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5239 REGISTER_BYTES, REGISTER_BYTE): Remove.
5240 * config/ns32k/tm-ns32k.h: New file.
5241 * config/ns32k/tm-umax.h: Remove.
5242
5243 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5244
5245 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5246 ns32k_store_struct_return, ns32k_extract_return_value,
5247 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5248 functions.
5249 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5250 ns32k_saved_pc_after_call.
5251 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5252 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5253 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5254 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5255 ns32k_extract_struct_value_address.
5256
5257 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5258
5259 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5260 ns32k_fix_call_dummy): New.
5261 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5262 ns32k_call_dummy_words.
5263 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5264 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5265 CALL_DUMMY_NARGS): Remove.
5266 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5267
5268 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5269
5270 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5271 ns32k_frame_saved_pc, ns32k_frame_args_address,
5272 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5273 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5274 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5275 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5276 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5277 (BREAKPOINT): Remove..
5278 (FRAME_CHAIN): Define as ns32k_frame_chain.
5279 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5280 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5281 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5282 (FRAME_FIND_SAVED_REGS): Remove.
5283 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5284 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5285 (POP_FRAME): Define as ns32k_pop_frame.
5286
5287 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5288
5289 * ns32k-tdep.c (ns32k_register_byte_32082,
5290 ns32k_register_byte_32382, ns32k_register_raw_size,
5291 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5292 functions.
5293 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5294 ns32k_register_byte_32382.
5295 * config/ns32k/tm-umax.h: Update copyright years.
5296 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5297 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5298 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5299 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5300 (ns32k_get_enter_addr): Fix prototype.
5301
5302 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5303
5304 * ns32k-tdep.c: Update copyright years.
5305 (ns32k_register_name_32082): New function.
5306 (ns32k_register_name_32382): Ditto.
5307 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5308 (REGISTER_NAME): Define as ns32k_register_name_32382.
5309 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5310 (REGISTER_NAME): Define as ns32k_register_name_32082.
5311
5312 2002-05-24 Jim Blandy <jimb@redhat.com>
5313
5314 * dwarf2read.c (free_line_header): Use xfree, not free.
5315
5316 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5317
5318 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5319 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5320
5321 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5322
5323 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5324
5325 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5326
5327 From Ross Alexander at NEC Europe:
5328 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5329
5330 2002-05-23 Michael Snyder <msnyder@redhat.com>
5331
5332 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5333 for input, rather than parse_and_eval_address.
5334
5335 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5336
5337 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5338 * Makefile.in (sim_d10v_h): Update definition.
5339
5340 2002-05-24 Andrew Cagney <cagney@redhat.com>
5341
5342 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5343 change `2002-05-22 Michael Snyder' below.
5344 (d10v_push_arguments): Ditto.
5345 (d10v_extract_return_value): Ditto.
5346
5347 2002-05-23 Jim Blandy <jimb@redhat.com>
5348
5349 * macrotab.c (check_for_redefinition): Don't complain if the new
5350 definition is the same as the previous one. Take more arguments
5351 to allow the comparison.
5352 (macro_define_object, macro_define_function): Pass more arguments
5353 to check_for_redefinition.
5354
5355 2002-05-22 Michael Snyder <msnyder@redhat.com>
5356
5357 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5358 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5359 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5360 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5361 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5362 Add a temp variable to save a call (and a memory read).
5363 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5364 if possible (so that PC_IN_CALL_DUMMY will work).
5365
5366 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5367
5368 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5369
5370 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5371
5372 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5373 fde->cie_ptr.
5374 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5375 (dwarf2_build_frame_info): Add offset to fde->initial_location
5376 so that frames of shared libraries are mapped correctly.
5377 (execute_stack_op): Change type of 'result' from ULONGEST to
5378 CORE_ADDR.
5379
5380 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5381
5382 * config/alpha/tm-nbsd.h: Include solib.h.
5383
5384 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5385
5386 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5387 assumptions about the host's byte order.
5388
5389 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5390
5391 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5392 to dependency list.
5393 * alphanbsd-tdep.c: Include solib-svr4.h.
5394 * shnbsd-tdep.c: Ditto.
5395
5396 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5397
5398 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5399 nbsd-tdep.h to dependency list.
5400 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5401 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5402 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5403 nbsdaout.mh and nbsdelf.mh consistently.
5404 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5405 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5406 nbsdaout.mt and nbsdelf.mh consistently.
5407 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5408 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5409 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5410 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5411 a.out shared library stuff from here...
5412 * config/nm-nbsdaout.h: ...to here.
5413 * config/tm-nbsd.h: Remove.
5414 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5415 * config/arm/nbsd.mh: Remove.
5416 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5417 nbsd-tdep.o.
5418 * config/arm/nbsdaout.mh: New file.
5419 * config/arm/nbsdelf.mh: New file.
5420 * config/arm/nm-nbsdaout.h: New file.
5421 * config/i386/nbsd.mh: Remove.
5422 * config/i386/nbsd.mt: Remove.
5423 * config/i386/nbsdaout.mh: New file.
5424 * config/i386/nbsdaout.mt: New file.
5425 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5426 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5427 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5428 i386_register_u_addr): Remove.
5429 * config/i386/nm-nbsdaout.h: New file.
5430 * config/i386/nm-nbsdelf.h: Remove.
5431 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5432 (USE_STRUCT_CONVENTION): Remove.
5433 * config/i386/tm-nbsdaout.h: New file.
5434 * config/i386/tm-nbsdelf.h: Remove.
5435 * config/m68k/nbsd.mh: Remove.
5436 * config/m68k/nbsd.mt: Remove.
5437 * config/m68k/nbsdaout.mh: New file.
5438 * config/m68k/nbsdaout.mt: New file.
5439 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5440 * config/m68k/nm-nbsdaout.h: New file.
5441 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5442 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5443 * config/ns32k/nbsd.mh: Remove.
5444 * config/ns32k/nbsd.mt: Remove.
5445 * config/ns32k/nbsdaout.mh: New file.
5446 * config/ns32k/nbsdaout.mt: New file.
5447 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5448 * config/ns32k/nm-nbsdaout.h: New file.
5449 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5450 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5451 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5452 (SVR4_SHARED_LIBS): Remove.
5453 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5454 * config/sparc/nbsd.mh: Remove.
5455 * config/sparc/nbsd.mt: Remove.
5456 * config/sparc/nbsdaout.mh: New file.
5457 * config/sparc/nbsdaout.mt: New file.
5458 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5459 * config/sparc/nbsdelf.mt: New file.
5460 * config/sparc/nm-nbsdaout.h: New file.
5461 * config/sparc/nm-nbsdelf.h: Remove.
5462 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5463 * config/sparc/tm-nbsdaout.h: New file.
5464
5465 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5466
5467 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5468 mipsnbsd-tdep.c
5469 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5470
5471 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5472
5473 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5474 shnbsd-nat.c.
5475 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5476
5477 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5478
5479 * NEWS: Note new MIPS NetBSD native configuration.
5480 * configure.host (mips*-*-netbsd*): New host.
5481 * configure.tgt (mips*-*-netbsd*): New target.
5482 * mipsnbsd-nat.c: New file.
5483 * mipsnbsd-tdep.c: New file.
5484 * mipsnbsd-tdep.h: New file.
5485 * config/mips/nbsd.mh: New file.
5486 * config/mips/nbsd.mt: New file.
5487 * config/mips/nm-nbsd.h: New file.
5488 * config/mips/tm-nbsd.h: New file.
5489
5490 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5491
5492 * Makefile.in (SFILES): Add osabi.c.
5493 (COMMON_OBS): Add osabi.o.
5494 (osabi.o): New dependency list.
5495 * osabi.c: New file.
5496 * osabi.h: New file.
5497 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5498
5499 * Makefile.in (alpha_tdep_h): Define and use instead of
5500 alpha-tdep.h.
5501 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5502 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5503 Remove.
5504 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5505 * alpha-tdep.h: Include osabi.h.
5506 (alpha_abi): Remove.
5507 (gdbarch_tdep): Use generic OS ABI framework.
5508 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5509 gdbarch_register_osabi.
5510 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5511 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5512 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5513
5514 * Makefile.in (sh_tdep_h): Add osabi.h.
5515 * sh-tdep.h (sh_osabi): Remove.
5516 (gdbarch_tdep): Use generic OS ABI framework.
5517 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5518 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5519 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5520 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5521
5522 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5523 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5524 gdbarch_register_osabi.
5525 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5526 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5527 (get_elfosabi): Rename to...
5528 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5529 ABI framework support routines.
5530 (arm_gdbarch_init): Use generic OS ABI framework.
5531 (arm_dump_tdep): Likewise.
5532 (_initialize_arm_tdep): Likewise.
5533 * arm-tdep.h: Include osabi.h.
5534 (arm_abi): Remove.
5535 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5536 osabi member.
5537 (arm_gdbarch_register_os_abi): Remove prototype.
5538 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5539 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5540
5541 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5542 * mips-tdep.c: Include osabi.h.
5543 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5544 OS ABI framework.
5545
5546 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5547
5548 * h8300-tdep.c: Fix formatting.
5549
5550 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5551
5552 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5553 printing vector registers.
5554
5555 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5556
5557 From Fernando Nasser:
5558 * remote.c (remote_async_open_1): Re-throw the exception when the
5559 connection fails.
5560 (remote_cisco_open): Ditto.
5561 (remote_open_1): Ditto.
5562
5563 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5564
5565 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5566 (remote_start_remote): Add uiout parameter. Pass through to
5567 remote_start_remote_dummy.
5568 (remote_open_1): Use catch_exception instead of catch_errors.
5569 (remote_async_open_1): Ditto.
5570 (remote_cisco_open): Ditto.
5571
5572 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5573
5574 * remote.c (remote_start_remote): Replace PTR with void pointer.
5575 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5576 static.
5577
5578 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5579
5580 * gdb_indent.sh: Allow the script to be run in the sim directory.
5581
5582 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5583
5584 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5585 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5586
5587 * corelow.c (core_open): Only call set_gdbarch_from_file if
5588 exec_bfd is NULL.
5589
5590 2002-05-17 Andrey Volkov <avolkov@transas.com>
5591
5592 * h8300-tdep.c: Add support of EXR register
5593 * config/h8300/tm-h8300.h: Ditto.
5594
5595 2002-05-17 Andrey Volkov <avolkov@transas.com>
5596
5597 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5598
5599 2002-05-17 Andrey Volkov <avolkov@transas.com>
5600
5601 * h8300-tdep.c: Change literal regnums to REGNO.
5602
5603 2002-05-17 Jim Blandy <jimb@redhat.com>
5604
5605 * NEWS: Note addition of macro support.
5606
5607 Expand preprocessor macros in C expressions.
5608 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5609 (scan_macro_expansion, scanning_macro_expansion,
5610 finished_macro_expansion): New function declarations.
5611 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5612 variable declarations.
5613 * parser-defs.h (expression_context_pc): New declaration.
5614 * parse.c (expression_context_pc): New variable.
5615 (parse_exp_1): Set expression_context_pc, as well as
5616 expression_context_block.
5617 * c-exp.y (yylex): If we're not already reading the result of a
5618 macro expansion, try to macro-expand the next token. When we're
5619 done scanning a macro expansion, switch back to the mainline text.
5620 Commas and `if's in a macro's expansion don't terminate the input.
5621 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5622 (macro_original_text, macro_expanded_text,
5623 expression_macro_lookup_func, expression_macro_lookup_baton): New
5624 variables.
5625 (scan_macro_expansion, scanning_macro_expansion,
5626 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5627 c_preprocess_and_parse): New functions.
5628 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5629 c_preprocess_and_parse, instead of c_parse.
5630 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5631 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5632
5633 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5634
5635 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5636 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5637 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5638
5639 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5640
5641 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5642
5643 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5644
5645 * Makefile.in (sh_tdep_h): Define and use.
5646 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5647 register enum): Move to...
5648 * * sh-tdep.h: ...here.
5649 * sh-tdep.c: Include sh-tdep.h.
5650 * sh3-rom.c: Likewise.
5651 * shnbsd-tdep.c: Likewise.
5652
5653 2002-05-16 Michael Snyder <msnyder@redhat.com>
5654
5655 * arm-tdep.c: Spelling fix in comment.
5656
5657 2002-05-16 Jim Blandy <jimb@redhat.com>
5658
5659 Add commands for manually expanding macros and showing their
5660 definitions.
5661 * macrocmd.c, macroscope.c, macroscope.h: New files.
5662 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5663 (macroscope_h): New variable.
5664 (HFILES_NO_SRCDIR): Add macroscope.h.
5665 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5666 (macroscope.o, macrocmd.o): New rules.
5667
5668 Teach the Dwarf 2 reader to read macro information.
5669 * dwarf2read.c: #include "macrotab.h".
5670 (dwarf_macinfo_buffer): New variable.
5671 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5672 dwarf_macinfo_size.
5673 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5674 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5675 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5676 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5677 dwarf2_macro_spaces_in_definition): New complaints.
5678 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5679 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5680 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5681 the partial symbol table.
5682 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5683 from what's recorded in the partial symbol table.
5684 (read_file_scope): If the compilation unit has a
5685 `DW_AT_macro_info' attribute, read its macro information.
5686 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5687
5688 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5689
5690 Fix PR gdb/546
5691 * ser-tcp.c: Don't include <netinet/udp.h>.
5692
5693 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5694
5695 * MAINTAINERS: Update my email address.
5696
5697 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5698
5699 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5700 include file of the same name.
5701
5702 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5703
5704 * configure.tgt: Mark v850 as multi-arched.
5705 * config/v850/tm-v850.h: Remove file.
5706 * config/v850/v850.mt: Eliminate TM_FILE.
5707
5708 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5709
5710 * v850-tdep.c: Full multi-arch.
5711 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5712 Define GDB_MULTI_ARCH to 2.
5713
5714 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5715
5716 * p-exp.y (current_type): New static variable.
5717 Carries the type of the expression at the position that is parsed.
5718 (push_current_type, pop_current_type): Two new functions. Used
5719 to store/restore current_type in expression on specific tokens.
5720 (search_field): New static variable. Set to one after parsing a point
5721 as at that point only a FIELDNAME token should be searched.
5722 (FIELDNAME): New token. After a point only a token belonging to
5723 current_type type definition is allowed.
5724 (all over token rules): reset and change current_type according
5725 to rules.
5726 (exp '[' rule): insert implicit array index field if
5727 exp is a pascal string type.
5728
5729 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5730
5731 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5732 frame info. Use frame_info's saved_regs instead of matching member
5733 in extra_frame_info throughout.
5734 (v850_frame_init_saved_regs): New function.
5735 (v850_init_extra_frame_info): Move most functionality into
5736 v850_frame_init_saved_regs().
5737 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5738 (v850_frame_find_saved_regs): Remove declaration.
5739 (FRAME_FIND_SAVED_REGS): Remove definition.
5740 (v850_frame_init_saved_regs): Add declaration.
5741 (FRAME_INIT_SAVED_REGS): Add definition.
5742
5743 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5744
5745 * v850-tdep.c: Begin multi-arch'ing v850.
5746 (v850_target_architecture_hook): Remove function.
5747 (v850_gdbarch_init): New function. Add code previously in
5748 v850_target_architecture_hook().
5749 (_initialize_v850_tdep): Don't set target_architecture_hook.
5750 Call register_gdbarch_init() instead.
5751
5752 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5753
5754 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5755 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5756 (fixup_class_method_type): Likewise.
5757
5758 2002-05-15 Jim Blandy <jimb@redhat.com>
5759
5760 Add macro structures to GDB's symbol tables. Nobody puts anything
5761 in them yet.
5762 * symtab.h (struct symtab): New member: `macro_table'.
5763 * buildsym.h (pending_macros): New global variable.
5764 * buildsym.c: #include "macrotab.h".
5765 (buildsym_init): Initialize `pending_macros'.
5766 (end_symtab): If we found macro information while reading a CU's
5767 debugging info, do build a symtab structure for it. Make the
5768 symtab point to the macro information, and clear the
5769 `pending_macros' pointer which held it while we were reading the
5770 debug info.
5771 (really_free_pendings): Free any pending macro table.
5772 * objfiles.h (struct objfile): New member: `macro_cache'.
5773 * objfiles.c (allocate_objfile): Set allocate and free functions
5774 for the macro cache's objstack.
5775 (free_objfile): Empty the macro cache's obstack.
5776 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5777 set new allocate and free functions for it.
5778 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5779 free functions for the macro cache's objstack. (Why is this
5780 function building its own objfile?)
5781 * symmisc.c (print_objfile_statistics): Print statistics on the
5782 macro bcache.
5783 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5784
5785 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5786
5787 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5788 (REGISTER_U_ADDR): Delete definition.
5789 (arm_register_u_addr): Delete declaration.
5790
5791 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5792
5793 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5794 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5795
5796 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5797
5798 * regcache.c (register_valid): Revise comments refering to "Not
5799 available" and "unavailable".
5800 * frame.c (frame_register_read): Ditto.
5801 * findvar.c (value_of_register): Ditto.
5802
5803 2002-05-15 Andrew Cagney <cagney@redhat.com>
5804
5805 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5806 (remote-sim.o): Update dependencies.
5807 (d10v-tdep.o): Specify dependencies.
5808 (sim_d10v_h): Define.
5809
5810 2002-05-14 Jim Blandy <jimb@redhat.com>
5811
5812 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5813 * macrotab.c (macro_lookup_inclusion, find_definition,
5814 new_macro_table): Same.
5815
5816 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5817 not `! strcmp ()'. This is a dubious improvement.
5818 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5819
5820 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5821 although it's not necessary, to avoid a warning.
5822
5823 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5824
5825 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5826 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5827 TYPE_INSTANCE_FLAGS.
5828 (struct main_type): New.
5829 (struct type): Move most members to struct main_type. Change
5830 cv_type and as_type to new type_chain member. Add instance_flags.
5831 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5832 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5833 (finish_cv_type): Remove prototype.
5834 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5835 Set TYPE_CHAIN.
5836 (alloc_type_instance): New function.
5837 (smash_type): New function.
5838 (make_pointer_type, make_reference_type, make_function_type)
5839 (smash_to_member_type, smash_to_method_type): Call smash_type.
5840 (make_qualified_type): New function.
5841 (make_type_with_address_space): Call make_qualified_type.
5842 (make_cv_type): Likewise.
5843 (finish_cv_type): Remove unnecessary function.
5844 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5845 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5846 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5847 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5848 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5849 * hpread.c (hpread_read_struct_type): Likewise.
5850 * stabsread.c (read_struct_type): Likewise.
5851
5852 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5853
5854 * configure.tgt: Add a catch all sh* target, for cases like
5855 sh[2,3,4]-elf and sh-hms.
5856
5857 2002-05-14 Keith Seitz <keiths@redhat.com>
5858
5859 * event-loop.c (create_file_handler): Don't do anything but
5860 update data when we are given a fd which we are already
5861 monitoring.
5862
5863 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5864
5865 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5866 (update_context): Use __func__ in warnings.
5867
5868 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5869
5870 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5871 and tcp_close to net_open and net_close.
5872 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5873 using UDP if requested. Don't try to disable Nagle on UDP
5874 sockets.
5875 * remote.c (remote_serial_open): New function. Warn about UDP.
5876 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5877
5878 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5879
5880 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5881
5882 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5883
5884 * configure.tgt: Remove sh-hms target.
5885 * MAINTAINERS: Don't list sh-hms as a separate target.
5886
5887 2002-05-13 Jim Blandy <jimb@redhat.com>
5888
5889 Add first preprocessor macro-expansion files.
5890 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5891 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5892 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5893 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5894 (COMMON_OBS): Add macrotab.o, macroexp.o.
5895 (macroexp.o, macrotab.o): New rules.
5896
5897 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5898
5899 * config/m88k/tm-m88k.h: Update copyright.
5900 (m88k_target_write_pc): Declare
5901 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5902 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5903 (SHIFT_INST_REGS): Update definition.
5904 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5905 using old definition of TARGET_WRITE_PC.
5906 * regcache.c (generic_target_write_pc): Delete code handling
5907 NNPC_REGNUM.
5908 * gdbarch.sh (NNPC_REGNUM): Delete.
5909 * gdbarch.h, gdbarch.c: Regenerate.
5910
5911 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5912
5913 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5914 builtin reg number.
5915
5916 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5917
5918 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5919 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5920 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5921 access macros.
5922 * c-typeprint.c (cp_type_print_method_args): Likewise.
5923 (c_type_print_args): Likewise.
5924 * d10v-tdep.c (d10v_push_arguments): Likewise.
5925 (d10v_extract_return_value): Likewise.
5926 * expprint.c (print_subexp): Likewise.
5927 * gdbtypes.c (lookup_primitive_typename): Likewise.
5928 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5929 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5930 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5931 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5932 (TYPE_VECTOR): Likewise.
5933 * hpread.c (hpread_read_struct_type)
5934 (fix_static_member_physnames, fixup_class_method_type)
5935 (hpread_type_lookup): Likewise.
5936 * mdebugread.c (parse_symbol, parse_type): Likewise.
5937 * p-lang.c (is_pascal_string_type): Likewise.
5938 * valops.c (hand_function_call): Likewise.
5939 * x86-64-tdep.c (classify_argument): Likewise.
5940
5941 * hpread.c (hpread_read_function_type)
5942 (hpread_read_doc_function_type): Call replace_type.
5943 * dstread.c (create_new_type): Delete.
5944 (decode_dst_structure, process_dst_function): Call alloc_type.
5945 Use type access macros.
5946
5947 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5948
5949 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5950 the're not supported by the current architecture.
5951 (i387_fill_fxsave): Likewise.
5952
5953 2002-05-12 Fred Fish <fnf@redhat.com>
5954
5955 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5956 sect_index_xxx members to index the first slot in section_offsets
5957 if all of the section_offsets are zero.
5958
5959 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5960
5961 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5962 checked in with last change.
5963
5964 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5965
5966 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5967 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5968 config.sub.
5969
5970 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5971
5972 * Makefile.in: Update dependencies.
5973
5974 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5975
5976 * language.c (local_hex_string_custom): Simplify. Do not depend
5977 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5978
5979 * memattr.c (mem_info_command): Replace calls to
5980 longest_local_hex_string and longest_local_hex_string_custom.
5981 * buildsym.c (make_blockvector): Ditto.
5982 * solib.c (info_sharedlibrary_command): Ditto.
5983 * tracepoint.c (tracepoints_info): Ditto.
5984 * symtab.c (print_msymbol_info): Ditto.
5985
5986 * language.c (local_hex_string): Delete.
5987 (local_hex_string_custom): Delete.
5988 (longest_local_hex_string): Rename to local_hex_string.
5989 (longest_local_hex_string_custom): Rename to
5990 local_hex_string_custom.
5991 * language.h (local_hex_string): Change parameter type to LONGEST.
5992 (local_hex_string_custom): Ditto.
5993 (longest_local_hex_string): Delete declaration.
5994 (longest_local_hex_string_custom): Ditto.
5995
5996 * solib.c: Update copyright.
5997 * memattr.c: Update copyright.
5998
5999 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6000
6001 * arch-utils.h (legacy_register_to_value): Declare.
6002 (legacy_value_to_register): Declare.
6003 (legacy_convert_register_p): Declare.
6004 * arch-utils.c (legacy_register_to_value): New function.
6005 (legacy_value_to_register): New function.
6006 (legacy_convert_register_p): New function.
6007
6008 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6009 (VALUE_TO_REGISTER): Define.
6010 (CONVERT_REGISTER_P): Define.
6011 * gdbarch.h, gdbarch.c: Regenerate.
6012
6013 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6014 VALUE_TO_REGISTER.
6015 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6016 CONVERT_REGISTER_P.
6017
6018 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
6019 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6020
6021 * Makefile.in: Update dependencies for valops.c.
6022 * valops.c: Include "gdb_assert.h".
6023 (typecmp): Skip THIS parameter to methods.
6024 (find_method_list): Remove static_memfuncp argument,
6025 update callers. Check for stub methods.
6026 (find_value_oload_method_list): Don't set *static_memfuncp.
6027 (find_overload_match): Don't check for stub methods. Assert
6028 that methods are not stubbed. Handle static methods.
6029 (value_find_oload_method_list): Remove static_memfuncp argument.
6030 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6031 to the argument list for static stub methods.
6032 * value.h (value_find_oload_method_list): Update prototype.
6033
6034 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6035
6036 * arch-utils.h (generic_register_size): Declare.
6037 (generic_register_raw_size, generic_register_virtual_size): Delete
6038 declarations.
6039 * arch-utils.c (generic_register_raw_size): Delete.
6040 (generic_register_size): New function.
6041 (generic_register_virtual_size): Delete.
6042
6043 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6044 default generic_register_size.
6045 * gdbarch.h, gdbarch.c: Re-generate.
6046
6047 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6048 register_virtual_size.
6049 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6050 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6051
6052 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6053
6054 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6055 * gdbarch.h, gdbarch.c: Regenerate.
6056 * gnu-v3-abi.c: Update copyright.
6057 (vtable_address_point_offset): Update.
6058 (gnuv3_rtti_type): Update.
6059 (gnuv3_baseclass_offset): Update.
6060 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6061 (init_fetch_link_map_offsets): Update.
6062 * remote.c (get_remote_state): Update.
6063
6064 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6065
6066 * TODO: Remove value_headof/value_from_vtable_info comment.
6067 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6068 * values.c (value_headof, value_from_vtable_info): Delete.
6069 * value.h (value_from_vtable_info): Delete prototype.
6070
6071 2002-05-11 Andrew Cagney <ac131313@redhat.com>
6072
6073 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6074 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6075 $(gdb_regex_h).
6076 (gdb_assert_h): Define.
6077 (gdb_wait_h): Define.
6078 (gdb_regex_h): Define.
6079
6080 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
6081
6082 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6083 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6084
6085 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6086
6087 * nbsd-tdep.c: Fix comment.
6088
6089 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6092 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6093 (nbsd-tdep.o): New dependency list.
6094 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6095 nbsd-tdep.h.
6096 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6097 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6098 * nbsd-tdep.c: New file.
6099 * nbsd-tdep.h: New file.
6100 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6101 nbsd-tdep.h.
6102 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6103 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6104 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6105 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6106
6107 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6110 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6111 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6112 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6113 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6114 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6115
6116 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6117
6118 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6119 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6120 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6121 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6122 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6123 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6124 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6125
6126 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6127
6128 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6129 fetch_elfcore_registers to...
6130 * i386nbsd-tdep.c: ...here.
6131 (i386nbsd_use_struct_convention): Rename to...
6132 (i386nbsd_aout_use_struct_convention): ...this.
6133 (i386nbsd_supply_reg): New function.
6134 (i386nbsd_fill_reg): New function.
6135 (fetch_core_registers): Use i386nbsd_supply_reg.
6136 (fetch_elfcore_registers): Likewise.
6137 (_initialize_i386nbsd_tdep): New function.
6138 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6139 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6140 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6141 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6142 (i386nbsd_aout_use_struct_convention): ...this.
6143
6144 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6145
6146 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6147 (store_inferior_registers): Use shnbsd_fill_reg.
6148 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6149 sh_nbsd_supply_register): Collapse into...
6150 (shnbsd_supply_reg): ...this.
6151 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6152 (shnbsd_fill_reg): ...this.
6153 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6154 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6155 (fetch_core_registers): Use shnbsd_supply_reg.
6156 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6157 (sh_nbsd_core_fns): Rename to...
6158 (shnbsd_core_fns): ...this.
6159 (sh_nbsd_elfcore_fns): Rename to...
6160 (shnbsd_elfcore_fns): ...this.
6161 (sh_nbsd_init_abi): Rename to...
6162 (shnbsd_init_abi): ...this.
6163 (_initialize_sh_nbsd_tdep): Rename to...
6164 (_initialize_shnbsd_tdep): ...this.
6165 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6166 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6167 sh_nbsd_fill_register): Remove prototypes.
6168 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6169
6170 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6171
6172 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6173 (i387-nat.o): Delete dependency list.
6174 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6175 (x86-64-linux-nat.o): Likewise.
6176 * i387-nat.c: Delete file, moving contents to...
6177 * i387-tdep.c: ...here.
6178 * i387-nat.h: Rename...
6179 * i387-tdep.h: ...to this.
6180 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6181 * i386-linux-nat.c: Likewise.
6182 * i386bsd-nat.c: Likewise.
6183 * i386gnu-nat.c: Likewise.
6184 * i386nbsd-nat.c: Likewise.
6185 * i386v4-nat.c: Likewise.
6186 * x86-64-linux-nat.c: Likewise.
6187 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6188 * config/i386/go32.mh (NATDEPFILES): Likewise.
6189 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6190 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6191 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6192 * config/i386/linux.mh (NATDEPFILES): Likewise.
6193 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6195 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6196 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6197
6198 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6199
6200 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6201 (alphanbsd-nat.o): Remove dependency list.
6202 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6203 * alphanbsd-nat.c: Delete. Contents moved to...
6204 * alphanbsd-tdep.c: ...here.
6205 (_initialize_alphanbsd_tdep): Register core functions.
6206 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6207
6208 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6209
6210 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6211 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6212 (alphanbsd-nat.o): Likewise.
6213 (alphabsd-tdep.o): New dependency list.
6214 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6215 (fill_gregset): Use alphabsd_fill_reg.
6216 (supply_fpregset): Use alphabsd_supply_fpreg.
6217 (fill_fpregset): Use alphabsd_fill_fpreg.
6218 (fetch_inferior_registers): Use struct reg and struct fpreg
6219 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6220 and alphabsd_supply_fpreg.
6221 (store_inferior_registers): Use struct reg and struct fpreg
6222 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6223 and alphabsd_fill_fpreg.
6224 * alphabsd-tdep.c: New file.
6225 * alphabsd-tdep.h: New file.
6226 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6227 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6228 alphabsd_supply_fpreg.
6229 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6230 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6231
6232 2002-05-11 Eric Christopher <echristo@redhat.com>
6233
6234 * mips-tdep.c (mips_double_register_type): Fix thinko.
6235 (mips_single_register_type): Ditto.
6236 * MAINTAINERS: Add self.
6237
6238 2002-05-11 Mark Kettenis <kettenis@gnu.org>
6239
6240 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6241 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6242 right thing on architectures with different endianness and/or
6243 integer sizes.
6244
6245 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 From Christian Limpach <chris@Pin.LU>
6248 * configure.in: Change sed expression which comments out
6249 NATDEPFILES to also comment out continuation lines.
6250 * configure: Regenerate.
6251
6252 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6253
6254 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6255 big patch.
6256
6257 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6258
6259 * sh-tdep.c: Include correct file.
6260
6261 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6262
6263 New support for sh64-elf (sh5) target.
6264
6265 * configure.tgt: For sh64-elf target, default to sh-elf.
6266
6267 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6268 (struct gdbarch_tdep): Add new fields for new registers and ABI
6269 info.
6270
6271 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6272 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6273 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6274 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6275 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6276 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6277 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6278 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6279 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6280 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6281 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6282 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6283 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6284 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6285 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6286 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6287 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6288 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6289 sign_extend, sh64_nofp_frame_init_saved_regs,
6290 sh64_init_extra_frame_info, sh64_get_saved_register,
6291 sh64_extract_struct_value_address, sh64_pop_frame,
6292 sh64_push_arguments, sh64_extract_return_value,
6293 sh64_store_return_value, sh64_show_media_regs,
6294 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6295 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6296 sh_sh64_register_virtual_type,
6297 sh_sh64_register_convert_to_virtual,
6298 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6299 sh64_register_read, sh64_pseudo_register_write,
6300 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6301 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6302 sh64_do_pseudo_register, sh_compact_do_registers_info,
6303 sh64_do_registers_info, sh_gdbarch_init): New functions.
6304
6305 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
6306
6307 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6308
6309 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
6310
6311 * linespec.c (decode_line_1): Check for a double quote after
6312 a filename correctly.
6313
6314 2002-05-10 Jim Blandy <jimb@redhat.com>
6315
6316 Properly track the size of the current objfile's .debug_line section.
6317 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6318 (DWARF_LINE_SIZE): New macro.
6319 (dwarf2_build_psymtabs_hard): Record the line section's size in
6320 the partial symbol table.
6321 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6322 symbol table.
6323
6324 2002-05-10 Petr Sorfa <petrs@caldera.com>
6325
6326 * ia64-tdep.c: Handle breakpoints on L instruction type
6327 in MLX instruction bundle by moving the breakpoint to
6328 the third slot (X instruction type) as L holds only data.
6329
6330 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6331
6332 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6333 (process_one_symbol): Complain about discarding local symbols
6334 due to a misplaced N_LBRAC entry.
6335
6336 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6337
6338 From Daniel Berlin <dan@cgsoftware.com>
6339 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6340 decrease the depth we are at, in the case of templates.
6341
6342 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6343
6344 * mips-tdep.c (mips_float_register_type): New function.
6345 (mips_double_register_type): New function.
6346 (mips_print_register): Use them.
6347 (do_fp_register_row): Likewise.
6348
6349 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * signals/signals.c (signals): Remove conditional compilation around
6352 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6353 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6354
6355 2002-05-09 Michael Snyder <msnyder@redhat.com>
6356
6357 * remote-rdp.c (remote_rdp_can_run): Remove.
6358
6359 2002-05-09 Tom Tromey <tromey@redhat.com>
6360
6361 * jv-valprint.c (java_val_print): Handle `char' as a special case
6362 of TYPE_CODE_INT.
6363
6364 2002-05-09 Michael Snyder <msnyder@redhat.com>
6365
6366 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6367 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6368 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6369 str r(0123),[sp,#nn].
6370 (arm_skip_prologue): Ditto. Also make disassembly
6371 order-independent by placing it in a loop.
6372
6373 2002-05-06 Michael Snyder <msnyder@redhat.com>
6374
6375 * stabsread.c (read_type): Add recognition for new attribute:
6376 "@V;" means that an array type is actually a vector.
6377 This is analogous to the vector flag that's been added to dwarf2.
6378
6379 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6380
6381 * i386-tdep.h (i386_abi): New enum.
6382 (struct gdbarch_tdep): Replace os_ident member with abi.
6383 (i386_gdbarch_register_os_abi): New prototype.
6384 * i386-tdep.c (i386_abi_names): New array.
6385 (process_note_abi_tag_sections): Removed.
6386 (process_note_sections): New function.
6387 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6388 (struct i386_abi_handler): New struct.
6389 (i386_abi_handler_list): New variable.
6390 (i386_gdbarch_register_os_abi): New function.
6391 (i386_gdbarch_init): Adapt for the changes given above.
6392
6393 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * gregset.h: Say "GNU/Linux".
6396
6397 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6398
6399 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6400 (build_gdbtypes): Build builtin_type_v2_float.
6401 (_initialize_gdbtypes): Register new builtin type.
6402
6403 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6404
6405 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6406 (clear_gdbarch_swap): New function.
6407 (initialize_non_multiarch): Call.
6408 (gdbarch_update_p): Before calling init(), swap out and clear the
6409 existing architecture.
6410 * gdbarch.c: Regenerate.
6411
6412 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6413
6414 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6415 alphanbsd-tdep.c.
6416
6417 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6418
6419 * sh-nbsd-nat.c: Rename to...
6420 * shnbsd-nat.c: ...this.
6421 * sh-nbsd-tdep.c: Rename to...
6422 * shnbsd-tdep.c: ...this.
6423 * sh-nbsd-tdep.h: Rename to...
6424 * shnbsd-tdep.h: ...this.
6425 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6426 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6427
6428 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6429
6430 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6431 concatenation for command help messages.
6432
6433 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6434
6435 * NEWS: Note new sh*-*-netbsdelf* configuration.
6436 * configure.host: Set gdb_host_cpu to sh for all sh*.
6437 (sh*-*-netbsdelf*): New host.
6438 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6439 (sh*-*-netbsdelf*): New target.
6440 * sh-nbsd-nat.c: New file.
6441 * sh-nbsd-tdep.c: New file.
6442 * sh-nbsd-tdep.h: New file.
6443 * config/sh/nbsd.mh: New file.
6444 * config/sh/nbsd.mt: New file.
6445 * config/sh/nm-nbsd.h: New file.
6446 * config/sh/tm-nbsd.h: New file.
6447
6448 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6449
6450 * sh-tdep.c (sh_osabi_names): Declare.
6451 (process_note_abi_tag_sections): New function.
6452 (get_elfosabi): Ditto.
6453 (sh_gdbarch_register_os_abi): Ditto.
6454 (sh_dump_tdep): Ditto.
6455 _initialize_sh_tdep): Use gdbarch_register to register
6456 sh_gdbarch_init and sh_dump_tdep.
6457 * config/sh/tm-sh.h (sh_osabi): Declare.
6458 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6459
6460 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6461
6462 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6463 (thumb_scan_prologue): Ditto.
6464 (arm_find_callers_reg): Ditto.
6465 (arm_frame_chain): Ditto.
6466 (arm_init_extra_frame_info): Ditto.
6467 (arm_frame_saved_pc): Ditto.
6468 (arm_pop_frame): Ditto.
6469 (arm_push_return_address): New function.
6470 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6471 call_dummy_location, call_dummy_breakpoint_offset_p,
6472 call_dummy_breakpoint_offset, call_dummy_p,
6473 call_dummy_stack_adjust_p, call_dummy_words,
6474 sizeof_call_dummy_words, call_dummy_start_offset,
6475 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6476 call_dummy_address, push_return_address and push_dummy_frame for
6477 generic dummy frames.
6478
6479 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6480
6481 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6482 size computation for alloca.
6483 (sh_fp_frame_init_saved_regs): Likewise.
6484
6485 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6486
6487 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6488 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6489 * arm-tdep.c (arm_store_return_value): Use them.
6490 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6491 * remote-rdp.c (remote_rdp_fetch_register): Use
6492 ARM_MAX_REGISTER_RAW_SIZE.
6493 (remote_rdp_store_register): Likewise.
6494
6495 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6496
6497 * dwarf2cfi.c: Code cleanup, removed unused variables,
6498 added default labels to switch {} statements.
6499 * x86-64-tdep.c: Ditto.
6500 * x86-64-linux-nat.c: Ditto.
6501
6502 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6503
6504 * solib.h: Protect against multiple inclusion.
6505
6506 2002-05-06 Jim Blandy <jimb@redhat.com>
6507
6508 Add first preprocessor macro-expansion files.
6509 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6510 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6511 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6512 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6513 (COMMON_OBS): Add macrotab.o, macroexp.o.
6514 (macroexp.o, macrotab.o): New rules.
6515
6516 Separate the job of reading the line number info statement program
6517 header (...expialidocious) out into its own function.
6518 * dwarf2read.c (struct line_head, struct filenames, struct
6519 directories): Replace with...
6520 (struct line_header): New structure, containing the full
6521 contents of the statement program header, including the
6522 include directory and file name tables.
6523 (read_file_scope): If we have line number info, instead of just
6524 calling dwarf_decode_lines to do all the work, call
6525 dwarf_decode_line_header first to get a `struct line_header'
6526 containing the data in the statement program header, and then
6527 pass that to dwarf_decode_lines, which will pick up where that
6528 left off. Be sure to clean up the `struct line_header' object.
6529 (dwarf_decode_line_header, free_line_header, add_include_dir,
6530 add_file_name): New functions.
6531 (dwarf_decode_lines): Move all the code to read the statement
6532 program header into dwarf_decode_line_header. Take the line
6533 header it built as the first argument, instead of the offset to
6534 the compilation unit's line number info. Use the new `struct
6535 line_header' type instead of the old structures. No need to do
6536 cleanups here now, since we don't allocate anything.
6537 (dwarf2_statement_list_fits_in_line_number_section,
6538 dwarf2_line_header_too_long): New complaints.
6539
6540 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6541
6542 * gdbtypes.c (init_vector_type): New function.
6543 (build_builtin_type_vec128): Simplify the representation of SIMD
6544 registers.
6545 (build_gdbtypes): Initialize new builtin vector types.
6546 (_initialize_gdbtypes): Register new vector types with gdbarch.
6547 (builtin_type_v4_float, builtin_type_v4_int32,
6548 builtin_type_v8_int16, builtin_type_v16_int8,
6549 builtin_type_v2_int32, builtin_type_v4_int16,
6550 builtin_type_v8_int8): New (renamed) SIMD types.
6551
6552 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6553
6554 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6555 (i387_fill_fxsave): Likewise.
6556
6557 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6558
6559 * alpha-tdep.c (alpha_extract_return_value): Don't use
6560 non-constant array size in prototype.
6561
6562 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6563
6564 From Brian Taylor <briant at model dot com>:
6565 * ui-out.c (ui_out_field_core_addr): Use the function
6566 longest_local_hex_string_custom'to format addresses > 32 bits
6567 wide.
6568
6569 * ui-out.c (ui_out_field_core_addr): Update comment.
6570
6571 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6572
6573 * stack.c (select_and_print_frame): Make static. Delete the
6574 parameter `level'.
6575 (func_command): Update call.
6576 (select_frame_command): Delete code computing the frame level.
6577 * frame.h (select_and_print_frame): Delete declaration.
6578
6579 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6580
6581 * sparc-tdep.c (sparc_get_saved_register): Comment why
6582 get_prev_frame call is safe.
6583
6584 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6585
6586 * frame.h (select_frame): Delete level parameter.
6587 * stack.c (select_frame): Update. Use frame_relative_level to
6588 obtain the frame's level.
6589 (select_and_print_frame): Update call.
6590 (select_frame_command): Ditto.
6591 (up_silently_base): Ditto.
6592 (down_silently_base): Ditto.
6593 * ocd.c (ocd_start_remote): Ditto.
6594 * remote-rdp.c (remote_rdp_open): Ditto.
6595 * remote-mips.c (mips_initialize): Ditto.
6596 (common_open): Ditto.
6597 * remote-e7000.c (e7000_start_remote): Ditto.
6598 * m3-nat.c (select_thread): Ditto.
6599 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6600 (child_get_current_exception_event): Ditto.
6601 * varobj.c (varobj_create): Ditto.
6602 (varobj_update): Ditto.
6603 (c_value_of_root): Ditto.
6604 * tracepoint.c (finish_tfind_command): Ditto.
6605 * corelow.c (core_open): Ditto.
6606 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6607 * thread.c (info_threads_command): Ditto.
6608 (switch_to_thread): Ditto.
6609 * infrun.c (normal_stop): Ditto.
6610 (restore_selected_frame): Ditto.
6611 (restore_inferior_status): Ditto.
6612 * breakpoint.c (insert_breakpoints): Ditto.
6613 (watchpoint_check): Ditto.
6614 (bpstat_stop_status): Ditto.
6615 (do_enable_breakpoint): Ditto.
6616 * blockframe.c (flush_cached_frames): Ditto.
6617 (reinit_frame_cache): Ditto.
6618
6619 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6620
6621 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6622 maintainer.
6623
6624 2002-05-04 Jim Blandy <jimb@redhat.com>
6625
6626 * gdbtypes.c (replace_type): Doc fix.
6627
6628 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6629
6630 * valprint.c (strcat_longest): Delete commented out function.
6631 Update copyright.
6632
6633 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6634
6635 * MAINTAINERS: Mark a29k as deleted.
6636 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6637 Move new configurations to the top.
6638 * configure.tgt: Remove a29k.
6639 * config/a29k/tm-vx29k.h: Delete.
6640 * config/a29k/vx29k.mt: Delete.
6641 * config/a29k/tm-a29k.h: Delete.
6642 * config/a29k/a29k-udi.mt: Delete.
6643 * config/a29k/a29k.mt: Delete.
6644 * a29k-tdep.c: Delete.
6645 * remote-udi.c: Delete.
6646 * remote-mm.c: Delete.
6647 * remote-eb.c: Delete.
6648 * remote-adapt.c: Delete.
6649 * Makefile.in: Remove obsolete code.
6650 * config/s390/s390x.mt: Ditto.
6651 * config/s390/s390.mt: Ditto.
6652 * config/sparc/sparclynx.mh: Ditto.
6653 * config/sparc/linux.mh: Ditto.
6654 * config/pa/hppaosf.mh: Ditto.
6655 * config/pa/hppabsd.mh: Ditto.
6656 * config/ns32k/nbsd.mt: Ditto.
6657 * config/mips/vr5000.mt: Ditto.
6658 * config/m68k/sun3os4.mh: Ditto.
6659 * config/m68k/nbsd.mt: Ditto.
6660 * config/m68k/m68klynx.mh: Ditto.
6661 * config/m32r/m32r.mt: Ditto.
6662 * config/i386/x86-64linux.mt: Ditto.
6663 * config/i386/nbsdelf.mt: Ditto.
6664 * config/i386/nbsd.mt: Ditto.
6665 * config/i386/i386lynx.mh: Ditto.
6666
6667 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6668
6669 * target.c (debug_print_register): New function. Handle oversize
6670 registers.
6671 (debug_to_fetch_registers): Call.
6672 (debug_to_store_registers): Call.
6673
6674 2002-05-03 Jim Blandy <jimb@redhat.com>
6675
6676 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6677 (read_type): Doc fix.
6678 * gdbtypes.c (replace_type): Doc fix.
6679
6680 * stabsread.c (multiply_defined_struct): New complaint.
6681 (read_struct_type): If the type we were passed isn't empty, or
6682 incomplete, don't read the new struct type into it; complain,
6683 and return the original type unchanged. Take a new `type_code'
6684 argument, which is the type code for the new type.
6685 (read_type): Rather than storing the type's type code here, pass
6686 it as an argument to read_struct_type, and let that take care of
6687 storing it. That way, we don't overwrite the original type code,
6688 so read_struct_type can use it to decide whether we're overwriting
6689 something we shouldn't.
6690 (complain_about_struct_wipeout): New function.
6691
6692 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6693
6694 * gdbarch.sh: Assert that gdbarch is non-NULL.
6695 * gdbarch.c: Regenerate.
6696
6697 2002-05-03 Jason Merrill <jason@redhat.com>
6698
6699 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6700 and return NULL.
6701
6702 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6703
6704 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6705 (x86_64_dwarf2gdb_regno_map_length),
6706 (x86_64_dwarf2_reg_to_regnum): Added.
6707 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6708 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6709 (_initialize_x86_64_tdep): Synced with the change above.
6710 (x86_64_skip_prologue): Reformulated message.
6711
6712 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6713
6714 * f-exp.y: Also use new prev_lexptr variable
6715 to improve error reporting. Based on Michael Snyder
6716 2002-04-24 dated patch to c-exp.y.
6717 * jv-exp.y: Likewise.
6718 * m2-exp.y: Likewise.
6719
6720 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6721
6722 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6723 we are dealing with vectors.
6724
6725 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6726
6727 * config/m68k/tm-nbsd.h: Obvious fix,
6728 correct machine name.
6729
6730 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6731
6732 * p-typeprint.c (pascal_type_print_base): Add support
6733 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6734
6735 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6736
6737 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6738 for fondamental pascal 'char' type.
6739
6740 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6741
6742 * p-lang.h (is_pascal_string_type): Declaration changed,
6743 new sixth argument of type char ** added.
6744 * p-lang.c (is_pascal_string_type): Implementation
6745 changed. Args length_pos, length_size, string_pos, char_size
6746 can now be NULL. New argument arrayname set to the field
6747 name of the char array. Return value set to char array
6748 field index plus one.
6749 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6750 is_pascal_string_type function.
6751
6752 2002-05-02 Andrew Cagney <cagney@redhat.com>
6753
6754 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6755 <cagney@redhat.com> change.
6756 * gdbarch.c: Regenerate.
6757
6758 2002-05-02 Andrew Cagney <cagney@redhat.com>
6759
6760 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6761 before probing for a new one. Detect errorenous gdbarch_init
6762 functions.
6763 * gdbarch.c: Regenerate.
6764
6765 2002-05-01 Andrew Cagney <cagney@redhat.com>
6766
6767 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6768 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6769 * config/v850/tm-v850.h: Ditto. Update copyright.
6770
6771 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6772
6773 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6774 current_gdbarch.
6775
6776 2002-04-30 Michael Snyder <msnyder@redhat.com>
6777
6778 * arm-tdep.c: Whitespace clean-ups.
6779 (arm_skip_prologue): Fix thinko; two lines
6780 should have been removed as part of 4/24 change.
6781
6782 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6783
6784 * rs6000-tdep.c: Added comment describing how fpscr register
6785 numbers were chosen.
6786
6787 2002-04-30 Michael Snyder <msnyder@redhat.com>
6788
6789 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6790
6791 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6792
6793 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6794 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6795 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6796
6797 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6798
6799 From Louis Hamilton <hamilton@redhat.com>:
6800 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6801 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6802 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6803 not bfd-private xcoff data, to determine wordsize.
6804 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6805
6806 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6807
6808 GDB 5.2 released from 5.2 branch.
6809
6810 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6811
6812 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6813 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6814 (x86_64_register_info_table): Added comments with register numbers.
6815
6816 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6817
6818 * rs6000-tdep.c (rs6000_extract_return_value,
6819 rs6000_store_return_value): Handle returning vectors.
6820 (rs6000_gdbarch_init): Use
6821 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6822 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6823 New function.
6824 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6825 vectors.
6826 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6827 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6828
6829 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6830
6831 * hpread.c (hpread_psymtab_to_symtab_1,
6832 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6833 with fprintf_unfiltered (gdb_stderr,...).
6834
6835 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6836
6837 * remote-array.c (printf_monitor, write_monitor,
6838 array_insert_breakpoint, array_remove_breakpoint ):
6839 Replace fprintf (stderr,...
6840 with fprintf_unfiltered (gdb_stderr,....
6841 * remote-es.c: Likewise.
6842 * remote-os9k.c: Likewise.
6843 * remote-st.c: Likewise.
6844
6845 2002-04-28 Andreas Schwab <schwab@suse.de>
6846
6847 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6848 linux-proc.o and gcore.o.
6849
6850 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6851
6852 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6853 code without frame pointers.
6854
6855 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6856
6857 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6858 ON_STACK is needed.
6859
6860 2002-04-26 Ben Elliston <bje@redhat.com>
6861
6862 * target.c (do_xfer_memory): Correct reference to the new option
6863 "trust-readonly-sections".
6864
6865 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6866
6867 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6868 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6869 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6870 vectors.
6871 (read_array_type): Record the fact that this array type is really a
6872 vector (i.e. are passed in by value).
6873
6874 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6875
6876 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6877 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6878 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6879 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6880 * alpha-linux-tdep.c: Include frame.h.
6881 (alpha_linux_sigcontext_addr): New function.
6882 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6883 alpha_linux_sigcontext_addr.
6884 * alpha-osf1-tdep.c: Include gdbcore.h.
6885 (alpha_osf1_sigcontext_addr): New function.
6886 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6887 alpha_osf1_sigcontext_addr.
6888 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6889 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6890
6891 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6892
6893 * stack.c (selected_frame_level):
6894 (select_frame): Do not set selected_frame_level.
6895 * frame.h (selected_frame_level): Delete declaration.
6896
6897 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6898
6899 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6900 convert_from_func_ptr-addr when AIX / PowerOpen.
6901
6902 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6903
6904 * valops.c (hand_function_call): Call
6905 generic_save_call_dummy_addr.
6906 * frame.h (generic_save_call_dummy_addr): Declare.
6907 * blockframe.c (struct dummy_frame): Add fields call_lo and
6908 call_hi.
6909 (generic_find_dummy_frame): Check for PC in range call_lo to
6910 call_hi instead of entry_point_address.
6911 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6912 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6913 (generic_save_call_dummy_addr): New function.
6914
6915 2002-04-24 David S. Miller <davem@redhat.com>
6916
6917 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6918 sparc_skip_prologue.
6919 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6920 information to find prologue when possible.
6921 (sparc_prologue_frameless_p): Call examine_prologue directly.
6922 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6923 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6924 second argument.
6925 (SKIP_PROLOGUE): Likewise.
6926
6927 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6928
6929 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6930 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6931 indicate that the condition it was testing is always true.
6932 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6933 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6934 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6935
6936 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6937
6938 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6939 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6940 tdep->jb_pc and tdep->jb_elt_size.
6941 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6942 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6943 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6944 * alpha-nat.c (get_longjmp_target): Remove.
6945 (JB_ELEMENT_SIZE): Ditto.
6946 (JB_PC): Ditto.
6947 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6948 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6949 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6950 to alpha_get_longjmp_target.
6951 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6952 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6953 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6954
6955 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6956
6957 * README: Update to GDB 5.2.
6958
6959 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6960
6961 * gdbarch.sh (LC_ALL): Set to `c'.
6962
6963 2002-04-25 Theodore A. Roth <troth@verinet.com>
6964
6965 * avr-tdep.c: Ran through gdb_indent.sh.
6966
6967 2002-04-25 Theodore A. Roth <troth@verinet.com>
6968
6969 * MAINTAINERS: Add myself as AVR maintainer.
6970 * NEWS: Note new target avr.
6971
6972 2002-04-25 Theodore A. Roth <troth@verinet.com>
6973
6974 * Makefile.in: Add support for AVR target.
6975 * configure.tgt: Add support for AVR target.
6976 * avr-tdep.c: New file
6977 * config/avr/avr.mt: New file.
6978
6979 2002-04-25 Theodore A. Roth <troth@verinet.com>
6980
6981 * MAINTAINERS: Add myself to write-after-approval.
6982
6983 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6984
6985 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6986 with fprintf_unfiltered (gdb_stderr,....
6987
6988 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6989
6990 Fix PR gdb/508.
6991 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6992
6993 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6994
6995 * p-exp.y: Also use new prev_lexptr variable
6996 to improve error reporting. Based on Michael Snyder
6997 2002-04-24 dated patch to c-exp.y.
6998
6999 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7000
7001 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7002 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7003 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7004 to 0.
7005 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7006 and struct value.
7007 (FUNCTION_START_OFFSET): Remove.
7008 (BREAKPOINT): Ditto.
7009
7010 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7011
7012 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7013 * NEWS: Ditto.
7014
7015 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7016
7017 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7018 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7019 alpha_linux_pc_in_sigtramp.
7020 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7021 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7022 alpha_osf1_pc_in_sigtramp.
7023 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7024 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7025 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7026 alphafbsd_pc_in_sigtramp.
7027 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7028 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7029 alphanbsd_pc_in_sigtramp.
7030 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7031 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7032
7033 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7034
7035 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7036
7037 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7040 alphanbsd-tdep.c.
7041 (alphanbsd-nat.o): New dependency list.
7042 (alphanbsd-tdep.o): Ditto.
7043 * NEWS: Note new native NetBSD/alpha configuration.
7044 * alphanbsd-nat.c: New file.
7045 * alphanbsd-tdep.c: Ditto.
7046 * configure.host (alpha*-*-netbsd*): New host.
7047 * configure.tgt (alpha*-*-netbsd*): New target.
7048 * config/alpha/nbsd.mh: New file.
7049 * config/alpha/nbsd.mt: Ditto.
7050 * config/alpha/nm-nbsd.h: Ditto.
7051 * config/alpha/tm-nbsd.h: Ditto.
7052
7053 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7054
7055 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7056 (alpha-osf1-tdep.o): New dependency list.
7057 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7058 and skip_sigtramp_frame members.
7059 * alpha-linux-tdep.c: Include gdbcore.h.
7060 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7061 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7062 * alpha-osf1-tdep.c: New file.
7063 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7064 alpha-osf1-dep.c.
7065 (alpha_frame_past_sigtramp_frame): New function.
7066 (alpha_dynamic_sigtramp_offset): Ditto.
7067 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7068 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7069 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7070 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7071 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7072 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7073 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7074 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7075 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7076 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7077 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7078 to find_solib_trampoline_target.
7079 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7080 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7081 (SKIP_TRAMPOLINE_CODE): Remove.
7082 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7083 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7084 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7085 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7086 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7087 (PROC_SIGTRAMP_MAGIC): Ditto.
7088 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7089 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7090 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7091 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7092 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7093
7094 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7095
7096 * NEWS: Note that Alpha targets are now multi-arch.
7097
7098 2002-04-24 Michael Snyder <msnyder@redhat.com>
7099
7100 * parser-defs.h (prev_lexptr): New external variable.
7101 * parse.c (parse_exp_1): Set prev_lexptr to null before
7102 calling the language-specific parser.
7103 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7104 (yyerror): Use prev_lexptr in error reporting.
7105
7106 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
7107
7108 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7109 * gregset.h: If FILL_FPXREGSET is defined, provide
7110 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7111 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7112 is defined, call fill_fpxregset.
7113
7114 2002-04-24 Roland McGrath <roland@frob.com>
7115
7116 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7117 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7118 (supply_gregset, supply_fpregset): New functions.
7119
7120 * gnu-nat.c (gnu_find_memory_regions): New function.
7121 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7122 (gnu_xfer_memory): Add a cast.
7123
7124 2002-04-24 Michael Snyder <msnyder@redhat.com>
7125
7126 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
7127 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7128 of argument regs ("str r(0123), [r11, #-nn"]).
7129 (arm_skip_prologue): Better handling for frameless functions.
7130 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7131 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7132
7133 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7134
7135 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7136 NUM_PSEUDO_REGS can be used.
7137
7138 2002-04-24 Andrew Cagney <ac131313@redhat.com>
7139
7140 * arch-utils.h: Update copyright.
7141
7142 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7143 * gdbarch.h, gdbarch.c: Re-generate.
7144
7145 * inferior.h (IN_SIGTRAMP): Delete definition.
7146 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7147 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7148
7149 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7150 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7151 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7152 (find_proc_framesize): Ditto.
7153 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7154 (alpha_init_extra_frame_info): Ditto.
7155 * infrun.c (handle_inferior_event): Ditto.
7156 (handle_inferior_event): Ditto.
7157 (check_sigtramp2): Ditto.
7158 * blockframe.c (create_new_frame): Ditto.
7159 (get_prev_frame): Ditto.
7160 * ppc-linux-tdep.c: Update comments.
7161 * i386-linux-tdep.c: Update comments.
7162 * breakpoint.c (bpstat_what): Update comment.
7163
7164 2002-04-24 David S. Miller <davem@redhat.com>
7165
7166 * i960-tdep.c (register_in_window_p): New function.
7167 (i960_find_saved_register): Use it instead of
7168 REGISTER_IN_WINDOW_P.
7169 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7170
7171 * symtab.h (find_stab_function_addr): Kill extern.
7172 * minsyms.c (find_stab_function_addr): Remove from here...
7173 * dbxread.c: ... to here, and mark it static.
7174
7175 2002-04-20 David S. Miller <davem@redhat.com>
7176
7177 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7178 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7179
7180 2002-04-21 David S. Miller <davem@redhat.com>
7181
7182 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7183 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7184 (vx_write_register): Likewise.
7185
7186 2002-04-23 J. Brobecker <brobecker@gnat.com>
7187
7188 * source.c (is_regular_file): New function.
7189 (openp): Check wether file to open is a regular file
7190 to avoid opening directories.
7191
7192 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7193
7194 * findvar.c (extract_signed_integer): Cast printf argument
7195 to suppress format warning.
7196 (extract_unsigned_integer): Likewise.
7197 * infcmd.c (registers_info): Likewise.
7198 * top.c (get_prompt_1): Likewise.
7199 * valops.c (value_assign): Likewise.
7200 * valprint.c (print_decimal): Likewise.
7201
7202 2002-04-22 H.J. Lu (hjl@gnu.org)
7203
7204 * c-exp.y (typebase): Support
7205
7206 [long|long long|short] [signed|unsigned] [int|]
7207
7208 and
7209
7210 signed [long|long long|short] int
7211
7212 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7213
7214 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7215 and vax-tdep.h.
7216 * vax-tdep.h: New file.
7217 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7218 Make several routines static.
7219 (vax_get_saved_register): New function.
7220 (vax_gdbarch_init): New function.
7221 (_initialize_vax_tdep): Register vax_gdbarch_init.
7222 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7223 Remove macros now under the control of gdbarch.
7224
7225 2002-04-22 Michael Snyder <msnyder@redhat.com>
7226
7227 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7228 Some whitespace and coding standards tweaks.
7229
7230 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7231
7232 * vax-tdep.c: Include regcache.h.
7233 (vax_call_dummy_words): New.
7234 (sizeof_vax_call_dummy_words): New.
7235 (vax_fix_call_dummy): New function.
7236 (vax_saved_pc_after_call): Ditto.
7237 * config/vax/tm-vax.h: Don't include regcache.h.
7238 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7239 (CALL_DUMMY): Remove.
7240 (CALL_DUMMY_WORDS): Define.
7241 (SIZEOF_CALL_DUMMY_WORDS): Define.
7242 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7243
7244 2002-04-18 Michael Snyder <msnyder@redhat.com>
7245
7246 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7247
7248 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7249
7250 * vax-tdep.c (vax_frame_chain): New function.
7251 (vax_push_dummy_frame): Ditto.
7252 (vax_pop_frame): Ditto.
7253 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7254 (FRAMELESS_FUNCTION_INVOCATION): Use
7255 generic_frameless_function_invocation_not.
7256 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7257 (POP_FRAME): Use vax_pop_frame.
7258
7259 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7260
7261 * vax-tdep.c (vax_store_struct_return): New function.
7262 (vax_extract_return_value): Ditto.
7263 (vax_store_return_value): Ditto.
7264 (vax_extract_struct_value_address): Ditto.
7265 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7266 vax_store_struct_return.
7267 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7268 (STORE_RETURN_VALUE): Use vax_store_return_value.
7269 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7270
7271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7272
7273 * vax-tdep.c (vax_frame_saved_pc): New function.
7274 (vax_frame_args_address_correct): Ditto.
7275 (vax_frame_args_address): Ditto.
7276 (vax_frame_locals_address): Ditto.
7277 (vax_frame_num_args): Move code to be in proximity to
7278 other frame-related functions.
7279 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7280 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7281 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7282 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7283 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7284
7285 2002-04-22 H.J. Lu (hjl@gnu.org)
7286
7287 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7288 includedir.
7289
7290 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7293 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7294 (FRAME_INIT_SAVED_REGS): New macro.
7295
7296 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7297
7298 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7299
7300 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7301
7302 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7303 where needed.
7304 (fetch_osf_core_registers): Likewise.
7305 (supply_gregset): Likewise.
7306
7307 2002-04-22 J. Brobecker <brobecker@gnat.com>
7308
7309 * symfile.h (get_section_index): Define.
7310 * symfile.c (get_section_index): New function.
7311 * mdebugread.c (SC_IS_SBSS): New macro.
7312 (SC_IS_BSS): Return true for the scBss storage class only, as
7313 the scSBss storage class refers to the .sbss section.
7314 (parse_partial_symbols): Discard the symbols which associated
7315 section does not exist.
7316 Make sure to use the .sbss section index for symbols which
7317 storage class is scBss, rather than using the .bss section index.
7318
7319 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7320
7321 * vax-tdep.c: Update copyright years.
7322 (vax_register_name): New function.
7323 (vax_register_byte): Ditto.
7324 (vax_register_raw_size): Ditto.
7325 (vax_register_virtual_size): Ditto.
7326 (vax_register_virtual_type): Ditto.
7327 * config/vax/tm-vax.h: Update copyright years.
7328 (REGISTER_NAMES): Remove.
7329 (REGISTER_NAME): Define.
7330 (REGISTER_BYTE): Use vax_register_byte.
7331 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7332 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7333 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7334
7335 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7336
7337 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7338 declaration
7339 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7340
7341 2002-04-21 David S. Miller <davem@redhat.com>
7342
7343 * arch-utils.c (generic_prologue_frameless_p): Kill
7344 SKIP_PROLOGUE_FRAMELESS_P code.
7345 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7346 references.
7347 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7348 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7349 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7350 references.
7351 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7352 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7353 (sparc_gdbarch_init): Pass it to
7354 set_gdbarch_prologue_frameless_p.
7355
7356 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7357
7358 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7359 (alphabsd-nat.o): New dependency list.
7360
7361 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7362
7363 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7364 alphafbsd-tdep.c.
7365 (alpha-linux-tdep.o): New dependency list.
7366 (alphafbsd-tdep.o): Likewise.
7367
7368 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7369
7370 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7371 to here...
7372 * alpha-tdep.c: ...from here.
7373 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7374
7375 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7376
7377 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7378 prototype from here...
7379 * alpha-tdep.h: ...to here.
7380
7381 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7382
7383 * frame.h (selected_frame_level): Document as deprecated.
7384 (frame_relative_level): Declare.
7385 * stack.c (frame_relative_level): New function.
7386 (selected_frame_level): Document as deprecated.
7387 (select_frame): Do not set the selected_frame_level.
7388
7389 * stack.c (frame_info, record_selected_frame): Update.
7390 (frame_command, current_frame_command): Update.
7391 (up_silently_base, up_command, down_silently_base): Update.
7392 (down_command): Update.
7393 * inflow.c (kill_command): Update.
7394 * tracepoint.c (finish_tfind_command): Update.
7395 * corelow.c (core_open): Update.
7396 * thread.c (info_threads_command): Update.
7397 (do_captured_thread_select): Update.
7398 * infcmd.c (finish_command): Update.
7399 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7400
7401 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7404
7405 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7406
7407 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7408 type const.
7409
7410 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7411
7412 * alphafbsd-tdep.c: Update copyright years. Include
7413 alpha-tdep.h.
7414 (alphafbsd_use_struct_convention): Make static.
7415 (alphafbsd_init_abi): New function.
7416 (_initialize_alphafbsd_tdep): New function.
7417 * config/alpha/tm-fbsd.h: Update copyright years.
7418 (USE_STRUCT_CONVENTION): Remove.
7419
7420 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7421
7422 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7423 an Alpha ABI variant.
7424 (alpha_abi_handler_list): Declare.
7425 (alpha_gdbarch_register_os_abi): New function.
7426 (alpha_gdbarch_init): Give registered ABI variant handlers a
7427 chance to tweak the gdbarch once we have set up defaults.
7428 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7429
7430 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7433 to standard_coerce_float_to_double.
7434 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7435
7436 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7437
7438 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7439 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7440 from gdbarch_tdep rather than a constant.
7441 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7442 the default text address for all Alpha Unix ABIs.
7443 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7444 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7445
7446 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7447
7448 * alpha-tdep.h: New file. Includes several Alpha target constants
7449 taken from...
7450 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7451 let gdbarch deal with.
7452 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7453 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7454 to dependency list.
7455 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7456 Alpha target register names.
7457 * alphabsd-nat.c: Likewise.
7458 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7459 Alpha target register names. Make serveral routines static.
7460 (alpha_get_saved_register): New function.
7461 (alpha_abi_names): New.
7462 (process_note_abi_tag_sections): New function.
7463 (get_elfosabi): New function.
7464 (alpha_gdbarch_init): New function.
7465 (alpha_dump_tdep): New function.
7466 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7467
7468 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7469
7470 * frame.c (find_saved_register): Delete #ifdef
7471 HAVE_REGISTER_WINDOWS code.
7472 * config/sparc/tm-sparc.h: Update comments.
7473 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7474
7475 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7476
7477 * i960-tdep.c (i960_find_saved_register): New function.
7478 (i960_get_saved_register): New function.
7479 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7480 (i960_get_saved_register): Declare.
7481 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7482
7483 2002-04-20 David S. Miller <davem@redhat.com>
7484
7485 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7486
7487 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7488
7489 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7490 instead of NUM_PSEUDO_REGS.
7491
7492 2002-04-20 David S. Miller <davem@redhat.com>
7493
7494 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7495 GDB_MULTI_ARCH_PARTIAL
7496 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7497 define, let tm-sp64.h do it.
7498
7499 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * frame.c (find_saved_register): Avoid a NULL pointer
7502 dereference and actually walk the frame list.
7503
7504 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7505
7506 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7507 sorted in most most-recent-used order. Document.
7508 * gdbarch.h, gdbarch.c: Regenerate.
7509
7510 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7511
7512 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7513 instead of ->prev.
7514 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7515 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7516 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7517 instead of ->prev.
7518
7519 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7520
7521 Fix PR gdb/471.
7522 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7523 (build_builtin_type_vec128): Ditto.
7524 (append_composite_type_field): Fix calculation of type length in
7525 union case.
7526
7527 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7528
7529 * config/djgpp/README: Update.
7530
7531 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7532 compiler warnings.
7533
7534 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7535
7536 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7537 (alpha_setup_arbitrary_frame): ...to this.
7538 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7539 for alpha_setup_arbitrary_frame.
7540
7541 2002-04-18 Andrew Cagney <cagney@redhat.com>
7542
7543 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7544 * gdbarch.h, gdbarch.c: Regenerate.
7545
7546 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7547 * target.h (memory_breakpoint_from_pc): Update declaration.
7548 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7549
7550 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7551 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7552 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7553 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7554 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7555 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7556 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7557 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7558 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7559 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7560 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7561 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7562
7563 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7564 const pointer.
7565 * monitor.c (monitor_insert_breakpoint): Ditto.
7566 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7567
7568 * config/mcore/tm-mcore.h: Update copyright.
7569 * mem-break.c: Ditto.
7570 * xstormy16-tdep.c: Ditto.
7571
7572 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7573
7574 * p-exp.y: Add precedence rule for '^' token.
7575 This removes the shift/reduce conflicts.
7576 Remove the comment concerning these shift/reduce conflicts.
7577
7578 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7579
7580 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7581 (registers_powerpc_nofp): New register set for processors
7582 without floating point unit.
7583
7584 2002-04-18 David S. Miller <davem@redhat.com>
7585
7586 * MAINTAINERS: Add myself to write-after-approval.
7587
7588 2002-04-17 Michael Snyder <msnyder@redhat.com>
7589
7590 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7591
7592 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7593
7594 * rs6000-tdep.c (frame_initial_stack_address): Use
7595 frame_register_read to read the alloca_reg.
7596
7597 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7598
7599 * frame.c (find_saved_register): Find saved registers in the next
7600 not prev frame.
7601 Fix PR gdb/365.
7602
7603 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7604
7605 * gdbarch.sh (LANG): Set to ``c''.
7606
7607 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7608
7609 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7610
7611 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7612
7613 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7614 Update copyright.
7615
7616 * hpread.c (hpread_get_lntt): Add declaration.
7617 Also fix PR gdb/391.
7618
7619 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7620
7621 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7622 * aclocal.m4, configure: Re-generate.
7623 Fix PR gdb/391.
7624
7625 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7626
7627 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7628 instead of tm_print_insn.
7629
7630 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7631
7632 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7633
7634 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7635
7636 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7637 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7638 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7639
7640 2002-04-12 Don Howard <dhoward@redhat.com>
7641
7642 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7643 max_user_call_depth.
7644 (init_cmd_lists): Initialize the new value;
7645 * cli/cli-script.c (execute_user_command): Limit the call depth of
7646 user defined commands. This avoids a core-dump when user commands
7647 are infinitly recursive.
7648
7649 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7650
7651 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7652 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7653 from tdep struct instead of DEFAULT_LR_SAVE.
7654 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7655 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7656 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7657
7658 2002-04-12 Michael Snyder <msnyder@redhat.com>
7659
7660 * Remote.c: Spelling fix.
7661 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7662 If no symbol found for "sbrk", try "_sbrk".
7663 (make_output_phdrs): Use bfd_section_name.
7664 (gcore_copy_callback): Use bfd_section_name.
7665 * eval.c: Indentation fix-ups.
7666 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7667 in case it gets applied to an address that is already
7668 in the instruction space.
7669 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7670 * symfile.c: Fix indentation, long lines.
7671 * source.c: White space fix-up.
7672
7673 2002-04-12 Andrew Cagney <cagney@redhat.com>
7674
7675 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7676 * frame.c (frame_register_read): New function. Return non-zero on
7677 success.
7678 (read_relative_register_raw_bytes_for_frame): Delete.
7679 (read_relative_register_raw_bytes): Delete.
7680 * frame.h (frame_register_read): Declare.
7681 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7682 * sh-tdep.c: Ditto.
7683 * infcmd.c (do_registers_info): Ditto.
7684 * hppa-tdep.c: Ditto.
7685 * rs6000-tdep.c: Ditto.
7686 * h8500-tdep.c: Ditto.
7687 * mips-tdep.c: Ditto.
7688 * h8300-tdep.c: Ditto.
7689 * z8k-tdep.c: Ditto.
7690
7691 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7692
7693 From Jimi X <jimix@watson.ibm.com>:
7694 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7695 64-bit SysV ABI.
7696
7697 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7698
7699 From Jimi X <jimix@watson.ibm.com>:
7700 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7701 bfd info.
7702
7703 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7704
7705 From Jimi X <jimix@watson.ibm.com>:
7706 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7707 register sets for these processor variants.
7708
7709 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7710
7711 * regformats/reg-ppc.dat: Support FPSCR.
7712
7713 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7714
7715 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7716 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7717 Add fpscr as an invalid/unfetchable register.
7718 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7719 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7720 (fill_fpregset): Add support for register fpscr.
7721 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7722 (fill_gregset): Account for the fact that register ``mq'' might
7723 not exist.
7724 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7725 (registers_power): Add fpscr to register set at slot 71.
7726 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7727 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7728
7729 2002-04-11 Michael Snyder <msnyder@redhat.com>
7730
7731 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7732 * configure: Regenerate.
7733 * config.in: Regenerate.
7734 * acconfig.h: Add define for _SYSCALL32.
7735 * core-sol2.c: Remove #define _SYSCALL32.
7736 * solib-legacy.c: Remove #define _SYSCALL32.
7737
7738 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7739
7740 * stack.c (select_frame): Cleanup internal error message, do not
7741 use %p.
7742
7743 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7744
7745 * stack.c (select_frame): Check that selected_frame and the
7746 specified level are as expected.
7747 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7748 Update copyright.
7749 * frame.h (struct frame_info): Add field `level'. Update
7750 copyright.
7751 Work-in-progress PR gdb/464.
7752
7753 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7754
7755 * maint.c (maint_print_section_info): Rename print_section_info.
7756 (print_bfd_section_info, print_objfile_section_info): Update.
7757 * inferior.h (struct gdbarch): Add opaque declaration.
7758 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7759 * gdbarch.h: Regenerate.
7760
7761 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7762
7763 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7764 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7765 (kernel_u_size): Added.
7766 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7767 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7768
7769 2002-04-04 Jim Ingham <jingham@apple.com>
7770
7771 * valarith.c (find_size_for_pointer_math): New function, either returns
7772 the size for a pointer's target, returns 1 for void *, or errors for
7773 incomplete types.
7774 (value_add, value_sub): use find_size_for_pointer_math.
7775
7776 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7777
7778 * linux-low.c (linux_look_up_symbols): New hook.
7779 (linux_target_ops): Add linux_look_up_symbols.
7780 * remote-utils.c (decode_address): New function.
7781 (look_up_one_symbol): New function.
7782 * server.c (handle_query): Call target look_up_symbols hook.
7783 * server.h (look_up_one_symbol): Add prototype.
7784 * target.h (struct target_ops): Add look_up_symbols hook.
7785
7786 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7787
7788 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7789 override FP_REGNUM with frame->fp. Update copyright.
7790 * parse.c (num_std_regs, std_regs): Delete.
7791 (target_map_name_to_register): Do not search std_regs. Update
7792 function description.
7793 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7794 declarations. Update copyright.
7795 Fix PR gdb/251.
7796
7797 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7798
7799 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7800 after the last symbol in a block.
7801
7802 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7803
7804 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7805 is non zero as a found symbol.
7806
7807 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7808
7809 * findvar.c: Include "builtin-regs.h".
7810 (value_of_register): Call value_of_builtin_reg when applicable.
7811 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7812 (target_map_name_to_register): Call
7813 builtin_reg_map_name_to_regnum.
7814 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7815 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7816 (builtin_regs_h): Define.
7817 (builtin-regs.o): New target.
7818 (findvar.o): Add $(builtin_regs_h).
7819 * builtin-regs.c, builtin-regs.h: New files.
7820 * std-regs.c: New file.
7821 Partial fix for PR gdb/251.
7822
7823 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7824
7825 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7826 it's no longer required.
7827
7828 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7829
7830 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7831
7832 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7833
7834 From Jimi X <jimix@watson.ibm.com>:
7835 * rs6000-tdep.c (rs6000_software_single_step): Use
7836 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7837 and size. Use target_insert_breakpoint() and
7838 target_remove_breakpoint() to insert and remove breakpoints
7839 instead of explicit memory reads and writes.
7840
7841 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7842
7843 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7844 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7845 ELF_OBJECT_FORMAT ifdef.
7846
7847 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7848
7849 From Jimi X <jimix@watson.ibm.com>:
7850 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7851
7852 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7853
7854 From Jimi X <jimix@watson.ibm.com>:
7855 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7856 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7857
7858 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7859
7860 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7861 s/asprintf/xasprintf/.
7862 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7863
7864 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7865
7866 I believe Jeff Law denies responsability for this one:
7867 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7868 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7869 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7870 Work-around for PR gdb/366.
7871
7872 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7873
7874 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7875 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7876 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7877
7878 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7879
7880 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7881 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7882 information.
7883
7884 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7885
7886 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7887 maintainer.
7888
7889 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7890
7891 * README (Reporting Bugs in GDB): Document the bug web page as the
7892 prefered way of submitting bugs.
7893 Fix PR gdb/402.
7894
7895 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7896
7897 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7898 -1. Update comment.
7899 * gdbarch.h, gdbarch.c: Re-generate.
7900
7901 2002-04-07 Andreas Schwab <schwab@suse.de>
7902
7903 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7904 buffer to regcache_collect.
7905
7906 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7907
7908 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7909 * gdbarch.c, gdbarch.h: Re-generate.
7910
7911 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7912
7913 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7914 declaration. Fix -Werror.
7915
7916 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7917
7918 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7919 * gdbarch.c: Regenerate.
7920
7921 2002-04-05 Michael Snyder <msnyder@redhat.com>
7922
7923 * breakpoint.c (clear_command): Rewrite middle section to
7924 combine two loops with identical control conditions.
7925 Add a cleanup to eliminate a memory leak.
7926 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7927
7928 2002-04-05 H.J. Lu (hjl@gnu.org)
7929
7930 * solib-svr4.c (bkpt_names): Add "__start".
7931
7932 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7933
7934 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7935 as test for 64 bit target.
7936
7937 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7938
7939 * h8500-tdep.c (h8500_write_fp): Delete function.
7940 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7941 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7942 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7943 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7944 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7945 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7946 (s390_write_fp):
7947 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7948 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7949 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7950 (d10v_write_fp): Delete function.
7951 * inferior.h (write_fp, generic_target_write_fp): Delete
7952 declarations.
7953 * regcache.c (generic_target_write_fp): Delete function.
7954 (write_fp): Delete function.
7955 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7956 * gdbarch.h, gdbarch.c: Regenerate.
7957 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7958 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7959 (sparc64_write_fp): Delete declaration.
7960 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7961 (h8500_write_fp): Delete declaration.
7962
7963 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7964
7965 * sparc-tdep.c (sparc64_write_fp): Delete.
7966 (sparc_push_dummy_frame): Replace write_fp call with code to store
7967 the FP directly.
7968 (sparc_gdbarch_init): Do not initialize write_fp.
7969
7970 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7971
7972 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7973 clause.
7974
7975 2002-03-29 Jim Blandy <jimb@redhat.com>
7976
7977 * stack.c (get_selected_block): Add new argument `addr_in_block',
7978 used to return the exact code address we used to select the block,
7979 not just the block.
7980 * blockframe.c (get_frame_block, get_current_block): Same.
7981 * frame.h (get_frame_block, get_current_block,
7982 get_selected_block): Update declarations.
7983 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7984 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7985
7986 2002-04-05 Michael Snyder <msnyder@redhat.com>
7987
7988 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7989 warning message.
7990
7991 2002-04-05 J. Brobecker <brobecker@gnat.com>
7992
7993 * utils.c (xfullpath): New function.
7994 * defs.h (xfullpath): Add declaration.
7995 * source.c (openp): Use xfullpath in place of gdb_realpath to
7996 avoid resolving the basename part of filenames when the
7997 associated file is a symbolic link. This fixes a potential
7998 inconsistency between the filenames known to GDB and the
7999 filenames it prints in the annotations.
8000 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8001 to be able to match a filename with either the real filename, or
8002 the name of any symbolic link to this file.
8003 (lookup_partial_symtab): Ditto.
8004
8005 2002-04-04 Michael Snyder <msnyder@redhat.com>
8006
8007 * breakpoint.c: Add support for hardware breakpoints in overlays.
8008 (overlay_events_enabled): New state variable.
8009 (insert_breakpoints): Use overlay_events_enabled to decide
8010 whether to attempt to set a breakpoint at the overlay load addr.
8011 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8012 (remove_breakpoint): Use overlay_events_enabled to decide
8013 whether breakpoints need to be removed from overlay load addr.
8014 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8015 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
8016 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
8017 disable_overlay_breakpoints): Update overlay_events_enabled.
8018
8019 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
8020
8021 * dwarf2read.c (struct function_range): New.
8022 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8023 (check_cu_functions): New.
8024 (read_file_scope): Initialize global function lists.
8025 Call dwarf_decode_line after processing children.
8026 (read_func_scope): Add to global function list.
8027 (dwarf_decode_lines): Call check_cu_functions everywhere
8028 record_line is called. Call record_line with a linenumber
8029 of 0 to mark sequence ends.
8030
8031 2002-04-04 Michal Ludvig <mludvig@suse.cz>
8032
8033 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
8034 change sync with glibc.
8035
8036 2002-04-03 Jim Blandy <jimb@redhat.com>
8037
8038 * configure.in: Call AC_C_INLINE.
8039 * configure: Regenerated.
8040
8041 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
8042
8043 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8044 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8045
8046 2002-03-31 Mark Kettenis <kettenis@gnu.org>
8047
8048 * NEWS: Mention gcore support on FreeBSD/i386.
8049
8050 * fbsd-proc.c: New file.
8051 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8052 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8053
8054 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8055 while statement.
8056
8057 2002-03-29 Jim Blandy <jimb@redhat.com>
8058
8059 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8060 unescaped newlines in string literals, but newer ones don't. So
8061 escape them.
8062
8063 2002-03-26 Michael Snyder <msnyder@redhat.com>
8064 Andrew Cagney <cagney@redhat.com>
8065
8066 * cli/cli-dump.c: New file. Dump memory to file,
8067 restore file to memory.
8068 * cli/cli-dump.h: New file.
8069 * Makefile.in: Add rules, dependencies for cli-dump.o.
8070 * NEWS: Mention new commands.
8071
8072 2002-03-28 Michael Snyder <msnyder@redhat.com>
8073
8074 * symfile.c (symbol_file_add): Move test for null symbols to later.
8075
8076 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8077
8078 From veksler at il.ibm.com:
8079 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8080 the xstrduped original path.
8081 Fix PR gdb/417.
8082
8083 2002-03-27 Michael Snyder <msnyder@redhat.com>
8084
8085 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8086 * infcmd.c (_initialize_infcmd): Ditto.
8087 * language.c (_initialize_language): Ditto.
8088 * symfile.c (_initialize_symfile): Ditto.
8089 * top.c (_init_main): Ditto.
8090 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8091
8092 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
8093
8094 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8095 vector registers handling.
8096 (skip_prologue): Handle new AltiVec instructions. Fill in new
8097 fields of frame data.
8098 (frame_get_saved_regs): Fill in information for AltiVec registers.
8099
8100 2002-03-27 Jim Blandy <jimb@redhat.com>
8101
8102 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8103 a function; leave this macro here to invoke that function.
8104 (symbol_init_mangled_name): Declaration for that function.
8105 * symtab.c (symbol_init_mangled_name): New function.
8106
8107 2002-03-27 Andrew Cagney <ac131313@redhat.com>
8108
8109 * valarith.c: Replace strerror with safe_strerror.
8110 * tracepoint.c: Ditto.
8111 * lin-lwp.c: Ditto.
8112 * go32-nat.c: Ditto.
8113 * inflow.c: Ditto.
8114 * gnu-nat.c: Ditto.
8115
8116 2002-03-27 Andreas Schwab <schwab@suse.de>
8117
8118 * event-top.c (command_line_handler): Remove useless if.
8119
8120 2002-03-27 Andreas Jaeger <aj@suse.de>
8121
8122 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8123 comment.
8124
8125 2002-03-27 Michal Ludvig <mludvig@suse.cz>
8126
8127 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8128 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8129 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8130 (x86_64_linux_dr_get_status, supply_gregset),
8131 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8132 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8133 (x86_64_register_info_table): Add.
8134 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8135 (x86_64_register_raw_size, x86_64_register_virtual_type),
8136 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8137 general x86_64_register_info_table.
8138 (i386_gdbarch_init): gdbarch_register_bytes is now set
8139 dynamicaly during initialization.
8140 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8141 * gdbserver/linux-x86-64-low.c: Ditto.
8142
8143 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8144
8145 * gdbserver/server.c (main): Call target_signal_to_host_p
8146 and target_signal_to_host on signals received from the remote.
8147 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8148 target_signal_from_host on signals sent to the remote.
8149 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8150 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8151
8152 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8153
8154 * signals/signals.c: Include "server.h" in gdbserver build.
8155 (target_signal_from_name): Don't use STREQ.
8156 (_initialize_signals): Likewise. Don't include function in
8157 gdbserver build.
8158
8159 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
8160
8161 * signals.c: Moved to...
8162 * signals/signals.c: Here.
8163 * Makefile (signals.o): Update.
8164
8165 2002-03-26 Jeff Law (law@redhat.com)
8166
8167 * somread.c (som_symtab_read): Remove some commented out code and
8168 updated related comments. Do not set the minimal symbol table to
8169 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8170 in a dynamic executable.
8171 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8172 where we are unable to find the minimal symbol for the given
8173 PC value.
8174
8175 2002-03-25 Jeff Law (law@redhat.com)
8176
8177 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8178
8179 2002-03-25 Michal Ludvig <mludvig@suse.cz>
8180
8181 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8182
8183 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8184
8185 * command.h: Update copyright.
8186 (struct cmd_list_element): Replace definition with opaque
8187 declaration.
8188 (enum cmd_types): Document that it will eventually be moved to
8189 cli/cli-decode.h
8190 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8191 (MALLOCED_REPLACEMENT): Delete macro.
8192 * Makefile.in (cli_decode_h): Add $(command_h).
8193 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
8194 * top.c: Include "cli/cli-decode.h".
8195 * completer.c: Include "cli/cli-decode.h".
8196 * maint.c: Include "cli/cli-decode.h".
8197 * cli/cli-decode.h: Include "command.h".
8198 (enum command_class): Delete.
8199 (enum cmd_types): Comment out.
8200 (enum cmd_auto_boolean): Delete.
8201 (enum var_types): Delete.
8202
8203 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8204
8205 * cli/cli-decode.c: Include "gdb_assert.h".
8206 (add_set_or_show_cmd): New static function.
8207 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8208 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8209 all fields, such as func, from the set command.
8210
8211 2002-03-23 Andrew Cagney <ac131313@redhat.com>
8212
8213 * MAINTAINERS (sh-elf): Change warning flag to -w.
8214
8215 2002-03-23 Andrew Cagney <cagney@redhat.com>
8216
8217 * defs.h (error): Add printf format attribute.
8218 * thread-db.c (thread_from_lwp): Fix error format string.
8219 * stack.c (parse_frame_specification): Ditto.
8220 * cli/cli-decode.c (undef_cmd_error): Ditto.
8221 * scm-lang.c (scm_lookup_name): Ditto.
8222 * tracepoint.c (trace_error): Ditto.
8223 * remote-utils.c (usage): Ditto.
8224 * remote.c (compare_sections_command): Ditto.
8225 Fix PR gdb/328.
8226
8227 2002-03-22 Andrew Cagney <ac131313@redhat.com>
8228
8229 * gdbtypes.c (append_composite_type_field): New function.
8230 (init_composite_type): New function.
8231 * gdbtypes.h (append_composite_type_field): Declare.
8232 (init_composite_type): Ditto.
8233
8234 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
8235
8236 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
8237 function.
8238 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8239 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8240 structure returning convention for SYSV ABI case, but not
8241 for GNU/Linux, FreeBSD, or NetBSD.
8242
8243 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * symtab.h (lookup_block_symbol): Add mangled_name argument
8246 to prototype.
8247
8248 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8249 with new mangled_name argument.
8250 * linespec.c (decode_line_1): Likewise.
8251 * valops (value_of_this): Likewise.
8252 * symtab.c (lookup_transparent_type): Likewise.
8253 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8254 (lookup_symbol): If we are given a mangled name, pass it down
8255 to lookup_symbol_aux.
8256 (lookup_block_symbol): If we are given a mangled name to check
8257 against, only return symbols which match it.
8258
8259 2002-03-22 Christopher Faylor <cgf@redhat.com>
8260
8261 * win32-nat.c (child_create_inferior): Check for proper shell to use
8262 here, in case the user changes it on the fly.
8263 (_initialize_inftarg): Remove shell path considerations.
8264
8265 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
8266
8267 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8268 for gdbarch_max_register_raw_size and max_register_virtual_size.
8269 Adjust copyright year.
8270
8271 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
8272
8273 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8274 in a function to cover the entire beginning of the function
8275 as well if it does not already.
8276
8277 2002-03-21 Tom Rix <trix@redhat.com>
8278
8279 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8280 (rs6000_ptrace64): Renamed from ptrace64.
8281
8282 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8283
8284 * gdbserver/remote-utils.c (remote_open): Don't call
8285 getprotobyname, we're all using TCP here so just use
8286 IPPROTO_TCP.
8287 * gdbserver/gdbreplay.c (remote_open): Ditto.
8288
8289 2002-03-20 Martin M. Hunt <hunt@redhat.com>
8290
8291 * regcache.c (_initialize_regcache): No need to call
8292 build_regcache() at this time; it gets called whenever
8293 the gdbarch changes.
8294
8295 2002-03-20 David O'Brien <obrien@FreeBSD.org>
8296
8297 * sparc-nat.c: Include sys/param.h where possible.
8298
8299 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
8300
8301 Fix PR gdb/422.
8302 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8303 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8304 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8305 complex types.
8306 * stabsread.c (rs6000_builtin_type): Likewise.
8307 (read_sun_floating_type): Likewise.
8308
8309 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8310
8311 * stabsread.c (read_member_functions): Remove skip code for duplicate
8312 constructor/destructor methods. Use standard parsing for these
8313 methods and just do not chain them to the list of methods after
8314 parsing.
8315
8316 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
8317
8318 * coffread.c: Remove redundant static declarations. Replace
8319 occurrences of `PTR' with `void *'.
8320 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8321 * top.h (quit_cover): Likewise.
8322 * defs.h (catch_errors): Likewise.
8323
8324 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8325
8326 * defs.h (XMALLOC): Define.
8327 * gdb-events.sh (XMALLOC): Delete macro.
8328 * gdb-events.c, gdb-events.h: Regenerate.
8329 * gdbarch.sh (XMALLOC): Delete macro.
8330 * gdbarch.c: Regenerate.
8331 * serial.c (XMALLOC): Delete macro.
8332 * ui-file.c (XMALLOC): Ditto.
8333 * ser-unix.h (XMALLOC): Ditto.
8334 * sh-tdep.c (XMALLOC): Ditto.
8335 * ui-out.c (XMALLOC): Ditto.
8336 * utils.c (XMALLOC): Ditto.
8337 * i386-tdep.c (XMALLOC): Ditto.
8338 * gdb-events.c (XMALLOC): Ditto.
8339 * d10v-tdep.c (XMALLOC): Ditto.
8340 * cli-out.c (XMALLOC): Ditto.
8341
8342 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8343 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8344 * ui-file.c, ui-out.c: Ditto.
8345
8346 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8347
8348 * command.h (struct cmd_list_element): Add field context.
8349 (set_cmd_context, get_cmd_context): Declare.
8350 * cli/cli-decode.h: Ditto.
8351 * cli/cli-decode.c (get_cmd_context): New function.
8352 (set_cmd_context): New function.
8353 (add_cmd): Initialize context.
8354 Part of fixing PR gdb/145 and PR gdb/146.
8355
8356 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8357
8358 * cli/cli-decode.c (cmd_type): New function.
8359 * command.h (cmd_type): Declare.
8360 * infrun.c (set_schedlock_func): Call function cmd_type.
8361 * kod.c (kod_set_os): Call cmd_type.
8362 * cris-tdep.c (cris_version_update): Use function cmd_type.
8363 (cris_mode_update, cris_abi_update): Ditto.
8364
8365 * command.h: (execute_cmd_post_hook): Declare.
8366 (execute_cmd_pre_hook): Declare.
8367 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8368 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8369 functions. Execute pre/post hook while ensuring that afterwords
8370 hook_in is cleared.
8371 * top.c (execute_command): Use execute_cmd_post_hook, and
8372 execute_cmd_pre_hook to execute pre/post commands.
8373 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8374 hook_stop_stub.
8375 (hook_stop_stub): Call execute_cmd_pre_hook.
8376
8377 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8378
8379 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8380 set'' and this leads to a core dump. Move xstrdup of
8381 operating_system to after check that it is not NULL.
8382
8383 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8384
8385 * kod.c (kod_set_os): Remove unnecessary check that
8386 ``command->type'' is set_cmd.
8387
8388 * valprint.c (set_input_radix): Use input_radix.
8389 (set_output_radix): Use output_radix.
8390 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8391 isn't reverted.
8392
8393 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8394
8395 * value.h (struct value): Delete field ``substring_addr''. Change
8396 aligner fields to force_doublest_align, force_longest_align,
8397 force_core_addr_align and force_pointer_aligh.
8398
8399 * value.h (struct value): Fix typo in above change.
8400
8401 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8402
8403 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8404 to fix internal_error from ``maintenance print architecture''.
8405
8406 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8407
8408 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8409 for gcc versions after gcc-2.8.1.
8410
8411 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8412
8413 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8414 for method resolution. Restore adjustment of ``this'' pointer after
8415 calling value_struct_elt, which was accidentally removed during the
8416 HP merge.
8417
8418 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8419
8420 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8421 value_of_register.
8422 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8423 get_saved_register.
8424 * value.h (value_of_register): Update.
8425
8426 2002-03-14 Richard Henderson <rth@redhat.com>
8427
8428 * configure.in: Detect declaration for canonicalize_file_name.
8429 * utils.c (canonicalize_file_name): Declare, if needed.
8430 (gdb_realpath): Prefer realpath if available and usable.
8431 * config.in, configure: Rebuild.
8432
8433 2002-03-14 Richard Henderson <rth@redhat.com>
8434
8435 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8436 a constant array bound.
8437
8438 * MAINTAINERS: Add myself to write-after-approval.
8439
8440 2002-03-14 Michael Snyder <msnyder@redhat.com>
8441
8442 * symfile.c (syms_from_objfile): Return immediately if no syms.
8443 (symbol_file_add): Return immediately if no syms.
8444 (find_sym_fns): Return immediately if no syms.
8445
8446 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8447
8448 * gdbserver/remote-util.c (remote_open): Print remote-side's
8449 IP address when remote debugging over the network.
8450
8451 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8452
8453 * config/sparc/fbsd.mh: Fix copyright.
8454 * config/sparc/fbsd.mt: Likewise.
8455
8456 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8457
8458 * MAINTAINERS: Fix typo in name of gdb warnings option.
8459 (x86-64): Fix formating so that this can be parsed by awk.
8460
8461 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8462
8463 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8464 * defs.h: Include "gdb/signals.h".
8465 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8466
8467 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8468
8469 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8470 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8471 from x86-64-tdep.h
8472
8473 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8474 Don Howard <dhoward@redhat.com>
8475
8476 * mips-tdep.c (ST0_FR): Define.
8477 (mips2_fp_compat): New function, temporarily disabled.
8478 (mips_read_fp_register_single): New function.
8479 (mips_read_fp_register_double): New function.
8480 (mips_print_register): Use them.
8481 (do_fp_register_row): Likewise.
8482
8483 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8484
8485 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8486 approval''.
8487
8488 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8489
8490 * stabsread.c (read_member_functions): Fix is_stub test for
8491 static member functions, improve comment.
8492
8493 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8494
8495 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8496 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8497 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8498 commands that set boolean values.
8499 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8500 (arm_rdi_resume): Always initialize PC.
8501 (arm_rdi_open): Don't use rslt as a boolean.
8502 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8503 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8504 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8505 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8506
8507 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8508
8509 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8510 * configure: Rebuilt.
8511
8512 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8513
8514 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8515 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8516
8517 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8518
8519 * cli/cli-decode.c (set_cmd_completer): New function.
8520 * command.h (set_cmd_completer): Declare.
8521 * cli/cli-decode.h (set_cmd_completer): Ditto.
8522
8523 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8524 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8525 * win32-nat.c (_initialize_inftarg): Ditto.
8526 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8527 * proc-api.c (_initialize_proc_api): Ditto.
8528 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8529 * source.c (_initialize_source): Ditto.
8530 * exec.c (_initialize_exec): Ditto.
8531 * solib.c (_initialize_solib): Ditto.
8532 * top.c (init_main): Ditto.
8533 * tracepoint.c (_initialize_tracepoint): Ditto.
8534 * symfile.c (_initialize_symfile): Ditto.
8535 * printcmd.c (_initialize_printcmd): Ditto.
8536 * infcmd.c (_initialize_infcmd): Ditto.
8537 * corefile.c (_initialize_core): Ditto.
8538
8539 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8540
8541 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8542
8543 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8544
8545 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8546
8547 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8548
8549 * NEWS: Update headings, 5.2 has branched.
8550
8551 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8552
8553 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8554 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8555 (register_addr, REGISTER_RAW_SIZE): Likewise.
8556 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8557 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8558
8559 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8560
8561 * MAINTAINERS (x86-64): Add myself.
8562 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8563 changed value_ptr -> struct value *
8564
8565 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8566
8567 * configure.host (sparc64-*-freebsd): Add.
8568 * configure.tgt: Likewise.
8569 * config/sparc/fbsd.mh: New file.
8570 * config/sparc/fbsd.mt: Likewise.
8571 * config/sparc/nm-fbsd.h: Likewise.
8572 * config/sparc/tm-fbsd.h: Likewise.
8573
8574 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8575
8576 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8577 regformats/reg-s390x.dat.
8578
8579 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8580
8581 * utils.c: Add FIXME explaining true/false problem.
8582
8583 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8584
8585 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8586
8587 2002-02-28 Michael Chastain <mec@shout.net>
8588
8589 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8590
8591 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8592
8593 * gdbserver/linux-s390-low.c: New file.
8594 * regformats/reg-s390.dat: New file.
8595 * regformats/reg-s390x.dat: New file.
8596 * gdbserver/configure.srv: Add S/390.
8597 * gdbserver/Makefile.in: Add S/390.
8598 * configure.tgt: Enable gdbserver for S/390.
8599
8600 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8601
8602 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8603 first line of the doc string for "info dos", except at the end of
8604 the sentence, since the short help stops at the first period.
8605
8606 2002-02-28 Jason Merrill <jason@redhat.com>
8607
8608 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8609
8610 2002-02-27 Fred Fish <fnf@redhat.com>
8611
8612 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8613 comment (dumy -> dummy).
8614
8615 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8616
8617 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8618
8619 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8620
8621 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8622
8623 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8624
8625 * gdbserver/acconfig.h: New file.
8626 * gdbserver/i387-fp.c: New file.
8627 * gdbserver/i387-fp.h: New file.
8628 * gdbserver/linux-x86-64.c: New file.
8629 * regformats/reg-x86-64.dat: New file.
8630 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8631 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8632 * gdbserver/configure.in: Add support for regsets.
8633 * gdbserver/config.in: Regenerate.
8634 * gdbserver/configure: Regenerate.
8635 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8636 * gdbserver/linux-low.h: New file.
8637 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8638 for regsets.
8639 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8640 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8641 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8642 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8643 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8644 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8645 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8646 "i387-fp.h". Add PTRACE_GETREGS and friends.
8647 * gdbserver/regcache.c (supply_register): New function.
8648 (supply_register_by_name): New function.
8649 (collect_register): New function.
8650 (collect_register_by_name): New function.
8651
8652 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8655 (config.status): Add configure.srv dependency.
8656 (server_h): Add config.h dependency.
8657
8658 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8661 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8662 * gdbserver/configure.srv: Change i386-*-linux* to use
8663 reg-i386-linux.o.
8664
8665 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8666
8667 * x86-64-tdep.c: Re-indent. Update copyright date.
8668
8669 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8670
8671 From Michal Ludvig <mludvig@suse.cz>:
8672 * x86-64-tdep.c (value.h): Delete.
8673 (gdb_assert.h): Include.
8674 (x86_64_register_convert_to_virtual,
8675 x86_64_register_convert_to_raw ): Add check which lets only
8676 floating-point values to be converted.
8677 (value_push): Delete.
8678 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8679 (i386_gdbarch_init): Number of register_bytes fixed.
8680
8681 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8682
8683 * MAINTAINERS: Add x86-64 target.
8684
8685 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8686
8687 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8688 * osfsolib.c (solib_map_sections): Ditto.
8689 * irix5-nat.c (solib_map_sections): Ditto.
8690 * corelow.c (gdb_check_format): Ditto.
8691 * symfile.c (symfile_bfd_open): Ditto.
8692 * solib.c (solib_map_sections): Ditto.
8693 Fix PR gdb/354.
8694
8695 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8696
8697 * remote.c (_initialize_remote): By default, disable ``e'' and
8698 ``E'' step out-of-range packets.
8699
8700 2002-02-26 Andreas Schwab <schwab@suse.de>
8701
8702 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8703 m68k_linux_frame_saved_pc.
8704 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8705 in_sigtramp.
8706 (SIGCONTEXT_PC_OFFSET): Remove.
8707 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8708 m68k_linux_sigtramp_saved_pc): New functions.
8709 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8710 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8711 (UCONTEXT_PC_OFFSET): Define.
8712 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8713 non-RT and RT signal trampolines.
8714
8715 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8716
8717 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8718 (TARGET_NBPG, STACK_END_ADDR): Delete
8719 (VARIABLES_INSIDE_BLOCK): Delete.
8720
8721 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8722
8723 * utils.c (perror_with_name): Make string parameter constant.
8724 (print_sys_errmsg): Ditto.
8725 (query): Ditto.
8726 * defs.h (perror_with_name): Update.
8727 (print_sys_errmsg): Update.
8728 (query): Update.
8729
8730 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8731
8732 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8733 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8734
8735 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8736
8737 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8738 if it already matches the current architecture from the exec file.
8739 Include arch-utils.h for gdbarch_info_init prototype.
8740 * Makefile.in (rs6000-nat.o): Update dependencies.
8741
8742 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8743
8744 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8745 list of exported variables.
8746
8747 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8748
8749 * gdbserver/configure.srv: New file.
8750 * gdbserver/configure.in: Use configure.srv instead
8751 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8752 from it.
8753 * gdbserver/configure: Regenerated.
8754 * gdbserver/terminal.h: New file.
8755 * gdbserver/Makefile.in: Update for configure changes. Remove
8756 more unneeded include paths.
8757
8758 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8759
8760 From wiz at danbala:
8761 * config/sparc/tm-sp64.h: Fix grammar and typos.
8762 Fix PR gdb/287.
8763
8764 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8765
8766 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8767 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8768 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8769 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8770 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8771 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8772 * s390-tdep.c: Ditto.
8773 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8774 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8775 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8776 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8777 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8778 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8779 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8780 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8781 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8782 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8783 Fix PR gdb/378.
8784
8785 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8786
8787 * lin-thread.c: Delete file.
8788 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8789 to gdb_proc_service.h.
8790 * configure: Re-generate.
8791
8792 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8793 * serial.c (serial_open): Delete check for "ocd".
8794 Fix PR gdb/349.
8795
8796 * Makefile.in (linux-thread.o): Delete target.
8797 * linux-thread.c: Delete file.
8798
8799 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8800 renamed SH files to be consistent.
8801
8802 * symtab.c (sort_search_symbols): Use xfree.
8803
8804 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8805
8806 * arm-linux-tdep.c (arm_linux_init_abi): Register
8807 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8808 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8809 definition with undef, since we don't want the sysvr4 definition.
8810 (SKIP_TRAMPOLINE_CODE): Likewise.
8811
8812 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8813
8814 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8815
8816 * configure.in: (AC_CHECK_FUNCS) Added test for
8817 canonicalize_file_name Regenerated.
8818 * config.in, configure: Regenerated.
8819 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8820 defined use canonicalize_file_name.
8821
8822 2002-02-23 Michael Chastain <mec@shout.net>
8823
8824 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8825
8826 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8827
8828 * README: Remove references to cygnus.com.
8829 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8830 dot com'' form. Remove references to cygnus.com and sourceware.
8831
8832 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8833
8834 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8835 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8836 1003.1-2001 no longer allows "head -1".
8837 * gdb/Makefile.in (version.c): Likewise.
8838 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8839 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8840 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8841
8842 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8843
8844 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8845 * command.h (cmd_cfunc_eq): Declare.
8846 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8847
8848 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8849 ``struct cmd_list_element *''.
8850 * cli/cli-cmds.c (is_complete_command): Update. Use
8851 cmd_cfunc_eq.
8852 * top.c (execute_command): Pass the command to
8853 is_complete_command.
8854 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8855
8856 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8857
8858 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8859 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8860 architecture defines.
8861 * s390-tdep.c (s390_gdbarch_init): Likewise.
8862
8863 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8864
8865 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8866 (arm_linux_push_arguments): Likewise.
8867 (arm_linux_init_abi): Register them. Also register linux-specific
8868 call_dummy_words.
8869 (find_minsym_and_objfile): Use strcmp, not STREQ.
8870 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8871 (arm_linux_call_dummy_words): Delete declaration.
8872 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8873 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8874 declarations.
8875 (LOWEST_PC): Delete.
8876
8877 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8878
8879 * maint.c (print_section_info): Do not prepend `0x' to filepos
8880 output, it will be handled by local_hex_string_custom.
8881
8882 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8883
8884 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8885 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8886 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8887
8888 2002-02-22 Jim Blandy <jimb@redhat.com>
8889
8890 Indicate that the bcache functions don't change the strings
8891 they're passed.
8892 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8893 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8894
8895 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8896
8897 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8898
8899 2002-02-21 Christopher Faylor <cgf@redhat.com>
8900
8901 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8902 find the complete path to a loaded DLL.
8903
8904 2002-02-21 Fred Fish <fnf@redhat.com>
8905
8906 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8907 that marks the end of the range of a function, enter a line number
8908 entry that has a line number of zero and a PC offset that matches
8909 the end of the function. This starts a range of PC's for which no
8910 line number information is known.
8911 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8912 PC's for which no line number info is found (line number is zero)
8913 then we didn't find any valid line information.
8914 * symtab.h: Document use of zero line number entry.
8915
8916 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8917
8918 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8919 (have_ptrace_getvrregs): Define for run time checks.
8920 (gdb_vrregset_t): New type for Altivec register handling.
8921 (fetch_register, store_register): Fetch/store altivec register
8922 when needed.
8923 (fetch_altivec_register, store_altivec_register): New functions.
8924 (supply_vrregset, fill_vrregset): New functions.
8925 (fetch_altivec_registers, store_altivec_registers): New functions.
8926 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8927 registers as well.
8928
8929 2002-02-21 Jiri Smid <smid@suse.cz>
8930
8931 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8932
8933 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8934
8935 * Makefile.in (armnbsd-nat.o): Update dependencies.
8936 * armnbsd-nat.c (supply_gregset): New function. Common code to
8937 supply the integer register set.
8938 (supply_fparegset): New function. Similar for FPA registers.
8939 (fetch_regs, fetch_fp_regs): Use them.
8940 (fetch_core_registers): Likewise.
8941 (fetch_elfcore_registers): New function.
8942 (arm_netbsd_elfcore_fns): New core-file type specification.
8943 (_initialize_arm_netbsd_nat): Register it.
8944
8945 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8946
8947 * armnbsd-nat.c: Include gdbcore.h.
8948 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8949 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8950 'void' to declaration, to shut up ARI.
8951 (fetch_core_registers): Make static. Rewrite using supply_register.
8952 (arm_netbsd_core_fns): New core-file type specification.
8953 (_initialize_arm_netbsd_nat): New function.
8954
8955 2002-02-21 Christopher Faylor <cgf@redhat.com>
8956
8957 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8958 value.
8959
8960 2002-02-20 Christopher Faylor <cgf@redhat.com>
8961
8962 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8963 fails.
8964
8965 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8966
8967 * jv-exp.y (parse_number): Change type of implicit longs
8968 to builtin_type_uint64.
8969
8970 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8971
8972 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8973 to be an integer instead of a `union wait'.
8974
8975 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8976
8977 * mips-linux-nat.c: Call the operating system GNU/Linux.
8978 * mips-linux-tdep.c: Likewise.
8979 * mips-tdep.c: Likewise.
8980
8981 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8982
8983 Fix PR gdb/265.
8984 * jv-exp.y (parse_number): Handle 64-bit integers.
8985
8986 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8987
8988 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8989 AC_STDC_HEADERS to AC_HEADER_STDC.
8990 * gdbserver/configure: Regenerated.
8991
8992 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8993
8994 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8995 is defined.
8996 * sparc-tdep.c (get_longjmp_target): Likewise.
8997
8998 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8999
9000 * News: Add news about ARM and Multi-arch. Mention the new target
9001 arm*-*-netbsd*.
9002
9003 2002-02-19 Jim Blandy <jimb@redhat.com>
9004
9005 * stabsread.c (error_type_complaint): Improve error message.
9006
9007 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
9008
9009 * gdbserver/README: Update documentation.
9010 * gdbserver/configure.in: Update configury to match documentation.
9011 * gdbserver/Makefile.in: Likewise.
9012 * gdbserver/configure: Regenerated.
9013 * gdbserver/aclocal.m4: New file, generated by aclocal.
9014 * gdbserver/config.in: New file, generated by autoheader.
9015
9016 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9017
9018 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9019 armnbsd-nat.c.
9020
9021 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9022
9023 * arm-tdep.h (enum arm_float_model): New enum.
9024 (struct gdbarch_tdep): Add fp_model.
9025 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9026 up floating-point conversions until we know the floating-point model
9027 in use by the inferior. Don't complain about being unable to
9028 determine the ABI of the inferior when we don't have one.
9029 (arm_extract_return_value): Support different floating-point models.
9030 (arm_store_return_value): Likewise.
9031 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
9032 ARM_FLOAT_SOFT.
9033 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9034
9035 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9036
9037 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9038 of ``current_gdbarch''.
9039
9040 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9041
9042 * armnbsd-nat.c : ANSIfy all function declarations.
9043 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9044 (fetch_inferior_registers): Re-implement in terms of above.
9045 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9046 (store_inferior_registers): Re-implement in terms of above.
9047
9048 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9049
9050 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
9051 kernel.
9052 * arm-linux-tdep.c: Likewise.
9053 * config/arm/tm-linux.h: Likewise.
9054
9055 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9056
9057 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9058 * config/arm/nbsd.mt (TM_FILE): Delete.
9059 * config/arm/tm-nbsd.h: Delete.
9060
9061 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9062
9063 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9064 Initialize CALL_DUMMY_LENGTH.
9065
9066 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
9067
9068 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9069 function.
9070 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
9071 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
9072 defines one thing and that is incorrect for this port.
9073 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9074
9075 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9076
9077 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9078
9079 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9080
9081 * win32-nat.c (display_selector): New function. Displays information
9082 about the information returned by GetThreadSelectorEntry API function.
9083 (display_selectors): New function. Displays the infomation of
9084 the selector given as argument, or of CS, DS ans FS selectors
9085 if no argument is given.
9086 ( _initialize_inftarg): Add "w32" as info prefix command.
9087 Add "info w32 selector" as command calling display_selectors.
9088
9089 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9090
9091 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9092 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9093 if not defined.
9094
9095 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9096
9097 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9098
9099 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9100
9101 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9102 (arm_fix_call_dummy): Call it.
9103 (arm_call_dummy_breakpoint_offset): Delete.
9104 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9105 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9106
9107 2002-02-18 Andrew Cagney <ac131313@redhat.com>
9108
9109 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9110 Default to func_frame_chain_valid.
9111 * gdbarch.h, gdbarch.c: Re-generate.
9112 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9113
9114 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
9115
9116 * ppc-linux-nat.c: Update copyright.
9117 (fetch_register, store_register): Add tid parameter, don't compute
9118 tid here.
9119 (fetch_ppc_registers, store_ppc_registers): Add tid
9120 parameter. Pass it along to callees.
9121 (fetch_inferior_registers, store_inferior_registers): Compute tid
9122 here, and pass it to calleed functions.
9123 (fill_gregset, supply_fpregset): Clean up formatting.
9124
9125 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9126
9127 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9128 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9129
9130 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9133 * gdbarch.c gdbarch.h: Regenerate.
9134 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9135 function.
9136 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9137 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9138 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9139
9140 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9141 * arm-tdep.c (arm_get_longjmp_target): New function.
9142 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9143 this to a positive value register arm_get_longjmp_target as the
9144 longjmp handler.
9145 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9146 (arm_linux_init_abi): Set up longjmp description in tdep.
9147 * armnbsd-nat.c (get_longjmp_target): Delete.
9148 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9149 description in tdep.
9150 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9151 (get_longjmp_target): Delete declaration.
9152 (GET_LONGJMP_TARGET): Delete.
9153 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9154 (GET_LONGJMP_TARGET): Delete.
9155
9156 2002-02-17 Kevin Buettner <kevinb@redhat.com>
9157
9158 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9159 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9160 of ``current_gdbarch''.
9161
9162 2002-02-17 Tom Tromey <tromey@redhat.com>
9163
9164 * cli/cli-cmds.c (compare_strings): New function.
9165 (complete_command): Only print each unique item once.
9166 * completer.h (complete_line): Declare.
9167 * completer.c (complete_line): New function.
9168 (line_completion_function): Use it.
9169
9170 2002-02-16 Andrew Cagney <ac131313@redhat.com>
9171
9172 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9173 * gdbarch.h, gdbarch.c: Re-generate.
9174
9175 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9176
9177 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9178
9179 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
9180
9181 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9182 * valops.c (value_arg_coerce): Don't take the address of a reference
9183 to convert an argument to a reference.
9184
9185 2002-02-15 Christopher Faylor <cgf@redhat.com>
9186
9187 * win32-nat.c (get_image_name): New function.
9188 (handle_load_dll): Use get_image_name function.
9189 (get_child_debug_event): Avoid registering debug events until possibly
9190 execed process is started.
9191 (child_create_inferior): Allow invocation via shell so that command
9192 line redirection, etc. works ok.
9193 (_initialize_inftarg): Add new command: "set shell" to control whether
9194 a shell is used to start a process.
9195
9196 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9197
9198 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9199 instead of find_register_by_number.
9200 (cannot_store_register): Likewise.
9201
9202 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9203
9204 * dwarf2read.c: Replace fprintf (stderr, ...) by
9205 fprintf_unfiltered (gdb_stderr, ...).
9206
9207 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
9208
9209 * gdbserver/gdbserver.1: Document --attach.
9210
9211 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9212
9213 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9214 descriptions.
9215 * arm-tdep.c (arm_default_arm_le_breakpoint)
9216 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9217 (arm_default_thumb_be_breakpoint): New. Initialize them from
9218 traditional breakpoint defines.
9219 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9220 (arm_gdbarch_init): Initialize new breakpoint variables.
9221 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9222 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9223 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9224 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9225 code out to ...
9226 (arm_netbsd_init_abi_common): ... here; new function.
9227 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9228 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9229 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9230 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9231
9232 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
9233
9234 * arm-tdep.h (enum arm_abi): New enum.
9235 (struct gdbarch_tdep): New structure.
9236 (LOWEST_PC): Provide a default.
9237 (arm_gdbarch_register_os_abi): Declare new function.
9238 * arm-tdep.c (arm_abi_names): New array.
9239 (process_note_abi_tag_sections): New function.
9240 (get_elfosabi): New function.
9241 (arm_gdbarch_register_os_abi): New function.
9242 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9243 support for that ABI has been built in, then call the appropriate
9244 configuration routine. Use gdbarch_num_regs() to get the number
9245 of registers.
9246 (arm_dump_tdep): New function.
9247 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9248 place-holder functions.
9249 (_initialize_arm_tdep): Register them.
9250 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9251
9252 * armnbsd-tdep.c: New file.
9253 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9254 * config/arm/nbsd.mt (TDEPFILES): Add it.
9255 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9256
9257 * armnbsd-nat.c: Include regcache.h.
9258 * Makefile.in (armnbsd-nat.o): Update dependency list.
9259
9260 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9261
9262 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9263
9264 * gdbserver/Makefile.in: Fix typos in target rules.
9265
9266 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9267
9268 Fix part of PR gdb/267.
9269 * linespec.c (find_methods): Handle constructors specially for now.
9270
9271 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
9272
9273 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9274 handling.
9275 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9276 standard_coerce_float_to_double().
9277
9278 2002-02-14 Christopher Faylor <cgf@redhat.com>
9279
9280 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9281 GDBINIT_FILENAME.
9282
9283 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
9284
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9286 find_variant_by_name, because it confuses the multiarch
9287 framework. Return NULL if there isn't an architecture with the
9288 user supplied name, instead of forcing a different one without
9289 recording the change with the multiarch machinery.
9290 (find_variant_by_name): Delete.
9291
9292 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9293
9294 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9295 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9296
9297 2002-02-13 Martin M. Hunt <hunt@redhat.com>
9298
9299 * stack.c (print_frame_info_base): When calling
9300 print_frame_info_listing_hook, set current_source_symtab.
9301
9302 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9303
9304 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9305 and remove unused $(INCLUDE_DIR).
9306 Add regcache.c to OBS.
9307 Add generated register protocol files to clean target.
9308 Update dependencies for new objects, obsolete old target code.
9309
9310 * gdbserver/linux-low.c: Remove all platform-specific code to
9311 new files. Remove various dead code. Update to use regcache
9312 functionality.
9313 * gdbserver/remote-utils.c (fromhex): Add return statement
9314 to quiet warning.
9315 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9316 constant.
9317 (input_interrupt): Add integer parameter to match prototype
9318 of a signal handler.
9319 (outreg): Use register_data ().
9320 (prepare_resume_reply): Use gdbserver_expedite_regs.
9321 * gdbserver/server.c (main): Dynamically allocate own_buf because
9322 PBUFSIZ is no longer constant. Use registers_to_string () and
9323 registers_from_string ().
9324 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9325 for error (), fatal (), and warning (). Update definition of
9326 PBUFSIZ to use regcache functionality. Add include guard.
9327 * gdbserver/utils.c (fatal): Add missing ``const''.
9328 (warning): New function.
9329
9330 * regformats/regdat.sh: Include "regcache.h" in generated files.
9331 Provide init_registers () function.
9332 * regformats/regdef.h: Add prototype for set_register_cache ().
9333 Add include guard.
9334
9335 * gdbserver/linux-arm-low.c: New file.
9336 * gdbserver/linux-i386-low.c: New file.
9337 * gdbserver/linux-ia64-low.c: New file.
9338 * gdbserver/linux-m68k-low.c: New file.
9339 * gdbserver/linux-mips-low.c: New file.
9340 * gdbserver/linux-ppc-low.c: New file.
9341 * gdbserver/linux-sh-low.c: New file.
9342
9343 * gdbserver/regcache.c: New file.
9344 * gdbserver/regcache.h: New file.
9345
9346 * gdbserver/low-linux.c: Removed obsolete file.
9347
9348 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9349
9350 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9351 * config/i386/linux.mt: Likewise.
9352 * config/ia64/linux.mt: Likewise.
9353 * config/m68k/linux.mh: Likewise.
9354 * config/powerpc/linux.mh: Likewise.
9355 * config/mips/linux.mt: Likewise.
9356
9357 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9358
9359 * config/i386/i386lynx.mh: Mark gdbserver variables
9360 as (currently) obsolete for this target.
9361 * config/i386/nbsd.mt: Likewise.
9362 * config/i386/nbsdelf.mt: Likewise.
9363 * config/m32r/m32r.mt: Likewise.
9364 * config/m68k/m68klynx.mh: Likewise.
9365 * config/m68k/nbsd.mt: Likewise.
9366 * config/m68k/sun3os4.mh: Likewise.
9367 * config/mips/vr5000.mt: Likewise.
9368 * config/ns32k/nbsd.mt: Likewise.
9369 * config/pa/hppabsd.mh: Likewise.
9370 * config/pa/hppaosf.mh: Likewise.
9371 * config/powerpc/nbsd.mt: Likewise.
9372 * config/rs6000/rs6000lynx.mh: Likewise.
9373 * config/s390/s390.mt: Likewise.
9374 * config/s390/s390x.mt: Likewise.
9375 * config/sparc/sparclynx.mh: Likewise.
9376 * config/sparc/sun4os4.mh: Likewise.
9377 * config/i386/x86-64linux.mt: Likewise.
9378 * config/sparc/linux.mh: Likewise.
9379
9380 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9381
9382 * configure.tgt: Configure gdbserver only for known working
9383 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9384 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9385 SUBDIRS if it is configured. Update comment for ${nativefile}.
9386 * configure: Regenerated.
9387
9388 2002-02-13 Michael Snyder <msnyder@redhat.com>
9389
9390 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9391
9392 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9393 (default_gcore_mach): Just return 0, work around a problem in bfd.
9394 (default_gcore_target): OK to return NULL if exec_bfd is null.
9395 (make_mem_sec): Use a cast, avoid a warning.
9396
9397 * procfs.c (find_memory_regions_callback): Use a cast instead of
9398 calling host_pointer_to_address (which complains if
9399 sizeof (host pointer) != sizeof (target pointer)).
9400 (procfs_make_note_section): Avoid overflow in psargs string.
9401
9402 * procfs.c (procfs_make_note_section): Make the default
9403 implementation return an error.
9404
9405 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9406
9407 * procfs.c (procfs_make_note_section): Provide a default definition
9408 (for alpha-dec-osf4.0f). Fix typos.
9409
9410 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9411
9412 * linux-proc.c: Add include of regcache.h.
9413 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9414
9415 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9416
9417 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9418 * memattr.c (create_mem_region): Disallow useless empty region.
9419 Regions are half-open intervals, so allow [A..B) [B..C) as
9420 non-overlapping.
9421
9422 2002-02-13 Michael Chastain <mec@shout.net>
9423
9424 * defs.h: Kill CONST_PTR.
9425 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9426 * c-lang.c (c_builtin_types): Likewise.
9427 * ch-lang.c (ch_builtin_types): Likewise.
9428 * f-lang.c (f_builtin_types): Likewise.
9429 * language.c (unknown_builtin_types): Likewise.
9430 * m2-lang.c (m2_builtin_types): Likewise.
9431 * p-lang.c (pascal_builtin_types): Likewise.
9432 * scm-lang.c (c_builtin_types): Likewise.
9433
9434 2002-02-13 Keith Seitz <keiths@redhat.com>
9435
9436 * arm-tdep.h (arm_get_next_pc): Add declaration.
9437
9438 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9439
9440 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9441 with other related struct-returning functions.
9442 (arm_extract_struct_value_address): New function.
9443 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9444 initialize float_format, double_format and long_double_format as
9445 appropriate to the endianness of the target.
9446 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9447 (arm_use_struct_convention): Delete declaration.
9448 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9449
9450 2002-02-13 Keith Seitz <keiths@redhat.com>
9451
9452 * defs.h (core_addr_to_string_nz): New function.
9453
9454 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9455
9456 Apply missing bits of 2002-01-15 patch.
9457 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9458 (fill_fpregset): Use i387_fill_fsave.
9459
9460 2002-02-12 Keith Seitz <keiths@redhat.com>
9461
9462 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9463 (core_addr_to_string_nz): New function.
9464
9465 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * arm-linux-nat.c: Really include arm-tdep.h.
9468 * config/arm/tm-linux.h (struct type, struct value): Declare.
9469
9470 2002-02-11 Michael Snyder <msnyder@redhat.com>
9471
9472 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9473 (gcore section): Ifdef for Solaris and Unixware only.
9474 (procfs_do_thread_registers): Unixware needs one lwpstatus
9475 per thread (not one prstatus or pstatus).
9476 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9477 not over all gdb threads. For unixware, call elfcore_write_pstatus
9478 once before iterating over threads.
9479
9480 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9481
9482 * arm-tdep.h: New file.
9483 * arm-tdep.c: Include arm-tdep.h.
9484 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9485 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9486 (arm_print_float_info, arm_register_type, convert_to_extended)
9487 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9488 (arm_extract_return_value, arm_register_name): Make static.
9489 (arm_software_single_step): Similarly. Fix types in declaration.
9490 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9491 (arm_store_return_value, arm_store_struct_return): New functions.
9492 (arm_gdbarch_init): Register the above functions. Also register
9493 call_dummy_start_offset, sizeof_call_dummy_words,
9494 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9495 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9496 max_register_virtual_size, register_size. Set up
9497 prologue_cache.saved_regs here, rather than ...
9498 (_initialize_arm_tdep): ... here.
9499 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9500 declarations.
9501 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9502 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9503 (arm_print_float_info, arm_register_type, convert_to_extended)
9504 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9505 (arm_extract_return_value, arm_register_name): Delete declarations.
9506 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9507 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9508 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9509 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9510 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9511 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9512 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9513 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9514 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9515 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9516 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9517 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9518 interface.
9519 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9520 * remote-rdi.c remote-rdp.c: Likewise.
9521 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9522 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9523 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9524 definition.
9525
9526 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9527 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9528 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9529 from non-ARM_ prefixed definitions.
9530 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9531 all uses of above.
9532 * remote-rdi.c remote-rdp.c: Likewise.
9533 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9534
9535 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9536
9537 * arm-tdep.c (arm_frameless_function_invocation)
9538 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9539 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9540 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9541 (arm_pop_frame, arm_get_next_pc): Make static.
9542 (arm_gdbarch_init): Register above in gdbarch structure.
9543 (arm_read_fp): Renamed from arm_target_read_fp.
9544 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9545 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9546 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9547 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9548 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9549 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9550 (arm_pc_is_thumb_dummy): Delete declarations.
9551 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9552 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9553 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9554 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9555
9556 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9557
9558 * symtab.c (compare_search_syms): New function.
9559 (sort_search_symbols): New function.
9560 (search_symbols): Sort symbols after searching rather than
9561 before.
9562
9563 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9564
9565 * NEWS: Linux -> GNU/Linux.
9566
9567 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9568
9569 * gdbarch.sh: For for level one methods, disallow a definition
9570 when partially multi-arched. Add comments explaining rationale.
9571 * gdbarch.h: Re-generate.
9572
9573 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9574
9575 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9576 multi-arch partial.
9577
9578 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9579
9580 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9581 field. Use diff -u.
9582 * gdbarch.c: Re-generate.
9583
9584 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9585
9586 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9587 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9588 partial.
9589
9590 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9591
9592 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9593 multi-arch partial.
9594 (PUSH_ARGUMENTS): Switch to using predefault.
9595 * gdbarch.c: Regenerate.
9596
9597 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9598
9599 * valops.c (PUSH_ARGUMENTS): Delete definition.
9600 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9601 partial. Default to default_push_arguments.
9602 * gdbarch.h, gdbarch.c: Regenerate.
9603
9604 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9605
9606 * defs.h (throw_exception): Rename return_to_top_level. Update
9607 comments.
9608 * utils.c (error_stream, internal_verror, quit): Ditto.
9609 * top.c (throw_exception, catcher): Ditto.
9610 * sparclet-rom.c (sparclet_load): Ditto.
9611 * remote.c (interrupt_query, minitelnet): Ditto.
9612 * remote-sds.c (interrupt_query): Ditto.
9613 * remote-mips.c (mips_error, mips_kill): Ditto.
9614 * ocd.c (interrupt_query): Ditto.
9615 * monitor.c (monitor_interrupt_query): Ditto.
9616 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9617 * target.h: Update comment.
9618
9619 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9620
9621 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9622
9623 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9624 default_double_format.
9625 * gdbarch.h, gdbarch.c: Re-generate.
9626 * findvar.c (floatformat_unknown): Delete variable definition.
9627 * doublest.h (floatformat_unknown): Delete variable declaration.
9628
9629 2002-02-09 Jim Blandy <jimb@redhat.com>
9630
9631 * stabsread.c (read_type): Add code to parse Sun's syntax for
9632 prototyped function types.
9633
9634 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9635
9636 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9637 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9638
9639 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9640
9641 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9642 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9643 now _initialize_xcoffsolib gets called again and overrides the
9644 commands from solib.c in a native configuration.
9645
9646 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9647
9648 * doublest.c (store_typed_floating): Don't try to return a value.
9649 Fixes PR gdb/290.
9650
9651 2002-02-08 Jim Blandy <jimb@redhat.com>
9652
9653 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9654 is prototyped and has no arguments, print its argument list as
9655 `(void)'.
9656
9657 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9658
9659 * MAINTAINERS (write-after-approval): Add myself.
9660 (paper-trail): I've escaped!
9661
9662 2002-02-08 Christopher Faylor <cgf@redhat.com>
9663
9664 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9665 changes.
9666 (_initialize_check_for_gdb_ini): Ditto.
9667
9668 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9669
9670 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9671 xaprintf -> xasprintf.
9672
9673 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9674
9675 * win32-nat.c: Remove use of printf and sprintf functions.
9676
9677 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9678
9679 * arm-tdep.c (arm_frame_chain_valid): Make static.
9680 (arm_push_arguments): Likewise.
9681 (arm_gdbarch_init): New function.
9682 (_initialize_arm_tdep): Call it.
9683 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9684 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9685 (FRAME_CHAIN_VALID): Delete.
9686 (arm_frame_chain_valid): Delete declaration.
9687 (PUSH_ARGUMENTS): Delete.
9688 (arm_push_arguments): Delete declaration.
9689 (CALL_DUMMY_P): Delete.
9690
9691 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9692 Corinna Vinschen <vinschen@redhat.com>
9693
9694 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9695 on builtin float types.
9696
9697 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9698
9699 * utils.c: Include <curses.h> before "bfd.h".
9700 * tui/tui-hooks.c: Likewise.
9701 * tui/tui.c: Likewise.
9702 * tui/tuiCommand.c: Likewise.
9703 * tui/tuiData.c: Likewise.
9704 * tui/tuiDataWin.c: Likewise.
9705 * tui/tuiDisassem.c: Likewise.
9706 * tui/tuiGeneralWin.c: Likewise.
9707 * tui/tuiIO.c: Likewise.
9708 * tui/tuiLayout.c: Likewise.
9709 * tui/tuiRegs.c: Likewise.
9710 * tui/tuiSource.c: Likewise.
9711 * tui/tuiSourceWin.c: Likewise.
9712 * tui/tuiStack.c: Likewise.
9713 * tui/tuiWin.c: Likewise.
9714
9715 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9716
9717 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9718 to include space for pseudoregs as well. Update loops accordingly.
9719 (sh_fp_frame_init_saved_regs): Ditto.
9720 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9721
9722 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9723
9724 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9725 Add Richard Earnshaw to Arm maintainers.
9726
9727 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9728
9729 * defs.h (warning_begin): Delete declaration.
9730
9731 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9732 Delete macro.
9733
9734 2002-02-07 Michael Snyder <msnyder@redhat.com>
9735
9736 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9737 Logic bug, remove misplaced else.
9738
9739 2002-02-07 Klee Dienes <klee@apple.com>
9740
9741 * fork-inferior.c (fork_inferior): Add '!' to the list of
9742 characters that need to be quoted when building a string for the
9743 shell. Quote '!' specifically with a backslash, since CSH chokes
9744 when trying to evaluate "str!str".
9745
9746 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9747
9748 * rdi-share/host.h: Only provide a typedef for bool if it is not
9749 defined.
9750
9751 2002-02-04 Michael Snyder <msnyder@redhat.com>
9752
9753 * breakpoint.h (enum bptype): Add new overlay event bp type.
9754 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9755
9756 * breakpoint.c (create_internal_breakpoint): New function.
9757 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9758 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9759 (create_thread_event_breakpoint): Ditto.
9760 (create_solib_event_breakpoint): Ditto.
9761 (create_overlay_event_breakpoint): New function.
9762 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9763 (update_breakpoints_after_exec): Delete and re-initialize
9764 overlay event breakpoints after an exec. Add FIXME comment
9765 about longjmp breakpoint.
9766 (print_it_typical): Ignore overlay event breakpoints.
9767 (print_one_breakpoint): Ditto.
9768 (mention): Ditto.
9769 (bpstat_what): Do not stop for overlay event breakpoints.
9770 (delete_breakpoint): Don't delete overlay event breakpoints.
9771 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9772 (breakpoint_re_set): Re-create overlay event breakpoint.
9773
9774 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9775 (overlay_manual_command): Disable overlay breakpoints.
9776 (overlay_off_command): Disable overlay breakpoints.
9777
9778 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9779
9780 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9781 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9782 to here from config/tm-arm.h.
9783 (coff_sym_is_thumb): Make static.
9784 (arm_elf_make_msymbol_special): New function.
9785 (arm_coff_make_msymbol_special): New function.
9786 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9787 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9788 (coff_sym_is_thumb): Delete declaration.
9789 (arm_elf_make_msymbol_special): Declare.
9790 (arm_coff_make_msymbol_special): Declare.
9791 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9792 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9793
9794 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9795
9796 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9797
9798 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9799
9800 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9801 * gdbarch.c gdbarch.h: Regenerate.
9802 * arch-utils.c (default_print_float_info): New function.
9803 * arch-utils.h (default_print_float_info): Prototype it.
9804 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9805 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9806 (PRINT_FLOAT_INFO): Document it.
9807
9808 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9809 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9810 (PRINT_FLOAT_INFO): Define.
9811
9812 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9813
9814 * win32-nat.c (_initialize_check_for_gdb_ini):
9815 Add typecast to sprintf argument to suppress a warning.
9816
9817 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9818
9819 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9820 to allow easier handling of pass state.
9821 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9822 that gives exception name and address.
9823 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9824 and set last_sig value to ourstatus->value.sig. Some missing
9825 exceptions added.
9826 (child_continue): Correctly report continue_status.
9827 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9828 TARGET_SIGNAL_0 (new default value).
9829 (child_resume): consider sig argument passed to decide if
9830 the exception should be passed to debuggee or not.
9831
9832 2002-02-05 Michael Snyder <msnyder@redhat.com>
9833
9834 * regcache.c (fetch_register): Call target_fetch_register
9835 only if we don't call FETCH_PSEUDO_REGISTER.
9836 (store_register): Call target_store_register only if we
9837 don't call STORE_PSEUDO_REGISTER.
9838
9839 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9840
9841 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9842 ELF_MAKE_MSYMBOL_SPECIAL.
9843 * gdbarch.c, gdbarch.h: Regenerate.
9844 * arch-utils.c (default_make_msymbol_special): New function.
9845 * arch-utils.h (default_make_msymbol_special): Export.
9846 * elfread.c (elf_symtab_read): Compile use of
9847 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9848 multiarched.
9849 * coffread.c (coff_symtab_read): Ditto, for
9850 COFF_MAKE_MSYMBOL_SPECIAL.
9851
9852 2002-02-05 Jim Blandy <jimb@redhat.com>
9853
9854 * solib-svr4.c (svr4_truncate_ptr): New function.
9855 (svr4_relocate_section_addresses): Do the address arithmetic with
9856 the appropriate truncation for target addresses, even when
9857 CORE_ADDR is larger than a target address.
9858
9859 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9860
9861 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9862 to (int *).
9863
9864 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9865
9866 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9867 code.
9868
9869 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9870
9871 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9872
9873 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9874
9875 * gdbserver/linux-low.c: Remove unused include files.
9876
9877 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9878
9879 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9880 (read_inferior_memory): Use it.
9881 (write_inferior_memory): Likewise.
9882
9883 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9884
9885 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9886 grubbing through sys_errlist.
9887
9888 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9889
9890 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9891
9892 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9893 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9894
9895 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9896
9897 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9898 (do_sfunc, set_cmd_sfunc): New functions.
9899
9900 * command.h (struct cmd_list_element): Add field func.
9901 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9902 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9903 * cli/cli-decode.h: Ditto.
9904
9905 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9906 (help_all, help_cmd_list): Ditto.
9907 (find_cmd, complete_on_cmdlist): Ditto.
9908 * top.c (execute_command): Ditto.
9909
9910 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9911 function.sfunc.
9912
9913 * infcmd.c (notice_args_read): Fix function signature.
9914
9915 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9916 * cli/cli-decode.c (add_set_cmd): Ditto.
9917 * utils.c (initialize_utils): Ditto.
9918 * maint.c (_initialize_maint_cmds): Ditto.
9919 * infrun.c (_initialize_infrun): Ditto.
9920 * demangle.c (_initialize_demangler): Ditto.
9921 * remote.c (add_packet_config_cmd): Ditto.
9922 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9923 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9924 * proc-api.c (_initialize_proc_api): Ditto.
9925 * kod.c (_initialize_kod): Ditto.
9926 * valprint.c (_initialize_valprint): Ditto.
9927 * top.c (init_main): Ditto.
9928 * infcmd.c (_initialize_infcmd): Ditto.
9929 * corefile.c (_initialize_core): Ditto.
9930 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9931 * arch-utils.c (initialize_current_architecture): Ditto.
9932 (_initialize_gdbarch_utils): Ditto.
9933 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9934
9935 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9936 * wince.c (_initialize_inftarg): Ditto.
9937 * symfile.c (_initialize_symfile): Ditto.
9938 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9939 * language.c (_initialize_language): Ditto.
9940 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9941
9942 2002-02-04 Michael Snyder <msnyder@redhat.com>
9943
9944 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9945
9946 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9949 Add rules for building the register data files.
9950
9951 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9952
9953 * regformats/regdat.sh: Add braces to the definition of
9954 expedite_regs_${arch}.
9955
9956 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9957
9958 * regformats/regdef.h (struct reg): Add comment describing the
9959 requirements for offset and size fields.
9960
9961 2002-02-04 Andreas Schwab <schwab@suse.de>
9962
9963 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9964 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9965
9966 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9967
9968 * gdbarch.sh (copyright): Update years in generated header.
9969 (SMASH_TEXT_ADDRESS): Add rule.
9970 * gdbarch.h, gdbarch.c: Re-generate.
9971 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9972 * dbxread.c: Likewise.
9973 * dwarfread.c: Likewise.
9974 * elfread.c: Likewise.
9975 * somread.c: Likewise.
9976
9977 * arm-tdep.c (arm_smash_text_address): New function.
9978 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9979
9980 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9981
9982 Add support for hardware watchpoints on win32 native.
9983 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9984 CONTEXT_DEBUG_REGISTERS.
9985 (dr variable): New variable. Static array containing a local copy
9986 of debug registers.
9987 (debug_registers_changed): New variable. Reflects when debug registers
9988 are changed and need to be written to inferior.
9989 (debug_registers_used): New variable. Reflects when any debug register
9990 was set, used when new threads are created.
9991 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9992 i386-nat code.
9993 (thread_rec): Set dr array if id is the thread of current_event .
9994 (child_continue, child_resume): Change the debug registers for all
9995 threads if debug_registers_changed.
9996 (child_add_thread): Change the debug registers if debug_registers_used.
9997 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9998 Link nm.h to new nm-cygwin.h file.
9999 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10000 of hardware registers.
10001
10002 2002-02-03 Andrew Cagney <ac131313@redhat.com>
10003
10004 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10005 Restore behavour broken by 2002-01-20 Andrew Cagney
10006 <ac131313@redhat.com> IEEE_FLOAT removal.
10007
10008 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * c-valprint.c (c_val_print): Pass a proper valaddr to
10011 cp_print_class_method.
10012 * valops.c (search_struct_method): If there is only one method
10013 and args is NULL, return that method.
10014
10015 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10016
10017 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10018 accessing tag_name directly.
10019
10020 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10023 of accessing tag_name directly.
10024
10025 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
10026
10027 PR gdb/280
10028 * gdbtypes.c (replace_type): New function.
10029 * gdbtypes.h (replace_type): Add prototype.
10030 * stabsread.c (read_type): Use replace_type.
10031
10032 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
10033
10034 * Makefile.in (memattr.o): Add missing dependencies rule.
10035
10036 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10037
10038 * breakpoint.c (break_at_finish_command): Really export.
10039 (break_at_finish_at_depth_command): Ditto.
10040 (tbreak_at_finish_command): Ditto.
10041 * hppa-tdep.c: Include completer.h.
10042 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10043 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10044
10045 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10046
10047 * utils.c (do_write): New function.
10048 (error_stream): Rewrite combining the code from error_begin and
10049 verror.
10050 (verror): Rewrite using error_stream.
10051 (error_begin): Delete function.
10052
10053 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10054
10055 * utils.c (error_begin): Make static.
10056 * defs.h (error_begin): Delete declaration.
10057
10058 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10059 (decode_line_1): Use cplusplus_error instead of error_begin,
10060 cplusplus_hint and return_to_top_level.
10061 * coffread.c (coff_symfile_read): Use error instead of error_begin
10062 and return_to_top_level.
10063 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10064
10065 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10066
10067 * language.h (type_error, range_error): Make string parameter
10068 constant.
10069 * language.c (warning_pre_print): Delete extern declaration.
10070 * dwarfread.c (warning_pre_print): Ditto.
10071 * language.c (type_error, range_error): Rewrite to use verror and
10072 vwarning instead of warning_begin.
10073
10074 2002-02-01 Michael Snyder <msnyder@redhat.com>
10075
10076 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10077 (set_ignore_count): Move misplaced comment back where it belongs.
10078
10079 2002-02-01 Andrew Cagney <ac131313@redhat.com>
10080
10081 * command.h (NO_FUNCTION): Delete macro.
10082 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10083 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10084 * tracepoint.c (_initialize_tracepoint): Ditto.
10085 * cli/cli-decode.c (add_set_cmd): Ditto.
10086 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10087
10088 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10089
10090 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10091 Update ``this'' pointer when calling virtual functions.
10092
10093 2002-02-01 Michael Snyder <msnyder@redhat.com>
10094
10095 * breakpoint.c (create_temp_exception_breakpoint): Delete.
10096 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10097
10098 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
10099
10100 * regformats/reg-arm.dat: New file.
10101 * regformats/reg-i386.dat: New file.
10102 * regformats/reg-ia64.dat: New file.
10103 * regformats/reg-m68k.dat: New file.
10104 * regformats/reg-mips.dat: New file.
10105 * regformats/reg-ppc.dat: New file.
10106 * regformats/reg-sh.dat: New file.
10107 * regformats/regdef.h: New file.
10108 * regformats/regdat.sh: New file.
10109
10110 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
10111
10112 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10113 (arm_frame_args_address, arm_frame_locals_address): New functions.
10114 (arm_frame_num_args): New function.
10115 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10116 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10117 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10118
10119 2002-01-31 Michael Snyder <msnyder@redhat.com>
10120
10121 * breakpoint.c (break_at_finish_command): Export.
10122 (break_at_finish_at_depth_command): Export.
10123 (tbreak_at_finish_command): Export.
10124 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10125 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10126 "tbreak" commands, which are HPPA specific.
10127
10128 * printcmd.c (disassemble_command): Remove an ancient
10129 artifact of an old merge.
10130
10131 * symfile.h (enum overlay_debugging_state):
10132 Define enum constant values for overlay mode.
10133 * symfile.c (overlay_debugging): Use enums instead of literals.
10134 (overlay_is_mapped, overlay_auto_command,
10135 overlay_manual_command): Ditto.
10136
10137 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10138 breakpoint_here_p, breakpoint_inserted_here_p,
10139 breakpoint_thread_match, bpstat_stop_status,
10140 describe_other_breakpoints, check_duplicates, clear_command):
10141 Coding standard fixes.
10142
10143 * target.c (target_xfer_memory): Add spaces, coding standard.
10144 (do_xfer_memory): Add missing line to trust-readonly
10145 code: check bfd SEC_READONLY flag for section.
10146
10147 2002-01-31 Andrew Cagney <ac131313@redhat.com>
10148
10149 * PROBLEMS: Fix typo, 5.1->5.1.1.
10150
10151 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
10152
10153 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10154 data symbols, since we search based on textlow and texthigh.
10155 (find_pc_sect_symtab): Likewise.
10156
10157 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10158
10159 * defs.h (vwarning): Declare.
10160 * utils.c (vwarning): New function.
10161 (warning): Call vwarning.
10162 (warning_begin): Delete function.
10163
10164 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10165 the warning message.
10166 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10167 warning_begin.
10168
10169 2002-01-30 Michael Snyder <msnyder@redhat.com>
10170
10171 * NEWS: Mention "set trust-readonly-sections" command.
10172 Mention generate-core-file command.
10173
10174 2002-01-15 Michael Snyder <msnyder@redhat.com>
10175
10176 * target.c: New command, "set trust-readonly-sections on".
10177 (do_xfer_memory): Honor the suggestion to trust readonly sections
10178 by reading them from the object file instead of from the target.
10179 (initialize_targets): Register command "set trust-readonly-sections".
10180
10181 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10182
10183 * parse.c (target_map_name_to_register): Simplify, search regs and
10184 pseudo-regs using a single loop.
10185
10186 2002-01-30 Andrew Cagney <ac131313@redhat.com>
10187
10188 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10189
10190 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
10191
10192 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10193 * config/i386/i386v42mp.mh: Add i387-nat.o .
10194 * i386v4-nat.c: Include i387-nat.h.
10195 (supply_fpregset): Use i387_supply_fsave.
10196 (fill_fpregset): Use i387_fill_fsave.
10197
10198 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
10199
10200 * arm-tdep.c (arm_call_dummy_words): Define.
10201 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10202 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10203 (CALL_DUMMY_WORDS): Define.
10204 (arm_call_dummy_words): Declare.
10205 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10206 (arm_linux_call_dummy_words): Declare.
10207
10208 2002-01-30 Andreas Schwab <schwab@suse.de>
10209
10210 * m68klinux-nat.c: Fix last change to use regcache_collect
10211 instead of referencing registers[] directly.
10212
10213 2002-01-29 Andrew Cagney <ac131313@redhat.com>
10214
10215 * parse.c (target_map_name_to_register): Delete code wrapped in
10216 #ifdef REGISTER_NAME_ALIAS_HOOK.
10217
10218 2002-01-28 Michael Snyder <msnyder@redhat.com>
10219
10220 * regcache.c (legacy_read_register_gen): Need to be able to
10221 read pseudo-register as well as real register.
10222 (legacy_write_register_gen): Ditto.
10223
10224 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10225
10226 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10227 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10228 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10229 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10230 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10231 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10232 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10233 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10234 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10235 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10236 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10237 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10238 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10239 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10240 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10241 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10242 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10243 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10244 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10245 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10246
10247 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10248
10249 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10250 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10251 (initialize_current_architecture): Update target_byte_order using
10252 information from BFD.
10253 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
10254 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10255
10256 2002-01-28 Andrew Cagney <ac131313@redhat.com>
10257
10258 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10259 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10260
10261 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10262 #ifdef INVALID_FLOAT.
10263 * infcmd.c (do_registers_info): Ditto.
10264 * values.c (unpack_double): Ditto. Add comment.
10265
10266 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10267 already commented out.
10268
10269 2002-01-26 Andreas Schwab <schwab@suse.de>
10270
10271 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10272 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10273 registers and add support for PTRACE_GETREGS.
10274
10275 2002-01-24 Andrew Cagney <ac131313@redhat.com>
10276
10277 GDB 5.1.1 released from 5.1 branch.
10278 * NEWS: Add 5.1.1 news.
10279 * README: Sync with 5.1 branch.
10280
10281 2002-01-23 Fred Fish <fnf@redhat.com>
10282
10283 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10284 stabstring on initial malloc. Reallocing will copy it for us,
10285 if necessary.
10286
10287 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10288
10289 * Makefile.in (hpread_h): Delete.
10290 (HFILES_NO_SRCDIR): Remove hpread.h.
10291 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10292 (hpread.o): Update dependencies.
10293 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10294
10295 * hp-psymtab-read.c: Remove file.
10296 * hp-symtab-read.c: Remove file.
10297 * hpread.h: Remove file.
10298
10299 * hpread.c: Merge all contents of hp-psymtab-read.c,
10300 hp-symtab-read.c and hpread.h into this file, as it was prior to
10301 January 1999.
10302
10303 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
10304 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
10305 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10306 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10307
10308 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
10309
10310 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10311 fill_gregset): Call gdbarch_tdep() just once, assign result to
10312 variable and use that, instead of calling the function several
10313 times.
10314
10315 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
10316
10317 * configure.host: Accept sparcv9 as alias for sparc64.
10318 * configure.tgt: Likewise.
10319
10320 2002-01-22 Kevin Buettner <kevinb@redhat.com>
10321
10322 * solib-aix5.c (build_so_list_from_mapfile)
10323 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10324 arguments is not reversed.
10325 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10326 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10327
10328 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10329
10330 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10331 modified version of obsolete sh_fetch_pseudo_register.
10332 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10333 (sh4_register_read): New function.
10334 (sh_pseudo_register_write): New function. Renamed and modified
10335 version of obsolete sh_store_pseudo_register.
10336 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10337 (sh4_register_write): New function.
10338 (sh_gdbarch_init): Remove setting of gdbarch function
10339 fetch_pseudo_register and store_pseudo_register. Remove setting of
10340 register_convert_to_raw, register_convert_to_virtual,
10341 register_convertible.
10342 (sh_sh4_register_convertible): Delete. No longer needed. All is
10343 taken care by architecture specific functions
10344 register_read/register_write.
10345 (sh_sh4_register_convert_to_virtual): Make static.
10346 (sh_sh4_register_convert_to_raw): Ditto.
10347
10348 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10349
10350 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10351 (floatformat_is_nan, floatformat_mantissa): Ditto.
10352
10353 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10354 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10355 builtin_type_ieee_double_little,
10356 builtin_type_ieee_double_littlebyte_bigword,
10357 builtin_type_m68881_ext, builtin_type_i960_ext,
10358 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10359 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10360 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10361 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10362
10363 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10364
10365 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10366 parameter. Set frameless flag if it exists and depended of
10367 whether the scanned function is frameless or not.
10368 (xstormy16_skip_prologue): If function is frameless, return
10369 result of xstormy16_scan_prologue().
10370 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10371 call.
10372
10373 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10374
10375 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10376 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10377 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10378 sh_sh4_register_byte, sh_sh4_register_raw_size,
10379 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10380 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10381 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10382 sh_store_pseudo_register, sh_do_pseudo_register): Call
10383 gdbarch_tdep() just once, assign result to variable and use that,
10384 instead of calling the function several times.
10385
10386 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10387
10388 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10389 macros instead of LAST_FPU_CTRL_REGNUM.
10390 (store_register): Likewise.
10391
10392 2002-01-21 Jim Blandy <jimb@redhat.com>
10393
10394 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10395 is up-to-date before running the program, not just when a program
10396 exits.
10397
10398 2002-01-21 Fred Fish <fnf@redhat.com>
10399
10400 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10401 when we have found all instructions we are looking for.
10402
10403 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10404
10405 * arm-tdep.c (arm_register_name): New function.
10406 (arm_registers_names): Make static.
10407 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10408 (arm_register_name): Declare.
10409 (REGISTER_NAME): Use it.
10410
10411 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10412 Kevin Buettner <kevinb@redhat.com>
10413
10414 Convert arm targets to new FRAME interface.
10415 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10416 (arm_frame_find_save_regs): Delete.
10417 (arm_frame_init_saved_regs): New.
10418 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10419 Allocate extra_info as required. Convert all uses of fsr.regs
10420 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10421 to use extra_info.
10422 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10423 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10424 (check_prologue_cache, save_prologue_cache): Likewise.
10425 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10426 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10427 (FRAME_FIND_SAVED_REGS): Delete.
10428 (arm_frame_find_saved_regs): Delete prototype.
10429 (arm_frame_init_saved_regs): New prototype.
10430 (FRAME_INIT_SAVED_REGS): Define.
10431
10432 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10433
10434 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10435
10436 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10437
10438 From Jeff Law <law@redhat.com>:
10439 * infttrace.c: Include <sys/pstat.h>.
10440 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10441 exec file if the ttrace equivalent fails.
10442
10443 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10444
10445 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10446 (closeLogFile): Ditto.
10447
10448 2002-01-20 Michael Chastain <mec@shout.net>
10449
10450 * top.c (print_gdb_version): Bump copyright year to 2002.
10451
10452 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10453
10454 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10455 Zannoni and Eli Zaretskii.
10456
10457 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10458
10459 * buildsym.c: Update copyright years.
10460 * c-typeprint.c: Likewise.
10461 * dwarf2read.c: Likewise.
10462 * f-typeprint.c: Likewise.
10463 * gdbtypes.c: Likewise.
10464 * gdbtypes.h: Likewise.
10465 * hp-symtab-read.c: Likewise.
10466 * hpread.c: Likewise.
10467 * mdebugread.c: Likewise.
10468 * p-typeprint.c: Likewise.
10469
10470 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10471
10472 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10473 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10474 byte-order selectable.
10475 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10476 * arch-utils.c: Ditto.
10477 (set_endian): Ditto.
10478 (set_endian_from_file): Ditto.
10479 * gdbserver/low-sim.c (create_inferior): Ditto.
10480 * gdbarch.sh: Ditto.
10481 * gdbarch.h: Re-generate.
10482 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10483 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10484 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10485 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10486 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10487 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10488 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10489 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10490 macro definition.
10491 * config/mips/tm-wince.h: Remove #undef of macro
10492 TARGET_BYTE_ORDER_SELECTABLE.
10493 * config/sh/tm-wince.h: Ditto.
10494
10495 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10496
10497 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10498 member function fields. Add accessor macro
10499 TYPE_FN_FIELD_ARTIFICIAL.
10500 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10501 * c-typeprint.c (c_type_print_base): Skip artificial member
10502 functions.
10503
10504 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10505
10506 * f-typeprint.c: Delete unused function f_type_print_args.
10507 * p-typeprint.c: Delete unused function pascal_type_print_args.
10508
10509 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10510
10511 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10512 comment. Add ``artificial'' to ``union field_location''.
10513
10514 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10515
10516 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10517 * mdebugread.c (parse_symbol): Likewise.
10518 * stabsread.c (define_symbol): Likewise.
10519 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10520 initializing TYPE_FIELD_BITPOS to n (obsolete).
10521 (hpread_doc_function_type): Likewise.
10522 * hpread.c (hpread_function_type): Likewise.
10523
10524 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10525
10526 * configure.in (host_makefile_frag): Only require a host makefile
10527 fragment when a native build.
10528 * configure: Re-generate.
10529
10530 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10531
10532 * doublest.h (floatformat_from_type): Declare.
10533 * doublest.c (floatformat_from_type): New function.
10534 (convert_typed_floating): Use.
10535
10536 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10537 call to function floatformat_from_type.
10538
10539 * gdbarch.sh (IEEE_FLOAT): Delete.
10540 * gdbarch.h, gdbarch.c: Re-generate.
10541 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10542 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10543 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10544 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10545 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10546 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10547 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10548 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10549 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10550 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10551 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10552 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10553
10554 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10555 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10556 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10557 * sh-tdep.c (sh_gdbarch_init): Ditto.
10558 * mips-tdep.c (mips_gdbarch_init): Ditto.
10559 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10560 * cris-tdep.c (cris_gdbarch_init): Ditto.
10561
10562 2002-01-20 Jiri Smid <smid@suse.cz>
10563
10564 * configure.host, configure.tgt: Support x86-64.
10565 * NEWS: Note new target x86-64.
10566
10567 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10568 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10569 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10570 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10571 x86-64-linux-nat.o): Fix dependencies.
10572
10573 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10574
10575 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10576 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10577 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10578 * config/sparc/xm-sun4os4.h: Delete file.
10579 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10580
10581 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10582
10583 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10584 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10585 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10586 * config/i386/i386lynx.mh (XM_FILE): Delete.
10587 * config/rs6000/xm-rs6000ly.h: Delete file.
10588 * config/sparc/xm-sparclynx.h: Delete file.
10589 * config/m68k/xm-m68klynx.h: Delete file.
10590 * config/i386/xm-i386lynx.h: Delete file.
10591 * config/xm-lynx.h: Delete file.
10592 * config/djgpp/fnchange.lst: Update.
10593
10594 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10595
10596 * alpha-tdep.c (alpha_register_byte): New function.
10597 (alpha_register_raw_size): Ditto.
10598 (alpha_register_virtual_size): Ditto.
10599 (alpha_skip_prologue_internal): Renamed from
10600 alpha_skip_prologue.
10601 (alpha_skip_prologue): New version that calls
10602 alpha_skip_prologue_internal.
10603 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10604 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10605 second argument from alpha_skip_prologue.
10606 (REGISTER_BYTE): Use alpha_register_byte.
10607 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10608 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10609 (FRAMELESS_FUNCTION_INVOCATION): Use
10610 generic_frameless_function_invocation_not.
10611 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10612 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10613
10614 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10615
10616 * config/mips/xm-news-mips.h: Delete file.
10617 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10618
10619 * config/m88k/xm-m88k.h: Delete file.
10620 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10621 * config/m88k/xm-delta88v4.h: Ditto.
10622 * config/m88k/xm-delta88.h: Ditto.
10623
10624 * config/alpha/xm-fbsd.h: Delete file.
10625 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10626
10627 * config/sparc/xm-sparc.h: Delete file.
10628 * Makefile.in (xm-sun4os4.h): Delete dependency.
10629 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10630 * config/sparc/xm-sun4os4.h: Ditto.
10631 * config/sparc/xm-linux.h: Ditto.
10632
10633 * config/i386/xm-windows.h: Delete file.
10634
10635 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10636
10637 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10638 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10639
10640 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10641
10642 * alpha-tdep.c (alpha_call_dummy_words): New.
10643 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10644 (CALL_DUMMY_P): Define.
10645 (CALL_DUMMY_WORDS): Define.
10646 (SIZEOF_CALL_DUMMY_WORDS): Define.
10647
10648 2002-01-19 Per Bothner <per@bothner.com>
10649
10650 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10651 isn't NULL, which can happen with some gcj-3.x-produced code.
10652
10653 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10654
10655 * alpha-tdep.c (alpha_register_virtual_type): New function.
10656 (alpha_init_frame_pc_first): Ditto.
10657 (alpha_fix_call_dummy): Ditto.
10658 (alpha_store_struct_return): Ditto.
10659 (alpha_extract_struct_value_address): Ditto.
10660 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10661 alpha_register_virtual_type.
10662 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10663 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10664 alpha_extract_struct_value_address.
10665 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10666 (INIT_FRAME_PC): Use init_frame_pc_noop.
10667 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10668
10669 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10670
10671 * i386gnu-nat.c: Include "i386-tdep.h".
10672 (fetch_fpregs): Simplify code dealing with uninitialized floating
10673 point states such that it doesn't require FP7_REGNUM.
10674
10675 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10676
10677 * alpha-tdep.c (frame_extra_info): New.
10678 (alpha_find_saved_regs): Make static. Use
10679 frame->extra_info.
10680 (alpha_frame_init_saved_regs): New function.
10681 (alpha_frame_saved_pc): Use frame->extra_info.
10682 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10683 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10684 (init_extra_frame_info): Rename to...
10685 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10686 (alpha_print_extra_frame_info): New function.
10687 (alpha_frame_locals_address): Ditto.
10688 (alpha_frame_args_address): Ditto.
10689 (alpha_pop_frame): Use frame->extra_info.
10690 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10691 alpha_frame_args_address.
10692 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10693 (alpha_find_saved_regs): Remove prototype.
10694 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10695 (EXTRA_FRAME_INFO): Remove.
10696 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10697 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10698
10699 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10700
10701 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10702 (alpha_cannot_fetch_register): Ditto.
10703 (alpha_cannot_store_register): Ditto.
10704 (alpha_register_convertible): Ditto.
10705 (alpha_use_struct_convention): Ditto.
10706 * config/alpha/tm-alpha.h: Update copyright years.
10707 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10708 (INNER_THAN): Use core_addr_lessthan.
10709 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10710 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10711 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10712 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10713 (FRAME_CHAIN): Remove unnecessary cast.
10714
10715 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10716
10717 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10718 obsolete.
10719
10720 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10721
10722 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10723 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10724 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10725 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10726 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10727 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10728 * x86-64-linux-nat.c: Ditto.
10729
10730 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10731
10732 * alpha-tdep.c (alpha_register_name): New function.
10733 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10734 (REGISTER_NAME): Define.
10735
10736 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10737
10738 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10739
10740 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10741
10742 * alpha-tdep.c: Update copyright years.
10743 (alpha_next_pc): New function.
10744 (alpha_software_single_step): Ditto.
10745 * config/alpha/tm-alpha.h: Add prototype for
10746 alpha_software_single_step.
10747
10748 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10749
10750 * alphabsd-nat.c: Update copyright years.
10751 (fill_gregset): Use regcache_collect.
10752 (fill_fpregset): Likewise.
10753 (fetch_inferior_registers): Only fetch integer registers
10754 if requested to do so.
10755 (store_inferior_registers): Only store integer registers
10756 if requested to do so.
10757
10758 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10759
10760 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10761 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10762 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10763 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10764 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10765 * config/arm/linux.mh (XDEPFILES): Delete.
10766 * config/arm/nbsd.mh (XDEPFILES): Delete.
10767 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10768 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10769 * config/i386/i386m3.mh (XDEPFILES): Delete.
10770 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10771 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10772 * config/i386/fbsd.mh (XDEPFILES): Delete.
10773 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10774 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10775 * config/i386/i386v4.mh (XDEPFILES): Delete.
10776 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10777 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10778 * config/i386/i386aix.mh (XDEPFILES): Delete.
10779 * config/i386/go32.mh (XDEPFILES): Delete.
10780 * config/i386/cygwin.mh (XDEPFILES): Delete.
10781 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10782 * config/i386/i386mach.mh (XDEPFILES): Delete.
10783 * config/i386/i386v32.mh (XDEPFILES): Delete.
10784 * config/i386/linux.mh (XDEPFILES): Delete.
10785 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10786 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10787 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10788 * config/i386/i386sco.mh (XDEPFILES): Delete.
10789 * config/i386/i386v.mh (XDEPFILES): Delete.
10790 * config/i386/nbsd.mh (XDEPFILES): Delete.
10791 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10792 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10793 * config/i386/symmetry.mh (XDEPFILES): Delete.
10794 * config/i386/obsd.mh (XDEPFILES): Delete.
10795 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10796 * config/ia64/linux.mh (XDEPFILES): Delete.
10797 * config/ia64/aix.mh (XDEPFILES): Delete.
10798 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10799 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10800 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10801 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10802 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10803 * config/m68k/linux.mh (XDEPFILES): Delete.
10804 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10805 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10806 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10807 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10808 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10809 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10810 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10811 * config/m88k/delta88.mh (XDEPFILES): Delete.
10812 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10813 * config/m88k/m88k.mh (XDEPFILES): Delete.
10814 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10815 * config/mips/linux.mh (XDEPFILES): Delete.
10816 * config/mips/irix6.mh (XDEPFILES): Delete.
10817 * config/mips/irix5.mh (XDEPFILES): Delete.
10818 * config/mips/irix4.mh (XDEPFILES): Delete.
10819 * config/mips/irix3.mh (XDEPFILES): Delete.
10820 * config/mips/decstation.mh (XDEPFILES): Delete.
10821 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10822 (NATDEPFILES): Move core-aout.o to here.
10823 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10824 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10825 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10826 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10827 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10828 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10829 * config/pa/hpux11.mh (XDEPFILES): Delete.
10830 * config/powerpc/aix.mh (XDEPFILES): Delete.
10831 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10832 * config/powerpc/linux.mh (XDEPFILES): Delete.
10833 * config/romp/rtbsd.mh: Rename XDEPFILES.
10834 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10835 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10836 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10837 * config/s390/s390.mh (XDEPFILES): Delete.
10838 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10839 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10840 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10841 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10842 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10843 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10844 * config/sparc/linux.mh (XDEPFILES): Delete.
10845 * config/vax/vaxult.mh (XDEPFILES): Delete.
10846 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10847 * Makefile.in (DEPFILES): Remove XDEPFILES.
10848
10849 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10850
10851 * utils.c (internal_verror): Fix comments, default is yes not no.
10852 Update queries to match. Default to quit and dump core.
10853
10854 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10855
10856 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10857 copyright.
10858 * defs.h, event-top.c, gdbcmd.h: Ditto.
10859 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10860 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10861 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10862 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10863 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10864 * mi/mi-main.c:Ditto.
10865
10866 * stack.c, symfile.c: Update copyright.
10867
10868 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10869
10870 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10871 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10872 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10873 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10874
10875 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10876
10877 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10878 * gdbserver/low-lynx.c (myattach): Likewise.
10879 * gdbserver/low-nbsd.c (myattach): Likewise.
10880 * gdbserver/low-sim.c (myattach): Likewise.
10881 * gdbserver/low-sparc.c (myattach): Likewise.
10882 * gdbserver/low-sun3.c (myattach): Likewise.
10883
10884 * gdbserver/low-linux.c (myattach): New function.
10885
10886 * gdbserver/server.c (attach_inferior): New function.
10887 (main): Handle "--attach".
10888
10889 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10890
10891 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10892 maintainer.
10893
10894 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10895
10896 * c-typeprint.c (is_type_conversion_operator): Add additional
10897 check for non-conversion operators.
10898
10899 2002-01-15 Michael Snyder <msnyder@redhat.com>
10900
10901 * linux-proc.c: Add "info proc" command, a la procfs.c.
10902 (read_mapping): New function, abstract and re-use code.
10903 (linux_find_memory_regions): Use new func read_mapping.
10904 (linux_info_proc_cmd): New function, implement "info proc".
10905 (_initialize_linux_proc): Add new command "info proc".
10906
10907 2002-01-15 Michael Snyder <msnyder@redhat.com>
10908
10909 * symfile.c (generic_load): Use bfd_map_over_sections method
10910 instead of manipulating bfd structure members directly.
10911 (add_section_size_callback): New function, bfd sections callback
10912 used by generic_load.
10913 (load_sections_callback): New function, bfd sections callback
10914 used by generic_load.
10915
10916 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10917
10918 [Based on work by Jim Blandy]
10919 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10920 (builtin_type_vec128): Export.
10921 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10922 types.
10923 (builtin_type_vec128): New builtin type for 128 bit vector
10924 registers.
10925 (build_gdbtypes): Initialize builtin_type_v16qi and
10926 builtin_type_v8hi. Create the vec128 register builtin type
10927 structure.
10928 (build_builtin_type_vec128): New function.
10929 (_initialize_gdbtypes): Register builtin_type_v16qi and
10930 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10931 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10932 AltiVec register to new builtin type.
10933
10934 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10935
10936 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10937 to make_cv_type.
10938
10939 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10940
10941 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10942 CLEAN_UP_REGISTER_VALUE.
10943 * regcache.c (supply_register): Update only call.
10944
10945 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10946
10947 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10948 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10949 a29k-*-vxworks* targets as obsolete.
10950
10951 2002-01-14 Michael Snyder <msnyder@redhat.com>
10952
10953 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10954 until we can resolve portability issues.
10955 * gregset.h: Remove references to fpxregs.
10956 * gcore.c (gcore_command): Initialize note_sec to NULL.
10957
10958 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10959
10960 * signals.c (target_signal_to_name): Rewrite. Only use
10961 signals[].name when in bounds and non-NULL.
10962
10963 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10964
10965 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10966 * signals.c (target_signal_to_name): Verify that SIG is within the
10967 bounds of the signals array.
10968
10969 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10970
10971 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10972
10973 2002-01-13 Keith Seitz <keiths@redhat.com>
10974
10975 * stack.c (print_frame_info_base): Print the frame's pc
10976 only if when print_frame_info_listing_hook is not defined.
10977
10978 2002-01-13 Keith Seitz <keiths@redhat.com>
10979
10980 * varobj.c (varobj_set_value): Make sure that there were no
10981 errors evaluating the object before attempting to set its
10982 value.
10983 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10984 so this offset adjustment is no longer necessary.
10985 (create_child): Don't set the error flag if the child is
10986 a CPLUS_FAKE_CHILD.
10987 (value_of_child): If value_fetch_lazy fails, return NULL
10988 so that callers will be notified that an error occurred.
10989 (c_value_of_variable): Delay check of variable's validity
10990 until later. We actually want all structs and unions to have
10991 the value "{...}".
10992 Do not return "???" for variables which could not be evaluated.
10993 This error condition must be returned to the caller so that it
10994 can get the error condition from gdb.
10995 (cplus_name_of_child): Adjust index for vptr before figuring
10996 out the name of the child.
10997 (cplus_value_of_child): If a child's (real) parent is not valid,
10998 don't even bother trying to give a value for it. Just return
10999 an error. Change all instances in this function.
11000 (cplus_type_of_child): If our parent is one of the "fake"
11001 parents, we need to get at the type of the real parent, and
11002 derive the child's true type using this information.
11003
11004 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11005
11006 From 2002-01-09 John Marshall <johnm@falch.net>:
11007 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11008 sources.redhat.com, and tweak some related URLs which had
11009 suffered from linkrot.
11010
11011 2002-01-13 Andrew Cagney <ac131313@redhat.com>
11012
11013 From Jeff law:
11014 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11015 structures passed in registers.
11016
11017 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11018
11019 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11020 white space which prevented compilation. Reported by DSK
11021 <dsk@student.unsw.edu.au>.
11022
11023 2002-01-11 Michael Snyder <msnyder@redhat.com>
11024
11025 * symfile.c (build_section_addr_info_from_section_tab):
11026 Use bfd access method instead of manipulating bfd directly.
11027 (syms_from_objfile): Ditto.
11028 (simple_overlay_update_1): Ditto.
11029 (simple_overlay_update): Ditto.
11030 (generic_load): Ditto.
11031 (overlay_unmapped_address): FIXME comment, bfd access methods.
11032 (sections_overlap): FIXME comment, bfd access methods.
11033 (pc_in_mapped_range): FIXME comment, bfd access methods.
11034 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11035 (section_is_mapped): FIXME comment, bfd access methods.
11036 (section_is_overlay): FIXME comment, bfd access methods.
11037
11038 * symfile.c (generic_load): Whitespace and long line cleanups.
11039 Remove duplicate variable, change several local variables to
11040 more appropriate data types.
11041 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11042
11043 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11044
11045 From Peter Schauer:
11046 * language.c (longest_local_hex_string_custom): Use phex_nz to
11047 convert NUM to a hex string.
11048
11049 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
11050
11051 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11052 the function.
11053 Update Copyright year.
11054
11055 2002-01-12 Andrew Cagney <ac131313@redhat.com>
11056
11057 * language.c (longest_raw_hex_string): Delete unused function.
11058
11059 2002-01-11 Petr Sorfa <petrs@caldera.com>
11060
11061 * MAINTAINERS (write-after-approval): Add myself.
11062 * dwarf2read.c (read_tag_string_type): Handling of
11063 DW_AT_byte_size.
11064 (read_tag_string_type): FORTRAN fix to prevent propagation of
11065 first string size.
11066 (set_cu_language): Handling of DW_LANG_Fortran95
11067
11068 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
11069
11070 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11071 GETPID(inferior_ptid).
11072 (store_inferior_registers): Likewise.
11073
11074 2002-01-10 Jason Merrill <jason@redhat.com>
11075
11076 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11077 Fix DW_OP_minus.
11078
11079 2002-01-10 Andrew Cagney <ac131313@redhat.com>
11080
11081 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11082 and bfd/elf32-sh-nbsd.c.
11083
11084 2002-01-10 Michael Snyder <msnyder@redhat.com>
11085
11086 * NEWS: Mention --pid and corefile/proc-id behavior change.
11087
11088 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11089 * gcore.c: Include cli/cli-decode.h instead of command.h.
11090
11091 * main.c (captured_main): Add new command line option "--pid".
11092 If the second command line argument (following the symbol-file)
11093 begins with a digit, try to attach to it before trying to open
11094 it as a corefile.
11095 (print_gdb_help): Document the "--pid" argument.
11096
11097 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11098
11099 * completer.c (command_completer): New function.
11100
11101 * completer.h <command_completer>: Add prototype.
11102
11103 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11104 completer for the "help" command.
11105
11106 2002-01-09 Jason Merrill <jason@redhat.com>
11107
11108 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11109
11110 2002-01-09 Michael Snyder <msnyder@redhat.com>
11111
11112 * i386-linux-nat.c (fill_fpxregset): Make global.
11113 (store_fpxregset): Ditto.
11114
11115 * gregset.h (gdb_fpxregset_t): Define.
11116 (supply_fpxregset): Prototype.
11117 (fill_fpxregset): Prototype.
11118
11119 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11120
11121 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11122
11123 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11124 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11125 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11126
11127 2002-01-09 Andrew Cagney <ac131313@redhat.com>
11128
11129 * MAINTAINERS: Update target maintainer rules so that any
11130 Maintainer can approve a tested patch for a maintenance-only
11131 target.
11132
11133 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
11134
11135 * MAINTAINERS (write-after-approval): Add myself.
11136
11137 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
11138 IN_SIGTRAMP.
11139
11140 2002-01-08 Michael Snyder <msnyder@redhat.com>
11141
11142 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11143 real name of the executable, rather than the /proc name.
11144
11145 2002-01-03 Michael Snyder <msnyder@redhat.com>
11146
11147 Implement a "generate-core-file" command in gdb, save target state.
11148 * gcore.c: New file. Implement new command 'generate-core-file'.
11149 Save a corefile image of the current state of the inferior.
11150 * linux-proc.c: Add linux-specific code for saving corefiles.
11151 * target.h (struct target_ops): Add new target vectors for saving
11152 corefiles; to_find_memory_regions and to_make_corefile_notes.
11153 (target_find_memory_regions): New macro.
11154 (target_make_corefile_notes): New macro.
11155 * target.c (update_current_target): Inherit new target methods.
11156 (dummy_find_memory_regions): New place-holder method.
11157 (dummy_make_corefile_notes): New place-holder method.
11158 (init_dummy_target): Initialize new dummy target vectors.
11159 * exec.c (exec_set_find_memory_regions): New function.
11160 Allow the exec_ops vector for memory regions to be taken over.
11161 (exec_make_note_section): New function, target vector method.
11162 * defs.h (exec_set_find_memory_regions): Export prototype.
11163 * procfs.c (proc_find_memory_regions): New function, corefile method.
11164 (procfs_make_note_section): New function, corefile method.
11165 (init_procfs_ops): Set new target vector pointers.
11166 (find_memory_regions_callback): New function.
11167 (procfs_do_thread_registers): New function.
11168 (procfs_corefile_thread_callback): New function.
11169 * sol-thread.c (sol_find_memory_regions): New function.
11170 (sol_make_note_section): New function.
11171 (init_sol_thread_ops): Initialize new target vectors.
11172 * inftarg.c (inftarg_set_find_memory_regions): New function.
11173 Allow to_find_memory_regions vector to be taken over.
11174 (inftarg_set_make_corefile_notes): New function.
11175 Allow to_make_corefile_notes vector to be taken over.
11176 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11177 interface layer if not target_has_execution (may be a corefile).
11178 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11179 * config/sparc/sun4sol2.mh: Ditto.
11180 * config/alpha/alpha-linux.mh: Ditto.
11181 * config/arm/linux.mh: Ditto.
11182 * config/i386/x86-64linux.mh: Ditto.
11183 * config/ia64/linux.mh: Ditto.
11184 * config/m68k/linux.mh: Ditto.
11185 * config/mips/linux.mh: Ditto.
11186 * config/powerpc/linux.mh: Ditto.
11187 * config/sparc/linux.mh: Ditto.
11188
11189 2002-01-07 Michael Snyder <msnyder@redhat.com>
11190
11191 * arm-linux-nat.c: Remove references to regcache.c internal data
11192 (registers[] and register_valid[]).
11193
11194 2002-01-07 Michael Snyder <msnyder@redhat.com>
11195
11196 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11197 so that attaching to a pid will automatically read the process's
11198 symbol file and shlibs.
11199 * Makefile.in: Add rule for linux-proc.o.
11200 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11201 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11202 * config/arm/linux.mh: Ditto.
11203 * config/i386/linux.mh: Ditto.
11204 * config/i386/x86-64linux.mh: Ditto.
11205 * config/ia64/linux.mh: Ditto.
11206 * config/m68k/linux.mh: Ditto.
11207 * config/mips/linux.mh: Ditto.
11208 * config/powerpc/linux.mh: Ditto.
11209 * config/sparc/linux.mh: Ditto.
11210
11211 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 * win32-nat.c: Add i386-tdep.h dependency.
11214
11215 2002-01-07 Michael Snyder <msnyder@redhat.com>
11216
11217 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11218 instead of bfd_get_arch_size. Don't bail out just because
11219 there's no exec_bfd.
11220
11221 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11222 * p-valprint.c (pascal_object_print_value): Ditto.
11223 * somread.c (som_symtab_read): Ditto.
11224 * symfile.c (simple_free_overlay_region_table): Ditto.
11225 * valops.c (value_assign): Ditto.
11226
11227 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11228 use tilde_expand and strerror for opening save-tracepoints file.
11229
11230 * thread-db.c (thread_db_new_objfile): Indendation fix.
11231
11232 * infptrace.c (GDB_MAX_ALLOCA): New define.
11233 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
11234 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
11235 can be overridden with whatever value is appropriate to the host).
11236 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11237 alloca to allocate potentially large buffer.
11238 * rs6000-nat.c (child_xfer_memory): Ditto.
11239 * symm-nat.c (child_xfer_memory): Ditto.
11240 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11241
11242 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11243
11244 From Nick Clifton <nickc@redhat.com>
11245 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11246
11247 2002-01-07 Michael Snyder <msnyder@redhat.com>
11248
11249 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11250 Don't use exec_bfd if it's NULL.
11251
11252 2002-01-06 Mark Kettenis <kettenis@gnu.org>
11253
11254 * valops.c (value_arg_coerce): Fix formatting.
11255
11256 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11257
11258 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11259 * gnu-nat.c: Ditto.
11260
11261 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11262
11263 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11264 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11265 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11266 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11267 z8k-coff have not been multi-arched. Update z8k-coff build
11268 status.
11269
11270 2002-01-06 Andrew Cagney <ac131313@redhat.com>
11271
11272 * MAINTAINERS: Mark a29k target as obsolete.
11273 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11274 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11275 comments.
11276 * NEWS: Note that a29k targets are obsolete.
11277 * a29k-tdep.c: Mark as obsolete.
11278 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11279 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11280 a29k-*-vxworks* targets as obsolete.
11281 * remote-adapt.c: Obsolete.
11282 * remote-eb.c: Obsolete.
11283 * remote-mm.c: Obsolete.
11284 * remote-udi.c: Obsolete.
11285 * config/a29k/a29k-udi.mt: Obsolete.
11286 * config/a29k/a29k.mt: Obsolete.
11287 * config/a29k/tm-a29k.h: Obsolete.
11288 * config/a29k/tm-vx29k.h: Obsolete.
11289 * config/a29k/vx29k.mt: Obsolete.
11290
11291 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11292
11293 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11294 with BFD_ENDIAN_BIG.
11295
11296 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11297
11298 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11299 * configure, config.in: Re-generate.
11300 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11301 * defs.h: Do not include <endian.h>.
11302
11303 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11304
11305 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11306 * config.in: Regenerate.
11307 * configure.in: Update copyright years.
11308 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11309 * configure: Regenerate.
11310 * i386bsd-nat.c: Update copyright years.
11311 (fill_gregset): Use regcache_collect.
11312 (fetch_inferior_registers): Only fetch integer registers
11313 if requested to do so. Add support for XMM registers
11314 using PT_GETXMMREGS.
11315 (store_inferior_registers): Only store integer registers
11316 if requested to do so. Add support for XMM registers
11317 using PT_SETXMMREGS.
11318 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11319 (store_inferior_registers): Remove.
11320 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11321 (fetch_elfcore_registers): New function.
11322 (i386nbsd_elfcore_fns): New.
11323 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11324 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11325 i386bsd-nat.o.
11326 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11327 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11328 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11329 * config/i386/tm-nbsd.h: Update copyright years.
11330 (HAVE_SSE_REGS): Define.
11331 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11332 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11333 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11334 (SIGCONTEXT_PC_OFFSET): Remove.
11335 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11336
11337 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11338
11339 * configure.tgt: Remove powerpc-*-macos* target.
11340 * config/m68k/xm-mpw.h: Delete file.
11341 * config/xm-mpw.h: Delete file.
11342 * ser-mac.c: Delete file.
11343 * mpw-make.sed: Delete file.
11344 * mpw-config.in: Delete file.
11345 * mac-xdep.c: Delete file.
11346 * mac-gdb.r: Delete file.
11347 * mac-defs.h: Delete file.
11348 * mac-nat.c: Delete file.
11349 * config/powerpc/macos.mh: Delete file.
11350 * config/powerpc/macos.mt: Delete file.
11351 * config/powerpc/nm-macos.h: Delete file.
11352 * config/powerpc/tm-macos.h: Delete file.
11353 * source.c (openp, open_source_file): Remove obsolete code.
11354 * top.c (gdb_readline): Ditto.
11355 * utils.c (query): Ditto.
11356 * event-top.c (display_gdb_prompt): Ditto.
11357 * Makefile.in (ser-mac.o): Delete obsolete target.
11358 * NEWS: Update.
11359
11360 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11361
11362 * defs.h (BIG_ENDIAN): Delete macro definition.
11363 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11364 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11365 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11366 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11367 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11368 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11369 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11370 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11371 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11372 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11373 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11374 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11375 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11376 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11377 * gdbarch.c: Re-generate.
11378
11379 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11380
11381 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11382 for core files.
11383
11384 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11385
11386 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11387
11388 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11389
11390 * value.h (value_ptr): Delete typedef.
11391
11392 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11393
11394 * i386nbsd-nat.c: Update copyright years.
11395 Include i386-tdep.h.
11396
11397 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11398
11399 * stabsread.c: Update copyright years.
11400
11401 From Debashis Mahata <debashis.mahata@wipro.com>:
11402 (read_struct_fields): Deal with Sun C compiler erroneous stab
11403 output for structs and unions.
11404 Fix PR gdb/269.
11405
11406 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11407
11408 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11409 prototype.
11410
11411 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11412
11413 * cp-abi.c: Fix whitespace.
11414 (baseclass_offset): New wrapper function.
11415 * cp-abi.h (baseclass_offset): Add prototype.
11416 (struct cp_abi_ops): Add baseclass_offset pointer.
11417
11418 * valops.c (vb_match): Move to...
11419 * gnu-v2-abi.c (vb_match): here.
11420 * valops.c (baseclass_offset): Move to...
11421 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11422
11423 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11424
11425 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11426 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11427 * hpacc-abi.c (init_hpacc_ops): Likewise.
11428
11429 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11430
11431 * valops.c (find_overload_match): Accept obj as a
11432 reference parameter. Update it before returning.
11433 * value.h (find_overload_match): Update prototype.
11434 * eval.c (evaluate_subexp_standard): Pass object to
11435 find_overload_match by reference.
11436
11437 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11438
11439 * valarith.c: Replace value_ptr with struct value pointer. Remove
11440 register attribute from value declarations.
11441 * valops.c: Ditto.
11442 * value.h: Ditto.
11443 * scm-lang.c (scm_lookup_name): Ditto.
11444
11445 2002-01-03 Michael Snyder <msnyder@redhat.com>
11446
11447 Abstract the functionality of iterating over mapped memory
11448 regions into a general purpose iterator function.
11449 * procfs.c (iterate_over_mappings): New function, general purpose
11450 iterator for memory sections.
11451 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11452 (solib_mappings_callback): New function, callback for above.
11453 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11454 (info_mappings_callback): New function, callback for above.
11455
11456 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11457
11458 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11459
11460 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11461 * i386-tdep.c: Include "elf-bfd.h".
11462 (process_note_abi_tag_sections): New function.
11463 (i386_gdbarch_init): Add code to recognize various OS/ABI
11464 combinations.
11465
11466 * maint.c (_initialize_maint_cmds): Add missing \ in
11467 string-literal.
11468
11469 For older changes see ChangeLog-2001
11470 \f
11471 Local Variables:
11472 mode: change-log
11473 left-margin: 8
11474 fill-column: 74
11475 version-control: never
11476 End:
This page took 0.29796 seconds and 5 git commands to generate.