2002-09-27 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9bbe19fb
DC
12002-09-27 David Carlton <carlton@math.stanford.edu>
2
3 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4 (mcore-tdep.o): Ditto.
5 (ns32k-tdep.o): Ditto.
6 (ns32knbsd-tdep.o): Ditto.
7 (sh3-rom.o): Ditto.
8 (vax-tdep.o): Ditto.
9 * cris-tdep.c: #include "gdb_string.h"
10 * mcore-tdep.c: Ditto.
11 * ns32k-tdep.c: Ditto.
12 * ns32knbsd-tdep.c: Ditto.
13 * sh3-rom.c: Ditto.
14 * vax-tdep.c: Ditto.
15
43b2fdc7
DC
162002-09-27 David Carlton <carlton@math.stanford.edu>
17
18 * config/djgpp/fnchange.lst: Add entries for
19 gdb/testsuite/gdb.c++/m-static files.
20
e8cfbbd9
JW
212002-09-27 Jim Wilson <wilson@redhat.com>
22
23 * MAINTAINERS: Add myself to the Write After Approval list.
24
43b2fdc7 252002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
26
27 * mips-tdep.c (find_proc_desc): Initialize startaddr.
28
29
9f3b7f07
AC
302002-09-26 Andrew Cagney <ac131313@redhat.com>
31
32 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
33 frame.
34
11269d7e
AC
352002-09-26 Andrew Cagney <ac131313@redhat.com>
36
37 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
38 (rs6000_struct_return_address): Delete variable.
39 (rs6000_store_struct_return): Update.
40 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
41 deprecated_extract_struct_value_address.
42 (rs6000_frame_align): New function.
43 (rs6000_gdbarch_init): Set frame_align.
44
f15ab4a7
AC
452002-09-26 Andrew Cagney <ac131313@redhat.com>
46
47 From Grace Sainsbury <graces@redhat.com>:
48 * Makefile.in (gdbtk-main.o): New target.
49 (gdb.o): New target.
50 (main_h): Define.
51 (main.o): Update dependencies.
52 (gdb$(EXEEXT)): Add gdb.o.
53 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
54 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
55 (SUBDIR_GDBTK_CLEAN): Set.
56 (install-gdbtk): Install the insight binary.
57 (uninstall-gdbtk): New target.
58 (all-gdbtk, clean-gdbtk): New rule.
59 * top.c (use_windows): Default to zero.
60 * main.c: Include "main.h".
61 (main): Delete.
62 (struct captured_main_args): Delete.
63 (gdb_main): New function.
64 * main.h: New file.
65 * gdb.c: New File.
66
e36180d7
AC
672002-09-25 Andrew Cagney <cagney@redhat.com>
68
69 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
70 (frame_map_regnum_to_name): New function.
71 (frame_map_name_to_regnum): New function.
72 * frame.h (frame_map_name_to_regnum): Declare.
73 (frame_map_regnum_to_name): Declare.
74 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
75 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
76 * parse.c: Do not include "builtin-regs.h".
77 (target_map_name_to_register): Delete function.
78 (write_dollar_variable): Use frame_map_name_to_regnum.
79 * parser-defs.h (target_map_name_to_register): Delete declaration.
80 * expprint.c: Include "frame.h".
81 (print_subexp): Use frame_map_regnum_to_name.
82 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
83 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
84
8b69000d
AC
852002-09-25 Andrew Cagney <ac131313@redhat.com>
86
87 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
88 wasn't saved, and the next innermost frame is a dummy, return the
89 dummy frame's link register.
90
046ca86a
JB
912002-09-24 Jim Blandy <jimb@redhat.com>
92
93 Fix from Paul Breed:
94 * main.c (captured_main): Add a `break' after the case for 'b'.
95
94b66fa7
KS
962002-09-24 Keith Seitz <keiths@redhat.com>
97
98 * varobj.c (c_type_of_child): Use get_target_type instead
99 of TYPE_TARGET_TYPE.
100
c214a6fd
FN
1012002-09-22 Fernando Nasser <fnasser@redhat.com>
102
53cb0458
FN
103 * source.c (get_current_or_default_source_symtab_and_line): Remove
104 function.
105 (set_default_source_symtab_and_line): New function. Attempts to
106 determine a source file to list lines from if one is not currently
107 defined.
108 (get_current_source_symtab_and_line): Initialize sal.pc and
109 sal.end fields.
110 (set_current_source_symtab_and_line): Mark argument as const.
111 * source.h: Update declarations and comments.
112 * linespec.c (decode_line_1): Replace call to removed routine above.
113 * stack.c (print_frame_info_base): Ditto.
114 * cli/cli-cmds.c (edit_command): Ditto.
115 (list_command): Ditto.
116
1172002-09-22 Fernando Nasser <fnasser@redhat.com>
118
119 * source.c (get_current__or_default_source_symtab_and_line): Initialize
120 sal.pc and sal.end fields.
c214a6fd
FN
121 (get_current_or_default_source_symtab_and_line): Ditto.
122 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
123 so we do not cause a new source symtab to be searched for (reverting an
124 unintentional change from the 2002-09-20 patch).
125 * scm-lang.c (scm_unpac): Ditto.
126
cc3b68a5
AC
1272002-09-21 Andrew Cagney <cagney@redhat.com>
128
129 * complaints.c (symfile_explanations): Remove new-line from
130 ``isolated_message''.
131 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
132 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
133
5835abe7
NC
1342002-09-20 Nick Clifton <nickc@redhat.com>
135
136 * NEWS: Announce that V850EA ISA is no longer supported.
137 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
138
a15ef5f5
DC
1392002-09-20 David Carlton <carlton@math.stanford.edu>
140
06ba1b39
DC
141 * Makefile.in (c-lang.o): Correct dependencies.
142 (utils.o): Gather dependencies.
143 (charset.o): Move.
a15ef5f5
DC
144 * c-lang.c: #include "gdb_string.h"
145
87885426
FN
1462002-09-20 Fernando Nasser <fnasser@redhat.com>
147
148 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
149 * cli/cli-cmds.c (list_command): New function. Implements the new
150 cli edit command.
151 (_init_cli_cmds): Add new command definition.
152 * gdb.1: Document edit command.
153 * doc/gdb.texinfo: Document edit command.
154
1552002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
156
157 * source.c: Make global variables current_source_symtab and
158 current_source_line static.
159 (list_command): Moved to cli/cli-cmds.c.
160 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
161 (get_first_line_listed): New accessor function.
162 (get_lines_to_list): New accessor function.
163 (get_current_source_symtab_and_line): New function. Retrieves the
164 position in the source code that we consider current.
165 (get_current_or_default_source_symtab_and_line): New function.
166 Like the above but attempts to determine a default position if one
167 is not currently defined.
168 (set_current_source_symtab_and_line): New function. Sets the source
169 code position considered current and returns the previously set one.
170 (clear_current_source_symtab_and_line): Reset stored information about
171 a current source line.
172 (_initialize_source): Remove registration for the "list" command and
173 its alias.
174 * source.h: Add declarations for the new functions above.
175 * symtab.h: Remove declarations for the global variables mentioned
176 above.
177 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
178 obtain current source line.
179 * linespec.c (decode_line_1): Ditto.
180 * macroscope.c (default_macro_scope): Ditto.
181 * scm-lang.c (scm_unpac): Ditto.
182 * stack.c (print_frame_info_base): Ditto.
183 * symfile.c (clear_symtab_users): Ditto.
184 * symtab.c (decode_line_spec): Ditto.
185 * cli/cli-cmds.c (list_command): Moved here from source.c.
186 (ambiguous_line_spec): Moved here from source.c.
187 (_init_cli_cmds): Add definition for "list" and its alias.
188 * Makefile.in: Update dependencies.
189
ddd216ea
CV
1902002-09-20 Corinna Vinschen <vinschen@redhat.com>
191
192 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
193 with what gcc thinks is correct.
194
6d305052
CV
1952002-09-20 Corinna Vinschen <vinschen@redhat.com>
196
197 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
198 multiple register push instruction.
199
234b45d4
KB
2002002-09-19 Jim Blandy <jimb@redhat.com>
201
202 Add support for distinct host and target character sets.
203 * charset.c, charset.h: New files.
204 * c-exp.y: #include "charset.h".
205 (yylex): Convert character and string literals to the target
206 character set, before returning them as the semantic value of the
207 token.
208 * c-lang.c: #include "charset.h".
209 (c_emit_char): Use charset-specific methods to recognize
210 characters with backslash escape forms, to decide which characters
211 to print literally and which to print using numeric escape
212 sequences, and to convert target characters to host characters
213 before printing.
214 * utils.c: #include "charset.h".
215 (no_control_char_error): New function.
216 (parse_escape): Use charset-specific methods to recognize
217 backslash escapes, parse `control character' notation, and convert
218 characters from the host character set to the target character set.
219 * configure.in: Set the default host character set.
220 Check where to find iconv, and what its argument types might be.
221 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
222 * Makefile.in (SFILES): List charset.c.
223 (COMMON_OBS): List charset.o.
224 (charset.o): New rule.
225 (charset_h): New header dependency variable.
226 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
227 (LIBICONV): New variable, set by configure.
228 (CLIBS): Include $(LIBICONV) here.
229 * aclocal.m4, config.in, configure: Regenerated.
230
525d6a61
JB
2312002-09-19 Joel Brobecker <brobecker@gnat.com>
232
233 * ada-exp.y: Add missing semicolons to end rules. Fixes a
234 bison 1.35 warning.
235
3ed93867
RE
2362002-09-19 Richard Earnshaw <rearnsha@arm.com>
237
238 * gdb_mbuild.sh: New file.
239
437666f8
AC
2402002-09-19 Andrew Cagney <ac131313@redhat.com>
241
242 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
243
389e51db
AC
2442002-09-18 Andrew Cagney <ac131313@redhat.com>
245
246 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
247 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
248 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
249 valops.c, value.h: Revert previous change.
250
3b4efeaa
MS
2512002-09-18 Michael Snyder <msnyder@redhat.com>
252
253 Preliminary support for Objective-C:
254 * defs.h (language_objc): New enum value.
255 (puts_filtered_tabular): Declaration only, exported from utils.c.
256 (skip_quoted): Delete, declared in completer.h.
257 * c-exp.y: Include completer.h.
258 * p-exp.y: Ditto.
259 * jv-exp.y: Ditto.
260 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
261 New operator enum values.
262 * language.h (CAST_IS_CONVERSION): Test for language_objc.
263 * language.c (binop_result_type): Handle language_objc case.
264 (integral_type, character_type, string_type, boolean_type,
265 structured_type, binop_type_check): Ditto.
266 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
267 (struct objc_specific): Add to general_symbol_info.
268 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
269 (SYMBOL_DEMANGLED_NAME): Handle objc case.
270 * parser-defs.h (struct objc_class_str): New struct type.
271 (start_msglist, end_msglist, add_msglist): Declaration only,
272 exported from objc-lang.c.
273 * value.h (value_of_local, value_nsstring,
274 call_function_by_hand_expecting_type): Exported from valops.c.
275 * valops.c (find_function_addr): Export.
276 (call_function_by_hand_expecting_type): New function.
277 (value_of_local): New function.
278 * symfile.c (init_filename_language_table): Add ".m" extension
279 for Objective-C.
280 * utils.c (puts_filtered_tabular): New function.
281 (fprintf_symbol_filtered): Add objc demangling support (disabled).
282 (set/show demangle): Extend help-string to refer to ObjC.
283 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
284 * stabsread.c (symbol_reference_defined): Objective-C symbols
285 may contain colons: make allowances when scanning stabs strings
286 for colons.
287 (objc_find_colon): New function.
288 * printcmd.c (address_info): If language == objc then print
289 "self" instead of "this".
290 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
291 OP_NSSTRING, and OP_SELF.
292 (prefixify_subexp): Ditto.
293 * source.c (print_source_lines): Mention objc in comment.
294 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
295 method names.
296
b9caf505
AC
2972002-09-18 Andrew Cagney <ac131313@redhat.com>
298
299 * complaints.h: Update copyright.
300 (struct complaints): Declare.
301 (struct complaint): Make `message' constant.
302 (internal_complaint): Declare.
303 (complaint): Declare.
304 (complaint_root): Delete declaration.
305 (symfile_complaints): Delete declaration.
306 (struct complaints): Add opaque declaration.
307 (clear_complaints): Add a complaints parameter.
308 * complaints.c: Update copyright.
309 (enum complaint_series): Define.
310 (complaint_root): Delete.
311 (struct complaints): Define.
312 (complaint_sentinel, symfile_complaint_book): New variables.
313 (symfile_explanations, symfile_complaints): New variables.
314 New variables.
315 (get_complaints): New function.
316 (vcomplaint): New function.
317 (complaint): New function.
318 (internal_complaint): New function.
319 (complain): Call vcomplain with symfile_complaint.
320 (clear_complaints): Rewrite.
321 (_initialize_complaints): Use add_setshow_command.
322 * Makefile.in (complaints.o): Update dependencies.
323 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
324 to call to clear_complaints.
325 (new_symfile_objfile, reread_symbols): Ditto.
326 (oldsyms_complaint): Delete.
327 (empty_symtab_complaint, unknown_option_complaint): Delete.
328 (free_named_symtabs): Use complaint instead of complain.
329
d2e6263c
MS
3302002-09-18 Michael Snyder <msnyder@redhat.com>
331
5fb2031a
AC
332 Contributed by Apple Computer, Inc. Merged with current sources
333 by Adam Fedor <fedor@doc.com> [cagney].
334
d2e6263c
MS
335 * objc-lang.c: First clean-up round: comments, indentation.
336 * objc-lang.h: Ditto.
337 * objc-lang.y: Ditto.
338
dec43320
AC
3392002-09-18 Andrew Cagney <ac131313@redhat.com>
340
341 * maint.c (maintenance_internal_error): Print the parameter as the
342 error message.
343 (maintenance_internal_warning): New function.
344 (_initialize_maint_cmds): Add command `maint internal-warning'.
345
346 * defs.h (internal_warning, internal_vwarning): Declare.
347 * utils.c (struct internal_problem): Define.
348 (internal_vproblem): New function.
349 (internal_warning): New function.
350 (internal_vwarning): New function.
351 (internal_warning_problem, internal_error_problem): New variables.
352 (internal_verror): Just call internal_vproblem.
353
b81654f1
MS
3542002-09-18 Michael Snyder <msnyder@redhat.com>
355
356 * objc-lang.c: New file, support for Objective-C.
357 Preliminary check-in, not yet integrated into gdb.
358 * objc-lang.h: New file.
359 * objc-exp.y: New file.
360
0542c381
AC
3612002-09-18 Andrew Cagney <ac131313@redhat.com>
362
7bda5e4a
AC
363 * infrun.c (signal_stop_update): Convert definition to ISO C.
364 (signal_print_update): Ditto.
365 (signal_pass_update): Ditto.
366 * inflow.c (terminal_save_ours): Ditto.
367
5247b418
AC
368 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
369 comments.
370
fc60962c
AC
371 * config/djgpp/fnchange.lst: Handle name clashes between
372 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
373 bfd/coff-tic80.c.
374
0542c381
AC
375 * i386-linux-tdep.h: Fix tipo.
376
5b924b9b
AF
3772002-09-18 Adam Fedor <fedor@gnu.org>
378
379 * MAINTAINERS: Add myself to the Write After Approval list.
380
5afc051b
JB
3812002-09-18 Jim Blandy <jimb@redhat.com>
382
383 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
384 texthigh and textlow to reader-specific structs caused
385 objfile_relocate to miss them. This is fixable, but the work that
386 the change was supposed to prepare GDB for never got done anyway.
387
eb944380
DC
3882002-09-18 David Carlton <carlton@math.stanford.edu>
389
390 * MAINTAINERS: Alphabetize Write After Approval list.
391
948e66d9
DJ
3922002-09-18 Daniel Jacobowitz <drow@mvista.com>
393
394 Fix PR gdb/709
395 * values.c (value_static_field): Call read_var_value.
396
dc604539
AC
3972002-09-18 Andrew Cagney <ac131313@redhat.com>
398
399 * valops.c (hand_function_call): Align the initial stack pointer
400 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
401 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
402 return value.
403 * mips-tdep.c (mips_frame_align): New function.
404 (mips_gdbarch_init): Set frame_align.
405 * gdbarch.sh (FRAME_ALIGN): New method.
406 * gdbarch.h, gdbarch.c: Re-generate.
407
cb7e422f
ML
4082002-09-18 Michal Ludvig <mludvig@suse.cz>
409
410 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
411 registers.
412
a094c6fb
AC
4132002-09-17 Andrew Cagney <ac131313@redhat.com>
414
415 * NEWS: Mention that MIPS $fp behavior changed.
416 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
417 reference to FP_REGNUM.
418 (mipsnbsd_cannot_store_register): Ditto.
419 * mips-linux-nat.c: Update copyright.
420 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
421 (mips_linux_cannot_store_register): Ditto.
422 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
423 * config/mips/tm-mips.h: Update copyright.
424 (FP_REGNUM): Delete macro.
425 (MIPS_REGISTER_NAMES): Replace "fp" with "".
426 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
427 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
428 (mips_r3041_reg_names, mips_r3051_reg_names)
429 (mips_r3081_reg_names): Replace "fp" with "".
430 Fix PR gdb/480.
431
45cf40d1
TR
4322002-09-17 Theodore A. Roth <troth@verinet.com>
433
434 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
435 generic_read_register_dummy() (PR gdb/703).
436 (avr_push_return_address): #if 0 out unused vars.
437 (avr_gdbarch_init): Enable use of avr_push_return_address().
438
c7e701b5
MS
4392002-09-17 Michael Snyder <msnyder@redhat.com>
440
d76ba2a5 441 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
442 RTE will take care of it.
443
20bcf01c
AC
4442002-09-17 Andrew Cagney <ac131313@redhat.com>
445
446 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
447 invalid, return SP_REGNUM.
448
009a9971 4492002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
450
451 * mips-tdep.c (mips_pop_frame): Read saved values of floating
452 point registers without sign extension.
453
135c175f
AC
4542002-09-17 Andrew Cagney <cagney@redhat.com>
455
456 * blockframe.c (deprecated_read_register_dummy): Rename
457 generic_read_register_dummy.
458 * frame.c (frame_unwind_signed_register): New function.
459 (frame_unwind_unsigned_register): New function.
460 * frame.h (frame_unwind_signed_register): Declare.
461 (frame_unwind_unsigned_register): Declare.
462 (deprecated_read_register_dummy): Rename
463 generic_read_register_dummy.
464
465 * h8300-tdep.c (h8300_frame_chain): Update.
466 (h8300_frame_saved_pc): Update.
467 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
468 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
469 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
470 (s390_frame_chain): Update.
471 * v850-tdep.c (v850_find_callers_reg): Update.
472 (v850_frame_saved_pc): Update.
473 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
474 (m32r_find_callers_reg): Update.
475 (m32r_frame_saved_pc): Update.
476 * sh-tdep.c (sh_find_callers_reg): Update.
477 (sh64_get_saved_pr): Update.
478 (sh_init_extra_frame_info): Update.
479 (sh_init_extra_frame_info): Update.
480 (sh64_init_extra_frame_info): Update.
481 (sh64_init_extra_frame_info): Update.
482 * mcore-tdep.c (mcore_find_callers_reg): Update.
483 (mcore_frame_saved_pc): Update.
484 (mcore_init_extra_frame_info): Update.
485 * i386-tdep.c (i386_frame_saved_pc): Update.
486 * ia64-tdep.c (ia64_frame_saved_pc): Update.
487 (ia64_init_extra_frame_info): Update.
488 (ia64_init_extra_frame_info): Update.
489 * d10v-tdep.c (d10v_frame_saved_pc): Update.
490 * cris-tdep.c (cris_init_extra_frame_info): Update.
491 * avr-tdep.c (avr_frame_chain): Update.
492 (avr_init_extra_frame_info): Update.
493 (avr_frame_saved_pc): Update.
494 * arm-tdep.c (arm_find_callers_reg): Update.
495 (arm_init_extra_frame_info): Update.
496 (arm_frame_saved_pc): Update.
497
a741e514
TT
4982002-09-17 Tom Tromey <tromey@redhat.com>
499
500 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
501 is "'".
502
d1a8e808
CV
5032002-09-17 Corinna Vinschen <vinschen@redhat.com>
504
505 * MAINTAINERS: Remove "non multi-arched" text from h8300.
506 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
507 NEXT_PROLOGUE_INSN.
508 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
509 NEXT_PROLOGUE_INSN.
510
d9025a18
JB
5112002-09-16 Joel Brobecker <brobecker@gnat.com>
512
513 * osfsolib.c: Remove file, replaced by solib-osf.c.
514 * Makefile.in: Remove compilation rules for osfsolib.c.
515
1b2ef1b6
DC
5162002-09-16 David Carlton <carlton@math.stanford.edu>
517
518 * cp-valprint.c (cp_print_class_method): Correct args to
519 check_stub_method_group.
520
928e48af
CV
5212002-09-16 Corinna Vinschen <vinschen@redhat.com>
522
523 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
524 `set architecture'. Unify naming convention of functions.
525 (h8300_skip_prologue): Improve prologue analysis.
526 (h8300_push_arguments): Rewritten to more closely match GCC's
527 bizarre argument-passing behavior, along with the comment describing
528 said behavior.
529 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
530 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
531 sim, remote-e7000.c, remote-hms.c and remote.c
532
5e3397bb
MK
5332002-09-15 Mark Kettenis <kettenis@gnu.org>
534
535 * i386-tdep.c (gdb_print_insn_i386): Removed.
536 (i386_print_insn): New function.
537 (i386_gdbarch_init): Set print_insn to i386_print_insns.
538 (_initialize_i386_tdep): Don't initialize tm_print_insn and
539 tm_print_insn_info.
540
f710f4fc
MK
5412002-09-14 Mark Kettenis <kettenis@gnu.org>
542
543 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
544 zero.
545
db54fef4
CV
5462002-09-14 Corinna Vinschen <vinschen@redhat.com>
547
548 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
549 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
550 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
551
2becadee
CF
5522002-09-13 Christopher Faylor <cgf@redhat.com>
553
554 * win32-nat.c (child_create_inferior): Honor 'tty' command.
555
de17c821
DJ
5562002-09-13 Daniel Jacobowitz <drow@mvista.com>
557
558 * gdbtypes.c (check_stub_method): Make static.
559 (check_stub_method_group): New function.
560 * gdbtypes.h: Update prototypes.
561 * cp-support.c: New file.
562 * cp-support.h: New file.
563
564 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
565 (update_method_name_from_physname): New function.
566 (read_member_functions): Correct method names for operators
567 and v3 constructors/destructors. Separate v2 constructors and
568 destructors.
569 * Makefile.in (stabsread.o): Update dependencies.
570 (SFILES): Add cp-support.c.
571 (COMMON_OBS): Add cp-support.o.
572 (cp_support_h, cp-support.o): Add.
573
574 * cp-valprint.c (cp_print_class_method): Call
575 check_stub_method_group instead of check_stub_method. Remove
576 extraneous QUITs.
577 * p-valprint.c (pascal_object_print_class_method): Likewise.
578 * valops.c (search_struct_method): Likewise.
579 (find_method_list, value_struct_elt_for_reference): Likewise.
580
e76cff22
AC
5812002-09-13 Andrew Cagney <cagney@redhat.com>
582
583 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
584 * gdbarch.h, gdbarch.c: Regenerate.
585
905abb3f
AC
5862002-09-13 Andrew Cagney <ac131313@redhat.com>
587
588 * frame.c (find_saved_register): Delete function.
589 * frame.h (find_saved_register): Delete declaration.
590 Fix PR gdb/631.
591
64159455
AC
592Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
593
594 * mips-tdep.c (read_next_frame_reg): Re-hack using
595 frame_register_unwind.
596
795e1e11
AC
597Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
598
599 * mips-tdep.c (mips_get_saved_register): Re-hack using
600 frame_register_unwind.
601
5720643c
JB
6022002-09-12 Joel Brobecker <brobecker@gnat.com>
603
604 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
605 vector. Will be useful for Interix.
606 * gdbarch.h, gdbarch.c: Regenerate.
607
608 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
609 name of the malloc function by NAME_OF_MALLOC.
610
3bada2a2
JB
6112002-09-12 Joel Brobecker <brobecker@gnat.com>
612
613 * value.h (find_function_in_inferior): Add const keyword to
614 one of the parameters. Allows us to invoke this function with
615 a const char *.
616 * valops.c (find_function_in_inferior): Likewise.
617
3db26b01
JB
6182002-09-12 Joel Brobecker <brobecker@gnat.com>
619
620 * exec.c (xfer_memory): Fix compilation warning with old versions
621 of GCC.
622 * tracepoint.c (trace_find_tracepoint_command): Likewise.
623
17c5ed2c
DC
6242002-09-12 David Carlton <carlton@math.stanford.edu>
625
626 * symtab.h: Run through gdb_indent.h.
627 Add 2002 to Copyright year list.
628
ecd1107e
AM
6292002-09-12 Alan Modra <amodra@bigpond.net.au>
630
631 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
632 mach constants.
633 * MAINTAINERS: Add myself to write after approval list.
634
e64f66d1
JB
6352002-09-11 J. Brobecker <brobecker@gnat.com>
636
637 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
638
f9395794
JB
6392002-09-11 J. Brobecker <brobecker@gnat.com>
640
641 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
642 Interix.
643
1a303dec
MS
6442002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
645
646 * procfs.c (do_detach): Clear current signal, not just fault.
647 Corrects problem with breakpoint trap signal leaking to detached
648 process on Tru64.
649
c0219d42
MS
6502002-09-10 Michael Snyder <msnyder@redhat.com>
651
652 * buildsym.c (finish_block): Protect against null pointer.
653
9d84ac84
AC
6542002-09-10 Andrew Cagney <cagney@redhat.com>
655
656 * infcmd.c (default_print_registers_info): Send all output to
657 ``file'' instead of ``gdb_stdout''.
658
77d8f2b4
MS
6592002-09-10 Michael Snyder <msnyder@redhat.com>
660
661 * mips-tdep.c (mips_extract_struct_value_address): Make val a
662 LONGEST, and use signed register read (addresses are sign-
663 extended for mips).
664
99656a61
SC
6652002-09-10 Stephane Carrez <stcarrez@nerim.fr>
666
667 * event-loop.c (gdb_do_one_event): Make public.
668 * event-loop.h (gdb_do_one_event): Declare.
669
da12f4d8
JL
6702002-09-10 Jeff Law <law@redhat.com>
671
672 * infttrace.c (child_resume): Simplify and rework to avoid
673 TT_PROC_CONTINUE.
674
d0aee0c4
FF
6752002-09-09 Fred Fish <fnf@intrinsity.com>
676
677 * printcmd.c (print_scalar_formatted): "len" is the number of
678 target bytes, NOT the number of target bits.
679
7cb3ec5e
EZ
6802002-09-09 Elena Zannoni <ezannoni@redhat.com>
681
682 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
683 * top.c (init_main): Set rl_terminal_name.
684
4dc81987
AS
6852002-09-08 Aidan Skinner <aidan@velvet.net>
686
687 * ada-lang.c (ada_array_bound, ada_type_match,
688 _initialize_ada_language): Fix K&R definitions.
689 * ada-tasks.c (get_current_task): Fix K&R definitions.
690 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
691
842330b4
CF
6922002-09-07 Christopher Faylor <cgf@redhat.com>
693
694 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
695 Add XP.
696
43156d82
MK
6972002-09-06 Mark Kettenis <kettenis@gnu.org>
698
66da5fd8
MK
699 * i386-tdep.c (i386_register_virtual_type,
700 i386_register_convertible, i386_register_convert_to_virtual,
701 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
702 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
703 (i386_gdbarch_init): Fix comment. Add comments on calls that set
704 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
705 Don't set push_arguments twice.
706
4b218c18
MK
707 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
708 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
709 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
710 sigtramp_end to NULL.
711 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
712 defines.
713 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
714
4cc314d5
MK
715 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
716 whitespace.
717
43156d82
MK
718 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
719 * gdbarch.h, gdbarch.c: Re-generate.
720 * blockframe.c (find_pc_sect_partial_function): Convert to use
721 SIGTRAMP_START_P predicate.
722
6672060b
MS
7232002-09-05 Michael Snyder <msnyder@redhat.com>
724
a90c3637
MS
725 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
726 generic_dummy_frame method and old method. Also distinguish
727 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 728 (arm_extract_return_value): Use new regcache method.
a90c3637 729
6672060b
MS
730 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
731 adjustment that doesn't conform to the ABI.
732 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
733 saved regcache, not from current regcache.
734
299ffc64
AC
7352002-09-05 Andrew Cagney <ac131313@redhat.com>
736
737 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
738 * README: Update.
739
a3a2ee65
JT
7402002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
741
742 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
743 if arm_apcs_32 is false.
744
2bc7eea9
AC
7452002-09-04 Andrew Cagney <ac131313@redhat.com>
746
747 GDB 5.3 branch created.
748
8a55a7c5
TR
7492002-09-03 Theodore A. Roth <troth@verinet.com>
750
751 * gdb/avr-tdep.c (avr_gdbarch_init): Use
752 generic_unwind_get_saved_register.
753
e26fb1d7
DC
7542002-09-03 David Carlton <carlton@math.stanford.edu>
755
756 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
757 argument (PR gdb/653). Update call to smash_to_method_type.
758 (read_structure_scope): Update call to dwarf2_add_member_fn.
759
30d52491
ML
7602002-09-03 Michal Ludvig <mludvig@suse.cz>
761
762 * x86-64-linux-tdep.c: Include gdb_string.h
763 * x86-64-linux-nat.c: Ditto.
764
06891d83
JT
7652002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
766
767 * ada-exp.y (yyname, yyrule): Remap global variables that appear
768 when YYDEBUG is set to 1.
769 * c-exp.y: Likewise.
770 * f-exp.y: Likewise.
771 * jv-exp.y: Likewise.
772 * m2-exp.y: Likewise.
773 * p-exp.y: Likewise.
774
7d400e77
JT
7752002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
776
777 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
778 dependency list.
779 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
780 solib_svr4_fetch_link_map_offsets to
781 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
782 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
783 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
784 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
785 solib-svr4.o, and solib-legacy.o.
786 * config/i386/tm-nbsd.h: Include solib.h.
787
704a27c4
JT
7882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
789
790 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
791 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
792 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
793 comment noting that this needs its own target configuration.
794 * config/i386/nbsd.mt: New file.
795 * config/i386/nbsdaout.mt: Remove.
796 * config/i386/nbsdelf.mt: Ditto.
797 * config/i386/tm-nbsdaout.h: Ditto.
798
d66198e1
JT
7992002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
800
801 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
802 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
803 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
804 tdep->sigtramp_end.
805 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
806 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
807 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
808
3cac699e
JT
8092002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
810
811 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
812 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
813 * i386-tdep.h (i386bsd_init_abi): New prototype.
814 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
815 function declaration.
816 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
817 for NetBSD-a.out or NetBSD-ELF.
818 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
819 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
820 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
821 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
822 and nbsd-tdep.h.
823 (i386nbsd_pc_in_sigtramp): New function.
824 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
825 i386nbsd_pc_in_sigtramp.
826 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
827 and i386nbsdelf_init_abi OS ABI handlers.
828 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
829 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
830
7010ca0a
MK
8312002-09-02 Mark Kettenis <kettenis@gnu.org>
832
833 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
834 registers if the target really has them.
835
6dd93b72
JT
8362002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
837
838 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
839 than nbsd-tdep.h.
840
2ca8ae21
JT
8412002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
842
843 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
844 list.
845 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
846 (alphanbsd_skip_sigtramp_frame): New functions.
847 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
848 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
849 to alphanbsd_sigcontext_addr.
850
3d9b49b0
JT
8512002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
852
853 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
854 list.
855 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
856 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
857 nbsd_pc_in_sigtramp.
858 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
859 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
860 * nbsd-tdep.c: Include gdb_string.h.
861 (nbsd_pc_in_sigtramp): New function.
862 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
863 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
864 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
865 ppcnbsd_pc_in_sigtramp.
866 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
867 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
868 shnbsd_pc_in_sigtramp.
869 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
870 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
871 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
872
c860120c
PM
8732002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
874
875 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
876 watchpoints to NULL.
877 (insert_breakpoints): set val field of watchpoints if NULL.
878
879
c7612d53
JB
8802002-08-29 Jim Blandy <jimb@redhat.com>
881
882 * symtab.c (lookup_symbol_aux): In the cases where we find a
883 minimal symbol of an appropriate name and use its address to
884 select a symtab to read and search, use `name' (as passed to us)
885 as the demangled name when searching the symtab's global and
886 static blocks, not the minsym's name.
887
66609862
KS
8882002-08-29 Keith Seitz <keiths@redhat.com>
889
890 * stack.c (print_frame_info_base): Always set current_source_symtab
891 and current_source_line.
892
151fefe2
JB
8932002-08-29 Donn Terry <donnte@microsoft.com>
894
895 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
896
bfb3754e
KS
8972002-08-28 Keith Seitz <keiths@redhat.com>
898
899 * stack.c (select_frame): Add FIXME concerning selected-frame
900 events.
901 (select_frame_command): Send selected-frame-level-changed
902 event notification, but only if the level actually changed.
903 (up_silently_base): Add selected-frame-level-changed event
904 notification.
905 (down_silently_base): Likewise.
906
e822a2a0
AC
9072002-08-28 Andrew Cagney <ac131313@redhat.com>
908
909 * Makefile.in: Update dependencies for all gdb/*.c files.
910
309367d4
TT
9112002-08-27 Tom Tromey <tromey@redhat.com>
912
913 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
914 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
915 Update dependencies.
916 * i387-tdep.c: Include gdb_string.h.
917 * osabi.c: Likewise.
918 * i386-linux-nat.c: Likewise.
919 * lin-lwp.c: Likewise.
920 * ax-gdb.c: Likewise.
921 * signals/signals.c: Likewise.
922 * jv-valprint.c: Likewise.
923 * p-lang.c: Likewise.
924 * c-valprint.c: Likewise.
925 * cp-abi.c: Likewise.
926
e1507482
EZ
9272002-08-27 Elena Zannoni <ezannoni@redhat.com>
928
929 * cli/cli-script.h (copy_command_lines): Export.
930 * breakpoint.c: Include cli/cli-script.h.
931 * Makefile.in (breakpoint.o): Update dependencies.
932
c6510018
MS
9332002-08-26 Michael Snyder <msnyder@redhat.com>
934
935 * breakpoint.c (insert_breakpoints): Protect all references
936 to 'process_warning'. Shorten long lines.
937
c2b8ed2c
MS
9382002-08-26 Joel Brobecker <brobecker@gnat.com>
939
940 * cli/cli-script.c (copy_command_lines): New function.
941 * defs.h (copy_command_lines): Export.
942 * testsuite/gdb.base/commands.exp: New tests for commands
943 attached to a temporary breakpoint, and for commands that
944 delete the breakpoint they are attached to.
945
9462002-08-26 Michael Snyder <msnyder@redhat.com>
947
948 * breakpoint.c (bpstat_stop_status): Instead of copying the
949 pointer to the breakpoint commands struct, make a new copy
950 of the struct and point to that.
951 (bpstat_clear): Free the commands struct.
952 (bpstat_clear_actions): Free the commands struct.
953 (bpstat_do_actions): Free the command actions. Also execute
954 the local cleanups, instead of deleting them.
955 (delete_breakpoint): Leave the commands field of the bpstat
956 chain alone -- it will be freed later.
957
64b84175
KB
9582002-08-26 Kevin Buettner <kevinb@redhat.com>
959
960 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
961 deleted in 2002-08-20 commit. This function is still used by
962 ppc-linux-nat.c.
963
55970da6
KS
9642002-08-26 Keith Seitz <keiths@redhat.com>
965
966 * gdb-events.sh: Add selected-frame-level-changed event.
967 * gdb-events.c: Regenerated.
968 * gdb-events.h: Regenerated.
969
a790ad35
SC
9702002-08-26 Stephane Carrez <stcarrez@nerim.fr>
971
972 Fix PR gdb/393:
973 * inflow.c (terminal_save_ours): New function to save terminal
974 settings.
975 * inferior.h (terminal_save_ours): Declare.
976 * target.c (debug_to_terminal_save_ours): New function.
977 (cleanup_target): Defaults to_terminal_save_ours.
978 (update_current_target): Inherit to_terminal_save_ours.
979 (setup_target_debug): Set to_terminal_save_ours.
980 * target.h (target_terminal_save_ours): New to save terminal settings.
981 (target_ops): New member to_terminal_save_ours.
982 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
983 * hpux-thread.c (init_hpux_thread_ops): Likewise.
984 * inftarg.c (init_child_ops): Likewise.
985 * m3-nat.c (init_m3_ops): Likewise.
986 * procfs.c (init_procfs_ops): Likewise.
987 * wince.c (init_child_ops): Likewise.
988 * win32-nat.c (init_child_ops): Likewise.
989 * sol-thread.c (init_sol_thread_ops): Likewise.
990
c00dcbe9
MK
9912002-08-26 Mark Kettenis <kettenis@gnu.org>
992
3d7f4f49
MK
993 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
994 use regcache_* functions.
995 (i386_gdbarch_init): Set store_return_value instead of
996 deprecated_store_return_value.
997
c00dcbe9
MK
998 * regcache.c (regcache_raw_write_signed,
999 regcache_raw_write_unsigned): New functions.
1000 * regcache.h (regcache_raw_write_signed,
1001 regcache_raw_write_unsigned): New prototypes.
1002
0e0d15ca
AC
10032002-08-25 Andrew Cagney <ac131313@redhat.com>
1004
1005 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
1006 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
1007 source file dependencies. Cleanup corresponding generator rules.
1008
d3b22ed5
AC
10092002-08-25 Andrew Cagney <ac131313@redhat.com>
1010
1011 * regcache.h (register_offset_hack): Declare.
1012 (regcache_cooked_read_using_offset_hack): Declare.
1013 (regcache_cooked_write_using_offset_hack): Declare.
1014
1015 * regcache.c (register_offset_hack): New function.
1016 (regcache_cooked_read_using_offset_hack): New function.
1017 (regcache_cooked_write_using_offset_hack): New function.
1018 (regcache_dump): Check that the registers, according to their
1019 offset, are packed hard against each other.
1020 (cooked_xfer_using_offset_hack): New function.
1021
bb425013
AC
10222002-08-25 Andrew Cagney <ac131313@redhat.com>
1023
1024 * regcache.c (struct regcache_descr): Add field register_type.
1025 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
1026 in as a parameter
1027 (init_regcache_descr): Initialize register_type. Pass the descr
1028 to init_legacy_regcache_descr. Use register_type instead of
1029 REGISTER_VIRTUAL_TYPE.
1030 (register_type): New function.
1031 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
1032 * regcache.h (register_type): Declare.
1033
d0403e00
AC
10342002-08-25 Andrew Cagney <ac131313@redhat.com>
1035
1036 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
1037 instead of deprecated_store_return_value. Fix fallout from
1038 2002-08-23 Andrew Cagney <cagney@redhat.com>.
1039
0ed04cce
AC
10402002-08-25 Andrew Cagney <ac131313@redhat.com>
1041
1042 * regcache.c (max_register_size): New function.
1043 (init_legacy_regcache_descr): Ensure that max_register_size is
1044 large enough for REGISTER_VIRTUAL_SIZE.
1045 * regcache.h (max_register_size): Declare.
1046
46d79c04
AC
10472002-08-24 Andrew Cagney <ac131313@redhat.com>
1048
1049 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
1050 store_return_value.
1051 (e500_extract_return_value): Change type of valbuf pointer to
1052 void.
1053
853c7bd0
MK
10542002-08-24 Mark Kettenis <kettenis@gnu.org>
1055
cd87e769
MK
1056 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
1057 workaround.
1058
853c7bd0
MK
1059 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
1060 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
1061 long long) to prevent compiler warning on 64-bit systems.
1062
ebba8386
AC
10632002-08-23 Andrew Cagney <cagney@redhat.com>
1064
1065 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
1066 (DEPRECATED_STORE_RETURN_VALUE): New method.
1067 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
1068 * gdbarch.h, gdbarch.c: Re-generate.
1069
1070 * values.c (set_return_value): Pass current_regcache to
1071 STORE_RETURN_VALUE.
1072 * arch-utils.h (legacy_store_return_value): Declare.
1073 * arch-utils.c (legacy_store_return_value): New function.
1074 (legacy_extract_return_value): Update parameters.
1075
1076 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
1077 STORE_RETURN_VALUE.
1078 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1079 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1080 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1081 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1082 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1083 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1084 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1085 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1086 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1087 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
1088
1089 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1090 * i386-tdep.c (i386_extract_return_value): Update.
1091 * arch-utils.c (legacy_extract_return_value): Update.
1092 * frv-tdep.c (frv_gdbarch_init): Update.
1093 * cris-tdep.c (cris_gdbarch_init): Update.
1094 * d10v-tdep.c (d10v_gdbarch_init): Update.
1095 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1096 * m68k-tdep.c (m68k_gdbarch_init): Update.
1097 * mcore-tdep.c (mcore_gdbarch_init): Update.
1098 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1099 * s390-tdep.c (s390_gdbarch_init): Update.
1100 * sparc-tdep.c (sparc_gdbarch_init): Update.
1101 * sh-tdep.c (sh_gdbarch_init): Update.
1102 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1103 * v850-tdep.c (v850_gdbarch_init): Update.
1104 * avr-tdep.c (avr_gdbarch_init): Update.
1105 * ia64-tdep.c (ia64_gdbarch_init): Update.
1106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1107 * vax-tdep.c (vax_gdbarch_init): Update.
1108 * alpha-tdep.c (alpha_gdbarch_init): Update.
1109 * arm-tdep.c (arm_gdbarch_init): Update.
1110 * mips-tdep.c (mips_gdbarch_init): Update.
1111 * i386-tdep.c (i386_gdbarch_init): Update.
1112
5bd8c6d0
AC
11132002-08-23 Andrew Cagney <ac131313@redhat.com>
1114
1115 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
1116 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
1117
e73e1724
MK
11182002-08-24 Mark Kettenis <kettenis@gnu.org>
1119
1120 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
1121 problems.
1122
3e6564e1
JB
11232002-08-23 Joel Brobecker <brobecker@gnat.com>
1124
1125 * infrun.c (handle_inferior_event): Move a comment outside of a
1126 function call, in order to avoid indent reformatting this part
1127 of the code in an unreadable way.
1128
81d0cc19
GS
11292002-08-23 Grace Sainsbury <graces@redhat.com>
1130
1131 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
1132 when breakpoints fail. Move general breakpoint error messages to
1133 insert_breakpoints.
1134 * breakpoint.c (insert_breakpoints): Change warnings when
1135 breakpoints are nto inserted to specify the type. Remove call to
1136 memory_error when hardware breakpoints can't be inserted. Remove
1137 multiple calls to warning so all messages are sent to the user at
1138 once.
1139 (delete_breakpoints): Make insert error messsages more explicit.
1140
17574093
DJ
11412002-08-23 Daniel Jacobowitz <drow@mvista.com>
1142
1143 * ChangeLog: Move gdbserver entries after GDB 5.2 to
1144 gdbserver/ChangeLog.
1145
8acc2935
MK
11462002-08-23 Mark Kettenis <kettenis@gnu.org>
1147
dfe01d39
MK
1148 * i386-tdep.c: Include "objfiles.h".
1149 (i386_svr4_init_abi): Set in_solib_call_trampoline and
1150 skip_trampoline_code.
1151 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
1152 (CPLUS_MARKER): Define to '.'.
1153
8acc2935
MK
1154 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
1155 member.
1156 (linux_corefile_thread_callback): Increase args->num_notes.
1157 (linux_make_note_section): Initialize thread_args.num_notes, and
1158 use it to determine whether notes for any threads were created.
1159
151fefe2 11602002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
1161
1162 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
1163 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
1164 and PCUNKILL.
1165 (write_with_trace): Conditionalize out the switch branch handling
1166 PCSHOLD if the corresponding macro is not defined. Likewise for
1167 PRSABORT and PRSTOP.
1168 This change will be needed by the Interix port.
1169
e1507482
EZ
11702002-08-22 Elena Zannoni <ezannoni@redhat.com>
1171
1172 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
1173 write_register wherever possible instead of manipulating the
1174 register bytes directly.
1175 Assign VALUE_CONTENTS to a variable and use that.
1176 The GPR numbers are now dependent on the architecture.
1177
96ff0de4
EZ
11782002-08-22 Elena Zannoni <ezannoni@redhat.com>
1179
1180 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
1181 ev_offset fields.
1182 (skip_prologue): Add support for BookE/e500 instructions.
1183 (e500_extract_return_value): New function.
1184 (frame_get_saved_regs): Add support for saving ev registers and
1185 pseudo gpr's.
1186 (e500_store_return_value): New function.
1187 (rs6000_gdbarch_init): Move up default intializations of
1188 deprecated_extract_return_value and store_return_value. Overwrite
1189 init of store_return_value with e500 specific version.
1190 Set extract_return_value for e500.
1191
fbefca5b
EZ
11922002-08-22 Elena Zannoni <ezannoni@redhat.com>
1193
1194 * blockframe.c (generic_call_dummy_register_unwind): Use
1195 regcache_cooked_read to catch cases in which the variable is
1196 stored in a pseudo register.
1197
4d210288
AC
11982002-08-22 Andrew Cagney <cagney@redhat.com>
1199
1200 * NEWS: Mention that the i960 has been made obsolete.
1201 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
1202 i960-tdep.c
1203 (remote-nrom.o): Obsolete target.
1204 (remote-nindy.o, i960-tdep.o): Ditto.
1205 * remote-nrom.c: Make file obsolete.
1206 * remote-nindy.c, remote-vx960.c: Ditto.
1207 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
1208 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
1209 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
1210 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
1211 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
1212 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
1213 i960-*-vxworks* obsolete.
1214 * MAINTAINERS: Note that the i960 is obsolete.
1215
6c0c456d
CV
12162002-08-21 Corinna Vinschen <vinschen@redhat.com
1217
1218 * aix-thread.c (aix_thread_detach): Disable thread debugging on
1219 detach to allow reinitialization.
1220
9f9d12b3
AC
12212002-08-22 Andrew Cagney <ac131313@redhat.com>
1222
1223 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
1224 attempt).
1225
ebeb39fe
JB
12262002-08-22 Jim Blandy <jimb@redhat.com>
1227
1228 * coffread.c (coff_symfile_read): Don't try to read the line
1229 number table from disk if the image file doesn't have a symbol
1230 table; we'll never actually look at the info anyway, and Windows
1231 ships DLL's with bogus file offsets for the line number data.
1232
5bf1c677
EZ
12332002-08-21 Elena Zannoni <ezannoni@redhat.com>
1234
1235 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
1236 an e500 executable.
1237
71b8ef93
MS
12382002-08-21 Michael Snyder <msnyder@redhat.com>
1239
1240 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
1241 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
1242 (DEFAULT_MIPS_TYPE): Delete unused macro.
1243 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
1244 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 1245
d174216d
JB
12462002-08-21 Jim Blandy <jimb@redhat.com>
1247
1248 * valops.c (value_cast): Simplify and correct logic for doing a
1249 static cast from a pointer to a base class to a pointer to a
1250 derived class.
1251
0ab7a791
AC
12522002-08-21 Andrew Cagney <ac131313@redhat.com>
1253
1254 * infcmd.c (default_print_registers_info): Replace
1255 do_registers_info.
1256 (registers_info): Use gdbarch_print_registers_info instead of
1257 DO_REGISTERS_INFO.
1258 * inferior.h (default_print_registers_info): Replace
1259 do_registers_info.
1260 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
1261 (DO_REGISTERS_INFO): Change to a predicate function.
1262 * gdbarch.h, gdbarch.c: Regenerate.
1263
e23792cc
KS
12642002-08-21 Keith Seitz <keiths@redhat.com>
1265
1266 * gdb-events.sh: Add target-changed event.
1267 * gdb-events.c: Regenerated.
1268 * gdb-events.c: Regenerated.
1269 * valops.c (value_assign): Add target-changed event notification
1270 to inlval_register, lval_memory, and lval_reg_frame_relative.
1271
9fb14e79
JB
12722002-08-21 Joel Brobecker <brobecker@gnat.com>
1273
1274 * NEWS: Add an entry regarding the improvement of the next/step
1275 operation on Alpha Tru64 multi-processor machines.
1276
6d39a69f
AC
12772002-08-21 Andrew Cagney <ac131313@redhat.com>
1278
72acd513
AC
1279 * Makefile.in: Update dependencies for mi/ cli/ and tui/
1280 directores.
342af04b 1281 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
1282 * Makefile.in (install-gdbtk): Move to install section.
1283 (rdi-share/libangsd.a): Move to end of file.
1284
fa5f27c7
AC
12852002-08-19 Andrew Cagney <ac131313@redhat.com>
1286
1287 * frame.c (frame_register_unwind): When a register, set addrp to
1288 the register's byte.
1289
5a89d8aa
MS
12902002-08-20 Michael Snyder <msnyder@redhat.com>
1291
1292 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
1293 used locally, so move them from the target machine header to here.
1294 (mips_set_processor_type, mips_register_name, mips32_next_pc,
1295 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
1296 Make static.
1297 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
1298
822e978b
AC
12992002-08-20 Andrew Cagney <cagney@redhat.com>
1300
1301 * NEWS: Mention that the Apollo line was made obsolete.
1302 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
1303 m68*-hp-hpux* obsolete.
1304 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
1305 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
1306 * buildsym.c (make_blockvector): Make static.
1307 * buildsym.h (make_blockvector): Make extern declaration obsolete.
1308 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
1309 (ALLDEPFILES): Remove dstread.c.
1310 (dstread.o): Obsolete make rule.
1311 * dstread.c: Makefile obsolete.
1312 * dst.h: Ditto.
1313 * config/m68k/hp300hpux.mt: Ditto.
1314 * config/m68k/hp300hpux.mh: Ditto.
1315 * config/m68k/hp300bsd.mt: Ditto.
1316 * config/m68k/hp300bsd.mh: Ditto.
1317 * config/m68k/apollo68b.mt: Ditto.
1318 * config/m68k/apollo68v.mh: Ditto.
1319 * config/m68k/apollo68b.mh: Ditto.
1320
e41b17f0
MS
13212002-08-20 Michael Snyder <msnyder@redhat.com>
1322
1323 * mips-tdep.c (mips_in_return_stub): Make static.
1324 (mips_gdbarch_init): Set in_solib_return_trampoline.
1325 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
1326
d50355b6
MS
13272002-08-20 Michael Snyder <msnyder@redhat.com>
1328
1329 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
1330 * gdbarch.c, gdbarch.h: Regenerate.
1331 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
1332 Add.
1333 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
1334
757a7cc6
MS
13352002-08-20 Michael Snyder <msnyder@redhat.com>
1336
1337 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
1338 (mips_gdbarch_init): Set skip_trampoline_code,
1339 in_solib_call_trampoline.
1340 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
1341 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
1342
c8001721
EZ
13432002-08-20 Elena Zannoni <ezannoni@redhat.com>
1344
1345 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
1346
1347 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
1348 vector type for ev registers.
1349 (e500_pseudo_register_read): New function.
1350 (e500_pseudo_register_write): New function.
1351 (e500_dwarf2_reg_to_regnum): New function.
1352 (PPC_UISA_NOFP_SPRS): New macro.
1353 (PPC_EV_REGS): New macro.
1354 (PPC_GPRS_PSEUDO_REGS): New macro.
1355 (registers_e500): New register set for e500.
1356 (variants): Add e500 variant.
1357 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
1358 before setting architectural dependent variations. Initialize ev
1359 registers numbers. Add case for e500 architecture. Set the
1360 number of pseudo registers.
1361
64366f1c
EZ
13622002-08-20 Elena Zannoni <ezannoni@redhat.com>
1363
1364 * rs6000-tdep.c: Clean up comments.
1365
7e78f0ca
AC
13662002-08-20 Andrew Cagney <cagney@redhat.com>
1367
1368 * h8300-tdep.c: Re-indent file.
1369
697f7479
JB
13702002-08-20 Jim Blandy <jimb@redhat.com>
1371
1372 * Makefile.in (LDFLAGS): Allow the configure script to establish a
1373 default for this.
697f7479 1374
e86ae29f
KS
13752002-08-20 Keith Seitz <keiths@redhat.com>
1376
1377 * breakpoints.c (watch_command_1): Use internal breakpoint
1378 when setting a watchpoint_scope breakpoint.
1379
216b504f
EZ
13802002-08-20 Elena Zannoni <ezannoni@redhat.com>
1381
1382 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
1383 (build_builtin_type_vec64i): Ditto.
1384 (build_builtin_type_vec128): Ditto.
1385 (build_builtin_type_vec128i): Ditto.
1386
f7ab6ec6
MS
13872002-08-19 Michael Snyder <msnyder@redhat.com>
1388
1389 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
1390 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
1391 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1392 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
1393 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1394 CALL_DUMMY_ADDRESS): Delete.
1395 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
1396 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
1397 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
1398 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
1399 push_return_address.
1400 (mips_register_raw_size, mips_eabi_use_struct_convention,
1401 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
1402 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
1403 mips_init_extra_frame_info, mips_eabi_push_arguments,
1404 mips_n32n64_push_arguments, mips_push_return_address,
1405 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
1406 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1407
b5d1566e
MS
14082002-08-19 Michael Snyder <msnyder@redhat.com>
1409
1410 * mips-tdep.c (mips_frame_num_args): New function.
1411 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1412 frame_saved_pc, frame_args_address, frame_locals_address,
1413 frame_num_args, and frame_args_skip.
1414 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1415 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1416 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1417 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1418
2f1488ce
MS
14192002-08-20 Michael Snyder <msnyder@redhat.com>
1420
1421 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1422 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1423 * mips-tdep.c (mips_store_struct_return): New function.
1424 (mips_extract_struct_value_address): New function.
1425 (mips_gdbarch_init): Set store_struct_return and
1426 extract_struct_value_address.
1427
41ff2da1
DC
14282002-08-20 David Carlton <carlton@math.stanford.edu>
1429
1430 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1431 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1432 (read_file_scope): Check that line_header is nonzero before
1433 decoding macro information.
1434
e5451d58
MK
14352002-08-20 Mark Kettenis <kettenis@gnu.org>
1436
1437 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1438 flag the general-purpose registers as floating-point on targets
1439 that don't support the floating-point registers.
1440
4a6daafa
EZ
14412002-08-20 Elena Zannoni <ezannoni@redhat.com>
1442
1443 * rs6000-tdep.c (altivec_register_p): Delete.
1444 (rs6000_do_altivec_registers): Delete.
1445 (rs6000_altivec_registers_info): Delete.
1446 (rs6000_do_registers_info): Delete.
1447 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1448 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1449
ab4327e0
EZ
14502002-08-20 Elena Zannoni <ezannoni@redhat.com>
1451
1452 * infcmd.c (do_registers_info): Print vector registers in hex
1453 format only.
1454 (print_vector_info): Check that printing registers
1455 makes sense.
1456 (print_float_info): Ditto.
1457
cb1d2653
AC
14582002-08-20 Andrew Cagney <ac131313@redhat.com>
1459
1460 * mips-tdep.c (mips_gdbarch_init): Update.
1461 (mips_o32_extract_return_value): Rewrite.
1462 (mips_o32_store_return_value): Rewrite.
1463 (mips_o32_xfer_return_value): New function.
1464 (mips_xfer_register): Tweak debug print message. Allow for
1465 buf_offset when dumping the value transfered.
1466
dfc3d9b2
AC
14672002-08-20 Andrew Cagney <ac131313@redhat.com>
1468
1469 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1470 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1471 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1472 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1473 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1474
7807aa61
MS
14752002-08-14 Michael Snyder <msnyder@redhat.com>
1476
1477 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1478
489461e2
EZ
14792002-08-19 Elena Zannoni <ezannoni@redhat.com>
1480
1481 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1482 register.
1483 (P): New macro to define a register as a pseudo register.
1484 (R, R4, R8, R16, FR32, R64, R0): Updated.
1485 (struct variant): Add new fields for number of pseudo registers
1486 and number of total registers.
1487 (tot_num_registers): New macro replacing....
1488 (num_registers): ...deleted macro.
1489 (num_registers): New function.
1490 (num_pseudo_registers): New function.
1491 (variants): Update all variants to intialize new fields correctly.
1492 Postpone initialization of number of pseudo regs and real regs.
1493 (init_variants): New function.
1494 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1495 registers offsets.
1496
fcaffe4c
DC
14972002-08-19 David Carlton <carlton@math.stanford.edu>
1498
2c2738a0
DC
1499 * valops.c (search_struct_field): Change error message to treat
1500 return value of 0 from value_static_field as meaning that field is
1501 optimized out.
1502 (value_struct_elt_for_reference): Ditto.
1503 * values.c (value_static_field): Treat an unresolved location the
1504 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
1505 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1506 enclosed. Fix PR gdb/574.
fcaffe4c
DC
1507 * MAINTAINERS: Add self to Write After Approval list.
1508
88658117
AC
15092002-08-19 Andrew Cagney <ac131313@redhat.com>
1510
1511 * mips-tdep.c (mips_xfer_register): New function.
1512 (mips_n32n64_extract_return_value): Rewrite.
1513 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1514 instead of deprecated_extract_return_value.
1515
21283beb
EZ
15162002-08-19 Elena Zannoni <ezannoni@redhat.com>
1517
1518 * rs6000-tdep.c (TDEP): Delete macro.
1519 (branch_dest): Replace use of TDEP macro with its body.
1520 (rs6000_pop_frame): Ditto.
1521 (rs6000_push_arguments): Ditto.
1522 (rs6000_skip_trampoline_code): Ditto.
1523 (rs6000_frame_saved_pc): Ditto.
1524 (rs6000_frame_chain): Ditto.
1525 (rs6000_register_name): Ditto.
1526 (rs6000_register_byte): Ditto.
1527 (rs6000_register_raw_size): Ditto.
1528 (rs6000_register_virtual_type): Ditto.
1529 (rs6000_register_convertible): Ditto.
1530 (rs6000_convert_from_func_ptr_addr): Ditto.
1531
bf072999
DJ
15322002-08-19 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1535 conditionally.
1536 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1537 MIPS_LINUX_JB_ELEMENT_SIZE.
1538 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1539 for MAX_REGISTER_RAW_SIZE arrays.
1540 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1541 MIPS_LINUX_JB_ELEMENT_SIZE.
1542
9b949a49
PM
15432002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1544
1545 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1546
6d3e79c6
AS
15472002-08-19 Aidan Skinner <aidan@velvet.net>
1548
1549 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1550 ada-valprint.c ada-tasks.c.
1551 (YYFILES): Add ada-exp.y.
1552 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1553 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1554 (ada-exp.tab.o): New target.
1555
06c0b04e
AC
15562002-08-18 Andrew Cagney <ac131313@redhat.com>
1557
1558 * regcache.c (regcache_xfer_part): New function.
1559 (regcache_raw_read_part): New function.
1560 (regcache_raw_write_part): New function.
1561 (regcache_cooked_read_part): New function.
1562 (regcache_cooked_write_part): New function.
1563 * regcache.h (regcache_raw_read_part): Declare.
1564 (regcache_raw_write_part): Declare.
1565 (regcache_cooked_read_part): Declare.
1566 (regcache_cooked_write_part): Declare.
1567
92d1e331
DJ
15682002-08-18 Daniel Jacobowitz <drow@mvista.com>
1569
1570 * remote.c (remote_open_1): Add async_p.
1571 (remote_async_open_1): Delete.
1572 (open_remote_target): Delete.
1573 (remote_open, extended_remote_open): Update calls to remote_open_1.
1574 (remote_async_open, extended_remote_async_open): Call
1575 remote_open_1 instead of remote_async_open_1.
1576
247055de
MK
15772002-08-19 Mark Kettenis <kettenis@gnu.org>
1578
1579 * blockframe.c: Fix a few coding standard violations.
1580
641eda39
MK
15812002-08-19 Mark Kettenis <kettenis@gnu.org>
1582
0b717710
MK
1583 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1584 here from ...
1585 * config/i386/tm-i386sco5.h: ... here. File removed.
1586 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1587
26d28e12 1588 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
1589 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1590 (TM_FILE): Set to tm-i386.h.
1591 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1592 * config/i386/tm-i386v.h: Remove file.
1593 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1594 instead of "i386/tm-i386v.h".
1595 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1596 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1597 "i386/tm-i386v.h".
1598 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1599 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1600 "i386/tm-i386.h".
1601
d4e0bab4
MK
16022002-08-18 Mark Kettenis <kettenis@gnu.org>
1603
1604 * config/i386/nm-i386v.h: Add protection against
1605 multiple-inclusion.
1606 (i386_register_u_addr): Remove prototype.
1607 (register_u_addr): New prototype.
1608 (REGISTER_U_ADDR): Redefine accordingly.
1609 * i386v-nat.c: Improve several comments.
1610 (i386_register_u_addr): Change signature and rename to
1611 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1612 ubase variable.
1613
46cac009
AC
16142002-08-18 Andrew Cagney <ac131313@redhat.com>
1615
1616 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1617 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1618 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1619 deprecated_extract_return_value.
1620 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1621 rename mips_o32o64_push_arguments.
1622 (mips_gdbarch_init): Update.
1623 (mips_extract_return_value): Delete.
1624 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1625 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1626 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1627 (mips_n32n64_extract_return_value): Clone
1628 mips_extract_return_value.
1629 (mips_store_return_value): Delete.
1630 (mips_o32_store_return_value): Clone mips_store_return_value.
1631 (mips_o64_store_return_value): Clone mips_store_return_value.
1632 (mips_eabi_store_return_value): Clone mips_store_return_value.
1633 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1634
d2e4a39e
AS
16352002-08-18 Aidan Skinner <aidan@velvet.net>
1636
0c30c098
AS
1637 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1638 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1639
16402002-08-18 Aidan Skinner <aidan@velvet.net>
1641
1642 * ada-lang.c: Run through gdb_indent.sh.
1643 * ada-lang.h: Run through gdb_indent.sh.
1644 * ada-tasks.c: Run through gdb_indent.sh.
1645 * ada-typeprint.c: Run through gdb_indent.sh.
1646 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 1647
01fc4e33
AC
16482002-08-18 Andrew Cagney <ac131313@redhat.com>
1649
1650 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1651 ABI.
1652
d8ee244c
MK
16532002-08-18 Mark Kettenis <kettenis@gnu.org>
1654
c38d8261
MK
1655 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1656
222db64c
MK
1657 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1658 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1659
c2848c82
MK
1660 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1661 write_register_gen instead of write_register_bytes.
1662
d8ee244c
MK
1663 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1664 i[3456]-*-osf1mk* configurations have been made obsolete.
1665 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1666 i[3456]86-*-osf1mk* hosts obsolete.
1667 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1668 targets obsolete.
1669 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1670 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1671 config/i386/i386m3.mt, config/i386/nm-m3.h,
1672 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1673 config/i386/i386mk.mh, config/i386/i386mk.mt,
1674 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1675 obsolete.
1676 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1677 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1678 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1679
61d8d407
AC
16802002-08-18 Andrew Cagney <ac131313@redhat.com>
1681
1682 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1683 (hppa_value_returned_from_stack): Declare.
1684 (hppa_extract_return_value): Declare.
1685 * config/pa/hppa.mt: New file.
1686 * configure.tgt: Recognize hppa*-*-*.
1687 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1688
0c52bd59
MK
16892002-08-18 Mark Kettenis <kettenis@gnu.org>
1690
1691 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1692 comment.
1693
b5686e99
MK
16942002-08-17 Mark Kettenis <kettenis@gnu.org>
1695
1696 * top.c (gdb_rl_operate_and_get_next): Make sure
1697 operate-and-get-next functions correctly even when the history
1698 list is completely filled.
1699
c1bab85b
AC
17002002-08-18 Andrew Cagney <ac131313@redhat.com>
1701
1702 * MAINTAINERS (Target Instruction Set Architectures): Rename
1703 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1704 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1705 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1706 already listed under Host/Native.
1707
1708 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1709 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1710 mips*-*-*.
1711
32089c7c
AC
17122002-08-17 Andrew Cagney <ac131313@redhat.com>
1713
1714 * config/ia64/ia64.mt: New file.
1715 * config/alpha/alpha.mt: New file.
1716 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1717 ia64-linux-gnu. Mention that ia64-elf is broken.
1718 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1719
b4671f85
MK
17202002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1721
1722 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1723 generic_func_frame_valid instead of func_frame_valid.
1724
c8edd8b4
JB
17252002-08-16 Joel Brobecker <brobecker@gnat.com>
1726
1727 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1728 procfs appears to be broken when debugging on multi-processor
1729 machines. So enable software single stepping in order to avoid
1730 using the procfs interface to do next/step operations, using
1731 internal breakpoints instead.
1732
1733 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1734 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1735 make this pc address equal to the value it would have if the
1736 system stepping capability was used. Also set a new flag used
1737 to ensure that we don't readjust the PC one more time later.
1738
1739 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1740 address by DECR_PC_AFTER_BREAK when software single step is
1741 in use for this architecture, as this has already been taken
1742 care of in handle_inferior_event().
1743
238617f6
JB
17442002-08-16 Joel Brobecker <brobecker@gnat.com>
1745
1746 * infrun.c (handle_inferior_event): Minor reformatting, to make
1747 a rather long condition expression easier to read.
1748
541a7aac
AC
17492002-08-16 Andrew Cagney <ac131313@redhat.com>
1750
1751 * Makefile.in (gdbtk.o): Move to end of file.
1752 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1753 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1754 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1755 (gdbtk-wrapper.o, gdbres.o): Ditto.
1756
f92d4a7b
AC
17572002-08-16 Andrew Cagney <ac131313@redhat.com>
1758
1759 * Makefile.in (copying.o): Separate out compile rule.
1760 (hpux-thread.o, procfs.o, signals.o): Ditto.
1761 (v850ice.o, z8k-tdep.o): Ditto.
1762 (tui-file.o): Move to TUI section.
1763 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1764 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1765
1cce71eb
JB
17662002-08-16 Joel Brobecker <brobecker@gnat.com>
1767
1768 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1769 skip_trampoline_code, for better namespace-proofing.
1770
1771 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1772
0851f23d
JB
17732002-08-16 Joel Brobecker <brobecker@gnat.com>
1774
1775 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1776
f8d40ec8
JB
17772002-08-16 Joel Brobecker <brobecker@gnat.com>
1778
1779 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1780 signal, check whether we hit a breakpoint before checking for a
1781 single step breakpoint. Otherwise, GDB fails to notice that a
1782 breakpoint has been hit when stepping onto a breakpoint.
1783
63d022e0
KS
17842002-08-16 Keith Seitz <keiths@redhat.com>
1785
1786 * gdb-events.sh (clear_gdb_event_hooks): New function.
1787 * gdb-events.c: Regenerate.
1788 * gdb-events.h: Regenerate.
1789
6e31adb3
AC
17902002-08-16 Andrew Cagney <ac131313@redhat.com>
1791
1792 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1793 not_a_sw_breakpoint.
1794 * breakpoint.h (bpstat_stop_status): Add parameter names.
1795
c8189ed1
GS
17962002-08-16 Grace Sainsbury <graces@redhat.com>
1797
1798 * remote.c (remote_insert_hw_breakpoint)
1799 (remote_remove_hw_breakpoint): Fix calculation of length field
1800 for Z-packet.
1801
d05285fa
MS
18022002-08-15 Michael Snyder <msnyder@redhat.com>
1803
466d7106
MS
1804 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1805 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1806 (supply_fpregset): Ditto.
1807
d05285fa
MS
1808 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1809 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1810 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 1811 (TARGET_READ_SP): Delete.
bf1f5b4c 1812 (DO_REGISTERS_INFO): Delete.
102182a9
MS
1813 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1814 Delete.
1815 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1816 from macros to functions.
bf1f5b4c 1817
d05285fa
MS
1818 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1819 (mips_register_convertible, mips_register_convert_to_virtual,
1820 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
1821 (mips_read_sp): New function.
1822 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
1823 (mips_do_registers_info): Make static.
1824 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
1825 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1826 (mips_register_convert_from_type, mips_register_convert_to_type):
1827 New functions.
1828 (mips_gdbarch_init): Set up function_start_offset,
1829 register_virtual_size, pc_in_sigtramp.
d05285fa 1830
e76f1f2e
AC
18312002-08-15 Andrew Cagney <ac131313@redhat.com>
1832
1833 * infcmd.c (vector_info): New function.
1834 (_initialize_infcmd): Add command "info vector".
1835 (print_vector_info): New function.
1836
1837 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1838 * gdbarch.h, gdbarch.c: Regenerate.
1839
4782dc19
AC
18402002-08-15 Andrew Cagney <ac131313@redhat.com>
1841
1842 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1843 ``print_all''. Only print vector registers when ``print_all''.
1844
23e3a7ac
AC
18452002-08-15 Andrew Cagney <ac131313@redhat.com>
1846
8e186fd6
AC
1847 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1848 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1849
23e3a7ac
AC
1850 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1851 Add `args' parameter.
1852 * gdbarch.h, gdbarch.c: Regenerate.
1853
1854 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1855
1856 * infcmd.c (float_info): Call print_float_info.
1857 (print_float_info): New function. By default, print the
1858 floating-point registers.
1859
1860 * arch-utils.h (default_print_float_info): Delete declaration.
1861 * arch-utils.c (default_print_float_info): Delete function.
1862
e0ca2bb9
MK
18632002-08-16 Mark Kettenis <kettenis@gnu.org>
1864
3f733acc
MK
1865 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1866 out define.
1867
7d8d2918
MK
1868 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1869 FRAME.
1870
1c7cc583
MK
1871 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1872 * configure.host: Make i[3456]86-*-aix host obsolete.
1873 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1874 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1875 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1876 config/i386/xm-i386aix.h: Make files obsolete.
1877 * i386aix-nat.c: Make file obsolete.
1878 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1879 (i386aix-nat.o): Make target obsolete.
1880
e0ca2bb9
MK
1881 * config/i386/nm-gnu.h: Removed.
1882 * config/i386/nm-i386gnu.h: New file.
1883 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1884 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1885 Moved here from ...
1886 * config/i386/tm-i386gnu.h: ... here. Removed.
1887 * config/i386/xm-i386gnu.h: Removed.
1888 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1889 (NAT_FILE): Set to nm-i386gnu.h.
1890 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1891 * i386-tdep.c: New file.
1892 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1893 (i386gnu-tdep.o): Specify dependencies.
1894
16057ec7 18952002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 1896
6b99ee2e
MK
1897 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1898 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1899 Adjust a few comments to reflect reality a bit closer.
1900 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1901 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1902 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1903 target_insert_watchpoint, target_remove_watchpoint):
1904 Move defines to ...
1905 * config/i386/nm-i386sco5.h: ... here.
1906 (kernel_u_size): Add prototype. Improve a few comments and add
1907 protection against multiple inclusion.
1908
d9a6f65c
MK
1909 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1910 out define.
1911
047eff6a
MK
1912 * uw-thread.c (SP_ARG0): Define if not already defined.
1913 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1914
dcdb1290
MK
1915 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1916
5d2d0b2a
MK
1917 * config/i386/tm-i386.h: Don't include "regcache.h".
1918
61113f8b
MK
1919 * i387-tdep.h (i387_print_float_info): New prototype.
1920 * i387-tdep.c (print_i387_value, print_i387_ext,
1921 print_i387_status_word, print_i387_control_word): Add `struct
1922 ui_file *' argument and use it for output.
1923 (i387_print_float_info): Renamed from i387_float_info. Add
1924 `struct gdbarch *' and `struct ui_file *' arguments and use the
1925 latter for output.
1926 * i386-tdep.c: Include "i387-tdep.h".
1927 (i386_gdbarch_init): Set print_float_info.
1928 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1929 (FLOAT_INFO): Remove define.
1930
46e0f506
MS
19312002-08-13 Michael Snyder <msnyder@redhat.com>
1932
1933 * mips-tdep.c (mips_push_arguments): Rename to
1934 mips_eabi_push_arguments, and tune for EABI.
1935 (MIPS_REGS_HAVE_HOME_P): Delete.
1936 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1937 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1938 Delete references to mips_regs_have_home_p.
1939
409268de
KS
19402002-08-14 Keith Seitz <keiths@redhat.com>
1941
1942 * Makefile.in (install-gdbtk): Create insight plugin directory.
1943 Install plugins.tcl file.
1944
ffc6a242
KS
19452002-08-14 Keith Seitz <keiths@redhat.com>
1946
1947 * configure.in: Move SUBDIRS to near top of the file so that
1948 --enable options may add things to it.
1949 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1950 * configure: Regenerate.
1951
ebafbe83
MS
19522002-08-13 Michael Snyder <msnyder@redhat.com>
1953
1954 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1955 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1956 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1957
32f6f25d
AC
19582002-08-13 Andrew Cagney <ac131313@redhat.com>
1959
1960 * vax-tdep.c (vax_get_saved_register): Delete function.
1961 (vax_gdbarch_init): Update.
1962 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1963 (ns32k_gdbarch_init): Update.
1964 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1965 (alpha_gdbarch_init): Update.
1966
53826de9
AC
19672002-08-13 Andrew Cagney <cagney@redhat.com>
1968
1969 * regcache.c (init_regcache_descr): Overallocate the
1970 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1971 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1972 nr_raw_registers.
1973 (set_register_cached): Add range checking assertions. Use
1974 current_regcache.
1975
16057ec7 19762002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
1977
1978 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1979 numbers for MMX registers.
1980
7b4c2dce
AC
19812002-08-13 Andrew Cagney <cagney@redhat.com>
1982
1983 * i386-tdep.c (i386_gdbarch_init): Use
1984 generic_unwind_get_saved_register.
1985
1e03ad20
KB
19862002-08-13 Kevin Buettner <kevinb@redhat.com>
1987
1988 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1989 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1990 target vector.
1991 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1992 Delete. Add comment regarding this now-deleted target method.
1993
548bcbec
SC
19942002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1995
1996 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1997 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1998 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1999 real PC and the page number (if it's within the memory bank window).
2000 (m68hc11_pseudo_register_write): Likewise when saving.
2001 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
2002 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
2003 (m68hc11_register_raw_size): And use 32-bit for it.
2004 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
2005 16K memory bank is used by the prog; also use the virtual pc.
2006
7df11f59
SC
20072002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2008
2009 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
2010 (m68hc11_gdbarch_init): Install it in gdbarch.
2011 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
2012 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
2013 (MSYMBOL_SIZE): New for documentation.
2014 (insn_return_kind): Enum to specify how a function returns.
2015 (frame_extra_info): Cleanup and record the return mode.
2016 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
2017 register in address computation.
2018 (m68hc11_get_return_insn): New to obtain the return instruction used
2019 by the function.
2020 (m68hc11_frame_init_saved_regs): Take into account the return
2021 instruction used by the function for far and interrupt functions.
2022 (m68hc11_init_extra_frame_info): Take into account page register.
2023 (m68hc11_frame_args_address): Adjust according to the return mode.
2024 (show_regs): Print page register only when it's used.
2025
5706502a
SC
20262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2027
2028 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
2029 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
2030 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
2031 registers.
2032 (m68hc11_register_raw_size): Likewise.
2033
28fc6740
AC
20342002-08-13 Andrew Cagney <cagney@redhat.com>
2035
2036 * i386-tdep.c (i386_register_name): Handle mmx registers.
2037 (mmx_regnum_p): New function.
2038 (i386_mmx_names): New array.
2039 (mmx_num_regs): New variable.
2040 (i386_pseudo_register_read): New function.
2041 (i386_pseudo_register_write): New function.
2042 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
2043
2044 * regcache.c (regcache_raw_read_unsigned): New function.
2045 (regcache_raw_read_signed): New function.
2046 * regcache.h (regcache_raw_read_unsigned): Declare.
2047 (regcache_raw_read_signed): Declare.
2048
a378f419
AC
20492002-08-13 Andrew Cagney <cagney@redhat.com>
2050
2051 * regcache.c (regcache_raw_read_as_address): Delete function.
2052 (regcache_cooked_read_signed): New function.
2053 (regcache_cooked_read_unsigned): New function.
2054 * regcache.h (regcache_cooked_read_signed): Declare.
2055 (regcache_cooked_read_unsigned): Declare.
2056 (regcache_raw_read_as_address): Delete declaration.
2057
2058 * blockframe.c (generic_read_register_dummy): Use
2059 regcache_cooked_read_unsigned.
2060 * i386-tdep.c (i386_extract_struct_value_address): Use
2061 regcache_cooked_read_unsigned.
2062
81967506
SC
20632002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2064
2065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
2066 double sizes according to ELF ABI flags.
2067 (gdbarch_tdep): Record elf_flags.
2068
ffe1f3ee
SC
20692002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2070
2071 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
2072 (m6812_prolog): They can appear in 68HC12 function prologue.
2073 (m68hc11_frame_chain): Cleanup.
2074
98216c5d
AC
20752002-08-12 Andrew Cagney <cagney@redhat.com>
2076
2077 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
2078 declarations.
2079 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
2080 (i386_linux_register_raw_size): Delete function.
2081 (i386_linux_init_abi): Update.
2082 * i386-tdep.c (i386_register_raw_size): Delete function.
2083 (i386_register_byte): Delete function.
2084 (i386_gdbarch_init): Update.
2085 (i386_register_size): Delete array.
2086 (i386_register_offset): Delete array.
2087
2088 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
2089 (REGISTER_RAW_SIZE): Delete macro.
2090 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
2091 (REGISTER_BYTE): Delete macro.
2092
3b19021e
AS
20932002-08-11 Aidan Skinner <aidan@velvet.net>
2094
2095 * ada-lang.c (ada_lookup_partial_symbol)
2096 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
2097 prototype names so that grep ^func works properly.
2098
2099 * ada-lang.c (ada_array_element_type)
2100 (ada_lookup_partial_symbol): Fix typos in parameter list.
2101
2102 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
2103 Fix prototype names so that grep ^func works properly.
2104
b063e7a2
AC
21052002-08-10 Andrew Cagney <cagney@redhat.com>
2106 Elena Zannoni <ezannoni@redhat.com>
2107 Martin M. Hunt <hunt@redhat.com>
2108
2109 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
2110 (build_builtin_type_vec128i): Set the vector bit.
2111 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
2112 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
2113 (build_builtin_type_vec64): New function.
2114 (build_builtin_type_vec64i): New function.
2115 (build_gdbtypes): Initialize builtin_type_vec64 and
2116 builtin_type_vec64i.
2117
a7e3c2ad
AC
21182002-08-09 Andrew Cagney <cagney@redhat.com>
2119
2120 * regcache.c (regcache_dump): Compare the register offset
2121 with REGISTER_BYTE.
2122 * arch-utils.c (generic_register_byte): New function.
2123 * arch-utils.h (generic_register_byte): Declare.
2124 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
2125 * gdbarch.h, gdbarch.c: Regenerate.
2126
af030b9a
AC
21272002-08-09 Andrew Cagney <cagney@redhat.com>
2128
2129 * regcache.c: Include "gdbcmd.h"
2130 (_initialize_regcache): Add commands "maintenance print
2131 registers", "maintenance print raw-registers" and "maintenance
2132 print cooked-registers".
2133 (enum regcache_dump_what): Define.
2134 (dump_endian_bytes): New function.
2135 (regcache_dump): New function.
2136 (regcache_print): New function.
2137 (maintenance_print_registers): New function.
2138 (maintenance_print_raw_registers): New function.
2139 (maintenance_print_cooked_registers): New function.
2140 * Makefile.in (regcache.o): Update dependencies.
2141
cb3d25d1
MS
21422002-08-09 Michael Snyder <msnyder@redhat.com>
2143
2144 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
2145 (mips_push_arguments): Correct some comments. Use paddr_nz
2146 for printing addresses in debug output. Replace static
2147 allocation using MAX_REGISTER_RAW_SIZE with alloca.
2148 (mips_n32n64_push_arguments): New function, cloned from
2149 mips_push_arguments and tuned for the n32/n64 ABI.
2150 (mips_push_register): Buffer needs dynamic allocation.
2151 (mips_print_register): Ditto.
2152 (do_gp_register_row): Ditto.
2153 (mips_store_return_value): Ditto.
2154 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
2155
2163ab9d
DH
21562002-08-09 Don Howard <dhoward@redhat.com>
2157
2158 * memattr.c (mem_info_command): Print special case of upper bound
2159 as max CORE_ADDR + 1.
2160
b78bcb18
MS
21612002-08-08 Michael Snyder <msnyder@redhat.com>
2162
2163 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
2164 returns structs by ref if they're too big to fit in two registers.
2165
ffabd70d
KB
21662002-08-09 Kevin Buettner <kevinb@redhat.com>
2167
2168 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
2169 saved regs value.
2170 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
2171 mips_find_saved_regs().
2172 (mips_pop_frame): Likewise.
2173
fbcdb4a3
KB
21742002-08-09 Kevin Buettner <kevinb@redhat.com>
2175
2176 * blockframe.c (frame_saved_regs_register_unwind): Revise
2177 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
2178 frames are in use.
2179
3c3bea1c
GS
21802002-08-09 Grace Sainsbury <graces@redhat.com>
2181
2182 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
2183 T-packets; the 'a' is not taken as a register number.
2184 (remote_check_watch_resources, remote_stopped_by_watchpoint)
2185 (remote_stopped_data_address): New functions; add to target
2186 vector.
2187 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
2188 prototypes to match other implementations of this
2189 function. replace integer argument with pointer -- the length
2190 field in the Z-packet is the length of what is pointed to or 1 if
2191 pointer is null. Add to target vector.
2192 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
2193 target vector.
2194
2195 From Mark Salter:
2196 * remote.c (remote_wait): Add support to extract optional
2197 watchpoint information from T-packet. Ignore unrecognized
2198 optional info in T-packet.
2199 (remote_async_wait): Ditto.
2200
5d1d95de
CV
22012002-08-09 Corinna Vinschen <vinschen@redhat.com>
2202
2203 * cli/cli-dump.c: Change fopen modes to use binary open modes
2204 as defined in include/fopen-bin.h throughout.
2205
c86b5b38
MS
22062002-08-08 Michael Snyder <msnyder@redhat.com>
2207
2208 * mips-tdep.c: Minor whitespace and indentation clean-ups.
2209
b30590dc
KB
22102002-08-08 Kevin Buettner <kevinb@redhat.com>
2211
2212 * doublest.c (store_floating): Avoid floatformat_from_doublest()
2213 assertion failure by returning early after a warning.
2214
498868ed
KB
22152002-08-08 Kevin Buettner <kevinb@redhat.com>
2216
2217 * mips-tdep.c (mips_find_saved_regs): Make static.
2218 (mips_frame_init_saved_regs): New function.
2219 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
2220 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
2221 (mips_find_saved_regs): Delete declaration.
2222
b2dd6311
GS
22232002-08-08 Grace Sainsbury <graces@redhat.com>
2224
3c3bea1c
GS
2225 * remote.c (remote_wait, remote_async_wait): Change
2226 thread_num from int to ULONGEST.
2227 (unpack_varlen_hex): Change result parameter from
2228 int * to ULONGEST *.
b2dd6311 2229
ea47855f
AC
22302002-08-08 Andrew Cagney <ac131313@redhat.com>
2231
2232 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
2233 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
2234 powerpc*-*-*.
2235 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
2236
69db8bae
AC
22372002-08-08 Andrew Cagney <cagney@redhat.com>
2238
2239 * gcore.c (override_derive_stack_segment): Delete variable.
2240 (preempt_derive_stack_segment): Delete function.
2241 (derive_stack_segment): Delete function.
2242 (default_derive_stack_segment): Renamed to derive_stack_segment.
2243 (override_derive_heap_segment): Delete variable.
2244 (preempt_derive_heap_segment): Delete function.
2245 (derive_heap_segment): Delete function.
2246 (default_derive_heap_segment): Rename to derive_heap_segment.
2247
cb811fe7
MS
22482002-08-06 Michael Snyder <msnyder@redhat.com>
2249
2250 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
2251 * mips-tdep.c (mips_EABI_use_struct_convention,
2252 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
2253 New functions. (mips_use_struct_convention): Delete.
2254 (mips_gdbarch_init): set use_gdbarch_convention.
2255
8b389c40
MS
22562002-08-06 Michael Snyder <msnyder@redhat.com>
2257
2258 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
2259 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
2260 mips_o32_reg_struct_has_addr): New functions.
2261 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
2262
5c27f28a
AC
22632002-08-07 Andrew Cagney <ac131313@redhat.com>
2264
2265 * regcache.c (pseudo_register): Delete function.
2266 (fetch_register): Delete function.
2267 (store_register): Delete function.
2268 (regcache_raw_read, legacy_read_register_gen): Use
2269 target_fetch_registers instead of fetch_register.
2270 (legacy_write_register_gen, regcache_raw_write): Use
2271 target_store_register instead of store_register.
2272 (write_register_bytes): Ditto.
2273
2274 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
2275 (STORE_PSEUDO_REGISTER): Delete.
2276 * gdbarch.h, gdbarch.c: Regenerate.
2277
5b331675
CV
22782002-08-06 Corinna Vinschen <vinschen@redhat.com>
2279
2280 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
2281 write dump file binary.
2282
6acdf5c7
MS
22832002-08-05 Michael Snyder <msnyder@redhat.com>
2284
2285 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
2286 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
2287 (mips_gdbarch_init): Set N32 target to be mips64.
2288
b2f01c35
KB
22892002-08-06 Kevin Buettner <kevinb@redhat.com>
2290
2291 * frame.c (find_saved_register): Break out of loop once saved
2292 register address is found. Don't mention sparc in loop comment
2293 anymore.
2294
63db5580
KB
22952002-08-06 Kevin Buettner <kevinb@redhat.com>
2296
2297 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
2298 mips_default_saved_regsize to 8.
2299
5e34e75e
AC
23002002-08-06 Andrew Cagney <ac131313@redhat.com>
2301
2302 * gcore.c: Do not include <sys/procfs.h>.
2303 * Makefile.in (gcore.o): Update dependencies.
2304
eb4c54a2
AC
23052002-08-06 Andrew Cagney <cagney@redhat.com>
2306
2307 * configure.tgt: Make arc-*-* obsolete.
2308 * NEWS: Mention that arc-*-* has been identifed as obsolete.
2309 * MAINTAINERS: Make arc-elf obsolete.
2310 * arc-tdep.c: Make file obsolete.
2311 * config/arc/arc.mt: Ditto.
2312 * config/arc/tm-arc.h: Ditto.
2313
ced15480
TR
23142002-08-05 Theodore A. Roth <troth@verinet.com>
2315
c1bab85b 2316 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 2317
b4743822
AC
23182002-08-05 Andrew Cagney <ac131313@redhat.com>
2319
2320 * mcore-tdep.c (mcore_gdbarch_init): Use
2321 generic_unwind_get_saved_register instead of
2322 generic_get_saved_register.
2323 * v850-tdep.c (v850_gdbarch_init): Ditto.
2324 * frv-tdep.c (frv_gdbarch_init): Ditto.
2325 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2326 * s390-tdep.c (s390_gdbarch_init): Ditto.
2327 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2328 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
2329 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
2330
3956d554
JB
23312002-08-05 Joel Brobecker <brobecker@gnat.com>
2332
2333 * objfiles.h: Add missing #include "symfile.h"
2334
2335 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
2336
8249c0d6
AC
23372002-08-04 Andrew Cagney <ac131313@redhat.com>
2338
2339 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
2340 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
2341 of FIELD_BITSIZE.
2342
b9d14705
DJ
23432002-08-04 Daniel Jacobowitz <drow@mvista.com>
2344
2345 * NEWS: Cleanup and nitpick.
2346
dd73b9bb
AC
23472002-08-03 Andrew Cagney <ac131313@redhat.com>
2348
2349 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
2350
043a27f8
AC
23512002-08-03 Andrew Cagney <ac131313@redhat.com>
2352
2353 * Makefile.in (gdbtk-bp.o): Update dependencies.
2354 (gdbtk-register.o): Ditto.
2355 (gdbtk-varobj.o): Ditto.
2356
46ce284d
AC
23572002-08-03 Andrew Cagney <cagney@redhat.com>
2358
2359 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
2360 m68hc11_fetch_pseudo_register.
2361 (m68hc11_pseudo_register_write): Replace
2362 m68hc11_store_pseudo_register.
2363 (m68hc11_gdbarch_init): Update.
2364
b66d6d2e
AC
2365Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
2366
2367 * gdbarch.sh: Include "gdb_string.h".
2368 * gdbarch.c: Regenerate.
2369
2370 * regcache.c: Include "gdb_string.h".
2371 * ax-general.c: Ditto.
2372 * varobj.c: Ditto.
2373 * std-regs.c: Ditto.
2374 * fbsd-proc.c: Ditto.
2375 * thread.c: Ditto.
2376
2377 * Makefile.in (regcache.o): Update dependencies.
2378 (thread.o, gdbarch.o): Ditto.
2379 (ax-general.o, gdbarch.o): Ditto.
2380 (varobj.o, std-regs.o): Ditto.
2381 (fbsd-proc.o): Specify dependencies.
2382
29e1842b
AC
23832002-08-02 Andrew Cagney <cagney@redhat.com>
2384
2385 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
2386 regnum.
2387 (regcache_cooked_write): Ditto.
2388
68365089
AC
23892002-08-02 Andrew Cagney <ac131313@redhat.com>
2390
2391 * regcache.c (regcache_cooked_read): New function.
2392 (regcache_cooked_write): New function.
2393 (read_register_gen): Rewrite using regcache_cooked_read.
2394 (write_register_gen): Rewrite using regcache_cooked_write.
2395
2396 * regcache.h (regcache_cooked_read, regcache_cooked_write):
2397 Declare.
2398
d8124050
AC
23992002-08-02 Andrew Cagney <cagney@redhat.com>
2400
2401 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
2402 Replace the architecture methods register_read and register_write.
2403 * gdbarch.h, gdbarch.c: Regenerate.
2404 * regcache.c (init_regcache_descr): Update.
2405 (read_register_gen): Update.
2406 (write_register_gen): Update.
2407 (supply_register): Update comment.
2408
2409 * sh-tdep.c (sh_gdbarch_init): Update.
2410 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2411 `regcache' and `gdbarch' parameters. Make `buffer' a void
2412 pointer. Update code.
2413 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2414 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2415 void pointer. Update code.
2416 (sh64_register_write): Delete.
2417 (sh4_register_read): Delete.
2418 (sh64_register_read): Delete.
2419 (sh4_register_write): Delete.
2420 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2421 void pointer, `to' parameter a void pointer.
2422 (sh_sh64_register_convert_to_raw): Ditto.
2423
a6425924
KB
24242002-08-01 Kevin Buettner <kevinb@redhat.com>
2425
2426 * mips-tdep.c (mips_register_virtual_type): Use architecture
2427 invariant return values.
2428
ff5922b5
AC
24292002-08-01 Andrew Cagney <cagney@redhat.com>
2430
2431 * linux-proc.c: Include "gdb_string.h".
2432 * Makefile.in (linux-proc.o): Update dependency list.
2433
32a6503c
KB
24342002-08-01 Kevin Buettner <kevinb@redhat.com>
2435
2436 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2437 comment.
2438
ccaa32c7
GS
24392002-08-01 Grace Sainsbury <graces@redhat.com>
2440
2441 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2442 to_insert_watchpoint, to_remove_watchpoint,
2443 to_stopped_by_watchpoint, to_stopped_data_address,
2444 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2445 target vecctor. Define their corresponding macros so they call
2446 them.
2447
2448 * target.c: Add default and debug versions of for
2449 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2450 to_insert_watchpoint, to_remove_watchpoint,
2451 to_stopped_by_watchpoint, to_stopped_data_address,
2452 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2453
78fde5f8
KB
24542002-08-01 Kevin Buettner <kevinb@redhat.com>
2455
2456 * mips-tdep.c (mips_register_virtual_type): New function.
2457 (mips_gdbarch_init): Register mips_register_virtual_type()
2458 with gdbarch machinery.
2459 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2460 this file instead of tm-bigmips.h.
2461 (MIPS_REGSIZE): Delete this macro.
2462 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2463 multiarch version in mips-tdep.c will be found.
2464
db034ac5
AC
24652002-08-01 Andrew Cagney <cagney@redhat.com>
2466
2467 * NEWS: Menion that CHILL has been made obsolete.
2468
2469 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
2470 * stabsread.c (read_range_type): Ditto.
2471 * gdbtypes.h: Ditto.
2472 * language.c (binop_type_check): Ditto.
2473 (binop_result_type): Ditto.
2474 (integral_type): Ditto.
2475 (character_type): Ditto.
2476 (string_type): Ditto.
2477 (boolean_type): Ditto.
2478 (structured_type): Ditto.
2479 (lang_bool_type): Ditto.
2480 (binop_type_check): Ditto.
2481 * language.h (_LANG_chill): Ditto.
2482 * dwarfread.c (set_cu_language): Ditto.
2483 * dwarfread.c (CHILL_PRODUCER): Ditto.
2484 * dwarfread.c (handle_producer): Ditto.
2485 * expression.h (enum exp_opcode): Ditto.
2486 * eval.c: Ditto for comments.
2487 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2488 * expprint.c (print_subexp): Ditto.
2489 (print_subexp): Ditto.
2490 * valops.c (value_cast): Ditto.
2491 (search_struct_field): Ditto.
2492 * value.h (COERCE_VARYING_ARRAY): Ditto.
2493 * symfile.c (init_filename_language_table): Ditto.
2494 (add_psymbol_with_dem_name_to_list): Ditto.
2495 * valarith.c (value_binop): Ditto.
2496 (value_neg): Ditto.
2497 * valops.c (value_slice): Ditto.
2498 * symtab.h (union language_specific): Ditto.
2499 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2500 (SYMBOL_DEMANGLED_NAME): Ditto.
2501 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2502 * defs.h (enum language): Ditto.
2503 * symtab.c (got_symtab): Ditto.
2504 * utils.c (fprintf_symbol_filtered): Ditto.
2505
2506 * ch-typeprint.c: Make file obsolete.
2507 * ch-valprint.c: Make file obsolete.
2508 * ch-lang.h: Make file obsolete.
2509 * ch-exp.c: Make file obsolete.
2510 * ch-lang.c: Make file obsolete.
2511
2512 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2513 CHILL_LIB.
2514 (TARGET_FLAGS_TO_PASS): Ditto.
2515 (CHILLFLAGS): Obsolete.
2516 (CHILL): Obsolete.
2517 (CHILL_FOR_TARGET): Obsolete.
2518 (CHILL_LIB): Obsolete.
2519 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2520 ch-valprint.c.
2521 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2522 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2523 ch-lang.o.
2524 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2525 targets.
2526
8aaf0b47
JB
25272002-07-31 Joel Brobecker <brobecker@gnat.com>
2528
2529 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2530 This does not change anything at the moment, but will be helpful
2531 later when full Ada support is integrated.
2532
f3a7b3a5
KB
25332002-07-31 Kevin Buettner <kevinb@redhat.com>
2534
2535 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2536 help message.
2537
fb850278
KB
25382002-07-31 Kevin Buettner <kevinb@redhat.com>
2539
2540 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2541 and save it in a local variable. Use variable in later test.
2542
e3bddbfa
KB
25432002-07-31 Kevin Buettner <kevinb@redhat.com>
2544
2545 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2546 test. (Thanks to Daniel Jacobowitz.)
2547
28d169de
KB
25482002-07-31 Kevin Buettner <kevinb@redhat.com>
2549
2550 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2551 (mips_abi_strings): Add "n64".
2552 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2553
7fe7e44e
KB
25542002-07-31 Kevin Buettner <kevinb@redhat.com>
2555
2556 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2557 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2558
c6caf090
KB
25592002-07-31 Kevin Buettner <kevinb@redhat.com>
2560
2561 * utils.c (host_pointer_to_address, address_to_host_pointer):
2562 Use gdb_assert() instead of explicit call to internal_error().
2563
c41669e0
KB
25642002-07-30 Kevin Buettner <kevinb@redhat.com>
2565
2566 * Makefile.in (rs6000-nat.o): Update dependencies.
2567
2568 From Nicholas Duffek:
2569 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2570 (aix-thread.o): New rule.
2571 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2572 * config/powerpc/aix432.mh: New file.
2573
2fda4977
DJ
25742002-07-30 Daniel Jacobowitz <drow@mvista.com>
2575
2576 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2577 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2578 (fetch_core_registers, ppc_linux_supply_gregset)
2579 (ppc_linux_supply_fpregset): New functions.
2580 (ppc_linux_regset_core_fns): New.
2581 (_initialize_ppc_linux_tdep): Call add_core_fns.
2582 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2583 and ppc_linux_supply_gregset.
2584 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2585 (supply_fpregset): Call ppc_linux_supply_fpregset.
2586 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2587 corelow.o.
2588 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2589
729051e6
DJ
25902002-07-30 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * symtab.c (lookup_symbol): Demangle before lowercasing.
2593
5f8a3188
AC
25942002-07-30 Andrew Cagney <ac131313@redhat.com>
2595
2596 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2597 declaration.
2598 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2599 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2600 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2601 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2602 "gdb_string.h".
2603 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2604 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2605 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2606 (avr-tdep.o, mon960-rom.o): Ditto.
2607 (aout_stabs_gnu_h): Define.
2608 (symtab_h): Remove $(gdb_obstack_h).
2609
67f07146
JB
26102002-07-30 Jim Blandy <jimb@redhat.com>
2611
2612 Patch from David Carlton <carlton@math.stanford.edu>:
2613 * gdbinit.in: Move the `dir' commands that add GDB's own source
2614 directory to the search path to the end, so that the `gdb' source
2615 directory will be searched first.
2616
04ea0df1
AC
26172002-07-29 Andrew Cagney <ac131313@redhat.com>
2618
2619 * gdb_obstack.h: New file.
2620 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2621 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2622 * objfiles.h: Include "gdb_obstack.h".
2623 * Makefile.in (gdb_obstack_h): Define.
2624 (symtab_h): Add $(gdb_obstack_h).
2625 (objfiles_h): Add $(gdb_obstack_h).
2626
2627 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2628 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2629 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2630 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2631 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2632 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2633 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2634 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2635
2636 * Makefile.in (bcache.o): Update dependencies.
2637 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2638 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2639 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2640 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2641 (stabsread.o, symfile.o, symmisc.o): Ditto.
2642 (symtab.o, typeprint.o, macroexp.o): Ditto.
2643 (macrotab.o, mdebugread.o): Ditto.
2644 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2645 (coff_ecoff_h, aout_aout64_h): Define.
2646 (aout_stabs_gnu_h, libaout_h): Define.
2647
d138e37a
AC
26482002-07-29 Andrew Cagney <cagney@redhat.com>
2649
2650 * regcache.c (struct regcache_descr): Rename nr_registers to
2651 nr_cooked_registers. Revise comments describing the structure
2652 member fields.
2653 (init_regcache_descr): Update.
2654 (init_legacy_regcache_descr): Update.
2655 (read_register_gen, write_register_gen): When a cooked register in
2656 the raw register range, directly access the value from the raw
2657 register cache.
2658
460e6ec3
AC
26592002-07-29 Andrew Cagney <ac131313@redhat.com>
2660
2661 * z8k-tdep.c: Do not include "obstack.h".
2662 * h8300-tdep.c, h8500-tdep.c: Ditto.
2663 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2664 * valprint.c, v850-tdep.c: Ditto.
2665 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2666 * mn10200-tdep.c: Ditto.
2667
2668 * Makefile.in (z8k-tdep.o): Update dependencies.
2669 (m68hc11-tdep.o, valprint.o): Ditto.
2670 (v850-tdep.o, d10v-tdep.o): Ditto.
2671 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2672 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2673 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2674 (sh_opc_h, gdb_sim_sh_h): Define.
2675 (elf_sh_h, elf_bfd_h): Define.
2676 (opcode_m68hc11_h): Define.
2677 (OPCODES_SRC, OPCODES_DIR): define.
2678 (OPCODES): Use $(OPCODES_DIR).
2679 (gdb_sim_d10v_h): Rename sim_d10v_h.
2680 (gdb_sim_arm_h): Rename sim_arm_h.
2681
790c9cf0
KB
26822002-07-26 Kevin Buettner <kevinb@redhat.com>
2683
2684 * utils.c (host_pointer_to_address, address_to_host_pointer):
2685 Change internal_error() message to indicate function responsible
2686 for the error.
2687
9647fa49
KB
26882002-07-26 Kevin Buettner <kevinb@redhat.com>
2689
2690 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2691 calls to local_hex_string_custom().
2692
dabbe2c0
KB
26932002-07-26 Kevin Buettner <kevinb@redhat.com>
2694
2695 * irix5-nat.c: Move IRIX shared library support from here...
2696 * solib-irix.c: ...to here. Revised substantially to work with
2697 generic solib framework.
2698
b96d0a4e
KB
2699 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2700 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2701 * mips-irix-tdep.c: New file.
2702
313fb2f6
KB
2703 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2704 (mips-irix-tdep.o, solib-irix.o): New rules.
2705 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2706 solib-irix.o.
2707 * config/mips/irix6.mt (TDEPFILES): Likewise.
2708 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2709
ab2eaf26
KB
27102002-07-26 Kevin Buettner <kevinb@redhat.com>
2711
177e4768 2712 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
2713 disabled (via ``#if 0'') includes.
2714
7244546a
KB
27152002-07-26 Kevin Buettner <kevinb@redhat.com>
2716
2717 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2718 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2719 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2720 Add support for the fpscr register.
2721 * rs6000-nat.c (regmap, fetch_inferior_registers)
2722 (store_inferior_registers, fetch_core_registers): Likewise.
2723
dd7be90a
KB
27242002-07-26 Kevin Buettner <kevinb@redhat.com>
2725
2726 * rs6000-nat.c (language.h): Include.
2727 (special_regs): Delete this array.
2728 (regmap): New function.
2729 (fetch_register, store_register): Use regmap() to map gdb
2730 register numbers to ptrace register numbers. Also, use
2731 outputs from regmap() to make decisions regarding type of
2732 ptrace() call to make. In particular, don't compare against
2733 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2734 (fetch_inferior_registers, store_inferior_registers): Where
2735 possible, obtain register numbers from tdep struct. Don't
2736 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2737 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2738 (LAST_UISA_SP_REGNUM): Delete.
2739
11bf77db
KB
27402002-07-25 Kevin Buettner <kevinb@redhat.com>
2741
2742 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
2743 (fetch_registers, store_register, fetch_core_registers): Don't
2744 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
2745 regcache_collect() as appropriate.
2746 (find_toc_address): Format hex address with local_hex_string().
2747
06afebeb
AC
27482002-07-25 Andrew Cagney <ac131313@redhat.com>
2749
2750 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2751 bfd/elf32-frv.c.
2752
8c554d79
TT
27532002-07-24 Tom Tromey <tromey@redhat.com>
2754
2755 * jv-exp.y: Marked all strings with _().
2756 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2757 internal_error.
2758 (MethodInvocation, CastExpression, parse_number, yyerror,
2759 java_type_from_name, push_expression_name, yylex): Typo fixes.
2760
e4c242d9
DJ
27612002-07-24 Daniel Jacobowitz <drow@mvista.com>
2762
2763 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2764 (tee_file_flush, tee_file_write, tee_file_fputs)
2765 (tee_file_isatty): New.
2766 * ui-file.h (tee_file_new): Add prototype.
2767
ebf56fd3
AS
27682002-07-24 Aidan Skinner <aidan@velvet.net>
2769
2770 * ada-lang.c: Change k&r style function definitions to prototyped
2771 form.
2772 * ada-typeprint.c: Change k&r style function definitions to prototyped
2773 form.
2774 * ada-valprint.c: Change k&r style function definitions to prototyped
2775 form.
2776
7fb623f7
AC
27772002-07-24 Andrew Cagney <cagney@redhat.com>
2778
2779 * README: Remove reference to remote-bug.
2780 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2781 remote-bug.c.
2782 (m88k-nat.o): Delete rule.
2783 (m88k-tdep.o): Delete rule.
2784 (remote-bug.o): Delete rule.
2785 * MAINTAINERS: Mark as obsolete.
2786 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2787 * m88k-tdep.c: Make file obsolete.
2788 * config/m88k/m88k.mh: Ditto.
2789 * config/m88k/delta88v4.mh: Ditto.
2790 * config/m88k/delta88v4.mt: Ditto.
2791 * config/m88k/delta88.mt: Ditto.
2792 * config/m88k/delta88.mh: Ditto.
2793 * remote-bug.c: Ditto.
2794 * config/m88k/tm-delta88.h: Ditto.
2795 * config/m88k/nm-delta88v4.h: Ditto.
2796 * config/m88k/xm-delta88.h: Ditto.
2797 * config/m88k/xm-dgux.h: Ditto.
2798 * config/m88k/tm-m88k.h: Ditto.
2799 * config/m88k/nm-m88k.h: Ditto.
2800 * config/m88k/tm-delta88v4.h: Ditto.
2801 * m88k-nat.c: Ditto.
2802 * cxux-nat.c: Ditto.
2803 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2804 and m88*-*-* obsolete.
2805 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2806 m88*-*-* obsolete.
2807
37611a2b
AC
28082002-07-24 Andrew Cagney <cagney@redhat.com>
2809
2810 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2811 constant. Same for local pointer variables.
2812 (extract_signed_integer): Ditto.
2813 * defs.h (extract_unsigned_integer): Update.
2814 (extract_signed_integer): Update.
2815
1aaa5f99
AC
28162002-07-24 Andrew Cagney <cagney@redhat.com>
2817
2818 * regcache.c (regcache_raw_write): Change buf parameter to a
2819 constant void pointer.
2820 (regcache_raw_read): Change buf parameter to a void pointer.
2821 (legacy_write_register_gen): Change myaddr parameter a constant
2822 void pointer.
2823 (supply_register): Change val parameter to a const void pointer.
2824 * regcache.h (regcache_raw_write): Update declaration.
2825 (regcache_raw_read): Update declaration.
2826 (supply_register): Update declaration.
2827
b4f5539f
TT
28282002-07-24 Tom Tromey <tromey@redhat.com>
2829
2830 * defs.h (gdb_readline_wrapper): Declare.
2831 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2832 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2833 * top.c (gdb_readline_wrapper): New function.
2834 (command_line_input): Use it.
2835
0818c12a
AC
28362002-07-24 Andrew Cagney <cagney@redhat.com>
2837
2838 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2839 regcache_read and regcache_write.
2840 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2841 * regcache.c: Update.
2842 * sh-tdep.c (sh64_push_arguments): Update comment.
2843 (sh_pseudo_register_read): Update.
2844 (sh_pseudo_register_write): Update.
2845 (sh4_register_read): Update.
2846 (sh4_register_write): Update.
2847 (sh64_pseudo_register_read): Update.
2848 (sh64_pseudo_register_write): Update.
2849 (sh64_register_read): Update.
2850 (sh64_register_write): Update.
2851 * i386-tdep.c (i386_extract_return_value): Update.
2852 (i386_extract_struct_value_address): Update.
2853 (i386_extract_return_value): Update.
2854 * blockframe.c (generic_read_register_dummy): Update.
2855 (generic_call_dummy_register_unwind): Update
2856 * infrun.c (write_inferior_status_register): Update.
2857
f7321c06
JB
28582002-07-23 Jim Blandy <jimb@redhat.com>
2859
2860 * parser-defs.h (expression_context_pc): Make this extern.
2861 (Thanks to Michael Snyder.)
2862
2037aebb
AC
28632002-07-23 Andrew Cagney <ac131313@redhat.com>
2864
2865 GDB 5.2.1 released from 5.2 branch.
2866 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2867 * README: Update to mention 5.2.1.
2868
66504d44
MS
28692002-07-23 Mark Salter <msalter@redhat.com>
2870
2871 * remote.c (remote_read_bytes): Fix check for error.
2872
27bae383
KB
28732002-07-22 Kevin Buettner <kevinb@redhat.com>
2874
2875 * aix-thread.c (language.h): Include.
2876 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2877 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2878 Print newlines at end of debug messages.
2879 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2880 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2881
28822002-07-22 Kevin Buettner <kevinb@redhat.com>
2883
2884 * aix-thread.c (ppc-tdep.h): Include.
2885 (special_register_p): New function.
2886 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2887 (store_regs_user_thread): Use register number information from
2888 gdbarch_tdep struct instead of hardcoded offsets relative to
2889 FIRST_UISA_SP_REGNUM.
2890 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2891 special_register_p() instead of using FPLAST_REGNUM and
2892 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2893 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2894 will be MQ's register number.
2895
28962002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
2897
2898 * aix-thread.c (ops): Rename to aix_thread_ops.
2899 (base_ops): Rename to base_target.
2900 (ops_attach): Rename to aix_thread_attach.
2901 (ops_detach): Rename to aix_thread_detach.
2902 (ops_resume): Rename to aix_thread_detach.
2903 (ops_wait): Rename to aix_thread_wait.
2904 (ops_kill): Rename to aix_thread_kill.
2905 (init_ops): Rename to init_aix_thread_ops.
2906 (ops_fetch_register): Rename to aix_thread_fetch_register.
2907 (ops_store_register): Rename to aix_thread_store_register.
2908 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2909 (ops_thread_alive): Rename to aix_thread_thread_alive.
2910 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2911 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2912 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2913 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2914 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2915 (store_regs_lib): Rename to store_regs_user_thread.
2916 (store_regs_kern): Rename to store_regs_kernel_thread.
2917
27bae383 29182002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
2919
2920 * aix-thread.c (ops_prepare_to_store): Eliminate.
2921 (init_ops): Don't initialize ops.prepare_to_store.
2922 (store_regs_kern): Pre-fetch register buffers from child,
2923 because some registers may not be in the cache. Copy
2924 regs from register cache only if they are cached.
2925 (store_regs_lib): Copy regs from register cache only
2926 if they are cached.
2927 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2928 fill_gprs64): Ditto.
2929
61c5da0b
KB
29302002-07-22 Kevin Buettner <kevinb@redhat.com>
2931
2932 * aix-thread.c (gdb_assert.h): Include.
2933 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2934 register sizes (from register cache) match size of buffer holding
2935 register data.
2936 (fill_sprs32): Change parameter types to match those in the ptrace()
2937 buffer.
2938 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2939 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2940
29412002-07-22 Michael Snyder <msnyder@redhat.com>
2942
2943 * aix-thread.c (supply_sprs64): Cosmetic change.
2944 (supply_sprs32): Cosmetic change.
2945 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2946 (fill_sprs64): Use regcache_collect instead of read_register.
2947 (store_regs_lib): Use regcache_collect instead of
2948 read_register. Use fill_sprs32 instead of fill_sprs64,
2949 if debugging a 32-bit architecture.
2950 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2951 out of the register cache, instead of passing a pointer into
2952 the register cache directly to ptrace. Use regcache_collect
2953 insteaad of read_register.
2954 (ops_prepare_to_store): Use target_read_registers instead
2955 of read_register_bytes.
2956
36479eb1
AS
29572002-07-20 Aidan Skinner <aidan@velvet.net>
2958
2959 * MAINTAINERS: Add self under write after approval.
2960
80ae6ee2
AS
29612002-07-20 Aidan Skinner <aidan@velvet.net>
2962
2963 * ada-tasks.c: Change k&r style function definitions to prototyped
2964 form.
2965
8a8ab2b9
AC
29662002-07-19 Andrew Cagney <ac131313@redhat.com>
2967
2968 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2969 * x86-64-tdep.c: Include "objfiles.h".
2970 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2971 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2972
fb16b900
ML
29732002-07-17 Michal Ludvig <michal@suse.cz>
2974
2975 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2976 (update_context): Initialise cfa variable.
2977
0fe7bf7b
MS
29782002-07-17 Michael Snyder <msnyder@redhat.com>
2979
2980 * aix-thread.c: Shorten some long lines.
2981 Bring comments into line with code spec.
2982
488f131b
JB
29832002-07-18 Joel Brobecker <brobecker@gnat.com>
2984
2985 * infrun.c: Re-indent using gdb_indent.sh.
2986
46c415d2
JB
29872002-07-18 Joel Brobecker <brobecker@gnat.com>
2988
2989 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2990 Leave the indentation temporarily untouched, to minimize the diffs.
2991
cdecafbe
EZ
29922002-07-18 Elena Zannoni <ezannoni@redhat.com>
2993
2994 * stabsread.c: Make os9k sections of the code obsolete,
2995 for real this time.
2996 * stabsread.h: Make os9k sections of the code obsolete.
2997
7b6aa020
ML
29982002-07-18 Michal Ludvig <mludvig@suse.cz>
2999
09ec9b38
ML
3000 * linux-low.c (regsets_store_inferior_registers): Add free()
3001 at the end of a loop to prevent memory leak.
3002 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
3003 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
3004 * config/sparc/tm-sp64linux.h: Make the rest of #endif
3005 line a comment.
4894ac5d 3006 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 3007
233282cd
JB
30082002-07-17 Jim Blandy <jimb@redhat.com>
3009
3010 * macrocmd.c (info_macro_command): Remove newline from error
3011 message.
3012
7b6aa020 30132002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
3014
3015 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
3016 (sh_gdbarch_init): Use it for sh-dsp.
3017
f7ef9339
KB
30182002-07-16 Kevin Buettner <kevinb@redhat.com>
3019
3020 * dwarf2read.c (read_initial_length): Handle older, non-standard,
3021 64-bit DWARF2 format.
3022
8dd72958
JB
30232002-07-16 Joel Brobecker <brobecker@gnat.com>
3024
3025 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
3026 <sys/proc.h> when not available.
3027
a99a9e1b
AC
30282002-07-16 Andrew Cagney <ac131313@redhat.com>
3029
3030 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
3031 * stabsread.c: Make os9k sections of the code obsolete.
3032 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
3033 * config/i386/i386os9k.mt: Make file obsolete.
3034 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
3035 (COMMON_OBS): Remove os9kread.o
3036 (SFILES): Remove os9kread.c.
3037 (os9kread.o, remote-os9k.o): Make target obsolete.
3038 * remote-os9k.c: Make file obsolete.
3039 * os9kread.c: Make file obsolete.
3040 * Makefile.in
3041
7a3085c1
AC
30422002-07-16 Andrew Cagney <ac131313@redhat.com>
3043
3044 * NEWS: Mention that the FR30 has been made obsolete.
3045 * fr30-tdep.c: Make file obsolete.
3046 * config/fr30/tm-fr30.h: Ditto.
3047 * config/fr30/fr30.mt: Ditto.
3048 * configure.tgt: Make fr30-*-elf obsolete.
3049 * MAINTAINERS: Make fr30-elf obsolete.
3050
28a93f5a
PM
30512002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
3052
3053 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
3054 found is not inside a section.
3055
be006b8b
KB
30562002-07-15 Kevin Buettner <kevinb@redhat.com>
3057
3058 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
3059 strerror().
3060 (pdc_realloc): Use xrealloc() instead of realloc().
3061
14fa3751
KB
30622002-07-15 Kevin Buettner <kevinb@redhat.com>
3063
3064 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
3065 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
3066 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
3067 macros.
3068
42cc437f
KB
30692002-07-15 Kevin Buettner <kevinb@redhat.com>
3070
3071 * aix-thread.c (ptrace_check): Eliminate goto.
3072 (sync_threadlists): Eliminate gotos. Also, fix array overrun
3073 problem.
3074
8e2c28d4
KB
30752002-07-15 Kevin Buettner <kevinb@redhat.com>
3076
3077 * aix-thread.c (gdbcmd.h): Include.
3078 (DEBUG, DBG, DBG2, dbg): Eliminate.
3079 (debug_aix_thread): New static global.
3080 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
3081 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
3082 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
3083 invocations to DBG and DBG2 macros to test against
3084 ``debug_aix_thread'' and call fprintf_unfiltered().
3085 (_initialize_aix_thread): Add new command "set debug aix-thread".
3086
30413464
AC
30872002-07-15 Andrew Cagney <ac131313@redhat.com>
3088
3089 From Gerhard Tonn <TON@de.ibm.com>:
3090 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
3091 instead of supply_register.
3092
7c43edc1
AC
30932002-07-15 Andrew Cagney <ac131313@redhat.com>
3094
3095 * dwarf2cfi.c: Include "gdb_assert.h".
3096 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
3097 non-NULL.
3098 (update_context): Do not use __func__. Add missing ``break''.
3099 (update_context): Do not use __func__.
3100
9364a0ef
EZ
31012002-07-15 Elena Zannoni <ezannoni@redhat.com>
3102
3103 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
3104 and its setting. Set gdbarch instruction printing functions
3105 directly. For non-rs6000 case use new function
3106 gdb_print_insn_powerpc.
3107 (gdb_print_insn_powerpc): New function.
3108
3fbeef0b
AC
31092002-07-13 Andrew Cagney <ac131313@redhat.com>
3110
92eb23c5 3111 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
3112 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
3113 * configure.tgt: Mark d30v-*-* as obsolete.
3114 * d30v-tdep.c: Mark file as obsolete.
3115 * config/d30v/d30v.mt: Ditto.
3116 * config/d30v/tm-d30v.h: Ditto.
3117
aacb1f0a
AS
31182002-07-13 Aidan Skinner <aidan@velvet.net>
3119
3120 * ada-tasks.c (add_task_entry): replace calls to
3121 malloc() with xmalloc
3122 * ada-tasks.c (init_task_list): replace calls to free with xfree()
3123
3124 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
3125 ada_finish_decode_line_1, all_sals_for_line
3126 ada_breakpoint_rewrite): replace calls to free() with xfree()
3127
c11d79f2
KB
31282002-07-12 Kevin Buettner <kevinb@redhat.com>
3129
3130 From Nicholas Duffek (with minor changes by Martin Hunt,
3131 Louis Hamilton, and Kevin Buettner):
3132 * aix-thread.c: New file.
3133
8e19ed76
PS
31342002-07-12 Petr Sorfa <petrs@caldera.com>
3135
3136 * dwarf2read.c (dwarf2_invalid_attrib_class): New
3137 complaint for invalid attribute class or form.
3138 (read_func_scope): DW_AT_frame_base
3139 better handling of DW_AT_block*.
3140 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
3141 better handling of DW_AT_block*.
3142 (read_common_block): DW_AT_location
3143 better handling of DW_AT_block*.
3144 (read_partial_die): DW_AT_location better handling
3145 of DW_AT_block*.
3146 (new_symbol): DW_AT_external better handling of
3147 DW_AT_block*. Proper initialization of variable
3148 "addr".
3149 (attr_form_is_block): New function that returns true
3150 if the attribute's form is of DW_FORM_block*.
3151
295401f7
DJ
31522002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3153
3154 * valops.c (find_method_list): Remove comment about
3155 removed STATIC_MEMFUNCP argument.
3156 (value_find_oload_method_list): Likewise.
3157
e42dc924
KB
31582002-07-12 Kevin Buettner <kevinb@redhat.com>
3159
3160 From Nicholas Duffek:
3161 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
3162 target_new_objfile_hook.
3163
6904b546
KB
31642002-07-12 Kevin Buettner <kevinb@redhat.com>
3165
3166 From Nicholas Duffek:
3167 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
3168 csect.
3169
53fe9346
AC
31702002-07-12 Andrew Cagney <cagney@redhat.com>
3171
3172 * MAINTAINERS: Mention --enable-sim-build-warnings.
3173 (m68hc11-elf): Disable sim build warnings.
3174 (m32r-elf): Mark as broken obsolete candidate.
3175 (x86_64-linux-gnu): Mark as buildable with -Werror.
3176 (arm-elf): Change -w to ``,'' which enables warnings but not
3177 -Werror.
3178
af5f3db6
AC
31792002-07-12 Andrew Cagney <ac131313@redhat.com>
3180
3181 * bcache.h: Update copyright.
3182 (struct bstring, struct bcache): Move definition to "bcache.c".
3183 Replaced by opaque declaration.
3184 (bcache_xfree): Replace free_bcache.
3185 (bcache_xmalloc, bcache_memory_used): Declare.
3186
3187 * bcache.c: Update copyright.
3188 (struct bstring, struct bcache): Moved to here from "bcache.h".
3189 Update comments.
3190 (bcache_xmalloc, bcache_memory_used): New functions.
3191 (bcache_xfree): Replace function free_bcache.
3192
3193 * Makefile.in (objfiles.o): Add $(bcache_h).
3194 (objfiles_h): Remove $(bcache_h).
3195 (symfile.o): Add $(bcache_h).
3196
3197 * symmisc.c: Update copyright.
3198 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
3199 (print_objfile_statistics): Use bcache_memory_used.
3200
3201 * symfile.c: Include "bcache.h".
3202 (reread_symbols): Use bcache_xfree.
3203 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
3204 (add_psymbol_to_list): Pass psymbol_cache by value.
3205 (add_psymbol_with_dem_name_to_list): Ditto.
3206
3207 * objfiles.h: Update copyright.
3208 (struct bcache): Declare opaque. Do not include "bcache.h".
3209 (struct objfile): Change psymbol_cache and macro_cache to ``struct
3210 bcache'' pointers.
3211 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
3212
3213 * objfiles.c: Include "bcache.h". Update copyright.
3214 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
3215 macro_cache.
3216 (free_objfile): Use bcache_xfree.
3217
444199e7
GS
32182002-07-11 Grace Sainsbury <graces@redhat.com>
3219
3220 * monitor.c (monitor_fetch_register): Make name a constant.
3221 (monitor_store_register): Same.
3222
261397f8
DJ
32232002-07-11 Daniel Jacobowitz <drow@mvista.com>
3224
3225 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
3226 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
3227 (finish_block) For non-function blocks, hash the symbol table. For
3228 function blocks, mark the symbol table as unhashed.
3229 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
3230 (msymbol_hash_iw): Likewise.
3231 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
3232 value.
3233 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
3234 (lookup_minimal_symbol): Likewise for both.
3235 * symtab.h (struct block): Add `hashtable' flag. Comment the
3236 hashtable.
3237 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
3238 (ALL_BLOCK_SYMBOLS): Update.
3239 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
3240 (struct symbol): Add `hash_next' pointer.
3241 * symtab.c (lookup_block_symbol): Search using the hash table when
3242 possible.
3243 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
3244 (search_symbols, find_addr_symbol): Likewise.
3245
3246 * dstread.c (process_dst_block): Clear hashtable bit for new block.
3247 (read_dst_symtab): Likewise.
3248 * jv-lang.c (get_java_class_symtab): Likewise.
3249 * mdebugread.c: Include "gdb_assert.h".
3250 (shrink_block): Assert that the block being modified is not hashed.
3251 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
3252 * symmisc.c (free_symtab_block): Walk the hash table when freeing
3253 symbols.
3254 (dump_symtab): Recognize hashed blocks.
3255 * printcmd.c (print_frame_args): Assert that function blocks do not
3256 have hashed symbol tables.
3257 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
3258 (fill_in_ada_prototype, debug_print_block): Likewise.
3259 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
3260
6f0eaa01
CV
32612002-07-11 Corinna Vinschen <vinschen@redhat.com>
3262
3263 * stack.c (print_frame): Use result of frame_address_in_block()
3264 instead of fi->pc when evaluating symbols.
3265 (backtrace_command_1): Ditto.
3266
a208b0cb
AC
32672002-07-11 Andrew Cagney <cagney@redhat.com>
3268
3269 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
3270 Make static.
3271
3272 * arm-tdep.c (arm_register_name): Make return type constant.
3273
a6b6b089
AC
32742002-07-10 Andrew Cagney <ac131313@redhat.com>
3275
5ae5f592
AC
3276 * win32-nat.c (has_detach_ability): Convert to strict ISO C
3277 prototype.
3278 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
3279 * s390-tdep.c (s390_fp_regnum): Ditto.
3280 (s390_read_fp): Ditto.
3281 (s390_pop_frame): Ditto.
3282 (_initialize_s390_tdep): Ditto.
3283 * remote.c (get_remote_state): Ditto.
3284 * procfs.c (mappingflags): Ditto.
3285 * memattr.c (_initialize_mem): Ditto.
3286 * mcore-tdep.c (mcore_pop_frame): Ditto.
3287 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
3288 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
3289 * language.c (set_case_str): Ditto.
3290 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
3291 * frv-tdep.c (new_variant): Ditto.
3292 (frv_stopped_data_address): Ditto.
3293 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
3294 (context_alloc): Ditto.
3295 (frame_state_alloc): Ditto.
3296 (unwind_tmp_obstack_init): Ditto.
3297 (unwind_tmp_obstack_free): Ditto.
3298 (cfi_read_fp): Ditto.
3299 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
3300 (cris_pop_frame): Ditto.
3301 * c-lang.c (scanning_macro_expansion): Ditto.
3302 (finished_macro_expansion): Ditto.
3303 (c_preprocess_and_parse): Ditto.
3304 * gdbarch.sh: Ditto.
3305 * gdbarch.h, gdbarch.c: Regenerate.
3306 * config/mn10200/tm-mn10200.h: Adjust indentation.
3307 * target.c: Adjust indentation.
3308 * symtab.h: Adjust indentation.
3309 * stabsread.h: Adjust indentation.
3310 * remote-es.c: Adjust indentation.
3311 * os9kread.c: Adjust indentation.
3312
33132002-07-10 Andrew Cagney <ac131313@redhat.com>
3314
a6b6b089
AC
3315 * wince.c (_initialize_wince): Rename _initialize_inftarg.
3316 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
3317
a1789893
GS
33182002-07-10 Grace Sainsbury <graces@redhat.com>
3319
3320 * NEWS: Mention m68k, mcore multi-arching.
3321 * MAINTAINERS: Change status of m68k, mcore to reflect
3322 multi-arching.
3323
02f0d45d
DJ
33242002-07-10 Daniel Jacobowitz <drow@mvista.com>
3325
3326 * valops.c (find_overload_match): Free oload_syms.
3327
f15f768e
JB
33282002-07-09 Joel Brobecker <brobecker@gnat.com>
3329
3330 Define HAVE_SYS_PROC_H if sys/proc.h exists
3331 * configure.in: Add check for sys/proc.h
3332 * config.in: Regenerate.
3333 * configure: Regenerate.
3334
902a7139
GS
33352002-07-09 Grace Sainsbury <graces@redhat.com>
3336
3337 * config/m68k/tm-m68k.h: Remove macros wrapped in
3338 #if !GDB_MULTI_ARCH.
3339
a534e424
AC
33402002-07-08 Andrew Cagney <ac131313@redhat.com>
3341
3342 * config.in, configure: Regenerate.
3343
9b94f7bf
MK
33442002-07-08 Mark Kettenis <kettenis@gnu.org>
3345
3346 * dwarf2cfi.c: Include "gcore.h".
3347 (execute_stack_op): Fix implementation of the
3348 DW_OP_deref and DW_OP_deref_size operators by letting do their
3349 lookup in the target.
3350
1d34db41
MK
33512002-07-07 Mark Kettenis <kettenis@gnu.org>
3352
3353 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
3354 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
3355 tdep->sc_sp_offset.
3356
79d5b63a
DJ
33572002-07-05 Daniel Jacobowitz <drow@mvista.com>
3358
3359 Fix PR gdb/595, gdb/602
3360 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
3361 Don't call value_cast, just read the vtable pointer; update comments
3362 to match.
3363
3bb912e8
GS
33642002-07-05 Grace Sainsbury <graces@redhat.com>
3365
3366 * config/mcore/tm-mcore.h: Remove file.
3367 * config/mcore/mcore.mt: Remove definition of TM_FILE
3368 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
3369
ca39387d
MK
33702002-07-05 Mark Kettenis <kettenis@gnu.org>
3371
3372 * i386bsd-tdep.c: Include "gdb_string.h".
3373
efdc1108
GS
33742002-07-04 Grace Sainsbury <graces@redhat.com>
3375
3376 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
3377 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
3378 mcore-tdep.
3379 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
3380 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
3381 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
3382 (RETVAL_REGNUM): Move macros from tm-mcore.h
3383 (mcore_reg_struct_has_addr): New function.
3384 (mcore_gdbarch_init): Added initializations for the macros removed
3385 from tm-mcore.h.
3386
bb21884d
MK
33872002-07-04 Mark Kettenis <kettenis@gnu.org>
3388
3389 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
3390 traditonal string branding within the ELF header.
3391
228c6d41
DJ
33922002-07-04 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * symtab.c (remove_params): New function.
3395 (make_symbol_overload_list): Use it instead of cplus_demangle.
3396 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
3397
2404952e
MK
33982002-07-04 Mark Kettenis <kettenis@gnu.org>
3399
e5e4acad
MK
3400 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
3401
baadce09
MK
3402 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
3403 New variables.
3404 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
3405 and tdep->sigtramp_end.
3406 * i386obsd-nat.c: New file.
3407 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3408
2404952e
MK
3409 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3410 Don't call get_current_frame().
3411
9b4f1ba7
PM
34122002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3413
3414 * i386-nat.c (child_post_startup_inferior): New function
3415 calling i386_cleanup_dregs if
3416 I386_USE_GENERIC_WATCHPOINTS is defined.
3417 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3418 conditional to acknowledge that i386-nat.c has its
3419 own child_post_startup_inferior function.
3420
c0d1d883
MK
34212002-07-04 Mark Kettenis <kettenis@gnu.org>
3422
00f8375e
MK
3423 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3424 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3425 instead of MAX_REGISTER_RAW_SIZE.
3426 (i386_extract_return_value, i386_extract_struct_value_address):
3427 Convert to use regcache.
3428 (i386_gdbarch_init): Set max_register_raw_size and
3429 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3430 Set extract_return_value and extract_struct_value_address instead
3431 of their deprecated variants.
3432
c0d1d883
MK
3433 Convert i386 target to generic dummy frames.
3434 * i386-tdep.c: Include "symfile.h".
3435 (i386_frameless_signal_p): Consider a function to be frameless if
3436 the pc points at the first instruction of the function.
3437 (i386_frame_chain): Handle (generic) call dummies.
3438 (i386_frame_saved_pc): Likewise.
3439 (i386_frame_init_saved_regs): Remove code dealing with call
3440 dummies on the stack.
3441 (i386_push_dummy_frame): Removed.
3442 (i386_call_dummy_words): Removed.
3443 (i386_fix_call_dummy): Removed.
3444 (i386_push_return_address): New function.
3445 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3446 parameter, and don't call get_current_frame.
3447 (i386_pop_frame): New function.
3448 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3449 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3450 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3451 call_dummy_length to 0, set call_dummy_words to NULL, set
3452 sizeof_call_dummy_words to 0, set fix_call_dummy to
3453 generic_fix_call_dummy, set pc_in_call_dummy to
3454 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3455 generic_push_dummy_frame, set push_return_address to
3456 i386_push_return_address and set frame_chain_valid to
3457 generic_file_frame_chain_valid.
3458
049ee0e4
AC
34592002-07-03 Andrew Cagney <ac131313@redhat.com>
3460
3461 * gdbarch.sh (struct regcache): Add opaque declaration.
3462 (EXTRACT_RETURN_VALUE): New architecture method.
3463 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3464 * gdbarch.h, gdbarch.c: Regenerate.
3465 * arch-utils.c (legacy_extract_return_value): New function.
3466 * arch-utils.h (legacy_extract_return_value): Declare.
3467 * values.c (value_being_returned): Re-enable code handling
3468 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3469 deprecated_grub_regcache_for_registers call to block handling
3470 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3471 (EXTRACT_RETURN_VALUE): Do not define.
3472
4e0d9804
GS
34732002-07-03 Grace Sainsbury <graces@redhat.com>
3474
3475 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3476 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3477 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3478 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3479 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3480 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3481 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3482 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3483 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3484 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3485 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3486 argument so the function fits the prototype in the architecture
3487 vector.
3488 (mcore_pop_frame): Remove argument so the function fits the
3489 prototype. Use get_current_frame instead of the argument.
3490 (mcore_push_arguments): Change type of struct_return so the
3491 function can be used in the architecture vector.
3492 (mcore_store_struct_return): Add.
3493 (mcore_frame_init_saved_regs): Add.
3494 (mcore_gdbarch_init): Add function calls to replace the macros
3495 removed from tm-mcore.h
3496
36160dc4
AC
34972002-07-03 Andrew Cagney <ac131313@redhat.com>
3498
3499 * infcmd.c (print_return_value): Remove compatibility code calling
3500 deprecated_grub_regcache_for_registers.
3501
3502 * values.c: Include "regcache.h".
3503 (value_being_returned): Update. Use
3504 deprecated_grub_regcache_for_registers to extract the register
3505 buffer address.
3506 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3507 ``struct regcache''.
3508 * Makefile.in (values.o): Add dependency on $(regcache_h).
3509
3510 * inferior.h (run_stack_dummy): Change type of second parameter to
3511 a ``struct regcache''.
3512 * valops.c (hand_function_call): Change type of retbuf to ``struct
3513 regcache''. Allocate using regcache_xmalloc, clean using
3514 make_cleanup_regcache_xfree.
3515 * infcmd.c (run_stack_dummy): Update. Use
3516 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3517
3518 * regcache.c (do_regcache_xfree): New function.
3519 (make_cleanup_regcache_xfree): New function.
3520 * regcache.h (make_cleanup_regcache_xfree): Declare.
3521
e64d9b3d
MH
35222002-07-03 Martin M. Hunt <hunt@redhat.com>
3523
4dd79c29
MH
3524 * event-top.c (command_line_handler): Don't read past
3525 beginning of buffer.
e64d9b3d 3526
4dd79c29
MH
35272002-07-03 Martin M. Hunt <hunt@redhat.com>
3528
e64d9b3d
MH
3529 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3530 struct frame_id.
3531 (varobj_create): Store frame_id for root.
3532 (varobj_gen_name): Use xasprintf.
3533 (varobj_update): Save and restore frame using get_frame_id() and
3534 frame_find_by_id().
3535 (create_child): Use xasprintf.
3536 (new_root_variable): Initialize frame_id.
3537 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3538 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3539 to prevent memory leak.
3540
26e6c56a
AC
35412002-07-03 Andrew Cagney <ac131313@redhat.com>
3542
3543 * valops.c (hand_function_call): Move declaration of retbuf to
3544 start of function, allocate using malloc, add a cleanup but before
3545 the inf_status cleanup, cleanup the buffer. Rename local variable
3546 old_chain to inf_status_cleanup.
3547
f436dd25
MH
35482002-07-03 Martin M. Hunt <hunt@redhat.com>
3549
3550 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3551
3552 * cli/cli-decode.c (cmd_func_p): New function.
3553 (cmd_func): New function.
3554
3555 * command.h: Add cmd_func() and cmd_func_p().
3556
4cfe2084
GS
35572002-07-03 Grace Sainsbury <graces@redhat.com>
3558
3559 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3560 (REGISTER_SIZE): Remove.
3561 (MAX_REGISTER_RAW_SIZE): Remove.
3562 (REGISTER_VIRTUAL_TYPE): Remove.
3563 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3564 (REGISTER_NAME): Remove.
3565 (USE_GENERIC_DUMMY_FRAMES): Remove.
3566 (CALL_DUMMY): Remove.
3567 (CALL_DUMMY_START_OFFSET): Remove.
3568 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3569 (CALL_DUMMY_LOCATION): Remove.
3570 (FIX_CALL_DUMMY): Remove.
3571 (CALL_DUMMY_ADDRESS): Remove.
3572 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3573 (SAVE_DUMMY_FRAME_TOS): Remove.
3574 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3575 (mcore_register_virtual_type): New function.
3576 (mcore_register_byte): New function.
3577 (mcore_register_size): New function.
3578 (mcore_register_name): New function.
3579 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3580 macros removed from tm-mcore.h.
3581 (mcore_dump_tdep): Add.
3582 (_initialize_mcore_tdep): Add gdbarch_register call.
3583
4fd667e9
MK
35842002-07-03 Mark Kettenis <kettenis@gnu.org>
3585
3586 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3587 frameless_look_for_prologue, such that we actually call this
3588 function.
3589
42f99ac2
JB
35902002-07-02 Joel Brobecker <brobecker@gnat.com>
3591
3592 * frame.h (frame_address_in_block): New function.
3593
3594 * blockframe.c (frame_address_in_block): New function extracted
3595 from get_frame_block().
3596 (get_frame_block): Use frame_address_in_block().
3597 (block_innermost_frame): Use frame_address_in_block() to match
3598 the frame pc address against the block boundaries rather than
3599 the frame pc directly. This prevents a failure when a frame pc
3600 is actually a return-address pointing immediately after the end
3601 of the given block.
3602
103a1597 36032002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
3604
3605 * MAINTAINERS: Add self under write after approval.
3606
36072002-07-02 Grace Sainsbury <graces@redhat.com>
3608
103a1597
GS
3609 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3610 used in architecture vector. The default is
3611 m68k_local_breakpoint_from_pc.
3612 (m68k_local_breakpoint_from_pc): Add.
3613 (enum): Add register numbers from tm-m68k.h.
3614 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3615 vector.
3616 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3617 GDB_MULTI_ARCH_PARTIAL.
3618 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3619 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3620 m68k-tdep.c.
3621 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3622 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3623 to enum in m68k-tdep.c
3624
7a5a0534
JB
36252002-07-02 Joel Brobecker <brobecker@gnat.com>
3626
3627 * solib-osf.c (open_map): Compute the list of shared libraries
3628 loaded by the inferior, rather than the list of libraries loaded
3629 by GDB itself. Otherwise, GDB ends up reading the symbols from
3630 the wrong shared libraries...
3631
6f558d74
MK
36322002-07-02 Mark Kettenis <kettenis@gnu.org>
3633
b7d15bf7
MK
3634 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3635 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3636 macros.
3637 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3638 Remove functions.
3639 (FRAMELESS_SIGNAL): Remove function.
3640 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3641 i386_linux_saved_pc_after_call): Removed.
3642 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3643 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3644 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3645
6bff26de
MK
3646 * i386-tdep.c (i386_frameless_signal_p): New function.
3647 (i386_frame_chain): Deal with frameless signals.
3648 (i386_sigtramp_saved_sp): New function.
3649 (i386_frame_saved_pc): Deal with frameless signals.
3650 (i386_saved_pc_after_call): Make sure the correct value is
3651 returned just after entry into a sigtramp.
3652 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3653 i386fbsd4_sc_sp_offset): New variables.
3654 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3655 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3656 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3657 similiar to what we already did for sc_pc_offset.
3658 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3659 tdep->sc_sp_offset.
3660
6f558d74
MK
3661 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3662
145564b7
ML
36632002-07-02 Michal Ludvig <mludvig@suse.cz>
3664
3665 * config/i386/tm-x86-64linux.h: New.
3666 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3667 definitions.
3668 * config/i386/nm-x86-64.h: Rename to ...
3669 * config/i386/nm-x86-64linux.h: ... this one.
3670 * config/i386/x86-64linux.mh: Reflect the above change.
3671
3a1e71e3
MK
36722002-07-01 Mark Kettenis <kettenis@gnu.org>
3673
21d0e8a4
MK
3674 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3675 with sigcontext_addr. Add sc_sp_offset.
3676 (i386bsd_sigtramp_saved_pc): Remove prototype.
3677 (i386bsd_sicontext_addr): Add prototype.
3678 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3679 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3680 (i386_svr4_sigtramp_saved_pc): Removed.
3681 (i386_svr4_sigcontext_addr): New function.
3682 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3683 Initialize tdep->sigcontext_addr instead. Initialize
3684 tdep->sc_pc_offset and tdep->sc_sp_offset.
3685 (i386_gdbarch_init): Likewise.
3686 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3687 any more.
3688 (i386bsd_sigtramp_saved_pc): Remove function.
3689 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3690 Initialize tdep->sigcontext_addr instead. Initialize
3691 tdep->sc_pc_offset.
3692 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3693 of tdep->sigtramp_saved_pc.
3694 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3695 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3696 instead.
3697
3a1e71e3
MK
3698 * i386-tdep.c (i386_frameless_function_invocation,
3699 i386_frame_num_args, i386_frame_init_saved_regs,
3700 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3701 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3702 i386_extract_return_value, i386_store_return_value,
3703 i386_extract_struct_value_address, i386_register_virtual_type,
3704 i386_register_convertible, i386_register_convert_to_virtual,
3705 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3706 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3707 static.
3708
52e9098c
MK
37092002-07-01 Mark Kettenis <kettenis@gnu.org>
3710
77b13a25
MK
3711 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3712
52e9098c
MK
3713 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3714 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3715 this macro. Include "value.h".
3716
1b372fff
AS
37172002-06-30 Aidan Skinner <aidan@velvet.net>
3718
3719 * ada-exp.tab.c: remove as it's a generated file
3720 * ada-lex.c: remove as it's a generated file
3721
9c5045b5
MK
37222002-06-30 Mark Kettenis <kettenis@gnu.org>
3723
4a93c5bb
MK
3724 * config/i386/tm-i386.h (struct frame_info, struct
3725 frame_saved_regs, struct value, struct type): Remove forward
3726 declarations.
3727
322d4fe0
MK
3728 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3729 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3730 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3731 (FILL_FPXREGSET): Define.
3732
fdd8263d
MK
3733 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3734
482e577b
MK
3735 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3736 i[3456]86-*-netbsd* case.
3737 * config/i386/tm-obsd.h: Removed.
3738 * config/i386/obsd.mt: Removed.
3739 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3740 core-aout.o.
3741 (MH_CFLAGS): Add -DYYDEBUG=0.
3742
6916549a
MK
3743 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3744 i386nbsd_sc_pc_offset on OpenBSD too.
3745
9c5045b5
MK
3746 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3747 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3748 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3749 define.
3750 * i386bsd-tdep.c: Include "arch-utils.h".
3751 (i386bsd_aout_in_solib_call_trampoline): New function.
3752 (i386bsd_init_abi): Set in_solib_call_trampoline to
3753 i386bsd_aout_in_solib_call_trampoline.
3754 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3755 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3756
aa84d1bb
AC
37572002-06-28 Andrew Cagney <ac131313@redhat.com>
3758
3759 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3760 (struct obstack, struct bcache): Add opaque declarations.
3761 * Makefile.in (macrotab_h): Update
3762
b4d83933
AC
37632002-06-28 Andrew Cagney <ac131313@redhat.com>
3764
3765 * blockframe.c (generic_find_dummy_frame): Change return type to
3766 ``struct regcache''.
3767 (struct dummy_frame): Replace field ``registers'' with regcache, a
3768 struct regcache object.
3769 (generic_find_dummy_frame): Update.
3770 (generic_push_dummy_frame): Update. Use regcache_xfree,
3771 regcache_xmalloc and regcache_cpy.
3772 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3773 regcache_xfree.
3774 (deprecated_generic_find_dummy_frame): Update.
3775 (generic_read_register_dummy): Update. Use
3776 regcache_read_as_address.
3777 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3778 (generic_get_saved_register): Update. Use regcache_read.
3779
08c0b5bc
AC
37802002-06-28 Andrew Cagney <ac131313@redhat.com>
3781
3782 * Makefile.in (objfiles_h): Add $(bcache_h).
3783 * objfiles.h: Include "bcache.h".
3784
3785 * Makefile.in (symtab_h): Remove $(bcache_h).
3786 * symtab.h: Do not include "bcache.h".
3787
1f89801a
AC
37882002-06-28 Andrew Cagney <ac131313@redhat.com>
3789
3790 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3791 generic_func_frame_chain_valid.
3792
b9644b58
DB
37932002-06-28 David O'Brien <obrien@FreeBSD.org>
3794
3795 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3796 * config/i386/tm-fbsd.h: Likewise.
3797
dd486634
AC
37982002-06-28 Andrew Cagney <ac131313@redhat.com>
3799
3800 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3801 generic_unwind_get_saved_register.
3802
0b434a00
AC
38032002-06-27 Andrew Cagney <ac131313@redhat.com>
3804
3805 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3806 * regcache.c (supply_register): Add missing argument to
3807 register_buffer call.
3808
f30e5a77
AC
38092002-06-27 Andrew Cagney <ac131313@redhat.com>
3810
3811 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3812 Solaris /bin/grep does not not like it. From Peter Schauer.
3813
9f064c95
TT
38142002-06-26 Tom Tromey <tromey@redhat.com>
3815
3816 * command.h (add_setshow_cmd): Declare.
3817 (add_setshow_cmd_full): Declare.
3818 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3819 returns void. Use add_setshow_cmd_full.
3820 (add_setshow_cmd_full): New function.
3821 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3822 (add_setshow_boolean_cmd): Likewise.
3823
099c7589
JT
38242002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3825
3826 * config/vax/tm-vax.h: Protect from multiple inclusion.
3827 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3828 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3829 * config/vax/tm-vaxbsd.h: ...here. New file.
3830 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3831
1d049c5e
JT
38322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3833
3834 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3835 (BELIEVE_PCC_PROMOTION): Remove.
3836 (AP_REGNUM): Move to...
3837 * config/vax/nm-vax.h: ...here.
3838 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3839 (vax_breakpoint_from_pc): New function.
3840 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3841 and gdbarch_believe_pcc_promotion.
3842
4791e091
JT
38432002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3844
3845 * Makefile.in (vax_tdep_h): Define.
3846 (vax-tdep.o): Use $(vax_tdep_h).
3847 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3848 (vax_dump_tdep): New function.
3849 (_initialize_vax_tdep): Register vax_dump_tdep.
3850 * vax-tdep.h: Include osabi.h.
3851 (struct gdbarch_tdep): New.
3852
da130f98
AC
38532002-06-26 Andrew Cagney <cagney@redhat.com>
3854
3855 * frame.h (deprecated_generic_find_dummy_frame): Rename
3856 generic_find_dummy_frame.
3857 * blockframe.c (generic_find_dummy_frame): Make static.
3858 (deprecated_generic_find_dummy_frame): New function.
3859 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3860 generic_find_dummy_frame with deprecated_find_dummy_frame.
3861 (sh64_nofp_frame_init_saved_regs): Ditto.
3862 (sh_fp_frame_init_saved_regs): Ditto.
3863 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3864 (s390_frame_chain): Ditto.
3865 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3866
6300c360
GS
38672002-06-26 Grace Sainsbury <graces@redhat.com>
3868
3869 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3870 gdbarch vector are at the top.
3871 (NUM_REGS): Remove.
3872 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3873 (FRAME_ARGS_ADDRESS): Remove.
3874 (FRAME_LOCALS_ADDRESS): Remove.
3875 (FRAME_NUM_ARGS): Remove.
3876 (FRAME_ARGS_SKIP): Remove.
3877 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3878 (m68k_gdbarch_init): Add gdbarch initializations for macros
3879 undefined in tm-m68k.h
3880
1c617db8
GS
38812002-06-26 Grace Sainsbury <graces@redhat.com>
3882
3883 * monitor.h: Add the function regname to monitor_ops
3884 structure. This way NUM_REGS does not have to be a constant.
3885 * monitor.c (monitor_fetch_register): Added support for regname
3886 function. The function is called if the array regnames is NULL.
3887 (monitor_store_register): Same.
da130f98
AC
3888 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3889 regnames array.
1c617db8
GS
3890 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3891 cpu32bug_cmds.regname to point to new function.
3892 * abug-rom.c (abug_regname): Same as above.
3893 (init_abug_cmds): Same.
3894 * dbug-rom.c (dbug_regname): Same as above.
3895 (init_dbug_cmds): Same.
3896 * remote-est.c (est_regname): Same.
3897 (init_est_cmds): Same.
3898 * rom68k-rom.c (rom68k_regname): Same.
3899 (init_rom68k_cmds): Same.
3900
ea9365bb
TT
39012002-06-25 Tom Tromey <tromey@redhat.com>
3902
3903 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3904
72cec141
AC
39052002-06-25 Andrew Cagney <cagney@redhat.com>
3906
3907 * infrun.c (stop_registers): Change variable's type to ``struct
3908 regcache'''.
3909 (xmalloc_inferior_status): Delete function.
3910 (free_inferior_status): Delete function.
3911 (normal_stop): Use regcache_cpy.
3912 (struct inferior_status): Change type of fields ``stop_registers''
3913 and ``registers'' to ``struct regcache''.
3914 (write_inferior_status_register): Use regcache_write.
3915 (save_inferior_status): Instead of calling
3916 xmalloc_inferior_status, allocate the inf_status buffer directly.
3917 Use regcache_dup_no_passthrough and regcache_dup to save the
3918 buffers.
3919 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3920 Replace the stop_registers regcache instead of overriding it. Use
3921 regcache_xfree. Instead of calling free_inferior_status, xfree
3922 the buffer directly.
3923 (discard_inferior_status): Use regcache_xfree. Instead of calling
3924 free_inferior_status, xfree the buffer directly.
3925 (build_infrun): Use regcache_xmalloc.
3926 (_initialize_infrun): Delete redundant call to build_infrun.
3927
3928 * Makefile.in (infcmd.o): Add $(regcache_h).
3929
3930 * infcmd.c: Include "regcache.h".
3931 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3932 obtain the address of `stop_registers' register buffer.
3933 (print_return_value): Ditto.
3934
3935 * inferior.h (struct regcache): Add opaque declaration.
3936 (stop_registers): Change variable's declared type to ``struct
3937 regcache''.
3938
defc6f8c
TT
39392002-06-24 Tom Tromey <tromey@redhat.com>
3940
c0e624e7
TT
3941 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3942 * target.c (initialize_targets): Fixed typo in
3943 trust-readonly-sections `show' documentation.
3944
defc6f8c
TT
3945 * main.c: Marked all strings with _().
3946
2b236d82
DH
39472002-06-24 Don Howard <dhoward@redhat.com>
3948
3949 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3950 that means max CORE_ADDR+1.
3951 (lookup_mem_region): Ditto.
3952 (mem_info_command): Ditto.
3953
942dc0e9
GS
39542002-06-24 Grace Sainsbury <graces@redhat.com>
3955
3956 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3957 (REGISTER_BYTES_OK): Remove.
3958 (REGISTER_BYTES): Remove.
3959 (STORE_STRUCT_RETURN): Remove.
3960 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3961 (STORE_RETURN_VALUE): Remove.
3962 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3963 (FRAME_CHAIN): Remove.
3964 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3965 (FRAME_SAVED_PC): Remove.
3966 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3967 (m68k_store_struct_return): Add.
3968 (m68k_deprecated_extract_return_value): Add.
3969 (m68k_deprecated_extract_struct_value_address): Add.
3970 (m68k_store_return_value): Add.
3971 (m68k_frame_chain): Add.
3972 (m68k_frameless_function_invocation): Add.
3973 (m68k_frame_saved_pc): Add.
3974 (m68k_gdbarch_init): added set_gdbarch calls for new
3975 functions and deleted macros.
3976
03c30d4d
TT
39772002-06-23 Tom Tromey <tromey@redhat.com>
3978
3979 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3980 (ALLDEPFILES): Likewise.
3981 (udiheaders): Removed.
3982 (udip2soc.o): Likewise.
3983 (udi2go32.o): Likewise.
3984 (udr.o): Likewise.
3985 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3986
37e71372
AC
39872002-06-22 Andrew Cagney <ac131313@redhat.com>
3988
06a6ac57
AC
3989 * infrun.c (_initialize_infrun): Delete unnecessary call to
3990 build_infrun.
3991
37e71372
AC
3992 * regcache.h: Update comments describing the regcache_cpy family
3993 of functions.
3994 (regcache_save, regcache_restore): Delete declaration.
3995 (regcache_save_no_passthrough): Delete declaration.
3996 (regcache_restore_no_passthrough): Delete declaration.
3997 * regcache.c (regcache_save): Delete function.
3998 (regcache_save_no_passthrough): Delete function.
3999 (regcache_restore): Delete function.
4000 (regcache_restore_no_passthrough): Delete function.
4001
78f6d055
AC
40022002-06-21 Andrew Cagney <ac131313@redhat.com>
4003
4004 * config/m68k/tm-m68k.h: Fix typo.
4005 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
4006 (m68k_frame_init_saved_regs): Declare.
4007
78b119cb
JB
40082002-06-21 Jim Blandy <jimb@redhat.com>
4009
4010 Remove some vestiges of Harris 88k support.
4011 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
4012 register numbering quirk.
4013 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
4014 odd symbols occurring in Harris 88k ELF targets.
4015
0fbb3da7
TT
40162002-06-21 Tom Tromey <tromey@redhat.com>
4017
4018 * gdb_locale.h: New file.
4019 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
4020 (defs_h): Added gdb_locale.h.
4021 * configure, config.in: Rebuilt.
4022 * configure.in (PACKAGE): Define.
4023 * defs.h: Include gdb_locale.h.
4024 * main.c (captured_main): Call setlocale, bindtextdomain,
4025 textdomain.
4026
456f8b9d
DB
40272002-06-21 Dave Brolley <brolley@redhat.com>
4028
4029 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
4030 * config/frv/frv.mt: New file.
4031 * config/frv/tm-frv.h: New file.
4032 * configure.tgt: Support frv-*-*.
4033 * Makefile.in (frv-tdep.o): New target.
4034 * frv-tdep.c: New file.
4035 * NEWS: Mention frv.
4036
cdd463f9
DB
40372002-06-21 Dave Brolley <brolley@redhat.com>
4038
4039 * MAINTAINERS: Add self to "Write After Approval" list.
4040
5d3ed2e3
GS
40412002-06-21 Grace Sainsbury <graces@redhat.com>
4042
4043 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
4044 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4045 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
4046 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
4047 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
4048
4049 * m68k-tdep.c: Include arch-utils.h
4050 (m68k_register_raw_size): Add.
4051 (m68k_register_virtual_size): Add.
4052 (m68k_register_virtual_type): Add.
4053 (m68k_register_name): Add.
4054 (m68k_stack_align): Add.
4055 (m68k_register_byte): Add.
4056 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
4057 tm-m68k.h.
4058
7f8e7424
GS
40592002-06-21 Grace Sainsbury <graces@redhat.com>
4060
a2c6a6d5 4061 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
4062 m68k_find_saved_regs.
4063 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 4064 references to it with frame->saved_regs.
7f8e7424
GS
4065 (m68k_gdbarch_init): Added function calls to initialize the
4066 gdbarch structure.
a2c6a6d5
GS
4067 (m68k_fix_call_dummy): Add.
4068 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
4069 (CALL_DUMMY): Remove.
4070 (CALL_DUMMY_LENGTH): Remove.
4071 (CALL_DUMMY_START_OFFSET): Remove.
4072 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4073 (FIX_CALL_DUMMY): Remove.
4074 (PUSH_DUMMY_FRAME): Remove.
4075 (POP_FRAME): Remove.
7f8e7424 4076
f461f5cf
PM
40772002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
4078
4079 * parse.c (parse_fprintf): New function used to avoid calls to
4080 fprintf in bison parser generated debug code.
4081 * parser-defs.h: Declaration of new parse_fprintf function.
4082 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
4083 Set YYDEBUG to 1 by default.
4084 Set YYFPRINTF as parse_fprintf.
4085
7f0c12ed
ML
40862002-06-21 Michal Ludvig <mludvig@suse.cz>
4087
4088 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
4089 encoding anymore.
4090 (pointer_encoding, enum ptr_encoding): New.
4091 (execute_cfa_program): Take care about pointer encoding.
4092 (dwarf2_build_frame_info): Only call parse_frame_info for
4093 .debug_frame and .eh_frame.
4094 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
4095 fixed augmentation handling, added relative addressing,
4096 ignore duplicate FDEs. Added comments.
19d833a2 4097 * dwarf2cfi.c: Reindented.
7f0c12ed 4098
87c4a039
EZ
40992002-06-20 Elena Zannoni <ezannoni@redhat.com>
4100
4101 * event-top.c (command_handler): Don't use space_at_cmd_start
4102 unless there is sbrk() on the host. Assign time and space data
4103 to union fields of the appropriate length.
4104
1cf877ad
ML
41052002-06-20 Michal Ludvig <mludvig@suse.cz>
4106
4107 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
4108 x86_64_register_name. Return type changed to 'const char *'.
4109 (x86_64_register_name2nr): Rename to x86_64_register_number.
4110 (x86_64_gdbarch_init): Update to reflect the change.
4111 * x86-64-tdep.h: Ditto.
4112 * x86-64-linux-nat.c (x86_64_fxsave_offset)
4113 (supply_fpregset): Ditto.
4114
3fadccb3
AC
41152002-06-19 Andrew Cagney <cagney@redhat.com>
4116
4117 * regcache.h: Update copyright.
4118 (struct regcache, struct gdbarch): Add opaque declarations.
4119 (current_regcache): Declare global variable.
4120 (regcache_read, regcache_write): Add gdbarch parameter.
4121 (regcache_save, regcache_save_no_passthrough)
4122 (regcache_restore, regcache_restore_no_passthrough)
4123 (regcache_dup, regcache_dup_no_passthrough)
4124 (regcache_cpy, regcache_cpy_no_passthrough)
4125 (deprecated_grub_regcache_for_registers)
4126 (deprecated_grub_regcache_for_register_valid)
4127 (regcache_valid_p): Add function declarations.
4128
4129 * regcache.c: Update copyright.
4130 (regcache_descr_handle): New global variable.
4131 (struct regcache_descr): Define.
4132 (init_legacy_regcache_descr, init_regcache_descr): New functions.
4133 (regcache_descr, xfree_regcache_descr): New functions.
4134 (struct regcache): Define.
4135 (regcache_xmalloc, regcache_xfree): New functions.
4136 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
4137 (regcache_dup, regcache_dup_no_passthrough): New functions.
4138 (regcache_valid_p, regcache_read_as_address): New functions.
4139 (deprecated_grub_regcache_for_registers): New function.
4140 (deprecated_grub_regcache_for_register_valid): New function.
4141 (current_regcache): New global variable.
4142 (register_buffer): Add regcache parameter. Update calls.
4143 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
4144 (read_register_gen, write_register_gen): Update register_buffer
4145 call. Test for legacy_p instead of gdbarch_register_read_p or
4146 gdbarch_register_write_p.
4147 (regcache_collect): Update register_buffer call.
4148 (build_regcache): Rewrite. Use deprecated grub functions.
4149 (regcache_save, regcache_save_no_passthrough): New functions.
4150 (regcache_restore, regcache_restore_no_passthrough): New
4151 functions.
4152 (_initialize_regcache): Create the regcache_data_handle. Swap
4153 current_regcache global variable.
4154
4155 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
4156 parameter to regcache_read and regcache_write calls.
4157 (sh4_register_read): Ditto.
4158 (sh64_pseudo_register_read): Ditto.
4159 (sh64_register_read): Ditto.
4160 (sh_pseudo_register_write): Ditto.
4161 (sh4_register_write): Ditto.
4162 (sh64_pseudo_register_write): Ditto.
4163 (sh64_register_write): Ditto.
4164
4165 * defs.h (XCALLOC): Define.
4166
152d9db6
GS
41672002-06-19 Grace Sainsbury <graces@redhat.com>
4168
4169 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
4170 * m68k-tdep.c (m68k_gdbarch_init): Added.
4171 (m68k_dump_tdep): Added.
4172
170911c7
DJ
41732002-06-19 Daniel Jacobowitz <drow@mvista.com>
4174
4175 * ada-lang.c (fill_in_ada_prototype): Update comment.
4176
2e4ebe70
DJ
41772002-06-19 Daniel Jacobowitz <drow@mvista.com>
4178
4179 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
4180 MIPS_ABI_LAST.
4181 (mips_abi_string, mips_abi_strings): New.
4182 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
4183 (mips_gdbarch_init): Set tdep->found_abi. Don't set
4184 tdep->mips_abi_string. Honor mips_abi_string. Default to
4185 O32 if no ABI is found.
4186 (mips_dump_tdep): Use mips_abi_strings.
4187 (mips_abi_update): New function.
4188 (_initialize_mips_tdep): Initialize mips_abi_string. Add
4189 ``set mips abi'' and ``show mips abi''. Check the size of
4190 mips_abi_strings.
4191
16775908
AC
41922002-06-19 Andrew Cagney <cagney@redhat.com>
4193
4194 * i386-linux-tdep.c (i386_linux_register_name): Make return type
4195 constant.
4196
5051bfa4 41972002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 4198
5051bfa4
JB
4199 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
4200 current frame using only the first stack size adjustment. All
4201 subsequent size adjustments are not considered to be part of
4202 the "static" part of the current frame.
4203 Compute the address of the saved registers relative to the
4204 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
4205 in use in this frame.
4206
56468235
DH
42072002-06-18 Don Howard <dhoward@redhat.com>
4208
4209 * valops.c (value_ind): Use value_at_lazy() when dereferencing
4210 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
4211 suggesting this solution.
4212
0b624158
AC
42132002-06-18 Andrew Cagney <ac131313@redhat.com>
4214
4215 * config/romp/xm-rtbsd.h: Delete file.
4216 * config/romp/rtbsd.mh: Delete file.
4217
221ea385
KS
42182002-06-18 Keith Seitz <keiths@redhat.com>
4219
4220 * breakpoint.c (condition_command): Post breakpoint_modify
4221 when a condition is added to an existing breakpoint.
4222 (commands_command): Likewise for commands.
4223 (set_ignore_count): Likewise for ignore counts.
4224 If no tty, do not simply return, still need to send event
4225 notification.
4226 (ignore_command): Only print a newline if the command came
4227 from a tty.
4228 Don't call breakpoints_changed, since this is now properly
4229 handled by set_ignore_count.
4230
5402eed1
AC
42312002-06-18 Andrew Cagney <cagney@redhat.com>
4232
4233 * MAINTAINERS: Note that cris-elf target can be compiled with
4234 -Werror.
4235 * cris-tdep.c (cris_register_name): Make return type constant.
4236 (cris_breakpoint_from_pc): Ditto.
4237
cc22880b
ML
42382002-06-18 Michal Ludvig <mludvig@suse.cz>
4239
4240 * frame.h (struct frame_info): Change type of context to
4241 'struct context'.
4242
fa88f677
AC
42432002-06-17 Andrew Cagney <cagney@redhat.com>
4244
4245 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
4246 pointer.
4247 * gdbarch.h, gdbarch.c: Regenerate.
4248 * config/mips/tm-mips.h (mips_register_name): Update.
4249 * i386-tdep.h (i386_register_name): Update.
4250 * mips-tdep.c (mips_register_name): Update
4251 * alpha-tdep.c (alpha_register_name): Update.
4252 * arch-utils.c (legacy_register_name): Update.
4253 * arch-utils.h (legacy_register_name): Update.
4254 * avr-tdep.c (avr_register_name): Update.
4255 * ia64-tdep.c (ia64_register_name): Update.
4256 * i386-tdep.c (i386_register_name): Update.
4257 * sparc-tdep.c (sparc32_register_name): Update.
4258 (sparc64_register_name): Update.
4259 (sparclite_register_name): Update.
4260 (sparclet_register_name): Update.
4261 * sh-tdep.c (sh_generic_register_name): Update.
4262 (sh_sh_register_name): Update.
4263 (sh_sh3_register_name): Update.
4264 (sh_sh3e_register_name): Update.
4265 (sh_sh_dsp_register_name): Update.
4266 (sh_sh3_dsp_register_name): Update.
4267 (sh_sh4_register_name): Update.
4268 (sh_sh64_register_name): Update.
4269 * s390-tdep.c (s390_register_name): Update.
4270 * rs6000-tdep.c (rs6000_register_name): Update.
4271 * ns32k-tdep.c (ns32k_register_name_32082): Update.
4272 (ns32k_register_name_32382): Update.
4273 * d10v-tdep.c (d10v_ts2_register_name): Update.
4274 (d10v_ts3_register_name): Update.
4275 * xstormy16-tdep.c (xstormy16_register_name): Update.
4276 * vax-tdep.c (vax_register_name): Update.
4277 * v850-tdep.c (v850_register_name): Update.
4278 * m68hc11-tdep.c (m68hc11_register_name): Update.
4279 * mn10300-tdep.c (mn10300_generic_register_name): Update.
4280 (am33_register_name): Update.
4281
ea1e7ef6
GS
42822002-06-17 Grace Sainsbury <graces@redhat.com>
4283
4284 * m68k-tdep.c: Reindented.
4285
9b02dd1b
AC
42862002-06-17 Andrew Cagney <ac131313@redhat.com>
4287
4288 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
4289 list of predefined types.
4290
8758dec1
MK
42912002-06-16 Mark Kettenis <kettenis@gnu.org>
4292
b6197528
MK
4293 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
4294 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4295 REGISTER_CONVERT_TO_RAW): Remove defines.
4296 (i386_register_virtual_type, i386_register_convertible,
4297 i386_register_convert_to_virtual, i386_register_convert_to_raw):
4298 Remove prototypes.
4299 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4300 macros mentioned above.
4301
82b47e62
MK
4302 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
4303 (i386lynx_saved_pc_after_call): Remove prototype.
4304 * i386ly-tdep.c: Include "i386-tdep.h".
4305 (i386lynx_saved_pc_after_call): Make static. Use
4306 read_memory_nobpt instead of read_memory. Use
4307 read_memory_unsigned_integer instead of read_memory_integer.
4308 (i386lynx_init_abi): New function.
4309 (i386lynx_coff_osabi_sniffer): New function.
4310 (_initialize_i386bsd_tdep): New function.
4311
8758dec1
MK
4312 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
4313 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
4314 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
4315 (i386_fix_call_dummy): Remove prototype.
4316 * i386-tdep.c (i386_call_dummy_words): New variable.
4317 (i386_gdbarch_init): Adjust for removal of the
4318 macros mentioned above.
4319
e9e68a56
AC
43202002-06-15 Andrew Cagney <ac131313@redhat.com>
4321
4322 * command.h (add_setshow_auto_boolean_cmd): Replace
4323 add_set_auto_boolean_cmd.
4324 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
4325 add_set_auto_boolean_cmd.
4326 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
4327 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
4328 mask-address'' command.
4329 (show_mask_address): Add cmd parameter.
4330 * remote.c (add_packet_config_cmd): Update. Change type of
4331 set_func and show_func to cmd_sfunc_ftype.
4332 (_initialize_remote): Update `set remote Z-packet'
4333 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
4334 (show_remote_protocol_e_packet_cmd): Ditto.
4335 (show_remote_protocol_E_packet_cmd): Ditto.
4336 (show_remote_protocol_P_packet_cmd): Ditto.
4337 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
4338 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
4339 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
4340 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
4341 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
4342 (show_remote_protocol_Z_packet_cmd): Ditto.
4343 (show_remote_protocol_binary_download_cmd): Ditto.
4344 (show_remote_cmd): Pass NULL to all of above.
4345
fc08ec52
MK
43462002-06-15 Mark Kettenis <kettenis@gnu.org>
4347
4348 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
4349 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
4350 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
4351 POP_FRAME): Remove defines.
4352 (i386_push_arguments, i386_store_struct_return,
4353 i386_extract_return_value, i386_store_return_value,
4354 i386_extract_struct_value_address, i386_push_dummy_frame,
4355 i386_pop_frame): Renove prototypes.
4356 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4357 macros mentioned above.
4358
e707bbc2
AC
43592002-06-15 Andrew Cagney <ac131313@redhat.com>
4360
4361 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
4362 add_set_boolean_cmd.
4363 (add_setshow_cmd): New function.
4364 * command.h (add_setshow_boolean_cmd): Replace
4365 add_set_boolean_cmd.
4366 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
4367 and ``set rdiromatzero''.
4368 * maint.c (_initialize_maint_cmds): Update commented out code.
4369 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
4370 * target.c (initialize_targets): Update `set
4371 trust-readonly-sections'.
4372 * remote.c (_initialize_remote): Update `set remotebreak'.
4373
42fdc8df
MK
43742002-06-15 Mark Kettenis <kettenis@gnu.org>
4375
93924b6b
MK
4376 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
4377 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
4378 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
4379 fit into multi-arch framework.
4380 (i386_breakpoint_from_pc): New function.
4381 (i386_gdbarch_init): Adjust for removal of the macros mentioned
4382 above.
4383
42fdc8df
MK
4384 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
4385 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
4386 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
4387 (i386_frameless_function_invocation, i386_frame_num_args,
4388 i386_frame_init_saved_regs): Remove prototypes.
4389 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
4390 macros mentioned above.
4391
9773a94b
AC
43922002-06-15 Andrew Cagney <ac131313@redhat.com>
4393
4394 * cli/cli-decode.c (set_cmd_cfunc): Update.
4395 (set_cmd_sfunc): Update.
4396 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
4397 (set_cmd_sfunc, set_cmd_cfunc): Update.
4398 * cli/cli-decode.h: Update.
4399
6e157172
MK
44002002-06-15 Mark Kettenis <kettenis@gnu.org>
4401
4402 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
4403 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
4404
7f19b9a2
AC
44052002-06-15 Andrew Cagney <ac131313@redhat.com>
4406
4407 * defs.h (auto_boolean): Declare enum.
4408 * command.h (cmd_auto_boolean): Delete enum.
4409 * mips-tdep.c (mask_address_var): Update.
4410 (mips_mask_address_p): Update.
4411 (show_mask_address): Update.
4412 * remote.c (struct packet_config): Update.
4413 (update_packet_config): Update.
4414 (show_packet_config_cmd): Update.
4415 (packet_ok): Update.
4416 (add_packet_config_cmd): Update.
4417 (_initialize_remote):
4418 * command.h: Update.
4419 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4420 (do_setshow_command): Update.
4421 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4422 * cli/cli-decode.h: Update.
4423
1cf88de5
MK
44242002-06-15 Mark Kettenis <kettenis@gnu.org>
4425
22ba8cf2
MK
4426 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4427 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4428 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4429 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4430 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4431 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4432
762c5349
MK
4433 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4434 list of DJGPP COFF targets.
4435
091198bb
MK
4436 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4437 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4438 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4439 (FP0_REGNUM): Remove define.
4440 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4441 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4442 (i386_register_virtual_size): Remove protoype.
4443 * i386-tdep.c (i386_register_virtual_size): Removed.
4444 (i386_extract_return_value, i386_store_return_value): Use
4445 FP0_REGNUM instead of NUM_FREGS to determine whether the
4446 floating-point registers are available.
4447 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4448 Adjust for removal of macros mentioned above.
4449
44502002-06-15 Mark Kettenis <kettenis@gnu.org>
4451
fcc9bf01
MK
4452 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4453 comments.
4454 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4455 Remove prototypes.
4456 (supply_gregset, fill_gregset): Remove use of register keyword and
4457 remove declaration for regmap. Use I386_NUM_GREGS instead of
4458 NUM_REGS and NUM_FREGS.
4459 (FPREGSET_FSAVE_OFFSET): Remove.
4460 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4461 NUM_FREGS to determine whether the floating-point registers are
4462 available.
4463
65e78234
MK
4464 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4465 gnu_store_registers): Replace usage of NUM_GREGS with
4466 I386_NUM_GREGS.
4467
98df6387
MK
4468 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4469 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4470 usage of NUM_GREGS with I386_NUM_GREGS.
4471
099a9414
MK
4472 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4473
57976e88
MK
4474 * i386bsd-nat.c: Include "i386-tdep.h".
4475 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4476 I386_NUM_GREGS.
4477
b335f4a6
MK
4478 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4479 and associated comment. They no longer make any sense, since we
4480 don't use this file anymore on Linux.
4481
1cf88de5
MK
4482 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4483 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4484 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4485 elements in these arrays.
4486 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4487 MAX_NUM_REGS.
4488
daa66587
MK
44892002-06-15 Mark Kettenis <kettenis@gnu.org>
4490
4491 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4492 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4493
26e9b323
AC
44942002-06-14 Andrew Cagney <cagney@redhat.com>
4495
4496 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4497 EXTRACT_RETURN_VALUE.
4498 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4499 EXTRACT_STRUCT_VALUE_ADDRESS.
4500 * gdbarch.h, gdbarch.c: Regenerate.
4501
4502 * values.c (value_being_returned): Handle
4503 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4504 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4505
4506 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4507 * arm-tdep.c (arm_gdbarch_init): Update.
4508 * avr-tdep.c (avr_gdbarch_init): Update.
4509 * cris-tdep.c (cris_gdbarch_init): Update.
4510 * d10v-tdep.c (d10v_gdbarch_init): Update.
4511 * ia64-tdep.c (ia64_gdbarch_init): Update.
4512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4513 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4514 * s390-tdep.c (s390_gdbarch_init): Update.
4515 * sh-tdep.c (sh_gdbarch_init): Update.
4516 * s390-tdep.c (s390_gdbarch_init): Update.
4517 * sparc-tdep.c (sparc_gdbarch_init): Update.
4518 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4519 * v850-tdep.c (v850_gdbarch_init): Update.
4520 * vax-tdep.c (vax_gdbarch_init): Update.
4521 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4523
4524 * config/arc/tm-arc.h: Update.
4525 * config/d30v/tm-d30v.h: Update.
4526 * config/fr30/tm-fr30.h: Update.
4527 * config/h8300/tm-h8300.h: Update.
4528 * config/h8500/tm-h8500.h: Update.
4529 * config/i386/tm-i386.h: Update.
4530 * config/i386/tm-ptx.h: Update.
4531 * config/i386/tm-symmetry.h: Update.
4532 * config/i960/tm-i960.h: Update.
4533 * config/m32r/tm-m32r.h: Update.
4534 * config/m68k/tm-delta68.h: Update.
4535 * config/m68k/tm-linux.h: Update.
4536 * config/m68k/tm-m68k.h: Update.
4537 * config/m88k/tm-m88k.h: Update.
4538 * config/mcore/tm-mcore.h: Update.
4539 * config/mips/tm-mips.h: Update.
4540 * config/mn10200/tm-mn10200.h: Update.
4541 * config/pa/tm-hppa.h: Update.
4542 * config/pa/tm-hppa64.h: Update.
4543 * config/sparc/tm-sp64.h: Update.
4544 * config/sparc/tm-sparc.h: Update.
4545 * config/sparc/tm-sparclet.h: Update.
4546 * config/z8k/tm-z8k.h: Update.
4547
5179e78f
AC
45482002-06-14 Andrew Cagney <cagney@redhat.com>
4549
4550 * Makefile.in (i386_linux_tdep_h): Define.
4551 (i386_tdep_h, i387_tdep_h): Define.
4552 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4553 $(i386_tdep_h) and $(i387_tdep_h).
4554 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4555
8201327c
MK
45562002-06-14 Mark Kettenis <kettenis@gnu.org>
4557
edf393ac
MK
4558 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4559 Already covered by the default.
4560
896fb97d
MK
4561 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4562 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4563 (i386_gdbarch_init): Initialize long_double_format and long_double
4564 bit.
4565
8201327c
MK
4566 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4567 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4568 Move these to ...
4569 * config/i386/i386sol2.mh: ... here.
4570 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4571 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4572 (SIGCONTEXT_PC_OFFSET): Remove define.
4573 (IN_SIGTRAMP): Remove define.
4574 * i386-sol2-tdep.c: New file.
4575
4576 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4577 * config/i386/tm-i386nw.h: Removed.
4578
4579 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4580 USE_STRUCT_CONVENTION): Remove defines.
4581 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4582 (get_longjmp_target): Remove prototype.
4583 (IN_SIGTRAMP): Remove define.
4584 (i386bsd_in_sigtramp): Remove prototype.
4585 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4586 function. Update comment accordingly
4587 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4588 (FRAME_SAVED_PC): Remove define.
4589 (i386bsd_frame_saved_pc): Remove prototype.
4590 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4591 GET_LONGJMP_TARGET): Remove defines.
4592 (get_longjmp_target): Remove prototype.
4593 (IN_SIGTRAMP): Remove define.
4594 (i386bsd_in_sigtramp): Remove prototype.
4595 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4596 function. Update comment accordingly
4597 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4598 (FRAME_SAVED_PC): Remove define.
4599 (i386bsd_frame_saved_pc): Remove prototype.
4600 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4601 Remove prototype.
4602 (USE_STRUCT_CONVENTION): Remove prototype.
4603 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4604 declaration.
4605 (_initialize_i386bsd_nat): Revise logic to determine some
4606 constants at compile time when compiling a native GDB. Warn if
4607 things don't match up with what we expect.
4608 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4609 Remove variables.
4610 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4611 to use date stored in `struct gdbarch_tdep'.
4612 (i386bsd_sigcontext_offset): Remove varaible.
4613 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4614 stored in `struct gdbarch_tdep'.
4615 (i386bsd_frame_saved_pc): Make static.
4616 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4617 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4618 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4619 i386fbsd4_sc_pc_offset): New variables.
4620 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4621 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4622 functions.
4623 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4624 functions.
4625 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4626 Modify the value of i386fbsd_sigtramp_start and
4627 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4628 i386fbsd_sigtramp_end.
4629 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4630 function.
4631
4632 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4633 define to i386-linux-tdep.h.
4634 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4635 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4636 defines.
4637 (i386_linux_register_name, i386_linux_register_byte,
4638 i386_linux_register_raw_size): Remove prototypes.
4639 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4640 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4641 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4642 TARGET_WRITE_PC): Remove defines.
4643 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4644 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4645 i386_linux_write_pc): Remove prototypes.
4646 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4647 (get_longjmp_target): Remove prototype.
4648 * i386-linux-tdep.h: New file.
4649 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4650 * i386-linux-tdep.c: Include "i386-tdep.h" and
4651 "i386-linux-tdep.h".
4652 (i386_linux_register_name, i386_linux_register_byte,
4653 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4654 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4655 Make static.
4656 (i386_linux_init_abi): New function.
4657 (_initialize_i386_linux_tdep): New function.
4658
4659 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4660 (i386_saved_pc_after_call): Remove prototype.
4661 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4662 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4663 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4664 (i386_register_name, i386_stab_reg_to_regnum,
4665 i386_dwarf_reg_to_regnum): Remove prototypes.
4666 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4667 SIZEOF_SSE_REGS): Remove defines.
4668 (REGISTER_BYTES): Remove define.
4669 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4670 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4671 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4672 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4673 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4674 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4675 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4676 (get_longjmp_target): Remove prototype.
4677 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4678 (sigtramp_saved_pc): Remove define.
4679 (i386v4_sigtramp_saved_pc): Remove prototype.
4680 * config/i386/tm-go32.h (FRAME_CHAIN,
4681 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4682 (i386go32_frame_saved_pc): Remove prototype.
4683 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4684 (get_longjmp_target): Remove prototype.
4685 * i386-tdep.h: Include "osabi.h".
4686 (enum i386_abi): Removed.
4687 (enum struct_return): New enum.
4688 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4689 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4690 sc_pc_offset members.
4691 (i386_gdbarch_register_os_abi): Remove prototype.
4692 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4693 I386_SSE_NUM_REGS): New defines.
4694 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4695 I386_SSE_SIZEOF_REGS): New defines.
4696 (i386_register_name, i386_register_byte, i386_register_raw_size):
4697 New prototypes.
4698 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4699 (i386bsd_sigtramp_saved_pc): New prototype.
4700 * i386-tdep.c: Don't include "elf-bfd.h".
4701 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4702 i386_frame_chain, i386_saved_pc_after_call): Make static.
4703 (i386_frame_saved_pc): Rewrite to call architecture dependent
4704 function to deal with signal handlers. Make static.
4705 (i386go32_frame_saved_pc): Removed.
4706 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4707 Removed.
4708 (i386_get_longjmp_target): New function.
4709 (default_struct_convention, pcc_struct_convention,
4710 reg_struct_convention, valid_conventions, struct_convention): New
4711 variables.
4712 (i386_use_struct_convention): New function.
4713 (i386v4_sigtramp_saved_pc): Renamed to
4714 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4715 (i386_pc_in_sigtramp): New function.
4716 (i386_abi_names): Removed.
4717 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4718 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4719 Removed.
4720 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4721 i386_gdbarch_register_os_abi): Removed.
4722 (struct i386_abi_handler): Removed.
4723 (i386_abi_handler_list): Removed.
4724 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4725 functions.
4726 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4727 i386_nw_init_abi): New functions.
4728 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4729 Use set_gdbarch_xxx() calls instead of relying on macros for a
4730 number of calls.
4731 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4732 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4733 Register the various architecture variants defined in this file.
4734
ad2f7632
DJ
47352002-06-14 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4738 (struct main_type): Remove arg_types member. Update comments for
4739 struct field.
4740 (TYPE_ARG_TYPES): Remove.
4741 (TYPE_FN_FIELD_ARGS): Update.
4742 (smash_to_method_type): Update prototype.
4743
4744 * c-typeprint.c (cp_type_print_method_args): Take method type
4745 instead of argument list. Use new argument layout. Simplify.
4746 (c_type_print_args): Use new argument layout. Simplify.
4747 (c_type_print_base): Update call to cp_type_print_method_args.
4748 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4749 argument; use die->type instead. Update call to
4750 smash_to_method_type.
4751 (read_structure_scope): Update call to dwarf2_add_member_fn.
4752 * gdbtypes.c (allocate_stub_method): Update comment.
4753 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4754 Use new argument layout.
4755 (check_stub_method): Use new argument layout. Don't count
4756 void as an argument.
4757 (print_arg_types): Update comments. Use new argument layout.
4758 (recursive_dump_type): Don't print arg_types member.
4759 * hpread.c (hpread_read_struct_type): Use new argument layout.
4760 (fixup_class_method_type): Likewise.
4761 (hpread_type_lookup): Likewise.
4762 * stabsread.c (read_type): Update calls to read_args and
4763 smash_to_method_type.
4764 (read_args): Use new argument layout. Simplify.
4765 * valops.c (typecmp): Use new argument layout. Update parameters
4766 and comments. Simplify.
4767 (hand_function_call): Use new argument layout.
4768 (search_struct_method): Update call to typecmp.
4769 (find_overload_match): Use new argument layout.
4770
6da02953
DJ
47712002-06-13 Daniel Jacobowitz <drow@mvista.com>
4772
4773 * NEWS: Mention multithreaded debug support for gdbserver.
4774
519b2366
DJ
47752002-06-13 Daniel Jacobowitz <drow@mvista.com>
4776
4777 * MAINTAINERS: Mention NEWS.
4778
6c0d6680
DJ
47792002-06-13 Daniel Jacobowitz <drow@mvista.com>
4780
4781 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4782 (struct mips_objfile_private, compare_pdr_entries): New.
4783 (non_heuristic_proc_desc): Read the ".pdr" section if it
4784 is present.
4785
6529d2dd
AC
47862002-06-12 Andrew Cagney <ac131313@redhat.com>
4787
4788 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4789 (arm_debug): New static variable.
4790 (_initialize_arm_tdep): Add ``set debug arm'' command.
4791
26216b98
AC
47922002-06-12 Andrew Cagney <ac131313@redhat.com>
4793
4794 * Makefile.in (sim_arm_h): Define.
4795 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4796 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4797 (arm_register_sim_regno): New function, map an internal REGNUM
4798 onto a simulator register number.
4799 (arm_gdbarch_init): Set register_sim_regno.
4800
814b3ba0
AH
48012002-06-09 Aldy Hernandez <aldyh@redhat.com>
4802
4803 * MAINTAINERS: Add self.
4804
475b0867
JB
48052002-06-11 Jim Blandy <jimb@redhat.com>
4806
919d772c
JB
4807 * source.c (source_info): Mention whether the symtab has
4808 information about preprocessor macros.
4809
475b0867
JB
4810 Call the command `info macro', not `show macro'.
4811 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4812 Fix error message.
4813 (_initialize_macrocmd): Register `info_macro_command' in
4814 `infolist', not `showlist'.
4815
9e364162
DJ
48162002-06-11 Daniel Jacobowitz <drow@mvista.com>
4817
4818 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4819 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4820 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4821 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4822 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4823 unconditionally.
4824 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4825 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4826 (_initialize_mips_tdep): Remove dead code.
4827 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4828 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4829 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4830 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4831 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4832 MIPS_LAST_FP_ARG_REGNUM): Remove.
4833
23aa4c72
ML
48342002-06-11 Michal Ludvig <mludvig@suse.cz>
4835
4836 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4837 (unwind_tmp_obstack_free, parse_frame_info)
4838 (update_context, cfi_read_fp, cfi_write_fp)
4839 (cfi_frame_chain, cfi_init_extra_frame_info)
4840 (cfi_virtual_frame_pointer): Use the above function.
264d1763 4841 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 4842
70eb15a4
CV
48432002-06-11 Corinna Vinschen <vinschen@redhat.com>
4844
4845 * v850-tdep.c (v850_type_is_scalar): New function.
4846 (v850_use_struct_convention): Match current gcc implementation
4847 as close as possible.
4848 (v850_push_arguments): Fix stack_offset handling. Don't write
4849 struct_addr into register. This is done by v850_store_struct_return.
4850 (v850_extract_return_value): Care for structs.
4851 (v850_store_return_value): Ditto.
4852 (v850_store_struct_return): Actually write address.
4853
482a4d06
ML
48542002-06-11 Michal Ludvig <mludvig@suse.cz>
4855
4856 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4857 without debug information too.
4858
d855c300
AC
48592002-06-10 Andrew Cagney <ac131313@redhat.com>
4860
4861 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4862 Make multi-arch pure.
4863 * gdbarch.h, gdbarch.c: Re-generate.
4864 * arm-tdep.c (arm_print_float_info): Update.
4865 * arch-utils.h (default_print_float_info): Update.
4866 * arch-utils.c (default_print_float_info): Update.
4867 * infcmd.c (float_info): Update call.
4868
dd12a101
AC
48692002-06-10 Andrew Cagney <ac131313@redhat.com>
4870
4871 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4872 the front of the initialize list.
4873
101dcfbe
AC
48742002-06-10 Andrew Cagney <ac131313@redhat.com>
4875
4876 * infrun.c (struct inferior_status): Replace fields
4877 selected_frame_address and selected_level with field
4878 selected_frame_id.
4879 (save_inferior_status): Update. Use get_frame_id.
4880 (struct restore_selected_frame_args): Delete.
4881 (restore_selected_frame): Update. Use frame_find_by_id.
4882 (restore_inferior_status): Update.
4883
4884 * breakpoint.h (struct breakpoint): Change type of
4885 watchpoint_frame to frame_id.
4886 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4887 call to get_current_frame.
4888 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4889 get_current_frame.
4890 (watchpoint_check): Use frame_find_by_id.
4891
4892 * frame.h (record_selected_frame): Delete declaration.
4893 * stack.c (record_selected_frame): Delete function.
4894
4895 * frame.h (struct frame_id): Define.
4896 (get_frame_id): Declare.
4897 (frame_find_by_id): Declare.
4898 * frame.c (frame_find_by_id): New function.
4899 (get_frame_id): New function.
4900
304270b6
AV
49012002-06-10 Andrey Volkov <avolkov@transas.com>
4902
4903 * ser-e7kpc.c: Fix duplicated define and call of
4904 _initialize_ser_e7000pc
4905
2f2cf184
DJ
49062002-06-09 Daniel Jacobowitz <drow@mvista.com>
4907
4908 * signals/signals.c (target_signal_from_host): Fix #ifdef
4909 SIGRTMIN case.
4910 (do_target_signal_to_host): Likewise.
4911
caaa3122
DJ
49122002-06-09 Daniel Jacobowitz <drow@mvista.com>
4913
4914 * mips-tdep.c (mips_find_abi_section): New function.
4915 (mips_gdbarch_init): Call it.
4916
6ac5df3a
MK
49172002-06-09 Mark Kettenis <kettenis@gnu.org>
4918
4919 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4920 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4921 after Andrew's 2002-06-08 gdbarch change.
4922
82ea117a
MK
49232002-06-09 Mark Kettenis <kettenis@gnu.org>
4924
4925 * i386-linux-nat.c (suppy_gregset): Don't supply
4926 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4927 register cache.
4928 (fill_gregset): Don't fetch it under the same circumstances.
4929
3c25f8c7
AC
49302002-06-09 Andrew Cagney <cagney@redhat.com>
4931
4932 * Makefile.in (callback_h): Define.
4933 (remote_sim_h): Update path to remote-sim.h.
4934 (remote-rdp.o): Add $(callback_h).
4935 (remote-sim.o): Use $(callback_h).
4936 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4937 * remote-rdp.c: Include "gdb/callback.h".
4938
1029b7fa
MK
49392002-06-09 Mark Kettenis <kettenis@gnu.org>
4940
4941 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4942 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4943
616675d3
AC
49442002-06-08 Andrew Cagney <ac131313@redhat.com>
4945
a3efda28
AC
4946 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4947 * rdi-share/serpardr.c: Ditto.
4948 * rdi-share/unixcomm.c: Ditto.
4949 * rdi-share/serdrv.c: Ditto.
4950 * rdi-share/hostchan.h: Ditto.
4951 * rdi-share/hostchan.c: Ditto.
4952 * rdi-share/host.h: Ditto.
4953 * rdi-share/devsw.c: Ditto.
4954
c5f10366
AC
4955 * objfiles.h: Change type of obj_private to void pointer.
4956 * pa64solib.c: Update copyright. Don't include "assert.h", use
4957 strcmp instead of STREQ, use LONGEST, do not use PTR
4958 * somsolib.c: Ditto.
4959
616675d3
AC
4960 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4961 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4962 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4963
e4b415d9
AC
49642002-06-08 Andrew Cagney <ac131313@redhat.com>
4965
4966 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4967 (default_get_saved_register): Delete function.
4968 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4969 generic_unwind_get_saved_register.
4970 * gdbarch.h, gdbarch.c: Re-generate.
4971
ca0d0b52
AC
49722002-06-08 Andrew Cagney <ac131313@redhat.com>
4973
4974 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4975 generic_func_frame_chain_valid.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * blockframe.c (generic_func_frame_chain_valid): Only check
4978 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4979 passing FP to PC_IN_CALL_DUMMY.
4980 Fix PR gdb/360.
4981
76860b5f
AC
49822002-06-08 Andrew Cagney <ac131313@redhat.com>
4983
4984 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4985 (register_gdbarch_data): Initialize init_p.
4986 (gdbarch_data): Initialize data pointer using the init function.
4987 (init_gdbarch_data): Delete function.
4988 (gdbarch_update_p): Update.
4989 (initialize_non_multiarch): Update.
4990 (struct gdbarch): Add field initialized_p.
4991 * gdbarch.h, gdbarch.c: Re-generate.
4992
8dda9770
ML
49932002-06-07 Michal Ludvig <mludvig@suse.cz>
4994
4995 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4996 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4997 better do the things actually here.
4998 * x86-64-tdep.c (x86_64_register_name2nr): New.
4999 (x86_64_register_name): Renamed to x86_64_register_nr2name.
5000 (x86_64_gdbarch_init): Respect the above change.
5001 * x86-64-tdep.h (x86_64_register_name2nr)
5002 (x86_64_register_nr2name): Add prototypes.
5003 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
5004
3d79a47c
MS
50052002-06-06 Michael Snyder <msnyder@redhat.com>
5006
7bd91a28
MS
5007 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
5008 Delete extra braces and re-indent.
5009 (d10v_store_return_value): Char return values
3d79a47c
MS
5010 must be shifted over by one byte in R0.
5011 (d10v_extract_return_value): Delete extra braces, re-indent.
5012
095a4c96
EZ
50132002-06-06 Elena Zannoni <ezannoni@redhat.com>
5014
5015 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
5016 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
5017 (d10v_integer_to_address): Rewrite.
5018 (d10v_frame_init_saved_regs): When reading fp and sp registers use
5019 the d10v specific functions which take care of converting to the
5020 correct space.
5021
e8a77ca4
EZ
50222002-06-06 Elena Zannoni <ezannoni@redhat.com>
5023
5024 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
5025 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
5026
4f2e4a4f
AC
50272002-06-02 Andrew Cagney <ac131313@redhat.com>
5028
5029 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
5030 includes.
5031 * config/tm-linux.h: Ditto.
5032 * config/alpha/tm-alphalinux.h: Ditto.
5033 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
5034 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
5035 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
5036 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
5037 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
5038 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
5039 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
5040 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
5041 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
5042 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
5043 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
5044 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
5045 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
5046 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
5047 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
5048 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
5049 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
5050 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
5051 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
5052 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
5053 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
5054 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
5055 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
5056 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
5057 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
5058 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
5059 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
5060 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
5061 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
5062 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
5063 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
5064 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
5065 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
5066 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
5067 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
5068 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
5069 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
5070
ae2ab2ce
AS
50712002-05-04 Aidan Skinner <aidan@velvet.net>
5072
5073 * ada-exp.tab.c: New file
5074 * ada-exp.y: New file
5075 * ada-lang.c: New file
5076 * ada-lang.h: New file
5077 * ada-lex.c: New file
5078 * ada-lex.l: New file
5079 * ada-tasks.c: New file
5080 * ada-typeprint.c: New file
5081 * ada-valprint.c: New file
5082
0ddd0135
JT
50832002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5084
5085 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
5086 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
5087
750fbacc
JT
50882002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
5089
5090 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
5091 insetead of ppc-linux-tdep.o.
5092 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
5093 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
5094
df94e18a
AC
50952002-06-02 Andrew Cagney <ac131313@redhat.com>
5096
5097 2002-05-07 Christian Groessler <chris@groessler.org>
5098 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
5099 bit register contents for little endian hosts.
5100
1a38ab75
AC
51012002-06-01 Andrew Cagney <ac131313@redhat.com>
5102
5103 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
5104 any maintainer.
5105
8b1632ac
AC
51062002-06-01 Andrew Cagney <ac131313@redhat.com>
5107
5108 * gdbarch.h: Regenerate.
5109
627054c8
AC
51102002-06-01 Andrew Cagney <ac131313@redhat.com>
5111
5112 * MAINTAINERS: Add everyone to write-after-approval list.
5113
4f460812
AC
51142002-06-01 Andrew Cagney <ac131313@redhat.com>
5115
5116 * stack.c (frame_info): Use frame_register_unwind instead of
5117 saved_regs. Mention when the SP is on the stack or in a register.
5118
5119 * frame.h (frame_register_unwind_ftype): Define. Document.
5120 (struct frame_info): Add field register_unwind and
5121 register_unwind_cache.
5122 (frame_register_unwind): Declare.
5123 (generic_unwind_get_saved_register): Declare.
5124
5125 * frame.c (frame_register_unwind): New function.
5126 (generic_unwind_get_saved_register): New function.
5127
5128 * blockframe.c (generic_call_dummy_register_unwind): New function.
5129 (frame_saved_regs_register_unwind): New function.
5130 (set_unwind_by_pc): New function.
5131 (create_new_frame): New function.
5132 (get_prev_frame): New function.
5133
de888f76
AC
51342002-05-30 Andrew Cagney <ac131313@redhat.com>
5135
5136 * a29k-share/: Delete directory.
5137 * remote-vx29k.c: Delete file.
5138
2f2c3626
JT
51392002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5140
5141 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
5142 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5143
9ce5c36a
JT
51442002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5145
5146 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
5147 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
5148 (sparc64nbsd-nat.o)
5149 (sparcnbsd-nat.o)
5150 (sparcnbsd-tdep.o): New dependency lists.
5151 * NEWS: Note new UltraSPARC NetBSD native configuration.
5152 * configure.host (sparc64-*-netbsd*): New host.
5153 * configure.tgt (sparc-*-netbsdelf*)
5154 (sparc-*-netbsd*): Set gdb_target to nbsd.
5155 (sparc64-*-netbsd*): New target.
5156 * sparc64nbsd-nat.c: New file.
5157 * sparcnbsd-nat.c: New file.
5158 * sparcnbsd-tdep.c: New file.
5159 * sparcnbsd-tdep.h: New file.
5160 * config/sparc/nbsd.mt: New file.
5161 * config/sparc/nbsd64.mh: New file.
5162 * config/sparc/nbsd64.mt: New file.
5163 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
5164 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5165 (HOST_IPC): Remove.
5166 * config/sparc/nbsdaout.mt: Remove.
5167 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
5168 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
5169 (HOST_IPC): Remove.
5170 * config/sparc/nbsdelf.mt: Remove.
5171 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
5172 sparc-nat.c compatiblity defines.
5173 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
5174 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
5175 * config/sparc/tm-nbsd64.h: New file.
5176 * config/sparc/tm-nbsdaout.h: Remove.
5177 * config/sparc/xm-nbsd.h: Remove.
5178
ef3cf062
JT
51792002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
5180
5181 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
5182 * sparc-tdep.c: Include osabi.h.
5183 (gdbarch_tdep): Add osabi member.
5184 (_initialize_sparc_tdep): Use gdbarch_register.
5185 (sparc_gdbarch_init): Use generic OS ABI framework.
5186 (sparc_dump_tdep): New function.
5187
ee8ff470
KB
51882002-05-30 Kevin Buettner <kevinb@redhat.com>
5189
5190 * corefile.c (do_captured_read_memory_integer): Return non-zero
5191 result.
5192 (safe_read_memory_integer): Copy result of memory read when
5193 status is non-zero. Also, add comments.
5194
7b112f9c
JT
51952002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
5196
5197 * Makefile.in (ppc_tdep_h): Define.
5198 (ppc-linux-nat.o)
5199 (ppc-linux-tdep.o)
5200 (rs6000-tdep.o): Use $(ppc_tdep_h).
5201 (ppc-sysv-tdep.o)
5202 (ppcnbsd-nat.o)
5203 (ppcnbsd-tdep.o): New dependency lists.
5204 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
5205 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
5206 (ppc_linux_init_abi): New functions.
7b112f9c
JT
5207 (ppc_sysv_abi_broken_use_struct_convention)
5208 (ppc_sysv_abi_use_struct_convention)
5209 (ppc_sysv_abi_push_arguments): Move to...
5210 * ppc-sysv-tdep.c: ...here.
5211 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
5212 * rs6000-tdep.c (process_note_abi_tag_sections)
5213 (get_elfosabi): Remove.
5214 (rs6000_gdbarch_init): Use generic OS ABI framework.
5215 (rs6000_dump_tdep): New function.
5216 (_initialize_rs6000_tdep): Use gdbarch_register.
5217 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
5218 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5219 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
5220 of ppc-linux-tdep.o.
5221 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
5222 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
5223 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
5224 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
5225 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
5226 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
5227
480dd42a
JB
52282002-05-29 Jim Blandy <jimb@redhat.com>
5229
5230 * macroscope.c (default_macro_scope): Put `void' in empty argument
5231 list.
5232
4182591f
AC
52332002-05-29 Andrew Cagney <ac131313@redhat.com>
5234
5235 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
5236 * arch-utils.c: Include "sim-regno.h".
5237 * gdbarch.sh: Don't include "sim-regno.h".
5238 * gdbarch.h, gdbarch.c: Regenerate.
5239 * sim-regno.h (legacy_register_sim_regno): Move declaration from
5240 here.
5241 * arch-utils.h (legacy_register_sim_regno): To here.
5242 * remote-sim.c (legacy_register_sim_regno): Move function from
5243 here.
5244 * arch-utils.c (legacy_register_sim_regno): To here.
5245
8238d0bf
AC
52462002-05-28 Andrew Cagney <ac131313@redhat.com>
5247
5248 * sim-regno.h: New file.
5249 * Makefile.in (sim_regno_h): Define.
5250 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
5251 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
5252 (legacy_register_sim_regno): New function.
5253 (one2one_register_sim_regno): New function.
5254 (gdbsim_fetch_register): Rewrite.
5255 (gdbsim_store_register): Only store a register when
5256 REGISTER_SIM_REGNO is valid.
5257 * d10v-tdep.c: Include "sim-regno.h".
5258 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
5259 (d10v_ts3_register_sim_regno): Ditto.
5260 * gdbarch.sh: Include "sim-regno.h".
5261 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
5262 * gdbarch.h, gdbarch.c: Regenerate.
5263 * arch-utils.h (default_register_sim_regno): Delete declaration.
5264 * arch-utils.c (default_register_sim_regno): Delete function.
5265
485721b1
JT
52662002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
5267
5268 * ppcnbsd-nat.c: Rewrite.
5269 * ppcnbsd-tdep.c: New file.
5270 * ppcnbsd-tdep.h: New file.
5271 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
5272 solib.o, and solib-svr4.o.
5273 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
5274 nbsd-tdep.o, and corelow.o.
5275
697f244d
AC
52762002-05-28 Andrew Cagney <ac131313@redhat.com>
5277
5278 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
5279 `tr' and `sed'. Mention that `broken' targets are not expected to
5280 build.
5281
f08caad1 52822002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
5283
5284 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
5285 Let PC point right after the prologue before looking up symbols.
5286
3139facc
MH
52872002-05-27 Martin M. Hunt <hunt@redhat.com>
5288
5289 * i386-tdep.c (i386_register_virtual_type): Return
5290 builtin_type_vec128i for SSE registers.
5291
5292 * gdbtypes.h (builtin_type_vec128i): Declare.
5293
5294 * gdbtypes.c (build_builtin_type_vec128i): New function.
5295 (builtin_type_v2_double, builtin_type_v4_int64): New types.
5296 (builtin_type_vec128i): New type for SSE2 128-bit registers.
5297 (build_gdbtypes): Initialize new builtin vector types.
5298 (_initialize_gdbtypes): Register new vector types with gdbarch.
5299
6e3ba3b8
JT
53002002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5301
5302 * MAINTAINERS: ns32k is not longer an obsolete candidate,
5303 since it has been multi-arch'd.
5304 * NEWS: Note that ns32k-*-* is now partial multi-arch.
5305 Move Alpha and VAX multi-arch news entries to same section
5306 as other multi-arch news.
5307
93d5585d
JT
53082002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5309
5310 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
5311 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
5312 static. Rename some register numbers to put them in ns32k-tdep
5313 private namespace.
5314 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
5315 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
5316 functions.
5317 (_initialize_ns32k_tdep): Use gdbarch_register.
5318 * ns32k-tdep.h: New file.
5319 * ns32knbsd-tdep.c: New file.
5320 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
5321 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
5322 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
5323 REGISTER_BYTES, REGISTER_BYTE): Remove.
5324 * config/ns32k/tm-ns32k.h: New file.
5325 * config/ns32k/tm-umax.h: Remove.
5326
efb2c70e
JT
53272002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5328
5329 * ns32k-tdep.c (ns32k_saved_pc_after_call,
5330 ns32k_store_struct_return, ns32k_extract_return_value,
5331 ns32k_store_return_value, ns32k_extract_struct_value_address): New
5332 functions.
5333 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
5334 ns32k_saved_pc_after_call.
5335 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
5336 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
5337 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
5338 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5339 ns32k_extract_struct_value_address.
5340
7bcc927b
JT
53412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5342
5343 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
5344 ns32k_fix_call_dummy): New.
5345 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
5346 ns32k_call_dummy_words.
5347 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
5348 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
5349 CALL_DUMMY_NARGS): Remove.
5350 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
5351
78f9d765
JT
53522002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5353
5354 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
5355 ns32k_frame_saved_pc, ns32k_frame_args_address,
5356 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
5357 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
5358 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
5359 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
5360 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
5361 (BREAKPOINT): Remove..
5362 (FRAME_CHAIN): Define as ns32k_frame_chain.
5363 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
5364 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
5365 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
5366 (FRAME_FIND_SAVED_REGS): Remove.
5367 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
5368 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
5369 (POP_FRAME): Define as ns32k_pop_frame.
5370
f2c762e0
JT
53712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5372
5373 * ns32k-tdep.c (ns32k_register_byte_32082,
5374 ns32k_register_byte_32382, ns32k_register_raw_size,
5375 ns32k_register_virtual_size, ns32k_register_virtual_type): New
5376 functions.
5377 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
5378 ns32k_register_byte_32382.
5379 * config/ns32k/tm-umax.h: Update copyright years.
5380 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
5381 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
5382 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
5383 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
5384 (ns32k_get_enter_addr): Fix prototype.
5385
af137673
JT
53862002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5387
5388 * ns32k-tdep.c: Update copyright years.
5389 (ns32k_register_name_32082): New function.
5390 (ns32k_register_name_32382): Ditto.
5391 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
5392 (REGISTER_NAME): Define as ns32k_register_name_32382.
5393 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
5394 (REGISTER_NAME): Define as ns32k_register_name_32082.
5395
a8bc7b56
JB
53962002-05-24 Jim Blandy <jimb@redhat.com>
5397
5398 * dwarf2read.c (free_line_header): Use xfree, not free.
5399
83a45910
JT
54002002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
5401
5402 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
5403 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
5404
0db71247
AC
54052002-05-23 Andrew Cagney <ac131313@redhat.com>
5406
5407 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5408
b9e5e4dd
AC
54092002-05-23 Andrew Cagney <ac131313@redhat.com>
5410
5411 From Ross Alexander at NEC Europe:
5412 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5413
de530e84
MS
54142002-05-23 Michael Snyder <msnyder@redhat.com>
5415
5416 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5417 for input, rather than parse_and_eval_address.
5418
b91b96f4
AC
54192002-05-23 Andrew Cagney <ac131313@redhat.com>
5420
5421 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5422 * Makefile.in (sim_d10v_h): Update definition.
5423
8b279e7a
AC
54242002-05-24 Andrew Cagney <cagney@redhat.com>
5425
5426 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5427 change `2002-05-22 Michael Snyder' below.
5428 (d10v_push_arguments): Ditto.
5429 (d10v_extract_return_value): Ditto.
5430
0a3d0425
JB
54312002-05-23 Jim Blandy <jimb@redhat.com>
5432
5433 * macrotab.c (check_for_redefinition): Don't complain if the new
5434 definition is the same as the previous one. Take more arguments
5435 to allow the comparison.
5436 (macro_define_object, macro_define_function): Pass more arguments
5437 to check_for_redefinition.
5438
78eac43e
MS
54392002-05-22 Michael Snyder <msnyder@redhat.com>
5440
5441 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5442 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5443 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5444 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5445 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5446 Add a temp variable to save a call (and a memory read).
5447 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5448 if possible (so that PC_IN_CALL_DUMMY will work).
5449
9bc1edb8
CV
54502002-05-22 Corinna Vinschen <vinschen@redhat.com>
5451
5452 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5453
005ef3d2
ML
54542002-05-22 Michal Ludvig <mludvig@suse.cz>
5455
5456 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5457 fde->cie_ptr.
5458 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5459 (dwarf2_build_frame_info): Add offset to fde->initial_location
5460 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
5461 (execute_stack_op): Change type of 'result' from ULONGEST to
5462 CORE_ADDR.
005ef3d2 5463
fcf4f891
JT
54642002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5465
5466 * config/alpha/tm-nbsd.h: Include solib.h.
5467
cfef91e4
JT
54682002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5469
5470 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5471 assumptions about the host's byte order.
5472
9964235a
JT
54732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5474
5475 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5476 to dependency list.
5477 * alphanbsd-tdep.c: Include solib-svr4.h.
5478 * shnbsd-tdep.c: Ditto.
5479
9eeef8ef
JT
54802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5481
5482 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5483 nbsd-tdep.h to dependency list.
5484 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5485 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5486 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5487 nbsdaout.mh and nbsdelf.mh consistently.
5488 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5489 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5490 nbsdaout.mt and nbsdelf.mh consistently.
5491 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5492 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5493 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5494 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5495 a.out shared library stuff from here...
5496 * config/nm-nbsdaout.h: ...to here.
5497 * config/tm-nbsd.h: Remove.
5498 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5499 * config/arm/nbsd.mh: Remove.
5500 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5501 nbsd-tdep.o.
5502 * config/arm/nbsdaout.mh: New file.
5503 * config/arm/nbsdelf.mh: New file.
5504 * config/arm/nm-nbsdaout.h: New file.
5505 * config/i386/nbsd.mh: Remove.
5506 * config/i386/nbsd.mt: Remove.
5507 * config/i386/nbsdaout.mh: New file.
5508 * config/i386/nbsdaout.mt: New file.
5509 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5510 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5511 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5512 i386_register_u_addr): Remove.
5513 * config/i386/nm-nbsdaout.h: New file.
5514 * config/i386/nm-nbsdelf.h: Remove.
5515 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5516 (USE_STRUCT_CONVENTION): Remove.
5517 * config/i386/tm-nbsdaout.h: New file.
5518 * config/i386/tm-nbsdelf.h: Remove.
5519 * config/m68k/nbsd.mh: Remove.
5520 * config/m68k/nbsd.mt: Remove.
5521 * config/m68k/nbsdaout.mh: New file.
5522 * config/m68k/nbsdaout.mt: New file.
5523 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5524 * config/m68k/nm-nbsdaout.h: New file.
5525 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5526 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5527 * config/ns32k/nbsd.mh: Remove.
5528 * config/ns32k/nbsd.mt: Remove.
5529 * config/ns32k/nbsdaout.mh: New file.
5530 * config/ns32k/nbsdaout.mt: New file.
5531 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5532 * config/ns32k/nm-nbsdaout.h: New file.
5533 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5534 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5535 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5536 (SVR4_SHARED_LIBS): Remove.
5537 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5538 * config/sparc/nbsd.mh: Remove.
5539 * config/sparc/nbsd.mt: Remove.
5540 * config/sparc/nbsdaout.mh: New file.
5541 * config/sparc/nbsdaout.mt: New file.
5542 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5543 * config/sparc/nbsdelf.mt: New file.
5544 * config/sparc/nm-nbsdaout.h: New file.
5545 * config/sparc/nm-nbsdelf.h: Remove.
5546 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5547 * config/sparc/tm-nbsdaout.h: New file.
5548
257ce470
JT
55492002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5550
5551 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5552 mipsnbsd-tdep.c
5553 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5554
76a6d5fe
JT
55552002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5556
5557 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5558 shnbsd-nat.c.
5559 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5560
45888261
JT
55612002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5562
5563 * NEWS: Note new MIPS NetBSD native configuration.
5564 * configure.host (mips*-*-netbsd*): New host.
5565 * configure.tgt (mips*-*-netbsd*): New target.
5566 * mipsnbsd-nat.c: New file.
5567 * mipsnbsd-tdep.c: New file.
5568 * mipsnbsd-tdep.h: New file.
5569 * config/mips/nbsd.mh: New file.
5570 * config/mips/nbsd.mt: New file.
5571 * config/mips/nm-nbsd.h: New file.
5572 * config/mips/tm-nbsd.h: New file.
5573
70f80edf
JT
55742002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5575
5576 * Makefile.in (SFILES): Add osabi.c.
5577 (COMMON_OBS): Add osabi.o.
5578 (osabi.o): New dependency list.
5579 * osabi.c: New file.
5580 * osabi.h: New file.
5581 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5582
5583 * Makefile.in (alpha_tdep_h): Define and use instead of
5584 alpha-tdep.h.
5585 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5586 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5587 Remove.
5588 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5589 * alpha-tdep.h: Include osabi.h.
5590 (alpha_abi): Remove.
5591 (gdbarch_tdep): Use generic OS ABI framework.
5592 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5593 gdbarch_register_osabi.
5594 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5595 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5596 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5597
5598 * Makefile.in (sh_tdep_h): Add osabi.h.
5599 * sh-tdep.h (sh_osabi): Remove.
5600 (gdbarch_tdep): Use generic OS ABI framework.
5601 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5602 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5603 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5604 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5605
5606 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5607 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5608 gdbarch_register_osabi.
5609 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5610 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5611 (get_elfosabi): Rename to...
5612 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5613 ABI framework support routines.
5614 (arm_gdbarch_init): Use generic OS ABI framework.
5615 (arm_dump_tdep): Likewise.
5616 (_initialize_arm_tdep): Likewise.
5617 * arm-tdep.h: Include osabi.h.
5618 (arm_abi): Remove.
5619 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5620 osabi member.
5621 (arm_gdbarch_register_os_abi): Remove prototype.
5622 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5623 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5624
5625 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5626 * mips-tdep.c: Include osabi.h.
5627 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5628 OS ABI framework.
5629
d194345b
KH
56302002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5631
5632 * h8300-tdep.c: Fix formatting.
5633
70c6b0d1
EZ
56342002-05-20 Elena Zannoni <ezannoni@redhat.com>
5635
5636 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5637 printing vector registers.
5638
165b8e33
AC
56392002-05-19 Andrew Cagney <ac131313@redhat.com>
5640
5641 From Fernando Nasser:
5642 * remote.c (remote_async_open_1): Re-throw the exception when the
5643 connection fails.
5644 (remote_cisco_open): Ditto.
5645 (remote_open_1): Ditto.
5646
36918e70
AC
56472002-05-19 Andrew Cagney <ac131313@redhat.com>
5648
5649 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5650 (remote_start_remote): Add uiout parameter. Pass through to
5651 remote_start_remote_dummy.
5652 (remote_open_1): Use catch_exception instead of catch_errors.
5653 (remote_async_open_1): Ditto.
5654 (remote_cisco_open): Ditto.
5655
ae44c0c4
AC
56562002-05-19 Andrew Cagney <ac131313@redhat.com>
5657
5658 * remote.c (remote_start_remote): Replace PTR with void pointer.
5659 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5660 static.
5661
8efe637d
AC
56622002-05-18 Andrew Cagney <ac131313@redhat.com>
5663
5664 * gdb_indent.sh: Allow the script to be run in the sim directory.
5665
2f1b5984
MK
56662002-05-18 Mark Kettenis <kettenis@gnu.org>
5667
f0f625e2
MK
5668 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5669 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5670
2f1b5984
MK
5671 * corelow.c (core_open): Only call set_gdbarch_from_file if
5672 exec_bfd is NULL.
5673
fc974602
AV
56742002-05-17 Andrey Volkov <avolkov@transas.com>
5675
5676 * h8300-tdep.c: Add support of EXR register
5677 * config/h8300/tm-h8300.h: Ditto.
5678
906709f4
AV
56792002-05-17 Andrey Volkov <avolkov@transas.com>
5680
5681 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5682
6e591d68
AV
56832002-05-17 Andrey Volkov <avolkov@transas.com>
5684
5685 * h8300-tdep.c: Change literal regnums to REGNO.
5686
84f0252a
JB
56872002-05-17 Jim Blandy <jimb@redhat.com>
5688
e0e9281e
JB
5689 * NEWS: Note addition of macro support.
5690
84f0252a
JB
5691 Expand preprocessor macros in C expressions.
5692 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5693 (scan_macro_expansion, scanning_macro_expansion,
5694 finished_macro_expansion): New function declarations.
5695 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5696 variable declarations.
5697 * parser-defs.h (expression_context_pc): New declaration.
5698 * parse.c (expression_context_pc): New variable.
5699 (parse_exp_1): Set expression_context_pc, as well as
5700 expression_context_block.
5701 * c-exp.y (yylex): If we're not already reading the result of a
5702 macro expansion, try to macro-expand the next token. When we're
5703 done scanning a macro expansion, switch back to the mainline text.
5704 Commas and `if's in a macro's expansion don't terminate the input.
5705 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5706 (macro_original_text, macro_expanded_text,
5707 expression_macro_lookup_func, expression_macro_lookup_baton): New
5708 variables.
5709 (scan_macro_expansion, scanning_macro_expansion,
5710 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5711 c_preprocess_and_parse): New functions.
5712 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5713 c_preprocess_and_parse, instead of c_parse.
5714 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5715 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5716
1c509ca8
JR
5717Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5718
5719 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5720 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5721 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5722
2250ee0c
CV
57232002-05-17 Corinna Vinschen <vinschen@redhat.com>
5724
5725 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5726
ab3b8126
JT
57272002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5728
5729 * Makefile.in (sh_tdep_h): Define and use.
5730 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5731 register enum): Move to...
5732 * * sh-tdep.h: ...here.
5733 * sh-tdep.c: Include sh-tdep.h.
5734 * sh3-rom.c: Likewise.
5735 * shnbsd-tdep.c: Likewise.
5736
ed9d4749
MS
57372002-05-16 Michael Snyder <msnyder@redhat.com>
5738
5739 * arm-tdep.c: Spelling fix in comment.
5740
2e276125
JB
57412002-05-16 Jim Blandy <jimb@redhat.com>
5742
6821892e
JB
5743 Add commands for manually expanding macros and showing their
5744 definitions.
5745 * macrocmd.c, macroscope.c, macroscope.h: New files.
5746 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5747 (macroscope_h): New variable.
5748 (HFILES_NO_SRCDIR): Add macroscope.h.
5749 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5750 (macroscope.o, macrocmd.o): New rules.
5751
2e276125
JB
5752 Teach the Dwarf 2 reader to read macro information.
5753 * dwarf2read.c: #include "macrotab.h".
5754 (dwarf_macinfo_buffer): New variable.
5755 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5756 dwarf_macinfo_size.
5757 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5758 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5759 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5760 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5761 dwarf2_macro_spaces_in_definition): New complaints.
5762 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5763 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5764 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5765 the partial symbol table.
5766 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5767 from what's recorded in the partial symbol table.
5768 (read_file_scope): If the compilation unit has a
5769 `DW_AT_macro_info' attribute, read its macro information.
5770 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5771
2f53fe6c
DJ
57722002-05-16 Daniel Jacobowitz <drow@mvista.com>
5773
5774 Fix PR gdb/546
5775 * ser-tcp.c: Don't include <netinet/udp.h>.
5776
2be99286
SC
57772002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5778
5779 * MAINTAINERS: Update my email address.
5780
c9af212b 57812002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
5782
5783 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5784 include file of the same name.
5785
bf5f1a52
CV
57862002-05-16 Corinna Vinschen <vinschen@redhat.com>
5787
5788 * configure.tgt: Mark v850 as multi-arched.
5789 * config/v850/tm-v850.h: Remove file.
5790 * config/v850/v850.mt: Eliminate TM_FILE.
5791
435e042a
CV
57922002-05-16 Corinna Vinschen <vinschen@redhat.com>
5793
5794 * v850-tdep.c: Full multi-arch.
5795 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5796 Define GDB_MULTI_ARCH to 2.
5797
9819c6c8
PM
57982002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5799
5800 * p-exp.y (current_type): New static variable.
5801 Carries the type of the expression at the position that is parsed.
5802 (push_current_type, pop_current_type): Two new functions. Used
5803 to store/restore current_type in expression on specific tokens.
c9af212b
RE
5804 (search_field): New static variable. Set to one after parsing a point
5805 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
5806 (FIELDNAME): New token. After a point only a token belonging to
5807 current_type type definition is allowed.
5808 (all over token rules): reset and change current_type according
5809 to rules.
5810 (exp '[' rule): insert implicit array index field if
5811 exp is a pascal string type.
5812
3a06899a
CV
58132002-05-16 Corinna Vinschen <vinschen@redhat.com>
5814
5815 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5816 frame info. Use frame_info's saved_regs instead of matching member
5817 in extra_frame_info throughout.
5818 (v850_frame_init_saved_regs): New function.
5819 (v850_init_extra_frame_info): Move most functionality into
5820 v850_frame_init_saved_regs().
5821 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5822 (v850_frame_find_saved_regs): Remove declaration.
5823 (FRAME_FIND_SAVED_REGS): Remove definition.
5824 (v850_frame_init_saved_regs): Add declaration.
5825 (FRAME_INIT_SAVED_REGS): Add definition.
5826
6ed14b0e
CV
58272002-05-16 Corinna Vinschen <vinschen@redhat.com>
5828
5829 * v850-tdep.c: Begin multi-arch'ing v850.
5830 (v850_target_architecture_hook): Remove function.
5831 (v850_gdbarch_init): New function. Add code previously in
5832 v850_target_architecture_hook().
5833 (_initialize_v850_tdep): Don't set target_architecture_hook.
5834 Call register_gdbarch_init() instead.
5835
42725910
DJ
58362002-05-16 Daniel Jacobowitz <drow@mvista.com>
5837
5838 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5839 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5840 (fixup_class_method_type): Likewise.
5841
99d9066e
JB
58422002-05-15 Jim Blandy <jimb@redhat.com>
5843
5844 Add macro structures to GDB's symbol tables. Nobody puts anything
5845 in them yet.
5846 * symtab.h (struct symtab): New member: `macro_table'.
5847 * buildsym.h (pending_macros): New global variable.
5848 * buildsym.c: #include "macrotab.h".
5849 (buildsym_init): Initialize `pending_macros'.
5850 (end_symtab): If we found macro information while reading a CU's
5851 debugging info, do build a symtab structure for it. Make the
5852 symtab point to the macro information, and clear the
5853 `pending_macros' pointer which held it while we were reading the
5854 debug info.
5855 (really_free_pendings): Free any pending macro table.
5856 * objfiles.h (struct objfile): New member: `macro_cache'.
5857 * objfiles.c (allocate_objfile): Set allocate and free functions
5858 for the macro cache's objstack.
5859 (free_objfile): Empty the macro cache's obstack.
5860 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5861 set new allocate and free functions for it.
5862 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5863 free functions for the macro cache's objstack. (Why is this
5864 function building its own objfile?)
5865 * symmisc.c (print_objfile_statistics): Print statistics on the
5866 macro bcache.
5867 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5868
c899585b
RE
58692002-05-15 Richard Earnshaw <rearnsha@arm.com>
5870
5871 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5872 (REGISTER_U_ADDR): Delete definition.
5873 (arm_register_u_addr): Delete declaration.
5874
a6cdd8c5
RE
58752002-05-15 Richard Earnshaw <rearnsha@arm.com>
5876
5877 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5878 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5879
c97dcfc7
AC
58802002-05-14 Andrew Cagney <ac131313@redhat.com>
5881
5882 * regcache.c (register_valid): Revise comments refering to "Not
5883 available" and "unavailable".
5884 * frame.c (frame_register_read): Ditto.
5885 * findvar.c (value_of_register): Ditto.
5886
93021b7d
AC
58872002-05-15 Andrew Cagney <cagney@redhat.com>
5888
5889 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5890 (remote-sim.o): Update dependencies.
5891 (d10v-tdep.o): Specify dependencies.
5892 (sim_d10v_h): Define.
5893
a86bc61c
JB
58942002-05-14 Jim Blandy <jimb@redhat.com>
5895
5896 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5897 * macrotab.c (macro_lookup_inclusion, find_definition,
5898 new_macro_table): Same.
5899
5900 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5901 not `! strcmp ()'. This is a dubious improvement.
5902 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5903
5904 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5905 although it's not necessary, to avoid a warning.
5906
2fdde8f8
DJ
59072002-05-14 Daniel Jacobowitz <drow@mvista.com>
5908
5909 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5910 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5911 TYPE_INSTANCE_FLAGS.
5912 (struct main_type): New.
5913 (struct type): Move most members to struct main_type. Change
5914 cv_type and as_type to new type_chain member. Add instance_flags.
5915 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5916 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5917 (finish_cv_type): Remove prototype.
5918 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5919 Set TYPE_CHAIN.
5920 (alloc_type_instance): New function.
5921 (smash_type): New function.
5922 (make_pointer_type, make_reference_type, make_function_type)
5923 (smash_to_member_type, smash_to_method_type): Call smash_type.
5924 (make_qualified_type): New function.
5925 (make_type_with_address_space): Call make_qualified_type.
5926 (make_cv_type): Likewise.
5927 (finish_cv_type): Remove unnecessary function.
5928 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5929 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5930 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5931 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5932 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5933 * hpread.c (hpread_read_struct_type): Likewise.
5934 * stabsread.c (read_struct_type): Likewise.
5935
843fedf4
EZ
59362002-05-14 Elena Zannoni <ezannoni@redhat.com>
5937
5938 * configure.tgt: Add a catch all sh* target, for cases like
5939 sh[2,3,4]-elf and sh-hms.
5940
05a6c72c
KS
59412002-05-14 Keith Seitz <keiths@redhat.com>
5942
5943 * event-loop.c (create_file_handler): Don't do anything but
5944 update data when we are given a fd which we are already
5945 monitoring.
5946
5d085aaf
ML
59472002-05-14 Michal Ludvig <mludvig@suse.cz>
5948
5949 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5950 (update_context): Use __func__ in warnings.
5951
9db8d71f
DJ
59522002-05-14 Daniel Jacobowitz <drow@mvista.com>
5953
5954 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5955 and tcp_close to net_open and net_close.
5956 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5957 using UDP if requested. Don't try to disable Nagle on UDP
5958 sockets.
5959 * remote.c (remote_serial_open): New function. Warn about UDP.
5960 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5961
5dbc6baa
EZ
59622002-05-13 Elena Zannoni <ezannoni@redhat.com>
5963
5964 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5965
cc3023f7
EZ
59662002-05-13 Elena Zannoni <ezannoni@redhat.com>
5967
5968 * configure.tgt: Remove sh-hms target.
5969 * MAINTAINERS: Don't list sh-hms as a separate target.
5970
ec2bcbe7
JB
59712002-05-13 Jim Blandy <jimb@redhat.com>
5972
5973 Add first preprocessor macro-expansion files.
5974 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5975 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5976 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5977 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5978 (COMMON_OBS): Add macrotab.o, macroexp.o.
5979 (macroexp.o, macrotab.o): New rules.
5980
6d531722
AC
59812002-05-13 Andrew Cagney <ac131313@redhat.com>
5982
5983 * config/m88k/tm-m88k.h: Update copyright.
5984 (m88k_target_write_pc): Declare
5985 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5986 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5987 (SHIFT_INST_REGS): Update definition.
5988 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5989 using old definition of TARGET_WRITE_PC.
5990 * regcache.c (generic_target_write_pc): Delete code handling
5991 NNPC_REGNUM.
5992 * gdbarch.sh (NNPC_REGNUM): Delete.
5993 * gdbarch.h, gdbarch.c: Regenerate.
5994
3e3f2739
RE
59952002-05-13 Richard Earnshaw <rearnsha@arm.com>
5996
5997 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5998 builtin reg number.
5999
0004e5a2
DJ
60002002-05-13 Daniel Jacobowitz <drow@mvista.com>
6001
6002 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
6003 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
6004 (gen_address_of, gen_struct_ref, gen_repeat): Use type
6005 access macros.
6006 * c-typeprint.c (cp_type_print_method_args): Likewise.
6007 (c_type_print_args): Likewise.
6008 * d10v-tdep.c (d10v_push_arguments): Likewise.
6009 (d10v_extract_return_value): Likewise.
6010 * expprint.c (print_subexp): Likewise.
6011 * gdbtypes.c (lookup_primitive_typename): Likewise.
6012 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
6013 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
6014 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
6015 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
6016 (TYPE_VECTOR): Likewise.
6017 * hpread.c (hpread_read_struct_type)
6018 (fix_static_member_physnames, fixup_class_method_type)
6019 (hpread_type_lookup): Likewise.
6020 * mdebugread.c (parse_symbol, parse_type): Likewise.
6021 * p-lang.c (is_pascal_string_type): Likewise.
6022 * valops.c (hand_function_call): Likewise.
6023 * x86-64-tdep.c (classify_argument): Likewise.
6024
6025 * hpread.c (hpread_read_function_type)
6026 (hpread_read_doc_function_type): Call replace_type.
6027 * dstread.c (create_new_type): Delete.
6028 (decode_dst_structure, process_dst_function): Call alloc_type.
6029 Use type access macros.
6030
dff95cc7
MK
60312002-05-12 Mark Kettenis <kettenis@gnu.org>
6032
6033 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
6034 the're not supported by the current architecture.
6035 (i387_fill_fxsave): Likewise.
6036
bbcd32ad
FF
60372002-05-12 Fred Fish <fnf@redhat.com>
6038
6039 * symfile.c (default_symfile_offsets): Arrange for uninitialized
6040 sect_index_xxx members to index the first slot in section_offsets
6041 if all of the section_offsets are zero.
6042
89cf4787
MK
60432002-05-12 Mark Kettenis <kettenis@gnu.org>
6044
6045 * configure.tgt (sparc-*openbsd): Remove entry accidentially
6046 checked in with last change.
6047
1f77ffc5
MK
60482002-05-12 Mark Kettenis <kettenis@gnu.org>
6049
6050 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
6051 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
6052 config.sub.
6053
89b8b4a9
DJ
60542002-05-12 Daniel Jacobowitz <drow@mvista.com>
6055
6056 * Makefile.in: Update dependencies.
6057
14a5e767
AC
60582002-05-11 Andrew Cagney <ac131313@redhat.com>
6059
6060 * language.c (local_hex_string_custom): Simplify. Do not depend
6061 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
6062
6063 * memattr.c (mem_info_command): Replace calls to
6064 longest_local_hex_string and longest_local_hex_string_custom.
6065 * buildsym.c (make_blockvector): Ditto.
6066 * solib.c (info_sharedlibrary_command): Ditto.
6067 * tracepoint.c (tracepoints_info): Ditto.
6068 * symtab.c (print_msymbol_info): Ditto.
6069
6070 * language.c (local_hex_string): Delete.
6071 (local_hex_string_custom): Delete.
6072 (longest_local_hex_string): Rename to local_hex_string.
6073 (longest_local_hex_string_custom): Rename to
6074 local_hex_string_custom.
6075 * language.h (local_hex_string): Change parameter type to LONGEST.
6076 (local_hex_string_custom): Ditto.
6077 (longest_local_hex_string): Delete declaration.
6078 (longest_local_hex_string_custom): Ditto.
6079
6080 * solib.c: Update copyright.
6081 * memattr.c: Update copyright.
6082
13d01224
AC
60832002-05-11 Andrew Cagney <ac131313@redhat.com>
6084
6085 * arch-utils.h (legacy_register_to_value): Declare.
6086 (legacy_value_to_register): Declare.
6087 (legacy_convert_register_p): Declare.
6088 * arch-utils.c (legacy_register_to_value): New function.
6089 (legacy_value_to_register): New function.
6090 (legacy_convert_register_p): New function.
6091
6092 * gdbarch.sh (REGISTER_TO_VALUE): Define.
6093 (VALUE_TO_REGISTER): Define.
6094 (CONVERT_REGISTER_P): Define.
6095 * gdbarch.h, gdbarch.c: Regenerate.
6096
6097 * valops.c (value_assign): Use CONVERT_REGISTER_P and
6098 VALUE_TO_REGISTER.
6099 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
6100 CONVERT_REGISTER_P.
6101
4a1970e4
DJ
61022005-05-11 Daniel Jacobowitz <drow@mvista.com>
6103 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
6104
6105 * Makefile.in: Update dependencies for valops.c.
6106 * valops.c: Include "gdb_assert.h".
6107 (typecmp): Skip THIS parameter to methods.
6108 (find_method_list): Remove static_memfuncp argument,
6109 update callers. Check for stub methods.
6110 (find_value_oload_method_list): Don't set *static_memfuncp.
6111 (find_overload_match): Don't check for stub methods. Assert
6112 that methods are not stubbed. Handle static methods.
6113 (value_find_oload_method_list): Remove static_memfuncp argument.
6114 * gdbtypes.c (check_stub_method): Do not add THIS pointer
6115 to the argument list for static stub methods.
6116 * value.h (value_find_oload_method_list): Update prototype.
6117
b2e75d78
AC
61182002-05-11 Andrew Cagney <ac131313@redhat.com>
6119
6120 * arch-utils.h (generic_register_size): Declare.
6121 (generic_register_raw_size, generic_register_virtual_size): Delete
6122 declarations.
6123 * arch-utils.c (generic_register_raw_size): Delete.
6124 (generic_register_size): New function.
6125 (generic_register_virtual_size): Delete.
6126
6127 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
6128 default generic_register_size.
6129 * gdbarch.h, gdbarch.c: Re-generate.
6130
6131 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
6132 register_virtual_size.
6133 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
6134 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6135
451fbdda
AC
61362002-05-11 Andrew Cagney <ac131313@redhat.com>
6137
6138 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
6139 * gdbarch.h, gdbarch.c: Regenerate.
6140 * gnu-v3-abi.c: Update copyright.
6141 (vtable_address_point_offset): Update.
6142 (gnuv3_rtti_type): Update.
6143 (gnuv3_baseclass_offset): Update.
6144 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
6145 (init_fetch_link_map_offsets): Update.
6146 * remote.c (get_remote_state): Update.
6147
6d2f5cea
DJ
61482002-05-11 Daniel Jacobowitz <drow@mvista.com>
6149
6150 * TODO: Remove value_headof/value_from_vtable_info comment.
6151 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
6152 * values.c (value_headof, value_from_vtable_info): Delete.
6153 * value.h (value_from_vtable_info): Delete prototype.
6154
d2324da4
AC
61552002-05-11 Andrew Cagney <ac131313@redhat.com>
6156
6157 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
6158 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
6159 $(gdb_regex_h).
6160 (gdb_assert_h): Define.
6161 (gdb_wait_h): Define.
6162 (gdb_regex_h): Define.
6163
5c717440
DJ
61642002-05-11 Daniel Jacobowitz <drow@mvista.com>
6165
6166 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
6167 * linespec.c (find_methods): Handle GCC 3.x template constructors.
6168
6c7861b3
JT
61692002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6170
6171 * nbsd-tdep.c: Fix comment.
6172
ea5bc2a6
JT
61732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6174
6175 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
6176 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
6177 (nbsd-tdep.o): New dependency list.
6178 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
6179 nbsd-tdep.h.
6180 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
6181 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
6182 * nbsd-tdep.c: New file.
6183 * nbsd-tdep.h: New file.
6184 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
6185 nbsd-tdep.h.
6186 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
6187 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6188 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
6189 * config/sh/nbsd.mt (TDEPFILES): Ditto.
6190
b28da865
JT
61912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6192
6193 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
6194 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
6195 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
6196 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
6197 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
6198 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
6199
4b8ff1fa
JT
62002002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6201
6202 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
6203 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6204 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
6205 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
6206 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
6207 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
6208 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
6209
dfe6eb1f
JT
62102002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6211
6212 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
6213 fetch_elfcore_registers to...
6214 * i386nbsd-tdep.c: ...here.
6215 (i386nbsd_use_struct_convention): Rename to...
6216 (i386nbsd_aout_use_struct_convention): ...this.
6217 (i386nbsd_supply_reg): New function.
6218 (i386nbsd_fill_reg): New function.
6219 (fetch_core_registers): Use i386nbsd_supply_reg.
6220 (fetch_elfcore_registers): Likewise.
6221 (_initialize_i386nbsd_tdep): New function.
6222 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
6223 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6224 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
6225 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
6226 (i386nbsd_aout_use_struct_convention): ...this.
6227
20cb8cda
JT
62282002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6229
6230 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
6231 (store_inferior_registers): Use shnbsd_fill_reg.
6232 * shnbsd-tdep.c (sh_nbsd_supply_registers,
6233 sh_nbsd_supply_register): Collapse into...
6234 (shnbsd_supply_reg): ...this.
6235 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
6236 (shnbsd_fill_reg): ...this.
6237 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
6238 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
6239 (fetch_core_registers): Use shnbsd_supply_reg.
6240 (fetch_elfcore_registers): Use shnbsd_supply_reg.
6241 (sh_nbsd_core_fns): Rename to...
6242 (shnbsd_core_fns): ...this.
6243 (sh_nbsd_elfcore_fns): Rename to...
6244 (shnbsd_elfcore_fns): ...this.
6245 (sh_nbsd_init_abi): Rename to...
6246 (shnbsd_init_abi): ...this.
6247 (_initialize_sh_nbsd_tdep): Rename to...
6248 (_initialize_shnbsd_tdep): ...this.
6249 * shnbsd-tdep.h (sh_nbsd_supply_registers,
6250 sh_nbsd_supply_register, sh_nbsd_fill_registers,
6251 sh_nbsd_fill_register): Remove prototypes.
6252 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
6253
e750d25e
JT
62542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6255
6256 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
6257 (i387-nat.o): Delete dependency list.
6258 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6259 (x86-64-linux-nat.o): Likewise.
6260 * i387-nat.c: Delete file, moving contents to...
6261 * i387-tdep.c: ...here.
6262 * i387-nat.h: Rename...
6263 * i387-tdep.h: ...to this.
6264 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
6265 * i386-linux-nat.c: Likewise.
6266 * i386bsd-nat.c: Likewise.
6267 * i386gnu-nat.c: Likewise.
6268 * i386nbsd-nat.c: Likewise.
6269 * i386v4-nat.c: Likewise.
6270 * x86-64-linux-nat.c: Likewise.
6271 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
6272 * config/i386/go32.mh (NATDEPFILES): Likewise.
6273 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
6274 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
6275 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
6276 * config/i386/linux.mh (NATDEPFILES): Likewise.
6277 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
6278 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6279 * config/i386/obsd.mh (NATDEPFILES): Likewise.
6280 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6281
1aee598a
JT
62822002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6283
6284 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
6285 (alphanbsd-nat.o): Remove dependency list.
6286 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
6287 * alphanbsd-nat.c: Delete. Contents moved to...
6288 * alphanbsd-tdep.c: ...here.
6289 (_initialize_alphanbsd_tdep): Register core functions.
6290 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
6291
12bcb0fe
JT
62922002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
6293
6294 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
6295 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
6296 (alphanbsd-nat.o): Likewise.
6297 (alphabsd-tdep.o): New dependency list.
6298 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
6299 (fill_gregset): Use alphabsd_fill_reg.
6300 (supply_fpregset): Use alphabsd_supply_fpreg.
6301 (fill_fpregset): Use alphabsd_fill_fpreg.
6302 (fetch_inferior_registers): Use struct reg and struct fpreg
6303 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
6304 and alphabsd_supply_fpreg.
6305 (store_inferior_registers): Use struct reg and struct fpreg
6306 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
6307 and alphabsd_fill_fpreg.
6308 * alphabsd-tdep.c: New file.
6309 * alphabsd-tdep.h: New file.
6310 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
6311 (fetch_elfcore_registers): Use alphabsd_supply_reg and
6312 alphabsd_supply_fpreg.
6313 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
6314 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
6315
361d1df0
EC
63162002-05-11 Eric Christopher <echristo@redhat.com>
6317
6318 * mips-tdep.c (mips_double_register_type): Fix thinko.
6319 (mips_single_register_type): Ditto.
6320 * MAINTAINERS: Add self.
6321
92dd7cee
MK
63222002-05-11 Mark Kettenis <kettenis@gnu.org>
6323
6324 * i387-nat.c (i387_supply_register, i387_fill_fsave,
6325 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
6326 right thing on architectures with different endianness and/or
6327 integer sizes.
6328
e27da16d
JT
63292002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
6330
6331 From Christian Limpach <chris@Pin.LU>
6332 * configure.in: Change sed expression which comments out
6333 NATDEPFILES to also comment out continuation lines.
6334 * configure: Regenerate.
6335
ddde02bd
EZ
63362002-05-10 Elena Zannoni <ezannoni@redhat.com>
6337
6338 * sh-tdep.c: Clean up code erroneously reintroduced by previous
6339 big patch.
6340
1c922164
EZ
63412002-05-10 Elena Zannoni <ezannoni@redhat.com>
6342
6343 * sh-tdep.c: Include correct file.
6344
283150cd
EZ
63452002-05-10 Elena Zannoni <ezannoni@redhat.com>
6346
6347 New support for sh64-elf (sh5) target.
6348
6349 * configure.tgt: For sh64-elf target, default to sh-elf.
6350
6351 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
6352 (struct gdbarch_tdep): Add new fields for new registers and ABI
6353 info.
361d1df0 6354
283150cd
EZ
6355 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
6356 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
6357 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
6358 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
6359 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
6360 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
6361 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
6362 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
6363 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
6364 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
6365 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
6366 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
6367 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
6368 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
6369 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
6370 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
6371 sh64_get_gdb_regnum, sh64_media_reg_base_num,
6372 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
6373 sign_extend, sh64_nofp_frame_init_saved_regs,
6374 sh64_init_extra_frame_info, sh64_get_saved_register,
6375 sh64_extract_struct_value_address, sh64_pop_frame,
6376 sh64_push_arguments, sh64_extract_return_value,
6377 sh64_store_return_value, sh64_show_media_regs,
6378 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
6379 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
6380 sh_sh64_register_virtual_type,
6381 sh_sh64_register_convert_to_virtual,
6382 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
6383 sh64_register_read, sh64_pseudo_register_write,
6384 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
6385 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
6386 sh64_do_pseudo_register, sh_compact_do_registers_info,
6387 sh64_do_registers_info, sh_gdbarch_init): New functions.
6388
3117ed25
EZ
63892002-05-10 Elena Zannoni <ezannoni@redhat.com>
6390
6391 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
6392
2654e6d4
DJ
63932002-05-10 Daniel Jacobowitz <drow@mvista.com>
6394
6395 * linespec.c (decode_line_1): Check for a double quote after
6396 a filename correctly.
6397
9ab3e532
JB
63982002-05-10 Jim Blandy <jimb@redhat.com>
6399
6400 Properly track the size of the current objfile's .debug_line section.
6401 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
6402 (DWARF_LINE_SIZE): New macro.
6403 (dwarf2_build_psymtabs_hard): Record the line section's size in
6404 the partial symbol table.
6405 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6406 symbol table.
6407
126fa72d
PS
64082002-05-10 Petr Sorfa <petrs@caldera.com>
6409
6410 * ia64-tdep.c: Handle breakpoints on L instruction type
6411 in MLX instruction bundle by moving the breakpoint to
6412 the third slot (X instruction type) as L holds only data.
6413
1f077a3e
KB
64142002-05-10 Kevin Buettner <kevinb@redhat.com>
6415
6416 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6417 (process_one_symbol): Complain about discarding local symbols
6418 due to a misplaced N_LBRAC entry.
6419
8120c9d5 64202002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
6421
6422 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
6423 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6424 decrease the depth we are at, in the case of templates.
361d1df0 6425
67b2c998
DJ
64262002-05-09 Daniel Jacobowitz <drow@mvista.com>
6427
6428 * mips-tdep.c (mips_float_register_type): New function.
6429 (mips_double_register_type): New function.
6430 (mips_print_register): Use them.
6431 (do_fp_register_row): Likewise.
6432
fd326606
DJ
64332002-05-09 Daniel Jacobowitz <drow@mvista.com>
6434
6609d9af 6435 * signals/signals.c (signals): Remove conditional compilation around
fd326606 6436 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 6437 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 6438
bef35864
MS
64392002-05-09 Michael Snyder <msnyder@redhat.com>
6440
6441 * remote-rdp.c (remote_rdp_can_run): Remove.
6442
c55a3f73
TT
64432002-05-09 Tom Tromey <tromey@redhat.com>
6444
6445 * jv-valprint.c (java_val_print): Handle `char' as a special case
6446 of TYPE_CODE_INT.
6447
b8d5e71d
MS
64482002-05-09 Michael Snyder <msnyder@redhat.com>
6449
6450 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6451 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 6452 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 6453 str r(0123),[sp,#nn].
361d1df0 6454 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
6455 order-independent by placing it in a loop.
6456
e2cd42dd
MS
64572002-05-06 Michael Snyder <msnyder@redhat.com>
6458
6459 * stabsread.c (read_type): Add recognition for new attribute:
6460 "@V;" means that an array type is actually a vector.
6461 This is analogous to the vector flag that's been added to dwarf2.
6462
3ce1502b
MK
64632002-05-09 Mark Kettenis <kettenis@gnu.org>
6464
6465 * i386-tdep.h (i386_abi): New enum.
6466 (struct gdbarch_tdep): Replace os_ident member with abi.
6467 (i386_gdbarch_register_os_abi): New prototype.
6468 * i386-tdep.c (i386_abi_names): New array.
6469 (process_note_abi_tag_sections): Removed.
6470 (process_note_sections): New function.
6471 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6472 (struct i386_abi_handler): New struct.
6473 (i386_abi_handler_list): New variable.
6474 (i386_gdbarch_register_os_abi): New function.
6475 (i386_gdbarch_init): Adapt for the changes given above.
6476
084c156a
DJ
64772002-05-08 Daniel Jacobowitz <drow@mvista.com>
6478
6479 * gregset.h: Say "GNU/Linux".
6480
6599f021
EZ
64812002-05-08 Elena Zannoni <ezannoni@redhat.com>
6482
6483 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6484 (build_gdbtypes): Build builtin_type_v2_float.
6485 (_initialize_gdbtypes): Register new builtin type.
6486
40af4b0c
AC
64872002-05-08 Andrew Cagney <ac131313@redhat.com>
6488
6489 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6490 (clear_gdbarch_swap): New function.
6491 (initialize_non_multiarch): Call.
6492 (gdbarch_update_p): Before calling init(), swap out and clear the
6493 existing architecture.
6494 * gdbarch.c: Regenerate.
6495
4fe84f46
JT
64962002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6497
6498 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6499 alphanbsd-tdep.c.
6500
4015edd1
JT
65012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * sh-nbsd-nat.c: Rename to...
6504 * shnbsd-nat.c: ...this.
6505 * sh-nbsd-tdep.c: Rename to...
6506 * shnbsd-tdep.c: ...this.
6507 * sh-nbsd-tdep.h: Rename to...
6508 * shnbsd-tdep.h: ...this.
6509 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6510 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6511
0e2bd219
RE
65122002-05-08 Richard Earnshaw <rearnsha@arm.com>
6513
6514 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6515 concatenation for command help messages.
6516
13a38d45
JT
65172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6518
6519 * NEWS: Note new sh*-*-netbsdelf* configuration.
6520 * configure.host: Set gdb_host_cpu to sh for all sh*.
6521 (sh*-*-netbsdelf*): New host.
6522 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6523 (sh*-*-netbsdelf*): New target.
6524 * sh-nbsd-nat.c: New file.
6525 * sh-nbsd-tdep.c: New file.
6526 * sh-nbsd-tdep.h: New file.
6527 * config/sh/nbsd.mh: New file.
6528 * config/sh/nbsd.mt: New file.
6529 * config/sh/nm-nbsd.h: New file.
6530 * config/sh/tm-nbsd.h: New file.
6531
d658f924
JT
65322002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6533
6534 * sh-tdep.c (sh_osabi_names): Declare.
6535 (process_note_abi_tag_sections): New function.
6536 (get_elfosabi): Ditto.
6537 (sh_gdbarch_register_os_abi): Ditto.
6538 (sh_dump_tdep): Ditto.
6539 _initialize_sh_tdep): Use gdbarch_register to register
6540 sh_gdbarch_init and sh_dump_tdep.
6541 * config/sh/tm-sh.h (sh_osabi): Declare.
6542 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6543
848cfffb
AC
65442002-05-07 Andrew Cagney <ac131313@redhat.com>
6545
6546 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6547 (thumb_scan_prologue): Ditto.
6548 (arm_find_callers_reg): Ditto.
6549 (arm_frame_chain): Ditto.
6550 (arm_init_extra_frame_info): Ditto.
6551 (arm_frame_saved_pc): Ditto.
6552 (arm_pop_frame): Ditto.
6553 (arm_push_return_address): New function.
6554 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6555 call_dummy_location, call_dummy_breakpoint_offset_p,
6556 call_dummy_breakpoint_offset, call_dummy_p,
6557 call_dummy_stack_adjust_p, call_dummy_words,
6558 sizeof_call_dummy_words, call_dummy_start_offset,
6559 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6560 call_dummy_address, push_return_address and push_dummy_frame for
6561 generic dummy frames.
6562
e7d717c0
JT
65632002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6564
6565 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6566 size computation for alloca.
6567 (sh_fp_frame_init_saved_regs): Likewise.
6568
7bbcf283
RE
65692002-05-07 Richard Earnshaw <rearnsha@arm.com>
6570
6571 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6572 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 6573 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
6574 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6575 * remote-rdp.c (remote_rdp_fetch_register): Use
6576 ARM_MAX_REGISTER_RAW_SIZE.
6577 (remote_rdp_store_register): Likewise.
6578
4657573b
ML
65792002-05-07 Michal Ludvig <mludvig@suse.cz>
6580
361d1df0 6581 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
6582 added default labels to switch {} statements.
6583 * x86-64-tdep.c: Ditto.
6584 * x86-64-linux-nat.c: Ditto.
6585
010f3b2f
JT
65862002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6587
6588 * solib.h: Protect against multiple inclusion.
6589
debd256d
JB
65902002-05-06 Jim Blandy <jimb@redhat.com>
6591
9ab3e532
JB
6592 Add first preprocessor macro-expansion files.
6593 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6594 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6595 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6596 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6597 (COMMON_OBS): Add macrotab.o, macroexp.o.
6598 (macroexp.o, macrotab.o): New rules.
6599
debd256d
JB
6600 Separate the job of reading the line number info statement program
6601 header (...expialidocious) out into its own function.
6602 * dwarf2read.c (struct line_head, struct filenames, struct
6603 directories): Replace with...
6604 (struct line_header): New structure, containing the full
6605 contents of the statement program header, including the
6606 include directory and file name tables.
6607 (read_file_scope): If we have line number info, instead of just
6608 calling dwarf_decode_lines to do all the work, call
6609 dwarf_decode_line_header first to get a `struct line_header'
6610 containing the data in the statement program header, and then
6611 pass that to dwarf_decode_lines, which will pick up where that
6612 left off. Be sure to clean up the `struct line_header' object.
6613 (dwarf_decode_line_header, free_line_header, add_include_dir,
6614 add_file_name): New functions.
6615 (dwarf_decode_lines): Move all the code to read the statement
6616 program header into dwarf_decode_line_header. Take the line
6617 header it built as the first argument, instead of the offset to
6618 the compilation unit's line number info. Use the new `struct
6619 line_header' type instead of the old structures. No need to do
6620 cleanups here now, since we don't allocate anything.
6621 (dwarf2_statement_list_fits_in_line_number_section,
6622 dwarf2_line_header_too_long): New complaints.
6623
ac3aafc7
EZ
66242002-05-06 Elena Zannoni <ezannoni@redhat.com>
6625
6626 * gdbtypes.c (init_vector_type): New function.
6627 (build_builtin_type_vec128): Simplify the representation of SIMD
6628 registers.
6629 (build_gdbtypes): Initialize new builtin vector types.
6630 (_initialize_gdbtypes): Register new vector types with gdbarch.
6631 (builtin_type_v4_float, builtin_type_v4_int32,
6632 builtin_type_v8_int16, builtin_type_v16_int8,
6633 builtin_type_v2_int32, builtin_type_v4_int16,
6634 builtin_type_v8_int8): New (renamed) SIMD types.
6635
13e49980
MK
66362002-05-06 Mark Kettenis <kettenis@gnu.org>
6637
6638 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6639 (i387_fill_fxsave): Likewise.
6640
997b20b8
AO
66412002-05-05 Alexandre Oliva <aoliva@redhat.com>
6642
6643 * alpha-tdep.c (alpha_extract_return_value): Don't use
6644 non-constant array size in prototype.
6645
535c96ce
AC
66462002-05-04 Andrew Cagney <ac131313@redhat.com>
6647
6648 From Brian Taylor <briant at model dot com>:
6649 * ui-out.c (ui_out_field_core_addr): Use the function
6650 longest_local_hex_string_custom'to format addresses > 32 bits
6651 wide.
6652
6653 * ui-out.c (ui_out_field_core_addr): Update comment.
6654
bedfa57b
AC
66552002-05-04 Andrew Cagney <ac131313@redhat.com>
6656
6657 * stack.c (select_and_print_frame): Make static. Delete the
6658 parameter `level'.
6659 (func_command): Update call.
6660 (select_frame_command): Delete code computing the frame level.
6661 * frame.h (select_and_print_frame): Delete declaration.
6662
f621c63e
AC
66632002-05-04 Andrew Cagney <ac131313@redhat.com>
6664
6665 * sparc-tdep.c (sparc_get_saved_register): Comment why
6666 get_prev_frame call is safe.
6667
0f7d239c
AC
66682002-05-04 Andrew Cagney <ac131313@redhat.com>
6669
6670 * frame.h (select_frame): Delete level parameter.
6671 * stack.c (select_frame): Update. Use frame_relative_level to
6672 obtain the frame's level.
6673 (select_and_print_frame): Update call.
6674 (select_frame_command): Ditto.
6675 (up_silently_base): Ditto.
6676 (down_silently_base): Ditto.
6677 * ocd.c (ocd_start_remote): Ditto.
6678 * remote-rdp.c (remote_rdp_open): Ditto.
6679 * remote-mips.c (mips_initialize): Ditto.
6680 (common_open): Ditto.
6681 * remote-e7000.c (e7000_start_remote): Ditto.
6682 * m3-nat.c (select_thread): Ditto.
6683 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6684 (child_get_current_exception_event): Ditto.
6685 * varobj.c (varobj_create): Ditto.
6686 (varobj_update): Ditto.
6687 (c_value_of_root): Ditto.
6688 * tracepoint.c (finish_tfind_command): Ditto.
6689 * corelow.c (core_open): Ditto.
6690 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6691 * thread.c (info_threads_command): Ditto.
6692 (switch_to_thread): Ditto.
6693 * infrun.c (normal_stop): Ditto.
6694 (restore_selected_frame): Ditto.
6695 (restore_inferior_status): Ditto.
6696 * breakpoint.c (insert_breakpoints): Ditto.
6697 (watchpoint_check): Ditto.
6698 (bpstat_stop_status): Ditto.
6699 (do_enable_breakpoint): Ditto.
6700 * blockframe.c (flush_cached_frames): Ditto.
6701 (reinit_frame_cache): Ditto.
6702
71d6c7b1
AC
67032002-05-04 Andrew Cagney <ac131313@redhat.com>
6704
6705 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6706 maintainer.
6707
cda6c68a
JB
67082002-05-04 Jim Blandy <jimb@redhat.com>
6709
6710 * gdbtypes.c (replace_type): Doc fix.
6711
5c1c87f0
AC
67122002-05-04 Andrew Cagney <ac131313@redhat.com>
6713
6714 * valprint.c (strcat_longest): Delete commented out function.
6715 Update copyright.
6716
cd9bfe15
AC
67172002-05-04 Andrew Cagney <ac131313@redhat.com>
6718
6719 * MAINTAINERS: Mark a29k as deleted.
6720 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6721 Move new configurations to the top.
6722 * configure.tgt: Remove a29k.
6723 * config/a29k/tm-vx29k.h: Delete.
6724 * config/a29k/vx29k.mt: Delete.
6725 * config/a29k/tm-a29k.h: Delete.
6726 * config/a29k/a29k-udi.mt: Delete.
6727 * config/a29k/a29k.mt: Delete.
6728 * a29k-tdep.c: Delete.
6729 * remote-udi.c: Delete.
6730 * remote-mm.c: Delete.
6731 * remote-eb.c: Delete.
6732 * remote-adapt.c: Delete.
6733 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
6734 * config/s390/s390x.mt: Ditto.
6735 * config/s390/s390.mt: Ditto.
6736 * config/sparc/sparclynx.mh: Ditto.
6737 * config/sparc/linux.mh: Ditto.
6738 * config/pa/hppaosf.mh: Ditto.
6739 * config/pa/hppabsd.mh: Ditto.
6740 * config/ns32k/nbsd.mt: Ditto.
6741 * config/mips/vr5000.mt: Ditto.
6742 * config/m68k/sun3os4.mh: Ditto.
6743 * config/m68k/nbsd.mt: Ditto.
6744 * config/m68k/m68klynx.mh: Ditto.
6745 * config/m32r/m32r.mt: Ditto.
6746 * config/i386/x86-64linux.mt: Ditto.
6747 * config/i386/nbsdelf.mt: Ditto.
6748 * config/i386/nbsd.mt: Ditto.
6749 * config/i386/i386lynx.mh: Ditto.
6750
bf0c5130
AC
67512002-05-04 Andrew Cagney <ac131313@redhat.com>
6752
6753 * target.c (debug_print_register): New function. Handle oversize
6754 registers.
6755 (debug_to_fetch_registers): Call.
6756 (debug_to_store_registers): Call.
6757
2ae1c2d2
JB
67582002-05-03 Jim Blandy <jimb@redhat.com>
6759
13a393b0
JB
6760 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6761 (read_type): Doc fix.
6762 * gdbtypes.c (replace_type): Doc fix.
6763
2ae1c2d2
JB
6764 * stabsread.c (multiply_defined_struct): New complaint.
6765 (read_struct_type): If the type we were passed isn't empty, or
6766 incomplete, don't read the new struct type into it; complain,
6767 and return the original type unchanged. Take a new `type_code'
6768 argument, which is the type code for the new type.
6769 (read_type): Rather than storing the type's type code here, pass
6770 it as an argument to read_struct_type, and let that take care of
6771 storing it. That way, we don't overwrite the original type code,
6772 so read_struct_type can use it to decide whether we're overwriting
6773 something we shouldn't.
6774 (complain_about_struct_wipeout): New function.
6775
8de9bdc4
AC
67762002-05-03 Andrew Cagney <ac131313@redhat.com>
6777
6778 * gdbarch.sh: Assert that gdbarch is non-NULL.
6779 * gdbarch.c: Regenerate.
6780
f773fdbb
JM
67812002-05-03 Jason Merrill <jason@redhat.com>
6782
6783 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6784 and return NULL.
6785
0e04a514
ML
67862002-05-03 Michal Ludvig <mludvig@suse.cz>
6787
6788 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6789 (x86_64_dwarf2gdb_regno_map_length),
6790 (x86_64_dwarf2_reg_to_regnum): Added.
6791 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6792 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6793 (_initialize_x86_64_tdep): Synced with the change above.
6794 (x86_64_skip_prologue): Reformulated message.
6795
065432a8
PM
67962002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6797
6798 * f-exp.y: Also use new prev_lexptr variable
6799 to improve error reporting. Based on Michael Snyder
6800 2002-04-24 dated patch to c-exp.y.
6801 * jv-exp.y: Likewise.
6802 * m2-exp.y: Likewise.
6803
a3162708
EZ
68042002-05-02 Elena Zannoni <ezannoni@redhat.com>
6805
6806 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6807 we are dealing with vectors.
6808
03620c38
PM
68092002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6810
6811 * config/m68k/tm-nbsd.h: Obvious fix,
6812 correct machine name.
6813
6604db2e
PM
68142002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6815
6816 * p-typeprint.c (pascal_type_print_base): Add support
6817 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6818
0906b739
PM
68192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6820
6821 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6822 for fondamental pascal 'char' type.
6823
e2625b33
PM
68242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6825
6826 * p-lang.h (is_pascal_string_type): Declaration changed,
6827 new sixth argument of type char ** added.
361d1df0 6828 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
6829 changed. Args length_pos, length_size, string_pos, char_size
6830 can now be NULL. New argument arrayname set to the field
6831 name of the char array. Return value set to char array
6832 field index plus one.
361d1df0 6833 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
6834 is_pascal_string_type function.
6835
cf17c188
AC
68362002-05-02 Andrew Cagney <cagney@redhat.com>
6837
6838 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6839 <cagney@redhat.com> change.
6840 * gdbarch.c: Regenerate.
6841
52bca491
AC
68422002-05-02 Andrew Cagney <cagney@redhat.com>
6843
6844 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6845 before probing for a new one. Detect errorenous gdbarch_init
6846 functions.
6847 * gdbarch.c: Regenerate.
6848
d5e72505
AC
68492002-05-01 Andrew Cagney <cagney@redhat.com>
6850
6851 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6852 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6853 * config/v850/tm-v850.h: Ditto. Update copyright.
6854
af566d9f
AC
68552002-04-30 Andrew Cagney <ac131313@redhat.com>
6856
6857 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6858 current_gdbarch.
6859
880d85fa
MS
68602002-04-30 Michael Snyder <msnyder@redhat.com>
6861
94c30b78
MS
6862 * arm-tdep.c: Whitespace clean-ups.
6863 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
6864 should have been removed as part of 4/24 change.
6865
6f5987a6
KB
68662002-04-30 Kevin Buettner <kevinb@redhat.com>
6867
6868 * rs6000-tdep.c: Added comment describing how fpscr register
6869 numbers were chosen.
6870
1a113c93
MS
68712002-04-30 Michael Snyder <msnyder@redhat.com>
6872
6873 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6874
9a6f53fe
EZ
68752002-04-29 Elena Zannoni <ezannoni@redhat.com>
6876
6877 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6878 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6879 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6880
11ed25ac
KB
68812002-04-29 Kevin Buettner <kevinb@redhat.com>
6882
6883 From Louis Hamilton <hamilton@redhat.com>:
6884 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6885 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6886 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6887 not bfd-private xcoff data, to determine wordsize.
6888 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6889
ae232405
AC
68902002-04-29 Andrew Cagney <ac131313@redhat.com>
6891
6892 GDB 5.2 released from 5.2 branch.
6893
91fd20f7
ML
68942002-04-29 Michal Ludvig <mludvig@suse.cz>
6895
6896 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6897 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6898 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 6899
2dc5091b
EZ
69002002-04-29 Elena Zannoni <ezannoni@redhat.com>
6901
6902 * rs6000-tdep.c (rs6000_extract_return_value,
6903 rs6000_store_return_value): Handle returning vectors.
6904 (rs6000_gdbarch_init): Use
6905 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6906 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6907 New function.
6908 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6909 vectors.
6910 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6911 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 6912
2b9848d8
PM
69132002-04-24 Pierre Muller <ics.u-strasbg.fr>
6914
6915 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 6916 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
6917 with fprintf_unfiltered (gdb_stderr,...).
6918
f8d17dc5
PM
69192002-04-24 Pierre Muller <ics.u-strasbg.fr>
6920
6921 * remote-array.c (printf_monitor, write_monitor,
361d1df0 6922 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
6923 Replace fprintf (stderr,...
6924 with fprintf_unfiltered (gdb_stderr,....
6925 * remote-es.c: Likewise.
6926 * remote-os9k.c: Likewise.
6927 * remote-st.c: Likewise.
6928
2f2f1ad1
AS
69292002-04-28 Andreas Schwab <schwab@suse.de>
6930
6931 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6932 linux-proc.o and gcore.o.
6933
b6779aa2
AC
69342002-04-26 Michal Ludvig <mludvig@suse.cz>
6935
6936 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6937 code without frame pointers.
6938
7e57f5f4
AC
69392002-04-26 Andrew Cagney <ac131313@redhat.com>
6940
6941 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6942 ON_STACK is needed.
6943
2ceb85d0
BE
69442002-04-26 Ben Elliston <bje@redhat.com>
6945
6946 * target.c (do_xfer_memory): Correct reference to the new option
6947 "trust-readonly-sections".
6948
f5f8a009
EZ
69492002-04-26 Elena Zannoni <ezannoni@redhat.com>
6950
6951 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6952 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6953 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6954 vectors.
6955 (read_array_type): Record the fact that this array type is really a
6956 vector (i.e. are passed in by value).
6957
5868c862
JT
69582002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6959
6960 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6961 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6962 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6963 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6964 * alpha-linux-tdep.c: Include frame.h.
6965 (alpha_linux_sigcontext_addr): New function.
6966 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6967 alpha_linux_sigcontext_addr.
6968 * alpha-osf1-tdep.c: Include gdbcore.h.
6969 (alpha_osf1_sigcontext_addr): New function.
6970 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6971 alpha_osf1_sigcontext_addr.
6972 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6973 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6974
bfb01f37
AC
69752002-04-26 Andrew Cagney <ac131313@redhat.com>
6976
361d1df0 6977 * stack.c (selected_frame_level):
bfb01f37
AC
6978 (select_frame): Do not set selected_frame_level.
6979 * frame.h (selected_frame_level): Delete declaration.
6980
15813d3f
AC
69812002-04-26 Andrew Cagney <ac131313@redhat.com>
6982
6983 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6984 convert_from_func_ptr-addr when AIX / PowerOpen.
6985
6096c27a
AC
69862002-04-25 Andrew Cagney <ac131313@redhat.com>
6987
6988 * valops.c (hand_function_call): Call
6989 generic_save_call_dummy_addr.
6990 * frame.h (generic_save_call_dummy_addr): Declare.
6991 * blockframe.c (struct dummy_frame): Add fields call_lo and
6992 call_hi.
6993 (generic_find_dummy_frame): Check for PC in range call_lo to
6994 call_hi instead of entry_point_address.
6995 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6996 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6997 (generic_save_call_dummy_addr): New function.
6998
f510d44e
DM
69992002-04-24 David S. Miller <davem@redhat.com>
7000
7001 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
7002 sparc_skip_prologue.
7003 (sparc_skip_prologue): Kill frameless_p arg, and use line number
7004 information to find prologue when possible.
7005 (sparc_prologue_frameless_p): Call examine_prologue directly.
7006 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
7007 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
7008 second argument.
7009 (SKIP_PROLOGUE): Likewise.
7010
15d72a92
JT
70112002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7012
7013 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
7014 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
7015 indicate that the condition it was testing is always true.
7016 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
7017 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7018 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
7019
accc6d1f
JT
70202002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7021
7022 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
7023 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
7024 tdep->jb_pc and tdep->jb_elt_size.
7025 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
7026 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
7027 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7028 * alpha-nat.c (get_longjmp_target): Remove.
7029 (JB_ELEMENT_SIZE): Ditto.
7030 (JB_PC): Ditto.
7031 * alpha-tdep.c (alpha_get_longjmp_target): New function.
7032 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
7033 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
7034 to alpha_get_longjmp_target.
7035 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
7036 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
7037 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
7038
1bfdc549
AC
70392002-04-25 Andrew Cagney <ac131313@redhat.com>
7040
7041 * README: Update to GDB 5.2.
7042
1bd316f0
AC
70432002-04-25 Andrew Cagney <ac131313@redhat.com>
7044
7045 * gdbarch.sh (LC_ALL): Set to `c'.
7046
2e5ff58c
TR
70472002-04-25 Theodore A. Roth <troth@verinet.com>
7048
7049 * avr-tdep.c: Ran through gdb_indent.sh.
7050
e33ce519
TR
70512002-04-25 Theodore A. Roth <troth@verinet.com>
7052
7053 * MAINTAINERS: Add myself as AVR maintainer.
7054 * NEWS: Note new target avr.
7055
8818c391
TR
70562002-04-25 Theodore A. Roth <troth@verinet.com>
7057
7058 * Makefile.in: Add support for AVR target.
7059 * configure.tgt: Add support for AVR target.
7060 * avr-tdep.c: New file
7061 * config/avr/avr.mt: New file.
7062
79509c2d
TR
70632002-04-25 Theodore A. Roth <troth@verinet.com>
7064
7065 * MAINTAINERS: Add myself to write-after-approval.
7066
dac8068e
PM
70672002-04-24 Pierre Muller <ics.u-strasbg.fr>
7068
7069 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
7070 with fprintf_unfiltered (gdb_stderr,....
7071
25bf3106
PM
70722002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7073
7074 Fix PR gdb/508.
7075 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
7076
24467a86
PM
70772002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
7078
7079 * p-exp.y: Also use new prev_lexptr variable
7080 to improve error reporting. Based on Michael Snyder
7081 2002-04-24 dated patch to c-exp.y.
7082
95b80706
JT
70832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7084
7085 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
7086 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
7087 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
7088 to 0.
7089 * config/alpha/tm-alpha.h: Remove forward decls of struct type
7090 and struct value.
7091 (FUNCTION_START_OFFSET): Remove.
7092 (BREAKPOINT): Ditto.
7093
e90cc612
JT
70942002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
7095
7096 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
7097 * NEWS: Ditto.
7098
6c72f9f9
JT
70992002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
7102 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
7103 alpha_linux_pc_in_sigtramp.
7104 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
7105 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
7106 alpha_osf1_pc_in_sigtramp.
7107 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
7108 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
7109 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7110 alphafbsd_pc_in_sigtramp.
7111 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
7112 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
7113 alphanbsd_pc_in_sigtramp.
7114 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
7115 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
7116
5e4f3379
JT
71172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7118
7119 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7120
da8ca43d
JT
71212002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7122
7123 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
7124 alphanbsd-tdep.c.
7125 (alphanbsd-nat.o): New dependency list.
7126 (alphanbsd-tdep.o): Ditto.
7127 * NEWS: Note new native NetBSD/alpha configuration.
7128 * alphanbsd-nat.c: New file.
7129 * alphanbsd-tdep.c: Ditto.
7130 * configure.host (alpha*-*-netbsd*): New host.
7131 * configure.tgt (alpha*-*-netbsd*): New target.
7132 * config/alpha/nbsd.mh: New file.
7133 * config/alpha/nbsd.mt: Ditto.
7134 * config/alpha/nm-nbsd.h: Ditto.
7135 * config/alpha/tm-nbsd.h: Ditto.
7136
36a6271d
JT
71372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7138
7139 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
7140 (alpha-osf1-tdep.o): New dependency list.
7141 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
7142 and skip_sigtramp_frame members.
7143 * alpha-linux-tdep.c: Include gdbcore.h.
7144 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
7145 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
7146 * alpha-osf1-tdep.c: New file.
7147 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
7148 alpha-osf1-dep.c.
7149 (alpha_frame_past_sigtramp_frame): New function.
7150 (alpha_dynamic_sigtramp_offset): Ditto.
7151 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
7152 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
7153 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
7154 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
7155 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
7156 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
7157 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
7158 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
7159 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
7160 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
7161 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
7162 to find_solib_trampoline_target.
7163 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
7164 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
7165 (SKIP_TRAMPOLINE_CODE): Remove.
7166 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7167 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7168 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7169 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7170 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
7171 (PROC_SIGTRAMP_MAGIC): Ditto.
7172 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7173 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7174 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
7175 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
7176 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
7177
2f4bc57b
JT
71782002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
7179
7180 * NEWS: Note that Alpha targets are now multi-arch.
7181
665132f9
MS
71822002-04-24 Michael Snyder <msnyder@redhat.com>
7183
7184 * parser-defs.h (prev_lexptr): New external variable.
7185 * parse.c (parse_exp_1): Set prev_lexptr to null before
7186 calling the language-specific parser.
7187 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7188 (yyerror): Use prev_lexptr in error reporting.
7189
32872fa7
DJ
71902002-04-24 Daniel Jacobowitz <drow@mvista.com>
7191
7192 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
7193 * gregset.h: If FILL_FPXREGSET is defined, provide
7194 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
7195 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
7196 is defined, call fill_fpxregset.
7197
57e76fac
MS
71982002-04-24 Roland McGrath <roland@frob.com>
7199
7200 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
7201 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
7202 (supply_gregset, supply_fpregset): New functions.
7203
7204 * gnu-nat.c (gnu_find_memory_regions): New function.
7205 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
7206 (gnu_xfer_memory): Add a cast.
7207
f43845b3
MS
72082002-04-24 Michael Snyder <msnyder@redhat.com>
7209
361d1df0 7210 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
7211 loop. Add handling for "str lr, [sp, #-4]!" and for saves
7212 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 7213 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
7214 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
7215 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
7216
a0abec03
AC
7217Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
7218
7219 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
7220 NUM_PSEUDO_REGS can be used.
7221
d7bd68ca
AC
72222002-04-24 Andrew Cagney <ac131313@redhat.com>
7223
7224 * arch-utils.h: Update copyright.
7225
7226 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
7227 * gdbarch.h, gdbarch.c: Re-generate.
7228
7229 * inferior.h (IN_SIGTRAMP): Delete definition.
7230 * arch-utils.c (legacy_pc_in_sigtramp): New function.
7231 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
7232
7233 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
7234 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
7235 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
7236 (find_proc_framesize): Ditto.
7237 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
7238 (alpha_init_extra_frame_info): Ditto.
7239 * infrun.c (handle_inferior_event): Ditto.
7240 (handle_inferior_event): Ditto.
7241 (check_sigtramp2): Ditto.
7242 * blockframe.c (create_new_frame): Ditto.
7243 (get_prev_frame): Ditto.
7244 * ppc-linux-tdep.c: Update comments.
7245 * i386-linux-tdep.c: Update comments.
7246 * breakpoint.c (bpstat_what): Update comment.
7247
4867e41e
DM
72482002-04-24 David S. Miller <davem@redhat.com>
7249
21d83aa5
DM
7250 * i960-tdep.c (register_in_window_p): New function.
7251 (i960_find_saved_register): Use it instead of
7252 REGISTER_IN_WINDOW_P.
7253 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
7254
4867e41e
DM
7255 * symtab.h (find_stab_function_addr): Kill extern.
7256 * minsyms.c (find_stab_function_addr): Remove from here...
7257 * dbxread.c: ... to here, and mark it static.
7258
69cdf6a2
DM
72592002-04-20 David S. Miller <davem@redhat.com>
7260
7261 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
7262 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
7263
5a595886
DM
72642002-04-21 David S. Miller <davem@redhat.com>
7265
7266 * remote-vxsparc.c (vx_read_register): Fix typo, we want
7267 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
7268 (vx_write_register): Likewise.
7269
1da1a192
JB
72702002-04-23 J. Brobecker <brobecker@gnat.com>
7271
7272 * source.c (is_regular_file): New function.
7273 (openp): Check wether file to open is a regular file
7274 to avoid opening directories.
7275
baa6f10b
JT
72762002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7277
7278 * findvar.c (extract_signed_integer): Cast printf argument
7279 to suppress format warning.
7280 (extract_unsigned_integer): Likewise.
7281 * infcmd.c (registers_info): Likewise.
7282 * top.c (get_prompt_1): Likewise.
7283 * valops.c (value_assign): Likewise.
7284 * valprint.c (print_decimal): Likewise.
7285
b2c4da81
L
72862002-04-22 H.J. Lu (hjl@gnu.org)
7287
7288 * c-exp.y (typebase): Support
361d1df0 7289
b2c4da81
L
7290 [long|long long|short] [signed|unsigned] [int|]
7291
7292 and
7293
7294 signed [long|long long|short] int
7295
f267bd6a
JT
72962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7297
7298 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
7299 and vax-tdep.h.
7300 * vax-tdep.h: New file.
7301 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
7302 Make several routines static.
7303 (vax_get_saved_register): New function.
7304 (vax_gdbarch_init): New function.
7305 (_initialize_vax_tdep): Register vax_gdbarch_init.
7306 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
7307 Remove macros now under the control of gdbarch.
7308
da3c6d4a
MS
73092002-04-22 Michael Snyder <msnyder@redhat.com>
7310
11d3b27d
MS
7311 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
7312 Some whitespace and coding standards tweaks.
da3c6d4a 7313
a33f7558
JT
73142002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7315
7316 * vax-tdep.c: Include regcache.h.
7317 (vax_call_dummy_words): New.
7318 (sizeof_vax_call_dummy_words): New.
7319 (vax_fix_call_dummy): New function.
7320 (vax_saved_pc_after_call): Ditto.
7321 * config/vax/tm-vax.h: Don't include regcache.h.
7322 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
7323 (CALL_DUMMY): Remove.
7324 (CALL_DUMMY_WORDS): Define.
7325 (SIZEOF_CALL_DUMMY_WORDS): Define.
7326 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
7327
47a73475
MS
73282002-04-18 Michael Snyder <msnyder@redhat.com>
7329
7330 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
7331
52efde73
JT
73322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7333
7334 * vax-tdep.c (vax_frame_chain): New function.
7335 (vax_push_dummy_frame): Ditto.
7336 (vax_pop_frame): Ditto.
7337 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
7338 (FRAMELESS_FUNCTION_INVOCATION): Use
7339 generic_frameless_function_invocation_not.
7340 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
7341 (POP_FRAME): Use vax_pop_frame.
7342
ea74468c
JT
73432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7344
7345 * vax-tdep.c (vax_store_struct_return): New function.
7346 (vax_extract_return_value): Ditto.
7347 (vax_store_return_value): Ditto.
7348 (vax_extract_struct_value_address): Ditto.
7349 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
7350 vax_store_struct_return.
7351 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
7352 (STORE_RETURN_VALUE): Use vax_store_return_value.
7353 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
7354
5516aa92
JT
73552002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7356
7357 * vax-tdep.c (vax_frame_saved_pc): New function.
7358 (vax_frame_args_address_correct): Ditto.
7359 (vax_frame_args_address): Ditto.
7360 (vax_frame_locals_address): Ditto.
7361 (vax_frame_num_args): Move code to be in proximity to
7362 other frame-related functions.
7363 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
7364 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
7365 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
7366 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
7367 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
7368
36af0b35
L
73692002-04-22 H.J. Lu (hjl@gnu.org)
7370
7371 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
7372 includedir.
7373
ab62c900
JT
73742002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7375
7376 * vax-tdep.c (vax_frame_init_saved_regs): New function.
7377 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
7378 (FRAME_INIT_SAVED_REGS): New macro.
7379
7232b100
JT
73802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7381
7382 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
7383
b70d2aee
JT
73842002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7385
7386 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
7387 where needed.
7388 (fetch_osf_core_registers): Likewise.
7389 (supply_gregset): Likewise.
7390
a0e8a2d1 73912002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 7392
a0e8a2d1
JB
7393 * symfile.h (get_section_index): Define.
7394 * symfile.c (get_section_index): New function.
7395 * mdebugread.c (SC_IS_SBSS): New macro.
7396 (SC_IS_BSS): Return true for the scBss storage class only, as
7397 the scSBss storage class refers to the .sbss section.
7398 (parse_partial_symbols): Discard the symbols which associated
7399 section does not exist.
7400 Make sure to use the .sbss section index for symbols which
7401 storage class is scBss, rather than using the .bss section index.
7402
51eb8b08
JT
74032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
7404
7405 * vax-tdep.c: Update copyright years.
7406 (vax_register_name): New function.
7407 (vax_register_byte): Ditto.
7408 (vax_register_raw_size): Ditto.
7409 (vax_register_virtual_size): Ditto.
7410 (vax_register_virtual_type): Ditto.
7411 * config/vax/tm-vax.h: Update copyright years.
7412 (REGISTER_NAMES): Remove.
7413 (REGISTER_NAME): Define.
7414 (REGISTER_BYTE): Use vax_register_byte.
7415 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7416 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7417 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7418
6cc1c0a8
AC
74192002-04-21 Andrew Cagney <ac131313@redhat.com>
7420
7421 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7422 declaration
7423 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7424
9319a2fe
DM
74252002-04-21 David S. Miller <davem@redhat.com>
7426
7427 * arch-utils.c (generic_prologue_frameless_p): Kill
7428 SKIP_PROLOGUE_FRAMELESS_P code.
7429 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7430 references.
7431 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7432 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7433 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7434 references.
7435 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7436 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7437 (sparc_gdbarch_init): Pass it to
7438 set_gdbarch_prologue_frameless_p.
a0e8a2d1 7439
e9ed6d01
JT
74402002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7441
7442 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7443 (alphabsd-nat.o): New dependency list.
7444
36012033
JT
74452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7446
7447 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7448 alphafbsd-tdep.c.
7449 (alpha-linux-tdep.o): New dependency list.
7450 (alphafbsd-tdep.o): Likewise.
7451
3379287a
JT
74522002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7453
7454 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7455 to here...
7456 * alpha-tdep.c: ...from here.
7457 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7458
4bcbd6cb
JT
74592002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7460
7461 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7462 prototype from here...
7463 * alpha-tdep.h: ...to here.
7464
b31da25e
AC
74652002-04-21 Andrew Cagney <ac131313@redhat.com>
7466
7467 * frame.h (selected_frame_level): Document as deprecated.
7468 (frame_relative_level): Declare.
7469 * stack.c (frame_relative_level): New function.
7470 (selected_frame_level): Document as deprecated.
7471 (select_frame): Do not set the selected_frame_level.
7472
7473 * stack.c (frame_info, record_selected_frame): Update.
7474 (frame_command, current_frame_command): Update.
7475 (up_silently_base, up_command, down_silently_base): Update.
7476 (down_command): Update.
7477 * inflow.c (kill_command): Update.
7478 * tracepoint.c (finish_tfind_command): Update.
7479 * corelow.c (core_open): Update.
7480 * thread.c (info_threads_command): Update.
7481 (do_captured_thread_select): Update.
7482 * infcmd.c (finish_command): Update.
7483 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7484
9c1d6fe5
JT
74852002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7486
7487 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7488
ab89facf
AC
74892002-04-21 Andrew Cagney <ac131313@redhat.com>
7490
7491 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7492 type const.
7493
82a4efa1
JT
74942002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7495
7496 * alphafbsd-tdep.c: Update copyright years. Include
7497 alpha-tdep.h.
7498 (alphafbsd_use_struct_convention): Make static.
7499 (alphafbsd_init_abi): New function.
7500 (_initialize_alphafbsd_tdep): New function.
7501 * config/alpha/tm-fbsd.h: Update copyright years.
7502 (USE_STRUCT_CONVENTION): Remove.
7503
44dffaac
JT
75042002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7505
7506 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7507 an Alpha ABI variant.
7508 (alpha_abi_handler_list): Declare.
7509 (alpha_gdbarch_register_os_abi): New function.
7510 (alpha_gdbarch_init): Give registered ABI variant handlers a
7511 chance to tweak the gdbarch once we have set up defaults.
7512 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7513
65585be4
JT
75142002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7515
7516 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7517 to standard_coerce_float_to_double.
7518 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7519
d9b023cc
JT
75202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7521
7522 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7523 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7524 from gdbarch_tdep rather than a constant.
7525 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7526 the default text address for all Alpha Unix ABIs.
7527 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7528 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7529
dc129d82
JT
75302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7531
7532 * alpha-tdep.h: New file. Includes several Alpha target constants
7533 taken from...
7534 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7535 let gdbarch deal with.
7536 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7537 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7538 to dependency list.
7539 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7540 Alpha target register names.
7541 * alphabsd-nat.c: Likewise.
7542 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7543 Alpha target register names. Make serveral routines static.
7544 (alpha_get_saved_register): New function.
7545 (alpha_abi_names): New.
7546 (process_note_abi_tag_sections): New function.
7547 (get_elfosabi): New function.
7548 (alpha_gdbarch_init): New function.
7549 (alpha_dump_tdep): New function.
7550 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7551
d49d1e0a
AC
75522002-04-21 Andrew Cagney <ac131313@redhat.com>
7553
7554 * frame.c (find_saved_register): Delete #ifdef
7555 HAVE_REGISTER_WINDOWS code.
7556 * config/sparc/tm-sparc.h: Update comments.
7557 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7558
92e8c9ed
AC
75592002-04-21 Andrew Cagney <ac131313@redhat.com>
7560
7561 * i960-tdep.c (i960_find_saved_register): New function.
7562 (i960_get_saved_register): New function.
7563 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7564 (i960_get_saved_register): Declare.
7565 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7566
e1925118
DM
75672002-04-20 David S. Miller <davem@redhat.com>
7568
7569 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7570
29673b29
AC
75712002-04-20 Andrew Cagney <ac131313@redhat.com>
7572
7573 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7574 instead of NUM_PSEUDO_REGS.
7575
6c86dcd5
DM
75762002-04-20 David S. Miller <davem@redhat.com>
7577
7578 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7579 GDB_MULTI_ARCH_PARTIAL
7580 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7581 define, let tm-sp64.h do it.
7582
aa40ec90
JT
75832002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7584
7585 * frame.c (find_saved_register): Avoid a NULL pointer
7586 dereference and actually walk the frame list.
7587
0f79675b
AC
75882002-04-20 Andrew Cagney <ac131313@redhat.com>
7589
7590 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7591 sorted in most most-recent-used order. Document.
7592 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7593
f91305dd 75942002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
7595
7596 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7597 instead of ->prev.
7598 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7599 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7600 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7601 instead of ->prev.
7602
73d322b1
EZ
76032002-04-19 Elena Zannoni <ezannoni@redhat.com>
7604
7605 Fix PR gdb/471.
7606 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7607 (build_builtin_type_vec128): Ditto.
7608 (append_composite_type_field): Fix calculation of type length in
7609 union case.
7610
ccd9a834
EZ
76112002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7612
7613 * config/djgpp/README: Update.
7614
7615 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7616 compiler warnings.
7617
a57f9e49
JT
76182002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7619
7620 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7621 (alpha_setup_arbitrary_frame): ...to this.
7622 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7623 for alpha_setup_arbitrary_frame.
7624
f4f9705a
AC
76252002-04-18 Andrew Cagney <cagney@redhat.com>
7626
7627 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7628 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 7629
f4f9705a
AC
7630 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7631 * target.h (memory_breakpoint_from_pc): Update declaration.
7632 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7633
7634 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7635 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7636 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7637 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7638 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7639 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7640 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7641 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7642 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7643 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7644 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7645 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7646
7647 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7648 const pointer.
7649 * monitor.c (monitor_insert_breakpoint): Ditto.
7650 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7651
7652 * config/mcore/tm-mcore.h: Update copyright.
7653 * mem-break.c: Ditto.
7654 * xstormy16-tdep.c: Ditto.
7655
29f319b8
PM
76562002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7657
7658 * p-exp.y: Add precedence rule for '^' token.
7659 This removes the shift/reduce conflicts.
7660 Remove the comment concerning these shift/reduce conflicts.
7661
ebeac11a
EZ
76622002-04-18 Elena Zannoni <ezannoni@redhat.com>
7663
7664 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7665 (registers_powerpc_nofp): New register set for processors
7666 without floating point unit.
7667
27c31547
DM
76682002-04-18 David S. Miller <davem@redhat.com>
7669
7670 * MAINTAINERS: Add myself to write-after-approval.
7671
47a73475
MS
76722002-04-17 Michael Snyder <msnyder@redhat.com>
7673
7674 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7675
953836b2
AC
76762002-04-17 Andrew Cagney <ac131313@redhat.com>
7677
7678 * rs6000-tdep.c (frame_initial_stack_address): Use
7679 frame_register_read to read the alloca_reg.
7680
8b0d4340
AC
76812002-04-17 Andrew Cagney <ac131313@redhat.com>
7682
7683 * frame.c (find_saved_register): Find saved registers in the next
7684 not prev frame.
7685 Fix PR gdb/365.
7686
d8864532
AC
76872002-04-17 Andrew Cagney <ac131313@redhat.com>
7688
7689 * gdbarch.sh (LANG): Set to ``c''.
7690
36cc83a3 76912002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 7692
36cc83a3 7693 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 7694
2f4150cc 76952002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
7696
7697 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7698 Update copyright.
7699
628703c6 7700 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 7701 Also fix PR gdb/391.
361d1df0 7702
56157b4a
AC
77032002-04-14 Andrew Cagney <ac131313@redhat.com>
7704
7705 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7706 * aclocal.m4, configure: Re-generate.
7707 Fix PR gdb/391.
361d1df0 7708
6d1e3329
EZ
77092002-04-14 Elena Zannoni <ezannoni@redhat.com>
7710
7711 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7712 instead of tm_print_insn.
7713
cb06fa07
EZ
77142002-04-14 Elena Zannoni <ezannoni@redhat.com>
7715
7716 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7717
f208ba17
AC
77182002-04-14 Andrew Cagney <ac131313@redhat.com>
7719
7720 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7721 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7722 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7723
20f01a46
DH
77242002-04-12 Don Howard <dhoward@redhat.com>
7725
7726 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7727 max_user_call_depth.
7728 (init_cmd_lists): Initialize the new value;
7729 * cli/cli-script.c (execute_user_command): Limit the call depth of
7730 user defined commands. This avoids a core-dump when user commands
7731 are infinitly recursive.
7732
a88376a3
KB
77332002-04-12 Kevin Buettner <kevinb@redhat.com>
7734
7735 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7736 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7737 from tdep struct instead of DEFAULT_LR_SAVE.
7738 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7739 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7740 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7741
f2172603
MS
77422002-04-12 Michael Snyder <msnyder@redhat.com>
7743
694f61fb 7744 * Remote.c: Spelling fix.
20fe79c8
MS
7745 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7746 If no symbol found for "sbrk", try "_sbrk".
7747 (make_output_phdrs): Use bfd_section_name.
7748 (gcore_copy_callback): Use bfd_section_name.
62995fc4 7749 * eval.c: Indentation fix-ups.
169a7369
MS
7750 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7751 in case it gets applied to an address that is already
7752 in the instruction space.
de74f71f
MS
7753 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7754 * symfile.c: Fix indentation, long lines.
f2172603
MS
7755 * source.c: White space fix-up.
7756
cda5a58a
AC
77572002-04-12 Andrew Cagney <cagney@redhat.com>
7758
7759 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7760 * frame.c (frame_register_read): New function. Return non-zero on
7761 success.
7762 (read_relative_register_raw_bytes_for_frame): Delete.
7763 (read_relative_register_raw_bytes): Delete.
7764 * frame.h (frame_register_read): Declare.
7765 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7766 * sh-tdep.c: Ditto.
7767 * infcmd.c (do_registers_info): Ditto.
7768 * hppa-tdep.c: Ditto.
7769 * rs6000-tdep.c: Ditto.
7770 * h8500-tdep.c: Ditto.
7771 * mips-tdep.c: Ditto.
7772 * h8300-tdep.c: Ditto.
7773 * z8k-tdep.c: Ditto.
7774
2ea5f656
KB
77752002-04-12 Kevin Buettner <kevinb@redhat.com>
7776
7777 From Jimi X <jimix@watson.ibm.com>:
7778 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7779 64-bit SysV ABI.
7780
27b15785
KB
77812002-04-12 Kevin Buettner <kevinb@redhat.com>
7782
7783 From Jimi X <jimix@watson.ibm.com>:
7784 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7785 bfd info.
7786
5d57ee30
KB
77872002-04-12 Kevin Buettner <kevinb@redhat.com>
7788
7789 From Jimi X <jimix@watson.ibm.com>:
7790 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7791 register sets for these processor variants.
7792
bc1e36ca
DJ
77932002-04-11 Daniel Jacobowitz <drow@mvista.com>
7794
bc1e36ca
DJ
7795 * regformats/reg-ppc.dat: Support FPSCR.
7796
e3f36dbd
KB
77972002-04-11 Kevin Buettner <kevinb@redhat.com>
7798
7799 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7800 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7801 Add fpscr as an invalid/unfetchable register.
7802 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7803 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7804 (fill_fpregset): Add support for register fpscr.
7805 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7806 (fill_gregset): Account for the fact that register ``mq'' might
7807 not exist.
7808 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7809 (registers_power): Add fpscr to register set at slot 71.
7810 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7811 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7812
943c9c25
MS
78132002-04-11 Michael Snyder <msnyder@redhat.com>
7814
7815 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7816 * configure: Regenerate.
7817 * config.in: Regenerate.
7818 * acconfig.h: Add define for _SYSCALL32.
7819 * core-sol2.c: Remove #define _SYSCALL32.
7820 * solib-legacy.c: Remove #define _SYSCALL32.
7821
d8c0a2e7
AC
78222002-04-10 Andrew Cagney <ac131313@redhat.com>
7823
7824 * stack.c (select_frame): Cleanup internal error message, do not
7825 use %p.
7826
7cc19214
AC
78272002-04-10 Andrew Cagney <ac131313@redhat.com>
7828
7829 * stack.c (select_frame): Check that selected_frame and the
7830 specified level are as expected.
7831 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7832 Update copyright.
7833 * frame.h (struct frame_info): Add field `level'. Update
7834 copyright.
7835 Work-in-progress PR gdb/464.
7836
67a2b77e
AC
78372002-04-10 Andrew Cagney <ac131313@redhat.com>
7838
7839 * maint.c (maint_print_section_info): Rename print_section_info.
7840 (print_bfd_section_info, print_objfile_section_info): Update.
7841 * inferior.h (struct gdbarch): Add opaque declaration.
7842 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7843 * gdbarch.h: Regenerate.
7844
8cfda98c
ML
78452002-04-10 Michal Ludvig <mludvig@suse.cz>
7846
7847 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7848 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7849 (kernel_u_size): Added.
7850 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7851 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7852
ca439ad2 78532002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 7854
ca439ad2
JI
7855 * valarith.c (find_size_for_pointer_math): New function, either returns
7856 the size for a pointer's target, returns 1 for void *, or errors for
7857 incomplete types.
7858 (value_add, value_sub): use find_size_for_pointer_math.
7859
2f2893d9
DJ
78602002-04-09 Daniel Jacobowitz <drow@mvista.com>
7861
7862 * linux-low.c (linux_look_up_symbols): New hook.
7863 (linux_target_ops): Add linux_look_up_symbols.
7864 * remote-utils.c (decode_address): New function.
7865 (look_up_one_symbol): New function.
7866 * server.c (handle_query): Call target look_up_symbols hook.
7867 * server.h (look_up_one_symbol): Add prototype.
7868 * target.h (struct target_ops): Add look_up_symbols hook.
7869
96cb11df
AC
78702002-04-09 Andrew Cagney <ac131313@redhat.com>
7871
7872 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7873 override FP_REGNUM with frame->fp. Update copyright.
7874 * parse.c (num_std_regs, std_regs): Delete.
7875 (target_map_name_to_register): Do not search std_regs. Update
7876 function description.
7877 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7878 declarations. Update copyright.
7879 Fix PR gdb/251.
361d1df0 7880
97658e92
DJ
78812002-04-09 Daniel Jacobowitz <drow@mvista.com>
7882
7883 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7884 after the last symbol in a block.
7885
6044e3eb
PM
78862002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7887
7888 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7889 is non zero as a found symbol.
7890
0406ec40
AC
78912002-04-08 Andrew Cagney <ac131313@redhat.com>
7892
7893 * findvar.c: Include "builtin-regs.h".
7894 (value_of_register): Call value_of_builtin_reg when applicable.
7895 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7896 (target_map_name_to_register): Call
7897 builtin_reg_map_name_to_regnum.
7898 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7899 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7900 (builtin_regs_h): Define.
7901 (builtin-regs.o): New target.
7902 (findvar.o): Add $(builtin_regs_h).
7903 * builtin-regs.c, builtin-regs.h: New files.
7904 * std-regs.c: New file.
7905 Partial fix for PR gdb/251.
7906
56a6dfb9
KB
79072002-04-08 Kevin Buettner <kevinb@redhat.com>
7908
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7910 it's no longer required.
7911
3a808432
AC
79122002-04-08 Andrew Cagney <ac131313@redhat.com>
7913
7914 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7915
7c40d541
KB
79162002-04-08 Kevin Buettner <kevinb@redhat.com>
7917
7918 From Jimi X <jimix@watson.ibm.com>:
7919 * rs6000-tdep.c (rs6000_software_single_step): Use
7920 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7921 and size. Use target_insert_breakpoint() and
7922 target_remove_breakpoint() to insert and remove breakpoints
7923 instead of explicit memory reads and writes.
7924
cc9836a8
KB
79252002-04-08 Kevin Buettner <kevinb@redhat.com>
7926
7927 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7928 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7929 ELF_OBJECT_FORMAT ifdef.
7930
7495d1dc
KB
79312002-04-08 Kevin Buettner <kevinb@redhat.com>
7932
7933 From Jimi X <jimix@watson.ibm.com>:
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7935
4288e836
KB
79362002-04-08 Kevin Buettner <kevinb@redhat.com>
7937
7938 From Jimi X <jimix@watson.ibm.com>:
7939 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7940 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7941
a4e4e501
MK
79422002-04-07 Mark Kettenis <kettenis@gnu.org>
7943
7944 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7945 s/asprintf/xasprintf/.
7946 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7947
006defba
AC
79482002-04-07 Andrew Cagney <ac131313@redhat.com>
7949
7950 I believe Jeff Law denies responsability for this one:
7951 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7952 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7953 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7954 Work-around for PR gdb/366.
7955
7aa83cac
EZ
79562002-04-07 Elena Zannoni <ezannoni@redhat.com>
7957
7958 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7959 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7960 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7961
cf1fcca1
EZ
79622002-04-07 Elena Zannoni <ezannoni@redhat.com>
7963
7964 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7965 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7966 information.
7967
3f289e6f
AC
79682002-04-07 Andrew Cagney <ac131313@redhat.com>
7969
7970 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7971 maintainer.
7972
129188f6
AC
79732002-04-07 Andrew Cagney <ac131313@redhat.com>
7974
7975 * README (Reporting Bugs in GDB): Document the bug web page as the
7976 prefered way of submitting bugs.
7977 Fix PR gdb/402.
7978
1200cd6e
AC
79792002-04-06 Andrew Cagney <ac131313@redhat.com>
7980
7981 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7982 -1. Update comment.
7983 * gdbarch.h, gdbarch.c: Re-generate.
7984
2853c33c
AS
79852002-04-07 Andreas Schwab <schwab@suse.de>
7986
7987 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7988 buffer to regcache_collect.
7989
c2169756
AC
79902002-04-06 Andrew Cagney <ac131313@redhat.com>
7991
7992 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7993 * gdbarch.c, gdbarch.h: Re-generate.
7994
25f1b008
AC
79952002-04-06 Andrew Cagney <ac131313@redhat.com>
7996
7997 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7998 declaration. Fix -Werror.
7999
59263426
DJ
80002002-04-05 Daniel Jacobowitz <drow@mvista.com>
8001
8002 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
8003 * gdbarch.c: Regenerate.
8004
f5db4da3
MS
80052002-04-05 Michael Snyder <msnyder@redhat.com>
8006
80f8a6eb
MS
8007 * breakpoint.c (clear_command): Rewrite middle section to
8008 combine two loops with identical control conditions.
8009 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
8010 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
8011
ad3dcc5c
L
80122002-04-05 H.J. Lu (hjl@gnu.org)
8013
8014 * solib-svr4.c (bkpt_names): Add "__start".
8015
f32e7a74
AC
80162002-04-04 Andrew Cagney <ac131313@redhat.com>
8017
8018 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
8019 as test for 64 bit target.
8020
8227c0ff
AC
80212002-04-05 Andrew Cagney <ac131313@redhat.com>
8022
8023 * h8500-tdep.c (h8500_write_fp): Delete function.
8024 * dwarf2cfi.c (cfi_write_fp): Document as not used.
8025 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
8026 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
8027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
8028 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
8029 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
8030 (s390_write_fp):
8031 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
8032 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
8033 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
8034 (d10v_write_fp): Delete function.
8035 * inferior.h (write_fp, generic_target_write_fp): Delete
8036 declarations.
8037 * regcache.c (generic_target_write_fp): Delete function.
8038 (write_fp): Delete function.
8039 * gdbarch.sh (TARGET_WRITE_FP): Delete.
8040 * gdbarch.h, gdbarch.c: Regenerate.
8041 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
8042 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
8043 (sparc64_write_fp): Delete declaration.
8044 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
8045 (h8500_write_fp): Delete declaration.
8046
2757dd86
AC
80472002-04-04 Andrew Cagney <ac131313@redhat.com>
8048
8049 * sparc-tdep.c (sparc64_write_fp): Delete.
8050 (sparc_push_dummy_frame): Replace write_fp call with code to store
8051 the FP directly.
8052 (sparc_gdbarch_init): Do not initialize write_fp.
8053
c69255e1
KB
80542002-04-05 Kevin Buettner <kevinb@redhat.com>
8055
8056 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
8057 clause.
8058
ae767bfb
JB
80592002-03-29 Jim Blandy <jimb@redhat.com>
8060
8061 * stack.c (get_selected_block): Add new argument `addr_in_block',
8062 used to return the exact code address we used to select the block,
8063 not just the block.
8064 * blockframe.c (get_frame_block, get_current_block): Same.
8065 * frame.h (get_frame_block, get_current_block,
8066 get_selected_block): Update declarations.
8067 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
8068 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
8069
84d2ac95
MS
80702002-04-05 Michael Snyder <msnyder@redhat.com>
8071
8072 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
8073 warning message.
8074
596aa3bf
JB
80752002-04-05 J. Brobecker <brobecker@gnat.com>
8076
8077 * utils.c (xfullpath): New function.
8078 * defs.h (xfullpath): Add declaration.
8079 * source.c (openp): Use xfullpath in place of gdb_realpath to
8080 avoid resolving the basename part of filenames when the
8081 associated file is a symbolic link. This fixes a potential
8082 inconsistency between the filenames known to GDB and the
8083 filenames it prints in the annotations.
8084 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
8085 to be able to match a filename with either the real filename, or
8086 the name of any symbolic link to this file.
8087 (lookup_partial_symtab): Ditto.
8088
c02f5703
MS
80892002-04-04 Michael Snyder <msnyder@redhat.com>
8090
8091 * breakpoint.c: Add support for hardware breakpoints in overlays.
8092 (overlay_events_enabled): New state variable.
8093 (insert_breakpoints): Use overlay_events_enabled to decide
8094 whether to attempt to set a breakpoint at the overlay load addr.
8095 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8096 (remove_breakpoint): Use overlay_events_enabled to decide
8097 whether breakpoints need to be removed from overlay load addr.
8098 Handle bp_hardware_breakpoint as well as bp_breakpoint.
8099 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 8100 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
8101 disable_overlay_breakpoints): Update overlay_events_enabled.
8102
5fb290d7
DJ
81032002-04-04 Daniel Jacobowitz <drow@mvista.com>
8104
8105 * dwarf2read.c (struct function_range): New.
8106 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
8107 (check_cu_functions): New.
8108 (read_file_scope): Initialize global function lists.
8109 Call dwarf_decode_line after processing children.
8110 (read_func_scope): Add to global function list.
8111 (dwarf_decode_lines): Call check_cu_functions everywhere
8112 record_line is called. Call record_line with a linenumber
8113 of 0 to mark sequence ends.
8114
7b3fabf0
ML
81152002-04-04 Michal Ludvig <mludvig@suse.cz>
8116
361d1df0 8117 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
8118 change sync with glibc.
8119
bce58c09
JB
81202002-04-03 Jim Blandy <jimb@redhat.com>
8121
8122 * configure.in: Call AC_C_INLINE.
8123 * configure: Regenerated.
361d1df0 8124
2fccf04a
DJ
81252002-04-01 Daniel Jacobowitz <drow@mvista.com>
8126
8127 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
8128 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
8129
2d1bfe2e
MK
81302002-03-31 Mark Kettenis <kettenis@gnu.org>
8131
a5941fbf
MK
8132 * NEWS: Mention gcore support on FreeBSD/i386.
8133
a90cd31d
MK
8134 * fbsd-proc.c: New file.
8135 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
8136 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
8137
2d1bfe2e
MK
8138 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
8139 while statement.
8140
9eb6e5a1
JB
81412002-03-29 Jim Blandy <jimb@redhat.com>
8142
8143 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
8144 unescaped newlines in string literals, but newer ones don't. So
8145 escape them.
8146
f02df580
MS
81472002-03-26 Michael Snyder <msnyder@redhat.com>
8148 Andrew Cagney <cagney@redhat.com>
8149
361d1df0 8150 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
8151 restore file to memory.
8152 * cli/cli-dump.h: New file.
8153 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 8154 * NEWS: Mention new commands.
f02df580 8155
109f874e
MS
81562002-03-28 Michael Snyder <msnyder@redhat.com>
8157
8158 * symfile.c (symbol_file_add): Move test for null symbols to later.
8159
520f6ade
AC
81602002-03-27 Andrew Cagney <ac131313@redhat.com>
8161
8162 From veksler at il.ibm.com:
8163 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
8164 the xstrduped original path.
8165 Fix PR gdb/417.
8166
d4654627
MS
81672002-03-27 Michael Snyder <msnyder@redhat.com>
8168
8169 * breakpoint.c (_initialize_breakpoint): Clean up help string.
8170 * infcmd.c (_initialize_infcmd): Ditto.
8171 * language.c (_initialize_language): Ditto.
8172 * symfile.c (_initialize_symfile): Ditto.
8173 * top.c (_init_main): Ditto.
8174 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8175
6be8bc0c
EZ
81762002-03-27 Elena Zannoni <ezannoni@redhat.com>
8177
8178 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
8179 vector registers handling.
8180 (skip_prologue): Handle new AltiVec instructions. Fill in new
8181 fields of frame data.
8182 (frame_get_saved_regs): Fill in information for AltiVec registers.
8183
12af6855
JB
81842002-03-27 Jim Blandy <jimb@redhat.com>
8185
8186 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
8187 a function; leave this macro here to invoke that function.
8188 (symbol_init_mangled_name): Declaration for that function.
8189 * symtab.c (symbol_init_mangled_name): New function.
8190
dc672865
AC
81912002-03-27 Andrew Cagney <ac131313@redhat.com>
8192
8193 * valarith.c: Replace strerror with safe_strerror.
8194 * tracepoint.c: Ditto.
8195 * lin-lwp.c: Ditto.
8196 * go32-nat.c: Ditto.
8197 * inflow.c: Ditto.
8198 * gnu-nat.c: Ditto.
8199
d96429cd
AS
82002002-03-27 Andreas Schwab <schwab@suse.de>
8201
8202 * event-top.c (command_line_handler): Remove useless if.
8203
7e336ba1
AJ
82042002-03-27 Andreas Jaeger <aj@suse.de>
8205
8206 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
8207 comment.
8208
de220d0f
ML
82092002-03-27 Michal Ludvig <mludvig@suse.cz>
8210
8211 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
8212 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
8213 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
8214 (x86_64_linux_dr_get_status, supply_gregset),
8215 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
8216 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
8217 (x86_64_register_info_table): Add.
8218 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
8219 (x86_64_register_raw_size, x86_64_register_virtual_type),
8220 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
8221 general x86_64_register_info_table.
8222 (i386_gdbarch_init): gdbarch_register_bytes is now set
8223 dynamicaly during initialization.
8224 * regformats/reg-x86-64.dat: Synced with changes to registers above.
8225 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 8226
0e98d0a7
DJ
82272002-03-27 Daniel Jacobowitz <drow@mvista.com>
8228
8229 * gdbserver/server.c (main): Call target_signal_to_host_p
8230 and target_signal_to_host on signals received from the remote.
8231 * gdbserver/remote-utils.c (prepare_resume_reply): Call
8232 target_signal_from_host on signals sent to the remote.
8233 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
8234 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
8235
3130066b
DJ
82362002-03-27 Daniel Jacobowitz <drow@mvista.com>
8237
8238 * signals/signals.c: Include "server.h" in gdbserver build.
8239 (target_signal_from_name): Don't use STREQ.
8240 (_initialize_signals): Likewise. Don't include function in
8241 gdbserver build.
8242
9aedf4f4
DJ
82432002-03-27 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * signals.c: Moved to...
8246 * signals/signals.c: Here.
7e336ba1 8247 * Makefile (signals.o): Update.
9aedf4f4 8248
3fa41cdb
JL
82492002-03-26 Jeff Law (law@redhat.com)
8250
8251 * somread.c (som_symtab_read): Remove some commented out code and
8252 updated related comments. Do not set the minimal symbol table to
8253 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
8254 in a dynamic executable.
8255 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
8256 where we are unable to find the minimal symbol for the given
8257 PC value.
8258
ee677e8d
MS
82592002-03-25 Jeff Law (law@redhat.com)
8260
8261 * linux-proc.c (read_mapping): Scan up to end of line for filename.
8262
e76e1718
ML
82632002-03-25 Michal Ludvig <mludvig@suse.cz>
8264
8265 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
8266
18a642a1
AC
82672002-03-23 Andrew Cagney <ac131313@redhat.com>
8268
8269 * command.h: Update copyright.
8270 (struct cmd_list_element): Replace definition with opaque
8271 declaration.
8272 (enum cmd_types): Document that it will eventually be moved to
8273 cli/cli-decode.h
8274 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
8275 (MALLOCED_REPLACEMENT): Delete macro.
8276 * Makefile.in (cli_decode_h): Add $(command_h).
8277 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 8278 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
8279 * completer.c: Include "cli/cli-decode.h".
8280 * maint.c: Include "cli/cli-decode.h".
8281 * cli/cli-decode.h: Include "command.h".
8282 (enum command_class): Delete.
8283 (enum cmd_types): Comment out.
8284 (enum cmd_auto_boolean): Delete.
8285 (enum var_types): Delete.
8286
b2875cc0
AC
82872002-03-23 Andrew Cagney <ac131313@redhat.com>
8288
8289 * cli/cli-decode.c: Include "gdb_assert.h".
8290 (add_set_or_show_cmd): New static function.
8291 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
8292 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
8293 all fields, such as func, from the set command.
8294
3b45974e
AC
82952002-03-23 Andrew Cagney <ac131313@redhat.com>
8296
8297 * MAINTAINERS (sh-elf): Change warning flag to -w.
8298
823ca731
AC
82992002-03-23 Andrew Cagney <cagney@redhat.com>
8300
8301 * defs.h (error): Add printf format attribute.
8302 * thread-db.c (thread_from_lwp): Fix error format string.
8303 * stack.c (parse_frame_specification): Ditto.
8304 * cli/cli-decode.c (undef_cmd_error): Ditto.
8305 * scm-lang.c (scm_lookup_name): Ditto.
8306 * tracepoint.c (trace_error): Ditto.
8307 * remote-utils.c (usage): Ditto.
8308 * remote.c (compare_sections_command): Ditto.
8309 Fix PR gdb/328.
8310
0e101458
AC
83112002-03-22 Andrew Cagney <ac131313@redhat.com>
8312
8313 * gdbtypes.c (append_composite_type_field): New function.
8314 (init_composite_type): New function.
8315 * gdbtypes.h (append_composite_type_field): Declare.
8316 (init_composite_type): Ditto.
8317
8e0662df
EZ
83182002-03-22 Elena Zannoni <ezannoni@redhat.com>
8319
8320 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 8321 function.
8e0662df
EZ
8322 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
8323 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
8324 structure returning convention for SYSV ABI case, but not
8325 for GNU/Linux, FreeBSD, or NetBSD.
8326
3121eff0
DJ
83272002-03-22 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * symtab.h (lookup_block_symbol): Add mangled_name argument
8330 to prototype.
8331
8332 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
8333 with new mangled_name argument.
8334 * linespec.c (decode_line_1): Likewise.
8335 * valops (value_of_this): Likewise.
8336 * symtab.c (lookup_transparent_type): Likewise.
8337 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
8338 (lookup_symbol): If we are given a mangled name, pass it down
8339 to lookup_symbol_aux.
8340 (lookup_block_symbol): If we are given a mangled name to check
8341 against, only return symbols which match it.
8342
349b409f
CF
83432002-03-22 Christopher Faylor <cgf@redhat.com>
8344
8345 * win32-nat.c (child_create_inferior): Check for proper shell to use
8346 here, in case the user changes it on the fly.
8347 (_initialize_inftarg): Remove shell path considerations.
8348
2a873819
EZ
83492002-03-21 Elena Zannoni <ezannoni@redhat.com>
8350
8351 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
8352 for gdbarch_max_register_raw_size and max_register_virtual_size.
8353 Adjust copyright year.
8354
a1b9830c
DJ
83552002-03-21 Daniel Jacobowitz <drow@mvista.com>
8356
8357 * dbxread.c (process_one_symbol): Extend the first N_SLINE
8358 in a function to cover the entire beginning of the function
8359 as well if it does not already.
8360
8b5790f2
TR
83612002-03-21 Tom Rix <trix@redhat.com>
8362
8363 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
8364 (rs6000_ptrace64): Renamed from ptrace64.
8365
bdbe5747
MH
83662002-03-20 Martin M. Hunt <hunt@redhat.com>
8367
8368 * gdbserver/remote-utils.c (remote_open): Don't call
8369 getprotobyname, we're all using TCP here so just use
8370 IPPROTO_TCP.
7e336ba1 8371 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
8372
83732002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 8374
bdbe5747
MH
8375 * regcache.c (_initialize_regcache): No need to call
8376 build_regcache() at this time; it gets called whenever
8377 the gdbarch changes.
8378
7781cd62
DB
83792002-03-20 David O'Brien <obrien@FreeBSD.org>
8380
8381 * sparc-nat.c: Include sys/param.h where possible.
8382
f65ca430
DJ
83832002-03-20 Daniel Jacobowitz <drow@mvista.com>
8384
8385 Fix PR gdb/422.
8386 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
8387 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
8388 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
8389 complex types.
8390 * stabsread.c (rs6000_builtin_type): Likewise.
8391 (read_sun_floating_type): Likewise.
8392
0c867556
PS
83932002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8394
8395 * stabsread.c (read_member_functions): Remove skip code for duplicate
8396 constructor/destructor methods. Use standard parsing for these
8397 methods and just do not chain them to the list of methods after
8398 parsing.
8399
12b9c64f
AO
84002002-03-19 Alexandre Oliva <aoliva@redhat.com>
8401
8402 * coffread.c: Remove redundant static declarations. Replace
8403 occurrences of `PTR' with `void *'.
8404 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
8405 * top.h (quit_cover): Likewise.
8406 * defs.h (catch_errors): Likewise.
8407
349c5d5f
AC
84082002-03-18 Andrew Cagney <ac131313@redhat.com>
8409
8410 * defs.h (XMALLOC): Define.
8411 * gdb-events.sh (XMALLOC): Delete macro.
8412 * gdb-events.c, gdb-events.h: Regenerate.
8413 * gdbarch.sh (XMALLOC): Delete macro.
8414 * gdbarch.c: Regenerate.
8415 * serial.c (XMALLOC): Delete macro.
8416 * ui-file.c (XMALLOC): Ditto.
8417 * ser-unix.h (XMALLOC): Ditto.
8418 * sh-tdep.c (XMALLOC): Ditto.
8419 * ui-out.c (XMALLOC): Ditto.
8420 * utils.c (XMALLOC): Ditto.
8421 * i386-tdep.c (XMALLOC): Ditto.
8422 * gdb-events.c (XMALLOC): Ditto.
8423 * d10v-tdep.c (XMALLOC): Ditto.
8424 * cli-out.c (XMALLOC): Ditto.
8425
8426 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8427 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8428 * ui-file.c, ui-out.c: Ditto.
8429
7d0766f3
AC
84302002-03-18 Andrew Cagney <ac131313@redhat.com>
8431
8432 * command.h (struct cmd_list_element): Add field context.
8433 (set_cmd_context, get_cmd_context): Declare.
8434 * cli/cli-decode.h: Ditto.
8435 * cli/cli-decode.c (get_cmd_context): New function.
8436 (set_cmd_context): New function.
8437 (add_cmd): Initialize context.
8438 Part of fixing PR gdb/145 and PR gdb/146.
8439
5913bcb0
AC
84402002-03-17 Andrew Cagney <ac131313@redhat.com>
8441
1868c04e
AC
8442 * cli/cli-decode.c (cmd_type): New function.
8443 * command.h (cmd_type): Declare.
8444 * infrun.c (set_schedlock_func): Call function cmd_type.
8445 * kod.c (kod_set_os): Call cmd_type.
8446 * cris-tdep.c (cris_version_update): Use function cmd_type.
8447 (cris_mode_update, cris_abi_update): Ditto.
8448
5913bcb0
AC
8449 * command.h: (execute_cmd_post_hook): Declare.
8450 (execute_cmd_pre_hook): Declare.
8451 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8452 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8453 functions. Execute pre/post hook while ensuring that afterwords
8454 hook_in is cleared.
8455 * top.c (execute_command): Use execute_cmd_post_hook, and
8456 execute_cmd_pre_hook to execute pre/post commands.
8457 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8458 hook_stop_stub.
8459 (hook_stop_stub): Call execute_cmd_pre_hook.
8460
b51450c9
AC
84612002-03-17 Andrew Cagney <ac131313@redhat.com>
8462
8463 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8464 set'' and this leads to a core dump. Move xstrdup of
8465 operating_system to after check that it is not NULL.
8466
f66c9f11
AC
84672002-03-17 Andrew Cagney <ac131313@redhat.com>
8468
8e694ecf
AC
8469 * kod.c (kod_set_os): Remove unnecessary check that
8470 ``command->type'' is set_cmd.
8471
f66c9f11
AC
8472 * valprint.c (set_input_radix): Use input_radix.
8473 (set_output_radix): Use output_radix.
8474 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8475 isn't reverted.
8476
9d01611c
AC
84772002-03-16 Andrew Cagney <ac131313@redhat.com>
8478
8479 * value.h (struct value): Delete field ``substring_addr''. Change
8480 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
8481 force_core_addr_align and force_pointer_aligh.
8482
8483 * value.h (struct value): Fix typo in above change.
9d01611c 8484
4156bb53
PS
84852002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8486
8487 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8488 to fix internal_error from ``maintenance print architecture''.
8489
0e5e3ea6
PS
84902002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8491
8492 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8493 for gcc versions after gcc-2.8.1.
8494
9b013045
PS
84952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8496
8497 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8498 for method resolution. Restore adjustment of ``this'' pointer after
8499 calling value_struct_elt, which was accidentally removed during the
8500 HP merge.
8501
376c9600
AC
85022002-03-15 Andrew Cagney <ac131313@redhat.com>
8503
8504 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8505 value_of_register.
8506 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8507 get_saved_register.
8508 * value.h (value_of_register): Update.
8509
a4db0f07
RH
85102002-03-14 Richard Henderson <rth@redhat.com>
8511
8512 * configure.in: Detect declaration for canonicalize_file_name.
8513 * utils.c (canonicalize_file_name): Declare, if needed.
8514 (gdb_realpath): Prefer realpath if available and usable.
8515 * config.in, configure: Rebuild.
8516
96383835
RH
85172002-03-14 Richard Henderson <rth@redhat.com>
8518
8519 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8520 a constant array bound.
8521
8522 * MAINTAINERS: Add myself to write-after-approval.
8523
75245b24
MS
85242002-03-14 Michael Snyder <msnyder@redhat.com>
8525
8526 * symfile.c (syms_from_objfile): Return immediately if no syms.
8527 (symbol_file_add): Return immediately if no syms.
8528 (find_sym_fns): Return immediately if no syms.
8529
e641a1ca
ML
85302002-03-13 Michal Ludvig <mludvig@suse.cz>
8531
8532 * gdbserver/remote-util.c (remote_open): Print remote-side's
8533 IP address when remote debugging over the network.
7e336ba1 8534
df08bfec
DB
85352002-03-12 David O'Brien <obrien@FreeBSD.org>
8536
8537 * config/sparc/fbsd.mh: Fix copyright.
8538 * config/sparc/fbsd.mt: Likewise.
8539
9a57864f
RE
85402002-03-11 Richard Earnshaw <rearnsha@arm.com>
8541
8542 * MAINTAINERS: Fix typo in name of gdb warnings option.
8543 (x86-64): Fix formating so that this can be parsed by awk.
8544
dd7bf85e
DJ
85452002-03-10 Daniel Jacobowitz <drow@mvista.com>
8546
8547 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8548 * defs.h: Include "gdb/signals.h".
8549 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8550
33a0a2ac
ML
85512002-03-10 Michal Ludvig <mludvig@suse.cz>
8552
8553 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 8554 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
8555 from x86-64-tdep.h
8556
dd824b04
DJ
85572002-03-10 Daniel Jacobowitz <drow@mvista.com>
8558 Don Howard <dhoward@redhat.com>
8559
8560 * mips-tdep.c (ST0_FR): Define.
8561 (mips2_fp_compat): New function, temporarily disabled.
8562 (mips_read_fp_register_single): New function.
8563 (mips_read_fp_register_double): New function.
8564 (mips_print_register): Use them.
8565 (do_fp_register_row): Likewise.
8566
6a41ff59
AC
85672002-03-09 Andrew Cagney <ac131313@redhat.com>
8568
8569 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8570 approval''.
8571
4ea09c10
PS
85722002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8573
8574 * stabsread.c (read_member_functions): Fix is_stub test for
8575 static member functions, improve comment.
8576
6ccc741d
RE
85772002-03-07 Richard Earnshaw <rearnsha@arm.com>
8578
8579 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8580 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8581 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8582 commands that set boolean values.
8583 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8584 (arm_rdi_resume): Always initialize PC.
8585 (arm_rdi_open): Don't use rslt as a boolean.
8586 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8587 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8588 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8589 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8590
438013df
AO
85912002-03-06 Alexandre Oliva <aoliva@redhat.com>
8592
8593 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8594 * configure: Rebuilt.
8595
70ed8774
SC
85962002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8597
8598 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8599 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8600
5ba2abeb
AC
86012002-03-06 Andrew Cagney <ac131313@redhat.com>
8602
8603 * cli/cli-decode.c (set_cmd_completer): New function.
8604 * command.h (set_cmd_completer): Declare.
8605 * cli/cli-decode.h (set_cmd_completer): Ditto.
8606
8607 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8608 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8609 * win32-nat.c (_initialize_inftarg): Ditto.
8610 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8611 * proc-api.c (_initialize_proc_api): Ditto.
8612 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8613 * source.c (_initialize_source): Ditto.
8614 * exec.c (_initialize_exec): Ditto.
8615 * solib.c (_initialize_solib): Ditto.
8616 * top.c (init_main): Ditto.
8617 * tracepoint.c (_initialize_tracepoint): Ditto.
8618 * symfile.c (_initialize_symfile): Ditto.
8619 * printcmd.c (_initialize_printcmd): Ditto.
8620 * infcmd.c (_initialize_infcmd): Ditto.
8621 * corefile.c (_initialize_core): Ditto.
8622
f779ca99
AC
86232002-03-05 Andrew Cagney <ac131313@redhat.com>
8624
8625 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8626
01a3934b
AC
86272002-03-05 Andrew Cagney <ac131313@redhat.com>
8628
8629 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8630
37057839
AC
86312002-03-05 Andrew Cagney <ac131313@redhat.com>
8632
8633 * NEWS: Update headings, 5.2 has branched.
8634
c6ecbae5
DJ
86352002-03-04 Daniel Jacobowitz <drow@mvista.com>
8636
8637 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8638 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8639 (register_addr, REGISTER_RAW_SIZE): Likewise.
8640 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8641 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8642
e9f30c21
ML
86432002-03-03 Michal Ludvig <mludvig@suse.cz>
8644
8645 * MAINTAINERS (x86-64): Add myself.
8646 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8647 changed value_ptr -> struct value *
8648
54394ac3
DB
86492002-03-01 David O'Brien <obrien@FreeBSD.org>
8650
8651 * configure.host (sparc64-*-freebsd): Add.
8652 * configure.tgt: Likewise.
8653 * config/sparc/fbsd.mh: New file.
8654 * config/sparc/fbsd.mt: Likewise.
8655 * config/sparc/nm-fbsd.h: Likewise.
8656 * config/sparc/tm-fbsd.h: Likewise.
8657
bfe95955
DJ
86582002-03-01 Daniel Jacobowitz <drow@mvista.com>
8659
8660 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8661 regformats/reg-s390x.dat.
8662
f33c6cbf
AC
86632002-03-01 Andrew Cagney <ac131313@redhat.com>
8664
8665 * utils.c: Add FIXME explaining true/false problem.
8666
5ecaa7dd
AC
86672002-02-28 Andrew Cagney <ac131313@redhat.com>
8668
8669 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8670
2a251cc2
MC
86712002-02-28 Michael Chastain <mec@shout.net>
8672
8673 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8674
6a8031a3 86752002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
8676
8677 * gdbserver/linux-s390-low.c: New file.
8678 * regformats/reg-s390.dat: New file.
8679 * regformats/reg-s390x.dat: New file.
8680 * gdbserver/configure.srv: Add S/390.
8681 * gdbserver/Makefile.in: Add S/390.
8682 * configure.tgt: Enable gdbserver for S/390.
8683
ac469903
EZ
86842002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8685
8686 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8687 first line of the doc string for "info dos", except at the end of
8688 the sentence, since the short help stops at the first period.
8689
985cb1a3
JM
86902002-02-28 Jason Merrill <jason@redhat.com>
8691
8692 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8693
c570663e
FF
86942002-02-27 Fred Fish <fnf@redhat.com>
8695
8696 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8697 comment (dumy -> dummy).
8698
43630227
PS
86992002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8700
8701 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8702
b84911e8
RB
87032002-02-27 Rodney Brown <rbrown64@csc.com.au>
8704
8705 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8706
58caa3dc
DJ
87072002-02-27 Daniel Jacobowitz <drow@mvista.com>
8708
8709 * gdbserver/acconfig.h: New file.
8710 * gdbserver/i387-fp.c: New file.
8711 * gdbserver/i387-fp.h: New file.
8712 * gdbserver/linux-x86-64.c: New file.
8713 * regformats/reg-x86-64.dat: New file.
8714 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8715 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8716 * gdbserver/configure.in: Add support for regsets.
8717 * gdbserver/config.in: Regenerate.
8718 * gdbserver/configure: Regenerate.
8719 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8720 * gdbserver/linux-low.h: New file.
8721 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8722 for regsets.
8723 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8724 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8725 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8726 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8727 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8728 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8729 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8730 "i387-fp.h". Add PTRACE_GETREGS and friends.
8731 * gdbserver/regcache.c (supply_register): New function.
8732 (supply_register_by_name): New function.
8733 (collect_register): New function.
8734 (collect_register_by_name): New function.
8735
93652174
DJ
87362002-02-27 Daniel Jacobowitz <drow@mvista.com>
8737
8738 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8739 (config.status): Add configure.srv dependency.
8740 (server_h): Add config.h dependency.
8741
a02e4a61
DJ
87422002-02-27 Daniel Jacobowitz <drow@mvista.com>
8743
8744 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8745 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8746 * gdbserver/configure.srv: Change i386-*-linux* to use
8747 reg-i386-linux.o.
8748
ce0eebec
AC
87492002-02-26 Andrew Cagney <ac131313@redhat.com>
8750
8751 * x86-64-tdep.c: Re-indent. Update copyright date.
8752
82dbc5f7
AC
87532002-02-26 Andrew Cagney <ac131313@redhat.com>
8754
8755 From Michal Ludvig <mludvig@suse.cz>:
8756 * x86-64-tdep.c (value.h): Delete.
8757 (gdb_assert.h): Include.
8758 (x86_64_register_convert_to_virtual,
8759 x86_64_register_convert_to_raw ): Add check which lets only
8760 floating-point values to be converted.
8761 (value_push): Delete.
8762 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8763 (i386_gdbarch_init): Number of register_bytes fixed.
8764
e4621584
AC
87652002-02-26 Andrew Cagney <ac131313@redhat.com>
8766
8767 * MAINTAINERS: Add x86-64 target.
8768
81a9a963
AC
87692002-02-26 Andrew Cagney <ac131313@redhat.com>
8770
8771 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8772 * osfsolib.c (solib_map_sections): Ditto.
8773 * irix5-nat.c (solib_map_sections): Ditto.
8774 * corelow.c (gdb_check_format): Ditto.
8775 * symfile.c (symfile_bfd_open): Ditto.
8776 * solib.c (solib_map_sections): Ditto.
8777 Fix PR gdb/354.
7e336ba1 8778
0f017ab9
AC
87792002-02-26 Andrew Cagney <ac131313@redhat.com>
8780
8781 * remote.c (_initialize_remote): By default, disable ``e'' and
8782 ``E'' step out-of-range packets.
8783
75738c29
AS
87842002-02-26 Andreas Schwab <schwab@suse.de>
8785
8786 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8787 m68k_linux_frame_saved_pc.
8788 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8789 in_sigtramp.
8790 (SIGCONTEXT_PC_OFFSET): Remove.
8791 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8792 m68k_linux_sigtramp_saved_pc): New functions.
8793 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8794 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8795 (UCONTEXT_PC_OFFSET): Define.
8796 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8797 non-RT and RT signal trampolines.
8798
7e8ed687
RE
87992002-02-26 Richard Earnshaw <rearnsha@arm.com>
8800
8801 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8802 (TARGET_NBPG, STACK_END_ADDR): Delete
8803 (VARIABLES_INSIDE_BLOCK): Delete.
8804
6972bc8b
AC
88052002-02-25 Andrew Cagney <ac131313@redhat.com>
8806
8807 * utils.c (perror_with_name): Make string parameter constant.
8808 (print_sys_errmsg): Ditto.
8809 (query): Ditto.
8810 * defs.h (perror_with_name): Update.
8811 (print_sys_errmsg): Update.
8812 (query): Update.
8813
aa32f823
DJ
88142002-02-25 Daniel Jacobowitz <drow@mvista.com>
8815
8816 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8817 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8818
19caaa45
PS
88192002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8820
8821 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8822 if it already matches the current architecture from the exec file.
8823 Include arch-utils.h for gdbarch_info_init prototype.
8824 * Makefile.in (rs6000-nat.o): Update dependencies.
8825
d951901f
EZ
88262002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8827
8828 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8829 list of exported variables.
8830
7ea81414
DJ
88312002-02-24 Daniel Jacobowitz <drow@mvista.com>
8832
8833 * gdbserver/configure.srv: New file.
8834 * gdbserver/configure.in: Use configure.srv instead
8835 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8836 from it.
8837 * gdbserver/configure: Regenerated.
8838 * gdbserver/terminal.h: New file.
8839 * gdbserver/Makefile.in: Update for configure changes. Remove
8840 more unneeded include paths.
8841
080fe24b
AC
88422002-02-24 Andrew Cagney <ac131313@redhat.com>
8843
8844 From wiz at danbala:
8845 * config/sparc/tm-sp64.h: Fix grammar and typos.
8846 Fix PR gdb/287.
8847
8605d56e
AC
88482002-02-24 Andrew Cagney <ac131313@redhat.com>
8849
8850 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
8851 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8852 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8853 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
8854 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8855 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8856 * s390-tdep.c: Ditto.
92362027
AC
8857 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8858 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8859 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8860 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8861 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8862 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8863 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8864 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8865 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8866 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 8867 Fix PR gdb/378.
7e336ba1 8868
8ed32cc0
AC
88692002-02-23 Andrew Cagney <ac131313@redhat.com>
8870
a3007b6f
AC
8871 * lin-thread.c: Delete file.
8872 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8873 to gdb_proc_service.h.
8874 * configure: Re-generate.
8875
50a9e2f1
AC
8876 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8877 * serial.c (serial_open): Delete check for "ocd".
8878 Fix PR gdb/349.
8879
8b6e7932
AC
8880 * Makefile.in (linux-thread.o): Delete target.
8881 * linux-thread.c: Delete file.
8882
d155c46b
AC
8883 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8884 renamed SH files to be consistent.
8885
8ed32cc0
AC
8886 * symtab.c (sort_search_symbols): Use xfree.
8887
0e18d038
RE
88882002-02-23 Richard Earnshaw <rearnsha@arm.com>
8889
8890 * arm-linux-tdep.c (arm_linux_init_abi): Register
8891 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8892 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8893 definition with undef, since we don't want the sysvr4 definition.
8894 (SKIP_TRAMPOLINE_CODE): Likewise.
8895
27aac7ff
AC
88962002-02-23 Andrew Cagney <ac131313@redhat.com>
8897
8898 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8899
8900 * configure.in: (AC_CHECK_FUNCS) Added test for
8901 canonicalize_file_name Regenerated.
8902 * config.in, configure: Regenerated.
8903 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8904 defined use canonicalize_file_name.
7e336ba1 8905
65a6e0ee
MC
89062002-02-23 Michael Chastain <mec@shout.net>
8907
8908 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8909
47b95330
AC
89102002-02-23 Andrew Cagney <ac131313@redhat.com>
8911
8912 * README: Remove references to cygnus.com.
8913 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8914 dot com'' form. Remove references to cygnus.com and sourceware.
8915
696f451b
AC
89162002-02-23 Andrew Cagney <ac131313@redhat.com>
8917
8918 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8919 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8920 1003.1-2001 no longer allows "head -1".
8921 * gdb/Makefile.in (version.c): Likewise.
8922 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8923 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8924 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8925
bbaca940
AC
89262002-02-23 Andrew Cagney <ac131313@redhat.com>
8927
8928 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8929 * command.h (cmd_cfunc_eq): Declare.
8930 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8931
8932 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8933 ``struct cmd_list_element *''.
8934 * cli/cli-cmds.c (is_complete_command): Update. Use
8935 cmd_cfunc_eq.
8936 * top.c (execute_command): Pass the command to
8937 is_complete_command.
8938 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8939
b8b8b047
AC
89402002-02-23 Andrew Cagney <ac131313@redhat.com>
8941
8942 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8943 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8944 architecture defines.
8945 * s390-tdep.c (s390_gdbarch_init): Likewise.
8946
19d3fc80
RE
89472002-02-23 Richard Earnshaw <rearnsha@arm.com>
8948
8949 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8950 (arm_linux_push_arguments): Likewise.
8951 (arm_linux_init_abi): Register them. Also register linux-specific
8952 call_dummy_words.
8953 (find_minsym_and_objfile): Use strcmp, not STREQ.
8954 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8955 (arm_linux_call_dummy_words): Delete declaration.
8956 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8957 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8958 declarations.
8959 (LOWEST_PC): Delete.
8960
3ab13650
PS
89612002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8962
8963 * maint.c (print_section_info): Do not prepend `0x' to filepos
8964 output, it will be handled by local_hex_string_custom.
8965
19d3fc80 89662002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
8967
8968 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8969 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8970 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8971
d85a5daf
JB
89722002-02-22 Jim Blandy <jimb@redhat.com>
8973
8974 Indicate that the bcache functions don't change the strings
8975 they're passed.
8976 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8977 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8978
eeb25b8a
PM
89792002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8980
8981 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8982
6badb179
CF
89832002-02-21 Christopher Faylor <cgf@redhat.com>
8984
8985 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8986 find the complete path to a loaded DLL.
8987
e8717518
FF
89882002-02-21 Fred Fish <fnf@redhat.com>
8989
8990 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8991 that marks the end of the range of a function, enter a line number
8992 entry that has a line number of zero and a PC offset that matches
8993 the end of the function. This starts a range of PC's for which no
8994 line number information is known.
8995 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8996 PC's for which no line number info is found (line number is zero)
8997 then we didn't find any valid line information.
8998 * symtab.h: Document use of zero line number entry.
8999
9abe5450
EZ
90002002-02-21 Elena Zannoni <ezannoni@redhat.com>
9001
9002 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
9003 (have_ptrace_getvrregs): Define for run time checks.
9004 (gdb_vrregset_t): New type for Altivec register handling.
9005 (fetch_register, store_register): Fetch/store altivec register
9006 when needed.
9007 (fetch_altivec_register, store_altivec_register): New functions.
9008 (supply_vrregset, fill_vrregset): New functions.
9009 (fetch_altivec_registers, store_altivec_registers): New functions.
9010 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
9011 registers as well.
9012
aaa38bb5
AJ
90132002-02-21 Jiri Smid <smid@suse.cz>
9014
9015 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
9016
b34db576
RE
90172002-02-21 Richard Earnshaw <rearnsha@arm.com>
9018
9019 * Makefile.in (armnbsd-nat.o): Update dependencies.
9020 * armnbsd-nat.c (supply_gregset): New function. Common code to
9021 supply the integer register set.
9022 (supply_fparegset): New function. Similar for FPA registers.
9023 (fetch_regs, fetch_fp_regs): Use them.
9024 (fetch_core_registers): Likewise.
9025 (fetch_elfcore_registers): New function.
9026 (arm_netbsd_elfcore_fns): New core-file type specification.
9027 (_initialize_arm_netbsd_nat): Register it.
9028
3e56fc4b
RE
90292002-02-21 Richard Earnshaw <rearnsha@arm.com>
9030
9031 * armnbsd-nat.c: Include gdbcore.h.
9032 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
9033 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
9034 'void' to declaration, to shut up ARI.
9035 (fetch_core_registers): Make static. Rewrite using supply_register.
9036 (arm_netbsd_core_fns): New core-file type specification.
9037 (_initialize_arm_netbsd_nat): New function.
9038
097f6b0b
CF
90392002-02-21 Christopher Faylor <cgf@redhat.com>
9040
9041 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
9042 value.
9043
c914e0cc
CF
90442002-02-20 Christopher Faylor <cgf@redhat.com>
9045
9046 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
9047 fails.
9048
385fa495
DJ
90492002-02-20 Daniel Jacobowitz <drow@mvista.com>
9050
9051 * jv-exp.y (parse_number): Change type of implicit longs
9052 to builtin_type_uint64.
9053
e5f1222d
DJ
90542002-02-20 Daniel Jacobowitz <drow@mvista.com>
9055
9056 * gdbserver/linux-low.c (mywait): Change argument to waitpid
9057 to be an integer instead of a `union wait'.
9058
75c9abc6
DJ
90592002-02-20 Daniel Jacobowitz <drow@mvista.com>
9060
9061 * mips-linux-nat.c: Call the operating system GNU/Linux.
9062 * mips-linux-tdep.c: Likewise.
9063 * mips-tdep.c: Likewise.
9064
551792a5
DJ
90652002-02-20 Daniel Jacobowitz <drow@mvista.com>
9066
9067 Fix PR gdb/265.
9068 * jv-exp.y (parse_number): Handle 64-bit integers.
9069
ee6e2b82
DJ
90702002-02-20 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
9073 AC_STDC_HEADERS to AC_HEADER_STDC.
9074 * gdbserver/configure: Regenerated.
9075
a48442a0
RE
90762002-02-20 Richard Earnshaw <rearnsha@arm.com>
9077
9078 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
9079 is defined.
9080 * sparc-tdep.c (get_longjmp_target): Likewise.
9081
fe419ffc
RE
90822002-02-20 Richard Earnshaw <rearnsha@arm.com>
9083
9084 * News: Add news about ARM and Multi-arch. Mention the new target
9085 arm*-*-netbsd*.
9086
5832ed7e
JB
90872002-02-19 Jim Blandy <jimb@redhat.com>
9088
9089 * stabsread.c (error_type_complaint): Improve error message.
9090
84563040
DJ
90912002-02-19 Daniel Jacobowitz <drow@mvista.com>
9092
9093 * gdbserver/README: Update documentation.
9094 * gdbserver/configure.in: Update configury to match documentation.
9095 * gdbserver/Makefile.in: Likewise.
9096 * gdbserver/configure: Regenerated.
9097 * gdbserver/aclocal.m4: New file, generated by aclocal.
9098 * gdbserver/config.in: New file, generated by autoheader.
9099
375fd65b
RE
91002002-02-19 Richard Earnshaw <rearnsha@arm.com>
9101
9102 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
9103 armnbsd-nat.c.
9104
08216dd7
RE
91052002-02-19 Richard Earnshaw <rearnsha@arm.com>
9106
9107 * arm-tdep.h (enum arm_float_model): New enum.
9108 (struct gdbarch_tdep): Add fp_model.
9109 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
9110 up floating-point conversions until we know the floating-point model
9111 in use by the inferior. Don't complain about being unable to
9112 determine the ABI of the inferior when we don't have one.
9113 (arm_extract_return_value): Support different floating-point models.
9114 (arm_store_return_value): Likewise.
aaa38bb5 9115 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
9116 ARM_FLOAT_SOFT.
9117 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
9118
65d6d66a
PS
91192002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9120
9121 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
9122 of ``current_gdbarch''.
9123
47221191
RE
91242002-02-19 Richard Earnshaw <rearnsha@arm.com>
9125
9126 * armnbsd-nat.c : ANSIfy all function declarations.
9127 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
9128 (fetch_inferior_registers): Re-implement in terms of above.
9129 (store_register, store_regs, store_fp_register, store_fp_regs): New.
9130 (store_inferior_registers): Re-implement in terms of above.
9131
fdf39c9a
RE
91322002-02-19 Richard Earnshaw <rearnsha@arm.com>
9133
aaa38bb5 9134 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
9135 kernel.
9136 * arm-linux-tdep.c: Likewise.
9137 * config/arm/tm-linux.h: Likewise.
9138
93247f88
RE
91392002-02-19 Richard Earnshaw <rearnsha@arm.com>
9140
9141 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
9142 * config/arm/nbsd.mt (TM_FILE): Delete.
9143 * config/arm/tm-nbsd.h: Delete.
9144
d7b486e7
RE
91452002-02-19 Richard Earnshaw <rearnsha@arm.com>
9146
9147 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
9148 Initialize CALL_DUMMY_LENGTH.
9149
41d39a95
RE
91502002-02-19 Richard Earnshaw <rearnsha@arm.com>
9151
9152 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
9153 function.
9154 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 9155 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
9156 defines one thing and that is incorrect for this port.
9157 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
9158
e1195560
PM
91592002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9160
9161 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
9162
c1748f97
PM
91632002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9164
9165 * win32-nat.c (display_selector): New function. Displays information
9166 about the information returned by GetThreadSelectorEntry API function.
9167 (display_selectors): New function. Displays the infomation of
9168 the selector given as argument, or of CS, DS ans FS selectors
9169 if no argument is given.
9170 ( _initialize_inftarg): Add "w32" as info prefix command.
9171 Add "info w32 selector" as command calling display_selectors.
9172
e41e6bbf
PM
91732002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
9174
9175 * i386-tdep.c (get_longjmp_target): Fix compilation failure
9176 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
9177 if not defined.
9178
0d3a9f48
RE
91792002-02-18 Richard Earnshaw <rearnsha@arm.com>
9180
9181 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
9182
3fb4b924
RE
91832002-02-18 Richard Earnshaw <rearnsha@arm.com>
9184
9185 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
9186 (arm_fix_call_dummy): Call it.
9187 (arm_call_dummy_breakpoint_offset): Delete.
9188 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
9189 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9190
7f55af32
AC
91912002-02-18 Andrew Cagney <ac131313@redhat.com>
9192
9193 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
9194 Default to func_frame_chain_valid.
9195 * gdbarch.h, gdbarch.c: Re-generate.
9196 * frame.h (FRAME_CHAIN_VALID): Delete definition.
9197
05f13b9c
EZ
91982002-02-18 Elena Zannoni <ezannoni@redhat.com>
9199
9200 * ppc-linux-nat.c: Update copyright.
9201 (fetch_register, store_register): Add tid parameter, don't compute
9202 tid here.
9203 (fetch_ppc_registers, store_ppc_registers): Add tid
9204 parameter. Pass it along to callees.
9205 (fetch_inferior_registers, store_inferior_registers): Compute tid
9206 here, and pass it to calleed functions.
9207 (fill_gregset, supply_fpregset): Clean up formatting.
9208
d7afb4c9
RE
92092002-02-18 Richard Earnshaw <rearnsha@arm.com>
9210
9211 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
9212 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
9213
9df628e0
RE
92142002-02-18 Richard Earnshaw <rearnsha@arm.com>
9215
9216 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
9217 * gdbarch.c gdbarch.h: Regenerate.
9218 * breakpoint.c (create_longjmp_breakpoint): Always compile this
9219 function.
9220 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
9221 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
9222 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
9223
9224 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
9225 * arm-tdep.c (arm_get_longjmp_target): New function.
9226 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
9227 this to a positive value register arm_get_longjmp_target as the
9228 longjmp handler.
9229 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
9230 (arm_linux_init_abi): Set up longjmp description in tdep.
9231 * armnbsd-nat.c (get_longjmp_target): Delete.
9232 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
9233 description in tdep.
9234 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
9235 (get_longjmp_target): Delete declaration.
9236 (GET_LONGJMP_TARGET): Delete.
9237 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
9238 (GET_LONGJMP_TARGET): Delete.
9239
57bc8964
KB
92402002-02-17 Kevin Buettner <kevinb@redhat.com>
9241
9242 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
9243 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
9244 of ``current_gdbarch''.
9245
83d31a92
TT
92462002-02-17 Tom Tromey <tromey@redhat.com>
9247
9248 * cli/cli-cmds.c (compare_strings): New function.
9249 (complete_command): Only print each unique item once.
9250 * completer.h (complete_line): Declare.
9251 * completer.c (complete_line): New function.
9252 (line_completion_function): Use it.
9253
17ef5d92
AC
92542002-02-16 Andrew Cagney <ac131313@redhat.com>
9255
9256 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
9257 * gdbarch.h, gdbarch.c: Re-generate.
9258
491b8946
DJ
92592002-02-16 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
9262
92632002-02-16 Daniel Jacobowitz <drow@mvista.com>
9264
9265 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9266 * valops.c (value_arg_coerce): Don't take the address of a reference
9267 to convert an argument to a reference.
9268
dfe7f3ac
CF
92692002-02-15 Christopher Faylor <cgf@redhat.com>
9270
9271 * win32-nat.c (get_image_name): New function.
9272 (handle_load_dll): Use get_image_name function.
9273 (get_child_debug_event): Avoid registering debug events until possibly
9274 execed process is started.
9275 (child_create_inferior): Allow invocation via shell so that command
9276 line redirection, etc. works ok.
9277 (_initialize_inftarg): Add new command: "set shell" to control whether
9278 a shell is used to start a process.
9279
1d33e73a
DJ
92802002-02-15 Daniel Jacobowitz <drow@mvista.com>
9281
9282 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
9283 instead of find_register_by_number.
9284 (cannot_store_register): Likewise.
9285
48cd0caa
PM
92862002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
9287
aaa38bb5 9288 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
9289 fprintf_unfiltered (gdb_stderr, ...).
9290
8656e7d8
DJ
92912002-02-15 Daniel Jacobowitz <drow@mvista.com>
9292
9293 * gdbserver/gdbserver.1: Document --attach.
9294
66e810cd
RE
92952002-02-15 Richard Earnshaw <rearnsha@arm.com>
9296
9297 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
9298 descriptions.
9299 * arm-tdep.c (arm_default_arm_le_breakpoint)
9300 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
9301 (arm_default_thumb_be_breakpoint): New. Initialize them from
9302 traditional breakpoint defines.
9303 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
9304 (arm_gdbarch_init): Initialize new breakpoint variables.
9305 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
9306 (arm_linux_init_abi): Initialize linux-specific breakpoint.
9307 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
9308 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
9309 code out to ...
9310 (arm_netbsd_init_abi_common): ... here; new function.
9311 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
9312 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
9313 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
9314 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
9315
97e03143
RE
93162002-02-15 Richard Earnshaw <rearnsha@arm.com>
9317
9318 * arm-tdep.h (enum arm_abi): New enum.
9319 (struct gdbarch_tdep): New structure.
9320 (LOWEST_PC): Provide a default.
9321 (arm_gdbarch_register_os_abi): Declare new function.
9322 * arm-tdep.c (arm_abi_names): New array.
9323 (process_note_abi_tag_sections): New function.
9324 (get_elfosabi): New function.
9325 (arm_gdbarch_register_os_abi): New function.
9326 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
9327 support for that ABI has been built in, then call the appropriate
9328 configuration routine. Use gdbarch_num_regs() to get the number
9329 of registers.
9330 (arm_dump_tdep): New function.
9331 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
9332 place-holder functions.
9333 (_initialize_arm_tdep): Register them.
9334 * config/arm/tm-arm.h (LOWEST_PC): Delete.
9335
9336 * armnbsd-tdep.c: New file.
9337 * Makefile.in (armnbsd-tdep.o): Add dependencies.
9338 * config/arm/nbsd.mt (TDEPFILES): Add it.
9339 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
9340
9341 * armnbsd-nat.c: Include regcache.h.
9342 * Makefile.in (armnbsd-nat.o): Update dependency list.
9343
9344 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
9345
ad68be46
DJ
93462002-02-14 Daniel Jacobowitz <drow@mvista.com>
9347
9348 * gdbserver/Makefile.in: Fix typos in target rules.
9349
003d6d1d
DJ
93502002-02-14 Daniel Jacobowitz <drow@mvista.com>
9351
aaa38bb5 9352 Fix part of PR gdb/267.
003d6d1d
DJ
9353 * linespec.c (find_methods): Handle constructors specially for now.
9354
6b230f1b
CV
93552002-02-14 Corinna Vinschen <vinschen@redhat.com>
9356
9357 * arm-tdep.c (arm_push_arguments): Eliminate special float type
9358 handling.
9359 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
9360 standard_coerce_float_to_double().
9361
1ea98d12
CF
93622002-02-14 Christopher Faylor <cgf@redhat.com>
9363
9364 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
9365 GDBINIT_FILENAME.
9366
dd47e6fd
EZ
93672002-02-14 Elena Zannoni <ezannoni@redhat.com>
9368
9369 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
9370 find_variant_by_name, because it confuses the multiarch
9371 framework. Return NULL if there isn't an architecture with the
9372 user supplied name, instead of forcing a different one without
9373 recording the change with the multiarch machinery.
9374 (find_variant_by_name): Delete.
9375
d7e39b9e
PS
93762002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9377
9378 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
9379 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
9380
76e42a4f
MH
93812002-02-13 Martin M. Hunt <hunt@redhat.com>
9382
aaa38bb5 9383 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
9384 print_frame_info_listing_hook, set current_source_symtab.
9385
0a30fbc4
DJ
93862002-02-14 Daniel Jacobowitz <drow@mvista.com>
9387
9388 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
9389 and remove unused $(INCLUDE_DIR).
9390 Add regcache.c to OBS.
9391 Add generated register protocol files to clean target.
9392 Update dependencies for new objects, obsolete old target code.
9393
9394 * gdbserver/linux-low.c: Remove all platform-specific code to
9395 new files. Remove various dead code. Update to use regcache
9396 functionality.
9397 * gdbserver/remote-utils.c (fromhex): Add return statement
9398 to quiet warning.
9399 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
9400 constant.
9401 (input_interrupt): Add integer parameter to match prototype
9402 of a signal handler.
9403 (outreg): Use register_data ().
9404 (prepare_resume_reply): Use gdbserver_expedite_regs.
9405 * gdbserver/server.c (main): Dynamically allocate own_buf because
9406 PBUFSIZ is no longer constant. Use registers_to_string () and
9407 registers_from_string ().
9408 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9409 for error (), fatal (), and warning (). Update definition of
9410 PBUFSIZ to use regcache functionality. Add include guard.
9411 * gdbserver/utils.c (fatal): Add missing ``const''.
9412 (warning): New function.
9413
9414 * regformats/regdat.sh: Include "regcache.h" in generated files.
9415 Provide init_registers () function.
9416 * regformats/regdef.h: Add prototype for set_register_cache ().
9417 Add include guard.
9418
9419 * gdbserver/linux-arm-low.c: New file.
9420 * gdbserver/linux-i386-low.c: New file.
9421 * gdbserver/linux-ia64-low.c: New file.
9422 * gdbserver/linux-m68k-low.c: New file.
9423 * gdbserver/linux-mips-low.c: New file.
9424 * gdbserver/linux-ppc-low.c: New file.
9425 * gdbserver/linux-sh-low.c: New file.
9426
9427 * gdbserver/regcache.c: New file.
9428 * gdbserver/regcache.h: New file.
9429
9430 * gdbserver/low-linux.c: Removed obsolete file.
9431
4cc841d0
DJ
94322002-02-14 Daniel Jacobowitz <drow@mvista.com>
9433
9434 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9435 * config/i386/linux.mt: Likewise.
9436 * config/ia64/linux.mt: Likewise.
9437 * config/m68k/linux.mh: Likewise.
9438 * config/powerpc/linux.mh: Likewise.
9439 * config/mips/linux.mt: Likewise.
9440
9441 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9442
9443 * config/i386/i386lynx.mh: Mark gdbserver variables
9444 as (currently) obsolete for this target.
9445 * config/i386/nbsd.mt: Likewise.
9446 * config/i386/nbsdelf.mt: Likewise.
9447 * config/m32r/m32r.mt: Likewise.
9448 * config/m68k/m68klynx.mh: Likewise.
9449 * config/m68k/nbsd.mt: Likewise.
9450 * config/m68k/sun3os4.mh: Likewise.
9451 * config/mips/vr5000.mt: Likewise.
9452 * config/ns32k/nbsd.mt: Likewise.
9453 * config/pa/hppabsd.mh: Likewise.
9454 * config/pa/hppaosf.mh: Likewise.
9455 * config/powerpc/nbsd.mt: Likewise.
9456 * config/rs6000/rs6000lynx.mh: Likewise.
9457 * config/s390/s390.mt: Likewise.
9458 * config/s390/s390x.mt: Likewise.
9459 * config/sparc/sparclynx.mh: Likewise.
9460 * config/sparc/sun4os4.mh: Likewise.
9461 * config/i386/x86-64linux.mt: Likewise.
9462 * config/sparc/linux.mh: Likewise.
9463
a85f51e7
DJ
94642002-02-14 Daniel Jacobowitz <drow@mvista.com>
9465
9466 * configure.tgt: Configure gdbserver only for known working
9467 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9468 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9469 SUBDIRS if it is configured. Update comment for ${nativefile}.
9470 * configure: Regenerated.
9471
65554fef
MS
94722002-02-13 Michael Snyder <msnyder@redhat.com>
9473
670a52db
MS
9474 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9475
6dbdc4a3
MS
9476 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9477 (default_gcore_mach): Just return 0, work around a problem in bfd.
9478 (default_gcore_target): OK to return NULL if exec_bfd is null.
9479 (make_mem_sec): Use a cast, avoid a warning.
9480
9481 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 9482 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
9483 sizeof (host pointer) != sizeof (target pointer)).
9484 (procfs_make_note_section): Avoid overflow in psargs string.
9485
aaa38bb5 9486 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
9487 implementation return an error.
9488
94892002-02-13 Rodney Brown <rbrown64@csc.com.au>
9490
9491 * procfs.c (procfs_make_note_section): Provide a default definition
9492 (for alpha-dec-osf4.0f). Fix typos.
9493
1e4d76e7
EZ
94942002-02-13 Elena Zannoni <ezannoni@redhat.com>
9495
9496 * linux-proc.c: Add include of regcache.h.
9497 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9498
b6d1a1d5
AC
94992002-02-13 Andrew Cagney <ac131313@redhat.com>
9500
9501 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
9502 * memattr.c (create_mem_region): Disallow useless empty region.
9503 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 9504 non-overlapping.
b6d1a1d5 9505
6c6ea35e
MC
95062002-02-13 Michael Chastain <mec@shout.net>
9507
9508 * defs.h: Kill CONST_PTR.
9509 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9510 * c-lang.c (c_builtin_types): Likewise.
9511 * ch-lang.c (ch_builtin_types): Likewise.
9512 * f-lang.c (f_builtin_types): Likewise.
9513 * language.c (unknown_builtin_types): Likewise.
9514 * m2-lang.c (m2_builtin_types): Likewise.
9515 * p-lang.c (pascal_builtin_types): Likewise.
9516 * scm-lang.c (c_builtin_types): Likewise.
9517
3e0b0f48
KS
95182002-02-13 Keith Seitz <keiths@redhat.com>
9519
9520 * arm-tdep.h (arm_get_next_pc): Add declaration.
9521
67255d04
RE
95222002-02-13 Richard Earnshaw <rearnsha@arm.com>
9523
9524 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9525 with other related struct-returning functions.
9526 (arm_extract_struct_value_address): New function.
9527 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9528 initialize float_format, double_format and long_double_format as
9529 appropriate to the endianness of the target.
9530 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9531 (arm_use_struct_convention): Delete declaration.
9532 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9533
079777f6
KS
95342002-02-13 Keith Seitz <keiths@redhat.com>
9535
9536 * defs.h (core_addr_to_string_nz): New function.
9537
34588f23
MK
95382002-02-13 Mark Kettenis <kettenis@gnu.org>
9539
9540 Apply missing bits of 2002-01-15 patch.
9541 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9542 (fill_fpregset): Use i387_fill_fsave.
9543
49b563f9
KS
95442002-02-12 Keith Seitz <keiths@redhat.com>
9545
49b563f9
KS
9546 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9547 (core_addr_to_string_nz): New function.
9548
aeb98c60
RE
95492002-02-11 Richard Earnshaw <rearnsha@arm.com>
9550
9551 * arm-linux-nat.c: Really include arm-tdep.h.
9552 * config/arm/tm-linux.h (struct type, struct value): Declare.
9553
65554fef
MS
95542002-02-11 Michael Snyder <msnyder@redhat.com>
9555
9556 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9557 (gcore section): Ifdef for Solaris and Unixware only.
9558 (procfs_do_thread_registers): Unixware needs one lwpstatus
9559 per thread (not one prstatus or pstatus).
9560 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9561 not over all gdb threads. For unixware, call elfcore_write_pstatus
9562 once before iterating over threads.
9563
34e8f22d
RE
95642002-02-11 Richard Earnshaw <rearnsha@arm.com>
9565
9566 * arm-tdep.h: New file.
9567 * arm-tdep.c: Include arm-tdep.h.
9568 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9569 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9570 (arm_print_float_info, arm_register_type, convert_to_extended)
9571 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9572 (arm_extract_return_value, arm_register_name): Make static.
9573 (arm_software_single_step): Similarly. Fix types in declaration.
9574 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9575 (arm_store_return_value, arm_store_struct_return): New functions.
9576 (arm_gdbarch_init): Register the above functions. Also register
9577 call_dummy_start_offset, sizeof_call_dummy_words,
9578 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9579 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 9580 max_register_virtual_size, register_size. Set up
34e8f22d
RE
9581 prologue_cache.saved_regs here, rather than ...
9582 (_initialize_arm_tdep): ... here.
9583 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9584 declarations.
9585 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9586 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9587 (arm_print_float_info, arm_register_type, convert_to_extended)
9588 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9589 (arm_extract_return_value, arm_register_name): Delete declarations.
9590 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9591 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9592 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9593 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9594 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9595 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9596 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9597 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9598 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9599 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9600 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9601 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9602 interface.
9603 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9604 * remote-rdi.c remote-rdp.c: Likewise.
9605 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9606 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9607 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9608 definition.
9609
9610 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9611 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9612 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9613 from non-ARM_ prefixed definitions.
9614 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9615 all uses of above.
9616 * remote-rdi.c remote-rdp.c: Likewise.
9617 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9618
148754e5
RE
96192002-02-11 Richard Earnshaw <rearnsha@arm.com>
9620
9621 * arm-tdep.c (arm_frameless_function_invocation)
9622 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9623 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9624 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9625 (arm_pop_frame, arm_get_next_pc): Make static.
9626 (arm_gdbarch_init): Register above in gdbarch structure.
9627 (arm_read_fp): Renamed from arm_target_read_fp.
9628 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9629 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9630 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9631 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9632 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9633 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9634 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
9635 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9636 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9637 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9638 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 9639
434d2d4f
DJ
96402002-02-10 Daniel Jacobowitz <drow@mvista.com>
9641
9642 * symtab.c (compare_search_syms): New function.
9643 (sort_search_symbols): New function.
9644 (search_symbols): Sort symbols after searching rather than
9645 before.
9646
55241689
AC
96472002-02-10 Andrew Cagney <ac131313@redhat.com>
9648
9649 * NEWS: Linux -> GNU/Linux.
9650
028c194b
AC
96512002-02-10 Andrew Cagney <ac131313@redhat.com>
9652
9653 * gdbarch.sh: For for level one methods, disallow a definition
9654 when partially multi-arched. Add comments explaining rationale.
9655 * gdbarch.h: Re-generate.
9656
6acf50cd
AC
96572002-02-10 Andrew Cagney <ac131313@redhat.com>
9658
9659 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9660 multi-arch partial.
aaa38bb5 9661
50248794
AC
96622002-02-10 Andrew Cagney <ac131313@redhat.com>
9663
9664 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9665 field. Use diff -u.
9666 * gdbarch.c: Re-generate.
9667
c30e0066
AC
96682002-02-10 Andrew Cagney <ac131313@redhat.com>
9669
9b56c5f3 9670 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
9671 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9672 partial.
9673
6e6d6484
AC
96742002-02-10 Andrew Cagney <ac131313@redhat.com>
9675
9676 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9677 multi-arch partial.
9678 (PUSH_ARGUMENTS): Switch to using predefault.
9679 * gdbarch.c: Regenerate.
9680
c203844d
AC
96812002-02-10 Andrew Cagney <ac131313@redhat.com>
9682
9683 * valops.c (PUSH_ARGUMENTS): Delete definition.
9684 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9685 partial. Default to default_push_arguments.
9686 * gdbarch.h, gdbarch.c: Regenerate.
9687
b5a2688f
AC
96882002-02-09 Andrew Cagney <ac131313@redhat.com>
9689
9690 * defs.h (throw_exception): Rename return_to_top_level. Update
9691 comments.
9692 * utils.c (error_stream, internal_verror, quit): Ditto.
9693 * top.c (throw_exception, catcher): Ditto.
9694 * sparclet-rom.c (sparclet_load): Ditto.
9695 * remote.c (interrupt_query, minitelnet): Ditto.
9696 * remote-sds.c (interrupt_query): Ditto.
9697 * remote-mips.c (mips_error, mips_kill): Ditto.
9698 * ocd.c (interrupt_query): Ditto.
9699 * monitor.c (monitor_interrupt_query): Ditto.
9700 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9701 * target.h: Update comment.
aaa38bb5 9702
b5a2688f 9703 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 9704
2fa5c1e0
AC
97052002-02-09 Andrew Cagney <ac131313@redhat.com>
9706
9707 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9708 default_double_format.
9709 * gdbarch.h, gdbarch.c: Re-generate.
9710 * findvar.c (floatformat_unknown): Delete variable definition.
9711 * doublest.h (floatformat_unknown): Delete variable declaration.
9712
da966255
JB
97132002-02-09 Jim Blandy <jimb@redhat.com>
9714
9715 * stabsread.c (read_type): Add code to parse Sun's syntax for
9716 prototyped function types.
9717
123a4891
AC
97182002-02-09 Andrew Cagney <ac131313@redhat.com>
9719
9720 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9721 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9722
fb39c8f3
PS
97232002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9724
9725 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9726 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9727 now _initialize_xcoffsolib gets called again and overrides the
9728 commands from solib.c in a native configuration.
9729
0b87a11d
MK
97302002-02-09 Mark Kettenis <kettenis@gnu.org>
9731
9732 * doublest.c (store_typed_floating): Don't try to return a value.
9733 Fixes PR gdb/290.
9734
bdc2fc72
JB
97352002-02-08 Jim Blandy <jimb@redhat.com>
9736
9737 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9738 is prototyped and has no arguments, print its argument list as
9739 `(void)'.
9740
da69bbcf
CD
97412002-02-08 Chris Demetriou <cgd@broadcom.com>
9742
9743 * MAINTAINERS (write-after-approval): Add myself.
9744 (paper-trail): I've escaped!
aaa38bb5 9745
b69571f5
CF
97462002-02-08 Christopher Faylor <cgf@redhat.com>
9747
9748 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9749 changes.
9750 (_initialize_check_for_gdb_ini): Ditto.
9751
f6871398
MH
97522002-02-08 Martin M. Hunt <hunt@redhat.com>
9753
9754 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9755 xaprintf -> xasprintf.
9756
4e52d31c
PM
97572002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9758
9759 * win32-nat.c: Remove use of printf and sprintf functions.
9760
39bbf761
RE
97612002-02-08 Richard Earnshaw <rearnsha@arm.com>
9762
9763 * arm-tdep.c (arm_frame_chain_valid): Make static.
9764 (arm_push_arguments): Likewise.
9765 (arm_gdbarch_init): New function.
9766 (_initialize_arm_tdep): Call it.
9767 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9768 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9769 (FRAME_CHAIN_VALID): Delete.
9770 (arm_frame_chain_valid): Delete declaration.
9771 (PUSH_ARGUMENTS): Delete.
9772 (arm_push_arguments): Delete declaration.
9773 (CALL_DUMMY_P): Delete.
9774
9c9532c9
CV
97752002-02-08 Andrew Cagney <ac131313@redhat.com>
9776 Corinna Vinschen <vinschen@redhat.com>
9777
9778 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9779 on builtin float types.
9780
4e8f7a8b
DJ
97812002-02-08 Daniel Jacobowitz <drow@mvista.com>
9782
9783 * utils.c: Include <curses.h> before "bfd.h".
9784 * tui/tui-hooks.c: Likewise.
9785 * tui/tui.c: Likewise.
9786 * tui/tuiCommand.c: Likewise.
9787 * tui/tuiData.c: Likewise.
9788 * tui/tuiDataWin.c: Likewise.
9789 * tui/tuiDisassem.c: Likewise.
9790 * tui/tuiGeneralWin.c: Likewise.
9791 * tui/tuiIO.c: Likewise.
9792 * tui/tuiLayout.c: Likewise.
9793 * tui/tuiRegs.c: Likewise.
9794 * tui/tuiSource.c: Likewise.
9795 * tui/tuiSourceWin.c: Likewise.
9796 * tui/tuiStack.c: Likewise.
9797 * tui/tuiWin.c: Likewise.
9798
cd4bffcf
EZ
97992002-02-07 Elena Zannoni <ezannoni@redhat.com>
9800
9801 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9802 to include space for pseudoregs as well. Update loops accordingly.
9803 (sh_fp_frame_init_saved_regs): Ditto.
9804 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9805
26806ce2
AC
98062002-02-07 Andrew Cagney <ac131313@redhat.com>
9807
9808 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9809 Add Richard Earnshaw to Arm maintainers.
9810
97fdab62
AC
98112002-02-07 Andrew Cagney <ac131313@redhat.com>
9812
a6b98203
AC
9813 * defs.h (warning_begin): Delete declaration.
9814
97fdab62
AC
9815 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9816 Delete macro.
9817
78b29b40
MS
98182002-02-07 Michael Snyder <msnyder@redhat.com>
9819
aaa38bb5 9820 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
9821 Logic bug, remove misplaced else.
9822
d8849953
KD
98232002-02-07 Klee Dienes <klee@apple.com>
9824
9825 * fork-inferior.c (fork_inferior): Add '!' to the list of
9826 characters that need to be quoted when building a string for the
9827 shell. Quote '!' specifically with a backslash, since CSH chokes
9828 when trying to evaluate "str!str".
aaa38bb5 9829
095778a0
NC
98302002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9831
9832 * rdi-share/host.h: Only provide a typedef for bool if it is not
9833 defined.
9834
1900040c
MS
98352002-02-04 Michael Snyder <msnyder@redhat.com>
9836
9837 * breakpoint.h (enum bptype): Add new overlay event bp type.
9838 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 9839
1900040c
MS
9840 * breakpoint.c (create_internal_breakpoint): New function.
9841 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9842 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9843 (create_thread_event_breakpoint): Ditto.
9844 (create_solib_event_breakpoint): Ditto.
9845 (create_overlay_event_breakpoint): New function.
9846 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9847 (update_breakpoints_after_exec): Delete and re-initialize
9848 overlay event breakpoints after an exec. Add FIXME comment
9849 about longjmp breakpoint.
9850 (print_it_typical): Ignore overlay event breakpoints.
9851 (print_one_breakpoint): Ditto.
9852 (mention): Ditto.
9853 (bpstat_what): Do not stop for overlay event breakpoints.
9854 (delete_breakpoint): Don't delete overlay event breakpoints.
9855 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9856 (breakpoint_re_set): Re-create overlay event breakpoint.
9857
9858 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9859 (overlay_manual_command): Disable overlay breakpoints.
9860 (overlay_off_command): Disable overlay breakpoints.
9861
082fc60d
RE
98622002-02-06 Richard Earnshaw <rearnsha@arm.com>
9863
9864 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9865 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9866 to here from config/tm-arm.h.
9867 (coff_sym_is_thumb): Make static.
9868 (arm_elf_make_msymbol_special): New function.
9869 (arm_coff_make_msymbol_special): New function.
9870 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9871 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9872 (coff_sym_is_thumb): Delete declaration.
9873 (arm_elf_make_msymbol_special): Declare.
9874 (arm_coff_make_msymbol_special): Declare.
9875 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9876 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9877
039c5766
RE
98782002-02-06 Richard Earnshaw <rearnsha@arm.com>
9879
9880 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9881
98822002-02-06 Richard Earnshaw <rearnsha@arm.com>
9883
9884 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9885 * gdbarch.c gdbarch.h: Regenerate.
9886 * arch-utils.c (default_print_float_info): New function.
9887 * arch-utils.h (default_print_float_info): Prototype it.
9888 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9889 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9890 (PRINT_FLOAT_INFO): Document it.
9891
9892 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9893 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9894 (PRINT_FLOAT_INFO): Define.
9895
58fa08f0
PM
98962002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9897
aaa38bb5 9898 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
9899 Add typecast to sprintf argument to suppress a warning.
9900
7393af7c
PM
99012002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9902
58fa08f0 9903 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
9904 to allow easier handling of pass state.
9905 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9906 that gives exception name and address.
9907 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 9908 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 9909 exceptions added.
aaa38bb5
AJ
9910 (child_continue): Correctly report continue_status.
9911 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 9912 TARGET_SIGNAL_0 (new default value).
aaa38bb5 9913 (child_resume): consider sig argument passed to decide if
7393af7c
PM
9914 the exception should be passed to debuggee or not.
9915
6af4589c
MS
99162002-02-05 Michael Snyder <msnyder@redhat.com>
9917
9918 * regcache.c (fetch_register): Call target_fetch_register
9919 only if we don't call FETCH_PSEUDO_REGISTER.
9920 (store_register): Call target_store_register only if we
9921 don't call STORE_PSEUDO_REGISTER.
9922
a2cf933a
EZ
99232002-02-05 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9926 ELF_MAKE_MSYMBOL_SPECIAL.
9927 * gdbarch.c, gdbarch.h: Regenerate.
9928 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 9929 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
9930 * elfread.c (elf_symtab_read): Compile use of
9931 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9932 multiarched.
9933 * coffread.c (coff_symtab_read): Ditto, for
9934 COFF_MAKE_MSYMBOL_SPECIAL.
9935
6bb7be43
JB
99362002-02-05 Jim Blandy <jimb@redhat.com>
9937
9938 * solib-svr4.c (svr4_truncate_ptr): New function.
9939 (svr4_relocate_section_addresses): Do the address arithmetic with
9940 the appropriate truncation for target addresses, even when
9941 CORE_ADDR is larger than a target address.
9942
e18651ec
DJ
99432002-02-05 Daniel Jacobowitz <drow@mvista.com>
9944
9945 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9946 to (int *).
9947
6b2725be
DJ
99482002-02-05 Daniel Jacobowitz <drow@mvista.com>
9949
9950 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9951 code.
9952
fca9e603
DJ
99532002-02-05 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9956
6c537a52
DJ
99572002-02-05 Daniel Jacobowitz <drow@mvista.com>
9958
9959 * gdbserver/linux-low.c: Remove unused include files.
9960
d844cde6
DJ
99612002-02-05 Daniel Jacobowitz <drow@mvista.com>
9962
9963 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9964 (read_inferior_memory): Use it.
9965 (write_inferior_memory): Likewise.
9966
d07c63e7
DJ
99672002-02-05 Daniel Jacobowitz <drow@mvista.com>
9968
9969 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9970 grubbing through sys_errlist.
9971
da6d8c04
DJ
99722002-02-05 Daniel Jacobowitz <drow@mvista.com>
9973
9974 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9975
5b421780
PM
99762002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9977 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9978
9f60d481
AC
99792002-02-04 Andrew Cagney <ac131313@redhat.com>
9980
9981 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9982 (do_sfunc, set_cmd_sfunc): New functions.
9983
9984 * command.h (struct cmd_list_element): Add field func.
9985 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9986 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9987 * cli/cli-decode.h: Ditto.
9988
9989 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9990 (help_all, help_cmd_list): Ditto.
9991 (find_cmd, complete_on_cmdlist): Ditto.
9992 * top.c (execute_command): Ditto.
9993
9994 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9995 function.sfunc.
9996
9997 * infcmd.c (notice_args_read): Fix function signature.
9998
9999 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
10000 * cli/cli-decode.c (add_set_cmd): Ditto.
10001 * utils.c (initialize_utils): Ditto.
10002 * maint.c (_initialize_maint_cmds): Ditto.
10003 * infrun.c (_initialize_infrun): Ditto.
10004 * demangle.c (_initialize_demangler): Ditto.
10005 * remote.c (add_packet_config_cmd): Ditto.
10006 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10007 * cris-tdep.c (_initialize_cris_tdep): Ditto.
10008 * proc-api.c (_initialize_proc_api): Ditto.
10009 * kod.c (_initialize_kod): Ditto.
10010 * valprint.c (_initialize_valprint): Ditto.
10011 * top.c (init_main): Ditto.
10012 * infcmd.c (_initialize_infcmd): Ditto.
10013 * corefile.c (_initialize_core): Ditto.
10014 * arm-tdep.c (_initialize_arm_tdep): Ditto.
10015 * arch-utils.c (initialize_current_architecture): Ditto.
10016 (_initialize_gdbarch_utils): Ditto.
10017 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
10018
10019 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
10020 * wince.c (_initialize_inftarg): Ditto.
10021 * symfile.c (_initialize_symfile): Ditto.
10022 * mips-tdep.c (_initialize_mips_tdep): Ditto.
10023 * language.c (_initialize_language): Ditto.
10024 * arc-tdep.c (_initialize_arc_tdep): Ditto.
10025
f9ba0717
MS
100262002-02-04 Michael Snyder <msnyder@redhat.com>
10027
10028 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
10029
0c74b2a7
DJ
100302002-02-04 Daniel Jacobowitz <drow@mvista.com>
10031
10032 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
10033 Add rules for building the register data files.
10034
c638789f
DJ
100352002-02-04 Daniel Jacobowitz <drow@mvista.com>
10036
10037 * regformats/regdat.sh: Add braces to the definition of
10038 expedite_regs_${arch}.
10039
db253027
DJ
100402002-02-04 Daniel Jacobowitz <drow@mvista.com>
10041
10042 * regformats/regdef.h (struct reg): Add comment describing the
10043 requirements for offset and size fields.
10044
206be19c
AS
100452002-02-04 Andreas Schwab <schwab@suse.de>
10046
10047 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
10048 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
10049
181c1381
RE
100502002-02-04 Richard Earnshaw <rearnsha@arm.com>
10051
10052 * gdbarch.sh (copyright): Update years in generated header.
10053 (SMASH_TEXT_ADDRESS): Add rule.
db253027 10054 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
10055 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
10056 * dbxread.c: Likewise.
10057 * dwarfread.c: Likewise.
10058 * elfread.c: Likewise.
10059 * somread.c: Likewise.
10060
10061 * arm-tdep.c (arm_smash_text_address): New function.
10062 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
10063
fa4ba8da
PM
100642002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
10065
10066 Add support for hardware watchpoints on win32 native.
aaa38bb5 10067 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 10068 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 10069 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
10070 of debug registers.
10071 (debug_registers_changed): New variable. Reflects when debug registers
10072 are changed and need to be written to inferior.
aaa38bb5 10073 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
10074 was set, used when new threads are created.
10075 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
10076 i386-nat code.
10077 (thread_rec): Set dr array if id is the thread of current_event .
10078 (child_continue, child_resume): Change the debug registers for all
10079 threads if debug_registers_changed.
10080 (child_add_thread): Change the debug registers if debug_registers_used.
10081 * config/i386/cygwin.mh: Add use of i386-nat.o file.
10082 Link nm.h to new nm-cygwin.h file.
10083 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
10084 of hardware registers.
10085
a73c86fb
AC
100862002-02-03 Andrew Cagney <ac131313@redhat.com>
10087
10088 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
10089 Restore behavour broken by 2002-01-20 Andrew Cagney
10090 <ac131313@redhat.com> IEEE_FLOAT removal.
10091
acf5ed49
DJ
100922002-02-03 Daniel Jacobowitz <drow@mvista.com>
10093
10094 * c-valprint.c (c_val_print): Pass a proper valaddr to
10095 cp_print_class_method.
10096 * valops.c (search_struct_method): If there is only one method
10097 and args is NULL, return that method.
10098
493d28d5
DJ
100992002-02-03 Daniel Jacobowitz <drow@mvista.com>
10100
10101 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
10102 accessing tag_name directly.
10103
7495dfdb
DJ
101042002-02-03 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
10107 of accessing tag_name directly.
10108
dd6bda65
DJ
101092002-02-03 Daniel Jacobowitz <drow@mvista.com>
10110
10111 PR gdb/280
10112 * gdbtypes.c (replace_type): New function.
10113 * gdbtypes.h (replace_type): Add prototype.
10114 * stabsread.c (read_type): Use replace_type.
10115
88fe217c
RE
101162002-02-03 Richard Earnshaw <rearnsha@arm.com>
10117
10118 * Makefile.in (memattr.o): Add missing dependencies rule.
10119
e5d66720
PS
101202002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10121
10122 * breakpoint.c (break_at_finish_command): Really export.
10123 (break_at_finish_at_depth_command): Ditto.
10124 (tbreak_at_finish_command): Ditto.
10125 * hppa-tdep.c: Include completer.h.
10126 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
10127 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
10128
fffee0be
AC
101292002-02-01 Andrew Cagney <ac131313@redhat.com>
10130
10131 * utils.c (do_write): New function.
10132 (error_stream): Rewrite combining the code from error_begin and
10133 verror.
10134 (verror): Rewrite using error_stream.
10135 (error_begin): Delete function.
10136
255e7dbf
AC
101372002-02-01 Andrew Cagney <ac131313@redhat.com>
10138
10139 * utils.c (error_begin): Make static.
10140 * defs.h (error_begin): Delete declaration.
10141
10142 * linespec.c (cplusplus_error): Replace cplusplus_hint.
10143 (decode_line_1): Use cplusplus_error instead of error_begin,
10144 cplusplus_hint and return_to_top_level.
10145 * coffread.c (coff_symfile_read): Use error instead of error_begin
10146 and return_to_top_level.
10147 * infrun.c (default_skip_permanent_breakpoint): Ditto.
10148
ddfe3c15
AC
101492002-02-01 Andrew Cagney <ac131313@redhat.com>
10150
10151 * language.h (type_error, range_error): Make string parameter
10152 constant.
10153 * language.c (warning_pre_print): Delete extern declaration.
10154 * dwarfread.c (warning_pre_print): Ditto.
10155 * language.c (type_error, range_error): Rewrite to use verror and
10156 vwarning instead of warning_begin.
10157
03ac34d5
MS
101582002-02-01 Michael Snyder <msnyder@redhat.com>
10159
261c4ca2
MS
10160 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
10161 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 10162
e00d1dc8
AC
101632002-02-01 Andrew Cagney <ac131313@redhat.com>
10164
10165 * command.h (NO_FUNCTION): Delete macro.
10166 * cli/cli-decode.h (NO_FUNCTION): Ditto.
10167 * top.c (execute_command): Replace NO_FUNCTION with NULL.
10168 * tracepoint.c (_initialize_tracepoint): Ditto.
10169 * cli/cli-decode.c (add_set_cmd): Ditto.
10170 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 10171
76b79d6e
DJ
101722002-02-01 Daniel Jacobowitz <drow@mvista.com>
10173
10174 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
10175 Update ``this'' pointer when calling virtual functions.
10176
799f9e91
MS
101772002-02-01 Michael Snyder <msnyder@redhat.com>
10178
c7bd442c 10179 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
10180 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
10181
3cf384d4
DJ
101822002-02-01 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * regformats/reg-arm.dat: New file.
10185 * regformats/reg-i386.dat: New file.
10186 * regformats/reg-ia64.dat: New file.
10187 * regformats/reg-m68k.dat: New file.
10188 * regformats/reg-mips.dat: New file.
10189 * regformats/reg-ppc.dat: New file.
10190 * regformats/reg-sh.dat: New file.
10191 * regformats/regdef.h: New file.
10192 * regformats/regdat.sh: New file.
10193
0defa245
RE
101942002-02-01 Richard Earnshaw <reanrsha@arm.com>
10195
10196 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
10197 (arm_frame_args_address, arm_frame_locals_address): New functions.
10198 (arm_frame_num_args): New function.
10199 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
10200 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
10201 (FRMA_NUM_ARGS): Call arm_frame_num_args.
10202
405f26e6
MS
102032002-01-31 Michael Snyder <msnyder@redhat.com>
10204
502fd408
MS
10205 * breakpoint.c (break_at_finish_command): Export.
10206 (break_at_finish_at_depth_command): Export.
10207 (tbreak_at_finish_command): Export.
10208 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
10209 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
10210 "tbreak" commands, which are HPPA specific.
10211
7d35e135
MS
10212 * printcmd.c (disassemble_command): Remove an ancient
10213 artifact of an old merge.
10214
aaa38bb5 10215 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
10216 Define enum constant values for overlay mode.
10217 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
10218 (overlay_is_mapped, overlay_auto_command,
10219 overlay_manual_command): Ditto.
d874f1e2 10220
aaa38bb5
AJ
10221 * breakpoint.c (insert_breakpoints, remove_breakpoint,
10222 breakpoint_here_p, breakpoint_inserted_here_p,
10223 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
10224 describe_other_breakpoints, check_duplicates, clear_command):
10225 Coding standard fixes.
10226
8add0441 10227 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 10228 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
10229 code: check bfd SEC_READONLY flag for section.
10230
e351066e
AC
102312002-01-31 Andrew Cagney <ac131313@redhat.com>
10232
7d35e135 10233 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 10234
8a48e967
DJ
102352002-01-30 Daniel Jacobowitz <drow@mvista.com>
10236
10237 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
10238 data symbols, since we search based on textlow and texthigh.
10239 (find_pc_sect_symtab): Likewise.
10240
f5a96129
AC
102412002-01-30 Andrew Cagney <ac131313@redhat.com>
10242
10243 * defs.h (vwarning): Declare.
f5a96129
AC
10244 * utils.c (vwarning): New function.
10245 (warning): Call vwarning.
10246 (warning_begin): Delete function.
10247
10248 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
10249 the warning message.
10250 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
10251 warning_begin.
10252
cefd4ef5
MS
102532002-01-30 Michael Snyder <msnyder@redhat.com>
10254
1a703748
MS
10255 * NEWS: Mention "set trust-readonly-sections" command.
10256 Mention generate-core-file command.
cefd4ef5 10257
3a11626d
MS
102582002-01-15 Michael Snyder <msnyder@redhat.com>
10259
10260 * target.c: New command, "set trust-readonly-sections on".
10261 (do_xfer_memory): Honor the suggestion to trust readonly sections
10262 by reading them from the object file instead of from the target.
10263 (initialize_targets): Register command "set trust-readonly-sections".
10264
d1c7e53b
AC
102652002-01-29 Andrew Cagney <ac131313@redhat.com>
10266
10267 * parse.c (target_map_name_to_register): Simplify, search regs and
10268 pseudo-regs using a single loop.
10269
e2c9a72c
AC
102702002-01-30 Andrew Cagney <ac131313@redhat.com>
10271
10272 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
10273
69824b4e
MK
102742002-01-15 Rodney Brown <rbrown64@csc.com.au>
10275
10276 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
10277 * config/i386/i386v42mp.mh: Add i387-nat.o .
10278 * i386v4-nat.c: Include i387-nat.h.
10279 (supply_fpregset): Use i387_supply_fsave.
10280 (fill_fpregset): Use i387_fill_fsave.
10281
6eb69eab
RE
102822002-01-30 Richard Earnshaw <rearnsha@arm.com>
10283
10284 * arm-tdep.c (arm_call_dummy_words): Define.
10285 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
10286 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
10287 (CALL_DUMMY_WORDS): Define.
10288 (arm_call_dummy_words): Declare.
10289 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
10290 (arm_linux_call_dummy_words): Declare.
10291
9852326a
AS
102922002-01-30 Andreas Schwab <schwab@suse.de>
10293
10294 * m68klinux-nat.c: Fix last change to use regcache_collect
10295 instead of referencing registers[] directly.
10296
977a3030
AC
102972002-01-29 Andrew Cagney <ac131313@redhat.com>
10298
10299 * parse.c (target_map_name_to_register): Delete code wrapped in
10300 #ifdef REGISTER_NAME_ALIAS_HOOK.
10301
2076c72b
MS
103022002-01-28 Michael Snyder <msnyder@redhat.com>
10303
10304 * regcache.c (legacy_read_register_gen): Need to be able to
10305 read pseudo-register as well as real register.
10306 (legacy_write_register_gen): Ditto.
10307
8fcc723b
AC
103082002-01-28 Andrew Cagney <ac131313@redhat.com>
10309
10310 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10311 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
10312 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
10313 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
10314 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
10315 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
10316 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
10317 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
10318 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
10319 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
10320 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
10321 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
10322 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
10323 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
10324 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
10325 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
10326 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
10327 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
10328 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
10329 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
10330
afe64c1a
AC
103312002-01-28 Andrew Cagney <ac131313@redhat.com>
10332
10333 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
10334 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
10335 (initialize_current_architecture): Update target_byte_order using
10336 information from BFD.
aaa38bb5 10337 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
10338 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
10339
75bc7ddf
AC
103402002-01-28 Andrew Cagney <ac131313@redhat.com>
10341
10342 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
10343 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
10344
10345 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
10346 #ifdef INVALID_FLOAT.
10347 * infcmd.c (do_registers_info): Ditto.
10348 * values.c (unpack_double): Ditto. Add comment.
10349
10350 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
10351 already commented out.
10352
0280a90a
AS
103532002-01-26 Andreas Schwab <schwab@suse.de>
10354
10355 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
10356 * m68klinux-nat.c: Update ptrace interface for fetching/storing
10357 registers and add support for PTRACE_GETREGS.
10358
7072a954
AC
103592002-01-24 Andrew Cagney <ac131313@redhat.com>
10360
10361 GDB 5.1.1 released from 5.1 branch.
10362 * NEWS: Add 5.1.1 news.
10363 * README: Sync with 5.1 branch.
10364
86f902e0
FF
103652002-01-23 Fred Fish <fnf@redhat.com>
10366
10367 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
10368 stabstring on initial malloc. Reallocing will copy it for us,
10369 if necessary.
10370
8af51c36
EZ
103712002-01-23 Elena Zannoni <ezannoni@redhat.com>
10372
aaa38bb5 10373 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
10374 (HFILES_NO_SRCDIR): Remove hpread.h.
10375 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
10376 (hpread.o): Update dependencies.
10377 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
10378
10379 * hp-psymtab-read.c: Remove file.
10380 * hp-symtab-read.c: Remove file.
10381 * hpread.h: Remove file.
10382
10383 * hpread.c: Merge all contents of hp-psymtab-read.c,
10384 hp-symtab-read.c and hpread.h into this file, as it was prior to
10385 January 1999.
10386
10387 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 10388 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
10389 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
10390 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
10391
dc5cfeb6
EZ
103922002-01-23 Elena Zannoni <ezannoni@redhat.com>
10393
10394 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
10395 fill_gregset): Call gdbarch_tdep() just once, assign result to
10396 variable and use that, instead of calling the function several
10397 times.
10398
ea87b71b
AO
103992002-01-24 Alexandre Oliva <aoliva@redhat.com>
10400
10401 * configure.host: Accept sparcv9 as alias for sparc64.
10402 * configure.tgt: Likewise.
10403
13fc0c2f
KB
104042002-01-22 Kevin Buettner <kevinb@redhat.com>
10405
10406 * solib-aix5.c (build_so_list_from_mapfile)
10407 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10408 arguments is not reversed.
10409 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10410 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 10411
7bd872fe
EZ
104122002-01-22 Elena Zannoni <ezannoni@redhat.com>
10413
10414 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10415 modified version of obsolete sh_fetch_pseudo_register.
10416 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10417 (sh4_register_read): New function.
10418 (sh_pseudo_register_write): New function. Renamed and modified
10419 version of obsolete sh_store_pseudo_register.
10420 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10421 (sh4_register_write): New function.
10422 (sh_gdbarch_init): Remove setting of gdbarch function
10423 fetch_pseudo_register and store_pseudo_register. Remove setting of
10424 register_convert_to_raw, register_convert_to_virtual,
10425 register_convertible.
10426 (sh_sh4_register_convertible): Delete. No longer needed. All is
10427 taken care by architecture specific functions
10428 register_read/register_write.
10429 (sh_sh4_register_convert_to_virtual): Make static.
10430 (sh_sh4_register_convert_to_raw): Ditto.
10431
069e84fd
AC
104322002-01-22 Andrew Cagney <ac131313@redhat.com>
10433
10434 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10435 (floatformat_is_nan, floatformat_mantissa): Ditto.
10436
10437 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10438 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10439 builtin_type_ieee_double_little,
10440 builtin_type_ieee_double_littlebyte_bigword,
10441 builtin_type_m68881_ext, builtin_type_i960_ext,
10442 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10443 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10444 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10445 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10446
211a4f69
CV
104472002-01-22 Corinna Vinschen <vinschen@redhat.com>
10448
10449 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10450 parameter. Set frameless flag if it exists and depended of
10451 whether the scanned function is frameless or not.
10452 (xstormy16_skip_prologue): If function is frameless, return
10453 result of xstormy16_scan_prologue().
10454 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10455 call.
10456
f81353e4
EZ
104572002-01-21 Elena Zannoni <ezannoni@redhat.com>
10458
10459 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10460 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10461 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10462 sh_sh4_register_byte, sh_sh4_register_raw_size,
10463 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10464 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10465 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10466 sh_store_pseudo_register, sh_do_pseudo_register): Call
10467 gdbarch_tdep() just once, assign result to variable and use that,
10468 instead of calling the function several times.
10469
63c73a17
MK
104702002-01-20 Mark Kettenis <kettenis@gnu.org>
10471
10472 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10473 macros instead of LAST_FPU_CTRL_REGNUM.
10474 (store_register): Likewise.
10475
39ad761d
JB
104762002-01-21 Jim Blandy <jimb@redhat.com>
10477
10478 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10479 is up-to-date before running the program, not just when a program
10480 exits.
10481
3d74b771
FF
104822002-01-21 Fred Fish <fnf@redhat.com>
10483
10484 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10485 when we have found all instructions we are looking for.
10486
966fbf70
RE
104872002-01-21 Richard Earnshaw <rearnsha@arm.com>
10488
10489 * arm-tdep.c (arm_register_name): New function.
10490 (arm_registers_names): Make static.
10491 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10492 (arm_register_name): Declare.
10493 (REGISTER_NAME): Use it.
10494
c3b4394c
RE
104952002-01-21 Richard Earnshaw <rearnsha@arm.com>
10496 Kevin Buettner <kevinb@redhat.com>
10497
10498 Convert arm targets to new FRAME interface.
10499 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10500 (arm_frame_find_save_regs): Delete.
10501 (arm_frame_init_saved_regs): New.
10502 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10503 Allocate extra_info as required. Convert all uses of fsr.regs
10504 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10505 to use extra_info.
10506 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10507 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10508 (check_prologue_cache, save_prologue_cache): Likewise.
10509 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10510 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10511 (FRAME_FIND_SAVED_REGS): Delete.
10512 (arm_frame_find_saved_regs): Delete prototype.
10513 (arm_frame_init_saved_regs): New prototype.
10514 (FRAME_INIT_SAVED_REGS): Define.
10515
61d99182
AC
105162002-01-20 Andrew Cagney <ac131313@redhat.com>
10517
10518 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10519
6aaea291
AC
105202002-01-20 Andrew Cagney <ac131313@redhat.com>
10521
10522 From Jeff Law <law@redhat.com>:
10523 * infttrace.c: Include <sys/pstat.h>.
10524 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10525 exec file if the ttrace equivalent fails.
10526
15f698d2
AC
105272002-01-20 Andrew Cagney <ac131313@redhat.com>
10528
10529 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10530 (closeLogFile): Ditto.
10531
f86ddd7c
MC
105322002-01-20 Michael Chastain <mec@shout.net>
10533
10534 * top.c (print_gdb_version): Bump copyright year to 2002.
10535
904507ce
AC
105362002-01-20 Andrew Cagney <ac131313@redhat.com>
10537
10538 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10539 Zannoni and Eli Zaretskii.
10540
d7f0b9ce
DJ
105412002-01-20 Daniel Jacobowitz <drow@mvista.com>
10542
10543 * buildsym.c: Update copyright years.
10544 * c-typeprint.c: Likewise.
10545 * dwarf2read.c: Likewise.
10546 * f-typeprint.c: Likewise.
10547 * gdbtypes.c: Likewise.
10548 * gdbtypes.h: Likewise.
10549 * hp-symtab-read.c: Likewise.
10550 * hpread.c: Likewise.
10551 * mdebugread.c: Likewise.
10552 * p-typeprint.c: Likewise.
10553
3fd3d7d2
AC
105542002-01-20 Andrew Cagney <ac131313@redhat.com>
10555
10556 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10557 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10558 byte-order selectable.
10559 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10560 * arch-utils.c: Ditto.
10561 (set_endian): Ditto.
10562 (set_endian_from_file): Ditto.
10563 * gdbserver/low-sim.c (create_inferior): Ditto.
10564 * gdbarch.sh: Ditto.
10565 * gdbarch.h: Re-generate.
aaa38bb5
AJ
10566 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10567 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10568 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10569 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10570 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10571 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10572 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
10573 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10574 macro definition.
10575 * config/mips/tm-wince.h: Remove #undef of macro
10576 TARGET_BYTE_ORDER_SELECTABLE.
10577 * config/sh/tm-wince.h: Ditto.
10578
b02dede2
DJ
105792002-01-20 Daniel Jacobowitz <drow@mvista.com>
10580
10581 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10582 member function fields. Add accessor macro
10583 TYPE_FN_FIELD_ARTIFICIAL.
10584 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10585 * c-typeprint.c (c_type_print_base): Skip artificial member
10586 functions.
10587
c3643761
DJ
105882002-01-20 Daniel Jacobowitz <drow@mvista.com>
10589
10590 * f-typeprint.c: Delete unused function f_type_print_args.
10591 * p-typeprint.c: Delete unused function pascal_type_print_args.
10592
8176bb6d
DJ
105932002-01-20 Daniel Jacobowitz <drow@mvista.com>
10594
10595 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10596 comment. Add ``artificial'' to ``union field_location''.
10597
10598 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10599
10600 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10601 * mdebugread.c (parse_symbol): Likewise.
10602 * stabsread.c (define_symbol): Likewise.
10603 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10604 initializing TYPE_FIELD_BITPOS to n (obsolete).
10605 (hpread_doc_function_type): Likewise.
10606 * hpread.c (hpread_function_type): Likewise.
10607
7fd60527
AC
106082002-01-20 Andrew Cagney <ac131313@redhat.com>
10609
10610 * configure.in (host_makefile_frag): Only require a host makefile
10611 fragment when a native build.
10612 * configure: Re-generate.
10613
c2f05ac9
AC
106142002-01-20 Andrew Cagney <ac131313@redhat.com>
10615
10616 * doublest.h (floatformat_from_type): Declare.
10617 * doublest.c (floatformat_from_type): New function.
10618 (convert_typed_floating): Use.
10619
10620 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10621 call to function floatformat_from_type.
10622
10623 * gdbarch.sh (IEEE_FLOAT): Delete.
10624 * gdbarch.h, gdbarch.c: Re-generate.
10625 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10626 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10627 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10628 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10629 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10630 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10631 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10632 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10633 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10634 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10635 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
10636 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10637
10638 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10639 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10640 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10641 * sh-tdep.c (sh_gdbarch_init): Ditto.
10642 * mips-tdep.c (mips_gdbarch_init): Ditto.
10643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10644 * cris-tdep.c (cris_gdbarch_init): Ditto.
10645
abf22e64
AJ
106462002-01-20 Jiri Smid <smid@suse.cz>
10647
10648 * configure.host, configure.tgt: Support x86-64.
10649 * NEWS: Note new target x86-64.
10650
b7c4cbf8
AJ
10651 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10652 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10653 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10654 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10655 x86-64-linux-nat.o): Fix dependencies.
10656
82600034
AC
106572002-01-19 Andrew Cagney <ac131313@redhat.com>
10658
10659 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10660 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10661 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10662 * config/sparc/xm-sun4os4.h: Delete file.
10663 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 10664
bbe5c628
AC
106652002-01-19 Andrew Cagney <ac131313@redhat.com>
10666
10667 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10668 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10669 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10670 * config/i386/i386lynx.mh (XM_FILE): Delete.
10671 * config/rs6000/xm-rs6000ly.h: Delete file.
10672 * config/sparc/xm-sparclynx.h: Delete file.
10673 * config/m68k/xm-m68klynx.h: Delete file.
10674 * config/i386/xm-i386lynx.h: Delete file.
10675 * config/xm-lynx.h: Delete file.
10676 * config/djgpp/fnchange.lst: Update.
10677
f8453e34
JT
106782002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10679
10680 * alpha-tdep.c (alpha_register_byte): New function.
10681 (alpha_register_raw_size): Ditto.
10682 (alpha_register_virtual_size): Ditto.
10683 (alpha_skip_prologue_internal): Renamed from
10684 alpha_skip_prologue.
10685 (alpha_skip_prologue): New version that calls
10686 alpha_skip_prologue_internal.
10687 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10688 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10689 second argument from alpha_skip_prologue.
10690 (REGISTER_BYTE): Use alpha_register_byte.
10691 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10692 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10693 (FRAMELESS_FUNCTION_INVOCATION): Use
10694 generic_frameless_function_invocation_not.
10695 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10696 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10697
52d9e613
AC
106982002-01-19 Andrew Cagney <ac131313@redhat.com>
10699
10700 * config/mips/xm-news-mips.h: Delete file.
10701 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10702
10703 * config/m88k/xm-m88k.h: Delete file.
10704 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10705 * config/m88k/xm-delta88v4.h: Ditto.
10706 * config/m88k/xm-delta88.h: Ditto.
10707
10708 * config/alpha/xm-fbsd.h: Delete file.
10709 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10710
10711 * config/sparc/xm-sparc.h: Delete file.
10712 * Makefile.in (xm-sun4os4.h): Delete dependency.
10713 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10714 * config/sparc/xm-sun4os4.h: Ditto.
10715 * config/sparc/xm-linux.h: Ditto.
10716
10717 * config/i386/xm-windows.h: Delete file.
10718
2d1b2124
AC
107192002-01-19 Andrew Cagney <ac131313@redhat.com>
10720
10721 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10722 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10723
ee1f65f0
JT
107242002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10725
10726 * alpha-tdep.c (alpha_call_dummy_words): New.
10727 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10728 (CALL_DUMMY_P): Define.
10729 (CALL_DUMMY_WORDS): Define.
10730 (SIZEOF_CALL_DUMMY_WORDS): Define.
10731
98081e55
PB
107322002-01-19 Per Bothner <per@bothner.com>
10733
10734 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10735 isn't NULL, which can happen with some gcj-3.x-produced code.
10736
0d056799
JT
107372002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10738
10739 * alpha-tdep.c (alpha_register_virtual_type): New function.
10740 (alpha_init_frame_pc_first): Ditto.
10741 (alpha_fix_call_dummy): Ditto.
10742 (alpha_store_struct_return): Ditto.
10743 (alpha_extract_struct_value_address): Ditto.
10744 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10745 alpha_register_virtual_type.
10746 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10747 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10748 alpha_extract_struct_value_address.
10749 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10750 (INIT_FRAME_PC): Use init_frame_pc_noop.
10751 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10752
4604bcad
MK
107532002-01-19 Mark Kettenis <kettenis@gnu.org>
10754
10755 * i386gnu-nat.c: Include "i386-tdep.h".
10756 (fetch_fpregs): Simplify code dealing with uninitialized floating
10757 point states such that it doesn't require FP7_REGNUM.
10758
140f9984
JT
107592002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10760
abf22e64
AJ
10761 * alpha-tdep.c (frame_extra_info): New.
10762 (alpha_find_saved_regs): Make static. Use
140f9984
JT
10763 frame->extra_info.
10764 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
10765 (alpha_frame_saved_pc): Use frame->extra_info.
10766 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10767 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
10768 (init_extra_frame_info): Rename to...
10769 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 10770 (alpha_print_extra_frame_info): New function.
140f9984
JT
10771 (alpha_frame_locals_address): Ditto.
10772 (alpha_frame_args_address): Ditto.
abf22e64 10773 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
10774 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10775 alpha_frame_args_address.
abf22e64 10776 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 10777 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
10778 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10779 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
10780 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10781 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10782
d734c450
JT
107832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10784
10785 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10786 (alpha_cannot_fetch_register): Ditto.
10787 (alpha_cannot_store_register): Ditto.
10788 (alpha_register_convertible): Ditto.
10789 (alpha_use_struct_convention): Ditto.
10790 * config/alpha/tm-alpha.h: Update copyright years.
10791 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10792 (INNER_THAN): Use core_addr_lessthan.
10793 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10794 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10795 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10796 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10797 (FRAME_CHAIN): Remove unnecessary cast.
10798
b4ceaee6
AC
107992002-01-18 Andrew Cagney <ac131313@redhat.com>
10800
10801 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10802 obsolete.
10803
0a65a603
AC
108042002-01-18 Andrew Cagney <ac131313@redhat.com>
10805
10806 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10807 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10808 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10809 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10810 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10811 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10812 * x86-64-linux-nat.c: Ditto.
10813
636a6dfc
JT
108142002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10815
abf22e64 10816 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
10817 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10818 (REGISTER_NAME): Define.
10819
acceddb6
JT
108202002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10821
10822 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10823
ec32e4be
JT
108242002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10825
10826 * alpha-tdep.c: Update copyright years.
10827 (alpha_next_pc): New function.
10828 (alpha_software_single_step): Ditto.
10829 * config/alpha/tm-alpha.h: Add prototype for
10830 alpha_software_single_step.
10831
e771a871
JT
108322002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10833
10834 * alphabsd-nat.c: Update copyright years.
10835 (fill_gregset): Use regcache_collect.
10836 (fill_fpregset): Likewise.
10837 (fetch_inferior_registers): Only fetch integer registers
10838 if requested to do so.
10839 (store_inferior_registers): Only store integer registers
10840 if requested to do so.
10841
7708fa01
AC
108422002-01-17 Andrew Cagney <ac131313@redhat.com>
10843
10844 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10845 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10846 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10847 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10848 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10849 * config/arm/linux.mh (XDEPFILES): Delete.
10850 * config/arm/nbsd.mh (XDEPFILES): Delete.
10851 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10852 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10853 * config/i386/i386m3.mh (XDEPFILES): Delete.
10854 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10855 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10856 * config/i386/fbsd.mh (XDEPFILES): Delete.
10857 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10858 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10859 * config/i386/i386v4.mh (XDEPFILES): Delete.
10860 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10861 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10862 * config/i386/i386aix.mh (XDEPFILES): Delete.
10863 * config/i386/go32.mh (XDEPFILES): Delete.
10864 * config/i386/cygwin.mh (XDEPFILES): Delete.
10865 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10866 * config/i386/i386mach.mh (XDEPFILES): Delete.
10867 * config/i386/i386v32.mh (XDEPFILES): Delete.
10868 * config/i386/linux.mh (XDEPFILES): Delete.
10869 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10870 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10871 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10872 * config/i386/i386sco.mh (XDEPFILES): Delete.
10873 * config/i386/i386v.mh (XDEPFILES): Delete.
10874 * config/i386/nbsd.mh (XDEPFILES): Delete.
10875 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10876 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10877 * config/i386/symmetry.mh (XDEPFILES): Delete.
10878 * config/i386/obsd.mh (XDEPFILES): Delete.
10879 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10880 * config/ia64/linux.mh (XDEPFILES): Delete.
10881 * config/ia64/aix.mh (XDEPFILES): Delete.
10882 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10883 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10884 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10885 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10886 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10887 * config/m68k/linux.mh (XDEPFILES): Delete.
10888 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10889 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10890 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10891 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10892 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10893 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10894 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10895 * config/m88k/delta88.mh (XDEPFILES): Delete.
10896 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10897 * config/m88k/m88k.mh (XDEPFILES): Delete.
10898 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10899 * config/mips/linux.mh (XDEPFILES): Delete.
10900 * config/mips/irix6.mh (XDEPFILES): Delete.
10901 * config/mips/irix5.mh (XDEPFILES): Delete.
10902 * config/mips/irix4.mh (XDEPFILES): Delete.
10903 * config/mips/irix3.mh (XDEPFILES): Delete.
10904 * config/mips/decstation.mh (XDEPFILES): Delete.
10905 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10906 (NATDEPFILES): Move core-aout.o to here.
10907 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10908 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10909 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10910 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10911 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10912 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10913 * config/pa/hpux11.mh (XDEPFILES): Delete.
10914 * config/powerpc/aix.mh (XDEPFILES): Delete.
10915 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10916 * config/powerpc/linux.mh (XDEPFILES): Delete.
10917 * config/romp/rtbsd.mh: Rename XDEPFILES.
10918 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10919 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10920 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10921 * config/s390/s390.mh (XDEPFILES): Delete.
10922 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10923 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10924 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10925 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10926 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10927 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10928 * config/sparc/linux.mh (XDEPFILES): Delete.
10929 * config/vax/vaxult.mh (XDEPFILES): Delete.
10930 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10931 * Makefile.in (DEPFILES): Remove XDEPFILES.
10932
375fc983
AC
109332002-01-17 Andrew Cagney <ac131313@redhat.com>
10934
10935 * utils.c (internal_verror): Fix comments, default is yes not no.
10936 Update queries to match. Default to quit and dump core.
10937
8926118c
AC
109382002-01-17 Andrew Cagney <ac131313@redhat.com>
10939
10940 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10941 copyright.
10942 * defs.h, event-top.c, gdbcmd.h: Ditto.
10943 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10944 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10945 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10946 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10947 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10948 * mi/mi-main.c:Ditto.
10949
10950 * stack.c, symfile.c: Update copyright.
10951
45b7b345
DJ
109522002-01-17 Daniel Jacobowitz <drow@mvista.com>
10953
db728ff7
DJ
10954 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10955 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10956 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10957 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 10958
db728ff7
DJ
109592002-01-17 Daniel Jacobowitz <drow@mvista.com>
10960
10961 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10962 * gdbserver/low-lynx.c (myattach): Likewise.
10963 * gdbserver/low-nbsd.c (myattach): Likewise.
10964 * gdbserver/low-sim.c (myattach): Likewise.
10965 * gdbserver/low-sparc.c (myattach): Likewise.
10966 * gdbserver/low-sun3.c (myattach): Likewise.
10967
10968 * gdbserver/low-linux.c (myattach): New function.
45b7b345 10969
db728ff7 10970 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
10971 (main): Handle "--attach".
10972
8de3c354
AC
109732002-01-16 Andrew Cagney <ac131313@redhat.com>
10974
10975 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10976 maintainer.
10977
b0129042
DJ
109782002-01-15 Daniel Jacobowitz <drow@mvista.com>
10979
10980 * c-typeprint.c (is_type_conversion_operator): Add additional
10981 check for non-conversion operators.
10982
ba8679fb 109832002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
10984
10985 * linux-proc.c: Add "info proc" command, a la procfs.c.
10986 (read_mapping): New function, abstract and re-use code.
10987 (linux_find_memory_regions): Use new func read_mapping.
10988 (linux_info_proc_cmd): New function, implement "info proc".
10989 (_initialize_linux_proc): Add new command "info proc".
10990
e4f9b4d5
MS
109912002-01-15 Michael Snyder <msnyder@redhat.com>
10992
10993 * symfile.c (generic_load): Use bfd_map_over_sections method
10994 instead of manipulating bfd structure members directly.
10995 (add_section_size_callback): New function, bfd sections callback
10996 used by generic_load.
10997 (load_sections_callback): New function, bfd sections callback
10998 used by generic_load.
10999
08cf96df
EZ
110002002-01-15 Elena Zannoni <ezannoni@redhat.com>
11001
abf22e64 11002 [Based on work by Jim Blandy]
08cf96df
EZ
11003 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
11004 (builtin_type_vec128): Export.
11005 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
11006 types.
11007 (builtin_type_vec128): New builtin type for 128 bit vector
11008 registers.
11009 (build_gdbtypes): Initialize builtin_type_v16qi and
11010 builtin_type_v8hi. Create the vec128 register builtin type
11011 structure.
11012 (build_builtin_type_vec128): New function.
abf22e64 11013 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
11014 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
11015 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
11016 AltiVec register to new builtin type.
11017
d7242108
DJ
110182001-01-15 Daniel Jacobowitz <drow@mvista.com>
11019
11020 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
11021 to make_cv_type.
11022
4ee3352d
AC
110232002-01-14 Andrew Cagney <ac131313@redhat.com>
11024
11025 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
11026 CLEAN_UP_REGISTER_VALUE.
11027 * regcache.c (supply_register): Update only call.
11028
f015b2e7
AC
110292002-01-14 Andrew Cagney <ac131313@redhat.com>
11030
11031 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11032 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11033 a29k-*-vxworks* targets as obsolete.
11034
356ae49d
MS
110352002-01-14 Michael Snyder <msnyder@redhat.com>
11036
11037 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
11038 until we can resolve portability issues.
11039 * gregset.h: Remove references to fpxregs.
11040 * gcore.c (gcore_command): Initialize note_sec to NULL.
11041
ade8f45e
AC
110422002-01-13 Andrew Cagney <ac131313@redhat.com>
11043
11044 * signals.c (target_signal_to_name): Rewrite. Only use
11045 signals[].name when in bounds and non-NULL.
abf22e64 11046
89c49e7a
AC
110472002-01-13 Andrew Cagney <ac131313@redhat.com>
11048
11049 From Petr Ledvina <ledvinap@kae.zcu.cz>:
11050 * signals.c (target_signal_to_name): Verify that SIG is within the
11051 bounds of the signals array.
11052
4daa9f9f
AC
110532002-01-13 Andrew Cagney <ac131313@redhat.com>
11054
11055 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
11056
ba4bbdcb
KS
110572002-01-13 Keith Seitz <keiths@redhat.com>
11058
11059 * stack.c (print_frame_info_base): Print the frame's pc
11060 only if when print_frame_info_listing_hook is not defined.
11061
575bbeb6
KS
110622002-01-13 Keith Seitz <keiths@redhat.com>
11063
11064 * varobj.c (varobj_set_value): Make sure that there were no
11065 errors evaluating the object before attempting to set its
11066 value.
11067 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
11068 so this offset adjustment is no longer necessary.
11069 (create_child): Don't set the error flag if the child is
11070 a CPLUS_FAKE_CHILD.
11071 (value_of_child): If value_fetch_lazy fails, return NULL
11072 so that callers will be notified that an error occurred.
11073 (c_value_of_variable): Delay check of variable's validity
11074 until later. We actually want all structs and unions to have
11075 the value "{...}".
11076 Do not return "???" for variables which could not be evaluated.
11077 This error condition must be returned to the caller so that it
11078 can get the error condition from gdb.
11079 (cplus_name_of_child): Adjust index for vptr before figuring
11080 out the name of the child.
11081 (cplus_value_of_child): If a child's (real) parent is not valid,
11082 don't even bother trying to give a value for it. Just return
11083 an error. Change all instances in this function.
11084 (cplus_type_of_child): If our parent is one of the "fake"
11085 parents, we need to get at the type of the real parent, and
11086 derive the child's true type using this information.
11087
b76898ab
AC
110882002-01-13 Andrew Cagney <ac131313@redhat.com>
11089
11090 From 2002-01-09 John Marshall <johnm@falch.net>:
11091 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
11092 sources.redhat.com, and tweak some related URLs which had
11093 suffered from linkrot.
11094
b6649e88
AC
110952002-01-13 Andrew Cagney <ac131313@redhat.com>
11096
11097 From Jeff law:
11098 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
11099 structures passed in registers.
11100
82cc5033
EZ
111012002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
11102
11103 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
11104 white space which prevented compilation. Reported by DSK
11105 <dsk@student.unsw.edu.au>.
11106
ba5f2f8a
MS
111072002-01-11 Michael Snyder <msnyder@redhat.com>
11108
fbd35540
MS
11109 * symfile.c (build_section_addr_info_from_section_tab):
11110 Use bfd access method instead of manipulating bfd directly.
11111 (syms_from_objfile): Ditto.
11112 (simple_overlay_update_1): Ditto.
11113 (simple_overlay_update): Ditto.
11114 (generic_load): Ditto.
11115 (overlay_unmapped_address): FIXME comment, bfd access methods.
11116 (sections_overlap): FIXME comment, bfd access methods.
11117 (pc_in_mapped_range): FIXME comment, bfd access methods.
11118 (pc_in_unmapped_range): FIXME comment, bfd access methods.
11119 (section_is_mapped): FIXME comment, bfd access methods.
11120 (section_is_overlay): FIXME comment, bfd access methods.
11121
ba5f2f8a
MS
11122 * symfile.c (generic_load): Whitespace and long line cleanups.
11123 Remove duplicate variable, change several local variables to
11124 more appropriate data types.
11125 (print_transfer_performance): Use %lu instead of %ld for ulongs.
11126
17df2af6
AC
111272002-01-12 Andrew Cagney <ac131313@redhat.com>
11128
11129 From Peter Schauer:
11130 * language.c (longest_local_hex_string_custom): Use phex_nz to
11131 convert NUM to a hex string.
11132
ec920329
EZ
111332002-01-12 Elena Zannoni <ezannoni@redhat.com>
11134
11135 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
11136 the function.
538a76d6 11137 Update Copyright year.
ec920329 11138
3abd2e01
AC
111392002-01-12 Andrew Cagney <ac131313@redhat.com>
11140
11141 * language.c (longest_raw_hex_string): Delete unused function.
11142
b21b22e0
PS
111432002-01-11 Petr Sorfa <petrs@caldera.com>
11144
11145 * MAINTAINERS (write-after-approval): Add myself.
11146 * dwarf2read.c (read_tag_string_type): Handling of
11147 DW_AT_byte_size.
11148 (read_tag_string_type): FORTRAN fix to prevent propagation of
11149 first string size.
11150 (set_cu_language): Handling of DW_LANG_Fortran95
11151
747fe712
RE
111522002-01-11 Richard Earnshaw <rearnsha@arm.com>
11153
11154 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
11155 GETPID(inferior_ptid).
11156 (store_inferior_registers): Likewise.
11157
f1bea926
JM
111582002-01-10 Jason Merrill <jason@redhat.com>
11159
11160 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
11161 Fix DW_OP_minus.
11162
ae940673
AC
111632002-01-10 Andrew Cagney <ac131313@redhat.com>
11164
11165 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
11166 and bfd/elf32-sh-nbsd.c.
11167
00546b04
MS
111682002-01-10 Michael Snyder <msnyder@redhat.com>
11169
352ed7b4
MS
11170 * NEWS: Mention --pid and corefile/proc-id behavior change.
11171
c18be923
MS
11172 * Makefile.in: Add rules for gcore.o and linux-proc.o.
11173 * gcore.c: Include cli/cli-decode.h instead of command.h.
11174
00546b04
MS
11175 * main.c (captured_main): Add new command line option "--pid".
11176 If the second command line argument (following the symbol-file)
11177 begins with a digit, try to attach to it before trying to open
11178 it as a corefile.
11179 (print_gdb_help): Document the "--pid" argument.
11180
db60ec62
EZ
111812002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
11182
11183 * completer.c (command_completer): New function.
11184
11185 * completer.h <command_completer>: Add prototype.
11186
11187 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
11188 completer for the "help" command.
11189
39c22d1a
JM
111902002-01-09 Jason Merrill <jason@redhat.com>
11191
11192 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
11193
c564377f
MS
111942002-01-09 Michael Snyder <msnyder@redhat.com>
11195
975aec09
MS
11196 * i386-linux-nat.c (fill_fpxregset): Make global.
11197 (store_fpxregset): Ditto.
11198
db4a10fa
MS
11199 * gregset.h (gdb_fpxregset_t): Define.
11200 (supply_fpxregset): Prototype.
11201 (fill_fpxregset): Prototype.
11202
c564377f
MS
11203 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
11204
c3d45d70
RE
112052002-01-09 Richard Earnshaw <rearnsha@arm.com>
11206
11207 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
11208 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
11209 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
11210
fcc87af1
AC
112112002-01-09 Andrew Cagney <ac131313@redhat.com>
11212
11213 * MAINTAINERS: Update target maintainer rules so that any
11214 Maintainer can approve a tested patch for a maintenance-only
11215 target.
11216
dd96c05b
RE
112172002-01-09 Richard Earnshaw <rearnsha@arm.com>
11218
d4297db9 11219 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 11220
d4297db9 11221 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
11222 IN_SIGTRAMP.
11223
145fdc6e
MS
112242002-01-08 Michael Snyder <msnyder@redhat.com>
11225
11226 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
11227 real name of the executable, rather than the /proc name.
11228
be4d1333
MS
112292002-01-03 Michael Snyder <msnyder@redhat.com>
11230
11231 Implement a "generate-core-file" command in gdb, save target state.
11232 * gcore.c: New file. Implement new command 'generate-core-file'.
11233 Save a corefile image of the current state of the inferior.
11234 * linux-proc.c: Add linux-specific code for saving corefiles.
11235 * target.h (struct target_ops): Add new target vectors for saving
11236 corefiles; to_find_memory_regions and to_make_corefile_notes.
11237 (target_find_memory_regions): New macro.
11238 (target_make_corefile_notes): New macro.
11239 * target.c (update_current_target): Inherit new target methods.
11240 (dummy_find_memory_regions): New place-holder method.
11241 (dummy_make_corefile_notes): New place-holder method.
11242 (init_dummy_target): Initialize new dummy target vectors.
11243 * exec.c (exec_set_find_memory_regions): New function.
11244 Allow the exec_ops vector for memory regions to be taken over.
11245 (exec_make_note_section): New function, target vector method.
11246 * defs.h (exec_set_find_memory_regions): Export prototype.
11247 * procfs.c (proc_find_memory_regions): New function, corefile method.
11248 (procfs_make_note_section): New function, corefile method.
11249 (init_procfs_ops): Set new target vector pointers.
11250 (find_memory_regions_callback): New function.
11251 (procfs_do_thread_registers): New function.
11252 (procfs_corefile_thread_callback): New function.
11253 * sol-thread.c (sol_find_memory_regions): New function.
11254 (sol_make_note_section): New function.
11255 (init_sol_thread_ops): Initialize new target vectors.
11256 * inftarg.c (inftarg_set_find_memory_regions): New function.
11257 Allow to_find_memory_regions vector to be taken over.
11258 (inftarg_set_make_corefile_notes): New function.
11259 Allow to_make_corefile_notes vector to be taken over.
11260 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
11261 interface layer if not target_has_execution (may be a corefile).
11262 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
11263 * config/sparc/sun4sol2.mh: Ditto.
11264 * config/alpha/alpha-linux.mh: Ditto.
11265 * config/arm/linux.mh: Ditto.
11266 * config/i386/x86-64linux.mh: Ditto.
11267 * config/ia64/linux.mh: Ditto.
11268 * config/m68k/linux.mh: Ditto.
11269 * config/mips/linux.mh: Ditto.
11270 * config/powerpc/linux.mh: Ditto.
11271 * config/sparc/linux.mh: Ditto.
11272
c6b92abd
MS
112732002-01-07 Michael Snyder <msnyder@redhat.com>
11274
11275 * arm-linux-nat.c: Remove references to regcache.c internal data
11276 (registers[] and register_valid[]).
11277
4b09dc8c
MS
112782002-01-07 Michael Snyder <msnyder@redhat.com>
11279
abf22e64
AJ
11280 * linux-proc.c: New file. Implement child_pid_to_exec_file,
11281 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
11282 symbol file and shlibs.
11283 * Makefile.in: Add rule for linux-proc.o.
11284 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
11285 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
11286 * config/arm/linux.mh: Ditto.
11287 * config/i386/linux.mh: Ditto.
11288 * config/i386/x86-64linux.mh: Ditto.
11289 * config/ia64/linux.mh: Ditto.
11290 * config/m68k/linux.mh: Ditto.
11291 * config/mips/linux.mh: Ditto.
11292 * config/powerpc/linux.mh: Ditto.
11293 * config/sparc/linux.mh: Ditto.
11294
c25b74ac
PM
112952002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
11296
11297 * win32-nat.c: Add i386-tdep.h dependency.
11298
94cd915f
MS
112992002-01-07 Michael Snyder <msnyder@redhat.com>
11300
c7cccb76
MS
11301 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
11302 instead of bfd_get_arch_size. Don't bail out just because
11303 there's no exec_bfd.
abf22e64 11304
34c0bd93
MS
11305 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
11306 * p-valprint.c (pascal_object_print_value): Ditto.
11307 * somread.c (som_symtab_read): Ditto.
11308 * symfile.c (simple_free_overlay_region_table): Ditto.
11309 * valops.c (value_assign): Ditto.
11310
21c1c920
MS
11311 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
11312 use tilde_expand and strerror for opening save-tracepoints file.
11313
5bbd998e
MS
11314 * thread-db.c (thread_db_new_objfile): Indendation fix.
11315
94cd915f
MS
11316 * infptrace.c (GDB_MAX_ALLOCA): New define.
11317 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 11318 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
11319 can be overridden with whatever value is appropriate to the host).
11320 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
11321 alloca to allocate potentially large buffer.
11322 * rs6000-nat.c (child_xfer_memory): Ditto.
11323 * symm-nat.c (child_xfer_memory): Ditto.
11324 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
11325
494e8a93
JSC
113262002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
11327
11328 From Nick Clifton <nickc@redhat.com>
11329 * d10v-tdep.c: Set STACK_START to 0x200bffe.
11330
d0e1d48e
MS
113312002-01-07 Michael Snyder <msnyder@redhat.com>
11332
abf22e64 11333 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
11334 Don't use exec_bfd if it's NULL.
11335
290b2c7a
MK
113362002-01-06 Mark Kettenis <kettenis@gnu.org>
11337
abf22e64 11338 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 11339
aef21287
AC
113402002-01-06 Andrew Cagney <ac131313@redhat.com>
11341
11342 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
11343 * gnu-nat.c: Ditto.
11344
30efa627
AC
113452002-01-06 Andrew Cagney <ac131313@redhat.com>
11346
11347 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
11348 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
11349 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
11350 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
11351 z8k-coff have not been multi-arched. Update z8k-coff build
11352 status.
11353
9b4ff276
AC
113542002-01-06 Andrew Cagney <ac131313@redhat.com>
11355
11356 * MAINTAINERS: Mark a29k target as obsolete.
11357 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
11358 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
11359 comments.
11360 * NEWS: Note that a29k targets are obsolete.
11361 * a29k-tdep.c: Mark as obsolete.
11362 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
11363 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
11364 a29k-*-vxworks* targets as obsolete.
11365 * remote-adapt.c: Obsolete.
11366 * remote-eb.c: Obsolete.
11367 * remote-mm.c: Obsolete.
11368 * remote-udi.c: Obsolete.
11369 * config/a29k/a29k-udi.mt: Obsolete.
11370 * config/a29k/a29k.mt: Obsolete.
11371 * config/a29k/tm-a29k.h: Obsolete.
11372 * config/a29k/tm-vx29k.h: Obsolete.
11373 * config/a29k/vx29k.mt: Obsolete.
11374
a9011d31
AC
113752002-01-05 Andrew Cagney <ac131313@redhat.com>
11376
11377 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
11378 with BFD_ENDIAN_BIG.
11379
9299404e
AC
113802002-01-05 Andrew Cagney <ac131313@redhat.com>
11381
11382 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
11383 * configure, config.in: Re-generate.
11384 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
11385 * defs.h: Do not include <endian.h>.
11386
7e89e357
JT
113872002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
11388
11389 * acconfig.h (HAVE_PT_GETXMMREGS): New.
11390 * config.in: Regenerate.
11391 * configure.in: Update copyright years.
11392 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
11393 * configure: Regenerate.
11394 * i386bsd-nat.c: Update copyright years.
11395 (fill_gregset): Use regcache_collect.
11396 (fetch_inferior_registers): Only fetch integer registers
11397 if requested to do so. Add support for XMM registers
11398 using PT_GETXMMREGS.
11399 (store_inferior_registers): Only store integer registers
11400 if requested to do so. Add support for XMM registers
11401 using PT_SETXMMREGS.
11402 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
11403 (store_inferior_registers): Remove.
11404 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
11405 (fetch_elfcore_registers): New function.
11406 (i386nbsd_elfcore_fns): New.
11407 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11408 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11409 i386bsd-nat.o.
11410 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11411 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11412 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11413 * config/i386/tm-nbsd.h: Update copyright years.
11414 (HAVE_SSE_REGS): Define.
11415 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11416 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11417 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11418 (SIGCONTEXT_PC_OFFSET): Remove.
11419 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11420
a752853e
AC
114212002-01-05 Andrew Cagney <ac131313@redhat.com>
11422
11423 * configure.tgt: Remove powerpc-*-macos* target.
11424 * config/m68k/xm-mpw.h: Delete file.
11425 * config/xm-mpw.h: Delete file.
11426 * ser-mac.c: Delete file.
11427 * mpw-make.sed: Delete file.
11428 * mpw-config.in: Delete file.
11429 * mac-xdep.c: Delete file.
11430 * mac-gdb.r: Delete file.
11431 * mac-defs.h: Delete file.
11432 * mac-nat.c: Delete file.
11433 * config/powerpc/macos.mh: Delete file.
11434 * config/powerpc/macos.mt: Delete file.
11435 * config/powerpc/nm-macos.h: Delete file.
11436 * config/powerpc/tm-macos.h: Delete file.
11437 * source.c (openp, open_source_file): Remove obsolete code.
11438 * top.c (gdb_readline): Ditto.
11439 * utils.c (query): Ditto.
11440 * event-top.c (display_gdb_prompt): Ditto.
11441 * Makefile.in (ser-mac.o): Delete obsolete target.
11442 * NEWS: Update.
11443
d7449b42
AC
114442002-01-04 Andrew Cagney <ac131313@redhat.com>
11445
11446 * defs.h (BIG_ENDIAN): Delete macro definition.
11447 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11448 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11449 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11450 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11451 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11452 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11453 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11454 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11455 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11456 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11457 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11458 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11459 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11460 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11461 * gdbarch.c: Re-generate.
11462
356374e8
DJ
114632002-01-04 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11466 for core files.
11467
a2b8f8f8
JT
114682002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11469
11470 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11471
12466af9
AC
114722002-01-04 Andrew Cagney <ac131313@redhat.com>
11473
11474 * value.h (value_ptr): Delete typedef.
11475
3549ab40
JT
114762002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11477
11478 * i386nbsd-nat.c: Update copyright years.
11479 Include i386-tdep.h.
11480
fedbd091
EZ
114812002-01-04 Elena Zannoni <ezannoni@redhat.com>
11482
11483 * stabsread.c: Update copyright years.
11484
11485 From Debashis Mahata <debashis.mahata@wipro.com>:
11486 (read_struct_fields): Deal with Sun C compiler erroneous stab
11487 output for structs and unions.
fec8b34f 11488 Fix PR gdb/269.
fedbd091 11489
eb43544b
DJ
114902002-01-04 Daniel Jacobowitz <drow@mvista.com>
11491
11492 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11493 prototype.
11494
1514d34e
DJ
114952002-01-04 Daniel Jacobowitz <drow@mvista.com>
11496
11497 * cp-abi.c: Fix whitespace.
11498 (baseclass_offset): New wrapper function.
11499 * cp-abi.h (baseclass_offset): Add prototype.
11500 (struct cp_abi_ops): Add baseclass_offset pointer.
11501
11502 * valops.c (vb_match): Move to...
11503 * gnu-v2-abi.c (vb_match): here.
11504 * valops.c (baseclass_offset): Move to...
11505 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11506
11507 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11508
11509 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11510 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11511 * hpacc-abi.c (init_hpacc_ops): Likewise.
11512
7f8c9282
DJ
115132002-01-04 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * valops.c (find_overload_match): Accept obj as a
11516 reference parameter. Update it before returning.
11517 * value.h (find_overload_match): Update prototype.
11518 * eval.c (evaluate_subexp_standard): Pass object to
11519 find_overload_match by reference.
11520
f23631e4
AC
115212002-01-03 Andrew Cagney <ac131313@redhat.com>
11522
11523 * valarith.c: Replace value_ptr with struct value pointer. Remove
11524 register attribute from value declarations.
11525 * valops.c: Ditto.
11526 * value.h: Ditto.
11527 * scm-lang.c (scm_lookup_name): Ditto.
11528
79e10fab 115292002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 11530
79e10fab
AC
11531 Abstract the functionality of iterating over mapped memory
11532 regions into a general purpose iterator function.
abf22e64 11533 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
11534 iterator for memory sections.
11535 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11536 (solib_mappings_callback): New function, callback for above.
11537 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11538 (info_mappings_callback): New function, callback for above.
11539
11540 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11541
c5ad026a
MK
115422002-01-01 Mark Kettenis <kettenis@gnu.org>
11543
d2a7c97a
MK
11544 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11545 * i386-tdep.c: Include "elf-bfd.h".
11546 (process_note_abi_tag_sections): New function.
11547 (i386_gdbarch_init): Add code to recognize various OS/ABI
11548 combinations.
11549
c5ad026a
MK
11550 * maint.c (_initialize_maint_cmds): Add missing \ in
11551 string-literal.
11552
a1a5b71e 11553For older changes see ChangeLog-2001
c906108c
SS
11554\f
11555Local Variables:
11556mode: change-log
11557left-margin: 8
11558fill-column: 74
11559version-control: never
11560End:
This page took 0.807176 seconds and 4 git commands to generate.