Fix v850 .offset pseudo-op
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f15ab4a7
AC
12002-09-26 Andrew Cagney <ac131313@redhat.com>
2
3 From Grace Sainsbury <graces@redhat.com>:
4 * Makefile.in (gdbtk-main.o): New target.
5 (gdb.o): New target.
6 (main_h): Define.
7 (main.o): Update dependencies.
8 (gdb$(EXEEXT)): Add gdb.o.
9 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
10 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
11 (SUBDIR_GDBTK_CLEAN): Set.
12 (install-gdbtk): Install the insight binary.
13 (uninstall-gdbtk): New target.
14 (all-gdbtk, clean-gdbtk): New rule.
15 * top.c (use_windows): Default to zero.
16 * main.c: Include "main.h".
17 (main): Delete.
18 (struct captured_main_args): Delete.
19 (gdb_main): New function.
20 * main.h: New file.
21 * gdb.c: New File.
22
e36180d7
AC
232002-09-25 Andrew Cagney <cagney@redhat.com>
24
25 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
26 (frame_map_regnum_to_name): New function.
27 (frame_map_name_to_regnum): New function.
28 * frame.h (frame_map_name_to_regnum): Declare.
29 (frame_map_regnum_to_name): Declare.
30 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
31 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
32 * parse.c: Do not include "builtin-regs.h".
33 (target_map_name_to_register): Delete function.
34 (write_dollar_variable): Use frame_map_name_to_regnum.
35 * parser-defs.h (target_map_name_to_register): Delete declaration.
36 * expprint.c: Include "frame.h".
37 (print_subexp): Use frame_map_regnum_to_name.
38 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
39 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
40
8b69000d
AC
412002-09-25 Andrew Cagney <ac131313@redhat.com>
42
43 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
44 wasn't saved, and the next innermost frame is a dummy, return the
45 dummy frame's link register.
46
046ca86a
JB
472002-09-24 Jim Blandy <jimb@redhat.com>
48
49 Fix from Paul Breed:
50 * main.c (captured_main): Add a `break' after the case for 'b'.
51
94b66fa7
KS
522002-09-24 Keith Seitz <keiths@redhat.com>
53
54 * varobj.c (c_type_of_child): Use get_target_type instead
55 of TYPE_TARGET_TYPE.
56
c214a6fd
FN
572002-09-22 Fernando Nasser <fnasser@redhat.com>
58
53cb0458
FN
59 * source.c (get_current_or_default_source_symtab_and_line): Remove
60 function.
61 (set_default_source_symtab_and_line): New function. Attempts to
62 determine a source file to list lines from if one is not currently
63 defined.
64 (get_current_source_symtab_and_line): Initialize sal.pc and
65 sal.end fields.
66 (set_current_source_symtab_and_line): Mark argument as const.
67 * source.h: Update declarations and comments.
68 * linespec.c (decode_line_1): Replace call to removed routine above.
69 * stack.c (print_frame_info_base): Ditto.
70 * cli/cli-cmds.c (edit_command): Ditto.
71 (list_command): Ditto.
72
732002-09-22 Fernando Nasser <fnasser@redhat.com>
74
75 * source.c (get_current__or_default_source_symtab_and_line): Initialize
76 sal.pc and sal.end fields.
c214a6fd
FN
77 (get_current_or_default_source_symtab_and_line): Ditto.
78 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
79 so we do not cause a new source symtab to be searched for (reverting an
80 unintentional change from the 2002-09-20 patch).
81 * scm-lang.c (scm_unpac): Ditto.
82
cc3b68a5
AC
832002-09-21 Andrew Cagney <cagney@redhat.com>
84
85 * complaints.c (symfile_explanations): Remove new-line from
86 ``isolated_message''.
87 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
88 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
89
5835abe7
NC
902002-09-20 Nick Clifton <nickc@redhat.com>
91
92 * NEWS: Announce that V850EA ISA is no longer supported.
93 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
94
a15ef5f5
DC
952002-09-20 David Carlton <carlton@math.stanford.edu>
96
06ba1b39
DC
97 * Makefile.in (c-lang.o): Correct dependencies.
98 (utils.o): Gather dependencies.
99 (charset.o): Move.
a15ef5f5
DC
100 * c-lang.c: #include "gdb_string.h"
101
87885426
FN
1022002-09-20 Fernando Nasser <fnasser@redhat.com>
103
104 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
105 * cli/cli-cmds.c (list_command): New function. Implements the new
106 cli edit command.
107 (_init_cli_cmds): Add new command definition.
108 * gdb.1: Document edit command.
109 * doc/gdb.texinfo: Document edit command.
110
1112002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
112
113 * source.c: Make global variables current_source_symtab and
114 current_source_line static.
115 (list_command): Moved to cli/cli-cmds.c.
116 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
117 (get_first_line_listed): New accessor function.
118 (get_lines_to_list): New accessor function.
119 (get_current_source_symtab_and_line): New function. Retrieves the
120 position in the source code that we consider current.
121 (get_current_or_default_source_symtab_and_line): New function.
122 Like the above but attempts to determine a default position if one
123 is not currently defined.
124 (set_current_source_symtab_and_line): New function. Sets the source
125 code position considered current and returns the previously set one.
126 (clear_current_source_symtab_and_line): Reset stored information about
127 a current source line.
128 (_initialize_source): Remove registration for the "list" command and
129 its alias.
130 * source.h: Add declarations for the new functions above.
131 * symtab.h: Remove declarations for the global variables mentioned
132 above.
133 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
134 obtain current source line.
135 * linespec.c (decode_line_1): Ditto.
136 * macroscope.c (default_macro_scope): Ditto.
137 * scm-lang.c (scm_unpac): Ditto.
138 * stack.c (print_frame_info_base): Ditto.
139 * symfile.c (clear_symtab_users): Ditto.
140 * symtab.c (decode_line_spec): Ditto.
141 * cli/cli-cmds.c (list_command): Moved here from source.c.
142 (ambiguous_line_spec): Moved here from source.c.
143 (_init_cli_cmds): Add definition for "list" and its alias.
144 * Makefile.in: Update dependencies.
145
ddd216ea
CV
1462002-09-20 Corinna Vinschen <vinschen@redhat.com>
147
148 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
149 with what gcc thinks is correct.
150
6d305052
CV
1512002-09-20 Corinna Vinschen <vinschen@redhat.com>
152
153 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
154 multiple register push instruction.
155
234b45d4
KB
1562002-09-19 Jim Blandy <jimb@redhat.com>
157
158 Add support for distinct host and target character sets.
159 * charset.c, charset.h: New files.
160 * c-exp.y: #include "charset.h".
161 (yylex): Convert character and string literals to the target
162 character set, before returning them as the semantic value of the
163 token.
164 * c-lang.c: #include "charset.h".
165 (c_emit_char): Use charset-specific methods to recognize
166 characters with backslash escape forms, to decide which characters
167 to print literally and which to print using numeric escape
168 sequences, and to convert target characters to host characters
169 before printing.
170 * utils.c: #include "charset.h".
171 (no_control_char_error): New function.
172 (parse_escape): Use charset-specific methods to recognize
173 backslash escapes, parse `control character' notation, and convert
174 characters from the host character set to the target character set.
175 * configure.in: Set the default host character set.
176 Check where to find iconv, and what its argument types might be.
177 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
178 * Makefile.in (SFILES): List charset.c.
179 (COMMON_OBS): List charset.o.
180 (charset.o): New rule.
181 (charset_h): New header dependency variable.
182 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
183 (LIBICONV): New variable, set by configure.
184 (CLIBS): Include $(LIBICONV) here.
185 * aclocal.m4, config.in, configure: Regenerated.
186
525d6a61
JB
1872002-09-19 Joel Brobecker <brobecker@gnat.com>
188
189 * ada-exp.y: Add missing semicolons to end rules. Fixes a
190 bison 1.35 warning.
191
3ed93867
RE
1922002-09-19 Richard Earnshaw <rearnsha@arm.com>
193
194 * gdb_mbuild.sh: New file.
195
437666f8
AC
1962002-09-19 Andrew Cagney <ac131313@redhat.com>
197
198 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
199
389e51db
AC
2002002-09-18 Andrew Cagney <ac131313@redhat.com>
201
202 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
203 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
204 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
205 valops.c, value.h: Revert previous change.
206
3b4efeaa
MS
2072002-09-18 Michael Snyder <msnyder@redhat.com>
208
209 Preliminary support for Objective-C:
210 * defs.h (language_objc): New enum value.
211 (puts_filtered_tabular): Declaration only, exported from utils.c.
212 (skip_quoted): Delete, declared in completer.h.
213 * c-exp.y: Include completer.h.
214 * p-exp.y: Ditto.
215 * jv-exp.y: Ditto.
216 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
217 New operator enum values.
218 * language.h (CAST_IS_CONVERSION): Test for language_objc.
219 * language.c (binop_result_type): Handle language_objc case.
220 (integral_type, character_type, string_type, boolean_type,
221 structured_type, binop_type_check): Ditto.
222 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
223 (struct objc_specific): Add to general_symbol_info.
224 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
225 (SYMBOL_DEMANGLED_NAME): Handle objc case.
226 * parser-defs.h (struct objc_class_str): New struct type.
227 (start_msglist, end_msglist, add_msglist): Declaration only,
228 exported from objc-lang.c.
229 * value.h (value_of_local, value_nsstring,
230 call_function_by_hand_expecting_type): Exported from valops.c.
231 * valops.c (find_function_addr): Export.
232 (call_function_by_hand_expecting_type): New function.
233 (value_of_local): New function.
234 * symfile.c (init_filename_language_table): Add ".m" extension
235 for Objective-C.
236 * utils.c (puts_filtered_tabular): New function.
237 (fprintf_symbol_filtered): Add objc demangling support (disabled).
238 (set/show demangle): Extend help-string to refer to ObjC.
239 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
240 * stabsread.c (symbol_reference_defined): Objective-C symbols
241 may contain colons: make allowances when scanning stabs strings
242 for colons.
243 (objc_find_colon): New function.
244 * printcmd.c (address_info): If language == objc then print
245 "self" instead of "this".
246 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
247 OP_NSSTRING, and OP_SELF.
248 (prefixify_subexp): Ditto.
249 * source.c (print_source_lines): Mention objc in comment.
250 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
251 method names.
252
b9caf505
AC
2532002-09-18 Andrew Cagney <ac131313@redhat.com>
254
255 * complaints.h: Update copyright.
256 (struct complaints): Declare.
257 (struct complaint): Make `message' constant.
258 (internal_complaint): Declare.
259 (complaint): Declare.
260 (complaint_root): Delete declaration.
261 (symfile_complaints): Delete declaration.
262 (struct complaints): Add opaque declaration.
263 (clear_complaints): Add a complaints parameter.
264 * complaints.c: Update copyright.
265 (enum complaint_series): Define.
266 (complaint_root): Delete.
267 (struct complaints): Define.
268 (complaint_sentinel, symfile_complaint_book): New variables.
269 (symfile_explanations, symfile_complaints): New variables.
270 New variables.
271 (get_complaints): New function.
272 (vcomplaint): New function.
273 (complaint): New function.
274 (internal_complaint): New function.
275 (complain): Call vcomplain with symfile_complaint.
276 (clear_complaints): Rewrite.
277 (_initialize_complaints): Use add_setshow_command.
278 * Makefile.in (complaints.o): Update dependencies.
279 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
280 to call to clear_complaints.
281 (new_symfile_objfile, reread_symbols): Ditto.
282 (oldsyms_complaint): Delete.
283 (empty_symtab_complaint, unknown_option_complaint): Delete.
284 (free_named_symtabs): Use complaint instead of complain.
285
d2e6263c
MS
2862002-09-18 Michael Snyder <msnyder@redhat.com>
287
5fb2031a
AC
288 Contributed by Apple Computer, Inc. Merged with current sources
289 by Adam Fedor <fedor@doc.com> [cagney].
290
d2e6263c
MS
291 * objc-lang.c: First clean-up round: comments, indentation.
292 * objc-lang.h: Ditto.
293 * objc-lang.y: Ditto.
294
dec43320
AC
2952002-09-18 Andrew Cagney <ac131313@redhat.com>
296
297 * maint.c (maintenance_internal_error): Print the parameter as the
298 error message.
299 (maintenance_internal_warning): New function.
300 (_initialize_maint_cmds): Add command `maint internal-warning'.
301
302 * defs.h (internal_warning, internal_vwarning): Declare.
303 * utils.c (struct internal_problem): Define.
304 (internal_vproblem): New function.
305 (internal_warning): New function.
306 (internal_vwarning): New function.
307 (internal_warning_problem, internal_error_problem): New variables.
308 (internal_verror): Just call internal_vproblem.
309
b81654f1
MS
3102002-09-18 Michael Snyder <msnyder@redhat.com>
311
312 * objc-lang.c: New file, support for Objective-C.
313 Preliminary check-in, not yet integrated into gdb.
314 * objc-lang.h: New file.
315 * objc-exp.y: New file.
316
0542c381
AC
3172002-09-18 Andrew Cagney <ac131313@redhat.com>
318
7bda5e4a
AC
319 * infrun.c (signal_stop_update): Convert definition to ISO C.
320 (signal_print_update): Ditto.
321 (signal_pass_update): Ditto.
322 * inflow.c (terminal_save_ours): Ditto.
323
5247b418
AC
324 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
325 comments.
326
fc60962c
AC
327 * config/djgpp/fnchange.lst: Handle name clashes between
328 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
329 bfd/coff-tic80.c.
330
0542c381
AC
331 * i386-linux-tdep.h: Fix tipo.
332
5b924b9b
AF
3332002-09-18 Adam Fedor <fedor@gnu.org>
334
335 * MAINTAINERS: Add myself to the Write After Approval list.
336
5afc051b
JB
3372002-09-18 Jim Blandy <jimb@redhat.com>
338
339 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
340 texthigh and textlow to reader-specific structs caused
341 objfile_relocate to miss them. This is fixable, but the work that
342 the change was supposed to prepare GDB for never got done anyway.
343
eb944380
DC
3442002-09-18 David Carlton <carlton@math.stanford.edu>
345
346 * MAINTAINERS: Alphabetize Write After Approval list.
347
948e66d9
DJ
3482002-09-18 Daniel Jacobowitz <drow@mvista.com>
349
350 Fix PR gdb/709
351 * values.c (value_static_field): Call read_var_value.
352
dc604539
AC
3532002-09-18 Andrew Cagney <ac131313@redhat.com>
354
355 * valops.c (hand_function_call): Align the initial stack pointer
356 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
357 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
358 return value.
359 * mips-tdep.c (mips_frame_align): New function.
360 (mips_gdbarch_init): Set frame_align.
361 * gdbarch.sh (FRAME_ALIGN): New method.
362 * gdbarch.h, gdbarch.c: Re-generate.
363
cb7e422f
ML
3642002-09-18 Michal Ludvig <mludvig@suse.cz>
365
366 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
367 registers.
368
a094c6fb
AC
3692002-09-17 Andrew Cagney <ac131313@redhat.com>
370
371 * NEWS: Mention that MIPS $fp behavior changed.
372 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
373 reference to FP_REGNUM.
374 (mipsnbsd_cannot_store_register): Ditto.
375 * mips-linux-nat.c: Update copyright.
376 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
377 (mips_linux_cannot_store_register): Ditto.
378 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
379 * config/mips/tm-mips.h: Update copyright.
380 (FP_REGNUM): Delete macro.
381 (MIPS_REGISTER_NAMES): Replace "fp" with "".
382 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
383 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
384 (mips_r3041_reg_names, mips_r3051_reg_names)
385 (mips_r3081_reg_names): Replace "fp" with "".
386 Fix PR gdb/480.
387
45cf40d1
TR
3882002-09-17 Theodore A. Roth <troth@verinet.com>
389
390 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
391 generic_read_register_dummy() (PR gdb/703).
392 (avr_push_return_address): #if 0 out unused vars.
393 (avr_gdbarch_init): Enable use of avr_push_return_address().
394
c7e701b5
MS
3952002-09-17 Michael Snyder <msnyder@redhat.com>
396
d76ba2a5 397 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
398 RTE will take care of it.
399
20bcf01c
AC
4002002-09-17 Andrew Cagney <ac131313@redhat.com>
401
402 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
403 invalid, return SP_REGNUM.
404
009a9971 4052002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
406
407 * mips-tdep.c (mips_pop_frame): Read saved values of floating
408 point registers without sign extension.
409
135c175f
AC
4102002-09-17 Andrew Cagney <cagney@redhat.com>
411
412 * blockframe.c (deprecated_read_register_dummy): Rename
413 generic_read_register_dummy.
414 * frame.c (frame_unwind_signed_register): New function.
415 (frame_unwind_unsigned_register): New function.
416 * frame.h (frame_unwind_signed_register): Declare.
417 (frame_unwind_unsigned_register): Declare.
418 (deprecated_read_register_dummy): Rename
419 generic_read_register_dummy.
420
421 * h8300-tdep.c (h8300_frame_chain): Update.
422 (h8300_frame_saved_pc): Update.
423 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
424 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
425 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
426 (s390_frame_chain): Update.
427 * v850-tdep.c (v850_find_callers_reg): Update.
428 (v850_frame_saved_pc): Update.
429 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
430 (m32r_find_callers_reg): Update.
431 (m32r_frame_saved_pc): Update.
432 * sh-tdep.c (sh_find_callers_reg): Update.
433 (sh64_get_saved_pr): Update.
434 (sh_init_extra_frame_info): Update.
435 (sh_init_extra_frame_info): Update.
436 (sh64_init_extra_frame_info): Update.
437 (sh64_init_extra_frame_info): Update.
438 * mcore-tdep.c (mcore_find_callers_reg): Update.
439 (mcore_frame_saved_pc): Update.
440 (mcore_init_extra_frame_info): Update.
441 * i386-tdep.c (i386_frame_saved_pc): Update.
442 * ia64-tdep.c (ia64_frame_saved_pc): Update.
443 (ia64_init_extra_frame_info): Update.
444 (ia64_init_extra_frame_info): Update.
445 * d10v-tdep.c (d10v_frame_saved_pc): Update.
446 * cris-tdep.c (cris_init_extra_frame_info): Update.
447 * avr-tdep.c (avr_frame_chain): Update.
448 (avr_init_extra_frame_info): Update.
449 (avr_frame_saved_pc): Update.
450 * arm-tdep.c (arm_find_callers_reg): Update.
451 (arm_init_extra_frame_info): Update.
452 (arm_frame_saved_pc): Update.
453
a741e514
TT
4542002-09-17 Tom Tromey <tromey@redhat.com>
455
456 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
457 is "'".
458
d1a8e808
CV
4592002-09-17 Corinna Vinschen <vinschen@redhat.com>
460
461 * MAINTAINERS: Remove "non multi-arched" text from h8300.
462 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
463 NEXT_PROLOGUE_INSN.
464 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
465 NEXT_PROLOGUE_INSN.
466
d9025a18
JB
4672002-09-16 Joel Brobecker <brobecker@gnat.com>
468
469 * osfsolib.c: Remove file, replaced by solib-osf.c.
470 * Makefile.in: Remove compilation rules for osfsolib.c.
471
1b2ef1b6
DC
4722002-09-16 David Carlton <carlton@math.stanford.edu>
473
474 * cp-valprint.c (cp_print_class_method): Correct args to
475 check_stub_method_group.
476
928e48af
CV
4772002-09-16 Corinna Vinschen <vinschen@redhat.com>
478
479 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
480 `set architecture'. Unify naming convention of functions.
481 (h8300_skip_prologue): Improve prologue analysis.
482 (h8300_push_arguments): Rewritten to more closely match GCC's
483 bizarre argument-passing behavior, along with the comment describing
484 said behavior.
485 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
486 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
487 sim, remote-e7000.c, remote-hms.c and remote.c
488
5e3397bb
MK
4892002-09-15 Mark Kettenis <kettenis@gnu.org>
490
491 * i386-tdep.c (gdb_print_insn_i386): Removed.
492 (i386_print_insn): New function.
493 (i386_gdbarch_init): Set print_insn to i386_print_insns.
494 (_initialize_i386_tdep): Don't initialize tm_print_insn and
495 tm_print_insn_info.
496
f710f4fc
MK
4972002-09-14 Mark Kettenis <kettenis@gnu.org>
498
499 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
500 zero.
501
db54fef4
CV
5022002-09-14 Corinna Vinschen <vinschen@redhat.com>
503
504 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
505 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
506 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
507
2becadee
CF
5082002-09-13 Christopher Faylor <cgf@redhat.com>
509
510 * win32-nat.c (child_create_inferior): Honor 'tty' command.
511
de17c821
DJ
5122002-09-13 Daniel Jacobowitz <drow@mvista.com>
513
514 * gdbtypes.c (check_stub_method): Make static.
515 (check_stub_method_group): New function.
516 * gdbtypes.h: Update prototypes.
517 * cp-support.c: New file.
518 * cp-support.h: New file.
519
520 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
521 (update_method_name_from_physname): New function.
522 (read_member_functions): Correct method names for operators
523 and v3 constructors/destructors. Separate v2 constructors and
524 destructors.
525 * Makefile.in (stabsread.o): Update dependencies.
526 (SFILES): Add cp-support.c.
527 (COMMON_OBS): Add cp-support.o.
528 (cp_support_h, cp-support.o): Add.
529
530 * cp-valprint.c (cp_print_class_method): Call
531 check_stub_method_group instead of check_stub_method. Remove
532 extraneous QUITs.
533 * p-valprint.c (pascal_object_print_class_method): Likewise.
534 * valops.c (search_struct_method): Likewise.
535 (find_method_list, value_struct_elt_for_reference): Likewise.
536
e76cff22
AC
5372002-09-13 Andrew Cagney <cagney@redhat.com>
538
539 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
540 * gdbarch.h, gdbarch.c: Regenerate.
541
905abb3f
AC
5422002-09-13 Andrew Cagney <ac131313@redhat.com>
543
544 * frame.c (find_saved_register): Delete function.
545 * frame.h (find_saved_register): Delete declaration.
546 Fix PR gdb/631.
547
64159455
AC
548Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
549
550 * mips-tdep.c (read_next_frame_reg): Re-hack using
551 frame_register_unwind.
552
795e1e11
AC
553Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
554
555 * mips-tdep.c (mips_get_saved_register): Re-hack using
556 frame_register_unwind.
557
5720643c
JB
5582002-09-12 Joel Brobecker <brobecker@gnat.com>
559
560 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
561 vector. Will be useful for Interix.
562 * gdbarch.h, gdbarch.c: Regenerate.
563
564 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
565 name of the malloc function by NAME_OF_MALLOC.
566
3bada2a2
JB
5672002-09-12 Joel Brobecker <brobecker@gnat.com>
568
569 * value.h (find_function_in_inferior): Add const keyword to
570 one of the parameters. Allows us to invoke this function with
571 a const char *.
572 * valops.c (find_function_in_inferior): Likewise.
573
3db26b01
JB
5742002-09-12 Joel Brobecker <brobecker@gnat.com>
575
576 * exec.c (xfer_memory): Fix compilation warning with old versions
577 of GCC.
578 * tracepoint.c (trace_find_tracepoint_command): Likewise.
579
17c5ed2c
DC
5802002-09-12 David Carlton <carlton@math.stanford.edu>
581
582 * symtab.h: Run through gdb_indent.h.
583 Add 2002 to Copyright year list.
584
ecd1107e
AM
5852002-09-12 Alan Modra <amodra@bigpond.net.au>
586
587 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
588 mach constants.
589 * MAINTAINERS: Add myself to write after approval list.
590
e64f66d1
JB
5912002-09-11 J. Brobecker <brobecker@gnat.com>
592
593 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
594
f9395794
JB
5952002-09-11 J. Brobecker <brobecker@gnat.com>
596
597 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
598 Interix.
599
1a303dec
MS
6002002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
601
602 * procfs.c (do_detach): Clear current signal, not just fault.
603 Corrects problem with breakpoint trap signal leaking to detached
604 process on Tru64.
605
c0219d42
MS
6062002-09-10 Michael Snyder <msnyder@redhat.com>
607
608 * buildsym.c (finish_block): Protect against null pointer.
609
9d84ac84
AC
6102002-09-10 Andrew Cagney <cagney@redhat.com>
611
612 * infcmd.c (default_print_registers_info): Send all output to
613 ``file'' instead of ``gdb_stdout''.
614
77d8f2b4
MS
6152002-09-10 Michael Snyder <msnyder@redhat.com>
616
617 * mips-tdep.c (mips_extract_struct_value_address): Make val a
618 LONGEST, and use signed register read (addresses are sign-
619 extended for mips).
620
99656a61
SC
6212002-09-10 Stephane Carrez <stcarrez@nerim.fr>
622
623 * event-loop.c (gdb_do_one_event): Make public.
624 * event-loop.h (gdb_do_one_event): Declare.
625
da12f4d8
JL
6262002-09-10 Jeff Law <law@redhat.com>
627
628 * infttrace.c (child_resume): Simplify and rework to avoid
629 TT_PROC_CONTINUE.
630
d0aee0c4
FF
6312002-09-09 Fred Fish <fnf@intrinsity.com>
632
633 * printcmd.c (print_scalar_formatted): "len" is the number of
634 target bytes, NOT the number of target bits.
635
7cb3ec5e
EZ
6362002-09-09 Elena Zannoni <ezannoni@redhat.com>
637
638 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
639 * top.c (init_main): Set rl_terminal_name.
640
4dc81987
AS
6412002-09-08 Aidan Skinner <aidan@velvet.net>
642
643 * ada-lang.c (ada_array_bound, ada_type_match,
644 _initialize_ada_language): Fix K&R definitions.
645 * ada-tasks.c (get_current_task): Fix K&R definitions.
646 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
647
842330b4
CF
6482002-09-07 Christopher Faylor <cgf@redhat.com>
649
650 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
651 Add XP.
652
43156d82
MK
6532002-09-06 Mark Kettenis <kettenis@gnu.org>
654
66da5fd8
MK
655 * i386-tdep.c (i386_register_virtual_type,
656 i386_register_convertible, i386_register_convert_to_virtual,
657 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
658 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
659 (i386_gdbarch_init): Fix comment. Add comments on calls that set
660 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
661 Don't set push_arguments twice.
662
4b218c18
MK
663 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
664 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
665 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
666 sigtramp_end to NULL.
667 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
668 defines.
669 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
670
4cc314d5
MK
671 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
672 whitespace.
673
43156d82
MK
674 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
675 * gdbarch.h, gdbarch.c: Re-generate.
676 * blockframe.c (find_pc_sect_partial_function): Convert to use
677 SIGTRAMP_START_P predicate.
678
6672060b
MS
6792002-09-05 Michael Snyder <msnyder@redhat.com>
680
a90c3637
MS
681 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
682 generic_dummy_frame method and old method. Also distinguish
683 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 684 (arm_extract_return_value): Use new regcache method.
a90c3637 685
6672060b
MS
686 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
687 adjustment that doesn't conform to the ABI.
688 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
689 saved regcache, not from current regcache.
690
299ffc64
AC
6912002-09-05 Andrew Cagney <ac131313@redhat.com>
692
693 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
694 * README: Update.
695
a3a2ee65
JT
6962002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
697
698 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
699 if arm_apcs_32 is false.
700
2bc7eea9
AC
7012002-09-04 Andrew Cagney <ac131313@redhat.com>
702
703 GDB 5.3 branch created.
704
8a55a7c5
TR
7052002-09-03 Theodore A. Roth <troth@verinet.com>
706
707 * gdb/avr-tdep.c (avr_gdbarch_init): Use
708 generic_unwind_get_saved_register.
709
e26fb1d7
DC
7102002-09-03 David Carlton <carlton@math.stanford.edu>
711
712 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
713 argument (PR gdb/653). Update call to smash_to_method_type.
714 (read_structure_scope): Update call to dwarf2_add_member_fn.
715
30d52491
ML
7162002-09-03 Michal Ludvig <mludvig@suse.cz>
717
718 * x86-64-linux-tdep.c: Include gdb_string.h
719 * x86-64-linux-nat.c: Ditto.
720
06891d83
JT
7212002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
722
723 * ada-exp.y (yyname, yyrule): Remap global variables that appear
724 when YYDEBUG is set to 1.
725 * c-exp.y: Likewise.
726 * f-exp.y: Likewise.
727 * jv-exp.y: Likewise.
728 * m2-exp.y: Likewise.
729 * p-exp.y: Likewise.
730
7d400e77
JT
7312002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
732
733 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
734 dependency list.
735 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
736 solib_svr4_fetch_link_map_offsets to
737 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
738 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
739 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
740 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
741 solib-svr4.o, and solib-legacy.o.
742 * config/i386/tm-nbsd.h: Include solib.h.
743
704a27c4
JT
7442002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
745
746 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
747 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
748 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
749 comment noting that this needs its own target configuration.
750 * config/i386/nbsd.mt: New file.
751 * config/i386/nbsdaout.mt: Remove.
752 * config/i386/nbsdelf.mt: Ditto.
753 * config/i386/tm-nbsdaout.h: Ditto.
754
d66198e1
JT
7552002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
756
757 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
758 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
759 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
760 tdep->sigtramp_end.
761 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
762 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
763 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
764
3cac699e
JT
7652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
766
767 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
768 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
769 * i386-tdep.h (i386bsd_init_abi): New prototype.
770 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
771 function declaration.
772 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
773 for NetBSD-a.out or NetBSD-ELF.
774 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
775 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
776 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
777 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
778 and nbsd-tdep.h.
779 (i386nbsd_pc_in_sigtramp): New function.
780 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
781 i386nbsd_pc_in_sigtramp.
782 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
783 and i386nbsdelf_init_abi OS ABI handlers.
784 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
785 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
786
7010ca0a
MK
7872002-09-02 Mark Kettenis <kettenis@gnu.org>
788
789 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
790 registers if the target really has them.
791
6dd93b72
JT
7922002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
793
794 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
795 than nbsd-tdep.h.
796
2ca8ae21
JT
7972002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
798
799 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
800 list.
801 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
802 (alphanbsd_skip_sigtramp_frame): New functions.
803 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
804 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
805 to alphanbsd_sigcontext_addr.
806
3d9b49b0
JT
8072002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
808
809 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
810 list.
811 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
812 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
813 nbsd_pc_in_sigtramp.
814 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
815 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
816 * nbsd-tdep.c: Include gdb_string.h.
817 (nbsd_pc_in_sigtramp): New function.
818 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
819 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
820 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
821 ppcnbsd_pc_in_sigtramp.
822 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
823 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
824 shnbsd_pc_in_sigtramp.
825 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
826 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
827 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
828
c860120c
PM
8292002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
830
831 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
832 watchpoints to NULL.
833 (insert_breakpoints): set val field of watchpoints if NULL.
834
835
c7612d53
JB
8362002-08-29 Jim Blandy <jimb@redhat.com>
837
838 * symtab.c (lookup_symbol_aux): In the cases where we find a
839 minimal symbol of an appropriate name and use its address to
840 select a symtab to read and search, use `name' (as passed to us)
841 as the demangled name when searching the symtab's global and
842 static blocks, not the minsym's name.
843
66609862
KS
8442002-08-29 Keith Seitz <keiths@redhat.com>
845
846 * stack.c (print_frame_info_base): Always set current_source_symtab
847 and current_source_line.
848
151fefe2
JB
8492002-08-29 Donn Terry <donnte@microsoft.com>
850
851 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
852
bfb3754e
KS
8532002-08-28 Keith Seitz <keiths@redhat.com>
854
855 * stack.c (select_frame): Add FIXME concerning selected-frame
856 events.
857 (select_frame_command): Send selected-frame-level-changed
858 event notification, but only if the level actually changed.
859 (up_silently_base): Add selected-frame-level-changed event
860 notification.
861 (down_silently_base): Likewise.
862
e822a2a0
AC
8632002-08-28 Andrew Cagney <ac131313@redhat.com>
864
865 * Makefile.in: Update dependencies for all gdb/*.c files.
866
309367d4
TT
8672002-08-27 Tom Tromey <tromey@redhat.com>
868
869 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
870 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
871 Update dependencies.
872 * i387-tdep.c: Include gdb_string.h.
873 * osabi.c: Likewise.
874 * i386-linux-nat.c: Likewise.
875 * lin-lwp.c: Likewise.
876 * ax-gdb.c: Likewise.
877 * signals/signals.c: Likewise.
878 * jv-valprint.c: Likewise.
879 * p-lang.c: Likewise.
880 * c-valprint.c: Likewise.
881 * cp-abi.c: Likewise.
882
e1507482
EZ
8832002-08-27 Elena Zannoni <ezannoni@redhat.com>
884
885 * cli/cli-script.h (copy_command_lines): Export.
886 * breakpoint.c: Include cli/cli-script.h.
887 * Makefile.in (breakpoint.o): Update dependencies.
888
c6510018
MS
8892002-08-26 Michael Snyder <msnyder@redhat.com>
890
891 * breakpoint.c (insert_breakpoints): Protect all references
892 to 'process_warning'. Shorten long lines.
893
c2b8ed2c
MS
8942002-08-26 Joel Brobecker <brobecker@gnat.com>
895
896 * cli/cli-script.c (copy_command_lines): New function.
897 * defs.h (copy_command_lines): Export.
898 * testsuite/gdb.base/commands.exp: New tests for commands
899 attached to a temporary breakpoint, and for commands that
900 delete the breakpoint they are attached to.
901
9022002-08-26 Michael Snyder <msnyder@redhat.com>
903
904 * breakpoint.c (bpstat_stop_status): Instead of copying the
905 pointer to the breakpoint commands struct, make a new copy
906 of the struct and point to that.
907 (bpstat_clear): Free the commands struct.
908 (bpstat_clear_actions): Free the commands struct.
909 (bpstat_do_actions): Free the command actions. Also execute
910 the local cleanups, instead of deleting them.
911 (delete_breakpoint): Leave the commands field of the bpstat
912 chain alone -- it will be freed later.
913
64b84175
KB
9142002-08-26 Kevin Buettner <kevinb@redhat.com>
915
916 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
917 deleted in 2002-08-20 commit. This function is still used by
918 ppc-linux-nat.c.
919
55970da6
KS
9202002-08-26 Keith Seitz <keiths@redhat.com>
921
922 * gdb-events.sh: Add selected-frame-level-changed event.
923 * gdb-events.c: Regenerated.
924 * gdb-events.h: Regenerated.
925
a790ad35
SC
9262002-08-26 Stephane Carrez <stcarrez@nerim.fr>
927
928 Fix PR gdb/393:
929 * inflow.c (terminal_save_ours): New function to save terminal
930 settings.
931 * inferior.h (terminal_save_ours): Declare.
932 * target.c (debug_to_terminal_save_ours): New function.
933 (cleanup_target): Defaults to_terminal_save_ours.
934 (update_current_target): Inherit to_terminal_save_ours.
935 (setup_target_debug): Set to_terminal_save_ours.
936 * target.h (target_terminal_save_ours): New to save terminal settings.
937 (target_ops): New member to_terminal_save_ours.
938 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
939 * hpux-thread.c (init_hpux_thread_ops): Likewise.
940 * inftarg.c (init_child_ops): Likewise.
941 * m3-nat.c (init_m3_ops): Likewise.
942 * procfs.c (init_procfs_ops): Likewise.
943 * wince.c (init_child_ops): Likewise.
944 * win32-nat.c (init_child_ops): Likewise.
945 * sol-thread.c (init_sol_thread_ops): Likewise.
946
c00dcbe9
MK
9472002-08-26 Mark Kettenis <kettenis@gnu.org>
948
3d7f4f49
MK
949 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
950 use regcache_* functions.
951 (i386_gdbarch_init): Set store_return_value instead of
952 deprecated_store_return_value.
953
c00dcbe9
MK
954 * regcache.c (regcache_raw_write_signed,
955 regcache_raw_write_unsigned): New functions.
956 * regcache.h (regcache_raw_write_signed,
957 regcache_raw_write_unsigned): New prototypes.
958
0e0d15ca
AC
9592002-08-25 Andrew Cagney <ac131313@redhat.com>
960
961 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
962 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
963 source file dependencies. Cleanup corresponding generator rules.
964
d3b22ed5
AC
9652002-08-25 Andrew Cagney <ac131313@redhat.com>
966
967 * regcache.h (register_offset_hack): Declare.
968 (regcache_cooked_read_using_offset_hack): Declare.
969 (regcache_cooked_write_using_offset_hack): Declare.
970
971 * regcache.c (register_offset_hack): New function.
972 (regcache_cooked_read_using_offset_hack): New function.
973 (regcache_cooked_write_using_offset_hack): New function.
974 (regcache_dump): Check that the registers, according to their
975 offset, are packed hard against each other.
976 (cooked_xfer_using_offset_hack): New function.
977
bb425013
AC
9782002-08-25 Andrew Cagney <ac131313@redhat.com>
979
980 * regcache.c (struct regcache_descr): Add field register_type.
981 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
982 in as a parameter
983 (init_regcache_descr): Initialize register_type. Pass the descr
984 to init_legacy_regcache_descr. Use register_type instead of
985 REGISTER_VIRTUAL_TYPE.
986 (register_type): New function.
987 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
988 * regcache.h (register_type): Declare.
989
d0403e00
AC
9902002-08-25 Andrew Cagney <ac131313@redhat.com>
991
992 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
993 instead of deprecated_store_return_value. Fix fallout from
994 2002-08-23 Andrew Cagney <cagney@redhat.com>.
995
0ed04cce
AC
9962002-08-25 Andrew Cagney <ac131313@redhat.com>
997
998 * regcache.c (max_register_size): New function.
999 (init_legacy_regcache_descr): Ensure that max_register_size is
1000 large enough for REGISTER_VIRTUAL_SIZE.
1001 * regcache.h (max_register_size): Declare.
1002
46d79c04
AC
10032002-08-24 Andrew Cagney <ac131313@redhat.com>
1004
1005 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1006 store_return_value.
1007 (e500_extract_return_value): Change type of valbuf pointer to
1008 void.
1009
853c7bd0
MK
10102002-08-24 Mark Kettenis <kettenis@gnu.org>
1011
cd87e769
MK
1012 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1013 workaround.
1014
853c7bd0
MK
1015 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1016 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1017 long long) to prevent compiler warning on 64-bit systems.
1018
ebba8386
AC
10192002-08-23 Andrew Cagney <cagney@redhat.com>
1020
1021 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1022 (DEPRECATED_STORE_RETURN_VALUE): New method.
1023 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1024 * gdbarch.h, gdbarch.c: Re-generate.
1025
1026 * values.c (set_return_value): Pass current_regcache to
1027 STORE_RETURN_VALUE.
1028 * arch-utils.h (legacy_store_return_value): Declare.
1029 * arch-utils.c (legacy_store_return_value): New function.
1030 (legacy_extract_return_value): Update parameters.
1031
1032 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1033 STORE_RETURN_VALUE.
1034 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1035 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1036 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1037 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1038 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1039 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1040 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1041 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1042 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1043 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1044
1045 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1046 * i386-tdep.c (i386_extract_return_value): Update.
1047 * arch-utils.c (legacy_extract_return_value): Update.
1048 * frv-tdep.c (frv_gdbarch_init): Update.
1049 * cris-tdep.c (cris_gdbarch_init): Update.
1050 * d10v-tdep.c (d10v_gdbarch_init): Update.
1051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1052 * m68k-tdep.c (m68k_gdbarch_init): Update.
1053 * mcore-tdep.c (mcore_gdbarch_init): Update.
1054 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1055 * s390-tdep.c (s390_gdbarch_init): Update.
1056 * sparc-tdep.c (sparc_gdbarch_init): Update.
1057 * sh-tdep.c (sh_gdbarch_init): Update.
1058 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1059 * v850-tdep.c (v850_gdbarch_init): Update.
1060 * avr-tdep.c (avr_gdbarch_init): Update.
1061 * ia64-tdep.c (ia64_gdbarch_init): Update.
1062 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1063 * vax-tdep.c (vax_gdbarch_init): Update.
1064 * alpha-tdep.c (alpha_gdbarch_init): Update.
1065 * arm-tdep.c (arm_gdbarch_init): Update.
1066 * mips-tdep.c (mips_gdbarch_init): Update.
1067 * i386-tdep.c (i386_gdbarch_init): Update.
1068
5bd8c6d0
AC
10692002-08-23 Andrew Cagney <ac131313@redhat.com>
1070
1071 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1072 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1073
e73e1724
MK
10742002-08-24 Mark Kettenis <kettenis@gnu.org>
1075
1076 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1077 problems.
1078
3e6564e1
JB
10792002-08-23 Joel Brobecker <brobecker@gnat.com>
1080
1081 * infrun.c (handle_inferior_event): Move a comment outside of a
1082 function call, in order to avoid indent reformatting this part
1083 of the code in an unreadable way.
1084
81d0cc19
GS
10852002-08-23 Grace Sainsbury <graces@redhat.com>
1086
1087 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1088 when breakpoints fail. Move general breakpoint error messages to
1089 insert_breakpoints.
1090 * breakpoint.c (insert_breakpoints): Change warnings when
1091 breakpoints are nto inserted to specify the type. Remove call to
1092 memory_error when hardware breakpoints can't be inserted. Remove
1093 multiple calls to warning so all messages are sent to the user at
1094 once.
1095 (delete_breakpoints): Make insert error messsages more explicit.
1096
17574093
DJ
10972002-08-23 Daniel Jacobowitz <drow@mvista.com>
1098
1099 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1100 gdbserver/ChangeLog.
1101
8acc2935
MK
11022002-08-23 Mark Kettenis <kettenis@gnu.org>
1103
dfe01d39
MK
1104 * i386-tdep.c: Include "objfiles.h".
1105 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1106 skip_trampoline_code.
1107 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1108 (CPLUS_MARKER): Define to '.'.
1109
8acc2935
MK
1110 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1111 member.
1112 (linux_corefile_thread_callback): Increase args->num_notes.
1113 (linux_make_note_section): Initialize thread_args.num_notes, and
1114 use it to determine whether notes for any threads were created.
1115
151fefe2 11162002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1117
1118 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1119 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1120 and PCUNKILL.
1121 (write_with_trace): Conditionalize out the switch branch handling
1122 PCSHOLD if the corresponding macro is not defined. Likewise for
1123 PRSABORT and PRSTOP.
1124 This change will be needed by the Interix port.
1125
e1507482
EZ
11262002-08-22 Elena Zannoni <ezannoni@redhat.com>
1127
1128 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1129 write_register wherever possible instead of manipulating the
1130 register bytes directly.
1131 Assign VALUE_CONTENTS to a variable and use that.
1132 The GPR numbers are now dependent on the architecture.
1133
96ff0de4
EZ
11342002-08-22 Elena Zannoni <ezannoni@redhat.com>
1135
1136 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1137 ev_offset fields.
1138 (skip_prologue): Add support for BookE/e500 instructions.
1139 (e500_extract_return_value): New function.
1140 (frame_get_saved_regs): Add support for saving ev registers and
1141 pseudo gpr's.
1142 (e500_store_return_value): New function.
1143 (rs6000_gdbarch_init): Move up default intializations of
1144 deprecated_extract_return_value and store_return_value. Overwrite
1145 init of store_return_value with e500 specific version.
1146 Set extract_return_value for e500.
1147
fbefca5b
EZ
11482002-08-22 Elena Zannoni <ezannoni@redhat.com>
1149
1150 * blockframe.c (generic_call_dummy_register_unwind): Use
1151 regcache_cooked_read to catch cases in which the variable is
1152 stored in a pseudo register.
1153
4d210288
AC
11542002-08-22 Andrew Cagney <cagney@redhat.com>
1155
1156 * NEWS: Mention that the i960 has been made obsolete.
1157 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1158 i960-tdep.c
1159 (remote-nrom.o): Obsolete target.
1160 (remote-nindy.o, i960-tdep.o): Ditto.
1161 * remote-nrom.c: Make file obsolete.
1162 * remote-nindy.c, remote-vx960.c: Ditto.
1163 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1164 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1165 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1166 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1167 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1168 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1169 i960-*-vxworks* obsolete.
1170 * MAINTAINERS: Note that the i960 is obsolete.
1171
6c0c456d
CV
11722002-08-21 Corinna Vinschen <vinschen@redhat.com
1173
1174 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1175 detach to allow reinitialization.
1176
9f9d12b3
AC
11772002-08-22 Andrew Cagney <ac131313@redhat.com>
1178
1179 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1180 attempt).
1181
ebeb39fe
JB
11822002-08-22 Jim Blandy <jimb@redhat.com>
1183
1184 * coffread.c (coff_symfile_read): Don't try to read the line
1185 number table from disk if the image file doesn't have a symbol
1186 table; we'll never actually look at the info anyway, and Windows
1187 ships DLL's with bogus file offsets for the line number data.
1188
5bf1c677
EZ
11892002-08-21 Elena Zannoni <ezannoni@redhat.com>
1190
1191 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1192 an e500 executable.
1193
71b8ef93
MS
11942002-08-21 Michael Snyder <msnyder@redhat.com>
1195
1196 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1197 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1198 (DEFAULT_MIPS_TYPE): Delete unused macro.
1199 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1200 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1201
d174216d
JB
12022002-08-21 Jim Blandy <jimb@redhat.com>
1203
1204 * valops.c (value_cast): Simplify and correct logic for doing a
1205 static cast from a pointer to a base class to a pointer to a
1206 derived class.
1207
0ab7a791
AC
12082002-08-21 Andrew Cagney <ac131313@redhat.com>
1209
1210 * infcmd.c (default_print_registers_info): Replace
1211 do_registers_info.
1212 (registers_info): Use gdbarch_print_registers_info instead of
1213 DO_REGISTERS_INFO.
1214 * inferior.h (default_print_registers_info): Replace
1215 do_registers_info.
1216 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1217 (DO_REGISTERS_INFO): Change to a predicate function.
1218 * gdbarch.h, gdbarch.c: Regenerate.
1219
e23792cc
KS
12202002-08-21 Keith Seitz <keiths@redhat.com>
1221
1222 * gdb-events.sh: Add target-changed event.
1223 * gdb-events.c: Regenerated.
1224 * gdb-events.c: Regenerated.
1225 * valops.c (value_assign): Add target-changed event notification
1226 to inlval_register, lval_memory, and lval_reg_frame_relative.
1227
9fb14e79
JB
12282002-08-21 Joel Brobecker <brobecker@gnat.com>
1229
1230 * NEWS: Add an entry regarding the improvement of the next/step
1231 operation on Alpha Tru64 multi-processor machines.
1232
6d39a69f
AC
12332002-08-21 Andrew Cagney <ac131313@redhat.com>
1234
72acd513
AC
1235 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1236 directores.
342af04b 1237 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1238 * Makefile.in (install-gdbtk): Move to install section.
1239 (rdi-share/libangsd.a): Move to end of file.
1240
fa5f27c7
AC
12412002-08-19 Andrew Cagney <ac131313@redhat.com>
1242
1243 * frame.c (frame_register_unwind): When a register, set addrp to
1244 the register's byte.
1245
5a89d8aa
MS
12462002-08-20 Michael Snyder <msnyder@redhat.com>
1247
1248 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1249 used locally, so move them from the target machine header to here.
1250 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1251 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1252 Make static.
1253 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1254
822e978b
AC
12552002-08-20 Andrew Cagney <cagney@redhat.com>
1256
1257 * NEWS: Mention that the Apollo line was made obsolete.
1258 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1259 m68*-hp-hpux* obsolete.
1260 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1261 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1262 * buildsym.c (make_blockvector): Make static.
1263 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1264 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1265 (ALLDEPFILES): Remove dstread.c.
1266 (dstread.o): Obsolete make rule.
1267 * dstread.c: Makefile obsolete.
1268 * dst.h: Ditto.
1269 * config/m68k/hp300hpux.mt: Ditto.
1270 * config/m68k/hp300hpux.mh: Ditto.
1271 * config/m68k/hp300bsd.mt: Ditto.
1272 * config/m68k/hp300bsd.mh: Ditto.
1273 * config/m68k/apollo68b.mt: Ditto.
1274 * config/m68k/apollo68v.mh: Ditto.
1275 * config/m68k/apollo68b.mh: Ditto.
1276
e41b17f0
MS
12772002-08-20 Michael Snyder <msnyder@redhat.com>
1278
1279 * mips-tdep.c (mips_in_return_stub): Make static.
1280 (mips_gdbarch_init): Set in_solib_return_trampoline.
1281 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1282
d50355b6
MS
12832002-08-20 Michael Snyder <msnyder@redhat.com>
1284
1285 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1286 * gdbarch.c, gdbarch.h: Regenerate.
1287 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1288 Add.
1289 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1290
757a7cc6
MS
12912002-08-20 Michael Snyder <msnyder@redhat.com>
1292
1293 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1294 (mips_gdbarch_init): Set skip_trampoline_code,
1295 in_solib_call_trampoline.
1296 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1297 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1298
c8001721
EZ
12992002-08-20 Elena Zannoni <ezannoni@redhat.com>
1300
1301 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1302
1303 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1304 vector type for ev registers.
1305 (e500_pseudo_register_read): New function.
1306 (e500_pseudo_register_write): New function.
1307 (e500_dwarf2_reg_to_regnum): New function.
1308 (PPC_UISA_NOFP_SPRS): New macro.
1309 (PPC_EV_REGS): New macro.
1310 (PPC_GPRS_PSEUDO_REGS): New macro.
1311 (registers_e500): New register set for e500.
1312 (variants): Add e500 variant.
1313 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1314 before setting architectural dependent variations. Initialize ev
1315 registers numbers. Add case for e500 architecture. Set the
1316 number of pseudo registers.
1317
64366f1c
EZ
13182002-08-20 Elena Zannoni <ezannoni@redhat.com>
1319
1320 * rs6000-tdep.c: Clean up comments.
1321
7e78f0ca
AC
13222002-08-20 Andrew Cagney <cagney@redhat.com>
1323
1324 * h8300-tdep.c: Re-indent file.
1325
697f7479
JB
13262002-08-20 Jim Blandy <jimb@redhat.com>
1327
1328 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1329 default for this.
697f7479 1330
e86ae29f
KS
13312002-08-20 Keith Seitz <keiths@redhat.com>
1332
1333 * breakpoints.c (watch_command_1): Use internal breakpoint
1334 when setting a watchpoint_scope breakpoint.
1335
216b504f
EZ
13362002-08-20 Elena Zannoni <ezannoni@redhat.com>
1337
1338 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1339 (build_builtin_type_vec64i): Ditto.
1340 (build_builtin_type_vec128): Ditto.
1341 (build_builtin_type_vec128i): Ditto.
1342
f7ab6ec6
MS
13432002-08-19 Michael Snyder <msnyder@redhat.com>
1344
1345 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1346 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1347 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1348 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1349 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1350 CALL_DUMMY_ADDRESS): Delete.
1351 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1352 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1353 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1354 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1355 push_return_address.
1356 (mips_register_raw_size, mips_eabi_use_struct_convention,
1357 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1358 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1359 mips_init_extra_frame_info, mips_eabi_push_arguments,
1360 mips_n32n64_push_arguments, mips_push_return_address,
1361 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1362 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1363
b5d1566e
MS
13642002-08-19 Michael Snyder <msnyder@redhat.com>
1365
1366 * mips-tdep.c (mips_frame_num_args): New function.
1367 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1368 frame_saved_pc, frame_args_address, frame_locals_address,
1369 frame_num_args, and frame_args_skip.
1370 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1371 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1372 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1373 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1374
2f1488ce
MS
13752002-08-20 Michael Snyder <msnyder@redhat.com>
1376
1377 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1378 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1379 * mips-tdep.c (mips_store_struct_return): New function.
1380 (mips_extract_struct_value_address): New function.
1381 (mips_gdbarch_init): Set store_struct_return and
1382 extract_struct_value_address.
1383
41ff2da1
DC
13842002-08-20 David Carlton <carlton@math.stanford.edu>
1385
1386 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1387 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1388 (read_file_scope): Check that line_header is nonzero before
1389 decoding macro information.
1390
e5451d58
MK
13912002-08-20 Mark Kettenis <kettenis@gnu.org>
1392
1393 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1394 flag the general-purpose registers as floating-point on targets
1395 that don't support the floating-point registers.
1396
4a6daafa
EZ
13972002-08-20 Elena Zannoni <ezannoni@redhat.com>
1398
1399 * rs6000-tdep.c (altivec_register_p): Delete.
1400 (rs6000_do_altivec_registers): Delete.
1401 (rs6000_altivec_registers_info): Delete.
1402 (rs6000_do_registers_info): Delete.
1403 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1404 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1405
ab4327e0
EZ
14062002-08-20 Elena Zannoni <ezannoni@redhat.com>
1407
1408 * infcmd.c (do_registers_info): Print vector registers in hex
1409 format only.
1410 (print_vector_info): Check that printing registers
1411 makes sense.
1412 (print_float_info): Ditto.
1413
cb1d2653
AC
14142002-08-20 Andrew Cagney <ac131313@redhat.com>
1415
1416 * mips-tdep.c (mips_gdbarch_init): Update.
1417 (mips_o32_extract_return_value): Rewrite.
1418 (mips_o32_store_return_value): Rewrite.
1419 (mips_o32_xfer_return_value): New function.
1420 (mips_xfer_register): Tweak debug print message. Allow for
1421 buf_offset when dumping the value transfered.
1422
dfc3d9b2
AC
14232002-08-20 Andrew Cagney <ac131313@redhat.com>
1424
1425 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1426 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1427 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1428 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1429 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1430
7807aa61
MS
14312002-08-14 Michael Snyder <msnyder@redhat.com>
1432
1433 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1434
489461e2
EZ
14352002-08-19 Elena Zannoni <ezannoni@redhat.com>
1436
1437 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1438 register.
1439 (P): New macro to define a register as a pseudo register.
1440 (R, R4, R8, R16, FR32, R64, R0): Updated.
1441 (struct variant): Add new fields for number of pseudo registers
1442 and number of total registers.
1443 (tot_num_registers): New macro replacing....
1444 (num_registers): ...deleted macro.
1445 (num_registers): New function.
1446 (num_pseudo_registers): New function.
1447 (variants): Update all variants to intialize new fields correctly.
1448 Postpone initialization of number of pseudo regs and real regs.
1449 (init_variants): New function.
1450 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1451 registers offsets.
1452
fcaffe4c
DC
14532002-08-19 David Carlton <carlton@math.stanford.edu>
1454
2c2738a0
DC
1455 * valops.c (search_struct_field): Change error message to treat
1456 return value of 0 from value_static_field as meaning that field is
1457 optimized out.
1458 (value_struct_elt_for_reference): Ditto.
1459 * values.c (value_static_field): Treat an unresolved location the
1460 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1461 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1462 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1463 * MAINTAINERS: Add self to Write After Approval list.
1464
88658117
AC
14652002-08-19 Andrew Cagney <ac131313@redhat.com>
1466
1467 * mips-tdep.c (mips_xfer_register): New function.
1468 (mips_n32n64_extract_return_value): Rewrite.
1469 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1470 instead of deprecated_extract_return_value.
1471
21283beb
EZ
14722002-08-19 Elena Zannoni <ezannoni@redhat.com>
1473
1474 * rs6000-tdep.c (TDEP): Delete macro.
1475 (branch_dest): Replace use of TDEP macro with its body.
1476 (rs6000_pop_frame): Ditto.
1477 (rs6000_push_arguments): Ditto.
1478 (rs6000_skip_trampoline_code): Ditto.
1479 (rs6000_frame_saved_pc): Ditto.
1480 (rs6000_frame_chain): Ditto.
1481 (rs6000_register_name): Ditto.
1482 (rs6000_register_byte): Ditto.
1483 (rs6000_register_raw_size): Ditto.
1484 (rs6000_register_virtual_type): Ditto.
1485 (rs6000_register_convertible): Ditto.
1486 (rs6000_convert_from_func_ptr_addr): Ditto.
1487
bf072999
DJ
14882002-08-19 Daniel Jacobowitz <drow@mvista.com>
1489
1490 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1491 conditionally.
1492 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1493 MIPS_LINUX_JB_ELEMENT_SIZE.
1494 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1495 for MAX_REGISTER_RAW_SIZE arrays.
1496 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1497 MIPS_LINUX_JB_ELEMENT_SIZE.
1498
9b949a49
PM
14992002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1500
1501 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1502
6d3e79c6
AS
15032002-08-19 Aidan Skinner <aidan@velvet.net>
1504
1505 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1506 ada-valprint.c ada-tasks.c.
1507 (YYFILES): Add ada-exp.y.
1508 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1509 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1510 (ada-exp.tab.o): New target.
1511
06c0b04e
AC
15122002-08-18 Andrew Cagney <ac131313@redhat.com>
1513
1514 * regcache.c (regcache_xfer_part): New function.
1515 (regcache_raw_read_part): New function.
1516 (regcache_raw_write_part): New function.
1517 (regcache_cooked_read_part): New function.
1518 (regcache_cooked_write_part): New function.
1519 * regcache.h (regcache_raw_read_part): Declare.
1520 (regcache_raw_write_part): Declare.
1521 (regcache_cooked_read_part): Declare.
1522 (regcache_cooked_write_part): Declare.
1523
92d1e331
DJ
15242002-08-18 Daniel Jacobowitz <drow@mvista.com>
1525
1526 * remote.c (remote_open_1): Add async_p.
1527 (remote_async_open_1): Delete.
1528 (open_remote_target): Delete.
1529 (remote_open, extended_remote_open): Update calls to remote_open_1.
1530 (remote_async_open, extended_remote_async_open): Call
1531 remote_open_1 instead of remote_async_open_1.
1532
247055de
MK
15332002-08-19 Mark Kettenis <kettenis@gnu.org>
1534
1535 * blockframe.c: Fix a few coding standard violations.
1536
641eda39
MK
15372002-08-19 Mark Kettenis <kettenis@gnu.org>
1538
0b717710
MK
1539 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1540 here from ...
1541 * config/i386/tm-i386sco5.h: ... here. File removed.
1542 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1543
26d28e12 1544 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1545 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1546 (TM_FILE): Set to tm-i386.h.
1547 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1548 * config/i386/tm-i386v.h: Remove file.
1549 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1550 instead of "i386/tm-i386v.h".
1551 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1552 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1553 "i386/tm-i386v.h".
1554 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1555 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1556 "i386/tm-i386.h".
1557
d4e0bab4
MK
15582002-08-18 Mark Kettenis <kettenis@gnu.org>
1559
1560 * config/i386/nm-i386v.h: Add protection against
1561 multiple-inclusion.
1562 (i386_register_u_addr): Remove prototype.
1563 (register_u_addr): New prototype.
1564 (REGISTER_U_ADDR): Redefine accordingly.
1565 * i386v-nat.c: Improve several comments.
1566 (i386_register_u_addr): Change signature and rename to
1567 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1568 ubase variable.
1569
46cac009
AC
15702002-08-18 Andrew Cagney <ac131313@redhat.com>
1571
1572 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1573 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1574 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1575 deprecated_extract_return_value.
1576 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1577 rename mips_o32o64_push_arguments.
1578 (mips_gdbarch_init): Update.
1579 (mips_extract_return_value): Delete.
1580 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1581 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1582 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1583 (mips_n32n64_extract_return_value): Clone
1584 mips_extract_return_value.
1585 (mips_store_return_value): Delete.
1586 (mips_o32_store_return_value): Clone mips_store_return_value.
1587 (mips_o64_store_return_value): Clone mips_store_return_value.
1588 (mips_eabi_store_return_value): Clone mips_store_return_value.
1589 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1590
d2e4a39e
AS
15912002-08-18 Aidan Skinner <aidan@velvet.net>
1592
0c30c098
AS
1593 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1594 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1595
15962002-08-18 Aidan Skinner <aidan@velvet.net>
1597
1598 * ada-lang.c: Run through gdb_indent.sh.
1599 * ada-lang.h: Run through gdb_indent.sh.
1600 * ada-tasks.c: Run through gdb_indent.sh.
1601 * ada-typeprint.c: Run through gdb_indent.sh.
1602 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1603
01fc4e33
AC
16042002-08-18 Andrew Cagney <ac131313@redhat.com>
1605
1606 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1607 ABI.
1608
d8ee244c
MK
16092002-08-18 Mark Kettenis <kettenis@gnu.org>
1610
c38d8261
MK
1611 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1612
222db64c
MK
1613 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1614 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1615
c2848c82
MK
1616 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1617 write_register_gen instead of write_register_bytes.
1618
d8ee244c
MK
1619 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1620 i[3456]-*-osf1mk* configurations have been made obsolete.
1621 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1622 i[3456]86-*-osf1mk* hosts obsolete.
1623 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1624 targets obsolete.
1625 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1626 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1627 config/i386/i386m3.mt, config/i386/nm-m3.h,
1628 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1629 config/i386/i386mk.mh, config/i386/i386mk.mt,
1630 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1631 obsolete.
1632 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1633 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1634 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1635
61d8d407
AC
16362002-08-18 Andrew Cagney <ac131313@redhat.com>
1637
1638 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1639 (hppa_value_returned_from_stack): Declare.
1640 (hppa_extract_return_value): Declare.
1641 * config/pa/hppa.mt: New file.
1642 * configure.tgt: Recognize hppa*-*-*.
1643 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1644
0c52bd59
MK
16452002-08-18 Mark Kettenis <kettenis@gnu.org>
1646
1647 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1648 comment.
1649
b5686e99
MK
16502002-08-17 Mark Kettenis <kettenis@gnu.org>
1651
1652 * top.c (gdb_rl_operate_and_get_next): Make sure
1653 operate-and-get-next functions correctly even when the history
1654 list is completely filled.
1655
c1bab85b
AC
16562002-08-18 Andrew Cagney <ac131313@redhat.com>
1657
1658 * MAINTAINERS (Target Instruction Set Architectures): Rename
1659 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1660 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1661 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1662 already listed under Host/Native.
1663
1664 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1665 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1666 mips*-*-*.
1667
32089c7c
AC
16682002-08-17 Andrew Cagney <ac131313@redhat.com>
1669
1670 * config/ia64/ia64.mt: New file.
1671 * config/alpha/alpha.mt: New file.
1672 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1673 ia64-linux-gnu. Mention that ia64-elf is broken.
1674 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1675
b4671f85
MK
16762002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1677
1678 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1679 generic_func_frame_valid instead of func_frame_valid.
1680
c8edd8b4
JB
16812002-08-16 Joel Brobecker <brobecker@gnat.com>
1682
1683 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1684 procfs appears to be broken when debugging on multi-processor
1685 machines. So enable software single stepping in order to avoid
1686 using the procfs interface to do next/step operations, using
1687 internal breakpoints instead.
1688
1689 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1690 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1691 make this pc address equal to the value it would have if the
1692 system stepping capability was used. Also set a new flag used
1693 to ensure that we don't readjust the PC one more time later.
1694
1695 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1696 address by DECR_PC_AFTER_BREAK when software single step is
1697 in use for this architecture, as this has already been taken
1698 care of in handle_inferior_event().
1699
238617f6
JB
17002002-08-16 Joel Brobecker <brobecker@gnat.com>
1701
1702 * infrun.c (handle_inferior_event): Minor reformatting, to make
1703 a rather long condition expression easier to read.
1704
541a7aac
AC
17052002-08-16 Andrew Cagney <ac131313@redhat.com>
1706
1707 * Makefile.in (gdbtk.o): Move to end of file.
1708 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1709 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1710 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1711 (gdbtk-wrapper.o, gdbres.o): Ditto.
1712
f92d4a7b
AC
17132002-08-16 Andrew Cagney <ac131313@redhat.com>
1714
1715 * Makefile.in (copying.o): Separate out compile rule.
1716 (hpux-thread.o, procfs.o, signals.o): Ditto.
1717 (v850ice.o, z8k-tdep.o): Ditto.
1718 (tui-file.o): Move to TUI section.
1719 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1720 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1721
1cce71eb
JB
17222002-08-16 Joel Brobecker <brobecker@gnat.com>
1723
1724 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1725 skip_trampoline_code, for better namespace-proofing.
1726
1727 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1728
0851f23d
JB
17292002-08-16 Joel Brobecker <brobecker@gnat.com>
1730
1731 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1732
f8d40ec8
JB
17332002-08-16 Joel Brobecker <brobecker@gnat.com>
1734
1735 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1736 signal, check whether we hit a breakpoint before checking for a
1737 single step breakpoint. Otherwise, GDB fails to notice that a
1738 breakpoint has been hit when stepping onto a breakpoint.
1739
63d022e0
KS
17402002-08-16 Keith Seitz <keiths@redhat.com>
1741
1742 * gdb-events.sh (clear_gdb_event_hooks): New function.
1743 * gdb-events.c: Regenerate.
1744 * gdb-events.h: Regenerate.
1745
6e31adb3
AC
17462002-08-16 Andrew Cagney <ac131313@redhat.com>
1747
1748 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1749 not_a_sw_breakpoint.
1750 * breakpoint.h (bpstat_stop_status): Add parameter names.
1751
c8189ed1
GS
17522002-08-16 Grace Sainsbury <graces@redhat.com>
1753
1754 * remote.c (remote_insert_hw_breakpoint)
1755 (remote_remove_hw_breakpoint): Fix calculation of length field
1756 for Z-packet.
1757
d05285fa
MS
17582002-08-15 Michael Snyder <msnyder@redhat.com>
1759
466d7106
MS
1760 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1761 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1762 (supply_fpregset): Ditto.
1763
d05285fa
MS
1764 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1765 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1766 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1767 (TARGET_READ_SP): Delete.
bf1f5b4c 1768 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1769 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1770 Delete.
1771 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1772 from macros to functions.
bf1f5b4c 1773
d05285fa
MS
1774 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1775 (mips_register_convertible, mips_register_convert_to_virtual,
1776 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1777 (mips_read_sp): New function.
1778 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1779 (mips_do_registers_info): Make static.
1780 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1781 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1782 (mips_register_convert_from_type, mips_register_convert_to_type):
1783 New functions.
1784 (mips_gdbarch_init): Set up function_start_offset,
1785 register_virtual_size, pc_in_sigtramp.
d05285fa 1786
e76f1f2e
AC
17872002-08-15 Andrew Cagney <ac131313@redhat.com>
1788
1789 * infcmd.c (vector_info): New function.
1790 (_initialize_infcmd): Add command "info vector".
1791 (print_vector_info): New function.
1792
1793 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1794 * gdbarch.h, gdbarch.c: Regenerate.
1795
4782dc19
AC
17962002-08-15 Andrew Cagney <ac131313@redhat.com>
1797
1798 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1799 ``print_all''. Only print vector registers when ``print_all''.
1800
23e3a7ac
AC
18012002-08-15 Andrew Cagney <ac131313@redhat.com>
1802
8e186fd6
AC
1803 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1804 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1805
23e3a7ac
AC
1806 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1807 Add `args' parameter.
1808 * gdbarch.h, gdbarch.c: Regenerate.
1809
1810 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1811
1812 * infcmd.c (float_info): Call print_float_info.
1813 (print_float_info): New function. By default, print the
1814 floating-point registers.
1815
1816 * arch-utils.h (default_print_float_info): Delete declaration.
1817 * arch-utils.c (default_print_float_info): Delete function.
1818
e0ca2bb9
MK
18192002-08-16 Mark Kettenis <kettenis@gnu.org>
1820
3f733acc
MK
1821 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1822 out define.
1823
7d8d2918
MK
1824 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1825 FRAME.
1826
1c7cc583
MK
1827 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1828 * configure.host: Make i[3456]86-*-aix host obsolete.
1829 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1830 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1831 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1832 config/i386/xm-i386aix.h: Make files obsolete.
1833 * i386aix-nat.c: Make file obsolete.
1834 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1835 (i386aix-nat.o): Make target obsolete.
1836
e0ca2bb9
MK
1837 * config/i386/nm-gnu.h: Removed.
1838 * config/i386/nm-i386gnu.h: New file.
1839 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1840 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1841 Moved here from ...
1842 * config/i386/tm-i386gnu.h: ... here. Removed.
1843 * config/i386/xm-i386gnu.h: Removed.
1844 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1845 (NAT_FILE): Set to nm-i386gnu.h.
1846 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1847 * i386-tdep.c: New file.
1848 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1849 (i386gnu-tdep.o): Specify dependencies.
1850
16057ec7 18512002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1852
6b99ee2e
MK
1853 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1854 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1855 Adjust a few comments to reflect reality a bit closer.
1856 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1857 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1858 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1859 target_insert_watchpoint, target_remove_watchpoint):
1860 Move defines to ...
1861 * config/i386/nm-i386sco5.h: ... here.
1862 (kernel_u_size): Add prototype. Improve a few comments and add
1863 protection against multiple inclusion.
1864
d9a6f65c
MK
1865 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1866 out define.
1867
047eff6a
MK
1868 * uw-thread.c (SP_ARG0): Define if not already defined.
1869 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1870
dcdb1290
MK
1871 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1872
5d2d0b2a
MK
1873 * config/i386/tm-i386.h: Don't include "regcache.h".
1874
61113f8b
MK
1875 * i387-tdep.h (i387_print_float_info): New prototype.
1876 * i387-tdep.c (print_i387_value, print_i387_ext,
1877 print_i387_status_word, print_i387_control_word): Add `struct
1878 ui_file *' argument and use it for output.
1879 (i387_print_float_info): Renamed from i387_float_info. Add
1880 `struct gdbarch *' and `struct ui_file *' arguments and use the
1881 latter for output.
1882 * i386-tdep.c: Include "i387-tdep.h".
1883 (i386_gdbarch_init): Set print_float_info.
1884 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1885 (FLOAT_INFO): Remove define.
1886
46e0f506
MS
18872002-08-13 Michael Snyder <msnyder@redhat.com>
1888
1889 * mips-tdep.c (mips_push_arguments): Rename to
1890 mips_eabi_push_arguments, and tune for EABI.
1891 (MIPS_REGS_HAVE_HOME_P): Delete.
1892 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1893 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1894 Delete references to mips_regs_have_home_p.
1895
409268de
KS
18962002-08-14 Keith Seitz <keiths@redhat.com>
1897
1898 * Makefile.in (install-gdbtk): Create insight plugin directory.
1899 Install plugins.tcl file.
1900
ffc6a242
KS
19012002-08-14 Keith Seitz <keiths@redhat.com>
1902
1903 * configure.in: Move SUBDIRS to near top of the file so that
1904 --enable options may add things to it.
1905 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1906 * configure: Regenerate.
1907
ebafbe83
MS
19082002-08-13 Michael Snyder <msnyder@redhat.com>
1909
1910 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1911 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1912 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1913
32f6f25d
AC
19142002-08-13 Andrew Cagney <ac131313@redhat.com>
1915
1916 * vax-tdep.c (vax_get_saved_register): Delete function.
1917 (vax_gdbarch_init): Update.
1918 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1919 (ns32k_gdbarch_init): Update.
1920 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1921 (alpha_gdbarch_init): Update.
1922
53826de9
AC
19232002-08-13 Andrew Cagney <cagney@redhat.com>
1924
1925 * regcache.c (init_regcache_descr): Overallocate the
1926 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1927 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1928 nr_raw_registers.
1929 (set_register_cached): Add range checking assertions. Use
1930 current_regcache.
1931
16057ec7 19322002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1933
1934 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1935 numbers for MMX registers.
1936
7b4c2dce
AC
19372002-08-13 Andrew Cagney <cagney@redhat.com>
1938
1939 * i386-tdep.c (i386_gdbarch_init): Use
1940 generic_unwind_get_saved_register.
1941
1e03ad20
KB
19422002-08-13 Kevin Buettner <kevinb@redhat.com>
1943
1944 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1945 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1946 target vector.
1947 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1948 Delete. Add comment regarding this now-deleted target method.
1949
548bcbec
SC
19502002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1951
1952 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1953 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1954 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1955 real PC and the page number (if it's within the memory bank window).
1956 (m68hc11_pseudo_register_write): Likewise when saving.
1957 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1958 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1959 (m68hc11_register_raw_size): And use 32-bit for it.
1960 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1961 16K memory bank is used by the prog; also use the virtual pc.
1962
7df11f59
SC
19632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1964
1965 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1966 (m68hc11_gdbarch_init): Install it in gdbarch.
1967 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1968 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1969 (MSYMBOL_SIZE): New for documentation.
1970 (insn_return_kind): Enum to specify how a function returns.
1971 (frame_extra_info): Cleanup and record the return mode.
1972 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1973 register in address computation.
1974 (m68hc11_get_return_insn): New to obtain the return instruction used
1975 by the function.
1976 (m68hc11_frame_init_saved_regs): Take into account the return
1977 instruction used by the function for far and interrupt functions.
1978 (m68hc11_init_extra_frame_info): Take into account page register.
1979 (m68hc11_frame_args_address): Adjust according to the return mode.
1980 (show_regs): Print page register only when it's used.
1981
5706502a
SC
19822002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1983
1984 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1985 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1986 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1987 registers.
1988 (m68hc11_register_raw_size): Likewise.
1989
28fc6740
AC
19902002-08-13 Andrew Cagney <cagney@redhat.com>
1991
1992 * i386-tdep.c (i386_register_name): Handle mmx registers.
1993 (mmx_regnum_p): New function.
1994 (i386_mmx_names): New array.
1995 (mmx_num_regs): New variable.
1996 (i386_pseudo_register_read): New function.
1997 (i386_pseudo_register_write): New function.
1998 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1999
2000 * regcache.c (regcache_raw_read_unsigned): New function.
2001 (regcache_raw_read_signed): New function.
2002 * regcache.h (regcache_raw_read_unsigned): Declare.
2003 (regcache_raw_read_signed): Declare.
2004
a378f419
AC
20052002-08-13 Andrew Cagney <cagney@redhat.com>
2006
2007 * regcache.c (regcache_raw_read_as_address): Delete function.
2008 (regcache_cooked_read_signed): New function.
2009 (regcache_cooked_read_unsigned): New function.
2010 * regcache.h (regcache_cooked_read_signed): Declare.
2011 (regcache_cooked_read_unsigned): Declare.
2012 (regcache_raw_read_as_address): Delete declaration.
2013
2014 * blockframe.c (generic_read_register_dummy): Use
2015 regcache_cooked_read_unsigned.
2016 * i386-tdep.c (i386_extract_struct_value_address): Use
2017 regcache_cooked_read_unsigned.
2018
81967506
SC
20192002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2020
2021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2022 double sizes according to ELF ABI flags.
2023 (gdbarch_tdep): Record elf_flags.
2024
ffe1f3ee
SC
20252002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2026
2027 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2028 (m6812_prolog): They can appear in 68HC12 function prologue.
2029 (m68hc11_frame_chain): Cleanup.
2030
98216c5d
AC
20312002-08-12 Andrew Cagney <cagney@redhat.com>
2032
2033 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2034 declarations.
2035 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2036 (i386_linux_register_raw_size): Delete function.
2037 (i386_linux_init_abi): Update.
2038 * i386-tdep.c (i386_register_raw_size): Delete function.
2039 (i386_register_byte): Delete function.
2040 (i386_gdbarch_init): Update.
2041 (i386_register_size): Delete array.
2042 (i386_register_offset): Delete array.
2043
2044 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2045 (REGISTER_RAW_SIZE): Delete macro.
2046 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2047 (REGISTER_BYTE): Delete macro.
2048
3b19021e
AS
20492002-08-11 Aidan Skinner <aidan@velvet.net>
2050
2051 * ada-lang.c (ada_lookup_partial_symbol)
2052 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2053 prototype names so that grep ^func works properly.
2054
2055 * ada-lang.c (ada_array_element_type)
2056 (ada_lookup_partial_symbol): Fix typos in parameter list.
2057
2058 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2059 Fix prototype names so that grep ^func works properly.
2060
b063e7a2
AC
20612002-08-10 Andrew Cagney <cagney@redhat.com>
2062 Elena Zannoni <ezannoni@redhat.com>
2063 Martin M. Hunt <hunt@redhat.com>
2064
2065 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2066 (build_builtin_type_vec128i): Set the vector bit.
2067 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2068 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2069 (build_builtin_type_vec64): New function.
2070 (build_builtin_type_vec64i): New function.
2071 (build_gdbtypes): Initialize builtin_type_vec64 and
2072 builtin_type_vec64i.
2073
a7e3c2ad
AC
20742002-08-09 Andrew Cagney <cagney@redhat.com>
2075
2076 * regcache.c (regcache_dump): Compare the register offset
2077 with REGISTER_BYTE.
2078 * arch-utils.c (generic_register_byte): New function.
2079 * arch-utils.h (generic_register_byte): Declare.
2080 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2081 * gdbarch.h, gdbarch.c: Regenerate.
2082
af030b9a
AC
20832002-08-09 Andrew Cagney <cagney@redhat.com>
2084
2085 * regcache.c: Include "gdbcmd.h"
2086 (_initialize_regcache): Add commands "maintenance print
2087 registers", "maintenance print raw-registers" and "maintenance
2088 print cooked-registers".
2089 (enum regcache_dump_what): Define.
2090 (dump_endian_bytes): New function.
2091 (regcache_dump): New function.
2092 (regcache_print): New function.
2093 (maintenance_print_registers): New function.
2094 (maintenance_print_raw_registers): New function.
2095 (maintenance_print_cooked_registers): New function.
2096 * Makefile.in (regcache.o): Update dependencies.
2097
cb3d25d1
MS
20982002-08-09 Michael Snyder <msnyder@redhat.com>
2099
2100 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2101 (mips_push_arguments): Correct some comments. Use paddr_nz
2102 for printing addresses in debug output. Replace static
2103 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2104 (mips_n32n64_push_arguments): New function, cloned from
2105 mips_push_arguments and tuned for the n32/n64 ABI.
2106 (mips_push_register): Buffer needs dynamic allocation.
2107 (mips_print_register): Ditto.
2108 (do_gp_register_row): Ditto.
2109 (mips_store_return_value): Ditto.
2110 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2111
2163ab9d
DH
21122002-08-09 Don Howard <dhoward@redhat.com>
2113
2114 * memattr.c (mem_info_command): Print special case of upper bound
2115 as max CORE_ADDR + 1.
2116
b78bcb18
MS
21172002-08-08 Michael Snyder <msnyder@redhat.com>
2118
2119 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2120 returns structs by ref if they're too big to fit in two registers.
2121
ffabd70d
KB
21222002-08-09 Kevin Buettner <kevinb@redhat.com>
2123
2124 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2125 saved regs value.
2126 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2127 mips_find_saved_regs().
2128 (mips_pop_frame): Likewise.
2129
fbcdb4a3
KB
21302002-08-09 Kevin Buettner <kevinb@redhat.com>
2131
2132 * blockframe.c (frame_saved_regs_register_unwind): Revise
2133 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2134 frames are in use.
2135
3c3bea1c
GS
21362002-08-09 Grace Sainsbury <graces@redhat.com>
2137
2138 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2139 T-packets; the 'a' is not taken as a register number.
2140 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2141 (remote_stopped_data_address): New functions; add to target
2142 vector.
2143 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2144 prototypes to match other implementations of this
2145 function. replace integer argument with pointer -- the length
2146 field in the Z-packet is the length of what is pointed to or 1 if
2147 pointer is null. Add to target vector.
2148 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2149 target vector.
2150
2151 From Mark Salter:
2152 * remote.c (remote_wait): Add support to extract optional
2153 watchpoint information from T-packet. Ignore unrecognized
2154 optional info in T-packet.
2155 (remote_async_wait): Ditto.
2156
5d1d95de
CV
21572002-08-09 Corinna Vinschen <vinschen@redhat.com>
2158
2159 * cli/cli-dump.c: Change fopen modes to use binary open modes
2160 as defined in include/fopen-bin.h throughout.
2161
c86b5b38
MS
21622002-08-08 Michael Snyder <msnyder@redhat.com>
2163
2164 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2165
b30590dc
KB
21662002-08-08 Kevin Buettner <kevinb@redhat.com>
2167
2168 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2169 assertion failure by returning early after a warning.
2170
498868ed
KB
21712002-08-08 Kevin Buettner <kevinb@redhat.com>
2172
2173 * mips-tdep.c (mips_find_saved_regs): Make static.
2174 (mips_frame_init_saved_regs): New function.
2175 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2176 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2177 (mips_find_saved_regs): Delete declaration.
2178
b2dd6311
GS
21792002-08-08 Grace Sainsbury <graces@redhat.com>
2180
3c3bea1c
GS
2181 * remote.c (remote_wait, remote_async_wait): Change
2182 thread_num from int to ULONGEST.
2183 (unpack_varlen_hex): Change result parameter from
2184 int * to ULONGEST *.
b2dd6311 2185
ea47855f
AC
21862002-08-08 Andrew Cagney <ac131313@redhat.com>
2187
2188 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2189 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2190 powerpc*-*-*.
2191 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2192
69db8bae
AC
21932002-08-08 Andrew Cagney <cagney@redhat.com>
2194
2195 * gcore.c (override_derive_stack_segment): Delete variable.
2196 (preempt_derive_stack_segment): Delete function.
2197 (derive_stack_segment): Delete function.
2198 (default_derive_stack_segment): Renamed to derive_stack_segment.
2199 (override_derive_heap_segment): Delete variable.
2200 (preempt_derive_heap_segment): Delete function.
2201 (derive_heap_segment): Delete function.
2202 (default_derive_heap_segment): Rename to derive_heap_segment.
2203
cb811fe7
MS
22042002-08-06 Michael Snyder <msnyder@redhat.com>
2205
2206 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2207 * mips-tdep.c (mips_EABI_use_struct_convention,
2208 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2209 New functions. (mips_use_struct_convention): Delete.
2210 (mips_gdbarch_init): set use_gdbarch_convention.
2211
8b389c40
MS
22122002-08-06 Michael Snyder <msnyder@redhat.com>
2213
2214 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2215 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2216 mips_o32_reg_struct_has_addr): New functions.
2217 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2218
5c27f28a
AC
22192002-08-07 Andrew Cagney <ac131313@redhat.com>
2220
2221 * regcache.c (pseudo_register): Delete function.
2222 (fetch_register): Delete function.
2223 (store_register): Delete function.
2224 (regcache_raw_read, legacy_read_register_gen): Use
2225 target_fetch_registers instead of fetch_register.
2226 (legacy_write_register_gen, regcache_raw_write): Use
2227 target_store_register instead of store_register.
2228 (write_register_bytes): Ditto.
2229
2230 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2231 (STORE_PSEUDO_REGISTER): Delete.
2232 * gdbarch.h, gdbarch.c: Regenerate.
2233
5b331675
CV
22342002-08-06 Corinna Vinschen <vinschen@redhat.com>
2235
2236 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2237 write dump file binary.
2238
6acdf5c7
MS
22392002-08-05 Michael Snyder <msnyder@redhat.com>
2240
2241 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2242 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2243 (mips_gdbarch_init): Set N32 target to be mips64.
2244
b2f01c35
KB
22452002-08-06 Kevin Buettner <kevinb@redhat.com>
2246
2247 * frame.c (find_saved_register): Break out of loop once saved
2248 register address is found. Don't mention sparc in loop comment
2249 anymore.
2250
63db5580
KB
22512002-08-06 Kevin Buettner <kevinb@redhat.com>
2252
2253 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2254 mips_default_saved_regsize to 8.
2255
5e34e75e
AC
22562002-08-06 Andrew Cagney <ac131313@redhat.com>
2257
2258 * gcore.c: Do not include <sys/procfs.h>.
2259 * Makefile.in (gcore.o): Update dependencies.
2260
eb4c54a2
AC
22612002-08-06 Andrew Cagney <cagney@redhat.com>
2262
2263 * configure.tgt: Make arc-*-* obsolete.
2264 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2265 * MAINTAINERS: Make arc-elf obsolete.
2266 * arc-tdep.c: Make file obsolete.
2267 * config/arc/arc.mt: Ditto.
2268 * config/arc/tm-arc.h: Ditto.
2269
ced15480
TR
22702002-08-05 Theodore A. Roth <troth@verinet.com>
2271
c1bab85b 2272 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2273
b4743822
AC
22742002-08-05 Andrew Cagney <ac131313@redhat.com>
2275
2276 * mcore-tdep.c (mcore_gdbarch_init): Use
2277 generic_unwind_get_saved_register instead of
2278 generic_get_saved_register.
2279 * v850-tdep.c (v850_gdbarch_init): Ditto.
2280 * frv-tdep.c (frv_gdbarch_init): Ditto.
2281 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2282 * s390-tdep.c (s390_gdbarch_init): Ditto.
2283 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2284 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2285 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2286
3956d554
JB
22872002-08-05 Joel Brobecker <brobecker@gnat.com>
2288
2289 * objfiles.h: Add missing #include "symfile.h"
2290
2291 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2292
8249c0d6
AC
22932002-08-04 Andrew Cagney <ac131313@redhat.com>
2294
2295 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2296 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2297 of FIELD_BITSIZE.
2298
b9d14705
DJ
22992002-08-04 Daniel Jacobowitz <drow@mvista.com>
2300
2301 * NEWS: Cleanup and nitpick.
2302
dd73b9bb
AC
23032002-08-03 Andrew Cagney <ac131313@redhat.com>
2304
2305 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2306
043a27f8
AC
23072002-08-03 Andrew Cagney <ac131313@redhat.com>
2308
2309 * Makefile.in (gdbtk-bp.o): Update dependencies.
2310 (gdbtk-register.o): Ditto.
2311 (gdbtk-varobj.o): Ditto.
2312
46ce284d
AC
23132002-08-03 Andrew Cagney <cagney@redhat.com>
2314
2315 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2316 m68hc11_fetch_pseudo_register.
2317 (m68hc11_pseudo_register_write): Replace
2318 m68hc11_store_pseudo_register.
2319 (m68hc11_gdbarch_init): Update.
2320
b66d6d2e
AC
2321Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2322
2323 * gdbarch.sh: Include "gdb_string.h".
2324 * gdbarch.c: Regenerate.
2325
2326 * regcache.c: Include "gdb_string.h".
2327 * ax-general.c: Ditto.
2328 * varobj.c: Ditto.
2329 * std-regs.c: Ditto.
2330 * fbsd-proc.c: Ditto.
2331 * thread.c: Ditto.
2332
2333 * Makefile.in (regcache.o): Update dependencies.
2334 (thread.o, gdbarch.o): Ditto.
2335 (ax-general.o, gdbarch.o): Ditto.
2336 (varobj.o, std-regs.o): Ditto.
2337 (fbsd-proc.o): Specify dependencies.
2338
29e1842b
AC
23392002-08-02 Andrew Cagney <cagney@redhat.com>
2340
2341 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2342 regnum.
2343 (regcache_cooked_write): Ditto.
2344
68365089
AC
23452002-08-02 Andrew Cagney <ac131313@redhat.com>
2346
2347 * regcache.c (regcache_cooked_read): New function.
2348 (regcache_cooked_write): New function.
2349 (read_register_gen): Rewrite using regcache_cooked_read.
2350 (write_register_gen): Rewrite using regcache_cooked_write.
2351
2352 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2353 Declare.
2354
d8124050
AC
23552002-08-02 Andrew Cagney <cagney@redhat.com>
2356
2357 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2358 Replace the architecture methods register_read and register_write.
2359 * gdbarch.h, gdbarch.c: Regenerate.
2360 * regcache.c (init_regcache_descr): Update.
2361 (read_register_gen): Update.
2362 (write_register_gen): Update.
2363 (supply_register): Update comment.
2364
2365 * sh-tdep.c (sh_gdbarch_init): Update.
2366 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2367 `regcache' and `gdbarch' parameters. Make `buffer' a void
2368 pointer. Update code.
2369 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2370 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2371 void pointer. Update code.
2372 (sh64_register_write): Delete.
2373 (sh4_register_read): Delete.
2374 (sh64_register_read): Delete.
2375 (sh4_register_write): Delete.
2376 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2377 void pointer, `to' parameter a void pointer.
2378 (sh_sh64_register_convert_to_raw): Ditto.
2379
a6425924
KB
23802002-08-01 Kevin Buettner <kevinb@redhat.com>
2381
2382 * mips-tdep.c (mips_register_virtual_type): Use architecture
2383 invariant return values.
2384
ff5922b5
AC
23852002-08-01 Andrew Cagney <cagney@redhat.com>
2386
2387 * linux-proc.c: Include "gdb_string.h".
2388 * Makefile.in (linux-proc.o): Update dependency list.
2389
32a6503c
KB
23902002-08-01 Kevin Buettner <kevinb@redhat.com>
2391
2392 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2393 comment.
2394
ccaa32c7
GS
23952002-08-01 Grace Sainsbury <graces@redhat.com>
2396
2397 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2398 to_insert_watchpoint, to_remove_watchpoint,
2399 to_stopped_by_watchpoint, to_stopped_data_address,
2400 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2401 target vecctor. Define their corresponding macros so they call
2402 them.
2403
2404 * target.c: Add default and debug versions of for
2405 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2406 to_insert_watchpoint, to_remove_watchpoint,
2407 to_stopped_by_watchpoint, to_stopped_data_address,
2408 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2409
78fde5f8
KB
24102002-08-01 Kevin Buettner <kevinb@redhat.com>
2411
2412 * mips-tdep.c (mips_register_virtual_type): New function.
2413 (mips_gdbarch_init): Register mips_register_virtual_type()
2414 with gdbarch machinery.
2415 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2416 this file instead of tm-bigmips.h.
2417 (MIPS_REGSIZE): Delete this macro.
2418 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2419 multiarch version in mips-tdep.c will be found.
2420
db034ac5
AC
24212002-08-01 Andrew Cagney <cagney@redhat.com>
2422
2423 * NEWS: Menion that CHILL has been made obsolete.
2424
2425 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2426 * stabsread.c (read_range_type): Ditto.
2427 * gdbtypes.h: Ditto.
2428 * language.c (binop_type_check): Ditto.
2429 (binop_result_type): Ditto.
2430 (integral_type): Ditto.
2431 (character_type): Ditto.
2432 (string_type): Ditto.
2433 (boolean_type): Ditto.
2434 (structured_type): Ditto.
2435 (lang_bool_type): Ditto.
2436 (binop_type_check): Ditto.
2437 * language.h (_LANG_chill): Ditto.
2438 * dwarfread.c (set_cu_language): Ditto.
2439 * dwarfread.c (CHILL_PRODUCER): Ditto.
2440 * dwarfread.c (handle_producer): Ditto.
2441 * expression.h (enum exp_opcode): Ditto.
2442 * eval.c: Ditto for comments.
2443 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2444 * expprint.c (print_subexp): Ditto.
2445 (print_subexp): Ditto.
2446 * valops.c (value_cast): Ditto.
2447 (search_struct_field): Ditto.
2448 * value.h (COERCE_VARYING_ARRAY): Ditto.
2449 * symfile.c (init_filename_language_table): Ditto.
2450 (add_psymbol_with_dem_name_to_list): Ditto.
2451 * valarith.c (value_binop): Ditto.
2452 (value_neg): Ditto.
2453 * valops.c (value_slice): Ditto.
2454 * symtab.h (union language_specific): Ditto.
2455 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2456 (SYMBOL_DEMANGLED_NAME): Ditto.
2457 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2458 * defs.h (enum language): Ditto.
2459 * symtab.c (got_symtab): Ditto.
2460 * utils.c (fprintf_symbol_filtered): Ditto.
2461
2462 * ch-typeprint.c: Make file obsolete.
2463 * ch-valprint.c: Make file obsolete.
2464 * ch-lang.h: Make file obsolete.
2465 * ch-exp.c: Make file obsolete.
2466 * ch-lang.c: Make file obsolete.
2467
2468 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2469 CHILL_LIB.
2470 (TARGET_FLAGS_TO_PASS): Ditto.
2471 (CHILLFLAGS): Obsolete.
2472 (CHILL): Obsolete.
2473 (CHILL_FOR_TARGET): Obsolete.
2474 (CHILL_LIB): Obsolete.
2475 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2476 ch-valprint.c.
2477 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2478 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2479 ch-lang.o.
2480 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2481 targets.
2482
8aaf0b47
JB
24832002-07-31 Joel Brobecker <brobecker@gnat.com>
2484
2485 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2486 This does not change anything at the moment, but will be helpful
2487 later when full Ada support is integrated.
2488
f3a7b3a5
KB
24892002-07-31 Kevin Buettner <kevinb@redhat.com>
2490
2491 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2492 help message.
2493
fb850278
KB
24942002-07-31 Kevin Buettner <kevinb@redhat.com>
2495
2496 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2497 and save it in a local variable. Use variable in later test.
2498
e3bddbfa
KB
24992002-07-31 Kevin Buettner <kevinb@redhat.com>
2500
2501 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2502 test. (Thanks to Daniel Jacobowitz.)
2503
28d169de
KB
25042002-07-31 Kevin Buettner <kevinb@redhat.com>
2505
2506 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2507 (mips_abi_strings): Add "n64".
2508 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2509
7fe7e44e
KB
25102002-07-31 Kevin Buettner <kevinb@redhat.com>
2511
2512 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2513 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2514
c6caf090
KB
25152002-07-31 Kevin Buettner <kevinb@redhat.com>
2516
2517 * utils.c (host_pointer_to_address, address_to_host_pointer):
2518 Use gdb_assert() instead of explicit call to internal_error().
2519
c41669e0
KB
25202002-07-30 Kevin Buettner <kevinb@redhat.com>
2521
2522 * Makefile.in (rs6000-nat.o): Update dependencies.
2523
2524 From Nicholas Duffek:
2525 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2526 (aix-thread.o): New rule.
2527 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2528 * config/powerpc/aix432.mh: New file.
2529
2fda4977
DJ
25302002-07-30 Daniel Jacobowitz <drow@mvista.com>
2531
2532 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2533 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2534 (fetch_core_registers, ppc_linux_supply_gregset)
2535 (ppc_linux_supply_fpregset): New functions.
2536 (ppc_linux_regset_core_fns): New.
2537 (_initialize_ppc_linux_tdep): Call add_core_fns.
2538 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2539 and ppc_linux_supply_gregset.
2540 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2541 (supply_fpregset): Call ppc_linux_supply_fpregset.
2542 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2543 corelow.o.
2544 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2545
729051e6
DJ
25462002-07-30 Daniel Jacobowitz <drow@mvista.com>
2547
2548 * symtab.c (lookup_symbol): Demangle before lowercasing.
2549
5f8a3188
AC
25502002-07-30 Andrew Cagney <ac131313@redhat.com>
2551
2552 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2553 declaration.
2554 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2555 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2556 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2557 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2558 "gdb_string.h".
2559 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2560 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2561 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2562 (avr-tdep.o, mon960-rom.o): Ditto.
2563 (aout_stabs_gnu_h): Define.
2564 (symtab_h): Remove $(gdb_obstack_h).
2565
67f07146
JB
25662002-07-30 Jim Blandy <jimb@redhat.com>
2567
2568 Patch from David Carlton <carlton@math.stanford.edu>:
2569 * gdbinit.in: Move the `dir' commands that add GDB's own source
2570 directory to the search path to the end, so that the `gdb' source
2571 directory will be searched first.
2572
04ea0df1
AC
25732002-07-29 Andrew Cagney <ac131313@redhat.com>
2574
2575 * gdb_obstack.h: New file.
2576 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2577 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2578 * objfiles.h: Include "gdb_obstack.h".
2579 * Makefile.in (gdb_obstack_h): Define.
2580 (symtab_h): Add $(gdb_obstack_h).
2581 (objfiles_h): Add $(gdb_obstack_h).
2582
2583 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2584 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2585 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2586 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2587 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2588 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2589 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2590 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2591
2592 * Makefile.in (bcache.o): Update dependencies.
2593 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2594 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2595 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2596 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2597 (stabsread.o, symfile.o, symmisc.o): Ditto.
2598 (symtab.o, typeprint.o, macroexp.o): Ditto.
2599 (macrotab.o, mdebugread.o): Ditto.
2600 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2601 (coff_ecoff_h, aout_aout64_h): Define.
2602 (aout_stabs_gnu_h, libaout_h): Define.
2603
d138e37a
AC
26042002-07-29 Andrew Cagney <cagney@redhat.com>
2605
2606 * regcache.c (struct regcache_descr): Rename nr_registers to
2607 nr_cooked_registers. Revise comments describing the structure
2608 member fields.
2609 (init_regcache_descr): Update.
2610 (init_legacy_regcache_descr): Update.
2611 (read_register_gen, write_register_gen): When a cooked register in
2612 the raw register range, directly access the value from the raw
2613 register cache.
2614
460e6ec3
AC
26152002-07-29 Andrew Cagney <ac131313@redhat.com>
2616
2617 * z8k-tdep.c: Do not include "obstack.h".
2618 * h8300-tdep.c, h8500-tdep.c: Ditto.
2619 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2620 * valprint.c, v850-tdep.c: Ditto.
2621 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2622 * mn10200-tdep.c: Ditto.
2623
2624 * Makefile.in (z8k-tdep.o): Update dependencies.
2625 (m68hc11-tdep.o, valprint.o): Ditto.
2626 (v850-tdep.o, d10v-tdep.o): Ditto.
2627 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2628 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2629 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2630 (sh_opc_h, gdb_sim_sh_h): Define.
2631 (elf_sh_h, elf_bfd_h): Define.
2632 (opcode_m68hc11_h): Define.
2633 (OPCODES_SRC, OPCODES_DIR): define.
2634 (OPCODES): Use $(OPCODES_DIR).
2635 (gdb_sim_d10v_h): Rename sim_d10v_h.
2636 (gdb_sim_arm_h): Rename sim_arm_h.
2637
790c9cf0
KB
26382002-07-26 Kevin Buettner <kevinb@redhat.com>
2639
2640 * utils.c (host_pointer_to_address, address_to_host_pointer):
2641 Change internal_error() message to indicate function responsible
2642 for the error.
2643
9647fa49
KB
26442002-07-26 Kevin Buettner <kevinb@redhat.com>
2645
2646 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2647 calls to local_hex_string_custom().
2648
dabbe2c0
KB
26492002-07-26 Kevin Buettner <kevinb@redhat.com>
2650
2651 * irix5-nat.c: Move IRIX shared library support from here...
2652 * solib-irix.c: ...to here. Revised substantially to work with
2653 generic solib framework.
2654
b96d0a4e
KB
2655 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2656 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2657 * mips-irix-tdep.c: New file.
2658
313fb2f6
KB
2659 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2660 (mips-irix-tdep.o, solib-irix.o): New rules.
2661 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2662 solib-irix.o.
2663 * config/mips/irix6.mt (TDEPFILES): Likewise.
2664 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2665
ab2eaf26
KB
26662002-07-26 Kevin Buettner <kevinb@redhat.com>
2667
177e4768 2668 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2669 disabled (via ``#if 0'') includes.
2670
7244546a
KB
26712002-07-26 Kevin Buettner <kevinb@redhat.com>
2672
2673 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2674 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2675 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2676 Add support for the fpscr register.
2677 * rs6000-nat.c (regmap, fetch_inferior_registers)
2678 (store_inferior_registers, fetch_core_registers): Likewise.
2679
dd7be90a
KB
26802002-07-26 Kevin Buettner <kevinb@redhat.com>
2681
2682 * rs6000-nat.c (language.h): Include.
2683 (special_regs): Delete this array.
2684 (regmap): New function.
2685 (fetch_register, store_register): Use regmap() to map gdb
2686 register numbers to ptrace register numbers. Also, use
2687 outputs from regmap() to make decisions regarding type of
2688 ptrace() call to make. In particular, don't compare against
2689 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2690 (fetch_inferior_registers, store_inferior_registers): Where
2691 possible, obtain register numbers from tdep struct. Don't
2692 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2693 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2694 (LAST_UISA_SP_REGNUM): Delete.
2695
11bf77db
KB
26962002-07-25 Kevin Buettner <kevinb@redhat.com>
2697
2698 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2699 (fetch_registers, store_register, fetch_core_registers): Don't
2700 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2701 regcache_collect() as appropriate.
2702 (find_toc_address): Format hex address with local_hex_string().
2703
06afebeb
AC
27042002-07-25 Andrew Cagney <ac131313@redhat.com>
2705
2706 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2707 bfd/elf32-frv.c.
2708
8c554d79
TT
27092002-07-24 Tom Tromey <tromey@redhat.com>
2710
2711 * jv-exp.y: Marked all strings with _().
2712 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2713 internal_error.
2714 (MethodInvocation, CastExpression, parse_number, yyerror,
2715 java_type_from_name, push_expression_name, yylex): Typo fixes.
2716
e4c242d9
DJ
27172002-07-24 Daniel Jacobowitz <drow@mvista.com>
2718
2719 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2720 (tee_file_flush, tee_file_write, tee_file_fputs)
2721 (tee_file_isatty): New.
2722 * ui-file.h (tee_file_new): Add prototype.
2723
ebf56fd3
AS
27242002-07-24 Aidan Skinner <aidan@velvet.net>
2725
2726 * ada-lang.c: Change k&r style function definitions to prototyped
2727 form.
2728 * ada-typeprint.c: Change k&r style function definitions to prototyped
2729 form.
2730 * ada-valprint.c: Change k&r style function definitions to prototyped
2731 form.
2732
7fb623f7
AC
27332002-07-24 Andrew Cagney <cagney@redhat.com>
2734
2735 * README: Remove reference to remote-bug.
2736 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2737 remote-bug.c.
2738 (m88k-nat.o): Delete rule.
2739 (m88k-tdep.o): Delete rule.
2740 (remote-bug.o): Delete rule.
2741 * MAINTAINERS: Mark as obsolete.
2742 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2743 * m88k-tdep.c: Make file obsolete.
2744 * config/m88k/m88k.mh: Ditto.
2745 * config/m88k/delta88v4.mh: Ditto.
2746 * config/m88k/delta88v4.mt: Ditto.
2747 * config/m88k/delta88.mt: Ditto.
2748 * config/m88k/delta88.mh: Ditto.
2749 * remote-bug.c: Ditto.
2750 * config/m88k/tm-delta88.h: Ditto.
2751 * config/m88k/nm-delta88v4.h: Ditto.
2752 * config/m88k/xm-delta88.h: Ditto.
2753 * config/m88k/xm-dgux.h: Ditto.
2754 * config/m88k/tm-m88k.h: Ditto.
2755 * config/m88k/nm-m88k.h: Ditto.
2756 * config/m88k/tm-delta88v4.h: Ditto.
2757 * m88k-nat.c: Ditto.
2758 * cxux-nat.c: Ditto.
2759 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2760 and m88*-*-* obsolete.
2761 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2762 m88*-*-* obsolete.
2763
37611a2b
AC
27642002-07-24 Andrew Cagney <cagney@redhat.com>
2765
2766 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2767 constant. Same for local pointer variables.
2768 (extract_signed_integer): Ditto.
2769 * defs.h (extract_unsigned_integer): Update.
2770 (extract_signed_integer): Update.
2771
1aaa5f99
AC
27722002-07-24 Andrew Cagney <cagney@redhat.com>
2773
2774 * regcache.c (regcache_raw_write): Change buf parameter to a
2775 constant void pointer.
2776 (regcache_raw_read): Change buf parameter to a void pointer.
2777 (legacy_write_register_gen): Change myaddr parameter a constant
2778 void pointer.
2779 (supply_register): Change val parameter to a const void pointer.
2780 * regcache.h (regcache_raw_write): Update declaration.
2781 (regcache_raw_read): Update declaration.
2782 (supply_register): Update declaration.
2783
b4f5539f
TT
27842002-07-24 Tom Tromey <tromey@redhat.com>
2785
2786 * defs.h (gdb_readline_wrapper): Declare.
2787 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2788 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2789 * top.c (gdb_readline_wrapper): New function.
2790 (command_line_input): Use it.
2791
0818c12a
AC
27922002-07-24 Andrew Cagney <cagney@redhat.com>
2793
2794 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2795 regcache_read and regcache_write.
2796 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2797 * regcache.c: Update.
2798 * sh-tdep.c (sh64_push_arguments): Update comment.
2799 (sh_pseudo_register_read): Update.
2800 (sh_pseudo_register_write): Update.
2801 (sh4_register_read): Update.
2802 (sh4_register_write): Update.
2803 (sh64_pseudo_register_read): Update.
2804 (sh64_pseudo_register_write): Update.
2805 (sh64_register_read): Update.
2806 (sh64_register_write): Update.
2807 * i386-tdep.c (i386_extract_return_value): Update.
2808 (i386_extract_struct_value_address): Update.
2809 (i386_extract_return_value): Update.
2810 * blockframe.c (generic_read_register_dummy): Update.
2811 (generic_call_dummy_register_unwind): Update
2812 * infrun.c (write_inferior_status_register): Update.
2813
f7321c06
JB
28142002-07-23 Jim Blandy <jimb@redhat.com>
2815
2816 * parser-defs.h (expression_context_pc): Make this extern.
2817 (Thanks to Michael Snyder.)
2818
2037aebb
AC
28192002-07-23 Andrew Cagney <ac131313@redhat.com>
2820
2821 GDB 5.2.1 released from 5.2 branch.
2822 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2823 * README: Update to mention 5.2.1.
2824
66504d44
MS
28252002-07-23 Mark Salter <msalter@redhat.com>
2826
2827 * remote.c (remote_read_bytes): Fix check for error.
2828
27bae383
KB
28292002-07-22 Kevin Buettner <kevinb@redhat.com>
2830
2831 * aix-thread.c (language.h): Include.
2832 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2833 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2834 Print newlines at end of debug messages.
2835 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2836 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2837
28382002-07-22 Kevin Buettner <kevinb@redhat.com>
2839
2840 * aix-thread.c (ppc-tdep.h): Include.
2841 (special_register_p): New function.
2842 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2843 (store_regs_user_thread): Use register number information from
2844 gdbarch_tdep struct instead of hardcoded offsets relative to
2845 FIRST_UISA_SP_REGNUM.
2846 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2847 special_register_p() instead of using FPLAST_REGNUM and
2848 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2849 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2850 will be MQ's register number.
2851
28522002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2853
2854 * aix-thread.c (ops): Rename to aix_thread_ops.
2855 (base_ops): Rename to base_target.
2856 (ops_attach): Rename to aix_thread_attach.
2857 (ops_detach): Rename to aix_thread_detach.
2858 (ops_resume): Rename to aix_thread_detach.
2859 (ops_wait): Rename to aix_thread_wait.
2860 (ops_kill): Rename to aix_thread_kill.
2861 (init_ops): Rename to init_aix_thread_ops.
2862 (ops_fetch_register): Rename to aix_thread_fetch_register.
2863 (ops_store_register): Rename to aix_thread_store_register.
2864 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2865 (ops_thread_alive): Rename to aix_thread_thread_alive.
2866 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2867 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2868 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2869 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2870 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2871 (store_regs_lib): Rename to store_regs_user_thread.
2872 (store_regs_kern): Rename to store_regs_kernel_thread.
2873
27bae383 28742002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2875
2876 * aix-thread.c (ops_prepare_to_store): Eliminate.
2877 (init_ops): Don't initialize ops.prepare_to_store.
2878 (store_regs_kern): Pre-fetch register buffers from child,
2879 because some registers may not be in the cache. Copy
2880 regs from register cache only if they are cached.
2881 (store_regs_lib): Copy regs from register cache only
2882 if they are cached.
2883 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2884 fill_gprs64): Ditto.
2885
61c5da0b
KB
28862002-07-22 Kevin Buettner <kevinb@redhat.com>
2887
2888 * aix-thread.c (gdb_assert.h): Include.
2889 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2890 register sizes (from register cache) match size of buffer holding
2891 register data.
2892 (fill_sprs32): Change parameter types to match those in the ptrace()
2893 buffer.
2894 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2895 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2896
28972002-07-22 Michael Snyder <msnyder@redhat.com>
2898
2899 * aix-thread.c (supply_sprs64): Cosmetic change.
2900 (supply_sprs32): Cosmetic change.
2901 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2902 (fill_sprs64): Use regcache_collect instead of read_register.
2903 (store_regs_lib): Use regcache_collect instead of
2904 read_register. Use fill_sprs32 instead of fill_sprs64,
2905 if debugging a 32-bit architecture.
2906 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2907 out of the register cache, instead of passing a pointer into
2908 the register cache directly to ptrace. Use regcache_collect
2909 insteaad of read_register.
2910 (ops_prepare_to_store): Use target_read_registers instead
2911 of read_register_bytes.
2912
36479eb1
AS
29132002-07-20 Aidan Skinner <aidan@velvet.net>
2914
2915 * MAINTAINERS: Add self under write after approval.
2916
80ae6ee2
AS
29172002-07-20 Aidan Skinner <aidan@velvet.net>
2918
2919 * ada-tasks.c: Change k&r style function definitions to prototyped
2920 form.
2921
8a8ab2b9
AC
29222002-07-19 Andrew Cagney <ac131313@redhat.com>
2923
2924 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2925 * x86-64-tdep.c: Include "objfiles.h".
2926 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2927 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2928
fb16b900
ML
29292002-07-17 Michal Ludvig <michal@suse.cz>
2930
2931 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2932 (update_context): Initialise cfa variable.
2933
0fe7bf7b
MS
29342002-07-17 Michael Snyder <msnyder@redhat.com>
2935
2936 * aix-thread.c: Shorten some long lines.
2937 Bring comments into line with code spec.
2938
488f131b
JB
29392002-07-18 Joel Brobecker <brobecker@gnat.com>
2940
2941 * infrun.c: Re-indent using gdb_indent.sh.
2942
46c415d2
JB
29432002-07-18 Joel Brobecker <brobecker@gnat.com>
2944
2945 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2946 Leave the indentation temporarily untouched, to minimize the diffs.
2947
cdecafbe
EZ
29482002-07-18 Elena Zannoni <ezannoni@redhat.com>
2949
2950 * stabsread.c: Make os9k sections of the code obsolete,
2951 for real this time.
2952 * stabsread.h: Make os9k sections of the code obsolete.
2953
7b6aa020
ML
29542002-07-18 Michal Ludvig <mludvig@suse.cz>
2955
09ec9b38
ML
2956 * linux-low.c (regsets_store_inferior_registers): Add free()
2957 at the end of a loop to prevent memory leak.
2958 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2959 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2960 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2961 line a comment.
4894ac5d 2962 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2963
233282cd
JB
29642002-07-17 Jim Blandy <jimb@redhat.com>
2965
2966 * macrocmd.c (info_macro_command): Remove newline from error
2967 message.
2968
7b6aa020 29692002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2970
2971 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2972 (sh_gdbarch_init): Use it for sh-dsp.
2973
f7ef9339
KB
29742002-07-16 Kevin Buettner <kevinb@redhat.com>
2975
2976 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2977 64-bit DWARF2 format.
2978
8dd72958
JB
29792002-07-16 Joel Brobecker <brobecker@gnat.com>
2980
2981 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2982 <sys/proc.h> when not available.
2983
a99a9e1b
AC
29842002-07-16 Andrew Cagney <ac131313@redhat.com>
2985
2986 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2987 * stabsread.c: Make os9k sections of the code obsolete.
2988 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2989 * config/i386/i386os9k.mt: Make file obsolete.
2990 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2991 (COMMON_OBS): Remove os9kread.o
2992 (SFILES): Remove os9kread.c.
2993 (os9kread.o, remote-os9k.o): Make target obsolete.
2994 * remote-os9k.c: Make file obsolete.
2995 * os9kread.c: Make file obsolete.
2996 * Makefile.in
2997
7a3085c1
AC
29982002-07-16 Andrew Cagney <ac131313@redhat.com>
2999
3000 * NEWS: Mention that the FR30 has been made obsolete.
3001 * fr30-tdep.c: Make file obsolete.
3002 * config/fr30/tm-fr30.h: Ditto.
3003 * config/fr30/fr30.mt: Ditto.
3004 * configure.tgt: Make fr30-*-elf obsolete.
3005 * MAINTAINERS: Make fr30-elf obsolete.
3006
28a93f5a
PM
30072002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3008
3009 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3010 found is not inside a section.
3011
be006b8b
KB
30122002-07-15 Kevin Buettner <kevinb@redhat.com>
3013
3014 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3015 strerror().
3016 (pdc_realloc): Use xrealloc() instead of realloc().
3017
14fa3751
KB
30182002-07-15 Kevin Buettner <kevinb@redhat.com>
3019
3020 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3021 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3022 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3023 macros.
3024
42cc437f
KB
30252002-07-15 Kevin Buettner <kevinb@redhat.com>
3026
3027 * aix-thread.c (ptrace_check): Eliminate goto.
3028 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3029 problem.
3030
8e2c28d4
KB
30312002-07-15 Kevin Buettner <kevinb@redhat.com>
3032
3033 * aix-thread.c (gdbcmd.h): Include.
3034 (DEBUG, DBG, DBG2, dbg): Eliminate.
3035 (debug_aix_thread): New static global.
3036 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3037 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3038 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3039 invocations to DBG and DBG2 macros to test against
3040 ``debug_aix_thread'' and call fprintf_unfiltered().
3041 (_initialize_aix_thread): Add new command "set debug aix-thread".
3042
30413464
AC
30432002-07-15 Andrew Cagney <ac131313@redhat.com>
3044
3045 From Gerhard Tonn <TON@de.ibm.com>:
3046 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3047 instead of supply_register.
3048
7c43edc1
AC
30492002-07-15 Andrew Cagney <ac131313@redhat.com>
3050
3051 * dwarf2cfi.c: Include "gdb_assert.h".
3052 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3053 non-NULL.
3054 (update_context): Do not use __func__. Add missing ``break''.
3055 (update_context): Do not use __func__.
3056
9364a0ef
EZ
30572002-07-15 Elena Zannoni <ezannoni@redhat.com>
3058
3059 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3060 and its setting. Set gdbarch instruction printing functions
3061 directly. For non-rs6000 case use new function
3062 gdb_print_insn_powerpc.
3063 (gdb_print_insn_powerpc): New function.
3064
3fbeef0b
AC
30652002-07-13 Andrew Cagney <ac131313@redhat.com>
3066
92eb23c5 3067 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3068 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3069 * configure.tgt: Mark d30v-*-* as obsolete.
3070 * d30v-tdep.c: Mark file as obsolete.
3071 * config/d30v/d30v.mt: Ditto.
3072 * config/d30v/tm-d30v.h: Ditto.
3073
aacb1f0a
AS
30742002-07-13 Aidan Skinner <aidan@velvet.net>
3075
3076 * ada-tasks.c (add_task_entry): replace calls to
3077 malloc() with xmalloc
3078 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3079
3080 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3081 ada_finish_decode_line_1, all_sals_for_line
3082 ada_breakpoint_rewrite): replace calls to free() with xfree()
3083
c11d79f2
KB
30842002-07-12 Kevin Buettner <kevinb@redhat.com>
3085
3086 From Nicholas Duffek (with minor changes by Martin Hunt,
3087 Louis Hamilton, and Kevin Buettner):
3088 * aix-thread.c: New file.
3089
8e19ed76
PS
30902002-07-12 Petr Sorfa <petrs@caldera.com>
3091
3092 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3093 complaint for invalid attribute class or form.
3094 (read_func_scope): DW_AT_frame_base
3095 better handling of DW_AT_block*.
3096 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3097 better handling of DW_AT_block*.
3098 (read_common_block): DW_AT_location
3099 better handling of DW_AT_block*.
3100 (read_partial_die): DW_AT_location better handling
3101 of DW_AT_block*.
3102 (new_symbol): DW_AT_external better handling of
3103 DW_AT_block*. Proper initialization of variable
3104 "addr".
3105 (attr_form_is_block): New function that returns true
3106 if the attribute's form is of DW_FORM_block*.
3107
295401f7
DJ
31082002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3109
3110 * valops.c (find_method_list): Remove comment about
3111 removed STATIC_MEMFUNCP argument.
3112 (value_find_oload_method_list): Likewise.
3113
e42dc924
KB
31142002-07-12 Kevin Buettner <kevinb@redhat.com>
3115
3116 From Nicholas Duffek:
3117 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3118 target_new_objfile_hook.
3119
6904b546
KB
31202002-07-12 Kevin Buettner <kevinb@redhat.com>
3121
3122 From Nicholas Duffek:
3123 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3124 csect.
3125
53fe9346
AC
31262002-07-12 Andrew Cagney <cagney@redhat.com>
3127
3128 * MAINTAINERS: Mention --enable-sim-build-warnings.
3129 (m68hc11-elf): Disable sim build warnings.
3130 (m32r-elf): Mark as broken obsolete candidate.
3131 (x86_64-linux-gnu): Mark as buildable with -Werror.
3132 (arm-elf): Change -w to ``,'' which enables warnings but not
3133 -Werror.
3134
af5f3db6
AC
31352002-07-12 Andrew Cagney <ac131313@redhat.com>
3136
3137 * bcache.h: Update copyright.
3138 (struct bstring, struct bcache): Move definition to "bcache.c".
3139 Replaced by opaque declaration.
3140 (bcache_xfree): Replace free_bcache.
3141 (bcache_xmalloc, bcache_memory_used): Declare.
3142
3143 * bcache.c: Update copyright.
3144 (struct bstring, struct bcache): Moved to here from "bcache.h".
3145 Update comments.
3146 (bcache_xmalloc, bcache_memory_used): New functions.
3147 (bcache_xfree): Replace function free_bcache.
3148
3149 * Makefile.in (objfiles.o): Add $(bcache_h).
3150 (objfiles_h): Remove $(bcache_h).
3151 (symfile.o): Add $(bcache_h).
3152
3153 * symmisc.c: Update copyright.
3154 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3155 (print_objfile_statistics): Use bcache_memory_used.
3156
3157 * symfile.c: Include "bcache.h".
3158 (reread_symbols): Use bcache_xfree.
3159 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3160 (add_psymbol_to_list): Pass psymbol_cache by value.
3161 (add_psymbol_with_dem_name_to_list): Ditto.
3162
3163 * objfiles.h: Update copyright.
3164 (struct bcache): Declare opaque. Do not include "bcache.h".
3165 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3166 bcache'' pointers.
3167 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3168
3169 * objfiles.c: Include "bcache.h". Update copyright.
3170 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3171 macro_cache.
3172 (free_objfile): Use bcache_xfree.
3173
444199e7
GS
31742002-07-11 Grace Sainsbury <graces@redhat.com>
3175
3176 * monitor.c (monitor_fetch_register): Make name a constant.
3177 (monitor_store_register): Same.
3178
261397f8
DJ
31792002-07-11 Daniel Jacobowitz <drow@mvista.com>
3180
3181 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3182 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3183 (finish_block) For non-function blocks, hash the symbol table. For
3184 function blocks, mark the symbol table as unhashed.
3185 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3186 (msymbol_hash_iw): Likewise.
3187 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3188 value.
3189 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3190 (lookup_minimal_symbol): Likewise for both.
3191 * symtab.h (struct block): Add `hashtable' flag. Comment the
3192 hashtable.
3193 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3194 (ALL_BLOCK_SYMBOLS): Update.
3195 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3196 (struct symbol): Add `hash_next' pointer.
3197 * symtab.c (lookup_block_symbol): Search using the hash table when
3198 possible.
3199 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3200 (search_symbols, find_addr_symbol): Likewise.
3201
3202 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3203 (read_dst_symtab): Likewise.
3204 * jv-lang.c (get_java_class_symtab): Likewise.
3205 * mdebugread.c: Include "gdb_assert.h".
3206 (shrink_block): Assert that the block being modified is not hashed.
3207 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3208 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3209 symbols.
3210 (dump_symtab): Recognize hashed blocks.
3211 * printcmd.c (print_frame_args): Assert that function blocks do not
3212 have hashed symbol tables.
3213 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3214 (fill_in_ada_prototype, debug_print_block): Likewise.
3215 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3216
6f0eaa01
CV
32172002-07-11 Corinna Vinschen <vinschen@redhat.com>
3218
3219 * stack.c (print_frame): Use result of frame_address_in_block()
3220 instead of fi->pc when evaluating symbols.
3221 (backtrace_command_1): Ditto.
3222
a208b0cb
AC
32232002-07-11 Andrew Cagney <cagney@redhat.com>
3224
3225 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3226 Make static.
3227
3228 * arm-tdep.c (arm_register_name): Make return type constant.
3229
a6b6b089
AC
32302002-07-10 Andrew Cagney <ac131313@redhat.com>
3231
5ae5f592
AC
3232 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3233 prototype.
3234 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3235 * s390-tdep.c (s390_fp_regnum): Ditto.
3236 (s390_read_fp): Ditto.
3237 (s390_pop_frame): Ditto.
3238 (_initialize_s390_tdep): Ditto.
3239 * remote.c (get_remote_state): Ditto.
3240 * procfs.c (mappingflags): Ditto.
3241 * memattr.c (_initialize_mem): Ditto.
3242 * mcore-tdep.c (mcore_pop_frame): Ditto.
3243 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3244 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3245 * language.c (set_case_str): Ditto.
3246 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3247 * frv-tdep.c (new_variant): Ditto.
3248 (frv_stopped_data_address): Ditto.
3249 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3250 (context_alloc): Ditto.
3251 (frame_state_alloc): Ditto.
3252 (unwind_tmp_obstack_init): Ditto.
3253 (unwind_tmp_obstack_free): Ditto.
3254 (cfi_read_fp): Ditto.
3255 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3256 (cris_pop_frame): Ditto.
3257 * c-lang.c (scanning_macro_expansion): Ditto.
3258 (finished_macro_expansion): Ditto.
3259 (c_preprocess_and_parse): Ditto.
3260 * gdbarch.sh: Ditto.
3261 * gdbarch.h, gdbarch.c: Regenerate.
3262 * config/mn10200/tm-mn10200.h: Adjust indentation.
3263 * target.c: Adjust indentation.
3264 * symtab.h: Adjust indentation.
3265 * stabsread.h: Adjust indentation.
3266 * remote-es.c: Adjust indentation.
3267 * os9kread.c: Adjust indentation.
3268
32692002-07-10 Andrew Cagney <ac131313@redhat.com>
3270
a6b6b089
AC
3271 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3272 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3273
a1789893
GS
32742002-07-10 Grace Sainsbury <graces@redhat.com>
3275
3276 * NEWS: Mention m68k, mcore multi-arching.
3277 * MAINTAINERS: Change status of m68k, mcore to reflect
3278 multi-arching.
3279
02f0d45d
DJ
32802002-07-10 Daniel Jacobowitz <drow@mvista.com>
3281
3282 * valops.c (find_overload_match): Free oload_syms.
3283
f15f768e
JB
32842002-07-09 Joel Brobecker <brobecker@gnat.com>
3285
3286 Define HAVE_SYS_PROC_H if sys/proc.h exists
3287 * configure.in: Add check for sys/proc.h
3288 * config.in: Regenerate.
3289 * configure: Regenerate.
3290
902a7139
GS
32912002-07-09 Grace Sainsbury <graces@redhat.com>
3292
3293 * config/m68k/tm-m68k.h: Remove macros wrapped in
3294 #if !GDB_MULTI_ARCH.
3295
a534e424
AC
32962002-07-08 Andrew Cagney <ac131313@redhat.com>
3297
3298 * config.in, configure: Regenerate.
3299
9b94f7bf
MK
33002002-07-08 Mark Kettenis <kettenis@gnu.org>
3301
3302 * dwarf2cfi.c: Include "gcore.h".
3303 (execute_stack_op): Fix implementation of the
3304 DW_OP_deref and DW_OP_deref_size operators by letting do their
3305 lookup in the target.
3306
1d34db41
MK
33072002-07-07 Mark Kettenis <kettenis@gnu.org>
3308
3309 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3310 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3311 tdep->sc_sp_offset.
3312
79d5b63a
DJ
33132002-07-05 Daniel Jacobowitz <drow@mvista.com>
3314
3315 Fix PR gdb/595, gdb/602
3316 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3317 Don't call value_cast, just read the vtable pointer; update comments
3318 to match.
3319
3bb912e8
GS
33202002-07-05 Grace Sainsbury <graces@redhat.com>
3321
3322 * config/mcore/tm-mcore.h: Remove file.
3323 * config/mcore/mcore.mt: Remove definition of TM_FILE
3324 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3325
ca39387d
MK
33262002-07-05 Mark Kettenis <kettenis@gnu.org>
3327
3328 * i386bsd-tdep.c: Include "gdb_string.h".
3329
efdc1108
GS
33302002-07-04 Grace Sainsbury <graces@redhat.com>
3331
3332 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3333 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3334 mcore-tdep.
3335 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3336 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3337 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3338 (RETVAL_REGNUM): Move macros from tm-mcore.h
3339 (mcore_reg_struct_has_addr): New function.
3340 (mcore_gdbarch_init): Added initializations for the macros removed
3341 from tm-mcore.h.
3342
bb21884d
MK
33432002-07-04 Mark Kettenis <kettenis@gnu.org>
3344
3345 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3346 traditonal string branding within the ELF header.
3347
228c6d41
DJ
33482002-07-04 Daniel Jacobowitz <drow@mvista.com>
3349
3350 * symtab.c (remove_params): New function.
3351 (make_symbol_overload_list): Use it instead of cplus_demangle.
3352 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3353
2404952e
MK
33542002-07-04 Mark Kettenis <kettenis@gnu.org>
3355
e5e4acad
MK
3356 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3357
baadce09
MK
3358 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3359 New variables.
3360 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3361 and tdep->sigtramp_end.
3362 * i386obsd-nat.c: New file.
3363 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3364
2404952e
MK
3365 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3366 Don't call get_current_frame().
3367
9b4f1ba7
PM
33682002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3369
3370 * i386-nat.c (child_post_startup_inferior): New function
3371 calling i386_cleanup_dregs if
3372 I386_USE_GENERIC_WATCHPOINTS is defined.
3373 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3374 conditional to acknowledge that i386-nat.c has its
3375 own child_post_startup_inferior function.
3376
c0d1d883
MK
33772002-07-04 Mark Kettenis <kettenis@gnu.org>
3378
00f8375e
MK
3379 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3380 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3381 instead of MAX_REGISTER_RAW_SIZE.
3382 (i386_extract_return_value, i386_extract_struct_value_address):
3383 Convert to use regcache.
3384 (i386_gdbarch_init): Set max_register_raw_size and
3385 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3386 Set extract_return_value and extract_struct_value_address instead
3387 of their deprecated variants.
3388
c0d1d883
MK
3389 Convert i386 target to generic dummy frames.
3390 * i386-tdep.c: Include "symfile.h".
3391 (i386_frameless_signal_p): Consider a function to be frameless if
3392 the pc points at the first instruction of the function.
3393 (i386_frame_chain): Handle (generic) call dummies.
3394 (i386_frame_saved_pc): Likewise.
3395 (i386_frame_init_saved_regs): Remove code dealing with call
3396 dummies on the stack.
3397 (i386_push_dummy_frame): Removed.
3398 (i386_call_dummy_words): Removed.
3399 (i386_fix_call_dummy): Removed.
3400 (i386_push_return_address): New function.
3401 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3402 parameter, and don't call get_current_frame.
3403 (i386_pop_frame): New function.
3404 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3405 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3406 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3407 call_dummy_length to 0, set call_dummy_words to NULL, set
3408 sizeof_call_dummy_words to 0, set fix_call_dummy to
3409 generic_fix_call_dummy, set pc_in_call_dummy to
3410 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3411 generic_push_dummy_frame, set push_return_address to
3412 i386_push_return_address and set frame_chain_valid to
3413 generic_file_frame_chain_valid.
3414
049ee0e4
AC
34152002-07-03 Andrew Cagney <ac131313@redhat.com>
3416
3417 * gdbarch.sh (struct regcache): Add opaque declaration.
3418 (EXTRACT_RETURN_VALUE): New architecture method.
3419 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3420 * gdbarch.h, gdbarch.c: Regenerate.
3421 * arch-utils.c (legacy_extract_return_value): New function.
3422 * arch-utils.h (legacy_extract_return_value): Declare.
3423 * values.c (value_being_returned): Re-enable code handling
3424 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3425 deprecated_grub_regcache_for_registers call to block handling
3426 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3427 (EXTRACT_RETURN_VALUE): Do not define.
3428
4e0d9804
GS
34292002-07-03 Grace Sainsbury <graces@redhat.com>
3430
3431 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3432 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3433 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3434 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3435 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3436 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3437 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3438 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3439 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3440 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3441 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3442 argument so the function fits the prototype in the architecture
3443 vector.
3444 (mcore_pop_frame): Remove argument so the function fits the
3445 prototype. Use get_current_frame instead of the argument.
3446 (mcore_push_arguments): Change type of struct_return so the
3447 function can be used in the architecture vector.
3448 (mcore_store_struct_return): Add.
3449 (mcore_frame_init_saved_regs): Add.
3450 (mcore_gdbarch_init): Add function calls to replace the macros
3451 removed from tm-mcore.h
3452
36160dc4
AC
34532002-07-03 Andrew Cagney <ac131313@redhat.com>
3454
3455 * infcmd.c (print_return_value): Remove compatibility code calling
3456 deprecated_grub_regcache_for_registers.
3457
3458 * values.c: Include "regcache.h".
3459 (value_being_returned): Update. Use
3460 deprecated_grub_regcache_for_registers to extract the register
3461 buffer address.
3462 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3463 ``struct regcache''.
3464 * Makefile.in (values.o): Add dependency on $(regcache_h).
3465
3466 * inferior.h (run_stack_dummy): Change type of second parameter to
3467 a ``struct regcache''.
3468 * valops.c (hand_function_call): Change type of retbuf to ``struct
3469 regcache''. Allocate using regcache_xmalloc, clean using
3470 make_cleanup_regcache_xfree.
3471 * infcmd.c (run_stack_dummy): Update. Use
3472 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3473
3474 * regcache.c (do_regcache_xfree): New function.
3475 (make_cleanup_regcache_xfree): New function.
3476 * regcache.h (make_cleanup_regcache_xfree): Declare.
3477
e64d9b3d
MH
34782002-07-03 Martin M. Hunt <hunt@redhat.com>
3479
4dd79c29
MH
3480 * event-top.c (command_line_handler): Don't read past
3481 beginning of buffer.
e64d9b3d 3482
4dd79c29
MH
34832002-07-03 Martin M. Hunt <hunt@redhat.com>
3484
e64d9b3d
MH
3485 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3486 struct frame_id.
3487 (varobj_create): Store frame_id for root.
3488 (varobj_gen_name): Use xasprintf.
3489 (varobj_update): Save and restore frame using get_frame_id() and
3490 frame_find_by_id().
3491 (create_child): Use xasprintf.
3492 (new_root_variable): Initialize frame_id.
3493 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3494 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3495 to prevent memory leak.
3496
26e6c56a
AC
34972002-07-03 Andrew Cagney <ac131313@redhat.com>
3498
3499 * valops.c (hand_function_call): Move declaration of retbuf to
3500 start of function, allocate using malloc, add a cleanup but before
3501 the inf_status cleanup, cleanup the buffer. Rename local variable
3502 old_chain to inf_status_cleanup.
3503
f436dd25
MH
35042002-07-03 Martin M. Hunt <hunt@redhat.com>
3505
3506 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3507
3508 * cli/cli-decode.c (cmd_func_p): New function.
3509 (cmd_func): New function.
3510
3511 * command.h: Add cmd_func() and cmd_func_p().
3512
4cfe2084
GS
35132002-07-03 Grace Sainsbury <graces@redhat.com>
3514
3515 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3516 (REGISTER_SIZE): Remove.
3517 (MAX_REGISTER_RAW_SIZE): Remove.
3518 (REGISTER_VIRTUAL_TYPE): Remove.
3519 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3520 (REGISTER_NAME): Remove.
3521 (USE_GENERIC_DUMMY_FRAMES): Remove.
3522 (CALL_DUMMY): Remove.
3523 (CALL_DUMMY_START_OFFSET): Remove.
3524 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3525 (CALL_DUMMY_LOCATION): Remove.
3526 (FIX_CALL_DUMMY): Remove.
3527 (CALL_DUMMY_ADDRESS): Remove.
3528 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3529 (SAVE_DUMMY_FRAME_TOS): Remove.
3530 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3531 (mcore_register_virtual_type): New function.
3532 (mcore_register_byte): New function.
3533 (mcore_register_size): New function.
3534 (mcore_register_name): New function.
3535 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3536 macros removed from tm-mcore.h.
3537 (mcore_dump_tdep): Add.
3538 (_initialize_mcore_tdep): Add gdbarch_register call.
3539
4fd667e9
MK
35402002-07-03 Mark Kettenis <kettenis@gnu.org>
3541
3542 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3543 frameless_look_for_prologue, such that we actually call this
3544 function.
3545
42f99ac2
JB
35462002-07-02 Joel Brobecker <brobecker@gnat.com>
3547
3548 * frame.h (frame_address_in_block): New function.
3549
3550 * blockframe.c (frame_address_in_block): New function extracted
3551 from get_frame_block().
3552 (get_frame_block): Use frame_address_in_block().
3553 (block_innermost_frame): Use frame_address_in_block() to match
3554 the frame pc address against the block boundaries rather than
3555 the frame pc directly. This prevents a failure when a frame pc
3556 is actually a return-address pointing immediately after the end
3557 of the given block.
3558
103a1597 35592002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3560
3561 * MAINTAINERS: Add self under write after approval.
3562
35632002-07-02 Grace Sainsbury <graces@redhat.com>
3564
103a1597
GS
3565 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3566 used in architecture vector. The default is
3567 m68k_local_breakpoint_from_pc.
3568 (m68k_local_breakpoint_from_pc): Add.
3569 (enum): Add register numbers from tm-m68k.h.
3570 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3571 vector.
3572 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3573 GDB_MULTI_ARCH_PARTIAL.
3574 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3575 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3576 m68k-tdep.c.
3577 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3578 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3579 to enum in m68k-tdep.c
3580
7a5a0534
JB
35812002-07-02 Joel Brobecker <brobecker@gnat.com>
3582
3583 * solib-osf.c (open_map): Compute the list of shared libraries
3584 loaded by the inferior, rather than the list of libraries loaded
3585 by GDB itself. Otherwise, GDB ends up reading the symbols from
3586 the wrong shared libraries...
3587
6f558d74
MK
35882002-07-02 Mark Kettenis <kettenis@gnu.org>
3589
b7d15bf7
MK
3590 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3591 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3592 macros.
3593 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3594 Remove functions.
3595 (FRAMELESS_SIGNAL): Remove function.
3596 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3597 i386_linux_saved_pc_after_call): Removed.
3598 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3599 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3600 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3601
6bff26de
MK
3602 * i386-tdep.c (i386_frameless_signal_p): New function.
3603 (i386_frame_chain): Deal with frameless signals.
3604 (i386_sigtramp_saved_sp): New function.
3605 (i386_frame_saved_pc): Deal with frameless signals.
3606 (i386_saved_pc_after_call): Make sure the correct value is
3607 returned just after entry into a sigtramp.
3608 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3609 i386fbsd4_sc_sp_offset): New variables.
3610 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3611 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3612 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3613 similiar to what we already did for sc_pc_offset.
3614 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3615 tdep->sc_sp_offset.
3616
6f558d74
MK
3617 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3618
145564b7
ML
36192002-07-02 Michal Ludvig <mludvig@suse.cz>
3620
3621 * config/i386/tm-x86-64linux.h: New.
3622 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3623 definitions.
3624 * config/i386/nm-x86-64.h: Rename to ...
3625 * config/i386/nm-x86-64linux.h: ... this one.
3626 * config/i386/x86-64linux.mh: Reflect the above change.
3627
3a1e71e3
MK
36282002-07-01 Mark Kettenis <kettenis@gnu.org>
3629
21d0e8a4
MK
3630 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3631 with sigcontext_addr. Add sc_sp_offset.
3632 (i386bsd_sigtramp_saved_pc): Remove prototype.
3633 (i386bsd_sicontext_addr): Add prototype.
3634 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3635 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3636 (i386_svr4_sigtramp_saved_pc): Removed.
3637 (i386_svr4_sigcontext_addr): New function.
3638 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3639 Initialize tdep->sigcontext_addr instead. Initialize
3640 tdep->sc_pc_offset and tdep->sc_sp_offset.
3641 (i386_gdbarch_init): Likewise.
3642 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3643 any more.
3644 (i386bsd_sigtramp_saved_pc): Remove function.
3645 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3646 Initialize tdep->sigcontext_addr instead. Initialize
3647 tdep->sc_pc_offset.
3648 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3649 of tdep->sigtramp_saved_pc.
3650 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3651 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3652 instead.
3653
3a1e71e3
MK
3654 * i386-tdep.c (i386_frameless_function_invocation,
3655 i386_frame_num_args, i386_frame_init_saved_regs,
3656 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3657 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3658 i386_extract_return_value, i386_store_return_value,
3659 i386_extract_struct_value_address, i386_register_virtual_type,
3660 i386_register_convertible, i386_register_convert_to_virtual,
3661 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3662 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3663 static.
3664
52e9098c
MK
36652002-07-01 Mark Kettenis <kettenis@gnu.org>
3666
77b13a25
MK
3667 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3668
52e9098c
MK
3669 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3670 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3671 this macro. Include "value.h".
3672
1b372fff
AS
36732002-06-30 Aidan Skinner <aidan@velvet.net>
3674
3675 * ada-exp.tab.c: remove as it's a generated file
3676 * ada-lex.c: remove as it's a generated file
3677
9c5045b5
MK
36782002-06-30 Mark Kettenis <kettenis@gnu.org>
3679
4a93c5bb
MK
3680 * config/i386/tm-i386.h (struct frame_info, struct
3681 frame_saved_regs, struct value, struct type): Remove forward
3682 declarations.
3683
322d4fe0
MK
3684 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3685 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3686 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3687 (FILL_FPXREGSET): Define.
3688
fdd8263d
MK
3689 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3690
482e577b
MK
3691 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3692 i[3456]86-*-netbsd* case.
3693 * config/i386/tm-obsd.h: Removed.
3694 * config/i386/obsd.mt: Removed.
3695 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3696 core-aout.o.
3697 (MH_CFLAGS): Add -DYYDEBUG=0.
3698
6916549a
MK
3699 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3700 i386nbsd_sc_pc_offset on OpenBSD too.
3701
9c5045b5
MK
3702 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3703 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3704 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3705 define.
3706 * i386bsd-tdep.c: Include "arch-utils.h".
3707 (i386bsd_aout_in_solib_call_trampoline): New function.
3708 (i386bsd_init_abi): Set in_solib_call_trampoline to
3709 i386bsd_aout_in_solib_call_trampoline.
3710 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3711 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3712
aa84d1bb
AC
37132002-06-28 Andrew Cagney <ac131313@redhat.com>
3714
3715 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3716 (struct obstack, struct bcache): Add opaque declarations.
3717 * Makefile.in (macrotab_h): Update
3718
b4d83933
AC
37192002-06-28 Andrew Cagney <ac131313@redhat.com>
3720
3721 * blockframe.c (generic_find_dummy_frame): Change return type to
3722 ``struct regcache''.
3723 (struct dummy_frame): Replace field ``registers'' with regcache, a
3724 struct regcache object.
3725 (generic_find_dummy_frame): Update.
3726 (generic_push_dummy_frame): Update. Use regcache_xfree,
3727 regcache_xmalloc and regcache_cpy.
3728 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3729 regcache_xfree.
3730 (deprecated_generic_find_dummy_frame): Update.
3731 (generic_read_register_dummy): Update. Use
3732 regcache_read_as_address.
3733 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3734 (generic_get_saved_register): Update. Use regcache_read.
3735
08c0b5bc
AC
37362002-06-28 Andrew Cagney <ac131313@redhat.com>
3737
3738 * Makefile.in (objfiles_h): Add $(bcache_h).
3739 * objfiles.h: Include "bcache.h".
3740
3741 * Makefile.in (symtab_h): Remove $(bcache_h).
3742 * symtab.h: Do not include "bcache.h".
3743
1f89801a
AC
37442002-06-28 Andrew Cagney <ac131313@redhat.com>
3745
3746 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3747 generic_func_frame_chain_valid.
3748
b9644b58
DB
37492002-06-28 David O'Brien <obrien@FreeBSD.org>
3750
3751 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3752 * config/i386/tm-fbsd.h: Likewise.
3753
dd486634
AC
37542002-06-28 Andrew Cagney <ac131313@redhat.com>
3755
3756 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3757 generic_unwind_get_saved_register.
3758
0b434a00
AC
37592002-06-27 Andrew Cagney <ac131313@redhat.com>
3760
3761 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3762 * regcache.c (supply_register): Add missing argument to
3763 register_buffer call.
3764
f30e5a77
AC
37652002-06-27 Andrew Cagney <ac131313@redhat.com>
3766
3767 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3768 Solaris /bin/grep does not not like it. From Peter Schauer.
3769
9f064c95
TT
37702002-06-26 Tom Tromey <tromey@redhat.com>
3771
3772 * command.h (add_setshow_cmd): Declare.
3773 (add_setshow_cmd_full): Declare.
3774 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3775 returns void. Use add_setshow_cmd_full.
3776 (add_setshow_cmd_full): New function.
3777 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3778 (add_setshow_boolean_cmd): Likewise.
3779
099c7589
JT
37802002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3781
3782 * config/vax/tm-vax.h: Protect from multiple inclusion.
3783 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3784 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3785 * config/vax/tm-vaxbsd.h: ...here. New file.
3786 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3787
1d049c5e
JT
37882002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3789
3790 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3791 (BELIEVE_PCC_PROMOTION): Remove.
3792 (AP_REGNUM): Move to...
3793 * config/vax/nm-vax.h: ...here.
3794 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3795 (vax_breakpoint_from_pc): New function.
3796 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3797 and gdbarch_believe_pcc_promotion.
3798
4791e091
JT
37992002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3800
3801 * Makefile.in (vax_tdep_h): Define.
3802 (vax-tdep.o): Use $(vax_tdep_h).
3803 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3804 (vax_dump_tdep): New function.
3805 (_initialize_vax_tdep): Register vax_dump_tdep.
3806 * vax-tdep.h: Include osabi.h.
3807 (struct gdbarch_tdep): New.
3808
da130f98
AC
38092002-06-26 Andrew Cagney <cagney@redhat.com>
3810
3811 * frame.h (deprecated_generic_find_dummy_frame): Rename
3812 generic_find_dummy_frame.
3813 * blockframe.c (generic_find_dummy_frame): Make static.
3814 (deprecated_generic_find_dummy_frame): New function.
3815 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3816 generic_find_dummy_frame with deprecated_find_dummy_frame.
3817 (sh64_nofp_frame_init_saved_regs): Ditto.
3818 (sh_fp_frame_init_saved_regs): Ditto.
3819 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3820 (s390_frame_chain): Ditto.
3821 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3822
6300c360
GS
38232002-06-26 Grace Sainsbury <graces@redhat.com>
3824
3825 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3826 gdbarch vector are at the top.
3827 (NUM_REGS): Remove.
3828 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3829 (FRAME_ARGS_ADDRESS): Remove.
3830 (FRAME_LOCALS_ADDRESS): Remove.
3831 (FRAME_NUM_ARGS): Remove.
3832 (FRAME_ARGS_SKIP): Remove.
3833 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3834 (m68k_gdbarch_init): Add gdbarch initializations for macros
3835 undefined in tm-m68k.h
3836
1c617db8
GS
38372002-06-26 Grace Sainsbury <graces@redhat.com>
3838
3839 * monitor.h: Add the function regname to monitor_ops
3840 structure. This way NUM_REGS does not have to be a constant.
3841 * monitor.c (monitor_fetch_register): Added support for regname
3842 function. The function is called if the array regnames is NULL.
3843 (monitor_store_register): Same.
da130f98
AC
3844 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3845 regnames array.
1c617db8
GS
3846 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3847 cpu32bug_cmds.regname to point to new function.
3848 * abug-rom.c (abug_regname): Same as above.
3849 (init_abug_cmds): Same.
3850 * dbug-rom.c (dbug_regname): Same as above.
3851 (init_dbug_cmds): Same.
3852 * remote-est.c (est_regname): Same.
3853 (init_est_cmds): Same.
3854 * rom68k-rom.c (rom68k_regname): Same.
3855 (init_rom68k_cmds): Same.
3856
ea9365bb
TT
38572002-06-25 Tom Tromey <tromey@redhat.com>
3858
3859 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3860
72cec141
AC
38612002-06-25 Andrew Cagney <cagney@redhat.com>
3862
3863 * infrun.c (stop_registers): Change variable's type to ``struct
3864 regcache'''.
3865 (xmalloc_inferior_status): Delete function.
3866 (free_inferior_status): Delete function.
3867 (normal_stop): Use regcache_cpy.
3868 (struct inferior_status): Change type of fields ``stop_registers''
3869 and ``registers'' to ``struct regcache''.
3870 (write_inferior_status_register): Use regcache_write.
3871 (save_inferior_status): Instead of calling
3872 xmalloc_inferior_status, allocate the inf_status buffer directly.
3873 Use regcache_dup_no_passthrough and regcache_dup to save the
3874 buffers.
3875 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3876 Replace the stop_registers regcache instead of overriding it. Use
3877 regcache_xfree. Instead of calling free_inferior_status, xfree
3878 the buffer directly.
3879 (discard_inferior_status): Use regcache_xfree. Instead of calling
3880 free_inferior_status, xfree the buffer directly.
3881 (build_infrun): Use regcache_xmalloc.
3882 (_initialize_infrun): Delete redundant call to build_infrun.
3883
3884 * Makefile.in (infcmd.o): Add $(regcache_h).
3885
3886 * infcmd.c: Include "regcache.h".
3887 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3888 obtain the address of `stop_registers' register buffer.
3889 (print_return_value): Ditto.
3890
3891 * inferior.h (struct regcache): Add opaque declaration.
3892 (stop_registers): Change variable's declared type to ``struct
3893 regcache''.
3894
defc6f8c
TT
38952002-06-24 Tom Tromey <tromey@redhat.com>
3896
c0e624e7
TT
3897 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3898 * target.c (initialize_targets): Fixed typo in
3899 trust-readonly-sections `show' documentation.
3900
defc6f8c
TT
3901 * main.c: Marked all strings with _().
3902
2b236d82
DH
39032002-06-24 Don Howard <dhoward@redhat.com>
3904
3905 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3906 that means max CORE_ADDR+1.
3907 (lookup_mem_region): Ditto.
3908 (mem_info_command): Ditto.
3909
942dc0e9
GS
39102002-06-24 Grace Sainsbury <graces@redhat.com>
3911
3912 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3913 (REGISTER_BYTES_OK): Remove.
3914 (REGISTER_BYTES): Remove.
3915 (STORE_STRUCT_RETURN): Remove.
3916 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3917 (STORE_RETURN_VALUE): Remove.
3918 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3919 (FRAME_CHAIN): Remove.
3920 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3921 (FRAME_SAVED_PC): Remove.
3922 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3923 (m68k_store_struct_return): Add.
3924 (m68k_deprecated_extract_return_value): Add.
3925 (m68k_deprecated_extract_struct_value_address): Add.
3926 (m68k_store_return_value): Add.
3927 (m68k_frame_chain): Add.
3928 (m68k_frameless_function_invocation): Add.
3929 (m68k_frame_saved_pc): Add.
3930 (m68k_gdbarch_init): added set_gdbarch calls for new
3931 functions and deleted macros.
3932
03c30d4d
TT
39332002-06-23 Tom Tromey <tromey@redhat.com>
3934
3935 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3936 (ALLDEPFILES): Likewise.
3937 (udiheaders): Removed.
3938 (udip2soc.o): Likewise.
3939 (udi2go32.o): Likewise.
3940 (udr.o): Likewise.
3941 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3942
37e71372
AC
39432002-06-22 Andrew Cagney <ac131313@redhat.com>
3944
06a6ac57
AC
3945 * infrun.c (_initialize_infrun): Delete unnecessary call to
3946 build_infrun.
3947
37e71372
AC
3948 * regcache.h: Update comments describing the regcache_cpy family
3949 of functions.
3950 (regcache_save, regcache_restore): Delete declaration.
3951 (regcache_save_no_passthrough): Delete declaration.
3952 (regcache_restore_no_passthrough): Delete declaration.
3953 * regcache.c (regcache_save): Delete function.
3954 (regcache_save_no_passthrough): Delete function.
3955 (regcache_restore): Delete function.
3956 (regcache_restore_no_passthrough): Delete function.
3957
78f6d055
AC
39582002-06-21 Andrew Cagney <ac131313@redhat.com>
3959
3960 * config/m68k/tm-m68k.h: Fix typo.
3961 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3962 (m68k_frame_init_saved_regs): Declare.
3963
78b119cb
JB
39642002-06-21 Jim Blandy <jimb@redhat.com>
3965
3966 Remove some vestiges of Harris 88k support.
3967 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3968 register numbering quirk.
3969 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3970 odd symbols occurring in Harris 88k ELF targets.
3971
0fbb3da7
TT
39722002-06-21 Tom Tromey <tromey@redhat.com>
3973
3974 * gdb_locale.h: New file.
3975 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3976 (defs_h): Added gdb_locale.h.
3977 * configure, config.in: Rebuilt.
3978 * configure.in (PACKAGE): Define.
3979 * defs.h: Include gdb_locale.h.
3980 * main.c (captured_main): Call setlocale, bindtextdomain,
3981 textdomain.
3982
456f8b9d
DB
39832002-06-21 Dave Brolley <brolley@redhat.com>
3984
3985 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3986 * config/frv/frv.mt: New file.
3987 * config/frv/tm-frv.h: New file.
3988 * configure.tgt: Support frv-*-*.
3989 * Makefile.in (frv-tdep.o): New target.
3990 * frv-tdep.c: New file.
3991 * NEWS: Mention frv.
3992
cdd463f9
DB
39932002-06-21 Dave Brolley <brolley@redhat.com>
3994
3995 * MAINTAINERS: Add self to "Write After Approval" list.
3996
5d3ed2e3
GS
39972002-06-21 Grace Sainsbury <graces@redhat.com>
3998
3999 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4000 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4001 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4002 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4003 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4004
4005 * m68k-tdep.c: Include arch-utils.h
4006 (m68k_register_raw_size): Add.
4007 (m68k_register_virtual_size): Add.
4008 (m68k_register_virtual_type): Add.
4009 (m68k_register_name): Add.
4010 (m68k_stack_align): Add.
4011 (m68k_register_byte): Add.
4012 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4013 tm-m68k.h.
4014
7f8e7424
GS
40152002-06-21 Grace Sainsbury <graces@redhat.com>
4016
a2c6a6d5 4017 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4018 m68k_find_saved_regs.
4019 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4020 references to it with frame->saved_regs.
7f8e7424
GS
4021 (m68k_gdbarch_init): Added function calls to initialize the
4022 gdbarch structure.
a2c6a6d5
GS
4023 (m68k_fix_call_dummy): Add.
4024 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4025 (CALL_DUMMY): Remove.
4026 (CALL_DUMMY_LENGTH): Remove.
4027 (CALL_DUMMY_START_OFFSET): Remove.
4028 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4029 (FIX_CALL_DUMMY): Remove.
4030 (PUSH_DUMMY_FRAME): Remove.
4031 (POP_FRAME): Remove.
7f8e7424 4032
f461f5cf
PM
40332002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4034
4035 * parse.c (parse_fprintf): New function used to avoid calls to
4036 fprintf in bison parser generated debug code.
4037 * parser-defs.h: Declaration of new parse_fprintf function.
4038 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4039 Set YYDEBUG to 1 by default.
4040 Set YYFPRINTF as parse_fprintf.
4041
7f0c12ed
ML
40422002-06-21 Michal Ludvig <mludvig@suse.cz>
4043
4044 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4045 encoding anymore.
4046 (pointer_encoding, enum ptr_encoding): New.
4047 (execute_cfa_program): Take care about pointer encoding.
4048 (dwarf2_build_frame_info): Only call parse_frame_info for
4049 .debug_frame and .eh_frame.
4050 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4051 fixed augmentation handling, added relative addressing,
4052 ignore duplicate FDEs. Added comments.
19d833a2 4053 * dwarf2cfi.c: Reindented.
7f0c12ed 4054
87c4a039
EZ
40552002-06-20 Elena Zannoni <ezannoni@redhat.com>
4056
4057 * event-top.c (command_handler): Don't use space_at_cmd_start
4058 unless there is sbrk() on the host. Assign time and space data
4059 to union fields of the appropriate length.
4060
1cf877ad
ML
40612002-06-20 Michal Ludvig <mludvig@suse.cz>
4062
4063 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4064 x86_64_register_name. Return type changed to 'const char *'.
4065 (x86_64_register_name2nr): Rename to x86_64_register_number.
4066 (x86_64_gdbarch_init): Update to reflect the change.
4067 * x86-64-tdep.h: Ditto.
4068 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4069 (supply_fpregset): Ditto.
4070
3fadccb3
AC
40712002-06-19 Andrew Cagney <cagney@redhat.com>
4072
4073 * regcache.h: Update copyright.
4074 (struct regcache, struct gdbarch): Add opaque declarations.
4075 (current_regcache): Declare global variable.
4076 (regcache_read, regcache_write): Add gdbarch parameter.
4077 (regcache_save, regcache_save_no_passthrough)
4078 (regcache_restore, regcache_restore_no_passthrough)
4079 (regcache_dup, regcache_dup_no_passthrough)
4080 (regcache_cpy, regcache_cpy_no_passthrough)
4081 (deprecated_grub_regcache_for_registers)
4082 (deprecated_grub_regcache_for_register_valid)
4083 (regcache_valid_p): Add function declarations.
4084
4085 * regcache.c: Update copyright.
4086 (regcache_descr_handle): New global variable.
4087 (struct regcache_descr): Define.
4088 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4089 (regcache_descr, xfree_regcache_descr): New functions.
4090 (struct regcache): Define.
4091 (regcache_xmalloc, regcache_xfree): New functions.
4092 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4093 (regcache_dup, regcache_dup_no_passthrough): New functions.
4094 (regcache_valid_p, regcache_read_as_address): New functions.
4095 (deprecated_grub_regcache_for_registers): New function.
4096 (deprecated_grub_regcache_for_register_valid): New function.
4097 (current_regcache): New global variable.
4098 (register_buffer): Add regcache parameter. Update calls.
4099 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4100 (read_register_gen, write_register_gen): Update register_buffer
4101 call. Test for legacy_p instead of gdbarch_register_read_p or
4102 gdbarch_register_write_p.
4103 (regcache_collect): Update register_buffer call.
4104 (build_regcache): Rewrite. Use deprecated grub functions.
4105 (regcache_save, regcache_save_no_passthrough): New functions.
4106 (regcache_restore, regcache_restore_no_passthrough): New
4107 functions.
4108 (_initialize_regcache): Create the regcache_data_handle. Swap
4109 current_regcache global variable.
4110
4111 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4112 parameter to regcache_read and regcache_write calls.
4113 (sh4_register_read): Ditto.
4114 (sh64_pseudo_register_read): Ditto.
4115 (sh64_register_read): Ditto.
4116 (sh_pseudo_register_write): Ditto.
4117 (sh4_register_write): Ditto.
4118 (sh64_pseudo_register_write): Ditto.
4119 (sh64_register_write): Ditto.
4120
4121 * defs.h (XCALLOC): Define.
4122
152d9db6
GS
41232002-06-19 Grace Sainsbury <graces@redhat.com>
4124
4125 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4126 * m68k-tdep.c (m68k_gdbarch_init): Added.
4127 (m68k_dump_tdep): Added.
4128
170911c7
DJ
41292002-06-19 Daniel Jacobowitz <drow@mvista.com>
4130
4131 * ada-lang.c (fill_in_ada_prototype): Update comment.
4132
2e4ebe70
DJ
41332002-06-19 Daniel Jacobowitz <drow@mvista.com>
4134
4135 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4136 MIPS_ABI_LAST.
4137 (mips_abi_string, mips_abi_strings): New.
4138 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4139 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4140 tdep->mips_abi_string. Honor mips_abi_string. Default to
4141 O32 if no ABI is found.
4142 (mips_dump_tdep): Use mips_abi_strings.
4143 (mips_abi_update): New function.
4144 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4145 ``set mips abi'' and ``show mips abi''. Check the size of
4146 mips_abi_strings.
4147
16775908
AC
41482002-06-19 Andrew Cagney <cagney@redhat.com>
4149
4150 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4151 constant.
4152
5051bfa4 41532002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4154
5051bfa4
JB
4155 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4156 current frame using only the first stack size adjustment. All
4157 subsequent size adjustments are not considered to be part of
4158 the "static" part of the current frame.
4159 Compute the address of the saved registers relative to the
4160 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4161 in use in this frame.
4162
56468235
DH
41632002-06-18 Don Howard <dhoward@redhat.com>
4164
4165 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4166 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4167 suggesting this solution.
4168
0b624158
AC
41692002-06-18 Andrew Cagney <ac131313@redhat.com>
4170
4171 * config/romp/xm-rtbsd.h: Delete file.
4172 * config/romp/rtbsd.mh: Delete file.
4173
221ea385
KS
41742002-06-18 Keith Seitz <keiths@redhat.com>
4175
4176 * breakpoint.c (condition_command): Post breakpoint_modify
4177 when a condition is added to an existing breakpoint.
4178 (commands_command): Likewise for commands.
4179 (set_ignore_count): Likewise for ignore counts.
4180 If no tty, do not simply return, still need to send event
4181 notification.
4182 (ignore_command): Only print a newline if the command came
4183 from a tty.
4184 Don't call breakpoints_changed, since this is now properly
4185 handled by set_ignore_count.
4186
5402eed1
AC
41872002-06-18 Andrew Cagney <cagney@redhat.com>
4188
4189 * MAINTAINERS: Note that cris-elf target can be compiled with
4190 -Werror.
4191 * cris-tdep.c (cris_register_name): Make return type constant.
4192 (cris_breakpoint_from_pc): Ditto.
4193
cc22880b
ML
41942002-06-18 Michal Ludvig <mludvig@suse.cz>
4195
4196 * frame.h (struct frame_info): Change type of context to
4197 'struct context'.
4198
fa88f677
AC
41992002-06-17 Andrew Cagney <cagney@redhat.com>
4200
4201 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4202 pointer.
4203 * gdbarch.h, gdbarch.c: Regenerate.
4204 * config/mips/tm-mips.h (mips_register_name): Update.
4205 * i386-tdep.h (i386_register_name): Update.
4206 * mips-tdep.c (mips_register_name): Update
4207 * alpha-tdep.c (alpha_register_name): Update.
4208 * arch-utils.c (legacy_register_name): Update.
4209 * arch-utils.h (legacy_register_name): Update.
4210 * avr-tdep.c (avr_register_name): Update.
4211 * ia64-tdep.c (ia64_register_name): Update.
4212 * i386-tdep.c (i386_register_name): Update.
4213 * sparc-tdep.c (sparc32_register_name): Update.
4214 (sparc64_register_name): Update.
4215 (sparclite_register_name): Update.
4216 (sparclet_register_name): Update.
4217 * sh-tdep.c (sh_generic_register_name): Update.
4218 (sh_sh_register_name): Update.
4219 (sh_sh3_register_name): Update.
4220 (sh_sh3e_register_name): Update.
4221 (sh_sh_dsp_register_name): Update.
4222 (sh_sh3_dsp_register_name): Update.
4223 (sh_sh4_register_name): Update.
4224 (sh_sh64_register_name): Update.
4225 * s390-tdep.c (s390_register_name): Update.
4226 * rs6000-tdep.c (rs6000_register_name): Update.
4227 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4228 (ns32k_register_name_32382): Update.
4229 * d10v-tdep.c (d10v_ts2_register_name): Update.
4230 (d10v_ts3_register_name): Update.
4231 * xstormy16-tdep.c (xstormy16_register_name): Update.
4232 * vax-tdep.c (vax_register_name): Update.
4233 * v850-tdep.c (v850_register_name): Update.
4234 * m68hc11-tdep.c (m68hc11_register_name): Update.
4235 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4236 (am33_register_name): Update.
4237
ea1e7ef6
GS
42382002-06-17 Grace Sainsbury <graces@redhat.com>
4239
4240 * m68k-tdep.c: Reindented.
4241
9b02dd1b
AC
42422002-06-17 Andrew Cagney <ac131313@redhat.com>
4243
4244 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4245 list of predefined types.
4246
8758dec1
MK
42472002-06-16 Mark Kettenis <kettenis@gnu.org>
4248
b6197528
MK
4249 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4250 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4251 REGISTER_CONVERT_TO_RAW): Remove defines.
4252 (i386_register_virtual_type, i386_register_convertible,
4253 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4254 Remove prototypes.
4255 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4256 macros mentioned above.
4257
82b47e62
MK
4258 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4259 (i386lynx_saved_pc_after_call): Remove prototype.
4260 * i386ly-tdep.c: Include "i386-tdep.h".
4261 (i386lynx_saved_pc_after_call): Make static. Use
4262 read_memory_nobpt instead of read_memory. Use
4263 read_memory_unsigned_integer instead of read_memory_integer.
4264 (i386lynx_init_abi): New function.
4265 (i386lynx_coff_osabi_sniffer): New function.
4266 (_initialize_i386bsd_tdep): New function.
4267
8758dec1
MK
4268 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4269 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4270 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4271 (i386_fix_call_dummy): Remove prototype.
4272 * i386-tdep.c (i386_call_dummy_words): New variable.
4273 (i386_gdbarch_init): Adjust for removal of the
4274 macros mentioned above.
4275
e9e68a56
AC
42762002-06-15 Andrew Cagney <ac131313@redhat.com>
4277
4278 * command.h (add_setshow_auto_boolean_cmd): Replace
4279 add_set_auto_boolean_cmd.
4280 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4281 add_set_auto_boolean_cmd.
4282 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4283 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4284 mask-address'' command.
4285 (show_mask_address): Add cmd parameter.
4286 * remote.c (add_packet_config_cmd): Update. Change type of
4287 set_func and show_func to cmd_sfunc_ftype.
4288 (_initialize_remote): Update `set remote Z-packet'
4289 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4290 (show_remote_protocol_e_packet_cmd): Ditto.
4291 (show_remote_protocol_E_packet_cmd): Ditto.
4292 (show_remote_protocol_P_packet_cmd): Ditto.
4293 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4294 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4295 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4296 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4297 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4298 (show_remote_protocol_Z_packet_cmd): Ditto.
4299 (show_remote_protocol_binary_download_cmd): Ditto.
4300 (show_remote_cmd): Pass NULL to all of above.
4301
fc08ec52
MK
43022002-06-15 Mark Kettenis <kettenis@gnu.org>
4303
4304 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4305 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4306 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4307 POP_FRAME): Remove defines.
4308 (i386_push_arguments, i386_store_struct_return,
4309 i386_extract_return_value, i386_store_return_value,
4310 i386_extract_struct_value_address, i386_push_dummy_frame,
4311 i386_pop_frame): Renove prototypes.
4312 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4313 macros mentioned above.
4314
e707bbc2
AC
43152002-06-15 Andrew Cagney <ac131313@redhat.com>
4316
4317 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4318 add_set_boolean_cmd.
4319 (add_setshow_cmd): New function.
4320 * command.h (add_setshow_boolean_cmd): Replace
4321 add_set_boolean_cmd.
4322 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4323 and ``set rdiromatzero''.
4324 * maint.c (_initialize_maint_cmds): Update commented out code.
4325 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4326 * target.c (initialize_targets): Update `set
4327 trust-readonly-sections'.
4328 * remote.c (_initialize_remote): Update `set remotebreak'.
4329
42fdc8df
MK
43302002-06-15 Mark Kettenis <kettenis@gnu.org>
4331
93924b6b
MK
4332 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4333 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4334 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4335 fit into multi-arch framework.
4336 (i386_breakpoint_from_pc): New function.
4337 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4338 above.
4339
42fdc8df
MK
4340 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4341 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4342 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4343 (i386_frameless_function_invocation, i386_frame_num_args,
4344 i386_frame_init_saved_regs): Remove prototypes.
4345 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4346 macros mentioned above.
4347
9773a94b
AC
43482002-06-15 Andrew Cagney <ac131313@redhat.com>
4349
4350 * cli/cli-decode.c (set_cmd_cfunc): Update.
4351 (set_cmd_sfunc): Update.
4352 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4353 (set_cmd_sfunc, set_cmd_cfunc): Update.
4354 * cli/cli-decode.h: Update.
4355
6e157172
MK
43562002-06-15 Mark Kettenis <kettenis@gnu.org>
4357
4358 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4359 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4360
7f19b9a2
AC
43612002-06-15 Andrew Cagney <ac131313@redhat.com>
4362
4363 * defs.h (auto_boolean): Declare enum.
4364 * command.h (cmd_auto_boolean): Delete enum.
4365 * mips-tdep.c (mask_address_var): Update.
4366 (mips_mask_address_p): Update.
4367 (show_mask_address): Update.
4368 * remote.c (struct packet_config): Update.
4369 (update_packet_config): Update.
4370 (show_packet_config_cmd): Update.
4371 (packet_ok): Update.
4372 (add_packet_config_cmd): Update.
4373 (_initialize_remote):
4374 * command.h: Update.
4375 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4376 (do_setshow_command): Update.
4377 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4378 * cli/cli-decode.h: Update.
4379
1cf88de5
MK
43802002-06-15 Mark Kettenis <kettenis@gnu.org>
4381
22ba8cf2
MK
4382 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4383 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4384 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4385 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4386 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4387 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4388
762c5349
MK
4389 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4390 list of DJGPP COFF targets.
4391
091198bb
MK
4392 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4393 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4394 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4395 (FP0_REGNUM): Remove define.
4396 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4397 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4398 (i386_register_virtual_size): Remove protoype.
4399 * i386-tdep.c (i386_register_virtual_size): Removed.
4400 (i386_extract_return_value, i386_store_return_value): Use
4401 FP0_REGNUM instead of NUM_FREGS to determine whether the
4402 floating-point registers are available.
4403 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4404 Adjust for removal of macros mentioned above.
4405
44062002-06-15 Mark Kettenis <kettenis@gnu.org>
4407
fcc9bf01
MK
4408 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4409 comments.
4410 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4411 Remove prototypes.
4412 (supply_gregset, fill_gregset): Remove use of register keyword and
4413 remove declaration for regmap. Use I386_NUM_GREGS instead of
4414 NUM_REGS and NUM_FREGS.
4415 (FPREGSET_FSAVE_OFFSET): Remove.
4416 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4417 NUM_FREGS to determine whether the floating-point registers are
4418 available.
4419
65e78234
MK
4420 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4421 gnu_store_registers): Replace usage of NUM_GREGS with
4422 I386_NUM_GREGS.
4423
98df6387
MK
4424 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4425 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4426 usage of NUM_GREGS with I386_NUM_GREGS.
4427
099a9414
MK
4428 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4429
57976e88
MK
4430 * i386bsd-nat.c: Include "i386-tdep.h".
4431 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4432 I386_NUM_GREGS.
4433
b335f4a6
MK
4434 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4435 and associated comment. They no longer make any sense, since we
4436 don't use this file anymore on Linux.
4437
1cf88de5
MK
4438 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4439 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4440 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4441 elements in these arrays.
4442 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4443 MAX_NUM_REGS.
4444
daa66587
MK
44452002-06-15 Mark Kettenis <kettenis@gnu.org>
4446
4447 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4448 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4449
26e9b323
AC
44502002-06-14 Andrew Cagney <cagney@redhat.com>
4451
4452 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4453 EXTRACT_RETURN_VALUE.
4454 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4455 EXTRACT_STRUCT_VALUE_ADDRESS.
4456 * gdbarch.h, gdbarch.c: Regenerate.
4457
4458 * values.c (value_being_returned): Handle
4459 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4460 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4461
4462 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4463 * arm-tdep.c (arm_gdbarch_init): Update.
4464 * avr-tdep.c (avr_gdbarch_init): Update.
4465 * cris-tdep.c (cris_gdbarch_init): Update.
4466 * d10v-tdep.c (d10v_gdbarch_init): Update.
4467 * ia64-tdep.c (ia64_gdbarch_init): Update.
4468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4469 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4470 * s390-tdep.c (s390_gdbarch_init): Update.
4471 * sh-tdep.c (sh_gdbarch_init): Update.
4472 * s390-tdep.c (s390_gdbarch_init): Update.
4473 * sparc-tdep.c (sparc_gdbarch_init): Update.
4474 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4475 * v850-tdep.c (v850_gdbarch_init): Update.
4476 * vax-tdep.c (vax_gdbarch_init): Update.
4477 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4479
4480 * config/arc/tm-arc.h: Update.
4481 * config/d30v/tm-d30v.h: Update.
4482 * config/fr30/tm-fr30.h: Update.
4483 * config/h8300/tm-h8300.h: Update.
4484 * config/h8500/tm-h8500.h: Update.
4485 * config/i386/tm-i386.h: Update.
4486 * config/i386/tm-ptx.h: Update.
4487 * config/i386/tm-symmetry.h: Update.
4488 * config/i960/tm-i960.h: Update.
4489 * config/m32r/tm-m32r.h: Update.
4490 * config/m68k/tm-delta68.h: Update.
4491 * config/m68k/tm-linux.h: Update.
4492 * config/m68k/tm-m68k.h: Update.
4493 * config/m88k/tm-m88k.h: Update.
4494 * config/mcore/tm-mcore.h: Update.
4495 * config/mips/tm-mips.h: Update.
4496 * config/mn10200/tm-mn10200.h: Update.
4497 * config/pa/tm-hppa.h: Update.
4498 * config/pa/tm-hppa64.h: Update.
4499 * config/sparc/tm-sp64.h: Update.
4500 * config/sparc/tm-sparc.h: Update.
4501 * config/sparc/tm-sparclet.h: Update.
4502 * config/z8k/tm-z8k.h: Update.
4503
5179e78f
AC
45042002-06-14 Andrew Cagney <cagney@redhat.com>
4505
4506 * Makefile.in (i386_linux_tdep_h): Define.
4507 (i386_tdep_h, i387_tdep_h): Define.
4508 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4509 $(i386_tdep_h) and $(i387_tdep_h).
4510 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4511
8201327c
MK
45122002-06-14 Mark Kettenis <kettenis@gnu.org>
4513
edf393ac
MK
4514 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4515 Already covered by the default.
4516
896fb97d
MK
4517 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4518 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4519 (i386_gdbarch_init): Initialize long_double_format and long_double
4520 bit.
4521
8201327c
MK
4522 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4523 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4524 Move these to ...
4525 * config/i386/i386sol2.mh: ... here.
4526 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4527 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4528 (SIGCONTEXT_PC_OFFSET): Remove define.
4529 (IN_SIGTRAMP): Remove define.
4530 * i386-sol2-tdep.c: New file.
4531
4532 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4533 * config/i386/tm-i386nw.h: Removed.
4534
4535 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4536 USE_STRUCT_CONVENTION): Remove defines.
4537 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4538 (get_longjmp_target): Remove prototype.
4539 (IN_SIGTRAMP): Remove define.
4540 (i386bsd_in_sigtramp): Remove prototype.
4541 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4542 function. Update comment accordingly
4543 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4544 (FRAME_SAVED_PC): Remove define.
4545 (i386bsd_frame_saved_pc): Remove prototype.
4546 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4547 GET_LONGJMP_TARGET): Remove defines.
4548 (get_longjmp_target): Remove prototype.
4549 (IN_SIGTRAMP): Remove define.
4550 (i386bsd_in_sigtramp): Remove prototype.
4551 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4552 function. Update comment accordingly
4553 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4554 (FRAME_SAVED_PC): Remove define.
4555 (i386bsd_frame_saved_pc): Remove prototype.
4556 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4557 Remove prototype.
4558 (USE_STRUCT_CONVENTION): Remove prototype.
4559 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4560 declaration.
4561 (_initialize_i386bsd_nat): Revise logic to determine some
4562 constants at compile time when compiling a native GDB. Warn if
4563 things don't match up with what we expect.
4564 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4565 Remove variables.
4566 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4567 to use date stored in `struct gdbarch_tdep'.
4568 (i386bsd_sigcontext_offset): Remove varaible.
4569 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4570 stored in `struct gdbarch_tdep'.
4571 (i386bsd_frame_saved_pc): Make static.
4572 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4573 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4574 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4575 i386fbsd4_sc_pc_offset): New variables.
4576 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4577 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4578 functions.
4579 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4580 functions.
4581 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4582 Modify the value of i386fbsd_sigtramp_start and
4583 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4584 i386fbsd_sigtramp_end.
4585 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4586 function.
4587
4588 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4589 define to i386-linux-tdep.h.
4590 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4591 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4592 defines.
4593 (i386_linux_register_name, i386_linux_register_byte,
4594 i386_linux_register_raw_size): Remove prototypes.
4595 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4596 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4597 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4598 TARGET_WRITE_PC): Remove defines.
4599 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4600 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4601 i386_linux_write_pc): Remove prototypes.
4602 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4603 (get_longjmp_target): Remove prototype.
4604 * i386-linux-tdep.h: New file.
4605 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4606 * i386-linux-tdep.c: Include "i386-tdep.h" and
4607 "i386-linux-tdep.h".
4608 (i386_linux_register_name, i386_linux_register_byte,
4609 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4610 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4611 Make static.
4612 (i386_linux_init_abi): New function.
4613 (_initialize_i386_linux_tdep): New function.
4614
4615 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4616 (i386_saved_pc_after_call): Remove prototype.
4617 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4618 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4619 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4620 (i386_register_name, i386_stab_reg_to_regnum,
4621 i386_dwarf_reg_to_regnum): Remove prototypes.
4622 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4623 SIZEOF_SSE_REGS): Remove defines.
4624 (REGISTER_BYTES): Remove define.
4625 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4626 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4627 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4628 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4629 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4630 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4631 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4632 (get_longjmp_target): Remove prototype.
4633 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4634 (sigtramp_saved_pc): Remove define.
4635 (i386v4_sigtramp_saved_pc): Remove prototype.
4636 * config/i386/tm-go32.h (FRAME_CHAIN,
4637 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4638 (i386go32_frame_saved_pc): Remove prototype.
4639 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4640 (get_longjmp_target): Remove prototype.
4641 * i386-tdep.h: Include "osabi.h".
4642 (enum i386_abi): Removed.
4643 (enum struct_return): New enum.
4644 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4645 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4646 sc_pc_offset members.
4647 (i386_gdbarch_register_os_abi): Remove prototype.
4648 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4649 I386_SSE_NUM_REGS): New defines.
4650 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4651 I386_SSE_SIZEOF_REGS): New defines.
4652 (i386_register_name, i386_register_byte, i386_register_raw_size):
4653 New prototypes.
4654 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4655 (i386bsd_sigtramp_saved_pc): New prototype.
4656 * i386-tdep.c: Don't include "elf-bfd.h".
4657 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4658 i386_frame_chain, i386_saved_pc_after_call): Make static.
4659 (i386_frame_saved_pc): Rewrite to call architecture dependent
4660 function to deal with signal handlers. Make static.
4661 (i386go32_frame_saved_pc): Removed.
4662 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4663 Removed.
4664 (i386_get_longjmp_target): New function.
4665 (default_struct_convention, pcc_struct_convention,
4666 reg_struct_convention, valid_conventions, struct_convention): New
4667 variables.
4668 (i386_use_struct_convention): New function.
4669 (i386v4_sigtramp_saved_pc): Renamed to
4670 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4671 (i386_pc_in_sigtramp): New function.
4672 (i386_abi_names): Removed.
4673 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4674 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4675 Removed.
4676 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4677 i386_gdbarch_register_os_abi): Removed.
4678 (struct i386_abi_handler): Removed.
4679 (i386_abi_handler_list): Removed.
4680 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4681 functions.
4682 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4683 i386_nw_init_abi): New functions.
4684 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4685 Use set_gdbarch_xxx() calls instead of relying on macros for a
4686 number of calls.
4687 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4688 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4689 Register the various architecture variants defined in this file.
4690
ad2f7632
DJ
46912002-06-14 Daniel Jacobowitz <drow@mvista.com>
4692
4693 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4694 (struct main_type): Remove arg_types member. Update comments for
4695 struct field.
4696 (TYPE_ARG_TYPES): Remove.
4697 (TYPE_FN_FIELD_ARGS): Update.
4698 (smash_to_method_type): Update prototype.
4699
4700 * c-typeprint.c (cp_type_print_method_args): Take method type
4701 instead of argument list. Use new argument layout. Simplify.
4702 (c_type_print_args): Use new argument layout. Simplify.
4703 (c_type_print_base): Update call to cp_type_print_method_args.
4704 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4705 argument; use die->type instead. Update call to
4706 smash_to_method_type.
4707 (read_structure_scope): Update call to dwarf2_add_member_fn.
4708 * gdbtypes.c (allocate_stub_method): Update comment.
4709 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4710 Use new argument layout.
4711 (check_stub_method): Use new argument layout. Don't count
4712 void as an argument.
4713 (print_arg_types): Update comments. Use new argument layout.
4714 (recursive_dump_type): Don't print arg_types member.
4715 * hpread.c (hpread_read_struct_type): Use new argument layout.
4716 (fixup_class_method_type): Likewise.
4717 (hpread_type_lookup): Likewise.
4718 * stabsread.c (read_type): Update calls to read_args and
4719 smash_to_method_type.
4720 (read_args): Use new argument layout. Simplify.
4721 * valops.c (typecmp): Use new argument layout. Update parameters
4722 and comments. Simplify.
4723 (hand_function_call): Use new argument layout.
4724 (search_struct_method): Update call to typecmp.
4725 (find_overload_match): Use new argument layout.
4726
6da02953
DJ
47272002-06-13 Daniel Jacobowitz <drow@mvista.com>
4728
4729 * NEWS: Mention multithreaded debug support for gdbserver.
4730
519b2366
DJ
47312002-06-13 Daniel Jacobowitz <drow@mvista.com>
4732
4733 * MAINTAINERS: Mention NEWS.
4734
6c0d6680
DJ
47352002-06-13 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4738 (struct mips_objfile_private, compare_pdr_entries): New.
4739 (non_heuristic_proc_desc): Read the ".pdr" section if it
4740 is present.
4741
6529d2dd
AC
47422002-06-12 Andrew Cagney <ac131313@redhat.com>
4743
4744 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4745 (arm_debug): New static variable.
4746 (_initialize_arm_tdep): Add ``set debug arm'' command.
4747
26216b98
AC
47482002-06-12 Andrew Cagney <ac131313@redhat.com>
4749
4750 * Makefile.in (sim_arm_h): Define.
4751 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4752 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4753 (arm_register_sim_regno): New function, map an internal REGNUM
4754 onto a simulator register number.
4755 (arm_gdbarch_init): Set register_sim_regno.
4756
814b3ba0
AH
47572002-06-09 Aldy Hernandez <aldyh@redhat.com>
4758
4759 * MAINTAINERS: Add self.
4760
475b0867
JB
47612002-06-11 Jim Blandy <jimb@redhat.com>
4762
919d772c
JB
4763 * source.c (source_info): Mention whether the symtab has
4764 information about preprocessor macros.
4765
475b0867
JB
4766 Call the command `info macro', not `show macro'.
4767 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4768 Fix error message.
4769 (_initialize_macrocmd): Register `info_macro_command' in
4770 `infolist', not `showlist'.
4771
9e364162
DJ
47722002-06-11 Daniel Jacobowitz <drow@mvista.com>
4773
4774 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4775 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4776 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4777 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4778 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4779 unconditionally.
4780 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4781 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4782 (_initialize_mips_tdep): Remove dead code.
4783 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4784 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4785 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4786 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4787 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4788 MIPS_LAST_FP_ARG_REGNUM): Remove.
4789
23aa4c72
ML
47902002-06-11 Michal Ludvig <mludvig@suse.cz>
4791
4792 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4793 (unwind_tmp_obstack_free, parse_frame_info)
4794 (update_context, cfi_read_fp, cfi_write_fp)
4795 (cfi_frame_chain, cfi_init_extra_frame_info)
4796 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4797 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4798
70eb15a4
CV
47992002-06-11 Corinna Vinschen <vinschen@redhat.com>
4800
4801 * v850-tdep.c (v850_type_is_scalar): New function.
4802 (v850_use_struct_convention): Match current gcc implementation
4803 as close as possible.
4804 (v850_push_arguments): Fix stack_offset handling. Don't write
4805 struct_addr into register. This is done by v850_store_struct_return.
4806 (v850_extract_return_value): Care for structs.
4807 (v850_store_return_value): Ditto.
4808 (v850_store_struct_return): Actually write address.
4809
482a4d06
ML
48102002-06-11 Michal Ludvig <mludvig@suse.cz>
4811
4812 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4813 without debug information too.
4814
d855c300
AC
48152002-06-10 Andrew Cagney <ac131313@redhat.com>
4816
4817 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4818 Make multi-arch pure.
4819 * gdbarch.h, gdbarch.c: Re-generate.
4820 * arm-tdep.c (arm_print_float_info): Update.
4821 * arch-utils.h (default_print_float_info): Update.
4822 * arch-utils.c (default_print_float_info): Update.
4823 * infcmd.c (float_info): Update call.
4824
dd12a101
AC
48252002-06-10 Andrew Cagney <ac131313@redhat.com>
4826
4827 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4828 the front of the initialize list.
4829
101dcfbe
AC
48302002-06-10 Andrew Cagney <ac131313@redhat.com>
4831
4832 * infrun.c (struct inferior_status): Replace fields
4833 selected_frame_address and selected_level with field
4834 selected_frame_id.
4835 (save_inferior_status): Update. Use get_frame_id.
4836 (struct restore_selected_frame_args): Delete.
4837 (restore_selected_frame): Update. Use frame_find_by_id.
4838 (restore_inferior_status): Update.
4839
4840 * breakpoint.h (struct breakpoint): Change type of
4841 watchpoint_frame to frame_id.
4842 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4843 call to get_current_frame.
4844 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4845 get_current_frame.
4846 (watchpoint_check): Use frame_find_by_id.
4847
4848 * frame.h (record_selected_frame): Delete declaration.
4849 * stack.c (record_selected_frame): Delete function.
4850
4851 * frame.h (struct frame_id): Define.
4852 (get_frame_id): Declare.
4853 (frame_find_by_id): Declare.
4854 * frame.c (frame_find_by_id): New function.
4855 (get_frame_id): New function.
4856
304270b6
AV
48572002-06-10 Andrey Volkov <avolkov@transas.com>
4858
4859 * ser-e7kpc.c: Fix duplicated define and call of
4860 _initialize_ser_e7000pc
4861
2f2cf184
DJ
48622002-06-09 Daniel Jacobowitz <drow@mvista.com>
4863
4864 * signals/signals.c (target_signal_from_host): Fix #ifdef
4865 SIGRTMIN case.
4866 (do_target_signal_to_host): Likewise.
4867
caaa3122
DJ
48682002-06-09 Daniel Jacobowitz <drow@mvista.com>
4869
4870 * mips-tdep.c (mips_find_abi_section): New function.
4871 (mips_gdbarch_init): Call it.
4872
6ac5df3a
MK
48732002-06-09 Mark Kettenis <kettenis@gnu.org>
4874
4875 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4876 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4877 after Andrew's 2002-06-08 gdbarch change.
4878
82ea117a
MK
48792002-06-09 Mark Kettenis <kettenis@gnu.org>
4880
4881 * i386-linux-nat.c (suppy_gregset): Don't supply
4882 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4883 register cache.
4884 (fill_gregset): Don't fetch it under the same circumstances.
4885
3c25f8c7
AC
48862002-06-09 Andrew Cagney <cagney@redhat.com>
4887
4888 * Makefile.in (callback_h): Define.
4889 (remote_sim_h): Update path to remote-sim.h.
4890 (remote-rdp.o): Add $(callback_h).
4891 (remote-sim.o): Use $(callback_h).
4892 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4893 * remote-rdp.c: Include "gdb/callback.h".
4894
1029b7fa
MK
48952002-06-09 Mark Kettenis <kettenis@gnu.org>
4896
4897 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4898 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4899
616675d3
AC
49002002-06-08 Andrew Cagney <ac131313@redhat.com>
4901
a3efda28
AC
4902 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4903 * rdi-share/serpardr.c: Ditto.
4904 * rdi-share/unixcomm.c: Ditto.
4905 * rdi-share/serdrv.c: Ditto.
4906 * rdi-share/hostchan.h: Ditto.
4907 * rdi-share/hostchan.c: Ditto.
4908 * rdi-share/host.h: Ditto.
4909 * rdi-share/devsw.c: Ditto.
4910
c5f10366
AC
4911 * objfiles.h: Change type of obj_private to void pointer.
4912 * pa64solib.c: Update copyright. Don't include "assert.h", use
4913 strcmp instead of STREQ, use LONGEST, do not use PTR
4914 * somsolib.c: Ditto.
4915
616675d3
AC
4916 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4917 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4918 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4919
e4b415d9
AC
49202002-06-08 Andrew Cagney <ac131313@redhat.com>
4921
4922 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4923 (default_get_saved_register): Delete function.
4924 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4925 generic_unwind_get_saved_register.
4926 * gdbarch.h, gdbarch.c: Re-generate.
4927
ca0d0b52
AC
49282002-06-08 Andrew Cagney <ac131313@redhat.com>
4929
4930 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4931 generic_func_frame_chain_valid.
4932 * gdbarch.h, gdbarch.c: Re-generate.
4933 * blockframe.c (generic_func_frame_chain_valid): Only check
4934 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4935 passing FP to PC_IN_CALL_DUMMY.
4936 Fix PR gdb/360.
4937
76860b5f
AC
49382002-06-08 Andrew Cagney <ac131313@redhat.com>
4939
4940 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4941 (register_gdbarch_data): Initialize init_p.
4942 (gdbarch_data): Initialize data pointer using the init function.
4943 (init_gdbarch_data): Delete function.
4944 (gdbarch_update_p): Update.
4945 (initialize_non_multiarch): Update.
4946 (struct gdbarch): Add field initialized_p.
4947 * gdbarch.h, gdbarch.c: Re-generate.
4948
8dda9770
ML
49492002-06-07 Michal Ludvig <mludvig@suse.cz>
4950
4951 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4952 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4953 better do the things actually here.
4954 * x86-64-tdep.c (x86_64_register_name2nr): New.
4955 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4956 (x86_64_gdbarch_init): Respect the above change.
4957 * x86-64-tdep.h (x86_64_register_name2nr)
4958 (x86_64_register_nr2name): Add prototypes.
4959 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4960
3d79a47c
MS
49612002-06-06 Michael Snyder <msnyder@redhat.com>
4962
7bd91a28
MS
4963 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4964 Delete extra braces and re-indent.
4965 (d10v_store_return_value): Char return values
3d79a47c
MS
4966 must be shifted over by one byte in R0.
4967 (d10v_extract_return_value): Delete extra braces, re-indent.
4968
095a4c96
EZ
49692002-06-06 Elena Zannoni <ezannoni@redhat.com>
4970
4971 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4972 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4973 (d10v_integer_to_address): Rewrite.
4974 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4975 the d10v specific functions which take care of converting to the
4976 correct space.
4977
e8a77ca4
EZ
49782002-06-06 Elena Zannoni <ezannoni@redhat.com>
4979
4980 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4981 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4982
4f2e4a4f
AC
49832002-06-02 Andrew Cagney <ac131313@redhat.com>
4984
4985 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4986 includes.
4987 * config/tm-linux.h: Ditto.
4988 * config/alpha/tm-alphalinux.h: Ditto.
4989 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4990 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4991 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4992 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4993 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4994 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4995 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4996 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4997 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4998 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4999 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5000 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5001 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5002 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5003 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5004 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5005 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5006 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5007 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5008 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5009 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5010 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5011 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5012 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5013 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5014 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5015 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5016 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5017 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5018 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5019 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5020 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5021 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5022 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5023 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5024 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5025 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5026
ae2ab2ce
AS
50272002-05-04 Aidan Skinner <aidan@velvet.net>
5028
5029 * ada-exp.tab.c: New file
5030 * ada-exp.y: New file
5031 * ada-lang.c: New file
5032 * ada-lang.h: New file
5033 * ada-lex.c: New file
5034 * ada-lex.l: New file
5035 * ada-tasks.c: New file
5036 * ada-typeprint.c: New file
5037 * ada-valprint.c: New file
5038
0ddd0135
JT
50392002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5040
5041 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5042 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5043
750fbacc
JT
50442002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5045
5046 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5047 insetead of ppc-linux-tdep.o.
5048 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5049 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5050
df94e18a
AC
50512002-06-02 Andrew Cagney <ac131313@redhat.com>
5052
5053 2002-05-07 Christian Groessler <chris@groessler.org>
5054 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5055 bit register contents for little endian hosts.
5056
1a38ab75
AC
50572002-06-01 Andrew Cagney <ac131313@redhat.com>
5058
5059 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5060 any maintainer.
5061
8b1632ac
AC
50622002-06-01 Andrew Cagney <ac131313@redhat.com>
5063
5064 * gdbarch.h: Regenerate.
5065
627054c8
AC
50662002-06-01 Andrew Cagney <ac131313@redhat.com>
5067
5068 * MAINTAINERS: Add everyone to write-after-approval list.
5069
4f460812
AC
50702002-06-01 Andrew Cagney <ac131313@redhat.com>
5071
5072 * stack.c (frame_info): Use frame_register_unwind instead of
5073 saved_regs. Mention when the SP is on the stack or in a register.
5074
5075 * frame.h (frame_register_unwind_ftype): Define. Document.
5076 (struct frame_info): Add field register_unwind and
5077 register_unwind_cache.
5078 (frame_register_unwind): Declare.
5079 (generic_unwind_get_saved_register): Declare.
5080
5081 * frame.c (frame_register_unwind): New function.
5082 (generic_unwind_get_saved_register): New function.
5083
5084 * blockframe.c (generic_call_dummy_register_unwind): New function.
5085 (frame_saved_regs_register_unwind): New function.
5086 (set_unwind_by_pc): New function.
5087 (create_new_frame): New function.
5088 (get_prev_frame): New function.
5089
de888f76
AC
50902002-05-30 Andrew Cagney <ac131313@redhat.com>
5091
5092 * a29k-share/: Delete directory.
5093 * remote-vx29k.c: Delete file.
5094
2f2c3626
JT
50952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5096
5097 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5098 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5099
9ce5c36a
JT
51002002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5101
5102 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5103 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5104 (sparc64nbsd-nat.o)
5105 (sparcnbsd-nat.o)
5106 (sparcnbsd-tdep.o): New dependency lists.
5107 * NEWS: Note new UltraSPARC NetBSD native configuration.
5108 * configure.host (sparc64-*-netbsd*): New host.
5109 * configure.tgt (sparc-*-netbsdelf*)
5110 (sparc-*-netbsd*): Set gdb_target to nbsd.
5111 (sparc64-*-netbsd*): New target.
5112 * sparc64nbsd-nat.c: New file.
5113 * sparcnbsd-nat.c: New file.
5114 * sparcnbsd-tdep.c: New file.
5115 * sparcnbsd-tdep.h: New file.
5116 * config/sparc/nbsd.mt: New file.
5117 * config/sparc/nbsd64.mh: New file.
5118 * config/sparc/nbsd64.mt: New file.
5119 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5120 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5121 (HOST_IPC): Remove.
5122 * config/sparc/nbsdaout.mt: Remove.
5123 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5124 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5125 (HOST_IPC): Remove.
5126 * config/sparc/nbsdelf.mt: Remove.
5127 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5128 sparc-nat.c compatiblity defines.
5129 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5130 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5131 * config/sparc/tm-nbsd64.h: New file.
5132 * config/sparc/tm-nbsdaout.h: Remove.
5133 * config/sparc/xm-nbsd.h: Remove.
5134
ef3cf062
JT
51352002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5136
5137 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5138 * sparc-tdep.c: Include osabi.h.
5139 (gdbarch_tdep): Add osabi member.
5140 (_initialize_sparc_tdep): Use gdbarch_register.
5141 (sparc_gdbarch_init): Use generic OS ABI framework.
5142 (sparc_dump_tdep): New function.
5143
ee8ff470
KB
51442002-05-30 Kevin Buettner <kevinb@redhat.com>
5145
5146 * corefile.c (do_captured_read_memory_integer): Return non-zero
5147 result.
5148 (safe_read_memory_integer): Copy result of memory read when
5149 status is non-zero. Also, add comments.
5150
7b112f9c
JT
51512002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5152
5153 * Makefile.in (ppc_tdep_h): Define.
5154 (ppc-linux-nat.o)
5155 (ppc-linux-tdep.o)
5156 (rs6000-tdep.o): Use $(ppc_tdep_h).
5157 (ppc-sysv-tdep.o)
5158 (ppcnbsd-nat.o)
5159 (ppcnbsd-tdep.o): New dependency lists.
5160 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5161 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5162 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5163 (ppc_sysv_abi_broken_use_struct_convention)
5164 (ppc_sysv_abi_use_struct_convention)
5165 (ppc_sysv_abi_push_arguments): Move to...
5166 * ppc-sysv-tdep.c: ...here.
5167 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5168 * rs6000-tdep.c (process_note_abi_tag_sections)
5169 (get_elfosabi): Remove.
5170 (rs6000_gdbarch_init): Use generic OS ABI framework.
5171 (rs6000_dump_tdep): New function.
5172 (_initialize_rs6000_tdep): Use gdbarch_register.
5173 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5174 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5175 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5176 of ppc-linux-tdep.o.
5177 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5178 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5179 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5180 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5181 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5182 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5183
480dd42a
JB
51842002-05-29 Jim Blandy <jimb@redhat.com>
5185
5186 * macroscope.c (default_macro_scope): Put `void' in empty argument
5187 list.
5188
4182591f
AC
51892002-05-29 Andrew Cagney <ac131313@redhat.com>
5190
5191 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5192 * arch-utils.c: Include "sim-regno.h".
5193 * gdbarch.sh: Don't include "sim-regno.h".
5194 * gdbarch.h, gdbarch.c: Regenerate.
5195 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5196 here.
5197 * arch-utils.h (legacy_register_sim_regno): To here.
5198 * remote-sim.c (legacy_register_sim_regno): Move function from
5199 here.
5200 * arch-utils.c (legacy_register_sim_regno): To here.
5201
8238d0bf
AC
52022002-05-28 Andrew Cagney <ac131313@redhat.com>
5203
5204 * sim-regno.h: New file.
5205 * Makefile.in (sim_regno_h): Define.
5206 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5207 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5208 (legacy_register_sim_regno): New function.
5209 (one2one_register_sim_regno): New function.
5210 (gdbsim_fetch_register): Rewrite.
5211 (gdbsim_store_register): Only store a register when
5212 REGISTER_SIM_REGNO is valid.
5213 * d10v-tdep.c: Include "sim-regno.h".
5214 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5215 (d10v_ts3_register_sim_regno): Ditto.
5216 * gdbarch.sh: Include "sim-regno.h".
5217 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5218 * gdbarch.h, gdbarch.c: Regenerate.
5219 * arch-utils.h (default_register_sim_regno): Delete declaration.
5220 * arch-utils.c (default_register_sim_regno): Delete function.
5221
485721b1
JT
52222002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5223
5224 * ppcnbsd-nat.c: Rewrite.
5225 * ppcnbsd-tdep.c: New file.
5226 * ppcnbsd-tdep.h: New file.
5227 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5228 solib.o, and solib-svr4.o.
5229 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5230 nbsd-tdep.o, and corelow.o.
5231
697f244d
AC
52322002-05-28 Andrew Cagney <ac131313@redhat.com>
5233
5234 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5235 `tr' and `sed'. Mention that `broken' targets are not expected to
5236 build.
5237
f08caad1 52382002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5239
5240 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5241 Let PC point right after the prologue before looking up symbols.
5242
3139facc
MH
52432002-05-27 Martin M. Hunt <hunt@redhat.com>
5244
5245 * i386-tdep.c (i386_register_virtual_type): Return
5246 builtin_type_vec128i for SSE registers.
5247
5248 * gdbtypes.h (builtin_type_vec128i): Declare.
5249
5250 * gdbtypes.c (build_builtin_type_vec128i): New function.
5251 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5252 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5253 (build_gdbtypes): Initialize new builtin vector types.
5254 (_initialize_gdbtypes): Register new vector types with gdbarch.
5255
6e3ba3b8
JT
52562002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5257
5258 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5259 since it has been multi-arch'd.
5260 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5261 Move Alpha and VAX multi-arch news entries to same section
5262 as other multi-arch news.
5263
93d5585d
JT
52642002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5265
5266 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5267 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5268 static. Rename some register numbers to put them in ns32k-tdep
5269 private namespace.
5270 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5271 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5272 functions.
5273 (_initialize_ns32k_tdep): Use gdbarch_register.
5274 * ns32k-tdep.h: New file.
5275 * ns32knbsd-tdep.c: New file.
5276 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5277 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5278 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5279 REGISTER_BYTES, REGISTER_BYTE): Remove.
5280 * config/ns32k/tm-ns32k.h: New file.
5281 * config/ns32k/tm-umax.h: Remove.
5282
efb2c70e
JT
52832002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5284
5285 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5286 ns32k_store_struct_return, ns32k_extract_return_value,
5287 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5288 functions.
5289 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5290 ns32k_saved_pc_after_call.
5291 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5292 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5293 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5294 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5295 ns32k_extract_struct_value_address.
5296
7bcc927b
JT
52972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5298
5299 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5300 ns32k_fix_call_dummy): New.
5301 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5302 ns32k_call_dummy_words.
5303 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5304 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5305 CALL_DUMMY_NARGS): Remove.
5306 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5307
78f9d765
JT
53082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5309
5310 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5311 ns32k_frame_saved_pc, ns32k_frame_args_address,
5312 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5313 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5314 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5315 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5316 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5317 (BREAKPOINT): Remove..
5318 (FRAME_CHAIN): Define as ns32k_frame_chain.
5319 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5320 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5321 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5322 (FRAME_FIND_SAVED_REGS): Remove.
5323 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5324 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5325 (POP_FRAME): Define as ns32k_pop_frame.
5326
f2c762e0
JT
53272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5328
5329 * ns32k-tdep.c (ns32k_register_byte_32082,
5330 ns32k_register_byte_32382, ns32k_register_raw_size,
5331 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5332 functions.
5333 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5334 ns32k_register_byte_32382.
5335 * config/ns32k/tm-umax.h: Update copyright years.
5336 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5337 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5338 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5339 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5340 (ns32k_get_enter_addr): Fix prototype.
5341
af137673
JT
53422002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5343
5344 * ns32k-tdep.c: Update copyright years.
5345 (ns32k_register_name_32082): New function.
5346 (ns32k_register_name_32382): Ditto.
5347 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5348 (REGISTER_NAME): Define as ns32k_register_name_32382.
5349 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5350 (REGISTER_NAME): Define as ns32k_register_name_32082.
5351
a8bc7b56
JB
53522002-05-24 Jim Blandy <jimb@redhat.com>
5353
5354 * dwarf2read.c (free_line_header): Use xfree, not free.
5355
83a45910
JT
53562002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5357
5358 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5359 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5360
0db71247
AC
53612002-05-23 Andrew Cagney <ac131313@redhat.com>
5362
5363 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5364
b9e5e4dd
AC
53652002-05-23 Andrew Cagney <ac131313@redhat.com>
5366
5367 From Ross Alexander at NEC Europe:
5368 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5369
de530e84
MS
53702002-05-23 Michael Snyder <msnyder@redhat.com>
5371
5372 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5373 for input, rather than parse_and_eval_address.
5374
b91b96f4
AC
53752002-05-23 Andrew Cagney <ac131313@redhat.com>
5376
5377 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5378 * Makefile.in (sim_d10v_h): Update definition.
5379
8b279e7a
AC
53802002-05-24 Andrew Cagney <cagney@redhat.com>
5381
5382 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5383 change `2002-05-22 Michael Snyder' below.
5384 (d10v_push_arguments): Ditto.
5385 (d10v_extract_return_value): Ditto.
5386
0a3d0425
JB
53872002-05-23 Jim Blandy <jimb@redhat.com>
5388
5389 * macrotab.c (check_for_redefinition): Don't complain if the new
5390 definition is the same as the previous one. Take more arguments
5391 to allow the comparison.
5392 (macro_define_object, macro_define_function): Pass more arguments
5393 to check_for_redefinition.
5394
78eac43e
MS
53952002-05-22 Michael Snyder <msnyder@redhat.com>
5396
5397 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5398 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5399 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5400 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5401 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5402 Add a temp variable to save a call (and a memory read).
5403 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5404 if possible (so that PC_IN_CALL_DUMMY will work).
5405
9bc1edb8
CV
54062002-05-22 Corinna Vinschen <vinschen@redhat.com>
5407
5408 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5409
005ef3d2
ML
54102002-05-22 Michal Ludvig <mludvig@suse.cz>
5411
5412 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5413 fde->cie_ptr.
5414 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5415 (dwarf2_build_frame_info): Add offset to fde->initial_location
5416 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5417 (execute_stack_op): Change type of 'result' from ULONGEST to
5418 CORE_ADDR.
005ef3d2 5419
fcf4f891
JT
54202002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5421
5422 * config/alpha/tm-nbsd.h: Include solib.h.
5423
cfef91e4
JT
54242002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5425
5426 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5427 assumptions about the host's byte order.
5428
9964235a
JT
54292002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5430
5431 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5432 to dependency list.
5433 * alphanbsd-tdep.c: Include solib-svr4.h.
5434 * shnbsd-tdep.c: Ditto.
5435
9eeef8ef
JT
54362002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5437
5438 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5439 nbsd-tdep.h to dependency list.
5440 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5441 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5442 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5443 nbsdaout.mh and nbsdelf.mh consistently.
5444 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5445 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5446 nbsdaout.mt and nbsdelf.mh consistently.
5447 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5448 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5449 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5450 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5451 a.out shared library stuff from here...
5452 * config/nm-nbsdaout.h: ...to here.
5453 * config/tm-nbsd.h: Remove.
5454 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5455 * config/arm/nbsd.mh: Remove.
5456 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5457 nbsd-tdep.o.
5458 * config/arm/nbsdaout.mh: New file.
5459 * config/arm/nbsdelf.mh: New file.
5460 * config/arm/nm-nbsdaout.h: New file.
5461 * config/i386/nbsd.mh: Remove.
5462 * config/i386/nbsd.mt: Remove.
5463 * config/i386/nbsdaout.mh: New file.
5464 * config/i386/nbsdaout.mt: New file.
5465 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5466 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5467 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5468 i386_register_u_addr): Remove.
5469 * config/i386/nm-nbsdaout.h: New file.
5470 * config/i386/nm-nbsdelf.h: Remove.
5471 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5472 (USE_STRUCT_CONVENTION): Remove.
5473 * config/i386/tm-nbsdaout.h: New file.
5474 * config/i386/tm-nbsdelf.h: Remove.
5475 * config/m68k/nbsd.mh: Remove.
5476 * config/m68k/nbsd.mt: Remove.
5477 * config/m68k/nbsdaout.mh: New file.
5478 * config/m68k/nbsdaout.mt: New file.
5479 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5480 * config/m68k/nm-nbsdaout.h: New file.
5481 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5482 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5483 * config/ns32k/nbsd.mh: Remove.
5484 * config/ns32k/nbsd.mt: Remove.
5485 * config/ns32k/nbsdaout.mh: New file.
5486 * config/ns32k/nbsdaout.mt: New file.
5487 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5488 * config/ns32k/nm-nbsdaout.h: New file.
5489 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5490 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5491 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5492 (SVR4_SHARED_LIBS): Remove.
5493 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5494 * config/sparc/nbsd.mh: Remove.
5495 * config/sparc/nbsd.mt: Remove.
5496 * config/sparc/nbsdaout.mh: New file.
5497 * config/sparc/nbsdaout.mt: New file.
5498 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5499 * config/sparc/nbsdelf.mt: New file.
5500 * config/sparc/nm-nbsdaout.h: New file.
5501 * config/sparc/nm-nbsdelf.h: Remove.
5502 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5503 * config/sparc/tm-nbsdaout.h: New file.
5504
257ce470
JT
55052002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5506
5507 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5508 mipsnbsd-tdep.c
5509 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5510
76a6d5fe
JT
55112002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5512
5513 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5514 shnbsd-nat.c.
5515 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5516
45888261
JT
55172002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5518
5519 * NEWS: Note new MIPS NetBSD native configuration.
5520 * configure.host (mips*-*-netbsd*): New host.
5521 * configure.tgt (mips*-*-netbsd*): New target.
5522 * mipsnbsd-nat.c: New file.
5523 * mipsnbsd-tdep.c: New file.
5524 * mipsnbsd-tdep.h: New file.
5525 * config/mips/nbsd.mh: New file.
5526 * config/mips/nbsd.mt: New file.
5527 * config/mips/nm-nbsd.h: New file.
5528 * config/mips/tm-nbsd.h: New file.
5529
70f80edf
JT
55302002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5531
5532 * Makefile.in (SFILES): Add osabi.c.
5533 (COMMON_OBS): Add osabi.o.
5534 (osabi.o): New dependency list.
5535 * osabi.c: New file.
5536 * osabi.h: New file.
5537 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5538
5539 * Makefile.in (alpha_tdep_h): Define and use instead of
5540 alpha-tdep.h.
5541 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5542 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5543 Remove.
5544 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5545 * alpha-tdep.h: Include osabi.h.
5546 (alpha_abi): Remove.
5547 (gdbarch_tdep): Use generic OS ABI framework.
5548 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5549 gdbarch_register_osabi.
5550 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5551 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5552 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5553
5554 * Makefile.in (sh_tdep_h): Add osabi.h.
5555 * sh-tdep.h (sh_osabi): Remove.
5556 (gdbarch_tdep): Use generic OS ABI framework.
5557 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5558 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5559 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5560 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5561
5562 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5563 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5564 gdbarch_register_osabi.
5565 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5566 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5567 (get_elfosabi): Rename to...
5568 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5569 ABI framework support routines.
5570 (arm_gdbarch_init): Use generic OS ABI framework.
5571 (arm_dump_tdep): Likewise.
5572 (_initialize_arm_tdep): Likewise.
5573 * arm-tdep.h: Include osabi.h.
5574 (arm_abi): Remove.
5575 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5576 osabi member.
5577 (arm_gdbarch_register_os_abi): Remove prototype.
5578 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5579 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5580
5581 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5582 * mips-tdep.c: Include osabi.h.
5583 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5584 OS ABI framework.
5585
d194345b
KH
55862002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5587
5588 * h8300-tdep.c: Fix formatting.
5589
70c6b0d1
EZ
55902002-05-20 Elena Zannoni <ezannoni@redhat.com>
5591
5592 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5593 printing vector registers.
5594
165b8e33
AC
55952002-05-19 Andrew Cagney <ac131313@redhat.com>
5596
5597 From Fernando Nasser:
5598 * remote.c (remote_async_open_1): Re-throw the exception when the
5599 connection fails.
5600 (remote_cisco_open): Ditto.
5601 (remote_open_1): Ditto.
5602
36918e70
AC
56032002-05-19 Andrew Cagney <ac131313@redhat.com>
5604
5605 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5606 (remote_start_remote): Add uiout parameter. Pass through to
5607 remote_start_remote_dummy.
5608 (remote_open_1): Use catch_exception instead of catch_errors.
5609 (remote_async_open_1): Ditto.
5610 (remote_cisco_open): Ditto.
5611
ae44c0c4
AC
56122002-05-19 Andrew Cagney <ac131313@redhat.com>
5613
5614 * remote.c (remote_start_remote): Replace PTR with void pointer.
5615 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5616 static.
5617
8efe637d
AC
56182002-05-18 Andrew Cagney <ac131313@redhat.com>
5619
5620 * gdb_indent.sh: Allow the script to be run in the sim directory.
5621
2f1b5984
MK
56222002-05-18 Mark Kettenis <kettenis@gnu.org>
5623
f0f625e2
MK
5624 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5625 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5626
2f1b5984
MK
5627 * corelow.c (core_open): Only call set_gdbarch_from_file if
5628 exec_bfd is NULL.
5629
fc974602
AV
56302002-05-17 Andrey Volkov <avolkov@transas.com>
5631
5632 * h8300-tdep.c: Add support of EXR register
5633 * config/h8300/tm-h8300.h: Ditto.
5634
906709f4
AV
56352002-05-17 Andrey Volkov <avolkov@transas.com>
5636
5637 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5638
6e591d68
AV
56392002-05-17 Andrey Volkov <avolkov@transas.com>
5640
5641 * h8300-tdep.c: Change literal regnums to REGNO.
5642
84f0252a
JB
56432002-05-17 Jim Blandy <jimb@redhat.com>
5644
e0e9281e
JB
5645 * NEWS: Note addition of macro support.
5646
84f0252a
JB
5647 Expand preprocessor macros in C expressions.
5648 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5649 (scan_macro_expansion, scanning_macro_expansion,
5650 finished_macro_expansion): New function declarations.
5651 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5652 variable declarations.
5653 * parser-defs.h (expression_context_pc): New declaration.
5654 * parse.c (expression_context_pc): New variable.
5655 (parse_exp_1): Set expression_context_pc, as well as
5656 expression_context_block.
5657 * c-exp.y (yylex): If we're not already reading the result of a
5658 macro expansion, try to macro-expand the next token. When we're
5659 done scanning a macro expansion, switch back to the mainline text.
5660 Commas and `if's in a macro's expansion don't terminate the input.
5661 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5662 (macro_original_text, macro_expanded_text,
5663 expression_macro_lookup_func, expression_macro_lookup_baton): New
5664 variables.
5665 (scan_macro_expansion, scanning_macro_expansion,
5666 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5667 c_preprocess_and_parse): New functions.
5668 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5669 c_preprocess_and_parse, instead of c_parse.
5670 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5671 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5672
1c509ca8
JR
5673Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5674
5675 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5676 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5677 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5678
2250ee0c
CV
56792002-05-17 Corinna Vinschen <vinschen@redhat.com>
5680
5681 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5682
ab3b8126
JT
56832002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5684
5685 * Makefile.in (sh_tdep_h): Define and use.
5686 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5687 register enum): Move to...
5688 * * sh-tdep.h: ...here.
5689 * sh-tdep.c: Include sh-tdep.h.
5690 * sh3-rom.c: Likewise.
5691 * shnbsd-tdep.c: Likewise.
5692
ed9d4749
MS
56932002-05-16 Michael Snyder <msnyder@redhat.com>
5694
5695 * arm-tdep.c: Spelling fix in comment.
5696
2e276125
JB
56972002-05-16 Jim Blandy <jimb@redhat.com>
5698
6821892e
JB
5699 Add commands for manually expanding macros and showing their
5700 definitions.
5701 * macrocmd.c, macroscope.c, macroscope.h: New files.
5702 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5703 (macroscope_h): New variable.
5704 (HFILES_NO_SRCDIR): Add macroscope.h.
5705 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5706 (macroscope.o, macrocmd.o): New rules.
5707
2e276125
JB
5708 Teach the Dwarf 2 reader to read macro information.
5709 * dwarf2read.c: #include "macrotab.h".
5710 (dwarf_macinfo_buffer): New variable.
5711 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5712 dwarf_macinfo_size.
5713 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5714 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5715 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5716 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5717 dwarf2_macro_spaces_in_definition): New complaints.
5718 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5719 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5720 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5721 the partial symbol table.
5722 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5723 from what's recorded in the partial symbol table.
5724 (read_file_scope): If the compilation unit has a
5725 `DW_AT_macro_info' attribute, read its macro information.
5726 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5727
2f53fe6c
DJ
57282002-05-16 Daniel Jacobowitz <drow@mvista.com>
5729
5730 Fix PR gdb/546
5731 * ser-tcp.c: Don't include <netinet/udp.h>.
5732
2be99286
SC
57332002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5734
5735 * MAINTAINERS: Update my email address.
5736
c9af212b 57372002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5738
5739 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5740 include file of the same name.
5741
bf5f1a52
CV
57422002-05-16 Corinna Vinschen <vinschen@redhat.com>
5743
5744 * configure.tgt: Mark v850 as multi-arched.
5745 * config/v850/tm-v850.h: Remove file.
5746 * config/v850/v850.mt: Eliminate TM_FILE.
5747
435e042a
CV
57482002-05-16 Corinna Vinschen <vinschen@redhat.com>
5749
5750 * v850-tdep.c: Full multi-arch.
5751 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5752 Define GDB_MULTI_ARCH to 2.
5753
9819c6c8
PM
57542002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5755
5756 * p-exp.y (current_type): New static variable.
5757 Carries the type of the expression at the position that is parsed.
5758 (push_current_type, pop_current_type): Two new functions. Used
5759 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5760 (search_field): New static variable. Set to one after parsing a point
5761 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5762 (FIELDNAME): New token. After a point only a token belonging to
5763 current_type type definition is allowed.
5764 (all over token rules): reset and change current_type according
5765 to rules.
5766 (exp '[' rule): insert implicit array index field if
5767 exp is a pascal string type.
5768
3a06899a
CV
57692002-05-16 Corinna Vinschen <vinschen@redhat.com>
5770
5771 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5772 frame info. Use frame_info's saved_regs instead of matching member
5773 in extra_frame_info throughout.
5774 (v850_frame_init_saved_regs): New function.
5775 (v850_init_extra_frame_info): Move most functionality into
5776 v850_frame_init_saved_regs().
5777 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5778 (v850_frame_find_saved_regs): Remove declaration.
5779 (FRAME_FIND_SAVED_REGS): Remove definition.
5780 (v850_frame_init_saved_regs): Add declaration.
5781 (FRAME_INIT_SAVED_REGS): Add definition.
5782
6ed14b0e
CV
57832002-05-16 Corinna Vinschen <vinschen@redhat.com>
5784
5785 * v850-tdep.c: Begin multi-arch'ing v850.
5786 (v850_target_architecture_hook): Remove function.
5787 (v850_gdbarch_init): New function. Add code previously in
5788 v850_target_architecture_hook().
5789 (_initialize_v850_tdep): Don't set target_architecture_hook.
5790 Call register_gdbarch_init() instead.
5791
42725910
DJ
57922002-05-16 Daniel Jacobowitz <drow@mvista.com>
5793
5794 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5795 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5796 (fixup_class_method_type): Likewise.
5797
99d9066e
JB
57982002-05-15 Jim Blandy <jimb@redhat.com>
5799
5800 Add macro structures to GDB's symbol tables. Nobody puts anything
5801 in them yet.
5802 * symtab.h (struct symtab): New member: `macro_table'.
5803 * buildsym.h (pending_macros): New global variable.
5804 * buildsym.c: #include "macrotab.h".
5805 (buildsym_init): Initialize `pending_macros'.
5806 (end_symtab): If we found macro information while reading a CU's
5807 debugging info, do build a symtab structure for it. Make the
5808 symtab point to the macro information, and clear the
5809 `pending_macros' pointer which held it while we were reading the
5810 debug info.
5811 (really_free_pendings): Free any pending macro table.
5812 * objfiles.h (struct objfile): New member: `macro_cache'.
5813 * objfiles.c (allocate_objfile): Set allocate and free functions
5814 for the macro cache's objstack.
5815 (free_objfile): Empty the macro cache's obstack.
5816 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5817 set new allocate and free functions for it.
5818 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5819 free functions for the macro cache's objstack. (Why is this
5820 function building its own objfile?)
5821 * symmisc.c (print_objfile_statistics): Print statistics on the
5822 macro bcache.
5823 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5824
c899585b
RE
58252002-05-15 Richard Earnshaw <rearnsha@arm.com>
5826
5827 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5828 (REGISTER_U_ADDR): Delete definition.
5829 (arm_register_u_addr): Delete declaration.
5830
a6cdd8c5
RE
58312002-05-15 Richard Earnshaw <rearnsha@arm.com>
5832
5833 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5834 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5835
c97dcfc7
AC
58362002-05-14 Andrew Cagney <ac131313@redhat.com>
5837
5838 * regcache.c (register_valid): Revise comments refering to "Not
5839 available" and "unavailable".
5840 * frame.c (frame_register_read): Ditto.
5841 * findvar.c (value_of_register): Ditto.
5842
93021b7d
AC
58432002-05-15 Andrew Cagney <cagney@redhat.com>
5844
5845 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5846 (remote-sim.o): Update dependencies.
5847 (d10v-tdep.o): Specify dependencies.
5848 (sim_d10v_h): Define.
5849
a86bc61c
JB
58502002-05-14 Jim Blandy <jimb@redhat.com>
5851
5852 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5853 * macrotab.c (macro_lookup_inclusion, find_definition,
5854 new_macro_table): Same.
5855
5856 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5857 not `! strcmp ()'. This is a dubious improvement.
5858 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5859
5860 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5861 although it's not necessary, to avoid a warning.
5862
2fdde8f8
DJ
58632002-05-14 Daniel Jacobowitz <drow@mvista.com>
5864
5865 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5866 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5867 TYPE_INSTANCE_FLAGS.
5868 (struct main_type): New.
5869 (struct type): Move most members to struct main_type. Change
5870 cv_type and as_type to new type_chain member. Add instance_flags.
5871 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5872 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5873 (finish_cv_type): Remove prototype.
5874 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5875 Set TYPE_CHAIN.
5876 (alloc_type_instance): New function.
5877 (smash_type): New function.
5878 (make_pointer_type, make_reference_type, make_function_type)
5879 (smash_to_member_type, smash_to_method_type): Call smash_type.
5880 (make_qualified_type): New function.
5881 (make_type_with_address_space): Call make_qualified_type.
5882 (make_cv_type): Likewise.
5883 (finish_cv_type): Remove unnecessary function.
5884 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5885 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5886 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5887 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5888 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5889 * hpread.c (hpread_read_struct_type): Likewise.
5890 * stabsread.c (read_struct_type): Likewise.
5891
843fedf4
EZ
58922002-05-14 Elena Zannoni <ezannoni@redhat.com>
5893
5894 * configure.tgt: Add a catch all sh* target, for cases like
5895 sh[2,3,4]-elf and sh-hms.
5896
05a6c72c
KS
58972002-05-14 Keith Seitz <keiths@redhat.com>
5898
5899 * event-loop.c (create_file_handler): Don't do anything but
5900 update data when we are given a fd which we are already
5901 monitoring.
5902
5d085aaf
ML
59032002-05-14 Michal Ludvig <mludvig@suse.cz>
5904
5905 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5906 (update_context): Use __func__ in warnings.
5907
9db8d71f
DJ
59082002-05-14 Daniel Jacobowitz <drow@mvista.com>
5909
5910 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5911 and tcp_close to net_open and net_close.
5912 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5913 using UDP if requested. Don't try to disable Nagle on UDP
5914 sockets.
5915 * remote.c (remote_serial_open): New function. Warn about UDP.
5916 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5917
5dbc6baa
EZ
59182002-05-13 Elena Zannoni <ezannoni@redhat.com>
5919
5920 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5921
cc3023f7
EZ
59222002-05-13 Elena Zannoni <ezannoni@redhat.com>
5923
5924 * configure.tgt: Remove sh-hms target.
5925 * MAINTAINERS: Don't list sh-hms as a separate target.
5926
ec2bcbe7
JB
59272002-05-13 Jim Blandy <jimb@redhat.com>
5928
5929 Add first preprocessor macro-expansion files.
5930 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5931 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5932 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5933 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5934 (COMMON_OBS): Add macrotab.o, macroexp.o.
5935 (macroexp.o, macrotab.o): New rules.
5936
6d531722
AC
59372002-05-13 Andrew Cagney <ac131313@redhat.com>
5938
5939 * config/m88k/tm-m88k.h: Update copyright.
5940 (m88k_target_write_pc): Declare
5941 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5942 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5943 (SHIFT_INST_REGS): Update definition.
5944 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5945 using old definition of TARGET_WRITE_PC.
5946 * regcache.c (generic_target_write_pc): Delete code handling
5947 NNPC_REGNUM.
5948 * gdbarch.sh (NNPC_REGNUM): Delete.
5949 * gdbarch.h, gdbarch.c: Regenerate.
5950
3e3f2739
RE
59512002-05-13 Richard Earnshaw <rearnsha@arm.com>
5952
5953 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5954 builtin reg number.
5955
0004e5a2
DJ
59562002-05-13 Daniel Jacobowitz <drow@mvista.com>
5957
5958 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5959 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5960 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5961 access macros.
5962 * c-typeprint.c (cp_type_print_method_args): Likewise.
5963 (c_type_print_args): Likewise.
5964 * d10v-tdep.c (d10v_push_arguments): Likewise.
5965 (d10v_extract_return_value): Likewise.
5966 * expprint.c (print_subexp): Likewise.
5967 * gdbtypes.c (lookup_primitive_typename): Likewise.
5968 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5969 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5970 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5971 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5972 (TYPE_VECTOR): Likewise.
5973 * hpread.c (hpread_read_struct_type)
5974 (fix_static_member_physnames, fixup_class_method_type)
5975 (hpread_type_lookup): Likewise.
5976 * mdebugread.c (parse_symbol, parse_type): Likewise.
5977 * p-lang.c (is_pascal_string_type): Likewise.
5978 * valops.c (hand_function_call): Likewise.
5979 * x86-64-tdep.c (classify_argument): Likewise.
5980
5981 * hpread.c (hpread_read_function_type)
5982 (hpread_read_doc_function_type): Call replace_type.
5983 * dstread.c (create_new_type): Delete.
5984 (decode_dst_structure, process_dst_function): Call alloc_type.
5985 Use type access macros.
5986
dff95cc7
MK
59872002-05-12 Mark Kettenis <kettenis@gnu.org>
5988
5989 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5990 the're not supported by the current architecture.
5991 (i387_fill_fxsave): Likewise.
5992
bbcd32ad
FF
59932002-05-12 Fred Fish <fnf@redhat.com>
5994
5995 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5996 sect_index_xxx members to index the first slot in section_offsets
5997 if all of the section_offsets are zero.
5998
89cf4787
MK
59992002-05-12 Mark Kettenis <kettenis@gnu.org>
6000
6001 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6002 checked in with last change.
6003
1f77ffc5
MK
60042002-05-12 Mark Kettenis <kettenis@gnu.org>
6005
6006 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6007 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6008 config.sub.
6009
89b8b4a9
DJ
60102002-05-12 Daniel Jacobowitz <drow@mvista.com>
6011
6012 * Makefile.in: Update dependencies.
6013
14a5e767
AC
60142002-05-11 Andrew Cagney <ac131313@redhat.com>
6015
6016 * language.c (local_hex_string_custom): Simplify. Do not depend
6017 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6018
6019 * memattr.c (mem_info_command): Replace calls to
6020 longest_local_hex_string and longest_local_hex_string_custom.
6021 * buildsym.c (make_blockvector): Ditto.
6022 * solib.c (info_sharedlibrary_command): Ditto.
6023 * tracepoint.c (tracepoints_info): Ditto.
6024 * symtab.c (print_msymbol_info): Ditto.
6025
6026 * language.c (local_hex_string): Delete.
6027 (local_hex_string_custom): Delete.
6028 (longest_local_hex_string): Rename to local_hex_string.
6029 (longest_local_hex_string_custom): Rename to
6030 local_hex_string_custom.
6031 * language.h (local_hex_string): Change parameter type to LONGEST.
6032 (local_hex_string_custom): Ditto.
6033 (longest_local_hex_string): Delete declaration.
6034 (longest_local_hex_string_custom): Ditto.
6035
6036 * solib.c: Update copyright.
6037 * memattr.c: Update copyright.
6038
13d01224
AC
60392002-05-11 Andrew Cagney <ac131313@redhat.com>
6040
6041 * arch-utils.h (legacy_register_to_value): Declare.
6042 (legacy_value_to_register): Declare.
6043 (legacy_convert_register_p): Declare.
6044 * arch-utils.c (legacy_register_to_value): New function.
6045 (legacy_value_to_register): New function.
6046 (legacy_convert_register_p): New function.
6047
6048 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6049 (VALUE_TO_REGISTER): Define.
6050 (CONVERT_REGISTER_P): Define.
6051 * gdbarch.h, gdbarch.c: Regenerate.
6052
6053 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6054 VALUE_TO_REGISTER.
6055 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6056 CONVERT_REGISTER_P.
6057
4a1970e4
DJ
60582005-05-11 Daniel Jacobowitz <drow@mvista.com>
6059 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6060
6061 * Makefile.in: Update dependencies for valops.c.
6062 * valops.c: Include "gdb_assert.h".
6063 (typecmp): Skip THIS parameter to methods.
6064 (find_method_list): Remove static_memfuncp argument,
6065 update callers. Check for stub methods.
6066 (find_value_oload_method_list): Don't set *static_memfuncp.
6067 (find_overload_match): Don't check for stub methods. Assert
6068 that methods are not stubbed. Handle static methods.
6069 (value_find_oload_method_list): Remove static_memfuncp argument.
6070 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6071 to the argument list for static stub methods.
6072 * value.h (value_find_oload_method_list): Update prototype.
6073
b2e75d78
AC
60742002-05-11 Andrew Cagney <ac131313@redhat.com>
6075
6076 * arch-utils.h (generic_register_size): Declare.
6077 (generic_register_raw_size, generic_register_virtual_size): Delete
6078 declarations.
6079 * arch-utils.c (generic_register_raw_size): Delete.
6080 (generic_register_size): New function.
6081 (generic_register_virtual_size): Delete.
6082
6083 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6084 default generic_register_size.
6085 * gdbarch.h, gdbarch.c: Re-generate.
6086
6087 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6088 register_virtual_size.
6089 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6091
451fbdda
AC
60922002-05-11 Andrew Cagney <ac131313@redhat.com>
6093
6094 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6095 * gdbarch.h, gdbarch.c: Regenerate.
6096 * gnu-v3-abi.c: Update copyright.
6097 (vtable_address_point_offset): Update.
6098 (gnuv3_rtti_type): Update.
6099 (gnuv3_baseclass_offset): Update.
6100 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6101 (init_fetch_link_map_offsets): Update.
6102 * remote.c (get_remote_state): Update.
6103
6d2f5cea
DJ
61042002-05-11 Daniel Jacobowitz <drow@mvista.com>
6105
6106 * TODO: Remove value_headof/value_from_vtable_info comment.
6107 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6108 * values.c (value_headof, value_from_vtable_info): Delete.
6109 * value.h (value_from_vtable_info): Delete prototype.
6110
d2324da4
AC
61112002-05-11 Andrew Cagney <ac131313@redhat.com>
6112
6113 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6114 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6115 $(gdb_regex_h).
6116 (gdb_assert_h): Define.
6117 (gdb_wait_h): Define.
6118 (gdb_regex_h): Define.
6119
5c717440
DJ
61202002-05-11 Daniel Jacobowitz <drow@mvista.com>
6121
6122 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6123 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6124
6c7861b3
JT
61252002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6126
6127 * nbsd-tdep.c: Fix comment.
6128
ea5bc2a6
JT
61292002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6130
6131 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6132 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6133 (nbsd-tdep.o): New dependency list.
6134 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6135 nbsd-tdep.h.
6136 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6137 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6138 * nbsd-tdep.c: New file.
6139 * nbsd-tdep.h: New file.
6140 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6141 nbsd-tdep.h.
6142 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6143 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6144 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6145 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6146
b28da865
JT
61472002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6148
6149 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6150 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6151 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6152 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6153 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6154 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6155
4b8ff1fa
JT
61562002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6157
6158 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6159 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6160 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6161 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6162 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6163 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6164 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6165
dfe6eb1f
JT
61662002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6167
6168 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6169 fetch_elfcore_registers to...
6170 * i386nbsd-tdep.c: ...here.
6171 (i386nbsd_use_struct_convention): Rename to...
6172 (i386nbsd_aout_use_struct_convention): ...this.
6173 (i386nbsd_supply_reg): New function.
6174 (i386nbsd_fill_reg): New function.
6175 (fetch_core_registers): Use i386nbsd_supply_reg.
6176 (fetch_elfcore_registers): Likewise.
6177 (_initialize_i386nbsd_tdep): New function.
6178 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6179 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6180 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6181 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6182 (i386nbsd_aout_use_struct_convention): ...this.
6183
20cb8cda
JT
61842002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6185
6186 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6187 (store_inferior_registers): Use shnbsd_fill_reg.
6188 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6189 sh_nbsd_supply_register): Collapse into...
6190 (shnbsd_supply_reg): ...this.
6191 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6192 (shnbsd_fill_reg): ...this.
6193 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6194 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6195 (fetch_core_registers): Use shnbsd_supply_reg.
6196 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6197 (sh_nbsd_core_fns): Rename to...
6198 (shnbsd_core_fns): ...this.
6199 (sh_nbsd_elfcore_fns): Rename to...
6200 (shnbsd_elfcore_fns): ...this.
6201 (sh_nbsd_init_abi): Rename to...
6202 (shnbsd_init_abi): ...this.
6203 (_initialize_sh_nbsd_tdep): Rename to...
6204 (_initialize_shnbsd_tdep): ...this.
6205 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6206 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6207 sh_nbsd_fill_register): Remove prototypes.
6208 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6209
e750d25e
JT
62102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6213 (i387-nat.o): Delete dependency list.
6214 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6215 (x86-64-linux-nat.o): Likewise.
6216 * i387-nat.c: Delete file, moving contents to...
6217 * i387-tdep.c: ...here.
6218 * i387-nat.h: Rename...
6219 * i387-tdep.h: ...to this.
6220 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6221 * i386-linux-nat.c: Likewise.
6222 * i386bsd-nat.c: Likewise.
6223 * i386gnu-nat.c: Likewise.
6224 * i386nbsd-nat.c: Likewise.
6225 * i386v4-nat.c: Likewise.
6226 * x86-64-linux-nat.c: Likewise.
6227 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6228 * config/i386/go32.mh (NATDEPFILES): Likewise.
6229 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6230 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6231 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6232 * config/i386/linux.mh (NATDEPFILES): Likewise.
6233 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6234 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6235 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6236 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6237
1aee598a
JT
62382002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6241 (alphanbsd-nat.o): Remove dependency list.
6242 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6243 * alphanbsd-nat.c: Delete. Contents moved to...
6244 * alphanbsd-tdep.c: ...here.
6245 (_initialize_alphanbsd_tdep): Register core functions.
6246 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6247
12bcb0fe
JT
62482002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6249
6250 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6251 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6252 (alphanbsd-nat.o): Likewise.
6253 (alphabsd-tdep.o): New dependency list.
6254 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6255 (fill_gregset): Use alphabsd_fill_reg.
6256 (supply_fpregset): Use alphabsd_supply_fpreg.
6257 (fill_fpregset): Use alphabsd_fill_fpreg.
6258 (fetch_inferior_registers): Use struct reg and struct fpreg
6259 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6260 and alphabsd_supply_fpreg.
6261 (store_inferior_registers): Use struct reg and struct fpreg
6262 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6263 and alphabsd_fill_fpreg.
6264 * alphabsd-tdep.c: New file.
6265 * alphabsd-tdep.h: New file.
6266 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6267 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6268 alphabsd_supply_fpreg.
6269 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6270 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6271
361d1df0
EC
62722002-05-11 Eric Christopher <echristo@redhat.com>
6273
6274 * mips-tdep.c (mips_double_register_type): Fix thinko.
6275 (mips_single_register_type): Ditto.
6276 * MAINTAINERS: Add self.
6277
92dd7cee
MK
62782002-05-11 Mark Kettenis <kettenis@gnu.org>
6279
6280 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6281 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6282 right thing on architectures with different endianness and/or
6283 integer sizes.
6284
e27da16d
JT
62852002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6286
6287 From Christian Limpach <chris@Pin.LU>
6288 * configure.in: Change sed expression which comments out
6289 NATDEPFILES to also comment out continuation lines.
6290 * configure: Regenerate.
6291
ddde02bd
EZ
62922002-05-10 Elena Zannoni <ezannoni@redhat.com>
6293
6294 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6295 big patch.
6296
1c922164
EZ
62972002-05-10 Elena Zannoni <ezannoni@redhat.com>
6298
6299 * sh-tdep.c: Include correct file.
6300
283150cd
EZ
63012002-05-10 Elena Zannoni <ezannoni@redhat.com>
6302
6303 New support for sh64-elf (sh5) target.
6304
6305 * configure.tgt: For sh64-elf target, default to sh-elf.
6306
6307 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6308 (struct gdbarch_tdep): Add new fields for new registers and ABI
6309 info.
361d1df0 6310
283150cd
EZ
6311 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6312 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6313 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6314 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6315 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6316 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6317 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6318 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6319 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6320 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6321 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6322 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6323 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6324 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6325 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6326 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6327 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6328 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6329 sign_extend, sh64_nofp_frame_init_saved_regs,
6330 sh64_init_extra_frame_info, sh64_get_saved_register,
6331 sh64_extract_struct_value_address, sh64_pop_frame,
6332 sh64_push_arguments, sh64_extract_return_value,
6333 sh64_store_return_value, sh64_show_media_regs,
6334 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6335 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6336 sh_sh64_register_virtual_type,
6337 sh_sh64_register_convert_to_virtual,
6338 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6339 sh64_register_read, sh64_pseudo_register_write,
6340 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6341 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6342 sh64_do_pseudo_register, sh_compact_do_registers_info,
6343 sh64_do_registers_info, sh_gdbarch_init): New functions.
6344
3117ed25
EZ
63452002-05-10 Elena Zannoni <ezannoni@redhat.com>
6346
6347 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6348
2654e6d4
DJ
63492002-05-10 Daniel Jacobowitz <drow@mvista.com>
6350
6351 * linespec.c (decode_line_1): Check for a double quote after
6352 a filename correctly.
6353
9ab3e532
JB
63542002-05-10 Jim Blandy <jimb@redhat.com>
6355
6356 Properly track the size of the current objfile's .debug_line section.
6357 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6358 (DWARF_LINE_SIZE): New macro.
6359 (dwarf2_build_psymtabs_hard): Record the line section's size in
6360 the partial symbol table.
6361 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6362 symbol table.
6363
126fa72d
PS
63642002-05-10 Petr Sorfa <petrs@caldera.com>
6365
6366 * ia64-tdep.c: Handle breakpoints on L instruction type
6367 in MLX instruction bundle by moving the breakpoint to
6368 the third slot (X instruction type) as L holds only data.
6369
1f077a3e
KB
63702002-05-10 Kevin Buettner <kevinb@redhat.com>
6371
6372 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6373 (process_one_symbol): Complain about discarding local symbols
6374 due to a misplaced N_LBRAC entry.
6375
8120c9d5 63762002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6377
6378 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6379 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6380 decrease the depth we are at, in the case of templates.
361d1df0 6381
67b2c998
DJ
63822002-05-09 Daniel Jacobowitz <drow@mvista.com>
6383
6384 * mips-tdep.c (mips_float_register_type): New function.
6385 (mips_double_register_type): New function.
6386 (mips_print_register): Use them.
6387 (do_fp_register_row): Likewise.
6388
fd326606
DJ
63892002-05-09 Daniel Jacobowitz <drow@mvista.com>
6390
6609d9af 6391 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6392 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6393 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6394
bef35864
MS
63952002-05-09 Michael Snyder <msnyder@redhat.com>
6396
6397 * remote-rdp.c (remote_rdp_can_run): Remove.
6398
c55a3f73
TT
63992002-05-09 Tom Tromey <tromey@redhat.com>
6400
6401 * jv-valprint.c (java_val_print): Handle `char' as a special case
6402 of TYPE_CODE_INT.
6403
b8d5e71d
MS
64042002-05-09 Michael Snyder <msnyder@redhat.com>
6405
6406 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6407 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6408 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6409 str r(0123),[sp,#nn].
361d1df0 6410 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6411 order-independent by placing it in a loop.
6412
e2cd42dd
MS
64132002-05-06 Michael Snyder <msnyder@redhat.com>
6414
6415 * stabsread.c (read_type): Add recognition for new attribute:
6416 "@V;" means that an array type is actually a vector.
6417 This is analogous to the vector flag that's been added to dwarf2.
6418
3ce1502b
MK
64192002-05-09 Mark Kettenis <kettenis@gnu.org>
6420
6421 * i386-tdep.h (i386_abi): New enum.
6422 (struct gdbarch_tdep): Replace os_ident member with abi.
6423 (i386_gdbarch_register_os_abi): New prototype.
6424 * i386-tdep.c (i386_abi_names): New array.
6425 (process_note_abi_tag_sections): Removed.
6426 (process_note_sections): New function.
6427 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6428 (struct i386_abi_handler): New struct.
6429 (i386_abi_handler_list): New variable.
6430 (i386_gdbarch_register_os_abi): New function.
6431 (i386_gdbarch_init): Adapt for the changes given above.
6432
084c156a
DJ
64332002-05-08 Daniel Jacobowitz <drow@mvista.com>
6434
6435 * gregset.h: Say "GNU/Linux".
6436
6599f021
EZ
64372002-05-08 Elena Zannoni <ezannoni@redhat.com>
6438
6439 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6440 (build_gdbtypes): Build builtin_type_v2_float.
6441 (_initialize_gdbtypes): Register new builtin type.
6442
40af4b0c
AC
64432002-05-08 Andrew Cagney <ac131313@redhat.com>
6444
6445 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6446 (clear_gdbarch_swap): New function.
6447 (initialize_non_multiarch): Call.
6448 (gdbarch_update_p): Before calling init(), swap out and clear the
6449 existing architecture.
6450 * gdbarch.c: Regenerate.
6451
4fe84f46
JT
64522002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6453
6454 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6455 alphanbsd-tdep.c.
6456
4015edd1
JT
64572002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6458
6459 * sh-nbsd-nat.c: Rename to...
6460 * shnbsd-nat.c: ...this.
6461 * sh-nbsd-tdep.c: Rename to...
6462 * shnbsd-tdep.c: ...this.
6463 * sh-nbsd-tdep.h: Rename to...
6464 * shnbsd-tdep.h: ...this.
6465 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6466 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6467
0e2bd219
RE
64682002-05-08 Richard Earnshaw <rearnsha@arm.com>
6469
6470 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6471 concatenation for command help messages.
6472
13a38d45
JT
64732002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6474
6475 * NEWS: Note new sh*-*-netbsdelf* configuration.
6476 * configure.host: Set gdb_host_cpu to sh for all sh*.
6477 (sh*-*-netbsdelf*): New host.
6478 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6479 (sh*-*-netbsdelf*): New target.
6480 * sh-nbsd-nat.c: New file.
6481 * sh-nbsd-tdep.c: New file.
6482 * sh-nbsd-tdep.h: New file.
6483 * config/sh/nbsd.mh: New file.
6484 * config/sh/nbsd.mt: New file.
6485 * config/sh/nm-nbsd.h: New file.
6486 * config/sh/tm-nbsd.h: New file.
6487
d658f924
JT
64882002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6489
6490 * sh-tdep.c (sh_osabi_names): Declare.
6491 (process_note_abi_tag_sections): New function.
6492 (get_elfosabi): Ditto.
6493 (sh_gdbarch_register_os_abi): Ditto.
6494 (sh_dump_tdep): Ditto.
6495 _initialize_sh_tdep): Use gdbarch_register to register
6496 sh_gdbarch_init and sh_dump_tdep.
6497 * config/sh/tm-sh.h (sh_osabi): Declare.
6498 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6499
848cfffb
AC
65002002-05-07 Andrew Cagney <ac131313@redhat.com>
6501
6502 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6503 (thumb_scan_prologue): Ditto.
6504 (arm_find_callers_reg): Ditto.
6505 (arm_frame_chain): Ditto.
6506 (arm_init_extra_frame_info): Ditto.
6507 (arm_frame_saved_pc): Ditto.
6508 (arm_pop_frame): Ditto.
6509 (arm_push_return_address): New function.
6510 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6511 call_dummy_location, call_dummy_breakpoint_offset_p,
6512 call_dummy_breakpoint_offset, call_dummy_p,
6513 call_dummy_stack_adjust_p, call_dummy_words,
6514 sizeof_call_dummy_words, call_dummy_start_offset,
6515 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6516 call_dummy_address, push_return_address and push_dummy_frame for
6517 generic dummy frames.
6518
e7d717c0
JT
65192002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6520
6521 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6522 size computation for alloca.
6523 (sh_fp_frame_init_saved_regs): Likewise.
6524
7bbcf283
RE
65252002-05-07 Richard Earnshaw <rearnsha@arm.com>
6526
6527 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6528 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6529 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6530 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6531 * remote-rdp.c (remote_rdp_fetch_register): Use
6532 ARM_MAX_REGISTER_RAW_SIZE.
6533 (remote_rdp_store_register): Likewise.
6534
4657573b
ML
65352002-05-07 Michal Ludvig <mludvig@suse.cz>
6536
361d1df0 6537 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6538 added default labels to switch {} statements.
6539 * x86-64-tdep.c: Ditto.
6540 * x86-64-linux-nat.c: Ditto.
6541
010f3b2f
JT
65422002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6543
6544 * solib.h: Protect against multiple inclusion.
6545
debd256d
JB
65462002-05-06 Jim Blandy <jimb@redhat.com>
6547
9ab3e532
JB
6548 Add first preprocessor macro-expansion files.
6549 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6550 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6551 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6552 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6553 (COMMON_OBS): Add macrotab.o, macroexp.o.
6554 (macroexp.o, macrotab.o): New rules.
6555
debd256d
JB
6556 Separate the job of reading the line number info statement program
6557 header (...expialidocious) out into its own function.
6558 * dwarf2read.c (struct line_head, struct filenames, struct
6559 directories): Replace with...
6560 (struct line_header): New structure, containing the full
6561 contents of the statement program header, including the
6562 include directory and file name tables.
6563 (read_file_scope): If we have line number info, instead of just
6564 calling dwarf_decode_lines to do all the work, call
6565 dwarf_decode_line_header first to get a `struct line_header'
6566 containing the data in the statement program header, and then
6567 pass that to dwarf_decode_lines, which will pick up where that
6568 left off. Be sure to clean up the `struct line_header' object.
6569 (dwarf_decode_line_header, free_line_header, add_include_dir,
6570 add_file_name): New functions.
6571 (dwarf_decode_lines): Move all the code to read the statement
6572 program header into dwarf_decode_line_header. Take the line
6573 header it built as the first argument, instead of the offset to
6574 the compilation unit's line number info. Use the new `struct
6575 line_header' type instead of the old structures. No need to do
6576 cleanups here now, since we don't allocate anything.
6577 (dwarf2_statement_list_fits_in_line_number_section,
6578 dwarf2_line_header_too_long): New complaints.
6579
ac3aafc7
EZ
65802002-05-06 Elena Zannoni <ezannoni@redhat.com>
6581
6582 * gdbtypes.c (init_vector_type): New function.
6583 (build_builtin_type_vec128): Simplify the representation of SIMD
6584 registers.
6585 (build_gdbtypes): Initialize new builtin vector types.
6586 (_initialize_gdbtypes): Register new vector types with gdbarch.
6587 (builtin_type_v4_float, builtin_type_v4_int32,
6588 builtin_type_v8_int16, builtin_type_v16_int8,
6589 builtin_type_v2_int32, builtin_type_v4_int16,
6590 builtin_type_v8_int8): New (renamed) SIMD types.
6591
13e49980
MK
65922002-05-06 Mark Kettenis <kettenis@gnu.org>
6593
6594 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6595 (i387_fill_fxsave): Likewise.
6596
997b20b8
AO
65972002-05-05 Alexandre Oliva <aoliva@redhat.com>
6598
6599 * alpha-tdep.c (alpha_extract_return_value): Don't use
6600 non-constant array size in prototype.
6601
535c96ce
AC
66022002-05-04 Andrew Cagney <ac131313@redhat.com>
6603
6604 From Brian Taylor <briant at model dot com>:
6605 * ui-out.c (ui_out_field_core_addr): Use the function
6606 longest_local_hex_string_custom'to format addresses > 32 bits
6607 wide.
6608
6609 * ui-out.c (ui_out_field_core_addr): Update comment.
6610
bedfa57b
AC
66112002-05-04 Andrew Cagney <ac131313@redhat.com>
6612
6613 * stack.c (select_and_print_frame): Make static. Delete the
6614 parameter `level'.
6615 (func_command): Update call.
6616 (select_frame_command): Delete code computing the frame level.
6617 * frame.h (select_and_print_frame): Delete declaration.
6618
f621c63e
AC
66192002-05-04 Andrew Cagney <ac131313@redhat.com>
6620
6621 * sparc-tdep.c (sparc_get_saved_register): Comment why
6622 get_prev_frame call is safe.
6623
0f7d239c
AC
66242002-05-04 Andrew Cagney <ac131313@redhat.com>
6625
6626 * frame.h (select_frame): Delete level parameter.
6627 * stack.c (select_frame): Update. Use frame_relative_level to
6628 obtain the frame's level.
6629 (select_and_print_frame): Update call.
6630 (select_frame_command): Ditto.
6631 (up_silently_base): Ditto.
6632 (down_silently_base): Ditto.
6633 * ocd.c (ocd_start_remote): Ditto.
6634 * remote-rdp.c (remote_rdp_open): Ditto.
6635 * remote-mips.c (mips_initialize): Ditto.
6636 (common_open): Ditto.
6637 * remote-e7000.c (e7000_start_remote): Ditto.
6638 * m3-nat.c (select_thread): Ditto.
6639 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6640 (child_get_current_exception_event): Ditto.
6641 * varobj.c (varobj_create): Ditto.
6642 (varobj_update): Ditto.
6643 (c_value_of_root): Ditto.
6644 * tracepoint.c (finish_tfind_command): Ditto.
6645 * corelow.c (core_open): Ditto.
6646 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6647 * thread.c (info_threads_command): Ditto.
6648 (switch_to_thread): Ditto.
6649 * infrun.c (normal_stop): Ditto.
6650 (restore_selected_frame): Ditto.
6651 (restore_inferior_status): Ditto.
6652 * breakpoint.c (insert_breakpoints): Ditto.
6653 (watchpoint_check): Ditto.
6654 (bpstat_stop_status): Ditto.
6655 (do_enable_breakpoint): Ditto.
6656 * blockframe.c (flush_cached_frames): Ditto.
6657 (reinit_frame_cache): Ditto.
6658
71d6c7b1
AC
66592002-05-04 Andrew Cagney <ac131313@redhat.com>
6660
6661 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6662 maintainer.
6663
cda6c68a
JB
66642002-05-04 Jim Blandy <jimb@redhat.com>
6665
6666 * gdbtypes.c (replace_type): Doc fix.
6667
5c1c87f0
AC
66682002-05-04 Andrew Cagney <ac131313@redhat.com>
6669
6670 * valprint.c (strcat_longest): Delete commented out function.
6671 Update copyright.
6672
cd9bfe15
AC
66732002-05-04 Andrew Cagney <ac131313@redhat.com>
6674
6675 * MAINTAINERS: Mark a29k as deleted.
6676 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6677 Move new configurations to the top.
6678 * configure.tgt: Remove a29k.
6679 * config/a29k/tm-vx29k.h: Delete.
6680 * config/a29k/vx29k.mt: Delete.
6681 * config/a29k/tm-a29k.h: Delete.
6682 * config/a29k/a29k-udi.mt: Delete.
6683 * config/a29k/a29k.mt: Delete.
6684 * a29k-tdep.c: Delete.
6685 * remote-udi.c: Delete.
6686 * remote-mm.c: Delete.
6687 * remote-eb.c: Delete.
6688 * remote-adapt.c: Delete.
6689 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6690 * config/s390/s390x.mt: Ditto.
6691 * config/s390/s390.mt: Ditto.
6692 * config/sparc/sparclynx.mh: Ditto.
6693 * config/sparc/linux.mh: Ditto.
6694 * config/pa/hppaosf.mh: Ditto.
6695 * config/pa/hppabsd.mh: Ditto.
6696 * config/ns32k/nbsd.mt: Ditto.
6697 * config/mips/vr5000.mt: Ditto.
6698 * config/m68k/sun3os4.mh: Ditto.
6699 * config/m68k/nbsd.mt: Ditto.
6700 * config/m68k/m68klynx.mh: Ditto.
6701 * config/m32r/m32r.mt: Ditto.
6702 * config/i386/x86-64linux.mt: Ditto.
6703 * config/i386/nbsdelf.mt: Ditto.
6704 * config/i386/nbsd.mt: Ditto.
6705 * config/i386/i386lynx.mh: Ditto.
6706
bf0c5130
AC
67072002-05-04 Andrew Cagney <ac131313@redhat.com>
6708
6709 * target.c (debug_print_register): New function. Handle oversize
6710 registers.
6711 (debug_to_fetch_registers): Call.
6712 (debug_to_store_registers): Call.
6713
2ae1c2d2
JB
67142002-05-03 Jim Blandy <jimb@redhat.com>
6715
13a393b0
JB
6716 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6717 (read_type): Doc fix.
6718 * gdbtypes.c (replace_type): Doc fix.
6719
2ae1c2d2
JB
6720 * stabsread.c (multiply_defined_struct): New complaint.
6721 (read_struct_type): If the type we were passed isn't empty, or
6722 incomplete, don't read the new struct type into it; complain,
6723 and return the original type unchanged. Take a new `type_code'
6724 argument, which is the type code for the new type.
6725 (read_type): Rather than storing the type's type code here, pass
6726 it as an argument to read_struct_type, and let that take care of
6727 storing it. That way, we don't overwrite the original type code,
6728 so read_struct_type can use it to decide whether we're overwriting
6729 something we shouldn't.
6730 (complain_about_struct_wipeout): New function.
6731
8de9bdc4
AC
67322002-05-03 Andrew Cagney <ac131313@redhat.com>
6733
6734 * gdbarch.sh: Assert that gdbarch is non-NULL.
6735 * gdbarch.c: Regenerate.
6736
f773fdbb
JM
67372002-05-03 Jason Merrill <jason@redhat.com>
6738
6739 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6740 and return NULL.
6741
0e04a514
ML
67422002-05-03 Michal Ludvig <mludvig@suse.cz>
6743
6744 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6745 (x86_64_dwarf2gdb_regno_map_length),
6746 (x86_64_dwarf2_reg_to_regnum): Added.
6747 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6748 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6749 (_initialize_x86_64_tdep): Synced with the change above.
6750 (x86_64_skip_prologue): Reformulated message.
6751
065432a8
PM
67522002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6753
6754 * f-exp.y: Also use new prev_lexptr variable
6755 to improve error reporting. Based on Michael Snyder
6756 2002-04-24 dated patch to c-exp.y.
6757 * jv-exp.y: Likewise.
6758 * m2-exp.y: Likewise.
6759
a3162708
EZ
67602002-05-02 Elena Zannoni <ezannoni@redhat.com>
6761
6762 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6763 we are dealing with vectors.
6764
03620c38
PM
67652002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6766
6767 * config/m68k/tm-nbsd.h: Obvious fix,
6768 correct machine name.
6769
6604db2e
PM
67702002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6771
6772 * p-typeprint.c (pascal_type_print_base): Add support
6773 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6774
0906b739
PM
67752002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6776
6777 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6778 for fondamental pascal 'char' type.
6779
e2625b33
PM
67802002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6781
6782 * p-lang.h (is_pascal_string_type): Declaration changed,
6783 new sixth argument of type char ** added.
361d1df0 6784 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6785 changed. Args length_pos, length_size, string_pos, char_size
6786 can now be NULL. New argument arrayname set to the field
6787 name of the char array. Return value set to char array
6788 field index plus one.
361d1df0 6789 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6790 is_pascal_string_type function.
6791
cf17c188
AC
67922002-05-02 Andrew Cagney <cagney@redhat.com>
6793
6794 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6795 <cagney@redhat.com> change.
6796 * gdbarch.c: Regenerate.
6797
52bca491
AC
67982002-05-02 Andrew Cagney <cagney@redhat.com>
6799
6800 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6801 before probing for a new one. Detect errorenous gdbarch_init
6802 functions.
6803 * gdbarch.c: Regenerate.
6804
d5e72505
AC
68052002-05-01 Andrew Cagney <cagney@redhat.com>
6806
6807 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6808 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6809 * config/v850/tm-v850.h: Ditto. Update copyright.
6810
af566d9f
AC
68112002-04-30 Andrew Cagney <ac131313@redhat.com>
6812
6813 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6814 current_gdbarch.
6815
880d85fa
MS
68162002-04-30 Michael Snyder <msnyder@redhat.com>
6817
94c30b78
MS
6818 * arm-tdep.c: Whitespace clean-ups.
6819 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6820 should have been removed as part of 4/24 change.
6821
6f5987a6
KB
68222002-04-30 Kevin Buettner <kevinb@redhat.com>
6823
6824 * rs6000-tdep.c: Added comment describing how fpscr register
6825 numbers were chosen.
6826
1a113c93
MS
68272002-04-30 Michael Snyder <msnyder@redhat.com>
6828
6829 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6830
9a6f53fe
EZ
68312002-04-29 Elena Zannoni <ezannoni@redhat.com>
6832
6833 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6834 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6835 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6836
11ed25ac
KB
68372002-04-29 Kevin Buettner <kevinb@redhat.com>
6838
6839 From Louis Hamilton <hamilton@redhat.com>:
6840 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6841 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6842 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6843 not bfd-private xcoff data, to determine wordsize.
6844 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6845
ae232405
AC
68462002-04-29 Andrew Cagney <ac131313@redhat.com>
6847
6848 GDB 5.2 released from 5.2 branch.
6849
91fd20f7
ML
68502002-04-29 Michal Ludvig <mludvig@suse.cz>
6851
6852 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6853 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6854 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6855
2dc5091b
EZ
68562002-04-29 Elena Zannoni <ezannoni@redhat.com>
6857
6858 * rs6000-tdep.c (rs6000_extract_return_value,
6859 rs6000_store_return_value): Handle returning vectors.
6860 (rs6000_gdbarch_init): Use
6861 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6862 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6863 New function.
6864 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6865 vectors.
6866 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6867 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6868
2b9848d8
PM
68692002-04-24 Pierre Muller <ics.u-strasbg.fr>
6870
6871 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6872 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6873 with fprintf_unfiltered (gdb_stderr,...).
6874
f8d17dc5
PM
68752002-04-24 Pierre Muller <ics.u-strasbg.fr>
6876
6877 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6878 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6879 Replace fprintf (stderr,...
6880 with fprintf_unfiltered (gdb_stderr,....
6881 * remote-es.c: Likewise.
6882 * remote-os9k.c: Likewise.
6883 * remote-st.c: Likewise.
6884
2f2f1ad1
AS
68852002-04-28 Andreas Schwab <schwab@suse.de>
6886
6887 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6888 linux-proc.o and gcore.o.
6889
b6779aa2
AC
68902002-04-26 Michal Ludvig <mludvig@suse.cz>
6891
6892 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6893 code without frame pointers.
6894
7e57f5f4
AC
68952002-04-26 Andrew Cagney <ac131313@redhat.com>
6896
6897 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6898 ON_STACK is needed.
6899
2ceb85d0
BE
69002002-04-26 Ben Elliston <bje@redhat.com>
6901
6902 * target.c (do_xfer_memory): Correct reference to the new option
6903 "trust-readonly-sections".
6904
f5f8a009
EZ
69052002-04-26 Elena Zannoni <ezannoni@redhat.com>
6906
6907 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6908 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6909 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6910 vectors.
6911 (read_array_type): Record the fact that this array type is really a
6912 vector (i.e. are passed in by value).
6913
5868c862
JT
69142002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6915
6916 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6917 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6918 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6919 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6920 * alpha-linux-tdep.c: Include frame.h.
6921 (alpha_linux_sigcontext_addr): New function.
6922 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6923 alpha_linux_sigcontext_addr.
6924 * alpha-osf1-tdep.c: Include gdbcore.h.
6925 (alpha_osf1_sigcontext_addr): New function.
6926 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6927 alpha_osf1_sigcontext_addr.
6928 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6929 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6930
bfb01f37
AC
69312002-04-26 Andrew Cagney <ac131313@redhat.com>
6932
361d1df0 6933 * stack.c (selected_frame_level):
bfb01f37
AC
6934 (select_frame): Do not set selected_frame_level.
6935 * frame.h (selected_frame_level): Delete declaration.
6936
15813d3f
AC
69372002-04-26 Andrew Cagney <ac131313@redhat.com>
6938
6939 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6940 convert_from_func_ptr-addr when AIX / PowerOpen.
6941
6096c27a
AC
69422002-04-25 Andrew Cagney <ac131313@redhat.com>
6943
6944 * valops.c (hand_function_call): Call
6945 generic_save_call_dummy_addr.
6946 * frame.h (generic_save_call_dummy_addr): Declare.
6947 * blockframe.c (struct dummy_frame): Add fields call_lo and
6948 call_hi.
6949 (generic_find_dummy_frame): Check for PC in range call_lo to
6950 call_hi instead of entry_point_address.
6951 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6952 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6953 (generic_save_call_dummy_addr): New function.
6954
f510d44e
DM
69552002-04-24 David S. Miller <davem@redhat.com>
6956
6957 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6958 sparc_skip_prologue.
6959 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6960 information to find prologue when possible.
6961 (sparc_prologue_frameless_p): Call examine_prologue directly.
6962 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6963 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6964 second argument.
6965 (SKIP_PROLOGUE): Likewise.
6966
15d72a92
JT
69672002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6968
6969 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6970 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6971 indicate that the condition it was testing is always true.
6972 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6973 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6974 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6975
accc6d1f
JT
69762002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6977
6978 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6979 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6980 tdep->jb_pc and tdep->jb_elt_size.
6981 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6982 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6983 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6984 * alpha-nat.c (get_longjmp_target): Remove.
6985 (JB_ELEMENT_SIZE): Ditto.
6986 (JB_PC): Ditto.
6987 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6988 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6989 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6990 to alpha_get_longjmp_target.
6991 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6992 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6993 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6994
1bfdc549
AC
69952002-04-25 Andrew Cagney <ac131313@redhat.com>
6996
6997 * README: Update to GDB 5.2.
6998
1bd316f0
AC
69992002-04-25 Andrew Cagney <ac131313@redhat.com>
7000
7001 * gdbarch.sh (LC_ALL): Set to `c'.
7002
2e5ff58c
TR
70032002-04-25 Theodore A. Roth <troth@verinet.com>
7004
7005 * avr-tdep.c: Ran through gdb_indent.sh.
7006
e33ce519
TR
70072002-04-25 Theodore A. Roth <troth@verinet.com>
7008
7009 * MAINTAINERS: Add myself as AVR maintainer.
7010 * NEWS: Note new target avr.
7011
8818c391
TR
70122002-04-25 Theodore A. Roth <troth@verinet.com>
7013
7014 * Makefile.in: Add support for AVR target.
7015 * configure.tgt: Add support for AVR target.
7016 * avr-tdep.c: New file
7017 * config/avr/avr.mt: New file.
7018
79509c2d
TR
70192002-04-25 Theodore A. Roth <troth@verinet.com>
7020
7021 * MAINTAINERS: Add myself to write-after-approval.
7022
dac8068e
PM
70232002-04-24 Pierre Muller <ics.u-strasbg.fr>
7024
7025 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7026 with fprintf_unfiltered (gdb_stderr,....
7027
25bf3106
PM
70282002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7029
7030 Fix PR gdb/508.
7031 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7032
24467a86
PM
70332002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7034
7035 * p-exp.y: Also use new prev_lexptr variable
7036 to improve error reporting. Based on Michael Snyder
7037 2002-04-24 dated patch to c-exp.y.
7038
95b80706
JT
70392002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7040
7041 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7042 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7043 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7044 to 0.
7045 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7046 and struct value.
7047 (FUNCTION_START_OFFSET): Remove.
7048 (BREAKPOINT): Ditto.
7049
e90cc612
JT
70502002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7051
7052 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7053 * NEWS: Ditto.
7054
6c72f9f9
JT
70552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7056
7057 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7058 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7059 alpha_linux_pc_in_sigtramp.
7060 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7061 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7062 alpha_osf1_pc_in_sigtramp.
7063 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7064 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7065 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7066 alphafbsd_pc_in_sigtramp.
7067 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7068 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7069 alphanbsd_pc_in_sigtramp.
7070 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7071 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7072
5e4f3379
JT
70732002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7076
da8ca43d
JT
70772002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7078
7079 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7080 alphanbsd-tdep.c.
7081 (alphanbsd-nat.o): New dependency list.
7082 (alphanbsd-tdep.o): Ditto.
7083 * NEWS: Note new native NetBSD/alpha configuration.
7084 * alphanbsd-nat.c: New file.
7085 * alphanbsd-tdep.c: Ditto.
7086 * configure.host (alpha*-*-netbsd*): New host.
7087 * configure.tgt (alpha*-*-netbsd*): New target.
7088 * config/alpha/nbsd.mh: New file.
7089 * config/alpha/nbsd.mt: Ditto.
7090 * config/alpha/nm-nbsd.h: Ditto.
7091 * config/alpha/tm-nbsd.h: Ditto.
7092
36a6271d
JT
70932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7094
7095 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7096 (alpha-osf1-tdep.o): New dependency list.
7097 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7098 and skip_sigtramp_frame members.
7099 * alpha-linux-tdep.c: Include gdbcore.h.
7100 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7101 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7102 * alpha-osf1-tdep.c: New file.
7103 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7104 alpha-osf1-dep.c.
7105 (alpha_frame_past_sigtramp_frame): New function.
7106 (alpha_dynamic_sigtramp_offset): Ditto.
7107 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7108 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7109 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7110 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7111 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7112 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7113 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7114 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7115 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7116 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7117 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7118 to find_solib_trampoline_target.
7119 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7120 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7121 (SKIP_TRAMPOLINE_CODE): Remove.
7122 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7123 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7124 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7125 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7126 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7127 (PROC_SIGTRAMP_MAGIC): Ditto.
7128 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7129 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7130 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7131 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7132 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7133
2f4bc57b
JT
71342002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7135
7136 * NEWS: Note that Alpha targets are now multi-arch.
7137
665132f9
MS
71382002-04-24 Michael Snyder <msnyder@redhat.com>
7139
7140 * parser-defs.h (prev_lexptr): New external variable.
7141 * parse.c (parse_exp_1): Set prev_lexptr to null before
7142 calling the language-specific parser.
7143 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7144 (yyerror): Use prev_lexptr in error reporting.
7145
32872fa7
DJ
71462002-04-24 Daniel Jacobowitz <drow@mvista.com>
7147
7148 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7149 * gregset.h: If FILL_FPXREGSET is defined, provide
7150 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7151 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7152 is defined, call fill_fpxregset.
7153
57e76fac
MS
71542002-04-24 Roland McGrath <roland@frob.com>
7155
7156 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7157 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7158 (supply_gregset, supply_fpregset): New functions.
7159
7160 * gnu-nat.c (gnu_find_memory_regions): New function.
7161 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7162 (gnu_xfer_memory): Add a cast.
7163
f43845b3
MS
71642002-04-24 Michael Snyder <msnyder@redhat.com>
7165
361d1df0 7166 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7167 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7168 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7169 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7170 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7171 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7172
a0abec03
AC
7173Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7174
7175 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7176 NUM_PSEUDO_REGS can be used.
7177
d7bd68ca
AC
71782002-04-24 Andrew Cagney <ac131313@redhat.com>
7179
7180 * arch-utils.h: Update copyright.
7181
7182 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184
7185 * inferior.h (IN_SIGTRAMP): Delete definition.
7186 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7187 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7188
7189 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7190 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7191 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7192 (find_proc_framesize): Ditto.
7193 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7194 (alpha_init_extra_frame_info): Ditto.
7195 * infrun.c (handle_inferior_event): Ditto.
7196 (handle_inferior_event): Ditto.
7197 (check_sigtramp2): Ditto.
7198 * blockframe.c (create_new_frame): Ditto.
7199 (get_prev_frame): Ditto.
7200 * ppc-linux-tdep.c: Update comments.
7201 * i386-linux-tdep.c: Update comments.
7202 * breakpoint.c (bpstat_what): Update comment.
7203
4867e41e
DM
72042002-04-24 David S. Miller <davem@redhat.com>
7205
21d83aa5
DM
7206 * i960-tdep.c (register_in_window_p): New function.
7207 (i960_find_saved_register): Use it instead of
7208 REGISTER_IN_WINDOW_P.
7209 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7210
4867e41e
DM
7211 * symtab.h (find_stab_function_addr): Kill extern.
7212 * minsyms.c (find_stab_function_addr): Remove from here...
7213 * dbxread.c: ... to here, and mark it static.
7214
69cdf6a2
DM
72152002-04-20 David S. Miller <davem@redhat.com>
7216
7217 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7218 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7219
5a595886
DM
72202002-04-21 David S. Miller <davem@redhat.com>
7221
7222 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7223 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7224 (vx_write_register): Likewise.
7225
1da1a192
JB
72262002-04-23 J. Brobecker <brobecker@gnat.com>
7227
7228 * source.c (is_regular_file): New function.
7229 (openp): Check wether file to open is a regular file
7230 to avoid opening directories.
7231
baa6f10b
JT
72322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7233
7234 * findvar.c (extract_signed_integer): Cast printf argument
7235 to suppress format warning.
7236 (extract_unsigned_integer): Likewise.
7237 * infcmd.c (registers_info): Likewise.
7238 * top.c (get_prompt_1): Likewise.
7239 * valops.c (value_assign): Likewise.
7240 * valprint.c (print_decimal): Likewise.
7241
b2c4da81
L
72422002-04-22 H.J. Lu (hjl@gnu.org)
7243
7244 * c-exp.y (typebase): Support
361d1df0 7245
b2c4da81
L
7246 [long|long long|short] [signed|unsigned] [int|]
7247
7248 and
7249
7250 signed [long|long long|short] int
7251
f267bd6a
JT
72522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7253
7254 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7255 and vax-tdep.h.
7256 * vax-tdep.h: New file.
7257 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7258 Make several routines static.
7259 (vax_get_saved_register): New function.
7260 (vax_gdbarch_init): New function.
7261 (_initialize_vax_tdep): Register vax_gdbarch_init.
7262 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7263 Remove macros now under the control of gdbarch.
7264
da3c6d4a
MS
72652002-04-22 Michael Snyder <msnyder@redhat.com>
7266
11d3b27d
MS
7267 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7268 Some whitespace and coding standards tweaks.
da3c6d4a 7269
a33f7558
JT
72702002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7271
7272 * vax-tdep.c: Include regcache.h.
7273 (vax_call_dummy_words): New.
7274 (sizeof_vax_call_dummy_words): New.
7275 (vax_fix_call_dummy): New function.
7276 (vax_saved_pc_after_call): Ditto.
7277 * config/vax/tm-vax.h: Don't include regcache.h.
7278 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7279 (CALL_DUMMY): Remove.
7280 (CALL_DUMMY_WORDS): Define.
7281 (SIZEOF_CALL_DUMMY_WORDS): Define.
7282 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7283
47a73475
MS
72842002-04-18 Michael Snyder <msnyder@redhat.com>
7285
7286 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7287
52efde73
JT
72882002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7289
7290 * vax-tdep.c (vax_frame_chain): New function.
7291 (vax_push_dummy_frame): Ditto.
7292 (vax_pop_frame): Ditto.
7293 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7294 (FRAMELESS_FUNCTION_INVOCATION): Use
7295 generic_frameless_function_invocation_not.
7296 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7297 (POP_FRAME): Use vax_pop_frame.
7298
ea74468c
JT
72992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7300
7301 * vax-tdep.c (vax_store_struct_return): New function.
7302 (vax_extract_return_value): Ditto.
7303 (vax_store_return_value): Ditto.
7304 (vax_extract_struct_value_address): Ditto.
7305 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7306 vax_store_struct_return.
7307 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7308 (STORE_RETURN_VALUE): Use vax_store_return_value.
7309 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7310
5516aa92
JT
73112002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7312
7313 * vax-tdep.c (vax_frame_saved_pc): New function.
7314 (vax_frame_args_address_correct): Ditto.
7315 (vax_frame_args_address): Ditto.
7316 (vax_frame_locals_address): Ditto.
7317 (vax_frame_num_args): Move code to be in proximity to
7318 other frame-related functions.
7319 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7320 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7321 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7322 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7323 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7324
36af0b35
L
73252002-04-22 H.J. Lu (hjl@gnu.org)
7326
7327 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7328 includedir.
7329
ab62c900
JT
73302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7331
7332 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7333 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7334 (FRAME_INIT_SAVED_REGS): New macro.
7335
7232b100
JT
73362002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7337
7338 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7339
b70d2aee
JT
73402002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7341
7342 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7343 where needed.
7344 (fetch_osf_core_registers): Likewise.
7345 (supply_gregset): Likewise.
7346
a0e8a2d1 73472002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7348
a0e8a2d1
JB
7349 * symfile.h (get_section_index): Define.
7350 * symfile.c (get_section_index): New function.
7351 * mdebugread.c (SC_IS_SBSS): New macro.
7352 (SC_IS_BSS): Return true for the scBss storage class only, as
7353 the scSBss storage class refers to the .sbss section.
7354 (parse_partial_symbols): Discard the symbols which associated
7355 section does not exist.
7356 Make sure to use the .sbss section index for symbols which
7357 storage class is scBss, rather than using the .bss section index.
7358
51eb8b08
JT
73592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7360
7361 * vax-tdep.c: Update copyright years.
7362 (vax_register_name): New function.
7363 (vax_register_byte): Ditto.
7364 (vax_register_raw_size): Ditto.
7365 (vax_register_virtual_size): Ditto.
7366 (vax_register_virtual_type): Ditto.
7367 * config/vax/tm-vax.h: Update copyright years.
7368 (REGISTER_NAMES): Remove.
7369 (REGISTER_NAME): Define.
7370 (REGISTER_BYTE): Use vax_register_byte.
7371 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7372 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7373 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7374
6cc1c0a8
AC
73752002-04-21 Andrew Cagney <ac131313@redhat.com>
7376
7377 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7378 declaration
7379 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7380
9319a2fe
DM
73812002-04-21 David S. Miller <davem@redhat.com>
7382
7383 * arch-utils.c (generic_prologue_frameless_p): Kill
7384 SKIP_PROLOGUE_FRAMELESS_P code.
7385 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7386 references.
7387 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7388 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7389 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7390 references.
7391 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7392 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7393 (sparc_gdbarch_init): Pass it to
7394 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7395
e9ed6d01
JT
73962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7397
7398 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7399 (alphabsd-nat.o): New dependency list.
7400
36012033
JT
74012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7402
7403 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7404 alphafbsd-tdep.c.
7405 (alpha-linux-tdep.o): New dependency list.
7406 (alphafbsd-tdep.o): Likewise.
7407
3379287a
JT
74082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7409
7410 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7411 to here...
7412 * alpha-tdep.c: ...from here.
7413 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7414
4bcbd6cb
JT
74152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7416
7417 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7418 prototype from here...
7419 * alpha-tdep.h: ...to here.
7420
b31da25e
AC
74212002-04-21 Andrew Cagney <ac131313@redhat.com>
7422
7423 * frame.h (selected_frame_level): Document as deprecated.
7424 (frame_relative_level): Declare.
7425 * stack.c (frame_relative_level): New function.
7426 (selected_frame_level): Document as deprecated.
7427 (select_frame): Do not set the selected_frame_level.
7428
7429 * stack.c (frame_info, record_selected_frame): Update.
7430 (frame_command, current_frame_command): Update.
7431 (up_silently_base, up_command, down_silently_base): Update.
7432 (down_command): Update.
7433 * inflow.c (kill_command): Update.
7434 * tracepoint.c (finish_tfind_command): Update.
7435 * corelow.c (core_open): Update.
7436 * thread.c (info_threads_command): Update.
7437 (do_captured_thread_select): Update.
7438 * infcmd.c (finish_command): Update.
7439 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7440
9c1d6fe5
JT
74412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7442
7443 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7444
ab89facf
AC
74452002-04-21 Andrew Cagney <ac131313@redhat.com>
7446
7447 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7448 type const.
7449
82a4efa1
JT
74502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7451
7452 * alphafbsd-tdep.c: Update copyright years. Include
7453 alpha-tdep.h.
7454 (alphafbsd_use_struct_convention): Make static.
7455 (alphafbsd_init_abi): New function.
7456 (_initialize_alphafbsd_tdep): New function.
7457 * config/alpha/tm-fbsd.h: Update copyright years.
7458 (USE_STRUCT_CONVENTION): Remove.
7459
44dffaac
JT
74602002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7461
7462 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7463 an Alpha ABI variant.
7464 (alpha_abi_handler_list): Declare.
7465 (alpha_gdbarch_register_os_abi): New function.
7466 (alpha_gdbarch_init): Give registered ABI variant handlers a
7467 chance to tweak the gdbarch once we have set up defaults.
7468 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7469
65585be4
JT
74702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7473 to standard_coerce_float_to_double.
7474 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7475
d9b023cc
JT
74762002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7477
7478 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7479 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7480 from gdbarch_tdep rather than a constant.
7481 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7482 the default text address for all Alpha Unix ABIs.
7483 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7484 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7485
dc129d82
JT
74862002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7487
7488 * alpha-tdep.h: New file. Includes several Alpha target constants
7489 taken from...
7490 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7491 let gdbarch deal with.
7492 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7493 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7494 to dependency list.
7495 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7496 Alpha target register names.
7497 * alphabsd-nat.c: Likewise.
7498 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7499 Alpha target register names. Make serveral routines static.
7500 (alpha_get_saved_register): New function.
7501 (alpha_abi_names): New.
7502 (process_note_abi_tag_sections): New function.
7503 (get_elfosabi): New function.
7504 (alpha_gdbarch_init): New function.
7505 (alpha_dump_tdep): New function.
7506 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7507
d49d1e0a
AC
75082002-04-21 Andrew Cagney <ac131313@redhat.com>
7509
7510 * frame.c (find_saved_register): Delete #ifdef
7511 HAVE_REGISTER_WINDOWS code.
7512 * config/sparc/tm-sparc.h: Update comments.
7513 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7514
92e8c9ed
AC
75152002-04-21 Andrew Cagney <ac131313@redhat.com>
7516
7517 * i960-tdep.c (i960_find_saved_register): New function.
7518 (i960_get_saved_register): New function.
7519 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7520 (i960_get_saved_register): Declare.
7521 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7522
e1925118
DM
75232002-04-20 David S. Miller <davem@redhat.com>
7524
7525 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7526
29673b29
AC
75272002-04-20 Andrew Cagney <ac131313@redhat.com>
7528
7529 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7530 instead of NUM_PSEUDO_REGS.
7531
6c86dcd5
DM
75322002-04-20 David S. Miller <davem@redhat.com>
7533
7534 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7535 GDB_MULTI_ARCH_PARTIAL
7536 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7537 define, let tm-sp64.h do it.
7538
aa40ec90
JT
75392002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7540
7541 * frame.c (find_saved_register): Avoid a NULL pointer
7542 dereference and actually walk the frame list.
7543
0f79675b
AC
75442002-04-20 Andrew Cagney <ac131313@redhat.com>
7545
7546 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7547 sorted in most most-recent-used order. Document.
7548 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7549
f91305dd 75502002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7551
7552 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7553 instead of ->prev.
7554 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7555 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7556 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7557 instead of ->prev.
7558
73d322b1
EZ
75592002-04-19 Elena Zannoni <ezannoni@redhat.com>
7560
7561 Fix PR gdb/471.
7562 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7563 (build_builtin_type_vec128): Ditto.
7564 (append_composite_type_field): Fix calculation of type length in
7565 union case.
7566
ccd9a834
EZ
75672002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7568
7569 * config/djgpp/README: Update.
7570
7571 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7572 compiler warnings.
7573
a57f9e49
JT
75742002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7577 (alpha_setup_arbitrary_frame): ...to this.
7578 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7579 for alpha_setup_arbitrary_frame.
7580
f4f9705a
AC
75812002-04-18 Andrew Cagney <cagney@redhat.com>
7582
7583 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7584 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7585
f4f9705a
AC
7586 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7587 * target.h (memory_breakpoint_from_pc): Update declaration.
7588 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7589
7590 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7591 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7592 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7593 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7594 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7595 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7596 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7597 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7598 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7599 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7600 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7601 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7602
7603 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7604 const pointer.
7605 * monitor.c (monitor_insert_breakpoint): Ditto.
7606 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7607
7608 * config/mcore/tm-mcore.h: Update copyright.
7609 * mem-break.c: Ditto.
7610 * xstormy16-tdep.c: Ditto.
7611
29f319b8
PM
76122002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7613
7614 * p-exp.y: Add precedence rule for '^' token.
7615 This removes the shift/reduce conflicts.
7616 Remove the comment concerning these shift/reduce conflicts.
7617
ebeac11a
EZ
76182002-04-18 Elena Zannoni <ezannoni@redhat.com>
7619
7620 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7621 (registers_powerpc_nofp): New register set for processors
7622 without floating point unit.
7623
27c31547
DM
76242002-04-18 David S. Miller <davem@redhat.com>
7625
7626 * MAINTAINERS: Add myself to write-after-approval.
7627
47a73475
MS
76282002-04-17 Michael Snyder <msnyder@redhat.com>
7629
7630 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7631
953836b2
AC
76322002-04-17 Andrew Cagney <ac131313@redhat.com>
7633
7634 * rs6000-tdep.c (frame_initial_stack_address): Use
7635 frame_register_read to read the alloca_reg.
7636
8b0d4340
AC
76372002-04-17 Andrew Cagney <ac131313@redhat.com>
7638
7639 * frame.c (find_saved_register): Find saved registers in the next
7640 not prev frame.
7641 Fix PR gdb/365.
7642
d8864532
AC
76432002-04-17 Andrew Cagney <ac131313@redhat.com>
7644
7645 * gdbarch.sh (LANG): Set to ``c''.
7646
36cc83a3 76472002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7648
36cc83a3 7649 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7650
2f4150cc 76512002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7652
7653 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7654 Update copyright.
7655
628703c6 7656 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7657 Also fix PR gdb/391.
361d1df0 7658
56157b4a
AC
76592002-04-14 Andrew Cagney <ac131313@redhat.com>
7660
7661 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7662 * aclocal.m4, configure: Re-generate.
7663 Fix PR gdb/391.
361d1df0 7664
6d1e3329
EZ
76652002-04-14 Elena Zannoni <ezannoni@redhat.com>
7666
7667 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7668 instead of tm_print_insn.
7669
cb06fa07
EZ
76702002-04-14 Elena Zannoni <ezannoni@redhat.com>
7671
7672 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7673
f208ba17
AC
76742002-04-14 Andrew Cagney <ac131313@redhat.com>
7675
7676 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7677 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7678 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7679
20f01a46
DH
76802002-04-12 Don Howard <dhoward@redhat.com>
7681
7682 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7683 max_user_call_depth.
7684 (init_cmd_lists): Initialize the new value;
7685 * cli/cli-script.c (execute_user_command): Limit the call depth of
7686 user defined commands. This avoids a core-dump when user commands
7687 are infinitly recursive.
7688
a88376a3
KB
76892002-04-12 Kevin Buettner <kevinb@redhat.com>
7690
7691 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7692 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7693 from tdep struct instead of DEFAULT_LR_SAVE.
7694 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7695 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7696 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7697
f2172603
MS
76982002-04-12 Michael Snyder <msnyder@redhat.com>
7699
694f61fb 7700 * Remote.c: Spelling fix.
20fe79c8
MS
7701 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7702 If no symbol found for "sbrk", try "_sbrk".
7703 (make_output_phdrs): Use bfd_section_name.
7704 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7705 * eval.c: Indentation fix-ups.
169a7369
MS
7706 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7707 in case it gets applied to an address that is already
7708 in the instruction space.
de74f71f
MS
7709 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7710 * symfile.c: Fix indentation, long lines.
f2172603
MS
7711 * source.c: White space fix-up.
7712
cda5a58a
AC
77132002-04-12 Andrew Cagney <cagney@redhat.com>
7714
7715 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7716 * frame.c (frame_register_read): New function. Return non-zero on
7717 success.
7718 (read_relative_register_raw_bytes_for_frame): Delete.
7719 (read_relative_register_raw_bytes): Delete.
7720 * frame.h (frame_register_read): Declare.
7721 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7722 * sh-tdep.c: Ditto.
7723 * infcmd.c (do_registers_info): Ditto.
7724 * hppa-tdep.c: Ditto.
7725 * rs6000-tdep.c: Ditto.
7726 * h8500-tdep.c: Ditto.
7727 * mips-tdep.c: Ditto.
7728 * h8300-tdep.c: Ditto.
7729 * z8k-tdep.c: Ditto.
7730
2ea5f656
KB
77312002-04-12 Kevin Buettner <kevinb@redhat.com>
7732
7733 From Jimi X <jimix@watson.ibm.com>:
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7735 64-bit SysV ABI.
7736
27b15785
KB
77372002-04-12 Kevin Buettner <kevinb@redhat.com>
7738
7739 From Jimi X <jimix@watson.ibm.com>:
7740 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7741 bfd info.
7742
5d57ee30
KB
77432002-04-12 Kevin Buettner <kevinb@redhat.com>
7744
7745 From Jimi X <jimix@watson.ibm.com>:
7746 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7747 register sets for these processor variants.
7748
bc1e36ca
DJ
77492002-04-11 Daniel Jacobowitz <drow@mvista.com>
7750
bc1e36ca
DJ
7751 * regformats/reg-ppc.dat: Support FPSCR.
7752
e3f36dbd
KB
77532002-04-11 Kevin Buettner <kevinb@redhat.com>
7754
7755 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7756 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7757 Add fpscr as an invalid/unfetchable register.
7758 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7759 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7760 (fill_fpregset): Add support for register fpscr.
7761 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7762 (fill_gregset): Account for the fact that register ``mq'' might
7763 not exist.
7764 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7765 (registers_power): Add fpscr to register set at slot 71.
7766 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7767 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7768
943c9c25
MS
77692002-04-11 Michael Snyder <msnyder@redhat.com>
7770
7771 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7772 * configure: Regenerate.
7773 * config.in: Regenerate.
7774 * acconfig.h: Add define for _SYSCALL32.
7775 * core-sol2.c: Remove #define _SYSCALL32.
7776 * solib-legacy.c: Remove #define _SYSCALL32.
7777
d8c0a2e7
AC
77782002-04-10 Andrew Cagney <ac131313@redhat.com>
7779
7780 * stack.c (select_frame): Cleanup internal error message, do not
7781 use %p.
7782
7cc19214
AC
77832002-04-10 Andrew Cagney <ac131313@redhat.com>
7784
7785 * stack.c (select_frame): Check that selected_frame and the
7786 specified level are as expected.
7787 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7788 Update copyright.
7789 * frame.h (struct frame_info): Add field `level'. Update
7790 copyright.
7791 Work-in-progress PR gdb/464.
7792
67a2b77e
AC
77932002-04-10 Andrew Cagney <ac131313@redhat.com>
7794
7795 * maint.c (maint_print_section_info): Rename print_section_info.
7796 (print_bfd_section_info, print_objfile_section_info): Update.
7797 * inferior.h (struct gdbarch): Add opaque declaration.
7798 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7799 * gdbarch.h: Regenerate.
7800
8cfda98c
ML
78012002-04-10 Michal Ludvig <mludvig@suse.cz>
7802
7803 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7804 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7805 (kernel_u_size): Added.
7806 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7807 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7808
ca439ad2 78092002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7810
ca439ad2
JI
7811 * valarith.c (find_size_for_pointer_math): New function, either returns
7812 the size for a pointer's target, returns 1 for void *, or errors for
7813 incomplete types.
7814 (value_add, value_sub): use find_size_for_pointer_math.
7815
2f2893d9
DJ
78162002-04-09 Daniel Jacobowitz <drow@mvista.com>
7817
7818 * linux-low.c (linux_look_up_symbols): New hook.
7819 (linux_target_ops): Add linux_look_up_symbols.
7820 * remote-utils.c (decode_address): New function.
7821 (look_up_one_symbol): New function.
7822 * server.c (handle_query): Call target look_up_symbols hook.
7823 * server.h (look_up_one_symbol): Add prototype.
7824 * target.h (struct target_ops): Add look_up_symbols hook.
7825
96cb11df
AC
78262002-04-09 Andrew Cagney <ac131313@redhat.com>
7827
7828 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7829 override FP_REGNUM with frame->fp. Update copyright.
7830 * parse.c (num_std_regs, std_regs): Delete.
7831 (target_map_name_to_register): Do not search std_regs. Update
7832 function description.
7833 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7834 declarations. Update copyright.
7835 Fix PR gdb/251.
361d1df0 7836
97658e92
DJ
78372002-04-09 Daniel Jacobowitz <drow@mvista.com>
7838
7839 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7840 after the last symbol in a block.
7841
6044e3eb
PM
78422002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7843
7844 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7845 is non zero as a found symbol.
7846
0406ec40
AC
78472002-04-08 Andrew Cagney <ac131313@redhat.com>
7848
7849 * findvar.c: Include "builtin-regs.h".
7850 (value_of_register): Call value_of_builtin_reg when applicable.
7851 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7852 (target_map_name_to_register): Call
7853 builtin_reg_map_name_to_regnum.
7854 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7855 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7856 (builtin_regs_h): Define.
7857 (builtin-regs.o): New target.
7858 (findvar.o): Add $(builtin_regs_h).
7859 * builtin-regs.c, builtin-regs.h: New files.
7860 * std-regs.c: New file.
7861 Partial fix for PR gdb/251.
7862
56a6dfb9
KB
78632002-04-08 Kevin Buettner <kevinb@redhat.com>
7864
7865 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7866 it's no longer required.
7867
3a808432
AC
78682002-04-08 Andrew Cagney <ac131313@redhat.com>
7869
7870 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7871
7c40d541
KB
78722002-04-08 Kevin Buettner <kevinb@redhat.com>
7873
7874 From Jimi X <jimix@watson.ibm.com>:
7875 * rs6000-tdep.c (rs6000_software_single_step): Use
7876 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7877 and size. Use target_insert_breakpoint() and
7878 target_remove_breakpoint() to insert and remove breakpoints
7879 instead of explicit memory reads and writes.
7880
cc9836a8
KB
78812002-04-08 Kevin Buettner <kevinb@redhat.com>
7882
7883 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7884 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7885 ELF_OBJECT_FORMAT ifdef.
7886
7495d1dc
KB
78872002-04-08 Kevin Buettner <kevinb@redhat.com>
7888
7889 From Jimi X <jimix@watson.ibm.com>:
7890 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7891
4288e836
KB
78922002-04-08 Kevin Buettner <kevinb@redhat.com>
7893
7894 From Jimi X <jimix@watson.ibm.com>:
7895 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7896 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7897
a4e4e501
MK
78982002-04-07 Mark Kettenis <kettenis@gnu.org>
7899
7900 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7901 s/asprintf/xasprintf/.
7902 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7903
006defba
AC
79042002-04-07 Andrew Cagney <ac131313@redhat.com>
7905
7906 I believe Jeff Law denies responsability for this one:
7907 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7908 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7909 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7910 Work-around for PR gdb/366.
7911
7aa83cac
EZ
79122002-04-07 Elena Zannoni <ezannoni@redhat.com>
7913
7914 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7915 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7916 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7917
cf1fcca1
EZ
79182002-04-07 Elena Zannoni <ezannoni@redhat.com>
7919
7920 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7921 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7922 information.
7923
3f289e6f
AC
79242002-04-07 Andrew Cagney <ac131313@redhat.com>
7925
7926 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7927 maintainer.
7928
129188f6
AC
79292002-04-07 Andrew Cagney <ac131313@redhat.com>
7930
7931 * README (Reporting Bugs in GDB): Document the bug web page as the
7932 prefered way of submitting bugs.
7933 Fix PR gdb/402.
7934
1200cd6e
AC
79352002-04-06 Andrew Cagney <ac131313@redhat.com>
7936
7937 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7938 -1. Update comment.
7939 * gdbarch.h, gdbarch.c: Re-generate.
7940
2853c33c
AS
79412002-04-07 Andreas Schwab <schwab@suse.de>
7942
7943 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7944 buffer to regcache_collect.
7945
c2169756
AC
79462002-04-06 Andrew Cagney <ac131313@redhat.com>
7947
7948 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7949 * gdbarch.c, gdbarch.h: Re-generate.
7950
25f1b008
AC
79512002-04-06 Andrew Cagney <ac131313@redhat.com>
7952
7953 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7954 declaration. Fix -Werror.
7955
59263426
DJ
79562002-04-05 Daniel Jacobowitz <drow@mvista.com>
7957
7958 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7959 * gdbarch.c: Regenerate.
7960
f5db4da3
MS
79612002-04-05 Michael Snyder <msnyder@redhat.com>
7962
80f8a6eb
MS
7963 * breakpoint.c (clear_command): Rewrite middle section to
7964 combine two loops with identical control conditions.
7965 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7966 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7967
ad3dcc5c
L
79682002-04-05 H.J. Lu (hjl@gnu.org)
7969
7970 * solib-svr4.c (bkpt_names): Add "__start".
7971
f32e7a74
AC
79722002-04-04 Andrew Cagney <ac131313@redhat.com>
7973
7974 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7975 as test for 64 bit target.
7976
8227c0ff
AC
79772002-04-05 Andrew Cagney <ac131313@redhat.com>
7978
7979 * h8500-tdep.c (h8500_write_fp): Delete function.
7980 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7981 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7982 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7985 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7986 (s390_write_fp):
7987 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7988 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7989 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7990 (d10v_write_fp): Delete function.
7991 * inferior.h (write_fp, generic_target_write_fp): Delete
7992 declarations.
7993 * regcache.c (generic_target_write_fp): Delete function.
7994 (write_fp): Delete function.
7995 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7996 * gdbarch.h, gdbarch.c: Regenerate.
7997 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7998 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7999 (sparc64_write_fp): Delete declaration.
8000 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8001 (h8500_write_fp): Delete declaration.
8002
2757dd86
AC
80032002-04-04 Andrew Cagney <ac131313@redhat.com>
8004
8005 * sparc-tdep.c (sparc64_write_fp): Delete.
8006 (sparc_push_dummy_frame): Replace write_fp call with code to store
8007 the FP directly.
8008 (sparc_gdbarch_init): Do not initialize write_fp.
8009
c69255e1
KB
80102002-04-05 Kevin Buettner <kevinb@redhat.com>
8011
8012 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8013 clause.
8014
ae767bfb
JB
80152002-03-29 Jim Blandy <jimb@redhat.com>
8016
8017 * stack.c (get_selected_block): Add new argument `addr_in_block',
8018 used to return the exact code address we used to select the block,
8019 not just the block.
8020 * blockframe.c (get_frame_block, get_current_block): Same.
8021 * frame.h (get_frame_block, get_current_block,
8022 get_selected_block): Update declarations.
8023 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8024 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8025
84d2ac95
MS
80262002-04-05 Michael Snyder <msnyder@redhat.com>
8027
8028 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8029 warning message.
8030
596aa3bf
JB
80312002-04-05 J. Brobecker <brobecker@gnat.com>
8032
8033 * utils.c (xfullpath): New function.
8034 * defs.h (xfullpath): Add declaration.
8035 * source.c (openp): Use xfullpath in place of gdb_realpath to
8036 avoid resolving the basename part of filenames when the
8037 associated file is a symbolic link. This fixes a potential
8038 inconsistency between the filenames known to GDB and the
8039 filenames it prints in the annotations.
8040 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8041 to be able to match a filename with either the real filename, or
8042 the name of any symbolic link to this file.
8043 (lookup_partial_symtab): Ditto.
8044
c02f5703
MS
80452002-04-04 Michael Snyder <msnyder@redhat.com>
8046
8047 * breakpoint.c: Add support for hardware breakpoints in overlays.
8048 (overlay_events_enabled): New state variable.
8049 (insert_breakpoints): Use overlay_events_enabled to decide
8050 whether to attempt to set a breakpoint at the overlay load addr.
8051 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8052 (remove_breakpoint): Use overlay_events_enabled to decide
8053 whether breakpoints need to be removed from overlay load addr.
8054 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8055 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8056 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8057 disable_overlay_breakpoints): Update overlay_events_enabled.
8058
5fb290d7
DJ
80592002-04-04 Daniel Jacobowitz <drow@mvista.com>
8060
8061 * dwarf2read.c (struct function_range): New.
8062 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8063 (check_cu_functions): New.
8064 (read_file_scope): Initialize global function lists.
8065 Call dwarf_decode_line after processing children.
8066 (read_func_scope): Add to global function list.
8067 (dwarf_decode_lines): Call check_cu_functions everywhere
8068 record_line is called. Call record_line with a linenumber
8069 of 0 to mark sequence ends.
8070
7b3fabf0
ML
80712002-04-04 Michal Ludvig <mludvig@suse.cz>
8072
361d1df0 8073 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8074 change sync with glibc.
8075
bce58c09
JB
80762002-04-03 Jim Blandy <jimb@redhat.com>
8077
8078 * configure.in: Call AC_C_INLINE.
8079 * configure: Regenerated.
361d1df0 8080
2fccf04a
DJ
80812002-04-01 Daniel Jacobowitz <drow@mvista.com>
8082
8083 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8084 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8085
2d1bfe2e
MK
80862002-03-31 Mark Kettenis <kettenis@gnu.org>
8087
a5941fbf
MK
8088 * NEWS: Mention gcore support on FreeBSD/i386.
8089
a90cd31d
MK
8090 * fbsd-proc.c: New file.
8091 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8092 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8093
2d1bfe2e
MK
8094 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8095 while statement.
8096
9eb6e5a1
JB
80972002-03-29 Jim Blandy <jimb@redhat.com>
8098
8099 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8100 unescaped newlines in string literals, but newer ones don't. So
8101 escape them.
8102
f02df580
MS
81032002-03-26 Michael Snyder <msnyder@redhat.com>
8104 Andrew Cagney <cagney@redhat.com>
8105
361d1df0 8106 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8107 restore file to memory.
8108 * cli/cli-dump.h: New file.
8109 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8110 * NEWS: Mention new commands.
f02df580 8111
109f874e
MS
81122002-03-28 Michael Snyder <msnyder@redhat.com>
8113
8114 * symfile.c (symbol_file_add): Move test for null symbols to later.
8115
520f6ade
AC
81162002-03-27 Andrew Cagney <ac131313@redhat.com>
8117
8118 From veksler at il.ibm.com:
8119 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8120 the xstrduped original path.
8121 Fix PR gdb/417.
8122
d4654627
MS
81232002-03-27 Michael Snyder <msnyder@redhat.com>
8124
8125 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8126 * infcmd.c (_initialize_infcmd): Ditto.
8127 * language.c (_initialize_language): Ditto.
8128 * symfile.c (_initialize_symfile): Ditto.
8129 * top.c (_init_main): Ditto.
8130 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8131
6be8bc0c
EZ
81322002-03-27 Elena Zannoni <ezannoni@redhat.com>
8133
8134 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8135 vector registers handling.
8136 (skip_prologue): Handle new AltiVec instructions. Fill in new
8137 fields of frame data.
8138 (frame_get_saved_regs): Fill in information for AltiVec registers.
8139
12af6855
JB
81402002-03-27 Jim Blandy <jimb@redhat.com>
8141
8142 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8143 a function; leave this macro here to invoke that function.
8144 (symbol_init_mangled_name): Declaration for that function.
8145 * symtab.c (symbol_init_mangled_name): New function.
8146
dc672865
AC
81472002-03-27 Andrew Cagney <ac131313@redhat.com>
8148
8149 * valarith.c: Replace strerror with safe_strerror.
8150 * tracepoint.c: Ditto.
8151 * lin-lwp.c: Ditto.
8152 * go32-nat.c: Ditto.
8153 * inflow.c: Ditto.
8154 * gnu-nat.c: Ditto.
8155
d96429cd
AS
81562002-03-27 Andreas Schwab <schwab@suse.de>
8157
8158 * event-top.c (command_line_handler): Remove useless if.
8159
7e336ba1
AJ
81602002-03-27 Andreas Jaeger <aj@suse.de>
8161
8162 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8163 comment.
8164
de220d0f
ML
81652002-03-27 Michal Ludvig <mludvig@suse.cz>
8166
8167 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8168 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8169 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8170 (x86_64_linux_dr_get_status, supply_gregset),
8171 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8172 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8173 (x86_64_register_info_table): Add.
8174 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8175 (x86_64_register_raw_size, x86_64_register_virtual_type),
8176 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8177 general x86_64_register_info_table.
8178 (i386_gdbarch_init): gdbarch_register_bytes is now set
8179 dynamicaly during initialization.
8180 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8181 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8182
0e98d0a7
DJ
81832002-03-27 Daniel Jacobowitz <drow@mvista.com>
8184
8185 * gdbserver/server.c (main): Call target_signal_to_host_p
8186 and target_signal_to_host on signals received from the remote.
8187 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8188 target_signal_from_host on signals sent to the remote.
8189 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8190 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8191
3130066b
DJ
81922002-03-27 Daniel Jacobowitz <drow@mvista.com>
8193
8194 * signals/signals.c: Include "server.h" in gdbserver build.
8195 (target_signal_from_name): Don't use STREQ.
8196 (_initialize_signals): Likewise. Don't include function in
8197 gdbserver build.
8198
9aedf4f4
DJ
81992002-03-27 Daniel Jacobowitz <drow@mvista.com>
8200
8201 * signals.c: Moved to...
8202 * signals/signals.c: Here.
7e336ba1 8203 * Makefile (signals.o): Update.
9aedf4f4 8204
3fa41cdb
JL
82052002-03-26 Jeff Law (law@redhat.com)
8206
8207 * somread.c (som_symtab_read): Remove some commented out code and
8208 updated related comments. Do not set the minimal symbol table to
8209 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8210 in a dynamic executable.
8211 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8212 where we are unable to find the minimal symbol for the given
8213 PC value.
8214
ee677e8d
MS
82152002-03-25 Jeff Law (law@redhat.com)
8216
8217 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8218
e76e1718
ML
82192002-03-25 Michal Ludvig <mludvig@suse.cz>
8220
8221 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8222
18a642a1
AC
82232002-03-23 Andrew Cagney <ac131313@redhat.com>
8224
8225 * command.h: Update copyright.
8226 (struct cmd_list_element): Replace definition with opaque
8227 declaration.
8228 (enum cmd_types): Document that it will eventually be moved to
8229 cli/cli-decode.h
8230 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8231 (MALLOCED_REPLACEMENT): Delete macro.
8232 * Makefile.in (cli_decode_h): Add $(command_h).
8233 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8234 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8235 * completer.c: Include "cli/cli-decode.h".
8236 * maint.c: Include "cli/cli-decode.h".
8237 * cli/cli-decode.h: Include "command.h".
8238 (enum command_class): Delete.
8239 (enum cmd_types): Comment out.
8240 (enum cmd_auto_boolean): Delete.
8241 (enum var_types): Delete.
8242
b2875cc0
AC
82432002-03-23 Andrew Cagney <ac131313@redhat.com>
8244
8245 * cli/cli-decode.c: Include "gdb_assert.h".
8246 (add_set_or_show_cmd): New static function.
8247 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8248 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8249 all fields, such as func, from the set command.
8250
3b45974e
AC
82512002-03-23 Andrew Cagney <ac131313@redhat.com>
8252
8253 * MAINTAINERS (sh-elf): Change warning flag to -w.
8254
823ca731
AC
82552002-03-23 Andrew Cagney <cagney@redhat.com>
8256
8257 * defs.h (error): Add printf format attribute.
8258 * thread-db.c (thread_from_lwp): Fix error format string.
8259 * stack.c (parse_frame_specification): Ditto.
8260 * cli/cli-decode.c (undef_cmd_error): Ditto.
8261 * scm-lang.c (scm_lookup_name): Ditto.
8262 * tracepoint.c (trace_error): Ditto.
8263 * remote-utils.c (usage): Ditto.
8264 * remote.c (compare_sections_command): Ditto.
8265 Fix PR gdb/328.
8266
0e101458
AC
82672002-03-22 Andrew Cagney <ac131313@redhat.com>
8268
8269 * gdbtypes.c (append_composite_type_field): New function.
8270 (init_composite_type): New function.
8271 * gdbtypes.h (append_composite_type_field): Declare.
8272 (init_composite_type): Ditto.
8273
8e0662df
EZ
82742002-03-22 Elena Zannoni <ezannoni@redhat.com>
8275
8276 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8277 function.
8e0662df
EZ
8278 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8279 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8280 structure returning convention for SYSV ABI case, but not
8281 for GNU/Linux, FreeBSD, or NetBSD.
8282
3121eff0
DJ
82832002-03-22 Daniel Jacobowitz <drow@mvista.com>
8284
8285 * symtab.h (lookup_block_symbol): Add mangled_name argument
8286 to prototype.
8287
8288 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8289 with new mangled_name argument.
8290 * linespec.c (decode_line_1): Likewise.
8291 * valops (value_of_this): Likewise.
8292 * symtab.c (lookup_transparent_type): Likewise.
8293 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8294 (lookup_symbol): If we are given a mangled name, pass it down
8295 to lookup_symbol_aux.
8296 (lookup_block_symbol): If we are given a mangled name to check
8297 against, only return symbols which match it.
8298
349b409f
CF
82992002-03-22 Christopher Faylor <cgf@redhat.com>
8300
8301 * win32-nat.c (child_create_inferior): Check for proper shell to use
8302 here, in case the user changes it on the fly.
8303 (_initialize_inftarg): Remove shell path considerations.
8304
2a873819
EZ
83052002-03-21 Elena Zannoni <ezannoni@redhat.com>
8306
8307 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8308 for gdbarch_max_register_raw_size and max_register_virtual_size.
8309 Adjust copyright year.
8310
a1b9830c
DJ
83112002-03-21 Daniel Jacobowitz <drow@mvista.com>
8312
8313 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8314 in a function to cover the entire beginning of the function
8315 as well if it does not already.
8316
8b5790f2
TR
83172002-03-21 Tom Rix <trix@redhat.com>
8318
8319 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8320 (rs6000_ptrace64): Renamed from ptrace64.
8321
bdbe5747
MH
83222002-03-20 Martin M. Hunt <hunt@redhat.com>
8323
8324 * gdbserver/remote-utils.c (remote_open): Don't call
8325 getprotobyname, we're all using TCP here so just use
8326 IPPROTO_TCP.
7e336ba1 8327 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8328
83292002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8330
bdbe5747
MH
8331 * regcache.c (_initialize_regcache): No need to call
8332 build_regcache() at this time; it gets called whenever
8333 the gdbarch changes.
8334
7781cd62
DB
83352002-03-20 David O'Brien <obrien@FreeBSD.org>
8336
8337 * sparc-nat.c: Include sys/param.h where possible.
8338
f65ca430
DJ
83392002-03-20 Daniel Jacobowitz <drow@mvista.com>
8340
8341 Fix PR gdb/422.
8342 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8343 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8344 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8345 complex types.
8346 * stabsread.c (rs6000_builtin_type): Likewise.
8347 (read_sun_floating_type): Likewise.
8348
0c867556
PS
83492002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8350
8351 * stabsread.c (read_member_functions): Remove skip code for duplicate
8352 constructor/destructor methods. Use standard parsing for these
8353 methods and just do not chain them to the list of methods after
8354 parsing.
8355
12b9c64f
AO
83562002-03-19 Alexandre Oliva <aoliva@redhat.com>
8357
8358 * coffread.c: Remove redundant static declarations. Replace
8359 occurrences of `PTR' with `void *'.
8360 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8361 * top.h (quit_cover): Likewise.
8362 * defs.h (catch_errors): Likewise.
8363
349c5d5f
AC
83642002-03-18 Andrew Cagney <ac131313@redhat.com>
8365
8366 * defs.h (XMALLOC): Define.
8367 * gdb-events.sh (XMALLOC): Delete macro.
8368 * gdb-events.c, gdb-events.h: Regenerate.
8369 * gdbarch.sh (XMALLOC): Delete macro.
8370 * gdbarch.c: Regenerate.
8371 * serial.c (XMALLOC): Delete macro.
8372 * ui-file.c (XMALLOC): Ditto.
8373 * ser-unix.h (XMALLOC): Ditto.
8374 * sh-tdep.c (XMALLOC): Ditto.
8375 * ui-out.c (XMALLOC): Ditto.
8376 * utils.c (XMALLOC): Ditto.
8377 * i386-tdep.c (XMALLOC): Ditto.
8378 * gdb-events.c (XMALLOC): Ditto.
8379 * d10v-tdep.c (XMALLOC): Ditto.
8380 * cli-out.c (XMALLOC): Ditto.
8381
8382 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8383 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8384 * ui-file.c, ui-out.c: Ditto.
8385
7d0766f3
AC
83862002-03-18 Andrew Cagney <ac131313@redhat.com>
8387
8388 * command.h (struct cmd_list_element): Add field context.
8389 (set_cmd_context, get_cmd_context): Declare.
8390 * cli/cli-decode.h: Ditto.
8391 * cli/cli-decode.c (get_cmd_context): New function.
8392 (set_cmd_context): New function.
8393 (add_cmd): Initialize context.
8394 Part of fixing PR gdb/145 and PR gdb/146.
8395
5913bcb0
AC
83962002-03-17 Andrew Cagney <ac131313@redhat.com>
8397
1868c04e
AC
8398 * cli/cli-decode.c (cmd_type): New function.
8399 * command.h (cmd_type): Declare.
8400 * infrun.c (set_schedlock_func): Call function cmd_type.
8401 * kod.c (kod_set_os): Call cmd_type.
8402 * cris-tdep.c (cris_version_update): Use function cmd_type.
8403 (cris_mode_update, cris_abi_update): Ditto.
8404
5913bcb0
AC
8405 * command.h: (execute_cmd_post_hook): Declare.
8406 (execute_cmd_pre_hook): Declare.
8407 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8408 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8409 functions. Execute pre/post hook while ensuring that afterwords
8410 hook_in is cleared.
8411 * top.c (execute_command): Use execute_cmd_post_hook, and
8412 execute_cmd_pre_hook to execute pre/post commands.
8413 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8414 hook_stop_stub.
8415 (hook_stop_stub): Call execute_cmd_pre_hook.
8416
b51450c9
AC
84172002-03-17 Andrew Cagney <ac131313@redhat.com>
8418
8419 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8420 set'' and this leads to a core dump. Move xstrdup of
8421 operating_system to after check that it is not NULL.
8422
f66c9f11
AC
84232002-03-17 Andrew Cagney <ac131313@redhat.com>
8424
8e694ecf
AC
8425 * kod.c (kod_set_os): Remove unnecessary check that
8426 ``command->type'' is set_cmd.
8427
f66c9f11
AC
8428 * valprint.c (set_input_radix): Use input_radix.
8429 (set_output_radix): Use output_radix.
8430 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8431 isn't reverted.
8432
9d01611c
AC
84332002-03-16 Andrew Cagney <ac131313@redhat.com>
8434
8435 * value.h (struct value): Delete field ``substring_addr''. Change
8436 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8437 force_core_addr_align and force_pointer_aligh.
8438
8439 * value.h (struct value): Fix typo in above change.
9d01611c 8440
4156bb53
PS
84412002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8442
8443 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8444 to fix internal_error from ``maintenance print architecture''.
8445
0e5e3ea6
PS
84462002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8447
8448 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8449 for gcc versions after gcc-2.8.1.
8450
9b013045
PS
84512002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8452
8453 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8454 for method resolution. Restore adjustment of ``this'' pointer after
8455 calling value_struct_elt, which was accidentally removed during the
8456 HP merge.
8457
376c9600
AC
84582002-03-15 Andrew Cagney <ac131313@redhat.com>
8459
8460 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8461 value_of_register.
8462 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8463 get_saved_register.
8464 * value.h (value_of_register): Update.
8465
a4db0f07
RH
84662002-03-14 Richard Henderson <rth@redhat.com>
8467
8468 * configure.in: Detect declaration for canonicalize_file_name.
8469 * utils.c (canonicalize_file_name): Declare, if needed.
8470 (gdb_realpath): Prefer realpath if available and usable.
8471 * config.in, configure: Rebuild.
8472
96383835
RH
84732002-03-14 Richard Henderson <rth@redhat.com>
8474
8475 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8476 a constant array bound.
8477
8478 * MAINTAINERS: Add myself to write-after-approval.
8479
75245b24
MS
84802002-03-14 Michael Snyder <msnyder@redhat.com>
8481
8482 * symfile.c (syms_from_objfile): Return immediately if no syms.
8483 (symbol_file_add): Return immediately if no syms.
8484 (find_sym_fns): Return immediately if no syms.
8485
e641a1ca
ML
84862002-03-13 Michal Ludvig <mludvig@suse.cz>
8487
8488 * gdbserver/remote-util.c (remote_open): Print remote-side's
8489 IP address when remote debugging over the network.
7e336ba1 8490
df08bfec
DB
84912002-03-12 David O'Brien <obrien@FreeBSD.org>
8492
8493 * config/sparc/fbsd.mh: Fix copyright.
8494 * config/sparc/fbsd.mt: Likewise.
8495
9a57864f
RE
84962002-03-11 Richard Earnshaw <rearnsha@arm.com>
8497
8498 * MAINTAINERS: Fix typo in name of gdb warnings option.
8499 (x86-64): Fix formating so that this can be parsed by awk.
8500
dd7bf85e
DJ
85012002-03-10 Daniel Jacobowitz <drow@mvista.com>
8502
8503 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8504 * defs.h: Include "gdb/signals.h".
8505 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8506
33a0a2ac
ML
85072002-03-10 Michal Ludvig <mludvig@suse.cz>
8508
8509 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8510 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8511 from x86-64-tdep.h
8512
dd824b04
DJ
85132002-03-10 Daniel Jacobowitz <drow@mvista.com>
8514 Don Howard <dhoward@redhat.com>
8515
8516 * mips-tdep.c (ST0_FR): Define.
8517 (mips2_fp_compat): New function, temporarily disabled.
8518 (mips_read_fp_register_single): New function.
8519 (mips_read_fp_register_double): New function.
8520 (mips_print_register): Use them.
8521 (do_fp_register_row): Likewise.
8522
6a41ff59
AC
85232002-03-09 Andrew Cagney <ac131313@redhat.com>
8524
8525 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8526 approval''.
8527
4ea09c10
PS
85282002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8529
8530 * stabsread.c (read_member_functions): Fix is_stub test for
8531 static member functions, improve comment.
8532
6ccc741d
RE
85332002-03-07 Richard Earnshaw <rearnsha@arm.com>
8534
8535 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8536 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8537 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8538 commands that set boolean values.
8539 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8540 (arm_rdi_resume): Always initialize PC.
8541 (arm_rdi_open): Don't use rslt as a boolean.
8542 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8543 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8544 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8545 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8546
438013df
AO
85472002-03-06 Alexandre Oliva <aoliva@redhat.com>
8548
8549 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8550 * configure: Rebuilt.
8551
70ed8774
SC
85522002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8553
8554 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8555 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8556
5ba2abeb
AC
85572002-03-06 Andrew Cagney <ac131313@redhat.com>
8558
8559 * cli/cli-decode.c (set_cmd_completer): New function.
8560 * command.h (set_cmd_completer): Declare.
8561 * cli/cli-decode.h (set_cmd_completer): Ditto.
8562
8563 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8564 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8565 * win32-nat.c (_initialize_inftarg): Ditto.
8566 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8567 * proc-api.c (_initialize_proc_api): Ditto.
8568 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8569 * source.c (_initialize_source): Ditto.
8570 * exec.c (_initialize_exec): Ditto.
8571 * solib.c (_initialize_solib): Ditto.
8572 * top.c (init_main): Ditto.
8573 * tracepoint.c (_initialize_tracepoint): Ditto.
8574 * symfile.c (_initialize_symfile): Ditto.
8575 * printcmd.c (_initialize_printcmd): Ditto.
8576 * infcmd.c (_initialize_infcmd): Ditto.
8577 * corefile.c (_initialize_core): Ditto.
8578
f779ca99
AC
85792002-03-05 Andrew Cagney <ac131313@redhat.com>
8580
8581 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8582
01a3934b
AC
85832002-03-05 Andrew Cagney <ac131313@redhat.com>
8584
8585 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8586
37057839
AC
85872002-03-05 Andrew Cagney <ac131313@redhat.com>
8588
8589 * NEWS: Update headings, 5.2 has branched.
8590
c6ecbae5
DJ
85912002-03-04 Daniel Jacobowitz <drow@mvista.com>
8592
8593 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8594 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8595 (register_addr, REGISTER_RAW_SIZE): Likewise.
8596 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8597 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8598
e9f30c21
ML
85992002-03-03 Michal Ludvig <mludvig@suse.cz>
8600
8601 * MAINTAINERS (x86-64): Add myself.
8602 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8603 changed value_ptr -> struct value *
8604
54394ac3
DB
86052002-03-01 David O'Brien <obrien@FreeBSD.org>
8606
8607 * configure.host (sparc64-*-freebsd): Add.
8608 * configure.tgt: Likewise.
8609 * config/sparc/fbsd.mh: New file.
8610 * config/sparc/fbsd.mt: Likewise.
8611 * config/sparc/nm-fbsd.h: Likewise.
8612 * config/sparc/tm-fbsd.h: Likewise.
8613
bfe95955
DJ
86142002-03-01 Daniel Jacobowitz <drow@mvista.com>
8615
8616 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8617 regformats/reg-s390x.dat.
8618
f33c6cbf
AC
86192002-03-01 Andrew Cagney <ac131313@redhat.com>
8620
8621 * utils.c: Add FIXME explaining true/false problem.
8622
5ecaa7dd
AC
86232002-02-28 Andrew Cagney <ac131313@redhat.com>
8624
8625 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8626
2a251cc2
MC
86272002-02-28 Michael Chastain <mec@shout.net>
8628
8629 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8630
6a8031a3 86312002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8632
8633 * gdbserver/linux-s390-low.c: New file.
8634 * regformats/reg-s390.dat: New file.
8635 * regformats/reg-s390x.dat: New file.
8636 * gdbserver/configure.srv: Add S/390.
8637 * gdbserver/Makefile.in: Add S/390.
8638 * configure.tgt: Enable gdbserver for S/390.
8639
ac469903
EZ
86402002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8641
8642 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8643 first line of the doc string for "info dos", except at the end of
8644 the sentence, since the short help stops at the first period.
8645
985cb1a3
JM
86462002-02-28 Jason Merrill <jason@redhat.com>
8647
8648 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8649
c570663e
FF
86502002-02-27 Fred Fish <fnf@redhat.com>
8651
8652 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8653 comment (dumy -> dummy).
8654
43630227
PS
86552002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8656
8657 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8658
b84911e8
RB
86592002-02-27 Rodney Brown <rbrown64@csc.com.au>
8660
8661 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8662
58caa3dc
DJ
86632002-02-27 Daniel Jacobowitz <drow@mvista.com>
8664
8665 * gdbserver/acconfig.h: New file.
8666 * gdbserver/i387-fp.c: New file.
8667 * gdbserver/i387-fp.h: New file.
8668 * gdbserver/linux-x86-64.c: New file.
8669 * regformats/reg-x86-64.dat: New file.
8670 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8671 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8672 * gdbserver/configure.in: Add support for regsets.
8673 * gdbserver/config.in: Regenerate.
8674 * gdbserver/configure: Regenerate.
8675 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8676 * gdbserver/linux-low.h: New file.
8677 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8678 for regsets.
8679 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8680 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8681 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8682 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8683 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8684 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8685 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8686 "i387-fp.h". Add PTRACE_GETREGS and friends.
8687 * gdbserver/regcache.c (supply_register): New function.
8688 (supply_register_by_name): New function.
8689 (collect_register): New function.
8690 (collect_register_by_name): New function.
8691
93652174
DJ
86922002-02-27 Daniel Jacobowitz <drow@mvista.com>
8693
8694 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8695 (config.status): Add configure.srv dependency.
8696 (server_h): Add config.h dependency.
8697
a02e4a61
DJ
86982002-02-27 Daniel Jacobowitz <drow@mvista.com>
8699
8700 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8701 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8702 * gdbserver/configure.srv: Change i386-*-linux* to use
8703 reg-i386-linux.o.
8704
ce0eebec
AC
87052002-02-26 Andrew Cagney <ac131313@redhat.com>
8706
8707 * x86-64-tdep.c: Re-indent. Update copyright date.
8708
82dbc5f7
AC
87092002-02-26 Andrew Cagney <ac131313@redhat.com>
8710
8711 From Michal Ludvig <mludvig@suse.cz>:
8712 * x86-64-tdep.c (value.h): Delete.
8713 (gdb_assert.h): Include.
8714 (x86_64_register_convert_to_virtual,
8715 x86_64_register_convert_to_raw ): Add check which lets only
8716 floating-point values to be converted.
8717 (value_push): Delete.
8718 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8719 (i386_gdbarch_init): Number of register_bytes fixed.
8720
e4621584
AC
87212002-02-26 Andrew Cagney <ac131313@redhat.com>
8722
8723 * MAINTAINERS: Add x86-64 target.
8724
81a9a963
AC
87252002-02-26 Andrew Cagney <ac131313@redhat.com>
8726
8727 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8728 * osfsolib.c (solib_map_sections): Ditto.
8729 * irix5-nat.c (solib_map_sections): Ditto.
8730 * corelow.c (gdb_check_format): Ditto.
8731 * symfile.c (symfile_bfd_open): Ditto.
8732 * solib.c (solib_map_sections): Ditto.
8733 Fix PR gdb/354.
7e336ba1 8734
0f017ab9
AC
87352002-02-26 Andrew Cagney <ac131313@redhat.com>
8736
8737 * remote.c (_initialize_remote): By default, disable ``e'' and
8738 ``E'' step out-of-range packets.
8739
75738c29
AS
87402002-02-26 Andreas Schwab <schwab@suse.de>
8741
8742 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8743 m68k_linux_frame_saved_pc.
8744 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8745 in_sigtramp.
8746 (SIGCONTEXT_PC_OFFSET): Remove.
8747 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8748 m68k_linux_sigtramp_saved_pc): New functions.
8749 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8750 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8751 (UCONTEXT_PC_OFFSET): Define.
8752 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8753 non-RT and RT signal trampolines.
8754
7e8ed687
RE
87552002-02-26 Richard Earnshaw <rearnsha@arm.com>
8756
8757 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8758 (TARGET_NBPG, STACK_END_ADDR): Delete
8759 (VARIABLES_INSIDE_BLOCK): Delete.
8760
6972bc8b
AC
87612002-02-25 Andrew Cagney <ac131313@redhat.com>
8762
8763 * utils.c (perror_with_name): Make string parameter constant.
8764 (print_sys_errmsg): Ditto.
8765 (query): Ditto.
8766 * defs.h (perror_with_name): Update.
8767 (print_sys_errmsg): Update.
8768 (query): Update.
8769
aa32f823
DJ
87702002-02-25 Daniel Jacobowitz <drow@mvista.com>
8771
8772 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8773 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8774
19caaa45
PS
87752002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8776
8777 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8778 if it already matches the current architecture from the exec file.
8779 Include arch-utils.h for gdbarch_info_init prototype.
8780 * Makefile.in (rs6000-nat.o): Update dependencies.
8781
d951901f
EZ
87822002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8783
8784 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8785 list of exported variables.
8786
7ea81414
DJ
87872002-02-24 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * gdbserver/configure.srv: New file.
8790 * gdbserver/configure.in: Use configure.srv instead
8791 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8792 from it.
8793 * gdbserver/configure: Regenerated.
8794 * gdbserver/terminal.h: New file.
8795 * gdbserver/Makefile.in: Update for configure changes. Remove
8796 more unneeded include paths.
8797
080fe24b
AC
87982002-02-24 Andrew Cagney <ac131313@redhat.com>
8799
8800 From wiz at danbala:
8801 * config/sparc/tm-sp64.h: Fix grammar and typos.
8802 Fix PR gdb/287.
8803
8605d56e
AC
88042002-02-24 Andrew Cagney <ac131313@redhat.com>
8805
8806 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8807 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8808 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8809 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8810 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8811 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8812 * s390-tdep.c: Ditto.
92362027
AC
8813 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8814 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8815 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8816 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8817 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8818 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8819 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8820 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8821 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8822 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8823 Fix PR gdb/378.
7e336ba1 8824
8ed32cc0
AC
88252002-02-23 Andrew Cagney <ac131313@redhat.com>
8826
a3007b6f
AC
8827 * lin-thread.c: Delete file.
8828 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8829 to gdb_proc_service.h.
8830 * configure: Re-generate.
8831
50a9e2f1
AC
8832 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8833 * serial.c (serial_open): Delete check for "ocd".
8834 Fix PR gdb/349.
8835
8b6e7932
AC
8836 * Makefile.in (linux-thread.o): Delete target.
8837 * linux-thread.c: Delete file.
8838
d155c46b
AC
8839 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8840 renamed SH files to be consistent.
8841
8ed32cc0
AC
8842 * symtab.c (sort_search_symbols): Use xfree.
8843
0e18d038
RE
88442002-02-23 Richard Earnshaw <rearnsha@arm.com>
8845
8846 * arm-linux-tdep.c (arm_linux_init_abi): Register
8847 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8848 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8849 definition with undef, since we don't want the sysvr4 definition.
8850 (SKIP_TRAMPOLINE_CODE): Likewise.
8851
27aac7ff
AC
88522002-02-23 Andrew Cagney <ac131313@redhat.com>
8853
8854 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8855
8856 * configure.in: (AC_CHECK_FUNCS) Added test for
8857 canonicalize_file_name Regenerated.
8858 * config.in, configure: Regenerated.
8859 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8860 defined use canonicalize_file_name.
7e336ba1 8861
65a6e0ee
MC
88622002-02-23 Michael Chastain <mec@shout.net>
8863
8864 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8865
47b95330
AC
88662002-02-23 Andrew Cagney <ac131313@redhat.com>
8867
8868 * README: Remove references to cygnus.com.
8869 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8870 dot com'' form. Remove references to cygnus.com and sourceware.
8871
696f451b
AC
88722002-02-23 Andrew Cagney <ac131313@redhat.com>
8873
8874 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8875 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8876 1003.1-2001 no longer allows "head -1".
8877 * gdb/Makefile.in (version.c): Likewise.
8878 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8879 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8880 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8881
bbaca940
AC
88822002-02-23 Andrew Cagney <ac131313@redhat.com>
8883
8884 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8885 * command.h (cmd_cfunc_eq): Declare.
8886 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8887
8888 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8889 ``struct cmd_list_element *''.
8890 * cli/cli-cmds.c (is_complete_command): Update. Use
8891 cmd_cfunc_eq.
8892 * top.c (execute_command): Pass the command to
8893 is_complete_command.
8894 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8895
b8b8b047
AC
88962002-02-23 Andrew Cagney <ac131313@redhat.com>
8897
8898 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8899 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8900 architecture defines.
8901 * s390-tdep.c (s390_gdbarch_init): Likewise.
8902
19d3fc80
RE
89032002-02-23 Richard Earnshaw <rearnsha@arm.com>
8904
8905 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8906 (arm_linux_push_arguments): Likewise.
8907 (arm_linux_init_abi): Register them. Also register linux-specific
8908 call_dummy_words.
8909 (find_minsym_and_objfile): Use strcmp, not STREQ.
8910 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8911 (arm_linux_call_dummy_words): Delete declaration.
8912 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8913 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8914 declarations.
8915 (LOWEST_PC): Delete.
8916
3ab13650
PS
89172002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8918
8919 * maint.c (print_section_info): Do not prepend `0x' to filepos
8920 output, it will be handled by local_hex_string_custom.
8921
19d3fc80 89222002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8923
8924 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8925 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8926 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8927
d85a5daf
JB
89282002-02-22 Jim Blandy <jimb@redhat.com>
8929
8930 Indicate that the bcache functions don't change the strings
8931 they're passed.
8932 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8933 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8934
eeb25b8a
PM
89352002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8936
8937 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8938
6badb179
CF
89392002-02-21 Christopher Faylor <cgf@redhat.com>
8940
8941 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8942 find the complete path to a loaded DLL.
8943
e8717518
FF
89442002-02-21 Fred Fish <fnf@redhat.com>
8945
8946 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8947 that marks the end of the range of a function, enter a line number
8948 entry that has a line number of zero and a PC offset that matches
8949 the end of the function. This starts a range of PC's for which no
8950 line number information is known.
8951 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8952 PC's for which no line number info is found (line number is zero)
8953 then we didn't find any valid line information.
8954 * symtab.h: Document use of zero line number entry.
8955
9abe5450
EZ
89562002-02-21 Elena Zannoni <ezannoni@redhat.com>
8957
8958 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8959 (have_ptrace_getvrregs): Define for run time checks.
8960 (gdb_vrregset_t): New type for Altivec register handling.
8961 (fetch_register, store_register): Fetch/store altivec register
8962 when needed.
8963 (fetch_altivec_register, store_altivec_register): New functions.
8964 (supply_vrregset, fill_vrregset): New functions.
8965 (fetch_altivec_registers, store_altivec_registers): New functions.
8966 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8967 registers as well.
8968
aaa38bb5
AJ
89692002-02-21 Jiri Smid <smid@suse.cz>
8970
8971 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8972
b34db576
RE
89732002-02-21 Richard Earnshaw <rearnsha@arm.com>
8974
8975 * Makefile.in (armnbsd-nat.o): Update dependencies.
8976 * armnbsd-nat.c (supply_gregset): New function. Common code to
8977 supply the integer register set.
8978 (supply_fparegset): New function. Similar for FPA registers.
8979 (fetch_regs, fetch_fp_regs): Use them.
8980 (fetch_core_registers): Likewise.
8981 (fetch_elfcore_registers): New function.
8982 (arm_netbsd_elfcore_fns): New core-file type specification.
8983 (_initialize_arm_netbsd_nat): Register it.
8984
3e56fc4b
RE
89852002-02-21 Richard Earnshaw <rearnsha@arm.com>
8986
8987 * armnbsd-nat.c: Include gdbcore.h.
8988 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8989 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8990 'void' to declaration, to shut up ARI.
8991 (fetch_core_registers): Make static. Rewrite using supply_register.
8992 (arm_netbsd_core_fns): New core-file type specification.
8993 (_initialize_arm_netbsd_nat): New function.
8994
097f6b0b
CF
89952002-02-21 Christopher Faylor <cgf@redhat.com>
8996
8997 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8998 value.
8999
c914e0cc
CF
90002002-02-20 Christopher Faylor <cgf@redhat.com>
9001
9002 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9003 fails.
9004
385fa495
DJ
90052002-02-20 Daniel Jacobowitz <drow@mvista.com>
9006
9007 * jv-exp.y (parse_number): Change type of implicit longs
9008 to builtin_type_uint64.
9009
e5f1222d
DJ
90102002-02-20 Daniel Jacobowitz <drow@mvista.com>
9011
9012 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9013 to be an integer instead of a `union wait'.
9014
75c9abc6
DJ
90152002-02-20 Daniel Jacobowitz <drow@mvista.com>
9016
9017 * mips-linux-nat.c: Call the operating system GNU/Linux.
9018 * mips-linux-tdep.c: Likewise.
9019 * mips-tdep.c: Likewise.
9020
551792a5
DJ
90212002-02-20 Daniel Jacobowitz <drow@mvista.com>
9022
9023 Fix PR gdb/265.
9024 * jv-exp.y (parse_number): Handle 64-bit integers.
9025
ee6e2b82
DJ
90262002-02-20 Daniel Jacobowitz <drow@mvista.com>
9027
9028 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9029 AC_STDC_HEADERS to AC_HEADER_STDC.
9030 * gdbserver/configure: Regenerated.
9031
a48442a0
RE
90322002-02-20 Richard Earnshaw <rearnsha@arm.com>
9033
9034 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9035 is defined.
9036 * sparc-tdep.c (get_longjmp_target): Likewise.
9037
fe419ffc
RE
90382002-02-20 Richard Earnshaw <rearnsha@arm.com>
9039
9040 * News: Add news about ARM and Multi-arch. Mention the new target
9041 arm*-*-netbsd*.
9042
5832ed7e
JB
90432002-02-19 Jim Blandy <jimb@redhat.com>
9044
9045 * stabsread.c (error_type_complaint): Improve error message.
9046
84563040
DJ
90472002-02-19 Daniel Jacobowitz <drow@mvista.com>
9048
9049 * gdbserver/README: Update documentation.
9050 * gdbserver/configure.in: Update configury to match documentation.
9051 * gdbserver/Makefile.in: Likewise.
9052 * gdbserver/configure: Regenerated.
9053 * gdbserver/aclocal.m4: New file, generated by aclocal.
9054 * gdbserver/config.in: New file, generated by autoheader.
9055
375fd65b
RE
90562002-02-19 Richard Earnshaw <rearnsha@arm.com>
9057
9058 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9059 armnbsd-nat.c.
9060
08216dd7
RE
90612002-02-19 Richard Earnshaw <rearnsha@arm.com>
9062
9063 * arm-tdep.h (enum arm_float_model): New enum.
9064 (struct gdbarch_tdep): Add fp_model.
9065 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9066 up floating-point conversions until we know the floating-point model
9067 in use by the inferior. Don't complain about being unable to
9068 determine the ABI of the inferior when we don't have one.
9069 (arm_extract_return_value): Support different floating-point models.
9070 (arm_store_return_value): Likewise.
aaa38bb5 9071 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9072 ARM_FLOAT_SOFT.
9073 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9074
65d6d66a
PS
90752002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9076
9077 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9078 of ``current_gdbarch''.
9079
47221191
RE
90802002-02-19 Richard Earnshaw <rearnsha@arm.com>
9081
9082 * armnbsd-nat.c : ANSIfy all function declarations.
9083 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9084 (fetch_inferior_registers): Re-implement in terms of above.
9085 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9086 (store_inferior_registers): Re-implement in terms of above.
9087
fdf39c9a
RE
90882002-02-19 Richard Earnshaw <rearnsha@arm.com>
9089
aaa38bb5 9090 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9091 kernel.
9092 * arm-linux-tdep.c: Likewise.
9093 * config/arm/tm-linux.h: Likewise.
9094
93247f88
RE
90952002-02-19 Richard Earnshaw <rearnsha@arm.com>
9096
9097 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9098 * config/arm/nbsd.mt (TM_FILE): Delete.
9099 * config/arm/tm-nbsd.h: Delete.
9100
d7b486e7
RE
91012002-02-19 Richard Earnshaw <rearnsha@arm.com>
9102
9103 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9104 Initialize CALL_DUMMY_LENGTH.
9105
41d39a95
RE
91062002-02-19 Richard Earnshaw <rearnsha@arm.com>
9107
9108 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9109 function.
9110 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9111 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9112 defines one thing and that is incorrect for this port.
9113 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9114
e1195560
PM
91152002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9116
9117 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9118
c1748f97
PM
91192002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9120
9121 * win32-nat.c (display_selector): New function. Displays information
9122 about the information returned by GetThreadSelectorEntry API function.
9123 (display_selectors): New function. Displays the infomation of
9124 the selector given as argument, or of CS, DS ans FS selectors
9125 if no argument is given.
9126 ( _initialize_inftarg): Add "w32" as info prefix command.
9127 Add "info w32 selector" as command calling display_selectors.
9128
e41e6bbf
PM
91292002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9130
9131 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9132 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9133 if not defined.
9134
0d3a9f48
RE
91352002-02-18 Richard Earnshaw <rearnsha@arm.com>
9136
9137 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9138
3fb4b924
RE
91392002-02-18 Richard Earnshaw <rearnsha@arm.com>
9140
9141 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9142 (arm_fix_call_dummy): Call it.
9143 (arm_call_dummy_breakpoint_offset): Delete.
9144 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9145 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9146
7f55af32
AC
91472002-02-18 Andrew Cagney <ac131313@redhat.com>
9148
9149 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9150 Default to func_frame_chain_valid.
9151 * gdbarch.h, gdbarch.c: Re-generate.
9152 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9153
05f13b9c
EZ
91542002-02-18 Elena Zannoni <ezannoni@redhat.com>
9155
9156 * ppc-linux-nat.c: Update copyright.
9157 (fetch_register, store_register): Add tid parameter, don't compute
9158 tid here.
9159 (fetch_ppc_registers, store_ppc_registers): Add tid
9160 parameter. Pass it along to callees.
9161 (fetch_inferior_registers, store_inferior_registers): Compute tid
9162 here, and pass it to calleed functions.
9163 (fill_gregset, supply_fpregset): Clean up formatting.
9164
d7afb4c9
RE
91652002-02-18 Richard Earnshaw <rearnsha@arm.com>
9166
9167 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9168 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9169
9df628e0
RE
91702002-02-18 Richard Earnshaw <rearnsha@arm.com>
9171
9172 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9173 * gdbarch.c gdbarch.h: Regenerate.
9174 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9175 function.
9176 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9177 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9178 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9179
9180 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9181 * arm-tdep.c (arm_get_longjmp_target): New function.
9182 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9183 this to a positive value register arm_get_longjmp_target as the
9184 longjmp handler.
9185 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9186 (arm_linux_init_abi): Set up longjmp description in tdep.
9187 * armnbsd-nat.c (get_longjmp_target): Delete.
9188 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9189 description in tdep.
9190 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9191 (get_longjmp_target): Delete declaration.
9192 (GET_LONGJMP_TARGET): Delete.
9193 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9194 (GET_LONGJMP_TARGET): Delete.
9195
57bc8964
KB
91962002-02-17 Kevin Buettner <kevinb@redhat.com>
9197
9198 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9199 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9200 of ``current_gdbarch''.
9201
83d31a92
TT
92022002-02-17 Tom Tromey <tromey@redhat.com>
9203
9204 * cli/cli-cmds.c (compare_strings): New function.
9205 (complete_command): Only print each unique item once.
9206 * completer.h (complete_line): Declare.
9207 * completer.c (complete_line): New function.
9208 (line_completion_function): Use it.
9209
17ef5d92
AC
92102002-02-16 Andrew Cagney <ac131313@redhat.com>
9211
9212 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9213 * gdbarch.h, gdbarch.c: Re-generate.
9214
491b8946
DJ
92152002-02-16 Daniel Jacobowitz <drow@mvista.com>
9216
9217 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9218
92192002-02-16 Daniel Jacobowitz <drow@mvista.com>
9220
9221 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9222 * valops.c (value_arg_coerce): Don't take the address of a reference
9223 to convert an argument to a reference.
9224
dfe7f3ac
CF
92252002-02-15 Christopher Faylor <cgf@redhat.com>
9226
9227 * win32-nat.c (get_image_name): New function.
9228 (handle_load_dll): Use get_image_name function.
9229 (get_child_debug_event): Avoid registering debug events until possibly
9230 execed process is started.
9231 (child_create_inferior): Allow invocation via shell so that command
9232 line redirection, etc. works ok.
9233 (_initialize_inftarg): Add new command: "set shell" to control whether
9234 a shell is used to start a process.
9235
1d33e73a
DJ
92362002-02-15 Daniel Jacobowitz <drow@mvista.com>
9237
9238 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9239 instead of find_register_by_number.
9240 (cannot_store_register): Likewise.
9241
48cd0caa
PM
92422002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9243
aaa38bb5 9244 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9245 fprintf_unfiltered (gdb_stderr, ...).
9246
8656e7d8
DJ
92472002-02-15 Daniel Jacobowitz <drow@mvista.com>
9248
9249 * gdbserver/gdbserver.1: Document --attach.
9250
66e810cd
RE
92512002-02-15 Richard Earnshaw <rearnsha@arm.com>
9252
9253 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9254 descriptions.
9255 * arm-tdep.c (arm_default_arm_le_breakpoint)
9256 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9257 (arm_default_thumb_be_breakpoint): New. Initialize them from
9258 traditional breakpoint defines.
9259 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9260 (arm_gdbarch_init): Initialize new breakpoint variables.
9261 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9262 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9263 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9264 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9265 code out to ...
9266 (arm_netbsd_init_abi_common): ... here; new function.
9267 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9268 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9269 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9270 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9271
97e03143
RE
92722002-02-15 Richard Earnshaw <rearnsha@arm.com>
9273
9274 * arm-tdep.h (enum arm_abi): New enum.
9275 (struct gdbarch_tdep): New structure.
9276 (LOWEST_PC): Provide a default.
9277 (arm_gdbarch_register_os_abi): Declare new function.
9278 * arm-tdep.c (arm_abi_names): New array.
9279 (process_note_abi_tag_sections): New function.
9280 (get_elfosabi): New function.
9281 (arm_gdbarch_register_os_abi): New function.
9282 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9283 support for that ABI has been built in, then call the appropriate
9284 configuration routine. Use gdbarch_num_regs() to get the number
9285 of registers.
9286 (arm_dump_tdep): New function.
9287 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9288 place-holder functions.
9289 (_initialize_arm_tdep): Register them.
9290 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9291
9292 * armnbsd-tdep.c: New file.
9293 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9294 * config/arm/nbsd.mt (TDEPFILES): Add it.
9295 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9296
9297 * armnbsd-nat.c: Include regcache.h.
9298 * Makefile.in (armnbsd-nat.o): Update dependency list.
9299
9300 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9301
ad68be46
DJ
93022002-02-14 Daniel Jacobowitz <drow@mvista.com>
9303
9304 * gdbserver/Makefile.in: Fix typos in target rules.
9305
003d6d1d
DJ
93062002-02-14 Daniel Jacobowitz <drow@mvista.com>
9307
aaa38bb5 9308 Fix part of PR gdb/267.
003d6d1d
DJ
9309 * linespec.c (find_methods): Handle constructors specially for now.
9310
6b230f1b
CV
93112002-02-14 Corinna Vinschen <vinschen@redhat.com>
9312
9313 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9314 handling.
9315 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9316 standard_coerce_float_to_double().
9317
1ea98d12
CF
93182002-02-14 Christopher Faylor <cgf@redhat.com>
9319
9320 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9321 GDBINIT_FILENAME.
9322
dd47e6fd
EZ
93232002-02-14 Elena Zannoni <ezannoni@redhat.com>
9324
9325 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9326 find_variant_by_name, because it confuses the multiarch
9327 framework. Return NULL if there isn't an architecture with the
9328 user supplied name, instead of forcing a different one without
9329 recording the change with the multiarch machinery.
9330 (find_variant_by_name): Delete.
9331
d7e39b9e
PS
93322002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9333
9334 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9335 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9336
76e42a4f
MH
93372002-02-13 Martin M. Hunt <hunt@redhat.com>
9338
aaa38bb5 9339 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9340 print_frame_info_listing_hook, set current_source_symtab.
9341
0a30fbc4
DJ
93422002-02-14 Daniel Jacobowitz <drow@mvista.com>
9343
9344 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9345 and remove unused $(INCLUDE_DIR).
9346 Add regcache.c to OBS.
9347 Add generated register protocol files to clean target.
9348 Update dependencies for new objects, obsolete old target code.
9349
9350 * gdbserver/linux-low.c: Remove all platform-specific code to
9351 new files. Remove various dead code. Update to use regcache
9352 functionality.
9353 * gdbserver/remote-utils.c (fromhex): Add return statement
9354 to quiet warning.
9355 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9356 constant.
9357 (input_interrupt): Add integer parameter to match prototype
9358 of a signal handler.
9359 (outreg): Use register_data ().
9360 (prepare_resume_reply): Use gdbserver_expedite_regs.
9361 * gdbserver/server.c (main): Dynamically allocate own_buf because
9362 PBUFSIZ is no longer constant. Use registers_to_string () and
9363 registers_from_string ().
9364 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9365 for error (), fatal (), and warning (). Update definition of
9366 PBUFSIZ to use regcache functionality. Add include guard.
9367 * gdbserver/utils.c (fatal): Add missing ``const''.
9368 (warning): New function.
9369
9370 * regformats/regdat.sh: Include "regcache.h" in generated files.
9371 Provide init_registers () function.
9372 * regformats/regdef.h: Add prototype for set_register_cache ().
9373 Add include guard.
9374
9375 * gdbserver/linux-arm-low.c: New file.
9376 * gdbserver/linux-i386-low.c: New file.
9377 * gdbserver/linux-ia64-low.c: New file.
9378 * gdbserver/linux-m68k-low.c: New file.
9379 * gdbserver/linux-mips-low.c: New file.
9380 * gdbserver/linux-ppc-low.c: New file.
9381 * gdbserver/linux-sh-low.c: New file.
9382
9383 * gdbserver/regcache.c: New file.
9384 * gdbserver/regcache.h: New file.
9385
9386 * gdbserver/low-linux.c: Removed obsolete file.
9387
4cc841d0
DJ
93882002-02-14 Daniel Jacobowitz <drow@mvista.com>
9389
9390 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9391 * config/i386/linux.mt: Likewise.
9392 * config/ia64/linux.mt: Likewise.
9393 * config/m68k/linux.mh: Likewise.
9394 * config/powerpc/linux.mh: Likewise.
9395 * config/mips/linux.mt: Likewise.
9396
9397 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9398
9399 * config/i386/i386lynx.mh: Mark gdbserver variables
9400 as (currently) obsolete for this target.
9401 * config/i386/nbsd.mt: Likewise.
9402 * config/i386/nbsdelf.mt: Likewise.
9403 * config/m32r/m32r.mt: Likewise.
9404 * config/m68k/m68klynx.mh: Likewise.
9405 * config/m68k/nbsd.mt: Likewise.
9406 * config/m68k/sun3os4.mh: Likewise.
9407 * config/mips/vr5000.mt: Likewise.
9408 * config/ns32k/nbsd.mt: Likewise.
9409 * config/pa/hppabsd.mh: Likewise.
9410 * config/pa/hppaosf.mh: Likewise.
9411 * config/powerpc/nbsd.mt: Likewise.
9412 * config/rs6000/rs6000lynx.mh: Likewise.
9413 * config/s390/s390.mt: Likewise.
9414 * config/s390/s390x.mt: Likewise.
9415 * config/sparc/sparclynx.mh: Likewise.
9416 * config/sparc/sun4os4.mh: Likewise.
9417 * config/i386/x86-64linux.mt: Likewise.
9418 * config/sparc/linux.mh: Likewise.
9419
a85f51e7
DJ
94202002-02-14 Daniel Jacobowitz <drow@mvista.com>
9421
9422 * configure.tgt: Configure gdbserver only for known working
9423 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9424 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9425 SUBDIRS if it is configured. Update comment for ${nativefile}.
9426 * configure: Regenerated.
9427
65554fef
MS
94282002-02-13 Michael Snyder <msnyder@redhat.com>
9429
670a52db
MS
9430 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9431
6dbdc4a3
MS
9432 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9433 (default_gcore_mach): Just return 0, work around a problem in bfd.
9434 (default_gcore_target): OK to return NULL if exec_bfd is null.
9435 (make_mem_sec): Use a cast, avoid a warning.
9436
9437 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9438 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9439 sizeof (host pointer) != sizeof (target pointer)).
9440 (procfs_make_note_section): Avoid overflow in psargs string.
9441
aaa38bb5 9442 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9443 implementation return an error.
9444
94452002-02-13 Rodney Brown <rbrown64@csc.com.au>
9446
9447 * procfs.c (procfs_make_note_section): Provide a default definition
9448 (for alpha-dec-osf4.0f). Fix typos.
9449
1e4d76e7
EZ
94502002-02-13 Elena Zannoni <ezannoni@redhat.com>
9451
9452 * linux-proc.c: Add include of regcache.h.
9453 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9454
b6d1a1d5
AC
94552002-02-13 Andrew Cagney <ac131313@redhat.com>
9456
9457 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9458 * memattr.c (create_mem_region): Disallow useless empty region.
9459 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9460 non-overlapping.
b6d1a1d5 9461
6c6ea35e
MC
94622002-02-13 Michael Chastain <mec@shout.net>
9463
9464 * defs.h: Kill CONST_PTR.
9465 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9466 * c-lang.c (c_builtin_types): Likewise.
9467 * ch-lang.c (ch_builtin_types): Likewise.
9468 * f-lang.c (f_builtin_types): Likewise.
9469 * language.c (unknown_builtin_types): Likewise.
9470 * m2-lang.c (m2_builtin_types): Likewise.
9471 * p-lang.c (pascal_builtin_types): Likewise.
9472 * scm-lang.c (c_builtin_types): Likewise.
9473
3e0b0f48
KS
94742002-02-13 Keith Seitz <keiths@redhat.com>
9475
9476 * arm-tdep.h (arm_get_next_pc): Add declaration.
9477
67255d04
RE
94782002-02-13 Richard Earnshaw <rearnsha@arm.com>
9479
9480 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9481 with other related struct-returning functions.
9482 (arm_extract_struct_value_address): New function.
9483 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9484 initialize float_format, double_format and long_double_format as
9485 appropriate to the endianness of the target.
9486 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9487 (arm_use_struct_convention): Delete declaration.
9488 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9489
079777f6
KS
94902002-02-13 Keith Seitz <keiths@redhat.com>
9491
9492 * defs.h (core_addr_to_string_nz): New function.
9493
34588f23
MK
94942002-02-13 Mark Kettenis <kettenis@gnu.org>
9495
9496 Apply missing bits of 2002-01-15 patch.
9497 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9498 (fill_fpregset): Use i387_fill_fsave.
9499
49b563f9
KS
95002002-02-12 Keith Seitz <keiths@redhat.com>
9501
49b563f9
KS
9502 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9503 (core_addr_to_string_nz): New function.
9504
aeb98c60
RE
95052002-02-11 Richard Earnshaw <rearnsha@arm.com>
9506
9507 * arm-linux-nat.c: Really include arm-tdep.h.
9508 * config/arm/tm-linux.h (struct type, struct value): Declare.
9509
65554fef
MS
95102002-02-11 Michael Snyder <msnyder@redhat.com>
9511
9512 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9513 (gcore section): Ifdef for Solaris and Unixware only.
9514 (procfs_do_thread_registers): Unixware needs one lwpstatus
9515 per thread (not one prstatus or pstatus).
9516 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9517 not over all gdb threads. For unixware, call elfcore_write_pstatus
9518 once before iterating over threads.
9519
34e8f22d
RE
95202002-02-11 Richard Earnshaw <rearnsha@arm.com>
9521
9522 * arm-tdep.h: New file.
9523 * arm-tdep.c: Include arm-tdep.h.
9524 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9525 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9526 (arm_print_float_info, arm_register_type, convert_to_extended)
9527 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9528 (arm_extract_return_value, arm_register_name): Make static.
9529 (arm_software_single_step): Similarly. Fix types in declaration.
9530 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9531 (arm_store_return_value, arm_store_struct_return): New functions.
9532 (arm_gdbarch_init): Register the above functions. Also register
9533 call_dummy_start_offset, sizeof_call_dummy_words,
9534 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9535 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9536 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9537 prologue_cache.saved_regs here, rather than ...
9538 (_initialize_arm_tdep): ... here.
9539 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9540 declarations.
9541 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9542 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9543 (arm_print_float_info, arm_register_type, convert_to_extended)
9544 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9545 (arm_extract_return_value, arm_register_name): Delete declarations.
9546 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9547 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9548 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9549 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9550 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9551 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9552 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9553 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9554 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9555 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9556 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9557 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9558 interface.
9559 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9560 * remote-rdi.c remote-rdp.c: Likewise.
9561 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9562 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9563 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9564 definition.
9565
9566 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9567 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9568 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9569 from non-ARM_ prefixed definitions.
9570 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9571 all uses of above.
9572 * remote-rdi.c remote-rdp.c: Likewise.
9573 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9574
148754e5
RE
95752002-02-11 Richard Earnshaw <rearnsha@arm.com>
9576
9577 * arm-tdep.c (arm_frameless_function_invocation)
9578 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9579 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9580 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9581 (arm_pop_frame, arm_get_next_pc): Make static.
9582 (arm_gdbarch_init): Register above in gdbarch structure.
9583 (arm_read_fp): Renamed from arm_target_read_fp.
9584 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9585 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9586 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9587 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9588 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9589 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9590 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9591 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9592 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9593 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9594 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9595
434d2d4f
DJ
95962002-02-10 Daniel Jacobowitz <drow@mvista.com>
9597
9598 * symtab.c (compare_search_syms): New function.
9599 (sort_search_symbols): New function.
9600 (search_symbols): Sort symbols after searching rather than
9601 before.
9602
55241689
AC
96032002-02-10 Andrew Cagney <ac131313@redhat.com>
9604
9605 * NEWS: Linux -> GNU/Linux.
9606
028c194b
AC
96072002-02-10 Andrew Cagney <ac131313@redhat.com>
9608
9609 * gdbarch.sh: For for level one methods, disallow a definition
9610 when partially multi-arched. Add comments explaining rationale.
9611 * gdbarch.h: Re-generate.
9612
6acf50cd
AC
96132002-02-10 Andrew Cagney <ac131313@redhat.com>
9614
9615 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9616 multi-arch partial.
aaa38bb5 9617
50248794
AC
96182002-02-10 Andrew Cagney <ac131313@redhat.com>
9619
9620 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9621 field. Use diff -u.
9622 * gdbarch.c: Re-generate.
9623
c30e0066
AC
96242002-02-10 Andrew Cagney <ac131313@redhat.com>
9625
9b56c5f3 9626 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9627 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9628 partial.
9629
6e6d6484
AC
96302002-02-10 Andrew Cagney <ac131313@redhat.com>
9631
9632 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9633 multi-arch partial.
9634 (PUSH_ARGUMENTS): Switch to using predefault.
9635 * gdbarch.c: Regenerate.
9636
c203844d
AC
96372002-02-10 Andrew Cagney <ac131313@redhat.com>
9638
9639 * valops.c (PUSH_ARGUMENTS): Delete definition.
9640 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9641 partial. Default to default_push_arguments.
9642 * gdbarch.h, gdbarch.c: Regenerate.
9643
b5a2688f
AC
96442002-02-09 Andrew Cagney <ac131313@redhat.com>
9645
9646 * defs.h (throw_exception): Rename return_to_top_level. Update
9647 comments.
9648 * utils.c (error_stream, internal_verror, quit): Ditto.
9649 * top.c (throw_exception, catcher): Ditto.
9650 * sparclet-rom.c (sparclet_load): Ditto.
9651 * remote.c (interrupt_query, minitelnet): Ditto.
9652 * remote-sds.c (interrupt_query): Ditto.
9653 * remote-mips.c (mips_error, mips_kill): Ditto.
9654 * ocd.c (interrupt_query): Ditto.
9655 * monitor.c (monitor_interrupt_query): Ditto.
9656 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9657 * target.h: Update comment.
aaa38bb5 9658
b5a2688f 9659 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9660
2fa5c1e0
AC
96612002-02-09 Andrew Cagney <ac131313@redhat.com>
9662
9663 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9664 default_double_format.
9665 * gdbarch.h, gdbarch.c: Re-generate.
9666 * findvar.c (floatformat_unknown): Delete variable definition.
9667 * doublest.h (floatformat_unknown): Delete variable declaration.
9668
da966255
JB
96692002-02-09 Jim Blandy <jimb@redhat.com>
9670
9671 * stabsread.c (read_type): Add code to parse Sun's syntax for
9672 prototyped function types.
9673
123a4891
AC
96742002-02-09 Andrew Cagney <ac131313@redhat.com>
9675
9676 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9677 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9678
fb39c8f3
PS
96792002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9680
9681 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9682 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9683 now _initialize_xcoffsolib gets called again and overrides the
9684 commands from solib.c in a native configuration.
9685
0b87a11d
MK
96862002-02-09 Mark Kettenis <kettenis@gnu.org>
9687
9688 * doublest.c (store_typed_floating): Don't try to return a value.
9689 Fixes PR gdb/290.
9690
bdc2fc72
JB
96912002-02-08 Jim Blandy <jimb@redhat.com>
9692
9693 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9694 is prototyped and has no arguments, print its argument list as
9695 `(void)'.
9696
da69bbcf
CD
96972002-02-08 Chris Demetriou <cgd@broadcom.com>
9698
9699 * MAINTAINERS (write-after-approval): Add myself.
9700 (paper-trail): I've escaped!
aaa38bb5 9701
b69571f5
CF
97022002-02-08 Christopher Faylor <cgf@redhat.com>
9703
9704 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9705 changes.
9706 (_initialize_check_for_gdb_ini): Ditto.
9707
f6871398
MH
97082002-02-08 Martin M. Hunt <hunt@redhat.com>
9709
9710 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9711 xaprintf -> xasprintf.
9712
4e52d31c
PM
97132002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9714
9715 * win32-nat.c: Remove use of printf and sprintf functions.
9716
39bbf761
RE
97172002-02-08 Richard Earnshaw <rearnsha@arm.com>
9718
9719 * arm-tdep.c (arm_frame_chain_valid): Make static.
9720 (arm_push_arguments): Likewise.
9721 (arm_gdbarch_init): New function.
9722 (_initialize_arm_tdep): Call it.
9723 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9724 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9725 (FRAME_CHAIN_VALID): Delete.
9726 (arm_frame_chain_valid): Delete declaration.
9727 (PUSH_ARGUMENTS): Delete.
9728 (arm_push_arguments): Delete declaration.
9729 (CALL_DUMMY_P): Delete.
9730
9c9532c9
CV
97312002-02-08 Andrew Cagney <ac131313@redhat.com>
9732 Corinna Vinschen <vinschen@redhat.com>
9733
9734 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9735 on builtin float types.
9736
4e8f7a8b
DJ
97372002-02-08 Daniel Jacobowitz <drow@mvista.com>
9738
9739 * utils.c: Include <curses.h> before "bfd.h".
9740 * tui/tui-hooks.c: Likewise.
9741 * tui/tui.c: Likewise.
9742 * tui/tuiCommand.c: Likewise.
9743 * tui/tuiData.c: Likewise.
9744 * tui/tuiDataWin.c: Likewise.
9745 * tui/tuiDisassem.c: Likewise.
9746 * tui/tuiGeneralWin.c: Likewise.
9747 * tui/tuiIO.c: Likewise.
9748 * tui/tuiLayout.c: Likewise.
9749 * tui/tuiRegs.c: Likewise.
9750 * tui/tuiSource.c: Likewise.
9751 * tui/tuiSourceWin.c: Likewise.
9752 * tui/tuiStack.c: Likewise.
9753 * tui/tuiWin.c: Likewise.
9754
cd4bffcf
EZ
97552002-02-07 Elena Zannoni <ezannoni@redhat.com>
9756
9757 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9758 to include space for pseudoregs as well. Update loops accordingly.
9759 (sh_fp_frame_init_saved_regs): Ditto.
9760 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9761
26806ce2
AC
97622002-02-07 Andrew Cagney <ac131313@redhat.com>
9763
9764 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9765 Add Richard Earnshaw to Arm maintainers.
9766
97fdab62
AC
97672002-02-07 Andrew Cagney <ac131313@redhat.com>
9768
a6b98203
AC
9769 * defs.h (warning_begin): Delete declaration.
9770
97fdab62
AC
9771 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9772 Delete macro.
9773
78b29b40
MS
97742002-02-07 Michael Snyder <msnyder@redhat.com>
9775
aaa38bb5 9776 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9777 Logic bug, remove misplaced else.
9778
d8849953
KD
97792002-02-07 Klee Dienes <klee@apple.com>
9780
9781 * fork-inferior.c (fork_inferior): Add '!' to the list of
9782 characters that need to be quoted when building a string for the
9783 shell. Quote '!' specifically with a backslash, since CSH chokes
9784 when trying to evaluate "str!str".
aaa38bb5 9785
095778a0
NC
97862002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9787
9788 * rdi-share/host.h: Only provide a typedef for bool if it is not
9789 defined.
9790
1900040c
MS
97912002-02-04 Michael Snyder <msnyder@redhat.com>
9792
9793 * breakpoint.h (enum bptype): Add new overlay event bp type.
9794 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9795
1900040c
MS
9796 * breakpoint.c (create_internal_breakpoint): New function.
9797 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9798 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9799 (create_thread_event_breakpoint): Ditto.
9800 (create_solib_event_breakpoint): Ditto.
9801 (create_overlay_event_breakpoint): New function.
9802 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9803 (update_breakpoints_after_exec): Delete and re-initialize
9804 overlay event breakpoints after an exec. Add FIXME comment
9805 about longjmp breakpoint.
9806 (print_it_typical): Ignore overlay event breakpoints.
9807 (print_one_breakpoint): Ditto.
9808 (mention): Ditto.
9809 (bpstat_what): Do not stop for overlay event breakpoints.
9810 (delete_breakpoint): Don't delete overlay event breakpoints.
9811 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9812 (breakpoint_re_set): Re-create overlay event breakpoint.
9813
9814 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9815 (overlay_manual_command): Disable overlay breakpoints.
9816 (overlay_off_command): Disable overlay breakpoints.
9817
082fc60d
RE
98182002-02-06 Richard Earnshaw <rearnsha@arm.com>
9819
9820 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9821 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9822 to here from config/tm-arm.h.
9823 (coff_sym_is_thumb): Make static.
9824 (arm_elf_make_msymbol_special): New function.
9825 (arm_coff_make_msymbol_special): New function.
9826 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9827 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9828 (coff_sym_is_thumb): Delete declaration.
9829 (arm_elf_make_msymbol_special): Declare.
9830 (arm_coff_make_msymbol_special): Declare.
9831 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9832 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9833
039c5766
RE
98342002-02-06 Richard Earnshaw <rearnsha@arm.com>
9835
9836 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9837
98382002-02-06 Richard Earnshaw <rearnsha@arm.com>
9839
9840 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9841 * gdbarch.c gdbarch.h: Regenerate.
9842 * arch-utils.c (default_print_float_info): New function.
9843 * arch-utils.h (default_print_float_info): Prototype it.
9844 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9845 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9846 (PRINT_FLOAT_INFO): Document it.
9847
9848 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9849 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9850 (PRINT_FLOAT_INFO): Define.
9851
58fa08f0
PM
98522002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9853
aaa38bb5 9854 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9855 Add typecast to sprintf argument to suppress a warning.
9856
7393af7c
PM
98572002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9858
58fa08f0 9859 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9860 to allow easier handling of pass state.
9861 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9862 that gives exception name and address.
9863 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9864 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9865 exceptions added.
aaa38bb5
AJ
9866 (child_continue): Correctly report continue_status.
9867 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9868 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9869 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9870 the exception should be passed to debuggee or not.
9871
6af4589c
MS
98722002-02-05 Michael Snyder <msnyder@redhat.com>
9873
9874 * regcache.c (fetch_register): Call target_fetch_register
9875 only if we don't call FETCH_PSEUDO_REGISTER.
9876 (store_register): Call target_store_register only if we
9877 don't call STORE_PSEUDO_REGISTER.
9878
a2cf933a
EZ
98792002-02-05 Elena Zannoni <ezannoni@redhat.com>
9880
9881 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9882 ELF_MAKE_MSYMBOL_SPECIAL.
9883 * gdbarch.c, gdbarch.h: Regenerate.
9884 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9885 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9886 * elfread.c (elf_symtab_read): Compile use of
9887 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9888 multiarched.
9889 * coffread.c (coff_symtab_read): Ditto, for
9890 COFF_MAKE_MSYMBOL_SPECIAL.
9891
6bb7be43
JB
98922002-02-05 Jim Blandy <jimb@redhat.com>
9893
9894 * solib-svr4.c (svr4_truncate_ptr): New function.
9895 (svr4_relocate_section_addresses): Do the address arithmetic with
9896 the appropriate truncation for target addresses, even when
9897 CORE_ADDR is larger than a target address.
9898
e18651ec
DJ
98992002-02-05 Daniel Jacobowitz <drow@mvista.com>
9900
9901 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9902 to (int *).
9903
6b2725be
DJ
99042002-02-05 Daniel Jacobowitz <drow@mvista.com>
9905
9906 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9907 code.
9908
fca9e603
DJ
99092002-02-05 Daniel Jacobowitz <drow@mvista.com>
9910
9911 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9912
6c537a52
DJ
99132002-02-05 Daniel Jacobowitz <drow@mvista.com>
9914
9915 * gdbserver/linux-low.c: Remove unused include files.
9916
d844cde6
DJ
99172002-02-05 Daniel Jacobowitz <drow@mvista.com>
9918
9919 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9920 (read_inferior_memory): Use it.
9921 (write_inferior_memory): Likewise.
9922
d07c63e7
DJ
99232002-02-05 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9926 grubbing through sys_errlist.
9927
da6d8c04
DJ
99282002-02-05 Daniel Jacobowitz <drow@mvista.com>
9929
9930 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9931
5b421780
PM
99322002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9933 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9934
9f60d481
AC
99352002-02-04 Andrew Cagney <ac131313@redhat.com>
9936
9937 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9938 (do_sfunc, set_cmd_sfunc): New functions.
9939
9940 * command.h (struct cmd_list_element): Add field func.
9941 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9942 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9943 * cli/cli-decode.h: Ditto.
9944
9945 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9946 (help_all, help_cmd_list): Ditto.
9947 (find_cmd, complete_on_cmdlist): Ditto.
9948 * top.c (execute_command): Ditto.
9949
9950 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9951 function.sfunc.
9952
9953 * infcmd.c (notice_args_read): Fix function signature.
9954
9955 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9956 * cli/cli-decode.c (add_set_cmd): Ditto.
9957 * utils.c (initialize_utils): Ditto.
9958 * maint.c (_initialize_maint_cmds): Ditto.
9959 * infrun.c (_initialize_infrun): Ditto.
9960 * demangle.c (_initialize_demangler): Ditto.
9961 * remote.c (add_packet_config_cmd): Ditto.
9962 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9963 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9964 * proc-api.c (_initialize_proc_api): Ditto.
9965 * kod.c (_initialize_kod): Ditto.
9966 * valprint.c (_initialize_valprint): Ditto.
9967 * top.c (init_main): Ditto.
9968 * infcmd.c (_initialize_infcmd): Ditto.
9969 * corefile.c (_initialize_core): Ditto.
9970 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9971 * arch-utils.c (initialize_current_architecture): Ditto.
9972 (_initialize_gdbarch_utils): Ditto.
9973 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9974
9975 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9976 * wince.c (_initialize_inftarg): Ditto.
9977 * symfile.c (_initialize_symfile): Ditto.
9978 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9979 * language.c (_initialize_language): Ditto.
9980 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9981
f9ba0717
MS
99822002-02-04 Michael Snyder <msnyder@redhat.com>
9983
9984 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9985
0c74b2a7
DJ
99862002-02-04 Daniel Jacobowitz <drow@mvista.com>
9987
9988 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9989 Add rules for building the register data files.
9990
c638789f
DJ
99912002-02-04 Daniel Jacobowitz <drow@mvista.com>
9992
9993 * regformats/regdat.sh: Add braces to the definition of
9994 expedite_regs_${arch}.
9995
db253027
DJ
99962002-02-04 Daniel Jacobowitz <drow@mvista.com>
9997
9998 * regformats/regdef.h (struct reg): Add comment describing the
9999 requirements for offset and size fields.
10000
206be19c
AS
100012002-02-04 Andreas Schwab <schwab@suse.de>
10002
10003 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10004 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10005
181c1381
RE
100062002-02-04 Richard Earnshaw <rearnsha@arm.com>
10007
10008 * gdbarch.sh (copyright): Update years in generated header.
10009 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10010 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10011 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10012 * dbxread.c: Likewise.
10013 * dwarfread.c: Likewise.
10014 * elfread.c: Likewise.
10015 * somread.c: Likewise.
10016
10017 * arm-tdep.c (arm_smash_text_address): New function.
10018 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10019
fa4ba8da
PM
100202002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10021
10022 Add support for hardware watchpoints on win32 native.
aaa38bb5 10023 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10024 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10025 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10026 of debug registers.
10027 (debug_registers_changed): New variable. Reflects when debug registers
10028 are changed and need to be written to inferior.
aaa38bb5 10029 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10030 was set, used when new threads are created.
10031 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10032 i386-nat code.
10033 (thread_rec): Set dr array if id is the thread of current_event .
10034 (child_continue, child_resume): Change the debug registers for all
10035 threads if debug_registers_changed.
10036 (child_add_thread): Change the debug registers if debug_registers_used.
10037 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10038 Link nm.h to new nm-cygwin.h file.
10039 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10040 of hardware registers.
10041
a73c86fb
AC
100422002-02-03 Andrew Cagney <ac131313@redhat.com>
10043
10044 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10045 Restore behavour broken by 2002-01-20 Andrew Cagney
10046 <ac131313@redhat.com> IEEE_FLOAT removal.
10047
acf5ed49
DJ
100482002-02-03 Daniel Jacobowitz <drow@mvista.com>
10049
10050 * c-valprint.c (c_val_print): Pass a proper valaddr to
10051 cp_print_class_method.
10052 * valops.c (search_struct_method): If there is only one method
10053 and args is NULL, return that method.
10054
493d28d5
DJ
100552002-02-03 Daniel Jacobowitz <drow@mvista.com>
10056
10057 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10058 accessing tag_name directly.
10059
7495dfdb
DJ
100602002-02-03 Daniel Jacobowitz <drow@mvista.com>
10061
10062 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10063 of accessing tag_name directly.
10064
dd6bda65
DJ
100652002-02-03 Daniel Jacobowitz <drow@mvista.com>
10066
10067 PR gdb/280
10068 * gdbtypes.c (replace_type): New function.
10069 * gdbtypes.h (replace_type): Add prototype.
10070 * stabsread.c (read_type): Use replace_type.
10071
88fe217c
RE
100722002-02-03 Richard Earnshaw <rearnsha@arm.com>
10073
10074 * Makefile.in (memattr.o): Add missing dependencies rule.
10075
e5d66720
PS
100762002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10077
10078 * breakpoint.c (break_at_finish_command): Really export.
10079 (break_at_finish_at_depth_command): Ditto.
10080 (tbreak_at_finish_command): Ditto.
10081 * hppa-tdep.c: Include completer.h.
10082 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10083 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10084
fffee0be
AC
100852002-02-01 Andrew Cagney <ac131313@redhat.com>
10086
10087 * utils.c (do_write): New function.
10088 (error_stream): Rewrite combining the code from error_begin and
10089 verror.
10090 (verror): Rewrite using error_stream.
10091 (error_begin): Delete function.
10092
255e7dbf
AC
100932002-02-01 Andrew Cagney <ac131313@redhat.com>
10094
10095 * utils.c (error_begin): Make static.
10096 * defs.h (error_begin): Delete declaration.
10097
10098 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10099 (decode_line_1): Use cplusplus_error instead of error_begin,
10100 cplusplus_hint and return_to_top_level.
10101 * coffread.c (coff_symfile_read): Use error instead of error_begin
10102 and return_to_top_level.
10103 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10104
ddfe3c15
AC
101052002-02-01 Andrew Cagney <ac131313@redhat.com>
10106
10107 * language.h (type_error, range_error): Make string parameter
10108 constant.
10109 * language.c (warning_pre_print): Delete extern declaration.
10110 * dwarfread.c (warning_pre_print): Ditto.
10111 * language.c (type_error, range_error): Rewrite to use verror and
10112 vwarning instead of warning_begin.
10113
03ac34d5
MS
101142002-02-01 Michael Snyder <msnyder@redhat.com>
10115
261c4ca2
MS
10116 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10117 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10118
e00d1dc8
AC
101192002-02-01 Andrew Cagney <ac131313@redhat.com>
10120
10121 * command.h (NO_FUNCTION): Delete macro.
10122 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10123 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10124 * tracepoint.c (_initialize_tracepoint): Ditto.
10125 * cli/cli-decode.c (add_set_cmd): Ditto.
10126 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10127
76b79d6e
DJ
101282002-02-01 Daniel Jacobowitz <drow@mvista.com>
10129
10130 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10131 Update ``this'' pointer when calling virtual functions.
10132
799f9e91
MS
101332002-02-01 Michael Snyder <msnyder@redhat.com>
10134
c7bd442c 10135 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10136 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10137
3cf384d4
DJ
101382002-02-01 Daniel Jacobowitz <drow@mvista.com>
10139
10140 * regformats/reg-arm.dat: New file.
10141 * regformats/reg-i386.dat: New file.
10142 * regformats/reg-ia64.dat: New file.
10143 * regformats/reg-m68k.dat: New file.
10144 * regformats/reg-mips.dat: New file.
10145 * regformats/reg-ppc.dat: New file.
10146 * regformats/reg-sh.dat: New file.
10147 * regformats/regdef.h: New file.
10148 * regformats/regdat.sh: New file.
10149
0defa245
RE
101502002-02-01 Richard Earnshaw <reanrsha@arm.com>
10151
10152 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10153 (arm_frame_args_address, arm_frame_locals_address): New functions.
10154 (arm_frame_num_args): New function.
10155 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10156 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10157 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10158
405f26e6
MS
101592002-01-31 Michael Snyder <msnyder@redhat.com>
10160
502fd408
MS
10161 * breakpoint.c (break_at_finish_command): Export.
10162 (break_at_finish_at_depth_command): Export.
10163 (tbreak_at_finish_command): Export.
10164 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10165 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10166 "tbreak" commands, which are HPPA specific.
10167
7d35e135
MS
10168 * printcmd.c (disassemble_command): Remove an ancient
10169 artifact of an old merge.
10170
aaa38bb5 10171 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10172 Define enum constant values for overlay mode.
10173 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10174 (overlay_is_mapped, overlay_auto_command,
10175 overlay_manual_command): Ditto.
d874f1e2 10176
aaa38bb5
AJ
10177 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10178 breakpoint_here_p, breakpoint_inserted_here_p,
10179 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10180 describe_other_breakpoints, check_duplicates, clear_command):
10181 Coding standard fixes.
10182
8add0441 10183 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10184 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10185 code: check bfd SEC_READONLY flag for section.
10186
e351066e
AC
101872002-01-31 Andrew Cagney <ac131313@redhat.com>
10188
7d35e135 10189 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10190
8a48e967
DJ
101912002-01-30 Daniel Jacobowitz <drow@mvista.com>
10192
10193 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10194 data symbols, since we search based on textlow and texthigh.
10195 (find_pc_sect_symtab): Likewise.
10196
f5a96129
AC
101972002-01-30 Andrew Cagney <ac131313@redhat.com>
10198
10199 * defs.h (vwarning): Declare.
f5a96129
AC
10200 * utils.c (vwarning): New function.
10201 (warning): Call vwarning.
10202 (warning_begin): Delete function.
10203
10204 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10205 the warning message.
10206 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10207 warning_begin.
10208
cefd4ef5
MS
102092002-01-30 Michael Snyder <msnyder@redhat.com>
10210
1a703748
MS
10211 * NEWS: Mention "set trust-readonly-sections" command.
10212 Mention generate-core-file command.
cefd4ef5 10213
3a11626d
MS
102142002-01-15 Michael Snyder <msnyder@redhat.com>
10215
10216 * target.c: New command, "set trust-readonly-sections on".
10217 (do_xfer_memory): Honor the suggestion to trust readonly sections
10218 by reading them from the object file instead of from the target.
10219 (initialize_targets): Register command "set trust-readonly-sections".
10220
d1c7e53b
AC
102212002-01-29 Andrew Cagney <ac131313@redhat.com>
10222
10223 * parse.c (target_map_name_to_register): Simplify, search regs and
10224 pseudo-regs using a single loop.
10225
e2c9a72c
AC
102262002-01-30 Andrew Cagney <ac131313@redhat.com>
10227
10228 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10229
69824b4e
MK
102302002-01-15 Rodney Brown <rbrown64@csc.com.au>
10231
10232 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10233 * config/i386/i386v42mp.mh: Add i387-nat.o .
10234 * i386v4-nat.c: Include i387-nat.h.
10235 (supply_fpregset): Use i387_supply_fsave.
10236 (fill_fpregset): Use i387_fill_fsave.
10237
6eb69eab
RE
102382002-01-30 Richard Earnshaw <rearnsha@arm.com>
10239
10240 * arm-tdep.c (arm_call_dummy_words): Define.
10241 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10242 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10243 (CALL_DUMMY_WORDS): Define.
10244 (arm_call_dummy_words): Declare.
10245 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10246 (arm_linux_call_dummy_words): Declare.
10247
9852326a
AS
102482002-01-30 Andreas Schwab <schwab@suse.de>
10249
10250 * m68klinux-nat.c: Fix last change to use regcache_collect
10251 instead of referencing registers[] directly.
10252
977a3030
AC
102532002-01-29 Andrew Cagney <ac131313@redhat.com>
10254
10255 * parse.c (target_map_name_to_register): Delete code wrapped in
10256 #ifdef REGISTER_NAME_ALIAS_HOOK.
10257
2076c72b
MS
102582002-01-28 Michael Snyder <msnyder@redhat.com>
10259
10260 * regcache.c (legacy_read_register_gen): Need to be able to
10261 read pseudo-register as well as real register.
10262 (legacy_write_register_gen): Ditto.
10263
8fcc723b
AC
102642002-01-28 Andrew Cagney <ac131313@redhat.com>
10265
10266 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10267 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10268 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10269 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10270 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10271 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10272 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10273 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10274 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10275 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10276 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10277 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10278 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10279 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10280 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10281 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10282 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10283 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10284 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10285 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10286
afe64c1a
AC
102872002-01-28 Andrew Cagney <ac131313@redhat.com>
10288
10289 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10290 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10291 (initialize_current_architecture): Update target_byte_order using
10292 information from BFD.
aaa38bb5 10293 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10294 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10295
75bc7ddf
AC
102962002-01-28 Andrew Cagney <ac131313@redhat.com>
10297
10298 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10299 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10300
10301 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10302 #ifdef INVALID_FLOAT.
10303 * infcmd.c (do_registers_info): Ditto.
10304 * values.c (unpack_double): Ditto. Add comment.
10305
10306 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10307 already commented out.
10308
0280a90a
AS
103092002-01-26 Andreas Schwab <schwab@suse.de>
10310
10311 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10312 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10313 registers and add support for PTRACE_GETREGS.
10314
7072a954
AC
103152002-01-24 Andrew Cagney <ac131313@redhat.com>
10316
10317 GDB 5.1.1 released from 5.1 branch.
10318 * NEWS: Add 5.1.1 news.
10319 * README: Sync with 5.1 branch.
10320
86f902e0
FF
103212002-01-23 Fred Fish <fnf@redhat.com>
10322
10323 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10324 stabstring on initial malloc. Reallocing will copy it for us,
10325 if necessary.
10326
8af51c36
EZ
103272002-01-23 Elena Zannoni <ezannoni@redhat.com>
10328
aaa38bb5 10329 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10330 (HFILES_NO_SRCDIR): Remove hpread.h.
10331 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10332 (hpread.o): Update dependencies.
10333 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10334
10335 * hp-psymtab-read.c: Remove file.
10336 * hp-symtab-read.c: Remove file.
10337 * hpread.h: Remove file.
10338
10339 * hpread.c: Merge all contents of hp-psymtab-read.c,
10340 hp-symtab-read.c and hpread.h into this file, as it was prior to
10341 January 1999.
10342
10343 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10344 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10345 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10346 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10347
dc5cfeb6
EZ
103482002-01-23 Elena Zannoni <ezannoni@redhat.com>
10349
10350 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10351 fill_gregset): Call gdbarch_tdep() just once, assign result to
10352 variable and use that, instead of calling the function several
10353 times.
10354
ea87b71b
AO
103552002-01-24 Alexandre Oliva <aoliva@redhat.com>
10356
10357 * configure.host: Accept sparcv9 as alias for sparc64.
10358 * configure.tgt: Likewise.
10359
13fc0c2f
KB
103602002-01-22 Kevin Buettner <kevinb@redhat.com>
10361
10362 * solib-aix5.c (build_so_list_from_mapfile)
10363 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10364 arguments is not reversed.
10365 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10366 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10367
7bd872fe
EZ
103682002-01-22 Elena Zannoni <ezannoni@redhat.com>
10369
10370 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10371 modified version of obsolete sh_fetch_pseudo_register.
10372 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10373 (sh4_register_read): New function.
10374 (sh_pseudo_register_write): New function. Renamed and modified
10375 version of obsolete sh_store_pseudo_register.
10376 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10377 (sh4_register_write): New function.
10378 (sh_gdbarch_init): Remove setting of gdbarch function
10379 fetch_pseudo_register and store_pseudo_register. Remove setting of
10380 register_convert_to_raw, register_convert_to_virtual,
10381 register_convertible.
10382 (sh_sh4_register_convertible): Delete. No longer needed. All is
10383 taken care by architecture specific functions
10384 register_read/register_write.
10385 (sh_sh4_register_convert_to_virtual): Make static.
10386 (sh_sh4_register_convert_to_raw): Ditto.
10387
069e84fd
AC
103882002-01-22 Andrew Cagney <ac131313@redhat.com>
10389
10390 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10391 (floatformat_is_nan, floatformat_mantissa): Ditto.
10392
10393 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10394 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10395 builtin_type_ieee_double_little,
10396 builtin_type_ieee_double_littlebyte_bigword,
10397 builtin_type_m68881_ext, builtin_type_i960_ext,
10398 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10399 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10400 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10401 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10402
211a4f69
CV
104032002-01-22 Corinna Vinschen <vinschen@redhat.com>
10404
10405 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10406 parameter. Set frameless flag if it exists and depended of
10407 whether the scanned function is frameless or not.
10408 (xstormy16_skip_prologue): If function is frameless, return
10409 result of xstormy16_scan_prologue().
10410 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10411 call.
10412
f81353e4
EZ
104132002-01-21 Elena Zannoni <ezannoni@redhat.com>
10414
10415 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10416 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10417 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10418 sh_sh4_register_byte, sh_sh4_register_raw_size,
10419 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10420 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10421 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10422 sh_store_pseudo_register, sh_do_pseudo_register): Call
10423 gdbarch_tdep() just once, assign result to variable and use that,
10424 instead of calling the function several times.
10425
63c73a17
MK
104262002-01-20 Mark Kettenis <kettenis@gnu.org>
10427
10428 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10429 macros instead of LAST_FPU_CTRL_REGNUM.
10430 (store_register): Likewise.
10431
39ad761d
JB
104322002-01-21 Jim Blandy <jimb@redhat.com>
10433
10434 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10435 is up-to-date before running the program, not just when a program
10436 exits.
10437
3d74b771
FF
104382002-01-21 Fred Fish <fnf@redhat.com>
10439
10440 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10441 when we have found all instructions we are looking for.
10442
966fbf70
RE
104432002-01-21 Richard Earnshaw <rearnsha@arm.com>
10444
10445 * arm-tdep.c (arm_register_name): New function.
10446 (arm_registers_names): Make static.
10447 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10448 (arm_register_name): Declare.
10449 (REGISTER_NAME): Use it.
10450
c3b4394c
RE
104512002-01-21 Richard Earnshaw <rearnsha@arm.com>
10452 Kevin Buettner <kevinb@redhat.com>
10453
10454 Convert arm targets to new FRAME interface.
10455 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10456 (arm_frame_find_save_regs): Delete.
10457 (arm_frame_init_saved_regs): New.
10458 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10459 Allocate extra_info as required. Convert all uses of fsr.regs
10460 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10461 to use extra_info.
10462 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10463 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10464 (check_prologue_cache, save_prologue_cache): Likewise.
10465 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10466 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10467 (FRAME_FIND_SAVED_REGS): Delete.
10468 (arm_frame_find_saved_regs): Delete prototype.
10469 (arm_frame_init_saved_regs): New prototype.
10470 (FRAME_INIT_SAVED_REGS): Define.
10471
61d99182
AC
104722002-01-20 Andrew Cagney <ac131313@redhat.com>
10473
10474 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10475
6aaea291
AC
104762002-01-20 Andrew Cagney <ac131313@redhat.com>
10477
10478 From Jeff Law <law@redhat.com>:
10479 * infttrace.c: Include <sys/pstat.h>.
10480 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10481 exec file if the ttrace equivalent fails.
10482
15f698d2
AC
104832002-01-20 Andrew Cagney <ac131313@redhat.com>
10484
10485 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10486 (closeLogFile): Ditto.
10487
f86ddd7c
MC
104882002-01-20 Michael Chastain <mec@shout.net>
10489
10490 * top.c (print_gdb_version): Bump copyright year to 2002.
10491
904507ce
AC
104922002-01-20 Andrew Cagney <ac131313@redhat.com>
10493
10494 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10495 Zannoni and Eli Zaretskii.
10496
d7f0b9ce
DJ
104972002-01-20 Daniel Jacobowitz <drow@mvista.com>
10498
10499 * buildsym.c: Update copyright years.
10500 * c-typeprint.c: Likewise.
10501 * dwarf2read.c: Likewise.
10502 * f-typeprint.c: Likewise.
10503 * gdbtypes.c: Likewise.
10504 * gdbtypes.h: Likewise.
10505 * hp-symtab-read.c: Likewise.
10506 * hpread.c: Likewise.
10507 * mdebugread.c: Likewise.
10508 * p-typeprint.c: Likewise.
10509
3fd3d7d2
AC
105102002-01-20 Andrew Cagney <ac131313@redhat.com>
10511
10512 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10513 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10514 byte-order selectable.
10515 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10516 * arch-utils.c: Ditto.
10517 (set_endian): Ditto.
10518 (set_endian_from_file): Ditto.
10519 * gdbserver/low-sim.c (create_inferior): Ditto.
10520 * gdbarch.sh: Ditto.
10521 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10522 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10523 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10524 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10525 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10526 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10527 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10528 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10529 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10530 macro definition.
10531 * config/mips/tm-wince.h: Remove #undef of macro
10532 TARGET_BYTE_ORDER_SELECTABLE.
10533 * config/sh/tm-wince.h: Ditto.
10534
b02dede2
DJ
105352002-01-20 Daniel Jacobowitz <drow@mvista.com>
10536
10537 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10538 member function fields. Add accessor macro
10539 TYPE_FN_FIELD_ARTIFICIAL.
10540 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10541 * c-typeprint.c (c_type_print_base): Skip artificial member
10542 functions.
10543
c3643761
DJ
105442002-01-20 Daniel Jacobowitz <drow@mvista.com>
10545
10546 * f-typeprint.c: Delete unused function f_type_print_args.
10547 * p-typeprint.c: Delete unused function pascal_type_print_args.
10548
8176bb6d
DJ
105492002-01-20 Daniel Jacobowitz <drow@mvista.com>
10550
10551 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10552 comment. Add ``artificial'' to ``union field_location''.
10553
10554 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10555
10556 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10557 * mdebugread.c (parse_symbol): Likewise.
10558 * stabsread.c (define_symbol): Likewise.
10559 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10560 initializing TYPE_FIELD_BITPOS to n (obsolete).
10561 (hpread_doc_function_type): Likewise.
10562 * hpread.c (hpread_function_type): Likewise.
10563
7fd60527
AC
105642002-01-20 Andrew Cagney <ac131313@redhat.com>
10565
10566 * configure.in (host_makefile_frag): Only require a host makefile
10567 fragment when a native build.
10568 * configure: Re-generate.
10569
c2f05ac9
AC
105702002-01-20 Andrew Cagney <ac131313@redhat.com>
10571
10572 * doublest.h (floatformat_from_type): Declare.
10573 * doublest.c (floatformat_from_type): New function.
10574 (convert_typed_floating): Use.
10575
10576 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10577 call to function floatformat_from_type.
10578
10579 * gdbarch.sh (IEEE_FLOAT): Delete.
10580 * gdbarch.h, gdbarch.c: Re-generate.
10581 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10582 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10583 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10584 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10585 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10586 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10587 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10588 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10589 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10590 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10591 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10592 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10593
10594 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10595 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10596 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10597 * sh-tdep.c (sh_gdbarch_init): Ditto.
10598 * mips-tdep.c (mips_gdbarch_init): Ditto.
10599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10600 * cris-tdep.c (cris_gdbarch_init): Ditto.
10601
abf22e64
AJ
106022002-01-20 Jiri Smid <smid@suse.cz>
10603
10604 * configure.host, configure.tgt: Support x86-64.
10605 * NEWS: Note new target x86-64.
10606
b7c4cbf8
AJ
10607 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10608 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10609 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10610 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10611 x86-64-linux-nat.o): Fix dependencies.
10612
82600034
AC
106132002-01-19 Andrew Cagney <ac131313@redhat.com>
10614
10615 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10616 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10617 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10618 * config/sparc/xm-sun4os4.h: Delete file.
10619 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10620
bbe5c628
AC
106212002-01-19 Andrew Cagney <ac131313@redhat.com>
10622
10623 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10624 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10625 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10626 * config/i386/i386lynx.mh (XM_FILE): Delete.
10627 * config/rs6000/xm-rs6000ly.h: Delete file.
10628 * config/sparc/xm-sparclynx.h: Delete file.
10629 * config/m68k/xm-m68klynx.h: Delete file.
10630 * config/i386/xm-i386lynx.h: Delete file.
10631 * config/xm-lynx.h: Delete file.
10632 * config/djgpp/fnchange.lst: Update.
10633
f8453e34
JT
106342002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10635
10636 * alpha-tdep.c (alpha_register_byte): New function.
10637 (alpha_register_raw_size): Ditto.
10638 (alpha_register_virtual_size): Ditto.
10639 (alpha_skip_prologue_internal): Renamed from
10640 alpha_skip_prologue.
10641 (alpha_skip_prologue): New version that calls
10642 alpha_skip_prologue_internal.
10643 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10644 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10645 second argument from alpha_skip_prologue.
10646 (REGISTER_BYTE): Use alpha_register_byte.
10647 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10648 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10649 (FRAMELESS_FUNCTION_INVOCATION): Use
10650 generic_frameless_function_invocation_not.
10651 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10652 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10653
52d9e613
AC
106542002-01-19 Andrew Cagney <ac131313@redhat.com>
10655
10656 * config/mips/xm-news-mips.h: Delete file.
10657 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10658
10659 * config/m88k/xm-m88k.h: Delete file.
10660 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10661 * config/m88k/xm-delta88v4.h: Ditto.
10662 * config/m88k/xm-delta88.h: Ditto.
10663
10664 * config/alpha/xm-fbsd.h: Delete file.
10665 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10666
10667 * config/sparc/xm-sparc.h: Delete file.
10668 * Makefile.in (xm-sun4os4.h): Delete dependency.
10669 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10670 * config/sparc/xm-sun4os4.h: Ditto.
10671 * config/sparc/xm-linux.h: Ditto.
10672
10673 * config/i386/xm-windows.h: Delete file.
10674
2d1b2124
AC
106752002-01-19 Andrew Cagney <ac131313@redhat.com>
10676
10677 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10678 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10679
ee1f65f0
JT
106802002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10681
10682 * alpha-tdep.c (alpha_call_dummy_words): New.
10683 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10684 (CALL_DUMMY_P): Define.
10685 (CALL_DUMMY_WORDS): Define.
10686 (SIZEOF_CALL_DUMMY_WORDS): Define.
10687
98081e55
PB
106882002-01-19 Per Bothner <per@bothner.com>
10689
10690 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10691 isn't NULL, which can happen with some gcj-3.x-produced code.
10692
0d056799
JT
106932002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * alpha-tdep.c (alpha_register_virtual_type): New function.
10696 (alpha_init_frame_pc_first): Ditto.
10697 (alpha_fix_call_dummy): Ditto.
10698 (alpha_store_struct_return): Ditto.
10699 (alpha_extract_struct_value_address): Ditto.
10700 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10701 alpha_register_virtual_type.
10702 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10703 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10704 alpha_extract_struct_value_address.
10705 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10706 (INIT_FRAME_PC): Use init_frame_pc_noop.
10707 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10708
4604bcad
MK
107092002-01-19 Mark Kettenis <kettenis@gnu.org>
10710
10711 * i386gnu-nat.c: Include "i386-tdep.h".
10712 (fetch_fpregs): Simplify code dealing with uninitialized floating
10713 point states such that it doesn't require FP7_REGNUM.
10714
140f9984
JT
107152002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10716
abf22e64
AJ
10717 * alpha-tdep.c (frame_extra_info): New.
10718 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10719 frame->extra_info.
10720 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10721 (alpha_frame_saved_pc): Use frame->extra_info.
10722 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10723 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10724 (init_extra_frame_info): Rename to...
10725 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10726 (alpha_print_extra_frame_info): New function.
140f9984
JT
10727 (alpha_frame_locals_address): Ditto.
10728 (alpha_frame_args_address): Ditto.
abf22e64 10729 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10730 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10731 alpha_frame_args_address.
abf22e64 10732 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10733 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10734 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10735 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10736 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10737 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10738
d734c450
JT
107392002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10740
10741 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10742 (alpha_cannot_fetch_register): Ditto.
10743 (alpha_cannot_store_register): Ditto.
10744 (alpha_register_convertible): Ditto.
10745 (alpha_use_struct_convention): Ditto.
10746 * config/alpha/tm-alpha.h: Update copyright years.
10747 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10748 (INNER_THAN): Use core_addr_lessthan.
10749 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10750 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10751 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10752 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10753 (FRAME_CHAIN): Remove unnecessary cast.
10754
b4ceaee6
AC
107552002-01-18 Andrew Cagney <ac131313@redhat.com>
10756
10757 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10758 obsolete.
10759
0a65a603
AC
107602002-01-18 Andrew Cagney <ac131313@redhat.com>
10761
10762 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10763 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10764 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10765 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10766 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10767 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10768 * x86-64-linux-nat.c: Ditto.
10769
636a6dfc
JT
107702002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10771
abf22e64 10772 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10773 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10774 (REGISTER_NAME): Define.
10775
acceddb6
JT
107762002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10777
10778 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10779
ec32e4be
JT
107802002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10781
10782 * alpha-tdep.c: Update copyright years.
10783 (alpha_next_pc): New function.
10784 (alpha_software_single_step): Ditto.
10785 * config/alpha/tm-alpha.h: Add prototype for
10786 alpha_software_single_step.
10787
e771a871
JT
107882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10789
10790 * alphabsd-nat.c: Update copyright years.
10791 (fill_gregset): Use regcache_collect.
10792 (fill_fpregset): Likewise.
10793 (fetch_inferior_registers): Only fetch integer registers
10794 if requested to do so.
10795 (store_inferior_registers): Only store integer registers
10796 if requested to do so.
10797
7708fa01
AC
107982002-01-17 Andrew Cagney <ac131313@redhat.com>
10799
10800 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10801 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10802 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10803 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10804 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10805 * config/arm/linux.mh (XDEPFILES): Delete.
10806 * config/arm/nbsd.mh (XDEPFILES): Delete.
10807 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10808 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10809 * config/i386/i386m3.mh (XDEPFILES): Delete.
10810 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10811 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10812 * config/i386/fbsd.mh (XDEPFILES): Delete.
10813 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10814 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10815 * config/i386/i386v4.mh (XDEPFILES): Delete.
10816 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10817 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10818 * config/i386/i386aix.mh (XDEPFILES): Delete.
10819 * config/i386/go32.mh (XDEPFILES): Delete.
10820 * config/i386/cygwin.mh (XDEPFILES): Delete.
10821 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10822 * config/i386/i386mach.mh (XDEPFILES): Delete.
10823 * config/i386/i386v32.mh (XDEPFILES): Delete.
10824 * config/i386/linux.mh (XDEPFILES): Delete.
10825 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10826 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10827 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10828 * config/i386/i386sco.mh (XDEPFILES): Delete.
10829 * config/i386/i386v.mh (XDEPFILES): Delete.
10830 * config/i386/nbsd.mh (XDEPFILES): Delete.
10831 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10832 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10833 * config/i386/symmetry.mh (XDEPFILES): Delete.
10834 * config/i386/obsd.mh (XDEPFILES): Delete.
10835 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10836 * config/ia64/linux.mh (XDEPFILES): Delete.
10837 * config/ia64/aix.mh (XDEPFILES): Delete.
10838 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10839 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10840 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10841 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10842 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10843 * config/m68k/linux.mh (XDEPFILES): Delete.
10844 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10845 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10846 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10847 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10848 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10849 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10850 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10851 * config/m88k/delta88.mh (XDEPFILES): Delete.
10852 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10853 * config/m88k/m88k.mh (XDEPFILES): Delete.
10854 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10855 * config/mips/linux.mh (XDEPFILES): Delete.
10856 * config/mips/irix6.mh (XDEPFILES): Delete.
10857 * config/mips/irix5.mh (XDEPFILES): Delete.
10858 * config/mips/irix4.mh (XDEPFILES): Delete.
10859 * config/mips/irix3.mh (XDEPFILES): Delete.
10860 * config/mips/decstation.mh (XDEPFILES): Delete.
10861 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10862 (NATDEPFILES): Move core-aout.o to here.
10863 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10864 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10865 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10866 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10867 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10868 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10869 * config/pa/hpux11.mh (XDEPFILES): Delete.
10870 * config/powerpc/aix.mh (XDEPFILES): Delete.
10871 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10872 * config/powerpc/linux.mh (XDEPFILES): Delete.
10873 * config/romp/rtbsd.mh: Rename XDEPFILES.
10874 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10875 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10876 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10877 * config/s390/s390.mh (XDEPFILES): Delete.
10878 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10879 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10880 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10881 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10882 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10883 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10884 * config/sparc/linux.mh (XDEPFILES): Delete.
10885 * config/vax/vaxult.mh (XDEPFILES): Delete.
10886 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10887 * Makefile.in (DEPFILES): Remove XDEPFILES.
10888
375fc983
AC
108892002-01-17 Andrew Cagney <ac131313@redhat.com>
10890
10891 * utils.c (internal_verror): Fix comments, default is yes not no.
10892 Update queries to match. Default to quit and dump core.
10893
8926118c
AC
108942002-01-17 Andrew Cagney <ac131313@redhat.com>
10895
10896 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10897 copyright.
10898 * defs.h, event-top.c, gdbcmd.h: Ditto.
10899 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10900 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10901 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10902 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10903 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10904 * mi/mi-main.c:Ditto.
10905
10906 * stack.c, symfile.c: Update copyright.
10907
45b7b345
DJ
109082002-01-17 Daniel Jacobowitz <drow@mvista.com>
10909
db728ff7
DJ
10910 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10911 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10912 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10913 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10914
db728ff7
DJ
109152002-01-17 Daniel Jacobowitz <drow@mvista.com>
10916
10917 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10918 * gdbserver/low-lynx.c (myattach): Likewise.
10919 * gdbserver/low-nbsd.c (myattach): Likewise.
10920 * gdbserver/low-sim.c (myattach): Likewise.
10921 * gdbserver/low-sparc.c (myattach): Likewise.
10922 * gdbserver/low-sun3.c (myattach): Likewise.
10923
10924 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10925
db728ff7 10926 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10927 (main): Handle "--attach".
10928
8de3c354
AC
109292002-01-16 Andrew Cagney <ac131313@redhat.com>
10930
10931 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10932 maintainer.
10933
b0129042
DJ
109342002-01-15 Daniel Jacobowitz <drow@mvista.com>
10935
10936 * c-typeprint.c (is_type_conversion_operator): Add additional
10937 check for non-conversion operators.
10938
ba8679fb 109392002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10940
10941 * linux-proc.c: Add "info proc" command, a la procfs.c.
10942 (read_mapping): New function, abstract and re-use code.
10943 (linux_find_memory_regions): Use new func read_mapping.
10944 (linux_info_proc_cmd): New function, implement "info proc".
10945 (_initialize_linux_proc): Add new command "info proc".
10946
e4f9b4d5
MS
109472002-01-15 Michael Snyder <msnyder@redhat.com>
10948
10949 * symfile.c (generic_load): Use bfd_map_over_sections method
10950 instead of manipulating bfd structure members directly.
10951 (add_section_size_callback): New function, bfd sections callback
10952 used by generic_load.
10953 (load_sections_callback): New function, bfd sections callback
10954 used by generic_load.
10955
08cf96df
EZ
109562002-01-15 Elena Zannoni <ezannoni@redhat.com>
10957
abf22e64 10958 [Based on work by Jim Blandy]
08cf96df
EZ
10959 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10960 (builtin_type_vec128): Export.
10961 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10962 types.
10963 (builtin_type_vec128): New builtin type for 128 bit vector
10964 registers.
10965 (build_gdbtypes): Initialize builtin_type_v16qi and
10966 builtin_type_v8hi. Create the vec128 register builtin type
10967 structure.
10968 (build_builtin_type_vec128): New function.
abf22e64 10969 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10970 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10971 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10972 AltiVec register to new builtin type.
10973
d7242108
DJ
109742001-01-15 Daniel Jacobowitz <drow@mvista.com>
10975
10976 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10977 to make_cv_type.
10978
4ee3352d
AC
109792002-01-14 Andrew Cagney <ac131313@redhat.com>
10980
10981 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10982 CLEAN_UP_REGISTER_VALUE.
10983 * regcache.c (supply_register): Update only call.
10984
f015b2e7
AC
109852002-01-14 Andrew Cagney <ac131313@redhat.com>
10986
10987 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10988 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10989 a29k-*-vxworks* targets as obsolete.
10990
356ae49d
MS
109912002-01-14 Michael Snyder <msnyder@redhat.com>
10992
10993 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10994 until we can resolve portability issues.
10995 * gregset.h: Remove references to fpxregs.
10996 * gcore.c (gcore_command): Initialize note_sec to NULL.
10997
ade8f45e
AC
109982002-01-13 Andrew Cagney <ac131313@redhat.com>
10999
11000 * signals.c (target_signal_to_name): Rewrite. Only use
11001 signals[].name when in bounds and non-NULL.
abf22e64 11002
89c49e7a
AC
110032002-01-13 Andrew Cagney <ac131313@redhat.com>
11004
11005 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11006 * signals.c (target_signal_to_name): Verify that SIG is within the
11007 bounds of the signals array.
11008
4daa9f9f
AC
110092002-01-13 Andrew Cagney <ac131313@redhat.com>
11010
11011 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11012
ba4bbdcb
KS
110132002-01-13 Keith Seitz <keiths@redhat.com>
11014
11015 * stack.c (print_frame_info_base): Print the frame's pc
11016 only if when print_frame_info_listing_hook is not defined.
11017
575bbeb6
KS
110182002-01-13 Keith Seitz <keiths@redhat.com>
11019
11020 * varobj.c (varobj_set_value): Make sure that there were no
11021 errors evaluating the object before attempting to set its
11022 value.
11023 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11024 so this offset adjustment is no longer necessary.
11025 (create_child): Don't set the error flag if the child is
11026 a CPLUS_FAKE_CHILD.
11027 (value_of_child): If value_fetch_lazy fails, return NULL
11028 so that callers will be notified that an error occurred.
11029 (c_value_of_variable): Delay check of variable's validity
11030 until later. We actually want all structs and unions to have
11031 the value "{...}".
11032 Do not return "???" for variables which could not be evaluated.
11033 This error condition must be returned to the caller so that it
11034 can get the error condition from gdb.
11035 (cplus_name_of_child): Adjust index for vptr before figuring
11036 out the name of the child.
11037 (cplus_value_of_child): If a child's (real) parent is not valid,
11038 don't even bother trying to give a value for it. Just return
11039 an error. Change all instances in this function.
11040 (cplus_type_of_child): If our parent is one of the "fake"
11041 parents, we need to get at the type of the real parent, and
11042 derive the child's true type using this information.
11043
b76898ab
AC
110442002-01-13 Andrew Cagney <ac131313@redhat.com>
11045
11046 From 2002-01-09 John Marshall <johnm@falch.net>:
11047 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11048 sources.redhat.com, and tweak some related URLs which had
11049 suffered from linkrot.
11050
b6649e88
AC
110512002-01-13 Andrew Cagney <ac131313@redhat.com>
11052
11053 From Jeff law:
11054 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11055 structures passed in registers.
11056
82cc5033
EZ
110572002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11058
11059 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11060 white space which prevented compilation. Reported by DSK
11061 <dsk@student.unsw.edu.au>.
11062
ba5f2f8a
MS
110632002-01-11 Michael Snyder <msnyder@redhat.com>
11064
fbd35540
MS
11065 * symfile.c (build_section_addr_info_from_section_tab):
11066 Use bfd access method instead of manipulating bfd directly.
11067 (syms_from_objfile): Ditto.
11068 (simple_overlay_update_1): Ditto.
11069 (simple_overlay_update): Ditto.
11070 (generic_load): Ditto.
11071 (overlay_unmapped_address): FIXME comment, bfd access methods.
11072 (sections_overlap): FIXME comment, bfd access methods.
11073 (pc_in_mapped_range): FIXME comment, bfd access methods.
11074 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11075 (section_is_mapped): FIXME comment, bfd access methods.
11076 (section_is_overlay): FIXME comment, bfd access methods.
11077
ba5f2f8a
MS
11078 * symfile.c (generic_load): Whitespace and long line cleanups.
11079 Remove duplicate variable, change several local variables to
11080 more appropriate data types.
11081 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11082
17df2af6
AC
110832002-01-12 Andrew Cagney <ac131313@redhat.com>
11084
11085 From Peter Schauer:
11086 * language.c (longest_local_hex_string_custom): Use phex_nz to
11087 convert NUM to a hex string.
11088
ec920329
EZ
110892002-01-12 Elena Zannoni <ezannoni@redhat.com>
11090
11091 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11092 the function.
538a76d6 11093 Update Copyright year.
ec920329 11094
3abd2e01
AC
110952002-01-12 Andrew Cagney <ac131313@redhat.com>
11096
11097 * language.c (longest_raw_hex_string): Delete unused function.
11098
b21b22e0
PS
110992002-01-11 Petr Sorfa <petrs@caldera.com>
11100
11101 * MAINTAINERS (write-after-approval): Add myself.
11102 * dwarf2read.c (read_tag_string_type): Handling of
11103 DW_AT_byte_size.
11104 (read_tag_string_type): FORTRAN fix to prevent propagation of
11105 first string size.
11106 (set_cu_language): Handling of DW_LANG_Fortran95
11107
747fe712
RE
111082002-01-11 Richard Earnshaw <rearnsha@arm.com>
11109
11110 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11111 GETPID(inferior_ptid).
11112 (store_inferior_registers): Likewise.
11113
f1bea926
JM
111142002-01-10 Jason Merrill <jason@redhat.com>
11115
11116 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11117 Fix DW_OP_minus.
11118
ae940673
AC
111192002-01-10 Andrew Cagney <ac131313@redhat.com>
11120
11121 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11122 and bfd/elf32-sh-nbsd.c.
11123
00546b04
MS
111242002-01-10 Michael Snyder <msnyder@redhat.com>
11125
352ed7b4
MS
11126 * NEWS: Mention --pid and corefile/proc-id behavior change.
11127
c18be923
MS
11128 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11129 * gcore.c: Include cli/cli-decode.h instead of command.h.
11130
00546b04
MS
11131 * main.c (captured_main): Add new command line option "--pid".
11132 If the second command line argument (following the symbol-file)
11133 begins with a digit, try to attach to it before trying to open
11134 it as a corefile.
11135 (print_gdb_help): Document the "--pid" argument.
11136
db60ec62
EZ
111372002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11138
11139 * completer.c (command_completer): New function.
11140
11141 * completer.h <command_completer>: Add prototype.
11142
11143 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11144 completer for the "help" command.
11145
39c22d1a
JM
111462002-01-09 Jason Merrill <jason@redhat.com>
11147
11148 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11149
c564377f
MS
111502002-01-09 Michael Snyder <msnyder@redhat.com>
11151
975aec09
MS
11152 * i386-linux-nat.c (fill_fpxregset): Make global.
11153 (store_fpxregset): Ditto.
11154
db4a10fa
MS
11155 * gregset.h (gdb_fpxregset_t): Define.
11156 (supply_fpxregset): Prototype.
11157 (fill_fpxregset): Prototype.
11158
c564377f
MS
11159 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11160
c3d45d70
RE
111612002-01-09 Richard Earnshaw <rearnsha@arm.com>
11162
11163 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11164 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11165 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11166
fcc87af1
AC
111672002-01-09 Andrew Cagney <ac131313@redhat.com>
11168
11169 * MAINTAINERS: Update target maintainer rules so that any
11170 Maintainer can approve a tested patch for a maintenance-only
11171 target.
11172
dd96c05b
RE
111732002-01-09 Richard Earnshaw <rearnsha@arm.com>
11174
d4297db9 11175 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11176
d4297db9 11177 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11178 IN_SIGTRAMP.
11179
145fdc6e
MS
111802002-01-08 Michael Snyder <msnyder@redhat.com>
11181
11182 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11183 real name of the executable, rather than the /proc name.
11184
be4d1333
MS
111852002-01-03 Michael Snyder <msnyder@redhat.com>
11186
11187 Implement a "generate-core-file" command in gdb, save target state.
11188 * gcore.c: New file. Implement new command 'generate-core-file'.
11189 Save a corefile image of the current state of the inferior.
11190 * linux-proc.c: Add linux-specific code for saving corefiles.
11191 * target.h (struct target_ops): Add new target vectors for saving
11192 corefiles; to_find_memory_regions and to_make_corefile_notes.
11193 (target_find_memory_regions): New macro.
11194 (target_make_corefile_notes): New macro.
11195 * target.c (update_current_target): Inherit new target methods.
11196 (dummy_find_memory_regions): New place-holder method.
11197 (dummy_make_corefile_notes): New place-holder method.
11198 (init_dummy_target): Initialize new dummy target vectors.
11199 * exec.c (exec_set_find_memory_regions): New function.
11200 Allow the exec_ops vector for memory regions to be taken over.
11201 (exec_make_note_section): New function, target vector method.
11202 * defs.h (exec_set_find_memory_regions): Export prototype.
11203 * procfs.c (proc_find_memory_regions): New function, corefile method.
11204 (procfs_make_note_section): New function, corefile method.
11205 (init_procfs_ops): Set new target vector pointers.
11206 (find_memory_regions_callback): New function.
11207 (procfs_do_thread_registers): New function.
11208 (procfs_corefile_thread_callback): New function.
11209 * sol-thread.c (sol_find_memory_regions): New function.
11210 (sol_make_note_section): New function.
11211 (init_sol_thread_ops): Initialize new target vectors.
11212 * inftarg.c (inftarg_set_find_memory_regions): New function.
11213 Allow to_find_memory_regions vector to be taken over.
11214 (inftarg_set_make_corefile_notes): New function.
11215 Allow to_make_corefile_notes vector to be taken over.
11216 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11217 interface layer if not target_has_execution (may be a corefile).
11218 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11219 * config/sparc/sun4sol2.mh: Ditto.
11220 * config/alpha/alpha-linux.mh: Ditto.
11221 * config/arm/linux.mh: Ditto.
11222 * config/i386/x86-64linux.mh: Ditto.
11223 * config/ia64/linux.mh: Ditto.
11224 * config/m68k/linux.mh: Ditto.
11225 * config/mips/linux.mh: Ditto.
11226 * config/powerpc/linux.mh: Ditto.
11227 * config/sparc/linux.mh: Ditto.
11228
c6b92abd
MS
112292002-01-07 Michael Snyder <msnyder@redhat.com>
11230
11231 * arm-linux-nat.c: Remove references to regcache.c internal data
11232 (registers[] and register_valid[]).
11233
4b09dc8c
MS
112342002-01-07 Michael Snyder <msnyder@redhat.com>
11235
abf22e64
AJ
11236 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11237 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11238 symbol file and shlibs.
11239 * Makefile.in: Add rule for linux-proc.o.
11240 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11241 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11242 * config/arm/linux.mh: Ditto.
11243 * config/i386/linux.mh: Ditto.
11244 * config/i386/x86-64linux.mh: Ditto.
11245 * config/ia64/linux.mh: Ditto.
11246 * config/m68k/linux.mh: Ditto.
11247 * config/mips/linux.mh: Ditto.
11248 * config/powerpc/linux.mh: Ditto.
11249 * config/sparc/linux.mh: Ditto.
11250
c25b74ac
PM
112512002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11252
11253 * win32-nat.c: Add i386-tdep.h dependency.
11254
94cd915f
MS
112552002-01-07 Michael Snyder <msnyder@redhat.com>
11256
c7cccb76
MS
11257 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11258 instead of bfd_get_arch_size. Don't bail out just because
11259 there's no exec_bfd.
abf22e64 11260
34c0bd93
MS
11261 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11262 * p-valprint.c (pascal_object_print_value): Ditto.
11263 * somread.c (som_symtab_read): Ditto.
11264 * symfile.c (simple_free_overlay_region_table): Ditto.
11265 * valops.c (value_assign): Ditto.
11266
21c1c920
MS
11267 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11268 use tilde_expand and strerror for opening save-tracepoints file.
11269
5bbd998e
MS
11270 * thread-db.c (thread_db_new_objfile): Indendation fix.
11271
94cd915f
MS
11272 * infptrace.c (GDB_MAX_ALLOCA): New define.
11273 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11274 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11275 can be overridden with whatever value is appropriate to the host).
11276 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11277 alloca to allocate potentially large buffer.
11278 * rs6000-nat.c (child_xfer_memory): Ditto.
11279 * symm-nat.c (child_xfer_memory): Ditto.
11280 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11281
494e8a93
JSC
112822002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11283
11284 From Nick Clifton <nickc@redhat.com>
11285 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11286
d0e1d48e
MS
112872002-01-07 Michael Snyder <msnyder@redhat.com>
11288
abf22e64 11289 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11290 Don't use exec_bfd if it's NULL.
11291
290b2c7a
MK
112922002-01-06 Mark Kettenis <kettenis@gnu.org>
11293
abf22e64 11294 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11295
aef21287
AC
112962002-01-06 Andrew Cagney <ac131313@redhat.com>
11297
11298 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11299 * gnu-nat.c: Ditto.
11300
30efa627
AC
113012002-01-06 Andrew Cagney <ac131313@redhat.com>
11302
11303 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11304 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11305 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11306 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11307 z8k-coff have not been multi-arched. Update z8k-coff build
11308 status.
11309
9b4ff276
AC
113102002-01-06 Andrew Cagney <ac131313@redhat.com>
11311
11312 * MAINTAINERS: Mark a29k target as obsolete.
11313 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11314 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11315 comments.
11316 * NEWS: Note that a29k targets are obsolete.
11317 * a29k-tdep.c: Mark as obsolete.
11318 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11319 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11320 a29k-*-vxworks* targets as obsolete.
11321 * remote-adapt.c: Obsolete.
11322 * remote-eb.c: Obsolete.
11323 * remote-mm.c: Obsolete.
11324 * remote-udi.c: Obsolete.
11325 * config/a29k/a29k-udi.mt: Obsolete.
11326 * config/a29k/a29k.mt: Obsolete.
11327 * config/a29k/tm-a29k.h: Obsolete.
11328 * config/a29k/tm-vx29k.h: Obsolete.
11329 * config/a29k/vx29k.mt: Obsolete.
11330
a9011d31
AC
113312002-01-05 Andrew Cagney <ac131313@redhat.com>
11332
11333 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11334 with BFD_ENDIAN_BIG.
11335
9299404e
AC
113362002-01-05 Andrew Cagney <ac131313@redhat.com>
11337
11338 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11339 * configure, config.in: Re-generate.
11340 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11341 * defs.h: Do not include <endian.h>.
11342
7e89e357
JT
113432002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11344
11345 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11346 * config.in: Regenerate.
11347 * configure.in: Update copyright years.
11348 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11349 * configure: Regenerate.
11350 * i386bsd-nat.c: Update copyright years.
11351 (fill_gregset): Use regcache_collect.
11352 (fetch_inferior_registers): Only fetch integer registers
11353 if requested to do so. Add support for XMM registers
11354 using PT_GETXMMREGS.
11355 (store_inferior_registers): Only store integer registers
11356 if requested to do so. Add support for XMM registers
11357 using PT_SETXMMREGS.
11358 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11359 (store_inferior_registers): Remove.
11360 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11361 (fetch_elfcore_registers): New function.
11362 (i386nbsd_elfcore_fns): New.
11363 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11364 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11365 i386bsd-nat.o.
11366 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11367 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11368 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11369 * config/i386/tm-nbsd.h: Update copyright years.
11370 (HAVE_SSE_REGS): Define.
11371 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11372 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11373 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11374 (SIGCONTEXT_PC_OFFSET): Remove.
11375 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11376
a752853e
AC
113772002-01-05 Andrew Cagney <ac131313@redhat.com>
11378
11379 * configure.tgt: Remove powerpc-*-macos* target.
11380 * config/m68k/xm-mpw.h: Delete file.
11381 * config/xm-mpw.h: Delete file.
11382 * ser-mac.c: Delete file.
11383 * mpw-make.sed: Delete file.
11384 * mpw-config.in: Delete file.
11385 * mac-xdep.c: Delete file.
11386 * mac-gdb.r: Delete file.
11387 * mac-defs.h: Delete file.
11388 * mac-nat.c: Delete file.
11389 * config/powerpc/macos.mh: Delete file.
11390 * config/powerpc/macos.mt: Delete file.
11391 * config/powerpc/nm-macos.h: Delete file.
11392 * config/powerpc/tm-macos.h: Delete file.
11393 * source.c (openp, open_source_file): Remove obsolete code.
11394 * top.c (gdb_readline): Ditto.
11395 * utils.c (query): Ditto.
11396 * event-top.c (display_gdb_prompt): Ditto.
11397 * Makefile.in (ser-mac.o): Delete obsolete target.
11398 * NEWS: Update.
11399
d7449b42
AC
114002002-01-04 Andrew Cagney <ac131313@redhat.com>
11401
11402 * defs.h (BIG_ENDIAN): Delete macro definition.
11403 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11404 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11405 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11406 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11407 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11408 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11409 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11410 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11411 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11412 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11413 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11414 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11415 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11416 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11417 * gdbarch.c: Re-generate.
11418
356374e8
DJ
114192002-01-04 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11422 for core files.
11423
a2b8f8f8
JT
114242002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11425
11426 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11427
12466af9
AC
114282002-01-04 Andrew Cagney <ac131313@redhat.com>
11429
11430 * value.h (value_ptr): Delete typedef.
11431
3549ab40
JT
114322002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11433
11434 * i386nbsd-nat.c: Update copyright years.
11435 Include i386-tdep.h.
11436
fedbd091
EZ
114372002-01-04 Elena Zannoni <ezannoni@redhat.com>
11438
11439 * stabsread.c: Update copyright years.
11440
11441 From Debashis Mahata <debashis.mahata@wipro.com>:
11442 (read_struct_fields): Deal with Sun C compiler erroneous stab
11443 output for structs and unions.
fec8b34f 11444 Fix PR gdb/269.
fedbd091 11445
eb43544b
DJ
114462002-01-04 Daniel Jacobowitz <drow@mvista.com>
11447
11448 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11449 prototype.
11450
1514d34e
DJ
114512002-01-04 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * cp-abi.c: Fix whitespace.
11454 (baseclass_offset): New wrapper function.
11455 * cp-abi.h (baseclass_offset): Add prototype.
11456 (struct cp_abi_ops): Add baseclass_offset pointer.
11457
11458 * valops.c (vb_match): Move to...
11459 * gnu-v2-abi.c (vb_match): here.
11460 * valops.c (baseclass_offset): Move to...
11461 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11462
11463 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11464
11465 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11466 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11467 * hpacc-abi.c (init_hpacc_ops): Likewise.
11468
7f8c9282
DJ
114692002-01-04 Daniel Jacobowitz <drow@mvista.com>
11470
11471 * valops.c (find_overload_match): Accept obj as a
11472 reference parameter. Update it before returning.
11473 * value.h (find_overload_match): Update prototype.
11474 * eval.c (evaluate_subexp_standard): Pass object to
11475 find_overload_match by reference.
11476
f23631e4
AC
114772002-01-03 Andrew Cagney <ac131313@redhat.com>
11478
11479 * valarith.c: Replace value_ptr with struct value pointer. Remove
11480 register attribute from value declarations.
11481 * valops.c: Ditto.
11482 * value.h: Ditto.
11483 * scm-lang.c (scm_lookup_name): Ditto.
11484
79e10fab 114852002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11486
79e10fab
AC
11487 Abstract the functionality of iterating over mapped memory
11488 regions into a general purpose iterator function.
abf22e64 11489 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11490 iterator for memory sections.
11491 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11492 (solib_mappings_callback): New function, callback for above.
11493 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11494 (info_mappings_callback): New function, callback for above.
11495
11496 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11497
c5ad026a
MK
114982002-01-01 Mark Kettenis <kettenis@gnu.org>
11499
d2a7c97a
MK
11500 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11501 * i386-tdep.c: Include "elf-bfd.h".
11502 (process_note_abi_tag_sections): New function.
11503 (i386_gdbarch_init): Add code to recognize various OS/ABI
11504 combinations.
11505
c5ad026a
MK
11506 * maint.c (_initialize_maint_cmds): Add missing \ in
11507 string-literal.
11508
a1a5b71e 11509For older changes see ChangeLog-2001
c906108c
SS
11510\f
11511Local Variables:
11512mode: change-log
11513left-margin: 8
11514fill-column: 74
11515version-control: never
11516End:
This page took 0.794786 seconds and 4 git commands to generate.