* genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
046ca86a
JB
12002-09-24 Jim Blandy <jimb@redhat.com>
2
3 Fix from Paul Breed:
4 * main.c (captured_main): Add a `break' after the case for 'b'.
5
94b66fa7
KS
62002-09-24 Keith Seitz <keiths@redhat.com>
7
8 * varobj.c (c_type_of_child): Use get_target_type instead
9 of TYPE_TARGET_TYPE.
10
c214a6fd
FN
112002-09-22 Fernando Nasser <fnasser@redhat.com>
12
53cb0458
FN
13 * source.c (get_current_or_default_source_symtab_and_line): Remove
14 function.
15 (set_default_source_symtab_and_line): New function. Attempts to
16 determine a source file to list lines from if one is not currently
17 defined.
18 (get_current_source_symtab_and_line): Initialize sal.pc and
19 sal.end fields.
20 (set_current_source_symtab_and_line): Mark argument as const.
21 * source.h: Update declarations and comments.
22 * linespec.c (decode_line_1): Replace call to removed routine above.
23 * stack.c (print_frame_info_base): Ditto.
24 * cli/cli-cmds.c (edit_command): Ditto.
25 (list_command): Ditto.
26
272002-09-22 Fernando Nasser <fnasser@redhat.com>
28
29 * source.c (get_current__or_default_source_symtab_and_line): Initialize
30 sal.pc and sal.end fields.
c214a6fd
FN
31 (get_current_or_default_source_symtab_and_line): Ditto.
32 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
33 so we do not cause a new source symtab to be searched for (reverting an
34 unintentional change from the 2002-09-20 patch).
35 * scm-lang.c (scm_unpac): Ditto.
36
cc3b68a5
AC
372002-09-21 Andrew Cagney <cagney@redhat.com>
38
39 * complaints.c (symfile_explanations): Remove new-line from
40 ``isolated_message''.
41 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
42 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
43
5835abe7
NC
442002-09-20 Nick Clifton <nickc@redhat.com>
45
46 * NEWS: Announce that V850EA ISA is no longer supported.
47 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
48
a15ef5f5
DC
492002-09-20 David Carlton <carlton@math.stanford.edu>
50
06ba1b39
DC
51 * Makefile.in (c-lang.o): Correct dependencies.
52 (utils.o): Gather dependencies.
53 (charset.o): Move.
a15ef5f5
DC
54 * c-lang.c: #include "gdb_string.h"
55
87885426
FN
562002-09-20 Fernando Nasser <fnasser@redhat.com>
57
58 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
59 * cli/cli-cmds.c (list_command): New function. Implements the new
60 cli edit command.
61 (_init_cli_cmds): Add new command definition.
62 * gdb.1: Document edit command.
63 * doc/gdb.texinfo: Document edit command.
64
652002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
66
67 * source.c: Make global variables current_source_symtab and
68 current_source_line static.
69 (list_command): Moved to cli/cli-cmds.c.
70 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
71 (get_first_line_listed): New accessor function.
72 (get_lines_to_list): New accessor function.
73 (get_current_source_symtab_and_line): New function. Retrieves the
74 position in the source code that we consider current.
75 (get_current_or_default_source_symtab_and_line): New function.
76 Like the above but attempts to determine a default position if one
77 is not currently defined.
78 (set_current_source_symtab_and_line): New function. Sets the source
79 code position considered current and returns the previously set one.
80 (clear_current_source_symtab_and_line): Reset stored information about
81 a current source line.
82 (_initialize_source): Remove registration for the "list" command and
83 its alias.
84 * source.h: Add declarations for the new functions above.
85 * symtab.h: Remove declarations for the global variables mentioned
86 above.
87 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
88 obtain current source line.
89 * linespec.c (decode_line_1): Ditto.
90 * macroscope.c (default_macro_scope): Ditto.
91 * scm-lang.c (scm_unpac): Ditto.
92 * stack.c (print_frame_info_base): Ditto.
93 * symfile.c (clear_symtab_users): Ditto.
94 * symtab.c (decode_line_spec): Ditto.
95 * cli/cli-cmds.c (list_command): Moved here from source.c.
96 (ambiguous_line_spec): Moved here from source.c.
97 (_init_cli_cmds): Add definition for "list" and its alias.
98 * Makefile.in: Update dependencies.
99
ddd216ea
CV
1002002-09-20 Corinna Vinschen <vinschen@redhat.com>
101
102 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
103 with what gcc thinks is correct.
104
6d305052
CV
1052002-09-20 Corinna Vinschen <vinschen@redhat.com>
106
107 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
108 multiple register push instruction.
109
234b45d4
KB
1102002-09-19 Jim Blandy <jimb@redhat.com>
111
112 Add support for distinct host and target character sets.
113 * charset.c, charset.h: New files.
114 * c-exp.y: #include "charset.h".
115 (yylex): Convert character and string literals to the target
116 character set, before returning them as the semantic value of the
117 token.
118 * c-lang.c: #include "charset.h".
119 (c_emit_char): Use charset-specific methods to recognize
120 characters with backslash escape forms, to decide which characters
121 to print literally and which to print using numeric escape
122 sequences, and to convert target characters to host characters
123 before printing.
124 * utils.c: #include "charset.h".
125 (no_control_char_error): New function.
126 (parse_escape): Use charset-specific methods to recognize
127 backslash escapes, parse `control character' notation, and convert
128 characters from the host character set to the target character set.
129 * configure.in: Set the default host character set.
130 Check where to find iconv, and what its argument types might be.
131 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
132 * Makefile.in (SFILES): List charset.c.
133 (COMMON_OBS): List charset.o.
134 (charset.o): New rule.
135 (charset_h): New header dependency variable.
136 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
137 (LIBICONV): New variable, set by configure.
138 (CLIBS): Include $(LIBICONV) here.
139 * aclocal.m4, config.in, configure: Regenerated.
140
525d6a61
JB
1412002-09-19 Joel Brobecker <brobecker@gnat.com>
142
143 * ada-exp.y: Add missing semicolons to end rules. Fixes a
144 bison 1.35 warning.
145
3ed93867
RE
1462002-09-19 Richard Earnshaw <rearnsha@arm.com>
147
148 * gdb_mbuild.sh: New file.
149
437666f8
AC
1502002-09-19 Andrew Cagney <ac131313@redhat.com>
151
152 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
153
389e51db
AC
1542002-09-18 Andrew Cagney <ac131313@redhat.com>
155
156 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
157 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
158 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
159 valops.c, value.h: Revert previous change.
160
3b4efeaa
MS
1612002-09-18 Michael Snyder <msnyder@redhat.com>
162
163 Preliminary support for Objective-C:
164 * defs.h (language_objc): New enum value.
165 (puts_filtered_tabular): Declaration only, exported from utils.c.
166 (skip_quoted): Delete, declared in completer.h.
167 * c-exp.y: Include completer.h.
168 * p-exp.y: Ditto.
169 * jv-exp.y: Ditto.
170 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
171 New operator enum values.
172 * language.h (CAST_IS_CONVERSION): Test for language_objc.
173 * language.c (binop_result_type): Handle language_objc case.
174 (integral_type, character_type, string_type, boolean_type,
175 structured_type, binop_type_check): Ditto.
176 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
177 (struct objc_specific): Add to general_symbol_info.
178 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
179 (SYMBOL_DEMANGLED_NAME): Handle objc case.
180 * parser-defs.h (struct objc_class_str): New struct type.
181 (start_msglist, end_msglist, add_msglist): Declaration only,
182 exported from objc-lang.c.
183 * value.h (value_of_local, value_nsstring,
184 call_function_by_hand_expecting_type): Exported from valops.c.
185 * valops.c (find_function_addr): Export.
186 (call_function_by_hand_expecting_type): New function.
187 (value_of_local): New function.
188 * symfile.c (init_filename_language_table): Add ".m" extension
189 for Objective-C.
190 * utils.c (puts_filtered_tabular): New function.
191 (fprintf_symbol_filtered): Add objc demangling support (disabled).
192 (set/show demangle): Extend help-string to refer to ObjC.
193 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
194 * stabsread.c (symbol_reference_defined): Objective-C symbols
195 may contain colons: make allowances when scanning stabs strings
196 for colons.
197 (objc_find_colon): New function.
198 * printcmd.c (address_info): If language == objc then print
199 "self" instead of "this".
200 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
201 OP_NSSTRING, and OP_SELF.
202 (prefixify_subexp): Ditto.
203 * source.c (print_source_lines): Mention objc in comment.
204 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
205 method names.
206
b9caf505
AC
2072002-09-18 Andrew Cagney <ac131313@redhat.com>
208
209 * complaints.h: Update copyright.
210 (struct complaints): Declare.
211 (struct complaint): Make `message' constant.
212 (internal_complaint): Declare.
213 (complaint): Declare.
214 (complaint_root): Delete declaration.
215 (symfile_complaints): Delete declaration.
216 (struct complaints): Add opaque declaration.
217 (clear_complaints): Add a complaints parameter.
218 * complaints.c: Update copyright.
219 (enum complaint_series): Define.
220 (complaint_root): Delete.
221 (struct complaints): Define.
222 (complaint_sentinel, symfile_complaint_book): New variables.
223 (symfile_explanations, symfile_complaints): New variables.
224 New variables.
225 (get_complaints): New function.
226 (vcomplaint): New function.
227 (complaint): New function.
228 (internal_complaint): New function.
229 (complain): Call vcomplain with symfile_complaint.
230 (clear_complaints): Rewrite.
231 (_initialize_complaints): Use add_setshow_command.
232 * Makefile.in (complaints.o): Update dependencies.
233 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
234 to call to clear_complaints.
235 (new_symfile_objfile, reread_symbols): Ditto.
236 (oldsyms_complaint): Delete.
237 (empty_symtab_complaint, unknown_option_complaint): Delete.
238 (free_named_symtabs): Use complaint instead of complain.
239
d2e6263c
MS
2402002-09-18 Michael Snyder <msnyder@redhat.com>
241
5fb2031a
AC
242 Contributed by Apple Computer, Inc. Merged with current sources
243 by Adam Fedor <fedor@doc.com> [cagney].
244
d2e6263c
MS
245 * objc-lang.c: First clean-up round: comments, indentation.
246 * objc-lang.h: Ditto.
247 * objc-lang.y: Ditto.
248
dec43320
AC
2492002-09-18 Andrew Cagney <ac131313@redhat.com>
250
251 * maint.c (maintenance_internal_error): Print the parameter as the
252 error message.
253 (maintenance_internal_warning): New function.
254 (_initialize_maint_cmds): Add command `maint internal-warning'.
255
256 * defs.h (internal_warning, internal_vwarning): Declare.
257 * utils.c (struct internal_problem): Define.
258 (internal_vproblem): New function.
259 (internal_warning): New function.
260 (internal_vwarning): New function.
261 (internal_warning_problem, internal_error_problem): New variables.
262 (internal_verror): Just call internal_vproblem.
263
b81654f1
MS
2642002-09-18 Michael Snyder <msnyder@redhat.com>
265
266 * objc-lang.c: New file, support for Objective-C.
267 Preliminary check-in, not yet integrated into gdb.
268 * objc-lang.h: New file.
269 * objc-exp.y: New file.
270
0542c381
AC
2712002-09-18 Andrew Cagney <ac131313@redhat.com>
272
7bda5e4a
AC
273 * infrun.c (signal_stop_update): Convert definition to ISO C.
274 (signal_print_update): Ditto.
275 (signal_pass_update): Ditto.
276 * inflow.c (terminal_save_ours): Ditto.
277
5247b418
AC
278 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
279 comments.
280
fc60962c
AC
281 * config/djgpp/fnchange.lst: Handle name clashes between
282 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
283 bfd/coff-tic80.c.
284
0542c381
AC
285 * i386-linux-tdep.h: Fix tipo.
286
5b924b9b
AF
2872002-09-18 Adam Fedor <fedor@gnu.org>
288
289 * MAINTAINERS: Add myself to the Write After Approval list.
290
5afc051b
JB
2912002-09-18 Jim Blandy <jimb@redhat.com>
292
293 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
294 texthigh and textlow to reader-specific structs caused
295 objfile_relocate to miss them. This is fixable, but the work that
296 the change was supposed to prepare GDB for never got done anyway.
297
eb944380
DC
2982002-09-18 David Carlton <carlton@math.stanford.edu>
299
300 * MAINTAINERS: Alphabetize Write After Approval list.
301
948e66d9
DJ
3022002-09-18 Daniel Jacobowitz <drow@mvista.com>
303
304 Fix PR gdb/709
305 * values.c (value_static_field): Call read_var_value.
306
dc604539
AC
3072002-09-18 Andrew Cagney <ac131313@redhat.com>
308
309 * valops.c (hand_function_call): Align the initial stack pointer
310 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
311 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
312 return value.
313 * mips-tdep.c (mips_frame_align): New function.
314 (mips_gdbarch_init): Set frame_align.
315 * gdbarch.sh (FRAME_ALIGN): New method.
316 * gdbarch.h, gdbarch.c: Re-generate.
317
cb7e422f
ML
3182002-09-18 Michal Ludvig <mludvig@suse.cz>
319
320 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
321 registers.
322
a094c6fb
AC
3232002-09-17 Andrew Cagney <ac131313@redhat.com>
324
325 * NEWS: Mention that MIPS $fp behavior changed.
326 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
327 reference to FP_REGNUM.
328 (mipsnbsd_cannot_store_register): Ditto.
329 * mips-linux-nat.c: Update copyright.
330 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
331 (mips_linux_cannot_store_register): Ditto.
332 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
333 * config/mips/tm-mips.h: Update copyright.
334 (FP_REGNUM): Delete macro.
335 (MIPS_REGISTER_NAMES): Replace "fp" with "".
336 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
337 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
338 (mips_r3041_reg_names, mips_r3051_reg_names)
339 (mips_r3081_reg_names): Replace "fp" with "".
340 Fix PR gdb/480.
341
45cf40d1
TR
3422002-09-17 Theodore A. Roth <troth@verinet.com>
343
344 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
345 generic_read_register_dummy() (PR gdb/703).
346 (avr_push_return_address): #if 0 out unused vars.
347 (avr_gdbarch_init): Enable use of avr_push_return_address().
348
c7e701b5
MS
3492002-09-17 Michael Snyder <msnyder@redhat.com>
350
d76ba2a5 351 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
352 RTE will take care of it.
353
20bcf01c
AC
3542002-09-17 Andrew Cagney <ac131313@redhat.com>
355
356 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
357 invalid, return SP_REGNUM.
358
009a9971 3592002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
360
361 * mips-tdep.c (mips_pop_frame): Read saved values of floating
362 point registers without sign extension.
363
135c175f
AC
3642002-09-17 Andrew Cagney <cagney@redhat.com>
365
366 * blockframe.c (deprecated_read_register_dummy): Rename
367 generic_read_register_dummy.
368 * frame.c (frame_unwind_signed_register): New function.
369 (frame_unwind_unsigned_register): New function.
370 * frame.h (frame_unwind_signed_register): Declare.
371 (frame_unwind_unsigned_register): Declare.
372 (deprecated_read_register_dummy): Rename
373 generic_read_register_dummy.
374
375 * h8300-tdep.c (h8300_frame_chain): Update.
376 (h8300_frame_saved_pc): Update.
377 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
378 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
379 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
380 (s390_frame_chain): Update.
381 * v850-tdep.c (v850_find_callers_reg): Update.
382 (v850_frame_saved_pc): Update.
383 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
384 (m32r_find_callers_reg): Update.
385 (m32r_frame_saved_pc): Update.
386 * sh-tdep.c (sh_find_callers_reg): Update.
387 (sh64_get_saved_pr): Update.
388 (sh_init_extra_frame_info): Update.
389 (sh_init_extra_frame_info): Update.
390 (sh64_init_extra_frame_info): Update.
391 (sh64_init_extra_frame_info): Update.
392 * mcore-tdep.c (mcore_find_callers_reg): Update.
393 (mcore_frame_saved_pc): Update.
394 (mcore_init_extra_frame_info): Update.
395 * i386-tdep.c (i386_frame_saved_pc): Update.
396 * ia64-tdep.c (ia64_frame_saved_pc): Update.
397 (ia64_init_extra_frame_info): Update.
398 (ia64_init_extra_frame_info): Update.
399 * d10v-tdep.c (d10v_frame_saved_pc): Update.
400 * cris-tdep.c (cris_init_extra_frame_info): Update.
401 * avr-tdep.c (avr_frame_chain): Update.
402 (avr_init_extra_frame_info): Update.
403 (avr_frame_saved_pc): Update.
404 * arm-tdep.c (arm_find_callers_reg): Update.
405 (arm_init_extra_frame_info): Update.
406 (arm_frame_saved_pc): Update.
407
a741e514
TT
4082002-09-17 Tom Tromey <tromey@redhat.com>
409
410 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
411 is "'".
412
d1a8e808
CV
4132002-09-17 Corinna Vinschen <vinschen@redhat.com>
414
415 * MAINTAINERS: Remove "non multi-arched" text from h8300.
416 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
417 NEXT_PROLOGUE_INSN.
418 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
419 NEXT_PROLOGUE_INSN.
420
d9025a18
JB
4212002-09-16 Joel Brobecker <brobecker@gnat.com>
422
423 * osfsolib.c: Remove file, replaced by solib-osf.c.
424 * Makefile.in: Remove compilation rules for osfsolib.c.
425
1b2ef1b6
DC
4262002-09-16 David Carlton <carlton@math.stanford.edu>
427
428 * cp-valprint.c (cp_print_class_method): Correct args to
429 check_stub_method_group.
430
928e48af
CV
4312002-09-16 Corinna Vinschen <vinschen@redhat.com>
432
433 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
434 `set architecture'. Unify naming convention of functions.
435 (h8300_skip_prologue): Improve prologue analysis.
436 (h8300_push_arguments): Rewritten to more closely match GCC's
437 bizarre argument-passing behavior, along with the comment describing
438 said behavior.
439 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
440 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
441 sim, remote-e7000.c, remote-hms.c and remote.c
442
5e3397bb
MK
4432002-09-15 Mark Kettenis <kettenis@gnu.org>
444
445 * i386-tdep.c (gdb_print_insn_i386): Removed.
446 (i386_print_insn): New function.
447 (i386_gdbarch_init): Set print_insn to i386_print_insns.
448 (_initialize_i386_tdep): Don't initialize tm_print_insn and
449 tm_print_insn_info.
450
f710f4fc
MK
4512002-09-14 Mark Kettenis <kettenis@gnu.org>
452
453 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
454 zero.
455
db54fef4
CV
4562002-09-14 Corinna Vinschen <vinschen@redhat.com>
457
458 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
459 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
460 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
461
2becadee
CF
4622002-09-13 Christopher Faylor <cgf@redhat.com>
463
464 * win32-nat.c (child_create_inferior): Honor 'tty' command.
465
de17c821
DJ
4662002-09-13 Daniel Jacobowitz <drow@mvista.com>
467
468 * gdbtypes.c (check_stub_method): Make static.
469 (check_stub_method_group): New function.
470 * gdbtypes.h: Update prototypes.
471 * cp-support.c: New file.
472 * cp-support.h: New file.
473
474 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
475 (update_method_name_from_physname): New function.
476 (read_member_functions): Correct method names for operators
477 and v3 constructors/destructors. Separate v2 constructors and
478 destructors.
479 * Makefile.in (stabsread.o): Update dependencies.
480 (SFILES): Add cp-support.c.
481 (COMMON_OBS): Add cp-support.o.
482 (cp_support_h, cp-support.o): Add.
483
484 * cp-valprint.c (cp_print_class_method): Call
485 check_stub_method_group instead of check_stub_method. Remove
486 extraneous QUITs.
487 * p-valprint.c (pascal_object_print_class_method): Likewise.
488 * valops.c (search_struct_method): Likewise.
489 (find_method_list, value_struct_elt_for_reference): Likewise.
490
e76cff22
AC
4912002-09-13 Andrew Cagney <cagney@redhat.com>
492
493 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
494 * gdbarch.h, gdbarch.c: Regenerate.
495
905abb3f
AC
4962002-09-13 Andrew Cagney <ac131313@redhat.com>
497
498 * frame.c (find_saved_register): Delete function.
499 * frame.h (find_saved_register): Delete declaration.
500 Fix PR gdb/631.
501
64159455
AC
502Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
503
504 * mips-tdep.c (read_next_frame_reg): Re-hack using
505 frame_register_unwind.
506
795e1e11
AC
507Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
508
509 * mips-tdep.c (mips_get_saved_register): Re-hack using
510 frame_register_unwind.
511
5720643c
JB
5122002-09-12 Joel Brobecker <brobecker@gnat.com>
513
514 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
515 vector. Will be useful for Interix.
516 * gdbarch.h, gdbarch.c: Regenerate.
517
518 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
519 name of the malloc function by NAME_OF_MALLOC.
520
3bada2a2
JB
5212002-09-12 Joel Brobecker <brobecker@gnat.com>
522
523 * value.h (find_function_in_inferior): Add const keyword to
524 one of the parameters. Allows us to invoke this function with
525 a const char *.
526 * valops.c (find_function_in_inferior): Likewise.
527
3db26b01
JB
5282002-09-12 Joel Brobecker <brobecker@gnat.com>
529
530 * exec.c (xfer_memory): Fix compilation warning with old versions
531 of GCC.
532 * tracepoint.c (trace_find_tracepoint_command): Likewise.
533
17c5ed2c
DC
5342002-09-12 David Carlton <carlton@math.stanford.edu>
535
536 * symtab.h: Run through gdb_indent.h.
537 Add 2002 to Copyright year list.
538
ecd1107e
AM
5392002-09-12 Alan Modra <amodra@bigpond.net.au>
540
541 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
542 mach constants.
543 * MAINTAINERS: Add myself to write after approval list.
544
e64f66d1
JB
5452002-09-11 J. Brobecker <brobecker@gnat.com>
546
547 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
548
f9395794
JB
5492002-09-11 J. Brobecker <brobecker@gnat.com>
550
551 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
552 Interix.
553
1a303dec
MS
5542002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
555
556 * procfs.c (do_detach): Clear current signal, not just fault.
557 Corrects problem with breakpoint trap signal leaking to detached
558 process on Tru64.
559
c0219d42
MS
5602002-09-10 Michael Snyder <msnyder@redhat.com>
561
562 * buildsym.c (finish_block): Protect against null pointer.
563
9d84ac84
AC
5642002-09-10 Andrew Cagney <cagney@redhat.com>
565
566 * infcmd.c (default_print_registers_info): Send all output to
567 ``file'' instead of ``gdb_stdout''.
568
77d8f2b4
MS
5692002-09-10 Michael Snyder <msnyder@redhat.com>
570
571 * mips-tdep.c (mips_extract_struct_value_address): Make val a
572 LONGEST, and use signed register read (addresses are sign-
573 extended for mips).
574
99656a61
SC
5752002-09-10 Stephane Carrez <stcarrez@nerim.fr>
576
577 * event-loop.c (gdb_do_one_event): Make public.
578 * event-loop.h (gdb_do_one_event): Declare.
579
da12f4d8
JL
5802002-09-10 Jeff Law <law@redhat.com>
581
582 * infttrace.c (child_resume): Simplify and rework to avoid
583 TT_PROC_CONTINUE.
584
d0aee0c4
FF
5852002-09-09 Fred Fish <fnf@intrinsity.com>
586
587 * printcmd.c (print_scalar_formatted): "len" is the number of
588 target bytes, NOT the number of target bits.
589
7cb3ec5e
EZ
5902002-09-09 Elena Zannoni <ezannoni@redhat.com>
591
592 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
593 * top.c (init_main): Set rl_terminal_name.
594
4dc81987
AS
5952002-09-08 Aidan Skinner <aidan@velvet.net>
596
597 * ada-lang.c (ada_array_bound, ada_type_match,
598 _initialize_ada_language): Fix K&R definitions.
599 * ada-tasks.c (get_current_task): Fix K&R definitions.
600 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
601
842330b4
CF
6022002-09-07 Christopher Faylor <cgf@redhat.com>
603
604 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
605 Add XP.
606
43156d82
MK
6072002-09-06 Mark Kettenis <kettenis@gnu.org>
608
66da5fd8
MK
609 * i386-tdep.c (i386_register_virtual_type,
610 i386_register_convertible, i386_register_convert_to_virtual,
611 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
612 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
613 (i386_gdbarch_init): Fix comment. Add comments on calls that set
614 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
615 Don't set push_arguments twice.
616
4b218c18
MK
617 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
618 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
619 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
620 sigtramp_end to NULL.
621 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
622 defines.
623 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
624
4cc314d5
MK
625 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
626 whitespace.
627
43156d82
MK
628 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
629 * gdbarch.h, gdbarch.c: Re-generate.
630 * blockframe.c (find_pc_sect_partial_function): Convert to use
631 SIGTRAMP_START_P predicate.
632
6672060b
MS
6332002-09-05 Michael Snyder <msnyder@redhat.com>
634
a90c3637
MS
635 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
636 generic_dummy_frame method and old method. Also distinguish
637 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 638 (arm_extract_return_value): Use new regcache method.
a90c3637 639
6672060b
MS
640 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
641 adjustment that doesn't conform to the ABI.
642 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
643 saved regcache, not from current regcache.
644
299ffc64
AC
6452002-09-05 Andrew Cagney <ac131313@redhat.com>
646
647 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
648 * README: Update.
649
a3a2ee65
JT
6502002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
651
652 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
653 if arm_apcs_32 is false.
654
2bc7eea9
AC
6552002-09-04 Andrew Cagney <ac131313@redhat.com>
656
657 GDB 5.3 branch created.
658
8a55a7c5
TR
6592002-09-03 Theodore A. Roth <troth@verinet.com>
660
661 * gdb/avr-tdep.c (avr_gdbarch_init): Use
662 generic_unwind_get_saved_register.
663
e26fb1d7
DC
6642002-09-03 David Carlton <carlton@math.stanford.edu>
665
666 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
667 argument (PR gdb/653). Update call to smash_to_method_type.
668 (read_structure_scope): Update call to dwarf2_add_member_fn.
669
30d52491
ML
6702002-09-03 Michal Ludvig <mludvig@suse.cz>
671
672 * x86-64-linux-tdep.c: Include gdb_string.h
673 * x86-64-linux-nat.c: Ditto.
674
06891d83
JT
6752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
676
677 * ada-exp.y (yyname, yyrule): Remap global variables that appear
678 when YYDEBUG is set to 1.
679 * c-exp.y: Likewise.
680 * f-exp.y: Likewise.
681 * jv-exp.y: Likewise.
682 * m2-exp.y: Likewise.
683 * p-exp.y: Likewise.
684
7d400e77
JT
6852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
686
687 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
688 dependency list.
689 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
690 solib_svr4_fetch_link_map_offsets to
691 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
692 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
693 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
694 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
695 solib-svr4.o, and solib-legacy.o.
696 * config/i386/tm-nbsd.h: Include solib.h.
697
704a27c4
JT
6982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
699
700 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
701 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
702 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
703 comment noting that this needs its own target configuration.
704 * config/i386/nbsd.mt: New file.
705 * config/i386/nbsdaout.mt: Remove.
706 * config/i386/nbsdelf.mt: Ditto.
707 * config/i386/tm-nbsdaout.h: Ditto.
708
d66198e1
JT
7092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
710
711 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
712 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
713 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
714 tdep->sigtramp_end.
715 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
716 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
717 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
718
3cac699e
JT
7192002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
720
721 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
722 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
723 * i386-tdep.h (i386bsd_init_abi): New prototype.
724 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
725 function declaration.
726 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
727 for NetBSD-a.out or NetBSD-ELF.
728 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
729 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
730 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
731 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
732 and nbsd-tdep.h.
733 (i386nbsd_pc_in_sigtramp): New function.
734 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
735 i386nbsd_pc_in_sigtramp.
736 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
737 and i386nbsdelf_init_abi OS ABI handlers.
738 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
739 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
740
7010ca0a
MK
7412002-09-02 Mark Kettenis <kettenis@gnu.org>
742
743 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
744 registers if the target really has them.
745
6dd93b72
JT
7462002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
747
748 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
749 than nbsd-tdep.h.
750
2ca8ae21
JT
7512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
752
753 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
754 list.
755 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
756 (alphanbsd_skip_sigtramp_frame): New functions.
757 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
758 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
759 to alphanbsd_sigcontext_addr.
760
3d9b49b0
JT
7612002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
762
763 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
764 list.
765 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
766 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
767 nbsd_pc_in_sigtramp.
768 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
769 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
770 * nbsd-tdep.c: Include gdb_string.h.
771 (nbsd_pc_in_sigtramp): New function.
772 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
773 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
774 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
775 ppcnbsd_pc_in_sigtramp.
776 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
777 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
778 shnbsd_pc_in_sigtramp.
779 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
780 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
781 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
782
c860120c
PM
7832002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
784
785 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
786 watchpoints to NULL.
787 (insert_breakpoints): set val field of watchpoints if NULL.
788
789
c7612d53
JB
7902002-08-29 Jim Blandy <jimb@redhat.com>
791
792 * symtab.c (lookup_symbol_aux): In the cases where we find a
793 minimal symbol of an appropriate name and use its address to
794 select a symtab to read and search, use `name' (as passed to us)
795 as the demangled name when searching the symtab's global and
796 static blocks, not the minsym's name.
797
66609862
KS
7982002-08-29 Keith Seitz <keiths@redhat.com>
799
800 * stack.c (print_frame_info_base): Always set current_source_symtab
801 and current_source_line.
802
151fefe2
JB
8032002-08-29 Donn Terry <donnte@microsoft.com>
804
805 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
806
bfb3754e
KS
8072002-08-28 Keith Seitz <keiths@redhat.com>
808
809 * stack.c (select_frame): Add FIXME concerning selected-frame
810 events.
811 (select_frame_command): Send selected-frame-level-changed
812 event notification, but only if the level actually changed.
813 (up_silently_base): Add selected-frame-level-changed event
814 notification.
815 (down_silently_base): Likewise.
816
e822a2a0
AC
8172002-08-28 Andrew Cagney <ac131313@redhat.com>
818
819 * Makefile.in: Update dependencies for all gdb/*.c files.
820
309367d4
TT
8212002-08-27 Tom Tromey <tromey@redhat.com>
822
823 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
824 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
825 Update dependencies.
826 * i387-tdep.c: Include gdb_string.h.
827 * osabi.c: Likewise.
828 * i386-linux-nat.c: Likewise.
829 * lin-lwp.c: Likewise.
830 * ax-gdb.c: Likewise.
831 * signals/signals.c: Likewise.
832 * jv-valprint.c: Likewise.
833 * p-lang.c: Likewise.
834 * c-valprint.c: Likewise.
835 * cp-abi.c: Likewise.
836
e1507482
EZ
8372002-08-27 Elena Zannoni <ezannoni@redhat.com>
838
839 * cli/cli-script.h (copy_command_lines): Export.
840 * breakpoint.c: Include cli/cli-script.h.
841 * Makefile.in (breakpoint.o): Update dependencies.
842
c6510018
MS
8432002-08-26 Michael Snyder <msnyder@redhat.com>
844
845 * breakpoint.c (insert_breakpoints): Protect all references
846 to 'process_warning'. Shorten long lines.
847
c2b8ed2c
MS
8482002-08-26 Joel Brobecker <brobecker@gnat.com>
849
850 * cli/cli-script.c (copy_command_lines): New function.
851 * defs.h (copy_command_lines): Export.
852 * testsuite/gdb.base/commands.exp: New tests for commands
853 attached to a temporary breakpoint, and for commands that
854 delete the breakpoint they are attached to.
855
8562002-08-26 Michael Snyder <msnyder@redhat.com>
857
858 * breakpoint.c (bpstat_stop_status): Instead of copying the
859 pointer to the breakpoint commands struct, make a new copy
860 of the struct and point to that.
861 (bpstat_clear): Free the commands struct.
862 (bpstat_clear_actions): Free the commands struct.
863 (bpstat_do_actions): Free the command actions. Also execute
864 the local cleanups, instead of deleting them.
865 (delete_breakpoint): Leave the commands field of the bpstat
866 chain alone -- it will be freed later.
867
64b84175
KB
8682002-08-26 Kevin Buettner <kevinb@redhat.com>
869
870 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
871 deleted in 2002-08-20 commit. This function is still used by
872 ppc-linux-nat.c.
873
55970da6
KS
8742002-08-26 Keith Seitz <keiths@redhat.com>
875
876 * gdb-events.sh: Add selected-frame-level-changed event.
877 * gdb-events.c: Regenerated.
878 * gdb-events.h: Regenerated.
879
a790ad35
SC
8802002-08-26 Stephane Carrez <stcarrez@nerim.fr>
881
882 Fix PR gdb/393:
883 * inflow.c (terminal_save_ours): New function to save terminal
884 settings.
885 * inferior.h (terminal_save_ours): Declare.
886 * target.c (debug_to_terminal_save_ours): New function.
887 (cleanup_target): Defaults to_terminal_save_ours.
888 (update_current_target): Inherit to_terminal_save_ours.
889 (setup_target_debug): Set to_terminal_save_ours.
890 * target.h (target_terminal_save_ours): New to save terminal settings.
891 (target_ops): New member to_terminal_save_ours.
892 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
893 * hpux-thread.c (init_hpux_thread_ops): Likewise.
894 * inftarg.c (init_child_ops): Likewise.
895 * m3-nat.c (init_m3_ops): Likewise.
896 * procfs.c (init_procfs_ops): Likewise.
897 * wince.c (init_child_ops): Likewise.
898 * win32-nat.c (init_child_ops): Likewise.
899 * sol-thread.c (init_sol_thread_ops): Likewise.
900
c00dcbe9
MK
9012002-08-26 Mark Kettenis <kettenis@gnu.org>
902
3d7f4f49
MK
903 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
904 use regcache_* functions.
905 (i386_gdbarch_init): Set store_return_value instead of
906 deprecated_store_return_value.
907
c00dcbe9
MK
908 * regcache.c (regcache_raw_write_signed,
909 regcache_raw_write_unsigned): New functions.
910 * regcache.h (regcache_raw_write_signed,
911 regcache_raw_write_unsigned): New prototypes.
912
0e0d15ca
AC
9132002-08-25 Andrew Cagney <ac131313@redhat.com>
914
915 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
916 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
917 source file dependencies. Cleanup corresponding generator rules.
918
d3b22ed5
AC
9192002-08-25 Andrew Cagney <ac131313@redhat.com>
920
921 * regcache.h (register_offset_hack): Declare.
922 (regcache_cooked_read_using_offset_hack): Declare.
923 (regcache_cooked_write_using_offset_hack): Declare.
924
925 * regcache.c (register_offset_hack): New function.
926 (regcache_cooked_read_using_offset_hack): New function.
927 (regcache_cooked_write_using_offset_hack): New function.
928 (regcache_dump): Check that the registers, according to their
929 offset, are packed hard against each other.
930 (cooked_xfer_using_offset_hack): New function.
931
bb425013
AC
9322002-08-25 Andrew Cagney <ac131313@redhat.com>
933
934 * regcache.c (struct regcache_descr): Add field register_type.
935 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
936 in as a parameter
937 (init_regcache_descr): Initialize register_type. Pass the descr
938 to init_legacy_regcache_descr. Use register_type instead of
939 REGISTER_VIRTUAL_TYPE.
940 (register_type): New function.
941 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
942 * regcache.h (register_type): Declare.
943
d0403e00
AC
9442002-08-25 Andrew Cagney <ac131313@redhat.com>
945
946 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
947 instead of deprecated_store_return_value. Fix fallout from
948 2002-08-23 Andrew Cagney <cagney@redhat.com>.
949
0ed04cce
AC
9502002-08-25 Andrew Cagney <ac131313@redhat.com>
951
952 * regcache.c (max_register_size): New function.
953 (init_legacy_regcache_descr): Ensure that max_register_size is
954 large enough for REGISTER_VIRTUAL_SIZE.
955 * regcache.h (max_register_size): Declare.
956
46d79c04
AC
9572002-08-24 Andrew Cagney <ac131313@redhat.com>
958
959 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
960 store_return_value.
961 (e500_extract_return_value): Change type of valbuf pointer to
962 void.
963
853c7bd0
MK
9642002-08-24 Mark Kettenis <kettenis@gnu.org>
965
cd87e769
MK
966 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
967 workaround.
968
853c7bd0
MK
969 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
970 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
971 long long) to prevent compiler warning on 64-bit systems.
972
ebba8386
AC
9732002-08-23 Andrew Cagney <cagney@redhat.com>
974
975 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
976 (DEPRECATED_STORE_RETURN_VALUE): New method.
977 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
978 * gdbarch.h, gdbarch.c: Re-generate.
979
980 * values.c (set_return_value): Pass current_regcache to
981 STORE_RETURN_VALUE.
982 * arch-utils.h (legacy_store_return_value): Declare.
983 * arch-utils.c (legacy_store_return_value): New function.
984 (legacy_extract_return_value): Update parameters.
985
986 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
987 STORE_RETURN_VALUE.
988 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
989 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
990 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
991 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
992 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
993 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
994 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
995 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
996 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
997 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
998
999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1000 * i386-tdep.c (i386_extract_return_value): Update.
1001 * arch-utils.c (legacy_extract_return_value): Update.
1002 * frv-tdep.c (frv_gdbarch_init): Update.
1003 * cris-tdep.c (cris_gdbarch_init): Update.
1004 * d10v-tdep.c (d10v_gdbarch_init): Update.
1005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1006 * m68k-tdep.c (m68k_gdbarch_init): Update.
1007 * mcore-tdep.c (mcore_gdbarch_init): Update.
1008 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1009 * s390-tdep.c (s390_gdbarch_init): Update.
1010 * sparc-tdep.c (sparc_gdbarch_init): Update.
1011 * sh-tdep.c (sh_gdbarch_init): Update.
1012 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1013 * v850-tdep.c (v850_gdbarch_init): Update.
1014 * avr-tdep.c (avr_gdbarch_init): Update.
1015 * ia64-tdep.c (ia64_gdbarch_init): Update.
1016 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1017 * vax-tdep.c (vax_gdbarch_init): Update.
1018 * alpha-tdep.c (alpha_gdbarch_init): Update.
1019 * arm-tdep.c (arm_gdbarch_init): Update.
1020 * mips-tdep.c (mips_gdbarch_init): Update.
1021 * i386-tdep.c (i386_gdbarch_init): Update.
1022
5bd8c6d0
AC
10232002-08-23 Andrew Cagney <ac131313@redhat.com>
1024
1025 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1026 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1027
e73e1724
MK
10282002-08-24 Mark Kettenis <kettenis@gnu.org>
1029
1030 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1031 problems.
1032
3e6564e1
JB
10332002-08-23 Joel Brobecker <brobecker@gnat.com>
1034
1035 * infrun.c (handle_inferior_event): Move a comment outside of a
1036 function call, in order to avoid indent reformatting this part
1037 of the code in an unreadable way.
1038
81d0cc19
GS
10392002-08-23 Grace Sainsbury <graces@redhat.com>
1040
1041 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1042 when breakpoints fail. Move general breakpoint error messages to
1043 insert_breakpoints.
1044 * breakpoint.c (insert_breakpoints): Change warnings when
1045 breakpoints are nto inserted to specify the type. Remove call to
1046 memory_error when hardware breakpoints can't be inserted. Remove
1047 multiple calls to warning so all messages are sent to the user at
1048 once.
1049 (delete_breakpoints): Make insert error messsages more explicit.
1050
17574093
DJ
10512002-08-23 Daniel Jacobowitz <drow@mvista.com>
1052
1053 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1054 gdbserver/ChangeLog.
1055
8acc2935
MK
10562002-08-23 Mark Kettenis <kettenis@gnu.org>
1057
dfe01d39
MK
1058 * i386-tdep.c: Include "objfiles.h".
1059 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1060 skip_trampoline_code.
1061 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1062 (CPLUS_MARKER): Define to '.'.
1063
8acc2935
MK
1064 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1065 member.
1066 (linux_corefile_thread_callback): Increase args->num_notes.
1067 (linux_make_note_section): Initialize thread_args.num_notes, and
1068 use it to determine whether notes for any threads were created.
1069
151fefe2 10702002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1071
1072 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1073 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1074 and PCUNKILL.
1075 (write_with_trace): Conditionalize out the switch branch handling
1076 PCSHOLD if the corresponding macro is not defined. Likewise for
1077 PRSABORT and PRSTOP.
1078 This change will be needed by the Interix port.
1079
e1507482
EZ
10802002-08-22 Elena Zannoni <ezannoni@redhat.com>
1081
1082 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1083 write_register wherever possible instead of manipulating the
1084 register bytes directly.
1085 Assign VALUE_CONTENTS to a variable and use that.
1086 The GPR numbers are now dependent on the architecture.
1087
96ff0de4
EZ
10882002-08-22 Elena Zannoni <ezannoni@redhat.com>
1089
1090 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1091 ev_offset fields.
1092 (skip_prologue): Add support for BookE/e500 instructions.
1093 (e500_extract_return_value): New function.
1094 (frame_get_saved_regs): Add support for saving ev registers and
1095 pseudo gpr's.
1096 (e500_store_return_value): New function.
1097 (rs6000_gdbarch_init): Move up default intializations of
1098 deprecated_extract_return_value and store_return_value. Overwrite
1099 init of store_return_value with e500 specific version.
1100 Set extract_return_value for e500.
1101
fbefca5b
EZ
11022002-08-22 Elena Zannoni <ezannoni@redhat.com>
1103
1104 * blockframe.c (generic_call_dummy_register_unwind): Use
1105 regcache_cooked_read to catch cases in which the variable is
1106 stored in a pseudo register.
1107
4d210288
AC
11082002-08-22 Andrew Cagney <cagney@redhat.com>
1109
1110 * NEWS: Mention that the i960 has been made obsolete.
1111 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1112 i960-tdep.c
1113 (remote-nrom.o): Obsolete target.
1114 (remote-nindy.o, i960-tdep.o): Ditto.
1115 * remote-nrom.c: Make file obsolete.
1116 * remote-nindy.c, remote-vx960.c: Ditto.
1117 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1118 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1119 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1120 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1121 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1122 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1123 i960-*-vxworks* obsolete.
1124 * MAINTAINERS: Note that the i960 is obsolete.
1125
6c0c456d
CV
11262002-08-21 Corinna Vinschen <vinschen@redhat.com
1127
1128 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1129 detach to allow reinitialization.
1130
9f9d12b3
AC
11312002-08-22 Andrew Cagney <ac131313@redhat.com>
1132
1133 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1134 attempt).
1135
ebeb39fe
JB
11362002-08-22 Jim Blandy <jimb@redhat.com>
1137
1138 * coffread.c (coff_symfile_read): Don't try to read the line
1139 number table from disk if the image file doesn't have a symbol
1140 table; we'll never actually look at the info anyway, and Windows
1141 ships DLL's with bogus file offsets for the line number data.
1142
5bf1c677
EZ
11432002-08-21 Elena Zannoni <ezannoni@redhat.com>
1144
1145 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1146 an e500 executable.
1147
71b8ef93
MS
11482002-08-21 Michael Snyder <msnyder@redhat.com>
1149
1150 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1151 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1152 (DEFAULT_MIPS_TYPE): Delete unused macro.
1153 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1154 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1155
d174216d
JB
11562002-08-21 Jim Blandy <jimb@redhat.com>
1157
1158 * valops.c (value_cast): Simplify and correct logic for doing a
1159 static cast from a pointer to a base class to a pointer to a
1160 derived class.
1161
0ab7a791
AC
11622002-08-21 Andrew Cagney <ac131313@redhat.com>
1163
1164 * infcmd.c (default_print_registers_info): Replace
1165 do_registers_info.
1166 (registers_info): Use gdbarch_print_registers_info instead of
1167 DO_REGISTERS_INFO.
1168 * inferior.h (default_print_registers_info): Replace
1169 do_registers_info.
1170 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1171 (DO_REGISTERS_INFO): Change to a predicate function.
1172 * gdbarch.h, gdbarch.c: Regenerate.
1173
e23792cc
KS
11742002-08-21 Keith Seitz <keiths@redhat.com>
1175
1176 * gdb-events.sh: Add target-changed event.
1177 * gdb-events.c: Regenerated.
1178 * gdb-events.c: Regenerated.
1179 * valops.c (value_assign): Add target-changed event notification
1180 to inlval_register, lval_memory, and lval_reg_frame_relative.
1181
9fb14e79
JB
11822002-08-21 Joel Brobecker <brobecker@gnat.com>
1183
1184 * NEWS: Add an entry regarding the improvement of the next/step
1185 operation on Alpha Tru64 multi-processor machines.
1186
6d39a69f
AC
11872002-08-21 Andrew Cagney <ac131313@redhat.com>
1188
72acd513
AC
1189 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1190 directores.
342af04b 1191 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1192 * Makefile.in (install-gdbtk): Move to install section.
1193 (rdi-share/libangsd.a): Move to end of file.
1194
fa5f27c7
AC
11952002-08-19 Andrew Cagney <ac131313@redhat.com>
1196
1197 * frame.c (frame_register_unwind): When a register, set addrp to
1198 the register's byte.
1199
5a89d8aa
MS
12002002-08-20 Michael Snyder <msnyder@redhat.com>
1201
1202 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1203 used locally, so move them from the target machine header to here.
1204 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1205 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1206 Make static.
1207 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1208
822e978b
AC
12092002-08-20 Andrew Cagney <cagney@redhat.com>
1210
1211 * NEWS: Mention that the Apollo line was made obsolete.
1212 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1213 m68*-hp-hpux* obsolete.
1214 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1215 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1216 * buildsym.c (make_blockvector): Make static.
1217 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1218 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1219 (ALLDEPFILES): Remove dstread.c.
1220 (dstread.o): Obsolete make rule.
1221 * dstread.c: Makefile obsolete.
1222 * dst.h: Ditto.
1223 * config/m68k/hp300hpux.mt: Ditto.
1224 * config/m68k/hp300hpux.mh: Ditto.
1225 * config/m68k/hp300bsd.mt: Ditto.
1226 * config/m68k/hp300bsd.mh: Ditto.
1227 * config/m68k/apollo68b.mt: Ditto.
1228 * config/m68k/apollo68v.mh: Ditto.
1229 * config/m68k/apollo68b.mh: Ditto.
1230
e41b17f0
MS
12312002-08-20 Michael Snyder <msnyder@redhat.com>
1232
1233 * mips-tdep.c (mips_in_return_stub): Make static.
1234 (mips_gdbarch_init): Set in_solib_return_trampoline.
1235 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1236
d50355b6
MS
12372002-08-20 Michael Snyder <msnyder@redhat.com>
1238
1239 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1240 * gdbarch.c, gdbarch.h: Regenerate.
1241 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1242 Add.
1243 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1244
757a7cc6
MS
12452002-08-20 Michael Snyder <msnyder@redhat.com>
1246
1247 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1248 (mips_gdbarch_init): Set skip_trampoline_code,
1249 in_solib_call_trampoline.
1250 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1251 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1252
c8001721
EZ
12532002-08-20 Elena Zannoni <ezannoni@redhat.com>
1254
1255 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1256
1257 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1258 vector type for ev registers.
1259 (e500_pseudo_register_read): New function.
1260 (e500_pseudo_register_write): New function.
1261 (e500_dwarf2_reg_to_regnum): New function.
1262 (PPC_UISA_NOFP_SPRS): New macro.
1263 (PPC_EV_REGS): New macro.
1264 (PPC_GPRS_PSEUDO_REGS): New macro.
1265 (registers_e500): New register set for e500.
1266 (variants): Add e500 variant.
1267 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1268 before setting architectural dependent variations. Initialize ev
1269 registers numbers. Add case for e500 architecture. Set the
1270 number of pseudo registers.
1271
64366f1c
EZ
12722002-08-20 Elena Zannoni <ezannoni@redhat.com>
1273
1274 * rs6000-tdep.c: Clean up comments.
1275
7e78f0ca
AC
12762002-08-20 Andrew Cagney <cagney@redhat.com>
1277
1278 * h8300-tdep.c: Re-indent file.
1279
697f7479
JB
12802002-08-20 Jim Blandy <jimb@redhat.com>
1281
1282 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1283 default for this.
697f7479 1284
e86ae29f
KS
12852002-08-20 Keith Seitz <keiths@redhat.com>
1286
1287 * breakpoints.c (watch_command_1): Use internal breakpoint
1288 when setting a watchpoint_scope breakpoint.
1289
216b504f
EZ
12902002-08-20 Elena Zannoni <ezannoni@redhat.com>
1291
1292 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1293 (build_builtin_type_vec64i): Ditto.
1294 (build_builtin_type_vec128): Ditto.
1295 (build_builtin_type_vec128i): Ditto.
1296
f7ab6ec6
MS
12972002-08-19 Michael Snyder <msnyder@redhat.com>
1298
1299 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1300 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1301 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1302 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1303 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1304 CALL_DUMMY_ADDRESS): Delete.
1305 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1306 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1307 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1308 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1309 push_return_address.
1310 (mips_register_raw_size, mips_eabi_use_struct_convention,
1311 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1312 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1313 mips_init_extra_frame_info, mips_eabi_push_arguments,
1314 mips_n32n64_push_arguments, mips_push_return_address,
1315 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1316 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1317
b5d1566e
MS
13182002-08-19 Michael Snyder <msnyder@redhat.com>
1319
1320 * mips-tdep.c (mips_frame_num_args): New function.
1321 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1322 frame_saved_pc, frame_args_address, frame_locals_address,
1323 frame_num_args, and frame_args_skip.
1324 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1325 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1326 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1327 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1328
2f1488ce
MS
13292002-08-20 Michael Snyder <msnyder@redhat.com>
1330
1331 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1332 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1333 * mips-tdep.c (mips_store_struct_return): New function.
1334 (mips_extract_struct_value_address): New function.
1335 (mips_gdbarch_init): Set store_struct_return and
1336 extract_struct_value_address.
1337
41ff2da1
DC
13382002-08-20 David Carlton <carlton@math.stanford.edu>
1339
1340 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1341 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1342 (read_file_scope): Check that line_header is nonzero before
1343 decoding macro information.
1344
e5451d58
MK
13452002-08-20 Mark Kettenis <kettenis@gnu.org>
1346
1347 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1348 flag the general-purpose registers as floating-point on targets
1349 that don't support the floating-point registers.
1350
4a6daafa
EZ
13512002-08-20 Elena Zannoni <ezannoni@redhat.com>
1352
1353 * rs6000-tdep.c (altivec_register_p): Delete.
1354 (rs6000_do_altivec_registers): Delete.
1355 (rs6000_altivec_registers_info): Delete.
1356 (rs6000_do_registers_info): Delete.
1357 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1358 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1359
ab4327e0
EZ
13602002-08-20 Elena Zannoni <ezannoni@redhat.com>
1361
1362 * infcmd.c (do_registers_info): Print vector registers in hex
1363 format only.
1364 (print_vector_info): Check that printing registers
1365 makes sense.
1366 (print_float_info): Ditto.
1367
cb1d2653
AC
13682002-08-20 Andrew Cagney <ac131313@redhat.com>
1369
1370 * mips-tdep.c (mips_gdbarch_init): Update.
1371 (mips_o32_extract_return_value): Rewrite.
1372 (mips_o32_store_return_value): Rewrite.
1373 (mips_o32_xfer_return_value): New function.
1374 (mips_xfer_register): Tweak debug print message. Allow for
1375 buf_offset when dumping the value transfered.
1376
dfc3d9b2
AC
13772002-08-20 Andrew Cagney <ac131313@redhat.com>
1378
1379 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1380 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1381 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1382 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1383 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1384
7807aa61
MS
13852002-08-14 Michael Snyder <msnyder@redhat.com>
1386
1387 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1388
489461e2
EZ
13892002-08-19 Elena Zannoni <ezannoni@redhat.com>
1390
1391 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1392 register.
1393 (P): New macro to define a register as a pseudo register.
1394 (R, R4, R8, R16, FR32, R64, R0): Updated.
1395 (struct variant): Add new fields for number of pseudo registers
1396 and number of total registers.
1397 (tot_num_registers): New macro replacing....
1398 (num_registers): ...deleted macro.
1399 (num_registers): New function.
1400 (num_pseudo_registers): New function.
1401 (variants): Update all variants to intialize new fields correctly.
1402 Postpone initialization of number of pseudo regs and real regs.
1403 (init_variants): New function.
1404 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1405 registers offsets.
1406
fcaffe4c
DC
14072002-08-19 David Carlton <carlton@math.stanford.edu>
1408
2c2738a0
DC
1409 * valops.c (search_struct_field): Change error message to treat
1410 return value of 0 from value_static_field as meaning that field is
1411 optimized out.
1412 (value_struct_elt_for_reference): Ditto.
1413 * values.c (value_static_field): Treat an unresolved location the
1414 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1415 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1416 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1417 * MAINTAINERS: Add self to Write After Approval list.
1418
88658117
AC
14192002-08-19 Andrew Cagney <ac131313@redhat.com>
1420
1421 * mips-tdep.c (mips_xfer_register): New function.
1422 (mips_n32n64_extract_return_value): Rewrite.
1423 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1424 instead of deprecated_extract_return_value.
1425
21283beb
EZ
14262002-08-19 Elena Zannoni <ezannoni@redhat.com>
1427
1428 * rs6000-tdep.c (TDEP): Delete macro.
1429 (branch_dest): Replace use of TDEP macro with its body.
1430 (rs6000_pop_frame): Ditto.
1431 (rs6000_push_arguments): Ditto.
1432 (rs6000_skip_trampoline_code): Ditto.
1433 (rs6000_frame_saved_pc): Ditto.
1434 (rs6000_frame_chain): Ditto.
1435 (rs6000_register_name): Ditto.
1436 (rs6000_register_byte): Ditto.
1437 (rs6000_register_raw_size): Ditto.
1438 (rs6000_register_virtual_type): Ditto.
1439 (rs6000_register_convertible): Ditto.
1440 (rs6000_convert_from_func_ptr_addr): Ditto.
1441
bf072999
DJ
14422002-08-19 Daniel Jacobowitz <drow@mvista.com>
1443
1444 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1445 conditionally.
1446 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1447 MIPS_LINUX_JB_ELEMENT_SIZE.
1448 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1449 for MAX_REGISTER_RAW_SIZE arrays.
1450 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1451 MIPS_LINUX_JB_ELEMENT_SIZE.
1452
9b949a49
PM
14532002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1454
1455 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1456
6d3e79c6
AS
14572002-08-19 Aidan Skinner <aidan@velvet.net>
1458
1459 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1460 ada-valprint.c ada-tasks.c.
1461 (YYFILES): Add ada-exp.y.
1462 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1463 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1464 (ada-exp.tab.o): New target.
1465
06c0b04e
AC
14662002-08-18 Andrew Cagney <ac131313@redhat.com>
1467
1468 * regcache.c (regcache_xfer_part): New function.
1469 (regcache_raw_read_part): New function.
1470 (regcache_raw_write_part): New function.
1471 (regcache_cooked_read_part): New function.
1472 (regcache_cooked_write_part): New function.
1473 * regcache.h (regcache_raw_read_part): Declare.
1474 (regcache_raw_write_part): Declare.
1475 (regcache_cooked_read_part): Declare.
1476 (regcache_cooked_write_part): Declare.
1477
92d1e331
DJ
14782002-08-18 Daniel Jacobowitz <drow@mvista.com>
1479
1480 * remote.c (remote_open_1): Add async_p.
1481 (remote_async_open_1): Delete.
1482 (open_remote_target): Delete.
1483 (remote_open, extended_remote_open): Update calls to remote_open_1.
1484 (remote_async_open, extended_remote_async_open): Call
1485 remote_open_1 instead of remote_async_open_1.
1486
247055de
MK
14872002-08-19 Mark Kettenis <kettenis@gnu.org>
1488
1489 * blockframe.c: Fix a few coding standard violations.
1490
641eda39
MK
14912002-08-19 Mark Kettenis <kettenis@gnu.org>
1492
0b717710
MK
1493 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1494 here from ...
1495 * config/i386/tm-i386sco5.h: ... here. File removed.
1496 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1497
26d28e12 1498 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1499 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1500 (TM_FILE): Set to tm-i386.h.
1501 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1502 * config/i386/tm-i386v.h: Remove file.
1503 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1504 instead of "i386/tm-i386v.h".
1505 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1506 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1507 "i386/tm-i386v.h".
1508 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1509 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1510 "i386/tm-i386.h".
1511
d4e0bab4
MK
15122002-08-18 Mark Kettenis <kettenis@gnu.org>
1513
1514 * config/i386/nm-i386v.h: Add protection against
1515 multiple-inclusion.
1516 (i386_register_u_addr): Remove prototype.
1517 (register_u_addr): New prototype.
1518 (REGISTER_U_ADDR): Redefine accordingly.
1519 * i386v-nat.c: Improve several comments.
1520 (i386_register_u_addr): Change signature and rename to
1521 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1522 ubase variable.
1523
46cac009
AC
15242002-08-18 Andrew Cagney <ac131313@redhat.com>
1525
1526 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1527 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1528 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1529 deprecated_extract_return_value.
1530 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1531 rename mips_o32o64_push_arguments.
1532 (mips_gdbarch_init): Update.
1533 (mips_extract_return_value): Delete.
1534 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1535 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1536 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1537 (mips_n32n64_extract_return_value): Clone
1538 mips_extract_return_value.
1539 (mips_store_return_value): Delete.
1540 (mips_o32_store_return_value): Clone mips_store_return_value.
1541 (mips_o64_store_return_value): Clone mips_store_return_value.
1542 (mips_eabi_store_return_value): Clone mips_store_return_value.
1543 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1544
d2e4a39e
AS
15452002-08-18 Aidan Skinner <aidan@velvet.net>
1546
0c30c098
AS
1547 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1548 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1549
15502002-08-18 Aidan Skinner <aidan@velvet.net>
1551
1552 * ada-lang.c: Run through gdb_indent.sh.
1553 * ada-lang.h: Run through gdb_indent.sh.
1554 * ada-tasks.c: Run through gdb_indent.sh.
1555 * ada-typeprint.c: Run through gdb_indent.sh.
1556 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1557
01fc4e33
AC
15582002-08-18 Andrew Cagney <ac131313@redhat.com>
1559
1560 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1561 ABI.
1562
d8ee244c
MK
15632002-08-18 Mark Kettenis <kettenis@gnu.org>
1564
c38d8261
MK
1565 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1566
222db64c
MK
1567 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1568 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1569
c2848c82
MK
1570 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1571 write_register_gen instead of write_register_bytes.
1572
d8ee244c
MK
1573 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1574 i[3456]-*-osf1mk* configurations have been made obsolete.
1575 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1576 i[3456]86-*-osf1mk* hosts obsolete.
1577 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1578 targets obsolete.
1579 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1580 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1581 config/i386/i386m3.mt, config/i386/nm-m3.h,
1582 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1583 config/i386/i386mk.mh, config/i386/i386mk.mt,
1584 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1585 obsolete.
1586 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1587 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1588 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1589
61d8d407
AC
15902002-08-18 Andrew Cagney <ac131313@redhat.com>
1591
1592 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1593 (hppa_value_returned_from_stack): Declare.
1594 (hppa_extract_return_value): Declare.
1595 * config/pa/hppa.mt: New file.
1596 * configure.tgt: Recognize hppa*-*-*.
1597 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1598
0c52bd59
MK
15992002-08-18 Mark Kettenis <kettenis@gnu.org>
1600
1601 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1602 comment.
1603
b5686e99
MK
16042002-08-17 Mark Kettenis <kettenis@gnu.org>
1605
1606 * top.c (gdb_rl_operate_and_get_next): Make sure
1607 operate-and-get-next functions correctly even when the history
1608 list is completely filled.
1609
c1bab85b
AC
16102002-08-18 Andrew Cagney <ac131313@redhat.com>
1611
1612 * MAINTAINERS (Target Instruction Set Architectures): Rename
1613 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1614 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1615 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1616 already listed under Host/Native.
1617
1618 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1619 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1620 mips*-*-*.
1621
32089c7c
AC
16222002-08-17 Andrew Cagney <ac131313@redhat.com>
1623
1624 * config/ia64/ia64.mt: New file.
1625 * config/alpha/alpha.mt: New file.
1626 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1627 ia64-linux-gnu. Mention that ia64-elf is broken.
1628 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1629
b4671f85
MK
16302002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1631
1632 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1633 generic_func_frame_valid instead of func_frame_valid.
1634
c8edd8b4
JB
16352002-08-16 Joel Brobecker <brobecker@gnat.com>
1636
1637 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1638 procfs appears to be broken when debugging on multi-processor
1639 machines. So enable software single stepping in order to avoid
1640 using the procfs interface to do next/step operations, using
1641 internal breakpoints instead.
1642
1643 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1644 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1645 make this pc address equal to the value it would have if the
1646 system stepping capability was used. Also set a new flag used
1647 to ensure that we don't readjust the PC one more time later.
1648
1649 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1650 address by DECR_PC_AFTER_BREAK when software single step is
1651 in use for this architecture, as this has already been taken
1652 care of in handle_inferior_event().
1653
238617f6
JB
16542002-08-16 Joel Brobecker <brobecker@gnat.com>
1655
1656 * infrun.c (handle_inferior_event): Minor reformatting, to make
1657 a rather long condition expression easier to read.
1658
541a7aac
AC
16592002-08-16 Andrew Cagney <ac131313@redhat.com>
1660
1661 * Makefile.in (gdbtk.o): Move to end of file.
1662 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1663 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1664 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1665 (gdbtk-wrapper.o, gdbres.o): Ditto.
1666
f92d4a7b
AC
16672002-08-16 Andrew Cagney <ac131313@redhat.com>
1668
1669 * Makefile.in (copying.o): Separate out compile rule.
1670 (hpux-thread.o, procfs.o, signals.o): Ditto.
1671 (v850ice.o, z8k-tdep.o): Ditto.
1672 (tui-file.o): Move to TUI section.
1673 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1674 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1675
1cce71eb
JB
16762002-08-16 Joel Brobecker <brobecker@gnat.com>
1677
1678 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1679 skip_trampoline_code, for better namespace-proofing.
1680
1681 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1682
0851f23d
JB
16832002-08-16 Joel Brobecker <brobecker@gnat.com>
1684
1685 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1686
f8d40ec8
JB
16872002-08-16 Joel Brobecker <brobecker@gnat.com>
1688
1689 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1690 signal, check whether we hit a breakpoint before checking for a
1691 single step breakpoint. Otherwise, GDB fails to notice that a
1692 breakpoint has been hit when stepping onto a breakpoint.
1693
63d022e0
KS
16942002-08-16 Keith Seitz <keiths@redhat.com>
1695
1696 * gdb-events.sh (clear_gdb_event_hooks): New function.
1697 * gdb-events.c: Regenerate.
1698 * gdb-events.h: Regenerate.
1699
6e31adb3
AC
17002002-08-16 Andrew Cagney <ac131313@redhat.com>
1701
1702 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1703 not_a_sw_breakpoint.
1704 * breakpoint.h (bpstat_stop_status): Add parameter names.
1705
c8189ed1
GS
17062002-08-16 Grace Sainsbury <graces@redhat.com>
1707
1708 * remote.c (remote_insert_hw_breakpoint)
1709 (remote_remove_hw_breakpoint): Fix calculation of length field
1710 for Z-packet.
1711
d05285fa
MS
17122002-08-15 Michael Snyder <msnyder@redhat.com>
1713
466d7106
MS
1714 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1715 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1716 (supply_fpregset): Ditto.
1717
d05285fa
MS
1718 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1719 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1720 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1721 (TARGET_READ_SP): Delete.
bf1f5b4c 1722 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1723 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1724 Delete.
1725 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1726 from macros to functions.
bf1f5b4c 1727
d05285fa
MS
1728 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1729 (mips_register_convertible, mips_register_convert_to_virtual,
1730 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1731 (mips_read_sp): New function.
1732 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1733 (mips_do_registers_info): Make static.
1734 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1735 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1736 (mips_register_convert_from_type, mips_register_convert_to_type):
1737 New functions.
1738 (mips_gdbarch_init): Set up function_start_offset,
1739 register_virtual_size, pc_in_sigtramp.
d05285fa 1740
e76f1f2e
AC
17412002-08-15 Andrew Cagney <ac131313@redhat.com>
1742
1743 * infcmd.c (vector_info): New function.
1744 (_initialize_infcmd): Add command "info vector".
1745 (print_vector_info): New function.
1746
1747 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1748 * gdbarch.h, gdbarch.c: Regenerate.
1749
4782dc19
AC
17502002-08-15 Andrew Cagney <ac131313@redhat.com>
1751
1752 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1753 ``print_all''. Only print vector registers when ``print_all''.
1754
23e3a7ac
AC
17552002-08-15 Andrew Cagney <ac131313@redhat.com>
1756
8e186fd6
AC
1757 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1758 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1759
23e3a7ac
AC
1760 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1761 Add `args' parameter.
1762 * gdbarch.h, gdbarch.c: Regenerate.
1763
1764 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1765
1766 * infcmd.c (float_info): Call print_float_info.
1767 (print_float_info): New function. By default, print the
1768 floating-point registers.
1769
1770 * arch-utils.h (default_print_float_info): Delete declaration.
1771 * arch-utils.c (default_print_float_info): Delete function.
1772
e0ca2bb9
MK
17732002-08-16 Mark Kettenis <kettenis@gnu.org>
1774
3f733acc
MK
1775 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1776 out define.
1777
7d8d2918
MK
1778 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1779 FRAME.
1780
1c7cc583
MK
1781 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1782 * configure.host: Make i[3456]86-*-aix host obsolete.
1783 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1784 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1785 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1786 config/i386/xm-i386aix.h: Make files obsolete.
1787 * i386aix-nat.c: Make file obsolete.
1788 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1789 (i386aix-nat.o): Make target obsolete.
1790
e0ca2bb9
MK
1791 * config/i386/nm-gnu.h: Removed.
1792 * config/i386/nm-i386gnu.h: New file.
1793 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1794 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1795 Moved here from ...
1796 * config/i386/tm-i386gnu.h: ... here. Removed.
1797 * config/i386/xm-i386gnu.h: Removed.
1798 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1799 (NAT_FILE): Set to nm-i386gnu.h.
1800 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1801 * i386-tdep.c: New file.
1802 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1803 (i386gnu-tdep.o): Specify dependencies.
1804
16057ec7 18052002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1806
6b99ee2e
MK
1807 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1808 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1809 Adjust a few comments to reflect reality a bit closer.
1810 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1811 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1812 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1813 target_insert_watchpoint, target_remove_watchpoint):
1814 Move defines to ...
1815 * config/i386/nm-i386sco5.h: ... here.
1816 (kernel_u_size): Add prototype. Improve a few comments and add
1817 protection against multiple inclusion.
1818
d9a6f65c
MK
1819 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1820 out define.
1821
047eff6a
MK
1822 * uw-thread.c (SP_ARG0): Define if not already defined.
1823 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1824
dcdb1290
MK
1825 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1826
5d2d0b2a
MK
1827 * config/i386/tm-i386.h: Don't include "regcache.h".
1828
61113f8b
MK
1829 * i387-tdep.h (i387_print_float_info): New prototype.
1830 * i387-tdep.c (print_i387_value, print_i387_ext,
1831 print_i387_status_word, print_i387_control_word): Add `struct
1832 ui_file *' argument and use it for output.
1833 (i387_print_float_info): Renamed from i387_float_info. Add
1834 `struct gdbarch *' and `struct ui_file *' arguments and use the
1835 latter for output.
1836 * i386-tdep.c: Include "i387-tdep.h".
1837 (i386_gdbarch_init): Set print_float_info.
1838 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1839 (FLOAT_INFO): Remove define.
1840
46e0f506
MS
18412002-08-13 Michael Snyder <msnyder@redhat.com>
1842
1843 * mips-tdep.c (mips_push_arguments): Rename to
1844 mips_eabi_push_arguments, and tune for EABI.
1845 (MIPS_REGS_HAVE_HOME_P): Delete.
1846 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1847 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1848 Delete references to mips_regs_have_home_p.
1849
409268de
KS
18502002-08-14 Keith Seitz <keiths@redhat.com>
1851
1852 * Makefile.in (install-gdbtk): Create insight plugin directory.
1853 Install plugins.tcl file.
1854
ffc6a242
KS
18552002-08-14 Keith Seitz <keiths@redhat.com>
1856
1857 * configure.in: Move SUBDIRS to near top of the file so that
1858 --enable options may add things to it.
1859 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1860 * configure: Regenerate.
1861
ebafbe83
MS
18622002-08-13 Michael Snyder <msnyder@redhat.com>
1863
1864 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1865 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1866 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1867
32f6f25d
AC
18682002-08-13 Andrew Cagney <ac131313@redhat.com>
1869
1870 * vax-tdep.c (vax_get_saved_register): Delete function.
1871 (vax_gdbarch_init): Update.
1872 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1873 (ns32k_gdbarch_init): Update.
1874 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1875 (alpha_gdbarch_init): Update.
1876
53826de9
AC
18772002-08-13 Andrew Cagney <cagney@redhat.com>
1878
1879 * regcache.c (init_regcache_descr): Overallocate the
1880 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1881 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1882 nr_raw_registers.
1883 (set_register_cached): Add range checking assertions. Use
1884 current_regcache.
1885
16057ec7 18862002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1887
1888 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1889 numbers for MMX registers.
1890
7b4c2dce
AC
18912002-08-13 Andrew Cagney <cagney@redhat.com>
1892
1893 * i386-tdep.c (i386_gdbarch_init): Use
1894 generic_unwind_get_saved_register.
1895
1e03ad20
KB
18962002-08-13 Kevin Buettner <kevinb@redhat.com>
1897
1898 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1899 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1900 target vector.
1901 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1902 Delete. Add comment regarding this now-deleted target method.
1903
548bcbec
SC
19042002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1905
1906 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1907 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1908 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1909 real PC and the page number (if it's within the memory bank window).
1910 (m68hc11_pseudo_register_write): Likewise when saving.
1911 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1912 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1913 (m68hc11_register_raw_size): And use 32-bit for it.
1914 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1915 16K memory bank is used by the prog; also use the virtual pc.
1916
7df11f59
SC
19172002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1918
1919 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1920 (m68hc11_gdbarch_init): Install it in gdbarch.
1921 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1922 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1923 (MSYMBOL_SIZE): New for documentation.
1924 (insn_return_kind): Enum to specify how a function returns.
1925 (frame_extra_info): Cleanup and record the return mode.
1926 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1927 register in address computation.
1928 (m68hc11_get_return_insn): New to obtain the return instruction used
1929 by the function.
1930 (m68hc11_frame_init_saved_regs): Take into account the return
1931 instruction used by the function for far and interrupt functions.
1932 (m68hc11_init_extra_frame_info): Take into account page register.
1933 (m68hc11_frame_args_address): Adjust according to the return mode.
1934 (show_regs): Print page register only when it's used.
1935
5706502a
SC
19362002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1937
1938 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1939 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1940 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1941 registers.
1942 (m68hc11_register_raw_size): Likewise.
1943
28fc6740
AC
19442002-08-13 Andrew Cagney <cagney@redhat.com>
1945
1946 * i386-tdep.c (i386_register_name): Handle mmx registers.
1947 (mmx_regnum_p): New function.
1948 (i386_mmx_names): New array.
1949 (mmx_num_regs): New variable.
1950 (i386_pseudo_register_read): New function.
1951 (i386_pseudo_register_write): New function.
1952 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1953
1954 * regcache.c (regcache_raw_read_unsigned): New function.
1955 (regcache_raw_read_signed): New function.
1956 * regcache.h (regcache_raw_read_unsigned): Declare.
1957 (regcache_raw_read_signed): Declare.
1958
a378f419
AC
19592002-08-13 Andrew Cagney <cagney@redhat.com>
1960
1961 * regcache.c (regcache_raw_read_as_address): Delete function.
1962 (regcache_cooked_read_signed): New function.
1963 (regcache_cooked_read_unsigned): New function.
1964 * regcache.h (regcache_cooked_read_signed): Declare.
1965 (regcache_cooked_read_unsigned): Declare.
1966 (regcache_raw_read_as_address): Delete declaration.
1967
1968 * blockframe.c (generic_read_register_dummy): Use
1969 regcache_cooked_read_unsigned.
1970 * i386-tdep.c (i386_extract_struct_value_address): Use
1971 regcache_cooked_read_unsigned.
1972
81967506
SC
19732002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1974
1975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1976 double sizes according to ELF ABI flags.
1977 (gdbarch_tdep): Record elf_flags.
1978
ffe1f3ee
SC
19792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1980
1981 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1982 (m6812_prolog): They can appear in 68HC12 function prologue.
1983 (m68hc11_frame_chain): Cleanup.
1984
98216c5d
AC
19852002-08-12 Andrew Cagney <cagney@redhat.com>
1986
1987 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1988 declarations.
1989 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1990 (i386_linux_register_raw_size): Delete function.
1991 (i386_linux_init_abi): Update.
1992 * i386-tdep.c (i386_register_raw_size): Delete function.
1993 (i386_register_byte): Delete function.
1994 (i386_gdbarch_init): Update.
1995 (i386_register_size): Delete array.
1996 (i386_register_offset): Delete array.
1997
1998 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1999 (REGISTER_RAW_SIZE): Delete macro.
2000 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2001 (REGISTER_BYTE): Delete macro.
2002
3b19021e
AS
20032002-08-11 Aidan Skinner <aidan@velvet.net>
2004
2005 * ada-lang.c (ada_lookup_partial_symbol)
2006 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2007 prototype names so that grep ^func works properly.
2008
2009 * ada-lang.c (ada_array_element_type)
2010 (ada_lookup_partial_symbol): Fix typos in parameter list.
2011
2012 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2013 Fix prototype names so that grep ^func works properly.
2014
b063e7a2
AC
20152002-08-10 Andrew Cagney <cagney@redhat.com>
2016 Elena Zannoni <ezannoni@redhat.com>
2017 Martin M. Hunt <hunt@redhat.com>
2018
2019 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2020 (build_builtin_type_vec128i): Set the vector bit.
2021 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2022 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2023 (build_builtin_type_vec64): New function.
2024 (build_builtin_type_vec64i): New function.
2025 (build_gdbtypes): Initialize builtin_type_vec64 and
2026 builtin_type_vec64i.
2027
a7e3c2ad
AC
20282002-08-09 Andrew Cagney <cagney@redhat.com>
2029
2030 * regcache.c (regcache_dump): Compare the register offset
2031 with REGISTER_BYTE.
2032 * arch-utils.c (generic_register_byte): New function.
2033 * arch-utils.h (generic_register_byte): Declare.
2034 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2035 * gdbarch.h, gdbarch.c: Regenerate.
2036
af030b9a
AC
20372002-08-09 Andrew Cagney <cagney@redhat.com>
2038
2039 * regcache.c: Include "gdbcmd.h"
2040 (_initialize_regcache): Add commands "maintenance print
2041 registers", "maintenance print raw-registers" and "maintenance
2042 print cooked-registers".
2043 (enum regcache_dump_what): Define.
2044 (dump_endian_bytes): New function.
2045 (regcache_dump): New function.
2046 (regcache_print): New function.
2047 (maintenance_print_registers): New function.
2048 (maintenance_print_raw_registers): New function.
2049 (maintenance_print_cooked_registers): New function.
2050 * Makefile.in (regcache.o): Update dependencies.
2051
cb3d25d1
MS
20522002-08-09 Michael Snyder <msnyder@redhat.com>
2053
2054 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2055 (mips_push_arguments): Correct some comments. Use paddr_nz
2056 for printing addresses in debug output. Replace static
2057 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2058 (mips_n32n64_push_arguments): New function, cloned from
2059 mips_push_arguments and tuned for the n32/n64 ABI.
2060 (mips_push_register): Buffer needs dynamic allocation.
2061 (mips_print_register): Ditto.
2062 (do_gp_register_row): Ditto.
2063 (mips_store_return_value): Ditto.
2064 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2065
2163ab9d
DH
20662002-08-09 Don Howard <dhoward@redhat.com>
2067
2068 * memattr.c (mem_info_command): Print special case of upper bound
2069 as max CORE_ADDR + 1.
2070
b78bcb18
MS
20712002-08-08 Michael Snyder <msnyder@redhat.com>
2072
2073 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2074 returns structs by ref if they're too big to fit in two registers.
2075
ffabd70d
KB
20762002-08-09 Kevin Buettner <kevinb@redhat.com>
2077
2078 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2079 saved regs value.
2080 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2081 mips_find_saved_regs().
2082 (mips_pop_frame): Likewise.
2083
fbcdb4a3
KB
20842002-08-09 Kevin Buettner <kevinb@redhat.com>
2085
2086 * blockframe.c (frame_saved_regs_register_unwind): Revise
2087 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2088 frames are in use.
2089
3c3bea1c
GS
20902002-08-09 Grace Sainsbury <graces@redhat.com>
2091
2092 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2093 T-packets; the 'a' is not taken as a register number.
2094 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2095 (remote_stopped_data_address): New functions; add to target
2096 vector.
2097 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2098 prototypes to match other implementations of this
2099 function. replace integer argument with pointer -- the length
2100 field in the Z-packet is the length of what is pointed to or 1 if
2101 pointer is null. Add to target vector.
2102 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2103 target vector.
2104
2105 From Mark Salter:
2106 * remote.c (remote_wait): Add support to extract optional
2107 watchpoint information from T-packet. Ignore unrecognized
2108 optional info in T-packet.
2109 (remote_async_wait): Ditto.
2110
5d1d95de
CV
21112002-08-09 Corinna Vinschen <vinschen@redhat.com>
2112
2113 * cli/cli-dump.c: Change fopen modes to use binary open modes
2114 as defined in include/fopen-bin.h throughout.
2115
c86b5b38
MS
21162002-08-08 Michael Snyder <msnyder@redhat.com>
2117
2118 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2119
b30590dc
KB
21202002-08-08 Kevin Buettner <kevinb@redhat.com>
2121
2122 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2123 assertion failure by returning early after a warning.
2124
498868ed
KB
21252002-08-08 Kevin Buettner <kevinb@redhat.com>
2126
2127 * mips-tdep.c (mips_find_saved_regs): Make static.
2128 (mips_frame_init_saved_regs): New function.
2129 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2130 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2131 (mips_find_saved_regs): Delete declaration.
2132
b2dd6311
GS
21332002-08-08 Grace Sainsbury <graces@redhat.com>
2134
3c3bea1c
GS
2135 * remote.c (remote_wait, remote_async_wait): Change
2136 thread_num from int to ULONGEST.
2137 (unpack_varlen_hex): Change result parameter from
2138 int * to ULONGEST *.
b2dd6311 2139
ea47855f
AC
21402002-08-08 Andrew Cagney <ac131313@redhat.com>
2141
2142 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2143 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2144 powerpc*-*-*.
2145 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2146
69db8bae
AC
21472002-08-08 Andrew Cagney <cagney@redhat.com>
2148
2149 * gcore.c (override_derive_stack_segment): Delete variable.
2150 (preempt_derive_stack_segment): Delete function.
2151 (derive_stack_segment): Delete function.
2152 (default_derive_stack_segment): Renamed to derive_stack_segment.
2153 (override_derive_heap_segment): Delete variable.
2154 (preempt_derive_heap_segment): Delete function.
2155 (derive_heap_segment): Delete function.
2156 (default_derive_heap_segment): Rename to derive_heap_segment.
2157
cb811fe7
MS
21582002-08-06 Michael Snyder <msnyder@redhat.com>
2159
2160 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2161 * mips-tdep.c (mips_EABI_use_struct_convention,
2162 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2163 New functions. (mips_use_struct_convention): Delete.
2164 (mips_gdbarch_init): set use_gdbarch_convention.
2165
8b389c40
MS
21662002-08-06 Michael Snyder <msnyder@redhat.com>
2167
2168 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2169 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2170 mips_o32_reg_struct_has_addr): New functions.
2171 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2172
5c27f28a
AC
21732002-08-07 Andrew Cagney <ac131313@redhat.com>
2174
2175 * regcache.c (pseudo_register): Delete function.
2176 (fetch_register): Delete function.
2177 (store_register): Delete function.
2178 (regcache_raw_read, legacy_read_register_gen): Use
2179 target_fetch_registers instead of fetch_register.
2180 (legacy_write_register_gen, regcache_raw_write): Use
2181 target_store_register instead of store_register.
2182 (write_register_bytes): Ditto.
2183
2184 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2185 (STORE_PSEUDO_REGISTER): Delete.
2186 * gdbarch.h, gdbarch.c: Regenerate.
2187
5b331675
CV
21882002-08-06 Corinna Vinschen <vinschen@redhat.com>
2189
2190 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2191 write dump file binary.
2192
6acdf5c7
MS
21932002-08-05 Michael Snyder <msnyder@redhat.com>
2194
2195 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2196 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2197 (mips_gdbarch_init): Set N32 target to be mips64.
2198
b2f01c35
KB
21992002-08-06 Kevin Buettner <kevinb@redhat.com>
2200
2201 * frame.c (find_saved_register): Break out of loop once saved
2202 register address is found. Don't mention sparc in loop comment
2203 anymore.
2204
63db5580
KB
22052002-08-06 Kevin Buettner <kevinb@redhat.com>
2206
2207 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2208 mips_default_saved_regsize to 8.
2209
5e34e75e
AC
22102002-08-06 Andrew Cagney <ac131313@redhat.com>
2211
2212 * gcore.c: Do not include <sys/procfs.h>.
2213 * Makefile.in (gcore.o): Update dependencies.
2214
eb4c54a2
AC
22152002-08-06 Andrew Cagney <cagney@redhat.com>
2216
2217 * configure.tgt: Make arc-*-* obsolete.
2218 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2219 * MAINTAINERS: Make arc-elf obsolete.
2220 * arc-tdep.c: Make file obsolete.
2221 * config/arc/arc.mt: Ditto.
2222 * config/arc/tm-arc.h: Ditto.
2223
ced15480
TR
22242002-08-05 Theodore A. Roth <troth@verinet.com>
2225
c1bab85b 2226 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2227
b4743822
AC
22282002-08-05 Andrew Cagney <ac131313@redhat.com>
2229
2230 * mcore-tdep.c (mcore_gdbarch_init): Use
2231 generic_unwind_get_saved_register instead of
2232 generic_get_saved_register.
2233 * v850-tdep.c (v850_gdbarch_init): Ditto.
2234 * frv-tdep.c (frv_gdbarch_init): Ditto.
2235 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2236 * s390-tdep.c (s390_gdbarch_init): Ditto.
2237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2238 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2239 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2240
3956d554
JB
22412002-08-05 Joel Brobecker <brobecker@gnat.com>
2242
2243 * objfiles.h: Add missing #include "symfile.h"
2244
2245 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2246
8249c0d6
AC
22472002-08-04 Andrew Cagney <ac131313@redhat.com>
2248
2249 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2250 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2251 of FIELD_BITSIZE.
2252
b9d14705
DJ
22532002-08-04 Daniel Jacobowitz <drow@mvista.com>
2254
2255 * NEWS: Cleanup and nitpick.
2256
dd73b9bb
AC
22572002-08-03 Andrew Cagney <ac131313@redhat.com>
2258
2259 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2260
043a27f8
AC
22612002-08-03 Andrew Cagney <ac131313@redhat.com>
2262
2263 * Makefile.in (gdbtk-bp.o): Update dependencies.
2264 (gdbtk-register.o): Ditto.
2265 (gdbtk-varobj.o): Ditto.
2266
46ce284d
AC
22672002-08-03 Andrew Cagney <cagney@redhat.com>
2268
2269 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2270 m68hc11_fetch_pseudo_register.
2271 (m68hc11_pseudo_register_write): Replace
2272 m68hc11_store_pseudo_register.
2273 (m68hc11_gdbarch_init): Update.
2274
b66d6d2e
AC
2275Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2276
2277 * gdbarch.sh: Include "gdb_string.h".
2278 * gdbarch.c: Regenerate.
2279
2280 * regcache.c: Include "gdb_string.h".
2281 * ax-general.c: Ditto.
2282 * varobj.c: Ditto.
2283 * std-regs.c: Ditto.
2284 * fbsd-proc.c: Ditto.
2285 * thread.c: Ditto.
2286
2287 * Makefile.in (regcache.o): Update dependencies.
2288 (thread.o, gdbarch.o): Ditto.
2289 (ax-general.o, gdbarch.o): Ditto.
2290 (varobj.o, std-regs.o): Ditto.
2291 (fbsd-proc.o): Specify dependencies.
2292
29e1842b
AC
22932002-08-02 Andrew Cagney <cagney@redhat.com>
2294
2295 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2296 regnum.
2297 (regcache_cooked_write): Ditto.
2298
68365089
AC
22992002-08-02 Andrew Cagney <ac131313@redhat.com>
2300
2301 * regcache.c (regcache_cooked_read): New function.
2302 (regcache_cooked_write): New function.
2303 (read_register_gen): Rewrite using regcache_cooked_read.
2304 (write_register_gen): Rewrite using regcache_cooked_write.
2305
2306 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2307 Declare.
2308
d8124050
AC
23092002-08-02 Andrew Cagney <cagney@redhat.com>
2310
2311 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2312 Replace the architecture methods register_read and register_write.
2313 * gdbarch.h, gdbarch.c: Regenerate.
2314 * regcache.c (init_regcache_descr): Update.
2315 (read_register_gen): Update.
2316 (write_register_gen): Update.
2317 (supply_register): Update comment.
2318
2319 * sh-tdep.c (sh_gdbarch_init): Update.
2320 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2321 `regcache' and `gdbarch' parameters. Make `buffer' a void
2322 pointer. Update code.
2323 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2324 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2325 void pointer. Update code.
2326 (sh64_register_write): Delete.
2327 (sh4_register_read): Delete.
2328 (sh64_register_read): Delete.
2329 (sh4_register_write): Delete.
2330 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2331 void pointer, `to' parameter a void pointer.
2332 (sh_sh64_register_convert_to_raw): Ditto.
2333
a6425924
KB
23342002-08-01 Kevin Buettner <kevinb@redhat.com>
2335
2336 * mips-tdep.c (mips_register_virtual_type): Use architecture
2337 invariant return values.
2338
ff5922b5
AC
23392002-08-01 Andrew Cagney <cagney@redhat.com>
2340
2341 * linux-proc.c: Include "gdb_string.h".
2342 * Makefile.in (linux-proc.o): Update dependency list.
2343
32a6503c
KB
23442002-08-01 Kevin Buettner <kevinb@redhat.com>
2345
2346 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2347 comment.
2348
ccaa32c7
GS
23492002-08-01 Grace Sainsbury <graces@redhat.com>
2350
2351 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2352 to_insert_watchpoint, to_remove_watchpoint,
2353 to_stopped_by_watchpoint, to_stopped_data_address,
2354 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2355 target vecctor. Define their corresponding macros so they call
2356 them.
2357
2358 * target.c: Add default and debug versions of for
2359 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2360 to_insert_watchpoint, to_remove_watchpoint,
2361 to_stopped_by_watchpoint, to_stopped_data_address,
2362 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2363
78fde5f8
KB
23642002-08-01 Kevin Buettner <kevinb@redhat.com>
2365
2366 * mips-tdep.c (mips_register_virtual_type): New function.
2367 (mips_gdbarch_init): Register mips_register_virtual_type()
2368 with gdbarch machinery.
2369 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2370 this file instead of tm-bigmips.h.
2371 (MIPS_REGSIZE): Delete this macro.
2372 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2373 multiarch version in mips-tdep.c will be found.
2374
db034ac5
AC
23752002-08-01 Andrew Cagney <cagney@redhat.com>
2376
2377 * NEWS: Menion that CHILL has been made obsolete.
2378
2379 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2380 * stabsread.c (read_range_type): Ditto.
2381 * gdbtypes.h: Ditto.
2382 * language.c (binop_type_check): Ditto.
2383 (binop_result_type): Ditto.
2384 (integral_type): Ditto.
2385 (character_type): Ditto.
2386 (string_type): Ditto.
2387 (boolean_type): Ditto.
2388 (structured_type): Ditto.
2389 (lang_bool_type): Ditto.
2390 (binop_type_check): Ditto.
2391 * language.h (_LANG_chill): Ditto.
2392 * dwarfread.c (set_cu_language): Ditto.
2393 * dwarfread.c (CHILL_PRODUCER): Ditto.
2394 * dwarfread.c (handle_producer): Ditto.
2395 * expression.h (enum exp_opcode): Ditto.
2396 * eval.c: Ditto for comments.
2397 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2398 * expprint.c (print_subexp): Ditto.
2399 (print_subexp): Ditto.
2400 * valops.c (value_cast): Ditto.
2401 (search_struct_field): Ditto.
2402 * value.h (COERCE_VARYING_ARRAY): Ditto.
2403 * symfile.c (init_filename_language_table): Ditto.
2404 (add_psymbol_with_dem_name_to_list): Ditto.
2405 * valarith.c (value_binop): Ditto.
2406 (value_neg): Ditto.
2407 * valops.c (value_slice): Ditto.
2408 * symtab.h (union language_specific): Ditto.
2409 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2410 (SYMBOL_DEMANGLED_NAME): Ditto.
2411 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2412 * defs.h (enum language): Ditto.
2413 * symtab.c (got_symtab): Ditto.
2414 * utils.c (fprintf_symbol_filtered): Ditto.
2415
2416 * ch-typeprint.c: Make file obsolete.
2417 * ch-valprint.c: Make file obsolete.
2418 * ch-lang.h: Make file obsolete.
2419 * ch-exp.c: Make file obsolete.
2420 * ch-lang.c: Make file obsolete.
2421
2422 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2423 CHILL_LIB.
2424 (TARGET_FLAGS_TO_PASS): Ditto.
2425 (CHILLFLAGS): Obsolete.
2426 (CHILL): Obsolete.
2427 (CHILL_FOR_TARGET): Obsolete.
2428 (CHILL_LIB): Obsolete.
2429 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2430 ch-valprint.c.
2431 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2432 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2433 ch-lang.o.
2434 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2435 targets.
2436
8aaf0b47
JB
24372002-07-31 Joel Brobecker <brobecker@gnat.com>
2438
2439 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2440 This does not change anything at the moment, but will be helpful
2441 later when full Ada support is integrated.
2442
f3a7b3a5
KB
24432002-07-31 Kevin Buettner <kevinb@redhat.com>
2444
2445 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2446 help message.
2447
fb850278
KB
24482002-07-31 Kevin Buettner <kevinb@redhat.com>
2449
2450 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2451 and save it in a local variable. Use variable in later test.
2452
e3bddbfa
KB
24532002-07-31 Kevin Buettner <kevinb@redhat.com>
2454
2455 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2456 test. (Thanks to Daniel Jacobowitz.)
2457
28d169de
KB
24582002-07-31 Kevin Buettner <kevinb@redhat.com>
2459
2460 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2461 (mips_abi_strings): Add "n64".
2462 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2463
7fe7e44e
KB
24642002-07-31 Kevin Buettner <kevinb@redhat.com>
2465
2466 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2467 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2468
c6caf090
KB
24692002-07-31 Kevin Buettner <kevinb@redhat.com>
2470
2471 * utils.c (host_pointer_to_address, address_to_host_pointer):
2472 Use gdb_assert() instead of explicit call to internal_error().
2473
c41669e0
KB
24742002-07-30 Kevin Buettner <kevinb@redhat.com>
2475
2476 * Makefile.in (rs6000-nat.o): Update dependencies.
2477
2478 From Nicholas Duffek:
2479 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2480 (aix-thread.o): New rule.
2481 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2482 * config/powerpc/aix432.mh: New file.
2483
2fda4977
DJ
24842002-07-30 Daniel Jacobowitz <drow@mvista.com>
2485
2486 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2487 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2488 (fetch_core_registers, ppc_linux_supply_gregset)
2489 (ppc_linux_supply_fpregset): New functions.
2490 (ppc_linux_regset_core_fns): New.
2491 (_initialize_ppc_linux_tdep): Call add_core_fns.
2492 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2493 and ppc_linux_supply_gregset.
2494 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2495 (supply_fpregset): Call ppc_linux_supply_fpregset.
2496 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2497 corelow.o.
2498 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2499
729051e6
DJ
25002002-07-30 Daniel Jacobowitz <drow@mvista.com>
2501
2502 * symtab.c (lookup_symbol): Demangle before lowercasing.
2503
5f8a3188
AC
25042002-07-30 Andrew Cagney <ac131313@redhat.com>
2505
2506 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2507 declaration.
2508 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2509 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2510 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2511 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2512 "gdb_string.h".
2513 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2514 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2515 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2516 (avr-tdep.o, mon960-rom.o): Ditto.
2517 (aout_stabs_gnu_h): Define.
2518 (symtab_h): Remove $(gdb_obstack_h).
2519
67f07146
JB
25202002-07-30 Jim Blandy <jimb@redhat.com>
2521
2522 Patch from David Carlton <carlton@math.stanford.edu>:
2523 * gdbinit.in: Move the `dir' commands that add GDB's own source
2524 directory to the search path to the end, so that the `gdb' source
2525 directory will be searched first.
2526
04ea0df1
AC
25272002-07-29 Andrew Cagney <ac131313@redhat.com>
2528
2529 * gdb_obstack.h: New file.
2530 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2531 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2532 * objfiles.h: Include "gdb_obstack.h".
2533 * Makefile.in (gdb_obstack_h): Define.
2534 (symtab_h): Add $(gdb_obstack_h).
2535 (objfiles_h): Add $(gdb_obstack_h).
2536
2537 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2538 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2539 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2540 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2541 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2542 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2543 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2544 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2545
2546 * Makefile.in (bcache.o): Update dependencies.
2547 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2548 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2549 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2550 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2551 (stabsread.o, symfile.o, symmisc.o): Ditto.
2552 (symtab.o, typeprint.o, macroexp.o): Ditto.
2553 (macrotab.o, mdebugread.o): Ditto.
2554 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2555 (coff_ecoff_h, aout_aout64_h): Define.
2556 (aout_stabs_gnu_h, libaout_h): Define.
2557
d138e37a
AC
25582002-07-29 Andrew Cagney <cagney@redhat.com>
2559
2560 * regcache.c (struct regcache_descr): Rename nr_registers to
2561 nr_cooked_registers. Revise comments describing the structure
2562 member fields.
2563 (init_regcache_descr): Update.
2564 (init_legacy_regcache_descr): Update.
2565 (read_register_gen, write_register_gen): When a cooked register in
2566 the raw register range, directly access the value from the raw
2567 register cache.
2568
460e6ec3
AC
25692002-07-29 Andrew Cagney <ac131313@redhat.com>
2570
2571 * z8k-tdep.c: Do not include "obstack.h".
2572 * h8300-tdep.c, h8500-tdep.c: Ditto.
2573 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2574 * valprint.c, v850-tdep.c: Ditto.
2575 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2576 * mn10200-tdep.c: Ditto.
2577
2578 * Makefile.in (z8k-tdep.o): Update dependencies.
2579 (m68hc11-tdep.o, valprint.o): Ditto.
2580 (v850-tdep.o, d10v-tdep.o): Ditto.
2581 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2582 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2583 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2584 (sh_opc_h, gdb_sim_sh_h): Define.
2585 (elf_sh_h, elf_bfd_h): Define.
2586 (opcode_m68hc11_h): Define.
2587 (OPCODES_SRC, OPCODES_DIR): define.
2588 (OPCODES): Use $(OPCODES_DIR).
2589 (gdb_sim_d10v_h): Rename sim_d10v_h.
2590 (gdb_sim_arm_h): Rename sim_arm_h.
2591
790c9cf0
KB
25922002-07-26 Kevin Buettner <kevinb@redhat.com>
2593
2594 * utils.c (host_pointer_to_address, address_to_host_pointer):
2595 Change internal_error() message to indicate function responsible
2596 for the error.
2597
9647fa49
KB
25982002-07-26 Kevin Buettner <kevinb@redhat.com>
2599
2600 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2601 calls to local_hex_string_custom().
2602
dabbe2c0
KB
26032002-07-26 Kevin Buettner <kevinb@redhat.com>
2604
2605 * irix5-nat.c: Move IRIX shared library support from here...
2606 * solib-irix.c: ...to here. Revised substantially to work with
2607 generic solib framework.
2608
b96d0a4e
KB
2609 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2610 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2611 * mips-irix-tdep.c: New file.
2612
313fb2f6
KB
2613 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2614 (mips-irix-tdep.o, solib-irix.o): New rules.
2615 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2616 solib-irix.o.
2617 * config/mips/irix6.mt (TDEPFILES): Likewise.
2618 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2619
ab2eaf26
KB
26202002-07-26 Kevin Buettner <kevinb@redhat.com>
2621
177e4768 2622 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2623 disabled (via ``#if 0'') includes.
2624
7244546a
KB
26252002-07-26 Kevin Buettner <kevinb@redhat.com>
2626
2627 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2628 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2629 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2630 Add support for the fpscr register.
2631 * rs6000-nat.c (regmap, fetch_inferior_registers)
2632 (store_inferior_registers, fetch_core_registers): Likewise.
2633
dd7be90a
KB
26342002-07-26 Kevin Buettner <kevinb@redhat.com>
2635
2636 * rs6000-nat.c (language.h): Include.
2637 (special_regs): Delete this array.
2638 (regmap): New function.
2639 (fetch_register, store_register): Use regmap() to map gdb
2640 register numbers to ptrace register numbers. Also, use
2641 outputs from regmap() to make decisions regarding type of
2642 ptrace() call to make. In particular, don't compare against
2643 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2644 (fetch_inferior_registers, store_inferior_registers): Where
2645 possible, obtain register numbers from tdep struct. Don't
2646 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2647 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2648 (LAST_UISA_SP_REGNUM): Delete.
2649
11bf77db
KB
26502002-07-25 Kevin Buettner <kevinb@redhat.com>
2651
2652 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2653 (fetch_registers, store_register, fetch_core_registers): Don't
2654 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2655 regcache_collect() as appropriate.
2656 (find_toc_address): Format hex address with local_hex_string().
2657
06afebeb
AC
26582002-07-25 Andrew Cagney <ac131313@redhat.com>
2659
2660 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2661 bfd/elf32-frv.c.
2662
8c554d79
TT
26632002-07-24 Tom Tromey <tromey@redhat.com>
2664
2665 * jv-exp.y: Marked all strings with _().
2666 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2667 internal_error.
2668 (MethodInvocation, CastExpression, parse_number, yyerror,
2669 java_type_from_name, push_expression_name, yylex): Typo fixes.
2670
e4c242d9
DJ
26712002-07-24 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2674 (tee_file_flush, tee_file_write, tee_file_fputs)
2675 (tee_file_isatty): New.
2676 * ui-file.h (tee_file_new): Add prototype.
2677
ebf56fd3
AS
26782002-07-24 Aidan Skinner <aidan@velvet.net>
2679
2680 * ada-lang.c: Change k&r style function definitions to prototyped
2681 form.
2682 * ada-typeprint.c: Change k&r style function definitions to prototyped
2683 form.
2684 * ada-valprint.c: Change k&r style function definitions to prototyped
2685 form.
2686
7fb623f7
AC
26872002-07-24 Andrew Cagney <cagney@redhat.com>
2688
2689 * README: Remove reference to remote-bug.
2690 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2691 remote-bug.c.
2692 (m88k-nat.o): Delete rule.
2693 (m88k-tdep.o): Delete rule.
2694 (remote-bug.o): Delete rule.
2695 * MAINTAINERS: Mark as obsolete.
2696 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2697 * m88k-tdep.c: Make file obsolete.
2698 * config/m88k/m88k.mh: Ditto.
2699 * config/m88k/delta88v4.mh: Ditto.
2700 * config/m88k/delta88v4.mt: Ditto.
2701 * config/m88k/delta88.mt: Ditto.
2702 * config/m88k/delta88.mh: Ditto.
2703 * remote-bug.c: Ditto.
2704 * config/m88k/tm-delta88.h: Ditto.
2705 * config/m88k/nm-delta88v4.h: Ditto.
2706 * config/m88k/xm-delta88.h: Ditto.
2707 * config/m88k/xm-dgux.h: Ditto.
2708 * config/m88k/tm-m88k.h: Ditto.
2709 * config/m88k/nm-m88k.h: Ditto.
2710 * config/m88k/tm-delta88v4.h: Ditto.
2711 * m88k-nat.c: Ditto.
2712 * cxux-nat.c: Ditto.
2713 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2714 and m88*-*-* obsolete.
2715 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2716 m88*-*-* obsolete.
2717
37611a2b
AC
27182002-07-24 Andrew Cagney <cagney@redhat.com>
2719
2720 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2721 constant. Same for local pointer variables.
2722 (extract_signed_integer): Ditto.
2723 * defs.h (extract_unsigned_integer): Update.
2724 (extract_signed_integer): Update.
2725
1aaa5f99
AC
27262002-07-24 Andrew Cagney <cagney@redhat.com>
2727
2728 * regcache.c (regcache_raw_write): Change buf parameter to a
2729 constant void pointer.
2730 (regcache_raw_read): Change buf parameter to a void pointer.
2731 (legacy_write_register_gen): Change myaddr parameter a constant
2732 void pointer.
2733 (supply_register): Change val parameter to a const void pointer.
2734 * regcache.h (regcache_raw_write): Update declaration.
2735 (regcache_raw_read): Update declaration.
2736 (supply_register): Update declaration.
2737
b4f5539f
TT
27382002-07-24 Tom Tromey <tromey@redhat.com>
2739
2740 * defs.h (gdb_readline_wrapper): Declare.
2741 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2742 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2743 * top.c (gdb_readline_wrapper): New function.
2744 (command_line_input): Use it.
2745
0818c12a
AC
27462002-07-24 Andrew Cagney <cagney@redhat.com>
2747
2748 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2749 regcache_read and regcache_write.
2750 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2751 * regcache.c: Update.
2752 * sh-tdep.c (sh64_push_arguments): Update comment.
2753 (sh_pseudo_register_read): Update.
2754 (sh_pseudo_register_write): Update.
2755 (sh4_register_read): Update.
2756 (sh4_register_write): Update.
2757 (sh64_pseudo_register_read): Update.
2758 (sh64_pseudo_register_write): Update.
2759 (sh64_register_read): Update.
2760 (sh64_register_write): Update.
2761 * i386-tdep.c (i386_extract_return_value): Update.
2762 (i386_extract_struct_value_address): Update.
2763 (i386_extract_return_value): Update.
2764 * blockframe.c (generic_read_register_dummy): Update.
2765 (generic_call_dummy_register_unwind): Update
2766 * infrun.c (write_inferior_status_register): Update.
2767
f7321c06
JB
27682002-07-23 Jim Blandy <jimb@redhat.com>
2769
2770 * parser-defs.h (expression_context_pc): Make this extern.
2771 (Thanks to Michael Snyder.)
2772
2037aebb
AC
27732002-07-23 Andrew Cagney <ac131313@redhat.com>
2774
2775 GDB 5.2.1 released from 5.2 branch.
2776 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2777 * README: Update to mention 5.2.1.
2778
66504d44
MS
27792002-07-23 Mark Salter <msalter@redhat.com>
2780
2781 * remote.c (remote_read_bytes): Fix check for error.
2782
27bae383
KB
27832002-07-22 Kevin Buettner <kevinb@redhat.com>
2784
2785 * aix-thread.c (language.h): Include.
2786 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2787 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2788 Print newlines at end of debug messages.
2789 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2790 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2791
27922002-07-22 Kevin Buettner <kevinb@redhat.com>
2793
2794 * aix-thread.c (ppc-tdep.h): Include.
2795 (special_register_p): New function.
2796 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2797 (store_regs_user_thread): Use register number information from
2798 gdbarch_tdep struct instead of hardcoded offsets relative to
2799 FIRST_UISA_SP_REGNUM.
2800 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2801 special_register_p() instead of using FPLAST_REGNUM and
2802 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2803 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2804 will be MQ's register number.
2805
28062002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2807
2808 * aix-thread.c (ops): Rename to aix_thread_ops.
2809 (base_ops): Rename to base_target.
2810 (ops_attach): Rename to aix_thread_attach.
2811 (ops_detach): Rename to aix_thread_detach.
2812 (ops_resume): Rename to aix_thread_detach.
2813 (ops_wait): Rename to aix_thread_wait.
2814 (ops_kill): Rename to aix_thread_kill.
2815 (init_ops): Rename to init_aix_thread_ops.
2816 (ops_fetch_register): Rename to aix_thread_fetch_register.
2817 (ops_store_register): Rename to aix_thread_store_register.
2818 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2819 (ops_thread_alive): Rename to aix_thread_thread_alive.
2820 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2821 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2822 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2823 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2824 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2825 (store_regs_lib): Rename to store_regs_user_thread.
2826 (store_regs_kern): Rename to store_regs_kernel_thread.
2827
27bae383 28282002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2829
2830 * aix-thread.c (ops_prepare_to_store): Eliminate.
2831 (init_ops): Don't initialize ops.prepare_to_store.
2832 (store_regs_kern): Pre-fetch register buffers from child,
2833 because some registers may not be in the cache. Copy
2834 regs from register cache only if they are cached.
2835 (store_regs_lib): Copy regs from register cache only
2836 if they are cached.
2837 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2838 fill_gprs64): Ditto.
2839
61c5da0b
KB
28402002-07-22 Kevin Buettner <kevinb@redhat.com>
2841
2842 * aix-thread.c (gdb_assert.h): Include.
2843 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2844 register sizes (from register cache) match size of buffer holding
2845 register data.
2846 (fill_sprs32): Change parameter types to match those in the ptrace()
2847 buffer.
2848 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2849 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2850
28512002-07-22 Michael Snyder <msnyder@redhat.com>
2852
2853 * aix-thread.c (supply_sprs64): Cosmetic change.
2854 (supply_sprs32): Cosmetic change.
2855 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2856 (fill_sprs64): Use regcache_collect instead of read_register.
2857 (store_regs_lib): Use regcache_collect instead of
2858 read_register. Use fill_sprs32 instead of fill_sprs64,
2859 if debugging a 32-bit architecture.
2860 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2861 out of the register cache, instead of passing a pointer into
2862 the register cache directly to ptrace. Use regcache_collect
2863 insteaad of read_register.
2864 (ops_prepare_to_store): Use target_read_registers instead
2865 of read_register_bytes.
2866
36479eb1
AS
28672002-07-20 Aidan Skinner <aidan@velvet.net>
2868
2869 * MAINTAINERS: Add self under write after approval.
2870
80ae6ee2
AS
28712002-07-20 Aidan Skinner <aidan@velvet.net>
2872
2873 * ada-tasks.c: Change k&r style function definitions to prototyped
2874 form.
2875
8a8ab2b9
AC
28762002-07-19 Andrew Cagney <ac131313@redhat.com>
2877
2878 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2879 * x86-64-tdep.c: Include "objfiles.h".
2880 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2881 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2882
fb16b900
ML
28832002-07-17 Michal Ludvig <michal@suse.cz>
2884
2885 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2886 (update_context): Initialise cfa variable.
2887
0fe7bf7b
MS
28882002-07-17 Michael Snyder <msnyder@redhat.com>
2889
2890 * aix-thread.c: Shorten some long lines.
2891 Bring comments into line with code spec.
2892
488f131b
JB
28932002-07-18 Joel Brobecker <brobecker@gnat.com>
2894
2895 * infrun.c: Re-indent using gdb_indent.sh.
2896
46c415d2
JB
28972002-07-18 Joel Brobecker <brobecker@gnat.com>
2898
2899 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2900 Leave the indentation temporarily untouched, to minimize the diffs.
2901
cdecafbe
EZ
29022002-07-18 Elena Zannoni <ezannoni@redhat.com>
2903
2904 * stabsread.c: Make os9k sections of the code obsolete,
2905 for real this time.
2906 * stabsread.h: Make os9k sections of the code obsolete.
2907
7b6aa020
ML
29082002-07-18 Michal Ludvig <mludvig@suse.cz>
2909
09ec9b38
ML
2910 * linux-low.c (regsets_store_inferior_registers): Add free()
2911 at the end of a loop to prevent memory leak.
2912 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2913 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2914 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2915 line a comment.
4894ac5d 2916 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2917
233282cd
JB
29182002-07-17 Jim Blandy <jimb@redhat.com>
2919
2920 * macrocmd.c (info_macro_command): Remove newline from error
2921 message.
2922
7b6aa020 29232002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2924
2925 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2926 (sh_gdbarch_init): Use it for sh-dsp.
2927
f7ef9339
KB
29282002-07-16 Kevin Buettner <kevinb@redhat.com>
2929
2930 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2931 64-bit DWARF2 format.
2932
8dd72958
JB
29332002-07-16 Joel Brobecker <brobecker@gnat.com>
2934
2935 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2936 <sys/proc.h> when not available.
2937
a99a9e1b
AC
29382002-07-16 Andrew Cagney <ac131313@redhat.com>
2939
2940 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2941 * stabsread.c: Make os9k sections of the code obsolete.
2942 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2943 * config/i386/i386os9k.mt: Make file obsolete.
2944 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2945 (COMMON_OBS): Remove os9kread.o
2946 (SFILES): Remove os9kread.c.
2947 (os9kread.o, remote-os9k.o): Make target obsolete.
2948 * remote-os9k.c: Make file obsolete.
2949 * os9kread.c: Make file obsolete.
2950 * Makefile.in
2951
7a3085c1
AC
29522002-07-16 Andrew Cagney <ac131313@redhat.com>
2953
2954 * NEWS: Mention that the FR30 has been made obsolete.
2955 * fr30-tdep.c: Make file obsolete.
2956 * config/fr30/tm-fr30.h: Ditto.
2957 * config/fr30/fr30.mt: Ditto.
2958 * configure.tgt: Make fr30-*-elf obsolete.
2959 * MAINTAINERS: Make fr30-elf obsolete.
2960
28a93f5a
PM
29612002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2962
2963 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2964 found is not inside a section.
2965
be006b8b
KB
29662002-07-15 Kevin Buettner <kevinb@redhat.com>
2967
2968 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2969 strerror().
2970 (pdc_realloc): Use xrealloc() instead of realloc().
2971
14fa3751
KB
29722002-07-15 Kevin Buettner <kevinb@redhat.com>
2973
2974 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2975 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2976 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2977 macros.
2978
42cc437f
KB
29792002-07-15 Kevin Buettner <kevinb@redhat.com>
2980
2981 * aix-thread.c (ptrace_check): Eliminate goto.
2982 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2983 problem.
2984
8e2c28d4
KB
29852002-07-15 Kevin Buettner <kevinb@redhat.com>
2986
2987 * aix-thread.c (gdbcmd.h): Include.
2988 (DEBUG, DBG, DBG2, dbg): Eliminate.
2989 (debug_aix_thread): New static global.
2990 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2991 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2992 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2993 invocations to DBG and DBG2 macros to test against
2994 ``debug_aix_thread'' and call fprintf_unfiltered().
2995 (_initialize_aix_thread): Add new command "set debug aix-thread".
2996
30413464
AC
29972002-07-15 Andrew Cagney <ac131313@redhat.com>
2998
2999 From Gerhard Tonn <TON@de.ibm.com>:
3000 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3001 instead of supply_register.
3002
7c43edc1
AC
30032002-07-15 Andrew Cagney <ac131313@redhat.com>
3004
3005 * dwarf2cfi.c: Include "gdb_assert.h".
3006 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3007 non-NULL.
3008 (update_context): Do not use __func__. Add missing ``break''.
3009 (update_context): Do not use __func__.
3010
9364a0ef
EZ
30112002-07-15 Elena Zannoni <ezannoni@redhat.com>
3012
3013 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3014 and its setting. Set gdbarch instruction printing functions
3015 directly. For non-rs6000 case use new function
3016 gdb_print_insn_powerpc.
3017 (gdb_print_insn_powerpc): New function.
3018
3fbeef0b
AC
30192002-07-13 Andrew Cagney <ac131313@redhat.com>
3020
92eb23c5 3021 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3022 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3023 * configure.tgt: Mark d30v-*-* as obsolete.
3024 * d30v-tdep.c: Mark file as obsolete.
3025 * config/d30v/d30v.mt: Ditto.
3026 * config/d30v/tm-d30v.h: Ditto.
3027
aacb1f0a
AS
30282002-07-13 Aidan Skinner <aidan@velvet.net>
3029
3030 * ada-tasks.c (add_task_entry): replace calls to
3031 malloc() with xmalloc
3032 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3033
3034 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3035 ada_finish_decode_line_1, all_sals_for_line
3036 ada_breakpoint_rewrite): replace calls to free() with xfree()
3037
c11d79f2
KB
30382002-07-12 Kevin Buettner <kevinb@redhat.com>
3039
3040 From Nicholas Duffek (with minor changes by Martin Hunt,
3041 Louis Hamilton, and Kevin Buettner):
3042 * aix-thread.c: New file.
3043
8e19ed76
PS
30442002-07-12 Petr Sorfa <petrs@caldera.com>
3045
3046 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3047 complaint for invalid attribute class or form.
3048 (read_func_scope): DW_AT_frame_base
3049 better handling of DW_AT_block*.
3050 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3051 better handling of DW_AT_block*.
3052 (read_common_block): DW_AT_location
3053 better handling of DW_AT_block*.
3054 (read_partial_die): DW_AT_location better handling
3055 of DW_AT_block*.
3056 (new_symbol): DW_AT_external better handling of
3057 DW_AT_block*. Proper initialization of variable
3058 "addr".
3059 (attr_form_is_block): New function that returns true
3060 if the attribute's form is of DW_FORM_block*.
3061
295401f7
DJ
30622002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3063
3064 * valops.c (find_method_list): Remove comment about
3065 removed STATIC_MEMFUNCP argument.
3066 (value_find_oload_method_list): Likewise.
3067
e42dc924
KB
30682002-07-12 Kevin Buettner <kevinb@redhat.com>
3069
3070 From Nicholas Duffek:
3071 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3072 target_new_objfile_hook.
3073
6904b546
KB
30742002-07-12 Kevin Buettner <kevinb@redhat.com>
3075
3076 From Nicholas Duffek:
3077 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3078 csect.
3079
53fe9346
AC
30802002-07-12 Andrew Cagney <cagney@redhat.com>
3081
3082 * MAINTAINERS: Mention --enable-sim-build-warnings.
3083 (m68hc11-elf): Disable sim build warnings.
3084 (m32r-elf): Mark as broken obsolete candidate.
3085 (x86_64-linux-gnu): Mark as buildable with -Werror.
3086 (arm-elf): Change -w to ``,'' which enables warnings but not
3087 -Werror.
3088
af5f3db6
AC
30892002-07-12 Andrew Cagney <ac131313@redhat.com>
3090
3091 * bcache.h: Update copyright.
3092 (struct bstring, struct bcache): Move definition to "bcache.c".
3093 Replaced by opaque declaration.
3094 (bcache_xfree): Replace free_bcache.
3095 (bcache_xmalloc, bcache_memory_used): Declare.
3096
3097 * bcache.c: Update copyright.
3098 (struct bstring, struct bcache): Moved to here from "bcache.h".
3099 Update comments.
3100 (bcache_xmalloc, bcache_memory_used): New functions.
3101 (bcache_xfree): Replace function free_bcache.
3102
3103 * Makefile.in (objfiles.o): Add $(bcache_h).
3104 (objfiles_h): Remove $(bcache_h).
3105 (symfile.o): Add $(bcache_h).
3106
3107 * symmisc.c: Update copyright.
3108 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3109 (print_objfile_statistics): Use bcache_memory_used.
3110
3111 * symfile.c: Include "bcache.h".
3112 (reread_symbols): Use bcache_xfree.
3113 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3114 (add_psymbol_to_list): Pass psymbol_cache by value.
3115 (add_psymbol_with_dem_name_to_list): Ditto.
3116
3117 * objfiles.h: Update copyright.
3118 (struct bcache): Declare opaque. Do not include "bcache.h".
3119 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3120 bcache'' pointers.
3121 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3122
3123 * objfiles.c: Include "bcache.h". Update copyright.
3124 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3125 macro_cache.
3126 (free_objfile): Use bcache_xfree.
3127
444199e7
GS
31282002-07-11 Grace Sainsbury <graces@redhat.com>
3129
3130 * monitor.c (monitor_fetch_register): Make name a constant.
3131 (monitor_store_register): Same.
3132
261397f8
DJ
31332002-07-11 Daniel Jacobowitz <drow@mvista.com>
3134
3135 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3136 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3137 (finish_block) For non-function blocks, hash the symbol table. For
3138 function blocks, mark the symbol table as unhashed.
3139 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3140 (msymbol_hash_iw): Likewise.
3141 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3142 value.
3143 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3144 (lookup_minimal_symbol): Likewise for both.
3145 * symtab.h (struct block): Add `hashtable' flag. Comment the
3146 hashtable.
3147 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3148 (ALL_BLOCK_SYMBOLS): Update.
3149 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3150 (struct symbol): Add `hash_next' pointer.
3151 * symtab.c (lookup_block_symbol): Search using the hash table when
3152 possible.
3153 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3154 (search_symbols, find_addr_symbol): Likewise.
3155
3156 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3157 (read_dst_symtab): Likewise.
3158 * jv-lang.c (get_java_class_symtab): Likewise.
3159 * mdebugread.c: Include "gdb_assert.h".
3160 (shrink_block): Assert that the block being modified is not hashed.
3161 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3162 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3163 symbols.
3164 (dump_symtab): Recognize hashed blocks.
3165 * printcmd.c (print_frame_args): Assert that function blocks do not
3166 have hashed symbol tables.
3167 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3168 (fill_in_ada_prototype, debug_print_block): Likewise.
3169 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3170
6f0eaa01
CV
31712002-07-11 Corinna Vinschen <vinschen@redhat.com>
3172
3173 * stack.c (print_frame): Use result of frame_address_in_block()
3174 instead of fi->pc when evaluating symbols.
3175 (backtrace_command_1): Ditto.
3176
a208b0cb
AC
31772002-07-11 Andrew Cagney <cagney@redhat.com>
3178
3179 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3180 Make static.
3181
3182 * arm-tdep.c (arm_register_name): Make return type constant.
3183
a6b6b089
AC
31842002-07-10 Andrew Cagney <ac131313@redhat.com>
3185
5ae5f592
AC
3186 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3187 prototype.
3188 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3189 * s390-tdep.c (s390_fp_regnum): Ditto.
3190 (s390_read_fp): Ditto.
3191 (s390_pop_frame): Ditto.
3192 (_initialize_s390_tdep): Ditto.
3193 * remote.c (get_remote_state): Ditto.
3194 * procfs.c (mappingflags): Ditto.
3195 * memattr.c (_initialize_mem): Ditto.
3196 * mcore-tdep.c (mcore_pop_frame): Ditto.
3197 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3198 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3199 * language.c (set_case_str): Ditto.
3200 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3201 * frv-tdep.c (new_variant): Ditto.
3202 (frv_stopped_data_address): Ditto.
3203 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3204 (context_alloc): Ditto.
3205 (frame_state_alloc): Ditto.
3206 (unwind_tmp_obstack_init): Ditto.
3207 (unwind_tmp_obstack_free): Ditto.
3208 (cfi_read_fp): Ditto.
3209 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3210 (cris_pop_frame): Ditto.
3211 * c-lang.c (scanning_macro_expansion): Ditto.
3212 (finished_macro_expansion): Ditto.
3213 (c_preprocess_and_parse): Ditto.
3214 * gdbarch.sh: Ditto.
3215 * gdbarch.h, gdbarch.c: Regenerate.
3216 * config/mn10200/tm-mn10200.h: Adjust indentation.
3217 * target.c: Adjust indentation.
3218 * symtab.h: Adjust indentation.
3219 * stabsread.h: Adjust indentation.
3220 * remote-es.c: Adjust indentation.
3221 * os9kread.c: Adjust indentation.
3222
32232002-07-10 Andrew Cagney <ac131313@redhat.com>
3224
a6b6b089
AC
3225 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3226 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3227
a1789893
GS
32282002-07-10 Grace Sainsbury <graces@redhat.com>
3229
3230 * NEWS: Mention m68k, mcore multi-arching.
3231 * MAINTAINERS: Change status of m68k, mcore to reflect
3232 multi-arching.
3233
02f0d45d
DJ
32342002-07-10 Daniel Jacobowitz <drow@mvista.com>
3235
3236 * valops.c (find_overload_match): Free oload_syms.
3237
f15f768e
JB
32382002-07-09 Joel Brobecker <brobecker@gnat.com>
3239
3240 Define HAVE_SYS_PROC_H if sys/proc.h exists
3241 * configure.in: Add check for sys/proc.h
3242 * config.in: Regenerate.
3243 * configure: Regenerate.
3244
902a7139
GS
32452002-07-09 Grace Sainsbury <graces@redhat.com>
3246
3247 * config/m68k/tm-m68k.h: Remove macros wrapped in
3248 #if !GDB_MULTI_ARCH.
3249
a534e424
AC
32502002-07-08 Andrew Cagney <ac131313@redhat.com>
3251
3252 * config.in, configure: Regenerate.
3253
9b94f7bf
MK
32542002-07-08 Mark Kettenis <kettenis@gnu.org>
3255
3256 * dwarf2cfi.c: Include "gcore.h".
3257 (execute_stack_op): Fix implementation of the
3258 DW_OP_deref and DW_OP_deref_size operators by letting do their
3259 lookup in the target.
3260
1d34db41
MK
32612002-07-07 Mark Kettenis <kettenis@gnu.org>
3262
3263 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3264 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3265 tdep->sc_sp_offset.
3266
79d5b63a
DJ
32672002-07-05 Daniel Jacobowitz <drow@mvista.com>
3268
3269 Fix PR gdb/595, gdb/602
3270 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3271 Don't call value_cast, just read the vtable pointer; update comments
3272 to match.
3273
3bb912e8
GS
32742002-07-05 Grace Sainsbury <graces@redhat.com>
3275
3276 * config/mcore/tm-mcore.h: Remove file.
3277 * config/mcore/mcore.mt: Remove definition of TM_FILE
3278 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3279
ca39387d
MK
32802002-07-05 Mark Kettenis <kettenis@gnu.org>
3281
3282 * i386bsd-tdep.c: Include "gdb_string.h".
3283
efdc1108
GS
32842002-07-04 Grace Sainsbury <graces@redhat.com>
3285
3286 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3287 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3288 mcore-tdep.
3289 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3290 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3291 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3292 (RETVAL_REGNUM): Move macros from tm-mcore.h
3293 (mcore_reg_struct_has_addr): New function.
3294 (mcore_gdbarch_init): Added initializations for the macros removed
3295 from tm-mcore.h.
3296
bb21884d
MK
32972002-07-04 Mark Kettenis <kettenis@gnu.org>
3298
3299 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3300 traditonal string branding within the ELF header.
3301
228c6d41
DJ
33022002-07-04 Daniel Jacobowitz <drow@mvista.com>
3303
3304 * symtab.c (remove_params): New function.
3305 (make_symbol_overload_list): Use it instead of cplus_demangle.
3306 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3307
2404952e
MK
33082002-07-04 Mark Kettenis <kettenis@gnu.org>
3309
e5e4acad
MK
3310 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3311
baadce09
MK
3312 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3313 New variables.
3314 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3315 and tdep->sigtramp_end.
3316 * i386obsd-nat.c: New file.
3317 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3318
2404952e
MK
3319 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3320 Don't call get_current_frame().
3321
9b4f1ba7
PM
33222002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3323
3324 * i386-nat.c (child_post_startup_inferior): New function
3325 calling i386_cleanup_dregs if
3326 I386_USE_GENERIC_WATCHPOINTS is defined.
3327 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3328 conditional to acknowledge that i386-nat.c has its
3329 own child_post_startup_inferior function.
3330
c0d1d883
MK
33312002-07-04 Mark Kettenis <kettenis@gnu.org>
3332
00f8375e
MK
3333 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3334 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3335 instead of MAX_REGISTER_RAW_SIZE.
3336 (i386_extract_return_value, i386_extract_struct_value_address):
3337 Convert to use regcache.
3338 (i386_gdbarch_init): Set max_register_raw_size and
3339 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3340 Set extract_return_value and extract_struct_value_address instead
3341 of their deprecated variants.
3342
c0d1d883
MK
3343 Convert i386 target to generic dummy frames.
3344 * i386-tdep.c: Include "symfile.h".
3345 (i386_frameless_signal_p): Consider a function to be frameless if
3346 the pc points at the first instruction of the function.
3347 (i386_frame_chain): Handle (generic) call dummies.
3348 (i386_frame_saved_pc): Likewise.
3349 (i386_frame_init_saved_regs): Remove code dealing with call
3350 dummies on the stack.
3351 (i386_push_dummy_frame): Removed.
3352 (i386_call_dummy_words): Removed.
3353 (i386_fix_call_dummy): Removed.
3354 (i386_push_return_address): New function.
3355 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3356 parameter, and don't call get_current_frame.
3357 (i386_pop_frame): New function.
3358 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3359 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3360 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3361 call_dummy_length to 0, set call_dummy_words to NULL, set
3362 sizeof_call_dummy_words to 0, set fix_call_dummy to
3363 generic_fix_call_dummy, set pc_in_call_dummy to
3364 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3365 generic_push_dummy_frame, set push_return_address to
3366 i386_push_return_address and set frame_chain_valid to
3367 generic_file_frame_chain_valid.
3368
049ee0e4
AC
33692002-07-03 Andrew Cagney <ac131313@redhat.com>
3370
3371 * gdbarch.sh (struct regcache): Add opaque declaration.
3372 (EXTRACT_RETURN_VALUE): New architecture method.
3373 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3374 * gdbarch.h, gdbarch.c: Regenerate.
3375 * arch-utils.c (legacy_extract_return_value): New function.
3376 * arch-utils.h (legacy_extract_return_value): Declare.
3377 * values.c (value_being_returned): Re-enable code handling
3378 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3379 deprecated_grub_regcache_for_registers call to block handling
3380 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3381 (EXTRACT_RETURN_VALUE): Do not define.
3382
4e0d9804
GS
33832002-07-03 Grace Sainsbury <graces@redhat.com>
3384
3385 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3386 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3387 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3388 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3389 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3390 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3391 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3392 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3393 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3394 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3395 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3396 argument so the function fits the prototype in the architecture
3397 vector.
3398 (mcore_pop_frame): Remove argument so the function fits the
3399 prototype. Use get_current_frame instead of the argument.
3400 (mcore_push_arguments): Change type of struct_return so the
3401 function can be used in the architecture vector.
3402 (mcore_store_struct_return): Add.
3403 (mcore_frame_init_saved_regs): Add.
3404 (mcore_gdbarch_init): Add function calls to replace the macros
3405 removed from tm-mcore.h
3406
36160dc4
AC
34072002-07-03 Andrew Cagney <ac131313@redhat.com>
3408
3409 * infcmd.c (print_return_value): Remove compatibility code calling
3410 deprecated_grub_regcache_for_registers.
3411
3412 * values.c: Include "regcache.h".
3413 (value_being_returned): Update. Use
3414 deprecated_grub_regcache_for_registers to extract the register
3415 buffer address.
3416 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3417 ``struct regcache''.
3418 * Makefile.in (values.o): Add dependency on $(regcache_h).
3419
3420 * inferior.h (run_stack_dummy): Change type of second parameter to
3421 a ``struct regcache''.
3422 * valops.c (hand_function_call): Change type of retbuf to ``struct
3423 regcache''. Allocate using regcache_xmalloc, clean using
3424 make_cleanup_regcache_xfree.
3425 * infcmd.c (run_stack_dummy): Update. Use
3426 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3427
3428 * regcache.c (do_regcache_xfree): New function.
3429 (make_cleanup_regcache_xfree): New function.
3430 * regcache.h (make_cleanup_regcache_xfree): Declare.
3431
e64d9b3d
MH
34322002-07-03 Martin M. Hunt <hunt@redhat.com>
3433
4dd79c29
MH
3434 * event-top.c (command_line_handler): Don't read past
3435 beginning of buffer.
e64d9b3d 3436
4dd79c29
MH
34372002-07-03 Martin M. Hunt <hunt@redhat.com>
3438
e64d9b3d
MH
3439 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3440 struct frame_id.
3441 (varobj_create): Store frame_id for root.
3442 (varobj_gen_name): Use xasprintf.
3443 (varobj_update): Save and restore frame using get_frame_id() and
3444 frame_find_by_id().
3445 (create_child): Use xasprintf.
3446 (new_root_variable): Initialize frame_id.
3447 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3448 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3449 to prevent memory leak.
3450
26e6c56a
AC
34512002-07-03 Andrew Cagney <ac131313@redhat.com>
3452
3453 * valops.c (hand_function_call): Move declaration of retbuf to
3454 start of function, allocate using malloc, add a cleanup but before
3455 the inf_status cleanup, cleanup the buffer. Rename local variable
3456 old_chain to inf_status_cleanup.
3457
f436dd25
MH
34582002-07-03 Martin M. Hunt <hunt@redhat.com>
3459
3460 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3461
3462 * cli/cli-decode.c (cmd_func_p): New function.
3463 (cmd_func): New function.
3464
3465 * command.h: Add cmd_func() and cmd_func_p().
3466
4cfe2084
GS
34672002-07-03 Grace Sainsbury <graces@redhat.com>
3468
3469 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3470 (REGISTER_SIZE): Remove.
3471 (MAX_REGISTER_RAW_SIZE): Remove.
3472 (REGISTER_VIRTUAL_TYPE): Remove.
3473 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3474 (REGISTER_NAME): Remove.
3475 (USE_GENERIC_DUMMY_FRAMES): Remove.
3476 (CALL_DUMMY): Remove.
3477 (CALL_DUMMY_START_OFFSET): Remove.
3478 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3479 (CALL_DUMMY_LOCATION): Remove.
3480 (FIX_CALL_DUMMY): Remove.
3481 (CALL_DUMMY_ADDRESS): Remove.
3482 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3483 (SAVE_DUMMY_FRAME_TOS): Remove.
3484 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3485 (mcore_register_virtual_type): New function.
3486 (mcore_register_byte): New function.
3487 (mcore_register_size): New function.
3488 (mcore_register_name): New function.
3489 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3490 macros removed from tm-mcore.h.
3491 (mcore_dump_tdep): Add.
3492 (_initialize_mcore_tdep): Add gdbarch_register call.
3493
4fd667e9
MK
34942002-07-03 Mark Kettenis <kettenis@gnu.org>
3495
3496 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3497 frameless_look_for_prologue, such that we actually call this
3498 function.
3499
42f99ac2
JB
35002002-07-02 Joel Brobecker <brobecker@gnat.com>
3501
3502 * frame.h (frame_address_in_block): New function.
3503
3504 * blockframe.c (frame_address_in_block): New function extracted
3505 from get_frame_block().
3506 (get_frame_block): Use frame_address_in_block().
3507 (block_innermost_frame): Use frame_address_in_block() to match
3508 the frame pc address against the block boundaries rather than
3509 the frame pc directly. This prevents a failure when a frame pc
3510 is actually a return-address pointing immediately after the end
3511 of the given block.
3512
103a1597 35132002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3514
3515 * MAINTAINERS: Add self under write after approval.
3516
35172002-07-02 Grace Sainsbury <graces@redhat.com>
3518
103a1597
GS
3519 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3520 used in architecture vector. The default is
3521 m68k_local_breakpoint_from_pc.
3522 (m68k_local_breakpoint_from_pc): Add.
3523 (enum): Add register numbers from tm-m68k.h.
3524 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3525 vector.
3526 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3527 GDB_MULTI_ARCH_PARTIAL.
3528 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3529 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3530 m68k-tdep.c.
3531 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3532 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3533 to enum in m68k-tdep.c
3534
7a5a0534
JB
35352002-07-02 Joel Brobecker <brobecker@gnat.com>
3536
3537 * solib-osf.c (open_map): Compute the list of shared libraries
3538 loaded by the inferior, rather than the list of libraries loaded
3539 by GDB itself. Otherwise, GDB ends up reading the symbols from
3540 the wrong shared libraries...
3541
6f558d74
MK
35422002-07-02 Mark Kettenis <kettenis@gnu.org>
3543
b7d15bf7
MK
3544 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3545 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3546 macros.
3547 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3548 Remove functions.
3549 (FRAMELESS_SIGNAL): Remove function.
3550 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3551 i386_linux_saved_pc_after_call): Removed.
3552 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3553 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3554 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3555
6bff26de
MK
3556 * i386-tdep.c (i386_frameless_signal_p): New function.
3557 (i386_frame_chain): Deal with frameless signals.
3558 (i386_sigtramp_saved_sp): New function.
3559 (i386_frame_saved_pc): Deal with frameless signals.
3560 (i386_saved_pc_after_call): Make sure the correct value is
3561 returned just after entry into a sigtramp.
3562 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3563 i386fbsd4_sc_sp_offset): New variables.
3564 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3565 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3566 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3567 similiar to what we already did for sc_pc_offset.
3568 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3569 tdep->sc_sp_offset.
3570
6f558d74
MK
3571 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3572
145564b7
ML
35732002-07-02 Michal Ludvig <mludvig@suse.cz>
3574
3575 * config/i386/tm-x86-64linux.h: New.
3576 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3577 definitions.
3578 * config/i386/nm-x86-64.h: Rename to ...
3579 * config/i386/nm-x86-64linux.h: ... this one.
3580 * config/i386/x86-64linux.mh: Reflect the above change.
3581
3a1e71e3
MK
35822002-07-01 Mark Kettenis <kettenis@gnu.org>
3583
21d0e8a4
MK
3584 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3585 with sigcontext_addr. Add sc_sp_offset.
3586 (i386bsd_sigtramp_saved_pc): Remove prototype.
3587 (i386bsd_sicontext_addr): Add prototype.
3588 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3589 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3590 (i386_svr4_sigtramp_saved_pc): Removed.
3591 (i386_svr4_sigcontext_addr): New function.
3592 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3593 Initialize tdep->sigcontext_addr instead. Initialize
3594 tdep->sc_pc_offset and tdep->sc_sp_offset.
3595 (i386_gdbarch_init): Likewise.
3596 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3597 any more.
3598 (i386bsd_sigtramp_saved_pc): Remove function.
3599 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3600 Initialize tdep->sigcontext_addr instead. Initialize
3601 tdep->sc_pc_offset.
3602 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3603 of tdep->sigtramp_saved_pc.
3604 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3605 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3606 instead.
3607
3a1e71e3
MK
3608 * i386-tdep.c (i386_frameless_function_invocation,
3609 i386_frame_num_args, i386_frame_init_saved_regs,
3610 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3611 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3612 i386_extract_return_value, i386_store_return_value,
3613 i386_extract_struct_value_address, i386_register_virtual_type,
3614 i386_register_convertible, i386_register_convert_to_virtual,
3615 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3616 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3617 static.
3618
52e9098c
MK
36192002-07-01 Mark Kettenis <kettenis@gnu.org>
3620
77b13a25
MK
3621 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3622
52e9098c
MK
3623 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3624 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3625 this macro. Include "value.h".
3626
1b372fff
AS
36272002-06-30 Aidan Skinner <aidan@velvet.net>
3628
3629 * ada-exp.tab.c: remove as it's a generated file
3630 * ada-lex.c: remove as it's a generated file
3631
9c5045b5
MK
36322002-06-30 Mark Kettenis <kettenis@gnu.org>
3633
4a93c5bb
MK
3634 * config/i386/tm-i386.h (struct frame_info, struct
3635 frame_saved_regs, struct value, struct type): Remove forward
3636 declarations.
3637
322d4fe0
MK
3638 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3639 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3640 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3641 (FILL_FPXREGSET): Define.
3642
fdd8263d
MK
3643 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3644
482e577b
MK
3645 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3646 i[3456]86-*-netbsd* case.
3647 * config/i386/tm-obsd.h: Removed.
3648 * config/i386/obsd.mt: Removed.
3649 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3650 core-aout.o.
3651 (MH_CFLAGS): Add -DYYDEBUG=0.
3652
6916549a
MK
3653 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3654 i386nbsd_sc_pc_offset on OpenBSD too.
3655
9c5045b5
MK
3656 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3657 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3658 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3659 define.
3660 * i386bsd-tdep.c: Include "arch-utils.h".
3661 (i386bsd_aout_in_solib_call_trampoline): New function.
3662 (i386bsd_init_abi): Set in_solib_call_trampoline to
3663 i386bsd_aout_in_solib_call_trampoline.
3664 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3665 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3666
aa84d1bb
AC
36672002-06-28 Andrew Cagney <ac131313@redhat.com>
3668
3669 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3670 (struct obstack, struct bcache): Add opaque declarations.
3671 * Makefile.in (macrotab_h): Update
3672
b4d83933
AC
36732002-06-28 Andrew Cagney <ac131313@redhat.com>
3674
3675 * blockframe.c (generic_find_dummy_frame): Change return type to
3676 ``struct regcache''.
3677 (struct dummy_frame): Replace field ``registers'' with regcache, a
3678 struct regcache object.
3679 (generic_find_dummy_frame): Update.
3680 (generic_push_dummy_frame): Update. Use regcache_xfree,
3681 regcache_xmalloc and regcache_cpy.
3682 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3683 regcache_xfree.
3684 (deprecated_generic_find_dummy_frame): Update.
3685 (generic_read_register_dummy): Update. Use
3686 regcache_read_as_address.
3687 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3688 (generic_get_saved_register): Update. Use regcache_read.
3689
08c0b5bc
AC
36902002-06-28 Andrew Cagney <ac131313@redhat.com>
3691
3692 * Makefile.in (objfiles_h): Add $(bcache_h).
3693 * objfiles.h: Include "bcache.h".
3694
3695 * Makefile.in (symtab_h): Remove $(bcache_h).
3696 * symtab.h: Do not include "bcache.h".
3697
1f89801a
AC
36982002-06-28 Andrew Cagney <ac131313@redhat.com>
3699
3700 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3701 generic_func_frame_chain_valid.
3702
b9644b58
DB
37032002-06-28 David O'Brien <obrien@FreeBSD.org>
3704
3705 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3706 * config/i386/tm-fbsd.h: Likewise.
3707
dd486634
AC
37082002-06-28 Andrew Cagney <ac131313@redhat.com>
3709
3710 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3711 generic_unwind_get_saved_register.
3712
0b434a00
AC
37132002-06-27 Andrew Cagney <ac131313@redhat.com>
3714
3715 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3716 * regcache.c (supply_register): Add missing argument to
3717 register_buffer call.
3718
f30e5a77
AC
37192002-06-27 Andrew Cagney <ac131313@redhat.com>
3720
3721 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3722 Solaris /bin/grep does not not like it. From Peter Schauer.
3723
9f064c95
TT
37242002-06-26 Tom Tromey <tromey@redhat.com>
3725
3726 * command.h (add_setshow_cmd): Declare.
3727 (add_setshow_cmd_full): Declare.
3728 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3729 returns void. Use add_setshow_cmd_full.
3730 (add_setshow_cmd_full): New function.
3731 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3732 (add_setshow_boolean_cmd): Likewise.
3733
099c7589
JT
37342002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3735
3736 * config/vax/tm-vax.h: Protect from multiple inclusion.
3737 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3738 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3739 * config/vax/tm-vaxbsd.h: ...here. New file.
3740 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3741
1d049c5e
JT
37422002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3743
3744 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3745 (BELIEVE_PCC_PROMOTION): Remove.
3746 (AP_REGNUM): Move to...
3747 * config/vax/nm-vax.h: ...here.
3748 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3749 (vax_breakpoint_from_pc): New function.
3750 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3751 and gdbarch_believe_pcc_promotion.
3752
4791e091
JT
37532002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3754
3755 * Makefile.in (vax_tdep_h): Define.
3756 (vax-tdep.o): Use $(vax_tdep_h).
3757 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3758 (vax_dump_tdep): New function.
3759 (_initialize_vax_tdep): Register vax_dump_tdep.
3760 * vax-tdep.h: Include osabi.h.
3761 (struct gdbarch_tdep): New.
3762
da130f98
AC
37632002-06-26 Andrew Cagney <cagney@redhat.com>
3764
3765 * frame.h (deprecated_generic_find_dummy_frame): Rename
3766 generic_find_dummy_frame.
3767 * blockframe.c (generic_find_dummy_frame): Make static.
3768 (deprecated_generic_find_dummy_frame): New function.
3769 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3770 generic_find_dummy_frame with deprecated_find_dummy_frame.
3771 (sh64_nofp_frame_init_saved_regs): Ditto.
3772 (sh_fp_frame_init_saved_regs): Ditto.
3773 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3774 (s390_frame_chain): Ditto.
3775 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3776
6300c360
GS
37772002-06-26 Grace Sainsbury <graces@redhat.com>
3778
3779 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3780 gdbarch vector are at the top.
3781 (NUM_REGS): Remove.
3782 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3783 (FRAME_ARGS_ADDRESS): Remove.
3784 (FRAME_LOCALS_ADDRESS): Remove.
3785 (FRAME_NUM_ARGS): Remove.
3786 (FRAME_ARGS_SKIP): Remove.
3787 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3788 (m68k_gdbarch_init): Add gdbarch initializations for macros
3789 undefined in tm-m68k.h
3790
1c617db8
GS
37912002-06-26 Grace Sainsbury <graces@redhat.com>
3792
3793 * monitor.h: Add the function regname to monitor_ops
3794 structure. This way NUM_REGS does not have to be a constant.
3795 * monitor.c (monitor_fetch_register): Added support for regname
3796 function. The function is called if the array regnames is NULL.
3797 (monitor_store_register): Same.
da130f98
AC
3798 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3799 regnames array.
1c617db8
GS
3800 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3801 cpu32bug_cmds.regname to point to new function.
3802 * abug-rom.c (abug_regname): Same as above.
3803 (init_abug_cmds): Same.
3804 * dbug-rom.c (dbug_regname): Same as above.
3805 (init_dbug_cmds): Same.
3806 * remote-est.c (est_regname): Same.
3807 (init_est_cmds): Same.
3808 * rom68k-rom.c (rom68k_regname): Same.
3809 (init_rom68k_cmds): Same.
3810
ea9365bb
TT
38112002-06-25 Tom Tromey <tromey@redhat.com>
3812
3813 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3814
72cec141
AC
38152002-06-25 Andrew Cagney <cagney@redhat.com>
3816
3817 * infrun.c (stop_registers): Change variable's type to ``struct
3818 regcache'''.
3819 (xmalloc_inferior_status): Delete function.
3820 (free_inferior_status): Delete function.
3821 (normal_stop): Use regcache_cpy.
3822 (struct inferior_status): Change type of fields ``stop_registers''
3823 and ``registers'' to ``struct regcache''.
3824 (write_inferior_status_register): Use regcache_write.
3825 (save_inferior_status): Instead of calling
3826 xmalloc_inferior_status, allocate the inf_status buffer directly.
3827 Use regcache_dup_no_passthrough and regcache_dup to save the
3828 buffers.
3829 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3830 Replace the stop_registers regcache instead of overriding it. Use
3831 regcache_xfree. Instead of calling free_inferior_status, xfree
3832 the buffer directly.
3833 (discard_inferior_status): Use regcache_xfree. Instead of calling
3834 free_inferior_status, xfree the buffer directly.
3835 (build_infrun): Use regcache_xmalloc.
3836 (_initialize_infrun): Delete redundant call to build_infrun.
3837
3838 * Makefile.in (infcmd.o): Add $(regcache_h).
3839
3840 * infcmd.c: Include "regcache.h".
3841 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3842 obtain the address of `stop_registers' register buffer.
3843 (print_return_value): Ditto.
3844
3845 * inferior.h (struct regcache): Add opaque declaration.
3846 (stop_registers): Change variable's declared type to ``struct
3847 regcache''.
3848
defc6f8c
TT
38492002-06-24 Tom Tromey <tromey@redhat.com>
3850
c0e624e7
TT
3851 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3852 * target.c (initialize_targets): Fixed typo in
3853 trust-readonly-sections `show' documentation.
3854
defc6f8c
TT
3855 * main.c: Marked all strings with _().
3856
2b236d82
DH
38572002-06-24 Don Howard <dhoward@redhat.com>
3858
3859 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3860 that means max CORE_ADDR+1.
3861 (lookup_mem_region): Ditto.
3862 (mem_info_command): Ditto.
3863
942dc0e9
GS
38642002-06-24 Grace Sainsbury <graces@redhat.com>
3865
3866 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3867 (REGISTER_BYTES_OK): Remove.
3868 (REGISTER_BYTES): Remove.
3869 (STORE_STRUCT_RETURN): Remove.
3870 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3871 (STORE_RETURN_VALUE): Remove.
3872 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3873 (FRAME_CHAIN): Remove.
3874 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3875 (FRAME_SAVED_PC): Remove.
3876 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3877 (m68k_store_struct_return): Add.
3878 (m68k_deprecated_extract_return_value): Add.
3879 (m68k_deprecated_extract_struct_value_address): Add.
3880 (m68k_store_return_value): Add.
3881 (m68k_frame_chain): Add.
3882 (m68k_frameless_function_invocation): Add.
3883 (m68k_frame_saved_pc): Add.
3884 (m68k_gdbarch_init): added set_gdbarch calls for new
3885 functions and deleted macros.
3886
03c30d4d
TT
38872002-06-23 Tom Tromey <tromey@redhat.com>
3888
3889 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3890 (ALLDEPFILES): Likewise.
3891 (udiheaders): Removed.
3892 (udip2soc.o): Likewise.
3893 (udi2go32.o): Likewise.
3894 (udr.o): Likewise.
3895 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3896
37e71372
AC
38972002-06-22 Andrew Cagney <ac131313@redhat.com>
3898
06a6ac57
AC
3899 * infrun.c (_initialize_infrun): Delete unnecessary call to
3900 build_infrun.
3901
37e71372
AC
3902 * regcache.h: Update comments describing the regcache_cpy family
3903 of functions.
3904 (regcache_save, regcache_restore): Delete declaration.
3905 (regcache_save_no_passthrough): Delete declaration.
3906 (regcache_restore_no_passthrough): Delete declaration.
3907 * regcache.c (regcache_save): Delete function.
3908 (regcache_save_no_passthrough): Delete function.
3909 (regcache_restore): Delete function.
3910 (regcache_restore_no_passthrough): Delete function.
3911
78f6d055
AC
39122002-06-21 Andrew Cagney <ac131313@redhat.com>
3913
3914 * config/m68k/tm-m68k.h: Fix typo.
3915 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3916 (m68k_frame_init_saved_regs): Declare.
3917
78b119cb
JB
39182002-06-21 Jim Blandy <jimb@redhat.com>
3919
3920 Remove some vestiges of Harris 88k support.
3921 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3922 register numbering quirk.
3923 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3924 odd symbols occurring in Harris 88k ELF targets.
3925
0fbb3da7
TT
39262002-06-21 Tom Tromey <tromey@redhat.com>
3927
3928 * gdb_locale.h: New file.
3929 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3930 (defs_h): Added gdb_locale.h.
3931 * configure, config.in: Rebuilt.
3932 * configure.in (PACKAGE): Define.
3933 * defs.h: Include gdb_locale.h.
3934 * main.c (captured_main): Call setlocale, bindtextdomain,
3935 textdomain.
3936
456f8b9d
DB
39372002-06-21 Dave Brolley <brolley@redhat.com>
3938
3939 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3940 * config/frv/frv.mt: New file.
3941 * config/frv/tm-frv.h: New file.
3942 * configure.tgt: Support frv-*-*.
3943 * Makefile.in (frv-tdep.o): New target.
3944 * frv-tdep.c: New file.
3945 * NEWS: Mention frv.
3946
cdd463f9
DB
39472002-06-21 Dave Brolley <brolley@redhat.com>
3948
3949 * MAINTAINERS: Add self to "Write After Approval" list.
3950
5d3ed2e3
GS
39512002-06-21 Grace Sainsbury <graces@redhat.com>
3952
3953 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3954 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3955 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3956 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3957 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3958
3959 * m68k-tdep.c: Include arch-utils.h
3960 (m68k_register_raw_size): Add.
3961 (m68k_register_virtual_size): Add.
3962 (m68k_register_virtual_type): Add.
3963 (m68k_register_name): Add.
3964 (m68k_stack_align): Add.
3965 (m68k_register_byte): Add.
3966 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3967 tm-m68k.h.
3968
7f8e7424
GS
39692002-06-21 Grace Sainsbury <graces@redhat.com>
3970
a2c6a6d5 3971 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
3972 m68k_find_saved_regs.
3973 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 3974 references to it with frame->saved_regs.
7f8e7424
GS
3975 (m68k_gdbarch_init): Added function calls to initialize the
3976 gdbarch structure.
a2c6a6d5
GS
3977 (m68k_fix_call_dummy): Add.
3978 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3979 (CALL_DUMMY): Remove.
3980 (CALL_DUMMY_LENGTH): Remove.
3981 (CALL_DUMMY_START_OFFSET): Remove.
3982 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3983 (FIX_CALL_DUMMY): Remove.
3984 (PUSH_DUMMY_FRAME): Remove.
3985 (POP_FRAME): Remove.
7f8e7424 3986
f461f5cf
PM
39872002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3988
3989 * parse.c (parse_fprintf): New function used to avoid calls to
3990 fprintf in bison parser generated debug code.
3991 * parser-defs.h: Declaration of new parse_fprintf function.
3992 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3993 Set YYDEBUG to 1 by default.
3994 Set YYFPRINTF as parse_fprintf.
3995
7f0c12ed
ML
39962002-06-21 Michal Ludvig <mludvig@suse.cz>
3997
3998 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3999 encoding anymore.
4000 (pointer_encoding, enum ptr_encoding): New.
4001 (execute_cfa_program): Take care about pointer encoding.
4002 (dwarf2_build_frame_info): Only call parse_frame_info for
4003 .debug_frame and .eh_frame.
4004 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4005 fixed augmentation handling, added relative addressing,
4006 ignore duplicate FDEs. Added comments.
19d833a2 4007 * dwarf2cfi.c: Reindented.
7f0c12ed 4008
87c4a039
EZ
40092002-06-20 Elena Zannoni <ezannoni@redhat.com>
4010
4011 * event-top.c (command_handler): Don't use space_at_cmd_start
4012 unless there is sbrk() on the host. Assign time and space data
4013 to union fields of the appropriate length.
4014
1cf877ad
ML
40152002-06-20 Michal Ludvig <mludvig@suse.cz>
4016
4017 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4018 x86_64_register_name. Return type changed to 'const char *'.
4019 (x86_64_register_name2nr): Rename to x86_64_register_number.
4020 (x86_64_gdbarch_init): Update to reflect the change.
4021 * x86-64-tdep.h: Ditto.
4022 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4023 (supply_fpregset): Ditto.
4024
3fadccb3
AC
40252002-06-19 Andrew Cagney <cagney@redhat.com>
4026
4027 * regcache.h: Update copyright.
4028 (struct regcache, struct gdbarch): Add opaque declarations.
4029 (current_regcache): Declare global variable.
4030 (regcache_read, regcache_write): Add gdbarch parameter.
4031 (regcache_save, regcache_save_no_passthrough)
4032 (regcache_restore, regcache_restore_no_passthrough)
4033 (regcache_dup, regcache_dup_no_passthrough)
4034 (regcache_cpy, regcache_cpy_no_passthrough)
4035 (deprecated_grub_regcache_for_registers)
4036 (deprecated_grub_regcache_for_register_valid)
4037 (regcache_valid_p): Add function declarations.
4038
4039 * regcache.c: Update copyright.
4040 (regcache_descr_handle): New global variable.
4041 (struct regcache_descr): Define.
4042 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4043 (regcache_descr, xfree_regcache_descr): New functions.
4044 (struct regcache): Define.
4045 (regcache_xmalloc, regcache_xfree): New functions.
4046 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4047 (regcache_dup, regcache_dup_no_passthrough): New functions.
4048 (regcache_valid_p, regcache_read_as_address): New functions.
4049 (deprecated_grub_regcache_for_registers): New function.
4050 (deprecated_grub_regcache_for_register_valid): New function.
4051 (current_regcache): New global variable.
4052 (register_buffer): Add regcache parameter. Update calls.
4053 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4054 (read_register_gen, write_register_gen): Update register_buffer
4055 call. Test for legacy_p instead of gdbarch_register_read_p or
4056 gdbarch_register_write_p.
4057 (regcache_collect): Update register_buffer call.
4058 (build_regcache): Rewrite. Use deprecated grub functions.
4059 (regcache_save, regcache_save_no_passthrough): New functions.
4060 (regcache_restore, regcache_restore_no_passthrough): New
4061 functions.
4062 (_initialize_regcache): Create the regcache_data_handle. Swap
4063 current_regcache global variable.
4064
4065 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4066 parameter to regcache_read and regcache_write calls.
4067 (sh4_register_read): Ditto.
4068 (sh64_pseudo_register_read): Ditto.
4069 (sh64_register_read): Ditto.
4070 (sh_pseudo_register_write): Ditto.
4071 (sh4_register_write): Ditto.
4072 (sh64_pseudo_register_write): Ditto.
4073 (sh64_register_write): Ditto.
4074
4075 * defs.h (XCALLOC): Define.
4076
152d9db6
GS
40772002-06-19 Grace Sainsbury <graces@redhat.com>
4078
4079 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4080 * m68k-tdep.c (m68k_gdbarch_init): Added.
4081 (m68k_dump_tdep): Added.
4082
170911c7
DJ
40832002-06-19 Daniel Jacobowitz <drow@mvista.com>
4084
4085 * ada-lang.c (fill_in_ada_prototype): Update comment.
4086
2e4ebe70
DJ
40872002-06-19 Daniel Jacobowitz <drow@mvista.com>
4088
4089 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4090 MIPS_ABI_LAST.
4091 (mips_abi_string, mips_abi_strings): New.
4092 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4093 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4094 tdep->mips_abi_string. Honor mips_abi_string. Default to
4095 O32 if no ABI is found.
4096 (mips_dump_tdep): Use mips_abi_strings.
4097 (mips_abi_update): New function.
4098 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4099 ``set mips abi'' and ``show mips abi''. Check the size of
4100 mips_abi_strings.
4101
16775908
AC
41022002-06-19 Andrew Cagney <cagney@redhat.com>
4103
4104 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4105 constant.
4106
5051bfa4 41072002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4108
5051bfa4
JB
4109 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4110 current frame using only the first stack size adjustment. All
4111 subsequent size adjustments are not considered to be part of
4112 the "static" part of the current frame.
4113 Compute the address of the saved registers relative to the
4114 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4115 in use in this frame.
4116
56468235
DH
41172002-06-18 Don Howard <dhoward@redhat.com>
4118
4119 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4120 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4121 suggesting this solution.
4122
0b624158
AC
41232002-06-18 Andrew Cagney <ac131313@redhat.com>
4124
4125 * config/romp/xm-rtbsd.h: Delete file.
4126 * config/romp/rtbsd.mh: Delete file.
4127
221ea385
KS
41282002-06-18 Keith Seitz <keiths@redhat.com>
4129
4130 * breakpoint.c (condition_command): Post breakpoint_modify
4131 when a condition is added to an existing breakpoint.
4132 (commands_command): Likewise for commands.
4133 (set_ignore_count): Likewise for ignore counts.
4134 If no tty, do not simply return, still need to send event
4135 notification.
4136 (ignore_command): Only print a newline if the command came
4137 from a tty.
4138 Don't call breakpoints_changed, since this is now properly
4139 handled by set_ignore_count.
4140
5402eed1
AC
41412002-06-18 Andrew Cagney <cagney@redhat.com>
4142
4143 * MAINTAINERS: Note that cris-elf target can be compiled with
4144 -Werror.
4145 * cris-tdep.c (cris_register_name): Make return type constant.
4146 (cris_breakpoint_from_pc): Ditto.
4147
cc22880b
ML
41482002-06-18 Michal Ludvig <mludvig@suse.cz>
4149
4150 * frame.h (struct frame_info): Change type of context to
4151 'struct context'.
4152
fa88f677
AC
41532002-06-17 Andrew Cagney <cagney@redhat.com>
4154
4155 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4156 pointer.
4157 * gdbarch.h, gdbarch.c: Regenerate.
4158 * config/mips/tm-mips.h (mips_register_name): Update.
4159 * i386-tdep.h (i386_register_name): Update.
4160 * mips-tdep.c (mips_register_name): Update
4161 * alpha-tdep.c (alpha_register_name): Update.
4162 * arch-utils.c (legacy_register_name): Update.
4163 * arch-utils.h (legacy_register_name): Update.
4164 * avr-tdep.c (avr_register_name): Update.
4165 * ia64-tdep.c (ia64_register_name): Update.
4166 * i386-tdep.c (i386_register_name): Update.
4167 * sparc-tdep.c (sparc32_register_name): Update.
4168 (sparc64_register_name): Update.
4169 (sparclite_register_name): Update.
4170 (sparclet_register_name): Update.
4171 * sh-tdep.c (sh_generic_register_name): Update.
4172 (sh_sh_register_name): Update.
4173 (sh_sh3_register_name): Update.
4174 (sh_sh3e_register_name): Update.
4175 (sh_sh_dsp_register_name): Update.
4176 (sh_sh3_dsp_register_name): Update.
4177 (sh_sh4_register_name): Update.
4178 (sh_sh64_register_name): Update.
4179 * s390-tdep.c (s390_register_name): Update.
4180 * rs6000-tdep.c (rs6000_register_name): Update.
4181 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4182 (ns32k_register_name_32382): Update.
4183 * d10v-tdep.c (d10v_ts2_register_name): Update.
4184 (d10v_ts3_register_name): Update.
4185 * xstormy16-tdep.c (xstormy16_register_name): Update.
4186 * vax-tdep.c (vax_register_name): Update.
4187 * v850-tdep.c (v850_register_name): Update.
4188 * m68hc11-tdep.c (m68hc11_register_name): Update.
4189 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4190 (am33_register_name): Update.
4191
ea1e7ef6
GS
41922002-06-17 Grace Sainsbury <graces@redhat.com>
4193
4194 * m68k-tdep.c: Reindented.
4195
9b02dd1b
AC
41962002-06-17 Andrew Cagney <ac131313@redhat.com>
4197
4198 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4199 list of predefined types.
4200
8758dec1
MK
42012002-06-16 Mark Kettenis <kettenis@gnu.org>
4202
b6197528
MK
4203 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4204 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4205 REGISTER_CONVERT_TO_RAW): Remove defines.
4206 (i386_register_virtual_type, i386_register_convertible,
4207 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4208 Remove prototypes.
4209 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4210 macros mentioned above.
4211
82b47e62
MK
4212 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4213 (i386lynx_saved_pc_after_call): Remove prototype.
4214 * i386ly-tdep.c: Include "i386-tdep.h".
4215 (i386lynx_saved_pc_after_call): Make static. Use
4216 read_memory_nobpt instead of read_memory. Use
4217 read_memory_unsigned_integer instead of read_memory_integer.
4218 (i386lynx_init_abi): New function.
4219 (i386lynx_coff_osabi_sniffer): New function.
4220 (_initialize_i386bsd_tdep): New function.
4221
8758dec1
MK
4222 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4223 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4224 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4225 (i386_fix_call_dummy): Remove prototype.
4226 * i386-tdep.c (i386_call_dummy_words): New variable.
4227 (i386_gdbarch_init): Adjust for removal of the
4228 macros mentioned above.
4229
e9e68a56
AC
42302002-06-15 Andrew Cagney <ac131313@redhat.com>
4231
4232 * command.h (add_setshow_auto_boolean_cmd): Replace
4233 add_set_auto_boolean_cmd.
4234 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4235 add_set_auto_boolean_cmd.
4236 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4237 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4238 mask-address'' command.
4239 (show_mask_address): Add cmd parameter.
4240 * remote.c (add_packet_config_cmd): Update. Change type of
4241 set_func and show_func to cmd_sfunc_ftype.
4242 (_initialize_remote): Update `set remote Z-packet'
4243 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4244 (show_remote_protocol_e_packet_cmd): Ditto.
4245 (show_remote_protocol_E_packet_cmd): Ditto.
4246 (show_remote_protocol_P_packet_cmd): Ditto.
4247 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4248 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4249 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4250 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4251 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4252 (show_remote_protocol_Z_packet_cmd): Ditto.
4253 (show_remote_protocol_binary_download_cmd): Ditto.
4254 (show_remote_cmd): Pass NULL to all of above.
4255
fc08ec52
MK
42562002-06-15 Mark Kettenis <kettenis@gnu.org>
4257
4258 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4259 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4260 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4261 POP_FRAME): Remove defines.
4262 (i386_push_arguments, i386_store_struct_return,
4263 i386_extract_return_value, i386_store_return_value,
4264 i386_extract_struct_value_address, i386_push_dummy_frame,
4265 i386_pop_frame): Renove prototypes.
4266 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4267 macros mentioned above.
4268
e707bbc2
AC
42692002-06-15 Andrew Cagney <ac131313@redhat.com>
4270
4271 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4272 add_set_boolean_cmd.
4273 (add_setshow_cmd): New function.
4274 * command.h (add_setshow_boolean_cmd): Replace
4275 add_set_boolean_cmd.
4276 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4277 and ``set rdiromatzero''.
4278 * maint.c (_initialize_maint_cmds): Update commented out code.
4279 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4280 * target.c (initialize_targets): Update `set
4281 trust-readonly-sections'.
4282 * remote.c (_initialize_remote): Update `set remotebreak'.
4283
42fdc8df
MK
42842002-06-15 Mark Kettenis <kettenis@gnu.org>
4285
93924b6b
MK
4286 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4287 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4288 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4289 fit into multi-arch framework.
4290 (i386_breakpoint_from_pc): New function.
4291 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4292 above.
4293
42fdc8df
MK
4294 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4295 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4296 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4297 (i386_frameless_function_invocation, i386_frame_num_args,
4298 i386_frame_init_saved_regs): Remove prototypes.
4299 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4300 macros mentioned above.
4301
9773a94b
AC
43022002-06-15 Andrew Cagney <ac131313@redhat.com>
4303
4304 * cli/cli-decode.c (set_cmd_cfunc): Update.
4305 (set_cmd_sfunc): Update.
4306 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4307 (set_cmd_sfunc, set_cmd_cfunc): Update.
4308 * cli/cli-decode.h: Update.
4309
6e157172
MK
43102002-06-15 Mark Kettenis <kettenis@gnu.org>
4311
4312 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4313 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4314
7f19b9a2
AC
43152002-06-15 Andrew Cagney <ac131313@redhat.com>
4316
4317 * defs.h (auto_boolean): Declare enum.
4318 * command.h (cmd_auto_boolean): Delete enum.
4319 * mips-tdep.c (mask_address_var): Update.
4320 (mips_mask_address_p): Update.
4321 (show_mask_address): Update.
4322 * remote.c (struct packet_config): Update.
4323 (update_packet_config): Update.
4324 (show_packet_config_cmd): Update.
4325 (packet_ok): Update.
4326 (add_packet_config_cmd): Update.
4327 (_initialize_remote):
4328 * command.h: Update.
4329 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4330 (do_setshow_command): Update.
4331 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4332 * cli/cli-decode.h: Update.
4333
1cf88de5
MK
43342002-06-15 Mark Kettenis <kettenis@gnu.org>
4335
22ba8cf2
MK
4336 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4337 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4338 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4339 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4340 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4341 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4342
762c5349
MK
4343 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4344 list of DJGPP COFF targets.
4345
091198bb
MK
4346 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4347 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4348 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4349 (FP0_REGNUM): Remove define.
4350 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4351 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4352 (i386_register_virtual_size): Remove protoype.
4353 * i386-tdep.c (i386_register_virtual_size): Removed.
4354 (i386_extract_return_value, i386_store_return_value): Use
4355 FP0_REGNUM instead of NUM_FREGS to determine whether the
4356 floating-point registers are available.
4357 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4358 Adjust for removal of macros mentioned above.
4359
43602002-06-15 Mark Kettenis <kettenis@gnu.org>
4361
fcc9bf01
MK
4362 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4363 comments.
4364 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4365 Remove prototypes.
4366 (supply_gregset, fill_gregset): Remove use of register keyword and
4367 remove declaration for regmap. Use I386_NUM_GREGS instead of
4368 NUM_REGS and NUM_FREGS.
4369 (FPREGSET_FSAVE_OFFSET): Remove.
4370 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4371 NUM_FREGS to determine whether the floating-point registers are
4372 available.
4373
65e78234
MK
4374 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4375 gnu_store_registers): Replace usage of NUM_GREGS with
4376 I386_NUM_GREGS.
4377
98df6387
MK
4378 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4379 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4380 usage of NUM_GREGS with I386_NUM_GREGS.
4381
099a9414
MK
4382 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4383
57976e88
MK
4384 * i386bsd-nat.c: Include "i386-tdep.h".
4385 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4386 I386_NUM_GREGS.
4387
b335f4a6
MK
4388 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4389 and associated comment. They no longer make any sense, since we
4390 don't use this file anymore on Linux.
4391
1cf88de5
MK
4392 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4393 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4394 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4395 elements in these arrays.
4396 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4397 MAX_NUM_REGS.
4398
daa66587
MK
43992002-06-15 Mark Kettenis <kettenis@gnu.org>
4400
4401 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4402 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4403
26e9b323
AC
44042002-06-14 Andrew Cagney <cagney@redhat.com>
4405
4406 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4407 EXTRACT_RETURN_VALUE.
4408 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4409 EXTRACT_STRUCT_VALUE_ADDRESS.
4410 * gdbarch.h, gdbarch.c: Regenerate.
4411
4412 * values.c (value_being_returned): Handle
4413 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4414 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4415
4416 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4417 * arm-tdep.c (arm_gdbarch_init): Update.
4418 * avr-tdep.c (avr_gdbarch_init): Update.
4419 * cris-tdep.c (cris_gdbarch_init): Update.
4420 * d10v-tdep.c (d10v_gdbarch_init): Update.
4421 * ia64-tdep.c (ia64_gdbarch_init): Update.
4422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4424 * s390-tdep.c (s390_gdbarch_init): Update.
4425 * sh-tdep.c (sh_gdbarch_init): Update.
4426 * s390-tdep.c (s390_gdbarch_init): Update.
4427 * sparc-tdep.c (sparc_gdbarch_init): Update.
4428 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4429 * v850-tdep.c (v850_gdbarch_init): Update.
4430 * vax-tdep.c (vax_gdbarch_init): Update.
4431 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4433
4434 * config/arc/tm-arc.h: Update.
4435 * config/d30v/tm-d30v.h: Update.
4436 * config/fr30/tm-fr30.h: Update.
4437 * config/h8300/tm-h8300.h: Update.
4438 * config/h8500/tm-h8500.h: Update.
4439 * config/i386/tm-i386.h: Update.
4440 * config/i386/tm-ptx.h: Update.
4441 * config/i386/tm-symmetry.h: Update.
4442 * config/i960/tm-i960.h: Update.
4443 * config/m32r/tm-m32r.h: Update.
4444 * config/m68k/tm-delta68.h: Update.
4445 * config/m68k/tm-linux.h: Update.
4446 * config/m68k/tm-m68k.h: Update.
4447 * config/m88k/tm-m88k.h: Update.
4448 * config/mcore/tm-mcore.h: Update.
4449 * config/mips/tm-mips.h: Update.
4450 * config/mn10200/tm-mn10200.h: Update.
4451 * config/pa/tm-hppa.h: Update.
4452 * config/pa/tm-hppa64.h: Update.
4453 * config/sparc/tm-sp64.h: Update.
4454 * config/sparc/tm-sparc.h: Update.
4455 * config/sparc/tm-sparclet.h: Update.
4456 * config/z8k/tm-z8k.h: Update.
4457
5179e78f
AC
44582002-06-14 Andrew Cagney <cagney@redhat.com>
4459
4460 * Makefile.in (i386_linux_tdep_h): Define.
4461 (i386_tdep_h, i387_tdep_h): Define.
4462 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4463 $(i386_tdep_h) and $(i387_tdep_h).
4464 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4465
8201327c
MK
44662002-06-14 Mark Kettenis <kettenis@gnu.org>
4467
edf393ac
MK
4468 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4469 Already covered by the default.
4470
896fb97d
MK
4471 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4472 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4473 (i386_gdbarch_init): Initialize long_double_format and long_double
4474 bit.
4475
8201327c
MK
4476 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4477 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4478 Move these to ...
4479 * config/i386/i386sol2.mh: ... here.
4480 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4481 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4482 (SIGCONTEXT_PC_OFFSET): Remove define.
4483 (IN_SIGTRAMP): Remove define.
4484 * i386-sol2-tdep.c: New file.
4485
4486 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4487 * config/i386/tm-i386nw.h: Removed.
4488
4489 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4490 USE_STRUCT_CONVENTION): Remove defines.
4491 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4492 (get_longjmp_target): Remove prototype.
4493 (IN_SIGTRAMP): Remove define.
4494 (i386bsd_in_sigtramp): Remove prototype.
4495 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4496 function. Update comment accordingly
4497 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4498 (FRAME_SAVED_PC): Remove define.
4499 (i386bsd_frame_saved_pc): Remove prototype.
4500 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4501 GET_LONGJMP_TARGET): Remove defines.
4502 (get_longjmp_target): Remove prototype.
4503 (IN_SIGTRAMP): Remove define.
4504 (i386bsd_in_sigtramp): Remove prototype.
4505 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4506 function. Update comment accordingly
4507 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4508 (FRAME_SAVED_PC): Remove define.
4509 (i386bsd_frame_saved_pc): Remove prototype.
4510 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4511 Remove prototype.
4512 (USE_STRUCT_CONVENTION): Remove prototype.
4513 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4514 declaration.
4515 (_initialize_i386bsd_nat): Revise logic to determine some
4516 constants at compile time when compiling a native GDB. Warn if
4517 things don't match up with what we expect.
4518 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4519 Remove variables.
4520 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4521 to use date stored in `struct gdbarch_tdep'.
4522 (i386bsd_sigcontext_offset): Remove varaible.
4523 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4524 stored in `struct gdbarch_tdep'.
4525 (i386bsd_frame_saved_pc): Make static.
4526 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4527 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4528 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4529 i386fbsd4_sc_pc_offset): New variables.
4530 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4531 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4532 functions.
4533 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4534 functions.
4535 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4536 Modify the value of i386fbsd_sigtramp_start and
4537 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4538 i386fbsd_sigtramp_end.
4539 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4540 function.
4541
4542 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4543 define to i386-linux-tdep.h.
4544 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4545 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4546 defines.
4547 (i386_linux_register_name, i386_linux_register_byte,
4548 i386_linux_register_raw_size): Remove prototypes.
4549 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4550 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4551 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4552 TARGET_WRITE_PC): Remove defines.
4553 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4554 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4555 i386_linux_write_pc): Remove prototypes.
4556 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4557 (get_longjmp_target): Remove prototype.
4558 * i386-linux-tdep.h: New file.
4559 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4560 * i386-linux-tdep.c: Include "i386-tdep.h" and
4561 "i386-linux-tdep.h".
4562 (i386_linux_register_name, i386_linux_register_byte,
4563 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4564 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4565 Make static.
4566 (i386_linux_init_abi): New function.
4567 (_initialize_i386_linux_tdep): New function.
4568
4569 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4570 (i386_saved_pc_after_call): Remove prototype.
4571 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4572 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4573 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4574 (i386_register_name, i386_stab_reg_to_regnum,
4575 i386_dwarf_reg_to_regnum): Remove prototypes.
4576 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4577 SIZEOF_SSE_REGS): Remove defines.
4578 (REGISTER_BYTES): Remove define.
4579 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4580 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4581 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4582 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4583 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4584 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4585 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4586 (get_longjmp_target): Remove prototype.
4587 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4588 (sigtramp_saved_pc): Remove define.
4589 (i386v4_sigtramp_saved_pc): Remove prototype.
4590 * config/i386/tm-go32.h (FRAME_CHAIN,
4591 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4592 (i386go32_frame_saved_pc): Remove prototype.
4593 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4594 (get_longjmp_target): Remove prototype.
4595 * i386-tdep.h: Include "osabi.h".
4596 (enum i386_abi): Removed.
4597 (enum struct_return): New enum.
4598 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4599 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4600 sc_pc_offset members.
4601 (i386_gdbarch_register_os_abi): Remove prototype.
4602 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4603 I386_SSE_NUM_REGS): New defines.
4604 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4605 I386_SSE_SIZEOF_REGS): New defines.
4606 (i386_register_name, i386_register_byte, i386_register_raw_size):
4607 New prototypes.
4608 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4609 (i386bsd_sigtramp_saved_pc): New prototype.
4610 * i386-tdep.c: Don't include "elf-bfd.h".
4611 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4612 i386_frame_chain, i386_saved_pc_after_call): Make static.
4613 (i386_frame_saved_pc): Rewrite to call architecture dependent
4614 function to deal with signal handlers. Make static.
4615 (i386go32_frame_saved_pc): Removed.
4616 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4617 Removed.
4618 (i386_get_longjmp_target): New function.
4619 (default_struct_convention, pcc_struct_convention,
4620 reg_struct_convention, valid_conventions, struct_convention): New
4621 variables.
4622 (i386_use_struct_convention): New function.
4623 (i386v4_sigtramp_saved_pc): Renamed to
4624 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4625 (i386_pc_in_sigtramp): New function.
4626 (i386_abi_names): Removed.
4627 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4628 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4629 Removed.
4630 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4631 i386_gdbarch_register_os_abi): Removed.
4632 (struct i386_abi_handler): Removed.
4633 (i386_abi_handler_list): Removed.
4634 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4635 functions.
4636 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4637 i386_nw_init_abi): New functions.
4638 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4639 Use set_gdbarch_xxx() calls instead of relying on macros for a
4640 number of calls.
4641 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4642 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4643 Register the various architecture variants defined in this file.
4644
ad2f7632
DJ
46452002-06-14 Daniel Jacobowitz <drow@mvista.com>
4646
4647 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4648 (struct main_type): Remove arg_types member. Update comments for
4649 struct field.
4650 (TYPE_ARG_TYPES): Remove.
4651 (TYPE_FN_FIELD_ARGS): Update.
4652 (smash_to_method_type): Update prototype.
4653
4654 * c-typeprint.c (cp_type_print_method_args): Take method type
4655 instead of argument list. Use new argument layout. Simplify.
4656 (c_type_print_args): Use new argument layout. Simplify.
4657 (c_type_print_base): Update call to cp_type_print_method_args.
4658 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4659 argument; use die->type instead. Update call to
4660 smash_to_method_type.
4661 (read_structure_scope): Update call to dwarf2_add_member_fn.
4662 * gdbtypes.c (allocate_stub_method): Update comment.
4663 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4664 Use new argument layout.
4665 (check_stub_method): Use new argument layout. Don't count
4666 void as an argument.
4667 (print_arg_types): Update comments. Use new argument layout.
4668 (recursive_dump_type): Don't print arg_types member.
4669 * hpread.c (hpread_read_struct_type): Use new argument layout.
4670 (fixup_class_method_type): Likewise.
4671 (hpread_type_lookup): Likewise.
4672 * stabsread.c (read_type): Update calls to read_args and
4673 smash_to_method_type.
4674 (read_args): Use new argument layout. Simplify.
4675 * valops.c (typecmp): Use new argument layout. Update parameters
4676 and comments. Simplify.
4677 (hand_function_call): Use new argument layout.
4678 (search_struct_method): Update call to typecmp.
4679 (find_overload_match): Use new argument layout.
4680
6da02953
DJ
46812002-06-13 Daniel Jacobowitz <drow@mvista.com>
4682
4683 * NEWS: Mention multithreaded debug support for gdbserver.
4684
519b2366
DJ
46852002-06-13 Daniel Jacobowitz <drow@mvista.com>
4686
4687 * MAINTAINERS: Mention NEWS.
4688
6c0d6680
DJ
46892002-06-13 Daniel Jacobowitz <drow@mvista.com>
4690
4691 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4692 (struct mips_objfile_private, compare_pdr_entries): New.
4693 (non_heuristic_proc_desc): Read the ".pdr" section if it
4694 is present.
4695
6529d2dd
AC
46962002-06-12 Andrew Cagney <ac131313@redhat.com>
4697
4698 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4699 (arm_debug): New static variable.
4700 (_initialize_arm_tdep): Add ``set debug arm'' command.
4701
26216b98
AC
47022002-06-12 Andrew Cagney <ac131313@redhat.com>
4703
4704 * Makefile.in (sim_arm_h): Define.
4705 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4706 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4707 (arm_register_sim_regno): New function, map an internal REGNUM
4708 onto a simulator register number.
4709 (arm_gdbarch_init): Set register_sim_regno.
4710
814b3ba0
AH
47112002-06-09 Aldy Hernandez <aldyh@redhat.com>
4712
4713 * MAINTAINERS: Add self.
4714
475b0867
JB
47152002-06-11 Jim Blandy <jimb@redhat.com>
4716
919d772c
JB
4717 * source.c (source_info): Mention whether the symtab has
4718 information about preprocessor macros.
4719
475b0867
JB
4720 Call the command `info macro', not `show macro'.
4721 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4722 Fix error message.
4723 (_initialize_macrocmd): Register `info_macro_command' in
4724 `infolist', not `showlist'.
4725
9e364162
DJ
47262002-06-11 Daniel Jacobowitz <drow@mvista.com>
4727
4728 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4729 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4730 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4731 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4732 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4733 unconditionally.
4734 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4735 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4736 (_initialize_mips_tdep): Remove dead code.
4737 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4738 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4739 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4740 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4741 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4742 MIPS_LAST_FP_ARG_REGNUM): Remove.
4743
23aa4c72
ML
47442002-06-11 Michal Ludvig <mludvig@suse.cz>
4745
4746 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4747 (unwind_tmp_obstack_free, parse_frame_info)
4748 (update_context, cfi_read_fp, cfi_write_fp)
4749 (cfi_frame_chain, cfi_init_extra_frame_info)
4750 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4751 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4752
70eb15a4
CV
47532002-06-11 Corinna Vinschen <vinschen@redhat.com>
4754
4755 * v850-tdep.c (v850_type_is_scalar): New function.
4756 (v850_use_struct_convention): Match current gcc implementation
4757 as close as possible.
4758 (v850_push_arguments): Fix stack_offset handling. Don't write
4759 struct_addr into register. This is done by v850_store_struct_return.
4760 (v850_extract_return_value): Care for structs.
4761 (v850_store_return_value): Ditto.
4762 (v850_store_struct_return): Actually write address.
4763
482a4d06
ML
47642002-06-11 Michal Ludvig <mludvig@suse.cz>
4765
4766 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4767 without debug information too.
4768
d855c300
AC
47692002-06-10 Andrew Cagney <ac131313@redhat.com>
4770
4771 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4772 Make multi-arch pure.
4773 * gdbarch.h, gdbarch.c: Re-generate.
4774 * arm-tdep.c (arm_print_float_info): Update.
4775 * arch-utils.h (default_print_float_info): Update.
4776 * arch-utils.c (default_print_float_info): Update.
4777 * infcmd.c (float_info): Update call.
4778
dd12a101
AC
47792002-06-10 Andrew Cagney <ac131313@redhat.com>
4780
4781 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4782 the front of the initialize list.
4783
101dcfbe
AC
47842002-06-10 Andrew Cagney <ac131313@redhat.com>
4785
4786 * infrun.c (struct inferior_status): Replace fields
4787 selected_frame_address and selected_level with field
4788 selected_frame_id.
4789 (save_inferior_status): Update. Use get_frame_id.
4790 (struct restore_selected_frame_args): Delete.
4791 (restore_selected_frame): Update. Use frame_find_by_id.
4792 (restore_inferior_status): Update.
4793
4794 * breakpoint.h (struct breakpoint): Change type of
4795 watchpoint_frame to frame_id.
4796 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4797 call to get_current_frame.
4798 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4799 get_current_frame.
4800 (watchpoint_check): Use frame_find_by_id.
4801
4802 * frame.h (record_selected_frame): Delete declaration.
4803 * stack.c (record_selected_frame): Delete function.
4804
4805 * frame.h (struct frame_id): Define.
4806 (get_frame_id): Declare.
4807 (frame_find_by_id): Declare.
4808 * frame.c (frame_find_by_id): New function.
4809 (get_frame_id): New function.
4810
304270b6
AV
48112002-06-10 Andrey Volkov <avolkov@transas.com>
4812
4813 * ser-e7kpc.c: Fix duplicated define and call of
4814 _initialize_ser_e7000pc
4815
2f2cf184
DJ
48162002-06-09 Daniel Jacobowitz <drow@mvista.com>
4817
4818 * signals/signals.c (target_signal_from_host): Fix #ifdef
4819 SIGRTMIN case.
4820 (do_target_signal_to_host): Likewise.
4821
caaa3122
DJ
48222002-06-09 Daniel Jacobowitz <drow@mvista.com>
4823
4824 * mips-tdep.c (mips_find_abi_section): New function.
4825 (mips_gdbarch_init): Call it.
4826
6ac5df3a
MK
48272002-06-09 Mark Kettenis <kettenis@gnu.org>
4828
4829 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4830 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4831 after Andrew's 2002-06-08 gdbarch change.
4832
82ea117a
MK
48332002-06-09 Mark Kettenis <kettenis@gnu.org>
4834
4835 * i386-linux-nat.c (suppy_gregset): Don't supply
4836 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4837 register cache.
4838 (fill_gregset): Don't fetch it under the same circumstances.
4839
3c25f8c7
AC
48402002-06-09 Andrew Cagney <cagney@redhat.com>
4841
4842 * Makefile.in (callback_h): Define.
4843 (remote_sim_h): Update path to remote-sim.h.
4844 (remote-rdp.o): Add $(callback_h).
4845 (remote-sim.o): Use $(callback_h).
4846 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4847 * remote-rdp.c: Include "gdb/callback.h".
4848
1029b7fa
MK
48492002-06-09 Mark Kettenis <kettenis@gnu.org>
4850
4851 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4852 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4853
616675d3
AC
48542002-06-08 Andrew Cagney <ac131313@redhat.com>
4855
a3efda28
AC
4856 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4857 * rdi-share/serpardr.c: Ditto.
4858 * rdi-share/unixcomm.c: Ditto.
4859 * rdi-share/serdrv.c: Ditto.
4860 * rdi-share/hostchan.h: Ditto.
4861 * rdi-share/hostchan.c: Ditto.
4862 * rdi-share/host.h: Ditto.
4863 * rdi-share/devsw.c: Ditto.
4864
c5f10366
AC
4865 * objfiles.h: Change type of obj_private to void pointer.
4866 * pa64solib.c: Update copyright. Don't include "assert.h", use
4867 strcmp instead of STREQ, use LONGEST, do not use PTR
4868 * somsolib.c: Ditto.
4869
616675d3
AC
4870 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4871 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4872 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4873
e4b415d9
AC
48742002-06-08 Andrew Cagney <ac131313@redhat.com>
4875
4876 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4877 (default_get_saved_register): Delete function.
4878 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4879 generic_unwind_get_saved_register.
4880 * gdbarch.h, gdbarch.c: Re-generate.
4881
ca0d0b52
AC
48822002-06-08 Andrew Cagney <ac131313@redhat.com>
4883
4884 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4885 generic_func_frame_chain_valid.
4886 * gdbarch.h, gdbarch.c: Re-generate.
4887 * blockframe.c (generic_func_frame_chain_valid): Only check
4888 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4889 passing FP to PC_IN_CALL_DUMMY.
4890 Fix PR gdb/360.
4891
76860b5f
AC
48922002-06-08 Andrew Cagney <ac131313@redhat.com>
4893
4894 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4895 (register_gdbarch_data): Initialize init_p.
4896 (gdbarch_data): Initialize data pointer using the init function.
4897 (init_gdbarch_data): Delete function.
4898 (gdbarch_update_p): Update.
4899 (initialize_non_multiarch): Update.
4900 (struct gdbarch): Add field initialized_p.
4901 * gdbarch.h, gdbarch.c: Re-generate.
4902
8dda9770
ML
49032002-06-07 Michal Ludvig <mludvig@suse.cz>
4904
4905 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4906 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4907 better do the things actually here.
4908 * x86-64-tdep.c (x86_64_register_name2nr): New.
4909 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4910 (x86_64_gdbarch_init): Respect the above change.
4911 * x86-64-tdep.h (x86_64_register_name2nr)
4912 (x86_64_register_nr2name): Add prototypes.
4913 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4914
3d79a47c
MS
49152002-06-06 Michael Snyder <msnyder@redhat.com>
4916
7bd91a28
MS
4917 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4918 Delete extra braces and re-indent.
4919 (d10v_store_return_value): Char return values
3d79a47c
MS
4920 must be shifted over by one byte in R0.
4921 (d10v_extract_return_value): Delete extra braces, re-indent.
4922
095a4c96
EZ
49232002-06-06 Elena Zannoni <ezannoni@redhat.com>
4924
4925 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4926 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4927 (d10v_integer_to_address): Rewrite.
4928 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4929 the d10v specific functions which take care of converting to the
4930 correct space.
4931
e8a77ca4
EZ
49322002-06-06 Elena Zannoni <ezannoni@redhat.com>
4933
4934 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4935 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4936
4f2e4a4f
AC
49372002-06-02 Andrew Cagney <ac131313@redhat.com>
4938
4939 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4940 includes.
4941 * config/tm-linux.h: Ditto.
4942 * config/alpha/tm-alphalinux.h: Ditto.
4943 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4944 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4945 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4946 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4947 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4948 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4949 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4950 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4951 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4952 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4953 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4954 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4955 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4956 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4957 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4958 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4959 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4960 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4961 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4962 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4963 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4964 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4965 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4966 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4967 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4968 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4969 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4970 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4971 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4972 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4973 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4974 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4975 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4976 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4977 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4978 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4979 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4980
ae2ab2ce
AS
49812002-05-04 Aidan Skinner <aidan@velvet.net>
4982
4983 * ada-exp.tab.c: New file
4984 * ada-exp.y: New file
4985 * ada-lang.c: New file
4986 * ada-lang.h: New file
4987 * ada-lex.c: New file
4988 * ada-lex.l: New file
4989 * ada-tasks.c: New file
4990 * ada-typeprint.c: New file
4991 * ada-valprint.c: New file
4992
0ddd0135
JT
49932002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4994
4995 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4996 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4997
750fbacc
JT
49982002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4999
5000 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5001 insetead of ppc-linux-tdep.o.
5002 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5003 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5004
df94e18a
AC
50052002-06-02 Andrew Cagney <ac131313@redhat.com>
5006
5007 2002-05-07 Christian Groessler <chris@groessler.org>
5008 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5009 bit register contents for little endian hosts.
5010
1a38ab75
AC
50112002-06-01 Andrew Cagney <ac131313@redhat.com>
5012
5013 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5014 any maintainer.
5015
8b1632ac
AC
50162002-06-01 Andrew Cagney <ac131313@redhat.com>
5017
5018 * gdbarch.h: Regenerate.
5019
627054c8
AC
50202002-06-01 Andrew Cagney <ac131313@redhat.com>
5021
5022 * MAINTAINERS: Add everyone to write-after-approval list.
5023
4f460812
AC
50242002-06-01 Andrew Cagney <ac131313@redhat.com>
5025
5026 * stack.c (frame_info): Use frame_register_unwind instead of
5027 saved_regs. Mention when the SP is on the stack or in a register.
5028
5029 * frame.h (frame_register_unwind_ftype): Define. Document.
5030 (struct frame_info): Add field register_unwind and
5031 register_unwind_cache.
5032 (frame_register_unwind): Declare.
5033 (generic_unwind_get_saved_register): Declare.
5034
5035 * frame.c (frame_register_unwind): New function.
5036 (generic_unwind_get_saved_register): New function.
5037
5038 * blockframe.c (generic_call_dummy_register_unwind): New function.
5039 (frame_saved_regs_register_unwind): New function.
5040 (set_unwind_by_pc): New function.
5041 (create_new_frame): New function.
5042 (get_prev_frame): New function.
5043
de888f76
AC
50442002-05-30 Andrew Cagney <ac131313@redhat.com>
5045
5046 * a29k-share/: Delete directory.
5047 * remote-vx29k.c: Delete file.
5048
2f2c3626
JT
50492002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5050
5051 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5052 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5053
9ce5c36a
JT
50542002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5055
5056 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5057 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5058 (sparc64nbsd-nat.o)
5059 (sparcnbsd-nat.o)
5060 (sparcnbsd-tdep.o): New dependency lists.
5061 * NEWS: Note new UltraSPARC NetBSD native configuration.
5062 * configure.host (sparc64-*-netbsd*): New host.
5063 * configure.tgt (sparc-*-netbsdelf*)
5064 (sparc-*-netbsd*): Set gdb_target to nbsd.
5065 (sparc64-*-netbsd*): New target.
5066 * sparc64nbsd-nat.c: New file.
5067 * sparcnbsd-nat.c: New file.
5068 * sparcnbsd-tdep.c: New file.
5069 * sparcnbsd-tdep.h: New file.
5070 * config/sparc/nbsd.mt: New file.
5071 * config/sparc/nbsd64.mh: New file.
5072 * config/sparc/nbsd64.mt: New file.
5073 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5074 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5075 (HOST_IPC): Remove.
5076 * config/sparc/nbsdaout.mt: Remove.
5077 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5078 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5079 (HOST_IPC): Remove.
5080 * config/sparc/nbsdelf.mt: Remove.
5081 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5082 sparc-nat.c compatiblity defines.
5083 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5084 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5085 * config/sparc/tm-nbsd64.h: New file.
5086 * config/sparc/tm-nbsdaout.h: Remove.
5087 * config/sparc/xm-nbsd.h: Remove.
5088
ef3cf062
JT
50892002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5090
5091 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5092 * sparc-tdep.c: Include osabi.h.
5093 (gdbarch_tdep): Add osabi member.
5094 (_initialize_sparc_tdep): Use gdbarch_register.
5095 (sparc_gdbarch_init): Use generic OS ABI framework.
5096 (sparc_dump_tdep): New function.
5097
ee8ff470
KB
50982002-05-30 Kevin Buettner <kevinb@redhat.com>
5099
5100 * corefile.c (do_captured_read_memory_integer): Return non-zero
5101 result.
5102 (safe_read_memory_integer): Copy result of memory read when
5103 status is non-zero. Also, add comments.
5104
7b112f9c
JT
51052002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5106
5107 * Makefile.in (ppc_tdep_h): Define.
5108 (ppc-linux-nat.o)
5109 (ppc-linux-tdep.o)
5110 (rs6000-tdep.o): Use $(ppc_tdep_h).
5111 (ppc-sysv-tdep.o)
5112 (ppcnbsd-nat.o)
5113 (ppcnbsd-tdep.o): New dependency lists.
5114 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5115 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5116 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5117 (ppc_sysv_abi_broken_use_struct_convention)
5118 (ppc_sysv_abi_use_struct_convention)
5119 (ppc_sysv_abi_push_arguments): Move to...
5120 * ppc-sysv-tdep.c: ...here.
5121 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5122 * rs6000-tdep.c (process_note_abi_tag_sections)
5123 (get_elfosabi): Remove.
5124 (rs6000_gdbarch_init): Use generic OS ABI framework.
5125 (rs6000_dump_tdep): New function.
5126 (_initialize_rs6000_tdep): Use gdbarch_register.
5127 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5128 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5129 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5130 of ppc-linux-tdep.o.
5131 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5132 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5133 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5134 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5135 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5136 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5137
480dd42a
JB
51382002-05-29 Jim Blandy <jimb@redhat.com>
5139
5140 * macroscope.c (default_macro_scope): Put `void' in empty argument
5141 list.
5142
4182591f
AC
51432002-05-29 Andrew Cagney <ac131313@redhat.com>
5144
5145 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5146 * arch-utils.c: Include "sim-regno.h".
5147 * gdbarch.sh: Don't include "sim-regno.h".
5148 * gdbarch.h, gdbarch.c: Regenerate.
5149 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5150 here.
5151 * arch-utils.h (legacy_register_sim_regno): To here.
5152 * remote-sim.c (legacy_register_sim_regno): Move function from
5153 here.
5154 * arch-utils.c (legacy_register_sim_regno): To here.
5155
8238d0bf
AC
51562002-05-28 Andrew Cagney <ac131313@redhat.com>
5157
5158 * sim-regno.h: New file.
5159 * Makefile.in (sim_regno_h): Define.
5160 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5161 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5162 (legacy_register_sim_regno): New function.
5163 (one2one_register_sim_regno): New function.
5164 (gdbsim_fetch_register): Rewrite.
5165 (gdbsim_store_register): Only store a register when
5166 REGISTER_SIM_REGNO is valid.
5167 * d10v-tdep.c: Include "sim-regno.h".
5168 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5169 (d10v_ts3_register_sim_regno): Ditto.
5170 * gdbarch.sh: Include "sim-regno.h".
5171 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5172 * gdbarch.h, gdbarch.c: Regenerate.
5173 * arch-utils.h (default_register_sim_regno): Delete declaration.
5174 * arch-utils.c (default_register_sim_regno): Delete function.
5175
485721b1
JT
51762002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5177
5178 * ppcnbsd-nat.c: Rewrite.
5179 * ppcnbsd-tdep.c: New file.
5180 * ppcnbsd-tdep.h: New file.
5181 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5182 solib.o, and solib-svr4.o.
5183 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5184 nbsd-tdep.o, and corelow.o.
5185
697f244d
AC
51862002-05-28 Andrew Cagney <ac131313@redhat.com>
5187
5188 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5189 `tr' and `sed'. Mention that `broken' targets are not expected to
5190 build.
5191
f08caad1 51922002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5193
5194 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5195 Let PC point right after the prologue before looking up symbols.
5196
3139facc
MH
51972002-05-27 Martin M. Hunt <hunt@redhat.com>
5198
5199 * i386-tdep.c (i386_register_virtual_type): Return
5200 builtin_type_vec128i for SSE registers.
5201
5202 * gdbtypes.h (builtin_type_vec128i): Declare.
5203
5204 * gdbtypes.c (build_builtin_type_vec128i): New function.
5205 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5206 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5207 (build_gdbtypes): Initialize new builtin vector types.
5208 (_initialize_gdbtypes): Register new vector types with gdbarch.
5209
6e3ba3b8
JT
52102002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5211
5212 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5213 since it has been multi-arch'd.
5214 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5215 Move Alpha and VAX multi-arch news entries to same section
5216 as other multi-arch news.
5217
93d5585d
JT
52182002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5219
5220 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5221 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5222 static. Rename some register numbers to put them in ns32k-tdep
5223 private namespace.
5224 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5225 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5226 functions.
5227 (_initialize_ns32k_tdep): Use gdbarch_register.
5228 * ns32k-tdep.h: New file.
5229 * ns32knbsd-tdep.c: New file.
5230 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5231 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5232 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5233 REGISTER_BYTES, REGISTER_BYTE): Remove.
5234 * config/ns32k/tm-ns32k.h: New file.
5235 * config/ns32k/tm-umax.h: Remove.
5236
efb2c70e
JT
52372002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5238
5239 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5240 ns32k_store_struct_return, ns32k_extract_return_value,
5241 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5242 functions.
5243 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5244 ns32k_saved_pc_after_call.
5245 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5246 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5247 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5248 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5249 ns32k_extract_struct_value_address.
5250
7bcc927b
JT
52512002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5252
5253 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5254 ns32k_fix_call_dummy): New.
5255 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5256 ns32k_call_dummy_words.
5257 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5258 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5259 CALL_DUMMY_NARGS): Remove.
5260 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5261
78f9d765
JT
52622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5263
5264 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5265 ns32k_frame_saved_pc, ns32k_frame_args_address,
5266 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5267 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5268 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5269 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5270 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5271 (BREAKPOINT): Remove..
5272 (FRAME_CHAIN): Define as ns32k_frame_chain.
5273 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5274 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5275 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5276 (FRAME_FIND_SAVED_REGS): Remove.
5277 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5278 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5279 (POP_FRAME): Define as ns32k_pop_frame.
5280
f2c762e0
JT
52812002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5282
5283 * ns32k-tdep.c (ns32k_register_byte_32082,
5284 ns32k_register_byte_32382, ns32k_register_raw_size,
5285 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5286 functions.
5287 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5288 ns32k_register_byte_32382.
5289 * config/ns32k/tm-umax.h: Update copyright years.
5290 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5291 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5292 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5293 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5294 (ns32k_get_enter_addr): Fix prototype.
5295
af137673
JT
52962002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5297
5298 * ns32k-tdep.c: Update copyright years.
5299 (ns32k_register_name_32082): New function.
5300 (ns32k_register_name_32382): Ditto.
5301 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5302 (REGISTER_NAME): Define as ns32k_register_name_32382.
5303 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5304 (REGISTER_NAME): Define as ns32k_register_name_32082.
5305
a8bc7b56
JB
53062002-05-24 Jim Blandy <jimb@redhat.com>
5307
5308 * dwarf2read.c (free_line_header): Use xfree, not free.
5309
83a45910
JT
53102002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5311
5312 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5313 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5314
0db71247
AC
53152002-05-23 Andrew Cagney <ac131313@redhat.com>
5316
5317 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5318
b9e5e4dd
AC
53192002-05-23 Andrew Cagney <ac131313@redhat.com>
5320
5321 From Ross Alexander at NEC Europe:
5322 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5323
de530e84
MS
53242002-05-23 Michael Snyder <msnyder@redhat.com>
5325
5326 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5327 for input, rather than parse_and_eval_address.
5328
b91b96f4
AC
53292002-05-23 Andrew Cagney <ac131313@redhat.com>
5330
5331 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5332 * Makefile.in (sim_d10v_h): Update definition.
5333
8b279e7a
AC
53342002-05-24 Andrew Cagney <cagney@redhat.com>
5335
5336 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5337 change `2002-05-22 Michael Snyder' below.
5338 (d10v_push_arguments): Ditto.
5339 (d10v_extract_return_value): Ditto.
5340
0a3d0425
JB
53412002-05-23 Jim Blandy <jimb@redhat.com>
5342
5343 * macrotab.c (check_for_redefinition): Don't complain if the new
5344 definition is the same as the previous one. Take more arguments
5345 to allow the comparison.
5346 (macro_define_object, macro_define_function): Pass more arguments
5347 to check_for_redefinition.
5348
78eac43e
MS
53492002-05-22 Michael Snyder <msnyder@redhat.com>
5350
5351 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5352 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5353 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5354 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5355 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5356 Add a temp variable to save a call (and a memory read).
5357 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5358 if possible (so that PC_IN_CALL_DUMMY will work).
5359
9bc1edb8
CV
53602002-05-22 Corinna Vinschen <vinschen@redhat.com>
5361
5362 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5363
005ef3d2
ML
53642002-05-22 Michal Ludvig <mludvig@suse.cz>
5365
5366 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5367 fde->cie_ptr.
5368 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5369 (dwarf2_build_frame_info): Add offset to fde->initial_location
5370 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5371 (execute_stack_op): Change type of 'result' from ULONGEST to
5372 CORE_ADDR.
005ef3d2 5373
fcf4f891
JT
53742002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5375
5376 * config/alpha/tm-nbsd.h: Include solib.h.
5377
cfef91e4
JT
53782002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5379
5380 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5381 assumptions about the host's byte order.
5382
9964235a
JT
53832002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5384
5385 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5386 to dependency list.
5387 * alphanbsd-tdep.c: Include solib-svr4.h.
5388 * shnbsd-tdep.c: Ditto.
5389
9eeef8ef
JT
53902002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5391
5392 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5393 nbsd-tdep.h to dependency list.
5394 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5395 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5396 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5397 nbsdaout.mh and nbsdelf.mh consistently.
5398 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5399 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5400 nbsdaout.mt and nbsdelf.mh consistently.
5401 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5402 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5403 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5404 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5405 a.out shared library stuff from here...
5406 * config/nm-nbsdaout.h: ...to here.
5407 * config/tm-nbsd.h: Remove.
5408 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5409 * config/arm/nbsd.mh: Remove.
5410 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5411 nbsd-tdep.o.
5412 * config/arm/nbsdaout.mh: New file.
5413 * config/arm/nbsdelf.mh: New file.
5414 * config/arm/nm-nbsdaout.h: New file.
5415 * config/i386/nbsd.mh: Remove.
5416 * config/i386/nbsd.mt: Remove.
5417 * config/i386/nbsdaout.mh: New file.
5418 * config/i386/nbsdaout.mt: New file.
5419 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5420 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5421 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5422 i386_register_u_addr): Remove.
5423 * config/i386/nm-nbsdaout.h: New file.
5424 * config/i386/nm-nbsdelf.h: Remove.
5425 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5426 (USE_STRUCT_CONVENTION): Remove.
5427 * config/i386/tm-nbsdaout.h: New file.
5428 * config/i386/tm-nbsdelf.h: Remove.
5429 * config/m68k/nbsd.mh: Remove.
5430 * config/m68k/nbsd.mt: Remove.
5431 * config/m68k/nbsdaout.mh: New file.
5432 * config/m68k/nbsdaout.mt: New file.
5433 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5434 * config/m68k/nm-nbsdaout.h: New file.
5435 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5436 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5437 * config/ns32k/nbsd.mh: Remove.
5438 * config/ns32k/nbsd.mt: Remove.
5439 * config/ns32k/nbsdaout.mh: New file.
5440 * config/ns32k/nbsdaout.mt: New file.
5441 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5442 * config/ns32k/nm-nbsdaout.h: New file.
5443 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5444 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5445 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5446 (SVR4_SHARED_LIBS): Remove.
5447 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5448 * config/sparc/nbsd.mh: Remove.
5449 * config/sparc/nbsd.mt: Remove.
5450 * config/sparc/nbsdaout.mh: New file.
5451 * config/sparc/nbsdaout.mt: New file.
5452 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5453 * config/sparc/nbsdelf.mt: New file.
5454 * config/sparc/nm-nbsdaout.h: New file.
5455 * config/sparc/nm-nbsdelf.h: Remove.
5456 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5457 * config/sparc/tm-nbsdaout.h: New file.
5458
257ce470
JT
54592002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5460
5461 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5462 mipsnbsd-tdep.c
5463 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5464
76a6d5fe
JT
54652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5466
5467 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5468 shnbsd-nat.c.
5469 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5470
45888261
JT
54712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5472
5473 * NEWS: Note new MIPS NetBSD native configuration.
5474 * configure.host (mips*-*-netbsd*): New host.
5475 * configure.tgt (mips*-*-netbsd*): New target.
5476 * mipsnbsd-nat.c: New file.
5477 * mipsnbsd-tdep.c: New file.
5478 * mipsnbsd-tdep.h: New file.
5479 * config/mips/nbsd.mh: New file.
5480 * config/mips/nbsd.mt: New file.
5481 * config/mips/nm-nbsd.h: New file.
5482 * config/mips/tm-nbsd.h: New file.
5483
70f80edf
JT
54842002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5485
5486 * Makefile.in (SFILES): Add osabi.c.
5487 (COMMON_OBS): Add osabi.o.
5488 (osabi.o): New dependency list.
5489 * osabi.c: New file.
5490 * osabi.h: New file.
5491 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5492
5493 * Makefile.in (alpha_tdep_h): Define and use instead of
5494 alpha-tdep.h.
5495 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5496 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5497 Remove.
5498 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5499 * alpha-tdep.h: Include osabi.h.
5500 (alpha_abi): Remove.
5501 (gdbarch_tdep): Use generic OS ABI framework.
5502 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5503 gdbarch_register_osabi.
5504 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5505 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5506 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5507
5508 * Makefile.in (sh_tdep_h): Add osabi.h.
5509 * sh-tdep.h (sh_osabi): Remove.
5510 (gdbarch_tdep): Use generic OS ABI framework.
5511 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5512 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5513 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5514 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5515
5516 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5517 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5518 gdbarch_register_osabi.
5519 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5520 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5521 (get_elfosabi): Rename to...
5522 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5523 ABI framework support routines.
5524 (arm_gdbarch_init): Use generic OS ABI framework.
5525 (arm_dump_tdep): Likewise.
5526 (_initialize_arm_tdep): Likewise.
5527 * arm-tdep.h: Include osabi.h.
5528 (arm_abi): Remove.
5529 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5530 osabi member.
5531 (arm_gdbarch_register_os_abi): Remove prototype.
5532 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5533 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5534
5535 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5536 * mips-tdep.c: Include osabi.h.
5537 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5538 OS ABI framework.
5539
d194345b
KH
55402002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5541
5542 * h8300-tdep.c: Fix formatting.
5543
70c6b0d1
EZ
55442002-05-20 Elena Zannoni <ezannoni@redhat.com>
5545
5546 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5547 printing vector registers.
5548
165b8e33
AC
55492002-05-19 Andrew Cagney <ac131313@redhat.com>
5550
5551 From Fernando Nasser:
5552 * remote.c (remote_async_open_1): Re-throw the exception when the
5553 connection fails.
5554 (remote_cisco_open): Ditto.
5555 (remote_open_1): Ditto.
5556
36918e70
AC
55572002-05-19 Andrew Cagney <ac131313@redhat.com>
5558
5559 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5560 (remote_start_remote): Add uiout parameter. Pass through to
5561 remote_start_remote_dummy.
5562 (remote_open_1): Use catch_exception instead of catch_errors.
5563 (remote_async_open_1): Ditto.
5564 (remote_cisco_open): Ditto.
5565
ae44c0c4
AC
55662002-05-19 Andrew Cagney <ac131313@redhat.com>
5567
5568 * remote.c (remote_start_remote): Replace PTR with void pointer.
5569 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5570 static.
5571
8efe637d
AC
55722002-05-18 Andrew Cagney <ac131313@redhat.com>
5573
5574 * gdb_indent.sh: Allow the script to be run in the sim directory.
5575
2f1b5984
MK
55762002-05-18 Mark Kettenis <kettenis@gnu.org>
5577
f0f625e2
MK
5578 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5579 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5580
2f1b5984
MK
5581 * corelow.c (core_open): Only call set_gdbarch_from_file if
5582 exec_bfd is NULL.
5583
fc974602
AV
55842002-05-17 Andrey Volkov <avolkov@transas.com>
5585
5586 * h8300-tdep.c: Add support of EXR register
5587 * config/h8300/tm-h8300.h: Ditto.
5588
906709f4
AV
55892002-05-17 Andrey Volkov <avolkov@transas.com>
5590
5591 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5592
6e591d68
AV
55932002-05-17 Andrey Volkov <avolkov@transas.com>
5594
5595 * h8300-tdep.c: Change literal regnums to REGNO.
5596
84f0252a
JB
55972002-05-17 Jim Blandy <jimb@redhat.com>
5598
e0e9281e
JB
5599 * NEWS: Note addition of macro support.
5600
84f0252a
JB
5601 Expand preprocessor macros in C expressions.
5602 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5603 (scan_macro_expansion, scanning_macro_expansion,
5604 finished_macro_expansion): New function declarations.
5605 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5606 variable declarations.
5607 * parser-defs.h (expression_context_pc): New declaration.
5608 * parse.c (expression_context_pc): New variable.
5609 (parse_exp_1): Set expression_context_pc, as well as
5610 expression_context_block.
5611 * c-exp.y (yylex): If we're not already reading the result of a
5612 macro expansion, try to macro-expand the next token. When we're
5613 done scanning a macro expansion, switch back to the mainline text.
5614 Commas and `if's in a macro's expansion don't terminate the input.
5615 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5616 (macro_original_text, macro_expanded_text,
5617 expression_macro_lookup_func, expression_macro_lookup_baton): New
5618 variables.
5619 (scan_macro_expansion, scanning_macro_expansion,
5620 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5621 c_preprocess_and_parse): New functions.
5622 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5623 c_preprocess_and_parse, instead of c_parse.
5624 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5625 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5626
1c509ca8
JR
5627Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5628
5629 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5630 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5631 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5632
2250ee0c
CV
56332002-05-17 Corinna Vinschen <vinschen@redhat.com>
5634
5635 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5636
ab3b8126
JT
56372002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5638
5639 * Makefile.in (sh_tdep_h): Define and use.
5640 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5641 register enum): Move to...
5642 * * sh-tdep.h: ...here.
5643 * sh-tdep.c: Include sh-tdep.h.
5644 * sh3-rom.c: Likewise.
5645 * shnbsd-tdep.c: Likewise.
5646
ed9d4749
MS
56472002-05-16 Michael Snyder <msnyder@redhat.com>
5648
5649 * arm-tdep.c: Spelling fix in comment.
5650
2e276125
JB
56512002-05-16 Jim Blandy <jimb@redhat.com>
5652
6821892e
JB
5653 Add commands for manually expanding macros and showing their
5654 definitions.
5655 * macrocmd.c, macroscope.c, macroscope.h: New files.
5656 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5657 (macroscope_h): New variable.
5658 (HFILES_NO_SRCDIR): Add macroscope.h.
5659 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5660 (macroscope.o, macrocmd.o): New rules.
5661
2e276125
JB
5662 Teach the Dwarf 2 reader to read macro information.
5663 * dwarf2read.c: #include "macrotab.h".
5664 (dwarf_macinfo_buffer): New variable.
5665 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5666 dwarf_macinfo_size.
5667 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5668 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5669 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5670 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5671 dwarf2_macro_spaces_in_definition): New complaints.
5672 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5673 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5674 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5675 the partial symbol table.
5676 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5677 from what's recorded in the partial symbol table.
5678 (read_file_scope): If the compilation unit has a
5679 `DW_AT_macro_info' attribute, read its macro information.
5680 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5681
2f53fe6c
DJ
56822002-05-16 Daniel Jacobowitz <drow@mvista.com>
5683
5684 Fix PR gdb/546
5685 * ser-tcp.c: Don't include <netinet/udp.h>.
5686
2be99286
SC
56872002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5688
5689 * MAINTAINERS: Update my email address.
5690
c9af212b 56912002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5692
5693 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5694 include file of the same name.
5695
bf5f1a52
CV
56962002-05-16 Corinna Vinschen <vinschen@redhat.com>
5697
5698 * configure.tgt: Mark v850 as multi-arched.
5699 * config/v850/tm-v850.h: Remove file.
5700 * config/v850/v850.mt: Eliminate TM_FILE.
5701
435e042a
CV
57022002-05-16 Corinna Vinschen <vinschen@redhat.com>
5703
5704 * v850-tdep.c: Full multi-arch.
5705 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5706 Define GDB_MULTI_ARCH to 2.
5707
9819c6c8
PM
57082002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5709
5710 * p-exp.y (current_type): New static variable.
5711 Carries the type of the expression at the position that is parsed.
5712 (push_current_type, pop_current_type): Two new functions. Used
5713 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5714 (search_field): New static variable. Set to one after parsing a point
5715 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5716 (FIELDNAME): New token. After a point only a token belonging to
5717 current_type type definition is allowed.
5718 (all over token rules): reset and change current_type according
5719 to rules.
5720 (exp '[' rule): insert implicit array index field if
5721 exp is a pascal string type.
5722
3a06899a
CV
57232002-05-16 Corinna Vinschen <vinschen@redhat.com>
5724
5725 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5726 frame info. Use frame_info's saved_regs instead of matching member
5727 in extra_frame_info throughout.
5728 (v850_frame_init_saved_regs): New function.
5729 (v850_init_extra_frame_info): Move most functionality into
5730 v850_frame_init_saved_regs().
5731 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5732 (v850_frame_find_saved_regs): Remove declaration.
5733 (FRAME_FIND_SAVED_REGS): Remove definition.
5734 (v850_frame_init_saved_regs): Add declaration.
5735 (FRAME_INIT_SAVED_REGS): Add definition.
5736
6ed14b0e
CV
57372002-05-16 Corinna Vinschen <vinschen@redhat.com>
5738
5739 * v850-tdep.c: Begin multi-arch'ing v850.
5740 (v850_target_architecture_hook): Remove function.
5741 (v850_gdbarch_init): New function. Add code previously in
5742 v850_target_architecture_hook().
5743 (_initialize_v850_tdep): Don't set target_architecture_hook.
5744 Call register_gdbarch_init() instead.
5745
42725910
DJ
57462002-05-16 Daniel Jacobowitz <drow@mvista.com>
5747
5748 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5749 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5750 (fixup_class_method_type): Likewise.
5751
99d9066e
JB
57522002-05-15 Jim Blandy <jimb@redhat.com>
5753
5754 Add macro structures to GDB's symbol tables. Nobody puts anything
5755 in them yet.
5756 * symtab.h (struct symtab): New member: `macro_table'.
5757 * buildsym.h (pending_macros): New global variable.
5758 * buildsym.c: #include "macrotab.h".
5759 (buildsym_init): Initialize `pending_macros'.
5760 (end_symtab): If we found macro information while reading a CU's
5761 debugging info, do build a symtab structure for it. Make the
5762 symtab point to the macro information, and clear the
5763 `pending_macros' pointer which held it while we were reading the
5764 debug info.
5765 (really_free_pendings): Free any pending macro table.
5766 * objfiles.h (struct objfile): New member: `macro_cache'.
5767 * objfiles.c (allocate_objfile): Set allocate and free functions
5768 for the macro cache's objstack.
5769 (free_objfile): Empty the macro cache's obstack.
5770 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5771 set new allocate and free functions for it.
5772 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5773 free functions for the macro cache's objstack. (Why is this
5774 function building its own objfile?)
5775 * symmisc.c (print_objfile_statistics): Print statistics on the
5776 macro bcache.
5777 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5778
c899585b
RE
57792002-05-15 Richard Earnshaw <rearnsha@arm.com>
5780
5781 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5782 (REGISTER_U_ADDR): Delete definition.
5783 (arm_register_u_addr): Delete declaration.
5784
a6cdd8c5
RE
57852002-05-15 Richard Earnshaw <rearnsha@arm.com>
5786
5787 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5788 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5789
c97dcfc7
AC
57902002-05-14 Andrew Cagney <ac131313@redhat.com>
5791
5792 * regcache.c (register_valid): Revise comments refering to "Not
5793 available" and "unavailable".
5794 * frame.c (frame_register_read): Ditto.
5795 * findvar.c (value_of_register): Ditto.
5796
93021b7d
AC
57972002-05-15 Andrew Cagney <cagney@redhat.com>
5798
5799 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5800 (remote-sim.o): Update dependencies.
5801 (d10v-tdep.o): Specify dependencies.
5802 (sim_d10v_h): Define.
5803
a86bc61c
JB
58042002-05-14 Jim Blandy <jimb@redhat.com>
5805
5806 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5807 * macrotab.c (macro_lookup_inclusion, find_definition,
5808 new_macro_table): Same.
5809
5810 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5811 not `! strcmp ()'. This is a dubious improvement.
5812 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5813
5814 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5815 although it's not necessary, to avoid a warning.
5816
2fdde8f8
DJ
58172002-05-14 Daniel Jacobowitz <drow@mvista.com>
5818
5819 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5820 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5821 TYPE_INSTANCE_FLAGS.
5822 (struct main_type): New.
5823 (struct type): Move most members to struct main_type. Change
5824 cv_type and as_type to new type_chain member. Add instance_flags.
5825 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5826 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5827 (finish_cv_type): Remove prototype.
5828 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5829 Set TYPE_CHAIN.
5830 (alloc_type_instance): New function.
5831 (smash_type): New function.
5832 (make_pointer_type, make_reference_type, make_function_type)
5833 (smash_to_member_type, smash_to_method_type): Call smash_type.
5834 (make_qualified_type): New function.
5835 (make_type_with_address_space): Call make_qualified_type.
5836 (make_cv_type): Likewise.
5837 (finish_cv_type): Remove unnecessary function.
5838 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5839 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5840 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5841 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5842 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5843 * hpread.c (hpread_read_struct_type): Likewise.
5844 * stabsread.c (read_struct_type): Likewise.
5845
843fedf4
EZ
58462002-05-14 Elena Zannoni <ezannoni@redhat.com>
5847
5848 * configure.tgt: Add a catch all sh* target, for cases like
5849 sh[2,3,4]-elf and sh-hms.
5850
05a6c72c
KS
58512002-05-14 Keith Seitz <keiths@redhat.com>
5852
5853 * event-loop.c (create_file_handler): Don't do anything but
5854 update data when we are given a fd which we are already
5855 monitoring.
5856
5d085aaf
ML
58572002-05-14 Michal Ludvig <mludvig@suse.cz>
5858
5859 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5860 (update_context): Use __func__ in warnings.
5861
9db8d71f
DJ
58622002-05-14 Daniel Jacobowitz <drow@mvista.com>
5863
5864 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5865 and tcp_close to net_open and net_close.
5866 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5867 using UDP if requested. Don't try to disable Nagle on UDP
5868 sockets.
5869 * remote.c (remote_serial_open): New function. Warn about UDP.
5870 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5871
5dbc6baa
EZ
58722002-05-13 Elena Zannoni <ezannoni@redhat.com>
5873
5874 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5875
cc3023f7
EZ
58762002-05-13 Elena Zannoni <ezannoni@redhat.com>
5877
5878 * configure.tgt: Remove sh-hms target.
5879 * MAINTAINERS: Don't list sh-hms as a separate target.
5880
ec2bcbe7
JB
58812002-05-13 Jim Blandy <jimb@redhat.com>
5882
5883 Add first preprocessor macro-expansion files.
5884 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5885 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5886 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5887 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5888 (COMMON_OBS): Add macrotab.o, macroexp.o.
5889 (macroexp.o, macrotab.o): New rules.
5890
6d531722
AC
58912002-05-13 Andrew Cagney <ac131313@redhat.com>
5892
5893 * config/m88k/tm-m88k.h: Update copyright.
5894 (m88k_target_write_pc): Declare
5895 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5896 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5897 (SHIFT_INST_REGS): Update definition.
5898 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5899 using old definition of TARGET_WRITE_PC.
5900 * regcache.c (generic_target_write_pc): Delete code handling
5901 NNPC_REGNUM.
5902 * gdbarch.sh (NNPC_REGNUM): Delete.
5903 * gdbarch.h, gdbarch.c: Regenerate.
5904
3e3f2739
RE
59052002-05-13 Richard Earnshaw <rearnsha@arm.com>
5906
5907 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5908 builtin reg number.
5909
0004e5a2
DJ
59102002-05-13 Daniel Jacobowitz <drow@mvista.com>
5911
5912 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5913 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5914 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5915 access macros.
5916 * c-typeprint.c (cp_type_print_method_args): Likewise.
5917 (c_type_print_args): Likewise.
5918 * d10v-tdep.c (d10v_push_arguments): Likewise.
5919 (d10v_extract_return_value): Likewise.
5920 * expprint.c (print_subexp): Likewise.
5921 * gdbtypes.c (lookup_primitive_typename): Likewise.
5922 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5923 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5924 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5925 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5926 (TYPE_VECTOR): Likewise.
5927 * hpread.c (hpread_read_struct_type)
5928 (fix_static_member_physnames, fixup_class_method_type)
5929 (hpread_type_lookup): Likewise.
5930 * mdebugread.c (parse_symbol, parse_type): Likewise.
5931 * p-lang.c (is_pascal_string_type): Likewise.
5932 * valops.c (hand_function_call): Likewise.
5933 * x86-64-tdep.c (classify_argument): Likewise.
5934
5935 * hpread.c (hpread_read_function_type)
5936 (hpread_read_doc_function_type): Call replace_type.
5937 * dstread.c (create_new_type): Delete.
5938 (decode_dst_structure, process_dst_function): Call alloc_type.
5939 Use type access macros.
5940
dff95cc7
MK
59412002-05-12 Mark Kettenis <kettenis@gnu.org>
5942
5943 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5944 the're not supported by the current architecture.
5945 (i387_fill_fxsave): Likewise.
5946
bbcd32ad
FF
59472002-05-12 Fred Fish <fnf@redhat.com>
5948
5949 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5950 sect_index_xxx members to index the first slot in section_offsets
5951 if all of the section_offsets are zero.
5952
89cf4787
MK
59532002-05-12 Mark Kettenis <kettenis@gnu.org>
5954
5955 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5956 checked in with last change.
5957
1f77ffc5
MK
59582002-05-12 Mark Kettenis <kettenis@gnu.org>
5959
5960 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5961 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5962 config.sub.
5963
89b8b4a9
DJ
59642002-05-12 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * Makefile.in: Update dependencies.
5967
14a5e767
AC
59682002-05-11 Andrew Cagney <ac131313@redhat.com>
5969
5970 * language.c (local_hex_string_custom): Simplify. Do not depend
5971 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5972
5973 * memattr.c (mem_info_command): Replace calls to
5974 longest_local_hex_string and longest_local_hex_string_custom.
5975 * buildsym.c (make_blockvector): Ditto.
5976 * solib.c (info_sharedlibrary_command): Ditto.
5977 * tracepoint.c (tracepoints_info): Ditto.
5978 * symtab.c (print_msymbol_info): Ditto.
5979
5980 * language.c (local_hex_string): Delete.
5981 (local_hex_string_custom): Delete.
5982 (longest_local_hex_string): Rename to local_hex_string.
5983 (longest_local_hex_string_custom): Rename to
5984 local_hex_string_custom.
5985 * language.h (local_hex_string): Change parameter type to LONGEST.
5986 (local_hex_string_custom): Ditto.
5987 (longest_local_hex_string): Delete declaration.
5988 (longest_local_hex_string_custom): Ditto.
5989
5990 * solib.c: Update copyright.
5991 * memattr.c: Update copyright.
5992
13d01224
AC
59932002-05-11 Andrew Cagney <ac131313@redhat.com>
5994
5995 * arch-utils.h (legacy_register_to_value): Declare.
5996 (legacy_value_to_register): Declare.
5997 (legacy_convert_register_p): Declare.
5998 * arch-utils.c (legacy_register_to_value): New function.
5999 (legacy_value_to_register): New function.
6000 (legacy_convert_register_p): New function.
6001
6002 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6003 (VALUE_TO_REGISTER): Define.
6004 (CONVERT_REGISTER_P): Define.
6005 * gdbarch.h, gdbarch.c: Regenerate.
6006
6007 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6008 VALUE_TO_REGISTER.
6009 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6010 CONVERT_REGISTER_P.
6011
4a1970e4
DJ
60122005-05-11 Daniel Jacobowitz <drow@mvista.com>
6013 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6014
6015 * Makefile.in: Update dependencies for valops.c.
6016 * valops.c: Include "gdb_assert.h".
6017 (typecmp): Skip THIS parameter to methods.
6018 (find_method_list): Remove static_memfuncp argument,
6019 update callers. Check for stub methods.
6020 (find_value_oload_method_list): Don't set *static_memfuncp.
6021 (find_overload_match): Don't check for stub methods. Assert
6022 that methods are not stubbed. Handle static methods.
6023 (value_find_oload_method_list): Remove static_memfuncp argument.
6024 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6025 to the argument list for static stub methods.
6026 * value.h (value_find_oload_method_list): Update prototype.
6027
b2e75d78
AC
60282002-05-11 Andrew Cagney <ac131313@redhat.com>
6029
6030 * arch-utils.h (generic_register_size): Declare.
6031 (generic_register_raw_size, generic_register_virtual_size): Delete
6032 declarations.
6033 * arch-utils.c (generic_register_raw_size): Delete.
6034 (generic_register_size): New function.
6035 (generic_register_virtual_size): Delete.
6036
6037 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6038 default generic_register_size.
6039 * gdbarch.h, gdbarch.c: Re-generate.
6040
6041 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6042 register_virtual_size.
6043 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6045
451fbdda
AC
60462002-05-11 Andrew Cagney <ac131313@redhat.com>
6047
6048 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6049 * gdbarch.h, gdbarch.c: Regenerate.
6050 * gnu-v3-abi.c: Update copyright.
6051 (vtable_address_point_offset): Update.
6052 (gnuv3_rtti_type): Update.
6053 (gnuv3_baseclass_offset): Update.
6054 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6055 (init_fetch_link_map_offsets): Update.
6056 * remote.c (get_remote_state): Update.
6057
6d2f5cea
DJ
60582002-05-11 Daniel Jacobowitz <drow@mvista.com>
6059
6060 * TODO: Remove value_headof/value_from_vtable_info comment.
6061 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6062 * values.c (value_headof, value_from_vtable_info): Delete.
6063 * value.h (value_from_vtable_info): Delete prototype.
6064
d2324da4
AC
60652002-05-11 Andrew Cagney <ac131313@redhat.com>
6066
6067 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6068 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6069 $(gdb_regex_h).
6070 (gdb_assert_h): Define.
6071 (gdb_wait_h): Define.
6072 (gdb_regex_h): Define.
6073
5c717440
DJ
60742002-05-11 Daniel Jacobowitz <drow@mvista.com>
6075
6076 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6077 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6078
6c7861b3
JT
60792002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6080
6081 * nbsd-tdep.c: Fix comment.
6082
ea5bc2a6
JT
60832002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6084
6085 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6086 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6087 (nbsd-tdep.o): New dependency list.
6088 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6089 nbsd-tdep.h.
6090 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6091 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6092 * nbsd-tdep.c: New file.
6093 * nbsd-tdep.h: New file.
6094 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6095 nbsd-tdep.h.
6096 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6097 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6098 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6099 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6100
b28da865
JT
61012002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6102
6103 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6104 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6105 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6106 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6107 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6108 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6109
4b8ff1fa
JT
61102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6111
6112 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6113 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6114 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6115 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6116 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6117 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6118 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6119
dfe6eb1f
JT
61202002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6121
6122 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6123 fetch_elfcore_registers to...
6124 * i386nbsd-tdep.c: ...here.
6125 (i386nbsd_use_struct_convention): Rename to...
6126 (i386nbsd_aout_use_struct_convention): ...this.
6127 (i386nbsd_supply_reg): New function.
6128 (i386nbsd_fill_reg): New function.
6129 (fetch_core_registers): Use i386nbsd_supply_reg.
6130 (fetch_elfcore_registers): Likewise.
6131 (_initialize_i386nbsd_tdep): New function.
6132 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6133 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6134 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6135 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6136 (i386nbsd_aout_use_struct_convention): ...this.
6137
20cb8cda
JT
61382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6139
6140 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6141 (store_inferior_registers): Use shnbsd_fill_reg.
6142 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6143 sh_nbsd_supply_register): Collapse into...
6144 (shnbsd_supply_reg): ...this.
6145 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6146 (shnbsd_fill_reg): ...this.
6147 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6148 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6149 (fetch_core_registers): Use shnbsd_supply_reg.
6150 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6151 (sh_nbsd_core_fns): Rename to...
6152 (shnbsd_core_fns): ...this.
6153 (sh_nbsd_elfcore_fns): Rename to...
6154 (shnbsd_elfcore_fns): ...this.
6155 (sh_nbsd_init_abi): Rename to...
6156 (shnbsd_init_abi): ...this.
6157 (_initialize_sh_nbsd_tdep): Rename to...
6158 (_initialize_shnbsd_tdep): ...this.
6159 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6160 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6161 sh_nbsd_fill_register): Remove prototypes.
6162 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6163
e750d25e
JT
61642002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6165
6166 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6167 (i387-nat.o): Delete dependency list.
6168 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6169 (x86-64-linux-nat.o): Likewise.
6170 * i387-nat.c: Delete file, moving contents to...
6171 * i387-tdep.c: ...here.
6172 * i387-nat.h: Rename...
6173 * i387-tdep.h: ...to this.
6174 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6175 * i386-linux-nat.c: Likewise.
6176 * i386bsd-nat.c: Likewise.
6177 * i386gnu-nat.c: Likewise.
6178 * i386nbsd-nat.c: Likewise.
6179 * i386v4-nat.c: Likewise.
6180 * x86-64-linux-nat.c: Likewise.
6181 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6182 * config/i386/go32.mh (NATDEPFILES): Likewise.
6183 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6184 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6185 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6186 * config/i386/linux.mh (NATDEPFILES): Likewise.
6187 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6188 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6189 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6190 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6191
1aee598a
JT
61922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6193
6194 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6195 (alphanbsd-nat.o): Remove dependency list.
6196 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6197 * alphanbsd-nat.c: Delete. Contents moved to...
6198 * alphanbsd-tdep.c: ...here.
6199 (_initialize_alphanbsd_tdep): Register core functions.
6200 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6201
12bcb0fe
JT
62022002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6203
6204 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6205 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6206 (alphanbsd-nat.o): Likewise.
6207 (alphabsd-tdep.o): New dependency list.
6208 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6209 (fill_gregset): Use alphabsd_fill_reg.
6210 (supply_fpregset): Use alphabsd_supply_fpreg.
6211 (fill_fpregset): Use alphabsd_fill_fpreg.
6212 (fetch_inferior_registers): Use struct reg and struct fpreg
6213 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6214 and alphabsd_supply_fpreg.
6215 (store_inferior_registers): Use struct reg and struct fpreg
6216 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6217 and alphabsd_fill_fpreg.
6218 * alphabsd-tdep.c: New file.
6219 * alphabsd-tdep.h: New file.
6220 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6221 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6222 alphabsd_supply_fpreg.
6223 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6224 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6225
361d1df0
EC
62262002-05-11 Eric Christopher <echristo@redhat.com>
6227
6228 * mips-tdep.c (mips_double_register_type): Fix thinko.
6229 (mips_single_register_type): Ditto.
6230 * MAINTAINERS: Add self.
6231
92dd7cee
MK
62322002-05-11 Mark Kettenis <kettenis@gnu.org>
6233
6234 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6235 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6236 right thing on architectures with different endianness and/or
6237 integer sizes.
6238
e27da16d
JT
62392002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6240
6241 From Christian Limpach <chris@Pin.LU>
6242 * configure.in: Change sed expression which comments out
6243 NATDEPFILES to also comment out continuation lines.
6244 * configure: Regenerate.
6245
ddde02bd
EZ
62462002-05-10 Elena Zannoni <ezannoni@redhat.com>
6247
6248 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6249 big patch.
6250
1c922164
EZ
62512002-05-10 Elena Zannoni <ezannoni@redhat.com>
6252
6253 * sh-tdep.c: Include correct file.
6254
283150cd
EZ
62552002-05-10 Elena Zannoni <ezannoni@redhat.com>
6256
6257 New support for sh64-elf (sh5) target.
6258
6259 * configure.tgt: For sh64-elf target, default to sh-elf.
6260
6261 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6262 (struct gdbarch_tdep): Add new fields for new registers and ABI
6263 info.
361d1df0 6264
283150cd
EZ
6265 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6266 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6267 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6268 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6269 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6270 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6271 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6272 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6273 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6274 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6275 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6276 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6277 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6278 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6279 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6280 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6281 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6282 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6283 sign_extend, sh64_nofp_frame_init_saved_regs,
6284 sh64_init_extra_frame_info, sh64_get_saved_register,
6285 sh64_extract_struct_value_address, sh64_pop_frame,
6286 sh64_push_arguments, sh64_extract_return_value,
6287 sh64_store_return_value, sh64_show_media_regs,
6288 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6289 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6290 sh_sh64_register_virtual_type,
6291 sh_sh64_register_convert_to_virtual,
6292 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6293 sh64_register_read, sh64_pseudo_register_write,
6294 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6295 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6296 sh64_do_pseudo_register, sh_compact_do_registers_info,
6297 sh64_do_registers_info, sh_gdbarch_init): New functions.
6298
3117ed25
EZ
62992002-05-10 Elena Zannoni <ezannoni@redhat.com>
6300
6301 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6302
2654e6d4
DJ
63032002-05-10 Daniel Jacobowitz <drow@mvista.com>
6304
6305 * linespec.c (decode_line_1): Check for a double quote after
6306 a filename correctly.
6307
9ab3e532
JB
63082002-05-10 Jim Blandy <jimb@redhat.com>
6309
6310 Properly track the size of the current objfile's .debug_line section.
6311 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6312 (DWARF_LINE_SIZE): New macro.
6313 (dwarf2_build_psymtabs_hard): Record the line section's size in
6314 the partial symbol table.
6315 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6316 symbol table.
6317
126fa72d
PS
63182002-05-10 Petr Sorfa <petrs@caldera.com>
6319
6320 * ia64-tdep.c: Handle breakpoints on L instruction type
6321 in MLX instruction bundle by moving the breakpoint to
6322 the third slot (X instruction type) as L holds only data.
6323
1f077a3e
KB
63242002-05-10 Kevin Buettner <kevinb@redhat.com>
6325
6326 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6327 (process_one_symbol): Complain about discarding local symbols
6328 due to a misplaced N_LBRAC entry.
6329
8120c9d5 63302002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6331
6332 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6333 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6334 decrease the depth we are at, in the case of templates.
361d1df0 6335
67b2c998
DJ
63362002-05-09 Daniel Jacobowitz <drow@mvista.com>
6337
6338 * mips-tdep.c (mips_float_register_type): New function.
6339 (mips_double_register_type): New function.
6340 (mips_print_register): Use them.
6341 (do_fp_register_row): Likewise.
6342
fd326606
DJ
63432002-05-09 Daniel Jacobowitz <drow@mvista.com>
6344
6609d9af 6345 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6346 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6347 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6348
bef35864
MS
63492002-05-09 Michael Snyder <msnyder@redhat.com>
6350
6351 * remote-rdp.c (remote_rdp_can_run): Remove.
6352
c55a3f73
TT
63532002-05-09 Tom Tromey <tromey@redhat.com>
6354
6355 * jv-valprint.c (java_val_print): Handle `char' as a special case
6356 of TYPE_CODE_INT.
6357
b8d5e71d
MS
63582002-05-09 Michael Snyder <msnyder@redhat.com>
6359
6360 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6361 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6362 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6363 str r(0123),[sp,#nn].
361d1df0 6364 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6365 order-independent by placing it in a loop.
6366
e2cd42dd
MS
63672002-05-06 Michael Snyder <msnyder@redhat.com>
6368
6369 * stabsread.c (read_type): Add recognition for new attribute:
6370 "@V;" means that an array type is actually a vector.
6371 This is analogous to the vector flag that's been added to dwarf2.
6372
3ce1502b
MK
63732002-05-09 Mark Kettenis <kettenis@gnu.org>
6374
6375 * i386-tdep.h (i386_abi): New enum.
6376 (struct gdbarch_tdep): Replace os_ident member with abi.
6377 (i386_gdbarch_register_os_abi): New prototype.
6378 * i386-tdep.c (i386_abi_names): New array.
6379 (process_note_abi_tag_sections): Removed.
6380 (process_note_sections): New function.
6381 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6382 (struct i386_abi_handler): New struct.
6383 (i386_abi_handler_list): New variable.
6384 (i386_gdbarch_register_os_abi): New function.
6385 (i386_gdbarch_init): Adapt for the changes given above.
6386
084c156a
DJ
63872002-05-08 Daniel Jacobowitz <drow@mvista.com>
6388
6389 * gregset.h: Say "GNU/Linux".
6390
6599f021
EZ
63912002-05-08 Elena Zannoni <ezannoni@redhat.com>
6392
6393 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6394 (build_gdbtypes): Build builtin_type_v2_float.
6395 (_initialize_gdbtypes): Register new builtin type.
6396
40af4b0c
AC
63972002-05-08 Andrew Cagney <ac131313@redhat.com>
6398
6399 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6400 (clear_gdbarch_swap): New function.
6401 (initialize_non_multiarch): Call.
6402 (gdbarch_update_p): Before calling init(), swap out and clear the
6403 existing architecture.
6404 * gdbarch.c: Regenerate.
6405
4fe84f46
JT
64062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6407
6408 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6409 alphanbsd-tdep.c.
6410
4015edd1
JT
64112002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6412
6413 * sh-nbsd-nat.c: Rename to...
6414 * shnbsd-nat.c: ...this.
6415 * sh-nbsd-tdep.c: Rename to...
6416 * shnbsd-tdep.c: ...this.
6417 * sh-nbsd-tdep.h: Rename to...
6418 * shnbsd-tdep.h: ...this.
6419 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6420 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6421
0e2bd219
RE
64222002-05-08 Richard Earnshaw <rearnsha@arm.com>
6423
6424 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6425 concatenation for command help messages.
6426
13a38d45
JT
64272002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6428
6429 * NEWS: Note new sh*-*-netbsdelf* configuration.
6430 * configure.host: Set gdb_host_cpu to sh for all sh*.
6431 (sh*-*-netbsdelf*): New host.
6432 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6433 (sh*-*-netbsdelf*): New target.
6434 * sh-nbsd-nat.c: New file.
6435 * sh-nbsd-tdep.c: New file.
6436 * sh-nbsd-tdep.h: New file.
6437 * config/sh/nbsd.mh: New file.
6438 * config/sh/nbsd.mt: New file.
6439 * config/sh/nm-nbsd.h: New file.
6440 * config/sh/tm-nbsd.h: New file.
6441
d658f924
JT
64422002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6443
6444 * sh-tdep.c (sh_osabi_names): Declare.
6445 (process_note_abi_tag_sections): New function.
6446 (get_elfosabi): Ditto.
6447 (sh_gdbarch_register_os_abi): Ditto.
6448 (sh_dump_tdep): Ditto.
6449 _initialize_sh_tdep): Use gdbarch_register to register
6450 sh_gdbarch_init and sh_dump_tdep.
6451 * config/sh/tm-sh.h (sh_osabi): Declare.
6452 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6453
848cfffb
AC
64542002-05-07 Andrew Cagney <ac131313@redhat.com>
6455
6456 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6457 (thumb_scan_prologue): Ditto.
6458 (arm_find_callers_reg): Ditto.
6459 (arm_frame_chain): Ditto.
6460 (arm_init_extra_frame_info): Ditto.
6461 (arm_frame_saved_pc): Ditto.
6462 (arm_pop_frame): Ditto.
6463 (arm_push_return_address): New function.
6464 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6465 call_dummy_location, call_dummy_breakpoint_offset_p,
6466 call_dummy_breakpoint_offset, call_dummy_p,
6467 call_dummy_stack_adjust_p, call_dummy_words,
6468 sizeof_call_dummy_words, call_dummy_start_offset,
6469 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6470 call_dummy_address, push_return_address and push_dummy_frame for
6471 generic dummy frames.
6472
e7d717c0
JT
64732002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6474
6475 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6476 size computation for alloca.
6477 (sh_fp_frame_init_saved_regs): Likewise.
6478
7bbcf283
RE
64792002-05-07 Richard Earnshaw <rearnsha@arm.com>
6480
6481 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6482 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6483 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6484 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6485 * remote-rdp.c (remote_rdp_fetch_register): Use
6486 ARM_MAX_REGISTER_RAW_SIZE.
6487 (remote_rdp_store_register): Likewise.
6488
4657573b
ML
64892002-05-07 Michal Ludvig <mludvig@suse.cz>
6490
361d1df0 6491 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6492 added default labels to switch {} statements.
6493 * x86-64-tdep.c: Ditto.
6494 * x86-64-linux-nat.c: Ditto.
6495
010f3b2f
JT
64962002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6497
6498 * solib.h: Protect against multiple inclusion.
6499
debd256d
JB
65002002-05-06 Jim Blandy <jimb@redhat.com>
6501
9ab3e532
JB
6502 Add first preprocessor macro-expansion files.
6503 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6504 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6505 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6506 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6507 (COMMON_OBS): Add macrotab.o, macroexp.o.
6508 (macroexp.o, macrotab.o): New rules.
6509
debd256d
JB
6510 Separate the job of reading the line number info statement program
6511 header (...expialidocious) out into its own function.
6512 * dwarf2read.c (struct line_head, struct filenames, struct
6513 directories): Replace with...
6514 (struct line_header): New structure, containing the full
6515 contents of the statement program header, including the
6516 include directory and file name tables.
6517 (read_file_scope): If we have line number info, instead of just
6518 calling dwarf_decode_lines to do all the work, call
6519 dwarf_decode_line_header first to get a `struct line_header'
6520 containing the data in the statement program header, and then
6521 pass that to dwarf_decode_lines, which will pick up where that
6522 left off. Be sure to clean up the `struct line_header' object.
6523 (dwarf_decode_line_header, free_line_header, add_include_dir,
6524 add_file_name): New functions.
6525 (dwarf_decode_lines): Move all the code to read the statement
6526 program header into dwarf_decode_line_header. Take the line
6527 header it built as the first argument, instead of the offset to
6528 the compilation unit's line number info. Use the new `struct
6529 line_header' type instead of the old structures. No need to do
6530 cleanups here now, since we don't allocate anything.
6531 (dwarf2_statement_list_fits_in_line_number_section,
6532 dwarf2_line_header_too_long): New complaints.
6533
ac3aafc7
EZ
65342002-05-06 Elena Zannoni <ezannoni@redhat.com>
6535
6536 * gdbtypes.c (init_vector_type): New function.
6537 (build_builtin_type_vec128): Simplify the representation of SIMD
6538 registers.
6539 (build_gdbtypes): Initialize new builtin vector types.
6540 (_initialize_gdbtypes): Register new vector types with gdbarch.
6541 (builtin_type_v4_float, builtin_type_v4_int32,
6542 builtin_type_v8_int16, builtin_type_v16_int8,
6543 builtin_type_v2_int32, builtin_type_v4_int16,
6544 builtin_type_v8_int8): New (renamed) SIMD types.
6545
13e49980
MK
65462002-05-06 Mark Kettenis <kettenis@gnu.org>
6547
6548 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6549 (i387_fill_fxsave): Likewise.
6550
997b20b8
AO
65512002-05-05 Alexandre Oliva <aoliva@redhat.com>
6552
6553 * alpha-tdep.c (alpha_extract_return_value): Don't use
6554 non-constant array size in prototype.
6555
535c96ce
AC
65562002-05-04 Andrew Cagney <ac131313@redhat.com>
6557
6558 From Brian Taylor <briant at model dot com>:
6559 * ui-out.c (ui_out_field_core_addr): Use the function
6560 longest_local_hex_string_custom'to format addresses > 32 bits
6561 wide.
6562
6563 * ui-out.c (ui_out_field_core_addr): Update comment.
6564
bedfa57b
AC
65652002-05-04 Andrew Cagney <ac131313@redhat.com>
6566
6567 * stack.c (select_and_print_frame): Make static. Delete the
6568 parameter `level'.
6569 (func_command): Update call.
6570 (select_frame_command): Delete code computing the frame level.
6571 * frame.h (select_and_print_frame): Delete declaration.
6572
f621c63e
AC
65732002-05-04 Andrew Cagney <ac131313@redhat.com>
6574
6575 * sparc-tdep.c (sparc_get_saved_register): Comment why
6576 get_prev_frame call is safe.
6577
0f7d239c
AC
65782002-05-04 Andrew Cagney <ac131313@redhat.com>
6579
6580 * frame.h (select_frame): Delete level parameter.
6581 * stack.c (select_frame): Update. Use frame_relative_level to
6582 obtain the frame's level.
6583 (select_and_print_frame): Update call.
6584 (select_frame_command): Ditto.
6585 (up_silently_base): Ditto.
6586 (down_silently_base): Ditto.
6587 * ocd.c (ocd_start_remote): Ditto.
6588 * remote-rdp.c (remote_rdp_open): Ditto.
6589 * remote-mips.c (mips_initialize): Ditto.
6590 (common_open): Ditto.
6591 * remote-e7000.c (e7000_start_remote): Ditto.
6592 * m3-nat.c (select_thread): Ditto.
6593 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6594 (child_get_current_exception_event): Ditto.
6595 * varobj.c (varobj_create): Ditto.
6596 (varobj_update): Ditto.
6597 (c_value_of_root): Ditto.
6598 * tracepoint.c (finish_tfind_command): Ditto.
6599 * corelow.c (core_open): Ditto.
6600 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6601 * thread.c (info_threads_command): Ditto.
6602 (switch_to_thread): Ditto.
6603 * infrun.c (normal_stop): Ditto.
6604 (restore_selected_frame): Ditto.
6605 (restore_inferior_status): Ditto.
6606 * breakpoint.c (insert_breakpoints): Ditto.
6607 (watchpoint_check): Ditto.
6608 (bpstat_stop_status): Ditto.
6609 (do_enable_breakpoint): Ditto.
6610 * blockframe.c (flush_cached_frames): Ditto.
6611 (reinit_frame_cache): Ditto.
6612
71d6c7b1
AC
66132002-05-04 Andrew Cagney <ac131313@redhat.com>
6614
6615 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6616 maintainer.
6617
cda6c68a
JB
66182002-05-04 Jim Blandy <jimb@redhat.com>
6619
6620 * gdbtypes.c (replace_type): Doc fix.
6621
5c1c87f0
AC
66222002-05-04 Andrew Cagney <ac131313@redhat.com>
6623
6624 * valprint.c (strcat_longest): Delete commented out function.
6625 Update copyright.
6626
cd9bfe15
AC
66272002-05-04 Andrew Cagney <ac131313@redhat.com>
6628
6629 * MAINTAINERS: Mark a29k as deleted.
6630 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6631 Move new configurations to the top.
6632 * configure.tgt: Remove a29k.
6633 * config/a29k/tm-vx29k.h: Delete.
6634 * config/a29k/vx29k.mt: Delete.
6635 * config/a29k/tm-a29k.h: Delete.
6636 * config/a29k/a29k-udi.mt: Delete.
6637 * config/a29k/a29k.mt: Delete.
6638 * a29k-tdep.c: Delete.
6639 * remote-udi.c: Delete.
6640 * remote-mm.c: Delete.
6641 * remote-eb.c: Delete.
6642 * remote-adapt.c: Delete.
6643 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6644 * config/s390/s390x.mt: Ditto.
6645 * config/s390/s390.mt: Ditto.
6646 * config/sparc/sparclynx.mh: Ditto.
6647 * config/sparc/linux.mh: Ditto.
6648 * config/pa/hppaosf.mh: Ditto.
6649 * config/pa/hppabsd.mh: Ditto.
6650 * config/ns32k/nbsd.mt: Ditto.
6651 * config/mips/vr5000.mt: Ditto.
6652 * config/m68k/sun3os4.mh: Ditto.
6653 * config/m68k/nbsd.mt: Ditto.
6654 * config/m68k/m68klynx.mh: Ditto.
6655 * config/m32r/m32r.mt: Ditto.
6656 * config/i386/x86-64linux.mt: Ditto.
6657 * config/i386/nbsdelf.mt: Ditto.
6658 * config/i386/nbsd.mt: Ditto.
6659 * config/i386/i386lynx.mh: Ditto.
6660
bf0c5130
AC
66612002-05-04 Andrew Cagney <ac131313@redhat.com>
6662
6663 * target.c (debug_print_register): New function. Handle oversize
6664 registers.
6665 (debug_to_fetch_registers): Call.
6666 (debug_to_store_registers): Call.
6667
2ae1c2d2
JB
66682002-05-03 Jim Blandy <jimb@redhat.com>
6669
13a393b0
JB
6670 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6671 (read_type): Doc fix.
6672 * gdbtypes.c (replace_type): Doc fix.
6673
2ae1c2d2
JB
6674 * stabsread.c (multiply_defined_struct): New complaint.
6675 (read_struct_type): If the type we were passed isn't empty, or
6676 incomplete, don't read the new struct type into it; complain,
6677 and return the original type unchanged. Take a new `type_code'
6678 argument, which is the type code for the new type.
6679 (read_type): Rather than storing the type's type code here, pass
6680 it as an argument to read_struct_type, and let that take care of
6681 storing it. That way, we don't overwrite the original type code,
6682 so read_struct_type can use it to decide whether we're overwriting
6683 something we shouldn't.
6684 (complain_about_struct_wipeout): New function.
6685
8de9bdc4
AC
66862002-05-03 Andrew Cagney <ac131313@redhat.com>
6687
6688 * gdbarch.sh: Assert that gdbarch is non-NULL.
6689 * gdbarch.c: Regenerate.
6690
f773fdbb
JM
66912002-05-03 Jason Merrill <jason@redhat.com>
6692
6693 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6694 and return NULL.
6695
0e04a514
ML
66962002-05-03 Michal Ludvig <mludvig@suse.cz>
6697
6698 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6699 (x86_64_dwarf2gdb_regno_map_length),
6700 (x86_64_dwarf2_reg_to_regnum): Added.
6701 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6702 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6703 (_initialize_x86_64_tdep): Synced with the change above.
6704 (x86_64_skip_prologue): Reformulated message.
6705
065432a8
PM
67062002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6707
6708 * f-exp.y: Also use new prev_lexptr variable
6709 to improve error reporting. Based on Michael Snyder
6710 2002-04-24 dated patch to c-exp.y.
6711 * jv-exp.y: Likewise.
6712 * m2-exp.y: Likewise.
6713
a3162708
EZ
67142002-05-02 Elena Zannoni <ezannoni@redhat.com>
6715
6716 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6717 we are dealing with vectors.
6718
03620c38
PM
67192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6720
6721 * config/m68k/tm-nbsd.h: Obvious fix,
6722 correct machine name.
6723
6604db2e
PM
67242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6725
6726 * p-typeprint.c (pascal_type_print_base): Add support
6727 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6728
0906b739
PM
67292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6730
6731 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6732 for fondamental pascal 'char' type.
6733
e2625b33
PM
67342002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6735
6736 * p-lang.h (is_pascal_string_type): Declaration changed,
6737 new sixth argument of type char ** added.
361d1df0 6738 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6739 changed. Args length_pos, length_size, string_pos, char_size
6740 can now be NULL. New argument arrayname set to the field
6741 name of the char array. Return value set to char array
6742 field index plus one.
361d1df0 6743 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6744 is_pascal_string_type function.
6745
cf17c188
AC
67462002-05-02 Andrew Cagney <cagney@redhat.com>
6747
6748 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6749 <cagney@redhat.com> change.
6750 * gdbarch.c: Regenerate.
6751
52bca491
AC
67522002-05-02 Andrew Cagney <cagney@redhat.com>
6753
6754 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6755 before probing for a new one. Detect errorenous gdbarch_init
6756 functions.
6757 * gdbarch.c: Regenerate.
6758
d5e72505
AC
67592002-05-01 Andrew Cagney <cagney@redhat.com>
6760
6761 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6762 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6763 * config/v850/tm-v850.h: Ditto. Update copyright.
6764
af566d9f
AC
67652002-04-30 Andrew Cagney <ac131313@redhat.com>
6766
6767 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6768 current_gdbarch.
6769
880d85fa
MS
67702002-04-30 Michael Snyder <msnyder@redhat.com>
6771
94c30b78
MS
6772 * arm-tdep.c: Whitespace clean-ups.
6773 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6774 should have been removed as part of 4/24 change.
6775
6f5987a6
KB
67762002-04-30 Kevin Buettner <kevinb@redhat.com>
6777
6778 * rs6000-tdep.c: Added comment describing how fpscr register
6779 numbers were chosen.
6780
1a113c93
MS
67812002-04-30 Michael Snyder <msnyder@redhat.com>
6782
6783 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6784
9a6f53fe
EZ
67852002-04-29 Elena Zannoni <ezannoni@redhat.com>
6786
6787 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6788 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6789 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6790
11ed25ac
KB
67912002-04-29 Kevin Buettner <kevinb@redhat.com>
6792
6793 From Louis Hamilton <hamilton@redhat.com>:
6794 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6795 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6796 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6797 not bfd-private xcoff data, to determine wordsize.
6798 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6799
ae232405
AC
68002002-04-29 Andrew Cagney <ac131313@redhat.com>
6801
6802 GDB 5.2 released from 5.2 branch.
6803
91fd20f7
ML
68042002-04-29 Michal Ludvig <mludvig@suse.cz>
6805
6806 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6807 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6808 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6809
2dc5091b
EZ
68102002-04-29 Elena Zannoni <ezannoni@redhat.com>
6811
6812 * rs6000-tdep.c (rs6000_extract_return_value,
6813 rs6000_store_return_value): Handle returning vectors.
6814 (rs6000_gdbarch_init): Use
6815 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6816 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6817 New function.
6818 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6819 vectors.
6820 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6821 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6822
2b9848d8
PM
68232002-04-24 Pierre Muller <ics.u-strasbg.fr>
6824
6825 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6826 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6827 with fprintf_unfiltered (gdb_stderr,...).
6828
f8d17dc5
PM
68292002-04-24 Pierre Muller <ics.u-strasbg.fr>
6830
6831 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6832 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6833 Replace fprintf (stderr,...
6834 with fprintf_unfiltered (gdb_stderr,....
6835 * remote-es.c: Likewise.
6836 * remote-os9k.c: Likewise.
6837 * remote-st.c: Likewise.
6838
2f2f1ad1
AS
68392002-04-28 Andreas Schwab <schwab@suse.de>
6840
6841 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6842 linux-proc.o and gcore.o.
6843
b6779aa2
AC
68442002-04-26 Michal Ludvig <mludvig@suse.cz>
6845
6846 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6847 code without frame pointers.
6848
7e57f5f4
AC
68492002-04-26 Andrew Cagney <ac131313@redhat.com>
6850
6851 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6852 ON_STACK is needed.
6853
2ceb85d0
BE
68542002-04-26 Ben Elliston <bje@redhat.com>
6855
6856 * target.c (do_xfer_memory): Correct reference to the new option
6857 "trust-readonly-sections".
6858
f5f8a009
EZ
68592002-04-26 Elena Zannoni <ezannoni@redhat.com>
6860
6861 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6862 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6863 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6864 vectors.
6865 (read_array_type): Record the fact that this array type is really a
6866 vector (i.e. are passed in by value).
6867
5868c862
JT
68682002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6869
6870 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6871 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6872 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6873 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6874 * alpha-linux-tdep.c: Include frame.h.
6875 (alpha_linux_sigcontext_addr): New function.
6876 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6877 alpha_linux_sigcontext_addr.
6878 * alpha-osf1-tdep.c: Include gdbcore.h.
6879 (alpha_osf1_sigcontext_addr): New function.
6880 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6881 alpha_osf1_sigcontext_addr.
6882 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6883 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6884
bfb01f37
AC
68852002-04-26 Andrew Cagney <ac131313@redhat.com>
6886
361d1df0 6887 * stack.c (selected_frame_level):
bfb01f37
AC
6888 (select_frame): Do not set selected_frame_level.
6889 * frame.h (selected_frame_level): Delete declaration.
6890
15813d3f
AC
68912002-04-26 Andrew Cagney <ac131313@redhat.com>
6892
6893 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6894 convert_from_func_ptr-addr when AIX / PowerOpen.
6895
6096c27a
AC
68962002-04-25 Andrew Cagney <ac131313@redhat.com>
6897
6898 * valops.c (hand_function_call): Call
6899 generic_save_call_dummy_addr.
6900 * frame.h (generic_save_call_dummy_addr): Declare.
6901 * blockframe.c (struct dummy_frame): Add fields call_lo and
6902 call_hi.
6903 (generic_find_dummy_frame): Check for PC in range call_lo to
6904 call_hi instead of entry_point_address.
6905 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6906 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6907 (generic_save_call_dummy_addr): New function.
6908
f510d44e
DM
69092002-04-24 David S. Miller <davem@redhat.com>
6910
6911 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6912 sparc_skip_prologue.
6913 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6914 information to find prologue when possible.
6915 (sparc_prologue_frameless_p): Call examine_prologue directly.
6916 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6917 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6918 second argument.
6919 (SKIP_PROLOGUE): Likewise.
6920
15d72a92
JT
69212002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6922
6923 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6924 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6925 indicate that the condition it was testing is always true.
6926 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6927 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6928 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6929
accc6d1f
JT
69302002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6931
6932 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6933 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6934 tdep->jb_pc and tdep->jb_elt_size.
6935 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6936 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6937 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6938 * alpha-nat.c (get_longjmp_target): Remove.
6939 (JB_ELEMENT_SIZE): Ditto.
6940 (JB_PC): Ditto.
6941 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6942 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6943 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6944 to alpha_get_longjmp_target.
6945 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6946 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6947 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6948
1bfdc549
AC
69492002-04-25 Andrew Cagney <ac131313@redhat.com>
6950
6951 * README: Update to GDB 5.2.
6952
1bd316f0
AC
69532002-04-25 Andrew Cagney <ac131313@redhat.com>
6954
6955 * gdbarch.sh (LC_ALL): Set to `c'.
6956
2e5ff58c
TR
69572002-04-25 Theodore A. Roth <troth@verinet.com>
6958
6959 * avr-tdep.c: Ran through gdb_indent.sh.
6960
e33ce519
TR
69612002-04-25 Theodore A. Roth <troth@verinet.com>
6962
6963 * MAINTAINERS: Add myself as AVR maintainer.
6964 * NEWS: Note new target avr.
6965
8818c391
TR
69662002-04-25 Theodore A. Roth <troth@verinet.com>
6967
6968 * Makefile.in: Add support for AVR target.
6969 * configure.tgt: Add support for AVR target.
6970 * avr-tdep.c: New file
6971 * config/avr/avr.mt: New file.
6972
79509c2d
TR
69732002-04-25 Theodore A. Roth <troth@verinet.com>
6974
6975 * MAINTAINERS: Add myself to write-after-approval.
6976
dac8068e
PM
69772002-04-24 Pierre Muller <ics.u-strasbg.fr>
6978
6979 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6980 with fprintf_unfiltered (gdb_stderr,....
6981
25bf3106
PM
69822002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6983
6984 Fix PR gdb/508.
6985 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6986
24467a86
PM
69872002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6988
6989 * p-exp.y: Also use new prev_lexptr variable
6990 to improve error reporting. Based on Michael Snyder
6991 2002-04-24 dated patch to c-exp.y.
6992
95b80706
JT
69932002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6994
6995 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6996 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6997 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6998 to 0.
6999 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7000 and struct value.
7001 (FUNCTION_START_OFFSET): Remove.
7002 (BREAKPOINT): Ditto.
7003
e90cc612
JT
70042002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7005
7006 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7007 * NEWS: Ditto.
7008
6c72f9f9
JT
70092002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7010
7011 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7012 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7013 alpha_linux_pc_in_sigtramp.
7014 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7015 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7016 alpha_osf1_pc_in_sigtramp.
7017 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7018 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7019 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7020 alphafbsd_pc_in_sigtramp.
7021 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7022 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7023 alphanbsd_pc_in_sigtramp.
7024 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7025 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7026
5e4f3379
JT
70272002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7028
7029 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7030
da8ca43d
JT
70312002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7032
7033 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7034 alphanbsd-tdep.c.
7035 (alphanbsd-nat.o): New dependency list.
7036 (alphanbsd-tdep.o): Ditto.
7037 * NEWS: Note new native NetBSD/alpha configuration.
7038 * alphanbsd-nat.c: New file.
7039 * alphanbsd-tdep.c: Ditto.
7040 * configure.host (alpha*-*-netbsd*): New host.
7041 * configure.tgt (alpha*-*-netbsd*): New target.
7042 * config/alpha/nbsd.mh: New file.
7043 * config/alpha/nbsd.mt: Ditto.
7044 * config/alpha/nm-nbsd.h: Ditto.
7045 * config/alpha/tm-nbsd.h: Ditto.
7046
36a6271d
JT
70472002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7048
7049 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7050 (alpha-osf1-tdep.o): New dependency list.
7051 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7052 and skip_sigtramp_frame members.
7053 * alpha-linux-tdep.c: Include gdbcore.h.
7054 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7055 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7056 * alpha-osf1-tdep.c: New file.
7057 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7058 alpha-osf1-dep.c.
7059 (alpha_frame_past_sigtramp_frame): New function.
7060 (alpha_dynamic_sigtramp_offset): Ditto.
7061 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7062 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7063 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7064 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7065 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7066 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7067 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7068 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7069 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7070 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7071 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7072 to find_solib_trampoline_target.
7073 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7074 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7075 (SKIP_TRAMPOLINE_CODE): Remove.
7076 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7077 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7078 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7079 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7080 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7081 (PROC_SIGTRAMP_MAGIC): Ditto.
7082 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7083 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7084 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7085 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7086 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7087
2f4bc57b
JT
70882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7089
7090 * NEWS: Note that Alpha targets are now multi-arch.
7091
665132f9
MS
70922002-04-24 Michael Snyder <msnyder@redhat.com>
7093
7094 * parser-defs.h (prev_lexptr): New external variable.
7095 * parse.c (parse_exp_1): Set prev_lexptr to null before
7096 calling the language-specific parser.
7097 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7098 (yyerror): Use prev_lexptr in error reporting.
7099
32872fa7
DJ
71002002-04-24 Daniel Jacobowitz <drow@mvista.com>
7101
7102 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7103 * gregset.h: If FILL_FPXREGSET is defined, provide
7104 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7105 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7106 is defined, call fill_fpxregset.
7107
57e76fac
MS
71082002-04-24 Roland McGrath <roland@frob.com>
7109
7110 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7111 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7112 (supply_gregset, supply_fpregset): New functions.
7113
7114 * gnu-nat.c (gnu_find_memory_regions): New function.
7115 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7116 (gnu_xfer_memory): Add a cast.
7117
f43845b3
MS
71182002-04-24 Michael Snyder <msnyder@redhat.com>
7119
361d1df0 7120 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7121 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7122 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7123 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7124 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7125 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7126
a0abec03
AC
7127Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7128
7129 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7130 NUM_PSEUDO_REGS can be used.
7131
d7bd68ca
AC
71322002-04-24 Andrew Cagney <ac131313@redhat.com>
7133
7134 * arch-utils.h: Update copyright.
7135
7136 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7137 * gdbarch.h, gdbarch.c: Re-generate.
7138
7139 * inferior.h (IN_SIGTRAMP): Delete definition.
7140 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7141 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7142
7143 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7144 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7145 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7146 (find_proc_framesize): Ditto.
7147 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7148 (alpha_init_extra_frame_info): Ditto.
7149 * infrun.c (handle_inferior_event): Ditto.
7150 (handle_inferior_event): Ditto.
7151 (check_sigtramp2): Ditto.
7152 * blockframe.c (create_new_frame): Ditto.
7153 (get_prev_frame): Ditto.
7154 * ppc-linux-tdep.c: Update comments.
7155 * i386-linux-tdep.c: Update comments.
7156 * breakpoint.c (bpstat_what): Update comment.
7157
4867e41e
DM
71582002-04-24 David S. Miller <davem@redhat.com>
7159
21d83aa5
DM
7160 * i960-tdep.c (register_in_window_p): New function.
7161 (i960_find_saved_register): Use it instead of
7162 REGISTER_IN_WINDOW_P.
7163 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7164
4867e41e
DM
7165 * symtab.h (find_stab_function_addr): Kill extern.
7166 * minsyms.c (find_stab_function_addr): Remove from here...
7167 * dbxread.c: ... to here, and mark it static.
7168
69cdf6a2
DM
71692002-04-20 David S. Miller <davem@redhat.com>
7170
7171 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7172 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7173
5a595886
DM
71742002-04-21 David S. Miller <davem@redhat.com>
7175
7176 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7177 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7178 (vx_write_register): Likewise.
7179
1da1a192
JB
71802002-04-23 J. Brobecker <brobecker@gnat.com>
7181
7182 * source.c (is_regular_file): New function.
7183 (openp): Check wether file to open is a regular file
7184 to avoid opening directories.
7185
baa6f10b
JT
71862002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7187
7188 * findvar.c (extract_signed_integer): Cast printf argument
7189 to suppress format warning.
7190 (extract_unsigned_integer): Likewise.
7191 * infcmd.c (registers_info): Likewise.
7192 * top.c (get_prompt_1): Likewise.
7193 * valops.c (value_assign): Likewise.
7194 * valprint.c (print_decimal): Likewise.
7195
b2c4da81
L
71962002-04-22 H.J. Lu (hjl@gnu.org)
7197
7198 * c-exp.y (typebase): Support
361d1df0 7199
b2c4da81
L
7200 [long|long long|short] [signed|unsigned] [int|]
7201
7202 and
7203
7204 signed [long|long long|short] int
7205
f267bd6a
JT
72062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7207
7208 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7209 and vax-tdep.h.
7210 * vax-tdep.h: New file.
7211 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7212 Make several routines static.
7213 (vax_get_saved_register): New function.
7214 (vax_gdbarch_init): New function.
7215 (_initialize_vax_tdep): Register vax_gdbarch_init.
7216 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7217 Remove macros now under the control of gdbarch.
7218
da3c6d4a
MS
72192002-04-22 Michael Snyder <msnyder@redhat.com>
7220
11d3b27d
MS
7221 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7222 Some whitespace and coding standards tweaks.
da3c6d4a 7223
a33f7558
JT
72242002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7225
7226 * vax-tdep.c: Include regcache.h.
7227 (vax_call_dummy_words): New.
7228 (sizeof_vax_call_dummy_words): New.
7229 (vax_fix_call_dummy): New function.
7230 (vax_saved_pc_after_call): Ditto.
7231 * config/vax/tm-vax.h: Don't include regcache.h.
7232 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7233 (CALL_DUMMY): Remove.
7234 (CALL_DUMMY_WORDS): Define.
7235 (SIZEOF_CALL_DUMMY_WORDS): Define.
7236 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7237
47a73475
MS
72382002-04-18 Michael Snyder <msnyder@redhat.com>
7239
7240 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7241
52efde73
JT
72422002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7243
7244 * vax-tdep.c (vax_frame_chain): New function.
7245 (vax_push_dummy_frame): Ditto.
7246 (vax_pop_frame): Ditto.
7247 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7248 (FRAMELESS_FUNCTION_INVOCATION): Use
7249 generic_frameless_function_invocation_not.
7250 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7251 (POP_FRAME): Use vax_pop_frame.
7252
ea74468c
JT
72532002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7254
7255 * vax-tdep.c (vax_store_struct_return): New function.
7256 (vax_extract_return_value): Ditto.
7257 (vax_store_return_value): Ditto.
7258 (vax_extract_struct_value_address): Ditto.
7259 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7260 vax_store_struct_return.
7261 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7262 (STORE_RETURN_VALUE): Use vax_store_return_value.
7263 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7264
5516aa92
JT
72652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7266
7267 * vax-tdep.c (vax_frame_saved_pc): New function.
7268 (vax_frame_args_address_correct): Ditto.
7269 (vax_frame_args_address): Ditto.
7270 (vax_frame_locals_address): Ditto.
7271 (vax_frame_num_args): Move code to be in proximity to
7272 other frame-related functions.
7273 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7274 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7275 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7276 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7277 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7278
36af0b35
L
72792002-04-22 H.J. Lu (hjl@gnu.org)
7280
7281 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7282 includedir.
7283
ab62c900
JT
72842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7285
7286 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7287 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7288 (FRAME_INIT_SAVED_REGS): New macro.
7289
7232b100
JT
72902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7293
b70d2aee
JT
72942002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7295
7296 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7297 where needed.
7298 (fetch_osf_core_registers): Likewise.
7299 (supply_gregset): Likewise.
7300
a0e8a2d1 73012002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7302
a0e8a2d1
JB
7303 * symfile.h (get_section_index): Define.
7304 * symfile.c (get_section_index): New function.
7305 * mdebugread.c (SC_IS_SBSS): New macro.
7306 (SC_IS_BSS): Return true for the scBss storage class only, as
7307 the scSBss storage class refers to the .sbss section.
7308 (parse_partial_symbols): Discard the symbols which associated
7309 section does not exist.
7310 Make sure to use the .sbss section index for symbols which
7311 storage class is scBss, rather than using the .bss section index.
7312
51eb8b08
JT
73132002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7314
7315 * vax-tdep.c: Update copyright years.
7316 (vax_register_name): New function.
7317 (vax_register_byte): Ditto.
7318 (vax_register_raw_size): Ditto.
7319 (vax_register_virtual_size): Ditto.
7320 (vax_register_virtual_type): Ditto.
7321 * config/vax/tm-vax.h: Update copyright years.
7322 (REGISTER_NAMES): Remove.
7323 (REGISTER_NAME): Define.
7324 (REGISTER_BYTE): Use vax_register_byte.
7325 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7326 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7327 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7328
6cc1c0a8
AC
73292002-04-21 Andrew Cagney <ac131313@redhat.com>
7330
7331 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7332 declaration
7333 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7334
9319a2fe
DM
73352002-04-21 David S. Miller <davem@redhat.com>
7336
7337 * arch-utils.c (generic_prologue_frameless_p): Kill
7338 SKIP_PROLOGUE_FRAMELESS_P code.
7339 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7340 references.
7341 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7342 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7343 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7344 references.
7345 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7346 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7347 (sparc_gdbarch_init): Pass it to
7348 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7349
e9ed6d01
JT
73502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7351
7352 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7353 (alphabsd-nat.o): New dependency list.
7354
36012033
JT
73552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7356
7357 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7358 alphafbsd-tdep.c.
7359 (alpha-linux-tdep.o): New dependency list.
7360 (alphafbsd-tdep.o): Likewise.
7361
3379287a
JT
73622002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7363
7364 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7365 to here...
7366 * alpha-tdep.c: ...from here.
7367 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7368
4bcbd6cb
JT
73692002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7370
7371 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7372 prototype from here...
7373 * alpha-tdep.h: ...to here.
7374
b31da25e
AC
73752002-04-21 Andrew Cagney <ac131313@redhat.com>
7376
7377 * frame.h (selected_frame_level): Document as deprecated.
7378 (frame_relative_level): Declare.
7379 * stack.c (frame_relative_level): New function.
7380 (selected_frame_level): Document as deprecated.
7381 (select_frame): Do not set the selected_frame_level.
7382
7383 * stack.c (frame_info, record_selected_frame): Update.
7384 (frame_command, current_frame_command): Update.
7385 (up_silently_base, up_command, down_silently_base): Update.
7386 (down_command): Update.
7387 * inflow.c (kill_command): Update.
7388 * tracepoint.c (finish_tfind_command): Update.
7389 * corelow.c (core_open): Update.
7390 * thread.c (info_threads_command): Update.
7391 (do_captured_thread_select): Update.
7392 * infcmd.c (finish_command): Update.
7393 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7394
9c1d6fe5
JT
73952002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7396
7397 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7398
ab89facf
AC
73992002-04-21 Andrew Cagney <ac131313@redhat.com>
7400
7401 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7402 type const.
7403
82a4efa1
JT
74042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7405
7406 * alphafbsd-tdep.c: Update copyright years. Include
7407 alpha-tdep.h.
7408 (alphafbsd_use_struct_convention): Make static.
7409 (alphafbsd_init_abi): New function.
7410 (_initialize_alphafbsd_tdep): New function.
7411 * config/alpha/tm-fbsd.h: Update copyright years.
7412 (USE_STRUCT_CONVENTION): Remove.
7413
44dffaac
JT
74142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7415
7416 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7417 an Alpha ABI variant.
7418 (alpha_abi_handler_list): Declare.
7419 (alpha_gdbarch_register_os_abi): New function.
7420 (alpha_gdbarch_init): Give registered ABI variant handlers a
7421 chance to tweak the gdbarch once we have set up defaults.
7422 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7423
65585be4
JT
74242002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7425
7426 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7427 to standard_coerce_float_to_double.
7428 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7429
d9b023cc
JT
74302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7431
7432 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7433 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7434 from gdbarch_tdep rather than a constant.
7435 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7436 the default text address for all Alpha Unix ABIs.
7437 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7438 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7439
dc129d82
JT
74402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7441
7442 * alpha-tdep.h: New file. Includes several Alpha target constants
7443 taken from...
7444 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7445 let gdbarch deal with.
7446 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7447 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7448 to dependency list.
7449 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7450 Alpha target register names.
7451 * alphabsd-nat.c: Likewise.
7452 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7453 Alpha target register names. Make serveral routines static.
7454 (alpha_get_saved_register): New function.
7455 (alpha_abi_names): New.
7456 (process_note_abi_tag_sections): New function.
7457 (get_elfosabi): New function.
7458 (alpha_gdbarch_init): New function.
7459 (alpha_dump_tdep): New function.
7460 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7461
d49d1e0a
AC
74622002-04-21 Andrew Cagney <ac131313@redhat.com>
7463
7464 * frame.c (find_saved_register): Delete #ifdef
7465 HAVE_REGISTER_WINDOWS code.
7466 * config/sparc/tm-sparc.h: Update comments.
7467 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7468
92e8c9ed
AC
74692002-04-21 Andrew Cagney <ac131313@redhat.com>
7470
7471 * i960-tdep.c (i960_find_saved_register): New function.
7472 (i960_get_saved_register): New function.
7473 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7474 (i960_get_saved_register): Declare.
7475 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7476
e1925118
DM
74772002-04-20 David S. Miller <davem@redhat.com>
7478
7479 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7480
29673b29
AC
74812002-04-20 Andrew Cagney <ac131313@redhat.com>
7482
7483 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7484 instead of NUM_PSEUDO_REGS.
7485
6c86dcd5
DM
74862002-04-20 David S. Miller <davem@redhat.com>
7487
7488 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7489 GDB_MULTI_ARCH_PARTIAL
7490 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7491 define, let tm-sp64.h do it.
7492
aa40ec90
JT
74932002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7494
7495 * frame.c (find_saved_register): Avoid a NULL pointer
7496 dereference and actually walk the frame list.
7497
0f79675b
AC
74982002-04-20 Andrew Cagney <ac131313@redhat.com>
7499
7500 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7501 sorted in most most-recent-used order. Document.
7502 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7503
f91305dd 75042002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7505
7506 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7507 instead of ->prev.
7508 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7509 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7510 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7511 instead of ->prev.
7512
73d322b1
EZ
75132002-04-19 Elena Zannoni <ezannoni@redhat.com>
7514
7515 Fix PR gdb/471.
7516 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7517 (build_builtin_type_vec128): Ditto.
7518 (append_composite_type_field): Fix calculation of type length in
7519 union case.
7520
ccd9a834
EZ
75212002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7522
7523 * config/djgpp/README: Update.
7524
7525 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7526 compiler warnings.
7527
a57f9e49
JT
75282002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7529
7530 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7531 (alpha_setup_arbitrary_frame): ...to this.
7532 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7533 for alpha_setup_arbitrary_frame.
7534
f4f9705a
AC
75352002-04-18 Andrew Cagney <cagney@redhat.com>
7536
7537 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7538 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7539
f4f9705a
AC
7540 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7541 * target.h (memory_breakpoint_from_pc): Update declaration.
7542 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7543
7544 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7545 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7546 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7547 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7548 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7549 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7550 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7551 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7552 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7553 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7554 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7555 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7556
7557 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7558 const pointer.
7559 * monitor.c (monitor_insert_breakpoint): Ditto.
7560 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7561
7562 * config/mcore/tm-mcore.h: Update copyright.
7563 * mem-break.c: Ditto.
7564 * xstormy16-tdep.c: Ditto.
7565
29f319b8
PM
75662002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7567
7568 * p-exp.y: Add precedence rule for '^' token.
7569 This removes the shift/reduce conflicts.
7570 Remove the comment concerning these shift/reduce conflicts.
7571
ebeac11a
EZ
75722002-04-18 Elena Zannoni <ezannoni@redhat.com>
7573
7574 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7575 (registers_powerpc_nofp): New register set for processors
7576 without floating point unit.
7577
27c31547
DM
75782002-04-18 David S. Miller <davem@redhat.com>
7579
7580 * MAINTAINERS: Add myself to write-after-approval.
7581
47a73475
MS
75822002-04-17 Michael Snyder <msnyder@redhat.com>
7583
7584 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7585
953836b2
AC
75862002-04-17 Andrew Cagney <ac131313@redhat.com>
7587
7588 * rs6000-tdep.c (frame_initial_stack_address): Use
7589 frame_register_read to read the alloca_reg.
7590
8b0d4340
AC
75912002-04-17 Andrew Cagney <ac131313@redhat.com>
7592
7593 * frame.c (find_saved_register): Find saved registers in the next
7594 not prev frame.
7595 Fix PR gdb/365.
7596
d8864532
AC
75972002-04-17 Andrew Cagney <ac131313@redhat.com>
7598
7599 * gdbarch.sh (LANG): Set to ``c''.
7600
36cc83a3 76012002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7602
36cc83a3 7603 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7604
2f4150cc 76052002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7606
7607 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7608 Update copyright.
7609
628703c6 7610 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7611 Also fix PR gdb/391.
361d1df0 7612
56157b4a
AC
76132002-04-14 Andrew Cagney <ac131313@redhat.com>
7614
7615 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7616 * aclocal.m4, configure: Re-generate.
7617 Fix PR gdb/391.
361d1df0 7618
6d1e3329
EZ
76192002-04-14 Elena Zannoni <ezannoni@redhat.com>
7620
7621 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7622 instead of tm_print_insn.
7623
cb06fa07
EZ
76242002-04-14 Elena Zannoni <ezannoni@redhat.com>
7625
7626 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7627
f208ba17
AC
76282002-04-14 Andrew Cagney <ac131313@redhat.com>
7629
7630 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7631 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7632 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7633
20f01a46
DH
76342002-04-12 Don Howard <dhoward@redhat.com>
7635
7636 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7637 max_user_call_depth.
7638 (init_cmd_lists): Initialize the new value;
7639 * cli/cli-script.c (execute_user_command): Limit the call depth of
7640 user defined commands. This avoids a core-dump when user commands
7641 are infinitly recursive.
7642
a88376a3
KB
76432002-04-12 Kevin Buettner <kevinb@redhat.com>
7644
7645 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7646 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7647 from tdep struct instead of DEFAULT_LR_SAVE.
7648 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7649 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7650 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7651
f2172603
MS
76522002-04-12 Michael Snyder <msnyder@redhat.com>
7653
694f61fb 7654 * Remote.c: Spelling fix.
20fe79c8
MS
7655 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7656 If no symbol found for "sbrk", try "_sbrk".
7657 (make_output_phdrs): Use bfd_section_name.
7658 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7659 * eval.c: Indentation fix-ups.
169a7369
MS
7660 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7661 in case it gets applied to an address that is already
7662 in the instruction space.
de74f71f
MS
7663 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7664 * symfile.c: Fix indentation, long lines.
f2172603
MS
7665 * source.c: White space fix-up.
7666
cda5a58a
AC
76672002-04-12 Andrew Cagney <cagney@redhat.com>
7668
7669 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7670 * frame.c (frame_register_read): New function. Return non-zero on
7671 success.
7672 (read_relative_register_raw_bytes_for_frame): Delete.
7673 (read_relative_register_raw_bytes): Delete.
7674 * frame.h (frame_register_read): Declare.
7675 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7676 * sh-tdep.c: Ditto.
7677 * infcmd.c (do_registers_info): Ditto.
7678 * hppa-tdep.c: Ditto.
7679 * rs6000-tdep.c: Ditto.
7680 * h8500-tdep.c: Ditto.
7681 * mips-tdep.c: Ditto.
7682 * h8300-tdep.c: Ditto.
7683 * z8k-tdep.c: Ditto.
7684
2ea5f656
KB
76852002-04-12 Kevin Buettner <kevinb@redhat.com>
7686
7687 From Jimi X <jimix@watson.ibm.com>:
7688 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7689 64-bit SysV ABI.
7690
27b15785
KB
76912002-04-12 Kevin Buettner <kevinb@redhat.com>
7692
7693 From Jimi X <jimix@watson.ibm.com>:
7694 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7695 bfd info.
7696
5d57ee30
KB
76972002-04-12 Kevin Buettner <kevinb@redhat.com>
7698
7699 From Jimi X <jimix@watson.ibm.com>:
7700 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7701 register sets for these processor variants.
7702
bc1e36ca
DJ
77032002-04-11 Daniel Jacobowitz <drow@mvista.com>
7704
bc1e36ca
DJ
7705 * regformats/reg-ppc.dat: Support FPSCR.
7706
e3f36dbd
KB
77072002-04-11 Kevin Buettner <kevinb@redhat.com>
7708
7709 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7710 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7711 Add fpscr as an invalid/unfetchable register.
7712 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7713 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7714 (fill_fpregset): Add support for register fpscr.
7715 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7716 (fill_gregset): Account for the fact that register ``mq'' might
7717 not exist.
7718 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7719 (registers_power): Add fpscr to register set at slot 71.
7720 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7721 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7722
943c9c25
MS
77232002-04-11 Michael Snyder <msnyder@redhat.com>
7724
7725 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7726 * configure: Regenerate.
7727 * config.in: Regenerate.
7728 * acconfig.h: Add define for _SYSCALL32.
7729 * core-sol2.c: Remove #define _SYSCALL32.
7730 * solib-legacy.c: Remove #define _SYSCALL32.
7731
d8c0a2e7
AC
77322002-04-10 Andrew Cagney <ac131313@redhat.com>
7733
7734 * stack.c (select_frame): Cleanup internal error message, do not
7735 use %p.
7736
7cc19214
AC
77372002-04-10 Andrew Cagney <ac131313@redhat.com>
7738
7739 * stack.c (select_frame): Check that selected_frame and the
7740 specified level are as expected.
7741 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7742 Update copyright.
7743 * frame.h (struct frame_info): Add field `level'. Update
7744 copyright.
7745 Work-in-progress PR gdb/464.
7746
67a2b77e
AC
77472002-04-10 Andrew Cagney <ac131313@redhat.com>
7748
7749 * maint.c (maint_print_section_info): Rename print_section_info.
7750 (print_bfd_section_info, print_objfile_section_info): Update.
7751 * inferior.h (struct gdbarch): Add opaque declaration.
7752 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7753 * gdbarch.h: Regenerate.
7754
8cfda98c
ML
77552002-04-10 Michal Ludvig <mludvig@suse.cz>
7756
7757 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7758 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7759 (kernel_u_size): Added.
7760 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7761 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7762
ca439ad2 77632002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7764
ca439ad2
JI
7765 * valarith.c (find_size_for_pointer_math): New function, either returns
7766 the size for a pointer's target, returns 1 for void *, or errors for
7767 incomplete types.
7768 (value_add, value_sub): use find_size_for_pointer_math.
7769
2f2893d9
DJ
77702002-04-09 Daniel Jacobowitz <drow@mvista.com>
7771
7772 * linux-low.c (linux_look_up_symbols): New hook.
7773 (linux_target_ops): Add linux_look_up_symbols.
7774 * remote-utils.c (decode_address): New function.
7775 (look_up_one_symbol): New function.
7776 * server.c (handle_query): Call target look_up_symbols hook.
7777 * server.h (look_up_one_symbol): Add prototype.
7778 * target.h (struct target_ops): Add look_up_symbols hook.
7779
96cb11df
AC
77802002-04-09 Andrew Cagney <ac131313@redhat.com>
7781
7782 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7783 override FP_REGNUM with frame->fp. Update copyright.
7784 * parse.c (num_std_regs, std_regs): Delete.
7785 (target_map_name_to_register): Do not search std_regs. Update
7786 function description.
7787 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7788 declarations. Update copyright.
7789 Fix PR gdb/251.
361d1df0 7790
97658e92
DJ
77912002-04-09 Daniel Jacobowitz <drow@mvista.com>
7792
7793 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7794 after the last symbol in a block.
7795
6044e3eb
PM
77962002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7797
7798 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7799 is non zero as a found symbol.
7800
0406ec40
AC
78012002-04-08 Andrew Cagney <ac131313@redhat.com>
7802
7803 * findvar.c: Include "builtin-regs.h".
7804 (value_of_register): Call value_of_builtin_reg when applicable.
7805 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7806 (target_map_name_to_register): Call
7807 builtin_reg_map_name_to_regnum.
7808 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7809 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7810 (builtin_regs_h): Define.
7811 (builtin-regs.o): New target.
7812 (findvar.o): Add $(builtin_regs_h).
7813 * builtin-regs.c, builtin-regs.h: New files.
7814 * std-regs.c: New file.
7815 Partial fix for PR gdb/251.
7816
56a6dfb9
KB
78172002-04-08 Kevin Buettner <kevinb@redhat.com>
7818
7819 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7820 it's no longer required.
7821
3a808432
AC
78222002-04-08 Andrew Cagney <ac131313@redhat.com>
7823
7824 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7825
7c40d541
KB
78262002-04-08 Kevin Buettner <kevinb@redhat.com>
7827
7828 From Jimi X <jimix@watson.ibm.com>:
7829 * rs6000-tdep.c (rs6000_software_single_step): Use
7830 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7831 and size. Use target_insert_breakpoint() and
7832 target_remove_breakpoint() to insert and remove breakpoints
7833 instead of explicit memory reads and writes.
7834
cc9836a8
KB
78352002-04-08 Kevin Buettner <kevinb@redhat.com>
7836
7837 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7838 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7839 ELF_OBJECT_FORMAT ifdef.
7840
7495d1dc
KB
78412002-04-08 Kevin Buettner <kevinb@redhat.com>
7842
7843 From Jimi X <jimix@watson.ibm.com>:
7844 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7845
4288e836
KB
78462002-04-08 Kevin Buettner <kevinb@redhat.com>
7847
7848 From Jimi X <jimix@watson.ibm.com>:
7849 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7850 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7851
a4e4e501
MK
78522002-04-07 Mark Kettenis <kettenis@gnu.org>
7853
7854 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7855 s/asprintf/xasprintf/.
7856 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7857
006defba
AC
78582002-04-07 Andrew Cagney <ac131313@redhat.com>
7859
7860 I believe Jeff Law denies responsability for this one:
7861 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7862 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7863 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7864 Work-around for PR gdb/366.
7865
7aa83cac
EZ
78662002-04-07 Elena Zannoni <ezannoni@redhat.com>
7867
7868 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7869 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7870 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7871
cf1fcca1
EZ
78722002-04-07 Elena Zannoni <ezannoni@redhat.com>
7873
7874 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7875 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7876 information.
7877
3f289e6f
AC
78782002-04-07 Andrew Cagney <ac131313@redhat.com>
7879
7880 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7881 maintainer.
7882
129188f6
AC
78832002-04-07 Andrew Cagney <ac131313@redhat.com>
7884
7885 * README (Reporting Bugs in GDB): Document the bug web page as the
7886 prefered way of submitting bugs.
7887 Fix PR gdb/402.
7888
1200cd6e
AC
78892002-04-06 Andrew Cagney <ac131313@redhat.com>
7890
7891 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7892 -1. Update comment.
7893 * gdbarch.h, gdbarch.c: Re-generate.
7894
2853c33c
AS
78952002-04-07 Andreas Schwab <schwab@suse.de>
7896
7897 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7898 buffer to regcache_collect.
7899
c2169756
AC
79002002-04-06 Andrew Cagney <ac131313@redhat.com>
7901
7902 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7903 * gdbarch.c, gdbarch.h: Re-generate.
7904
25f1b008
AC
79052002-04-06 Andrew Cagney <ac131313@redhat.com>
7906
7907 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7908 declaration. Fix -Werror.
7909
59263426
DJ
79102002-04-05 Daniel Jacobowitz <drow@mvista.com>
7911
7912 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7913 * gdbarch.c: Regenerate.
7914
f5db4da3
MS
79152002-04-05 Michael Snyder <msnyder@redhat.com>
7916
80f8a6eb
MS
7917 * breakpoint.c (clear_command): Rewrite middle section to
7918 combine two loops with identical control conditions.
7919 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7920 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7921
ad3dcc5c
L
79222002-04-05 H.J. Lu (hjl@gnu.org)
7923
7924 * solib-svr4.c (bkpt_names): Add "__start".
7925
f32e7a74
AC
79262002-04-04 Andrew Cagney <ac131313@redhat.com>
7927
7928 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7929 as test for 64 bit target.
7930
8227c0ff
AC
79312002-04-05 Andrew Cagney <ac131313@redhat.com>
7932
7933 * h8500-tdep.c (h8500_write_fp): Delete function.
7934 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7935 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7936 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7937 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7938 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7939 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7940 (s390_write_fp):
7941 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7942 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7943 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7944 (d10v_write_fp): Delete function.
7945 * inferior.h (write_fp, generic_target_write_fp): Delete
7946 declarations.
7947 * regcache.c (generic_target_write_fp): Delete function.
7948 (write_fp): Delete function.
7949 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7950 * gdbarch.h, gdbarch.c: Regenerate.
7951 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7952 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7953 (sparc64_write_fp): Delete declaration.
7954 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7955 (h8500_write_fp): Delete declaration.
7956
2757dd86
AC
79572002-04-04 Andrew Cagney <ac131313@redhat.com>
7958
7959 * sparc-tdep.c (sparc64_write_fp): Delete.
7960 (sparc_push_dummy_frame): Replace write_fp call with code to store
7961 the FP directly.
7962 (sparc_gdbarch_init): Do not initialize write_fp.
7963
c69255e1
KB
79642002-04-05 Kevin Buettner <kevinb@redhat.com>
7965
7966 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7967 clause.
7968
ae767bfb
JB
79692002-03-29 Jim Blandy <jimb@redhat.com>
7970
7971 * stack.c (get_selected_block): Add new argument `addr_in_block',
7972 used to return the exact code address we used to select the block,
7973 not just the block.
7974 * blockframe.c (get_frame_block, get_current_block): Same.
7975 * frame.h (get_frame_block, get_current_block,
7976 get_selected_block): Update declarations.
7977 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7978 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7979
84d2ac95
MS
79802002-04-05 Michael Snyder <msnyder@redhat.com>
7981
7982 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7983 warning message.
7984
596aa3bf
JB
79852002-04-05 J. Brobecker <brobecker@gnat.com>
7986
7987 * utils.c (xfullpath): New function.
7988 * defs.h (xfullpath): Add declaration.
7989 * source.c (openp): Use xfullpath in place of gdb_realpath to
7990 avoid resolving the basename part of filenames when the
7991 associated file is a symbolic link. This fixes a potential
7992 inconsistency between the filenames known to GDB and the
7993 filenames it prints in the annotations.
7994 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7995 to be able to match a filename with either the real filename, or
7996 the name of any symbolic link to this file.
7997 (lookup_partial_symtab): Ditto.
7998
c02f5703
MS
79992002-04-04 Michael Snyder <msnyder@redhat.com>
8000
8001 * breakpoint.c: Add support for hardware breakpoints in overlays.
8002 (overlay_events_enabled): New state variable.
8003 (insert_breakpoints): Use overlay_events_enabled to decide
8004 whether to attempt to set a breakpoint at the overlay load addr.
8005 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8006 (remove_breakpoint): Use overlay_events_enabled to decide
8007 whether breakpoints need to be removed from overlay load addr.
8008 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8009 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8010 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8011 disable_overlay_breakpoints): Update overlay_events_enabled.
8012
5fb290d7
DJ
80132002-04-04 Daniel Jacobowitz <drow@mvista.com>
8014
8015 * dwarf2read.c (struct function_range): New.
8016 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8017 (check_cu_functions): New.
8018 (read_file_scope): Initialize global function lists.
8019 Call dwarf_decode_line after processing children.
8020 (read_func_scope): Add to global function list.
8021 (dwarf_decode_lines): Call check_cu_functions everywhere
8022 record_line is called. Call record_line with a linenumber
8023 of 0 to mark sequence ends.
8024
7b3fabf0
ML
80252002-04-04 Michal Ludvig <mludvig@suse.cz>
8026
361d1df0 8027 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8028 change sync with glibc.
8029
bce58c09
JB
80302002-04-03 Jim Blandy <jimb@redhat.com>
8031
8032 * configure.in: Call AC_C_INLINE.
8033 * configure: Regenerated.
361d1df0 8034
2fccf04a
DJ
80352002-04-01 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8038 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8039
2d1bfe2e
MK
80402002-03-31 Mark Kettenis <kettenis@gnu.org>
8041
a5941fbf
MK
8042 * NEWS: Mention gcore support on FreeBSD/i386.
8043
a90cd31d
MK
8044 * fbsd-proc.c: New file.
8045 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8046 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8047
2d1bfe2e
MK
8048 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8049 while statement.
8050
9eb6e5a1
JB
80512002-03-29 Jim Blandy <jimb@redhat.com>
8052
8053 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8054 unescaped newlines in string literals, but newer ones don't. So
8055 escape them.
8056
f02df580
MS
80572002-03-26 Michael Snyder <msnyder@redhat.com>
8058 Andrew Cagney <cagney@redhat.com>
8059
361d1df0 8060 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8061 restore file to memory.
8062 * cli/cli-dump.h: New file.
8063 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8064 * NEWS: Mention new commands.
f02df580 8065
109f874e
MS
80662002-03-28 Michael Snyder <msnyder@redhat.com>
8067
8068 * symfile.c (symbol_file_add): Move test for null symbols to later.
8069
520f6ade
AC
80702002-03-27 Andrew Cagney <ac131313@redhat.com>
8071
8072 From veksler at il.ibm.com:
8073 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8074 the xstrduped original path.
8075 Fix PR gdb/417.
8076
d4654627
MS
80772002-03-27 Michael Snyder <msnyder@redhat.com>
8078
8079 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8080 * infcmd.c (_initialize_infcmd): Ditto.
8081 * language.c (_initialize_language): Ditto.
8082 * symfile.c (_initialize_symfile): Ditto.
8083 * top.c (_init_main): Ditto.
8084 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8085
6be8bc0c
EZ
80862002-03-27 Elena Zannoni <ezannoni@redhat.com>
8087
8088 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8089 vector registers handling.
8090 (skip_prologue): Handle new AltiVec instructions. Fill in new
8091 fields of frame data.
8092 (frame_get_saved_regs): Fill in information for AltiVec registers.
8093
12af6855
JB
80942002-03-27 Jim Blandy <jimb@redhat.com>
8095
8096 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8097 a function; leave this macro here to invoke that function.
8098 (symbol_init_mangled_name): Declaration for that function.
8099 * symtab.c (symbol_init_mangled_name): New function.
8100
dc672865
AC
81012002-03-27 Andrew Cagney <ac131313@redhat.com>
8102
8103 * valarith.c: Replace strerror with safe_strerror.
8104 * tracepoint.c: Ditto.
8105 * lin-lwp.c: Ditto.
8106 * go32-nat.c: Ditto.
8107 * inflow.c: Ditto.
8108 * gnu-nat.c: Ditto.
8109
d96429cd
AS
81102002-03-27 Andreas Schwab <schwab@suse.de>
8111
8112 * event-top.c (command_line_handler): Remove useless if.
8113
7e336ba1
AJ
81142002-03-27 Andreas Jaeger <aj@suse.de>
8115
8116 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8117 comment.
8118
de220d0f
ML
81192002-03-27 Michal Ludvig <mludvig@suse.cz>
8120
8121 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8122 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8123 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8124 (x86_64_linux_dr_get_status, supply_gregset),
8125 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8126 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8127 (x86_64_register_info_table): Add.
8128 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8129 (x86_64_register_raw_size, x86_64_register_virtual_type),
8130 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8131 general x86_64_register_info_table.
8132 (i386_gdbarch_init): gdbarch_register_bytes is now set
8133 dynamicaly during initialization.
8134 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8135 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8136
0e98d0a7
DJ
81372002-03-27 Daniel Jacobowitz <drow@mvista.com>
8138
8139 * gdbserver/server.c (main): Call target_signal_to_host_p
8140 and target_signal_to_host on signals received from the remote.
8141 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8142 target_signal_from_host on signals sent to the remote.
8143 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8144 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8145
3130066b
DJ
81462002-03-27 Daniel Jacobowitz <drow@mvista.com>
8147
8148 * signals/signals.c: Include "server.h" in gdbserver build.
8149 (target_signal_from_name): Don't use STREQ.
8150 (_initialize_signals): Likewise. Don't include function in
8151 gdbserver build.
8152
9aedf4f4
DJ
81532002-03-27 Daniel Jacobowitz <drow@mvista.com>
8154
8155 * signals.c: Moved to...
8156 * signals/signals.c: Here.
7e336ba1 8157 * Makefile (signals.o): Update.
9aedf4f4 8158
3fa41cdb
JL
81592002-03-26 Jeff Law (law@redhat.com)
8160
8161 * somread.c (som_symtab_read): Remove some commented out code and
8162 updated related comments. Do not set the minimal symbol table to
8163 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8164 in a dynamic executable.
8165 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8166 where we are unable to find the minimal symbol for the given
8167 PC value.
8168
ee677e8d
MS
81692002-03-25 Jeff Law (law@redhat.com)
8170
8171 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8172
e76e1718
ML
81732002-03-25 Michal Ludvig <mludvig@suse.cz>
8174
8175 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8176
18a642a1
AC
81772002-03-23 Andrew Cagney <ac131313@redhat.com>
8178
8179 * command.h: Update copyright.
8180 (struct cmd_list_element): Replace definition with opaque
8181 declaration.
8182 (enum cmd_types): Document that it will eventually be moved to
8183 cli/cli-decode.h
8184 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8185 (MALLOCED_REPLACEMENT): Delete macro.
8186 * Makefile.in (cli_decode_h): Add $(command_h).
8187 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8188 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8189 * completer.c: Include "cli/cli-decode.h".
8190 * maint.c: Include "cli/cli-decode.h".
8191 * cli/cli-decode.h: Include "command.h".
8192 (enum command_class): Delete.
8193 (enum cmd_types): Comment out.
8194 (enum cmd_auto_boolean): Delete.
8195 (enum var_types): Delete.
8196
b2875cc0
AC
81972002-03-23 Andrew Cagney <ac131313@redhat.com>
8198
8199 * cli/cli-decode.c: Include "gdb_assert.h".
8200 (add_set_or_show_cmd): New static function.
8201 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8202 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8203 all fields, such as func, from the set command.
8204
3b45974e
AC
82052002-03-23 Andrew Cagney <ac131313@redhat.com>
8206
8207 * MAINTAINERS (sh-elf): Change warning flag to -w.
8208
823ca731
AC
82092002-03-23 Andrew Cagney <cagney@redhat.com>
8210
8211 * defs.h (error): Add printf format attribute.
8212 * thread-db.c (thread_from_lwp): Fix error format string.
8213 * stack.c (parse_frame_specification): Ditto.
8214 * cli/cli-decode.c (undef_cmd_error): Ditto.
8215 * scm-lang.c (scm_lookup_name): Ditto.
8216 * tracepoint.c (trace_error): Ditto.
8217 * remote-utils.c (usage): Ditto.
8218 * remote.c (compare_sections_command): Ditto.
8219 Fix PR gdb/328.
8220
0e101458
AC
82212002-03-22 Andrew Cagney <ac131313@redhat.com>
8222
8223 * gdbtypes.c (append_composite_type_field): New function.
8224 (init_composite_type): New function.
8225 * gdbtypes.h (append_composite_type_field): Declare.
8226 (init_composite_type): Ditto.
8227
8e0662df
EZ
82282002-03-22 Elena Zannoni <ezannoni@redhat.com>
8229
8230 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8231 function.
8e0662df
EZ
8232 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8233 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8234 structure returning convention for SYSV ABI case, but not
8235 for GNU/Linux, FreeBSD, or NetBSD.
8236
3121eff0
DJ
82372002-03-22 Daniel Jacobowitz <drow@mvista.com>
8238
8239 * symtab.h (lookup_block_symbol): Add mangled_name argument
8240 to prototype.
8241
8242 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8243 with new mangled_name argument.
8244 * linespec.c (decode_line_1): Likewise.
8245 * valops (value_of_this): Likewise.
8246 * symtab.c (lookup_transparent_type): Likewise.
8247 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8248 (lookup_symbol): If we are given a mangled name, pass it down
8249 to lookup_symbol_aux.
8250 (lookup_block_symbol): If we are given a mangled name to check
8251 against, only return symbols which match it.
8252
349b409f
CF
82532002-03-22 Christopher Faylor <cgf@redhat.com>
8254
8255 * win32-nat.c (child_create_inferior): Check for proper shell to use
8256 here, in case the user changes it on the fly.
8257 (_initialize_inftarg): Remove shell path considerations.
8258
2a873819
EZ
82592002-03-21 Elena Zannoni <ezannoni@redhat.com>
8260
8261 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8262 for gdbarch_max_register_raw_size and max_register_virtual_size.
8263 Adjust copyright year.
8264
a1b9830c
DJ
82652002-03-21 Daniel Jacobowitz <drow@mvista.com>
8266
8267 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8268 in a function to cover the entire beginning of the function
8269 as well if it does not already.
8270
8b5790f2
TR
82712002-03-21 Tom Rix <trix@redhat.com>
8272
8273 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8274 (rs6000_ptrace64): Renamed from ptrace64.
8275
bdbe5747
MH
82762002-03-20 Martin M. Hunt <hunt@redhat.com>
8277
8278 * gdbserver/remote-utils.c (remote_open): Don't call
8279 getprotobyname, we're all using TCP here so just use
8280 IPPROTO_TCP.
7e336ba1 8281 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8282
82832002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8284
bdbe5747
MH
8285 * regcache.c (_initialize_regcache): No need to call
8286 build_regcache() at this time; it gets called whenever
8287 the gdbarch changes.
8288
7781cd62
DB
82892002-03-20 David O'Brien <obrien@FreeBSD.org>
8290
8291 * sparc-nat.c: Include sys/param.h where possible.
8292
f65ca430
DJ
82932002-03-20 Daniel Jacobowitz <drow@mvista.com>
8294
8295 Fix PR gdb/422.
8296 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8297 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8298 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8299 complex types.
8300 * stabsread.c (rs6000_builtin_type): Likewise.
8301 (read_sun_floating_type): Likewise.
8302
0c867556
PS
83032002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8304
8305 * stabsread.c (read_member_functions): Remove skip code for duplicate
8306 constructor/destructor methods. Use standard parsing for these
8307 methods and just do not chain them to the list of methods after
8308 parsing.
8309
12b9c64f
AO
83102002-03-19 Alexandre Oliva <aoliva@redhat.com>
8311
8312 * coffread.c: Remove redundant static declarations. Replace
8313 occurrences of `PTR' with `void *'.
8314 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8315 * top.h (quit_cover): Likewise.
8316 * defs.h (catch_errors): Likewise.
8317
349c5d5f
AC
83182002-03-18 Andrew Cagney <ac131313@redhat.com>
8319
8320 * defs.h (XMALLOC): Define.
8321 * gdb-events.sh (XMALLOC): Delete macro.
8322 * gdb-events.c, gdb-events.h: Regenerate.
8323 * gdbarch.sh (XMALLOC): Delete macro.
8324 * gdbarch.c: Regenerate.
8325 * serial.c (XMALLOC): Delete macro.
8326 * ui-file.c (XMALLOC): Ditto.
8327 * ser-unix.h (XMALLOC): Ditto.
8328 * sh-tdep.c (XMALLOC): Ditto.
8329 * ui-out.c (XMALLOC): Ditto.
8330 * utils.c (XMALLOC): Ditto.
8331 * i386-tdep.c (XMALLOC): Ditto.
8332 * gdb-events.c (XMALLOC): Ditto.
8333 * d10v-tdep.c (XMALLOC): Ditto.
8334 * cli-out.c (XMALLOC): Ditto.
8335
8336 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8337 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8338 * ui-file.c, ui-out.c: Ditto.
8339
7d0766f3
AC
83402002-03-18 Andrew Cagney <ac131313@redhat.com>
8341
8342 * command.h (struct cmd_list_element): Add field context.
8343 (set_cmd_context, get_cmd_context): Declare.
8344 * cli/cli-decode.h: Ditto.
8345 * cli/cli-decode.c (get_cmd_context): New function.
8346 (set_cmd_context): New function.
8347 (add_cmd): Initialize context.
8348 Part of fixing PR gdb/145 and PR gdb/146.
8349
5913bcb0
AC
83502002-03-17 Andrew Cagney <ac131313@redhat.com>
8351
1868c04e
AC
8352 * cli/cli-decode.c (cmd_type): New function.
8353 * command.h (cmd_type): Declare.
8354 * infrun.c (set_schedlock_func): Call function cmd_type.
8355 * kod.c (kod_set_os): Call cmd_type.
8356 * cris-tdep.c (cris_version_update): Use function cmd_type.
8357 (cris_mode_update, cris_abi_update): Ditto.
8358
5913bcb0
AC
8359 * command.h: (execute_cmd_post_hook): Declare.
8360 (execute_cmd_pre_hook): Declare.
8361 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8362 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8363 functions. Execute pre/post hook while ensuring that afterwords
8364 hook_in is cleared.
8365 * top.c (execute_command): Use execute_cmd_post_hook, and
8366 execute_cmd_pre_hook to execute pre/post commands.
8367 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8368 hook_stop_stub.
8369 (hook_stop_stub): Call execute_cmd_pre_hook.
8370
b51450c9
AC
83712002-03-17 Andrew Cagney <ac131313@redhat.com>
8372
8373 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8374 set'' and this leads to a core dump. Move xstrdup of
8375 operating_system to after check that it is not NULL.
8376
f66c9f11
AC
83772002-03-17 Andrew Cagney <ac131313@redhat.com>
8378
8e694ecf
AC
8379 * kod.c (kod_set_os): Remove unnecessary check that
8380 ``command->type'' is set_cmd.
8381
f66c9f11
AC
8382 * valprint.c (set_input_radix): Use input_radix.
8383 (set_output_radix): Use output_radix.
8384 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8385 isn't reverted.
8386
9d01611c
AC
83872002-03-16 Andrew Cagney <ac131313@redhat.com>
8388
8389 * value.h (struct value): Delete field ``substring_addr''. Change
8390 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8391 force_core_addr_align and force_pointer_aligh.
8392
8393 * value.h (struct value): Fix typo in above change.
9d01611c 8394
4156bb53
PS
83952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8396
8397 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8398 to fix internal_error from ``maintenance print architecture''.
8399
0e5e3ea6
PS
84002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8401
8402 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8403 for gcc versions after gcc-2.8.1.
8404
9b013045
PS
84052002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8406
8407 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8408 for method resolution. Restore adjustment of ``this'' pointer after
8409 calling value_struct_elt, which was accidentally removed during the
8410 HP merge.
8411
376c9600
AC
84122002-03-15 Andrew Cagney <ac131313@redhat.com>
8413
8414 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8415 value_of_register.
8416 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8417 get_saved_register.
8418 * value.h (value_of_register): Update.
8419
a4db0f07
RH
84202002-03-14 Richard Henderson <rth@redhat.com>
8421
8422 * configure.in: Detect declaration for canonicalize_file_name.
8423 * utils.c (canonicalize_file_name): Declare, if needed.
8424 (gdb_realpath): Prefer realpath if available and usable.
8425 * config.in, configure: Rebuild.
8426
96383835
RH
84272002-03-14 Richard Henderson <rth@redhat.com>
8428
8429 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8430 a constant array bound.
8431
8432 * MAINTAINERS: Add myself to write-after-approval.
8433
75245b24
MS
84342002-03-14 Michael Snyder <msnyder@redhat.com>
8435
8436 * symfile.c (syms_from_objfile): Return immediately if no syms.
8437 (symbol_file_add): Return immediately if no syms.
8438 (find_sym_fns): Return immediately if no syms.
8439
e641a1ca
ML
84402002-03-13 Michal Ludvig <mludvig@suse.cz>
8441
8442 * gdbserver/remote-util.c (remote_open): Print remote-side's
8443 IP address when remote debugging over the network.
7e336ba1 8444
df08bfec
DB
84452002-03-12 David O'Brien <obrien@FreeBSD.org>
8446
8447 * config/sparc/fbsd.mh: Fix copyright.
8448 * config/sparc/fbsd.mt: Likewise.
8449
9a57864f
RE
84502002-03-11 Richard Earnshaw <rearnsha@arm.com>
8451
8452 * MAINTAINERS: Fix typo in name of gdb warnings option.
8453 (x86-64): Fix formating so that this can be parsed by awk.
8454
dd7bf85e
DJ
84552002-03-10 Daniel Jacobowitz <drow@mvista.com>
8456
8457 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8458 * defs.h: Include "gdb/signals.h".
8459 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8460
33a0a2ac
ML
84612002-03-10 Michal Ludvig <mludvig@suse.cz>
8462
8463 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8464 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8465 from x86-64-tdep.h
8466
dd824b04
DJ
84672002-03-10 Daniel Jacobowitz <drow@mvista.com>
8468 Don Howard <dhoward@redhat.com>
8469
8470 * mips-tdep.c (ST0_FR): Define.
8471 (mips2_fp_compat): New function, temporarily disabled.
8472 (mips_read_fp_register_single): New function.
8473 (mips_read_fp_register_double): New function.
8474 (mips_print_register): Use them.
8475 (do_fp_register_row): Likewise.
8476
6a41ff59
AC
84772002-03-09 Andrew Cagney <ac131313@redhat.com>
8478
8479 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8480 approval''.
8481
4ea09c10
PS
84822002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8483
8484 * stabsread.c (read_member_functions): Fix is_stub test for
8485 static member functions, improve comment.
8486
6ccc741d
RE
84872002-03-07 Richard Earnshaw <rearnsha@arm.com>
8488
8489 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8490 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8491 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8492 commands that set boolean values.
8493 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8494 (arm_rdi_resume): Always initialize PC.
8495 (arm_rdi_open): Don't use rslt as a boolean.
8496 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8497 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8498 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8499 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8500
438013df
AO
85012002-03-06 Alexandre Oliva <aoliva@redhat.com>
8502
8503 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8504 * configure: Rebuilt.
8505
70ed8774
SC
85062002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8507
8508 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8509 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8510
5ba2abeb
AC
85112002-03-06 Andrew Cagney <ac131313@redhat.com>
8512
8513 * cli/cli-decode.c (set_cmd_completer): New function.
8514 * command.h (set_cmd_completer): Declare.
8515 * cli/cli-decode.h (set_cmd_completer): Ditto.
8516
8517 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8518 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8519 * win32-nat.c (_initialize_inftarg): Ditto.
8520 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8521 * proc-api.c (_initialize_proc_api): Ditto.
8522 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8523 * source.c (_initialize_source): Ditto.
8524 * exec.c (_initialize_exec): Ditto.
8525 * solib.c (_initialize_solib): Ditto.
8526 * top.c (init_main): Ditto.
8527 * tracepoint.c (_initialize_tracepoint): Ditto.
8528 * symfile.c (_initialize_symfile): Ditto.
8529 * printcmd.c (_initialize_printcmd): Ditto.
8530 * infcmd.c (_initialize_infcmd): Ditto.
8531 * corefile.c (_initialize_core): Ditto.
8532
f779ca99
AC
85332002-03-05 Andrew Cagney <ac131313@redhat.com>
8534
8535 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8536
01a3934b
AC
85372002-03-05 Andrew Cagney <ac131313@redhat.com>
8538
8539 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8540
37057839
AC
85412002-03-05 Andrew Cagney <ac131313@redhat.com>
8542
8543 * NEWS: Update headings, 5.2 has branched.
8544
c6ecbae5
DJ
85452002-03-04 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8548 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8549 (register_addr, REGISTER_RAW_SIZE): Likewise.
8550 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8551 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8552
e9f30c21
ML
85532002-03-03 Michal Ludvig <mludvig@suse.cz>
8554
8555 * MAINTAINERS (x86-64): Add myself.
8556 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8557 changed value_ptr -> struct value *
8558
54394ac3
DB
85592002-03-01 David O'Brien <obrien@FreeBSD.org>
8560
8561 * configure.host (sparc64-*-freebsd): Add.
8562 * configure.tgt: Likewise.
8563 * config/sparc/fbsd.mh: New file.
8564 * config/sparc/fbsd.mt: Likewise.
8565 * config/sparc/nm-fbsd.h: Likewise.
8566 * config/sparc/tm-fbsd.h: Likewise.
8567
bfe95955
DJ
85682002-03-01 Daniel Jacobowitz <drow@mvista.com>
8569
8570 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8571 regformats/reg-s390x.dat.
8572
f33c6cbf
AC
85732002-03-01 Andrew Cagney <ac131313@redhat.com>
8574
8575 * utils.c: Add FIXME explaining true/false problem.
8576
5ecaa7dd
AC
85772002-02-28 Andrew Cagney <ac131313@redhat.com>
8578
8579 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8580
2a251cc2
MC
85812002-02-28 Michael Chastain <mec@shout.net>
8582
8583 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8584
6a8031a3 85852002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8586
8587 * gdbserver/linux-s390-low.c: New file.
8588 * regformats/reg-s390.dat: New file.
8589 * regformats/reg-s390x.dat: New file.
8590 * gdbserver/configure.srv: Add S/390.
8591 * gdbserver/Makefile.in: Add S/390.
8592 * configure.tgt: Enable gdbserver for S/390.
8593
ac469903
EZ
85942002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8595
8596 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8597 first line of the doc string for "info dos", except at the end of
8598 the sentence, since the short help stops at the first period.
8599
985cb1a3
JM
86002002-02-28 Jason Merrill <jason@redhat.com>
8601
8602 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8603
c570663e
FF
86042002-02-27 Fred Fish <fnf@redhat.com>
8605
8606 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8607 comment (dumy -> dummy).
8608
43630227
PS
86092002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8610
8611 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8612
b84911e8
RB
86132002-02-27 Rodney Brown <rbrown64@csc.com.au>
8614
8615 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8616
58caa3dc
DJ
86172002-02-27 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * gdbserver/acconfig.h: New file.
8620 * gdbserver/i387-fp.c: New file.
8621 * gdbserver/i387-fp.h: New file.
8622 * gdbserver/linux-x86-64.c: New file.
8623 * regformats/reg-x86-64.dat: New file.
8624 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8625 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8626 * gdbserver/configure.in: Add support for regsets.
8627 * gdbserver/config.in: Regenerate.
8628 * gdbserver/configure: Regenerate.
8629 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8630 * gdbserver/linux-low.h: New file.
8631 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8632 for regsets.
8633 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8634 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8635 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8636 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8637 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8638 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8639 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8640 "i387-fp.h". Add PTRACE_GETREGS and friends.
8641 * gdbserver/regcache.c (supply_register): New function.
8642 (supply_register_by_name): New function.
8643 (collect_register): New function.
8644 (collect_register_by_name): New function.
8645
93652174
DJ
86462002-02-27 Daniel Jacobowitz <drow@mvista.com>
8647
8648 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8649 (config.status): Add configure.srv dependency.
8650 (server_h): Add config.h dependency.
8651
a02e4a61
DJ
86522002-02-27 Daniel Jacobowitz <drow@mvista.com>
8653
8654 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8655 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8656 * gdbserver/configure.srv: Change i386-*-linux* to use
8657 reg-i386-linux.o.
8658
ce0eebec
AC
86592002-02-26 Andrew Cagney <ac131313@redhat.com>
8660
8661 * x86-64-tdep.c: Re-indent. Update copyright date.
8662
82dbc5f7
AC
86632002-02-26 Andrew Cagney <ac131313@redhat.com>
8664
8665 From Michal Ludvig <mludvig@suse.cz>:
8666 * x86-64-tdep.c (value.h): Delete.
8667 (gdb_assert.h): Include.
8668 (x86_64_register_convert_to_virtual,
8669 x86_64_register_convert_to_raw ): Add check which lets only
8670 floating-point values to be converted.
8671 (value_push): Delete.
8672 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8673 (i386_gdbarch_init): Number of register_bytes fixed.
8674
e4621584
AC
86752002-02-26 Andrew Cagney <ac131313@redhat.com>
8676
8677 * MAINTAINERS: Add x86-64 target.
8678
81a9a963
AC
86792002-02-26 Andrew Cagney <ac131313@redhat.com>
8680
8681 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8682 * osfsolib.c (solib_map_sections): Ditto.
8683 * irix5-nat.c (solib_map_sections): Ditto.
8684 * corelow.c (gdb_check_format): Ditto.
8685 * symfile.c (symfile_bfd_open): Ditto.
8686 * solib.c (solib_map_sections): Ditto.
8687 Fix PR gdb/354.
7e336ba1 8688
0f017ab9
AC
86892002-02-26 Andrew Cagney <ac131313@redhat.com>
8690
8691 * remote.c (_initialize_remote): By default, disable ``e'' and
8692 ``E'' step out-of-range packets.
8693
75738c29
AS
86942002-02-26 Andreas Schwab <schwab@suse.de>
8695
8696 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8697 m68k_linux_frame_saved_pc.
8698 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8699 in_sigtramp.
8700 (SIGCONTEXT_PC_OFFSET): Remove.
8701 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8702 m68k_linux_sigtramp_saved_pc): New functions.
8703 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8704 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8705 (UCONTEXT_PC_OFFSET): Define.
8706 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8707 non-RT and RT signal trampolines.
8708
7e8ed687
RE
87092002-02-26 Richard Earnshaw <rearnsha@arm.com>
8710
8711 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8712 (TARGET_NBPG, STACK_END_ADDR): Delete
8713 (VARIABLES_INSIDE_BLOCK): Delete.
8714
6972bc8b
AC
87152002-02-25 Andrew Cagney <ac131313@redhat.com>
8716
8717 * utils.c (perror_with_name): Make string parameter constant.
8718 (print_sys_errmsg): Ditto.
8719 (query): Ditto.
8720 * defs.h (perror_with_name): Update.
8721 (print_sys_errmsg): Update.
8722 (query): Update.
8723
aa32f823
DJ
87242002-02-25 Daniel Jacobowitz <drow@mvista.com>
8725
8726 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8727 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8728
19caaa45
PS
87292002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8730
8731 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8732 if it already matches the current architecture from the exec file.
8733 Include arch-utils.h for gdbarch_info_init prototype.
8734 * Makefile.in (rs6000-nat.o): Update dependencies.
8735
d951901f
EZ
87362002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8737
8738 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8739 list of exported variables.
8740
7ea81414
DJ
87412002-02-24 Daniel Jacobowitz <drow@mvista.com>
8742
8743 * gdbserver/configure.srv: New file.
8744 * gdbserver/configure.in: Use configure.srv instead
8745 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8746 from it.
8747 * gdbserver/configure: Regenerated.
8748 * gdbserver/terminal.h: New file.
8749 * gdbserver/Makefile.in: Update for configure changes. Remove
8750 more unneeded include paths.
8751
080fe24b
AC
87522002-02-24 Andrew Cagney <ac131313@redhat.com>
8753
8754 From wiz at danbala:
8755 * config/sparc/tm-sp64.h: Fix grammar and typos.
8756 Fix PR gdb/287.
8757
8605d56e
AC
87582002-02-24 Andrew Cagney <ac131313@redhat.com>
8759
8760 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8761 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8762 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8763 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8764 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8765 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8766 * s390-tdep.c: Ditto.
92362027
AC
8767 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8768 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8769 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8770 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8771 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8772 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8773 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8774 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8775 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8776 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8777 Fix PR gdb/378.
7e336ba1 8778
8ed32cc0
AC
87792002-02-23 Andrew Cagney <ac131313@redhat.com>
8780
a3007b6f
AC
8781 * lin-thread.c: Delete file.
8782 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8783 to gdb_proc_service.h.
8784 * configure: Re-generate.
8785
50a9e2f1
AC
8786 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8787 * serial.c (serial_open): Delete check for "ocd".
8788 Fix PR gdb/349.
8789
8b6e7932
AC
8790 * Makefile.in (linux-thread.o): Delete target.
8791 * linux-thread.c: Delete file.
8792
d155c46b
AC
8793 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8794 renamed SH files to be consistent.
8795
8ed32cc0
AC
8796 * symtab.c (sort_search_symbols): Use xfree.
8797
0e18d038
RE
87982002-02-23 Richard Earnshaw <rearnsha@arm.com>
8799
8800 * arm-linux-tdep.c (arm_linux_init_abi): Register
8801 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8802 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8803 definition with undef, since we don't want the sysvr4 definition.
8804 (SKIP_TRAMPOLINE_CODE): Likewise.
8805
27aac7ff
AC
88062002-02-23 Andrew Cagney <ac131313@redhat.com>
8807
8808 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8809
8810 * configure.in: (AC_CHECK_FUNCS) Added test for
8811 canonicalize_file_name Regenerated.
8812 * config.in, configure: Regenerated.
8813 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8814 defined use canonicalize_file_name.
7e336ba1 8815
65a6e0ee
MC
88162002-02-23 Michael Chastain <mec@shout.net>
8817
8818 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8819
47b95330
AC
88202002-02-23 Andrew Cagney <ac131313@redhat.com>
8821
8822 * README: Remove references to cygnus.com.
8823 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8824 dot com'' form. Remove references to cygnus.com and sourceware.
8825
696f451b
AC
88262002-02-23 Andrew Cagney <ac131313@redhat.com>
8827
8828 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8829 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8830 1003.1-2001 no longer allows "head -1".
8831 * gdb/Makefile.in (version.c): Likewise.
8832 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8833 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8834 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8835
bbaca940
AC
88362002-02-23 Andrew Cagney <ac131313@redhat.com>
8837
8838 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8839 * command.h (cmd_cfunc_eq): Declare.
8840 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8841
8842 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8843 ``struct cmd_list_element *''.
8844 * cli/cli-cmds.c (is_complete_command): Update. Use
8845 cmd_cfunc_eq.
8846 * top.c (execute_command): Pass the command to
8847 is_complete_command.
8848 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8849
b8b8b047
AC
88502002-02-23 Andrew Cagney <ac131313@redhat.com>
8851
8852 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8853 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8854 architecture defines.
8855 * s390-tdep.c (s390_gdbarch_init): Likewise.
8856
19d3fc80
RE
88572002-02-23 Richard Earnshaw <rearnsha@arm.com>
8858
8859 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8860 (arm_linux_push_arguments): Likewise.
8861 (arm_linux_init_abi): Register them. Also register linux-specific
8862 call_dummy_words.
8863 (find_minsym_and_objfile): Use strcmp, not STREQ.
8864 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8865 (arm_linux_call_dummy_words): Delete declaration.
8866 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8867 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8868 declarations.
8869 (LOWEST_PC): Delete.
8870
3ab13650
PS
88712002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8872
8873 * maint.c (print_section_info): Do not prepend `0x' to filepos
8874 output, it will be handled by local_hex_string_custom.
8875
19d3fc80 88762002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8877
8878 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8879 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8880 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8881
d85a5daf
JB
88822002-02-22 Jim Blandy <jimb@redhat.com>
8883
8884 Indicate that the bcache functions don't change the strings
8885 they're passed.
8886 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8887 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8888
eeb25b8a
PM
88892002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8890
8891 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8892
6badb179
CF
88932002-02-21 Christopher Faylor <cgf@redhat.com>
8894
8895 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8896 find the complete path to a loaded DLL.
8897
e8717518
FF
88982002-02-21 Fred Fish <fnf@redhat.com>
8899
8900 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8901 that marks the end of the range of a function, enter a line number
8902 entry that has a line number of zero and a PC offset that matches
8903 the end of the function. This starts a range of PC's for which no
8904 line number information is known.
8905 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8906 PC's for which no line number info is found (line number is zero)
8907 then we didn't find any valid line information.
8908 * symtab.h: Document use of zero line number entry.
8909
9abe5450
EZ
89102002-02-21 Elena Zannoni <ezannoni@redhat.com>
8911
8912 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8913 (have_ptrace_getvrregs): Define for run time checks.
8914 (gdb_vrregset_t): New type for Altivec register handling.
8915 (fetch_register, store_register): Fetch/store altivec register
8916 when needed.
8917 (fetch_altivec_register, store_altivec_register): New functions.
8918 (supply_vrregset, fill_vrregset): New functions.
8919 (fetch_altivec_registers, store_altivec_registers): New functions.
8920 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8921 registers as well.
8922
aaa38bb5
AJ
89232002-02-21 Jiri Smid <smid@suse.cz>
8924
8925 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8926
b34db576
RE
89272002-02-21 Richard Earnshaw <rearnsha@arm.com>
8928
8929 * Makefile.in (armnbsd-nat.o): Update dependencies.
8930 * armnbsd-nat.c (supply_gregset): New function. Common code to
8931 supply the integer register set.
8932 (supply_fparegset): New function. Similar for FPA registers.
8933 (fetch_regs, fetch_fp_regs): Use them.
8934 (fetch_core_registers): Likewise.
8935 (fetch_elfcore_registers): New function.
8936 (arm_netbsd_elfcore_fns): New core-file type specification.
8937 (_initialize_arm_netbsd_nat): Register it.
8938
3e56fc4b
RE
89392002-02-21 Richard Earnshaw <rearnsha@arm.com>
8940
8941 * armnbsd-nat.c: Include gdbcore.h.
8942 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8943 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8944 'void' to declaration, to shut up ARI.
8945 (fetch_core_registers): Make static. Rewrite using supply_register.
8946 (arm_netbsd_core_fns): New core-file type specification.
8947 (_initialize_arm_netbsd_nat): New function.
8948
097f6b0b
CF
89492002-02-21 Christopher Faylor <cgf@redhat.com>
8950
8951 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8952 value.
8953
c914e0cc
CF
89542002-02-20 Christopher Faylor <cgf@redhat.com>
8955
8956 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8957 fails.
8958
385fa495
DJ
89592002-02-20 Daniel Jacobowitz <drow@mvista.com>
8960
8961 * jv-exp.y (parse_number): Change type of implicit longs
8962 to builtin_type_uint64.
8963
e5f1222d
DJ
89642002-02-20 Daniel Jacobowitz <drow@mvista.com>
8965
8966 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8967 to be an integer instead of a `union wait'.
8968
75c9abc6
DJ
89692002-02-20 Daniel Jacobowitz <drow@mvista.com>
8970
8971 * mips-linux-nat.c: Call the operating system GNU/Linux.
8972 * mips-linux-tdep.c: Likewise.
8973 * mips-tdep.c: Likewise.
8974
551792a5
DJ
89752002-02-20 Daniel Jacobowitz <drow@mvista.com>
8976
8977 Fix PR gdb/265.
8978 * jv-exp.y (parse_number): Handle 64-bit integers.
8979
ee6e2b82
DJ
89802002-02-20 Daniel Jacobowitz <drow@mvista.com>
8981
8982 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8983 AC_STDC_HEADERS to AC_HEADER_STDC.
8984 * gdbserver/configure: Regenerated.
8985
a48442a0
RE
89862002-02-20 Richard Earnshaw <rearnsha@arm.com>
8987
8988 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8989 is defined.
8990 * sparc-tdep.c (get_longjmp_target): Likewise.
8991
fe419ffc
RE
89922002-02-20 Richard Earnshaw <rearnsha@arm.com>
8993
8994 * News: Add news about ARM and Multi-arch. Mention the new target
8995 arm*-*-netbsd*.
8996
5832ed7e
JB
89972002-02-19 Jim Blandy <jimb@redhat.com>
8998
8999 * stabsread.c (error_type_complaint): Improve error message.
9000
84563040
DJ
90012002-02-19 Daniel Jacobowitz <drow@mvista.com>
9002
9003 * gdbserver/README: Update documentation.
9004 * gdbserver/configure.in: Update configury to match documentation.
9005 * gdbserver/Makefile.in: Likewise.
9006 * gdbserver/configure: Regenerated.
9007 * gdbserver/aclocal.m4: New file, generated by aclocal.
9008 * gdbserver/config.in: New file, generated by autoheader.
9009
375fd65b
RE
90102002-02-19 Richard Earnshaw <rearnsha@arm.com>
9011
9012 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9013 armnbsd-nat.c.
9014
08216dd7
RE
90152002-02-19 Richard Earnshaw <rearnsha@arm.com>
9016
9017 * arm-tdep.h (enum arm_float_model): New enum.
9018 (struct gdbarch_tdep): Add fp_model.
9019 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9020 up floating-point conversions until we know the floating-point model
9021 in use by the inferior. Don't complain about being unable to
9022 determine the ABI of the inferior when we don't have one.
9023 (arm_extract_return_value): Support different floating-point models.
9024 (arm_store_return_value): Likewise.
aaa38bb5 9025 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9026 ARM_FLOAT_SOFT.
9027 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9028
65d6d66a
PS
90292002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9030
9031 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9032 of ``current_gdbarch''.
9033
47221191
RE
90342002-02-19 Richard Earnshaw <rearnsha@arm.com>
9035
9036 * armnbsd-nat.c : ANSIfy all function declarations.
9037 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9038 (fetch_inferior_registers): Re-implement in terms of above.
9039 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9040 (store_inferior_registers): Re-implement in terms of above.
9041
fdf39c9a
RE
90422002-02-19 Richard Earnshaw <rearnsha@arm.com>
9043
aaa38bb5 9044 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9045 kernel.
9046 * arm-linux-tdep.c: Likewise.
9047 * config/arm/tm-linux.h: Likewise.
9048
93247f88
RE
90492002-02-19 Richard Earnshaw <rearnsha@arm.com>
9050
9051 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9052 * config/arm/nbsd.mt (TM_FILE): Delete.
9053 * config/arm/tm-nbsd.h: Delete.
9054
d7b486e7
RE
90552002-02-19 Richard Earnshaw <rearnsha@arm.com>
9056
9057 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9058 Initialize CALL_DUMMY_LENGTH.
9059
41d39a95
RE
90602002-02-19 Richard Earnshaw <rearnsha@arm.com>
9061
9062 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9063 function.
9064 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9065 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9066 defines one thing and that is incorrect for this port.
9067 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9068
e1195560
PM
90692002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9070
9071 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9072
c1748f97
PM
90732002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9074
9075 * win32-nat.c (display_selector): New function. Displays information
9076 about the information returned by GetThreadSelectorEntry API function.
9077 (display_selectors): New function. Displays the infomation of
9078 the selector given as argument, or of CS, DS ans FS selectors
9079 if no argument is given.
9080 ( _initialize_inftarg): Add "w32" as info prefix command.
9081 Add "info w32 selector" as command calling display_selectors.
9082
e41e6bbf
PM
90832002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9084
9085 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9086 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9087 if not defined.
9088
0d3a9f48
RE
90892002-02-18 Richard Earnshaw <rearnsha@arm.com>
9090
9091 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9092
3fb4b924
RE
90932002-02-18 Richard Earnshaw <rearnsha@arm.com>
9094
9095 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9096 (arm_fix_call_dummy): Call it.
9097 (arm_call_dummy_breakpoint_offset): Delete.
9098 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9099 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9100
7f55af32
AC
91012002-02-18 Andrew Cagney <ac131313@redhat.com>
9102
9103 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9104 Default to func_frame_chain_valid.
9105 * gdbarch.h, gdbarch.c: Re-generate.
9106 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9107
05f13b9c
EZ
91082002-02-18 Elena Zannoni <ezannoni@redhat.com>
9109
9110 * ppc-linux-nat.c: Update copyright.
9111 (fetch_register, store_register): Add tid parameter, don't compute
9112 tid here.
9113 (fetch_ppc_registers, store_ppc_registers): Add tid
9114 parameter. Pass it along to callees.
9115 (fetch_inferior_registers, store_inferior_registers): Compute tid
9116 here, and pass it to calleed functions.
9117 (fill_gregset, supply_fpregset): Clean up formatting.
9118
d7afb4c9
RE
91192002-02-18 Richard Earnshaw <rearnsha@arm.com>
9120
9121 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9122 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9123
9df628e0
RE
91242002-02-18 Richard Earnshaw <rearnsha@arm.com>
9125
9126 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9127 * gdbarch.c gdbarch.h: Regenerate.
9128 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9129 function.
9130 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9131 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9132 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9133
9134 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9135 * arm-tdep.c (arm_get_longjmp_target): New function.
9136 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9137 this to a positive value register arm_get_longjmp_target as the
9138 longjmp handler.
9139 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9140 (arm_linux_init_abi): Set up longjmp description in tdep.
9141 * armnbsd-nat.c (get_longjmp_target): Delete.
9142 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9143 description in tdep.
9144 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9145 (get_longjmp_target): Delete declaration.
9146 (GET_LONGJMP_TARGET): Delete.
9147 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9148 (GET_LONGJMP_TARGET): Delete.
9149
57bc8964
KB
91502002-02-17 Kevin Buettner <kevinb@redhat.com>
9151
9152 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9153 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9154 of ``current_gdbarch''.
9155
83d31a92
TT
91562002-02-17 Tom Tromey <tromey@redhat.com>
9157
9158 * cli/cli-cmds.c (compare_strings): New function.
9159 (complete_command): Only print each unique item once.
9160 * completer.h (complete_line): Declare.
9161 * completer.c (complete_line): New function.
9162 (line_completion_function): Use it.
9163
17ef5d92
AC
91642002-02-16 Andrew Cagney <ac131313@redhat.com>
9165
9166 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9167 * gdbarch.h, gdbarch.c: Re-generate.
9168
491b8946
DJ
91692002-02-16 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9172
91732002-02-16 Daniel Jacobowitz <drow@mvista.com>
9174
9175 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9176 * valops.c (value_arg_coerce): Don't take the address of a reference
9177 to convert an argument to a reference.
9178
dfe7f3ac
CF
91792002-02-15 Christopher Faylor <cgf@redhat.com>
9180
9181 * win32-nat.c (get_image_name): New function.
9182 (handle_load_dll): Use get_image_name function.
9183 (get_child_debug_event): Avoid registering debug events until possibly
9184 execed process is started.
9185 (child_create_inferior): Allow invocation via shell so that command
9186 line redirection, etc. works ok.
9187 (_initialize_inftarg): Add new command: "set shell" to control whether
9188 a shell is used to start a process.
9189
1d33e73a
DJ
91902002-02-15 Daniel Jacobowitz <drow@mvista.com>
9191
9192 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9193 instead of find_register_by_number.
9194 (cannot_store_register): Likewise.
9195
48cd0caa
PM
91962002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9197
aaa38bb5 9198 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9199 fprintf_unfiltered (gdb_stderr, ...).
9200
8656e7d8
DJ
92012002-02-15 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * gdbserver/gdbserver.1: Document --attach.
9204
66e810cd
RE
92052002-02-15 Richard Earnshaw <rearnsha@arm.com>
9206
9207 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9208 descriptions.
9209 * arm-tdep.c (arm_default_arm_le_breakpoint)
9210 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9211 (arm_default_thumb_be_breakpoint): New. Initialize them from
9212 traditional breakpoint defines.
9213 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9214 (arm_gdbarch_init): Initialize new breakpoint variables.
9215 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9216 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9217 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9218 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9219 code out to ...
9220 (arm_netbsd_init_abi_common): ... here; new function.
9221 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9222 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9223 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9224 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9225
97e03143
RE
92262002-02-15 Richard Earnshaw <rearnsha@arm.com>
9227
9228 * arm-tdep.h (enum arm_abi): New enum.
9229 (struct gdbarch_tdep): New structure.
9230 (LOWEST_PC): Provide a default.
9231 (arm_gdbarch_register_os_abi): Declare new function.
9232 * arm-tdep.c (arm_abi_names): New array.
9233 (process_note_abi_tag_sections): New function.
9234 (get_elfosabi): New function.
9235 (arm_gdbarch_register_os_abi): New function.
9236 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9237 support for that ABI has been built in, then call the appropriate
9238 configuration routine. Use gdbarch_num_regs() to get the number
9239 of registers.
9240 (arm_dump_tdep): New function.
9241 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9242 place-holder functions.
9243 (_initialize_arm_tdep): Register them.
9244 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9245
9246 * armnbsd-tdep.c: New file.
9247 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9248 * config/arm/nbsd.mt (TDEPFILES): Add it.
9249 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9250
9251 * armnbsd-nat.c: Include regcache.h.
9252 * Makefile.in (armnbsd-nat.o): Update dependency list.
9253
9254 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9255
ad68be46
DJ
92562002-02-14 Daniel Jacobowitz <drow@mvista.com>
9257
9258 * gdbserver/Makefile.in: Fix typos in target rules.
9259
003d6d1d
DJ
92602002-02-14 Daniel Jacobowitz <drow@mvista.com>
9261
aaa38bb5 9262 Fix part of PR gdb/267.
003d6d1d
DJ
9263 * linespec.c (find_methods): Handle constructors specially for now.
9264
6b230f1b
CV
92652002-02-14 Corinna Vinschen <vinschen@redhat.com>
9266
9267 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9268 handling.
9269 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9270 standard_coerce_float_to_double().
9271
1ea98d12
CF
92722002-02-14 Christopher Faylor <cgf@redhat.com>
9273
9274 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9275 GDBINIT_FILENAME.
9276
dd47e6fd
EZ
92772002-02-14 Elena Zannoni <ezannoni@redhat.com>
9278
9279 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9280 find_variant_by_name, because it confuses the multiarch
9281 framework. Return NULL if there isn't an architecture with the
9282 user supplied name, instead of forcing a different one without
9283 recording the change with the multiarch machinery.
9284 (find_variant_by_name): Delete.
9285
d7e39b9e
PS
92862002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9287
9288 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9289 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9290
76e42a4f
MH
92912002-02-13 Martin M. Hunt <hunt@redhat.com>
9292
aaa38bb5 9293 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9294 print_frame_info_listing_hook, set current_source_symtab.
9295
0a30fbc4
DJ
92962002-02-14 Daniel Jacobowitz <drow@mvista.com>
9297
9298 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9299 and remove unused $(INCLUDE_DIR).
9300 Add regcache.c to OBS.
9301 Add generated register protocol files to clean target.
9302 Update dependencies for new objects, obsolete old target code.
9303
9304 * gdbserver/linux-low.c: Remove all platform-specific code to
9305 new files. Remove various dead code. Update to use regcache
9306 functionality.
9307 * gdbserver/remote-utils.c (fromhex): Add return statement
9308 to quiet warning.
9309 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9310 constant.
9311 (input_interrupt): Add integer parameter to match prototype
9312 of a signal handler.
9313 (outreg): Use register_data ().
9314 (prepare_resume_reply): Use gdbserver_expedite_regs.
9315 * gdbserver/server.c (main): Dynamically allocate own_buf because
9316 PBUFSIZ is no longer constant. Use registers_to_string () and
9317 registers_from_string ().
9318 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9319 for error (), fatal (), and warning (). Update definition of
9320 PBUFSIZ to use regcache functionality. Add include guard.
9321 * gdbserver/utils.c (fatal): Add missing ``const''.
9322 (warning): New function.
9323
9324 * regformats/regdat.sh: Include "regcache.h" in generated files.
9325 Provide init_registers () function.
9326 * regformats/regdef.h: Add prototype for set_register_cache ().
9327 Add include guard.
9328
9329 * gdbserver/linux-arm-low.c: New file.
9330 * gdbserver/linux-i386-low.c: New file.
9331 * gdbserver/linux-ia64-low.c: New file.
9332 * gdbserver/linux-m68k-low.c: New file.
9333 * gdbserver/linux-mips-low.c: New file.
9334 * gdbserver/linux-ppc-low.c: New file.
9335 * gdbserver/linux-sh-low.c: New file.
9336
9337 * gdbserver/regcache.c: New file.
9338 * gdbserver/regcache.h: New file.
9339
9340 * gdbserver/low-linux.c: Removed obsolete file.
9341
4cc841d0
DJ
93422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9343
9344 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9345 * config/i386/linux.mt: Likewise.
9346 * config/ia64/linux.mt: Likewise.
9347 * config/m68k/linux.mh: Likewise.
9348 * config/powerpc/linux.mh: Likewise.
9349 * config/mips/linux.mt: Likewise.
9350
9351 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9352
9353 * config/i386/i386lynx.mh: Mark gdbserver variables
9354 as (currently) obsolete for this target.
9355 * config/i386/nbsd.mt: Likewise.
9356 * config/i386/nbsdelf.mt: Likewise.
9357 * config/m32r/m32r.mt: Likewise.
9358 * config/m68k/m68klynx.mh: Likewise.
9359 * config/m68k/nbsd.mt: Likewise.
9360 * config/m68k/sun3os4.mh: Likewise.
9361 * config/mips/vr5000.mt: Likewise.
9362 * config/ns32k/nbsd.mt: Likewise.
9363 * config/pa/hppabsd.mh: Likewise.
9364 * config/pa/hppaosf.mh: Likewise.
9365 * config/powerpc/nbsd.mt: Likewise.
9366 * config/rs6000/rs6000lynx.mh: Likewise.
9367 * config/s390/s390.mt: Likewise.
9368 * config/s390/s390x.mt: Likewise.
9369 * config/sparc/sparclynx.mh: Likewise.
9370 * config/sparc/sun4os4.mh: Likewise.
9371 * config/i386/x86-64linux.mt: Likewise.
9372 * config/sparc/linux.mh: Likewise.
9373
a85f51e7
DJ
93742002-02-14 Daniel Jacobowitz <drow@mvista.com>
9375
9376 * configure.tgt: Configure gdbserver only for known working
9377 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9378 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9379 SUBDIRS if it is configured. Update comment for ${nativefile}.
9380 * configure: Regenerated.
9381
65554fef
MS
93822002-02-13 Michael Snyder <msnyder@redhat.com>
9383
670a52db
MS
9384 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9385
6dbdc4a3
MS
9386 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9387 (default_gcore_mach): Just return 0, work around a problem in bfd.
9388 (default_gcore_target): OK to return NULL if exec_bfd is null.
9389 (make_mem_sec): Use a cast, avoid a warning.
9390
9391 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9392 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9393 sizeof (host pointer) != sizeof (target pointer)).
9394 (procfs_make_note_section): Avoid overflow in psargs string.
9395
aaa38bb5 9396 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9397 implementation return an error.
9398
93992002-02-13 Rodney Brown <rbrown64@csc.com.au>
9400
9401 * procfs.c (procfs_make_note_section): Provide a default definition
9402 (for alpha-dec-osf4.0f). Fix typos.
9403
1e4d76e7
EZ
94042002-02-13 Elena Zannoni <ezannoni@redhat.com>
9405
9406 * linux-proc.c: Add include of regcache.h.
9407 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9408
b6d1a1d5
AC
94092002-02-13 Andrew Cagney <ac131313@redhat.com>
9410
9411 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9412 * memattr.c (create_mem_region): Disallow useless empty region.
9413 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9414 non-overlapping.
b6d1a1d5 9415
6c6ea35e
MC
94162002-02-13 Michael Chastain <mec@shout.net>
9417
9418 * defs.h: Kill CONST_PTR.
9419 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9420 * c-lang.c (c_builtin_types): Likewise.
9421 * ch-lang.c (ch_builtin_types): Likewise.
9422 * f-lang.c (f_builtin_types): Likewise.
9423 * language.c (unknown_builtin_types): Likewise.
9424 * m2-lang.c (m2_builtin_types): Likewise.
9425 * p-lang.c (pascal_builtin_types): Likewise.
9426 * scm-lang.c (c_builtin_types): Likewise.
9427
3e0b0f48
KS
94282002-02-13 Keith Seitz <keiths@redhat.com>
9429
9430 * arm-tdep.h (arm_get_next_pc): Add declaration.
9431
67255d04
RE
94322002-02-13 Richard Earnshaw <rearnsha@arm.com>
9433
9434 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9435 with other related struct-returning functions.
9436 (arm_extract_struct_value_address): New function.
9437 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9438 initialize float_format, double_format and long_double_format as
9439 appropriate to the endianness of the target.
9440 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9441 (arm_use_struct_convention): Delete declaration.
9442 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9443
079777f6
KS
94442002-02-13 Keith Seitz <keiths@redhat.com>
9445
9446 * defs.h (core_addr_to_string_nz): New function.
9447
34588f23
MK
94482002-02-13 Mark Kettenis <kettenis@gnu.org>
9449
9450 Apply missing bits of 2002-01-15 patch.
9451 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9452 (fill_fpregset): Use i387_fill_fsave.
9453
49b563f9
KS
94542002-02-12 Keith Seitz <keiths@redhat.com>
9455
49b563f9
KS
9456 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9457 (core_addr_to_string_nz): New function.
9458
aeb98c60
RE
94592002-02-11 Richard Earnshaw <rearnsha@arm.com>
9460
9461 * arm-linux-nat.c: Really include arm-tdep.h.
9462 * config/arm/tm-linux.h (struct type, struct value): Declare.
9463
65554fef
MS
94642002-02-11 Michael Snyder <msnyder@redhat.com>
9465
9466 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9467 (gcore section): Ifdef for Solaris and Unixware only.
9468 (procfs_do_thread_registers): Unixware needs one lwpstatus
9469 per thread (not one prstatus or pstatus).
9470 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9471 not over all gdb threads. For unixware, call elfcore_write_pstatus
9472 once before iterating over threads.
9473
34e8f22d
RE
94742002-02-11 Richard Earnshaw <rearnsha@arm.com>
9475
9476 * arm-tdep.h: New file.
9477 * arm-tdep.c: Include arm-tdep.h.
9478 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9479 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9480 (arm_print_float_info, arm_register_type, convert_to_extended)
9481 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9482 (arm_extract_return_value, arm_register_name): Make static.
9483 (arm_software_single_step): Similarly. Fix types in declaration.
9484 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9485 (arm_store_return_value, arm_store_struct_return): New functions.
9486 (arm_gdbarch_init): Register the above functions. Also register
9487 call_dummy_start_offset, sizeof_call_dummy_words,
9488 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9489 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9490 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9491 prologue_cache.saved_regs here, rather than ...
9492 (_initialize_arm_tdep): ... here.
9493 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9494 declarations.
9495 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9496 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9497 (arm_print_float_info, arm_register_type, convert_to_extended)
9498 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9499 (arm_extract_return_value, arm_register_name): Delete declarations.
9500 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9501 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9502 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9503 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9504 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9505 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9506 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9507 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9508 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9509 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9510 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9511 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9512 interface.
9513 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9514 * remote-rdi.c remote-rdp.c: Likewise.
9515 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9516 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9517 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9518 definition.
9519
9520 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9521 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9522 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9523 from non-ARM_ prefixed definitions.
9524 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9525 all uses of above.
9526 * remote-rdi.c remote-rdp.c: Likewise.
9527 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9528
148754e5
RE
95292002-02-11 Richard Earnshaw <rearnsha@arm.com>
9530
9531 * arm-tdep.c (arm_frameless_function_invocation)
9532 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9533 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9534 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9535 (arm_pop_frame, arm_get_next_pc): Make static.
9536 (arm_gdbarch_init): Register above in gdbarch structure.
9537 (arm_read_fp): Renamed from arm_target_read_fp.
9538 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9539 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9540 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9541 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9542 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9543 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9544 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9545 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9546 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9547 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9548 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9549
434d2d4f
DJ
95502002-02-10 Daniel Jacobowitz <drow@mvista.com>
9551
9552 * symtab.c (compare_search_syms): New function.
9553 (sort_search_symbols): New function.
9554 (search_symbols): Sort symbols after searching rather than
9555 before.
9556
55241689
AC
95572002-02-10 Andrew Cagney <ac131313@redhat.com>
9558
9559 * NEWS: Linux -> GNU/Linux.
9560
028c194b
AC
95612002-02-10 Andrew Cagney <ac131313@redhat.com>
9562
9563 * gdbarch.sh: For for level one methods, disallow a definition
9564 when partially multi-arched. Add comments explaining rationale.
9565 * gdbarch.h: Re-generate.
9566
6acf50cd
AC
95672002-02-10 Andrew Cagney <ac131313@redhat.com>
9568
9569 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9570 multi-arch partial.
aaa38bb5 9571
50248794
AC
95722002-02-10 Andrew Cagney <ac131313@redhat.com>
9573
9574 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9575 field. Use diff -u.
9576 * gdbarch.c: Re-generate.
9577
c30e0066
AC
95782002-02-10 Andrew Cagney <ac131313@redhat.com>
9579
9b56c5f3 9580 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9581 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9582 partial.
9583
6e6d6484
AC
95842002-02-10 Andrew Cagney <ac131313@redhat.com>
9585
9586 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9587 multi-arch partial.
9588 (PUSH_ARGUMENTS): Switch to using predefault.
9589 * gdbarch.c: Regenerate.
9590
c203844d
AC
95912002-02-10 Andrew Cagney <ac131313@redhat.com>
9592
9593 * valops.c (PUSH_ARGUMENTS): Delete definition.
9594 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9595 partial. Default to default_push_arguments.
9596 * gdbarch.h, gdbarch.c: Regenerate.
9597
b5a2688f
AC
95982002-02-09 Andrew Cagney <ac131313@redhat.com>
9599
9600 * defs.h (throw_exception): Rename return_to_top_level. Update
9601 comments.
9602 * utils.c (error_stream, internal_verror, quit): Ditto.
9603 * top.c (throw_exception, catcher): Ditto.
9604 * sparclet-rom.c (sparclet_load): Ditto.
9605 * remote.c (interrupt_query, minitelnet): Ditto.
9606 * remote-sds.c (interrupt_query): Ditto.
9607 * remote-mips.c (mips_error, mips_kill): Ditto.
9608 * ocd.c (interrupt_query): Ditto.
9609 * monitor.c (monitor_interrupt_query): Ditto.
9610 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9611 * target.h: Update comment.
aaa38bb5 9612
b5a2688f 9613 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9614
2fa5c1e0
AC
96152002-02-09 Andrew Cagney <ac131313@redhat.com>
9616
9617 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9618 default_double_format.
9619 * gdbarch.h, gdbarch.c: Re-generate.
9620 * findvar.c (floatformat_unknown): Delete variable definition.
9621 * doublest.h (floatformat_unknown): Delete variable declaration.
9622
da966255
JB
96232002-02-09 Jim Blandy <jimb@redhat.com>
9624
9625 * stabsread.c (read_type): Add code to parse Sun's syntax for
9626 prototyped function types.
9627
123a4891
AC
96282002-02-09 Andrew Cagney <ac131313@redhat.com>
9629
9630 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9631 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9632
fb39c8f3
PS
96332002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9634
9635 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9636 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9637 now _initialize_xcoffsolib gets called again and overrides the
9638 commands from solib.c in a native configuration.
9639
0b87a11d
MK
96402002-02-09 Mark Kettenis <kettenis@gnu.org>
9641
9642 * doublest.c (store_typed_floating): Don't try to return a value.
9643 Fixes PR gdb/290.
9644
bdc2fc72
JB
96452002-02-08 Jim Blandy <jimb@redhat.com>
9646
9647 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9648 is prototyped and has no arguments, print its argument list as
9649 `(void)'.
9650
da69bbcf
CD
96512002-02-08 Chris Demetriou <cgd@broadcom.com>
9652
9653 * MAINTAINERS (write-after-approval): Add myself.
9654 (paper-trail): I've escaped!
aaa38bb5 9655
b69571f5
CF
96562002-02-08 Christopher Faylor <cgf@redhat.com>
9657
9658 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9659 changes.
9660 (_initialize_check_for_gdb_ini): Ditto.
9661
f6871398
MH
96622002-02-08 Martin M. Hunt <hunt@redhat.com>
9663
9664 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9665 xaprintf -> xasprintf.
9666
4e52d31c
PM
96672002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9668
9669 * win32-nat.c: Remove use of printf and sprintf functions.
9670
39bbf761
RE
96712002-02-08 Richard Earnshaw <rearnsha@arm.com>
9672
9673 * arm-tdep.c (arm_frame_chain_valid): Make static.
9674 (arm_push_arguments): Likewise.
9675 (arm_gdbarch_init): New function.
9676 (_initialize_arm_tdep): Call it.
9677 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9678 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9679 (FRAME_CHAIN_VALID): Delete.
9680 (arm_frame_chain_valid): Delete declaration.
9681 (PUSH_ARGUMENTS): Delete.
9682 (arm_push_arguments): Delete declaration.
9683 (CALL_DUMMY_P): Delete.
9684
9c9532c9
CV
96852002-02-08 Andrew Cagney <ac131313@redhat.com>
9686 Corinna Vinschen <vinschen@redhat.com>
9687
9688 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9689 on builtin float types.
9690
4e8f7a8b
DJ
96912002-02-08 Daniel Jacobowitz <drow@mvista.com>
9692
9693 * utils.c: Include <curses.h> before "bfd.h".
9694 * tui/tui-hooks.c: Likewise.
9695 * tui/tui.c: Likewise.
9696 * tui/tuiCommand.c: Likewise.
9697 * tui/tuiData.c: Likewise.
9698 * tui/tuiDataWin.c: Likewise.
9699 * tui/tuiDisassem.c: Likewise.
9700 * tui/tuiGeneralWin.c: Likewise.
9701 * tui/tuiIO.c: Likewise.
9702 * tui/tuiLayout.c: Likewise.
9703 * tui/tuiRegs.c: Likewise.
9704 * tui/tuiSource.c: Likewise.
9705 * tui/tuiSourceWin.c: Likewise.
9706 * tui/tuiStack.c: Likewise.
9707 * tui/tuiWin.c: Likewise.
9708
cd4bffcf
EZ
97092002-02-07 Elena Zannoni <ezannoni@redhat.com>
9710
9711 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9712 to include space for pseudoregs as well. Update loops accordingly.
9713 (sh_fp_frame_init_saved_regs): Ditto.
9714 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9715
26806ce2
AC
97162002-02-07 Andrew Cagney <ac131313@redhat.com>
9717
9718 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9719 Add Richard Earnshaw to Arm maintainers.
9720
97fdab62
AC
97212002-02-07 Andrew Cagney <ac131313@redhat.com>
9722
a6b98203
AC
9723 * defs.h (warning_begin): Delete declaration.
9724
97fdab62
AC
9725 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9726 Delete macro.
9727
78b29b40
MS
97282002-02-07 Michael Snyder <msnyder@redhat.com>
9729
aaa38bb5 9730 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9731 Logic bug, remove misplaced else.
9732
d8849953
KD
97332002-02-07 Klee Dienes <klee@apple.com>
9734
9735 * fork-inferior.c (fork_inferior): Add '!' to the list of
9736 characters that need to be quoted when building a string for the
9737 shell. Quote '!' specifically with a backslash, since CSH chokes
9738 when trying to evaluate "str!str".
aaa38bb5 9739
095778a0
NC
97402002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9741
9742 * rdi-share/host.h: Only provide a typedef for bool if it is not
9743 defined.
9744
1900040c
MS
97452002-02-04 Michael Snyder <msnyder@redhat.com>
9746
9747 * breakpoint.h (enum bptype): Add new overlay event bp type.
9748 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9749
1900040c
MS
9750 * breakpoint.c (create_internal_breakpoint): New function.
9751 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9752 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9753 (create_thread_event_breakpoint): Ditto.
9754 (create_solib_event_breakpoint): Ditto.
9755 (create_overlay_event_breakpoint): New function.
9756 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9757 (update_breakpoints_after_exec): Delete and re-initialize
9758 overlay event breakpoints after an exec. Add FIXME comment
9759 about longjmp breakpoint.
9760 (print_it_typical): Ignore overlay event breakpoints.
9761 (print_one_breakpoint): Ditto.
9762 (mention): Ditto.
9763 (bpstat_what): Do not stop for overlay event breakpoints.
9764 (delete_breakpoint): Don't delete overlay event breakpoints.
9765 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9766 (breakpoint_re_set): Re-create overlay event breakpoint.
9767
9768 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9769 (overlay_manual_command): Disable overlay breakpoints.
9770 (overlay_off_command): Disable overlay breakpoints.
9771
082fc60d
RE
97722002-02-06 Richard Earnshaw <rearnsha@arm.com>
9773
9774 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9775 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9776 to here from config/tm-arm.h.
9777 (coff_sym_is_thumb): Make static.
9778 (arm_elf_make_msymbol_special): New function.
9779 (arm_coff_make_msymbol_special): New function.
9780 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9781 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9782 (coff_sym_is_thumb): Delete declaration.
9783 (arm_elf_make_msymbol_special): Declare.
9784 (arm_coff_make_msymbol_special): Declare.
9785 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9786 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9787
039c5766
RE
97882002-02-06 Richard Earnshaw <rearnsha@arm.com>
9789
9790 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9791
97922002-02-06 Richard Earnshaw <rearnsha@arm.com>
9793
9794 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9795 * gdbarch.c gdbarch.h: Regenerate.
9796 * arch-utils.c (default_print_float_info): New function.
9797 * arch-utils.h (default_print_float_info): Prototype it.
9798 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9799 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9800 (PRINT_FLOAT_INFO): Document it.
9801
9802 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9803 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9804 (PRINT_FLOAT_INFO): Define.
9805
58fa08f0
PM
98062002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9807
aaa38bb5 9808 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9809 Add typecast to sprintf argument to suppress a warning.
9810
7393af7c
PM
98112002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9812
58fa08f0 9813 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9814 to allow easier handling of pass state.
9815 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9816 that gives exception name and address.
9817 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9818 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9819 exceptions added.
aaa38bb5
AJ
9820 (child_continue): Correctly report continue_status.
9821 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9822 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9823 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9824 the exception should be passed to debuggee or not.
9825
6af4589c
MS
98262002-02-05 Michael Snyder <msnyder@redhat.com>
9827
9828 * regcache.c (fetch_register): Call target_fetch_register
9829 only if we don't call FETCH_PSEUDO_REGISTER.
9830 (store_register): Call target_store_register only if we
9831 don't call STORE_PSEUDO_REGISTER.
9832
a2cf933a
EZ
98332002-02-05 Elena Zannoni <ezannoni@redhat.com>
9834
9835 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9836 ELF_MAKE_MSYMBOL_SPECIAL.
9837 * gdbarch.c, gdbarch.h: Regenerate.
9838 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9839 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9840 * elfread.c (elf_symtab_read): Compile use of
9841 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9842 multiarched.
9843 * coffread.c (coff_symtab_read): Ditto, for
9844 COFF_MAKE_MSYMBOL_SPECIAL.
9845
6bb7be43
JB
98462002-02-05 Jim Blandy <jimb@redhat.com>
9847
9848 * solib-svr4.c (svr4_truncate_ptr): New function.
9849 (svr4_relocate_section_addresses): Do the address arithmetic with
9850 the appropriate truncation for target addresses, even when
9851 CORE_ADDR is larger than a target address.
9852
e18651ec
DJ
98532002-02-05 Daniel Jacobowitz <drow@mvista.com>
9854
9855 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9856 to (int *).
9857
6b2725be
DJ
98582002-02-05 Daniel Jacobowitz <drow@mvista.com>
9859
9860 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9861 code.
9862
fca9e603
DJ
98632002-02-05 Daniel Jacobowitz <drow@mvista.com>
9864
9865 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9866
6c537a52
DJ
98672002-02-05 Daniel Jacobowitz <drow@mvista.com>
9868
9869 * gdbserver/linux-low.c: Remove unused include files.
9870
d844cde6
DJ
98712002-02-05 Daniel Jacobowitz <drow@mvista.com>
9872
9873 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9874 (read_inferior_memory): Use it.
9875 (write_inferior_memory): Likewise.
9876
d07c63e7
DJ
98772002-02-05 Daniel Jacobowitz <drow@mvista.com>
9878
9879 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9880 grubbing through sys_errlist.
9881
da6d8c04
DJ
98822002-02-05 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9885
5b421780
PM
98862002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9887 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9888
9f60d481
AC
98892002-02-04 Andrew Cagney <ac131313@redhat.com>
9890
9891 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9892 (do_sfunc, set_cmd_sfunc): New functions.
9893
9894 * command.h (struct cmd_list_element): Add field func.
9895 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9896 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9897 * cli/cli-decode.h: Ditto.
9898
9899 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9900 (help_all, help_cmd_list): Ditto.
9901 (find_cmd, complete_on_cmdlist): Ditto.
9902 * top.c (execute_command): Ditto.
9903
9904 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9905 function.sfunc.
9906
9907 * infcmd.c (notice_args_read): Fix function signature.
9908
9909 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9910 * cli/cli-decode.c (add_set_cmd): Ditto.
9911 * utils.c (initialize_utils): Ditto.
9912 * maint.c (_initialize_maint_cmds): Ditto.
9913 * infrun.c (_initialize_infrun): Ditto.
9914 * demangle.c (_initialize_demangler): Ditto.
9915 * remote.c (add_packet_config_cmd): Ditto.
9916 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9917 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9918 * proc-api.c (_initialize_proc_api): Ditto.
9919 * kod.c (_initialize_kod): Ditto.
9920 * valprint.c (_initialize_valprint): Ditto.
9921 * top.c (init_main): Ditto.
9922 * infcmd.c (_initialize_infcmd): Ditto.
9923 * corefile.c (_initialize_core): Ditto.
9924 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9925 * arch-utils.c (initialize_current_architecture): Ditto.
9926 (_initialize_gdbarch_utils): Ditto.
9927 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9928
9929 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9930 * wince.c (_initialize_inftarg): Ditto.
9931 * symfile.c (_initialize_symfile): Ditto.
9932 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9933 * language.c (_initialize_language): Ditto.
9934 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9935
f9ba0717
MS
99362002-02-04 Michael Snyder <msnyder@redhat.com>
9937
9938 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9939
0c74b2a7
DJ
99402002-02-04 Daniel Jacobowitz <drow@mvista.com>
9941
9942 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9943 Add rules for building the register data files.
9944
c638789f
DJ
99452002-02-04 Daniel Jacobowitz <drow@mvista.com>
9946
9947 * regformats/regdat.sh: Add braces to the definition of
9948 expedite_regs_${arch}.
9949
db253027
DJ
99502002-02-04 Daniel Jacobowitz <drow@mvista.com>
9951
9952 * regformats/regdef.h (struct reg): Add comment describing the
9953 requirements for offset and size fields.
9954
206be19c
AS
99552002-02-04 Andreas Schwab <schwab@suse.de>
9956
9957 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9958 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9959
181c1381
RE
99602002-02-04 Richard Earnshaw <rearnsha@arm.com>
9961
9962 * gdbarch.sh (copyright): Update years in generated header.
9963 (SMASH_TEXT_ADDRESS): Add rule.
db253027 9964 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
9965 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9966 * dbxread.c: Likewise.
9967 * dwarfread.c: Likewise.
9968 * elfread.c: Likewise.
9969 * somread.c: Likewise.
9970
9971 * arm-tdep.c (arm_smash_text_address): New function.
9972 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9973
fa4ba8da
PM
99742002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9975
9976 Add support for hardware watchpoints on win32 native.
aaa38bb5 9977 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 9978 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 9979 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
9980 of debug registers.
9981 (debug_registers_changed): New variable. Reflects when debug registers
9982 are changed and need to be written to inferior.
aaa38bb5 9983 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
9984 was set, used when new threads are created.
9985 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9986 i386-nat code.
9987 (thread_rec): Set dr array if id is the thread of current_event .
9988 (child_continue, child_resume): Change the debug registers for all
9989 threads if debug_registers_changed.
9990 (child_add_thread): Change the debug registers if debug_registers_used.
9991 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9992 Link nm.h to new nm-cygwin.h file.
9993 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9994 of hardware registers.
9995
a73c86fb
AC
99962002-02-03 Andrew Cagney <ac131313@redhat.com>
9997
9998 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9999 Restore behavour broken by 2002-01-20 Andrew Cagney
10000 <ac131313@redhat.com> IEEE_FLOAT removal.
10001
acf5ed49
DJ
100022002-02-03 Daniel Jacobowitz <drow@mvista.com>
10003
10004 * c-valprint.c (c_val_print): Pass a proper valaddr to
10005 cp_print_class_method.
10006 * valops.c (search_struct_method): If there is only one method
10007 and args is NULL, return that method.
10008
493d28d5
DJ
100092002-02-03 Daniel Jacobowitz <drow@mvista.com>
10010
10011 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10012 accessing tag_name directly.
10013
7495dfdb
DJ
100142002-02-03 Daniel Jacobowitz <drow@mvista.com>
10015
10016 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10017 of accessing tag_name directly.
10018
dd6bda65
DJ
100192002-02-03 Daniel Jacobowitz <drow@mvista.com>
10020
10021 PR gdb/280
10022 * gdbtypes.c (replace_type): New function.
10023 * gdbtypes.h (replace_type): Add prototype.
10024 * stabsread.c (read_type): Use replace_type.
10025
88fe217c
RE
100262002-02-03 Richard Earnshaw <rearnsha@arm.com>
10027
10028 * Makefile.in (memattr.o): Add missing dependencies rule.
10029
e5d66720
PS
100302002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10031
10032 * breakpoint.c (break_at_finish_command): Really export.
10033 (break_at_finish_at_depth_command): Ditto.
10034 (tbreak_at_finish_command): Ditto.
10035 * hppa-tdep.c: Include completer.h.
10036 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10037 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10038
fffee0be
AC
100392002-02-01 Andrew Cagney <ac131313@redhat.com>
10040
10041 * utils.c (do_write): New function.
10042 (error_stream): Rewrite combining the code from error_begin and
10043 verror.
10044 (verror): Rewrite using error_stream.
10045 (error_begin): Delete function.
10046
255e7dbf
AC
100472002-02-01 Andrew Cagney <ac131313@redhat.com>
10048
10049 * utils.c (error_begin): Make static.
10050 * defs.h (error_begin): Delete declaration.
10051
10052 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10053 (decode_line_1): Use cplusplus_error instead of error_begin,
10054 cplusplus_hint and return_to_top_level.
10055 * coffread.c (coff_symfile_read): Use error instead of error_begin
10056 and return_to_top_level.
10057 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10058
ddfe3c15
AC
100592002-02-01 Andrew Cagney <ac131313@redhat.com>
10060
10061 * language.h (type_error, range_error): Make string parameter
10062 constant.
10063 * language.c (warning_pre_print): Delete extern declaration.
10064 * dwarfread.c (warning_pre_print): Ditto.
10065 * language.c (type_error, range_error): Rewrite to use verror and
10066 vwarning instead of warning_begin.
10067
03ac34d5
MS
100682002-02-01 Michael Snyder <msnyder@redhat.com>
10069
261c4ca2
MS
10070 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10071 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10072
e00d1dc8
AC
100732002-02-01 Andrew Cagney <ac131313@redhat.com>
10074
10075 * command.h (NO_FUNCTION): Delete macro.
10076 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10077 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10078 * tracepoint.c (_initialize_tracepoint): Ditto.
10079 * cli/cli-decode.c (add_set_cmd): Ditto.
10080 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10081
76b79d6e
DJ
100822002-02-01 Daniel Jacobowitz <drow@mvista.com>
10083
10084 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10085 Update ``this'' pointer when calling virtual functions.
10086
799f9e91
MS
100872002-02-01 Michael Snyder <msnyder@redhat.com>
10088
c7bd442c 10089 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10090 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10091
3cf384d4
DJ
100922002-02-01 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * regformats/reg-arm.dat: New file.
10095 * regformats/reg-i386.dat: New file.
10096 * regformats/reg-ia64.dat: New file.
10097 * regformats/reg-m68k.dat: New file.
10098 * regformats/reg-mips.dat: New file.
10099 * regformats/reg-ppc.dat: New file.
10100 * regformats/reg-sh.dat: New file.
10101 * regformats/regdef.h: New file.
10102 * regformats/regdat.sh: New file.
10103
0defa245
RE
101042002-02-01 Richard Earnshaw <reanrsha@arm.com>
10105
10106 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10107 (arm_frame_args_address, arm_frame_locals_address): New functions.
10108 (arm_frame_num_args): New function.
10109 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10110 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10111 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10112
405f26e6
MS
101132002-01-31 Michael Snyder <msnyder@redhat.com>
10114
502fd408
MS
10115 * breakpoint.c (break_at_finish_command): Export.
10116 (break_at_finish_at_depth_command): Export.
10117 (tbreak_at_finish_command): Export.
10118 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10119 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10120 "tbreak" commands, which are HPPA specific.
10121
7d35e135
MS
10122 * printcmd.c (disassemble_command): Remove an ancient
10123 artifact of an old merge.
10124
aaa38bb5 10125 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10126 Define enum constant values for overlay mode.
10127 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10128 (overlay_is_mapped, overlay_auto_command,
10129 overlay_manual_command): Ditto.
d874f1e2 10130
aaa38bb5
AJ
10131 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10132 breakpoint_here_p, breakpoint_inserted_here_p,
10133 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10134 describe_other_breakpoints, check_duplicates, clear_command):
10135 Coding standard fixes.
10136
8add0441 10137 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10138 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10139 code: check bfd SEC_READONLY flag for section.
10140
e351066e
AC
101412002-01-31 Andrew Cagney <ac131313@redhat.com>
10142
7d35e135 10143 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10144
8a48e967
DJ
101452002-01-30 Daniel Jacobowitz <drow@mvista.com>
10146
10147 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10148 data symbols, since we search based on textlow and texthigh.
10149 (find_pc_sect_symtab): Likewise.
10150
f5a96129
AC
101512002-01-30 Andrew Cagney <ac131313@redhat.com>
10152
10153 * defs.h (vwarning): Declare.
f5a96129
AC
10154 * utils.c (vwarning): New function.
10155 (warning): Call vwarning.
10156 (warning_begin): Delete function.
10157
10158 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10159 the warning message.
10160 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10161 warning_begin.
10162
cefd4ef5
MS
101632002-01-30 Michael Snyder <msnyder@redhat.com>
10164
1a703748
MS
10165 * NEWS: Mention "set trust-readonly-sections" command.
10166 Mention generate-core-file command.
cefd4ef5 10167
3a11626d
MS
101682002-01-15 Michael Snyder <msnyder@redhat.com>
10169
10170 * target.c: New command, "set trust-readonly-sections on".
10171 (do_xfer_memory): Honor the suggestion to trust readonly sections
10172 by reading them from the object file instead of from the target.
10173 (initialize_targets): Register command "set trust-readonly-sections".
10174
d1c7e53b
AC
101752002-01-29 Andrew Cagney <ac131313@redhat.com>
10176
10177 * parse.c (target_map_name_to_register): Simplify, search regs and
10178 pseudo-regs using a single loop.
10179
e2c9a72c
AC
101802002-01-30 Andrew Cagney <ac131313@redhat.com>
10181
10182 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10183
69824b4e
MK
101842002-01-15 Rodney Brown <rbrown64@csc.com.au>
10185
10186 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10187 * config/i386/i386v42mp.mh: Add i387-nat.o .
10188 * i386v4-nat.c: Include i387-nat.h.
10189 (supply_fpregset): Use i387_supply_fsave.
10190 (fill_fpregset): Use i387_fill_fsave.
10191
6eb69eab
RE
101922002-01-30 Richard Earnshaw <rearnsha@arm.com>
10193
10194 * arm-tdep.c (arm_call_dummy_words): Define.
10195 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10196 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10197 (CALL_DUMMY_WORDS): Define.
10198 (arm_call_dummy_words): Declare.
10199 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10200 (arm_linux_call_dummy_words): Declare.
10201
9852326a
AS
102022002-01-30 Andreas Schwab <schwab@suse.de>
10203
10204 * m68klinux-nat.c: Fix last change to use regcache_collect
10205 instead of referencing registers[] directly.
10206
977a3030
AC
102072002-01-29 Andrew Cagney <ac131313@redhat.com>
10208
10209 * parse.c (target_map_name_to_register): Delete code wrapped in
10210 #ifdef REGISTER_NAME_ALIAS_HOOK.
10211
2076c72b
MS
102122002-01-28 Michael Snyder <msnyder@redhat.com>
10213
10214 * regcache.c (legacy_read_register_gen): Need to be able to
10215 read pseudo-register as well as real register.
10216 (legacy_write_register_gen): Ditto.
10217
8fcc723b
AC
102182002-01-28 Andrew Cagney <ac131313@redhat.com>
10219
10220 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10221 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10222 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10223 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10224 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10225 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10226 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10227 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10228 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10229 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10230 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10231 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10232 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10233 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10234 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10235 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10236 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10237 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10238 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10239 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10240
afe64c1a
AC
102412002-01-28 Andrew Cagney <ac131313@redhat.com>
10242
10243 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10244 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10245 (initialize_current_architecture): Update target_byte_order using
10246 information from BFD.
aaa38bb5 10247 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10248 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10249
75bc7ddf
AC
102502002-01-28 Andrew Cagney <ac131313@redhat.com>
10251
10252 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10253 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10254
10255 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10256 #ifdef INVALID_FLOAT.
10257 * infcmd.c (do_registers_info): Ditto.
10258 * values.c (unpack_double): Ditto. Add comment.
10259
10260 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10261 already commented out.
10262
0280a90a
AS
102632002-01-26 Andreas Schwab <schwab@suse.de>
10264
10265 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10266 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10267 registers and add support for PTRACE_GETREGS.
10268
7072a954
AC
102692002-01-24 Andrew Cagney <ac131313@redhat.com>
10270
10271 GDB 5.1.1 released from 5.1 branch.
10272 * NEWS: Add 5.1.1 news.
10273 * README: Sync with 5.1 branch.
10274
86f902e0
FF
102752002-01-23 Fred Fish <fnf@redhat.com>
10276
10277 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10278 stabstring on initial malloc. Reallocing will copy it for us,
10279 if necessary.
10280
8af51c36
EZ
102812002-01-23 Elena Zannoni <ezannoni@redhat.com>
10282
aaa38bb5 10283 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10284 (HFILES_NO_SRCDIR): Remove hpread.h.
10285 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10286 (hpread.o): Update dependencies.
10287 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10288
10289 * hp-psymtab-read.c: Remove file.
10290 * hp-symtab-read.c: Remove file.
10291 * hpread.h: Remove file.
10292
10293 * hpread.c: Merge all contents of hp-psymtab-read.c,
10294 hp-symtab-read.c and hpread.h into this file, as it was prior to
10295 January 1999.
10296
10297 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10298 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10299 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10300 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10301
dc5cfeb6
EZ
103022002-01-23 Elena Zannoni <ezannoni@redhat.com>
10303
10304 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10305 fill_gregset): Call gdbarch_tdep() just once, assign result to
10306 variable and use that, instead of calling the function several
10307 times.
10308
ea87b71b
AO
103092002-01-24 Alexandre Oliva <aoliva@redhat.com>
10310
10311 * configure.host: Accept sparcv9 as alias for sparc64.
10312 * configure.tgt: Likewise.
10313
13fc0c2f
KB
103142002-01-22 Kevin Buettner <kevinb@redhat.com>
10315
10316 * solib-aix5.c (build_so_list_from_mapfile)
10317 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10318 arguments is not reversed.
10319 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10320 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10321
7bd872fe
EZ
103222002-01-22 Elena Zannoni <ezannoni@redhat.com>
10323
10324 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10325 modified version of obsolete sh_fetch_pseudo_register.
10326 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10327 (sh4_register_read): New function.
10328 (sh_pseudo_register_write): New function. Renamed and modified
10329 version of obsolete sh_store_pseudo_register.
10330 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10331 (sh4_register_write): New function.
10332 (sh_gdbarch_init): Remove setting of gdbarch function
10333 fetch_pseudo_register and store_pseudo_register. Remove setting of
10334 register_convert_to_raw, register_convert_to_virtual,
10335 register_convertible.
10336 (sh_sh4_register_convertible): Delete. No longer needed. All is
10337 taken care by architecture specific functions
10338 register_read/register_write.
10339 (sh_sh4_register_convert_to_virtual): Make static.
10340 (sh_sh4_register_convert_to_raw): Ditto.
10341
069e84fd
AC
103422002-01-22 Andrew Cagney <ac131313@redhat.com>
10343
10344 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10345 (floatformat_is_nan, floatformat_mantissa): Ditto.
10346
10347 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10348 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10349 builtin_type_ieee_double_little,
10350 builtin_type_ieee_double_littlebyte_bigword,
10351 builtin_type_m68881_ext, builtin_type_i960_ext,
10352 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10353 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10354 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10355 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10356
211a4f69
CV
103572002-01-22 Corinna Vinschen <vinschen@redhat.com>
10358
10359 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10360 parameter. Set frameless flag if it exists and depended of
10361 whether the scanned function is frameless or not.
10362 (xstormy16_skip_prologue): If function is frameless, return
10363 result of xstormy16_scan_prologue().
10364 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10365 call.
10366
f81353e4
EZ
103672002-01-21 Elena Zannoni <ezannoni@redhat.com>
10368
10369 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10370 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10371 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10372 sh_sh4_register_byte, sh_sh4_register_raw_size,
10373 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10374 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10375 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10376 sh_store_pseudo_register, sh_do_pseudo_register): Call
10377 gdbarch_tdep() just once, assign result to variable and use that,
10378 instead of calling the function several times.
10379
63c73a17
MK
103802002-01-20 Mark Kettenis <kettenis@gnu.org>
10381
10382 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10383 macros instead of LAST_FPU_CTRL_REGNUM.
10384 (store_register): Likewise.
10385
39ad761d
JB
103862002-01-21 Jim Blandy <jimb@redhat.com>
10387
10388 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10389 is up-to-date before running the program, not just when a program
10390 exits.
10391
3d74b771
FF
103922002-01-21 Fred Fish <fnf@redhat.com>
10393
10394 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10395 when we have found all instructions we are looking for.
10396
966fbf70
RE
103972002-01-21 Richard Earnshaw <rearnsha@arm.com>
10398
10399 * arm-tdep.c (arm_register_name): New function.
10400 (arm_registers_names): Make static.
10401 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10402 (arm_register_name): Declare.
10403 (REGISTER_NAME): Use it.
10404
c3b4394c
RE
104052002-01-21 Richard Earnshaw <rearnsha@arm.com>
10406 Kevin Buettner <kevinb@redhat.com>
10407
10408 Convert arm targets to new FRAME interface.
10409 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10410 (arm_frame_find_save_regs): Delete.
10411 (arm_frame_init_saved_regs): New.
10412 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10413 Allocate extra_info as required. Convert all uses of fsr.regs
10414 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10415 to use extra_info.
10416 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10417 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10418 (check_prologue_cache, save_prologue_cache): Likewise.
10419 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10420 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10421 (FRAME_FIND_SAVED_REGS): Delete.
10422 (arm_frame_find_saved_regs): Delete prototype.
10423 (arm_frame_init_saved_regs): New prototype.
10424 (FRAME_INIT_SAVED_REGS): Define.
10425
61d99182
AC
104262002-01-20 Andrew Cagney <ac131313@redhat.com>
10427
10428 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10429
6aaea291
AC
104302002-01-20 Andrew Cagney <ac131313@redhat.com>
10431
10432 From Jeff Law <law@redhat.com>:
10433 * infttrace.c: Include <sys/pstat.h>.
10434 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10435 exec file if the ttrace equivalent fails.
10436
15f698d2
AC
104372002-01-20 Andrew Cagney <ac131313@redhat.com>
10438
10439 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10440 (closeLogFile): Ditto.
10441
f86ddd7c
MC
104422002-01-20 Michael Chastain <mec@shout.net>
10443
10444 * top.c (print_gdb_version): Bump copyright year to 2002.
10445
904507ce
AC
104462002-01-20 Andrew Cagney <ac131313@redhat.com>
10447
10448 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10449 Zannoni and Eli Zaretskii.
10450
d7f0b9ce
DJ
104512002-01-20 Daniel Jacobowitz <drow@mvista.com>
10452
10453 * buildsym.c: Update copyright years.
10454 * c-typeprint.c: Likewise.
10455 * dwarf2read.c: Likewise.
10456 * f-typeprint.c: Likewise.
10457 * gdbtypes.c: Likewise.
10458 * gdbtypes.h: Likewise.
10459 * hp-symtab-read.c: Likewise.
10460 * hpread.c: Likewise.
10461 * mdebugread.c: Likewise.
10462 * p-typeprint.c: Likewise.
10463
3fd3d7d2
AC
104642002-01-20 Andrew Cagney <ac131313@redhat.com>
10465
10466 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10467 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10468 byte-order selectable.
10469 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10470 * arch-utils.c: Ditto.
10471 (set_endian): Ditto.
10472 (set_endian_from_file): Ditto.
10473 * gdbserver/low-sim.c (create_inferior): Ditto.
10474 * gdbarch.sh: Ditto.
10475 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10476 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10477 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10478 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10479 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10480 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10481 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10482 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10483 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10484 macro definition.
10485 * config/mips/tm-wince.h: Remove #undef of macro
10486 TARGET_BYTE_ORDER_SELECTABLE.
10487 * config/sh/tm-wince.h: Ditto.
10488
b02dede2
DJ
104892002-01-20 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10492 member function fields. Add accessor macro
10493 TYPE_FN_FIELD_ARTIFICIAL.
10494 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10495 * c-typeprint.c (c_type_print_base): Skip artificial member
10496 functions.
10497
c3643761
DJ
104982002-01-20 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * f-typeprint.c: Delete unused function f_type_print_args.
10501 * p-typeprint.c: Delete unused function pascal_type_print_args.
10502
8176bb6d
DJ
105032002-01-20 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10506 comment. Add ``artificial'' to ``union field_location''.
10507
10508 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10509
10510 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10511 * mdebugread.c (parse_symbol): Likewise.
10512 * stabsread.c (define_symbol): Likewise.
10513 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10514 initializing TYPE_FIELD_BITPOS to n (obsolete).
10515 (hpread_doc_function_type): Likewise.
10516 * hpread.c (hpread_function_type): Likewise.
10517
7fd60527
AC
105182002-01-20 Andrew Cagney <ac131313@redhat.com>
10519
10520 * configure.in (host_makefile_frag): Only require a host makefile
10521 fragment when a native build.
10522 * configure: Re-generate.
10523
c2f05ac9
AC
105242002-01-20 Andrew Cagney <ac131313@redhat.com>
10525
10526 * doublest.h (floatformat_from_type): Declare.
10527 * doublest.c (floatformat_from_type): New function.
10528 (convert_typed_floating): Use.
10529
10530 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10531 call to function floatformat_from_type.
10532
10533 * gdbarch.sh (IEEE_FLOAT): Delete.
10534 * gdbarch.h, gdbarch.c: Re-generate.
10535 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10536 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10537 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10538 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10539 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10540 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10541 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10542 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10543 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10544 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10545 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10546 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10547
10548 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10549 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10550 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10551 * sh-tdep.c (sh_gdbarch_init): Ditto.
10552 * mips-tdep.c (mips_gdbarch_init): Ditto.
10553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10554 * cris-tdep.c (cris_gdbarch_init): Ditto.
10555
abf22e64
AJ
105562002-01-20 Jiri Smid <smid@suse.cz>
10557
10558 * configure.host, configure.tgt: Support x86-64.
10559 * NEWS: Note new target x86-64.
10560
b7c4cbf8
AJ
10561 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10562 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10563 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10564 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10565 x86-64-linux-nat.o): Fix dependencies.
10566
82600034
AC
105672002-01-19 Andrew Cagney <ac131313@redhat.com>
10568
10569 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10570 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10571 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10572 * config/sparc/xm-sun4os4.h: Delete file.
10573 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10574
bbe5c628
AC
105752002-01-19 Andrew Cagney <ac131313@redhat.com>
10576
10577 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10578 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10579 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10580 * config/i386/i386lynx.mh (XM_FILE): Delete.
10581 * config/rs6000/xm-rs6000ly.h: Delete file.
10582 * config/sparc/xm-sparclynx.h: Delete file.
10583 * config/m68k/xm-m68klynx.h: Delete file.
10584 * config/i386/xm-i386lynx.h: Delete file.
10585 * config/xm-lynx.h: Delete file.
10586 * config/djgpp/fnchange.lst: Update.
10587
f8453e34
JT
105882002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10589
10590 * alpha-tdep.c (alpha_register_byte): New function.
10591 (alpha_register_raw_size): Ditto.
10592 (alpha_register_virtual_size): Ditto.
10593 (alpha_skip_prologue_internal): Renamed from
10594 alpha_skip_prologue.
10595 (alpha_skip_prologue): New version that calls
10596 alpha_skip_prologue_internal.
10597 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10598 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10599 second argument from alpha_skip_prologue.
10600 (REGISTER_BYTE): Use alpha_register_byte.
10601 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10602 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10603 (FRAMELESS_FUNCTION_INVOCATION): Use
10604 generic_frameless_function_invocation_not.
10605 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10606 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10607
52d9e613
AC
106082002-01-19 Andrew Cagney <ac131313@redhat.com>
10609
10610 * config/mips/xm-news-mips.h: Delete file.
10611 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10612
10613 * config/m88k/xm-m88k.h: Delete file.
10614 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10615 * config/m88k/xm-delta88v4.h: Ditto.
10616 * config/m88k/xm-delta88.h: Ditto.
10617
10618 * config/alpha/xm-fbsd.h: Delete file.
10619 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10620
10621 * config/sparc/xm-sparc.h: Delete file.
10622 * Makefile.in (xm-sun4os4.h): Delete dependency.
10623 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10624 * config/sparc/xm-sun4os4.h: Ditto.
10625 * config/sparc/xm-linux.h: Ditto.
10626
10627 * config/i386/xm-windows.h: Delete file.
10628
2d1b2124
AC
106292002-01-19 Andrew Cagney <ac131313@redhat.com>
10630
10631 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10632 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10633
ee1f65f0
JT
106342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10635
10636 * alpha-tdep.c (alpha_call_dummy_words): New.
10637 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10638 (CALL_DUMMY_P): Define.
10639 (CALL_DUMMY_WORDS): Define.
10640 (SIZEOF_CALL_DUMMY_WORDS): Define.
10641
98081e55
PB
106422002-01-19 Per Bothner <per@bothner.com>
10643
10644 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10645 isn't NULL, which can happen with some gcj-3.x-produced code.
10646
0d056799
JT
106472002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10648
10649 * alpha-tdep.c (alpha_register_virtual_type): New function.
10650 (alpha_init_frame_pc_first): Ditto.
10651 (alpha_fix_call_dummy): Ditto.
10652 (alpha_store_struct_return): Ditto.
10653 (alpha_extract_struct_value_address): Ditto.
10654 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10655 alpha_register_virtual_type.
10656 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10657 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10658 alpha_extract_struct_value_address.
10659 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10660 (INIT_FRAME_PC): Use init_frame_pc_noop.
10661 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10662
4604bcad
MK
106632002-01-19 Mark Kettenis <kettenis@gnu.org>
10664
10665 * i386gnu-nat.c: Include "i386-tdep.h".
10666 (fetch_fpregs): Simplify code dealing with uninitialized floating
10667 point states such that it doesn't require FP7_REGNUM.
10668
140f9984
JT
106692002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10670
abf22e64
AJ
10671 * alpha-tdep.c (frame_extra_info): New.
10672 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10673 frame->extra_info.
10674 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10675 (alpha_frame_saved_pc): Use frame->extra_info.
10676 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10677 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10678 (init_extra_frame_info): Rename to...
10679 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10680 (alpha_print_extra_frame_info): New function.
140f9984
JT
10681 (alpha_frame_locals_address): Ditto.
10682 (alpha_frame_args_address): Ditto.
abf22e64 10683 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10684 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10685 alpha_frame_args_address.
abf22e64 10686 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10687 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10688 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10689 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10690 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10691 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10692
d734c450
JT
106932002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10696 (alpha_cannot_fetch_register): Ditto.
10697 (alpha_cannot_store_register): Ditto.
10698 (alpha_register_convertible): Ditto.
10699 (alpha_use_struct_convention): Ditto.
10700 * config/alpha/tm-alpha.h: Update copyright years.
10701 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10702 (INNER_THAN): Use core_addr_lessthan.
10703 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10704 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10705 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10706 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10707 (FRAME_CHAIN): Remove unnecessary cast.
10708
b4ceaee6
AC
107092002-01-18 Andrew Cagney <ac131313@redhat.com>
10710
10711 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10712 obsolete.
10713
0a65a603
AC
107142002-01-18 Andrew Cagney <ac131313@redhat.com>
10715
10716 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10717 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10718 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10719 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10720 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10721 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10722 * x86-64-linux-nat.c: Ditto.
10723
636a6dfc
JT
107242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10725
abf22e64 10726 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10727 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10728 (REGISTER_NAME): Define.
10729
acceddb6
JT
107302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10731
10732 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10733
ec32e4be
JT
107342002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10735
10736 * alpha-tdep.c: Update copyright years.
10737 (alpha_next_pc): New function.
10738 (alpha_software_single_step): Ditto.
10739 * config/alpha/tm-alpha.h: Add prototype for
10740 alpha_software_single_step.
10741
e771a871
JT
107422002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10743
10744 * alphabsd-nat.c: Update copyright years.
10745 (fill_gregset): Use regcache_collect.
10746 (fill_fpregset): Likewise.
10747 (fetch_inferior_registers): Only fetch integer registers
10748 if requested to do so.
10749 (store_inferior_registers): Only store integer registers
10750 if requested to do so.
10751
7708fa01
AC
107522002-01-17 Andrew Cagney <ac131313@redhat.com>
10753
10754 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10755 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10756 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10757 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10758 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10759 * config/arm/linux.mh (XDEPFILES): Delete.
10760 * config/arm/nbsd.mh (XDEPFILES): Delete.
10761 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10762 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10763 * config/i386/i386m3.mh (XDEPFILES): Delete.
10764 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10765 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10766 * config/i386/fbsd.mh (XDEPFILES): Delete.
10767 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10768 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10769 * config/i386/i386v4.mh (XDEPFILES): Delete.
10770 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10771 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10772 * config/i386/i386aix.mh (XDEPFILES): Delete.
10773 * config/i386/go32.mh (XDEPFILES): Delete.
10774 * config/i386/cygwin.mh (XDEPFILES): Delete.
10775 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10776 * config/i386/i386mach.mh (XDEPFILES): Delete.
10777 * config/i386/i386v32.mh (XDEPFILES): Delete.
10778 * config/i386/linux.mh (XDEPFILES): Delete.
10779 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10780 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10781 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10782 * config/i386/i386sco.mh (XDEPFILES): Delete.
10783 * config/i386/i386v.mh (XDEPFILES): Delete.
10784 * config/i386/nbsd.mh (XDEPFILES): Delete.
10785 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10786 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10787 * config/i386/symmetry.mh (XDEPFILES): Delete.
10788 * config/i386/obsd.mh (XDEPFILES): Delete.
10789 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10790 * config/ia64/linux.mh (XDEPFILES): Delete.
10791 * config/ia64/aix.mh (XDEPFILES): Delete.
10792 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10793 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10794 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10795 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10796 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10797 * config/m68k/linux.mh (XDEPFILES): Delete.
10798 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10799 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10800 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10801 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10802 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10803 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10804 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10805 * config/m88k/delta88.mh (XDEPFILES): Delete.
10806 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10807 * config/m88k/m88k.mh (XDEPFILES): Delete.
10808 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10809 * config/mips/linux.mh (XDEPFILES): Delete.
10810 * config/mips/irix6.mh (XDEPFILES): Delete.
10811 * config/mips/irix5.mh (XDEPFILES): Delete.
10812 * config/mips/irix4.mh (XDEPFILES): Delete.
10813 * config/mips/irix3.mh (XDEPFILES): Delete.
10814 * config/mips/decstation.mh (XDEPFILES): Delete.
10815 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10816 (NATDEPFILES): Move core-aout.o to here.
10817 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10818 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10819 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10820 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10821 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10822 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10823 * config/pa/hpux11.mh (XDEPFILES): Delete.
10824 * config/powerpc/aix.mh (XDEPFILES): Delete.
10825 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10826 * config/powerpc/linux.mh (XDEPFILES): Delete.
10827 * config/romp/rtbsd.mh: Rename XDEPFILES.
10828 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10829 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10830 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10831 * config/s390/s390.mh (XDEPFILES): Delete.
10832 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10833 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10834 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10835 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10836 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10837 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10838 * config/sparc/linux.mh (XDEPFILES): Delete.
10839 * config/vax/vaxult.mh (XDEPFILES): Delete.
10840 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10841 * Makefile.in (DEPFILES): Remove XDEPFILES.
10842
375fc983
AC
108432002-01-17 Andrew Cagney <ac131313@redhat.com>
10844
10845 * utils.c (internal_verror): Fix comments, default is yes not no.
10846 Update queries to match. Default to quit and dump core.
10847
8926118c
AC
108482002-01-17 Andrew Cagney <ac131313@redhat.com>
10849
10850 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10851 copyright.
10852 * defs.h, event-top.c, gdbcmd.h: Ditto.
10853 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10854 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10855 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10856 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10857 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10858 * mi/mi-main.c:Ditto.
10859
10860 * stack.c, symfile.c: Update copyright.
10861
45b7b345
DJ
108622002-01-17 Daniel Jacobowitz <drow@mvista.com>
10863
db728ff7
DJ
10864 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10865 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10866 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10867 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10868
db728ff7
DJ
108692002-01-17 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10872 * gdbserver/low-lynx.c (myattach): Likewise.
10873 * gdbserver/low-nbsd.c (myattach): Likewise.
10874 * gdbserver/low-sim.c (myattach): Likewise.
10875 * gdbserver/low-sparc.c (myattach): Likewise.
10876 * gdbserver/low-sun3.c (myattach): Likewise.
10877
10878 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10879
db728ff7 10880 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10881 (main): Handle "--attach".
10882
8de3c354
AC
108832002-01-16 Andrew Cagney <ac131313@redhat.com>
10884
10885 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10886 maintainer.
10887
b0129042
DJ
108882002-01-15 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * c-typeprint.c (is_type_conversion_operator): Add additional
10891 check for non-conversion operators.
10892
ba8679fb 108932002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10894
10895 * linux-proc.c: Add "info proc" command, a la procfs.c.
10896 (read_mapping): New function, abstract and re-use code.
10897 (linux_find_memory_regions): Use new func read_mapping.
10898 (linux_info_proc_cmd): New function, implement "info proc".
10899 (_initialize_linux_proc): Add new command "info proc".
10900
e4f9b4d5
MS
109012002-01-15 Michael Snyder <msnyder@redhat.com>
10902
10903 * symfile.c (generic_load): Use bfd_map_over_sections method
10904 instead of manipulating bfd structure members directly.
10905 (add_section_size_callback): New function, bfd sections callback
10906 used by generic_load.
10907 (load_sections_callback): New function, bfd sections callback
10908 used by generic_load.
10909
08cf96df
EZ
109102002-01-15 Elena Zannoni <ezannoni@redhat.com>
10911
abf22e64 10912 [Based on work by Jim Blandy]
08cf96df
EZ
10913 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10914 (builtin_type_vec128): Export.
10915 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10916 types.
10917 (builtin_type_vec128): New builtin type for 128 bit vector
10918 registers.
10919 (build_gdbtypes): Initialize builtin_type_v16qi and
10920 builtin_type_v8hi. Create the vec128 register builtin type
10921 structure.
10922 (build_builtin_type_vec128): New function.
abf22e64 10923 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10924 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10925 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10926 AltiVec register to new builtin type.
10927
d7242108
DJ
109282001-01-15 Daniel Jacobowitz <drow@mvista.com>
10929
10930 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10931 to make_cv_type.
10932
4ee3352d
AC
109332002-01-14 Andrew Cagney <ac131313@redhat.com>
10934
10935 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10936 CLEAN_UP_REGISTER_VALUE.
10937 * regcache.c (supply_register): Update only call.
10938
f015b2e7
AC
109392002-01-14 Andrew Cagney <ac131313@redhat.com>
10940
10941 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10942 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10943 a29k-*-vxworks* targets as obsolete.
10944
356ae49d
MS
109452002-01-14 Michael Snyder <msnyder@redhat.com>
10946
10947 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10948 until we can resolve portability issues.
10949 * gregset.h: Remove references to fpxregs.
10950 * gcore.c (gcore_command): Initialize note_sec to NULL.
10951
ade8f45e
AC
109522002-01-13 Andrew Cagney <ac131313@redhat.com>
10953
10954 * signals.c (target_signal_to_name): Rewrite. Only use
10955 signals[].name when in bounds and non-NULL.
abf22e64 10956
89c49e7a
AC
109572002-01-13 Andrew Cagney <ac131313@redhat.com>
10958
10959 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10960 * signals.c (target_signal_to_name): Verify that SIG is within the
10961 bounds of the signals array.
10962
4daa9f9f
AC
109632002-01-13 Andrew Cagney <ac131313@redhat.com>
10964
10965 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10966
ba4bbdcb
KS
109672002-01-13 Keith Seitz <keiths@redhat.com>
10968
10969 * stack.c (print_frame_info_base): Print the frame's pc
10970 only if when print_frame_info_listing_hook is not defined.
10971
575bbeb6
KS
109722002-01-13 Keith Seitz <keiths@redhat.com>
10973
10974 * varobj.c (varobj_set_value): Make sure that there were no
10975 errors evaluating the object before attempting to set its
10976 value.
10977 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10978 so this offset adjustment is no longer necessary.
10979 (create_child): Don't set the error flag if the child is
10980 a CPLUS_FAKE_CHILD.
10981 (value_of_child): If value_fetch_lazy fails, return NULL
10982 so that callers will be notified that an error occurred.
10983 (c_value_of_variable): Delay check of variable's validity
10984 until later. We actually want all structs and unions to have
10985 the value "{...}".
10986 Do not return "???" for variables which could not be evaluated.
10987 This error condition must be returned to the caller so that it
10988 can get the error condition from gdb.
10989 (cplus_name_of_child): Adjust index for vptr before figuring
10990 out the name of the child.
10991 (cplus_value_of_child): If a child's (real) parent is not valid,
10992 don't even bother trying to give a value for it. Just return
10993 an error. Change all instances in this function.
10994 (cplus_type_of_child): If our parent is one of the "fake"
10995 parents, we need to get at the type of the real parent, and
10996 derive the child's true type using this information.
10997
b76898ab
AC
109982002-01-13 Andrew Cagney <ac131313@redhat.com>
10999
11000 From 2002-01-09 John Marshall <johnm@falch.net>:
11001 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11002 sources.redhat.com, and tweak some related URLs which had
11003 suffered from linkrot.
11004
b6649e88
AC
110052002-01-13 Andrew Cagney <ac131313@redhat.com>
11006
11007 From Jeff law:
11008 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11009 structures passed in registers.
11010
82cc5033
EZ
110112002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11012
11013 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11014 white space which prevented compilation. Reported by DSK
11015 <dsk@student.unsw.edu.au>.
11016
ba5f2f8a
MS
110172002-01-11 Michael Snyder <msnyder@redhat.com>
11018
fbd35540
MS
11019 * symfile.c (build_section_addr_info_from_section_tab):
11020 Use bfd access method instead of manipulating bfd directly.
11021 (syms_from_objfile): Ditto.
11022 (simple_overlay_update_1): Ditto.
11023 (simple_overlay_update): Ditto.
11024 (generic_load): Ditto.
11025 (overlay_unmapped_address): FIXME comment, bfd access methods.
11026 (sections_overlap): FIXME comment, bfd access methods.
11027 (pc_in_mapped_range): FIXME comment, bfd access methods.
11028 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11029 (section_is_mapped): FIXME comment, bfd access methods.
11030 (section_is_overlay): FIXME comment, bfd access methods.
11031
ba5f2f8a
MS
11032 * symfile.c (generic_load): Whitespace and long line cleanups.
11033 Remove duplicate variable, change several local variables to
11034 more appropriate data types.
11035 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11036
17df2af6
AC
110372002-01-12 Andrew Cagney <ac131313@redhat.com>
11038
11039 From Peter Schauer:
11040 * language.c (longest_local_hex_string_custom): Use phex_nz to
11041 convert NUM to a hex string.
11042
ec920329
EZ
110432002-01-12 Elena Zannoni <ezannoni@redhat.com>
11044
11045 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11046 the function.
538a76d6 11047 Update Copyright year.
ec920329 11048
3abd2e01
AC
110492002-01-12 Andrew Cagney <ac131313@redhat.com>
11050
11051 * language.c (longest_raw_hex_string): Delete unused function.
11052
b21b22e0
PS
110532002-01-11 Petr Sorfa <petrs@caldera.com>
11054
11055 * MAINTAINERS (write-after-approval): Add myself.
11056 * dwarf2read.c (read_tag_string_type): Handling of
11057 DW_AT_byte_size.
11058 (read_tag_string_type): FORTRAN fix to prevent propagation of
11059 first string size.
11060 (set_cu_language): Handling of DW_LANG_Fortran95
11061
747fe712
RE
110622002-01-11 Richard Earnshaw <rearnsha@arm.com>
11063
11064 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11065 GETPID(inferior_ptid).
11066 (store_inferior_registers): Likewise.
11067
f1bea926
JM
110682002-01-10 Jason Merrill <jason@redhat.com>
11069
11070 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11071 Fix DW_OP_minus.
11072
ae940673
AC
110732002-01-10 Andrew Cagney <ac131313@redhat.com>
11074
11075 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11076 and bfd/elf32-sh-nbsd.c.
11077
00546b04
MS
110782002-01-10 Michael Snyder <msnyder@redhat.com>
11079
352ed7b4
MS
11080 * NEWS: Mention --pid and corefile/proc-id behavior change.
11081
c18be923
MS
11082 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11083 * gcore.c: Include cli/cli-decode.h instead of command.h.
11084
00546b04
MS
11085 * main.c (captured_main): Add new command line option "--pid".
11086 If the second command line argument (following the symbol-file)
11087 begins with a digit, try to attach to it before trying to open
11088 it as a corefile.
11089 (print_gdb_help): Document the "--pid" argument.
11090
db60ec62
EZ
110912002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11092
11093 * completer.c (command_completer): New function.
11094
11095 * completer.h <command_completer>: Add prototype.
11096
11097 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11098 completer for the "help" command.
11099
39c22d1a
JM
111002002-01-09 Jason Merrill <jason@redhat.com>
11101
11102 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11103
c564377f
MS
111042002-01-09 Michael Snyder <msnyder@redhat.com>
11105
975aec09
MS
11106 * i386-linux-nat.c (fill_fpxregset): Make global.
11107 (store_fpxregset): Ditto.
11108
db4a10fa
MS
11109 * gregset.h (gdb_fpxregset_t): Define.
11110 (supply_fpxregset): Prototype.
11111 (fill_fpxregset): Prototype.
11112
c564377f
MS
11113 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11114
c3d45d70
RE
111152002-01-09 Richard Earnshaw <rearnsha@arm.com>
11116
11117 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11118 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11119 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11120
fcc87af1
AC
111212002-01-09 Andrew Cagney <ac131313@redhat.com>
11122
11123 * MAINTAINERS: Update target maintainer rules so that any
11124 Maintainer can approve a tested patch for a maintenance-only
11125 target.
11126
dd96c05b
RE
111272002-01-09 Richard Earnshaw <rearnsha@arm.com>
11128
d4297db9 11129 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11130
d4297db9 11131 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11132 IN_SIGTRAMP.
11133
145fdc6e
MS
111342002-01-08 Michael Snyder <msnyder@redhat.com>
11135
11136 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11137 real name of the executable, rather than the /proc name.
11138
be4d1333
MS
111392002-01-03 Michael Snyder <msnyder@redhat.com>
11140
11141 Implement a "generate-core-file" command in gdb, save target state.
11142 * gcore.c: New file. Implement new command 'generate-core-file'.
11143 Save a corefile image of the current state of the inferior.
11144 * linux-proc.c: Add linux-specific code for saving corefiles.
11145 * target.h (struct target_ops): Add new target vectors for saving
11146 corefiles; to_find_memory_regions and to_make_corefile_notes.
11147 (target_find_memory_regions): New macro.
11148 (target_make_corefile_notes): New macro.
11149 * target.c (update_current_target): Inherit new target methods.
11150 (dummy_find_memory_regions): New place-holder method.
11151 (dummy_make_corefile_notes): New place-holder method.
11152 (init_dummy_target): Initialize new dummy target vectors.
11153 * exec.c (exec_set_find_memory_regions): New function.
11154 Allow the exec_ops vector for memory regions to be taken over.
11155 (exec_make_note_section): New function, target vector method.
11156 * defs.h (exec_set_find_memory_regions): Export prototype.
11157 * procfs.c (proc_find_memory_regions): New function, corefile method.
11158 (procfs_make_note_section): New function, corefile method.
11159 (init_procfs_ops): Set new target vector pointers.
11160 (find_memory_regions_callback): New function.
11161 (procfs_do_thread_registers): New function.
11162 (procfs_corefile_thread_callback): New function.
11163 * sol-thread.c (sol_find_memory_regions): New function.
11164 (sol_make_note_section): New function.
11165 (init_sol_thread_ops): Initialize new target vectors.
11166 * inftarg.c (inftarg_set_find_memory_regions): New function.
11167 Allow to_find_memory_regions vector to be taken over.
11168 (inftarg_set_make_corefile_notes): New function.
11169 Allow to_make_corefile_notes vector to be taken over.
11170 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11171 interface layer if not target_has_execution (may be a corefile).
11172 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11173 * config/sparc/sun4sol2.mh: Ditto.
11174 * config/alpha/alpha-linux.mh: Ditto.
11175 * config/arm/linux.mh: Ditto.
11176 * config/i386/x86-64linux.mh: Ditto.
11177 * config/ia64/linux.mh: Ditto.
11178 * config/m68k/linux.mh: Ditto.
11179 * config/mips/linux.mh: Ditto.
11180 * config/powerpc/linux.mh: Ditto.
11181 * config/sparc/linux.mh: Ditto.
11182
c6b92abd
MS
111832002-01-07 Michael Snyder <msnyder@redhat.com>
11184
11185 * arm-linux-nat.c: Remove references to regcache.c internal data
11186 (registers[] and register_valid[]).
11187
4b09dc8c
MS
111882002-01-07 Michael Snyder <msnyder@redhat.com>
11189
abf22e64
AJ
11190 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11191 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11192 symbol file and shlibs.
11193 * Makefile.in: Add rule for linux-proc.o.
11194 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11195 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11196 * config/arm/linux.mh: Ditto.
11197 * config/i386/linux.mh: Ditto.
11198 * config/i386/x86-64linux.mh: Ditto.
11199 * config/ia64/linux.mh: Ditto.
11200 * config/m68k/linux.mh: Ditto.
11201 * config/mips/linux.mh: Ditto.
11202 * config/powerpc/linux.mh: Ditto.
11203 * config/sparc/linux.mh: Ditto.
11204
c25b74ac
PM
112052002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11206
11207 * win32-nat.c: Add i386-tdep.h dependency.
11208
94cd915f
MS
112092002-01-07 Michael Snyder <msnyder@redhat.com>
11210
c7cccb76
MS
11211 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11212 instead of bfd_get_arch_size. Don't bail out just because
11213 there's no exec_bfd.
abf22e64 11214
34c0bd93
MS
11215 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11216 * p-valprint.c (pascal_object_print_value): Ditto.
11217 * somread.c (som_symtab_read): Ditto.
11218 * symfile.c (simple_free_overlay_region_table): Ditto.
11219 * valops.c (value_assign): Ditto.
11220
21c1c920
MS
11221 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11222 use tilde_expand and strerror for opening save-tracepoints file.
11223
5bbd998e
MS
11224 * thread-db.c (thread_db_new_objfile): Indendation fix.
11225
94cd915f
MS
11226 * infptrace.c (GDB_MAX_ALLOCA): New define.
11227 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11228 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11229 can be overridden with whatever value is appropriate to the host).
11230 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11231 alloca to allocate potentially large buffer.
11232 * rs6000-nat.c (child_xfer_memory): Ditto.
11233 * symm-nat.c (child_xfer_memory): Ditto.
11234 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11235
494e8a93
JSC
112362002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11237
11238 From Nick Clifton <nickc@redhat.com>
11239 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11240
d0e1d48e
MS
112412002-01-07 Michael Snyder <msnyder@redhat.com>
11242
abf22e64 11243 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11244 Don't use exec_bfd if it's NULL.
11245
290b2c7a
MK
112462002-01-06 Mark Kettenis <kettenis@gnu.org>
11247
abf22e64 11248 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11249
aef21287
AC
112502002-01-06 Andrew Cagney <ac131313@redhat.com>
11251
11252 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11253 * gnu-nat.c: Ditto.
11254
30efa627
AC
112552002-01-06 Andrew Cagney <ac131313@redhat.com>
11256
11257 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11258 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11259 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11260 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11261 z8k-coff have not been multi-arched. Update z8k-coff build
11262 status.
11263
9b4ff276
AC
112642002-01-06 Andrew Cagney <ac131313@redhat.com>
11265
11266 * MAINTAINERS: Mark a29k target as obsolete.
11267 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11268 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11269 comments.
11270 * NEWS: Note that a29k targets are obsolete.
11271 * a29k-tdep.c: Mark as obsolete.
11272 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11273 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11274 a29k-*-vxworks* targets as obsolete.
11275 * remote-adapt.c: Obsolete.
11276 * remote-eb.c: Obsolete.
11277 * remote-mm.c: Obsolete.
11278 * remote-udi.c: Obsolete.
11279 * config/a29k/a29k-udi.mt: Obsolete.
11280 * config/a29k/a29k.mt: Obsolete.
11281 * config/a29k/tm-a29k.h: Obsolete.
11282 * config/a29k/tm-vx29k.h: Obsolete.
11283 * config/a29k/vx29k.mt: Obsolete.
11284
a9011d31
AC
112852002-01-05 Andrew Cagney <ac131313@redhat.com>
11286
11287 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11288 with BFD_ENDIAN_BIG.
11289
9299404e
AC
112902002-01-05 Andrew Cagney <ac131313@redhat.com>
11291
11292 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11293 * configure, config.in: Re-generate.
11294 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11295 * defs.h: Do not include <endian.h>.
11296
7e89e357
JT
112972002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11298
11299 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11300 * config.in: Regenerate.
11301 * configure.in: Update copyright years.
11302 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11303 * configure: Regenerate.
11304 * i386bsd-nat.c: Update copyright years.
11305 (fill_gregset): Use regcache_collect.
11306 (fetch_inferior_registers): Only fetch integer registers
11307 if requested to do so. Add support for XMM registers
11308 using PT_GETXMMREGS.
11309 (store_inferior_registers): Only store integer registers
11310 if requested to do so. Add support for XMM registers
11311 using PT_SETXMMREGS.
11312 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11313 (store_inferior_registers): Remove.
11314 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11315 (fetch_elfcore_registers): New function.
11316 (i386nbsd_elfcore_fns): New.
11317 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11318 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11319 i386bsd-nat.o.
11320 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11321 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11322 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11323 * config/i386/tm-nbsd.h: Update copyright years.
11324 (HAVE_SSE_REGS): Define.
11325 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11326 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11327 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11328 (SIGCONTEXT_PC_OFFSET): Remove.
11329 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11330
a752853e
AC
113312002-01-05 Andrew Cagney <ac131313@redhat.com>
11332
11333 * configure.tgt: Remove powerpc-*-macos* target.
11334 * config/m68k/xm-mpw.h: Delete file.
11335 * config/xm-mpw.h: Delete file.
11336 * ser-mac.c: Delete file.
11337 * mpw-make.sed: Delete file.
11338 * mpw-config.in: Delete file.
11339 * mac-xdep.c: Delete file.
11340 * mac-gdb.r: Delete file.
11341 * mac-defs.h: Delete file.
11342 * mac-nat.c: Delete file.
11343 * config/powerpc/macos.mh: Delete file.
11344 * config/powerpc/macos.mt: Delete file.
11345 * config/powerpc/nm-macos.h: Delete file.
11346 * config/powerpc/tm-macos.h: Delete file.
11347 * source.c (openp, open_source_file): Remove obsolete code.
11348 * top.c (gdb_readline): Ditto.
11349 * utils.c (query): Ditto.
11350 * event-top.c (display_gdb_prompt): Ditto.
11351 * Makefile.in (ser-mac.o): Delete obsolete target.
11352 * NEWS: Update.
11353
d7449b42
AC
113542002-01-04 Andrew Cagney <ac131313@redhat.com>
11355
11356 * defs.h (BIG_ENDIAN): Delete macro definition.
11357 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11358 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11359 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11360 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11361 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11362 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11363 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11364 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11365 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11366 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11367 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11368 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11369 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11370 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11371 * gdbarch.c: Re-generate.
11372
356374e8
DJ
113732002-01-04 Daniel Jacobowitz <drow@mvista.com>
11374
11375 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11376 for core files.
11377
a2b8f8f8
JT
113782002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11379
11380 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11381
12466af9
AC
113822002-01-04 Andrew Cagney <ac131313@redhat.com>
11383
11384 * value.h (value_ptr): Delete typedef.
11385
3549ab40
JT
113862002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11387
11388 * i386nbsd-nat.c: Update copyright years.
11389 Include i386-tdep.h.
11390
fedbd091
EZ
113912002-01-04 Elena Zannoni <ezannoni@redhat.com>
11392
11393 * stabsread.c: Update copyright years.
11394
11395 From Debashis Mahata <debashis.mahata@wipro.com>:
11396 (read_struct_fields): Deal with Sun C compiler erroneous stab
11397 output for structs and unions.
fec8b34f 11398 Fix PR gdb/269.
fedbd091 11399
eb43544b
DJ
114002002-01-04 Daniel Jacobowitz <drow@mvista.com>
11401
11402 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11403 prototype.
11404
1514d34e
DJ
114052002-01-04 Daniel Jacobowitz <drow@mvista.com>
11406
11407 * cp-abi.c: Fix whitespace.
11408 (baseclass_offset): New wrapper function.
11409 * cp-abi.h (baseclass_offset): Add prototype.
11410 (struct cp_abi_ops): Add baseclass_offset pointer.
11411
11412 * valops.c (vb_match): Move to...
11413 * gnu-v2-abi.c (vb_match): here.
11414 * valops.c (baseclass_offset): Move to...
11415 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11416
11417 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11418
11419 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11420 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11421 * hpacc-abi.c (init_hpacc_ops): Likewise.
11422
7f8c9282
DJ
114232002-01-04 Daniel Jacobowitz <drow@mvista.com>
11424
11425 * valops.c (find_overload_match): Accept obj as a
11426 reference parameter. Update it before returning.
11427 * value.h (find_overload_match): Update prototype.
11428 * eval.c (evaluate_subexp_standard): Pass object to
11429 find_overload_match by reference.
11430
f23631e4
AC
114312002-01-03 Andrew Cagney <ac131313@redhat.com>
11432
11433 * valarith.c: Replace value_ptr with struct value pointer. Remove
11434 register attribute from value declarations.
11435 * valops.c: Ditto.
11436 * value.h: Ditto.
11437 * scm-lang.c (scm_lookup_name): Ditto.
11438
79e10fab 114392002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11440
79e10fab
AC
11441 Abstract the functionality of iterating over mapped memory
11442 regions into a general purpose iterator function.
abf22e64 11443 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11444 iterator for memory sections.
11445 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11446 (solib_mappings_callback): New function, callback for above.
11447 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11448 (info_mappings_callback): New function, callback for above.
11449
11450 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11451
c5ad026a
MK
114522002-01-01 Mark Kettenis <kettenis@gnu.org>
11453
d2a7c97a
MK
11454 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11455 * i386-tdep.c: Include "elf-bfd.h".
11456 (process_note_abi_tag_sections): New function.
11457 (i386_gdbarch_init): Add code to recognize various OS/ABI
11458 combinations.
11459
c5ad026a
MK
11460 * maint.c (_initialize_maint_cmds): Add missing \ in
11461 string-literal.
11462
a1a5b71e 11463For older changes see ChangeLog-2001
c906108c
SS
11464\f
11465Local Variables:
11466mode: change-log
11467left-margin: 8
11468fill-column: 74
11469version-control: never
11470End:
This page took 0.793468 seconds and 4 git commands to generate.