Use @sc{gcc} and @sc{gdb}.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4e0df2df
MH
12002-09-26Martin M. Hunt <hunt@redhat.com>
2
3 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4
5
9f3b7f07
AC
62002-09-26 Andrew Cagney <ac131313@redhat.com>
7
8 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
9 frame.
10
11269d7e
AC
112002-09-26 Andrew Cagney <ac131313@redhat.com>
12
13 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
14 (rs6000_struct_return_address): Delete variable.
15 (rs6000_store_struct_return): Update.
16 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
17 deprecated_extract_struct_value_address.
18 (rs6000_frame_align): New function.
19 (rs6000_gdbarch_init): Set frame_align.
20
f15ab4a7
AC
212002-09-26 Andrew Cagney <ac131313@redhat.com>
22
23 From Grace Sainsbury <graces@redhat.com>:
24 * Makefile.in (gdbtk-main.o): New target.
25 (gdb.o): New target.
26 (main_h): Define.
27 (main.o): Update dependencies.
28 (gdb$(EXEEXT)): Add gdb.o.
29 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
30 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
31 (SUBDIR_GDBTK_CLEAN): Set.
32 (install-gdbtk): Install the insight binary.
33 (uninstall-gdbtk): New target.
34 (all-gdbtk, clean-gdbtk): New rule.
35 * top.c (use_windows): Default to zero.
36 * main.c: Include "main.h".
37 (main): Delete.
38 (struct captured_main_args): Delete.
39 (gdb_main): New function.
40 * main.h: New file.
41 * gdb.c: New File.
42
e36180d7
AC
432002-09-25 Andrew Cagney <cagney@redhat.com>
44
45 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
46 (frame_map_regnum_to_name): New function.
47 (frame_map_name_to_regnum): New function.
48 * frame.h (frame_map_name_to_regnum): Declare.
49 (frame_map_regnum_to_name): Declare.
50 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
51 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
52 * parse.c: Do not include "builtin-regs.h".
53 (target_map_name_to_register): Delete function.
54 (write_dollar_variable): Use frame_map_name_to_regnum.
55 * parser-defs.h (target_map_name_to_register): Delete declaration.
56 * expprint.c: Include "frame.h".
57 (print_subexp): Use frame_map_regnum_to_name.
58 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
59 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
60
8b69000d
AC
612002-09-25 Andrew Cagney <ac131313@redhat.com>
62
63 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
64 wasn't saved, and the next innermost frame is a dummy, return the
65 dummy frame's link register.
66
046ca86a
JB
672002-09-24 Jim Blandy <jimb@redhat.com>
68
69 Fix from Paul Breed:
70 * main.c (captured_main): Add a `break' after the case for 'b'.
71
94b66fa7
KS
722002-09-24 Keith Seitz <keiths@redhat.com>
73
74 * varobj.c (c_type_of_child): Use get_target_type instead
75 of TYPE_TARGET_TYPE.
76
c214a6fd
FN
772002-09-22 Fernando Nasser <fnasser@redhat.com>
78
53cb0458
FN
79 * source.c (get_current_or_default_source_symtab_and_line): Remove
80 function.
81 (set_default_source_symtab_and_line): New function. Attempts to
82 determine a source file to list lines from if one is not currently
83 defined.
84 (get_current_source_symtab_and_line): Initialize sal.pc and
85 sal.end fields.
86 (set_current_source_symtab_and_line): Mark argument as const.
87 * source.h: Update declarations and comments.
88 * linespec.c (decode_line_1): Replace call to removed routine above.
89 * stack.c (print_frame_info_base): Ditto.
90 * cli/cli-cmds.c (edit_command): Ditto.
91 (list_command): Ditto.
92
932002-09-22 Fernando Nasser <fnasser@redhat.com>
94
95 * source.c (get_current__or_default_source_symtab_and_line): Initialize
96 sal.pc and sal.end fields.
c214a6fd
FN
97 (get_current_or_default_source_symtab_and_line): Ditto.
98 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
99 so we do not cause a new source symtab to be searched for (reverting an
100 unintentional change from the 2002-09-20 patch).
101 * scm-lang.c (scm_unpac): Ditto.
102
cc3b68a5
AC
1032002-09-21 Andrew Cagney <cagney@redhat.com>
104
105 * complaints.c (symfile_explanations): Remove new-line from
106 ``isolated_message''.
107 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
108 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
109
5835abe7
NC
1102002-09-20 Nick Clifton <nickc@redhat.com>
111
112 * NEWS: Announce that V850EA ISA is no longer supported.
113 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
114
a15ef5f5
DC
1152002-09-20 David Carlton <carlton@math.stanford.edu>
116
06ba1b39
DC
117 * Makefile.in (c-lang.o): Correct dependencies.
118 (utils.o): Gather dependencies.
119 (charset.o): Move.
a15ef5f5
DC
120 * c-lang.c: #include "gdb_string.h"
121
87885426
FN
1222002-09-20 Fernando Nasser <fnasser@redhat.com>
123
124 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
125 * cli/cli-cmds.c (list_command): New function. Implements the new
126 cli edit command.
127 (_init_cli_cmds): Add new command definition.
128 * gdb.1: Document edit command.
129 * doc/gdb.texinfo: Document edit command.
130
1312002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
132
133 * source.c: Make global variables current_source_symtab and
134 current_source_line static.
135 (list_command): Moved to cli/cli-cmds.c.
136 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
137 (get_first_line_listed): New accessor function.
138 (get_lines_to_list): New accessor function.
139 (get_current_source_symtab_and_line): New function. Retrieves the
140 position in the source code that we consider current.
141 (get_current_or_default_source_symtab_and_line): New function.
142 Like the above but attempts to determine a default position if one
143 is not currently defined.
144 (set_current_source_symtab_and_line): New function. Sets the source
145 code position considered current and returns the previously set one.
146 (clear_current_source_symtab_and_line): Reset stored information about
147 a current source line.
148 (_initialize_source): Remove registration for the "list" command and
149 its alias.
150 * source.h: Add declarations for the new functions above.
151 * symtab.h: Remove declarations for the global variables mentioned
152 above.
153 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
154 obtain current source line.
155 * linespec.c (decode_line_1): Ditto.
156 * macroscope.c (default_macro_scope): Ditto.
157 * scm-lang.c (scm_unpac): Ditto.
158 * stack.c (print_frame_info_base): Ditto.
159 * symfile.c (clear_symtab_users): Ditto.
160 * symtab.c (decode_line_spec): Ditto.
161 * cli/cli-cmds.c (list_command): Moved here from source.c.
162 (ambiguous_line_spec): Moved here from source.c.
163 (_init_cli_cmds): Add definition for "list" and its alias.
164 * Makefile.in: Update dependencies.
165
ddd216ea
CV
1662002-09-20 Corinna Vinschen <vinschen@redhat.com>
167
168 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
169 with what gcc thinks is correct.
170
6d305052
CV
1712002-09-20 Corinna Vinschen <vinschen@redhat.com>
172
173 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
174 multiple register push instruction.
175
234b45d4
KB
1762002-09-19 Jim Blandy <jimb@redhat.com>
177
178 Add support for distinct host and target character sets.
179 * charset.c, charset.h: New files.
180 * c-exp.y: #include "charset.h".
181 (yylex): Convert character and string literals to the target
182 character set, before returning them as the semantic value of the
183 token.
184 * c-lang.c: #include "charset.h".
185 (c_emit_char): Use charset-specific methods to recognize
186 characters with backslash escape forms, to decide which characters
187 to print literally and which to print using numeric escape
188 sequences, and to convert target characters to host characters
189 before printing.
190 * utils.c: #include "charset.h".
191 (no_control_char_error): New function.
192 (parse_escape): Use charset-specific methods to recognize
193 backslash escapes, parse `control character' notation, and convert
194 characters from the host character set to the target character set.
195 * configure.in: Set the default host character set.
196 Check where to find iconv, and what its argument types might be.
197 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
198 * Makefile.in (SFILES): List charset.c.
199 (COMMON_OBS): List charset.o.
200 (charset.o): New rule.
201 (charset_h): New header dependency variable.
202 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
203 (LIBICONV): New variable, set by configure.
204 (CLIBS): Include $(LIBICONV) here.
205 * aclocal.m4, config.in, configure: Regenerated.
206
525d6a61
JB
2072002-09-19 Joel Brobecker <brobecker@gnat.com>
208
209 * ada-exp.y: Add missing semicolons to end rules. Fixes a
210 bison 1.35 warning.
211
3ed93867
RE
2122002-09-19 Richard Earnshaw <rearnsha@arm.com>
213
214 * gdb_mbuild.sh: New file.
215
437666f8
AC
2162002-09-19 Andrew Cagney <ac131313@redhat.com>
217
218 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
219
389e51db
AC
2202002-09-18 Andrew Cagney <ac131313@redhat.com>
221
222 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
223 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
224 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
225 valops.c, value.h: Revert previous change.
226
3b4efeaa
MS
2272002-09-18 Michael Snyder <msnyder@redhat.com>
228
229 Preliminary support for Objective-C:
230 * defs.h (language_objc): New enum value.
231 (puts_filtered_tabular): Declaration only, exported from utils.c.
232 (skip_quoted): Delete, declared in completer.h.
233 * c-exp.y: Include completer.h.
234 * p-exp.y: Ditto.
235 * jv-exp.y: Ditto.
236 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
237 New operator enum values.
238 * language.h (CAST_IS_CONVERSION): Test for language_objc.
239 * language.c (binop_result_type): Handle language_objc case.
240 (integral_type, character_type, string_type, boolean_type,
241 structured_type, binop_type_check): Ditto.
242 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
243 (struct objc_specific): Add to general_symbol_info.
244 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
245 (SYMBOL_DEMANGLED_NAME): Handle objc case.
246 * parser-defs.h (struct objc_class_str): New struct type.
247 (start_msglist, end_msglist, add_msglist): Declaration only,
248 exported from objc-lang.c.
249 * value.h (value_of_local, value_nsstring,
250 call_function_by_hand_expecting_type): Exported from valops.c.
251 * valops.c (find_function_addr): Export.
252 (call_function_by_hand_expecting_type): New function.
253 (value_of_local): New function.
254 * symfile.c (init_filename_language_table): Add ".m" extension
255 for Objective-C.
256 * utils.c (puts_filtered_tabular): New function.
257 (fprintf_symbol_filtered): Add objc demangling support (disabled).
258 (set/show demangle): Extend help-string to refer to ObjC.
259 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
260 * stabsread.c (symbol_reference_defined): Objective-C symbols
261 may contain colons: make allowances when scanning stabs strings
262 for colons.
263 (objc_find_colon): New function.
264 * printcmd.c (address_info): If language == objc then print
265 "self" instead of "this".
266 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
267 OP_NSSTRING, and OP_SELF.
268 (prefixify_subexp): Ditto.
269 * source.c (print_source_lines): Mention objc in comment.
270 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
271 method names.
272
b9caf505
AC
2732002-09-18 Andrew Cagney <ac131313@redhat.com>
274
275 * complaints.h: Update copyright.
276 (struct complaints): Declare.
277 (struct complaint): Make `message' constant.
278 (internal_complaint): Declare.
279 (complaint): Declare.
280 (complaint_root): Delete declaration.
281 (symfile_complaints): Delete declaration.
282 (struct complaints): Add opaque declaration.
283 (clear_complaints): Add a complaints parameter.
284 * complaints.c: Update copyright.
285 (enum complaint_series): Define.
286 (complaint_root): Delete.
287 (struct complaints): Define.
288 (complaint_sentinel, symfile_complaint_book): New variables.
289 (symfile_explanations, symfile_complaints): New variables.
290 New variables.
291 (get_complaints): New function.
292 (vcomplaint): New function.
293 (complaint): New function.
294 (internal_complaint): New function.
295 (complain): Call vcomplain with symfile_complaint.
296 (clear_complaints): Rewrite.
297 (_initialize_complaints): Use add_setshow_command.
298 * Makefile.in (complaints.o): Update dependencies.
299 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
300 to call to clear_complaints.
301 (new_symfile_objfile, reread_symbols): Ditto.
302 (oldsyms_complaint): Delete.
303 (empty_symtab_complaint, unknown_option_complaint): Delete.
304 (free_named_symtabs): Use complaint instead of complain.
305
d2e6263c
MS
3062002-09-18 Michael Snyder <msnyder@redhat.com>
307
5fb2031a
AC
308 Contributed by Apple Computer, Inc. Merged with current sources
309 by Adam Fedor <fedor@doc.com> [cagney].
310
d2e6263c
MS
311 * objc-lang.c: First clean-up round: comments, indentation.
312 * objc-lang.h: Ditto.
313 * objc-lang.y: Ditto.
314
dec43320
AC
3152002-09-18 Andrew Cagney <ac131313@redhat.com>
316
317 * maint.c (maintenance_internal_error): Print the parameter as the
318 error message.
319 (maintenance_internal_warning): New function.
320 (_initialize_maint_cmds): Add command `maint internal-warning'.
321
322 * defs.h (internal_warning, internal_vwarning): Declare.
323 * utils.c (struct internal_problem): Define.
324 (internal_vproblem): New function.
325 (internal_warning): New function.
326 (internal_vwarning): New function.
327 (internal_warning_problem, internal_error_problem): New variables.
328 (internal_verror): Just call internal_vproblem.
329
b81654f1
MS
3302002-09-18 Michael Snyder <msnyder@redhat.com>
331
332 * objc-lang.c: New file, support for Objective-C.
333 Preliminary check-in, not yet integrated into gdb.
334 * objc-lang.h: New file.
335 * objc-exp.y: New file.
336
0542c381
AC
3372002-09-18 Andrew Cagney <ac131313@redhat.com>
338
7bda5e4a
AC
339 * infrun.c (signal_stop_update): Convert definition to ISO C.
340 (signal_print_update): Ditto.
341 (signal_pass_update): Ditto.
342 * inflow.c (terminal_save_ours): Ditto.
343
5247b418
AC
344 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
345 comments.
346
fc60962c
AC
347 * config/djgpp/fnchange.lst: Handle name clashes between
348 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
349 bfd/coff-tic80.c.
350
0542c381
AC
351 * i386-linux-tdep.h: Fix tipo.
352
5b924b9b
AF
3532002-09-18 Adam Fedor <fedor@gnu.org>
354
355 * MAINTAINERS: Add myself to the Write After Approval list.
356
5afc051b
JB
3572002-09-18 Jim Blandy <jimb@redhat.com>
358
359 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
360 texthigh and textlow to reader-specific structs caused
361 objfile_relocate to miss them. This is fixable, but the work that
362 the change was supposed to prepare GDB for never got done anyway.
363
eb944380
DC
3642002-09-18 David Carlton <carlton@math.stanford.edu>
365
366 * MAINTAINERS: Alphabetize Write After Approval list.
367
948e66d9
DJ
3682002-09-18 Daniel Jacobowitz <drow@mvista.com>
369
370 Fix PR gdb/709
371 * values.c (value_static_field): Call read_var_value.
372
dc604539
AC
3732002-09-18 Andrew Cagney <ac131313@redhat.com>
374
375 * valops.c (hand_function_call): Align the initial stack pointer
376 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
377 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
378 return value.
379 * mips-tdep.c (mips_frame_align): New function.
380 (mips_gdbarch_init): Set frame_align.
381 * gdbarch.sh (FRAME_ALIGN): New method.
382 * gdbarch.h, gdbarch.c: Re-generate.
383
cb7e422f
ML
3842002-09-18 Michal Ludvig <mludvig@suse.cz>
385
386 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
387 registers.
388
a094c6fb
AC
3892002-09-17 Andrew Cagney <ac131313@redhat.com>
390
391 * NEWS: Mention that MIPS $fp behavior changed.
392 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
393 reference to FP_REGNUM.
394 (mipsnbsd_cannot_store_register): Ditto.
395 * mips-linux-nat.c: Update copyright.
396 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
397 (mips_linux_cannot_store_register): Ditto.
398 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
399 * config/mips/tm-mips.h: Update copyright.
400 (FP_REGNUM): Delete macro.
401 (MIPS_REGISTER_NAMES): Replace "fp" with "".
402 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
403 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
404 (mips_r3041_reg_names, mips_r3051_reg_names)
405 (mips_r3081_reg_names): Replace "fp" with "".
406 Fix PR gdb/480.
407
45cf40d1
TR
4082002-09-17 Theodore A. Roth <troth@verinet.com>
409
410 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
411 generic_read_register_dummy() (PR gdb/703).
412 (avr_push_return_address): #if 0 out unused vars.
413 (avr_gdbarch_init): Enable use of avr_push_return_address().
414
c7e701b5
MS
4152002-09-17 Michael Snyder <msnyder@redhat.com>
416
d76ba2a5 417 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
418 RTE will take care of it.
419
20bcf01c
AC
4202002-09-17 Andrew Cagney <ac131313@redhat.com>
421
422 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
423 invalid, return SP_REGNUM.
424
009a9971 4252002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
426
427 * mips-tdep.c (mips_pop_frame): Read saved values of floating
428 point registers without sign extension.
429
135c175f
AC
4302002-09-17 Andrew Cagney <cagney@redhat.com>
431
432 * blockframe.c (deprecated_read_register_dummy): Rename
433 generic_read_register_dummy.
434 * frame.c (frame_unwind_signed_register): New function.
435 (frame_unwind_unsigned_register): New function.
436 * frame.h (frame_unwind_signed_register): Declare.
437 (frame_unwind_unsigned_register): Declare.
438 (deprecated_read_register_dummy): Rename
439 generic_read_register_dummy.
440
441 * h8300-tdep.c (h8300_frame_chain): Update.
442 (h8300_frame_saved_pc): Update.
443 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
444 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
445 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
446 (s390_frame_chain): Update.
447 * v850-tdep.c (v850_find_callers_reg): Update.
448 (v850_frame_saved_pc): Update.
449 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
450 (m32r_find_callers_reg): Update.
451 (m32r_frame_saved_pc): Update.
452 * sh-tdep.c (sh_find_callers_reg): Update.
453 (sh64_get_saved_pr): Update.
454 (sh_init_extra_frame_info): Update.
455 (sh_init_extra_frame_info): Update.
456 (sh64_init_extra_frame_info): Update.
457 (sh64_init_extra_frame_info): Update.
458 * mcore-tdep.c (mcore_find_callers_reg): Update.
459 (mcore_frame_saved_pc): Update.
460 (mcore_init_extra_frame_info): Update.
461 * i386-tdep.c (i386_frame_saved_pc): Update.
462 * ia64-tdep.c (ia64_frame_saved_pc): Update.
463 (ia64_init_extra_frame_info): Update.
464 (ia64_init_extra_frame_info): Update.
465 * d10v-tdep.c (d10v_frame_saved_pc): Update.
466 * cris-tdep.c (cris_init_extra_frame_info): Update.
467 * avr-tdep.c (avr_frame_chain): Update.
468 (avr_init_extra_frame_info): Update.
469 (avr_frame_saved_pc): Update.
470 * arm-tdep.c (arm_find_callers_reg): Update.
471 (arm_init_extra_frame_info): Update.
472 (arm_frame_saved_pc): Update.
473
a741e514
TT
4742002-09-17 Tom Tromey <tromey@redhat.com>
475
476 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
477 is "'".
478
d1a8e808
CV
4792002-09-17 Corinna Vinschen <vinschen@redhat.com>
480
481 * MAINTAINERS: Remove "non multi-arched" text from h8300.
482 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
483 NEXT_PROLOGUE_INSN.
484 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
485 NEXT_PROLOGUE_INSN.
486
d9025a18
JB
4872002-09-16 Joel Brobecker <brobecker@gnat.com>
488
489 * osfsolib.c: Remove file, replaced by solib-osf.c.
490 * Makefile.in: Remove compilation rules for osfsolib.c.
491
1b2ef1b6
DC
4922002-09-16 David Carlton <carlton@math.stanford.edu>
493
494 * cp-valprint.c (cp_print_class_method): Correct args to
495 check_stub_method_group.
496
928e48af
CV
4972002-09-16 Corinna Vinschen <vinschen@redhat.com>
498
499 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
500 `set architecture'. Unify naming convention of functions.
501 (h8300_skip_prologue): Improve prologue analysis.
502 (h8300_push_arguments): Rewritten to more closely match GCC's
503 bizarre argument-passing behavior, along with the comment describing
504 said behavior.
505 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
506 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
507 sim, remote-e7000.c, remote-hms.c and remote.c
508
5e3397bb
MK
5092002-09-15 Mark Kettenis <kettenis@gnu.org>
510
511 * i386-tdep.c (gdb_print_insn_i386): Removed.
512 (i386_print_insn): New function.
513 (i386_gdbarch_init): Set print_insn to i386_print_insns.
514 (_initialize_i386_tdep): Don't initialize tm_print_insn and
515 tm_print_insn_info.
516
f710f4fc
MK
5172002-09-14 Mark Kettenis <kettenis@gnu.org>
518
519 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
520 zero.
521
db54fef4
CV
5222002-09-14 Corinna Vinschen <vinschen@redhat.com>
523
524 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
525 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
526 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
527
2becadee
CF
5282002-09-13 Christopher Faylor <cgf@redhat.com>
529
530 * win32-nat.c (child_create_inferior): Honor 'tty' command.
531
de17c821
DJ
5322002-09-13 Daniel Jacobowitz <drow@mvista.com>
533
534 * gdbtypes.c (check_stub_method): Make static.
535 (check_stub_method_group): New function.
536 * gdbtypes.h: Update prototypes.
537 * cp-support.c: New file.
538 * cp-support.h: New file.
539
540 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
541 (update_method_name_from_physname): New function.
542 (read_member_functions): Correct method names for operators
543 and v3 constructors/destructors. Separate v2 constructors and
544 destructors.
545 * Makefile.in (stabsread.o): Update dependencies.
546 (SFILES): Add cp-support.c.
547 (COMMON_OBS): Add cp-support.o.
548 (cp_support_h, cp-support.o): Add.
549
550 * cp-valprint.c (cp_print_class_method): Call
551 check_stub_method_group instead of check_stub_method. Remove
552 extraneous QUITs.
553 * p-valprint.c (pascal_object_print_class_method): Likewise.
554 * valops.c (search_struct_method): Likewise.
555 (find_method_list, value_struct_elt_for_reference): Likewise.
556
e76cff22
AC
5572002-09-13 Andrew Cagney <cagney@redhat.com>
558
559 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
560 * gdbarch.h, gdbarch.c: Regenerate.
561
905abb3f
AC
5622002-09-13 Andrew Cagney <ac131313@redhat.com>
563
564 * frame.c (find_saved_register): Delete function.
565 * frame.h (find_saved_register): Delete declaration.
566 Fix PR gdb/631.
567
64159455
AC
568Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
569
570 * mips-tdep.c (read_next_frame_reg): Re-hack using
571 frame_register_unwind.
572
795e1e11
AC
573Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
574
575 * mips-tdep.c (mips_get_saved_register): Re-hack using
576 frame_register_unwind.
577
5720643c
JB
5782002-09-12 Joel Brobecker <brobecker@gnat.com>
579
580 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
581 vector. Will be useful for Interix.
582 * gdbarch.h, gdbarch.c: Regenerate.
583
584 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
585 name of the malloc function by NAME_OF_MALLOC.
586
3bada2a2
JB
5872002-09-12 Joel Brobecker <brobecker@gnat.com>
588
589 * value.h (find_function_in_inferior): Add const keyword to
590 one of the parameters. Allows us to invoke this function with
591 a const char *.
592 * valops.c (find_function_in_inferior): Likewise.
593
3db26b01
JB
5942002-09-12 Joel Brobecker <brobecker@gnat.com>
595
596 * exec.c (xfer_memory): Fix compilation warning with old versions
597 of GCC.
598 * tracepoint.c (trace_find_tracepoint_command): Likewise.
599
17c5ed2c
DC
6002002-09-12 David Carlton <carlton@math.stanford.edu>
601
602 * symtab.h: Run through gdb_indent.h.
603 Add 2002 to Copyright year list.
604
ecd1107e
AM
6052002-09-12 Alan Modra <amodra@bigpond.net.au>
606
607 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
608 mach constants.
609 * MAINTAINERS: Add myself to write after approval list.
610
e64f66d1
JB
6112002-09-11 J. Brobecker <brobecker@gnat.com>
612
613 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
614
f9395794
JB
6152002-09-11 J. Brobecker <brobecker@gnat.com>
616
617 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
618 Interix.
619
1a303dec
MS
6202002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
621
622 * procfs.c (do_detach): Clear current signal, not just fault.
623 Corrects problem with breakpoint trap signal leaking to detached
624 process on Tru64.
625
c0219d42
MS
6262002-09-10 Michael Snyder <msnyder@redhat.com>
627
628 * buildsym.c (finish_block): Protect against null pointer.
629
9d84ac84
AC
6302002-09-10 Andrew Cagney <cagney@redhat.com>
631
632 * infcmd.c (default_print_registers_info): Send all output to
633 ``file'' instead of ``gdb_stdout''.
634
77d8f2b4
MS
6352002-09-10 Michael Snyder <msnyder@redhat.com>
636
637 * mips-tdep.c (mips_extract_struct_value_address): Make val a
638 LONGEST, and use signed register read (addresses are sign-
639 extended for mips).
640
99656a61
SC
6412002-09-10 Stephane Carrez <stcarrez@nerim.fr>
642
643 * event-loop.c (gdb_do_one_event): Make public.
644 * event-loop.h (gdb_do_one_event): Declare.
645
da12f4d8
JL
6462002-09-10 Jeff Law <law@redhat.com>
647
648 * infttrace.c (child_resume): Simplify and rework to avoid
649 TT_PROC_CONTINUE.
650
d0aee0c4
FF
6512002-09-09 Fred Fish <fnf@intrinsity.com>
652
653 * printcmd.c (print_scalar_formatted): "len" is the number of
654 target bytes, NOT the number of target bits.
655
7cb3ec5e
EZ
6562002-09-09 Elena Zannoni <ezannoni@redhat.com>
657
658 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
659 * top.c (init_main): Set rl_terminal_name.
660
4dc81987
AS
6612002-09-08 Aidan Skinner <aidan@velvet.net>
662
663 * ada-lang.c (ada_array_bound, ada_type_match,
664 _initialize_ada_language): Fix K&R definitions.
665 * ada-tasks.c (get_current_task): Fix K&R definitions.
666 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
667
842330b4
CF
6682002-09-07 Christopher Faylor <cgf@redhat.com>
669
670 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
671 Add XP.
672
43156d82
MK
6732002-09-06 Mark Kettenis <kettenis@gnu.org>
674
66da5fd8
MK
675 * i386-tdep.c (i386_register_virtual_type,
676 i386_register_convertible, i386_register_convert_to_virtual,
677 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
678 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
679 (i386_gdbarch_init): Fix comment. Add comments on calls that set
680 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
681 Don't set push_arguments twice.
682
4b218c18
MK
683 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
684 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
685 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
686 sigtramp_end to NULL.
687 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
688 defines.
689 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
690
4cc314d5
MK
691 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
692 whitespace.
693
43156d82
MK
694 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
695 * gdbarch.h, gdbarch.c: Re-generate.
696 * blockframe.c (find_pc_sect_partial_function): Convert to use
697 SIGTRAMP_START_P predicate.
698
6672060b
MS
6992002-09-05 Michael Snyder <msnyder@redhat.com>
700
a90c3637
MS
701 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
702 generic_dummy_frame method and old method. Also distinguish
703 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 704 (arm_extract_return_value): Use new regcache method.
a90c3637 705
6672060b
MS
706 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
707 adjustment that doesn't conform to the ABI.
708 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
709 saved regcache, not from current regcache.
710
299ffc64
AC
7112002-09-05 Andrew Cagney <ac131313@redhat.com>
712
713 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
714 * README: Update.
715
a3a2ee65
JT
7162002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
717
718 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
719 if arm_apcs_32 is false.
720
2bc7eea9
AC
7212002-09-04 Andrew Cagney <ac131313@redhat.com>
722
723 GDB 5.3 branch created.
724
8a55a7c5
TR
7252002-09-03 Theodore A. Roth <troth@verinet.com>
726
727 * gdb/avr-tdep.c (avr_gdbarch_init): Use
728 generic_unwind_get_saved_register.
729
e26fb1d7
DC
7302002-09-03 David Carlton <carlton@math.stanford.edu>
731
732 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
733 argument (PR gdb/653). Update call to smash_to_method_type.
734 (read_structure_scope): Update call to dwarf2_add_member_fn.
735
30d52491
ML
7362002-09-03 Michal Ludvig <mludvig@suse.cz>
737
738 * x86-64-linux-tdep.c: Include gdb_string.h
739 * x86-64-linux-nat.c: Ditto.
740
06891d83
JT
7412002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
742
743 * ada-exp.y (yyname, yyrule): Remap global variables that appear
744 when YYDEBUG is set to 1.
745 * c-exp.y: Likewise.
746 * f-exp.y: Likewise.
747 * jv-exp.y: Likewise.
748 * m2-exp.y: Likewise.
749 * p-exp.y: Likewise.
750
7d400e77
JT
7512002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
752
753 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
754 dependency list.
755 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
756 solib_svr4_fetch_link_map_offsets to
757 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
758 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
759 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
760 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
761 solib-svr4.o, and solib-legacy.o.
762 * config/i386/tm-nbsd.h: Include solib.h.
763
704a27c4
JT
7642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
765
766 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
767 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
768 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
769 comment noting that this needs its own target configuration.
770 * config/i386/nbsd.mt: New file.
771 * config/i386/nbsdaout.mt: Remove.
772 * config/i386/nbsdelf.mt: Ditto.
773 * config/i386/tm-nbsdaout.h: Ditto.
774
d66198e1
JT
7752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
776
777 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
778 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
779 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
780 tdep->sigtramp_end.
781 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
782 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
783 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
784
3cac699e
JT
7852002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
786
787 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
788 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
789 * i386-tdep.h (i386bsd_init_abi): New prototype.
790 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
791 function declaration.
792 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
793 for NetBSD-a.out or NetBSD-ELF.
794 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
795 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
796 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
797 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
798 and nbsd-tdep.h.
799 (i386nbsd_pc_in_sigtramp): New function.
800 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
801 i386nbsd_pc_in_sigtramp.
802 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
803 and i386nbsdelf_init_abi OS ABI handlers.
804 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
805 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
806
7010ca0a
MK
8072002-09-02 Mark Kettenis <kettenis@gnu.org>
808
809 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
810 registers if the target really has them.
811
6dd93b72
JT
8122002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
813
814 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
815 than nbsd-tdep.h.
816
2ca8ae21
JT
8172002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
818
819 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
820 list.
821 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
822 (alphanbsd_skip_sigtramp_frame): New functions.
823 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
824 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
825 to alphanbsd_sigcontext_addr.
826
3d9b49b0
JT
8272002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
828
829 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
830 list.
831 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
832 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
833 nbsd_pc_in_sigtramp.
834 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
835 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
836 * nbsd-tdep.c: Include gdb_string.h.
837 (nbsd_pc_in_sigtramp): New function.
838 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
839 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
840 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
841 ppcnbsd_pc_in_sigtramp.
842 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
843 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
844 shnbsd_pc_in_sigtramp.
845 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
846 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
847 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
848
c860120c
PM
8492002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
850
851 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
852 watchpoints to NULL.
853 (insert_breakpoints): set val field of watchpoints if NULL.
854
855
c7612d53
JB
8562002-08-29 Jim Blandy <jimb@redhat.com>
857
858 * symtab.c (lookup_symbol_aux): In the cases where we find a
859 minimal symbol of an appropriate name and use its address to
860 select a symtab to read and search, use `name' (as passed to us)
861 as the demangled name when searching the symtab's global and
862 static blocks, not the minsym's name.
863
66609862
KS
8642002-08-29 Keith Seitz <keiths@redhat.com>
865
866 * stack.c (print_frame_info_base): Always set current_source_symtab
867 and current_source_line.
868
151fefe2
JB
8692002-08-29 Donn Terry <donnte@microsoft.com>
870
871 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
872
bfb3754e
KS
8732002-08-28 Keith Seitz <keiths@redhat.com>
874
875 * stack.c (select_frame): Add FIXME concerning selected-frame
876 events.
877 (select_frame_command): Send selected-frame-level-changed
878 event notification, but only if the level actually changed.
879 (up_silently_base): Add selected-frame-level-changed event
880 notification.
881 (down_silently_base): Likewise.
882
e822a2a0
AC
8832002-08-28 Andrew Cagney <ac131313@redhat.com>
884
885 * Makefile.in: Update dependencies for all gdb/*.c files.
886
309367d4
TT
8872002-08-27 Tom Tromey <tromey@redhat.com>
888
889 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
890 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
891 Update dependencies.
892 * i387-tdep.c: Include gdb_string.h.
893 * osabi.c: Likewise.
894 * i386-linux-nat.c: Likewise.
895 * lin-lwp.c: Likewise.
896 * ax-gdb.c: Likewise.
897 * signals/signals.c: Likewise.
898 * jv-valprint.c: Likewise.
899 * p-lang.c: Likewise.
900 * c-valprint.c: Likewise.
901 * cp-abi.c: Likewise.
902
e1507482
EZ
9032002-08-27 Elena Zannoni <ezannoni@redhat.com>
904
905 * cli/cli-script.h (copy_command_lines): Export.
906 * breakpoint.c: Include cli/cli-script.h.
907 * Makefile.in (breakpoint.o): Update dependencies.
908
c6510018
MS
9092002-08-26 Michael Snyder <msnyder@redhat.com>
910
911 * breakpoint.c (insert_breakpoints): Protect all references
912 to 'process_warning'. Shorten long lines.
913
c2b8ed2c
MS
9142002-08-26 Joel Brobecker <brobecker@gnat.com>
915
916 * cli/cli-script.c (copy_command_lines): New function.
917 * defs.h (copy_command_lines): Export.
918 * testsuite/gdb.base/commands.exp: New tests for commands
919 attached to a temporary breakpoint, and for commands that
920 delete the breakpoint they are attached to.
921
9222002-08-26 Michael Snyder <msnyder@redhat.com>
923
924 * breakpoint.c (bpstat_stop_status): Instead of copying the
925 pointer to the breakpoint commands struct, make a new copy
926 of the struct and point to that.
927 (bpstat_clear): Free the commands struct.
928 (bpstat_clear_actions): Free the commands struct.
929 (bpstat_do_actions): Free the command actions. Also execute
930 the local cleanups, instead of deleting them.
931 (delete_breakpoint): Leave the commands field of the bpstat
932 chain alone -- it will be freed later.
933
64b84175
KB
9342002-08-26 Kevin Buettner <kevinb@redhat.com>
935
936 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
937 deleted in 2002-08-20 commit. This function is still used by
938 ppc-linux-nat.c.
939
55970da6
KS
9402002-08-26 Keith Seitz <keiths@redhat.com>
941
942 * gdb-events.sh: Add selected-frame-level-changed event.
943 * gdb-events.c: Regenerated.
944 * gdb-events.h: Regenerated.
945
a790ad35
SC
9462002-08-26 Stephane Carrez <stcarrez@nerim.fr>
947
948 Fix PR gdb/393:
949 * inflow.c (terminal_save_ours): New function to save terminal
950 settings.
951 * inferior.h (terminal_save_ours): Declare.
952 * target.c (debug_to_terminal_save_ours): New function.
953 (cleanup_target): Defaults to_terminal_save_ours.
954 (update_current_target): Inherit to_terminal_save_ours.
955 (setup_target_debug): Set to_terminal_save_ours.
956 * target.h (target_terminal_save_ours): New to save terminal settings.
957 (target_ops): New member to_terminal_save_ours.
958 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
959 * hpux-thread.c (init_hpux_thread_ops): Likewise.
960 * inftarg.c (init_child_ops): Likewise.
961 * m3-nat.c (init_m3_ops): Likewise.
962 * procfs.c (init_procfs_ops): Likewise.
963 * wince.c (init_child_ops): Likewise.
964 * win32-nat.c (init_child_ops): Likewise.
965 * sol-thread.c (init_sol_thread_ops): Likewise.
966
c00dcbe9
MK
9672002-08-26 Mark Kettenis <kettenis@gnu.org>
968
3d7f4f49
MK
969 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
970 use regcache_* functions.
971 (i386_gdbarch_init): Set store_return_value instead of
972 deprecated_store_return_value.
973
c00dcbe9
MK
974 * regcache.c (regcache_raw_write_signed,
975 regcache_raw_write_unsigned): New functions.
976 * regcache.h (regcache_raw_write_signed,
977 regcache_raw_write_unsigned): New prototypes.
978
0e0d15ca
AC
9792002-08-25 Andrew Cagney <ac131313@redhat.com>
980
981 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
982 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
983 source file dependencies. Cleanup corresponding generator rules.
984
d3b22ed5
AC
9852002-08-25 Andrew Cagney <ac131313@redhat.com>
986
987 * regcache.h (register_offset_hack): Declare.
988 (regcache_cooked_read_using_offset_hack): Declare.
989 (regcache_cooked_write_using_offset_hack): Declare.
990
991 * regcache.c (register_offset_hack): New function.
992 (regcache_cooked_read_using_offset_hack): New function.
993 (regcache_cooked_write_using_offset_hack): New function.
994 (regcache_dump): Check that the registers, according to their
995 offset, are packed hard against each other.
996 (cooked_xfer_using_offset_hack): New function.
997
bb425013
AC
9982002-08-25 Andrew Cagney <ac131313@redhat.com>
999
1000 * regcache.c (struct regcache_descr): Add field register_type.
1001 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1002 in as a parameter
1003 (init_regcache_descr): Initialize register_type. Pass the descr
1004 to init_legacy_regcache_descr. Use register_type instead of
1005 REGISTER_VIRTUAL_TYPE.
1006 (register_type): New function.
1007 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1008 * regcache.h (register_type): Declare.
1009
d0403e00
AC
10102002-08-25 Andrew Cagney <ac131313@redhat.com>
1011
1012 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1013 instead of deprecated_store_return_value. Fix fallout from
1014 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1015
0ed04cce
AC
10162002-08-25 Andrew Cagney <ac131313@redhat.com>
1017
1018 * regcache.c (max_register_size): New function.
1019 (init_legacy_regcache_descr): Ensure that max_register_size is
1020 large enough for REGISTER_VIRTUAL_SIZE.
1021 * regcache.h (max_register_size): Declare.
1022
46d79c04
AC
10232002-08-24 Andrew Cagney <ac131313@redhat.com>
1024
1025 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1026 store_return_value.
1027 (e500_extract_return_value): Change type of valbuf pointer to
1028 void.
1029
853c7bd0
MK
10302002-08-24 Mark Kettenis <kettenis@gnu.org>
1031
cd87e769
MK
1032 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1033 workaround.
1034
853c7bd0
MK
1035 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1036 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1037 long long) to prevent compiler warning on 64-bit systems.
1038
ebba8386
AC
10392002-08-23 Andrew Cagney <cagney@redhat.com>
1040
1041 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1042 (DEPRECATED_STORE_RETURN_VALUE): New method.
1043 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1044 * gdbarch.h, gdbarch.c: Re-generate.
1045
1046 * values.c (set_return_value): Pass current_regcache to
1047 STORE_RETURN_VALUE.
1048 * arch-utils.h (legacy_store_return_value): Declare.
1049 * arch-utils.c (legacy_store_return_value): New function.
1050 (legacy_extract_return_value): Update parameters.
1051
1052 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1053 STORE_RETURN_VALUE.
1054 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1055 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1056 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1057 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1058 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1059 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1060 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1061 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1062 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1063 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1064
1065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1066 * i386-tdep.c (i386_extract_return_value): Update.
1067 * arch-utils.c (legacy_extract_return_value): Update.
1068 * frv-tdep.c (frv_gdbarch_init): Update.
1069 * cris-tdep.c (cris_gdbarch_init): Update.
1070 * d10v-tdep.c (d10v_gdbarch_init): Update.
1071 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1072 * m68k-tdep.c (m68k_gdbarch_init): Update.
1073 * mcore-tdep.c (mcore_gdbarch_init): Update.
1074 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1075 * s390-tdep.c (s390_gdbarch_init): Update.
1076 * sparc-tdep.c (sparc_gdbarch_init): Update.
1077 * sh-tdep.c (sh_gdbarch_init): Update.
1078 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1079 * v850-tdep.c (v850_gdbarch_init): Update.
1080 * avr-tdep.c (avr_gdbarch_init): Update.
1081 * ia64-tdep.c (ia64_gdbarch_init): Update.
1082 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1083 * vax-tdep.c (vax_gdbarch_init): Update.
1084 * alpha-tdep.c (alpha_gdbarch_init): Update.
1085 * arm-tdep.c (arm_gdbarch_init): Update.
1086 * mips-tdep.c (mips_gdbarch_init): Update.
1087 * i386-tdep.c (i386_gdbarch_init): Update.
1088
5bd8c6d0
AC
10892002-08-23 Andrew Cagney <ac131313@redhat.com>
1090
1091 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1092 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1093
e73e1724
MK
10942002-08-24 Mark Kettenis <kettenis@gnu.org>
1095
1096 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1097 problems.
1098
3e6564e1
JB
10992002-08-23 Joel Brobecker <brobecker@gnat.com>
1100
1101 * infrun.c (handle_inferior_event): Move a comment outside of a
1102 function call, in order to avoid indent reformatting this part
1103 of the code in an unreadable way.
1104
81d0cc19
GS
11052002-08-23 Grace Sainsbury <graces@redhat.com>
1106
1107 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1108 when breakpoints fail. Move general breakpoint error messages to
1109 insert_breakpoints.
1110 * breakpoint.c (insert_breakpoints): Change warnings when
1111 breakpoints are nto inserted to specify the type. Remove call to
1112 memory_error when hardware breakpoints can't be inserted. Remove
1113 multiple calls to warning so all messages are sent to the user at
1114 once.
1115 (delete_breakpoints): Make insert error messsages more explicit.
1116
17574093
DJ
11172002-08-23 Daniel Jacobowitz <drow@mvista.com>
1118
1119 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1120 gdbserver/ChangeLog.
1121
8acc2935
MK
11222002-08-23 Mark Kettenis <kettenis@gnu.org>
1123
dfe01d39
MK
1124 * i386-tdep.c: Include "objfiles.h".
1125 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1126 skip_trampoline_code.
1127 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1128 (CPLUS_MARKER): Define to '.'.
1129
8acc2935
MK
1130 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1131 member.
1132 (linux_corefile_thread_callback): Increase args->num_notes.
1133 (linux_make_note_section): Initialize thread_args.num_notes, and
1134 use it to determine whether notes for any threads were created.
1135
151fefe2 11362002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1137
1138 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1139 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1140 and PCUNKILL.
1141 (write_with_trace): Conditionalize out the switch branch handling
1142 PCSHOLD if the corresponding macro is not defined. Likewise for
1143 PRSABORT and PRSTOP.
1144 This change will be needed by the Interix port.
1145
e1507482
EZ
11462002-08-22 Elena Zannoni <ezannoni@redhat.com>
1147
1148 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1149 write_register wherever possible instead of manipulating the
1150 register bytes directly.
1151 Assign VALUE_CONTENTS to a variable and use that.
1152 The GPR numbers are now dependent on the architecture.
1153
96ff0de4
EZ
11542002-08-22 Elena Zannoni <ezannoni@redhat.com>
1155
1156 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1157 ev_offset fields.
1158 (skip_prologue): Add support for BookE/e500 instructions.
1159 (e500_extract_return_value): New function.
1160 (frame_get_saved_regs): Add support for saving ev registers and
1161 pseudo gpr's.
1162 (e500_store_return_value): New function.
1163 (rs6000_gdbarch_init): Move up default intializations of
1164 deprecated_extract_return_value and store_return_value. Overwrite
1165 init of store_return_value with e500 specific version.
1166 Set extract_return_value for e500.
1167
fbefca5b
EZ
11682002-08-22 Elena Zannoni <ezannoni@redhat.com>
1169
1170 * blockframe.c (generic_call_dummy_register_unwind): Use
1171 regcache_cooked_read to catch cases in which the variable is
1172 stored in a pseudo register.
1173
4d210288
AC
11742002-08-22 Andrew Cagney <cagney@redhat.com>
1175
1176 * NEWS: Mention that the i960 has been made obsolete.
1177 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1178 i960-tdep.c
1179 (remote-nrom.o): Obsolete target.
1180 (remote-nindy.o, i960-tdep.o): Ditto.
1181 * remote-nrom.c: Make file obsolete.
1182 * remote-nindy.c, remote-vx960.c: Ditto.
1183 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1184 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1185 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1186 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1187 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1188 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1189 i960-*-vxworks* obsolete.
1190 * MAINTAINERS: Note that the i960 is obsolete.
1191
6c0c456d
CV
11922002-08-21 Corinna Vinschen <vinschen@redhat.com
1193
1194 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1195 detach to allow reinitialization.
1196
9f9d12b3
AC
11972002-08-22 Andrew Cagney <ac131313@redhat.com>
1198
1199 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1200 attempt).
1201
ebeb39fe
JB
12022002-08-22 Jim Blandy <jimb@redhat.com>
1203
1204 * coffread.c (coff_symfile_read): Don't try to read the line
1205 number table from disk if the image file doesn't have a symbol
1206 table; we'll never actually look at the info anyway, and Windows
1207 ships DLL's with bogus file offsets for the line number data.
1208
5bf1c677
EZ
12092002-08-21 Elena Zannoni <ezannoni@redhat.com>
1210
1211 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1212 an e500 executable.
1213
71b8ef93
MS
12142002-08-21 Michael Snyder <msnyder@redhat.com>
1215
1216 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1217 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1218 (DEFAULT_MIPS_TYPE): Delete unused macro.
1219 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1220 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1221
d174216d
JB
12222002-08-21 Jim Blandy <jimb@redhat.com>
1223
1224 * valops.c (value_cast): Simplify and correct logic for doing a
1225 static cast from a pointer to a base class to a pointer to a
1226 derived class.
1227
0ab7a791
AC
12282002-08-21 Andrew Cagney <ac131313@redhat.com>
1229
1230 * infcmd.c (default_print_registers_info): Replace
1231 do_registers_info.
1232 (registers_info): Use gdbarch_print_registers_info instead of
1233 DO_REGISTERS_INFO.
1234 * inferior.h (default_print_registers_info): Replace
1235 do_registers_info.
1236 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1237 (DO_REGISTERS_INFO): Change to a predicate function.
1238 * gdbarch.h, gdbarch.c: Regenerate.
1239
e23792cc
KS
12402002-08-21 Keith Seitz <keiths@redhat.com>
1241
1242 * gdb-events.sh: Add target-changed event.
1243 * gdb-events.c: Regenerated.
1244 * gdb-events.c: Regenerated.
1245 * valops.c (value_assign): Add target-changed event notification
1246 to inlval_register, lval_memory, and lval_reg_frame_relative.
1247
9fb14e79
JB
12482002-08-21 Joel Brobecker <brobecker@gnat.com>
1249
1250 * NEWS: Add an entry regarding the improvement of the next/step
1251 operation on Alpha Tru64 multi-processor machines.
1252
6d39a69f
AC
12532002-08-21 Andrew Cagney <ac131313@redhat.com>
1254
72acd513
AC
1255 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1256 directores.
342af04b 1257 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1258 * Makefile.in (install-gdbtk): Move to install section.
1259 (rdi-share/libangsd.a): Move to end of file.
1260
fa5f27c7
AC
12612002-08-19 Andrew Cagney <ac131313@redhat.com>
1262
1263 * frame.c (frame_register_unwind): When a register, set addrp to
1264 the register's byte.
1265
5a89d8aa
MS
12662002-08-20 Michael Snyder <msnyder@redhat.com>
1267
1268 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1269 used locally, so move them from the target machine header to here.
1270 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1271 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1272 Make static.
1273 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1274
822e978b
AC
12752002-08-20 Andrew Cagney <cagney@redhat.com>
1276
1277 * NEWS: Mention that the Apollo line was made obsolete.
1278 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1279 m68*-hp-hpux* obsolete.
1280 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1281 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1282 * buildsym.c (make_blockvector): Make static.
1283 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1284 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1285 (ALLDEPFILES): Remove dstread.c.
1286 (dstread.o): Obsolete make rule.
1287 * dstread.c: Makefile obsolete.
1288 * dst.h: Ditto.
1289 * config/m68k/hp300hpux.mt: Ditto.
1290 * config/m68k/hp300hpux.mh: Ditto.
1291 * config/m68k/hp300bsd.mt: Ditto.
1292 * config/m68k/hp300bsd.mh: Ditto.
1293 * config/m68k/apollo68b.mt: Ditto.
1294 * config/m68k/apollo68v.mh: Ditto.
1295 * config/m68k/apollo68b.mh: Ditto.
1296
e41b17f0
MS
12972002-08-20 Michael Snyder <msnyder@redhat.com>
1298
1299 * mips-tdep.c (mips_in_return_stub): Make static.
1300 (mips_gdbarch_init): Set in_solib_return_trampoline.
1301 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1302
d50355b6
MS
13032002-08-20 Michael Snyder <msnyder@redhat.com>
1304
1305 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1306 * gdbarch.c, gdbarch.h: Regenerate.
1307 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1308 Add.
1309 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1310
757a7cc6
MS
13112002-08-20 Michael Snyder <msnyder@redhat.com>
1312
1313 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1314 (mips_gdbarch_init): Set skip_trampoline_code,
1315 in_solib_call_trampoline.
1316 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1317 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1318
c8001721
EZ
13192002-08-20 Elena Zannoni <ezannoni@redhat.com>
1320
1321 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1322
1323 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1324 vector type for ev registers.
1325 (e500_pseudo_register_read): New function.
1326 (e500_pseudo_register_write): New function.
1327 (e500_dwarf2_reg_to_regnum): New function.
1328 (PPC_UISA_NOFP_SPRS): New macro.
1329 (PPC_EV_REGS): New macro.
1330 (PPC_GPRS_PSEUDO_REGS): New macro.
1331 (registers_e500): New register set for e500.
1332 (variants): Add e500 variant.
1333 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1334 before setting architectural dependent variations. Initialize ev
1335 registers numbers. Add case for e500 architecture. Set the
1336 number of pseudo registers.
1337
64366f1c
EZ
13382002-08-20 Elena Zannoni <ezannoni@redhat.com>
1339
1340 * rs6000-tdep.c: Clean up comments.
1341
7e78f0ca
AC
13422002-08-20 Andrew Cagney <cagney@redhat.com>
1343
1344 * h8300-tdep.c: Re-indent file.
1345
697f7479
JB
13462002-08-20 Jim Blandy <jimb@redhat.com>
1347
1348 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1349 default for this.
697f7479 1350
e86ae29f
KS
13512002-08-20 Keith Seitz <keiths@redhat.com>
1352
1353 * breakpoints.c (watch_command_1): Use internal breakpoint
1354 when setting a watchpoint_scope breakpoint.
1355
216b504f
EZ
13562002-08-20 Elena Zannoni <ezannoni@redhat.com>
1357
1358 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1359 (build_builtin_type_vec64i): Ditto.
1360 (build_builtin_type_vec128): Ditto.
1361 (build_builtin_type_vec128i): Ditto.
1362
f7ab6ec6
MS
13632002-08-19 Michael Snyder <msnyder@redhat.com>
1364
1365 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1366 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1367 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1368 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1369 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1370 CALL_DUMMY_ADDRESS): Delete.
1371 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1372 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1373 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1374 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1375 push_return_address.
1376 (mips_register_raw_size, mips_eabi_use_struct_convention,
1377 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1378 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1379 mips_init_extra_frame_info, mips_eabi_push_arguments,
1380 mips_n32n64_push_arguments, mips_push_return_address,
1381 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1382 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1383
b5d1566e
MS
13842002-08-19 Michael Snyder <msnyder@redhat.com>
1385
1386 * mips-tdep.c (mips_frame_num_args): New function.
1387 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1388 frame_saved_pc, frame_args_address, frame_locals_address,
1389 frame_num_args, and frame_args_skip.
1390 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1391 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1392 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1393 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1394
2f1488ce
MS
13952002-08-20 Michael Snyder <msnyder@redhat.com>
1396
1397 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1398 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1399 * mips-tdep.c (mips_store_struct_return): New function.
1400 (mips_extract_struct_value_address): New function.
1401 (mips_gdbarch_init): Set store_struct_return and
1402 extract_struct_value_address.
1403
41ff2da1
DC
14042002-08-20 David Carlton <carlton@math.stanford.edu>
1405
1406 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1407 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1408 (read_file_scope): Check that line_header is nonzero before
1409 decoding macro information.
1410
e5451d58
MK
14112002-08-20 Mark Kettenis <kettenis@gnu.org>
1412
1413 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1414 flag the general-purpose registers as floating-point on targets
1415 that don't support the floating-point registers.
1416
4a6daafa
EZ
14172002-08-20 Elena Zannoni <ezannoni@redhat.com>
1418
1419 * rs6000-tdep.c (altivec_register_p): Delete.
1420 (rs6000_do_altivec_registers): Delete.
1421 (rs6000_altivec_registers_info): Delete.
1422 (rs6000_do_registers_info): Delete.
1423 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1424 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1425
ab4327e0
EZ
14262002-08-20 Elena Zannoni <ezannoni@redhat.com>
1427
1428 * infcmd.c (do_registers_info): Print vector registers in hex
1429 format only.
1430 (print_vector_info): Check that printing registers
1431 makes sense.
1432 (print_float_info): Ditto.
1433
cb1d2653
AC
14342002-08-20 Andrew Cagney <ac131313@redhat.com>
1435
1436 * mips-tdep.c (mips_gdbarch_init): Update.
1437 (mips_o32_extract_return_value): Rewrite.
1438 (mips_o32_store_return_value): Rewrite.
1439 (mips_o32_xfer_return_value): New function.
1440 (mips_xfer_register): Tweak debug print message. Allow for
1441 buf_offset when dumping the value transfered.
1442
dfc3d9b2
AC
14432002-08-20 Andrew Cagney <ac131313@redhat.com>
1444
1445 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1446 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1447 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1448 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1449 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1450
7807aa61
MS
14512002-08-14 Michael Snyder <msnyder@redhat.com>
1452
1453 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1454
489461e2
EZ
14552002-08-19 Elena Zannoni <ezannoni@redhat.com>
1456
1457 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1458 register.
1459 (P): New macro to define a register as a pseudo register.
1460 (R, R4, R8, R16, FR32, R64, R0): Updated.
1461 (struct variant): Add new fields for number of pseudo registers
1462 and number of total registers.
1463 (tot_num_registers): New macro replacing....
1464 (num_registers): ...deleted macro.
1465 (num_registers): New function.
1466 (num_pseudo_registers): New function.
1467 (variants): Update all variants to intialize new fields correctly.
1468 Postpone initialization of number of pseudo regs and real regs.
1469 (init_variants): New function.
1470 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1471 registers offsets.
1472
fcaffe4c
DC
14732002-08-19 David Carlton <carlton@math.stanford.edu>
1474
2c2738a0
DC
1475 * valops.c (search_struct_field): Change error message to treat
1476 return value of 0 from value_static_field as meaning that field is
1477 optimized out.
1478 (value_struct_elt_for_reference): Ditto.
1479 * values.c (value_static_field): Treat an unresolved location the
1480 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1481 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1482 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1483 * MAINTAINERS: Add self to Write After Approval list.
1484
88658117
AC
14852002-08-19 Andrew Cagney <ac131313@redhat.com>
1486
1487 * mips-tdep.c (mips_xfer_register): New function.
1488 (mips_n32n64_extract_return_value): Rewrite.
1489 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1490 instead of deprecated_extract_return_value.
1491
21283beb
EZ
14922002-08-19 Elena Zannoni <ezannoni@redhat.com>
1493
1494 * rs6000-tdep.c (TDEP): Delete macro.
1495 (branch_dest): Replace use of TDEP macro with its body.
1496 (rs6000_pop_frame): Ditto.
1497 (rs6000_push_arguments): Ditto.
1498 (rs6000_skip_trampoline_code): Ditto.
1499 (rs6000_frame_saved_pc): Ditto.
1500 (rs6000_frame_chain): Ditto.
1501 (rs6000_register_name): Ditto.
1502 (rs6000_register_byte): Ditto.
1503 (rs6000_register_raw_size): Ditto.
1504 (rs6000_register_virtual_type): Ditto.
1505 (rs6000_register_convertible): Ditto.
1506 (rs6000_convert_from_func_ptr_addr): Ditto.
1507
bf072999
DJ
15082002-08-19 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1511 conditionally.
1512 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1513 MIPS_LINUX_JB_ELEMENT_SIZE.
1514 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1515 for MAX_REGISTER_RAW_SIZE arrays.
1516 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1517 MIPS_LINUX_JB_ELEMENT_SIZE.
1518
9b949a49
PM
15192002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1520
1521 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1522
6d3e79c6
AS
15232002-08-19 Aidan Skinner <aidan@velvet.net>
1524
1525 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1526 ada-valprint.c ada-tasks.c.
1527 (YYFILES): Add ada-exp.y.
1528 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1529 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1530 (ada-exp.tab.o): New target.
1531
06c0b04e
AC
15322002-08-18 Andrew Cagney <ac131313@redhat.com>
1533
1534 * regcache.c (regcache_xfer_part): New function.
1535 (regcache_raw_read_part): New function.
1536 (regcache_raw_write_part): New function.
1537 (regcache_cooked_read_part): New function.
1538 (regcache_cooked_write_part): New function.
1539 * regcache.h (regcache_raw_read_part): Declare.
1540 (regcache_raw_write_part): Declare.
1541 (regcache_cooked_read_part): Declare.
1542 (regcache_cooked_write_part): Declare.
1543
92d1e331
DJ
15442002-08-18 Daniel Jacobowitz <drow@mvista.com>
1545
1546 * remote.c (remote_open_1): Add async_p.
1547 (remote_async_open_1): Delete.
1548 (open_remote_target): Delete.
1549 (remote_open, extended_remote_open): Update calls to remote_open_1.
1550 (remote_async_open, extended_remote_async_open): Call
1551 remote_open_1 instead of remote_async_open_1.
1552
247055de
MK
15532002-08-19 Mark Kettenis <kettenis@gnu.org>
1554
1555 * blockframe.c: Fix a few coding standard violations.
1556
641eda39
MK
15572002-08-19 Mark Kettenis <kettenis@gnu.org>
1558
0b717710
MK
1559 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1560 here from ...
1561 * config/i386/tm-i386sco5.h: ... here. File removed.
1562 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1563
26d28e12 1564 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1565 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1566 (TM_FILE): Set to tm-i386.h.
1567 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1568 * config/i386/tm-i386v.h: Remove file.
1569 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1570 instead of "i386/tm-i386v.h".
1571 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1572 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1573 "i386/tm-i386v.h".
1574 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1575 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1576 "i386/tm-i386.h".
1577
d4e0bab4
MK
15782002-08-18 Mark Kettenis <kettenis@gnu.org>
1579
1580 * config/i386/nm-i386v.h: Add protection against
1581 multiple-inclusion.
1582 (i386_register_u_addr): Remove prototype.
1583 (register_u_addr): New prototype.
1584 (REGISTER_U_ADDR): Redefine accordingly.
1585 * i386v-nat.c: Improve several comments.
1586 (i386_register_u_addr): Change signature and rename to
1587 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1588 ubase variable.
1589
46cac009
AC
15902002-08-18 Andrew Cagney <ac131313@redhat.com>
1591
1592 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1593 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1594 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1595 deprecated_extract_return_value.
1596 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1597 rename mips_o32o64_push_arguments.
1598 (mips_gdbarch_init): Update.
1599 (mips_extract_return_value): Delete.
1600 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1601 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1602 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1603 (mips_n32n64_extract_return_value): Clone
1604 mips_extract_return_value.
1605 (mips_store_return_value): Delete.
1606 (mips_o32_store_return_value): Clone mips_store_return_value.
1607 (mips_o64_store_return_value): Clone mips_store_return_value.
1608 (mips_eabi_store_return_value): Clone mips_store_return_value.
1609 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1610
d2e4a39e
AS
16112002-08-18 Aidan Skinner <aidan@velvet.net>
1612
0c30c098
AS
1613 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1614 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1615
16162002-08-18 Aidan Skinner <aidan@velvet.net>
1617
1618 * ada-lang.c: Run through gdb_indent.sh.
1619 * ada-lang.h: Run through gdb_indent.sh.
1620 * ada-tasks.c: Run through gdb_indent.sh.
1621 * ada-typeprint.c: Run through gdb_indent.sh.
1622 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1623
01fc4e33
AC
16242002-08-18 Andrew Cagney <ac131313@redhat.com>
1625
1626 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1627 ABI.
1628
d8ee244c
MK
16292002-08-18 Mark Kettenis <kettenis@gnu.org>
1630
c38d8261
MK
1631 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1632
222db64c
MK
1633 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1634 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1635
c2848c82
MK
1636 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1637 write_register_gen instead of write_register_bytes.
1638
d8ee244c
MK
1639 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1640 i[3456]-*-osf1mk* configurations have been made obsolete.
1641 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1642 i[3456]86-*-osf1mk* hosts obsolete.
1643 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1644 targets obsolete.
1645 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1646 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1647 config/i386/i386m3.mt, config/i386/nm-m3.h,
1648 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1649 config/i386/i386mk.mh, config/i386/i386mk.mt,
1650 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1651 obsolete.
1652 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1653 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1654 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1655
61d8d407
AC
16562002-08-18 Andrew Cagney <ac131313@redhat.com>
1657
1658 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1659 (hppa_value_returned_from_stack): Declare.
1660 (hppa_extract_return_value): Declare.
1661 * config/pa/hppa.mt: New file.
1662 * configure.tgt: Recognize hppa*-*-*.
1663 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1664
0c52bd59
MK
16652002-08-18 Mark Kettenis <kettenis@gnu.org>
1666
1667 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1668 comment.
1669
b5686e99
MK
16702002-08-17 Mark Kettenis <kettenis@gnu.org>
1671
1672 * top.c (gdb_rl_operate_and_get_next): Make sure
1673 operate-and-get-next functions correctly even when the history
1674 list is completely filled.
1675
c1bab85b
AC
16762002-08-18 Andrew Cagney <ac131313@redhat.com>
1677
1678 * MAINTAINERS (Target Instruction Set Architectures): Rename
1679 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1680 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1681 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1682 already listed under Host/Native.
1683
1684 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1685 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1686 mips*-*-*.
1687
32089c7c
AC
16882002-08-17 Andrew Cagney <ac131313@redhat.com>
1689
1690 * config/ia64/ia64.mt: New file.
1691 * config/alpha/alpha.mt: New file.
1692 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1693 ia64-linux-gnu. Mention that ia64-elf is broken.
1694 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1695
b4671f85
MK
16962002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1697
1698 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1699 generic_func_frame_valid instead of func_frame_valid.
1700
c8edd8b4
JB
17012002-08-16 Joel Brobecker <brobecker@gnat.com>
1702
1703 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1704 procfs appears to be broken when debugging on multi-processor
1705 machines. So enable software single stepping in order to avoid
1706 using the procfs interface to do next/step operations, using
1707 internal breakpoints instead.
1708
1709 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1710 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1711 make this pc address equal to the value it would have if the
1712 system stepping capability was used. Also set a new flag used
1713 to ensure that we don't readjust the PC one more time later.
1714
1715 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1716 address by DECR_PC_AFTER_BREAK when software single step is
1717 in use for this architecture, as this has already been taken
1718 care of in handle_inferior_event().
1719
238617f6
JB
17202002-08-16 Joel Brobecker <brobecker@gnat.com>
1721
1722 * infrun.c (handle_inferior_event): Minor reformatting, to make
1723 a rather long condition expression easier to read.
1724
541a7aac
AC
17252002-08-16 Andrew Cagney <ac131313@redhat.com>
1726
1727 * Makefile.in (gdbtk.o): Move to end of file.
1728 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1729 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1730 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1731 (gdbtk-wrapper.o, gdbres.o): Ditto.
1732
f92d4a7b
AC
17332002-08-16 Andrew Cagney <ac131313@redhat.com>
1734
1735 * Makefile.in (copying.o): Separate out compile rule.
1736 (hpux-thread.o, procfs.o, signals.o): Ditto.
1737 (v850ice.o, z8k-tdep.o): Ditto.
1738 (tui-file.o): Move to TUI section.
1739 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1740 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1741
1cce71eb
JB
17422002-08-16 Joel Brobecker <brobecker@gnat.com>
1743
1744 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1745 skip_trampoline_code, for better namespace-proofing.
1746
1747 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1748
0851f23d
JB
17492002-08-16 Joel Brobecker <brobecker@gnat.com>
1750
1751 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1752
f8d40ec8
JB
17532002-08-16 Joel Brobecker <brobecker@gnat.com>
1754
1755 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1756 signal, check whether we hit a breakpoint before checking for a
1757 single step breakpoint. Otherwise, GDB fails to notice that a
1758 breakpoint has been hit when stepping onto a breakpoint.
1759
63d022e0
KS
17602002-08-16 Keith Seitz <keiths@redhat.com>
1761
1762 * gdb-events.sh (clear_gdb_event_hooks): New function.
1763 * gdb-events.c: Regenerate.
1764 * gdb-events.h: Regenerate.
1765
6e31adb3
AC
17662002-08-16 Andrew Cagney <ac131313@redhat.com>
1767
1768 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1769 not_a_sw_breakpoint.
1770 * breakpoint.h (bpstat_stop_status): Add parameter names.
1771
c8189ed1
GS
17722002-08-16 Grace Sainsbury <graces@redhat.com>
1773
1774 * remote.c (remote_insert_hw_breakpoint)
1775 (remote_remove_hw_breakpoint): Fix calculation of length field
1776 for Z-packet.
1777
d05285fa
MS
17782002-08-15 Michael Snyder <msnyder@redhat.com>
1779
466d7106
MS
1780 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1781 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1782 (supply_fpregset): Ditto.
1783
d05285fa
MS
1784 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1785 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1786 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1787 (TARGET_READ_SP): Delete.
bf1f5b4c 1788 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1789 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1790 Delete.
1791 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1792 from macros to functions.
bf1f5b4c 1793
d05285fa
MS
1794 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1795 (mips_register_convertible, mips_register_convert_to_virtual,
1796 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1797 (mips_read_sp): New function.
1798 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1799 (mips_do_registers_info): Make static.
1800 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1801 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1802 (mips_register_convert_from_type, mips_register_convert_to_type):
1803 New functions.
1804 (mips_gdbarch_init): Set up function_start_offset,
1805 register_virtual_size, pc_in_sigtramp.
d05285fa 1806
e76f1f2e
AC
18072002-08-15 Andrew Cagney <ac131313@redhat.com>
1808
1809 * infcmd.c (vector_info): New function.
1810 (_initialize_infcmd): Add command "info vector".
1811 (print_vector_info): New function.
1812
1813 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1814 * gdbarch.h, gdbarch.c: Regenerate.
1815
4782dc19
AC
18162002-08-15 Andrew Cagney <ac131313@redhat.com>
1817
1818 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1819 ``print_all''. Only print vector registers when ``print_all''.
1820
23e3a7ac
AC
18212002-08-15 Andrew Cagney <ac131313@redhat.com>
1822
8e186fd6
AC
1823 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1824 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1825
23e3a7ac
AC
1826 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1827 Add `args' parameter.
1828 * gdbarch.h, gdbarch.c: Regenerate.
1829
1830 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1831
1832 * infcmd.c (float_info): Call print_float_info.
1833 (print_float_info): New function. By default, print the
1834 floating-point registers.
1835
1836 * arch-utils.h (default_print_float_info): Delete declaration.
1837 * arch-utils.c (default_print_float_info): Delete function.
1838
e0ca2bb9
MK
18392002-08-16 Mark Kettenis <kettenis@gnu.org>
1840
3f733acc
MK
1841 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1842 out define.
1843
7d8d2918
MK
1844 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1845 FRAME.
1846
1c7cc583
MK
1847 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1848 * configure.host: Make i[3456]86-*-aix host obsolete.
1849 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1850 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1851 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1852 config/i386/xm-i386aix.h: Make files obsolete.
1853 * i386aix-nat.c: Make file obsolete.
1854 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1855 (i386aix-nat.o): Make target obsolete.
1856
e0ca2bb9
MK
1857 * config/i386/nm-gnu.h: Removed.
1858 * config/i386/nm-i386gnu.h: New file.
1859 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1860 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1861 Moved here from ...
1862 * config/i386/tm-i386gnu.h: ... here. Removed.
1863 * config/i386/xm-i386gnu.h: Removed.
1864 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1865 (NAT_FILE): Set to nm-i386gnu.h.
1866 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1867 * i386-tdep.c: New file.
1868 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1869 (i386gnu-tdep.o): Specify dependencies.
1870
16057ec7 18712002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1872
6b99ee2e
MK
1873 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1874 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1875 Adjust a few comments to reflect reality a bit closer.
1876 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1877 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1878 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1879 target_insert_watchpoint, target_remove_watchpoint):
1880 Move defines to ...
1881 * config/i386/nm-i386sco5.h: ... here.
1882 (kernel_u_size): Add prototype. Improve a few comments and add
1883 protection against multiple inclusion.
1884
d9a6f65c
MK
1885 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1886 out define.
1887
047eff6a
MK
1888 * uw-thread.c (SP_ARG0): Define if not already defined.
1889 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1890
dcdb1290
MK
1891 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1892
5d2d0b2a
MK
1893 * config/i386/tm-i386.h: Don't include "regcache.h".
1894
61113f8b
MK
1895 * i387-tdep.h (i387_print_float_info): New prototype.
1896 * i387-tdep.c (print_i387_value, print_i387_ext,
1897 print_i387_status_word, print_i387_control_word): Add `struct
1898 ui_file *' argument and use it for output.
1899 (i387_print_float_info): Renamed from i387_float_info. Add
1900 `struct gdbarch *' and `struct ui_file *' arguments and use the
1901 latter for output.
1902 * i386-tdep.c: Include "i387-tdep.h".
1903 (i386_gdbarch_init): Set print_float_info.
1904 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1905 (FLOAT_INFO): Remove define.
1906
46e0f506
MS
19072002-08-13 Michael Snyder <msnyder@redhat.com>
1908
1909 * mips-tdep.c (mips_push_arguments): Rename to
1910 mips_eabi_push_arguments, and tune for EABI.
1911 (MIPS_REGS_HAVE_HOME_P): Delete.
1912 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1913 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1914 Delete references to mips_regs_have_home_p.
1915
409268de
KS
19162002-08-14 Keith Seitz <keiths@redhat.com>
1917
1918 * Makefile.in (install-gdbtk): Create insight plugin directory.
1919 Install plugins.tcl file.
1920
ffc6a242
KS
19212002-08-14 Keith Seitz <keiths@redhat.com>
1922
1923 * configure.in: Move SUBDIRS to near top of the file so that
1924 --enable options may add things to it.
1925 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1926 * configure: Regenerate.
1927
ebafbe83
MS
19282002-08-13 Michael Snyder <msnyder@redhat.com>
1929
1930 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1931 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1932 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1933
32f6f25d
AC
19342002-08-13 Andrew Cagney <ac131313@redhat.com>
1935
1936 * vax-tdep.c (vax_get_saved_register): Delete function.
1937 (vax_gdbarch_init): Update.
1938 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1939 (ns32k_gdbarch_init): Update.
1940 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1941 (alpha_gdbarch_init): Update.
1942
53826de9
AC
19432002-08-13 Andrew Cagney <cagney@redhat.com>
1944
1945 * regcache.c (init_regcache_descr): Overallocate the
1946 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1947 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1948 nr_raw_registers.
1949 (set_register_cached): Add range checking assertions. Use
1950 current_regcache.
1951
16057ec7 19522002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1953
1954 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1955 numbers for MMX registers.
1956
7b4c2dce
AC
19572002-08-13 Andrew Cagney <cagney@redhat.com>
1958
1959 * i386-tdep.c (i386_gdbarch_init): Use
1960 generic_unwind_get_saved_register.
1961
1e03ad20
KB
19622002-08-13 Kevin Buettner <kevinb@redhat.com>
1963
1964 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1965 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1966 target vector.
1967 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1968 Delete. Add comment regarding this now-deleted target method.
1969
548bcbec
SC
19702002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1971
1972 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1973 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1974 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1975 real PC and the page number (if it's within the memory bank window).
1976 (m68hc11_pseudo_register_write): Likewise when saving.
1977 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1978 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1979 (m68hc11_register_raw_size): And use 32-bit for it.
1980 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1981 16K memory bank is used by the prog; also use the virtual pc.
1982
7df11f59
SC
19832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1984
1985 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1986 (m68hc11_gdbarch_init): Install it in gdbarch.
1987 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1988 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1989 (MSYMBOL_SIZE): New for documentation.
1990 (insn_return_kind): Enum to specify how a function returns.
1991 (frame_extra_info): Cleanup and record the return mode.
1992 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1993 register in address computation.
1994 (m68hc11_get_return_insn): New to obtain the return instruction used
1995 by the function.
1996 (m68hc11_frame_init_saved_regs): Take into account the return
1997 instruction used by the function for far and interrupt functions.
1998 (m68hc11_init_extra_frame_info): Take into account page register.
1999 (m68hc11_frame_args_address): Adjust according to the return mode.
2000 (show_regs): Print page register only when it's used.
2001
5706502a
SC
20022002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2003
2004 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2005 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2006 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2007 registers.
2008 (m68hc11_register_raw_size): Likewise.
2009
28fc6740
AC
20102002-08-13 Andrew Cagney <cagney@redhat.com>
2011
2012 * i386-tdep.c (i386_register_name): Handle mmx registers.
2013 (mmx_regnum_p): New function.
2014 (i386_mmx_names): New array.
2015 (mmx_num_regs): New variable.
2016 (i386_pseudo_register_read): New function.
2017 (i386_pseudo_register_write): New function.
2018 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2019
2020 * regcache.c (regcache_raw_read_unsigned): New function.
2021 (regcache_raw_read_signed): New function.
2022 * regcache.h (regcache_raw_read_unsigned): Declare.
2023 (regcache_raw_read_signed): Declare.
2024
a378f419
AC
20252002-08-13 Andrew Cagney <cagney@redhat.com>
2026
2027 * regcache.c (regcache_raw_read_as_address): Delete function.
2028 (regcache_cooked_read_signed): New function.
2029 (regcache_cooked_read_unsigned): New function.
2030 * regcache.h (regcache_cooked_read_signed): Declare.
2031 (regcache_cooked_read_unsigned): Declare.
2032 (regcache_raw_read_as_address): Delete declaration.
2033
2034 * blockframe.c (generic_read_register_dummy): Use
2035 regcache_cooked_read_unsigned.
2036 * i386-tdep.c (i386_extract_struct_value_address): Use
2037 regcache_cooked_read_unsigned.
2038
81967506
SC
20392002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2040
2041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2042 double sizes according to ELF ABI flags.
2043 (gdbarch_tdep): Record elf_flags.
2044
ffe1f3ee
SC
20452002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2046
2047 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2048 (m6812_prolog): They can appear in 68HC12 function prologue.
2049 (m68hc11_frame_chain): Cleanup.
2050
98216c5d
AC
20512002-08-12 Andrew Cagney <cagney@redhat.com>
2052
2053 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2054 declarations.
2055 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2056 (i386_linux_register_raw_size): Delete function.
2057 (i386_linux_init_abi): Update.
2058 * i386-tdep.c (i386_register_raw_size): Delete function.
2059 (i386_register_byte): Delete function.
2060 (i386_gdbarch_init): Update.
2061 (i386_register_size): Delete array.
2062 (i386_register_offset): Delete array.
2063
2064 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2065 (REGISTER_RAW_SIZE): Delete macro.
2066 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2067 (REGISTER_BYTE): Delete macro.
2068
3b19021e
AS
20692002-08-11 Aidan Skinner <aidan@velvet.net>
2070
2071 * ada-lang.c (ada_lookup_partial_symbol)
2072 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2073 prototype names so that grep ^func works properly.
2074
2075 * ada-lang.c (ada_array_element_type)
2076 (ada_lookup_partial_symbol): Fix typos in parameter list.
2077
2078 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2079 Fix prototype names so that grep ^func works properly.
2080
b063e7a2
AC
20812002-08-10 Andrew Cagney <cagney@redhat.com>
2082 Elena Zannoni <ezannoni@redhat.com>
2083 Martin M. Hunt <hunt@redhat.com>
2084
2085 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2086 (build_builtin_type_vec128i): Set the vector bit.
2087 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2088 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2089 (build_builtin_type_vec64): New function.
2090 (build_builtin_type_vec64i): New function.
2091 (build_gdbtypes): Initialize builtin_type_vec64 and
2092 builtin_type_vec64i.
2093
a7e3c2ad
AC
20942002-08-09 Andrew Cagney <cagney@redhat.com>
2095
2096 * regcache.c (regcache_dump): Compare the register offset
2097 with REGISTER_BYTE.
2098 * arch-utils.c (generic_register_byte): New function.
2099 * arch-utils.h (generic_register_byte): Declare.
2100 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2101 * gdbarch.h, gdbarch.c: Regenerate.
2102
af030b9a
AC
21032002-08-09 Andrew Cagney <cagney@redhat.com>
2104
2105 * regcache.c: Include "gdbcmd.h"
2106 (_initialize_regcache): Add commands "maintenance print
2107 registers", "maintenance print raw-registers" and "maintenance
2108 print cooked-registers".
2109 (enum regcache_dump_what): Define.
2110 (dump_endian_bytes): New function.
2111 (regcache_dump): New function.
2112 (regcache_print): New function.
2113 (maintenance_print_registers): New function.
2114 (maintenance_print_raw_registers): New function.
2115 (maintenance_print_cooked_registers): New function.
2116 * Makefile.in (regcache.o): Update dependencies.
2117
cb3d25d1
MS
21182002-08-09 Michael Snyder <msnyder@redhat.com>
2119
2120 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2121 (mips_push_arguments): Correct some comments. Use paddr_nz
2122 for printing addresses in debug output. Replace static
2123 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2124 (mips_n32n64_push_arguments): New function, cloned from
2125 mips_push_arguments and tuned for the n32/n64 ABI.
2126 (mips_push_register): Buffer needs dynamic allocation.
2127 (mips_print_register): Ditto.
2128 (do_gp_register_row): Ditto.
2129 (mips_store_return_value): Ditto.
2130 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2131
2163ab9d
DH
21322002-08-09 Don Howard <dhoward@redhat.com>
2133
2134 * memattr.c (mem_info_command): Print special case of upper bound
2135 as max CORE_ADDR + 1.
2136
b78bcb18
MS
21372002-08-08 Michael Snyder <msnyder@redhat.com>
2138
2139 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2140 returns structs by ref if they're too big to fit in two registers.
2141
ffabd70d
KB
21422002-08-09 Kevin Buettner <kevinb@redhat.com>
2143
2144 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2145 saved regs value.
2146 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2147 mips_find_saved_regs().
2148 (mips_pop_frame): Likewise.
2149
fbcdb4a3
KB
21502002-08-09 Kevin Buettner <kevinb@redhat.com>
2151
2152 * blockframe.c (frame_saved_regs_register_unwind): Revise
2153 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2154 frames are in use.
2155
3c3bea1c
GS
21562002-08-09 Grace Sainsbury <graces@redhat.com>
2157
2158 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2159 T-packets; the 'a' is not taken as a register number.
2160 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2161 (remote_stopped_data_address): New functions; add to target
2162 vector.
2163 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2164 prototypes to match other implementations of this
2165 function. replace integer argument with pointer -- the length
2166 field in the Z-packet is the length of what is pointed to or 1 if
2167 pointer is null. Add to target vector.
2168 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2169 target vector.
2170
2171 From Mark Salter:
2172 * remote.c (remote_wait): Add support to extract optional
2173 watchpoint information from T-packet. Ignore unrecognized
2174 optional info in T-packet.
2175 (remote_async_wait): Ditto.
2176
5d1d95de
CV
21772002-08-09 Corinna Vinschen <vinschen@redhat.com>
2178
2179 * cli/cli-dump.c: Change fopen modes to use binary open modes
2180 as defined in include/fopen-bin.h throughout.
2181
c86b5b38
MS
21822002-08-08 Michael Snyder <msnyder@redhat.com>
2183
2184 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2185
b30590dc
KB
21862002-08-08 Kevin Buettner <kevinb@redhat.com>
2187
2188 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2189 assertion failure by returning early after a warning.
2190
498868ed
KB
21912002-08-08 Kevin Buettner <kevinb@redhat.com>
2192
2193 * mips-tdep.c (mips_find_saved_regs): Make static.
2194 (mips_frame_init_saved_regs): New function.
2195 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2196 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2197 (mips_find_saved_regs): Delete declaration.
2198
b2dd6311
GS
21992002-08-08 Grace Sainsbury <graces@redhat.com>
2200
3c3bea1c
GS
2201 * remote.c (remote_wait, remote_async_wait): Change
2202 thread_num from int to ULONGEST.
2203 (unpack_varlen_hex): Change result parameter from
2204 int * to ULONGEST *.
b2dd6311 2205
ea47855f
AC
22062002-08-08 Andrew Cagney <ac131313@redhat.com>
2207
2208 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2209 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2210 powerpc*-*-*.
2211 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2212
69db8bae
AC
22132002-08-08 Andrew Cagney <cagney@redhat.com>
2214
2215 * gcore.c (override_derive_stack_segment): Delete variable.
2216 (preempt_derive_stack_segment): Delete function.
2217 (derive_stack_segment): Delete function.
2218 (default_derive_stack_segment): Renamed to derive_stack_segment.
2219 (override_derive_heap_segment): Delete variable.
2220 (preempt_derive_heap_segment): Delete function.
2221 (derive_heap_segment): Delete function.
2222 (default_derive_heap_segment): Rename to derive_heap_segment.
2223
cb811fe7
MS
22242002-08-06 Michael Snyder <msnyder@redhat.com>
2225
2226 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2227 * mips-tdep.c (mips_EABI_use_struct_convention,
2228 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2229 New functions. (mips_use_struct_convention): Delete.
2230 (mips_gdbarch_init): set use_gdbarch_convention.
2231
8b389c40
MS
22322002-08-06 Michael Snyder <msnyder@redhat.com>
2233
2234 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2235 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2236 mips_o32_reg_struct_has_addr): New functions.
2237 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2238
5c27f28a
AC
22392002-08-07 Andrew Cagney <ac131313@redhat.com>
2240
2241 * regcache.c (pseudo_register): Delete function.
2242 (fetch_register): Delete function.
2243 (store_register): Delete function.
2244 (regcache_raw_read, legacy_read_register_gen): Use
2245 target_fetch_registers instead of fetch_register.
2246 (legacy_write_register_gen, regcache_raw_write): Use
2247 target_store_register instead of store_register.
2248 (write_register_bytes): Ditto.
2249
2250 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2251 (STORE_PSEUDO_REGISTER): Delete.
2252 * gdbarch.h, gdbarch.c: Regenerate.
2253
5b331675
CV
22542002-08-06 Corinna Vinschen <vinschen@redhat.com>
2255
2256 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2257 write dump file binary.
2258
6acdf5c7
MS
22592002-08-05 Michael Snyder <msnyder@redhat.com>
2260
2261 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2262 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2263 (mips_gdbarch_init): Set N32 target to be mips64.
2264
b2f01c35
KB
22652002-08-06 Kevin Buettner <kevinb@redhat.com>
2266
2267 * frame.c (find_saved_register): Break out of loop once saved
2268 register address is found. Don't mention sparc in loop comment
2269 anymore.
2270
63db5580
KB
22712002-08-06 Kevin Buettner <kevinb@redhat.com>
2272
2273 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2274 mips_default_saved_regsize to 8.
2275
5e34e75e
AC
22762002-08-06 Andrew Cagney <ac131313@redhat.com>
2277
2278 * gcore.c: Do not include <sys/procfs.h>.
2279 * Makefile.in (gcore.o): Update dependencies.
2280
eb4c54a2
AC
22812002-08-06 Andrew Cagney <cagney@redhat.com>
2282
2283 * configure.tgt: Make arc-*-* obsolete.
2284 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2285 * MAINTAINERS: Make arc-elf obsolete.
2286 * arc-tdep.c: Make file obsolete.
2287 * config/arc/arc.mt: Ditto.
2288 * config/arc/tm-arc.h: Ditto.
2289
ced15480
TR
22902002-08-05 Theodore A. Roth <troth@verinet.com>
2291
c1bab85b 2292 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2293
b4743822
AC
22942002-08-05 Andrew Cagney <ac131313@redhat.com>
2295
2296 * mcore-tdep.c (mcore_gdbarch_init): Use
2297 generic_unwind_get_saved_register instead of
2298 generic_get_saved_register.
2299 * v850-tdep.c (v850_gdbarch_init): Ditto.
2300 * frv-tdep.c (frv_gdbarch_init): Ditto.
2301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2302 * s390-tdep.c (s390_gdbarch_init): Ditto.
2303 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2304 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2305 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2306
3956d554
JB
23072002-08-05 Joel Brobecker <brobecker@gnat.com>
2308
2309 * objfiles.h: Add missing #include "symfile.h"
2310
2311 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2312
8249c0d6
AC
23132002-08-04 Andrew Cagney <ac131313@redhat.com>
2314
2315 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2316 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2317 of FIELD_BITSIZE.
2318
b9d14705
DJ
23192002-08-04 Daniel Jacobowitz <drow@mvista.com>
2320
2321 * NEWS: Cleanup and nitpick.
2322
dd73b9bb
AC
23232002-08-03 Andrew Cagney <ac131313@redhat.com>
2324
2325 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2326
043a27f8
AC
23272002-08-03 Andrew Cagney <ac131313@redhat.com>
2328
2329 * Makefile.in (gdbtk-bp.o): Update dependencies.
2330 (gdbtk-register.o): Ditto.
2331 (gdbtk-varobj.o): Ditto.
2332
46ce284d
AC
23332002-08-03 Andrew Cagney <cagney@redhat.com>
2334
2335 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2336 m68hc11_fetch_pseudo_register.
2337 (m68hc11_pseudo_register_write): Replace
2338 m68hc11_store_pseudo_register.
2339 (m68hc11_gdbarch_init): Update.
2340
b66d6d2e
AC
2341Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2342
2343 * gdbarch.sh: Include "gdb_string.h".
2344 * gdbarch.c: Regenerate.
2345
2346 * regcache.c: Include "gdb_string.h".
2347 * ax-general.c: Ditto.
2348 * varobj.c: Ditto.
2349 * std-regs.c: Ditto.
2350 * fbsd-proc.c: Ditto.
2351 * thread.c: Ditto.
2352
2353 * Makefile.in (regcache.o): Update dependencies.
2354 (thread.o, gdbarch.o): Ditto.
2355 (ax-general.o, gdbarch.o): Ditto.
2356 (varobj.o, std-regs.o): Ditto.
2357 (fbsd-proc.o): Specify dependencies.
2358
29e1842b
AC
23592002-08-02 Andrew Cagney <cagney@redhat.com>
2360
2361 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2362 regnum.
2363 (regcache_cooked_write): Ditto.
2364
68365089
AC
23652002-08-02 Andrew Cagney <ac131313@redhat.com>
2366
2367 * regcache.c (regcache_cooked_read): New function.
2368 (regcache_cooked_write): New function.
2369 (read_register_gen): Rewrite using regcache_cooked_read.
2370 (write_register_gen): Rewrite using regcache_cooked_write.
2371
2372 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2373 Declare.
2374
d8124050
AC
23752002-08-02 Andrew Cagney <cagney@redhat.com>
2376
2377 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2378 Replace the architecture methods register_read and register_write.
2379 * gdbarch.h, gdbarch.c: Regenerate.
2380 * regcache.c (init_regcache_descr): Update.
2381 (read_register_gen): Update.
2382 (write_register_gen): Update.
2383 (supply_register): Update comment.
2384
2385 * sh-tdep.c (sh_gdbarch_init): Update.
2386 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2387 `regcache' and `gdbarch' parameters. Make `buffer' a void
2388 pointer. Update code.
2389 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2390 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2391 void pointer. Update code.
2392 (sh64_register_write): Delete.
2393 (sh4_register_read): Delete.
2394 (sh64_register_read): Delete.
2395 (sh4_register_write): Delete.
2396 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2397 void pointer, `to' parameter a void pointer.
2398 (sh_sh64_register_convert_to_raw): Ditto.
2399
a6425924
KB
24002002-08-01 Kevin Buettner <kevinb@redhat.com>
2401
2402 * mips-tdep.c (mips_register_virtual_type): Use architecture
2403 invariant return values.
2404
ff5922b5
AC
24052002-08-01 Andrew Cagney <cagney@redhat.com>
2406
2407 * linux-proc.c: Include "gdb_string.h".
2408 * Makefile.in (linux-proc.o): Update dependency list.
2409
32a6503c
KB
24102002-08-01 Kevin Buettner <kevinb@redhat.com>
2411
2412 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2413 comment.
2414
ccaa32c7
GS
24152002-08-01 Grace Sainsbury <graces@redhat.com>
2416
2417 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2418 to_insert_watchpoint, to_remove_watchpoint,
2419 to_stopped_by_watchpoint, to_stopped_data_address,
2420 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2421 target vecctor. Define their corresponding macros so they call
2422 them.
2423
2424 * target.c: Add default and debug versions of for
2425 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2426 to_insert_watchpoint, to_remove_watchpoint,
2427 to_stopped_by_watchpoint, to_stopped_data_address,
2428 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2429
78fde5f8
KB
24302002-08-01 Kevin Buettner <kevinb@redhat.com>
2431
2432 * mips-tdep.c (mips_register_virtual_type): New function.
2433 (mips_gdbarch_init): Register mips_register_virtual_type()
2434 with gdbarch machinery.
2435 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2436 this file instead of tm-bigmips.h.
2437 (MIPS_REGSIZE): Delete this macro.
2438 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2439 multiarch version in mips-tdep.c will be found.
2440
db034ac5
AC
24412002-08-01 Andrew Cagney <cagney@redhat.com>
2442
2443 * NEWS: Menion that CHILL has been made obsolete.
2444
2445 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2446 * stabsread.c (read_range_type): Ditto.
2447 * gdbtypes.h: Ditto.
2448 * language.c (binop_type_check): Ditto.
2449 (binop_result_type): Ditto.
2450 (integral_type): Ditto.
2451 (character_type): Ditto.
2452 (string_type): Ditto.
2453 (boolean_type): Ditto.
2454 (structured_type): Ditto.
2455 (lang_bool_type): Ditto.
2456 (binop_type_check): Ditto.
2457 * language.h (_LANG_chill): Ditto.
2458 * dwarfread.c (set_cu_language): Ditto.
2459 * dwarfread.c (CHILL_PRODUCER): Ditto.
2460 * dwarfread.c (handle_producer): Ditto.
2461 * expression.h (enum exp_opcode): Ditto.
2462 * eval.c: Ditto for comments.
2463 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2464 * expprint.c (print_subexp): Ditto.
2465 (print_subexp): Ditto.
2466 * valops.c (value_cast): Ditto.
2467 (search_struct_field): Ditto.
2468 * value.h (COERCE_VARYING_ARRAY): Ditto.
2469 * symfile.c (init_filename_language_table): Ditto.
2470 (add_psymbol_with_dem_name_to_list): Ditto.
2471 * valarith.c (value_binop): Ditto.
2472 (value_neg): Ditto.
2473 * valops.c (value_slice): Ditto.
2474 * symtab.h (union language_specific): Ditto.
2475 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2476 (SYMBOL_DEMANGLED_NAME): Ditto.
2477 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2478 * defs.h (enum language): Ditto.
2479 * symtab.c (got_symtab): Ditto.
2480 * utils.c (fprintf_symbol_filtered): Ditto.
2481
2482 * ch-typeprint.c: Make file obsolete.
2483 * ch-valprint.c: Make file obsolete.
2484 * ch-lang.h: Make file obsolete.
2485 * ch-exp.c: Make file obsolete.
2486 * ch-lang.c: Make file obsolete.
2487
2488 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2489 CHILL_LIB.
2490 (TARGET_FLAGS_TO_PASS): Ditto.
2491 (CHILLFLAGS): Obsolete.
2492 (CHILL): Obsolete.
2493 (CHILL_FOR_TARGET): Obsolete.
2494 (CHILL_LIB): Obsolete.
2495 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2496 ch-valprint.c.
2497 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2498 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2499 ch-lang.o.
2500 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2501 targets.
2502
8aaf0b47
JB
25032002-07-31 Joel Brobecker <brobecker@gnat.com>
2504
2505 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2506 This does not change anything at the moment, but will be helpful
2507 later when full Ada support is integrated.
2508
f3a7b3a5
KB
25092002-07-31 Kevin Buettner <kevinb@redhat.com>
2510
2511 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2512 help message.
2513
fb850278
KB
25142002-07-31 Kevin Buettner <kevinb@redhat.com>
2515
2516 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2517 and save it in a local variable. Use variable in later test.
2518
e3bddbfa
KB
25192002-07-31 Kevin Buettner <kevinb@redhat.com>
2520
2521 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2522 test. (Thanks to Daniel Jacobowitz.)
2523
28d169de
KB
25242002-07-31 Kevin Buettner <kevinb@redhat.com>
2525
2526 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2527 (mips_abi_strings): Add "n64".
2528 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2529
7fe7e44e
KB
25302002-07-31 Kevin Buettner <kevinb@redhat.com>
2531
2532 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2533 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2534
c6caf090
KB
25352002-07-31 Kevin Buettner <kevinb@redhat.com>
2536
2537 * utils.c (host_pointer_to_address, address_to_host_pointer):
2538 Use gdb_assert() instead of explicit call to internal_error().
2539
c41669e0
KB
25402002-07-30 Kevin Buettner <kevinb@redhat.com>
2541
2542 * Makefile.in (rs6000-nat.o): Update dependencies.
2543
2544 From Nicholas Duffek:
2545 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2546 (aix-thread.o): New rule.
2547 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2548 * config/powerpc/aix432.mh: New file.
2549
2fda4977
DJ
25502002-07-30 Daniel Jacobowitz <drow@mvista.com>
2551
2552 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2553 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2554 (fetch_core_registers, ppc_linux_supply_gregset)
2555 (ppc_linux_supply_fpregset): New functions.
2556 (ppc_linux_regset_core_fns): New.
2557 (_initialize_ppc_linux_tdep): Call add_core_fns.
2558 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2559 and ppc_linux_supply_gregset.
2560 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2561 (supply_fpregset): Call ppc_linux_supply_fpregset.
2562 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2563 corelow.o.
2564 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2565
729051e6
DJ
25662002-07-30 Daniel Jacobowitz <drow@mvista.com>
2567
2568 * symtab.c (lookup_symbol): Demangle before lowercasing.
2569
5f8a3188
AC
25702002-07-30 Andrew Cagney <ac131313@redhat.com>
2571
2572 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2573 declaration.
2574 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2575 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2576 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2577 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2578 "gdb_string.h".
2579 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2580 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2581 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2582 (avr-tdep.o, mon960-rom.o): Ditto.
2583 (aout_stabs_gnu_h): Define.
2584 (symtab_h): Remove $(gdb_obstack_h).
2585
67f07146
JB
25862002-07-30 Jim Blandy <jimb@redhat.com>
2587
2588 Patch from David Carlton <carlton@math.stanford.edu>:
2589 * gdbinit.in: Move the `dir' commands that add GDB's own source
2590 directory to the search path to the end, so that the `gdb' source
2591 directory will be searched first.
2592
04ea0df1
AC
25932002-07-29 Andrew Cagney <ac131313@redhat.com>
2594
2595 * gdb_obstack.h: New file.
2596 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2597 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2598 * objfiles.h: Include "gdb_obstack.h".
2599 * Makefile.in (gdb_obstack_h): Define.
2600 (symtab_h): Add $(gdb_obstack_h).
2601 (objfiles_h): Add $(gdb_obstack_h).
2602
2603 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2604 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2605 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2606 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2607 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2608 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2609 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2610 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2611
2612 * Makefile.in (bcache.o): Update dependencies.
2613 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2614 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2615 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2616 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2617 (stabsread.o, symfile.o, symmisc.o): Ditto.
2618 (symtab.o, typeprint.o, macroexp.o): Ditto.
2619 (macrotab.o, mdebugread.o): Ditto.
2620 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2621 (coff_ecoff_h, aout_aout64_h): Define.
2622 (aout_stabs_gnu_h, libaout_h): Define.
2623
d138e37a
AC
26242002-07-29 Andrew Cagney <cagney@redhat.com>
2625
2626 * regcache.c (struct regcache_descr): Rename nr_registers to
2627 nr_cooked_registers. Revise comments describing the structure
2628 member fields.
2629 (init_regcache_descr): Update.
2630 (init_legacy_regcache_descr): Update.
2631 (read_register_gen, write_register_gen): When a cooked register in
2632 the raw register range, directly access the value from the raw
2633 register cache.
2634
460e6ec3
AC
26352002-07-29 Andrew Cagney <ac131313@redhat.com>
2636
2637 * z8k-tdep.c: Do not include "obstack.h".
2638 * h8300-tdep.c, h8500-tdep.c: Ditto.
2639 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2640 * valprint.c, v850-tdep.c: Ditto.
2641 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2642 * mn10200-tdep.c: Ditto.
2643
2644 * Makefile.in (z8k-tdep.o): Update dependencies.
2645 (m68hc11-tdep.o, valprint.o): Ditto.
2646 (v850-tdep.o, d10v-tdep.o): Ditto.
2647 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2648 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2649 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2650 (sh_opc_h, gdb_sim_sh_h): Define.
2651 (elf_sh_h, elf_bfd_h): Define.
2652 (opcode_m68hc11_h): Define.
2653 (OPCODES_SRC, OPCODES_DIR): define.
2654 (OPCODES): Use $(OPCODES_DIR).
2655 (gdb_sim_d10v_h): Rename sim_d10v_h.
2656 (gdb_sim_arm_h): Rename sim_arm_h.
2657
790c9cf0
KB
26582002-07-26 Kevin Buettner <kevinb@redhat.com>
2659
2660 * utils.c (host_pointer_to_address, address_to_host_pointer):
2661 Change internal_error() message to indicate function responsible
2662 for the error.
2663
9647fa49
KB
26642002-07-26 Kevin Buettner <kevinb@redhat.com>
2665
2666 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2667 calls to local_hex_string_custom().
2668
dabbe2c0
KB
26692002-07-26 Kevin Buettner <kevinb@redhat.com>
2670
2671 * irix5-nat.c: Move IRIX shared library support from here...
2672 * solib-irix.c: ...to here. Revised substantially to work with
2673 generic solib framework.
2674
b96d0a4e
KB
2675 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2676 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2677 * mips-irix-tdep.c: New file.
2678
313fb2f6
KB
2679 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2680 (mips-irix-tdep.o, solib-irix.o): New rules.
2681 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2682 solib-irix.o.
2683 * config/mips/irix6.mt (TDEPFILES): Likewise.
2684 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2685
ab2eaf26
KB
26862002-07-26 Kevin Buettner <kevinb@redhat.com>
2687
177e4768 2688 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2689 disabled (via ``#if 0'') includes.
2690
7244546a
KB
26912002-07-26 Kevin Buettner <kevinb@redhat.com>
2692
2693 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2694 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2695 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2696 Add support for the fpscr register.
2697 * rs6000-nat.c (regmap, fetch_inferior_registers)
2698 (store_inferior_registers, fetch_core_registers): Likewise.
2699
dd7be90a
KB
27002002-07-26 Kevin Buettner <kevinb@redhat.com>
2701
2702 * rs6000-nat.c (language.h): Include.
2703 (special_regs): Delete this array.
2704 (regmap): New function.
2705 (fetch_register, store_register): Use regmap() to map gdb
2706 register numbers to ptrace register numbers. Also, use
2707 outputs from regmap() to make decisions regarding type of
2708 ptrace() call to make. In particular, don't compare against
2709 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2710 (fetch_inferior_registers, store_inferior_registers): Where
2711 possible, obtain register numbers from tdep struct. Don't
2712 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2713 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2714 (LAST_UISA_SP_REGNUM): Delete.
2715
11bf77db
KB
27162002-07-25 Kevin Buettner <kevinb@redhat.com>
2717
2718 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2719 (fetch_registers, store_register, fetch_core_registers): Don't
2720 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2721 regcache_collect() as appropriate.
2722 (find_toc_address): Format hex address with local_hex_string().
2723
06afebeb
AC
27242002-07-25 Andrew Cagney <ac131313@redhat.com>
2725
2726 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2727 bfd/elf32-frv.c.
2728
8c554d79
TT
27292002-07-24 Tom Tromey <tromey@redhat.com>
2730
2731 * jv-exp.y: Marked all strings with _().
2732 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2733 internal_error.
2734 (MethodInvocation, CastExpression, parse_number, yyerror,
2735 java_type_from_name, push_expression_name, yylex): Typo fixes.
2736
e4c242d9
DJ
27372002-07-24 Daniel Jacobowitz <drow@mvista.com>
2738
2739 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2740 (tee_file_flush, tee_file_write, tee_file_fputs)
2741 (tee_file_isatty): New.
2742 * ui-file.h (tee_file_new): Add prototype.
2743
ebf56fd3
AS
27442002-07-24 Aidan Skinner <aidan@velvet.net>
2745
2746 * ada-lang.c: Change k&r style function definitions to prototyped
2747 form.
2748 * ada-typeprint.c: Change k&r style function definitions to prototyped
2749 form.
2750 * ada-valprint.c: Change k&r style function definitions to prototyped
2751 form.
2752
7fb623f7
AC
27532002-07-24 Andrew Cagney <cagney@redhat.com>
2754
2755 * README: Remove reference to remote-bug.
2756 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2757 remote-bug.c.
2758 (m88k-nat.o): Delete rule.
2759 (m88k-tdep.o): Delete rule.
2760 (remote-bug.o): Delete rule.
2761 * MAINTAINERS: Mark as obsolete.
2762 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2763 * m88k-tdep.c: Make file obsolete.
2764 * config/m88k/m88k.mh: Ditto.
2765 * config/m88k/delta88v4.mh: Ditto.
2766 * config/m88k/delta88v4.mt: Ditto.
2767 * config/m88k/delta88.mt: Ditto.
2768 * config/m88k/delta88.mh: Ditto.
2769 * remote-bug.c: Ditto.
2770 * config/m88k/tm-delta88.h: Ditto.
2771 * config/m88k/nm-delta88v4.h: Ditto.
2772 * config/m88k/xm-delta88.h: Ditto.
2773 * config/m88k/xm-dgux.h: Ditto.
2774 * config/m88k/tm-m88k.h: Ditto.
2775 * config/m88k/nm-m88k.h: Ditto.
2776 * config/m88k/tm-delta88v4.h: Ditto.
2777 * m88k-nat.c: Ditto.
2778 * cxux-nat.c: Ditto.
2779 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2780 and m88*-*-* obsolete.
2781 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2782 m88*-*-* obsolete.
2783
37611a2b
AC
27842002-07-24 Andrew Cagney <cagney@redhat.com>
2785
2786 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2787 constant. Same for local pointer variables.
2788 (extract_signed_integer): Ditto.
2789 * defs.h (extract_unsigned_integer): Update.
2790 (extract_signed_integer): Update.
2791
1aaa5f99
AC
27922002-07-24 Andrew Cagney <cagney@redhat.com>
2793
2794 * regcache.c (regcache_raw_write): Change buf parameter to a
2795 constant void pointer.
2796 (regcache_raw_read): Change buf parameter to a void pointer.
2797 (legacy_write_register_gen): Change myaddr parameter a constant
2798 void pointer.
2799 (supply_register): Change val parameter to a const void pointer.
2800 * regcache.h (regcache_raw_write): Update declaration.
2801 (regcache_raw_read): Update declaration.
2802 (supply_register): Update declaration.
2803
b4f5539f
TT
28042002-07-24 Tom Tromey <tromey@redhat.com>
2805
2806 * defs.h (gdb_readline_wrapper): Declare.
2807 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2808 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2809 * top.c (gdb_readline_wrapper): New function.
2810 (command_line_input): Use it.
2811
0818c12a
AC
28122002-07-24 Andrew Cagney <cagney@redhat.com>
2813
2814 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2815 regcache_read and regcache_write.
2816 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2817 * regcache.c: Update.
2818 * sh-tdep.c (sh64_push_arguments): Update comment.
2819 (sh_pseudo_register_read): Update.
2820 (sh_pseudo_register_write): Update.
2821 (sh4_register_read): Update.
2822 (sh4_register_write): Update.
2823 (sh64_pseudo_register_read): Update.
2824 (sh64_pseudo_register_write): Update.
2825 (sh64_register_read): Update.
2826 (sh64_register_write): Update.
2827 * i386-tdep.c (i386_extract_return_value): Update.
2828 (i386_extract_struct_value_address): Update.
2829 (i386_extract_return_value): Update.
2830 * blockframe.c (generic_read_register_dummy): Update.
2831 (generic_call_dummy_register_unwind): Update
2832 * infrun.c (write_inferior_status_register): Update.
2833
f7321c06
JB
28342002-07-23 Jim Blandy <jimb@redhat.com>
2835
2836 * parser-defs.h (expression_context_pc): Make this extern.
2837 (Thanks to Michael Snyder.)
2838
2037aebb
AC
28392002-07-23 Andrew Cagney <ac131313@redhat.com>
2840
2841 GDB 5.2.1 released from 5.2 branch.
2842 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2843 * README: Update to mention 5.2.1.
2844
66504d44
MS
28452002-07-23 Mark Salter <msalter@redhat.com>
2846
2847 * remote.c (remote_read_bytes): Fix check for error.
2848
27bae383
KB
28492002-07-22 Kevin Buettner <kevinb@redhat.com>
2850
2851 * aix-thread.c (language.h): Include.
2852 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2853 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2854 Print newlines at end of debug messages.
2855 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2856 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2857
28582002-07-22 Kevin Buettner <kevinb@redhat.com>
2859
2860 * aix-thread.c (ppc-tdep.h): Include.
2861 (special_register_p): New function.
2862 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2863 (store_regs_user_thread): Use register number information from
2864 gdbarch_tdep struct instead of hardcoded offsets relative to
2865 FIRST_UISA_SP_REGNUM.
2866 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2867 special_register_p() instead of using FPLAST_REGNUM and
2868 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2869 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2870 will be MQ's register number.
2871
28722002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2873
2874 * aix-thread.c (ops): Rename to aix_thread_ops.
2875 (base_ops): Rename to base_target.
2876 (ops_attach): Rename to aix_thread_attach.
2877 (ops_detach): Rename to aix_thread_detach.
2878 (ops_resume): Rename to aix_thread_detach.
2879 (ops_wait): Rename to aix_thread_wait.
2880 (ops_kill): Rename to aix_thread_kill.
2881 (init_ops): Rename to init_aix_thread_ops.
2882 (ops_fetch_register): Rename to aix_thread_fetch_register.
2883 (ops_store_register): Rename to aix_thread_store_register.
2884 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2885 (ops_thread_alive): Rename to aix_thread_thread_alive.
2886 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2887 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2888 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2889 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2890 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2891 (store_regs_lib): Rename to store_regs_user_thread.
2892 (store_regs_kern): Rename to store_regs_kernel_thread.
2893
27bae383 28942002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2895
2896 * aix-thread.c (ops_prepare_to_store): Eliminate.
2897 (init_ops): Don't initialize ops.prepare_to_store.
2898 (store_regs_kern): Pre-fetch register buffers from child,
2899 because some registers may not be in the cache. Copy
2900 regs from register cache only if they are cached.
2901 (store_regs_lib): Copy regs from register cache only
2902 if they are cached.
2903 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2904 fill_gprs64): Ditto.
2905
61c5da0b
KB
29062002-07-22 Kevin Buettner <kevinb@redhat.com>
2907
2908 * aix-thread.c (gdb_assert.h): Include.
2909 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2910 register sizes (from register cache) match size of buffer holding
2911 register data.
2912 (fill_sprs32): Change parameter types to match those in the ptrace()
2913 buffer.
2914 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2915 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2916
29172002-07-22 Michael Snyder <msnyder@redhat.com>
2918
2919 * aix-thread.c (supply_sprs64): Cosmetic change.
2920 (supply_sprs32): Cosmetic change.
2921 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2922 (fill_sprs64): Use regcache_collect instead of read_register.
2923 (store_regs_lib): Use regcache_collect instead of
2924 read_register. Use fill_sprs32 instead of fill_sprs64,
2925 if debugging a 32-bit architecture.
2926 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2927 out of the register cache, instead of passing a pointer into
2928 the register cache directly to ptrace. Use regcache_collect
2929 insteaad of read_register.
2930 (ops_prepare_to_store): Use target_read_registers instead
2931 of read_register_bytes.
2932
36479eb1
AS
29332002-07-20 Aidan Skinner <aidan@velvet.net>
2934
2935 * MAINTAINERS: Add self under write after approval.
2936
80ae6ee2
AS
29372002-07-20 Aidan Skinner <aidan@velvet.net>
2938
2939 * ada-tasks.c: Change k&r style function definitions to prototyped
2940 form.
2941
8a8ab2b9
AC
29422002-07-19 Andrew Cagney <ac131313@redhat.com>
2943
2944 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2945 * x86-64-tdep.c: Include "objfiles.h".
2946 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2947 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2948
fb16b900
ML
29492002-07-17 Michal Ludvig <michal@suse.cz>
2950
2951 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2952 (update_context): Initialise cfa variable.
2953
0fe7bf7b
MS
29542002-07-17 Michael Snyder <msnyder@redhat.com>
2955
2956 * aix-thread.c: Shorten some long lines.
2957 Bring comments into line with code spec.
2958
488f131b
JB
29592002-07-18 Joel Brobecker <brobecker@gnat.com>
2960
2961 * infrun.c: Re-indent using gdb_indent.sh.
2962
46c415d2
JB
29632002-07-18 Joel Brobecker <brobecker@gnat.com>
2964
2965 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2966 Leave the indentation temporarily untouched, to minimize the diffs.
2967
cdecafbe
EZ
29682002-07-18 Elena Zannoni <ezannoni@redhat.com>
2969
2970 * stabsread.c: Make os9k sections of the code obsolete,
2971 for real this time.
2972 * stabsread.h: Make os9k sections of the code obsolete.
2973
7b6aa020
ML
29742002-07-18 Michal Ludvig <mludvig@suse.cz>
2975
09ec9b38
ML
2976 * linux-low.c (regsets_store_inferior_registers): Add free()
2977 at the end of a loop to prevent memory leak.
2978 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2979 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
2980 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2981 line a comment.
4894ac5d 2982 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 2983
233282cd
JB
29842002-07-17 Jim Blandy <jimb@redhat.com>
2985
2986 * macrocmd.c (info_macro_command): Remove newline from error
2987 message.
2988
7b6aa020 29892002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
2990
2991 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2992 (sh_gdbarch_init): Use it for sh-dsp.
2993
f7ef9339
KB
29942002-07-16 Kevin Buettner <kevinb@redhat.com>
2995
2996 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2997 64-bit DWARF2 format.
2998
8dd72958
JB
29992002-07-16 Joel Brobecker <brobecker@gnat.com>
3000
3001 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3002 <sys/proc.h> when not available.
3003
a99a9e1b
AC
30042002-07-16 Andrew Cagney <ac131313@redhat.com>
3005
3006 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3007 * stabsread.c: Make os9k sections of the code obsolete.
3008 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3009 * config/i386/i386os9k.mt: Make file obsolete.
3010 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3011 (COMMON_OBS): Remove os9kread.o
3012 (SFILES): Remove os9kread.c.
3013 (os9kread.o, remote-os9k.o): Make target obsolete.
3014 * remote-os9k.c: Make file obsolete.
3015 * os9kread.c: Make file obsolete.
3016 * Makefile.in
3017
7a3085c1
AC
30182002-07-16 Andrew Cagney <ac131313@redhat.com>
3019
3020 * NEWS: Mention that the FR30 has been made obsolete.
3021 * fr30-tdep.c: Make file obsolete.
3022 * config/fr30/tm-fr30.h: Ditto.
3023 * config/fr30/fr30.mt: Ditto.
3024 * configure.tgt: Make fr30-*-elf obsolete.
3025 * MAINTAINERS: Make fr30-elf obsolete.
3026
28a93f5a
PM
30272002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3028
3029 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3030 found is not inside a section.
3031
be006b8b
KB
30322002-07-15 Kevin Buettner <kevinb@redhat.com>
3033
3034 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3035 strerror().
3036 (pdc_realloc): Use xrealloc() instead of realloc().
3037
14fa3751
KB
30382002-07-15 Kevin Buettner <kevinb@redhat.com>
3039
3040 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3041 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3042 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3043 macros.
3044
42cc437f
KB
30452002-07-15 Kevin Buettner <kevinb@redhat.com>
3046
3047 * aix-thread.c (ptrace_check): Eliminate goto.
3048 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3049 problem.
3050
8e2c28d4
KB
30512002-07-15 Kevin Buettner <kevinb@redhat.com>
3052
3053 * aix-thread.c (gdbcmd.h): Include.
3054 (DEBUG, DBG, DBG2, dbg): Eliminate.
3055 (debug_aix_thread): New static global.
3056 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3057 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3058 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3059 invocations to DBG and DBG2 macros to test against
3060 ``debug_aix_thread'' and call fprintf_unfiltered().
3061 (_initialize_aix_thread): Add new command "set debug aix-thread".
3062
30413464
AC
30632002-07-15 Andrew Cagney <ac131313@redhat.com>
3064
3065 From Gerhard Tonn <TON@de.ibm.com>:
3066 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3067 instead of supply_register.
3068
7c43edc1
AC
30692002-07-15 Andrew Cagney <ac131313@redhat.com>
3070
3071 * dwarf2cfi.c: Include "gdb_assert.h".
3072 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3073 non-NULL.
3074 (update_context): Do not use __func__. Add missing ``break''.
3075 (update_context): Do not use __func__.
3076
9364a0ef
EZ
30772002-07-15 Elena Zannoni <ezannoni@redhat.com>
3078
3079 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3080 and its setting. Set gdbarch instruction printing functions
3081 directly. For non-rs6000 case use new function
3082 gdb_print_insn_powerpc.
3083 (gdb_print_insn_powerpc): New function.
3084
3fbeef0b
AC
30852002-07-13 Andrew Cagney <ac131313@redhat.com>
3086
92eb23c5 3087 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3088 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3089 * configure.tgt: Mark d30v-*-* as obsolete.
3090 * d30v-tdep.c: Mark file as obsolete.
3091 * config/d30v/d30v.mt: Ditto.
3092 * config/d30v/tm-d30v.h: Ditto.
3093
aacb1f0a
AS
30942002-07-13 Aidan Skinner <aidan@velvet.net>
3095
3096 * ada-tasks.c (add_task_entry): replace calls to
3097 malloc() with xmalloc
3098 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3099
3100 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3101 ada_finish_decode_line_1, all_sals_for_line
3102 ada_breakpoint_rewrite): replace calls to free() with xfree()
3103
c11d79f2
KB
31042002-07-12 Kevin Buettner <kevinb@redhat.com>
3105
3106 From Nicholas Duffek (with minor changes by Martin Hunt,
3107 Louis Hamilton, and Kevin Buettner):
3108 * aix-thread.c: New file.
3109
8e19ed76
PS
31102002-07-12 Petr Sorfa <petrs@caldera.com>
3111
3112 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3113 complaint for invalid attribute class or form.
3114 (read_func_scope): DW_AT_frame_base
3115 better handling of DW_AT_block*.
3116 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3117 better handling of DW_AT_block*.
3118 (read_common_block): DW_AT_location
3119 better handling of DW_AT_block*.
3120 (read_partial_die): DW_AT_location better handling
3121 of DW_AT_block*.
3122 (new_symbol): DW_AT_external better handling of
3123 DW_AT_block*. Proper initialization of variable
3124 "addr".
3125 (attr_form_is_block): New function that returns true
3126 if the attribute's form is of DW_FORM_block*.
3127
295401f7
DJ
31282002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3129
3130 * valops.c (find_method_list): Remove comment about
3131 removed STATIC_MEMFUNCP argument.
3132 (value_find_oload_method_list): Likewise.
3133
e42dc924
KB
31342002-07-12 Kevin Buettner <kevinb@redhat.com>
3135
3136 From Nicholas Duffek:
3137 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3138 target_new_objfile_hook.
3139
6904b546
KB
31402002-07-12 Kevin Buettner <kevinb@redhat.com>
3141
3142 From Nicholas Duffek:
3143 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3144 csect.
3145
53fe9346
AC
31462002-07-12 Andrew Cagney <cagney@redhat.com>
3147
3148 * MAINTAINERS: Mention --enable-sim-build-warnings.
3149 (m68hc11-elf): Disable sim build warnings.
3150 (m32r-elf): Mark as broken obsolete candidate.
3151 (x86_64-linux-gnu): Mark as buildable with -Werror.
3152 (arm-elf): Change -w to ``,'' which enables warnings but not
3153 -Werror.
3154
af5f3db6
AC
31552002-07-12 Andrew Cagney <ac131313@redhat.com>
3156
3157 * bcache.h: Update copyright.
3158 (struct bstring, struct bcache): Move definition to "bcache.c".
3159 Replaced by opaque declaration.
3160 (bcache_xfree): Replace free_bcache.
3161 (bcache_xmalloc, bcache_memory_used): Declare.
3162
3163 * bcache.c: Update copyright.
3164 (struct bstring, struct bcache): Moved to here from "bcache.h".
3165 Update comments.
3166 (bcache_xmalloc, bcache_memory_used): New functions.
3167 (bcache_xfree): Replace function free_bcache.
3168
3169 * Makefile.in (objfiles.o): Add $(bcache_h).
3170 (objfiles_h): Remove $(bcache_h).
3171 (symfile.o): Add $(bcache_h).
3172
3173 * symmisc.c: Update copyright.
3174 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3175 (print_objfile_statistics): Use bcache_memory_used.
3176
3177 * symfile.c: Include "bcache.h".
3178 (reread_symbols): Use bcache_xfree.
3179 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3180 (add_psymbol_to_list): Pass psymbol_cache by value.
3181 (add_psymbol_with_dem_name_to_list): Ditto.
3182
3183 * objfiles.h: Update copyright.
3184 (struct bcache): Declare opaque. Do not include "bcache.h".
3185 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3186 bcache'' pointers.
3187 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3188
3189 * objfiles.c: Include "bcache.h". Update copyright.
3190 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3191 macro_cache.
3192 (free_objfile): Use bcache_xfree.
3193
444199e7
GS
31942002-07-11 Grace Sainsbury <graces@redhat.com>
3195
3196 * monitor.c (monitor_fetch_register): Make name a constant.
3197 (monitor_store_register): Same.
3198
261397f8
DJ
31992002-07-11 Daniel Jacobowitz <drow@mvista.com>
3200
3201 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3202 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3203 (finish_block) For non-function blocks, hash the symbol table. For
3204 function blocks, mark the symbol table as unhashed.
3205 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3206 (msymbol_hash_iw): Likewise.
3207 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3208 value.
3209 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3210 (lookup_minimal_symbol): Likewise for both.
3211 * symtab.h (struct block): Add `hashtable' flag. Comment the
3212 hashtable.
3213 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3214 (ALL_BLOCK_SYMBOLS): Update.
3215 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3216 (struct symbol): Add `hash_next' pointer.
3217 * symtab.c (lookup_block_symbol): Search using the hash table when
3218 possible.
3219 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3220 (search_symbols, find_addr_symbol): Likewise.
3221
3222 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3223 (read_dst_symtab): Likewise.
3224 * jv-lang.c (get_java_class_symtab): Likewise.
3225 * mdebugread.c: Include "gdb_assert.h".
3226 (shrink_block): Assert that the block being modified is not hashed.
3227 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3228 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3229 symbols.
3230 (dump_symtab): Recognize hashed blocks.
3231 * printcmd.c (print_frame_args): Assert that function blocks do not
3232 have hashed symbol tables.
3233 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3234 (fill_in_ada_prototype, debug_print_block): Likewise.
3235 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3236
6f0eaa01
CV
32372002-07-11 Corinna Vinschen <vinschen@redhat.com>
3238
3239 * stack.c (print_frame): Use result of frame_address_in_block()
3240 instead of fi->pc when evaluating symbols.
3241 (backtrace_command_1): Ditto.
3242
a208b0cb
AC
32432002-07-11 Andrew Cagney <cagney@redhat.com>
3244
3245 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3246 Make static.
3247
3248 * arm-tdep.c (arm_register_name): Make return type constant.
3249
a6b6b089
AC
32502002-07-10 Andrew Cagney <ac131313@redhat.com>
3251
5ae5f592
AC
3252 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3253 prototype.
3254 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3255 * s390-tdep.c (s390_fp_regnum): Ditto.
3256 (s390_read_fp): Ditto.
3257 (s390_pop_frame): Ditto.
3258 (_initialize_s390_tdep): Ditto.
3259 * remote.c (get_remote_state): Ditto.
3260 * procfs.c (mappingflags): Ditto.
3261 * memattr.c (_initialize_mem): Ditto.
3262 * mcore-tdep.c (mcore_pop_frame): Ditto.
3263 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3264 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3265 * language.c (set_case_str): Ditto.
3266 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3267 * frv-tdep.c (new_variant): Ditto.
3268 (frv_stopped_data_address): Ditto.
3269 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3270 (context_alloc): Ditto.
3271 (frame_state_alloc): Ditto.
3272 (unwind_tmp_obstack_init): Ditto.
3273 (unwind_tmp_obstack_free): Ditto.
3274 (cfi_read_fp): Ditto.
3275 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3276 (cris_pop_frame): Ditto.
3277 * c-lang.c (scanning_macro_expansion): Ditto.
3278 (finished_macro_expansion): Ditto.
3279 (c_preprocess_and_parse): Ditto.
3280 * gdbarch.sh: Ditto.
3281 * gdbarch.h, gdbarch.c: Regenerate.
3282 * config/mn10200/tm-mn10200.h: Adjust indentation.
3283 * target.c: Adjust indentation.
3284 * symtab.h: Adjust indentation.
3285 * stabsread.h: Adjust indentation.
3286 * remote-es.c: Adjust indentation.
3287 * os9kread.c: Adjust indentation.
3288
32892002-07-10 Andrew Cagney <ac131313@redhat.com>
3290
a6b6b089
AC
3291 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3292 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3293
a1789893
GS
32942002-07-10 Grace Sainsbury <graces@redhat.com>
3295
3296 * NEWS: Mention m68k, mcore multi-arching.
3297 * MAINTAINERS: Change status of m68k, mcore to reflect
3298 multi-arching.
3299
02f0d45d
DJ
33002002-07-10 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * valops.c (find_overload_match): Free oload_syms.
3303
f15f768e
JB
33042002-07-09 Joel Brobecker <brobecker@gnat.com>
3305
3306 Define HAVE_SYS_PROC_H if sys/proc.h exists
3307 * configure.in: Add check for sys/proc.h
3308 * config.in: Regenerate.
3309 * configure: Regenerate.
3310
902a7139
GS
33112002-07-09 Grace Sainsbury <graces@redhat.com>
3312
3313 * config/m68k/tm-m68k.h: Remove macros wrapped in
3314 #if !GDB_MULTI_ARCH.
3315
a534e424
AC
33162002-07-08 Andrew Cagney <ac131313@redhat.com>
3317
3318 * config.in, configure: Regenerate.
3319
9b94f7bf
MK
33202002-07-08 Mark Kettenis <kettenis@gnu.org>
3321
3322 * dwarf2cfi.c: Include "gcore.h".
3323 (execute_stack_op): Fix implementation of the
3324 DW_OP_deref and DW_OP_deref_size operators by letting do their
3325 lookup in the target.
3326
1d34db41
MK
33272002-07-07 Mark Kettenis <kettenis@gnu.org>
3328
3329 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3330 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3331 tdep->sc_sp_offset.
3332
79d5b63a
DJ
33332002-07-05 Daniel Jacobowitz <drow@mvista.com>
3334
3335 Fix PR gdb/595, gdb/602
3336 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3337 Don't call value_cast, just read the vtable pointer; update comments
3338 to match.
3339
3bb912e8
GS
33402002-07-05 Grace Sainsbury <graces@redhat.com>
3341
3342 * config/mcore/tm-mcore.h: Remove file.
3343 * config/mcore/mcore.mt: Remove definition of TM_FILE
3344 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3345
ca39387d
MK
33462002-07-05 Mark Kettenis <kettenis@gnu.org>
3347
3348 * i386bsd-tdep.c: Include "gdb_string.h".
3349
efdc1108
GS
33502002-07-04 Grace Sainsbury <graces@redhat.com>
3351
3352 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3353 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3354 mcore-tdep.
3355 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3356 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3357 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3358 (RETVAL_REGNUM): Move macros from tm-mcore.h
3359 (mcore_reg_struct_has_addr): New function.
3360 (mcore_gdbarch_init): Added initializations for the macros removed
3361 from tm-mcore.h.
3362
bb21884d
MK
33632002-07-04 Mark Kettenis <kettenis@gnu.org>
3364
3365 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3366 traditonal string branding within the ELF header.
3367
228c6d41
DJ
33682002-07-04 Daniel Jacobowitz <drow@mvista.com>
3369
3370 * symtab.c (remove_params): New function.
3371 (make_symbol_overload_list): Use it instead of cplus_demangle.
3372 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3373
2404952e
MK
33742002-07-04 Mark Kettenis <kettenis@gnu.org>
3375
e5e4acad
MK
3376 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3377
baadce09
MK
3378 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3379 New variables.
3380 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3381 and tdep->sigtramp_end.
3382 * i386obsd-nat.c: New file.
3383 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3384
2404952e
MK
3385 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3386 Don't call get_current_frame().
3387
9b4f1ba7
PM
33882002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3389
3390 * i386-nat.c (child_post_startup_inferior): New function
3391 calling i386_cleanup_dregs if
3392 I386_USE_GENERIC_WATCHPOINTS is defined.
3393 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3394 conditional to acknowledge that i386-nat.c has its
3395 own child_post_startup_inferior function.
3396
c0d1d883
MK
33972002-07-04 Mark Kettenis <kettenis@gnu.org>
3398
00f8375e
MK
3399 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3400 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3401 instead of MAX_REGISTER_RAW_SIZE.
3402 (i386_extract_return_value, i386_extract_struct_value_address):
3403 Convert to use regcache.
3404 (i386_gdbarch_init): Set max_register_raw_size and
3405 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3406 Set extract_return_value and extract_struct_value_address instead
3407 of their deprecated variants.
3408
c0d1d883
MK
3409 Convert i386 target to generic dummy frames.
3410 * i386-tdep.c: Include "symfile.h".
3411 (i386_frameless_signal_p): Consider a function to be frameless if
3412 the pc points at the first instruction of the function.
3413 (i386_frame_chain): Handle (generic) call dummies.
3414 (i386_frame_saved_pc): Likewise.
3415 (i386_frame_init_saved_regs): Remove code dealing with call
3416 dummies on the stack.
3417 (i386_push_dummy_frame): Removed.
3418 (i386_call_dummy_words): Removed.
3419 (i386_fix_call_dummy): Removed.
3420 (i386_push_return_address): New function.
3421 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3422 parameter, and don't call get_current_frame.
3423 (i386_pop_frame): New function.
3424 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3425 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3426 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3427 call_dummy_length to 0, set call_dummy_words to NULL, set
3428 sizeof_call_dummy_words to 0, set fix_call_dummy to
3429 generic_fix_call_dummy, set pc_in_call_dummy to
3430 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3431 generic_push_dummy_frame, set push_return_address to
3432 i386_push_return_address and set frame_chain_valid to
3433 generic_file_frame_chain_valid.
3434
049ee0e4
AC
34352002-07-03 Andrew Cagney <ac131313@redhat.com>
3436
3437 * gdbarch.sh (struct regcache): Add opaque declaration.
3438 (EXTRACT_RETURN_VALUE): New architecture method.
3439 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3440 * gdbarch.h, gdbarch.c: Regenerate.
3441 * arch-utils.c (legacy_extract_return_value): New function.
3442 * arch-utils.h (legacy_extract_return_value): Declare.
3443 * values.c (value_being_returned): Re-enable code handling
3444 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3445 deprecated_grub_regcache_for_registers call to block handling
3446 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3447 (EXTRACT_RETURN_VALUE): Do not define.
3448
4e0d9804
GS
34492002-07-03 Grace Sainsbury <graces@redhat.com>
3450
3451 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3452 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3453 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3454 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3455 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3456 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3457 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3458 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3459 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3460 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3461 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3462 argument so the function fits the prototype in the architecture
3463 vector.
3464 (mcore_pop_frame): Remove argument so the function fits the
3465 prototype. Use get_current_frame instead of the argument.
3466 (mcore_push_arguments): Change type of struct_return so the
3467 function can be used in the architecture vector.
3468 (mcore_store_struct_return): Add.
3469 (mcore_frame_init_saved_regs): Add.
3470 (mcore_gdbarch_init): Add function calls to replace the macros
3471 removed from tm-mcore.h
3472
36160dc4
AC
34732002-07-03 Andrew Cagney <ac131313@redhat.com>
3474
3475 * infcmd.c (print_return_value): Remove compatibility code calling
3476 deprecated_grub_regcache_for_registers.
3477
3478 * values.c: Include "regcache.h".
3479 (value_being_returned): Update. Use
3480 deprecated_grub_regcache_for_registers to extract the register
3481 buffer address.
3482 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3483 ``struct regcache''.
3484 * Makefile.in (values.o): Add dependency on $(regcache_h).
3485
3486 * inferior.h (run_stack_dummy): Change type of second parameter to
3487 a ``struct regcache''.
3488 * valops.c (hand_function_call): Change type of retbuf to ``struct
3489 regcache''. Allocate using regcache_xmalloc, clean using
3490 make_cleanup_regcache_xfree.
3491 * infcmd.c (run_stack_dummy): Update. Use
3492 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3493
3494 * regcache.c (do_regcache_xfree): New function.
3495 (make_cleanup_regcache_xfree): New function.
3496 * regcache.h (make_cleanup_regcache_xfree): Declare.
3497
e64d9b3d
MH
34982002-07-03 Martin M. Hunt <hunt@redhat.com>
3499
4dd79c29
MH
3500 * event-top.c (command_line_handler): Don't read past
3501 beginning of buffer.
e64d9b3d 3502
4dd79c29
MH
35032002-07-03 Martin M. Hunt <hunt@redhat.com>
3504
e64d9b3d
MH
3505 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3506 struct frame_id.
3507 (varobj_create): Store frame_id for root.
3508 (varobj_gen_name): Use xasprintf.
3509 (varobj_update): Save and restore frame using get_frame_id() and
3510 frame_find_by_id().
3511 (create_child): Use xasprintf.
3512 (new_root_variable): Initialize frame_id.
3513 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3514 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3515 to prevent memory leak.
3516
26e6c56a
AC
35172002-07-03 Andrew Cagney <ac131313@redhat.com>
3518
3519 * valops.c (hand_function_call): Move declaration of retbuf to
3520 start of function, allocate using malloc, add a cleanup but before
3521 the inf_status cleanup, cleanup the buffer. Rename local variable
3522 old_chain to inf_status_cleanup.
3523
f436dd25
MH
35242002-07-03 Martin M. Hunt <hunt@redhat.com>
3525
3526 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3527
3528 * cli/cli-decode.c (cmd_func_p): New function.
3529 (cmd_func): New function.
3530
3531 * command.h: Add cmd_func() and cmd_func_p().
3532
4cfe2084
GS
35332002-07-03 Grace Sainsbury <graces@redhat.com>
3534
3535 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3536 (REGISTER_SIZE): Remove.
3537 (MAX_REGISTER_RAW_SIZE): Remove.
3538 (REGISTER_VIRTUAL_TYPE): Remove.
3539 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3540 (REGISTER_NAME): Remove.
3541 (USE_GENERIC_DUMMY_FRAMES): Remove.
3542 (CALL_DUMMY): Remove.
3543 (CALL_DUMMY_START_OFFSET): Remove.
3544 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3545 (CALL_DUMMY_LOCATION): Remove.
3546 (FIX_CALL_DUMMY): Remove.
3547 (CALL_DUMMY_ADDRESS): Remove.
3548 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3549 (SAVE_DUMMY_FRAME_TOS): Remove.
3550 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3551 (mcore_register_virtual_type): New function.
3552 (mcore_register_byte): New function.
3553 (mcore_register_size): New function.
3554 (mcore_register_name): New function.
3555 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3556 macros removed from tm-mcore.h.
3557 (mcore_dump_tdep): Add.
3558 (_initialize_mcore_tdep): Add gdbarch_register call.
3559
4fd667e9
MK
35602002-07-03 Mark Kettenis <kettenis@gnu.org>
3561
3562 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3563 frameless_look_for_prologue, such that we actually call this
3564 function.
3565
42f99ac2
JB
35662002-07-02 Joel Brobecker <brobecker@gnat.com>
3567
3568 * frame.h (frame_address_in_block): New function.
3569
3570 * blockframe.c (frame_address_in_block): New function extracted
3571 from get_frame_block().
3572 (get_frame_block): Use frame_address_in_block().
3573 (block_innermost_frame): Use frame_address_in_block() to match
3574 the frame pc address against the block boundaries rather than
3575 the frame pc directly. This prevents a failure when a frame pc
3576 is actually a return-address pointing immediately after the end
3577 of the given block.
3578
103a1597 35792002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3580
3581 * MAINTAINERS: Add self under write after approval.
3582
35832002-07-02 Grace Sainsbury <graces@redhat.com>
3584
103a1597
GS
3585 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3586 used in architecture vector. The default is
3587 m68k_local_breakpoint_from_pc.
3588 (m68k_local_breakpoint_from_pc): Add.
3589 (enum): Add register numbers from tm-m68k.h.
3590 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3591 vector.
3592 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3593 GDB_MULTI_ARCH_PARTIAL.
3594 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3595 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3596 m68k-tdep.c.
3597 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3598 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3599 to enum in m68k-tdep.c
3600
7a5a0534
JB
36012002-07-02 Joel Brobecker <brobecker@gnat.com>
3602
3603 * solib-osf.c (open_map): Compute the list of shared libraries
3604 loaded by the inferior, rather than the list of libraries loaded
3605 by GDB itself. Otherwise, GDB ends up reading the symbols from
3606 the wrong shared libraries...
3607
6f558d74
MK
36082002-07-02 Mark Kettenis <kettenis@gnu.org>
3609
b7d15bf7
MK
3610 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3611 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3612 macros.
3613 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3614 Remove functions.
3615 (FRAMELESS_SIGNAL): Remove function.
3616 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3617 i386_linux_saved_pc_after_call): Removed.
3618 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3619 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3620 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3621
6bff26de
MK
3622 * i386-tdep.c (i386_frameless_signal_p): New function.
3623 (i386_frame_chain): Deal with frameless signals.
3624 (i386_sigtramp_saved_sp): New function.
3625 (i386_frame_saved_pc): Deal with frameless signals.
3626 (i386_saved_pc_after_call): Make sure the correct value is
3627 returned just after entry into a sigtramp.
3628 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3629 i386fbsd4_sc_sp_offset): New variables.
3630 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3631 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3632 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3633 similiar to what we already did for sc_pc_offset.
3634 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3635 tdep->sc_sp_offset.
3636
6f558d74
MK
3637 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3638
145564b7
ML
36392002-07-02 Michal Ludvig <mludvig@suse.cz>
3640
3641 * config/i386/tm-x86-64linux.h: New.
3642 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3643 definitions.
3644 * config/i386/nm-x86-64.h: Rename to ...
3645 * config/i386/nm-x86-64linux.h: ... this one.
3646 * config/i386/x86-64linux.mh: Reflect the above change.
3647
3a1e71e3
MK
36482002-07-01 Mark Kettenis <kettenis@gnu.org>
3649
21d0e8a4
MK
3650 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3651 with sigcontext_addr. Add sc_sp_offset.
3652 (i386bsd_sigtramp_saved_pc): Remove prototype.
3653 (i386bsd_sicontext_addr): Add prototype.
3654 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3655 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3656 (i386_svr4_sigtramp_saved_pc): Removed.
3657 (i386_svr4_sigcontext_addr): New function.
3658 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3659 Initialize tdep->sigcontext_addr instead. Initialize
3660 tdep->sc_pc_offset and tdep->sc_sp_offset.
3661 (i386_gdbarch_init): Likewise.
3662 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3663 any more.
3664 (i386bsd_sigtramp_saved_pc): Remove function.
3665 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3666 Initialize tdep->sigcontext_addr instead. Initialize
3667 tdep->sc_pc_offset.
3668 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3669 of tdep->sigtramp_saved_pc.
3670 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3671 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3672 instead.
3673
3a1e71e3
MK
3674 * i386-tdep.c (i386_frameless_function_invocation,
3675 i386_frame_num_args, i386_frame_init_saved_regs,
3676 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3677 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3678 i386_extract_return_value, i386_store_return_value,
3679 i386_extract_struct_value_address, i386_register_virtual_type,
3680 i386_register_convertible, i386_register_convert_to_virtual,
3681 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3682 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3683 static.
3684
52e9098c
MK
36852002-07-01 Mark Kettenis <kettenis@gnu.org>
3686
77b13a25
MK
3687 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3688
52e9098c
MK
3689 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3690 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3691 this macro. Include "value.h".
3692
1b372fff
AS
36932002-06-30 Aidan Skinner <aidan@velvet.net>
3694
3695 * ada-exp.tab.c: remove as it's a generated file
3696 * ada-lex.c: remove as it's a generated file
3697
9c5045b5
MK
36982002-06-30 Mark Kettenis <kettenis@gnu.org>
3699
4a93c5bb
MK
3700 * config/i386/tm-i386.h (struct frame_info, struct
3701 frame_saved_regs, struct value, struct type): Remove forward
3702 declarations.
3703
322d4fe0
MK
3704 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3705 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3706 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3707 (FILL_FPXREGSET): Define.
3708
fdd8263d
MK
3709 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3710
482e577b
MK
3711 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3712 i[3456]86-*-netbsd* case.
3713 * config/i386/tm-obsd.h: Removed.
3714 * config/i386/obsd.mt: Removed.
3715 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3716 core-aout.o.
3717 (MH_CFLAGS): Add -DYYDEBUG=0.
3718
6916549a
MK
3719 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3720 i386nbsd_sc_pc_offset on OpenBSD too.
3721
9c5045b5
MK
3722 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3723 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3724 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3725 define.
3726 * i386bsd-tdep.c: Include "arch-utils.h".
3727 (i386bsd_aout_in_solib_call_trampoline): New function.
3728 (i386bsd_init_abi): Set in_solib_call_trampoline to
3729 i386bsd_aout_in_solib_call_trampoline.
3730 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3731 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3732
aa84d1bb
AC
37332002-06-28 Andrew Cagney <ac131313@redhat.com>
3734
3735 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3736 (struct obstack, struct bcache): Add opaque declarations.
3737 * Makefile.in (macrotab_h): Update
3738
b4d83933
AC
37392002-06-28 Andrew Cagney <ac131313@redhat.com>
3740
3741 * blockframe.c (generic_find_dummy_frame): Change return type to
3742 ``struct regcache''.
3743 (struct dummy_frame): Replace field ``registers'' with regcache, a
3744 struct regcache object.
3745 (generic_find_dummy_frame): Update.
3746 (generic_push_dummy_frame): Update. Use regcache_xfree,
3747 regcache_xmalloc and regcache_cpy.
3748 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3749 regcache_xfree.
3750 (deprecated_generic_find_dummy_frame): Update.
3751 (generic_read_register_dummy): Update. Use
3752 regcache_read_as_address.
3753 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3754 (generic_get_saved_register): Update. Use regcache_read.
3755
08c0b5bc
AC
37562002-06-28 Andrew Cagney <ac131313@redhat.com>
3757
3758 * Makefile.in (objfiles_h): Add $(bcache_h).
3759 * objfiles.h: Include "bcache.h".
3760
3761 * Makefile.in (symtab_h): Remove $(bcache_h).
3762 * symtab.h: Do not include "bcache.h".
3763
1f89801a
AC
37642002-06-28 Andrew Cagney <ac131313@redhat.com>
3765
3766 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3767 generic_func_frame_chain_valid.
3768
b9644b58
DB
37692002-06-28 David O'Brien <obrien@FreeBSD.org>
3770
3771 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3772 * config/i386/tm-fbsd.h: Likewise.
3773
dd486634
AC
37742002-06-28 Andrew Cagney <ac131313@redhat.com>
3775
3776 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3777 generic_unwind_get_saved_register.
3778
0b434a00
AC
37792002-06-27 Andrew Cagney <ac131313@redhat.com>
3780
3781 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3782 * regcache.c (supply_register): Add missing argument to
3783 register_buffer call.
3784
f30e5a77
AC
37852002-06-27 Andrew Cagney <ac131313@redhat.com>
3786
3787 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3788 Solaris /bin/grep does not not like it. From Peter Schauer.
3789
9f064c95
TT
37902002-06-26 Tom Tromey <tromey@redhat.com>
3791
3792 * command.h (add_setshow_cmd): Declare.
3793 (add_setshow_cmd_full): Declare.
3794 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3795 returns void. Use add_setshow_cmd_full.
3796 (add_setshow_cmd_full): New function.
3797 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3798 (add_setshow_boolean_cmd): Likewise.
3799
099c7589
JT
38002002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3801
3802 * config/vax/tm-vax.h: Protect from multiple inclusion.
3803 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3804 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3805 * config/vax/tm-vaxbsd.h: ...here. New file.
3806 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3807
1d049c5e
JT
38082002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3809
3810 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3811 (BELIEVE_PCC_PROMOTION): Remove.
3812 (AP_REGNUM): Move to...
3813 * config/vax/nm-vax.h: ...here.
3814 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3815 (vax_breakpoint_from_pc): New function.
3816 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3817 and gdbarch_believe_pcc_promotion.
3818
4791e091
JT
38192002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3820
3821 * Makefile.in (vax_tdep_h): Define.
3822 (vax-tdep.o): Use $(vax_tdep_h).
3823 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3824 (vax_dump_tdep): New function.
3825 (_initialize_vax_tdep): Register vax_dump_tdep.
3826 * vax-tdep.h: Include osabi.h.
3827 (struct gdbarch_tdep): New.
3828
da130f98
AC
38292002-06-26 Andrew Cagney <cagney@redhat.com>
3830
3831 * frame.h (deprecated_generic_find_dummy_frame): Rename
3832 generic_find_dummy_frame.
3833 * blockframe.c (generic_find_dummy_frame): Make static.
3834 (deprecated_generic_find_dummy_frame): New function.
3835 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3836 generic_find_dummy_frame with deprecated_find_dummy_frame.
3837 (sh64_nofp_frame_init_saved_regs): Ditto.
3838 (sh_fp_frame_init_saved_regs): Ditto.
3839 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3840 (s390_frame_chain): Ditto.
3841 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3842
6300c360
GS
38432002-06-26 Grace Sainsbury <graces@redhat.com>
3844
3845 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3846 gdbarch vector are at the top.
3847 (NUM_REGS): Remove.
3848 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3849 (FRAME_ARGS_ADDRESS): Remove.
3850 (FRAME_LOCALS_ADDRESS): Remove.
3851 (FRAME_NUM_ARGS): Remove.
3852 (FRAME_ARGS_SKIP): Remove.
3853 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3854 (m68k_gdbarch_init): Add gdbarch initializations for macros
3855 undefined in tm-m68k.h
3856
1c617db8
GS
38572002-06-26 Grace Sainsbury <graces@redhat.com>
3858
3859 * monitor.h: Add the function regname to monitor_ops
3860 structure. This way NUM_REGS does not have to be a constant.
3861 * monitor.c (monitor_fetch_register): Added support for regname
3862 function. The function is called if the array regnames is NULL.
3863 (monitor_store_register): Same.
da130f98
AC
3864 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3865 regnames array.
1c617db8
GS
3866 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3867 cpu32bug_cmds.regname to point to new function.
3868 * abug-rom.c (abug_regname): Same as above.
3869 (init_abug_cmds): Same.
3870 * dbug-rom.c (dbug_regname): Same as above.
3871 (init_dbug_cmds): Same.
3872 * remote-est.c (est_regname): Same.
3873 (init_est_cmds): Same.
3874 * rom68k-rom.c (rom68k_regname): Same.
3875 (init_rom68k_cmds): Same.
3876
ea9365bb
TT
38772002-06-25 Tom Tromey <tromey@redhat.com>
3878
3879 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3880
72cec141
AC
38812002-06-25 Andrew Cagney <cagney@redhat.com>
3882
3883 * infrun.c (stop_registers): Change variable's type to ``struct
3884 regcache'''.
3885 (xmalloc_inferior_status): Delete function.
3886 (free_inferior_status): Delete function.
3887 (normal_stop): Use regcache_cpy.
3888 (struct inferior_status): Change type of fields ``stop_registers''
3889 and ``registers'' to ``struct regcache''.
3890 (write_inferior_status_register): Use regcache_write.
3891 (save_inferior_status): Instead of calling
3892 xmalloc_inferior_status, allocate the inf_status buffer directly.
3893 Use regcache_dup_no_passthrough and regcache_dup to save the
3894 buffers.
3895 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3896 Replace the stop_registers regcache instead of overriding it. Use
3897 regcache_xfree. Instead of calling free_inferior_status, xfree
3898 the buffer directly.
3899 (discard_inferior_status): Use regcache_xfree. Instead of calling
3900 free_inferior_status, xfree the buffer directly.
3901 (build_infrun): Use regcache_xmalloc.
3902 (_initialize_infrun): Delete redundant call to build_infrun.
3903
3904 * Makefile.in (infcmd.o): Add $(regcache_h).
3905
3906 * infcmd.c: Include "regcache.h".
3907 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3908 obtain the address of `stop_registers' register buffer.
3909 (print_return_value): Ditto.
3910
3911 * inferior.h (struct regcache): Add opaque declaration.
3912 (stop_registers): Change variable's declared type to ``struct
3913 regcache''.
3914
defc6f8c
TT
39152002-06-24 Tom Tromey <tromey@redhat.com>
3916
c0e624e7
TT
3917 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3918 * target.c (initialize_targets): Fixed typo in
3919 trust-readonly-sections `show' documentation.
3920
defc6f8c
TT
3921 * main.c: Marked all strings with _().
3922
2b236d82
DH
39232002-06-24 Don Howard <dhoward@redhat.com>
3924
3925 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3926 that means max CORE_ADDR+1.
3927 (lookup_mem_region): Ditto.
3928 (mem_info_command): Ditto.
3929
942dc0e9
GS
39302002-06-24 Grace Sainsbury <graces@redhat.com>
3931
3932 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3933 (REGISTER_BYTES_OK): Remove.
3934 (REGISTER_BYTES): Remove.
3935 (STORE_STRUCT_RETURN): Remove.
3936 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3937 (STORE_RETURN_VALUE): Remove.
3938 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3939 (FRAME_CHAIN): Remove.
3940 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3941 (FRAME_SAVED_PC): Remove.
3942 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3943 (m68k_store_struct_return): Add.
3944 (m68k_deprecated_extract_return_value): Add.
3945 (m68k_deprecated_extract_struct_value_address): Add.
3946 (m68k_store_return_value): Add.
3947 (m68k_frame_chain): Add.
3948 (m68k_frameless_function_invocation): Add.
3949 (m68k_frame_saved_pc): Add.
3950 (m68k_gdbarch_init): added set_gdbarch calls for new
3951 functions and deleted macros.
3952
03c30d4d
TT
39532002-06-23 Tom Tromey <tromey@redhat.com>
3954
3955 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3956 (ALLDEPFILES): Likewise.
3957 (udiheaders): Removed.
3958 (udip2soc.o): Likewise.
3959 (udi2go32.o): Likewise.
3960 (udr.o): Likewise.
3961 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3962
37e71372
AC
39632002-06-22 Andrew Cagney <ac131313@redhat.com>
3964
06a6ac57
AC
3965 * infrun.c (_initialize_infrun): Delete unnecessary call to
3966 build_infrun.
3967
37e71372
AC
3968 * regcache.h: Update comments describing the regcache_cpy family
3969 of functions.
3970 (regcache_save, regcache_restore): Delete declaration.
3971 (regcache_save_no_passthrough): Delete declaration.
3972 (regcache_restore_no_passthrough): Delete declaration.
3973 * regcache.c (regcache_save): Delete function.
3974 (regcache_save_no_passthrough): Delete function.
3975 (regcache_restore): Delete function.
3976 (regcache_restore_no_passthrough): Delete function.
3977
78f6d055
AC
39782002-06-21 Andrew Cagney <ac131313@redhat.com>
3979
3980 * config/m68k/tm-m68k.h: Fix typo.
3981 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3982 (m68k_frame_init_saved_regs): Declare.
3983
78b119cb
JB
39842002-06-21 Jim Blandy <jimb@redhat.com>
3985
3986 Remove some vestiges of Harris 88k support.
3987 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3988 register numbering quirk.
3989 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3990 odd symbols occurring in Harris 88k ELF targets.
3991
0fbb3da7
TT
39922002-06-21 Tom Tromey <tromey@redhat.com>
3993
3994 * gdb_locale.h: New file.
3995 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3996 (defs_h): Added gdb_locale.h.
3997 * configure, config.in: Rebuilt.
3998 * configure.in (PACKAGE): Define.
3999 * defs.h: Include gdb_locale.h.
4000 * main.c (captured_main): Call setlocale, bindtextdomain,
4001 textdomain.
4002
456f8b9d
DB
40032002-06-21 Dave Brolley <brolley@redhat.com>
4004
4005 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4006 * config/frv/frv.mt: New file.
4007 * config/frv/tm-frv.h: New file.
4008 * configure.tgt: Support frv-*-*.
4009 * Makefile.in (frv-tdep.o): New target.
4010 * frv-tdep.c: New file.
4011 * NEWS: Mention frv.
4012
cdd463f9
DB
40132002-06-21 Dave Brolley <brolley@redhat.com>
4014
4015 * MAINTAINERS: Add self to "Write After Approval" list.
4016
5d3ed2e3
GS
40172002-06-21 Grace Sainsbury <graces@redhat.com>
4018
4019 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4020 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4021 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4022 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4023 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4024
4025 * m68k-tdep.c: Include arch-utils.h
4026 (m68k_register_raw_size): Add.
4027 (m68k_register_virtual_size): Add.
4028 (m68k_register_virtual_type): Add.
4029 (m68k_register_name): Add.
4030 (m68k_stack_align): Add.
4031 (m68k_register_byte): Add.
4032 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4033 tm-m68k.h.
4034
7f8e7424
GS
40352002-06-21 Grace Sainsbury <graces@redhat.com>
4036
a2c6a6d5 4037 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4038 m68k_find_saved_regs.
4039 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4040 references to it with frame->saved_regs.
7f8e7424
GS
4041 (m68k_gdbarch_init): Added function calls to initialize the
4042 gdbarch structure.
a2c6a6d5
GS
4043 (m68k_fix_call_dummy): Add.
4044 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4045 (CALL_DUMMY): Remove.
4046 (CALL_DUMMY_LENGTH): Remove.
4047 (CALL_DUMMY_START_OFFSET): Remove.
4048 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4049 (FIX_CALL_DUMMY): Remove.
4050 (PUSH_DUMMY_FRAME): Remove.
4051 (POP_FRAME): Remove.
7f8e7424 4052
f461f5cf
PM
40532002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4054
4055 * parse.c (parse_fprintf): New function used to avoid calls to
4056 fprintf in bison parser generated debug code.
4057 * parser-defs.h: Declaration of new parse_fprintf function.
4058 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4059 Set YYDEBUG to 1 by default.
4060 Set YYFPRINTF as parse_fprintf.
4061
7f0c12ed
ML
40622002-06-21 Michal Ludvig <mludvig@suse.cz>
4063
4064 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4065 encoding anymore.
4066 (pointer_encoding, enum ptr_encoding): New.
4067 (execute_cfa_program): Take care about pointer encoding.
4068 (dwarf2_build_frame_info): Only call parse_frame_info for
4069 .debug_frame and .eh_frame.
4070 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4071 fixed augmentation handling, added relative addressing,
4072 ignore duplicate FDEs. Added comments.
19d833a2 4073 * dwarf2cfi.c: Reindented.
7f0c12ed 4074
87c4a039
EZ
40752002-06-20 Elena Zannoni <ezannoni@redhat.com>
4076
4077 * event-top.c (command_handler): Don't use space_at_cmd_start
4078 unless there is sbrk() on the host. Assign time and space data
4079 to union fields of the appropriate length.
4080
1cf877ad
ML
40812002-06-20 Michal Ludvig <mludvig@suse.cz>
4082
4083 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4084 x86_64_register_name. Return type changed to 'const char *'.
4085 (x86_64_register_name2nr): Rename to x86_64_register_number.
4086 (x86_64_gdbarch_init): Update to reflect the change.
4087 * x86-64-tdep.h: Ditto.
4088 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4089 (supply_fpregset): Ditto.
4090
3fadccb3
AC
40912002-06-19 Andrew Cagney <cagney@redhat.com>
4092
4093 * regcache.h: Update copyright.
4094 (struct regcache, struct gdbarch): Add opaque declarations.
4095 (current_regcache): Declare global variable.
4096 (regcache_read, regcache_write): Add gdbarch parameter.
4097 (regcache_save, regcache_save_no_passthrough)
4098 (regcache_restore, regcache_restore_no_passthrough)
4099 (regcache_dup, regcache_dup_no_passthrough)
4100 (regcache_cpy, regcache_cpy_no_passthrough)
4101 (deprecated_grub_regcache_for_registers)
4102 (deprecated_grub_regcache_for_register_valid)
4103 (regcache_valid_p): Add function declarations.
4104
4105 * regcache.c: Update copyright.
4106 (regcache_descr_handle): New global variable.
4107 (struct regcache_descr): Define.
4108 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4109 (regcache_descr, xfree_regcache_descr): New functions.
4110 (struct regcache): Define.
4111 (regcache_xmalloc, regcache_xfree): New functions.
4112 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4113 (regcache_dup, regcache_dup_no_passthrough): New functions.
4114 (regcache_valid_p, regcache_read_as_address): New functions.
4115 (deprecated_grub_regcache_for_registers): New function.
4116 (deprecated_grub_regcache_for_register_valid): New function.
4117 (current_regcache): New global variable.
4118 (register_buffer): Add regcache parameter. Update calls.
4119 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4120 (read_register_gen, write_register_gen): Update register_buffer
4121 call. Test for legacy_p instead of gdbarch_register_read_p or
4122 gdbarch_register_write_p.
4123 (regcache_collect): Update register_buffer call.
4124 (build_regcache): Rewrite. Use deprecated grub functions.
4125 (regcache_save, regcache_save_no_passthrough): New functions.
4126 (regcache_restore, regcache_restore_no_passthrough): New
4127 functions.
4128 (_initialize_regcache): Create the regcache_data_handle. Swap
4129 current_regcache global variable.
4130
4131 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4132 parameter to regcache_read and regcache_write calls.
4133 (sh4_register_read): Ditto.
4134 (sh64_pseudo_register_read): Ditto.
4135 (sh64_register_read): Ditto.
4136 (sh_pseudo_register_write): Ditto.
4137 (sh4_register_write): Ditto.
4138 (sh64_pseudo_register_write): Ditto.
4139 (sh64_register_write): Ditto.
4140
4141 * defs.h (XCALLOC): Define.
4142
152d9db6
GS
41432002-06-19 Grace Sainsbury <graces@redhat.com>
4144
4145 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4146 * m68k-tdep.c (m68k_gdbarch_init): Added.
4147 (m68k_dump_tdep): Added.
4148
170911c7
DJ
41492002-06-19 Daniel Jacobowitz <drow@mvista.com>
4150
4151 * ada-lang.c (fill_in_ada_prototype): Update comment.
4152
2e4ebe70
DJ
41532002-06-19 Daniel Jacobowitz <drow@mvista.com>
4154
4155 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4156 MIPS_ABI_LAST.
4157 (mips_abi_string, mips_abi_strings): New.
4158 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4159 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4160 tdep->mips_abi_string. Honor mips_abi_string. Default to
4161 O32 if no ABI is found.
4162 (mips_dump_tdep): Use mips_abi_strings.
4163 (mips_abi_update): New function.
4164 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4165 ``set mips abi'' and ``show mips abi''. Check the size of
4166 mips_abi_strings.
4167
16775908
AC
41682002-06-19 Andrew Cagney <cagney@redhat.com>
4169
4170 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4171 constant.
4172
5051bfa4 41732002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4174
5051bfa4
JB
4175 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4176 current frame using only the first stack size adjustment. All
4177 subsequent size adjustments are not considered to be part of
4178 the "static" part of the current frame.
4179 Compute the address of the saved registers relative to the
4180 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4181 in use in this frame.
4182
56468235
DH
41832002-06-18 Don Howard <dhoward@redhat.com>
4184
4185 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4186 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4187 suggesting this solution.
4188
0b624158
AC
41892002-06-18 Andrew Cagney <ac131313@redhat.com>
4190
4191 * config/romp/xm-rtbsd.h: Delete file.
4192 * config/romp/rtbsd.mh: Delete file.
4193
221ea385
KS
41942002-06-18 Keith Seitz <keiths@redhat.com>
4195
4196 * breakpoint.c (condition_command): Post breakpoint_modify
4197 when a condition is added to an existing breakpoint.
4198 (commands_command): Likewise for commands.
4199 (set_ignore_count): Likewise for ignore counts.
4200 If no tty, do not simply return, still need to send event
4201 notification.
4202 (ignore_command): Only print a newline if the command came
4203 from a tty.
4204 Don't call breakpoints_changed, since this is now properly
4205 handled by set_ignore_count.
4206
5402eed1
AC
42072002-06-18 Andrew Cagney <cagney@redhat.com>
4208
4209 * MAINTAINERS: Note that cris-elf target can be compiled with
4210 -Werror.
4211 * cris-tdep.c (cris_register_name): Make return type constant.
4212 (cris_breakpoint_from_pc): Ditto.
4213
cc22880b
ML
42142002-06-18 Michal Ludvig <mludvig@suse.cz>
4215
4216 * frame.h (struct frame_info): Change type of context to
4217 'struct context'.
4218
fa88f677
AC
42192002-06-17 Andrew Cagney <cagney@redhat.com>
4220
4221 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4222 pointer.
4223 * gdbarch.h, gdbarch.c: Regenerate.
4224 * config/mips/tm-mips.h (mips_register_name): Update.
4225 * i386-tdep.h (i386_register_name): Update.
4226 * mips-tdep.c (mips_register_name): Update
4227 * alpha-tdep.c (alpha_register_name): Update.
4228 * arch-utils.c (legacy_register_name): Update.
4229 * arch-utils.h (legacy_register_name): Update.
4230 * avr-tdep.c (avr_register_name): Update.
4231 * ia64-tdep.c (ia64_register_name): Update.
4232 * i386-tdep.c (i386_register_name): Update.
4233 * sparc-tdep.c (sparc32_register_name): Update.
4234 (sparc64_register_name): Update.
4235 (sparclite_register_name): Update.
4236 (sparclet_register_name): Update.
4237 * sh-tdep.c (sh_generic_register_name): Update.
4238 (sh_sh_register_name): Update.
4239 (sh_sh3_register_name): Update.
4240 (sh_sh3e_register_name): Update.
4241 (sh_sh_dsp_register_name): Update.
4242 (sh_sh3_dsp_register_name): Update.
4243 (sh_sh4_register_name): Update.
4244 (sh_sh64_register_name): Update.
4245 * s390-tdep.c (s390_register_name): Update.
4246 * rs6000-tdep.c (rs6000_register_name): Update.
4247 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4248 (ns32k_register_name_32382): Update.
4249 * d10v-tdep.c (d10v_ts2_register_name): Update.
4250 (d10v_ts3_register_name): Update.
4251 * xstormy16-tdep.c (xstormy16_register_name): Update.
4252 * vax-tdep.c (vax_register_name): Update.
4253 * v850-tdep.c (v850_register_name): Update.
4254 * m68hc11-tdep.c (m68hc11_register_name): Update.
4255 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4256 (am33_register_name): Update.
4257
ea1e7ef6
GS
42582002-06-17 Grace Sainsbury <graces@redhat.com>
4259
4260 * m68k-tdep.c: Reindented.
4261
9b02dd1b
AC
42622002-06-17 Andrew Cagney <ac131313@redhat.com>
4263
4264 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4265 list of predefined types.
4266
8758dec1
MK
42672002-06-16 Mark Kettenis <kettenis@gnu.org>
4268
b6197528
MK
4269 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4270 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4271 REGISTER_CONVERT_TO_RAW): Remove defines.
4272 (i386_register_virtual_type, i386_register_convertible,
4273 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4274 Remove prototypes.
4275 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4276 macros mentioned above.
4277
82b47e62
MK
4278 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4279 (i386lynx_saved_pc_after_call): Remove prototype.
4280 * i386ly-tdep.c: Include "i386-tdep.h".
4281 (i386lynx_saved_pc_after_call): Make static. Use
4282 read_memory_nobpt instead of read_memory. Use
4283 read_memory_unsigned_integer instead of read_memory_integer.
4284 (i386lynx_init_abi): New function.
4285 (i386lynx_coff_osabi_sniffer): New function.
4286 (_initialize_i386bsd_tdep): New function.
4287
8758dec1
MK
4288 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4289 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4290 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4291 (i386_fix_call_dummy): Remove prototype.
4292 * i386-tdep.c (i386_call_dummy_words): New variable.
4293 (i386_gdbarch_init): Adjust for removal of the
4294 macros mentioned above.
4295
e9e68a56
AC
42962002-06-15 Andrew Cagney <ac131313@redhat.com>
4297
4298 * command.h (add_setshow_auto_boolean_cmd): Replace
4299 add_set_auto_boolean_cmd.
4300 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4301 add_set_auto_boolean_cmd.
4302 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4303 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4304 mask-address'' command.
4305 (show_mask_address): Add cmd parameter.
4306 * remote.c (add_packet_config_cmd): Update. Change type of
4307 set_func and show_func to cmd_sfunc_ftype.
4308 (_initialize_remote): Update `set remote Z-packet'
4309 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4310 (show_remote_protocol_e_packet_cmd): Ditto.
4311 (show_remote_protocol_E_packet_cmd): Ditto.
4312 (show_remote_protocol_P_packet_cmd): Ditto.
4313 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4314 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4315 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4316 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4317 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4318 (show_remote_protocol_Z_packet_cmd): Ditto.
4319 (show_remote_protocol_binary_download_cmd): Ditto.
4320 (show_remote_cmd): Pass NULL to all of above.
4321
fc08ec52
MK
43222002-06-15 Mark Kettenis <kettenis@gnu.org>
4323
4324 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4325 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4326 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4327 POP_FRAME): Remove defines.
4328 (i386_push_arguments, i386_store_struct_return,
4329 i386_extract_return_value, i386_store_return_value,
4330 i386_extract_struct_value_address, i386_push_dummy_frame,
4331 i386_pop_frame): Renove prototypes.
4332 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4333 macros mentioned above.
4334
e707bbc2
AC
43352002-06-15 Andrew Cagney <ac131313@redhat.com>
4336
4337 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4338 add_set_boolean_cmd.
4339 (add_setshow_cmd): New function.
4340 * command.h (add_setshow_boolean_cmd): Replace
4341 add_set_boolean_cmd.
4342 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4343 and ``set rdiromatzero''.
4344 * maint.c (_initialize_maint_cmds): Update commented out code.
4345 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4346 * target.c (initialize_targets): Update `set
4347 trust-readonly-sections'.
4348 * remote.c (_initialize_remote): Update `set remotebreak'.
4349
42fdc8df
MK
43502002-06-15 Mark Kettenis <kettenis@gnu.org>
4351
93924b6b
MK
4352 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4353 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4354 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4355 fit into multi-arch framework.
4356 (i386_breakpoint_from_pc): New function.
4357 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4358 above.
4359
42fdc8df
MK
4360 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4361 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4362 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4363 (i386_frameless_function_invocation, i386_frame_num_args,
4364 i386_frame_init_saved_regs): Remove prototypes.
4365 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4366 macros mentioned above.
4367
9773a94b
AC
43682002-06-15 Andrew Cagney <ac131313@redhat.com>
4369
4370 * cli/cli-decode.c (set_cmd_cfunc): Update.
4371 (set_cmd_sfunc): Update.
4372 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4373 (set_cmd_sfunc, set_cmd_cfunc): Update.
4374 * cli/cli-decode.h: Update.
4375
6e157172
MK
43762002-06-15 Mark Kettenis <kettenis@gnu.org>
4377
4378 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4379 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4380
7f19b9a2
AC
43812002-06-15 Andrew Cagney <ac131313@redhat.com>
4382
4383 * defs.h (auto_boolean): Declare enum.
4384 * command.h (cmd_auto_boolean): Delete enum.
4385 * mips-tdep.c (mask_address_var): Update.
4386 (mips_mask_address_p): Update.
4387 (show_mask_address): Update.
4388 * remote.c (struct packet_config): Update.
4389 (update_packet_config): Update.
4390 (show_packet_config_cmd): Update.
4391 (packet_ok): Update.
4392 (add_packet_config_cmd): Update.
4393 (_initialize_remote):
4394 * command.h: Update.
4395 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4396 (do_setshow_command): Update.
4397 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4398 * cli/cli-decode.h: Update.
4399
1cf88de5
MK
44002002-06-15 Mark Kettenis <kettenis@gnu.org>
4401
22ba8cf2
MK
4402 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4403 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4404 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4405 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4406 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4407 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4408
762c5349
MK
4409 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4410 list of DJGPP COFF targets.
4411
091198bb
MK
4412 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4413 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4414 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4415 (FP0_REGNUM): Remove define.
4416 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4417 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4418 (i386_register_virtual_size): Remove protoype.
4419 * i386-tdep.c (i386_register_virtual_size): Removed.
4420 (i386_extract_return_value, i386_store_return_value): Use
4421 FP0_REGNUM instead of NUM_FREGS to determine whether the
4422 floating-point registers are available.
4423 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4424 Adjust for removal of macros mentioned above.
4425
44262002-06-15 Mark Kettenis <kettenis@gnu.org>
4427
fcc9bf01
MK
4428 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4429 comments.
4430 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4431 Remove prototypes.
4432 (supply_gregset, fill_gregset): Remove use of register keyword and
4433 remove declaration for regmap. Use I386_NUM_GREGS instead of
4434 NUM_REGS and NUM_FREGS.
4435 (FPREGSET_FSAVE_OFFSET): Remove.
4436 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4437 NUM_FREGS to determine whether the floating-point registers are
4438 available.
4439
65e78234
MK
4440 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4441 gnu_store_registers): Replace usage of NUM_GREGS with
4442 I386_NUM_GREGS.
4443
98df6387
MK
4444 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4445 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4446 usage of NUM_GREGS with I386_NUM_GREGS.
4447
099a9414
MK
4448 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4449
57976e88
MK
4450 * i386bsd-nat.c: Include "i386-tdep.h".
4451 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4452 I386_NUM_GREGS.
4453
b335f4a6
MK
4454 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4455 and associated comment. They no longer make any sense, since we
4456 don't use this file anymore on Linux.
4457
1cf88de5
MK
4458 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4459 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4460 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4461 elements in these arrays.
4462 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4463 MAX_NUM_REGS.
4464
daa66587
MK
44652002-06-15 Mark Kettenis <kettenis@gnu.org>
4466
4467 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4468 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4469
26e9b323
AC
44702002-06-14 Andrew Cagney <cagney@redhat.com>
4471
4472 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4473 EXTRACT_RETURN_VALUE.
4474 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4475 EXTRACT_STRUCT_VALUE_ADDRESS.
4476 * gdbarch.h, gdbarch.c: Regenerate.
4477
4478 * values.c (value_being_returned): Handle
4479 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4480 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4481
4482 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4483 * arm-tdep.c (arm_gdbarch_init): Update.
4484 * avr-tdep.c (avr_gdbarch_init): Update.
4485 * cris-tdep.c (cris_gdbarch_init): Update.
4486 * d10v-tdep.c (d10v_gdbarch_init): Update.
4487 * ia64-tdep.c (ia64_gdbarch_init): Update.
4488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4490 * s390-tdep.c (s390_gdbarch_init): Update.
4491 * sh-tdep.c (sh_gdbarch_init): Update.
4492 * s390-tdep.c (s390_gdbarch_init): Update.
4493 * sparc-tdep.c (sparc_gdbarch_init): Update.
4494 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4495 * v850-tdep.c (v850_gdbarch_init): Update.
4496 * vax-tdep.c (vax_gdbarch_init): Update.
4497 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4499
4500 * config/arc/tm-arc.h: Update.
4501 * config/d30v/tm-d30v.h: Update.
4502 * config/fr30/tm-fr30.h: Update.
4503 * config/h8300/tm-h8300.h: Update.
4504 * config/h8500/tm-h8500.h: Update.
4505 * config/i386/tm-i386.h: Update.
4506 * config/i386/tm-ptx.h: Update.
4507 * config/i386/tm-symmetry.h: Update.
4508 * config/i960/tm-i960.h: Update.
4509 * config/m32r/tm-m32r.h: Update.
4510 * config/m68k/tm-delta68.h: Update.
4511 * config/m68k/tm-linux.h: Update.
4512 * config/m68k/tm-m68k.h: Update.
4513 * config/m88k/tm-m88k.h: Update.
4514 * config/mcore/tm-mcore.h: Update.
4515 * config/mips/tm-mips.h: Update.
4516 * config/mn10200/tm-mn10200.h: Update.
4517 * config/pa/tm-hppa.h: Update.
4518 * config/pa/tm-hppa64.h: Update.
4519 * config/sparc/tm-sp64.h: Update.
4520 * config/sparc/tm-sparc.h: Update.
4521 * config/sparc/tm-sparclet.h: Update.
4522 * config/z8k/tm-z8k.h: Update.
4523
5179e78f
AC
45242002-06-14 Andrew Cagney <cagney@redhat.com>
4525
4526 * Makefile.in (i386_linux_tdep_h): Define.
4527 (i386_tdep_h, i387_tdep_h): Define.
4528 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4529 $(i386_tdep_h) and $(i387_tdep_h).
4530 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4531
8201327c
MK
45322002-06-14 Mark Kettenis <kettenis@gnu.org>
4533
edf393ac
MK
4534 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4535 Already covered by the default.
4536
896fb97d
MK
4537 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4538 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4539 (i386_gdbarch_init): Initialize long_double_format and long_double
4540 bit.
4541
8201327c
MK
4542 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4543 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4544 Move these to ...
4545 * config/i386/i386sol2.mh: ... here.
4546 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4547 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4548 (SIGCONTEXT_PC_OFFSET): Remove define.
4549 (IN_SIGTRAMP): Remove define.
4550 * i386-sol2-tdep.c: New file.
4551
4552 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4553 * config/i386/tm-i386nw.h: Removed.
4554
4555 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4556 USE_STRUCT_CONVENTION): Remove defines.
4557 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4558 (get_longjmp_target): Remove prototype.
4559 (IN_SIGTRAMP): Remove define.
4560 (i386bsd_in_sigtramp): Remove prototype.
4561 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4562 function. Update comment accordingly
4563 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4564 (FRAME_SAVED_PC): Remove define.
4565 (i386bsd_frame_saved_pc): Remove prototype.
4566 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4567 GET_LONGJMP_TARGET): Remove defines.
4568 (get_longjmp_target): Remove prototype.
4569 (IN_SIGTRAMP): Remove define.
4570 (i386bsd_in_sigtramp): Remove prototype.
4571 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4572 function. Update comment accordingly
4573 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4574 (FRAME_SAVED_PC): Remove define.
4575 (i386bsd_frame_saved_pc): Remove prototype.
4576 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4577 Remove prototype.
4578 (USE_STRUCT_CONVENTION): Remove prototype.
4579 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4580 declaration.
4581 (_initialize_i386bsd_nat): Revise logic to determine some
4582 constants at compile time when compiling a native GDB. Warn if
4583 things don't match up with what we expect.
4584 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4585 Remove variables.
4586 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4587 to use date stored in `struct gdbarch_tdep'.
4588 (i386bsd_sigcontext_offset): Remove varaible.
4589 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4590 stored in `struct gdbarch_tdep'.
4591 (i386bsd_frame_saved_pc): Make static.
4592 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4593 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4594 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4595 i386fbsd4_sc_pc_offset): New variables.
4596 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4597 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4598 functions.
4599 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4600 functions.
4601 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4602 Modify the value of i386fbsd_sigtramp_start and
4603 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4604 i386fbsd_sigtramp_end.
4605 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4606 function.
4607
4608 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4609 define to i386-linux-tdep.h.
4610 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4611 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4612 defines.
4613 (i386_linux_register_name, i386_linux_register_byte,
4614 i386_linux_register_raw_size): Remove prototypes.
4615 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4616 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4617 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4618 TARGET_WRITE_PC): Remove defines.
4619 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4620 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4621 i386_linux_write_pc): Remove prototypes.
4622 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4623 (get_longjmp_target): Remove prototype.
4624 * i386-linux-tdep.h: New file.
4625 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4626 * i386-linux-tdep.c: Include "i386-tdep.h" and
4627 "i386-linux-tdep.h".
4628 (i386_linux_register_name, i386_linux_register_byte,
4629 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4630 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4631 Make static.
4632 (i386_linux_init_abi): New function.
4633 (_initialize_i386_linux_tdep): New function.
4634
4635 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4636 (i386_saved_pc_after_call): Remove prototype.
4637 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4638 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4639 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4640 (i386_register_name, i386_stab_reg_to_regnum,
4641 i386_dwarf_reg_to_regnum): Remove prototypes.
4642 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4643 SIZEOF_SSE_REGS): Remove defines.
4644 (REGISTER_BYTES): Remove define.
4645 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4646 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4647 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4648 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4649 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4650 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4651 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4652 (get_longjmp_target): Remove prototype.
4653 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4654 (sigtramp_saved_pc): Remove define.
4655 (i386v4_sigtramp_saved_pc): Remove prototype.
4656 * config/i386/tm-go32.h (FRAME_CHAIN,
4657 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4658 (i386go32_frame_saved_pc): Remove prototype.
4659 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4660 (get_longjmp_target): Remove prototype.
4661 * i386-tdep.h: Include "osabi.h".
4662 (enum i386_abi): Removed.
4663 (enum struct_return): New enum.
4664 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4665 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4666 sc_pc_offset members.
4667 (i386_gdbarch_register_os_abi): Remove prototype.
4668 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4669 I386_SSE_NUM_REGS): New defines.
4670 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4671 I386_SSE_SIZEOF_REGS): New defines.
4672 (i386_register_name, i386_register_byte, i386_register_raw_size):
4673 New prototypes.
4674 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4675 (i386bsd_sigtramp_saved_pc): New prototype.
4676 * i386-tdep.c: Don't include "elf-bfd.h".
4677 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4678 i386_frame_chain, i386_saved_pc_after_call): Make static.
4679 (i386_frame_saved_pc): Rewrite to call architecture dependent
4680 function to deal with signal handlers. Make static.
4681 (i386go32_frame_saved_pc): Removed.
4682 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4683 Removed.
4684 (i386_get_longjmp_target): New function.
4685 (default_struct_convention, pcc_struct_convention,
4686 reg_struct_convention, valid_conventions, struct_convention): New
4687 variables.
4688 (i386_use_struct_convention): New function.
4689 (i386v4_sigtramp_saved_pc): Renamed to
4690 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4691 (i386_pc_in_sigtramp): New function.
4692 (i386_abi_names): Removed.
4693 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4694 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4695 Removed.
4696 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4697 i386_gdbarch_register_os_abi): Removed.
4698 (struct i386_abi_handler): Removed.
4699 (i386_abi_handler_list): Removed.
4700 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4701 functions.
4702 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4703 i386_nw_init_abi): New functions.
4704 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4705 Use set_gdbarch_xxx() calls instead of relying on macros for a
4706 number of calls.
4707 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4708 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4709 Register the various architecture variants defined in this file.
4710
ad2f7632
DJ
47112002-06-14 Daniel Jacobowitz <drow@mvista.com>
4712
4713 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4714 (struct main_type): Remove arg_types member. Update comments for
4715 struct field.
4716 (TYPE_ARG_TYPES): Remove.
4717 (TYPE_FN_FIELD_ARGS): Update.
4718 (smash_to_method_type): Update prototype.
4719
4720 * c-typeprint.c (cp_type_print_method_args): Take method type
4721 instead of argument list. Use new argument layout. Simplify.
4722 (c_type_print_args): Use new argument layout. Simplify.
4723 (c_type_print_base): Update call to cp_type_print_method_args.
4724 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4725 argument; use die->type instead. Update call to
4726 smash_to_method_type.
4727 (read_structure_scope): Update call to dwarf2_add_member_fn.
4728 * gdbtypes.c (allocate_stub_method): Update comment.
4729 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4730 Use new argument layout.
4731 (check_stub_method): Use new argument layout. Don't count
4732 void as an argument.
4733 (print_arg_types): Update comments. Use new argument layout.
4734 (recursive_dump_type): Don't print arg_types member.
4735 * hpread.c (hpread_read_struct_type): Use new argument layout.
4736 (fixup_class_method_type): Likewise.
4737 (hpread_type_lookup): Likewise.
4738 * stabsread.c (read_type): Update calls to read_args and
4739 smash_to_method_type.
4740 (read_args): Use new argument layout. Simplify.
4741 * valops.c (typecmp): Use new argument layout. Update parameters
4742 and comments. Simplify.
4743 (hand_function_call): Use new argument layout.
4744 (search_struct_method): Update call to typecmp.
4745 (find_overload_match): Use new argument layout.
4746
6da02953
DJ
47472002-06-13 Daniel Jacobowitz <drow@mvista.com>
4748
4749 * NEWS: Mention multithreaded debug support for gdbserver.
4750
519b2366
DJ
47512002-06-13 Daniel Jacobowitz <drow@mvista.com>
4752
4753 * MAINTAINERS: Mention NEWS.
4754
6c0d6680
DJ
47552002-06-13 Daniel Jacobowitz <drow@mvista.com>
4756
4757 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4758 (struct mips_objfile_private, compare_pdr_entries): New.
4759 (non_heuristic_proc_desc): Read the ".pdr" section if it
4760 is present.
4761
6529d2dd
AC
47622002-06-12 Andrew Cagney <ac131313@redhat.com>
4763
4764 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4765 (arm_debug): New static variable.
4766 (_initialize_arm_tdep): Add ``set debug arm'' command.
4767
26216b98
AC
47682002-06-12 Andrew Cagney <ac131313@redhat.com>
4769
4770 * Makefile.in (sim_arm_h): Define.
4771 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4772 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4773 (arm_register_sim_regno): New function, map an internal REGNUM
4774 onto a simulator register number.
4775 (arm_gdbarch_init): Set register_sim_regno.
4776
814b3ba0
AH
47772002-06-09 Aldy Hernandez <aldyh@redhat.com>
4778
4779 * MAINTAINERS: Add self.
4780
475b0867
JB
47812002-06-11 Jim Blandy <jimb@redhat.com>
4782
919d772c
JB
4783 * source.c (source_info): Mention whether the symtab has
4784 information about preprocessor macros.
4785
475b0867
JB
4786 Call the command `info macro', not `show macro'.
4787 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4788 Fix error message.
4789 (_initialize_macrocmd): Register `info_macro_command' in
4790 `infolist', not `showlist'.
4791
9e364162
DJ
47922002-06-11 Daniel Jacobowitz <drow@mvista.com>
4793
4794 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4795 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4796 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4797 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4798 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4799 unconditionally.
4800 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4801 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4802 (_initialize_mips_tdep): Remove dead code.
4803 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4804 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4805 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4806 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4807 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4808 MIPS_LAST_FP_ARG_REGNUM): Remove.
4809
23aa4c72
ML
48102002-06-11 Michal Ludvig <mludvig@suse.cz>
4811
4812 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4813 (unwind_tmp_obstack_free, parse_frame_info)
4814 (update_context, cfi_read_fp, cfi_write_fp)
4815 (cfi_frame_chain, cfi_init_extra_frame_info)
4816 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4817 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4818
70eb15a4
CV
48192002-06-11 Corinna Vinschen <vinschen@redhat.com>
4820
4821 * v850-tdep.c (v850_type_is_scalar): New function.
4822 (v850_use_struct_convention): Match current gcc implementation
4823 as close as possible.
4824 (v850_push_arguments): Fix stack_offset handling. Don't write
4825 struct_addr into register. This is done by v850_store_struct_return.
4826 (v850_extract_return_value): Care for structs.
4827 (v850_store_return_value): Ditto.
4828 (v850_store_struct_return): Actually write address.
4829
482a4d06
ML
48302002-06-11 Michal Ludvig <mludvig@suse.cz>
4831
4832 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4833 without debug information too.
4834
d855c300
AC
48352002-06-10 Andrew Cagney <ac131313@redhat.com>
4836
4837 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4838 Make multi-arch pure.
4839 * gdbarch.h, gdbarch.c: Re-generate.
4840 * arm-tdep.c (arm_print_float_info): Update.
4841 * arch-utils.h (default_print_float_info): Update.
4842 * arch-utils.c (default_print_float_info): Update.
4843 * infcmd.c (float_info): Update call.
4844
dd12a101
AC
48452002-06-10 Andrew Cagney <ac131313@redhat.com>
4846
4847 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4848 the front of the initialize list.
4849
101dcfbe
AC
48502002-06-10 Andrew Cagney <ac131313@redhat.com>
4851
4852 * infrun.c (struct inferior_status): Replace fields
4853 selected_frame_address and selected_level with field
4854 selected_frame_id.
4855 (save_inferior_status): Update. Use get_frame_id.
4856 (struct restore_selected_frame_args): Delete.
4857 (restore_selected_frame): Update. Use frame_find_by_id.
4858 (restore_inferior_status): Update.
4859
4860 * breakpoint.h (struct breakpoint): Change type of
4861 watchpoint_frame to frame_id.
4862 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4863 call to get_current_frame.
4864 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4865 get_current_frame.
4866 (watchpoint_check): Use frame_find_by_id.
4867
4868 * frame.h (record_selected_frame): Delete declaration.
4869 * stack.c (record_selected_frame): Delete function.
4870
4871 * frame.h (struct frame_id): Define.
4872 (get_frame_id): Declare.
4873 (frame_find_by_id): Declare.
4874 * frame.c (frame_find_by_id): New function.
4875 (get_frame_id): New function.
4876
304270b6
AV
48772002-06-10 Andrey Volkov <avolkov@transas.com>
4878
4879 * ser-e7kpc.c: Fix duplicated define and call of
4880 _initialize_ser_e7000pc
4881
2f2cf184
DJ
48822002-06-09 Daniel Jacobowitz <drow@mvista.com>
4883
4884 * signals/signals.c (target_signal_from_host): Fix #ifdef
4885 SIGRTMIN case.
4886 (do_target_signal_to_host): Likewise.
4887
caaa3122
DJ
48882002-06-09 Daniel Jacobowitz <drow@mvista.com>
4889
4890 * mips-tdep.c (mips_find_abi_section): New function.
4891 (mips_gdbarch_init): Call it.
4892
6ac5df3a
MK
48932002-06-09 Mark Kettenis <kettenis@gnu.org>
4894
4895 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4896 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4897 after Andrew's 2002-06-08 gdbarch change.
4898
82ea117a
MK
48992002-06-09 Mark Kettenis <kettenis@gnu.org>
4900
4901 * i386-linux-nat.c (suppy_gregset): Don't supply
4902 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4903 register cache.
4904 (fill_gregset): Don't fetch it under the same circumstances.
4905
3c25f8c7
AC
49062002-06-09 Andrew Cagney <cagney@redhat.com>
4907
4908 * Makefile.in (callback_h): Define.
4909 (remote_sim_h): Update path to remote-sim.h.
4910 (remote-rdp.o): Add $(callback_h).
4911 (remote-sim.o): Use $(callback_h).
4912 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4913 * remote-rdp.c: Include "gdb/callback.h".
4914
1029b7fa
MK
49152002-06-09 Mark Kettenis <kettenis@gnu.org>
4916
4917 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4918 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4919
616675d3
AC
49202002-06-08 Andrew Cagney <ac131313@redhat.com>
4921
a3efda28
AC
4922 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4923 * rdi-share/serpardr.c: Ditto.
4924 * rdi-share/unixcomm.c: Ditto.
4925 * rdi-share/serdrv.c: Ditto.
4926 * rdi-share/hostchan.h: Ditto.
4927 * rdi-share/hostchan.c: Ditto.
4928 * rdi-share/host.h: Ditto.
4929 * rdi-share/devsw.c: Ditto.
4930
c5f10366
AC
4931 * objfiles.h: Change type of obj_private to void pointer.
4932 * pa64solib.c: Update copyright. Don't include "assert.h", use
4933 strcmp instead of STREQ, use LONGEST, do not use PTR
4934 * somsolib.c: Ditto.
4935
616675d3
AC
4936 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4937 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4938 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4939
e4b415d9
AC
49402002-06-08 Andrew Cagney <ac131313@redhat.com>
4941
4942 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4943 (default_get_saved_register): Delete function.
4944 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4945 generic_unwind_get_saved_register.
4946 * gdbarch.h, gdbarch.c: Re-generate.
4947
ca0d0b52
AC
49482002-06-08 Andrew Cagney <ac131313@redhat.com>
4949
4950 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4951 generic_func_frame_chain_valid.
4952 * gdbarch.h, gdbarch.c: Re-generate.
4953 * blockframe.c (generic_func_frame_chain_valid): Only check
4954 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4955 passing FP to PC_IN_CALL_DUMMY.
4956 Fix PR gdb/360.
4957
76860b5f
AC
49582002-06-08 Andrew Cagney <ac131313@redhat.com>
4959
4960 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4961 (register_gdbarch_data): Initialize init_p.
4962 (gdbarch_data): Initialize data pointer using the init function.
4963 (init_gdbarch_data): Delete function.
4964 (gdbarch_update_p): Update.
4965 (initialize_non_multiarch): Update.
4966 (struct gdbarch): Add field initialized_p.
4967 * gdbarch.h, gdbarch.c: Re-generate.
4968
8dda9770
ML
49692002-06-07 Michal Ludvig <mludvig@suse.cz>
4970
4971 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4972 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4973 better do the things actually here.
4974 * x86-64-tdep.c (x86_64_register_name2nr): New.
4975 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4976 (x86_64_gdbarch_init): Respect the above change.
4977 * x86-64-tdep.h (x86_64_register_name2nr)
4978 (x86_64_register_nr2name): Add prototypes.
4979 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4980
3d79a47c
MS
49812002-06-06 Michael Snyder <msnyder@redhat.com>
4982
7bd91a28
MS
4983 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4984 Delete extra braces and re-indent.
4985 (d10v_store_return_value): Char return values
3d79a47c
MS
4986 must be shifted over by one byte in R0.
4987 (d10v_extract_return_value): Delete extra braces, re-indent.
4988
095a4c96
EZ
49892002-06-06 Elena Zannoni <ezannoni@redhat.com>
4990
4991 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4992 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4993 (d10v_integer_to_address): Rewrite.
4994 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4995 the d10v specific functions which take care of converting to the
4996 correct space.
4997
e8a77ca4
EZ
49982002-06-06 Elena Zannoni <ezannoni@redhat.com>
4999
5000 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5001 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5002
4f2e4a4f
AC
50032002-06-02 Andrew Cagney <ac131313@redhat.com>
5004
5005 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5006 includes.
5007 * config/tm-linux.h: Ditto.
5008 * config/alpha/tm-alphalinux.h: Ditto.
5009 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5010 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5011 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5012 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5013 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5014 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5015 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5016 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5017 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5018 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5019 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5020 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5021 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5022 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5023 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5024 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5025 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5026 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5027 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5028 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5029 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5030 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5031 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5032 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5033 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5034 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5035 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5036 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5037 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5038 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5039 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5040 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5041 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5042 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5043 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5044 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5045 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5046
ae2ab2ce
AS
50472002-05-04 Aidan Skinner <aidan@velvet.net>
5048
5049 * ada-exp.tab.c: New file
5050 * ada-exp.y: New file
5051 * ada-lang.c: New file
5052 * ada-lang.h: New file
5053 * ada-lex.c: New file
5054 * ada-lex.l: New file
5055 * ada-tasks.c: New file
5056 * ada-typeprint.c: New file
5057 * ada-valprint.c: New file
5058
0ddd0135
JT
50592002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5060
5061 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5062 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5063
750fbacc
JT
50642002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5065
5066 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5067 insetead of ppc-linux-tdep.o.
5068 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5069 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5070
df94e18a
AC
50712002-06-02 Andrew Cagney <ac131313@redhat.com>
5072
5073 2002-05-07 Christian Groessler <chris@groessler.org>
5074 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5075 bit register contents for little endian hosts.
5076
1a38ab75
AC
50772002-06-01 Andrew Cagney <ac131313@redhat.com>
5078
5079 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5080 any maintainer.
5081
8b1632ac
AC
50822002-06-01 Andrew Cagney <ac131313@redhat.com>
5083
5084 * gdbarch.h: Regenerate.
5085
627054c8
AC
50862002-06-01 Andrew Cagney <ac131313@redhat.com>
5087
5088 * MAINTAINERS: Add everyone to write-after-approval list.
5089
4f460812
AC
50902002-06-01 Andrew Cagney <ac131313@redhat.com>
5091
5092 * stack.c (frame_info): Use frame_register_unwind instead of
5093 saved_regs. Mention when the SP is on the stack or in a register.
5094
5095 * frame.h (frame_register_unwind_ftype): Define. Document.
5096 (struct frame_info): Add field register_unwind and
5097 register_unwind_cache.
5098 (frame_register_unwind): Declare.
5099 (generic_unwind_get_saved_register): Declare.
5100
5101 * frame.c (frame_register_unwind): New function.
5102 (generic_unwind_get_saved_register): New function.
5103
5104 * blockframe.c (generic_call_dummy_register_unwind): New function.
5105 (frame_saved_regs_register_unwind): New function.
5106 (set_unwind_by_pc): New function.
5107 (create_new_frame): New function.
5108 (get_prev_frame): New function.
5109
de888f76
AC
51102002-05-30 Andrew Cagney <ac131313@redhat.com>
5111
5112 * a29k-share/: Delete directory.
5113 * remote-vx29k.c: Delete file.
5114
2f2c3626
JT
51152002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5116
5117 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5118 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5119
9ce5c36a
JT
51202002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5121
5122 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5123 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5124 (sparc64nbsd-nat.o)
5125 (sparcnbsd-nat.o)
5126 (sparcnbsd-tdep.o): New dependency lists.
5127 * NEWS: Note new UltraSPARC NetBSD native configuration.
5128 * configure.host (sparc64-*-netbsd*): New host.
5129 * configure.tgt (sparc-*-netbsdelf*)
5130 (sparc-*-netbsd*): Set gdb_target to nbsd.
5131 (sparc64-*-netbsd*): New target.
5132 * sparc64nbsd-nat.c: New file.
5133 * sparcnbsd-nat.c: New file.
5134 * sparcnbsd-tdep.c: New file.
5135 * sparcnbsd-tdep.h: New file.
5136 * config/sparc/nbsd.mt: New file.
5137 * config/sparc/nbsd64.mh: New file.
5138 * config/sparc/nbsd64.mt: New file.
5139 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5140 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5141 (HOST_IPC): Remove.
5142 * config/sparc/nbsdaout.mt: Remove.
5143 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5144 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5145 (HOST_IPC): Remove.
5146 * config/sparc/nbsdelf.mt: Remove.
5147 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5148 sparc-nat.c compatiblity defines.
5149 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5150 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5151 * config/sparc/tm-nbsd64.h: New file.
5152 * config/sparc/tm-nbsdaout.h: Remove.
5153 * config/sparc/xm-nbsd.h: Remove.
5154
ef3cf062
JT
51552002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5156
5157 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5158 * sparc-tdep.c: Include osabi.h.
5159 (gdbarch_tdep): Add osabi member.
5160 (_initialize_sparc_tdep): Use gdbarch_register.
5161 (sparc_gdbarch_init): Use generic OS ABI framework.
5162 (sparc_dump_tdep): New function.
5163
ee8ff470
KB
51642002-05-30 Kevin Buettner <kevinb@redhat.com>
5165
5166 * corefile.c (do_captured_read_memory_integer): Return non-zero
5167 result.
5168 (safe_read_memory_integer): Copy result of memory read when
5169 status is non-zero. Also, add comments.
5170
7b112f9c
JT
51712002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5172
5173 * Makefile.in (ppc_tdep_h): Define.
5174 (ppc-linux-nat.o)
5175 (ppc-linux-tdep.o)
5176 (rs6000-tdep.o): Use $(ppc_tdep_h).
5177 (ppc-sysv-tdep.o)
5178 (ppcnbsd-nat.o)
5179 (ppcnbsd-tdep.o): New dependency lists.
5180 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5181 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5182 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5183 (ppc_sysv_abi_broken_use_struct_convention)
5184 (ppc_sysv_abi_use_struct_convention)
5185 (ppc_sysv_abi_push_arguments): Move to...
5186 * ppc-sysv-tdep.c: ...here.
5187 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5188 * rs6000-tdep.c (process_note_abi_tag_sections)
5189 (get_elfosabi): Remove.
5190 (rs6000_gdbarch_init): Use generic OS ABI framework.
5191 (rs6000_dump_tdep): New function.
5192 (_initialize_rs6000_tdep): Use gdbarch_register.
5193 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5194 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5195 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5196 of ppc-linux-tdep.o.
5197 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5198 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5199 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5200 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5201 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5202 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5203
480dd42a
JB
52042002-05-29 Jim Blandy <jimb@redhat.com>
5205
5206 * macroscope.c (default_macro_scope): Put `void' in empty argument
5207 list.
5208
4182591f
AC
52092002-05-29 Andrew Cagney <ac131313@redhat.com>
5210
5211 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5212 * arch-utils.c: Include "sim-regno.h".
5213 * gdbarch.sh: Don't include "sim-regno.h".
5214 * gdbarch.h, gdbarch.c: Regenerate.
5215 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5216 here.
5217 * arch-utils.h (legacy_register_sim_regno): To here.
5218 * remote-sim.c (legacy_register_sim_regno): Move function from
5219 here.
5220 * arch-utils.c (legacy_register_sim_regno): To here.
5221
8238d0bf
AC
52222002-05-28 Andrew Cagney <ac131313@redhat.com>
5223
5224 * sim-regno.h: New file.
5225 * Makefile.in (sim_regno_h): Define.
5226 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5227 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5228 (legacy_register_sim_regno): New function.
5229 (one2one_register_sim_regno): New function.
5230 (gdbsim_fetch_register): Rewrite.
5231 (gdbsim_store_register): Only store a register when
5232 REGISTER_SIM_REGNO is valid.
5233 * d10v-tdep.c: Include "sim-regno.h".
5234 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5235 (d10v_ts3_register_sim_regno): Ditto.
5236 * gdbarch.sh: Include "sim-regno.h".
5237 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5238 * gdbarch.h, gdbarch.c: Regenerate.
5239 * arch-utils.h (default_register_sim_regno): Delete declaration.
5240 * arch-utils.c (default_register_sim_regno): Delete function.
5241
485721b1
JT
52422002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5243
5244 * ppcnbsd-nat.c: Rewrite.
5245 * ppcnbsd-tdep.c: New file.
5246 * ppcnbsd-tdep.h: New file.
5247 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5248 solib.o, and solib-svr4.o.
5249 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5250 nbsd-tdep.o, and corelow.o.
5251
697f244d
AC
52522002-05-28 Andrew Cagney <ac131313@redhat.com>
5253
5254 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5255 `tr' and `sed'. Mention that `broken' targets are not expected to
5256 build.
5257
f08caad1 52582002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5259
5260 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5261 Let PC point right after the prologue before looking up symbols.
5262
3139facc
MH
52632002-05-27 Martin M. Hunt <hunt@redhat.com>
5264
5265 * i386-tdep.c (i386_register_virtual_type): Return
5266 builtin_type_vec128i for SSE registers.
5267
5268 * gdbtypes.h (builtin_type_vec128i): Declare.
5269
5270 * gdbtypes.c (build_builtin_type_vec128i): New function.
5271 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5272 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5273 (build_gdbtypes): Initialize new builtin vector types.
5274 (_initialize_gdbtypes): Register new vector types with gdbarch.
5275
6e3ba3b8
JT
52762002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5277
5278 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5279 since it has been multi-arch'd.
5280 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5281 Move Alpha and VAX multi-arch news entries to same section
5282 as other multi-arch news.
5283
93d5585d
JT
52842002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5285
5286 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5287 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5288 static. Rename some register numbers to put them in ns32k-tdep
5289 private namespace.
5290 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5291 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5292 functions.
5293 (_initialize_ns32k_tdep): Use gdbarch_register.
5294 * ns32k-tdep.h: New file.
5295 * ns32knbsd-tdep.c: New file.
5296 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5297 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5298 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5299 REGISTER_BYTES, REGISTER_BYTE): Remove.
5300 * config/ns32k/tm-ns32k.h: New file.
5301 * config/ns32k/tm-umax.h: Remove.
5302
efb2c70e
JT
53032002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5304
5305 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5306 ns32k_store_struct_return, ns32k_extract_return_value,
5307 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5308 functions.
5309 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5310 ns32k_saved_pc_after_call.
5311 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5312 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5313 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5314 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5315 ns32k_extract_struct_value_address.
5316
7bcc927b
JT
53172002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5318
5319 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5320 ns32k_fix_call_dummy): New.
5321 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5322 ns32k_call_dummy_words.
5323 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5324 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5325 CALL_DUMMY_NARGS): Remove.
5326 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5327
78f9d765
JT
53282002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5329
5330 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5331 ns32k_frame_saved_pc, ns32k_frame_args_address,
5332 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5333 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5334 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5335 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5336 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5337 (BREAKPOINT): Remove..
5338 (FRAME_CHAIN): Define as ns32k_frame_chain.
5339 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5340 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5341 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5342 (FRAME_FIND_SAVED_REGS): Remove.
5343 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5344 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5345 (POP_FRAME): Define as ns32k_pop_frame.
5346
f2c762e0
JT
53472002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5348
5349 * ns32k-tdep.c (ns32k_register_byte_32082,
5350 ns32k_register_byte_32382, ns32k_register_raw_size,
5351 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5352 functions.
5353 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5354 ns32k_register_byte_32382.
5355 * config/ns32k/tm-umax.h: Update copyright years.
5356 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5357 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5358 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5359 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5360 (ns32k_get_enter_addr): Fix prototype.
5361
af137673
JT
53622002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5363
5364 * ns32k-tdep.c: Update copyright years.
5365 (ns32k_register_name_32082): New function.
5366 (ns32k_register_name_32382): Ditto.
5367 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5368 (REGISTER_NAME): Define as ns32k_register_name_32382.
5369 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5370 (REGISTER_NAME): Define as ns32k_register_name_32082.
5371
a8bc7b56
JB
53722002-05-24 Jim Blandy <jimb@redhat.com>
5373
5374 * dwarf2read.c (free_line_header): Use xfree, not free.
5375
83a45910
JT
53762002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5377
5378 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5379 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5380
0db71247
AC
53812002-05-23 Andrew Cagney <ac131313@redhat.com>
5382
5383 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5384
b9e5e4dd
AC
53852002-05-23 Andrew Cagney <ac131313@redhat.com>
5386
5387 From Ross Alexander at NEC Europe:
5388 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5389
de530e84
MS
53902002-05-23 Michael Snyder <msnyder@redhat.com>
5391
5392 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5393 for input, rather than parse_and_eval_address.
5394
b91b96f4
AC
53952002-05-23 Andrew Cagney <ac131313@redhat.com>
5396
5397 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5398 * Makefile.in (sim_d10v_h): Update definition.
5399
8b279e7a
AC
54002002-05-24 Andrew Cagney <cagney@redhat.com>
5401
5402 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5403 change `2002-05-22 Michael Snyder' below.
5404 (d10v_push_arguments): Ditto.
5405 (d10v_extract_return_value): Ditto.
5406
0a3d0425
JB
54072002-05-23 Jim Blandy <jimb@redhat.com>
5408
5409 * macrotab.c (check_for_redefinition): Don't complain if the new
5410 definition is the same as the previous one. Take more arguments
5411 to allow the comparison.
5412 (macro_define_object, macro_define_function): Pass more arguments
5413 to check_for_redefinition.
5414
78eac43e
MS
54152002-05-22 Michael Snyder <msnyder@redhat.com>
5416
5417 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5418 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5419 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5420 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5421 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5422 Add a temp variable to save a call (and a memory read).
5423 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5424 if possible (so that PC_IN_CALL_DUMMY will work).
5425
9bc1edb8
CV
54262002-05-22 Corinna Vinschen <vinschen@redhat.com>
5427
5428 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5429
005ef3d2
ML
54302002-05-22 Michal Ludvig <mludvig@suse.cz>
5431
5432 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5433 fde->cie_ptr.
5434 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5435 (dwarf2_build_frame_info): Add offset to fde->initial_location
5436 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5437 (execute_stack_op): Change type of 'result' from ULONGEST to
5438 CORE_ADDR.
005ef3d2 5439
fcf4f891
JT
54402002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5441
5442 * config/alpha/tm-nbsd.h: Include solib.h.
5443
cfef91e4
JT
54442002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5445
5446 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5447 assumptions about the host's byte order.
5448
9964235a
JT
54492002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5450
5451 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5452 to dependency list.
5453 * alphanbsd-tdep.c: Include solib-svr4.h.
5454 * shnbsd-tdep.c: Ditto.
5455
9eeef8ef
JT
54562002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5457
5458 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5459 nbsd-tdep.h to dependency list.
5460 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5461 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5462 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5463 nbsdaout.mh and nbsdelf.mh consistently.
5464 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5465 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5466 nbsdaout.mt and nbsdelf.mh consistently.
5467 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5468 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5469 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5470 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5471 a.out shared library stuff from here...
5472 * config/nm-nbsdaout.h: ...to here.
5473 * config/tm-nbsd.h: Remove.
5474 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5475 * config/arm/nbsd.mh: Remove.
5476 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5477 nbsd-tdep.o.
5478 * config/arm/nbsdaout.mh: New file.
5479 * config/arm/nbsdelf.mh: New file.
5480 * config/arm/nm-nbsdaout.h: New file.
5481 * config/i386/nbsd.mh: Remove.
5482 * config/i386/nbsd.mt: Remove.
5483 * config/i386/nbsdaout.mh: New file.
5484 * config/i386/nbsdaout.mt: New file.
5485 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5486 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5487 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5488 i386_register_u_addr): Remove.
5489 * config/i386/nm-nbsdaout.h: New file.
5490 * config/i386/nm-nbsdelf.h: Remove.
5491 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5492 (USE_STRUCT_CONVENTION): Remove.
5493 * config/i386/tm-nbsdaout.h: New file.
5494 * config/i386/tm-nbsdelf.h: Remove.
5495 * config/m68k/nbsd.mh: Remove.
5496 * config/m68k/nbsd.mt: Remove.
5497 * config/m68k/nbsdaout.mh: New file.
5498 * config/m68k/nbsdaout.mt: New file.
5499 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5500 * config/m68k/nm-nbsdaout.h: New file.
5501 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5502 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5503 * config/ns32k/nbsd.mh: Remove.
5504 * config/ns32k/nbsd.mt: Remove.
5505 * config/ns32k/nbsdaout.mh: New file.
5506 * config/ns32k/nbsdaout.mt: New file.
5507 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5508 * config/ns32k/nm-nbsdaout.h: New file.
5509 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5510 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5511 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5512 (SVR4_SHARED_LIBS): Remove.
5513 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5514 * config/sparc/nbsd.mh: Remove.
5515 * config/sparc/nbsd.mt: Remove.
5516 * config/sparc/nbsdaout.mh: New file.
5517 * config/sparc/nbsdaout.mt: New file.
5518 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5519 * config/sparc/nbsdelf.mt: New file.
5520 * config/sparc/nm-nbsdaout.h: New file.
5521 * config/sparc/nm-nbsdelf.h: Remove.
5522 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5523 * config/sparc/tm-nbsdaout.h: New file.
5524
257ce470
JT
55252002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5526
5527 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5528 mipsnbsd-tdep.c
5529 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5530
76a6d5fe
JT
55312002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5532
5533 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5534 shnbsd-nat.c.
5535 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5536
45888261
JT
55372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5538
5539 * NEWS: Note new MIPS NetBSD native configuration.
5540 * configure.host (mips*-*-netbsd*): New host.
5541 * configure.tgt (mips*-*-netbsd*): New target.
5542 * mipsnbsd-nat.c: New file.
5543 * mipsnbsd-tdep.c: New file.
5544 * mipsnbsd-tdep.h: New file.
5545 * config/mips/nbsd.mh: New file.
5546 * config/mips/nbsd.mt: New file.
5547 * config/mips/nm-nbsd.h: New file.
5548 * config/mips/tm-nbsd.h: New file.
5549
70f80edf
JT
55502002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5551
5552 * Makefile.in (SFILES): Add osabi.c.
5553 (COMMON_OBS): Add osabi.o.
5554 (osabi.o): New dependency list.
5555 * osabi.c: New file.
5556 * osabi.h: New file.
5557 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5558
5559 * Makefile.in (alpha_tdep_h): Define and use instead of
5560 alpha-tdep.h.
5561 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5562 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5563 Remove.
5564 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5565 * alpha-tdep.h: Include osabi.h.
5566 (alpha_abi): Remove.
5567 (gdbarch_tdep): Use generic OS ABI framework.
5568 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5569 gdbarch_register_osabi.
5570 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5571 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5572 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5573
5574 * Makefile.in (sh_tdep_h): Add osabi.h.
5575 * sh-tdep.h (sh_osabi): Remove.
5576 (gdbarch_tdep): Use generic OS ABI framework.
5577 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5578 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5579 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5580 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5581
5582 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5583 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5584 gdbarch_register_osabi.
5585 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5586 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5587 (get_elfosabi): Rename to...
5588 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5589 ABI framework support routines.
5590 (arm_gdbarch_init): Use generic OS ABI framework.
5591 (arm_dump_tdep): Likewise.
5592 (_initialize_arm_tdep): Likewise.
5593 * arm-tdep.h: Include osabi.h.
5594 (arm_abi): Remove.
5595 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5596 osabi member.
5597 (arm_gdbarch_register_os_abi): Remove prototype.
5598 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5599 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5600
5601 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5602 * mips-tdep.c: Include osabi.h.
5603 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5604 OS ABI framework.
5605
d194345b
KH
56062002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5607
5608 * h8300-tdep.c: Fix formatting.
5609
70c6b0d1
EZ
56102002-05-20 Elena Zannoni <ezannoni@redhat.com>
5611
5612 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5613 printing vector registers.
5614
165b8e33
AC
56152002-05-19 Andrew Cagney <ac131313@redhat.com>
5616
5617 From Fernando Nasser:
5618 * remote.c (remote_async_open_1): Re-throw the exception when the
5619 connection fails.
5620 (remote_cisco_open): Ditto.
5621 (remote_open_1): Ditto.
5622
36918e70
AC
56232002-05-19 Andrew Cagney <ac131313@redhat.com>
5624
5625 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5626 (remote_start_remote): Add uiout parameter. Pass through to
5627 remote_start_remote_dummy.
5628 (remote_open_1): Use catch_exception instead of catch_errors.
5629 (remote_async_open_1): Ditto.
5630 (remote_cisco_open): Ditto.
5631
ae44c0c4
AC
56322002-05-19 Andrew Cagney <ac131313@redhat.com>
5633
5634 * remote.c (remote_start_remote): Replace PTR with void pointer.
5635 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5636 static.
5637
8efe637d
AC
56382002-05-18 Andrew Cagney <ac131313@redhat.com>
5639
5640 * gdb_indent.sh: Allow the script to be run in the sim directory.
5641
2f1b5984
MK
56422002-05-18 Mark Kettenis <kettenis@gnu.org>
5643
f0f625e2
MK
5644 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5645 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5646
2f1b5984
MK
5647 * corelow.c (core_open): Only call set_gdbarch_from_file if
5648 exec_bfd is NULL.
5649
fc974602
AV
56502002-05-17 Andrey Volkov <avolkov@transas.com>
5651
5652 * h8300-tdep.c: Add support of EXR register
5653 * config/h8300/tm-h8300.h: Ditto.
5654
906709f4
AV
56552002-05-17 Andrey Volkov <avolkov@transas.com>
5656
5657 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5658
6e591d68
AV
56592002-05-17 Andrey Volkov <avolkov@transas.com>
5660
5661 * h8300-tdep.c: Change literal regnums to REGNO.
5662
84f0252a
JB
56632002-05-17 Jim Blandy <jimb@redhat.com>
5664
e0e9281e
JB
5665 * NEWS: Note addition of macro support.
5666
84f0252a
JB
5667 Expand preprocessor macros in C expressions.
5668 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5669 (scan_macro_expansion, scanning_macro_expansion,
5670 finished_macro_expansion): New function declarations.
5671 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5672 variable declarations.
5673 * parser-defs.h (expression_context_pc): New declaration.
5674 * parse.c (expression_context_pc): New variable.
5675 (parse_exp_1): Set expression_context_pc, as well as
5676 expression_context_block.
5677 * c-exp.y (yylex): If we're not already reading the result of a
5678 macro expansion, try to macro-expand the next token. When we're
5679 done scanning a macro expansion, switch back to the mainline text.
5680 Commas and `if's in a macro's expansion don't terminate the input.
5681 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5682 (macro_original_text, macro_expanded_text,
5683 expression_macro_lookup_func, expression_macro_lookup_baton): New
5684 variables.
5685 (scan_macro_expansion, scanning_macro_expansion,
5686 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5687 c_preprocess_and_parse): New functions.
5688 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5689 c_preprocess_and_parse, instead of c_parse.
5690 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5691 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5692
1c509ca8
JR
5693Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5694
5695 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5696 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5697 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5698
2250ee0c
CV
56992002-05-17 Corinna Vinschen <vinschen@redhat.com>
5700
5701 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5702
ab3b8126
JT
57032002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5704
5705 * Makefile.in (sh_tdep_h): Define and use.
5706 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5707 register enum): Move to...
5708 * * sh-tdep.h: ...here.
5709 * sh-tdep.c: Include sh-tdep.h.
5710 * sh3-rom.c: Likewise.
5711 * shnbsd-tdep.c: Likewise.
5712
ed9d4749
MS
57132002-05-16 Michael Snyder <msnyder@redhat.com>
5714
5715 * arm-tdep.c: Spelling fix in comment.
5716
2e276125
JB
57172002-05-16 Jim Blandy <jimb@redhat.com>
5718
6821892e
JB
5719 Add commands for manually expanding macros and showing their
5720 definitions.
5721 * macrocmd.c, macroscope.c, macroscope.h: New files.
5722 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5723 (macroscope_h): New variable.
5724 (HFILES_NO_SRCDIR): Add macroscope.h.
5725 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5726 (macroscope.o, macrocmd.o): New rules.
5727
2e276125
JB
5728 Teach the Dwarf 2 reader to read macro information.
5729 * dwarf2read.c: #include "macrotab.h".
5730 (dwarf_macinfo_buffer): New variable.
5731 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5732 dwarf_macinfo_size.
5733 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5734 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5735 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5736 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5737 dwarf2_macro_spaces_in_definition): New complaints.
5738 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5739 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5740 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5741 the partial symbol table.
5742 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5743 from what's recorded in the partial symbol table.
5744 (read_file_scope): If the compilation unit has a
5745 `DW_AT_macro_info' attribute, read its macro information.
5746 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5747
2f53fe6c
DJ
57482002-05-16 Daniel Jacobowitz <drow@mvista.com>
5749
5750 Fix PR gdb/546
5751 * ser-tcp.c: Don't include <netinet/udp.h>.
5752
2be99286
SC
57532002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5754
5755 * MAINTAINERS: Update my email address.
5756
c9af212b 57572002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5758
5759 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5760 include file of the same name.
5761
bf5f1a52
CV
57622002-05-16 Corinna Vinschen <vinschen@redhat.com>
5763
5764 * configure.tgt: Mark v850 as multi-arched.
5765 * config/v850/tm-v850.h: Remove file.
5766 * config/v850/v850.mt: Eliminate TM_FILE.
5767
435e042a
CV
57682002-05-16 Corinna Vinschen <vinschen@redhat.com>
5769
5770 * v850-tdep.c: Full multi-arch.
5771 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5772 Define GDB_MULTI_ARCH to 2.
5773
9819c6c8
PM
57742002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5775
5776 * p-exp.y (current_type): New static variable.
5777 Carries the type of the expression at the position that is parsed.
5778 (push_current_type, pop_current_type): Two new functions. Used
5779 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5780 (search_field): New static variable. Set to one after parsing a point
5781 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5782 (FIELDNAME): New token. After a point only a token belonging to
5783 current_type type definition is allowed.
5784 (all over token rules): reset and change current_type according
5785 to rules.
5786 (exp '[' rule): insert implicit array index field if
5787 exp is a pascal string type.
5788
3a06899a
CV
57892002-05-16 Corinna Vinschen <vinschen@redhat.com>
5790
5791 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5792 frame info. Use frame_info's saved_regs instead of matching member
5793 in extra_frame_info throughout.
5794 (v850_frame_init_saved_regs): New function.
5795 (v850_init_extra_frame_info): Move most functionality into
5796 v850_frame_init_saved_regs().
5797 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5798 (v850_frame_find_saved_regs): Remove declaration.
5799 (FRAME_FIND_SAVED_REGS): Remove definition.
5800 (v850_frame_init_saved_regs): Add declaration.
5801 (FRAME_INIT_SAVED_REGS): Add definition.
5802
6ed14b0e
CV
58032002-05-16 Corinna Vinschen <vinschen@redhat.com>
5804
5805 * v850-tdep.c: Begin multi-arch'ing v850.
5806 (v850_target_architecture_hook): Remove function.
5807 (v850_gdbarch_init): New function. Add code previously in
5808 v850_target_architecture_hook().
5809 (_initialize_v850_tdep): Don't set target_architecture_hook.
5810 Call register_gdbarch_init() instead.
5811
42725910
DJ
58122002-05-16 Daniel Jacobowitz <drow@mvista.com>
5813
5814 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5815 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5816 (fixup_class_method_type): Likewise.
5817
99d9066e
JB
58182002-05-15 Jim Blandy <jimb@redhat.com>
5819
5820 Add macro structures to GDB's symbol tables. Nobody puts anything
5821 in them yet.
5822 * symtab.h (struct symtab): New member: `macro_table'.
5823 * buildsym.h (pending_macros): New global variable.
5824 * buildsym.c: #include "macrotab.h".
5825 (buildsym_init): Initialize `pending_macros'.
5826 (end_symtab): If we found macro information while reading a CU's
5827 debugging info, do build a symtab structure for it. Make the
5828 symtab point to the macro information, and clear the
5829 `pending_macros' pointer which held it while we were reading the
5830 debug info.
5831 (really_free_pendings): Free any pending macro table.
5832 * objfiles.h (struct objfile): New member: `macro_cache'.
5833 * objfiles.c (allocate_objfile): Set allocate and free functions
5834 for the macro cache's objstack.
5835 (free_objfile): Empty the macro cache's obstack.
5836 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5837 set new allocate and free functions for it.
5838 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5839 free functions for the macro cache's objstack. (Why is this
5840 function building its own objfile?)
5841 * symmisc.c (print_objfile_statistics): Print statistics on the
5842 macro bcache.
5843 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5844
c899585b
RE
58452002-05-15 Richard Earnshaw <rearnsha@arm.com>
5846
5847 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5848 (REGISTER_U_ADDR): Delete definition.
5849 (arm_register_u_addr): Delete declaration.
5850
a6cdd8c5
RE
58512002-05-15 Richard Earnshaw <rearnsha@arm.com>
5852
5853 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5854 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5855
c97dcfc7
AC
58562002-05-14 Andrew Cagney <ac131313@redhat.com>
5857
5858 * regcache.c (register_valid): Revise comments refering to "Not
5859 available" and "unavailable".
5860 * frame.c (frame_register_read): Ditto.
5861 * findvar.c (value_of_register): Ditto.
5862
93021b7d
AC
58632002-05-15 Andrew Cagney <cagney@redhat.com>
5864
5865 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5866 (remote-sim.o): Update dependencies.
5867 (d10v-tdep.o): Specify dependencies.
5868 (sim_d10v_h): Define.
5869
a86bc61c
JB
58702002-05-14 Jim Blandy <jimb@redhat.com>
5871
5872 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5873 * macrotab.c (macro_lookup_inclusion, find_definition,
5874 new_macro_table): Same.
5875
5876 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5877 not `! strcmp ()'. This is a dubious improvement.
5878 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5879
5880 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5881 although it's not necessary, to avoid a warning.
5882
2fdde8f8
DJ
58832002-05-14 Daniel Jacobowitz <drow@mvista.com>
5884
5885 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5886 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5887 TYPE_INSTANCE_FLAGS.
5888 (struct main_type): New.
5889 (struct type): Move most members to struct main_type. Change
5890 cv_type and as_type to new type_chain member. Add instance_flags.
5891 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5892 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5893 (finish_cv_type): Remove prototype.
5894 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5895 Set TYPE_CHAIN.
5896 (alloc_type_instance): New function.
5897 (smash_type): New function.
5898 (make_pointer_type, make_reference_type, make_function_type)
5899 (smash_to_member_type, smash_to_method_type): Call smash_type.
5900 (make_qualified_type): New function.
5901 (make_type_with_address_space): Call make_qualified_type.
5902 (make_cv_type): Likewise.
5903 (finish_cv_type): Remove unnecessary function.
5904 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5905 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5906 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5907 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5908 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5909 * hpread.c (hpread_read_struct_type): Likewise.
5910 * stabsread.c (read_struct_type): Likewise.
5911
843fedf4
EZ
59122002-05-14 Elena Zannoni <ezannoni@redhat.com>
5913
5914 * configure.tgt: Add a catch all sh* target, for cases like
5915 sh[2,3,4]-elf and sh-hms.
5916
05a6c72c
KS
59172002-05-14 Keith Seitz <keiths@redhat.com>
5918
5919 * event-loop.c (create_file_handler): Don't do anything but
5920 update data when we are given a fd which we are already
5921 monitoring.
5922
5d085aaf
ML
59232002-05-14 Michal Ludvig <mludvig@suse.cz>
5924
5925 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5926 (update_context): Use __func__ in warnings.
5927
9db8d71f
DJ
59282002-05-14 Daniel Jacobowitz <drow@mvista.com>
5929
5930 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5931 and tcp_close to net_open and net_close.
5932 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5933 using UDP if requested. Don't try to disable Nagle on UDP
5934 sockets.
5935 * remote.c (remote_serial_open): New function. Warn about UDP.
5936 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5937
5dbc6baa
EZ
59382002-05-13 Elena Zannoni <ezannoni@redhat.com>
5939
5940 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5941
cc3023f7
EZ
59422002-05-13 Elena Zannoni <ezannoni@redhat.com>
5943
5944 * configure.tgt: Remove sh-hms target.
5945 * MAINTAINERS: Don't list sh-hms as a separate target.
5946
ec2bcbe7
JB
59472002-05-13 Jim Blandy <jimb@redhat.com>
5948
5949 Add first preprocessor macro-expansion files.
5950 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5951 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5952 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5953 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5954 (COMMON_OBS): Add macrotab.o, macroexp.o.
5955 (macroexp.o, macrotab.o): New rules.
5956
6d531722
AC
59572002-05-13 Andrew Cagney <ac131313@redhat.com>
5958
5959 * config/m88k/tm-m88k.h: Update copyright.
5960 (m88k_target_write_pc): Declare
5961 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5962 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5963 (SHIFT_INST_REGS): Update definition.
5964 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5965 using old definition of TARGET_WRITE_PC.
5966 * regcache.c (generic_target_write_pc): Delete code handling
5967 NNPC_REGNUM.
5968 * gdbarch.sh (NNPC_REGNUM): Delete.
5969 * gdbarch.h, gdbarch.c: Regenerate.
5970
3e3f2739
RE
59712002-05-13 Richard Earnshaw <rearnsha@arm.com>
5972
5973 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5974 builtin reg number.
5975
0004e5a2
DJ
59762002-05-13 Daniel Jacobowitz <drow@mvista.com>
5977
5978 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5979 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5980 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5981 access macros.
5982 * c-typeprint.c (cp_type_print_method_args): Likewise.
5983 (c_type_print_args): Likewise.
5984 * d10v-tdep.c (d10v_push_arguments): Likewise.
5985 (d10v_extract_return_value): Likewise.
5986 * expprint.c (print_subexp): Likewise.
5987 * gdbtypes.c (lookup_primitive_typename): Likewise.
5988 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5989 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5990 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5991 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5992 (TYPE_VECTOR): Likewise.
5993 * hpread.c (hpread_read_struct_type)
5994 (fix_static_member_physnames, fixup_class_method_type)
5995 (hpread_type_lookup): Likewise.
5996 * mdebugread.c (parse_symbol, parse_type): Likewise.
5997 * p-lang.c (is_pascal_string_type): Likewise.
5998 * valops.c (hand_function_call): Likewise.
5999 * x86-64-tdep.c (classify_argument): Likewise.
6000
6001 * hpread.c (hpread_read_function_type)
6002 (hpread_read_doc_function_type): Call replace_type.
6003 * dstread.c (create_new_type): Delete.
6004 (decode_dst_structure, process_dst_function): Call alloc_type.
6005 Use type access macros.
6006
dff95cc7
MK
60072002-05-12 Mark Kettenis <kettenis@gnu.org>
6008
6009 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6010 the're not supported by the current architecture.
6011 (i387_fill_fxsave): Likewise.
6012
bbcd32ad
FF
60132002-05-12 Fred Fish <fnf@redhat.com>
6014
6015 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6016 sect_index_xxx members to index the first slot in section_offsets
6017 if all of the section_offsets are zero.
6018
89cf4787
MK
60192002-05-12 Mark Kettenis <kettenis@gnu.org>
6020
6021 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6022 checked in with last change.
6023
1f77ffc5
MK
60242002-05-12 Mark Kettenis <kettenis@gnu.org>
6025
6026 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6027 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6028 config.sub.
6029
89b8b4a9
DJ
60302002-05-12 Daniel Jacobowitz <drow@mvista.com>
6031
6032 * Makefile.in: Update dependencies.
6033
14a5e767
AC
60342002-05-11 Andrew Cagney <ac131313@redhat.com>
6035
6036 * language.c (local_hex_string_custom): Simplify. Do not depend
6037 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6038
6039 * memattr.c (mem_info_command): Replace calls to
6040 longest_local_hex_string and longest_local_hex_string_custom.
6041 * buildsym.c (make_blockvector): Ditto.
6042 * solib.c (info_sharedlibrary_command): Ditto.
6043 * tracepoint.c (tracepoints_info): Ditto.
6044 * symtab.c (print_msymbol_info): Ditto.
6045
6046 * language.c (local_hex_string): Delete.
6047 (local_hex_string_custom): Delete.
6048 (longest_local_hex_string): Rename to local_hex_string.
6049 (longest_local_hex_string_custom): Rename to
6050 local_hex_string_custom.
6051 * language.h (local_hex_string): Change parameter type to LONGEST.
6052 (local_hex_string_custom): Ditto.
6053 (longest_local_hex_string): Delete declaration.
6054 (longest_local_hex_string_custom): Ditto.
6055
6056 * solib.c: Update copyright.
6057 * memattr.c: Update copyright.
6058
13d01224
AC
60592002-05-11 Andrew Cagney <ac131313@redhat.com>
6060
6061 * arch-utils.h (legacy_register_to_value): Declare.
6062 (legacy_value_to_register): Declare.
6063 (legacy_convert_register_p): Declare.
6064 * arch-utils.c (legacy_register_to_value): New function.
6065 (legacy_value_to_register): New function.
6066 (legacy_convert_register_p): New function.
6067
6068 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6069 (VALUE_TO_REGISTER): Define.
6070 (CONVERT_REGISTER_P): Define.
6071 * gdbarch.h, gdbarch.c: Regenerate.
6072
6073 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6074 VALUE_TO_REGISTER.
6075 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6076 CONVERT_REGISTER_P.
6077
4a1970e4
DJ
60782005-05-11 Daniel Jacobowitz <drow@mvista.com>
6079 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6080
6081 * Makefile.in: Update dependencies for valops.c.
6082 * valops.c: Include "gdb_assert.h".
6083 (typecmp): Skip THIS parameter to methods.
6084 (find_method_list): Remove static_memfuncp argument,
6085 update callers. Check for stub methods.
6086 (find_value_oload_method_list): Don't set *static_memfuncp.
6087 (find_overload_match): Don't check for stub methods. Assert
6088 that methods are not stubbed. Handle static methods.
6089 (value_find_oload_method_list): Remove static_memfuncp argument.
6090 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6091 to the argument list for static stub methods.
6092 * value.h (value_find_oload_method_list): Update prototype.
6093
b2e75d78
AC
60942002-05-11 Andrew Cagney <ac131313@redhat.com>
6095
6096 * arch-utils.h (generic_register_size): Declare.
6097 (generic_register_raw_size, generic_register_virtual_size): Delete
6098 declarations.
6099 * arch-utils.c (generic_register_raw_size): Delete.
6100 (generic_register_size): New function.
6101 (generic_register_virtual_size): Delete.
6102
6103 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6104 default generic_register_size.
6105 * gdbarch.h, gdbarch.c: Re-generate.
6106
6107 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6108 register_virtual_size.
6109 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6110 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6111
451fbdda
AC
61122002-05-11 Andrew Cagney <ac131313@redhat.com>
6113
6114 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6115 * gdbarch.h, gdbarch.c: Regenerate.
6116 * gnu-v3-abi.c: Update copyright.
6117 (vtable_address_point_offset): Update.
6118 (gnuv3_rtti_type): Update.
6119 (gnuv3_baseclass_offset): Update.
6120 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6121 (init_fetch_link_map_offsets): Update.
6122 * remote.c (get_remote_state): Update.
6123
6d2f5cea
DJ
61242002-05-11 Daniel Jacobowitz <drow@mvista.com>
6125
6126 * TODO: Remove value_headof/value_from_vtable_info comment.
6127 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6128 * values.c (value_headof, value_from_vtable_info): Delete.
6129 * value.h (value_from_vtable_info): Delete prototype.
6130
d2324da4
AC
61312002-05-11 Andrew Cagney <ac131313@redhat.com>
6132
6133 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6134 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6135 $(gdb_regex_h).
6136 (gdb_assert_h): Define.
6137 (gdb_wait_h): Define.
6138 (gdb_regex_h): Define.
6139
5c717440
DJ
61402002-05-11 Daniel Jacobowitz <drow@mvista.com>
6141
6142 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6143 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6144
6c7861b3
JT
61452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6146
6147 * nbsd-tdep.c: Fix comment.
6148
ea5bc2a6
JT
61492002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6150
6151 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6152 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6153 (nbsd-tdep.o): New dependency list.
6154 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6155 nbsd-tdep.h.
6156 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6157 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6158 * nbsd-tdep.c: New file.
6159 * nbsd-tdep.h: New file.
6160 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6161 nbsd-tdep.h.
6162 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6163 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6164 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6165 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6166
b28da865
JT
61672002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6170 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6171 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6172 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6173 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6174 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6175
4b8ff1fa
JT
61762002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6177
6178 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6179 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6180 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6181 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6182 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6183 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6184 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6185
dfe6eb1f
JT
61862002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6187
6188 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6189 fetch_elfcore_registers to...
6190 * i386nbsd-tdep.c: ...here.
6191 (i386nbsd_use_struct_convention): Rename to...
6192 (i386nbsd_aout_use_struct_convention): ...this.
6193 (i386nbsd_supply_reg): New function.
6194 (i386nbsd_fill_reg): New function.
6195 (fetch_core_registers): Use i386nbsd_supply_reg.
6196 (fetch_elfcore_registers): Likewise.
6197 (_initialize_i386nbsd_tdep): New function.
6198 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6199 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6200 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6201 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6202 (i386nbsd_aout_use_struct_convention): ...this.
6203
20cb8cda
JT
62042002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6205
6206 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6207 (store_inferior_registers): Use shnbsd_fill_reg.
6208 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6209 sh_nbsd_supply_register): Collapse into...
6210 (shnbsd_supply_reg): ...this.
6211 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6212 (shnbsd_fill_reg): ...this.
6213 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6214 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6215 (fetch_core_registers): Use shnbsd_supply_reg.
6216 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6217 (sh_nbsd_core_fns): Rename to...
6218 (shnbsd_core_fns): ...this.
6219 (sh_nbsd_elfcore_fns): Rename to...
6220 (shnbsd_elfcore_fns): ...this.
6221 (sh_nbsd_init_abi): Rename to...
6222 (shnbsd_init_abi): ...this.
6223 (_initialize_sh_nbsd_tdep): Rename to...
6224 (_initialize_shnbsd_tdep): ...this.
6225 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6226 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6227 sh_nbsd_fill_register): Remove prototypes.
6228 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6229
e750d25e
JT
62302002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6231
6232 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6233 (i387-nat.o): Delete dependency list.
6234 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6235 (x86-64-linux-nat.o): Likewise.
6236 * i387-nat.c: Delete file, moving contents to...
6237 * i387-tdep.c: ...here.
6238 * i387-nat.h: Rename...
6239 * i387-tdep.h: ...to this.
6240 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6241 * i386-linux-nat.c: Likewise.
6242 * i386bsd-nat.c: Likewise.
6243 * i386gnu-nat.c: Likewise.
6244 * i386nbsd-nat.c: Likewise.
6245 * i386v4-nat.c: Likewise.
6246 * x86-64-linux-nat.c: Likewise.
6247 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6248 * config/i386/go32.mh (NATDEPFILES): Likewise.
6249 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6250 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6251 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6252 * config/i386/linux.mh (NATDEPFILES): Likewise.
6253 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6254 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6255 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6256 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6257
1aee598a
JT
62582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6259
6260 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6261 (alphanbsd-nat.o): Remove dependency list.
6262 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6263 * alphanbsd-nat.c: Delete. Contents moved to...
6264 * alphanbsd-tdep.c: ...here.
6265 (_initialize_alphanbsd_tdep): Register core functions.
6266 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6267
12bcb0fe
JT
62682002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6269
6270 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6271 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6272 (alphanbsd-nat.o): Likewise.
6273 (alphabsd-tdep.o): New dependency list.
6274 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6275 (fill_gregset): Use alphabsd_fill_reg.
6276 (supply_fpregset): Use alphabsd_supply_fpreg.
6277 (fill_fpregset): Use alphabsd_fill_fpreg.
6278 (fetch_inferior_registers): Use struct reg and struct fpreg
6279 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6280 and alphabsd_supply_fpreg.
6281 (store_inferior_registers): Use struct reg and struct fpreg
6282 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6283 and alphabsd_fill_fpreg.
6284 * alphabsd-tdep.c: New file.
6285 * alphabsd-tdep.h: New file.
6286 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6287 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6288 alphabsd_supply_fpreg.
6289 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6290 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6291
361d1df0
EC
62922002-05-11 Eric Christopher <echristo@redhat.com>
6293
6294 * mips-tdep.c (mips_double_register_type): Fix thinko.
6295 (mips_single_register_type): Ditto.
6296 * MAINTAINERS: Add self.
6297
92dd7cee
MK
62982002-05-11 Mark Kettenis <kettenis@gnu.org>
6299
6300 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6301 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6302 right thing on architectures with different endianness and/or
6303 integer sizes.
6304
e27da16d
JT
63052002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6306
6307 From Christian Limpach <chris@Pin.LU>
6308 * configure.in: Change sed expression which comments out
6309 NATDEPFILES to also comment out continuation lines.
6310 * configure: Regenerate.
6311
ddde02bd
EZ
63122002-05-10 Elena Zannoni <ezannoni@redhat.com>
6313
6314 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6315 big patch.
6316
1c922164
EZ
63172002-05-10 Elena Zannoni <ezannoni@redhat.com>
6318
6319 * sh-tdep.c: Include correct file.
6320
283150cd
EZ
63212002-05-10 Elena Zannoni <ezannoni@redhat.com>
6322
6323 New support for sh64-elf (sh5) target.
6324
6325 * configure.tgt: For sh64-elf target, default to sh-elf.
6326
6327 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6328 (struct gdbarch_tdep): Add new fields for new registers and ABI
6329 info.
361d1df0 6330
283150cd
EZ
6331 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6332 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6333 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6334 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6335 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6336 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6337 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6338 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6339 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6340 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6341 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6342 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6343 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6344 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6345 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6346 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6347 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6348 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6349 sign_extend, sh64_nofp_frame_init_saved_regs,
6350 sh64_init_extra_frame_info, sh64_get_saved_register,
6351 sh64_extract_struct_value_address, sh64_pop_frame,
6352 sh64_push_arguments, sh64_extract_return_value,
6353 sh64_store_return_value, sh64_show_media_regs,
6354 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6355 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6356 sh_sh64_register_virtual_type,
6357 sh_sh64_register_convert_to_virtual,
6358 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6359 sh64_register_read, sh64_pseudo_register_write,
6360 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6361 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6362 sh64_do_pseudo_register, sh_compact_do_registers_info,
6363 sh64_do_registers_info, sh_gdbarch_init): New functions.
6364
3117ed25
EZ
63652002-05-10 Elena Zannoni <ezannoni@redhat.com>
6366
6367 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6368
2654e6d4
DJ
63692002-05-10 Daniel Jacobowitz <drow@mvista.com>
6370
6371 * linespec.c (decode_line_1): Check for a double quote after
6372 a filename correctly.
6373
9ab3e532
JB
63742002-05-10 Jim Blandy <jimb@redhat.com>
6375
6376 Properly track the size of the current objfile's .debug_line section.
6377 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6378 (DWARF_LINE_SIZE): New macro.
6379 (dwarf2_build_psymtabs_hard): Record the line section's size in
6380 the partial symbol table.
6381 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6382 symbol table.
6383
126fa72d
PS
63842002-05-10 Petr Sorfa <petrs@caldera.com>
6385
6386 * ia64-tdep.c: Handle breakpoints on L instruction type
6387 in MLX instruction bundle by moving the breakpoint to
6388 the third slot (X instruction type) as L holds only data.
6389
1f077a3e
KB
63902002-05-10 Kevin Buettner <kevinb@redhat.com>
6391
6392 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6393 (process_one_symbol): Complain about discarding local symbols
6394 due to a misplaced N_LBRAC entry.
6395
8120c9d5 63962002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6397
6398 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6399 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6400 decrease the depth we are at, in the case of templates.
361d1df0 6401
67b2c998
DJ
64022002-05-09 Daniel Jacobowitz <drow@mvista.com>
6403
6404 * mips-tdep.c (mips_float_register_type): New function.
6405 (mips_double_register_type): New function.
6406 (mips_print_register): Use them.
6407 (do_fp_register_row): Likewise.
6408
fd326606
DJ
64092002-05-09 Daniel Jacobowitz <drow@mvista.com>
6410
6609d9af 6411 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6412 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6413 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6414
bef35864
MS
64152002-05-09 Michael Snyder <msnyder@redhat.com>
6416
6417 * remote-rdp.c (remote_rdp_can_run): Remove.
6418
c55a3f73
TT
64192002-05-09 Tom Tromey <tromey@redhat.com>
6420
6421 * jv-valprint.c (java_val_print): Handle `char' as a special case
6422 of TYPE_CODE_INT.
6423
b8d5e71d
MS
64242002-05-09 Michael Snyder <msnyder@redhat.com>
6425
6426 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6427 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6428 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6429 str r(0123),[sp,#nn].
361d1df0 6430 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6431 order-independent by placing it in a loop.
6432
e2cd42dd
MS
64332002-05-06 Michael Snyder <msnyder@redhat.com>
6434
6435 * stabsread.c (read_type): Add recognition for new attribute:
6436 "@V;" means that an array type is actually a vector.
6437 This is analogous to the vector flag that's been added to dwarf2.
6438
3ce1502b
MK
64392002-05-09 Mark Kettenis <kettenis@gnu.org>
6440
6441 * i386-tdep.h (i386_abi): New enum.
6442 (struct gdbarch_tdep): Replace os_ident member with abi.
6443 (i386_gdbarch_register_os_abi): New prototype.
6444 * i386-tdep.c (i386_abi_names): New array.
6445 (process_note_abi_tag_sections): Removed.
6446 (process_note_sections): New function.
6447 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6448 (struct i386_abi_handler): New struct.
6449 (i386_abi_handler_list): New variable.
6450 (i386_gdbarch_register_os_abi): New function.
6451 (i386_gdbarch_init): Adapt for the changes given above.
6452
084c156a
DJ
64532002-05-08 Daniel Jacobowitz <drow@mvista.com>
6454
6455 * gregset.h: Say "GNU/Linux".
6456
6599f021
EZ
64572002-05-08 Elena Zannoni <ezannoni@redhat.com>
6458
6459 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6460 (build_gdbtypes): Build builtin_type_v2_float.
6461 (_initialize_gdbtypes): Register new builtin type.
6462
40af4b0c
AC
64632002-05-08 Andrew Cagney <ac131313@redhat.com>
6464
6465 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6466 (clear_gdbarch_swap): New function.
6467 (initialize_non_multiarch): Call.
6468 (gdbarch_update_p): Before calling init(), swap out and clear the
6469 existing architecture.
6470 * gdbarch.c: Regenerate.
6471
4fe84f46
JT
64722002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6473
6474 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6475 alphanbsd-tdep.c.
6476
4015edd1
JT
64772002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6478
6479 * sh-nbsd-nat.c: Rename to...
6480 * shnbsd-nat.c: ...this.
6481 * sh-nbsd-tdep.c: Rename to...
6482 * shnbsd-tdep.c: ...this.
6483 * sh-nbsd-tdep.h: Rename to...
6484 * shnbsd-tdep.h: ...this.
6485 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6486 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6487
0e2bd219
RE
64882002-05-08 Richard Earnshaw <rearnsha@arm.com>
6489
6490 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6491 concatenation for command help messages.
6492
13a38d45
JT
64932002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6494
6495 * NEWS: Note new sh*-*-netbsdelf* configuration.
6496 * configure.host: Set gdb_host_cpu to sh for all sh*.
6497 (sh*-*-netbsdelf*): New host.
6498 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6499 (sh*-*-netbsdelf*): New target.
6500 * sh-nbsd-nat.c: New file.
6501 * sh-nbsd-tdep.c: New file.
6502 * sh-nbsd-tdep.h: New file.
6503 * config/sh/nbsd.mh: New file.
6504 * config/sh/nbsd.mt: New file.
6505 * config/sh/nm-nbsd.h: New file.
6506 * config/sh/tm-nbsd.h: New file.
6507
d658f924
JT
65082002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6509
6510 * sh-tdep.c (sh_osabi_names): Declare.
6511 (process_note_abi_tag_sections): New function.
6512 (get_elfosabi): Ditto.
6513 (sh_gdbarch_register_os_abi): Ditto.
6514 (sh_dump_tdep): Ditto.
6515 _initialize_sh_tdep): Use gdbarch_register to register
6516 sh_gdbarch_init and sh_dump_tdep.
6517 * config/sh/tm-sh.h (sh_osabi): Declare.
6518 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6519
848cfffb
AC
65202002-05-07 Andrew Cagney <ac131313@redhat.com>
6521
6522 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6523 (thumb_scan_prologue): Ditto.
6524 (arm_find_callers_reg): Ditto.
6525 (arm_frame_chain): Ditto.
6526 (arm_init_extra_frame_info): Ditto.
6527 (arm_frame_saved_pc): Ditto.
6528 (arm_pop_frame): Ditto.
6529 (arm_push_return_address): New function.
6530 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6531 call_dummy_location, call_dummy_breakpoint_offset_p,
6532 call_dummy_breakpoint_offset, call_dummy_p,
6533 call_dummy_stack_adjust_p, call_dummy_words,
6534 sizeof_call_dummy_words, call_dummy_start_offset,
6535 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6536 call_dummy_address, push_return_address and push_dummy_frame for
6537 generic dummy frames.
6538
e7d717c0
JT
65392002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6540
6541 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6542 size computation for alloca.
6543 (sh_fp_frame_init_saved_regs): Likewise.
6544
7bbcf283
RE
65452002-05-07 Richard Earnshaw <rearnsha@arm.com>
6546
6547 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6548 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6549 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6550 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6551 * remote-rdp.c (remote_rdp_fetch_register): Use
6552 ARM_MAX_REGISTER_RAW_SIZE.
6553 (remote_rdp_store_register): Likewise.
6554
4657573b
ML
65552002-05-07 Michal Ludvig <mludvig@suse.cz>
6556
361d1df0 6557 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6558 added default labels to switch {} statements.
6559 * x86-64-tdep.c: Ditto.
6560 * x86-64-linux-nat.c: Ditto.
6561
010f3b2f
JT
65622002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6563
6564 * solib.h: Protect against multiple inclusion.
6565
debd256d
JB
65662002-05-06 Jim Blandy <jimb@redhat.com>
6567
9ab3e532
JB
6568 Add first preprocessor macro-expansion files.
6569 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6570 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6571 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6572 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6573 (COMMON_OBS): Add macrotab.o, macroexp.o.
6574 (macroexp.o, macrotab.o): New rules.
6575
debd256d
JB
6576 Separate the job of reading the line number info statement program
6577 header (...expialidocious) out into its own function.
6578 * dwarf2read.c (struct line_head, struct filenames, struct
6579 directories): Replace with...
6580 (struct line_header): New structure, containing the full
6581 contents of the statement program header, including the
6582 include directory and file name tables.
6583 (read_file_scope): If we have line number info, instead of just
6584 calling dwarf_decode_lines to do all the work, call
6585 dwarf_decode_line_header first to get a `struct line_header'
6586 containing the data in the statement program header, and then
6587 pass that to dwarf_decode_lines, which will pick up where that
6588 left off. Be sure to clean up the `struct line_header' object.
6589 (dwarf_decode_line_header, free_line_header, add_include_dir,
6590 add_file_name): New functions.
6591 (dwarf_decode_lines): Move all the code to read the statement
6592 program header into dwarf_decode_line_header. Take the line
6593 header it built as the first argument, instead of the offset to
6594 the compilation unit's line number info. Use the new `struct
6595 line_header' type instead of the old structures. No need to do
6596 cleanups here now, since we don't allocate anything.
6597 (dwarf2_statement_list_fits_in_line_number_section,
6598 dwarf2_line_header_too_long): New complaints.
6599
ac3aafc7
EZ
66002002-05-06 Elena Zannoni <ezannoni@redhat.com>
6601
6602 * gdbtypes.c (init_vector_type): New function.
6603 (build_builtin_type_vec128): Simplify the representation of SIMD
6604 registers.
6605 (build_gdbtypes): Initialize new builtin vector types.
6606 (_initialize_gdbtypes): Register new vector types with gdbarch.
6607 (builtin_type_v4_float, builtin_type_v4_int32,
6608 builtin_type_v8_int16, builtin_type_v16_int8,
6609 builtin_type_v2_int32, builtin_type_v4_int16,
6610 builtin_type_v8_int8): New (renamed) SIMD types.
6611
13e49980
MK
66122002-05-06 Mark Kettenis <kettenis@gnu.org>
6613
6614 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6615 (i387_fill_fxsave): Likewise.
6616
997b20b8
AO
66172002-05-05 Alexandre Oliva <aoliva@redhat.com>
6618
6619 * alpha-tdep.c (alpha_extract_return_value): Don't use
6620 non-constant array size in prototype.
6621
535c96ce
AC
66222002-05-04 Andrew Cagney <ac131313@redhat.com>
6623
6624 From Brian Taylor <briant at model dot com>:
6625 * ui-out.c (ui_out_field_core_addr): Use the function
6626 longest_local_hex_string_custom'to format addresses > 32 bits
6627 wide.
6628
6629 * ui-out.c (ui_out_field_core_addr): Update comment.
6630
bedfa57b
AC
66312002-05-04 Andrew Cagney <ac131313@redhat.com>
6632
6633 * stack.c (select_and_print_frame): Make static. Delete the
6634 parameter `level'.
6635 (func_command): Update call.
6636 (select_frame_command): Delete code computing the frame level.
6637 * frame.h (select_and_print_frame): Delete declaration.
6638
f621c63e
AC
66392002-05-04 Andrew Cagney <ac131313@redhat.com>
6640
6641 * sparc-tdep.c (sparc_get_saved_register): Comment why
6642 get_prev_frame call is safe.
6643
0f7d239c
AC
66442002-05-04 Andrew Cagney <ac131313@redhat.com>
6645
6646 * frame.h (select_frame): Delete level parameter.
6647 * stack.c (select_frame): Update. Use frame_relative_level to
6648 obtain the frame's level.
6649 (select_and_print_frame): Update call.
6650 (select_frame_command): Ditto.
6651 (up_silently_base): Ditto.
6652 (down_silently_base): Ditto.
6653 * ocd.c (ocd_start_remote): Ditto.
6654 * remote-rdp.c (remote_rdp_open): Ditto.
6655 * remote-mips.c (mips_initialize): Ditto.
6656 (common_open): Ditto.
6657 * remote-e7000.c (e7000_start_remote): Ditto.
6658 * m3-nat.c (select_thread): Ditto.
6659 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6660 (child_get_current_exception_event): Ditto.
6661 * varobj.c (varobj_create): Ditto.
6662 (varobj_update): Ditto.
6663 (c_value_of_root): Ditto.
6664 * tracepoint.c (finish_tfind_command): Ditto.
6665 * corelow.c (core_open): Ditto.
6666 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6667 * thread.c (info_threads_command): Ditto.
6668 (switch_to_thread): Ditto.
6669 * infrun.c (normal_stop): Ditto.
6670 (restore_selected_frame): Ditto.
6671 (restore_inferior_status): Ditto.
6672 * breakpoint.c (insert_breakpoints): Ditto.
6673 (watchpoint_check): Ditto.
6674 (bpstat_stop_status): Ditto.
6675 (do_enable_breakpoint): Ditto.
6676 * blockframe.c (flush_cached_frames): Ditto.
6677 (reinit_frame_cache): Ditto.
6678
71d6c7b1
AC
66792002-05-04 Andrew Cagney <ac131313@redhat.com>
6680
6681 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6682 maintainer.
6683
cda6c68a
JB
66842002-05-04 Jim Blandy <jimb@redhat.com>
6685
6686 * gdbtypes.c (replace_type): Doc fix.
6687
5c1c87f0
AC
66882002-05-04 Andrew Cagney <ac131313@redhat.com>
6689
6690 * valprint.c (strcat_longest): Delete commented out function.
6691 Update copyright.
6692
cd9bfe15
AC
66932002-05-04 Andrew Cagney <ac131313@redhat.com>
6694
6695 * MAINTAINERS: Mark a29k as deleted.
6696 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6697 Move new configurations to the top.
6698 * configure.tgt: Remove a29k.
6699 * config/a29k/tm-vx29k.h: Delete.
6700 * config/a29k/vx29k.mt: Delete.
6701 * config/a29k/tm-a29k.h: Delete.
6702 * config/a29k/a29k-udi.mt: Delete.
6703 * config/a29k/a29k.mt: Delete.
6704 * a29k-tdep.c: Delete.
6705 * remote-udi.c: Delete.
6706 * remote-mm.c: Delete.
6707 * remote-eb.c: Delete.
6708 * remote-adapt.c: Delete.
6709 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6710 * config/s390/s390x.mt: Ditto.
6711 * config/s390/s390.mt: Ditto.
6712 * config/sparc/sparclynx.mh: Ditto.
6713 * config/sparc/linux.mh: Ditto.
6714 * config/pa/hppaosf.mh: Ditto.
6715 * config/pa/hppabsd.mh: Ditto.
6716 * config/ns32k/nbsd.mt: Ditto.
6717 * config/mips/vr5000.mt: Ditto.
6718 * config/m68k/sun3os4.mh: Ditto.
6719 * config/m68k/nbsd.mt: Ditto.
6720 * config/m68k/m68klynx.mh: Ditto.
6721 * config/m32r/m32r.mt: Ditto.
6722 * config/i386/x86-64linux.mt: Ditto.
6723 * config/i386/nbsdelf.mt: Ditto.
6724 * config/i386/nbsd.mt: Ditto.
6725 * config/i386/i386lynx.mh: Ditto.
6726
bf0c5130
AC
67272002-05-04 Andrew Cagney <ac131313@redhat.com>
6728
6729 * target.c (debug_print_register): New function. Handle oversize
6730 registers.
6731 (debug_to_fetch_registers): Call.
6732 (debug_to_store_registers): Call.
6733
2ae1c2d2
JB
67342002-05-03 Jim Blandy <jimb@redhat.com>
6735
13a393b0
JB
6736 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6737 (read_type): Doc fix.
6738 * gdbtypes.c (replace_type): Doc fix.
6739
2ae1c2d2
JB
6740 * stabsread.c (multiply_defined_struct): New complaint.
6741 (read_struct_type): If the type we were passed isn't empty, or
6742 incomplete, don't read the new struct type into it; complain,
6743 and return the original type unchanged. Take a new `type_code'
6744 argument, which is the type code for the new type.
6745 (read_type): Rather than storing the type's type code here, pass
6746 it as an argument to read_struct_type, and let that take care of
6747 storing it. That way, we don't overwrite the original type code,
6748 so read_struct_type can use it to decide whether we're overwriting
6749 something we shouldn't.
6750 (complain_about_struct_wipeout): New function.
6751
8de9bdc4
AC
67522002-05-03 Andrew Cagney <ac131313@redhat.com>
6753
6754 * gdbarch.sh: Assert that gdbarch is non-NULL.
6755 * gdbarch.c: Regenerate.
6756
f773fdbb
JM
67572002-05-03 Jason Merrill <jason@redhat.com>
6758
6759 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6760 and return NULL.
6761
0e04a514
ML
67622002-05-03 Michal Ludvig <mludvig@suse.cz>
6763
6764 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6765 (x86_64_dwarf2gdb_regno_map_length),
6766 (x86_64_dwarf2_reg_to_regnum): Added.
6767 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6768 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6769 (_initialize_x86_64_tdep): Synced with the change above.
6770 (x86_64_skip_prologue): Reformulated message.
6771
065432a8
PM
67722002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6773
6774 * f-exp.y: Also use new prev_lexptr variable
6775 to improve error reporting. Based on Michael Snyder
6776 2002-04-24 dated patch to c-exp.y.
6777 * jv-exp.y: Likewise.
6778 * m2-exp.y: Likewise.
6779
a3162708
EZ
67802002-05-02 Elena Zannoni <ezannoni@redhat.com>
6781
6782 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6783 we are dealing with vectors.
6784
03620c38
PM
67852002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6786
6787 * config/m68k/tm-nbsd.h: Obvious fix,
6788 correct machine name.
6789
6604db2e
PM
67902002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6791
6792 * p-typeprint.c (pascal_type_print_base): Add support
6793 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6794
0906b739
PM
67952002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6796
6797 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6798 for fondamental pascal 'char' type.
6799
e2625b33
PM
68002002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6801
6802 * p-lang.h (is_pascal_string_type): Declaration changed,
6803 new sixth argument of type char ** added.
361d1df0 6804 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6805 changed. Args length_pos, length_size, string_pos, char_size
6806 can now be NULL. New argument arrayname set to the field
6807 name of the char array. Return value set to char array
6808 field index plus one.
361d1df0 6809 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6810 is_pascal_string_type function.
6811
cf17c188
AC
68122002-05-02 Andrew Cagney <cagney@redhat.com>
6813
6814 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6815 <cagney@redhat.com> change.
6816 * gdbarch.c: Regenerate.
6817
52bca491
AC
68182002-05-02 Andrew Cagney <cagney@redhat.com>
6819
6820 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6821 before probing for a new one. Detect errorenous gdbarch_init
6822 functions.
6823 * gdbarch.c: Regenerate.
6824
d5e72505
AC
68252002-05-01 Andrew Cagney <cagney@redhat.com>
6826
6827 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6828 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6829 * config/v850/tm-v850.h: Ditto. Update copyright.
6830
af566d9f
AC
68312002-04-30 Andrew Cagney <ac131313@redhat.com>
6832
6833 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6834 current_gdbarch.
6835
880d85fa
MS
68362002-04-30 Michael Snyder <msnyder@redhat.com>
6837
94c30b78
MS
6838 * arm-tdep.c: Whitespace clean-ups.
6839 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6840 should have been removed as part of 4/24 change.
6841
6f5987a6
KB
68422002-04-30 Kevin Buettner <kevinb@redhat.com>
6843
6844 * rs6000-tdep.c: Added comment describing how fpscr register
6845 numbers were chosen.
6846
1a113c93
MS
68472002-04-30 Michael Snyder <msnyder@redhat.com>
6848
6849 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6850
9a6f53fe
EZ
68512002-04-29 Elena Zannoni <ezannoni@redhat.com>
6852
6853 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6854 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6855 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6856
11ed25ac
KB
68572002-04-29 Kevin Buettner <kevinb@redhat.com>
6858
6859 From Louis Hamilton <hamilton@redhat.com>:
6860 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6861 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6862 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6863 not bfd-private xcoff data, to determine wordsize.
6864 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6865
ae232405
AC
68662002-04-29 Andrew Cagney <ac131313@redhat.com>
6867
6868 GDB 5.2 released from 5.2 branch.
6869
91fd20f7
ML
68702002-04-29 Michal Ludvig <mludvig@suse.cz>
6871
6872 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6873 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6874 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6875
2dc5091b
EZ
68762002-04-29 Elena Zannoni <ezannoni@redhat.com>
6877
6878 * rs6000-tdep.c (rs6000_extract_return_value,
6879 rs6000_store_return_value): Handle returning vectors.
6880 (rs6000_gdbarch_init): Use
6881 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6882 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6883 New function.
6884 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6885 vectors.
6886 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6887 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6888
2b9848d8
PM
68892002-04-24 Pierre Muller <ics.u-strasbg.fr>
6890
6891 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6892 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6893 with fprintf_unfiltered (gdb_stderr,...).
6894
f8d17dc5
PM
68952002-04-24 Pierre Muller <ics.u-strasbg.fr>
6896
6897 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6898 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6899 Replace fprintf (stderr,...
6900 with fprintf_unfiltered (gdb_stderr,....
6901 * remote-es.c: Likewise.
6902 * remote-os9k.c: Likewise.
6903 * remote-st.c: Likewise.
6904
2f2f1ad1
AS
69052002-04-28 Andreas Schwab <schwab@suse.de>
6906
6907 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6908 linux-proc.o and gcore.o.
6909
b6779aa2
AC
69102002-04-26 Michal Ludvig <mludvig@suse.cz>
6911
6912 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6913 code without frame pointers.
6914
7e57f5f4
AC
69152002-04-26 Andrew Cagney <ac131313@redhat.com>
6916
6917 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6918 ON_STACK is needed.
6919
2ceb85d0
BE
69202002-04-26 Ben Elliston <bje@redhat.com>
6921
6922 * target.c (do_xfer_memory): Correct reference to the new option
6923 "trust-readonly-sections".
6924
f5f8a009
EZ
69252002-04-26 Elena Zannoni <ezannoni@redhat.com>
6926
6927 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6928 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6929 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6930 vectors.
6931 (read_array_type): Record the fact that this array type is really a
6932 vector (i.e. are passed in by value).
6933
5868c862
JT
69342002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6935
6936 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6937 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6938 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6939 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6940 * alpha-linux-tdep.c: Include frame.h.
6941 (alpha_linux_sigcontext_addr): New function.
6942 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6943 alpha_linux_sigcontext_addr.
6944 * alpha-osf1-tdep.c: Include gdbcore.h.
6945 (alpha_osf1_sigcontext_addr): New function.
6946 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6947 alpha_osf1_sigcontext_addr.
6948 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6949 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6950
bfb01f37
AC
69512002-04-26 Andrew Cagney <ac131313@redhat.com>
6952
361d1df0 6953 * stack.c (selected_frame_level):
bfb01f37
AC
6954 (select_frame): Do not set selected_frame_level.
6955 * frame.h (selected_frame_level): Delete declaration.
6956
15813d3f
AC
69572002-04-26 Andrew Cagney <ac131313@redhat.com>
6958
6959 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6960 convert_from_func_ptr-addr when AIX / PowerOpen.
6961
6096c27a
AC
69622002-04-25 Andrew Cagney <ac131313@redhat.com>
6963
6964 * valops.c (hand_function_call): Call
6965 generic_save_call_dummy_addr.
6966 * frame.h (generic_save_call_dummy_addr): Declare.
6967 * blockframe.c (struct dummy_frame): Add fields call_lo and
6968 call_hi.
6969 (generic_find_dummy_frame): Check for PC in range call_lo to
6970 call_hi instead of entry_point_address.
6971 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6972 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6973 (generic_save_call_dummy_addr): New function.
6974
f510d44e
DM
69752002-04-24 David S. Miller <davem@redhat.com>
6976
6977 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6978 sparc_skip_prologue.
6979 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6980 information to find prologue when possible.
6981 (sparc_prologue_frameless_p): Call examine_prologue directly.
6982 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6983 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6984 second argument.
6985 (SKIP_PROLOGUE): Likewise.
6986
15d72a92
JT
69872002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6988
6989 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6990 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6991 indicate that the condition it was testing is always true.
6992 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6993 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6994 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6995
accc6d1f
JT
69962002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6997
6998 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6999 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7000 tdep->jb_pc and tdep->jb_elt_size.
7001 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7002 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7003 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7004 * alpha-nat.c (get_longjmp_target): Remove.
7005 (JB_ELEMENT_SIZE): Ditto.
7006 (JB_PC): Ditto.
7007 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7008 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7009 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7010 to alpha_get_longjmp_target.
7011 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7012 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7013 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7014
1bfdc549
AC
70152002-04-25 Andrew Cagney <ac131313@redhat.com>
7016
7017 * README: Update to GDB 5.2.
7018
1bd316f0
AC
70192002-04-25 Andrew Cagney <ac131313@redhat.com>
7020
7021 * gdbarch.sh (LC_ALL): Set to `c'.
7022
2e5ff58c
TR
70232002-04-25 Theodore A. Roth <troth@verinet.com>
7024
7025 * avr-tdep.c: Ran through gdb_indent.sh.
7026
e33ce519
TR
70272002-04-25 Theodore A. Roth <troth@verinet.com>
7028
7029 * MAINTAINERS: Add myself as AVR maintainer.
7030 * NEWS: Note new target avr.
7031
8818c391
TR
70322002-04-25 Theodore A. Roth <troth@verinet.com>
7033
7034 * Makefile.in: Add support for AVR target.
7035 * configure.tgt: Add support for AVR target.
7036 * avr-tdep.c: New file
7037 * config/avr/avr.mt: New file.
7038
79509c2d
TR
70392002-04-25 Theodore A. Roth <troth@verinet.com>
7040
7041 * MAINTAINERS: Add myself to write-after-approval.
7042
dac8068e
PM
70432002-04-24 Pierre Muller <ics.u-strasbg.fr>
7044
7045 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7046 with fprintf_unfiltered (gdb_stderr,....
7047
25bf3106
PM
70482002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7049
7050 Fix PR gdb/508.
7051 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7052
24467a86
PM
70532002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7054
7055 * p-exp.y: Also use new prev_lexptr variable
7056 to improve error reporting. Based on Michael Snyder
7057 2002-04-24 dated patch to c-exp.y.
7058
95b80706
JT
70592002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7060
7061 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7062 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7063 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7064 to 0.
7065 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7066 and struct value.
7067 (FUNCTION_START_OFFSET): Remove.
7068 (BREAKPOINT): Ditto.
7069
e90cc612
JT
70702002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7071
7072 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7073 * NEWS: Ditto.
7074
6c72f9f9
JT
70752002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7076
7077 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7078 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7079 alpha_linux_pc_in_sigtramp.
7080 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7081 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7082 alpha_osf1_pc_in_sigtramp.
7083 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7084 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7085 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7086 alphafbsd_pc_in_sigtramp.
7087 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7088 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7089 alphanbsd_pc_in_sigtramp.
7090 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7091 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7092
5e4f3379
JT
70932002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7094
7095 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7096
da8ca43d
JT
70972002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7098
7099 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7100 alphanbsd-tdep.c.
7101 (alphanbsd-nat.o): New dependency list.
7102 (alphanbsd-tdep.o): Ditto.
7103 * NEWS: Note new native NetBSD/alpha configuration.
7104 * alphanbsd-nat.c: New file.
7105 * alphanbsd-tdep.c: Ditto.
7106 * configure.host (alpha*-*-netbsd*): New host.
7107 * configure.tgt (alpha*-*-netbsd*): New target.
7108 * config/alpha/nbsd.mh: New file.
7109 * config/alpha/nbsd.mt: Ditto.
7110 * config/alpha/nm-nbsd.h: Ditto.
7111 * config/alpha/tm-nbsd.h: Ditto.
7112
36a6271d
JT
71132002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7114
7115 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7116 (alpha-osf1-tdep.o): New dependency list.
7117 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7118 and skip_sigtramp_frame members.
7119 * alpha-linux-tdep.c: Include gdbcore.h.
7120 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7121 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7122 * alpha-osf1-tdep.c: New file.
7123 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7124 alpha-osf1-dep.c.
7125 (alpha_frame_past_sigtramp_frame): New function.
7126 (alpha_dynamic_sigtramp_offset): Ditto.
7127 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7128 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7129 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7130 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7131 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7132 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7133 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7134 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7135 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7136 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7137 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7138 to find_solib_trampoline_target.
7139 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7140 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7141 (SKIP_TRAMPOLINE_CODE): Remove.
7142 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7143 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7144 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7145 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7146 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7147 (PROC_SIGTRAMP_MAGIC): Ditto.
7148 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7149 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7150 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7151 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7152 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7153
2f4bc57b
JT
71542002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7155
7156 * NEWS: Note that Alpha targets are now multi-arch.
7157
665132f9
MS
71582002-04-24 Michael Snyder <msnyder@redhat.com>
7159
7160 * parser-defs.h (prev_lexptr): New external variable.
7161 * parse.c (parse_exp_1): Set prev_lexptr to null before
7162 calling the language-specific parser.
7163 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7164 (yyerror): Use prev_lexptr in error reporting.
7165
32872fa7
DJ
71662002-04-24 Daniel Jacobowitz <drow@mvista.com>
7167
7168 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7169 * gregset.h: If FILL_FPXREGSET is defined, provide
7170 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7171 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7172 is defined, call fill_fpxregset.
7173
57e76fac
MS
71742002-04-24 Roland McGrath <roland@frob.com>
7175
7176 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7177 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7178 (supply_gregset, supply_fpregset): New functions.
7179
7180 * gnu-nat.c (gnu_find_memory_regions): New function.
7181 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7182 (gnu_xfer_memory): Add a cast.
7183
f43845b3
MS
71842002-04-24 Michael Snyder <msnyder@redhat.com>
7185
361d1df0 7186 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7187 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7188 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7189 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7190 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7191 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7192
a0abec03
AC
7193Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7194
7195 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7196 NUM_PSEUDO_REGS can be used.
7197
d7bd68ca
AC
71982002-04-24 Andrew Cagney <ac131313@redhat.com>
7199
7200 * arch-utils.h: Update copyright.
7201
7202 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7203 * gdbarch.h, gdbarch.c: Re-generate.
7204
7205 * inferior.h (IN_SIGTRAMP): Delete definition.
7206 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7207 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7208
7209 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7210 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7211 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7212 (find_proc_framesize): Ditto.
7213 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7214 (alpha_init_extra_frame_info): Ditto.
7215 * infrun.c (handle_inferior_event): Ditto.
7216 (handle_inferior_event): Ditto.
7217 (check_sigtramp2): Ditto.
7218 * blockframe.c (create_new_frame): Ditto.
7219 (get_prev_frame): Ditto.
7220 * ppc-linux-tdep.c: Update comments.
7221 * i386-linux-tdep.c: Update comments.
7222 * breakpoint.c (bpstat_what): Update comment.
7223
4867e41e
DM
72242002-04-24 David S. Miller <davem@redhat.com>
7225
21d83aa5
DM
7226 * i960-tdep.c (register_in_window_p): New function.
7227 (i960_find_saved_register): Use it instead of
7228 REGISTER_IN_WINDOW_P.
7229 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7230
4867e41e
DM
7231 * symtab.h (find_stab_function_addr): Kill extern.
7232 * minsyms.c (find_stab_function_addr): Remove from here...
7233 * dbxread.c: ... to here, and mark it static.
7234
69cdf6a2
DM
72352002-04-20 David S. Miller <davem@redhat.com>
7236
7237 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7238 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7239
5a595886
DM
72402002-04-21 David S. Miller <davem@redhat.com>
7241
7242 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7243 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7244 (vx_write_register): Likewise.
7245
1da1a192
JB
72462002-04-23 J. Brobecker <brobecker@gnat.com>
7247
7248 * source.c (is_regular_file): New function.
7249 (openp): Check wether file to open is a regular file
7250 to avoid opening directories.
7251
baa6f10b
JT
72522002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7253
7254 * findvar.c (extract_signed_integer): Cast printf argument
7255 to suppress format warning.
7256 (extract_unsigned_integer): Likewise.
7257 * infcmd.c (registers_info): Likewise.
7258 * top.c (get_prompt_1): Likewise.
7259 * valops.c (value_assign): Likewise.
7260 * valprint.c (print_decimal): Likewise.
7261
b2c4da81
L
72622002-04-22 H.J. Lu (hjl@gnu.org)
7263
7264 * c-exp.y (typebase): Support
361d1df0 7265
b2c4da81
L
7266 [long|long long|short] [signed|unsigned] [int|]
7267
7268 and
7269
7270 signed [long|long long|short] int
7271
f267bd6a
JT
72722002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7273
7274 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7275 and vax-tdep.h.
7276 * vax-tdep.h: New file.
7277 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7278 Make several routines static.
7279 (vax_get_saved_register): New function.
7280 (vax_gdbarch_init): New function.
7281 (_initialize_vax_tdep): Register vax_gdbarch_init.
7282 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7283 Remove macros now under the control of gdbarch.
7284
da3c6d4a
MS
72852002-04-22 Michael Snyder <msnyder@redhat.com>
7286
11d3b27d
MS
7287 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7288 Some whitespace and coding standards tweaks.
da3c6d4a 7289
a33f7558
JT
72902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7291
7292 * vax-tdep.c: Include regcache.h.
7293 (vax_call_dummy_words): New.
7294 (sizeof_vax_call_dummy_words): New.
7295 (vax_fix_call_dummy): New function.
7296 (vax_saved_pc_after_call): Ditto.
7297 * config/vax/tm-vax.h: Don't include regcache.h.
7298 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7299 (CALL_DUMMY): Remove.
7300 (CALL_DUMMY_WORDS): Define.
7301 (SIZEOF_CALL_DUMMY_WORDS): Define.
7302 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7303
47a73475
MS
73042002-04-18 Michael Snyder <msnyder@redhat.com>
7305
7306 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7307
52efde73
JT
73082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7309
7310 * vax-tdep.c (vax_frame_chain): New function.
7311 (vax_push_dummy_frame): Ditto.
7312 (vax_pop_frame): Ditto.
7313 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7314 (FRAMELESS_FUNCTION_INVOCATION): Use
7315 generic_frameless_function_invocation_not.
7316 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7317 (POP_FRAME): Use vax_pop_frame.
7318
ea74468c
JT
73192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7320
7321 * vax-tdep.c (vax_store_struct_return): New function.
7322 (vax_extract_return_value): Ditto.
7323 (vax_store_return_value): Ditto.
7324 (vax_extract_struct_value_address): Ditto.
7325 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7326 vax_store_struct_return.
7327 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7328 (STORE_RETURN_VALUE): Use vax_store_return_value.
7329 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7330
5516aa92
JT
73312002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7332
7333 * vax-tdep.c (vax_frame_saved_pc): New function.
7334 (vax_frame_args_address_correct): Ditto.
7335 (vax_frame_args_address): Ditto.
7336 (vax_frame_locals_address): Ditto.
7337 (vax_frame_num_args): Move code to be in proximity to
7338 other frame-related functions.
7339 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7340 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7341 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7342 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7343 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7344
36af0b35
L
73452002-04-22 H.J. Lu (hjl@gnu.org)
7346
7347 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7348 includedir.
7349
ab62c900
JT
73502002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7351
7352 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7353 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7354 (FRAME_INIT_SAVED_REGS): New macro.
7355
7232b100
JT
73562002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7357
7358 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7359
b70d2aee
JT
73602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7361
7362 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7363 where needed.
7364 (fetch_osf_core_registers): Likewise.
7365 (supply_gregset): Likewise.
7366
a0e8a2d1 73672002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7368
a0e8a2d1
JB
7369 * symfile.h (get_section_index): Define.
7370 * symfile.c (get_section_index): New function.
7371 * mdebugread.c (SC_IS_SBSS): New macro.
7372 (SC_IS_BSS): Return true for the scBss storage class only, as
7373 the scSBss storage class refers to the .sbss section.
7374 (parse_partial_symbols): Discard the symbols which associated
7375 section does not exist.
7376 Make sure to use the .sbss section index for symbols which
7377 storage class is scBss, rather than using the .bss section index.
7378
51eb8b08
JT
73792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7380
7381 * vax-tdep.c: Update copyright years.
7382 (vax_register_name): New function.
7383 (vax_register_byte): Ditto.
7384 (vax_register_raw_size): Ditto.
7385 (vax_register_virtual_size): Ditto.
7386 (vax_register_virtual_type): Ditto.
7387 * config/vax/tm-vax.h: Update copyright years.
7388 (REGISTER_NAMES): Remove.
7389 (REGISTER_NAME): Define.
7390 (REGISTER_BYTE): Use vax_register_byte.
7391 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7392 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7393 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7394
6cc1c0a8
AC
73952002-04-21 Andrew Cagney <ac131313@redhat.com>
7396
7397 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7398 declaration
7399 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7400
9319a2fe
DM
74012002-04-21 David S. Miller <davem@redhat.com>
7402
7403 * arch-utils.c (generic_prologue_frameless_p): Kill
7404 SKIP_PROLOGUE_FRAMELESS_P code.
7405 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7406 references.
7407 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7408 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7409 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7410 references.
7411 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7412 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7413 (sparc_gdbarch_init): Pass it to
7414 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7415
e9ed6d01
JT
74162002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7417
7418 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7419 (alphabsd-nat.o): New dependency list.
7420
36012033
JT
74212002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7422
7423 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7424 alphafbsd-tdep.c.
7425 (alpha-linux-tdep.o): New dependency list.
7426 (alphafbsd-tdep.o): Likewise.
7427
3379287a
JT
74282002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7431 to here...
7432 * alpha-tdep.c: ...from here.
7433 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7434
4bcbd6cb
JT
74352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7436
7437 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7438 prototype from here...
7439 * alpha-tdep.h: ...to here.
7440
b31da25e
AC
74412002-04-21 Andrew Cagney <ac131313@redhat.com>
7442
7443 * frame.h (selected_frame_level): Document as deprecated.
7444 (frame_relative_level): Declare.
7445 * stack.c (frame_relative_level): New function.
7446 (selected_frame_level): Document as deprecated.
7447 (select_frame): Do not set the selected_frame_level.
7448
7449 * stack.c (frame_info, record_selected_frame): Update.
7450 (frame_command, current_frame_command): Update.
7451 (up_silently_base, up_command, down_silently_base): Update.
7452 (down_command): Update.
7453 * inflow.c (kill_command): Update.
7454 * tracepoint.c (finish_tfind_command): Update.
7455 * corelow.c (core_open): Update.
7456 * thread.c (info_threads_command): Update.
7457 (do_captured_thread_select): Update.
7458 * infcmd.c (finish_command): Update.
7459 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7460
9c1d6fe5
JT
74612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7462
7463 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7464
ab89facf
AC
74652002-04-21 Andrew Cagney <ac131313@redhat.com>
7466
7467 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7468 type const.
7469
82a4efa1
JT
74702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7471
7472 * alphafbsd-tdep.c: Update copyright years. Include
7473 alpha-tdep.h.
7474 (alphafbsd_use_struct_convention): Make static.
7475 (alphafbsd_init_abi): New function.
7476 (_initialize_alphafbsd_tdep): New function.
7477 * config/alpha/tm-fbsd.h: Update copyright years.
7478 (USE_STRUCT_CONVENTION): Remove.
7479
44dffaac
JT
74802002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7481
7482 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7483 an Alpha ABI variant.
7484 (alpha_abi_handler_list): Declare.
7485 (alpha_gdbarch_register_os_abi): New function.
7486 (alpha_gdbarch_init): Give registered ABI variant handlers a
7487 chance to tweak the gdbarch once we have set up defaults.
7488 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7489
65585be4
JT
74902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7491
7492 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7493 to standard_coerce_float_to_double.
7494 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7495
d9b023cc
JT
74962002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7497
7498 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7499 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7500 from gdbarch_tdep rather than a constant.
7501 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7502 the default text address for all Alpha Unix ABIs.
7503 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7504 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7505
dc129d82
JT
75062002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7507
7508 * alpha-tdep.h: New file. Includes several Alpha target constants
7509 taken from...
7510 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7511 let gdbarch deal with.
7512 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7513 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7514 to dependency list.
7515 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7516 Alpha target register names.
7517 * alphabsd-nat.c: Likewise.
7518 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7519 Alpha target register names. Make serveral routines static.
7520 (alpha_get_saved_register): New function.
7521 (alpha_abi_names): New.
7522 (process_note_abi_tag_sections): New function.
7523 (get_elfosabi): New function.
7524 (alpha_gdbarch_init): New function.
7525 (alpha_dump_tdep): New function.
7526 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7527
d49d1e0a
AC
75282002-04-21 Andrew Cagney <ac131313@redhat.com>
7529
7530 * frame.c (find_saved_register): Delete #ifdef
7531 HAVE_REGISTER_WINDOWS code.
7532 * config/sparc/tm-sparc.h: Update comments.
7533 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7534
92e8c9ed
AC
75352002-04-21 Andrew Cagney <ac131313@redhat.com>
7536
7537 * i960-tdep.c (i960_find_saved_register): New function.
7538 (i960_get_saved_register): New function.
7539 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7540 (i960_get_saved_register): Declare.
7541 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7542
e1925118
DM
75432002-04-20 David S. Miller <davem@redhat.com>
7544
7545 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7546
29673b29
AC
75472002-04-20 Andrew Cagney <ac131313@redhat.com>
7548
7549 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7550 instead of NUM_PSEUDO_REGS.
7551
6c86dcd5
DM
75522002-04-20 David S. Miller <davem@redhat.com>
7553
7554 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7555 GDB_MULTI_ARCH_PARTIAL
7556 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7557 define, let tm-sp64.h do it.
7558
aa40ec90
JT
75592002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7560
7561 * frame.c (find_saved_register): Avoid a NULL pointer
7562 dereference and actually walk the frame list.
7563
0f79675b
AC
75642002-04-20 Andrew Cagney <ac131313@redhat.com>
7565
7566 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7567 sorted in most most-recent-used order. Document.
7568 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7569
f91305dd 75702002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7571
7572 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7573 instead of ->prev.
7574 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7575 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7576 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7577 instead of ->prev.
7578
73d322b1
EZ
75792002-04-19 Elena Zannoni <ezannoni@redhat.com>
7580
7581 Fix PR gdb/471.
7582 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7583 (build_builtin_type_vec128): Ditto.
7584 (append_composite_type_field): Fix calculation of type length in
7585 union case.
7586
ccd9a834
EZ
75872002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7588
7589 * config/djgpp/README: Update.
7590
7591 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7592 compiler warnings.
7593
a57f9e49
JT
75942002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7595
7596 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7597 (alpha_setup_arbitrary_frame): ...to this.
7598 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7599 for alpha_setup_arbitrary_frame.
7600
f4f9705a
AC
76012002-04-18 Andrew Cagney <cagney@redhat.com>
7602
7603 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7604 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7605
f4f9705a
AC
7606 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7607 * target.h (memory_breakpoint_from_pc): Update declaration.
7608 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7609
7610 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7611 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7612 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7613 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7614 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7615 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7616 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7617 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7618 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7619 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7620 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7621 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7622
7623 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7624 const pointer.
7625 * monitor.c (monitor_insert_breakpoint): Ditto.
7626 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7627
7628 * config/mcore/tm-mcore.h: Update copyright.
7629 * mem-break.c: Ditto.
7630 * xstormy16-tdep.c: Ditto.
7631
29f319b8
PM
76322002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7633
7634 * p-exp.y: Add precedence rule for '^' token.
7635 This removes the shift/reduce conflicts.
7636 Remove the comment concerning these shift/reduce conflicts.
7637
ebeac11a
EZ
76382002-04-18 Elena Zannoni <ezannoni@redhat.com>
7639
7640 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7641 (registers_powerpc_nofp): New register set for processors
7642 without floating point unit.
7643
27c31547
DM
76442002-04-18 David S. Miller <davem@redhat.com>
7645
7646 * MAINTAINERS: Add myself to write-after-approval.
7647
47a73475
MS
76482002-04-17 Michael Snyder <msnyder@redhat.com>
7649
7650 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7651
953836b2
AC
76522002-04-17 Andrew Cagney <ac131313@redhat.com>
7653
7654 * rs6000-tdep.c (frame_initial_stack_address): Use
7655 frame_register_read to read the alloca_reg.
7656
8b0d4340
AC
76572002-04-17 Andrew Cagney <ac131313@redhat.com>
7658
7659 * frame.c (find_saved_register): Find saved registers in the next
7660 not prev frame.
7661 Fix PR gdb/365.
7662
d8864532
AC
76632002-04-17 Andrew Cagney <ac131313@redhat.com>
7664
7665 * gdbarch.sh (LANG): Set to ``c''.
7666
36cc83a3 76672002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7668
36cc83a3 7669 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7670
2f4150cc 76712002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7672
7673 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7674 Update copyright.
7675
628703c6 7676 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7677 Also fix PR gdb/391.
361d1df0 7678
56157b4a
AC
76792002-04-14 Andrew Cagney <ac131313@redhat.com>
7680
7681 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7682 * aclocal.m4, configure: Re-generate.
7683 Fix PR gdb/391.
361d1df0 7684
6d1e3329
EZ
76852002-04-14 Elena Zannoni <ezannoni@redhat.com>
7686
7687 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7688 instead of tm_print_insn.
7689
cb06fa07
EZ
76902002-04-14 Elena Zannoni <ezannoni@redhat.com>
7691
7692 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7693
f208ba17
AC
76942002-04-14 Andrew Cagney <ac131313@redhat.com>
7695
7696 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7697 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7698 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7699
20f01a46
DH
77002002-04-12 Don Howard <dhoward@redhat.com>
7701
7702 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7703 max_user_call_depth.
7704 (init_cmd_lists): Initialize the new value;
7705 * cli/cli-script.c (execute_user_command): Limit the call depth of
7706 user defined commands. This avoids a core-dump when user commands
7707 are infinitly recursive.
7708
a88376a3
KB
77092002-04-12 Kevin Buettner <kevinb@redhat.com>
7710
7711 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7712 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7713 from tdep struct instead of DEFAULT_LR_SAVE.
7714 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7715 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7716 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7717
f2172603
MS
77182002-04-12 Michael Snyder <msnyder@redhat.com>
7719
694f61fb 7720 * Remote.c: Spelling fix.
20fe79c8
MS
7721 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7722 If no symbol found for "sbrk", try "_sbrk".
7723 (make_output_phdrs): Use bfd_section_name.
7724 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7725 * eval.c: Indentation fix-ups.
169a7369
MS
7726 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7727 in case it gets applied to an address that is already
7728 in the instruction space.
de74f71f
MS
7729 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7730 * symfile.c: Fix indentation, long lines.
f2172603
MS
7731 * source.c: White space fix-up.
7732
cda5a58a
AC
77332002-04-12 Andrew Cagney <cagney@redhat.com>
7734
7735 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7736 * frame.c (frame_register_read): New function. Return non-zero on
7737 success.
7738 (read_relative_register_raw_bytes_for_frame): Delete.
7739 (read_relative_register_raw_bytes): Delete.
7740 * frame.h (frame_register_read): Declare.
7741 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7742 * sh-tdep.c: Ditto.
7743 * infcmd.c (do_registers_info): Ditto.
7744 * hppa-tdep.c: Ditto.
7745 * rs6000-tdep.c: Ditto.
7746 * h8500-tdep.c: Ditto.
7747 * mips-tdep.c: Ditto.
7748 * h8300-tdep.c: Ditto.
7749 * z8k-tdep.c: Ditto.
7750
2ea5f656
KB
77512002-04-12 Kevin Buettner <kevinb@redhat.com>
7752
7753 From Jimi X <jimix@watson.ibm.com>:
7754 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7755 64-bit SysV ABI.
7756
27b15785
KB
77572002-04-12 Kevin Buettner <kevinb@redhat.com>
7758
7759 From Jimi X <jimix@watson.ibm.com>:
7760 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7761 bfd info.
7762
5d57ee30
KB
77632002-04-12 Kevin Buettner <kevinb@redhat.com>
7764
7765 From Jimi X <jimix@watson.ibm.com>:
7766 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7767 register sets for these processor variants.
7768
bc1e36ca
DJ
77692002-04-11 Daniel Jacobowitz <drow@mvista.com>
7770
bc1e36ca
DJ
7771 * regformats/reg-ppc.dat: Support FPSCR.
7772
e3f36dbd
KB
77732002-04-11 Kevin Buettner <kevinb@redhat.com>
7774
7775 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7776 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7777 Add fpscr as an invalid/unfetchable register.
7778 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7779 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7780 (fill_fpregset): Add support for register fpscr.
7781 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7782 (fill_gregset): Account for the fact that register ``mq'' might
7783 not exist.
7784 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7785 (registers_power): Add fpscr to register set at slot 71.
7786 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7787 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7788
943c9c25
MS
77892002-04-11 Michael Snyder <msnyder@redhat.com>
7790
7791 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7792 * configure: Regenerate.
7793 * config.in: Regenerate.
7794 * acconfig.h: Add define for _SYSCALL32.
7795 * core-sol2.c: Remove #define _SYSCALL32.
7796 * solib-legacy.c: Remove #define _SYSCALL32.
7797
d8c0a2e7
AC
77982002-04-10 Andrew Cagney <ac131313@redhat.com>
7799
7800 * stack.c (select_frame): Cleanup internal error message, do not
7801 use %p.
7802
7cc19214
AC
78032002-04-10 Andrew Cagney <ac131313@redhat.com>
7804
7805 * stack.c (select_frame): Check that selected_frame and the
7806 specified level are as expected.
7807 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7808 Update copyright.
7809 * frame.h (struct frame_info): Add field `level'. Update
7810 copyright.
7811 Work-in-progress PR gdb/464.
7812
67a2b77e
AC
78132002-04-10 Andrew Cagney <ac131313@redhat.com>
7814
7815 * maint.c (maint_print_section_info): Rename print_section_info.
7816 (print_bfd_section_info, print_objfile_section_info): Update.
7817 * inferior.h (struct gdbarch): Add opaque declaration.
7818 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7819 * gdbarch.h: Regenerate.
7820
8cfda98c
ML
78212002-04-10 Michal Ludvig <mludvig@suse.cz>
7822
7823 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7824 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7825 (kernel_u_size): Added.
7826 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7827 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7828
ca439ad2 78292002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7830
ca439ad2
JI
7831 * valarith.c (find_size_for_pointer_math): New function, either returns
7832 the size for a pointer's target, returns 1 for void *, or errors for
7833 incomplete types.
7834 (value_add, value_sub): use find_size_for_pointer_math.
7835
2f2893d9
DJ
78362002-04-09 Daniel Jacobowitz <drow@mvista.com>
7837
7838 * linux-low.c (linux_look_up_symbols): New hook.
7839 (linux_target_ops): Add linux_look_up_symbols.
7840 * remote-utils.c (decode_address): New function.
7841 (look_up_one_symbol): New function.
7842 * server.c (handle_query): Call target look_up_symbols hook.
7843 * server.h (look_up_one_symbol): Add prototype.
7844 * target.h (struct target_ops): Add look_up_symbols hook.
7845
96cb11df
AC
78462002-04-09 Andrew Cagney <ac131313@redhat.com>
7847
7848 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7849 override FP_REGNUM with frame->fp. Update copyright.
7850 * parse.c (num_std_regs, std_regs): Delete.
7851 (target_map_name_to_register): Do not search std_regs. Update
7852 function description.
7853 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7854 declarations. Update copyright.
7855 Fix PR gdb/251.
361d1df0 7856
97658e92
DJ
78572002-04-09 Daniel Jacobowitz <drow@mvista.com>
7858
7859 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7860 after the last symbol in a block.
7861
6044e3eb
PM
78622002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7863
7864 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7865 is non zero as a found symbol.
7866
0406ec40
AC
78672002-04-08 Andrew Cagney <ac131313@redhat.com>
7868
7869 * findvar.c: Include "builtin-regs.h".
7870 (value_of_register): Call value_of_builtin_reg when applicable.
7871 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7872 (target_map_name_to_register): Call
7873 builtin_reg_map_name_to_regnum.
7874 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7875 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7876 (builtin_regs_h): Define.
7877 (builtin-regs.o): New target.
7878 (findvar.o): Add $(builtin_regs_h).
7879 * builtin-regs.c, builtin-regs.h: New files.
7880 * std-regs.c: New file.
7881 Partial fix for PR gdb/251.
7882
56a6dfb9
KB
78832002-04-08 Kevin Buettner <kevinb@redhat.com>
7884
7885 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7886 it's no longer required.
7887
3a808432
AC
78882002-04-08 Andrew Cagney <ac131313@redhat.com>
7889
7890 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7891
7c40d541
KB
78922002-04-08 Kevin Buettner <kevinb@redhat.com>
7893
7894 From Jimi X <jimix@watson.ibm.com>:
7895 * rs6000-tdep.c (rs6000_software_single_step): Use
7896 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7897 and size. Use target_insert_breakpoint() and
7898 target_remove_breakpoint() to insert and remove breakpoints
7899 instead of explicit memory reads and writes.
7900
cc9836a8
KB
79012002-04-08 Kevin Buettner <kevinb@redhat.com>
7902
7903 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7904 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7905 ELF_OBJECT_FORMAT ifdef.
7906
7495d1dc
KB
79072002-04-08 Kevin Buettner <kevinb@redhat.com>
7908
7909 From Jimi X <jimix@watson.ibm.com>:
7910 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7911
4288e836
KB
79122002-04-08 Kevin Buettner <kevinb@redhat.com>
7913
7914 From Jimi X <jimix@watson.ibm.com>:
7915 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7916 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7917
a4e4e501
MK
79182002-04-07 Mark Kettenis <kettenis@gnu.org>
7919
7920 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7921 s/asprintf/xasprintf/.
7922 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7923
006defba
AC
79242002-04-07 Andrew Cagney <ac131313@redhat.com>
7925
7926 I believe Jeff Law denies responsability for this one:
7927 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7928 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7929 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7930 Work-around for PR gdb/366.
7931
7aa83cac
EZ
79322002-04-07 Elena Zannoni <ezannoni@redhat.com>
7933
7934 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7935 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7936 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7937
cf1fcca1
EZ
79382002-04-07 Elena Zannoni <ezannoni@redhat.com>
7939
7940 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7941 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7942 information.
7943
3f289e6f
AC
79442002-04-07 Andrew Cagney <ac131313@redhat.com>
7945
7946 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7947 maintainer.
7948
129188f6
AC
79492002-04-07 Andrew Cagney <ac131313@redhat.com>
7950
7951 * README (Reporting Bugs in GDB): Document the bug web page as the
7952 prefered way of submitting bugs.
7953 Fix PR gdb/402.
7954
1200cd6e
AC
79552002-04-06 Andrew Cagney <ac131313@redhat.com>
7956
7957 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7958 -1. Update comment.
7959 * gdbarch.h, gdbarch.c: Re-generate.
7960
2853c33c
AS
79612002-04-07 Andreas Schwab <schwab@suse.de>
7962
7963 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7964 buffer to regcache_collect.
7965
c2169756
AC
79662002-04-06 Andrew Cagney <ac131313@redhat.com>
7967
7968 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7969 * gdbarch.c, gdbarch.h: Re-generate.
7970
25f1b008
AC
79712002-04-06 Andrew Cagney <ac131313@redhat.com>
7972
7973 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7974 declaration. Fix -Werror.
7975
59263426
DJ
79762002-04-05 Daniel Jacobowitz <drow@mvista.com>
7977
7978 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7979 * gdbarch.c: Regenerate.
7980
f5db4da3
MS
79812002-04-05 Michael Snyder <msnyder@redhat.com>
7982
80f8a6eb
MS
7983 * breakpoint.c (clear_command): Rewrite middle section to
7984 combine two loops with identical control conditions.
7985 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
7986 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7987
ad3dcc5c
L
79882002-04-05 H.J. Lu (hjl@gnu.org)
7989
7990 * solib-svr4.c (bkpt_names): Add "__start".
7991
f32e7a74
AC
79922002-04-04 Andrew Cagney <ac131313@redhat.com>
7993
7994 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7995 as test for 64 bit target.
7996
8227c0ff
AC
79972002-04-05 Andrew Cagney <ac131313@redhat.com>
7998
7999 * h8500-tdep.c (h8500_write_fp): Delete function.
8000 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8001 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8002 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8004 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8005 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8006 (s390_write_fp):
8007 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8008 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8009 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8010 (d10v_write_fp): Delete function.
8011 * inferior.h (write_fp, generic_target_write_fp): Delete
8012 declarations.
8013 * regcache.c (generic_target_write_fp): Delete function.
8014 (write_fp): Delete function.
8015 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8016 * gdbarch.h, gdbarch.c: Regenerate.
8017 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8018 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8019 (sparc64_write_fp): Delete declaration.
8020 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8021 (h8500_write_fp): Delete declaration.
8022
2757dd86
AC
80232002-04-04 Andrew Cagney <ac131313@redhat.com>
8024
8025 * sparc-tdep.c (sparc64_write_fp): Delete.
8026 (sparc_push_dummy_frame): Replace write_fp call with code to store
8027 the FP directly.
8028 (sparc_gdbarch_init): Do not initialize write_fp.
8029
c69255e1
KB
80302002-04-05 Kevin Buettner <kevinb@redhat.com>
8031
8032 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8033 clause.
8034
ae767bfb
JB
80352002-03-29 Jim Blandy <jimb@redhat.com>
8036
8037 * stack.c (get_selected_block): Add new argument `addr_in_block',
8038 used to return the exact code address we used to select the block,
8039 not just the block.
8040 * blockframe.c (get_frame_block, get_current_block): Same.
8041 * frame.h (get_frame_block, get_current_block,
8042 get_selected_block): Update declarations.
8043 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8044 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8045
84d2ac95
MS
80462002-04-05 Michael Snyder <msnyder@redhat.com>
8047
8048 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8049 warning message.
8050
596aa3bf
JB
80512002-04-05 J. Brobecker <brobecker@gnat.com>
8052
8053 * utils.c (xfullpath): New function.
8054 * defs.h (xfullpath): Add declaration.
8055 * source.c (openp): Use xfullpath in place of gdb_realpath to
8056 avoid resolving the basename part of filenames when the
8057 associated file is a symbolic link. This fixes a potential
8058 inconsistency between the filenames known to GDB and the
8059 filenames it prints in the annotations.
8060 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8061 to be able to match a filename with either the real filename, or
8062 the name of any symbolic link to this file.
8063 (lookup_partial_symtab): Ditto.
8064
c02f5703
MS
80652002-04-04 Michael Snyder <msnyder@redhat.com>
8066
8067 * breakpoint.c: Add support for hardware breakpoints in overlays.
8068 (overlay_events_enabled): New state variable.
8069 (insert_breakpoints): Use overlay_events_enabled to decide
8070 whether to attempt to set a breakpoint at the overlay load addr.
8071 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8072 (remove_breakpoint): Use overlay_events_enabled to decide
8073 whether breakpoints need to be removed from overlay load addr.
8074 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8075 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8076 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8077 disable_overlay_breakpoints): Update overlay_events_enabled.
8078
5fb290d7
DJ
80792002-04-04 Daniel Jacobowitz <drow@mvista.com>
8080
8081 * dwarf2read.c (struct function_range): New.
8082 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8083 (check_cu_functions): New.
8084 (read_file_scope): Initialize global function lists.
8085 Call dwarf_decode_line after processing children.
8086 (read_func_scope): Add to global function list.
8087 (dwarf_decode_lines): Call check_cu_functions everywhere
8088 record_line is called. Call record_line with a linenumber
8089 of 0 to mark sequence ends.
8090
7b3fabf0
ML
80912002-04-04 Michal Ludvig <mludvig@suse.cz>
8092
361d1df0 8093 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8094 change sync with glibc.
8095
bce58c09
JB
80962002-04-03 Jim Blandy <jimb@redhat.com>
8097
8098 * configure.in: Call AC_C_INLINE.
8099 * configure: Regenerated.
361d1df0 8100
2fccf04a
DJ
81012002-04-01 Daniel Jacobowitz <drow@mvista.com>
8102
8103 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8104 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8105
2d1bfe2e
MK
81062002-03-31 Mark Kettenis <kettenis@gnu.org>
8107
a5941fbf
MK
8108 * NEWS: Mention gcore support on FreeBSD/i386.
8109
a90cd31d
MK
8110 * fbsd-proc.c: New file.
8111 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8112 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8113
2d1bfe2e
MK
8114 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8115 while statement.
8116
9eb6e5a1
JB
81172002-03-29 Jim Blandy <jimb@redhat.com>
8118
8119 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8120 unescaped newlines in string literals, but newer ones don't. So
8121 escape them.
8122
f02df580
MS
81232002-03-26 Michael Snyder <msnyder@redhat.com>
8124 Andrew Cagney <cagney@redhat.com>
8125
361d1df0 8126 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8127 restore file to memory.
8128 * cli/cli-dump.h: New file.
8129 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8130 * NEWS: Mention new commands.
f02df580 8131
109f874e
MS
81322002-03-28 Michael Snyder <msnyder@redhat.com>
8133
8134 * symfile.c (symbol_file_add): Move test for null symbols to later.
8135
520f6ade
AC
81362002-03-27 Andrew Cagney <ac131313@redhat.com>
8137
8138 From veksler at il.ibm.com:
8139 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8140 the xstrduped original path.
8141 Fix PR gdb/417.
8142
d4654627
MS
81432002-03-27 Michael Snyder <msnyder@redhat.com>
8144
8145 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8146 * infcmd.c (_initialize_infcmd): Ditto.
8147 * language.c (_initialize_language): Ditto.
8148 * symfile.c (_initialize_symfile): Ditto.
8149 * top.c (_init_main): Ditto.
8150 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8151
6be8bc0c
EZ
81522002-03-27 Elena Zannoni <ezannoni@redhat.com>
8153
8154 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8155 vector registers handling.
8156 (skip_prologue): Handle new AltiVec instructions. Fill in new
8157 fields of frame data.
8158 (frame_get_saved_regs): Fill in information for AltiVec registers.
8159
12af6855
JB
81602002-03-27 Jim Blandy <jimb@redhat.com>
8161
8162 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8163 a function; leave this macro here to invoke that function.
8164 (symbol_init_mangled_name): Declaration for that function.
8165 * symtab.c (symbol_init_mangled_name): New function.
8166
dc672865
AC
81672002-03-27 Andrew Cagney <ac131313@redhat.com>
8168
8169 * valarith.c: Replace strerror with safe_strerror.
8170 * tracepoint.c: Ditto.
8171 * lin-lwp.c: Ditto.
8172 * go32-nat.c: Ditto.
8173 * inflow.c: Ditto.
8174 * gnu-nat.c: Ditto.
8175
d96429cd
AS
81762002-03-27 Andreas Schwab <schwab@suse.de>
8177
8178 * event-top.c (command_line_handler): Remove useless if.
8179
7e336ba1
AJ
81802002-03-27 Andreas Jaeger <aj@suse.de>
8181
8182 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8183 comment.
8184
de220d0f
ML
81852002-03-27 Michal Ludvig <mludvig@suse.cz>
8186
8187 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8188 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8189 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8190 (x86_64_linux_dr_get_status, supply_gregset),
8191 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8192 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8193 (x86_64_register_info_table): Add.
8194 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8195 (x86_64_register_raw_size, x86_64_register_virtual_type),
8196 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8197 general x86_64_register_info_table.
8198 (i386_gdbarch_init): gdbarch_register_bytes is now set
8199 dynamicaly during initialization.
8200 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8201 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8202
0e98d0a7
DJ
82032002-03-27 Daniel Jacobowitz <drow@mvista.com>
8204
8205 * gdbserver/server.c (main): Call target_signal_to_host_p
8206 and target_signal_to_host on signals received from the remote.
8207 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8208 target_signal_from_host on signals sent to the remote.
8209 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8210 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8211
3130066b
DJ
82122002-03-27 Daniel Jacobowitz <drow@mvista.com>
8213
8214 * signals/signals.c: Include "server.h" in gdbserver build.
8215 (target_signal_from_name): Don't use STREQ.
8216 (_initialize_signals): Likewise. Don't include function in
8217 gdbserver build.
8218
9aedf4f4
DJ
82192002-03-27 Daniel Jacobowitz <drow@mvista.com>
8220
8221 * signals.c: Moved to...
8222 * signals/signals.c: Here.
7e336ba1 8223 * Makefile (signals.o): Update.
9aedf4f4 8224
3fa41cdb
JL
82252002-03-26 Jeff Law (law@redhat.com)
8226
8227 * somread.c (som_symtab_read): Remove some commented out code and
8228 updated related comments. Do not set the minimal symbol table to
8229 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8230 in a dynamic executable.
8231 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8232 where we are unable to find the minimal symbol for the given
8233 PC value.
8234
ee677e8d
MS
82352002-03-25 Jeff Law (law@redhat.com)
8236
8237 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8238
e76e1718
ML
82392002-03-25 Michal Ludvig <mludvig@suse.cz>
8240
8241 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8242
18a642a1
AC
82432002-03-23 Andrew Cagney <ac131313@redhat.com>
8244
8245 * command.h: Update copyright.
8246 (struct cmd_list_element): Replace definition with opaque
8247 declaration.
8248 (enum cmd_types): Document that it will eventually be moved to
8249 cli/cli-decode.h
8250 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8251 (MALLOCED_REPLACEMENT): Delete macro.
8252 * Makefile.in (cli_decode_h): Add $(command_h).
8253 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8254 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8255 * completer.c: Include "cli/cli-decode.h".
8256 * maint.c: Include "cli/cli-decode.h".
8257 * cli/cli-decode.h: Include "command.h".
8258 (enum command_class): Delete.
8259 (enum cmd_types): Comment out.
8260 (enum cmd_auto_boolean): Delete.
8261 (enum var_types): Delete.
8262
b2875cc0
AC
82632002-03-23 Andrew Cagney <ac131313@redhat.com>
8264
8265 * cli/cli-decode.c: Include "gdb_assert.h".
8266 (add_set_or_show_cmd): New static function.
8267 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8268 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8269 all fields, such as func, from the set command.
8270
3b45974e
AC
82712002-03-23 Andrew Cagney <ac131313@redhat.com>
8272
8273 * MAINTAINERS (sh-elf): Change warning flag to -w.
8274
823ca731
AC
82752002-03-23 Andrew Cagney <cagney@redhat.com>
8276
8277 * defs.h (error): Add printf format attribute.
8278 * thread-db.c (thread_from_lwp): Fix error format string.
8279 * stack.c (parse_frame_specification): Ditto.
8280 * cli/cli-decode.c (undef_cmd_error): Ditto.
8281 * scm-lang.c (scm_lookup_name): Ditto.
8282 * tracepoint.c (trace_error): Ditto.
8283 * remote-utils.c (usage): Ditto.
8284 * remote.c (compare_sections_command): Ditto.
8285 Fix PR gdb/328.
8286
0e101458
AC
82872002-03-22 Andrew Cagney <ac131313@redhat.com>
8288
8289 * gdbtypes.c (append_composite_type_field): New function.
8290 (init_composite_type): New function.
8291 * gdbtypes.h (append_composite_type_field): Declare.
8292 (init_composite_type): Ditto.
8293
8e0662df
EZ
82942002-03-22 Elena Zannoni <ezannoni@redhat.com>
8295
8296 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8297 function.
8e0662df
EZ
8298 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8299 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8300 structure returning convention for SYSV ABI case, but not
8301 for GNU/Linux, FreeBSD, or NetBSD.
8302
3121eff0
DJ
83032002-03-22 Daniel Jacobowitz <drow@mvista.com>
8304
8305 * symtab.h (lookup_block_symbol): Add mangled_name argument
8306 to prototype.
8307
8308 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8309 with new mangled_name argument.
8310 * linespec.c (decode_line_1): Likewise.
8311 * valops (value_of_this): Likewise.
8312 * symtab.c (lookup_transparent_type): Likewise.
8313 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8314 (lookup_symbol): If we are given a mangled name, pass it down
8315 to lookup_symbol_aux.
8316 (lookup_block_symbol): If we are given a mangled name to check
8317 against, only return symbols which match it.
8318
349b409f
CF
83192002-03-22 Christopher Faylor <cgf@redhat.com>
8320
8321 * win32-nat.c (child_create_inferior): Check for proper shell to use
8322 here, in case the user changes it on the fly.
8323 (_initialize_inftarg): Remove shell path considerations.
8324
2a873819
EZ
83252002-03-21 Elena Zannoni <ezannoni@redhat.com>
8326
8327 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8328 for gdbarch_max_register_raw_size and max_register_virtual_size.
8329 Adjust copyright year.
8330
a1b9830c
DJ
83312002-03-21 Daniel Jacobowitz <drow@mvista.com>
8332
8333 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8334 in a function to cover the entire beginning of the function
8335 as well if it does not already.
8336
8b5790f2
TR
83372002-03-21 Tom Rix <trix@redhat.com>
8338
8339 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8340 (rs6000_ptrace64): Renamed from ptrace64.
8341
bdbe5747
MH
83422002-03-20 Martin M. Hunt <hunt@redhat.com>
8343
8344 * gdbserver/remote-utils.c (remote_open): Don't call
8345 getprotobyname, we're all using TCP here so just use
8346 IPPROTO_TCP.
7e336ba1 8347 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8348
83492002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8350
bdbe5747
MH
8351 * regcache.c (_initialize_regcache): No need to call
8352 build_regcache() at this time; it gets called whenever
8353 the gdbarch changes.
8354
7781cd62
DB
83552002-03-20 David O'Brien <obrien@FreeBSD.org>
8356
8357 * sparc-nat.c: Include sys/param.h where possible.
8358
f65ca430
DJ
83592002-03-20 Daniel Jacobowitz <drow@mvista.com>
8360
8361 Fix PR gdb/422.
8362 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8363 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8364 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8365 complex types.
8366 * stabsread.c (rs6000_builtin_type): Likewise.
8367 (read_sun_floating_type): Likewise.
8368
0c867556
PS
83692002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8370
8371 * stabsread.c (read_member_functions): Remove skip code for duplicate
8372 constructor/destructor methods. Use standard parsing for these
8373 methods and just do not chain them to the list of methods after
8374 parsing.
8375
12b9c64f
AO
83762002-03-19 Alexandre Oliva <aoliva@redhat.com>
8377
8378 * coffread.c: Remove redundant static declarations. Replace
8379 occurrences of `PTR' with `void *'.
8380 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8381 * top.h (quit_cover): Likewise.
8382 * defs.h (catch_errors): Likewise.
8383
349c5d5f
AC
83842002-03-18 Andrew Cagney <ac131313@redhat.com>
8385
8386 * defs.h (XMALLOC): Define.
8387 * gdb-events.sh (XMALLOC): Delete macro.
8388 * gdb-events.c, gdb-events.h: Regenerate.
8389 * gdbarch.sh (XMALLOC): Delete macro.
8390 * gdbarch.c: Regenerate.
8391 * serial.c (XMALLOC): Delete macro.
8392 * ui-file.c (XMALLOC): Ditto.
8393 * ser-unix.h (XMALLOC): Ditto.
8394 * sh-tdep.c (XMALLOC): Ditto.
8395 * ui-out.c (XMALLOC): Ditto.
8396 * utils.c (XMALLOC): Ditto.
8397 * i386-tdep.c (XMALLOC): Ditto.
8398 * gdb-events.c (XMALLOC): Ditto.
8399 * d10v-tdep.c (XMALLOC): Ditto.
8400 * cli-out.c (XMALLOC): Ditto.
8401
8402 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8403 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8404 * ui-file.c, ui-out.c: Ditto.
8405
7d0766f3
AC
84062002-03-18 Andrew Cagney <ac131313@redhat.com>
8407
8408 * command.h (struct cmd_list_element): Add field context.
8409 (set_cmd_context, get_cmd_context): Declare.
8410 * cli/cli-decode.h: Ditto.
8411 * cli/cli-decode.c (get_cmd_context): New function.
8412 (set_cmd_context): New function.
8413 (add_cmd): Initialize context.
8414 Part of fixing PR gdb/145 and PR gdb/146.
8415
5913bcb0
AC
84162002-03-17 Andrew Cagney <ac131313@redhat.com>
8417
1868c04e
AC
8418 * cli/cli-decode.c (cmd_type): New function.
8419 * command.h (cmd_type): Declare.
8420 * infrun.c (set_schedlock_func): Call function cmd_type.
8421 * kod.c (kod_set_os): Call cmd_type.
8422 * cris-tdep.c (cris_version_update): Use function cmd_type.
8423 (cris_mode_update, cris_abi_update): Ditto.
8424
5913bcb0
AC
8425 * command.h: (execute_cmd_post_hook): Declare.
8426 (execute_cmd_pre_hook): Declare.
8427 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8428 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8429 functions. Execute pre/post hook while ensuring that afterwords
8430 hook_in is cleared.
8431 * top.c (execute_command): Use execute_cmd_post_hook, and
8432 execute_cmd_pre_hook to execute pre/post commands.
8433 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8434 hook_stop_stub.
8435 (hook_stop_stub): Call execute_cmd_pre_hook.
8436
b51450c9
AC
84372002-03-17 Andrew Cagney <ac131313@redhat.com>
8438
8439 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8440 set'' and this leads to a core dump. Move xstrdup of
8441 operating_system to after check that it is not NULL.
8442
f66c9f11
AC
84432002-03-17 Andrew Cagney <ac131313@redhat.com>
8444
8e694ecf
AC
8445 * kod.c (kod_set_os): Remove unnecessary check that
8446 ``command->type'' is set_cmd.
8447
f66c9f11
AC
8448 * valprint.c (set_input_radix): Use input_radix.
8449 (set_output_radix): Use output_radix.
8450 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8451 isn't reverted.
8452
9d01611c
AC
84532002-03-16 Andrew Cagney <ac131313@redhat.com>
8454
8455 * value.h (struct value): Delete field ``substring_addr''. Change
8456 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8457 force_core_addr_align and force_pointer_aligh.
8458
8459 * value.h (struct value): Fix typo in above change.
9d01611c 8460
4156bb53
PS
84612002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8462
8463 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8464 to fix internal_error from ``maintenance print architecture''.
8465
0e5e3ea6
PS
84662002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8467
8468 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8469 for gcc versions after gcc-2.8.1.
8470
9b013045
PS
84712002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8472
8473 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8474 for method resolution. Restore adjustment of ``this'' pointer after
8475 calling value_struct_elt, which was accidentally removed during the
8476 HP merge.
8477
376c9600
AC
84782002-03-15 Andrew Cagney <ac131313@redhat.com>
8479
8480 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8481 value_of_register.
8482 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8483 get_saved_register.
8484 * value.h (value_of_register): Update.
8485
a4db0f07
RH
84862002-03-14 Richard Henderson <rth@redhat.com>
8487
8488 * configure.in: Detect declaration for canonicalize_file_name.
8489 * utils.c (canonicalize_file_name): Declare, if needed.
8490 (gdb_realpath): Prefer realpath if available and usable.
8491 * config.in, configure: Rebuild.
8492
96383835
RH
84932002-03-14 Richard Henderson <rth@redhat.com>
8494
8495 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8496 a constant array bound.
8497
8498 * MAINTAINERS: Add myself to write-after-approval.
8499
75245b24
MS
85002002-03-14 Michael Snyder <msnyder@redhat.com>
8501
8502 * symfile.c (syms_from_objfile): Return immediately if no syms.
8503 (symbol_file_add): Return immediately if no syms.
8504 (find_sym_fns): Return immediately if no syms.
8505
e641a1ca
ML
85062002-03-13 Michal Ludvig <mludvig@suse.cz>
8507
8508 * gdbserver/remote-util.c (remote_open): Print remote-side's
8509 IP address when remote debugging over the network.
7e336ba1 8510
df08bfec
DB
85112002-03-12 David O'Brien <obrien@FreeBSD.org>
8512
8513 * config/sparc/fbsd.mh: Fix copyright.
8514 * config/sparc/fbsd.mt: Likewise.
8515
9a57864f
RE
85162002-03-11 Richard Earnshaw <rearnsha@arm.com>
8517
8518 * MAINTAINERS: Fix typo in name of gdb warnings option.
8519 (x86-64): Fix formating so that this can be parsed by awk.
8520
dd7bf85e
DJ
85212002-03-10 Daniel Jacobowitz <drow@mvista.com>
8522
8523 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8524 * defs.h: Include "gdb/signals.h".
8525 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8526
33a0a2ac
ML
85272002-03-10 Michal Ludvig <mludvig@suse.cz>
8528
8529 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8530 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8531 from x86-64-tdep.h
8532
dd824b04
DJ
85332002-03-10 Daniel Jacobowitz <drow@mvista.com>
8534 Don Howard <dhoward@redhat.com>
8535
8536 * mips-tdep.c (ST0_FR): Define.
8537 (mips2_fp_compat): New function, temporarily disabled.
8538 (mips_read_fp_register_single): New function.
8539 (mips_read_fp_register_double): New function.
8540 (mips_print_register): Use them.
8541 (do_fp_register_row): Likewise.
8542
6a41ff59
AC
85432002-03-09 Andrew Cagney <ac131313@redhat.com>
8544
8545 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8546 approval''.
8547
4ea09c10
PS
85482002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8549
8550 * stabsread.c (read_member_functions): Fix is_stub test for
8551 static member functions, improve comment.
8552
6ccc741d
RE
85532002-03-07 Richard Earnshaw <rearnsha@arm.com>
8554
8555 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8556 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8557 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8558 commands that set boolean values.
8559 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8560 (arm_rdi_resume): Always initialize PC.
8561 (arm_rdi_open): Don't use rslt as a boolean.
8562 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8563 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8564 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8565 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8566
438013df
AO
85672002-03-06 Alexandre Oliva <aoliva@redhat.com>
8568
8569 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8570 * configure: Rebuilt.
8571
70ed8774
SC
85722002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8573
8574 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8575 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8576
5ba2abeb
AC
85772002-03-06 Andrew Cagney <ac131313@redhat.com>
8578
8579 * cli/cli-decode.c (set_cmd_completer): New function.
8580 * command.h (set_cmd_completer): Declare.
8581 * cli/cli-decode.h (set_cmd_completer): Ditto.
8582
8583 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8584 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8585 * win32-nat.c (_initialize_inftarg): Ditto.
8586 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8587 * proc-api.c (_initialize_proc_api): Ditto.
8588 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8589 * source.c (_initialize_source): Ditto.
8590 * exec.c (_initialize_exec): Ditto.
8591 * solib.c (_initialize_solib): Ditto.
8592 * top.c (init_main): Ditto.
8593 * tracepoint.c (_initialize_tracepoint): Ditto.
8594 * symfile.c (_initialize_symfile): Ditto.
8595 * printcmd.c (_initialize_printcmd): Ditto.
8596 * infcmd.c (_initialize_infcmd): Ditto.
8597 * corefile.c (_initialize_core): Ditto.
8598
f779ca99
AC
85992002-03-05 Andrew Cagney <ac131313@redhat.com>
8600
8601 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8602
01a3934b
AC
86032002-03-05 Andrew Cagney <ac131313@redhat.com>
8604
8605 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8606
37057839
AC
86072002-03-05 Andrew Cagney <ac131313@redhat.com>
8608
8609 * NEWS: Update headings, 5.2 has branched.
8610
c6ecbae5
DJ
86112002-03-04 Daniel Jacobowitz <drow@mvista.com>
8612
8613 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8614 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8615 (register_addr, REGISTER_RAW_SIZE): Likewise.
8616 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8617 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8618
e9f30c21
ML
86192002-03-03 Michal Ludvig <mludvig@suse.cz>
8620
8621 * MAINTAINERS (x86-64): Add myself.
8622 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8623 changed value_ptr -> struct value *
8624
54394ac3
DB
86252002-03-01 David O'Brien <obrien@FreeBSD.org>
8626
8627 * configure.host (sparc64-*-freebsd): Add.
8628 * configure.tgt: Likewise.
8629 * config/sparc/fbsd.mh: New file.
8630 * config/sparc/fbsd.mt: Likewise.
8631 * config/sparc/nm-fbsd.h: Likewise.
8632 * config/sparc/tm-fbsd.h: Likewise.
8633
bfe95955
DJ
86342002-03-01 Daniel Jacobowitz <drow@mvista.com>
8635
8636 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8637 regformats/reg-s390x.dat.
8638
f33c6cbf
AC
86392002-03-01 Andrew Cagney <ac131313@redhat.com>
8640
8641 * utils.c: Add FIXME explaining true/false problem.
8642
5ecaa7dd
AC
86432002-02-28 Andrew Cagney <ac131313@redhat.com>
8644
8645 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8646
2a251cc2
MC
86472002-02-28 Michael Chastain <mec@shout.net>
8648
8649 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8650
6a8031a3 86512002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8652
8653 * gdbserver/linux-s390-low.c: New file.
8654 * regformats/reg-s390.dat: New file.
8655 * regformats/reg-s390x.dat: New file.
8656 * gdbserver/configure.srv: Add S/390.
8657 * gdbserver/Makefile.in: Add S/390.
8658 * configure.tgt: Enable gdbserver for S/390.
8659
ac469903
EZ
86602002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8661
8662 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8663 first line of the doc string for "info dos", except at the end of
8664 the sentence, since the short help stops at the first period.
8665
985cb1a3
JM
86662002-02-28 Jason Merrill <jason@redhat.com>
8667
8668 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8669
c570663e
FF
86702002-02-27 Fred Fish <fnf@redhat.com>
8671
8672 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8673 comment (dumy -> dummy).
8674
43630227
PS
86752002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8676
8677 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8678
b84911e8
RB
86792002-02-27 Rodney Brown <rbrown64@csc.com.au>
8680
8681 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8682
58caa3dc
DJ
86832002-02-27 Daniel Jacobowitz <drow@mvista.com>
8684
8685 * gdbserver/acconfig.h: New file.
8686 * gdbserver/i387-fp.c: New file.
8687 * gdbserver/i387-fp.h: New file.
8688 * gdbserver/linux-x86-64.c: New file.
8689 * regformats/reg-x86-64.dat: New file.
8690 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8691 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8692 * gdbserver/configure.in: Add support for regsets.
8693 * gdbserver/config.in: Regenerate.
8694 * gdbserver/configure: Regenerate.
8695 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8696 * gdbserver/linux-low.h: New file.
8697 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8698 for regsets.
8699 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8700 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8701 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8702 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8703 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8704 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8705 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8706 "i387-fp.h". Add PTRACE_GETREGS and friends.
8707 * gdbserver/regcache.c (supply_register): New function.
8708 (supply_register_by_name): New function.
8709 (collect_register): New function.
8710 (collect_register_by_name): New function.
8711
93652174
DJ
87122002-02-27 Daniel Jacobowitz <drow@mvista.com>
8713
8714 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8715 (config.status): Add configure.srv dependency.
8716 (server_h): Add config.h dependency.
8717
a02e4a61
DJ
87182002-02-27 Daniel Jacobowitz <drow@mvista.com>
8719
8720 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8721 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8722 * gdbserver/configure.srv: Change i386-*-linux* to use
8723 reg-i386-linux.o.
8724
ce0eebec
AC
87252002-02-26 Andrew Cagney <ac131313@redhat.com>
8726
8727 * x86-64-tdep.c: Re-indent. Update copyright date.
8728
82dbc5f7
AC
87292002-02-26 Andrew Cagney <ac131313@redhat.com>
8730
8731 From Michal Ludvig <mludvig@suse.cz>:
8732 * x86-64-tdep.c (value.h): Delete.
8733 (gdb_assert.h): Include.
8734 (x86_64_register_convert_to_virtual,
8735 x86_64_register_convert_to_raw ): Add check which lets only
8736 floating-point values to be converted.
8737 (value_push): Delete.
8738 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8739 (i386_gdbarch_init): Number of register_bytes fixed.
8740
e4621584
AC
87412002-02-26 Andrew Cagney <ac131313@redhat.com>
8742
8743 * MAINTAINERS: Add x86-64 target.
8744
81a9a963
AC
87452002-02-26 Andrew Cagney <ac131313@redhat.com>
8746
8747 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8748 * osfsolib.c (solib_map_sections): Ditto.
8749 * irix5-nat.c (solib_map_sections): Ditto.
8750 * corelow.c (gdb_check_format): Ditto.
8751 * symfile.c (symfile_bfd_open): Ditto.
8752 * solib.c (solib_map_sections): Ditto.
8753 Fix PR gdb/354.
7e336ba1 8754
0f017ab9
AC
87552002-02-26 Andrew Cagney <ac131313@redhat.com>
8756
8757 * remote.c (_initialize_remote): By default, disable ``e'' and
8758 ``E'' step out-of-range packets.
8759
75738c29
AS
87602002-02-26 Andreas Schwab <schwab@suse.de>
8761
8762 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8763 m68k_linux_frame_saved_pc.
8764 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8765 in_sigtramp.
8766 (SIGCONTEXT_PC_OFFSET): Remove.
8767 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8768 m68k_linux_sigtramp_saved_pc): New functions.
8769 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8770 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8771 (UCONTEXT_PC_OFFSET): Define.
8772 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8773 non-RT and RT signal trampolines.
8774
7e8ed687
RE
87752002-02-26 Richard Earnshaw <rearnsha@arm.com>
8776
8777 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8778 (TARGET_NBPG, STACK_END_ADDR): Delete
8779 (VARIABLES_INSIDE_BLOCK): Delete.
8780
6972bc8b
AC
87812002-02-25 Andrew Cagney <ac131313@redhat.com>
8782
8783 * utils.c (perror_with_name): Make string parameter constant.
8784 (print_sys_errmsg): Ditto.
8785 (query): Ditto.
8786 * defs.h (perror_with_name): Update.
8787 (print_sys_errmsg): Update.
8788 (query): Update.
8789
aa32f823
DJ
87902002-02-25 Daniel Jacobowitz <drow@mvista.com>
8791
8792 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8793 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8794
19caaa45
PS
87952002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8796
8797 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8798 if it already matches the current architecture from the exec file.
8799 Include arch-utils.h for gdbarch_info_init prototype.
8800 * Makefile.in (rs6000-nat.o): Update dependencies.
8801
d951901f
EZ
88022002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8803
8804 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8805 list of exported variables.
8806
7ea81414
DJ
88072002-02-24 Daniel Jacobowitz <drow@mvista.com>
8808
8809 * gdbserver/configure.srv: New file.
8810 * gdbserver/configure.in: Use configure.srv instead
8811 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8812 from it.
8813 * gdbserver/configure: Regenerated.
8814 * gdbserver/terminal.h: New file.
8815 * gdbserver/Makefile.in: Update for configure changes. Remove
8816 more unneeded include paths.
8817
080fe24b
AC
88182002-02-24 Andrew Cagney <ac131313@redhat.com>
8819
8820 From wiz at danbala:
8821 * config/sparc/tm-sp64.h: Fix grammar and typos.
8822 Fix PR gdb/287.
8823
8605d56e
AC
88242002-02-24 Andrew Cagney <ac131313@redhat.com>
8825
8826 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8827 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8828 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8829 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8830 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8831 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8832 * s390-tdep.c: Ditto.
92362027
AC
8833 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8834 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8835 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8836 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8837 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8838 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8839 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8840 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8841 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8842 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8843 Fix PR gdb/378.
7e336ba1 8844
8ed32cc0
AC
88452002-02-23 Andrew Cagney <ac131313@redhat.com>
8846
a3007b6f
AC
8847 * lin-thread.c: Delete file.
8848 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8849 to gdb_proc_service.h.
8850 * configure: Re-generate.
8851
50a9e2f1
AC
8852 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8853 * serial.c (serial_open): Delete check for "ocd".
8854 Fix PR gdb/349.
8855
8b6e7932
AC
8856 * Makefile.in (linux-thread.o): Delete target.
8857 * linux-thread.c: Delete file.
8858
d155c46b
AC
8859 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8860 renamed SH files to be consistent.
8861
8ed32cc0
AC
8862 * symtab.c (sort_search_symbols): Use xfree.
8863
0e18d038
RE
88642002-02-23 Richard Earnshaw <rearnsha@arm.com>
8865
8866 * arm-linux-tdep.c (arm_linux_init_abi): Register
8867 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8868 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8869 definition with undef, since we don't want the sysvr4 definition.
8870 (SKIP_TRAMPOLINE_CODE): Likewise.
8871
27aac7ff
AC
88722002-02-23 Andrew Cagney <ac131313@redhat.com>
8873
8874 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8875
8876 * configure.in: (AC_CHECK_FUNCS) Added test for
8877 canonicalize_file_name Regenerated.
8878 * config.in, configure: Regenerated.
8879 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8880 defined use canonicalize_file_name.
7e336ba1 8881
65a6e0ee
MC
88822002-02-23 Michael Chastain <mec@shout.net>
8883
8884 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8885
47b95330
AC
88862002-02-23 Andrew Cagney <ac131313@redhat.com>
8887
8888 * README: Remove references to cygnus.com.
8889 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8890 dot com'' form. Remove references to cygnus.com and sourceware.
8891
696f451b
AC
88922002-02-23 Andrew Cagney <ac131313@redhat.com>
8893
8894 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8895 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8896 1003.1-2001 no longer allows "head -1".
8897 * gdb/Makefile.in (version.c): Likewise.
8898 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8899 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8900 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8901
bbaca940
AC
89022002-02-23 Andrew Cagney <ac131313@redhat.com>
8903
8904 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8905 * command.h (cmd_cfunc_eq): Declare.
8906 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8907
8908 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8909 ``struct cmd_list_element *''.
8910 * cli/cli-cmds.c (is_complete_command): Update. Use
8911 cmd_cfunc_eq.
8912 * top.c (execute_command): Pass the command to
8913 is_complete_command.
8914 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8915
b8b8b047
AC
89162002-02-23 Andrew Cagney <ac131313@redhat.com>
8917
8918 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8919 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8920 architecture defines.
8921 * s390-tdep.c (s390_gdbarch_init): Likewise.
8922
19d3fc80
RE
89232002-02-23 Richard Earnshaw <rearnsha@arm.com>
8924
8925 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8926 (arm_linux_push_arguments): Likewise.
8927 (arm_linux_init_abi): Register them. Also register linux-specific
8928 call_dummy_words.
8929 (find_minsym_and_objfile): Use strcmp, not STREQ.
8930 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8931 (arm_linux_call_dummy_words): Delete declaration.
8932 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8933 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8934 declarations.
8935 (LOWEST_PC): Delete.
8936
3ab13650
PS
89372002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8938
8939 * maint.c (print_section_info): Do not prepend `0x' to filepos
8940 output, it will be handled by local_hex_string_custom.
8941
19d3fc80 89422002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8943
8944 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8945 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8946 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8947
d85a5daf
JB
89482002-02-22 Jim Blandy <jimb@redhat.com>
8949
8950 Indicate that the bcache functions don't change the strings
8951 they're passed.
8952 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8953 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8954
eeb25b8a
PM
89552002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8956
8957 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8958
6badb179
CF
89592002-02-21 Christopher Faylor <cgf@redhat.com>
8960
8961 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8962 find the complete path to a loaded DLL.
8963
e8717518
FF
89642002-02-21 Fred Fish <fnf@redhat.com>
8965
8966 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8967 that marks the end of the range of a function, enter a line number
8968 entry that has a line number of zero and a PC offset that matches
8969 the end of the function. This starts a range of PC's for which no
8970 line number information is known.
8971 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8972 PC's for which no line number info is found (line number is zero)
8973 then we didn't find any valid line information.
8974 * symtab.h: Document use of zero line number entry.
8975
9abe5450
EZ
89762002-02-21 Elena Zannoni <ezannoni@redhat.com>
8977
8978 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8979 (have_ptrace_getvrregs): Define for run time checks.
8980 (gdb_vrregset_t): New type for Altivec register handling.
8981 (fetch_register, store_register): Fetch/store altivec register
8982 when needed.
8983 (fetch_altivec_register, store_altivec_register): New functions.
8984 (supply_vrregset, fill_vrregset): New functions.
8985 (fetch_altivec_registers, store_altivec_registers): New functions.
8986 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8987 registers as well.
8988
aaa38bb5
AJ
89892002-02-21 Jiri Smid <smid@suse.cz>
8990
8991 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8992
b34db576
RE
89932002-02-21 Richard Earnshaw <rearnsha@arm.com>
8994
8995 * Makefile.in (armnbsd-nat.o): Update dependencies.
8996 * armnbsd-nat.c (supply_gregset): New function. Common code to
8997 supply the integer register set.
8998 (supply_fparegset): New function. Similar for FPA registers.
8999 (fetch_regs, fetch_fp_regs): Use them.
9000 (fetch_core_registers): Likewise.
9001 (fetch_elfcore_registers): New function.
9002 (arm_netbsd_elfcore_fns): New core-file type specification.
9003 (_initialize_arm_netbsd_nat): Register it.
9004
3e56fc4b
RE
90052002-02-21 Richard Earnshaw <rearnsha@arm.com>
9006
9007 * armnbsd-nat.c: Include gdbcore.h.
9008 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9009 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9010 'void' to declaration, to shut up ARI.
9011 (fetch_core_registers): Make static. Rewrite using supply_register.
9012 (arm_netbsd_core_fns): New core-file type specification.
9013 (_initialize_arm_netbsd_nat): New function.
9014
097f6b0b
CF
90152002-02-21 Christopher Faylor <cgf@redhat.com>
9016
9017 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9018 value.
9019
c914e0cc
CF
90202002-02-20 Christopher Faylor <cgf@redhat.com>
9021
9022 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9023 fails.
9024
385fa495
DJ
90252002-02-20 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * jv-exp.y (parse_number): Change type of implicit longs
9028 to builtin_type_uint64.
9029
e5f1222d
DJ
90302002-02-20 Daniel Jacobowitz <drow@mvista.com>
9031
9032 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9033 to be an integer instead of a `union wait'.
9034
75c9abc6
DJ
90352002-02-20 Daniel Jacobowitz <drow@mvista.com>
9036
9037 * mips-linux-nat.c: Call the operating system GNU/Linux.
9038 * mips-linux-tdep.c: Likewise.
9039 * mips-tdep.c: Likewise.
9040
551792a5
DJ
90412002-02-20 Daniel Jacobowitz <drow@mvista.com>
9042
9043 Fix PR gdb/265.
9044 * jv-exp.y (parse_number): Handle 64-bit integers.
9045
ee6e2b82
DJ
90462002-02-20 Daniel Jacobowitz <drow@mvista.com>
9047
9048 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9049 AC_STDC_HEADERS to AC_HEADER_STDC.
9050 * gdbserver/configure: Regenerated.
9051
a48442a0
RE
90522002-02-20 Richard Earnshaw <rearnsha@arm.com>
9053
9054 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9055 is defined.
9056 * sparc-tdep.c (get_longjmp_target): Likewise.
9057
fe419ffc
RE
90582002-02-20 Richard Earnshaw <rearnsha@arm.com>
9059
9060 * News: Add news about ARM and Multi-arch. Mention the new target
9061 arm*-*-netbsd*.
9062
5832ed7e
JB
90632002-02-19 Jim Blandy <jimb@redhat.com>
9064
9065 * stabsread.c (error_type_complaint): Improve error message.
9066
84563040
DJ
90672002-02-19 Daniel Jacobowitz <drow@mvista.com>
9068
9069 * gdbserver/README: Update documentation.
9070 * gdbserver/configure.in: Update configury to match documentation.
9071 * gdbserver/Makefile.in: Likewise.
9072 * gdbserver/configure: Regenerated.
9073 * gdbserver/aclocal.m4: New file, generated by aclocal.
9074 * gdbserver/config.in: New file, generated by autoheader.
9075
375fd65b
RE
90762002-02-19 Richard Earnshaw <rearnsha@arm.com>
9077
9078 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9079 armnbsd-nat.c.
9080
08216dd7
RE
90812002-02-19 Richard Earnshaw <rearnsha@arm.com>
9082
9083 * arm-tdep.h (enum arm_float_model): New enum.
9084 (struct gdbarch_tdep): Add fp_model.
9085 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9086 up floating-point conversions until we know the floating-point model
9087 in use by the inferior. Don't complain about being unable to
9088 determine the ABI of the inferior when we don't have one.
9089 (arm_extract_return_value): Support different floating-point models.
9090 (arm_store_return_value): Likewise.
aaa38bb5 9091 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9092 ARM_FLOAT_SOFT.
9093 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9094
65d6d66a
PS
90952002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9096
9097 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9098 of ``current_gdbarch''.
9099
47221191
RE
91002002-02-19 Richard Earnshaw <rearnsha@arm.com>
9101
9102 * armnbsd-nat.c : ANSIfy all function declarations.
9103 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9104 (fetch_inferior_registers): Re-implement in terms of above.
9105 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9106 (store_inferior_registers): Re-implement in terms of above.
9107
fdf39c9a
RE
91082002-02-19 Richard Earnshaw <rearnsha@arm.com>
9109
aaa38bb5 9110 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9111 kernel.
9112 * arm-linux-tdep.c: Likewise.
9113 * config/arm/tm-linux.h: Likewise.
9114
93247f88
RE
91152002-02-19 Richard Earnshaw <rearnsha@arm.com>
9116
9117 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9118 * config/arm/nbsd.mt (TM_FILE): Delete.
9119 * config/arm/tm-nbsd.h: Delete.
9120
d7b486e7
RE
91212002-02-19 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9124 Initialize CALL_DUMMY_LENGTH.
9125
41d39a95
RE
91262002-02-19 Richard Earnshaw <rearnsha@arm.com>
9127
9128 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9129 function.
9130 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9131 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9132 defines one thing and that is incorrect for this port.
9133 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9134
e1195560
PM
91352002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9136
9137 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9138
c1748f97
PM
91392002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9140
9141 * win32-nat.c (display_selector): New function. Displays information
9142 about the information returned by GetThreadSelectorEntry API function.
9143 (display_selectors): New function. Displays the infomation of
9144 the selector given as argument, or of CS, DS ans FS selectors
9145 if no argument is given.
9146 ( _initialize_inftarg): Add "w32" as info prefix command.
9147 Add "info w32 selector" as command calling display_selectors.
9148
e41e6bbf
PM
91492002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9150
9151 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9152 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9153 if not defined.
9154
0d3a9f48
RE
91552002-02-18 Richard Earnshaw <rearnsha@arm.com>
9156
9157 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9158
3fb4b924
RE
91592002-02-18 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9162 (arm_fix_call_dummy): Call it.
9163 (arm_call_dummy_breakpoint_offset): Delete.
9164 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9165 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9166
7f55af32
AC
91672002-02-18 Andrew Cagney <ac131313@redhat.com>
9168
9169 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9170 Default to func_frame_chain_valid.
9171 * gdbarch.h, gdbarch.c: Re-generate.
9172 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9173
05f13b9c
EZ
91742002-02-18 Elena Zannoni <ezannoni@redhat.com>
9175
9176 * ppc-linux-nat.c: Update copyright.
9177 (fetch_register, store_register): Add tid parameter, don't compute
9178 tid here.
9179 (fetch_ppc_registers, store_ppc_registers): Add tid
9180 parameter. Pass it along to callees.
9181 (fetch_inferior_registers, store_inferior_registers): Compute tid
9182 here, and pass it to calleed functions.
9183 (fill_gregset, supply_fpregset): Clean up formatting.
9184
d7afb4c9
RE
91852002-02-18 Richard Earnshaw <rearnsha@arm.com>
9186
9187 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9188 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9189
9df628e0
RE
91902002-02-18 Richard Earnshaw <rearnsha@arm.com>
9191
9192 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9193 * gdbarch.c gdbarch.h: Regenerate.
9194 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9195 function.
9196 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9197 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9198 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9199
9200 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9201 * arm-tdep.c (arm_get_longjmp_target): New function.
9202 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9203 this to a positive value register arm_get_longjmp_target as the
9204 longjmp handler.
9205 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9206 (arm_linux_init_abi): Set up longjmp description in tdep.
9207 * armnbsd-nat.c (get_longjmp_target): Delete.
9208 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9209 description in tdep.
9210 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9211 (get_longjmp_target): Delete declaration.
9212 (GET_LONGJMP_TARGET): Delete.
9213 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9214 (GET_LONGJMP_TARGET): Delete.
9215
57bc8964
KB
92162002-02-17 Kevin Buettner <kevinb@redhat.com>
9217
9218 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9219 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9220 of ``current_gdbarch''.
9221
83d31a92
TT
92222002-02-17 Tom Tromey <tromey@redhat.com>
9223
9224 * cli/cli-cmds.c (compare_strings): New function.
9225 (complete_command): Only print each unique item once.
9226 * completer.h (complete_line): Declare.
9227 * completer.c (complete_line): New function.
9228 (line_completion_function): Use it.
9229
17ef5d92
AC
92302002-02-16 Andrew Cagney <ac131313@redhat.com>
9231
9232 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9233 * gdbarch.h, gdbarch.c: Re-generate.
9234
491b8946
DJ
92352002-02-16 Daniel Jacobowitz <drow@mvista.com>
9236
9237 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9238
92392002-02-16 Daniel Jacobowitz <drow@mvista.com>
9240
9241 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9242 * valops.c (value_arg_coerce): Don't take the address of a reference
9243 to convert an argument to a reference.
9244
dfe7f3ac
CF
92452002-02-15 Christopher Faylor <cgf@redhat.com>
9246
9247 * win32-nat.c (get_image_name): New function.
9248 (handle_load_dll): Use get_image_name function.
9249 (get_child_debug_event): Avoid registering debug events until possibly
9250 execed process is started.
9251 (child_create_inferior): Allow invocation via shell so that command
9252 line redirection, etc. works ok.
9253 (_initialize_inftarg): Add new command: "set shell" to control whether
9254 a shell is used to start a process.
9255
1d33e73a
DJ
92562002-02-15 Daniel Jacobowitz <drow@mvista.com>
9257
9258 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9259 instead of find_register_by_number.
9260 (cannot_store_register): Likewise.
9261
48cd0caa
PM
92622002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9263
aaa38bb5 9264 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9265 fprintf_unfiltered (gdb_stderr, ...).
9266
8656e7d8
DJ
92672002-02-15 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * gdbserver/gdbserver.1: Document --attach.
9270
66e810cd
RE
92712002-02-15 Richard Earnshaw <rearnsha@arm.com>
9272
9273 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9274 descriptions.
9275 * arm-tdep.c (arm_default_arm_le_breakpoint)
9276 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9277 (arm_default_thumb_be_breakpoint): New. Initialize them from
9278 traditional breakpoint defines.
9279 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9280 (arm_gdbarch_init): Initialize new breakpoint variables.
9281 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9282 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9283 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9284 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9285 code out to ...
9286 (arm_netbsd_init_abi_common): ... here; new function.
9287 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9288 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9289 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9290 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9291
97e03143
RE
92922002-02-15 Richard Earnshaw <rearnsha@arm.com>
9293
9294 * arm-tdep.h (enum arm_abi): New enum.
9295 (struct gdbarch_tdep): New structure.
9296 (LOWEST_PC): Provide a default.
9297 (arm_gdbarch_register_os_abi): Declare new function.
9298 * arm-tdep.c (arm_abi_names): New array.
9299 (process_note_abi_tag_sections): New function.
9300 (get_elfosabi): New function.
9301 (arm_gdbarch_register_os_abi): New function.
9302 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9303 support for that ABI has been built in, then call the appropriate
9304 configuration routine. Use gdbarch_num_regs() to get the number
9305 of registers.
9306 (arm_dump_tdep): New function.
9307 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9308 place-holder functions.
9309 (_initialize_arm_tdep): Register them.
9310 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9311
9312 * armnbsd-tdep.c: New file.
9313 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9314 * config/arm/nbsd.mt (TDEPFILES): Add it.
9315 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9316
9317 * armnbsd-nat.c: Include regcache.h.
9318 * Makefile.in (armnbsd-nat.o): Update dependency list.
9319
9320 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9321
ad68be46
DJ
93222002-02-14 Daniel Jacobowitz <drow@mvista.com>
9323
9324 * gdbserver/Makefile.in: Fix typos in target rules.
9325
003d6d1d
DJ
93262002-02-14 Daniel Jacobowitz <drow@mvista.com>
9327
aaa38bb5 9328 Fix part of PR gdb/267.
003d6d1d
DJ
9329 * linespec.c (find_methods): Handle constructors specially for now.
9330
6b230f1b
CV
93312002-02-14 Corinna Vinschen <vinschen@redhat.com>
9332
9333 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9334 handling.
9335 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9336 standard_coerce_float_to_double().
9337
1ea98d12
CF
93382002-02-14 Christopher Faylor <cgf@redhat.com>
9339
9340 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9341 GDBINIT_FILENAME.
9342
dd47e6fd
EZ
93432002-02-14 Elena Zannoni <ezannoni@redhat.com>
9344
9345 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9346 find_variant_by_name, because it confuses the multiarch
9347 framework. Return NULL if there isn't an architecture with the
9348 user supplied name, instead of forcing a different one without
9349 recording the change with the multiarch machinery.
9350 (find_variant_by_name): Delete.
9351
d7e39b9e
PS
93522002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9353
9354 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9355 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9356
76e42a4f
MH
93572002-02-13 Martin M. Hunt <hunt@redhat.com>
9358
aaa38bb5 9359 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9360 print_frame_info_listing_hook, set current_source_symtab.
9361
0a30fbc4
DJ
93622002-02-14 Daniel Jacobowitz <drow@mvista.com>
9363
9364 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9365 and remove unused $(INCLUDE_DIR).
9366 Add regcache.c to OBS.
9367 Add generated register protocol files to clean target.
9368 Update dependencies for new objects, obsolete old target code.
9369
9370 * gdbserver/linux-low.c: Remove all platform-specific code to
9371 new files. Remove various dead code. Update to use regcache
9372 functionality.
9373 * gdbserver/remote-utils.c (fromhex): Add return statement
9374 to quiet warning.
9375 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9376 constant.
9377 (input_interrupt): Add integer parameter to match prototype
9378 of a signal handler.
9379 (outreg): Use register_data ().
9380 (prepare_resume_reply): Use gdbserver_expedite_regs.
9381 * gdbserver/server.c (main): Dynamically allocate own_buf because
9382 PBUFSIZ is no longer constant. Use registers_to_string () and
9383 registers_from_string ().
9384 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9385 for error (), fatal (), and warning (). Update definition of
9386 PBUFSIZ to use regcache functionality. Add include guard.
9387 * gdbserver/utils.c (fatal): Add missing ``const''.
9388 (warning): New function.
9389
9390 * regformats/regdat.sh: Include "regcache.h" in generated files.
9391 Provide init_registers () function.
9392 * regformats/regdef.h: Add prototype for set_register_cache ().
9393 Add include guard.
9394
9395 * gdbserver/linux-arm-low.c: New file.
9396 * gdbserver/linux-i386-low.c: New file.
9397 * gdbserver/linux-ia64-low.c: New file.
9398 * gdbserver/linux-m68k-low.c: New file.
9399 * gdbserver/linux-mips-low.c: New file.
9400 * gdbserver/linux-ppc-low.c: New file.
9401 * gdbserver/linux-sh-low.c: New file.
9402
9403 * gdbserver/regcache.c: New file.
9404 * gdbserver/regcache.h: New file.
9405
9406 * gdbserver/low-linux.c: Removed obsolete file.
9407
4cc841d0
DJ
94082002-02-14 Daniel Jacobowitz <drow@mvista.com>
9409
9410 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9411 * config/i386/linux.mt: Likewise.
9412 * config/ia64/linux.mt: Likewise.
9413 * config/m68k/linux.mh: Likewise.
9414 * config/powerpc/linux.mh: Likewise.
9415 * config/mips/linux.mt: Likewise.
9416
9417 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9418
9419 * config/i386/i386lynx.mh: Mark gdbserver variables
9420 as (currently) obsolete for this target.
9421 * config/i386/nbsd.mt: Likewise.
9422 * config/i386/nbsdelf.mt: Likewise.
9423 * config/m32r/m32r.mt: Likewise.
9424 * config/m68k/m68klynx.mh: Likewise.
9425 * config/m68k/nbsd.mt: Likewise.
9426 * config/m68k/sun3os4.mh: Likewise.
9427 * config/mips/vr5000.mt: Likewise.
9428 * config/ns32k/nbsd.mt: Likewise.
9429 * config/pa/hppabsd.mh: Likewise.
9430 * config/pa/hppaosf.mh: Likewise.
9431 * config/powerpc/nbsd.mt: Likewise.
9432 * config/rs6000/rs6000lynx.mh: Likewise.
9433 * config/s390/s390.mt: Likewise.
9434 * config/s390/s390x.mt: Likewise.
9435 * config/sparc/sparclynx.mh: Likewise.
9436 * config/sparc/sun4os4.mh: Likewise.
9437 * config/i386/x86-64linux.mt: Likewise.
9438 * config/sparc/linux.mh: Likewise.
9439
a85f51e7
DJ
94402002-02-14 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * configure.tgt: Configure gdbserver only for known working
9443 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9444 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9445 SUBDIRS if it is configured. Update comment for ${nativefile}.
9446 * configure: Regenerated.
9447
65554fef
MS
94482002-02-13 Michael Snyder <msnyder@redhat.com>
9449
670a52db
MS
9450 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9451
6dbdc4a3
MS
9452 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9453 (default_gcore_mach): Just return 0, work around a problem in bfd.
9454 (default_gcore_target): OK to return NULL if exec_bfd is null.
9455 (make_mem_sec): Use a cast, avoid a warning.
9456
9457 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9458 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9459 sizeof (host pointer) != sizeof (target pointer)).
9460 (procfs_make_note_section): Avoid overflow in psargs string.
9461
aaa38bb5 9462 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9463 implementation return an error.
9464
94652002-02-13 Rodney Brown <rbrown64@csc.com.au>
9466
9467 * procfs.c (procfs_make_note_section): Provide a default definition
9468 (for alpha-dec-osf4.0f). Fix typos.
9469
1e4d76e7
EZ
94702002-02-13 Elena Zannoni <ezannoni@redhat.com>
9471
9472 * linux-proc.c: Add include of regcache.h.
9473 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9474
b6d1a1d5
AC
94752002-02-13 Andrew Cagney <ac131313@redhat.com>
9476
9477 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9478 * memattr.c (create_mem_region): Disallow useless empty region.
9479 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9480 non-overlapping.
b6d1a1d5 9481
6c6ea35e
MC
94822002-02-13 Michael Chastain <mec@shout.net>
9483
9484 * defs.h: Kill CONST_PTR.
9485 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9486 * c-lang.c (c_builtin_types): Likewise.
9487 * ch-lang.c (ch_builtin_types): Likewise.
9488 * f-lang.c (f_builtin_types): Likewise.
9489 * language.c (unknown_builtin_types): Likewise.
9490 * m2-lang.c (m2_builtin_types): Likewise.
9491 * p-lang.c (pascal_builtin_types): Likewise.
9492 * scm-lang.c (c_builtin_types): Likewise.
9493
3e0b0f48
KS
94942002-02-13 Keith Seitz <keiths@redhat.com>
9495
9496 * arm-tdep.h (arm_get_next_pc): Add declaration.
9497
67255d04
RE
94982002-02-13 Richard Earnshaw <rearnsha@arm.com>
9499
9500 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9501 with other related struct-returning functions.
9502 (arm_extract_struct_value_address): New function.
9503 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9504 initialize float_format, double_format and long_double_format as
9505 appropriate to the endianness of the target.
9506 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9507 (arm_use_struct_convention): Delete declaration.
9508 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9509
079777f6
KS
95102002-02-13 Keith Seitz <keiths@redhat.com>
9511
9512 * defs.h (core_addr_to_string_nz): New function.
9513
34588f23
MK
95142002-02-13 Mark Kettenis <kettenis@gnu.org>
9515
9516 Apply missing bits of 2002-01-15 patch.
9517 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9518 (fill_fpregset): Use i387_fill_fsave.
9519
49b563f9
KS
95202002-02-12 Keith Seitz <keiths@redhat.com>
9521
49b563f9
KS
9522 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9523 (core_addr_to_string_nz): New function.
9524
aeb98c60
RE
95252002-02-11 Richard Earnshaw <rearnsha@arm.com>
9526
9527 * arm-linux-nat.c: Really include arm-tdep.h.
9528 * config/arm/tm-linux.h (struct type, struct value): Declare.
9529
65554fef
MS
95302002-02-11 Michael Snyder <msnyder@redhat.com>
9531
9532 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9533 (gcore section): Ifdef for Solaris and Unixware only.
9534 (procfs_do_thread_registers): Unixware needs one lwpstatus
9535 per thread (not one prstatus or pstatus).
9536 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9537 not over all gdb threads. For unixware, call elfcore_write_pstatus
9538 once before iterating over threads.
9539
34e8f22d
RE
95402002-02-11 Richard Earnshaw <rearnsha@arm.com>
9541
9542 * arm-tdep.h: New file.
9543 * arm-tdep.c: Include arm-tdep.h.
9544 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9545 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9546 (arm_print_float_info, arm_register_type, convert_to_extended)
9547 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9548 (arm_extract_return_value, arm_register_name): Make static.
9549 (arm_software_single_step): Similarly. Fix types in declaration.
9550 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9551 (arm_store_return_value, arm_store_struct_return): New functions.
9552 (arm_gdbarch_init): Register the above functions. Also register
9553 call_dummy_start_offset, sizeof_call_dummy_words,
9554 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9555 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9556 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9557 prologue_cache.saved_regs here, rather than ...
9558 (_initialize_arm_tdep): ... here.
9559 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9560 declarations.
9561 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9562 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9563 (arm_print_float_info, arm_register_type, convert_to_extended)
9564 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9565 (arm_extract_return_value, arm_register_name): Delete declarations.
9566 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9567 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9568 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9569 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9570 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9571 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9572 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9573 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9574 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9575 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9576 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9577 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9578 interface.
9579 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9580 * remote-rdi.c remote-rdp.c: Likewise.
9581 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9582 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9583 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9584 definition.
9585
9586 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9587 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9588 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9589 from non-ARM_ prefixed definitions.
9590 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9591 all uses of above.
9592 * remote-rdi.c remote-rdp.c: Likewise.
9593 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9594
148754e5
RE
95952002-02-11 Richard Earnshaw <rearnsha@arm.com>
9596
9597 * arm-tdep.c (arm_frameless_function_invocation)
9598 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9599 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9600 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9601 (arm_pop_frame, arm_get_next_pc): Make static.
9602 (arm_gdbarch_init): Register above in gdbarch structure.
9603 (arm_read_fp): Renamed from arm_target_read_fp.
9604 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9605 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9606 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9607 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9608 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9609 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9610 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9611 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9612 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9613 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9614 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9615
434d2d4f
DJ
96162002-02-10 Daniel Jacobowitz <drow@mvista.com>
9617
9618 * symtab.c (compare_search_syms): New function.
9619 (sort_search_symbols): New function.
9620 (search_symbols): Sort symbols after searching rather than
9621 before.
9622
55241689
AC
96232002-02-10 Andrew Cagney <ac131313@redhat.com>
9624
9625 * NEWS: Linux -> GNU/Linux.
9626
028c194b
AC
96272002-02-10 Andrew Cagney <ac131313@redhat.com>
9628
9629 * gdbarch.sh: For for level one methods, disallow a definition
9630 when partially multi-arched. Add comments explaining rationale.
9631 * gdbarch.h: Re-generate.
9632
6acf50cd
AC
96332002-02-10 Andrew Cagney <ac131313@redhat.com>
9634
9635 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9636 multi-arch partial.
aaa38bb5 9637
50248794
AC
96382002-02-10 Andrew Cagney <ac131313@redhat.com>
9639
9640 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9641 field. Use diff -u.
9642 * gdbarch.c: Re-generate.
9643
c30e0066
AC
96442002-02-10 Andrew Cagney <ac131313@redhat.com>
9645
9b56c5f3 9646 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9647 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9648 partial.
9649
6e6d6484
AC
96502002-02-10 Andrew Cagney <ac131313@redhat.com>
9651
9652 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9653 multi-arch partial.
9654 (PUSH_ARGUMENTS): Switch to using predefault.
9655 * gdbarch.c: Regenerate.
9656
c203844d
AC
96572002-02-10 Andrew Cagney <ac131313@redhat.com>
9658
9659 * valops.c (PUSH_ARGUMENTS): Delete definition.
9660 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9661 partial. Default to default_push_arguments.
9662 * gdbarch.h, gdbarch.c: Regenerate.
9663
b5a2688f
AC
96642002-02-09 Andrew Cagney <ac131313@redhat.com>
9665
9666 * defs.h (throw_exception): Rename return_to_top_level. Update
9667 comments.
9668 * utils.c (error_stream, internal_verror, quit): Ditto.
9669 * top.c (throw_exception, catcher): Ditto.
9670 * sparclet-rom.c (sparclet_load): Ditto.
9671 * remote.c (interrupt_query, minitelnet): Ditto.
9672 * remote-sds.c (interrupt_query): Ditto.
9673 * remote-mips.c (mips_error, mips_kill): Ditto.
9674 * ocd.c (interrupt_query): Ditto.
9675 * monitor.c (monitor_interrupt_query): Ditto.
9676 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9677 * target.h: Update comment.
aaa38bb5 9678
b5a2688f 9679 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9680
2fa5c1e0
AC
96812002-02-09 Andrew Cagney <ac131313@redhat.com>
9682
9683 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9684 default_double_format.
9685 * gdbarch.h, gdbarch.c: Re-generate.
9686 * findvar.c (floatformat_unknown): Delete variable definition.
9687 * doublest.h (floatformat_unknown): Delete variable declaration.
9688
da966255
JB
96892002-02-09 Jim Blandy <jimb@redhat.com>
9690
9691 * stabsread.c (read_type): Add code to parse Sun's syntax for
9692 prototyped function types.
9693
123a4891
AC
96942002-02-09 Andrew Cagney <ac131313@redhat.com>
9695
9696 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9697 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9698
fb39c8f3
PS
96992002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9700
9701 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9702 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9703 now _initialize_xcoffsolib gets called again and overrides the
9704 commands from solib.c in a native configuration.
9705
0b87a11d
MK
97062002-02-09 Mark Kettenis <kettenis@gnu.org>
9707
9708 * doublest.c (store_typed_floating): Don't try to return a value.
9709 Fixes PR gdb/290.
9710
bdc2fc72
JB
97112002-02-08 Jim Blandy <jimb@redhat.com>
9712
9713 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9714 is prototyped and has no arguments, print its argument list as
9715 `(void)'.
9716
da69bbcf
CD
97172002-02-08 Chris Demetriou <cgd@broadcom.com>
9718
9719 * MAINTAINERS (write-after-approval): Add myself.
9720 (paper-trail): I've escaped!
aaa38bb5 9721
b69571f5
CF
97222002-02-08 Christopher Faylor <cgf@redhat.com>
9723
9724 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9725 changes.
9726 (_initialize_check_for_gdb_ini): Ditto.
9727
f6871398
MH
97282002-02-08 Martin M. Hunt <hunt@redhat.com>
9729
9730 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9731 xaprintf -> xasprintf.
9732
4e52d31c
PM
97332002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9734
9735 * win32-nat.c: Remove use of printf and sprintf functions.
9736
39bbf761
RE
97372002-02-08 Richard Earnshaw <rearnsha@arm.com>
9738
9739 * arm-tdep.c (arm_frame_chain_valid): Make static.
9740 (arm_push_arguments): Likewise.
9741 (arm_gdbarch_init): New function.
9742 (_initialize_arm_tdep): Call it.
9743 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9744 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9745 (FRAME_CHAIN_VALID): Delete.
9746 (arm_frame_chain_valid): Delete declaration.
9747 (PUSH_ARGUMENTS): Delete.
9748 (arm_push_arguments): Delete declaration.
9749 (CALL_DUMMY_P): Delete.
9750
9c9532c9
CV
97512002-02-08 Andrew Cagney <ac131313@redhat.com>
9752 Corinna Vinschen <vinschen@redhat.com>
9753
9754 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9755 on builtin float types.
9756
4e8f7a8b
DJ
97572002-02-08 Daniel Jacobowitz <drow@mvista.com>
9758
9759 * utils.c: Include <curses.h> before "bfd.h".
9760 * tui/tui-hooks.c: Likewise.
9761 * tui/tui.c: Likewise.
9762 * tui/tuiCommand.c: Likewise.
9763 * tui/tuiData.c: Likewise.
9764 * tui/tuiDataWin.c: Likewise.
9765 * tui/tuiDisassem.c: Likewise.
9766 * tui/tuiGeneralWin.c: Likewise.
9767 * tui/tuiIO.c: Likewise.
9768 * tui/tuiLayout.c: Likewise.
9769 * tui/tuiRegs.c: Likewise.
9770 * tui/tuiSource.c: Likewise.
9771 * tui/tuiSourceWin.c: Likewise.
9772 * tui/tuiStack.c: Likewise.
9773 * tui/tuiWin.c: Likewise.
9774
cd4bffcf
EZ
97752002-02-07 Elena Zannoni <ezannoni@redhat.com>
9776
9777 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9778 to include space for pseudoregs as well. Update loops accordingly.
9779 (sh_fp_frame_init_saved_regs): Ditto.
9780 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9781
26806ce2
AC
97822002-02-07 Andrew Cagney <ac131313@redhat.com>
9783
9784 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9785 Add Richard Earnshaw to Arm maintainers.
9786
97fdab62
AC
97872002-02-07 Andrew Cagney <ac131313@redhat.com>
9788
a6b98203
AC
9789 * defs.h (warning_begin): Delete declaration.
9790
97fdab62
AC
9791 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9792 Delete macro.
9793
78b29b40
MS
97942002-02-07 Michael Snyder <msnyder@redhat.com>
9795
aaa38bb5 9796 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9797 Logic bug, remove misplaced else.
9798
d8849953
KD
97992002-02-07 Klee Dienes <klee@apple.com>
9800
9801 * fork-inferior.c (fork_inferior): Add '!' to the list of
9802 characters that need to be quoted when building a string for the
9803 shell. Quote '!' specifically with a backslash, since CSH chokes
9804 when trying to evaluate "str!str".
aaa38bb5 9805
095778a0
NC
98062002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9807
9808 * rdi-share/host.h: Only provide a typedef for bool if it is not
9809 defined.
9810
1900040c
MS
98112002-02-04 Michael Snyder <msnyder@redhat.com>
9812
9813 * breakpoint.h (enum bptype): Add new overlay event bp type.
9814 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9815
1900040c
MS
9816 * breakpoint.c (create_internal_breakpoint): New function.
9817 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9818 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9819 (create_thread_event_breakpoint): Ditto.
9820 (create_solib_event_breakpoint): Ditto.
9821 (create_overlay_event_breakpoint): New function.
9822 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9823 (update_breakpoints_after_exec): Delete and re-initialize
9824 overlay event breakpoints after an exec. Add FIXME comment
9825 about longjmp breakpoint.
9826 (print_it_typical): Ignore overlay event breakpoints.
9827 (print_one_breakpoint): Ditto.
9828 (mention): Ditto.
9829 (bpstat_what): Do not stop for overlay event breakpoints.
9830 (delete_breakpoint): Don't delete overlay event breakpoints.
9831 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9832 (breakpoint_re_set): Re-create overlay event breakpoint.
9833
9834 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9835 (overlay_manual_command): Disable overlay breakpoints.
9836 (overlay_off_command): Disable overlay breakpoints.
9837
082fc60d
RE
98382002-02-06 Richard Earnshaw <rearnsha@arm.com>
9839
9840 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9841 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9842 to here from config/tm-arm.h.
9843 (coff_sym_is_thumb): Make static.
9844 (arm_elf_make_msymbol_special): New function.
9845 (arm_coff_make_msymbol_special): New function.
9846 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9847 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9848 (coff_sym_is_thumb): Delete declaration.
9849 (arm_elf_make_msymbol_special): Declare.
9850 (arm_coff_make_msymbol_special): Declare.
9851 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9852 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9853
039c5766
RE
98542002-02-06 Richard Earnshaw <rearnsha@arm.com>
9855
9856 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9857
98582002-02-06 Richard Earnshaw <rearnsha@arm.com>
9859
9860 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9861 * gdbarch.c gdbarch.h: Regenerate.
9862 * arch-utils.c (default_print_float_info): New function.
9863 * arch-utils.h (default_print_float_info): Prototype it.
9864 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9865 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9866 (PRINT_FLOAT_INFO): Document it.
9867
9868 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9869 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9870 (PRINT_FLOAT_INFO): Define.
9871
58fa08f0
PM
98722002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9873
aaa38bb5 9874 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9875 Add typecast to sprintf argument to suppress a warning.
9876
7393af7c
PM
98772002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9878
58fa08f0 9879 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9880 to allow easier handling of pass state.
9881 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9882 that gives exception name and address.
9883 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9884 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9885 exceptions added.
aaa38bb5
AJ
9886 (child_continue): Correctly report continue_status.
9887 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9888 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9889 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9890 the exception should be passed to debuggee or not.
9891
6af4589c
MS
98922002-02-05 Michael Snyder <msnyder@redhat.com>
9893
9894 * regcache.c (fetch_register): Call target_fetch_register
9895 only if we don't call FETCH_PSEUDO_REGISTER.
9896 (store_register): Call target_store_register only if we
9897 don't call STORE_PSEUDO_REGISTER.
9898
a2cf933a
EZ
98992002-02-05 Elena Zannoni <ezannoni@redhat.com>
9900
9901 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9902 ELF_MAKE_MSYMBOL_SPECIAL.
9903 * gdbarch.c, gdbarch.h: Regenerate.
9904 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9905 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9906 * elfread.c (elf_symtab_read): Compile use of
9907 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9908 multiarched.
9909 * coffread.c (coff_symtab_read): Ditto, for
9910 COFF_MAKE_MSYMBOL_SPECIAL.
9911
6bb7be43
JB
99122002-02-05 Jim Blandy <jimb@redhat.com>
9913
9914 * solib-svr4.c (svr4_truncate_ptr): New function.
9915 (svr4_relocate_section_addresses): Do the address arithmetic with
9916 the appropriate truncation for target addresses, even when
9917 CORE_ADDR is larger than a target address.
9918
e18651ec
DJ
99192002-02-05 Daniel Jacobowitz <drow@mvista.com>
9920
9921 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9922 to (int *).
9923
6b2725be
DJ
99242002-02-05 Daniel Jacobowitz <drow@mvista.com>
9925
9926 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9927 code.
9928
fca9e603
DJ
99292002-02-05 Daniel Jacobowitz <drow@mvista.com>
9930
9931 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9932
6c537a52
DJ
99332002-02-05 Daniel Jacobowitz <drow@mvista.com>
9934
9935 * gdbserver/linux-low.c: Remove unused include files.
9936
d844cde6
DJ
99372002-02-05 Daniel Jacobowitz <drow@mvista.com>
9938
9939 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9940 (read_inferior_memory): Use it.
9941 (write_inferior_memory): Likewise.
9942
d07c63e7
DJ
99432002-02-05 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9946 grubbing through sys_errlist.
9947
da6d8c04
DJ
99482002-02-05 Daniel Jacobowitz <drow@mvista.com>
9949
9950 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9951
5b421780
PM
99522002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9953 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9954
9f60d481
AC
99552002-02-04 Andrew Cagney <ac131313@redhat.com>
9956
9957 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9958 (do_sfunc, set_cmd_sfunc): New functions.
9959
9960 * command.h (struct cmd_list_element): Add field func.
9961 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9962 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9963 * cli/cli-decode.h: Ditto.
9964
9965 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9966 (help_all, help_cmd_list): Ditto.
9967 (find_cmd, complete_on_cmdlist): Ditto.
9968 * top.c (execute_command): Ditto.
9969
9970 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9971 function.sfunc.
9972
9973 * infcmd.c (notice_args_read): Fix function signature.
9974
9975 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9976 * cli/cli-decode.c (add_set_cmd): Ditto.
9977 * utils.c (initialize_utils): Ditto.
9978 * maint.c (_initialize_maint_cmds): Ditto.
9979 * infrun.c (_initialize_infrun): Ditto.
9980 * demangle.c (_initialize_demangler): Ditto.
9981 * remote.c (add_packet_config_cmd): Ditto.
9982 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9983 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9984 * proc-api.c (_initialize_proc_api): Ditto.
9985 * kod.c (_initialize_kod): Ditto.
9986 * valprint.c (_initialize_valprint): Ditto.
9987 * top.c (init_main): Ditto.
9988 * infcmd.c (_initialize_infcmd): Ditto.
9989 * corefile.c (_initialize_core): Ditto.
9990 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9991 * arch-utils.c (initialize_current_architecture): Ditto.
9992 (_initialize_gdbarch_utils): Ditto.
9993 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9994
9995 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9996 * wince.c (_initialize_inftarg): Ditto.
9997 * symfile.c (_initialize_symfile): Ditto.
9998 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9999 * language.c (_initialize_language): Ditto.
10000 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10001
f9ba0717
MS
100022002-02-04 Michael Snyder <msnyder@redhat.com>
10003
10004 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10005
0c74b2a7
DJ
100062002-02-04 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10009 Add rules for building the register data files.
10010
c638789f
DJ
100112002-02-04 Daniel Jacobowitz <drow@mvista.com>
10012
10013 * regformats/regdat.sh: Add braces to the definition of
10014 expedite_regs_${arch}.
10015
db253027
DJ
100162002-02-04 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * regformats/regdef.h (struct reg): Add comment describing the
10019 requirements for offset and size fields.
10020
206be19c
AS
100212002-02-04 Andreas Schwab <schwab@suse.de>
10022
10023 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10024 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10025
181c1381
RE
100262002-02-04 Richard Earnshaw <rearnsha@arm.com>
10027
10028 * gdbarch.sh (copyright): Update years in generated header.
10029 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10030 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10031 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10032 * dbxread.c: Likewise.
10033 * dwarfread.c: Likewise.
10034 * elfread.c: Likewise.
10035 * somread.c: Likewise.
10036
10037 * arm-tdep.c (arm_smash_text_address): New function.
10038 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10039
fa4ba8da
PM
100402002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10041
10042 Add support for hardware watchpoints on win32 native.
aaa38bb5 10043 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10044 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10045 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10046 of debug registers.
10047 (debug_registers_changed): New variable. Reflects when debug registers
10048 are changed and need to be written to inferior.
aaa38bb5 10049 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10050 was set, used when new threads are created.
10051 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10052 i386-nat code.
10053 (thread_rec): Set dr array if id is the thread of current_event .
10054 (child_continue, child_resume): Change the debug registers for all
10055 threads if debug_registers_changed.
10056 (child_add_thread): Change the debug registers if debug_registers_used.
10057 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10058 Link nm.h to new nm-cygwin.h file.
10059 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10060 of hardware registers.
10061
a73c86fb
AC
100622002-02-03 Andrew Cagney <ac131313@redhat.com>
10063
10064 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10065 Restore behavour broken by 2002-01-20 Andrew Cagney
10066 <ac131313@redhat.com> IEEE_FLOAT removal.
10067
acf5ed49
DJ
100682002-02-03 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * c-valprint.c (c_val_print): Pass a proper valaddr to
10071 cp_print_class_method.
10072 * valops.c (search_struct_method): If there is only one method
10073 and args is NULL, return that method.
10074
493d28d5
DJ
100752002-02-03 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10078 accessing tag_name directly.
10079
7495dfdb
DJ
100802002-02-03 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10083 of accessing tag_name directly.
10084
dd6bda65
DJ
100852002-02-03 Daniel Jacobowitz <drow@mvista.com>
10086
10087 PR gdb/280
10088 * gdbtypes.c (replace_type): New function.
10089 * gdbtypes.h (replace_type): Add prototype.
10090 * stabsread.c (read_type): Use replace_type.
10091
88fe217c
RE
100922002-02-03 Richard Earnshaw <rearnsha@arm.com>
10093
10094 * Makefile.in (memattr.o): Add missing dependencies rule.
10095
e5d66720
PS
100962002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10097
10098 * breakpoint.c (break_at_finish_command): Really export.
10099 (break_at_finish_at_depth_command): Ditto.
10100 (tbreak_at_finish_command): Ditto.
10101 * hppa-tdep.c: Include completer.h.
10102 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10103 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10104
fffee0be
AC
101052002-02-01 Andrew Cagney <ac131313@redhat.com>
10106
10107 * utils.c (do_write): New function.
10108 (error_stream): Rewrite combining the code from error_begin and
10109 verror.
10110 (verror): Rewrite using error_stream.
10111 (error_begin): Delete function.
10112
255e7dbf
AC
101132002-02-01 Andrew Cagney <ac131313@redhat.com>
10114
10115 * utils.c (error_begin): Make static.
10116 * defs.h (error_begin): Delete declaration.
10117
10118 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10119 (decode_line_1): Use cplusplus_error instead of error_begin,
10120 cplusplus_hint and return_to_top_level.
10121 * coffread.c (coff_symfile_read): Use error instead of error_begin
10122 and return_to_top_level.
10123 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10124
ddfe3c15
AC
101252002-02-01 Andrew Cagney <ac131313@redhat.com>
10126
10127 * language.h (type_error, range_error): Make string parameter
10128 constant.
10129 * language.c (warning_pre_print): Delete extern declaration.
10130 * dwarfread.c (warning_pre_print): Ditto.
10131 * language.c (type_error, range_error): Rewrite to use verror and
10132 vwarning instead of warning_begin.
10133
03ac34d5
MS
101342002-02-01 Michael Snyder <msnyder@redhat.com>
10135
261c4ca2
MS
10136 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10137 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10138
e00d1dc8
AC
101392002-02-01 Andrew Cagney <ac131313@redhat.com>
10140
10141 * command.h (NO_FUNCTION): Delete macro.
10142 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10143 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10144 * tracepoint.c (_initialize_tracepoint): Ditto.
10145 * cli/cli-decode.c (add_set_cmd): Ditto.
10146 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10147
76b79d6e
DJ
101482002-02-01 Daniel Jacobowitz <drow@mvista.com>
10149
10150 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10151 Update ``this'' pointer when calling virtual functions.
10152
799f9e91
MS
101532002-02-01 Michael Snyder <msnyder@redhat.com>
10154
c7bd442c 10155 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10156 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10157
3cf384d4
DJ
101582002-02-01 Daniel Jacobowitz <drow@mvista.com>
10159
10160 * regformats/reg-arm.dat: New file.
10161 * regformats/reg-i386.dat: New file.
10162 * regformats/reg-ia64.dat: New file.
10163 * regformats/reg-m68k.dat: New file.
10164 * regformats/reg-mips.dat: New file.
10165 * regformats/reg-ppc.dat: New file.
10166 * regformats/reg-sh.dat: New file.
10167 * regformats/regdef.h: New file.
10168 * regformats/regdat.sh: New file.
10169
0defa245
RE
101702002-02-01 Richard Earnshaw <reanrsha@arm.com>
10171
10172 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10173 (arm_frame_args_address, arm_frame_locals_address): New functions.
10174 (arm_frame_num_args): New function.
10175 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10176 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10177 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10178
405f26e6
MS
101792002-01-31 Michael Snyder <msnyder@redhat.com>
10180
502fd408
MS
10181 * breakpoint.c (break_at_finish_command): Export.
10182 (break_at_finish_at_depth_command): Export.
10183 (tbreak_at_finish_command): Export.
10184 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10185 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10186 "tbreak" commands, which are HPPA specific.
10187
7d35e135
MS
10188 * printcmd.c (disassemble_command): Remove an ancient
10189 artifact of an old merge.
10190
aaa38bb5 10191 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10192 Define enum constant values for overlay mode.
10193 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10194 (overlay_is_mapped, overlay_auto_command,
10195 overlay_manual_command): Ditto.
d874f1e2 10196
aaa38bb5
AJ
10197 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10198 breakpoint_here_p, breakpoint_inserted_here_p,
10199 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10200 describe_other_breakpoints, check_duplicates, clear_command):
10201 Coding standard fixes.
10202
8add0441 10203 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10204 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10205 code: check bfd SEC_READONLY flag for section.
10206
e351066e
AC
102072002-01-31 Andrew Cagney <ac131313@redhat.com>
10208
7d35e135 10209 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10210
8a48e967
DJ
102112002-01-30 Daniel Jacobowitz <drow@mvista.com>
10212
10213 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10214 data symbols, since we search based on textlow and texthigh.
10215 (find_pc_sect_symtab): Likewise.
10216
f5a96129
AC
102172002-01-30 Andrew Cagney <ac131313@redhat.com>
10218
10219 * defs.h (vwarning): Declare.
f5a96129
AC
10220 * utils.c (vwarning): New function.
10221 (warning): Call vwarning.
10222 (warning_begin): Delete function.
10223
10224 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10225 the warning message.
10226 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10227 warning_begin.
10228
cefd4ef5
MS
102292002-01-30 Michael Snyder <msnyder@redhat.com>
10230
1a703748
MS
10231 * NEWS: Mention "set trust-readonly-sections" command.
10232 Mention generate-core-file command.
cefd4ef5 10233
3a11626d
MS
102342002-01-15 Michael Snyder <msnyder@redhat.com>
10235
10236 * target.c: New command, "set trust-readonly-sections on".
10237 (do_xfer_memory): Honor the suggestion to trust readonly sections
10238 by reading them from the object file instead of from the target.
10239 (initialize_targets): Register command "set trust-readonly-sections".
10240
d1c7e53b
AC
102412002-01-29 Andrew Cagney <ac131313@redhat.com>
10242
10243 * parse.c (target_map_name_to_register): Simplify, search regs and
10244 pseudo-regs using a single loop.
10245
e2c9a72c
AC
102462002-01-30 Andrew Cagney <ac131313@redhat.com>
10247
10248 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10249
69824b4e
MK
102502002-01-15 Rodney Brown <rbrown64@csc.com.au>
10251
10252 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10253 * config/i386/i386v42mp.mh: Add i387-nat.o .
10254 * i386v4-nat.c: Include i387-nat.h.
10255 (supply_fpregset): Use i387_supply_fsave.
10256 (fill_fpregset): Use i387_fill_fsave.
10257
6eb69eab
RE
102582002-01-30 Richard Earnshaw <rearnsha@arm.com>
10259
10260 * arm-tdep.c (arm_call_dummy_words): Define.
10261 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10262 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10263 (CALL_DUMMY_WORDS): Define.
10264 (arm_call_dummy_words): Declare.
10265 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10266 (arm_linux_call_dummy_words): Declare.
10267
9852326a
AS
102682002-01-30 Andreas Schwab <schwab@suse.de>
10269
10270 * m68klinux-nat.c: Fix last change to use regcache_collect
10271 instead of referencing registers[] directly.
10272
977a3030
AC
102732002-01-29 Andrew Cagney <ac131313@redhat.com>
10274
10275 * parse.c (target_map_name_to_register): Delete code wrapped in
10276 #ifdef REGISTER_NAME_ALIAS_HOOK.
10277
2076c72b
MS
102782002-01-28 Michael Snyder <msnyder@redhat.com>
10279
10280 * regcache.c (legacy_read_register_gen): Need to be able to
10281 read pseudo-register as well as real register.
10282 (legacy_write_register_gen): Ditto.
10283
8fcc723b
AC
102842002-01-28 Andrew Cagney <ac131313@redhat.com>
10285
10286 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10287 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10288 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10289 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10290 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10291 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10292 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10293 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10294 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10295 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10296 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10297 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10298 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10299 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10300 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10301 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10302 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10303 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10304 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10305 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10306
afe64c1a
AC
103072002-01-28 Andrew Cagney <ac131313@redhat.com>
10308
10309 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10310 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10311 (initialize_current_architecture): Update target_byte_order using
10312 information from BFD.
aaa38bb5 10313 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10314 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10315
75bc7ddf
AC
103162002-01-28 Andrew Cagney <ac131313@redhat.com>
10317
10318 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10319 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10320
10321 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10322 #ifdef INVALID_FLOAT.
10323 * infcmd.c (do_registers_info): Ditto.
10324 * values.c (unpack_double): Ditto. Add comment.
10325
10326 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10327 already commented out.
10328
0280a90a
AS
103292002-01-26 Andreas Schwab <schwab@suse.de>
10330
10331 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10332 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10333 registers and add support for PTRACE_GETREGS.
10334
7072a954
AC
103352002-01-24 Andrew Cagney <ac131313@redhat.com>
10336
10337 GDB 5.1.1 released from 5.1 branch.
10338 * NEWS: Add 5.1.1 news.
10339 * README: Sync with 5.1 branch.
10340
86f902e0
FF
103412002-01-23 Fred Fish <fnf@redhat.com>
10342
10343 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10344 stabstring on initial malloc. Reallocing will copy it for us,
10345 if necessary.
10346
8af51c36
EZ
103472002-01-23 Elena Zannoni <ezannoni@redhat.com>
10348
aaa38bb5 10349 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10350 (HFILES_NO_SRCDIR): Remove hpread.h.
10351 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10352 (hpread.o): Update dependencies.
10353 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10354
10355 * hp-psymtab-read.c: Remove file.
10356 * hp-symtab-read.c: Remove file.
10357 * hpread.h: Remove file.
10358
10359 * hpread.c: Merge all contents of hp-psymtab-read.c,
10360 hp-symtab-read.c and hpread.h into this file, as it was prior to
10361 January 1999.
10362
10363 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10364 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10365 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10366 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10367
dc5cfeb6
EZ
103682002-01-23 Elena Zannoni <ezannoni@redhat.com>
10369
10370 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10371 fill_gregset): Call gdbarch_tdep() just once, assign result to
10372 variable and use that, instead of calling the function several
10373 times.
10374
ea87b71b
AO
103752002-01-24 Alexandre Oliva <aoliva@redhat.com>
10376
10377 * configure.host: Accept sparcv9 as alias for sparc64.
10378 * configure.tgt: Likewise.
10379
13fc0c2f
KB
103802002-01-22 Kevin Buettner <kevinb@redhat.com>
10381
10382 * solib-aix5.c (build_so_list_from_mapfile)
10383 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10384 arguments is not reversed.
10385 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10386 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10387
7bd872fe
EZ
103882002-01-22 Elena Zannoni <ezannoni@redhat.com>
10389
10390 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10391 modified version of obsolete sh_fetch_pseudo_register.
10392 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10393 (sh4_register_read): New function.
10394 (sh_pseudo_register_write): New function. Renamed and modified
10395 version of obsolete sh_store_pseudo_register.
10396 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10397 (sh4_register_write): New function.
10398 (sh_gdbarch_init): Remove setting of gdbarch function
10399 fetch_pseudo_register and store_pseudo_register. Remove setting of
10400 register_convert_to_raw, register_convert_to_virtual,
10401 register_convertible.
10402 (sh_sh4_register_convertible): Delete. No longer needed. All is
10403 taken care by architecture specific functions
10404 register_read/register_write.
10405 (sh_sh4_register_convert_to_virtual): Make static.
10406 (sh_sh4_register_convert_to_raw): Ditto.
10407
069e84fd
AC
104082002-01-22 Andrew Cagney <ac131313@redhat.com>
10409
10410 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10411 (floatformat_is_nan, floatformat_mantissa): Ditto.
10412
10413 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10414 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10415 builtin_type_ieee_double_little,
10416 builtin_type_ieee_double_littlebyte_bigword,
10417 builtin_type_m68881_ext, builtin_type_i960_ext,
10418 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10419 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10420 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10421 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10422
211a4f69
CV
104232002-01-22 Corinna Vinschen <vinschen@redhat.com>
10424
10425 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10426 parameter. Set frameless flag if it exists and depended of
10427 whether the scanned function is frameless or not.
10428 (xstormy16_skip_prologue): If function is frameless, return
10429 result of xstormy16_scan_prologue().
10430 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10431 call.
10432
f81353e4
EZ
104332002-01-21 Elena Zannoni <ezannoni@redhat.com>
10434
10435 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10436 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10437 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10438 sh_sh4_register_byte, sh_sh4_register_raw_size,
10439 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10440 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10441 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10442 sh_store_pseudo_register, sh_do_pseudo_register): Call
10443 gdbarch_tdep() just once, assign result to variable and use that,
10444 instead of calling the function several times.
10445
63c73a17
MK
104462002-01-20 Mark Kettenis <kettenis@gnu.org>
10447
10448 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10449 macros instead of LAST_FPU_CTRL_REGNUM.
10450 (store_register): Likewise.
10451
39ad761d
JB
104522002-01-21 Jim Blandy <jimb@redhat.com>
10453
10454 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10455 is up-to-date before running the program, not just when a program
10456 exits.
10457
3d74b771
FF
104582002-01-21 Fred Fish <fnf@redhat.com>
10459
10460 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10461 when we have found all instructions we are looking for.
10462
966fbf70
RE
104632002-01-21 Richard Earnshaw <rearnsha@arm.com>
10464
10465 * arm-tdep.c (arm_register_name): New function.
10466 (arm_registers_names): Make static.
10467 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10468 (arm_register_name): Declare.
10469 (REGISTER_NAME): Use it.
10470
c3b4394c
RE
104712002-01-21 Richard Earnshaw <rearnsha@arm.com>
10472 Kevin Buettner <kevinb@redhat.com>
10473
10474 Convert arm targets to new FRAME interface.
10475 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10476 (arm_frame_find_save_regs): Delete.
10477 (arm_frame_init_saved_regs): New.
10478 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10479 Allocate extra_info as required. Convert all uses of fsr.regs
10480 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10481 to use extra_info.
10482 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10483 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10484 (check_prologue_cache, save_prologue_cache): Likewise.
10485 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10486 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10487 (FRAME_FIND_SAVED_REGS): Delete.
10488 (arm_frame_find_saved_regs): Delete prototype.
10489 (arm_frame_init_saved_regs): New prototype.
10490 (FRAME_INIT_SAVED_REGS): Define.
10491
61d99182
AC
104922002-01-20 Andrew Cagney <ac131313@redhat.com>
10493
10494 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10495
6aaea291
AC
104962002-01-20 Andrew Cagney <ac131313@redhat.com>
10497
10498 From Jeff Law <law@redhat.com>:
10499 * infttrace.c: Include <sys/pstat.h>.
10500 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10501 exec file if the ttrace equivalent fails.
10502
15f698d2
AC
105032002-01-20 Andrew Cagney <ac131313@redhat.com>
10504
10505 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10506 (closeLogFile): Ditto.
10507
f86ddd7c
MC
105082002-01-20 Michael Chastain <mec@shout.net>
10509
10510 * top.c (print_gdb_version): Bump copyright year to 2002.
10511
904507ce
AC
105122002-01-20 Andrew Cagney <ac131313@redhat.com>
10513
10514 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10515 Zannoni and Eli Zaretskii.
10516
d7f0b9ce
DJ
105172002-01-20 Daniel Jacobowitz <drow@mvista.com>
10518
10519 * buildsym.c: Update copyright years.
10520 * c-typeprint.c: Likewise.
10521 * dwarf2read.c: Likewise.
10522 * f-typeprint.c: Likewise.
10523 * gdbtypes.c: Likewise.
10524 * gdbtypes.h: Likewise.
10525 * hp-symtab-read.c: Likewise.
10526 * hpread.c: Likewise.
10527 * mdebugread.c: Likewise.
10528 * p-typeprint.c: Likewise.
10529
3fd3d7d2
AC
105302002-01-20 Andrew Cagney <ac131313@redhat.com>
10531
10532 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10533 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10534 byte-order selectable.
10535 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10536 * arch-utils.c: Ditto.
10537 (set_endian): Ditto.
10538 (set_endian_from_file): Ditto.
10539 * gdbserver/low-sim.c (create_inferior): Ditto.
10540 * gdbarch.sh: Ditto.
10541 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10542 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10543 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10544 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10545 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10546 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10547 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10548 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10549 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10550 macro definition.
10551 * config/mips/tm-wince.h: Remove #undef of macro
10552 TARGET_BYTE_ORDER_SELECTABLE.
10553 * config/sh/tm-wince.h: Ditto.
10554
b02dede2
DJ
105552002-01-20 Daniel Jacobowitz <drow@mvista.com>
10556
10557 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10558 member function fields. Add accessor macro
10559 TYPE_FN_FIELD_ARTIFICIAL.
10560 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10561 * c-typeprint.c (c_type_print_base): Skip artificial member
10562 functions.
10563
c3643761
DJ
105642002-01-20 Daniel Jacobowitz <drow@mvista.com>
10565
10566 * f-typeprint.c: Delete unused function f_type_print_args.
10567 * p-typeprint.c: Delete unused function pascal_type_print_args.
10568
8176bb6d
DJ
105692002-01-20 Daniel Jacobowitz <drow@mvista.com>
10570
10571 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10572 comment. Add ``artificial'' to ``union field_location''.
10573
10574 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10575
10576 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10577 * mdebugread.c (parse_symbol): Likewise.
10578 * stabsread.c (define_symbol): Likewise.
10579 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10580 initializing TYPE_FIELD_BITPOS to n (obsolete).
10581 (hpread_doc_function_type): Likewise.
10582 * hpread.c (hpread_function_type): Likewise.
10583
7fd60527
AC
105842002-01-20 Andrew Cagney <ac131313@redhat.com>
10585
10586 * configure.in (host_makefile_frag): Only require a host makefile
10587 fragment when a native build.
10588 * configure: Re-generate.
10589
c2f05ac9
AC
105902002-01-20 Andrew Cagney <ac131313@redhat.com>
10591
10592 * doublest.h (floatformat_from_type): Declare.
10593 * doublest.c (floatformat_from_type): New function.
10594 (convert_typed_floating): Use.
10595
10596 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10597 call to function floatformat_from_type.
10598
10599 * gdbarch.sh (IEEE_FLOAT): Delete.
10600 * gdbarch.h, gdbarch.c: Re-generate.
10601 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10602 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10603 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10604 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10605 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10606 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10607 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10608 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10609 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10610 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10611 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10612 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10613
10614 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10615 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10616 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10617 * sh-tdep.c (sh_gdbarch_init): Ditto.
10618 * mips-tdep.c (mips_gdbarch_init): Ditto.
10619 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10620 * cris-tdep.c (cris_gdbarch_init): Ditto.
10621
abf22e64
AJ
106222002-01-20 Jiri Smid <smid@suse.cz>
10623
10624 * configure.host, configure.tgt: Support x86-64.
10625 * NEWS: Note new target x86-64.
10626
b7c4cbf8
AJ
10627 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10628 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10629 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10630 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10631 x86-64-linux-nat.o): Fix dependencies.
10632
82600034
AC
106332002-01-19 Andrew Cagney <ac131313@redhat.com>
10634
10635 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10636 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10637 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10638 * config/sparc/xm-sun4os4.h: Delete file.
10639 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10640
bbe5c628
AC
106412002-01-19 Andrew Cagney <ac131313@redhat.com>
10642
10643 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10644 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10645 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10646 * config/i386/i386lynx.mh (XM_FILE): Delete.
10647 * config/rs6000/xm-rs6000ly.h: Delete file.
10648 * config/sparc/xm-sparclynx.h: Delete file.
10649 * config/m68k/xm-m68klynx.h: Delete file.
10650 * config/i386/xm-i386lynx.h: Delete file.
10651 * config/xm-lynx.h: Delete file.
10652 * config/djgpp/fnchange.lst: Update.
10653
f8453e34
JT
106542002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10655
10656 * alpha-tdep.c (alpha_register_byte): New function.
10657 (alpha_register_raw_size): Ditto.
10658 (alpha_register_virtual_size): Ditto.
10659 (alpha_skip_prologue_internal): Renamed from
10660 alpha_skip_prologue.
10661 (alpha_skip_prologue): New version that calls
10662 alpha_skip_prologue_internal.
10663 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10664 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10665 second argument from alpha_skip_prologue.
10666 (REGISTER_BYTE): Use alpha_register_byte.
10667 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10668 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10669 (FRAMELESS_FUNCTION_INVOCATION): Use
10670 generic_frameless_function_invocation_not.
10671 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10672 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10673
52d9e613
AC
106742002-01-19 Andrew Cagney <ac131313@redhat.com>
10675
10676 * config/mips/xm-news-mips.h: Delete file.
10677 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10678
10679 * config/m88k/xm-m88k.h: Delete file.
10680 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10681 * config/m88k/xm-delta88v4.h: Ditto.
10682 * config/m88k/xm-delta88.h: Ditto.
10683
10684 * config/alpha/xm-fbsd.h: Delete file.
10685 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10686
10687 * config/sparc/xm-sparc.h: Delete file.
10688 * Makefile.in (xm-sun4os4.h): Delete dependency.
10689 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10690 * config/sparc/xm-sun4os4.h: Ditto.
10691 * config/sparc/xm-linux.h: Ditto.
10692
10693 * config/i386/xm-windows.h: Delete file.
10694
2d1b2124
AC
106952002-01-19 Andrew Cagney <ac131313@redhat.com>
10696
10697 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10698 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10699
ee1f65f0
JT
107002002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10701
10702 * alpha-tdep.c (alpha_call_dummy_words): New.
10703 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10704 (CALL_DUMMY_P): Define.
10705 (CALL_DUMMY_WORDS): Define.
10706 (SIZEOF_CALL_DUMMY_WORDS): Define.
10707
98081e55
PB
107082002-01-19 Per Bothner <per@bothner.com>
10709
10710 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10711 isn't NULL, which can happen with some gcj-3.x-produced code.
10712
0d056799
JT
107132002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10714
10715 * alpha-tdep.c (alpha_register_virtual_type): New function.
10716 (alpha_init_frame_pc_first): Ditto.
10717 (alpha_fix_call_dummy): Ditto.
10718 (alpha_store_struct_return): Ditto.
10719 (alpha_extract_struct_value_address): Ditto.
10720 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10721 alpha_register_virtual_type.
10722 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10723 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10724 alpha_extract_struct_value_address.
10725 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10726 (INIT_FRAME_PC): Use init_frame_pc_noop.
10727 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10728
4604bcad
MK
107292002-01-19 Mark Kettenis <kettenis@gnu.org>
10730
10731 * i386gnu-nat.c: Include "i386-tdep.h".
10732 (fetch_fpregs): Simplify code dealing with uninitialized floating
10733 point states such that it doesn't require FP7_REGNUM.
10734
140f9984
JT
107352002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10736
abf22e64
AJ
10737 * alpha-tdep.c (frame_extra_info): New.
10738 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10739 frame->extra_info.
10740 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10741 (alpha_frame_saved_pc): Use frame->extra_info.
10742 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10743 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10744 (init_extra_frame_info): Rename to...
10745 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10746 (alpha_print_extra_frame_info): New function.
140f9984
JT
10747 (alpha_frame_locals_address): Ditto.
10748 (alpha_frame_args_address): Ditto.
abf22e64 10749 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10750 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10751 alpha_frame_args_address.
abf22e64 10752 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10753 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10754 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10755 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10756 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10757 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10758
d734c450
JT
107592002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10760
10761 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10762 (alpha_cannot_fetch_register): Ditto.
10763 (alpha_cannot_store_register): Ditto.
10764 (alpha_register_convertible): Ditto.
10765 (alpha_use_struct_convention): Ditto.
10766 * config/alpha/tm-alpha.h: Update copyright years.
10767 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10768 (INNER_THAN): Use core_addr_lessthan.
10769 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10770 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10771 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10772 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10773 (FRAME_CHAIN): Remove unnecessary cast.
10774
b4ceaee6
AC
107752002-01-18 Andrew Cagney <ac131313@redhat.com>
10776
10777 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10778 obsolete.
10779
0a65a603
AC
107802002-01-18 Andrew Cagney <ac131313@redhat.com>
10781
10782 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10783 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10784 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10785 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10786 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10787 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10788 * x86-64-linux-nat.c: Ditto.
10789
636a6dfc
JT
107902002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10791
abf22e64 10792 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10793 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10794 (REGISTER_NAME): Define.
10795
acceddb6
JT
107962002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10797
10798 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10799
ec32e4be
JT
108002002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10801
10802 * alpha-tdep.c: Update copyright years.
10803 (alpha_next_pc): New function.
10804 (alpha_software_single_step): Ditto.
10805 * config/alpha/tm-alpha.h: Add prototype for
10806 alpha_software_single_step.
10807
e771a871
JT
108082002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10809
10810 * alphabsd-nat.c: Update copyright years.
10811 (fill_gregset): Use regcache_collect.
10812 (fill_fpregset): Likewise.
10813 (fetch_inferior_registers): Only fetch integer registers
10814 if requested to do so.
10815 (store_inferior_registers): Only store integer registers
10816 if requested to do so.
10817
7708fa01
AC
108182002-01-17 Andrew Cagney <ac131313@redhat.com>
10819
10820 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10821 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10822 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10823 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10824 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10825 * config/arm/linux.mh (XDEPFILES): Delete.
10826 * config/arm/nbsd.mh (XDEPFILES): Delete.
10827 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10828 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10829 * config/i386/i386m3.mh (XDEPFILES): Delete.
10830 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10831 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10832 * config/i386/fbsd.mh (XDEPFILES): Delete.
10833 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10834 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10835 * config/i386/i386v4.mh (XDEPFILES): Delete.
10836 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10837 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10838 * config/i386/i386aix.mh (XDEPFILES): Delete.
10839 * config/i386/go32.mh (XDEPFILES): Delete.
10840 * config/i386/cygwin.mh (XDEPFILES): Delete.
10841 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10842 * config/i386/i386mach.mh (XDEPFILES): Delete.
10843 * config/i386/i386v32.mh (XDEPFILES): Delete.
10844 * config/i386/linux.mh (XDEPFILES): Delete.
10845 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10846 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10847 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10848 * config/i386/i386sco.mh (XDEPFILES): Delete.
10849 * config/i386/i386v.mh (XDEPFILES): Delete.
10850 * config/i386/nbsd.mh (XDEPFILES): Delete.
10851 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10852 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10853 * config/i386/symmetry.mh (XDEPFILES): Delete.
10854 * config/i386/obsd.mh (XDEPFILES): Delete.
10855 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10856 * config/ia64/linux.mh (XDEPFILES): Delete.
10857 * config/ia64/aix.mh (XDEPFILES): Delete.
10858 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10859 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10860 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10861 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10862 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10863 * config/m68k/linux.mh (XDEPFILES): Delete.
10864 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10865 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10866 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10867 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10868 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10869 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10870 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10871 * config/m88k/delta88.mh (XDEPFILES): Delete.
10872 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10873 * config/m88k/m88k.mh (XDEPFILES): Delete.
10874 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10875 * config/mips/linux.mh (XDEPFILES): Delete.
10876 * config/mips/irix6.mh (XDEPFILES): Delete.
10877 * config/mips/irix5.mh (XDEPFILES): Delete.
10878 * config/mips/irix4.mh (XDEPFILES): Delete.
10879 * config/mips/irix3.mh (XDEPFILES): Delete.
10880 * config/mips/decstation.mh (XDEPFILES): Delete.
10881 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10882 (NATDEPFILES): Move core-aout.o to here.
10883 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10884 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10885 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10886 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10887 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10888 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10889 * config/pa/hpux11.mh (XDEPFILES): Delete.
10890 * config/powerpc/aix.mh (XDEPFILES): Delete.
10891 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10892 * config/powerpc/linux.mh (XDEPFILES): Delete.
10893 * config/romp/rtbsd.mh: Rename XDEPFILES.
10894 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10895 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10896 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10897 * config/s390/s390.mh (XDEPFILES): Delete.
10898 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10899 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10900 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10901 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10902 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10903 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10904 * config/sparc/linux.mh (XDEPFILES): Delete.
10905 * config/vax/vaxult.mh (XDEPFILES): Delete.
10906 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10907 * Makefile.in (DEPFILES): Remove XDEPFILES.
10908
375fc983
AC
109092002-01-17 Andrew Cagney <ac131313@redhat.com>
10910
10911 * utils.c (internal_verror): Fix comments, default is yes not no.
10912 Update queries to match. Default to quit and dump core.
10913
8926118c
AC
109142002-01-17 Andrew Cagney <ac131313@redhat.com>
10915
10916 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10917 copyright.
10918 * defs.h, event-top.c, gdbcmd.h: Ditto.
10919 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10920 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10921 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10922 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10923 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10924 * mi/mi-main.c:Ditto.
10925
10926 * stack.c, symfile.c: Update copyright.
10927
45b7b345
DJ
109282002-01-17 Daniel Jacobowitz <drow@mvista.com>
10929
db728ff7
DJ
10930 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10931 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10932 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10933 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10934
db728ff7
DJ
109352002-01-17 Daniel Jacobowitz <drow@mvista.com>
10936
10937 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10938 * gdbserver/low-lynx.c (myattach): Likewise.
10939 * gdbserver/low-nbsd.c (myattach): Likewise.
10940 * gdbserver/low-sim.c (myattach): Likewise.
10941 * gdbserver/low-sparc.c (myattach): Likewise.
10942 * gdbserver/low-sun3.c (myattach): Likewise.
10943
10944 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10945
db728ff7 10946 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10947 (main): Handle "--attach".
10948
8de3c354
AC
109492002-01-16 Andrew Cagney <ac131313@redhat.com>
10950
10951 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10952 maintainer.
10953
b0129042
DJ
109542002-01-15 Daniel Jacobowitz <drow@mvista.com>
10955
10956 * c-typeprint.c (is_type_conversion_operator): Add additional
10957 check for non-conversion operators.
10958
ba8679fb 109592002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10960
10961 * linux-proc.c: Add "info proc" command, a la procfs.c.
10962 (read_mapping): New function, abstract and re-use code.
10963 (linux_find_memory_regions): Use new func read_mapping.
10964 (linux_info_proc_cmd): New function, implement "info proc".
10965 (_initialize_linux_proc): Add new command "info proc".
10966
e4f9b4d5
MS
109672002-01-15 Michael Snyder <msnyder@redhat.com>
10968
10969 * symfile.c (generic_load): Use bfd_map_over_sections method
10970 instead of manipulating bfd structure members directly.
10971 (add_section_size_callback): New function, bfd sections callback
10972 used by generic_load.
10973 (load_sections_callback): New function, bfd sections callback
10974 used by generic_load.
10975
08cf96df
EZ
109762002-01-15 Elena Zannoni <ezannoni@redhat.com>
10977
abf22e64 10978 [Based on work by Jim Blandy]
08cf96df
EZ
10979 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10980 (builtin_type_vec128): Export.
10981 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10982 types.
10983 (builtin_type_vec128): New builtin type for 128 bit vector
10984 registers.
10985 (build_gdbtypes): Initialize builtin_type_v16qi and
10986 builtin_type_v8hi. Create the vec128 register builtin type
10987 structure.
10988 (build_builtin_type_vec128): New function.
abf22e64 10989 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
10990 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10991 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10992 AltiVec register to new builtin type.
10993
d7242108
DJ
109942001-01-15 Daniel Jacobowitz <drow@mvista.com>
10995
10996 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10997 to make_cv_type.
10998
4ee3352d
AC
109992002-01-14 Andrew Cagney <ac131313@redhat.com>
11000
11001 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11002 CLEAN_UP_REGISTER_VALUE.
11003 * regcache.c (supply_register): Update only call.
11004
f015b2e7
AC
110052002-01-14 Andrew Cagney <ac131313@redhat.com>
11006
11007 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11008 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11009 a29k-*-vxworks* targets as obsolete.
11010
356ae49d
MS
110112002-01-14 Michael Snyder <msnyder@redhat.com>
11012
11013 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11014 until we can resolve portability issues.
11015 * gregset.h: Remove references to fpxregs.
11016 * gcore.c (gcore_command): Initialize note_sec to NULL.
11017
ade8f45e
AC
110182002-01-13 Andrew Cagney <ac131313@redhat.com>
11019
11020 * signals.c (target_signal_to_name): Rewrite. Only use
11021 signals[].name when in bounds and non-NULL.
abf22e64 11022
89c49e7a
AC
110232002-01-13 Andrew Cagney <ac131313@redhat.com>
11024
11025 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11026 * signals.c (target_signal_to_name): Verify that SIG is within the
11027 bounds of the signals array.
11028
4daa9f9f
AC
110292002-01-13 Andrew Cagney <ac131313@redhat.com>
11030
11031 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11032
ba4bbdcb
KS
110332002-01-13 Keith Seitz <keiths@redhat.com>
11034
11035 * stack.c (print_frame_info_base): Print the frame's pc
11036 only if when print_frame_info_listing_hook is not defined.
11037
575bbeb6
KS
110382002-01-13 Keith Seitz <keiths@redhat.com>
11039
11040 * varobj.c (varobj_set_value): Make sure that there were no
11041 errors evaluating the object before attempting to set its
11042 value.
11043 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11044 so this offset adjustment is no longer necessary.
11045 (create_child): Don't set the error flag if the child is
11046 a CPLUS_FAKE_CHILD.
11047 (value_of_child): If value_fetch_lazy fails, return NULL
11048 so that callers will be notified that an error occurred.
11049 (c_value_of_variable): Delay check of variable's validity
11050 until later. We actually want all structs and unions to have
11051 the value "{...}".
11052 Do not return "???" for variables which could not be evaluated.
11053 This error condition must be returned to the caller so that it
11054 can get the error condition from gdb.
11055 (cplus_name_of_child): Adjust index for vptr before figuring
11056 out the name of the child.
11057 (cplus_value_of_child): If a child's (real) parent is not valid,
11058 don't even bother trying to give a value for it. Just return
11059 an error. Change all instances in this function.
11060 (cplus_type_of_child): If our parent is one of the "fake"
11061 parents, we need to get at the type of the real parent, and
11062 derive the child's true type using this information.
11063
b76898ab
AC
110642002-01-13 Andrew Cagney <ac131313@redhat.com>
11065
11066 From 2002-01-09 John Marshall <johnm@falch.net>:
11067 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11068 sources.redhat.com, and tweak some related URLs which had
11069 suffered from linkrot.
11070
b6649e88
AC
110712002-01-13 Andrew Cagney <ac131313@redhat.com>
11072
11073 From Jeff law:
11074 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11075 structures passed in registers.
11076
82cc5033
EZ
110772002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11078
11079 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11080 white space which prevented compilation. Reported by DSK
11081 <dsk@student.unsw.edu.au>.
11082
ba5f2f8a
MS
110832002-01-11 Michael Snyder <msnyder@redhat.com>
11084
fbd35540
MS
11085 * symfile.c (build_section_addr_info_from_section_tab):
11086 Use bfd access method instead of manipulating bfd directly.
11087 (syms_from_objfile): Ditto.
11088 (simple_overlay_update_1): Ditto.
11089 (simple_overlay_update): Ditto.
11090 (generic_load): Ditto.
11091 (overlay_unmapped_address): FIXME comment, bfd access methods.
11092 (sections_overlap): FIXME comment, bfd access methods.
11093 (pc_in_mapped_range): FIXME comment, bfd access methods.
11094 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11095 (section_is_mapped): FIXME comment, bfd access methods.
11096 (section_is_overlay): FIXME comment, bfd access methods.
11097
ba5f2f8a
MS
11098 * symfile.c (generic_load): Whitespace and long line cleanups.
11099 Remove duplicate variable, change several local variables to
11100 more appropriate data types.
11101 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11102
17df2af6
AC
111032002-01-12 Andrew Cagney <ac131313@redhat.com>
11104
11105 From Peter Schauer:
11106 * language.c (longest_local_hex_string_custom): Use phex_nz to
11107 convert NUM to a hex string.
11108
ec920329
EZ
111092002-01-12 Elena Zannoni <ezannoni@redhat.com>
11110
11111 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11112 the function.
538a76d6 11113 Update Copyright year.
ec920329 11114
3abd2e01
AC
111152002-01-12 Andrew Cagney <ac131313@redhat.com>
11116
11117 * language.c (longest_raw_hex_string): Delete unused function.
11118
b21b22e0
PS
111192002-01-11 Petr Sorfa <petrs@caldera.com>
11120
11121 * MAINTAINERS (write-after-approval): Add myself.
11122 * dwarf2read.c (read_tag_string_type): Handling of
11123 DW_AT_byte_size.
11124 (read_tag_string_type): FORTRAN fix to prevent propagation of
11125 first string size.
11126 (set_cu_language): Handling of DW_LANG_Fortran95
11127
747fe712
RE
111282002-01-11 Richard Earnshaw <rearnsha@arm.com>
11129
11130 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11131 GETPID(inferior_ptid).
11132 (store_inferior_registers): Likewise.
11133
f1bea926
JM
111342002-01-10 Jason Merrill <jason@redhat.com>
11135
11136 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11137 Fix DW_OP_minus.
11138
ae940673
AC
111392002-01-10 Andrew Cagney <ac131313@redhat.com>
11140
11141 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11142 and bfd/elf32-sh-nbsd.c.
11143
00546b04
MS
111442002-01-10 Michael Snyder <msnyder@redhat.com>
11145
352ed7b4
MS
11146 * NEWS: Mention --pid and corefile/proc-id behavior change.
11147
c18be923
MS
11148 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11149 * gcore.c: Include cli/cli-decode.h instead of command.h.
11150
00546b04
MS
11151 * main.c (captured_main): Add new command line option "--pid".
11152 If the second command line argument (following the symbol-file)
11153 begins with a digit, try to attach to it before trying to open
11154 it as a corefile.
11155 (print_gdb_help): Document the "--pid" argument.
11156
db60ec62
EZ
111572002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11158
11159 * completer.c (command_completer): New function.
11160
11161 * completer.h <command_completer>: Add prototype.
11162
11163 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11164 completer for the "help" command.
11165
39c22d1a
JM
111662002-01-09 Jason Merrill <jason@redhat.com>
11167
11168 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11169
c564377f
MS
111702002-01-09 Michael Snyder <msnyder@redhat.com>
11171
975aec09
MS
11172 * i386-linux-nat.c (fill_fpxregset): Make global.
11173 (store_fpxregset): Ditto.
11174
db4a10fa
MS
11175 * gregset.h (gdb_fpxregset_t): Define.
11176 (supply_fpxregset): Prototype.
11177 (fill_fpxregset): Prototype.
11178
c564377f
MS
11179 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11180
c3d45d70
RE
111812002-01-09 Richard Earnshaw <rearnsha@arm.com>
11182
11183 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11184 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11185 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11186
fcc87af1
AC
111872002-01-09 Andrew Cagney <ac131313@redhat.com>
11188
11189 * MAINTAINERS: Update target maintainer rules so that any
11190 Maintainer can approve a tested patch for a maintenance-only
11191 target.
11192
dd96c05b
RE
111932002-01-09 Richard Earnshaw <rearnsha@arm.com>
11194
d4297db9 11195 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11196
d4297db9 11197 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11198 IN_SIGTRAMP.
11199
145fdc6e
MS
112002002-01-08 Michael Snyder <msnyder@redhat.com>
11201
11202 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11203 real name of the executable, rather than the /proc name.
11204
be4d1333
MS
112052002-01-03 Michael Snyder <msnyder@redhat.com>
11206
11207 Implement a "generate-core-file" command in gdb, save target state.
11208 * gcore.c: New file. Implement new command 'generate-core-file'.
11209 Save a corefile image of the current state of the inferior.
11210 * linux-proc.c: Add linux-specific code for saving corefiles.
11211 * target.h (struct target_ops): Add new target vectors for saving
11212 corefiles; to_find_memory_regions and to_make_corefile_notes.
11213 (target_find_memory_regions): New macro.
11214 (target_make_corefile_notes): New macro.
11215 * target.c (update_current_target): Inherit new target methods.
11216 (dummy_find_memory_regions): New place-holder method.
11217 (dummy_make_corefile_notes): New place-holder method.
11218 (init_dummy_target): Initialize new dummy target vectors.
11219 * exec.c (exec_set_find_memory_regions): New function.
11220 Allow the exec_ops vector for memory regions to be taken over.
11221 (exec_make_note_section): New function, target vector method.
11222 * defs.h (exec_set_find_memory_regions): Export prototype.
11223 * procfs.c (proc_find_memory_regions): New function, corefile method.
11224 (procfs_make_note_section): New function, corefile method.
11225 (init_procfs_ops): Set new target vector pointers.
11226 (find_memory_regions_callback): New function.
11227 (procfs_do_thread_registers): New function.
11228 (procfs_corefile_thread_callback): New function.
11229 * sol-thread.c (sol_find_memory_regions): New function.
11230 (sol_make_note_section): New function.
11231 (init_sol_thread_ops): Initialize new target vectors.
11232 * inftarg.c (inftarg_set_find_memory_regions): New function.
11233 Allow to_find_memory_regions vector to be taken over.
11234 (inftarg_set_make_corefile_notes): New function.
11235 Allow to_make_corefile_notes vector to be taken over.
11236 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11237 interface layer if not target_has_execution (may be a corefile).
11238 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11239 * config/sparc/sun4sol2.mh: Ditto.
11240 * config/alpha/alpha-linux.mh: Ditto.
11241 * config/arm/linux.mh: Ditto.
11242 * config/i386/x86-64linux.mh: Ditto.
11243 * config/ia64/linux.mh: Ditto.
11244 * config/m68k/linux.mh: Ditto.
11245 * config/mips/linux.mh: Ditto.
11246 * config/powerpc/linux.mh: Ditto.
11247 * config/sparc/linux.mh: Ditto.
11248
c6b92abd
MS
112492002-01-07 Michael Snyder <msnyder@redhat.com>
11250
11251 * arm-linux-nat.c: Remove references to regcache.c internal data
11252 (registers[] and register_valid[]).
11253
4b09dc8c
MS
112542002-01-07 Michael Snyder <msnyder@redhat.com>
11255
abf22e64
AJ
11256 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11257 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11258 symbol file and shlibs.
11259 * Makefile.in: Add rule for linux-proc.o.
11260 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11261 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11262 * config/arm/linux.mh: Ditto.
11263 * config/i386/linux.mh: Ditto.
11264 * config/i386/x86-64linux.mh: Ditto.
11265 * config/ia64/linux.mh: Ditto.
11266 * config/m68k/linux.mh: Ditto.
11267 * config/mips/linux.mh: Ditto.
11268 * config/powerpc/linux.mh: Ditto.
11269 * config/sparc/linux.mh: Ditto.
11270
c25b74ac
PM
112712002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11272
11273 * win32-nat.c: Add i386-tdep.h dependency.
11274
94cd915f
MS
112752002-01-07 Michael Snyder <msnyder@redhat.com>
11276
c7cccb76
MS
11277 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11278 instead of bfd_get_arch_size. Don't bail out just because
11279 there's no exec_bfd.
abf22e64 11280
34c0bd93
MS
11281 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11282 * p-valprint.c (pascal_object_print_value): Ditto.
11283 * somread.c (som_symtab_read): Ditto.
11284 * symfile.c (simple_free_overlay_region_table): Ditto.
11285 * valops.c (value_assign): Ditto.
11286
21c1c920
MS
11287 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11288 use tilde_expand and strerror for opening save-tracepoints file.
11289
5bbd998e
MS
11290 * thread-db.c (thread_db_new_objfile): Indendation fix.
11291
94cd915f
MS
11292 * infptrace.c (GDB_MAX_ALLOCA): New define.
11293 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11294 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11295 can be overridden with whatever value is appropriate to the host).
11296 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11297 alloca to allocate potentially large buffer.
11298 * rs6000-nat.c (child_xfer_memory): Ditto.
11299 * symm-nat.c (child_xfer_memory): Ditto.
11300 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11301
494e8a93
JSC
113022002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11303
11304 From Nick Clifton <nickc@redhat.com>
11305 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11306
d0e1d48e
MS
113072002-01-07 Michael Snyder <msnyder@redhat.com>
11308
abf22e64 11309 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11310 Don't use exec_bfd if it's NULL.
11311
290b2c7a
MK
113122002-01-06 Mark Kettenis <kettenis@gnu.org>
11313
abf22e64 11314 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11315
aef21287
AC
113162002-01-06 Andrew Cagney <ac131313@redhat.com>
11317
11318 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11319 * gnu-nat.c: Ditto.
11320
30efa627
AC
113212002-01-06 Andrew Cagney <ac131313@redhat.com>
11322
11323 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11324 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11325 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11326 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11327 z8k-coff have not been multi-arched. Update z8k-coff build
11328 status.
11329
9b4ff276
AC
113302002-01-06 Andrew Cagney <ac131313@redhat.com>
11331
11332 * MAINTAINERS: Mark a29k target as obsolete.
11333 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11334 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11335 comments.
11336 * NEWS: Note that a29k targets are obsolete.
11337 * a29k-tdep.c: Mark as obsolete.
11338 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11339 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11340 a29k-*-vxworks* targets as obsolete.
11341 * remote-adapt.c: Obsolete.
11342 * remote-eb.c: Obsolete.
11343 * remote-mm.c: Obsolete.
11344 * remote-udi.c: Obsolete.
11345 * config/a29k/a29k-udi.mt: Obsolete.
11346 * config/a29k/a29k.mt: Obsolete.
11347 * config/a29k/tm-a29k.h: Obsolete.
11348 * config/a29k/tm-vx29k.h: Obsolete.
11349 * config/a29k/vx29k.mt: Obsolete.
11350
a9011d31
AC
113512002-01-05 Andrew Cagney <ac131313@redhat.com>
11352
11353 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11354 with BFD_ENDIAN_BIG.
11355
9299404e
AC
113562002-01-05 Andrew Cagney <ac131313@redhat.com>
11357
11358 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11359 * configure, config.in: Re-generate.
11360 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11361 * defs.h: Do not include <endian.h>.
11362
7e89e357
JT
113632002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11364
11365 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11366 * config.in: Regenerate.
11367 * configure.in: Update copyright years.
11368 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11369 * configure: Regenerate.
11370 * i386bsd-nat.c: Update copyright years.
11371 (fill_gregset): Use regcache_collect.
11372 (fetch_inferior_registers): Only fetch integer registers
11373 if requested to do so. Add support for XMM registers
11374 using PT_GETXMMREGS.
11375 (store_inferior_registers): Only store integer registers
11376 if requested to do so. Add support for XMM registers
11377 using PT_SETXMMREGS.
11378 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11379 (store_inferior_registers): Remove.
11380 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11381 (fetch_elfcore_registers): New function.
11382 (i386nbsd_elfcore_fns): New.
11383 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11384 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11385 i386bsd-nat.o.
11386 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11387 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11388 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11389 * config/i386/tm-nbsd.h: Update copyright years.
11390 (HAVE_SSE_REGS): Define.
11391 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11392 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11393 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11394 (SIGCONTEXT_PC_OFFSET): Remove.
11395 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11396
a752853e
AC
113972002-01-05 Andrew Cagney <ac131313@redhat.com>
11398
11399 * configure.tgt: Remove powerpc-*-macos* target.
11400 * config/m68k/xm-mpw.h: Delete file.
11401 * config/xm-mpw.h: Delete file.
11402 * ser-mac.c: Delete file.
11403 * mpw-make.sed: Delete file.
11404 * mpw-config.in: Delete file.
11405 * mac-xdep.c: Delete file.
11406 * mac-gdb.r: Delete file.
11407 * mac-defs.h: Delete file.
11408 * mac-nat.c: Delete file.
11409 * config/powerpc/macos.mh: Delete file.
11410 * config/powerpc/macos.mt: Delete file.
11411 * config/powerpc/nm-macos.h: Delete file.
11412 * config/powerpc/tm-macos.h: Delete file.
11413 * source.c (openp, open_source_file): Remove obsolete code.
11414 * top.c (gdb_readline): Ditto.
11415 * utils.c (query): Ditto.
11416 * event-top.c (display_gdb_prompt): Ditto.
11417 * Makefile.in (ser-mac.o): Delete obsolete target.
11418 * NEWS: Update.
11419
d7449b42
AC
114202002-01-04 Andrew Cagney <ac131313@redhat.com>
11421
11422 * defs.h (BIG_ENDIAN): Delete macro definition.
11423 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11424 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11425 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11426 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11427 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11428 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11429 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11430 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11431 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11432 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11433 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11434 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11435 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11436 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11437 * gdbarch.c: Re-generate.
11438
356374e8
DJ
114392002-01-04 Daniel Jacobowitz <drow@mvista.com>
11440
11441 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11442 for core files.
11443
a2b8f8f8
JT
114442002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11445
11446 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11447
12466af9
AC
114482002-01-04 Andrew Cagney <ac131313@redhat.com>
11449
11450 * value.h (value_ptr): Delete typedef.
11451
3549ab40
JT
114522002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11453
11454 * i386nbsd-nat.c: Update copyright years.
11455 Include i386-tdep.h.
11456
fedbd091
EZ
114572002-01-04 Elena Zannoni <ezannoni@redhat.com>
11458
11459 * stabsread.c: Update copyright years.
11460
11461 From Debashis Mahata <debashis.mahata@wipro.com>:
11462 (read_struct_fields): Deal with Sun C compiler erroneous stab
11463 output for structs and unions.
fec8b34f 11464 Fix PR gdb/269.
fedbd091 11465
eb43544b
DJ
114662002-01-04 Daniel Jacobowitz <drow@mvista.com>
11467
11468 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11469 prototype.
11470
1514d34e
DJ
114712002-01-04 Daniel Jacobowitz <drow@mvista.com>
11472
11473 * cp-abi.c: Fix whitespace.
11474 (baseclass_offset): New wrapper function.
11475 * cp-abi.h (baseclass_offset): Add prototype.
11476 (struct cp_abi_ops): Add baseclass_offset pointer.
11477
11478 * valops.c (vb_match): Move to...
11479 * gnu-v2-abi.c (vb_match): here.
11480 * valops.c (baseclass_offset): Move to...
11481 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11482
11483 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11484
11485 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11486 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11487 * hpacc-abi.c (init_hpacc_ops): Likewise.
11488
7f8c9282
DJ
114892002-01-04 Daniel Jacobowitz <drow@mvista.com>
11490
11491 * valops.c (find_overload_match): Accept obj as a
11492 reference parameter. Update it before returning.
11493 * value.h (find_overload_match): Update prototype.
11494 * eval.c (evaluate_subexp_standard): Pass object to
11495 find_overload_match by reference.
11496
f23631e4
AC
114972002-01-03 Andrew Cagney <ac131313@redhat.com>
11498
11499 * valarith.c: Replace value_ptr with struct value pointer. Remove
11500 register attribute from value declarations.
11501 * valops.c: Ditto.
11502 * value.h: Ditto.
11503 * scm-lang.c (scm_lookup_name): Ditto.
11504
79e10fab 115052002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11506
79e10fab
AC
11507 Abstract the functionality of iterating over mapped memory
11508 regions into a general purpose iterator function.
abf22e64 11509 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11510 iterator for memory sections.
11511 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11512 (solib_mappings_callback): New function, callback for above.
11513 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11514 (info_mappings_callback): New function, callback for above.
11515
11516 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11517
c5ad026a
MK
115182002-01-01 Mark Kettenis <kettenis@gnu.org>
11519
d2a7c97a
MK
11520 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11521 * i386-tdep.c: Include "elf-bfd.h".
11522 (process_note_abi_tag_sections): New function.
11523 (i386_gdbarch_init): Add code to recognize various OS/ABI
11524 combinations.
11525
c5ad026a
MK
11526 * maint.c (_initialize_maint_cmds): Add missing \ in
11527 string-literal.
11528
a1a5b71e 11529For older changes see ChangeLog-2001
c906108c
SS
11530\f
11531Local Variables:
11532mode: change-log
11533left-margin: 8
11534fill-column: 74
11535version-control: never
11536End:
This page took 0.910002 seconds and 4 git commands to generate.